@stacklink/sdk 0.3.15 → 0.6.2

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/README.md +26 -0
  2. package/compatibility.json +1 -1
  3. package/dist/src/domain/billing-plans.d.ts +827 -0
  4. package/dist/src/domain/billing-plans.d.ts.map +1 -0
  5. package/dist/src/domain/billing-plans.js +893 -0
  6. package/dist/src/domain/billing-plans.js.map +1 -0
  7. package/dist/src/domain/bot-avatar.d.ts +46 -0
  8. package/dist/src/domain/bot-avatar.d.ts.map +1 -0
  9. package/dist/src/domain/bot-avatar.js +436 -0
  10. package/dist/src/domain/bot-avatar.js.map +1 -0
  11. package/dist/src/domain/bot-contract.d.ts +1472 -700
  12. package/dist/src/domain/bot-contract.d.ts.map +1 -1
  13. package/dist/src/domain/bot-contract.js +133 -10
  14. package/dist/src/domain/bot-contract.js.map +1 -1
  15. package/dist/src/domain/memory-contract.d.ts +275 -275
  16. package/dist/src/domain/platform-approval-contract.d.ts +10 -4
  17. package/dist/src/domain/platform-approval-contract.d.ts.map +1 -1
  18. package/dist/src/domain/platform-approval-contract.js.map +1 -1
  19. package/dist/src/domain/provider-branding.d.ts.map +1 -1
  20. package/dist/src/domain/provider-branding.js +3 -0
  21. package/dist/src/domain/provider-branding.js.map +1 -1
  22. package/dist/src/domain/stacklink-meta-tools.d.ts +21 -5
  23. package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
  24. package/dist/src/domain/stacklink-meta-tools.js +73 -45
  25. package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
  26. package/dist/src/domain/workflow-contract.d.ts +24338 -0
  27. package/dist/src/domain/workflow-contract.d.ts.map +1 -0
  28. package/dist/src/domain/workflow-contract.js +95 -0
  29. package/dist/src/domain/workflow-contract.js.map +1 -0
  30. package/dist/src/sdk/index.d.ts +329 -30
  31. package/dist/src/sdk/index.d.ts.map +1 -1
  32. package/dist/src/sdk/index.js +194 -47
  33. package/dist/src/sdk/index.js.map +1 -1
  34. package/package.json +1 -1
@@ -2,6 +2,14 @@ import type { ContentLocator } from '../services/content-normalization/normalize
2
2
  import { z } from "zod";
3
3
  import { type ApprovalAudience } from "./platform-approval-contract.js";
4
4
  export type FileKind = 'documents' | 'spreadsheets' | 'images' | 'audio' | 'code';
5
+ export type BotTeamReplyAction = {
6
+ label: string;
7
+ url: string;
8
+ } | {
9
+ label: string;
10
+ command: 'files_refresh' | 'cancel_queued';
11
+ messageId: string;
12
+ };
5
13
  /** What happens to spreadsheets bigger than the preview: worked out in Workbench, or preview only. */
6
14
  export type BigSpreadsheets = 'workbench' | 'preview';
7
15
  /** Bot config `files` (boards 12, 13, 15). Absent means the server can't store it yet: the UI stays hidden. */
@@ -16,6 +24,202 @@ export declare const FILE_LIMITS: {
16
24
  readonly maxFilesPerMessage: 5;
17
25
  readonly maxAudioMinutes: 30;
18
26
  };
27
+ /** Text stays text, including when Files is off. HTTP requests are also byte bounded. */
28
+ export declare const BOT_INPUT_LIMITS: {
29
+ readonly maxMessageCharacters: 256000;
30
+ readonly maxMessageBytes: 1048576;
31
+ readonly maxQueuedFollowups: 10;
32
+ };
33
+ export declare const botMessageSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
34
+ export declare const botRunSourceSchema: z.ZodEnum<["app", "mcp", "slack", "microsoft_teams", "trigger", "test"]>;
35
+ export type BotRunSource = z.infer<typeof botRunSourceSchema>;
36
+ export declare const botRunFilterSchema: z.ZodEnum<["all", "waiting", "failed", "followup", "cancelled", "files", "queued", "running", "completed", "stopped", "delivery_failed"]>;
37
+ export declare const botRunsQuerySchema: z.ZodObject<{
38
+ mine: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
39
+ channel: z.ZodOptional<z.ZodEnum<["test", "published"]>>;
40
+ filter: z.ZodDefault<z.ZodEnum<["all", "waiting", "failed", "followup", "cancelled", "files", "queued", "running", "completed", "stopped", "delivery_failed"]>>;
41
+ source: z.ZodOptional<z.ZodEnum<["app", "mcp", "slack", "microsoft_teams", "trigger", "test"]>>;
42
+ status: z.ZodOptional<z.ZodEnum<["pending", "held", "queued", "running", "waiting_for_connection", "waiting_for_approval", "waiting_for_execution", "completed", "failed", "stopped", "cancelled"]>>;
43
+ from: z.ZodOptional<z.ZodString>;
44
+ to: z.ZodOptional<z.ZodString>;
45
+ errorCode: z.ZodOptional<z.ZodString>;
46
+ deliveryStatus: z.ZodOptional<z.ZodEnum<["retry_scheduled", "dead_letter", "failed", "unknown", "suppressed"]>>;
47
+ cursor: z.ZodOptional<z.ZodString>;
48
+ limit: z.ZodDefault<z.ZodNumber>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ filter: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed";
51
+ limit: number;
52
+ source?: "slack" | "mcp" | "test" | "app" | "microsoft_teams" | "trigger" | undefined;
53
+ status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
54
+ channel?: "test" | "published" | undefined;
55
+ cursor?: string | undefined;
56
+ mine?: "true" | "false" | undefined;
57
+ from?: string | undefined;
58
+ to?: string | undefined;
59
+ errorCode?: string | undefined;
60
+ deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
61
+ }, {
62
+ filter?: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed" | undefined;
63
+ source?: "slack" | "mcp" | "test" | "app" | "microsoft_teams" | "trigger" | undefined;
64
+ status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
65
+ channel?: "test" | "published" | undefined;
66
+ cursor?: string | undefined;
67
+ limit?: number | undefined;
68
+ mine?: "true" | "false" | undefined;
69
+ from?: string | undefined;
70
+ to?: string | undefined;
71
+ errorCode?: string | undefined;
72
+ deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
73
+ }>;
74
+ export type BotRunsQuery = z.infer<typeof botRunsQuerySchema>;
75
+ export declare const botOverviewQuerySchema: z.ZodObject<{
76
+ days: z.ZodDefault<z.ZodPipeline<z.ZodNumber, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>>;
77
+ timezone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ days: 30 | 1 | 7;
80
+ timezone?: string | undefined;
81
+ }, {
82
+ timezone?: string | undefined;
83
+ days?: number | undefined;
84
+ }>;
85
+ export type BotBudgetView = {
86
+ scope: 'ai' | 'total';
87
+ creditsUsedUsd?: number | null;
88
+ includedValueUsd?: number | null;
89
+ status: 'ready' | 'pricing_not_configured' | 'agreement_required';
90
+ currency: 'USD';
91
+ usedUsd: number | null;
92
+ reservedUsd: number | null;
93
+ monthlyLimitUsd: number | null;
94
+ warningPercent: 90;
95
+ autoTopUp: 'coming_soon';
96
+ enforced: boolean;
97
+ canManage: boolean;
98
+ canViewMoney: boolean;
99
+ version: number;
100
+ rateCardVersion: string;
101
+ period: {
102
+ from: string;
103
+ to: string;
104
+ };
105
+ workspace: {
106
+ allowanceUsd: number;
107
+ usedUsd: number;
108
+ reservedUsd: number;
109
+ additionalLimitUsd: number;
110
+ additionalSpendingEnabled: boolean;
111
+ funding?: 'non_expiring_internal_credit' | 'plan_allowance' | 'workspace_credits';
112
+ } | null;
113
+ };
114
+ export declare const botBudgetChangeSchema: z.ZodObject<{
115
+ scope: z.ZodOptional<z.ZodEnum<["ai", "total"]>>;
116
+ version: z.ZodNumber;
117
+ monthlyLimitUsd: z.ZodNullable<z.ZodNumber>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ version: number;
120
+ monthlyLimitUsd: number | null;
121
+ scope?: "ai" | "total" | undefined;
122
+ }, {
123
+ version: number;
124
+ monthlyLimitUsd: number | null;
125
+ scope?: "ai" | "total" | undefined;
126
+ }>;
127
+ export type BotOverviewProblem = {
128
+ kind: 'run_failed' | 'connection_required' | 'approval_required' | 'delivery_failed' | 'delivery_retrying' | 'delivery_unknown';
129
+ code: string;
130
+ label: string;
131
+ count: number;
132
+ latestAt: string;
133
+ filter: Pick<BotRunsQuery, 'filter' | 'errorCode' | 'status' | 'deliveryStatus'>;
134
+ };
135
+ export type BotOverview = {
136
+ generatedAt: string;
137
+ period: {
138
+ from: string;
139
+ to: string;
140
+ timezone: string;
141
+ days: 1 | 7 | 30;
142
+ };
143
+ excludesTests: true;
144
+ historyScope: 'retained_runs';
145
+ totals: {
146
+ conversations: number;
147
+ requests: number;
148
+ completed: number;
149
+ failed: number;
150
+ stopped: number;
151
+ queued: number;
152
+ running: number;
153
+ waiting: number;
154
+ };
155
+ current: {
156
+ queued: number;
157
+ running: number;
158
+ waiting: number;
159
+ };
160
+ completion: {
161
+ completed: number;
162
+ terminalRequests: number;
163
+ percent: number | null;
164
+ };
165
+ completionTime: {
166
+ medianMs: number | null;
167
+ sampleCount: number;
168
+ includesQueueAndWaits: true;
169
+ };
170
+ series: Array<{
171
+ date: string;
172
+ requests: number;
173
+ completed: number;
174
+ failed: number;
175
+ stopped: number;
176
+ queued: number;
177
+ running: number;
178
+ waiting: number;
179
+ }>;
180
+ sources: Array<{
181
+ source: BotRunSource;
182
+ requests: number;
183
+ conversations: number;
184
+ }>;
185
+ deliveries: {
186
+ delivered: number;
187
+ pending: number;
188
+ retrying: number;
189
+ failed: number;
190
+ unknown: number;
191
+ suppressed: number;
192
+ affectedRuns: number;
193
+ };
194
+ problems: BotOverviewProblem[];
195
+ budget: BotBudgetView;
196
+ };
197
+ export type BotDeletionImpact = {
198
+ botId: string;
199
+ name: string;
200
+ revision: number;
201
+ canDelete: boolean;
202
+ blockers: Array<{
203
+ kind: 'runs' | 'followups' | 'deliveries' | 'admissions' | 'imports' | 'executions';
204
+ count: number;
205
+ label: string;
206
+ }>;
207
+ removes: {
208
+ conversations: number;
209
+ runs: number;
210
+ files: number;
211
+ knowledgeSources: number;
212
+ deployments: number;
213
+ nativeRegistrations: number;
214
+ };
215
+ destinations: Array<{
216
+ provider: 'slack' | 'microsoft_teams';
217
+ count: number;
218
+ }>;
219
+ preserves: Array<'shared_connections' | 'shared_apis' | 'external_apps' | 'delivered_messages' | 'billing_records' | 'shared_memory'>;
220
+ fileCleanup: 'asynchronous';
221
+ botMemory: 'managed_separately';
222
+ };
19
223
  export type AttachmentStatus = 'uploading' | 'uploaded' | 'preparing' | 'ready' | 'failed' | 'gone';
20
224
  /** What the server read from a file. Every field is optional; the tile shows what it has. */
21
225
  export type AttachmentFacts = {
@@ -39,13 +243,25 @@ export type AttachmentError = {
39
243
  message: string;
40
244
  };
41
245
  /** 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';
246
+ export type AttachmentErrorCode = 'file_too_large' | 'unsupported_type' | 'kind_off' | 'password_protected' | 'conversion_failed' | 'audio_too_long' | 'bot_helper_pricing_unavailable' | 'damaged' | 'upload_expired' | 'file_mismatch' | 'upload_interrupted' | 'too_many_files' | 'processing_failed' | 'file_unavailable';
247
+ export type BotFileLink = {
248
+ url: string;
249
+ expiresAt: string;
250
+ playback?: {
251
+ url: string;
252
+ expiresAt: string;
253
+ mediaType: 'audio/mpeg';
254
+ };
255
+ };
43
256
  export type BotAttachment = {
44
257
  id: string;
45
258
  name: string;
46
259
  mediaType: string;
47
260
  sizeBytes: number;
48
261
  status: AttachmentStatus;
262
+ transcription?: {
263
+ state: 'queued' | 'waiting_for_funding' | 'transcribing' | 'reconciling' | 'completed' | 'failed';
264
+ };
49
265
  facts?: AttachmentFacts;
50
266
  error?: AttachmentError | null;
51
267
  /** A short-lived link to a small preview image (photos). */
@@ -135,11 +351,11 @@ export declare const botFileSettingsSchema: z.ZodObject<{
135
351
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
136
352
  }, "strict", z.ZodTypeAny, {
137
353
  enabled: boolean;
138
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
354
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
139
355
  bigSpreadsheets: "workbench" | "preview";
140
356
  }, {
141
357
  enabled: boolean;
142
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
358
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
143
359
  bigSpreadsheets: "workbench" | "preview";
144
360
  }>;
145
361
  export declare const botFileUploadSchema: z.ZodObject<{
@@ -175,36 +391,36 @@ export type BotFileUpload = {
175
391
  export declare const botUploadRequestSchema: z.ZodObject<{
176
392
  requestId: z.ZodString;
177
393
  task: z.ZodOptional<z.ZodObject<{
178
- message: z.ZodString;
394
+ message: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
179
395
  conversationId: z.ZodOptional<z.ZodString>;
180
396
  runId: z.ZodString;
181
397
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
398
  }, "strict", z.ZodTypeAny, {
183
399
  message: string;
184
400
  runId: string;
185
- conversationId?: string | undefined;
186
401
  variables?: Record<string, unknown> | undefined;
402
+ conversationId?: string | undefined;
187
403
  }, {
188
404
  message: string;
189
405
  runId: string;
190
- conversationId?: string | undefined;
191
406
  variables?: Record<string, unknown> | undefined;
407
+ conversationId?: string | undefined;
192
408
  }>>;
193
409
  }, "strict", z.ZodTypeAny, {
194
410
  requestId: string;
195
411
  task?: {
196
412
  message: string;
197
413
  runId: string;
198
- conversationId?: string | undefined;
199
414
  variables?: Record<string, unknown> | undefined;
415
+ conversationId?: string | undefined;
200
416
  } | undefined;
201
417
  }, {
202
418
  requestId: string;
203
419
  task?: {
204
420
  message: string;
205
421
  runId: string;
206
- conversationId?: string | undefined;
207
422
  variables?: Record<string, unknown> | undefined;
423
+ conversationId?: string | undefined;
208
424
  } | undefined;
209
425
  }>;
210
426
  export type BotUploadRequestView = {
@@ -221,6 +437,7 @@ export type BotUploadRequestView = {
221
437
  hasTask: boolean;
222
438
  taskMessage?: string;
223
439
  runId?: string;
440
+ continuation?: 'client' | 'server';
224
441
  action?: {
225
442
  kind: 'open_url';
226
443
  url: string;
@@ -229,13 +446,20 @@ export type BotUploadRequestView = {
229
446
  /** Shared, versioned contract for Bots across the dashboard, API and SDK. */
230
447
  /** What the list shows. Working and Needs attention are derived, never set by a person. */
231
448
  export type BotStatus = "working" | "on" | "attention" | "paused" | "draft";
449
+ /** The same lifecycle projection is used by the Bot list and an open Bot. */
450
+ export declare function botActivityStatus(input: {
451
+ published: boolean;
452
+ paused: boolean;
453
+ working: boolean;
454
+ needsAttention: boolean;
455
+ }): BotStatus;
232
456
  /** The only two states an owner can set. */
233
457
  export declare const botWorkingStatuses: Set<string>;
234
458
  export declare const botAttentionStatuses: Set<string>;
235
459
  export type BotRunState = "on" | "paused";
236
460
  export declare const botTerminalStatuses: Set<string>;
237
461
  export type PauseFor = "1h" | "tomorrow" | "manual";
238
- export type ModelEffort = "low" | "medium" | "high" | "xhigh";
462
+ export type ModelEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
239
463
  export type AnswerFormat = "text" | "json";
240
464
  export type AnswerDelivery = "stream" | "once" | "webhook";
241
465
  export type SkillLoad = "auto" | "always";
@@ -246,6 +470,7 @@ export type BotListItem = {
246
470
  id: string;
247
471
  name: string;
248
472
  description: string;
473
+ identity?: BotIdentity;
249
474
  status: BotStatus;
250
475
  statusLine: string;
251
476
  modelId: string;
@@ -442,7 +667,7 @@ export declare function botApiSignaturePayload(input: {
442
667
  }): string;
443
668
  export type ContextApp = {
444
669
  key: AppKey;
445
- account: "project" | "customer";
670
+ account: "project" | "customer" | "deployment";
446
671
  accountId?: string | undefined;
447
672
  rules: {
448
673
  read: ActionRule;
@@ -612,6 +837,7 @@ export type BotTest = {
612
837
  error?: unknown;
613
838
  dataMode?: TestDataMode;
614
839
  answer: {
840
+ webSources?: BotWebSource[];
615
841
  citations?: FileCitation[];
616
842
  /** e.g. "Matches your 4 fields" or "Answered". */
617
843
  verdict: string;
@@ -636,7 +862,85 @@ export type BotActivity = {
636
862
  /** Shown before the test at this index (tests.length = after the last test). */
637
863
  beforeTest: number;
638
864
  };
865
+ /** Public appearance. The name is a projection of the canonical Bot name. */
866
+ export declare const botAvatarSchema: z.ZodObject<{
867
+ version: z.ZodLiteral<1>;
868
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
869
+ seed: z.ZodString;
870
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
871
+ }, "strict", z.ZodTypeAny, {
872
+ version: 1;
873
+ style: "clay" | "pebble" | "shapes" | "letters";
874
+ seed: string;
875
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
876
+ }, {
877
+ version: 1;
878
+ style: "clay" | "pebble" | "shapes" | "letters";
879
+ seed: string;
880
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
881
+ }>;
882
+ export type BotAvatar = z.infer<typeof botAvatarSchema>;
883
+ export type BotIdentity = {
884
+ name: string;
885
+ description: string;
886
+ pictureUrl: string | null;
887
+ avatar?: BotAvatar | null;
888
+ };
889
+ export declare const botIdentityInputSchema: z.ZodObject<{
890
+ name: z.ZodString;
891
+ publicDescription: z.ZodDefault<z.ZodString>;
892
+ iconAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
893
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
894
+ version: z.ZodLiteral<1>;
895
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
896
+ seed: z.ZodString;
897
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
898
+ }, "strict", z.ZodTypeAny, {
899
+ version: 1;
900
+ style: "clay" | "pebble" | "shapes" | "letters";
901
+ seed: string;
902
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
903
+ }, {
904
+ version: 1;
905
+ style: "clay" | "pebble" | "shapes" | "letters";
906
+ seed: string;
907
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
908
+ }>>>;
909
+ }, "strict", z.ZodTypeAny, {
910
+ name: string;
911
+ publicDescription: string;
912
+ iconAssetId: string | null;
913
+ avatar?: {
914
+ version: 1;
915
+ style: "clay" | "pebble" | "shapes" | "letters";
916
+ seed: string;
917
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
918
+ } | null | undefined;
919
+ }, {
920
+ name: string;
921
+ publicDescription?: string | undefined;
922
+ iconAssetId?: string | null | undefined;
923
+ avatar?: {
924
+ version: 1;
925
+ style: "clay" | "pebble" | "shapes" | "letters";
926
+ seed: string;
927
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
928
+ } | null | undefined;
929
+ }>;
930
+ export type BotHelperAvailability = Record<'web_search' | 'audio_transcription', {
931
+ available: boolean;
932
+ message: string | null;
933
+ }>;
639
934
  export type Bot = {
935
+ /** Current service availability, separate from the owner's saved configuration. */
936
+ helperAvailability?: BotHelperAvailability;
937
+ publicDescription: string;
938
+ iconAssetId: string | null;
939
+ /** Saved generated design; null means an uploaded icon. Older Bots may omit it. */
940
+ avatar?: BotAvatar | null | undefined;
941
+ identity: BotIdentity;
942
+ /** Identity accepted by publication. Null until the Bot is published. */
943
+ publishedIdentity?: BotIdentity | null;
640
944
  files?: BotFileSettings;
641
945
  /** Named timezone for this Bot; absent means local time is unknown. */
642
946
  timezone?: string | null | undefined;
@@ -646,6 +950,10 @@ export type Bot = {
646
950
  };
647
951
  readiness: BotReadinessIssue[];
648
952
  triggers: BotTrigger[];
953
+ workflows?: Array<{
954
+ workflowId: string;
955
+ version: number | 'live';
956
+ }>;
649
957
  triggerStates: BotTriggerState[];
650
958
  revision: number;
651
959
  channels: PublishChannels;
@@ -656,6 +964,8 @@ export type Bot = {
656
964
  publishedAt: string | null;
657
965
  publishedConfiguration?: BotConfiguration | null;
658
966
  runState: BotRunState;
967
+ /** Server-projected activity, shared with the list. Tests are separate from published traffic. */
968
+ activityStatus?: BotStatus;
659
969
  pause: {
660
970
  reason: string;
661
971
  expiresAt: string | null;
@@ -700,7 +1010,7 @@ export type BotReadinessIssue = {
700
1010
  message: string;
701
1011
  };
702
1012
  /** Partial update. Nested objects replace the stored value for that key. */
703
- export type BotConfiguration = Pick<Bot, "name" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
1013
+ export type BotConfiguration = Pick<Bot, "name" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers" | "workflows">;
704
1014
  export type BotPatch = Partial<BotConfiguration>;
705
1015
  export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
706
1016
  kind: z.ZodLiteral<"app">;
@@ -717,32 +1027,32 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
717
1027
  answerTo: z.ZodEnum<["webhook", "none"]>;
718
1028
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
719
1029
  }, "strict", z.ZodTypeAny, {
1030
+ label: string;
720
1031
  kind: "app";
721
1032
  id: string;
722
1033
  enabled: boolean;
723
1034
  name: string;
724
1035
  variables: Record<string, unknown>;
725
1036
  subscriptionId: string;
726
- label: string;
727
1037
  providerKey: string;
728
1038
  eventTypes: string[];
729
1039
  runsAs: "none" | "field";
730
1040
  customerField: string;
731
1041
  instruction: string;
732
- answerTo: "webhook" | "none";
1042
+ answerTo: "none" | "webhook";
733
1043
  }, {
1044
+ label: string;
734
1045
  kind: "app";
735
1046
  id: string;
736
1047
  enabled: boolean;
737
1048
  name: string;
738
1049
  subscriptionId: string;
739
- label: string;
740
1050
  providerKey: string;
741
1051
  eventTypes: string[];
742
1052
  runsAs: "none" | "field";
743
1053
  customerField: string;
744
1054
  instruction: string;
745
- answerTo: "webhook" | "none";
1055
+ answerTo: "none" | "webhook";
746
1056
  variables?: Record<string, unknown> | undefined;
747
1057
  }>, z.ZodObject<{
748
1058
  kind: z.ZodLiteral<"webhook">;
@@ -765,7 +1075,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
765
1075
  runsAs: "none" | "field";
766
1076
  customerField: string;
767
1077
  instruction: string;
768
- answerTo: "webhook" | "none";
1078
+ answerTo: "none" | "webhook";
769
1079
  }, {
770
1080
  kind: "webhook";
771
1081
  id: string;
@@ -775,13 +1085,16 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
775
1085
  runsAs: "none" | "field";
776
1086
  customerField: string;
777
1087
  instruction: string;
778
- answerTo: "webhook" | "none";
1088
+ answerTo: "none" | "webhook";
779
1089
  variables?: Record<string, unknown> | undefined;
780
1090
  }>, z.ZodObject<{
781
1091
  kind: z.ZodLiteral<"schedule">;
782
1092
  tenantId: z.ZodString;
783
1093
  repeat: z.ZodEnum<["repeat", "once"]>;
784
- every: z.ZodEnum<["week", "day", "hour"]>;
1094
+ every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
1095
+ intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
1096
+ monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
1097
+ cron: z.ZodOptional<z.ZodString>;
785
1098
  days: z.ZodArray<z.ZodNumber, "many">;
786
1099
  time: z.ZodString;
787
1100
  date: z.ZodString;
@@ -795,7 +1108,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
795
1108
  answerTo: z.ZodEnum<["webhook", "none"]>;
796
1109
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
1110
  }, "strict", z.ZodTypeAny, {
798
- every: "week" | "day" | "hour";
1111
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
799
1112
  kind: "schedule";
800
1113
  date: string;
801
1114
  id: string;
@@ -803,31 +1116,37 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
803
1116
  enabled: boolean;
804
1117
  name: string;
805
1118
  variables: Record<string, unknown>;
806
- runsAs: "one" | "none";
1119
+ timezone: string;
1120
+ customerId: string;
1121
+ days: number[];
1122
+ runsAs: "none" | "one";
807
1123
  instruction: string;
808
- answerTo: "webhook" | "none";
1124
+ answerTo: "none" | "webhook";
809
1125
  repeat: "once" | "repeat";
810
- days: number[];
811
1126
  time: string;
812
- timezone: string;
813
- customerId: string;
1127
+ cron?: string | undefined;
1128
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
1129
+ monthDay?: number | "last" | undefined;
814
1130
  }, {
815
- every: "week" | "day" | "hour";
1131
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
816
1132
  kind: "schedule";
817
1133
  date: string;
818
1134
  id: string;
819
1135
  tenantId: string;
820
1136
  enabled: boolean;
821
1137
  name: string;
822
- runsAs: "one" | "none";
1138
+ timezone: string;
1139
+ customerId: string;
1140
+ days: number[];
1141
+ runsAs: "none" | "one";
823
1142
  instruction: string;
824
- answerTo: "webhook" | "none";
1143
+ answerTo: "none" | "webhook";
825
1144
  repeat: "once" | "repeat";
826
- days: number[];
827
1145
  time: string;
828
- timezone: string;
829
- customerId: string;
830
1146
  variables?: Record<string, unknown> | undefined;
1147
+ cron?: string | undefined;
1148
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
1149
+ monthDay?: number | "last" | undefined;
831
1150
  }>]>;
832
1151
  export type BotTrigger = z.infer<typeof botTriggerSchema>;
833
1152
  export type BotTriggerState = {
@@ -852,6 +1171,7 @@ export type ModelOption = {
852
1171
  bg?: string;
853
1172
  more?: boolean;
854
1173
  efforts?: ModelEffort[];
1174
+ defaultEffort?: ModelEffort | null;
855
1175
  };
856
1176
  export type CatalogApp = {
857
1177
  key: AppKey;
@@ -871,6 +1191,293 @@ export type PublishChannels = {
871
1191
  mcp: boolean;
872
1192
  team: boolean;
873
1193
  };
1194
+ /** Channel deployments are independent of SDK/MCP publication. Names never route messages. */
1195
+ export declare const botTeamProviderSchema: z.ZodEnum<["slack", "microsoft_teams"]>;
1196
+ export type BotTeamProvider = z.infer<typeof botTeamProviderSchema>;
1197
+ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
1198
+ provider: z.ZodEnum<["slack", "microsoft_teams"]>;
1199
+ connectedAccountId: z.ZodNullable<z.ZodString>;
1200
+ authConfigId: z.ZodNullable<z.ZodString>;
1201
+ approvedChannelIds: z.ZodArray<z.ZodString, "many">;
1202
+ channelAccess: z.ZodDefault<z.ZodEnum<["selected", "where_added"]>>;
1203
+ peopleAccess: z.ZodDefault<z.ZodEnum<["internal_members", "selected"]>>;
1204
+ approvedPersonIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1205
+ directMessages: z.ZodBoolean;
1206
+ threadHistory: z.ZodEnum<["admitted_messages", "platform_thread"]>;
1207
+ sharedContextAcknowledged: z.ZodBoolean;
1208
+ }, "strict", z.ZodTypeAny, {
1209
+ provider: "slack" | "microsoft_teams";
1210
+ connectedAccountId: string | null;
1211
+ authConfigId: string | null;
1212
+ approvedChannelIds: string[];
1213
+ channelAccess: "selected" | "where_added";
1214
+ peopleAccess: "selected" | "internal_members";
1215
+ approvedPersonIds: string[];
1216
+ directMessages: boolean;
1217
+ threadHistory: "admitted_messages" | "platform_thread";
1218
+ sharedContextAcknowledged: boolean;
1219
+ }, {
1220
+ provider: "slack" | "microsoft_teams";
1221
+ connectedAccountId: string | null;
1222
+ authConfigId: string | null;
1223
+ approvedChannelIds: string[];
1224
+ directMessages: boolean;
1225
+ threadHistory: "admitted_messages" | "platform_thread";
1226
+ sharedContextAcknowledged: boolean;
1227
+ channelAccess?: "selected" | "where_added" | undefined;
1228
+ peopleAccess?: "selected" | "internal_members" | undefined;
1229
+ approvedPersonIds?: string[] | undefined;
1230
+ }>, {
1231
+ provider: "slack" | "microsoft_teams";
1232
+ connectedAccountId: string | null;
1233
+ authConfigId: string | null;
1234
+ approvedChannelIds: string[];
1235
+ channelAccess: "selected" | "where_added";
1236
+ peopleAccess: "selected" | "internal_members";
1237
+ approvedPersonIds: string[];
1238
+ directMessages: boolean;
1239
+ threadHistory: "admitted_messages" | "platform_thread";
1240
+ sharedContextAcknowledged: boolean;
1241
+ }, {
1242
+ provider: "slack" | "microsoft_teams";
1243
+ connectedAccountId: string | null;
1244
+ authConfigId: string | null;
1245
+ approvedChannelIds: string[];
1246
+ directMessages: boolean;
1247
+ threadHistory: "admitted_messages" | "platform_thread";
1248
+ sharedContextAcknowledged: boolean;
1249
+ channelAccess?: "selected" | "where_added" | undefined;
1250
+ peopleAccess?: "selected" | "internal_members" | undefined;
1251
+ approvedPersonIds?: string[] | undefined;
1252
+ }>;
1253
+ export type BotTeamDeploymentInput = z.infer<typeof botTeamDeploymentInputSchema>;
1254
+ export type BotTeamReadinessIssue = {
1255
+ code: 'bot_unpublished' | 'bot_paused' | 'identity_missing' | 'identity_in_use' | 'account_unavailable' | 'installation_missing' | 'consent_required' | 'destination_unavailable' | 'destination_unsupported' | 'destination_required' | 'people_required' | 'shared_context_review_required' | 'publication_changed' | 'verification_unavailable';
1256
+ message: string;
1257
+ channelId?: string;
1258
+ };
1259
+ export type BotTeamIdentity = {
1260
+ appId: string;
1261
+ botId: string;
1262
+ name: string;
1263
+ workspaceId: string;
1264
+ workspaceName: string;
1265
+ logoUrl?: string;
1266
+ };
1267
+ export type BotTeamDestination = {
1268
+ id: string;
1269
+ name: string;
1270
+ teamId?: string;
1271
+ kind: 'public' | 'private' | 'standard' | 'shared';
1272
+ accessible: boolean;
1273
+ supported: boolean;
1274
+ reason?: string;
1275
+ };
1276
+ export type BotTeamDeployment = BotTeamDeploymentInput & {
1277
+ id: string;
1278
+ botId: string;
1279
+ revision: number;
1280
+ status: 'draft' | 'active' | 'disabled';
1281
+ identity: BotTeamIdentity | null;
1282
+ acceptedPublishedRevision: number | null;
1283
+ ingressUrl?: string;
1284
+ readiness: {
1285
+ ready: boolean;
1286
+ issues: BotTeamReadinessIssue[];
1287
+ };
1288
+ updatedAt: string;
1289
+ };
1290
+ export type BotTeamSetup = {
1291
+ provider: BotTeamProvider;
1292
+ accounts: Array<{
1293
+ id: string;
1294
+ name: string;
1295
+ status: string;
1296
+ authConfigId: string | null;
1297
+ }>;
1298
+ identity: BotTeamIdentity | null;
1299
+ destinations: BotTeamDestination[];
1300
+ issues: BotTeamReadinessIssue[];
1301
+ grantedScopes?: string[];
1302
+ people?: Array<{
1303
+ id: string;
1304
+ name: string;
1305
+ }>;
1306
+ peopleNextCursor?: string | null;
1307
+ installUrl?: string | null;
1308
+ /** Owner review for this selected installation and current identity, not another workspace. */
1309
+ appearanceReviewedAt?: string | null;
1310
+ registrations?: BotNativeApp[];
1311
+ };
1312
+ /** Older registrations enabled files in both personal chats and channels. */
1313
+ export declare const botNativeFeaturesSchema: z.ZodObject<{
1314
+ directMessages: z.ZodDefault<z.ZodBoolean>;
1315
+ threadHistory: z.ZodDefault<z.ZodEnum<["admitted_messages", "platform_thread"]>>;
1316
+ files: z.ZodDefault<z.ZodBoolean>;
1317
+ channelFiles: z.ZodDefault<z.ZodBoolean>;
1318
+ approvals: z.ZodDefault<z.ZodBoolean>;
1319
+ }, "strict", z.ZodTypeAny, {
1320
+ files: boolean;
1321
+ directMessages: boolean;
1322
+ threadHistory: "admitted_messages" | "platform_thread";
1323
+ channelFiles: boolean;
1324
+ approvals: boolean;
1325
+ }, {
1326
+ files?: boolean | undefined;
1327
+ directMessages?: boolean | undefined;
1328
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1329
+ channelFiles?: boolean | undefined;
1330
+ approvals?: boolean | undefined;
1331
+ }>;
1332
+ /** The registration is shared by this Bot's installations, never by different Bots. */
1333
+ export type BotNativeApp = {
1334
+ id: string;
1335
+ botId: string;
1336
+ provider: BotTeamProvider;
1337
+ revision: number;
1338
+ status: 'draft' | 'configured' | 'disabled';
1339
+ identity: BotIdentity;
1340
+ nativeAppId: string | null;
1341
+ clientId: string | null;
1342
+ homeTenantId: string | null;
1343
+ teamsManifestId: string | null;
1344
+ packageVersion: string;
1345
+ messagingEndpoint: string;
1346
+ redirectUrl: string;
1347
+ providerConsoleUrl: string;
1348
+ createUrl: string | null;
1349
+ manifest: Record<string, unknown> | null;
1350
+ packageUrl: string | null;
1351
+ requiredScopes: Array<{
1352
+ scope: string;
1353
+ reason: string;
1354
+ }>;
1355
+ credentials: {
1356
+ configured: boolean;
1357
+ verifiedAt: string | null;
1358
+ callbackVerifiedAt?: string | null;
1359
+ pendingRotation?: {
1360
+ version: number;
1361
+ callbackVerifiedAt: string | null;
1362
+ } | null;
1363
+ };
1364
+ appearance: {
1365
+ status: 'not_installed' | 'review_required' | 'update_required' | 'owner_reviewed';
1366
+ observedName: string | null;
1367
+ observedPictureUrl: string | null;
1368
+ reviewedAt?: string | null;
1369
+ };
1370
+ features: z.infer<typeof botNativeFeaturesSchema>;
1371
+ nextAction: 'configure' | 'credentials' | 'install' | 'verify' | 'activate' | 'reconnect';
1372
+ issues: Array<{
1373
+ code: string;
1374
+ message: string;
1375
+ }>;
1376
+ };
1377
+ export declare const botNativeAppCreateSchema: z.ZodObject<{
1378
+ provider: z.ZodEnum<["slack", "microsoft_teams"]>;
1379
+ requestId: z.ZodString;
1380
+ }, "strict", z.ZodTypeAny, {
1381
+ provider: "slack" | "microsoft_teams";
1382
+ requestId: string;
1383
+ }, {
1384
+ provider: "slack" | "microsoft_teams";
1385
+ requestId: string;
1386
+ }>;
1387
+ export declare const botNativeAppUpdateSchema: z.ZodObject<{
1388
+ revision: z.ZodNumber;
1389
+ features: z.ZodOptional<z.ZodObject<{
1390
+ files: z.ZodDefault<z.ZodBoolean>;
1391
+ directMessages: z.ZodDefault<z.ZodBoolean>;
1392
+ threadHistory: z.ZodDefault<z.ZodEnum<["admitted_messages", "platform_thread"]>>;
1393
+ channelFiles: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1394
+ approvals: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1395
+ }, "strict", z.ZodTypeAny, {
1396
+ files: boolean;
1397
+ directMessages: boolean;
1398
+ threadHistory: "admitted_messages" | "platform_thread";
1399
+ channelFiles?: boolean | undefined;
1400
+ approvals?: boolean | undefined;
1401
+ }, {
1402
+ files?: boolean | undefined;
1403
+ directMessages?: boolean | undefined;
1404
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1405
+ channelFiles?: boolean | undefined;
1406
+ approvals?: boolean | undefined;
1407
+ }>>;
1408
+ clientId: z.ZodOptional<z.ZodString>;
1409
+ nativeAppId: z.ZodOptional<z.ZodString>;
1410
+ homeTenantId: z.ZodOptional<z.ZodString>;
1411
+ appearanceAccountId: z.ZodOptional<z.ZodString>;
1412
+ credentials: z.ZodOptional<z.ZodObject<{
1413
+ clientSecret: z.ZodString;
1414
+ signingSecret: z.ZodOptional<z.ZodString>;
1415
+ }, "strict", z.ZodTypeAny, {
1416
+ clientSecret: string;
1417
+ signingSecret?: string | undefined;
1418
+ }, {
1419
+ clientSecret: string;
1420
+ signingSecret?: string | undefined;
1421
+ }>>;
1422
+ action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance"]>>;
1423
+ }, "strict", z.ZodTypeAny, {
1424
+ revision: number;
1425
+ action: "save" | "verify" | "disable" | "review_appearance";
1426
+ credentials?: {
1427
+ clientSecret: string;
1428
+ signingSecret?: string | undefined;
1429
+ } | undefined;
1430
+ features?: {
1431
+ files: boolean;
1432
+ directMessages: boolean;
1433
+ threadHistory: "admitted_messages" | "platform_thread";
1434
+ channelFiles?: boolean | undefined;
1435
+ approvals?: boolean | undefined;
1436
+ } | undefined;
1437
+ clientId?: string | undefined;
1438
+ nativeAppId?: string | undefined;
1439
+ homeTenantId?: string | undefined;
1440
+ appearanceAccountId?: string | undefined;
1441
+ }, {
1442
+ revision: number;
1443
+ action?: "save" | "verify" | "disable" | "review_appearance" | undefined;
1444
+ credentials?: {
1445
+ clientSecret: string;
1446
+ signingSecret?: string | undefined;
1447
+ } | undefined;
1448
+ features?: {
1449
+ files?: boolean | undefined;
1450
+ directMessages?: boolean | undefined;
1451
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1452
+ channelFiles?: boolean | undefined;
1453
+ approvals?: boolean | undefined;
1454
+ } | undefined;
1455
+ clientId?: string | undefined;
1456
+ nativeAppId?: string | undefined;
1457
+ homeTenantId?: string | undefined;
1458
+ appearanceAccountId?: string | undefined;
1459
+ }>;
1460
+ export type BotTeamRunSource = {
1461
+ deploymentId: string;
1462
+ provider: BotTeamProvider;
1463
+ workspaceId: string;
1464
+ destinationId: string;
1465
+ threadId: string;
1466
+ audience: 'private' | 'shared';
1467
+ sender: {
1468
+ id: string;
1469
+ name: string;
1470
+ };
1471
+ messageId: string;
1472
+ sourceUrl?: string;
1473
+ delivery: {
1474
+ status: 'pending' | 'retrying' | 'sent' | 'failed' | 'unknown' | 'suppressed';
1475
+ id?: string;
1476
+ canRetry?: boolean;
1477
+ messageId?: string;
1478
+ error?: string;
1479
+ };
1480
+ };
874
1481
  export type PublishCheck = {
875
1482
  name: string;
876
1483
  result: string;
@@ -937,10 +1544,11 @@ export type BotCapabilityFact = {
937
1544
  id: string;
938
1545
  status: 'enabled' | 'disabled' | 'sample';
939
1546
  owner: 'project_owner' | 'customer';
940
- account?: 'project' | 'customer';
1547
+ account?: 'project' | 'customer' | 'deployment';
1548
+ requiresPrivateConversation?: boolean;
941
1549
  };
942
1550
  /** Configuration facts are safe to disclose without granting tool execution. */
943
- export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean): BotCapabilityFact[];
1551
+ export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean, sharedConversation?: boolean): BotCapabilityFact[];
944
1552
  export type BotConnectionAction = {
945
1553
  kind: 'connection';
946
1554
  id: string;
@@ -957,28 +1565,44 @@ export type BotConnectionAction = {
957
1565
  intent?: 'connect' | 'reconnect';
958
1566
  canResume?: boolean;
959
1567
  };
960
- export type BotWaitingOperation = BotConnectionAction | {
1568
+ export type BotWaitingOperation = {
1569
+ kind: 'funding';
1570
+ id: string;
1571
+ reason: string;
1572
+ canResume: true;
1573
+ } | BotConnectionAction | {
961
1574
  kind: 'execution';
962
1575
  id: string;
1576
+ } | {
1577
+ kind: 'attachment_preparation';
1578
+ id: string;
1579
+ fileId: string;
963
1580
  };
964
1581
  export declare const botRequirementSchema: z.ZodObject<{
965
1582
  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"]>;
1583
+ code: z.ZodEnum<["bot_not_configured", "bot_capability_disabled", "bot_sample_mode", "bot_owner_connection_required", "bot_private_context_required", "provider_not_found", "provider_planned", "provider_blocked"]>;
1584
+ owner: z.ZodEnum<["project_owner", "stacklink", "customer"]>;
1585
+ nextAction: z.ZodEnum<["configure_bot", "repair_connection", "use_live_data", "contact_administrator", "direct_message", "unavailable"]>;
969
1586
  }, "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";
1587
+ code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "bot_private_context_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
971
1588
  capabilityId: string;
972
- owner: "project_owner" | "stacklink";
973
- nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
1589
+ owner: "customer" | "project_owner" | "stacklink";
1590
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator" | "direct_message";
974
1591
  }, {
975
- code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
1592
+ code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "bot_private_context_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
976
1593
  capabilityId: string;
977
- owner: "project_owner" | "stacklink";
978
- nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
1594
+ owner: "customer" | "project_owner" | "stacklink";
1595
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator" | "direct_message";
979
1596
  }>;
980
1597
  export type BotRequirement = z.infer<typeof botRequirementSchema>;
1598
+ export type BotWebSource = {
1599
+ id: string;
1600
+ url: string;
1601
+ title: string;
1602
+ };
981
1603
  export type BotRun = {
1604
+ webSources?: BotWebSource[];
1605
+ team?: BotTeamRunSource;
982
1606
  resumeCount?: number;
983
1607
  attachments?: BotAttachment[];
984
1608
  outputs?: BotOutputFile[];
@@ -1028,6 +1652,15 @@ export type BotDelivery = {
1028
1652
  processedAt: string | null;
1029
1653
  };
1030
1654
  export type BotRunDisplay = {
1655
+ source?: {
1656
+ kind: BotRunSource;
1657
+ clientName: string | null;
1658
+ };
1659
+ queue?: {
1660
+ position: number;
1661
+ maximumFollowups: number;
1662
+ held: boolean;
1663
+ } | null;
1031
1664
  turnNumber: number;
1032
1665
  trigger: {
1033
1666
  id: string;
@@ -1057,7 +1690,7 @@ export type BotRunDisplay = {
1057
1690
  items: BotDelivery[];
1058
1691
  };
1059
1692
  pricing: {
1060
- status: 'pending';
1693
+ status: 'priced' | 'pending' | 'not_configured';
1061
1694
  modelCostUsd: number | null;
1062
1695
  };
1063
1696
  };
@@ -1090,15 +1723,15 @@ export declare const botBindingSchema: z.ZodObject<{
1090
1723
  target: z.ZodEnum<["path", "query", "header", "body"]>;
1091
1724
  key: z.ZodString;
1092
1725
  }, "strict", z.ZodTypeAny, {
1093
- path: string[];
1094
- source: "variable" | "context" | "model" | "identity";
1095
- target: "body" | "path" | "query" | "header";
1096
1726
  key: string;
1097
- }, {
1727
+ source: "model" | "variable" | "context" | "identity";
1098
1728
  path: string[];
1099
- source: "variable" | "context" | "model" | "identity";
1100
- target: "body" | "path" | "query" | "header";
1729
+ target: "path" | "body" | "query" | "header";
1730
+ }, {
1101
1731
  key: string;
1732
+ source: "model" | "variable" | "context" | "identity";
1733
+ path: string[];
1734
+ target: "path" | "body" | "query" | "header";
1102
1735
  }>;
1103
1736
  export declare const botApiCallSchema: z.ZodObject<{
1104
1737
  id: z.ZodString;
@@ -1123,28 +1756,28 @@ export declare const botApiCallSchema: z.ZodObject<{
1123
1756
  target: z.ZodEnum<["path", "query", "header", "body"]>;
1124
1757
  key: z.ZodString;
1125
1758
  }, "strict", z.ZodTypeAny, {
1126
- path: string[];
1127
- source: "variable" | "context" | "model" | "identity";
1128
- target: "body" | "path" | "query" | "header";
1129
1759
  key: string;
1130
- }, {
1760
+ source: "model" | "variable" | "context" | "identity";
1131
1761
  path: string[];
1132
- source: "variable" | "context" | "model" | "identity";
1133
- target: "body" | "path" | "query" | "header";
1762
+ target: "path" | "body" | "query" | "header";
1763
+ }, {
1134
1764
  key: string;
1765
+ source: "model" | "variable" | "context" | "identity";
1766
+ path: string[];
1767
+ target: "path" | "body" | "query" | "header";
1135
1768
  }>, "many">>;
1136
1769
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1137
1770
  sample: z.ZodOptional<z.ZodUnknown>;
1138
1771
  }, "strict", z.ZodTypeAny, {
1139
- headers: Record<string, string>;
1140
- body: string;
1141
1772
  path: string;
1142
1773
  id: string;
1143
1774
  name: string;
1775
+ headers: Record<string, string>;
1776
+ body: string;
1144
1777
  query: Record<string, string>;
1145
1778
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1146
- bodyType: "json" | "xml" | "form" | "gql";
1147
- readAs: "json" | "xml" | "text" | "auto";
1779
+ bodyType: "json" | "form" | "xml" | "gql";
1780
+ readAs: "text" | "json" | "xml" | "auto";
1148
1781
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1149
1782
  summary: string;
1150
1783
  latencyMs: number | null;
@@ -1152,37 +1785,37 @@ export declare const botApiCallSchema: z.ZodObject<{
1152
1785
  effects: "read" | "write" | "unclassified";
1153
1786
  permission: "allow" | "ask" | "block";
1154
1787
  bindings: {
1155
- path: string[];
1156
- source: "variable" | "context" | "model" | "identity";
1157
- target: "body" | "path" | "query" | "header";
1158
1788
  key: string;
1789
+ source: "model" | "variable" | "context" | "identity";
1790
+ path: string[];
1791
+ target: "path" | "body" | "query" | "header";
1159
1792
  }[];
1160
- sample?: unknown;
1161
1793
  inputSchema?: Record<string, unknown> | undefined;
1794
+ sample?: unknown;
1162
1795
  responseSchema?: Record<string, unknown> | undefined;
1163
1796
  }, {
1164
1797
  path: string;
1165
1798
  id: string;
1166
1799
  name: string;
1167
1800
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1168
- bodyType: "json" | "xml" | "form" | "gql";
1169
- readAs: "json" | "xml" | "text" | "auto";
1801
+ bodyType: "json" | "form" | "xml" | "gql";
1802
+ readAs: "text" | "json" | "xml" | "auto";
1170
1803
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1171
1804
  summary: string;
1172
1805
  latencyMs: number | null;
1173
1806
  visibleFields: string[];
1174
1807
  effects: "read" | "write" | "unclassified";
1808
+ inputSchema?: Record<string, unknown> | undefined;
1175
1809
  headers?: Record<string, string> | undefined;
1176
1810
  body?: string | undefined;
1177
1811
  sample?: unknown;
1178
1812
  query?: Record<string, string> | undefined;
1179
1813
  permission?: "allow" | "ask" | "block" | undefined;
1180
- inputSchema?: Record<string, unknown> | undefined;
1181
1814
  bindings?: {
1182
- path: string[];
1183
- source: "variable" | "context" | "model" | "identity";
1184
- target: "body" | "path" | "query" | "header";
1185
1815
  key: string;
1816
+ source: "model" | "variable" | "context" | "identity";
1817
+ path: string[];
1818
+ target: "path" | "body" | "query" | "header";
1186
1819
  }[] | undefined;
1187
1820
  responseSchema?: Record<string, unknown> | undefined;
1188
1821
  }>;
@@ -1219,28 +1852,28 @@ export declare const botApiSchema: z.ZodObject<{
1219
1852
  target: z.ZodEnum<["path", "query", "header", "body"]>;
1220
1853
  key: z.ZodString;
1221
1854
  }, "strict", z.ZodTypeAny, {
1222
- path: string[];
1223
- source: "variable" | "context" | "model" | "identity";
1224
- target: "body" | "path" | "query" | "header";
1225
1855
  key: string;
1226
- }, {
1856
+ source: "model" | "variable" | "context" | "identity";
1227
1857
  path: string[];
1228
- source: "variable" | "context" | "model" | "identity";
1229
- target: "body" | "path" | "query" | "header";
1858
+ target: "path" | "body" | "query" | "header";
1859
+ }, {
1230
1860
  key: string;
1861
+ source: "model" | "variable" | "context" | "identity";
1862
+ path: string[];
1863
+ target: "path" | "body" | "query" | "header";
1231
1864
  }>, "many">>;
1232
1865
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1233
1866
  sample: z.ZodOptional<z.ZodUnknown>;
1234
1867
  }, "strict", z.ZodTypeAny, {
1235
- headers: Record<string, string>;
1236
- body: string;
1237
1868
  path: string;
1238
1869
  id: string;
1239
1870
  name: string;
1871
+ headers: Record<string, string>;
1872
+ body: string;
1240
1873
  query: Record<string, string>;
1241
1874
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1242
- bodyType: "json" | "xml" | "form" | "gql";
1243
- readAs: "json" | "xml" | "text" | "auto";
1875
+ bodyType: "json" | "form" | "xml" | "gql";
1876
+ readAs: "text" | "json" | "xml" | "auto";
1244
1877
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1245
1878
  summary: string;
1246
1879
  latencyMs: number | null;
@@ -1248,58 +1881,51 @@ export declare const botApiSchema: z.ZodObject<{
1248
1881
  effects: "read" | "write" | "unclassified";
1249
1882
  permission: "allow" | "ask" | "block";
1250
1883
  bindings: {
1251
- path: string[];
1252
- source: "variable" | "context" | "model" | "identity";
1253
- target: "body" | "path" | "query" | "header";
1254
1884
  key: string;
1885
+ source: "model" | "variable" | "context" | "identity";
1886
+ path: string[];
1887
+ target: "path" | "body" | "query" | "header";
1255
1888
  }[];
1256
- sample?: unknown;
1257
1889
  inputSchema?: Record<string, unknown> | undefined;
1890
+ sample?: unknown;
1258
1891
  responseSchema?: Record<string, unknown> | undefined;
1259
1892
  }, {
1260
1893
  path: string;
1261
1894
  id: string;
1262
1895
  name: string;
1263
1896
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1264
- bodyType: "json" | "xml" | "form" | "gql";
1265
- readAs: "json" | "xml" | "text" | "auto";
1897
+ bodyType: "json" | "form" | "xml" | "gql";
1898
+ readAs: "text" | "json" | "xml" | "auto";
1266
1899
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1267
1900
  summary: string;
1268
1901
  latencyMs: number | null;
1269
1902
  visibleFields: string[];
1270
1903
  effects: "read" | "write" | "unclassified";
1904
+ inputSchema?: Record<string, unknown> | undefined;
1271
1905
  headers?: Record<string, string> | undefined;
1272
1906
  body?: string | undefined;
1273
1907
  sample?: unknown;
1274
1908
  query?: Record<string, string> | undefined;
1275
1909
  permission?: "allow" | "ask" | "block" | undefined;
1276
- inputSchema?: Record<string, unknown> | undefined;
1277
1910
  bindings?: {
1278
- path: string[];
1279
- source: "variable" | "context" | "model" | "identity";
1280
- target: "body" | "path" | "query" | "header";
1281
1911
  key: string;
1912
+ source: "model" | "variable" | "context" | "identity";
1913
+ path: string[];
1914
+ target: "path" | "body" | "query" | "header";
1282
1915
  }[] | undefined;
1283
1916
  responseSchema?: Record<string, unknown> | undefined;
1284
1917
  }>, "many">;
1285
1918
  }, "strict", z.ZodTypeAny, {
1286
- kind: "http" | "graphql" | "openapi";
1287
- id: string;
1288
- name: string;
1289
- host: string;
1290
- baseUrl: string;
1291
- auth: "one" | "each" | "oauth" | "none";
1292
- sendCustomerIdentity: boolean;
1293
1919
  calls: {
1294
- headers: Record<string, string>;
1295
- body: string;
1296
1920
  path: string;
1297
1921
  id: string;
1298
1922
  name: string;
1923
+ headers: Record<string, string>;
1924
+ body: string;
1299
1925
  query: Record<string, string>;
1300
1926
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1301
- bodyType: "json" | "xml" | "form" | "gql";
1302
- readAs: "json" | "xml" | "text" | "auto";
1927
+ bodyType: "json" | "form" | "xml" | "gql";
1928
+ readAs: "text" | "json" | "xml" | "auto";
1303
1929
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1304
1930
  summary: string;
1305
1931
  latencyMs: number | null;
@@ -1307,67 +1933,92 @@ export declare const botApiSchema: z.ZodObject<{
1307
1933
  effects: "read" | "write" | "unclassified";
1308
1934
  permission: "allow" | "ask" | "block";
1309
1935
  bindings: {
1310
- path: string[];
1311
- source: "variable" | "context" | "model" | "identity";
1312
- target: "body" | "path" | "query" | "header";
1313
1936
  key: string;
1937
+ source: "model" | "variable" | "context" | "identity";
1938
+ path: string[];
1939
+ target: "path" | "body" | "query" | "header";
1314
1940
  }[];
1315
- sample?: unknown;
1316
1941
  inputSchema?: Record<string, unknown> | undefined;
1942
+ sample?: unknown;
1317
1943
  responseSchema?: Record<string, unknown> | undefined;
1318
1944
  }[];
1319
- credentialId?: string | undefined;
1320
- authHeader?: string | undefined;
1321
- }, {
1322
1945
  kind: "http" | "graphql" | "openapi";
1323
1946
  id: string;
1324
1947
  name: string;
1325
1948
  host: string;
1326
1949
  baseUrl: string;
1327
- auth: "one" | "each" | "oauth" | "none";
1950
+ auth: "none" | "one" | "each" | "oauth";
1328
1951
  sendCustomerIdentity: boolean;
1952
+ credentialId?: string | undefined;
1953
+ authHeader?: string | undefined;
1954
+ }, {
1329
1955
  calls: {
1330
1956
  path: string;
1331
1957
  id: string;
1332
1958
  name: string;
1333
1959
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1334
- bodyType: "json" | "xml" | "form" | "gql";
1335
- readAs: "json" | "xml" | "text" | "auto";
1960
+ bodyType: "json" | "form" | "xml" | "gql";
1961
+ readAs: "text" | "json" | "xml" | "auto";
1336
1962
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1337
1963
  summary: string;
1338
1964
  latencyMs: number | null;
1339
1965
  visibleFields: string[];
1340
1966
  effects: "read" | "write" | "unclassified";
1967
+ inputSchema?: Record<string, unknown> | undefined;
1341
1968
  headers?: Record<string, string> | undefined;
1342
1969
  body?: string | undefined;
1343
1970
  sample?: unknown;
1344
1971
  query?: Record<string, string> | undefined;
1345
1972
  permission?: "allow" | "ask" | "block" | undefined;
1346
- inputSchema?: Record<string, unknown> | undefined;
1347
1973
  bindings?: {
1348
- path: string[];
1349
- source: "variable" | "context" | "model" | "identity";
1350
- target: "body" | "path" | "query" | "header";
1351
1974
  key: string;
1975
+ source: "model" | "variable" | "context" | "identity";
1976
+ path: string[];
1977
+ target: "path" | "body" | "query" | "header";
1352
1978
  }[] | undefined;
1353
1979
  responseSchema?: Record<string, unknown> | undefined;
1354
1980
  }[];
1981
+ kind: "http" | "graphql" | "openapi";
1982
+ id: string;
1983
+ name: string;
1984
+ host: string;
1985
+ baseUrl: string;
1986
+ auth: "none" | "one" | "each" | "oauth";
1987
+ sendCustomerIdentity: boolean;
1355
1988
  credentialId?: string | undefined;
1356
1989
  authHeader?: string | undefined;
1357
1990
  }>;
1358
1991
  export declare const botConfigurationSchema: z.ZodObject<{
1359
1992
  name: z.ZodString;
1993
+ publicDescription: z.ZodDefault<z.ZodString>;
1994
+ iconAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1995
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1996
+ version: z.ZodLiteral<1>;
1997
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
1998
+ seed: z.ZodString;
1999
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ version: 1;
2002
+ style: "clay" | "pebble" | "shapes" | "letters";
2003
+ seed: string;
2004
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
2005
+ }, {
2006
+ version: 1;
2007
+ style: "clay" | "pebble" | "shapes" | "letters";
2008
+ seed: string;
2009
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
2010
+ }>>>;
1360
2011
  files: z.ZodDefault<z.ZodObject<{
1361
2012
  enabled: z.ZodBoolean;
1362
2013
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
1363
2014
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
1364
2015
  }, "strict", z.ZodTypeAny, {
1365
2016
  enabled: boolean;
1366
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2017
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
1367
2018
  bigSpreadsheets: "workbench" | "preview";
1368
2019
  }, {
1369
2020
  enabled: boolean;
1370
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2021
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
1371
2022
  bigSpreadsheets: "workbench" | "preview";
1372
2023
  }>>;
1373
2024
  timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
@@ -1386,32 +2037,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
1386
2037
  answerTo: z.ZodEnum<["webhook", "none"]>;
1387
2038
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1388
2039
  }, "strict", z.ZodTypeAny, {
2040
+ label: string;
1389
2041
  kind: "app";
1390
2042
  id: string;
1391
2043
  enabled: boolean;
1392
2044
  name: string;
1393
2045
  variables: Record<string, unknown>;
1394
2046
  subscriptionId: string;
1395
- label: string;
1396
2047
  providerKey: string;
1397
2048
  eventTypes: string[];
1398
2049
  runsAs: "none" | "field";
1399
2050
  customerField: string;
1400
2051
  instruction: string;
1401
- answerTo: "webhook" | "none";
2052
+ answerTo: "none" | "webhook";
1402
2053
  }, {
2054
+ label: string;
1403
2055
  kind: "app";
1404
2056
  id: string;
1405
2057
  enabled: boolean;
1406
2058
  name: string;
1407
2059
  subscriptionId: string;
1408
- label: string;
1409
2060
  providerKey: string;
1410
2061
  eventTypes: string[];
1411
2062
  runsAs: "none" | "field";
1412
2063
  customerField: string;
1413
2064
  instruction: string;
1414
- answerTo: "webhook" | "none";
2065
+ answerTo: "none" | "webhook";
1415
2066
  variables?: Record<string, unknown> | undefined;
1416
2067
  }>, z.ZodObject<{
1417
2068
  kind: z.ZodLiteral<"webhook">;
@@ -1434,7 +2085,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1434
2085
  runsAs: "none" | "field";
1435
2086
  customerField: string;
1436
2087
  instruction: string;
1437
- answerTo: "webhook" | "none";
2088
+ answerTo: "none" | "webhook";
1438
2089
  }, {
1439
2090
  kind: "webhook";
1440
2091
  id: string;
@@ -1444,13 +2095,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
1444
2095
  runsAs: "none" | "field";
1445
2096
  customerField: string;
1446
2097
  instruction: string;
1447
- answerTo: "webhook" | "none";
2098
+ answerTo: "none" | "webhook";
1448
2099
  variables?: Record<string, unknown> | undefined;
1449
2100
  }>, z.ZodObject<{
1450
2101
  kind: z.ZodLiteral<"schedule">;
1451
2102
  tenantId: z.ZodString;
1452
2103
  repeat: z.ZodEnum<["repeat", "once"]>;
1453
- every: z.ZodEnum<["week", "day", "hour"]>;
2104
+ every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
2105
+ intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
2106
+ monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
2107
+ cron: z.ZodOptional<z.ZodString>;
1454
2108
  days: z.ZodArray<z.ZodNumber, "many">;
1455
2109
  time: z.ZodString;
1456
2110
  date: z.ZodString;
@@ -1464,7 +2118,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1464
2118
  answerTo: z.ZodEnum<["webhook", "none"]>;
1465
2119
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1466
2120
  }, "strict", z.ZodTypeAny, {
1467
- every: "week" | "day" | "hour";
2121
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
1468
2122
  kind: "schedule";
1469
2123
  date: string;
1470
2124
  id: string;
@@ -1472,41 +2126,57 @@ export declare const botConfigurationSchema: z.ZodObject<{
1472
2126
  enabled: boolean;
1473
2127
  name: string;
1474
2128
  variables: Record<string, unknown>;
1475
- runsAs: "one" | "none";
2129
+ timezone: string;
2130
+ customerId: string;
2131
+ days: number[];
2132
+ runsAs: "none" | "one";
1476
2133
  instruction: string;
1477
- answerTo: "webhook" | "none";
2134
+ answerTo: "none" | "webhook";
1478
2135
  repeat: "once" | "repeat";
1479
- days: number[];
1480
2136
  time: string;
1481
- timezone: string;
1482
- customerId: string;
2137
+ cron?: string | undefined;
2138
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
2139
+ monthDay?: number | "last" | undefined;
1483
2140
  }, {
1484
- every: "week" | "day" | "hour";
2141
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
1485
2142
  kind: "schedule";
1486
2143
  date: string;
1487
2144
  id: string;
1488
2145
  tenantId: string;
1489
2146
  enabled: boolean;
1490
2147
  name: string;
1491
- runsAs: "one" | "none";
2148
+ timezone: string;
2149
+ customerId: string;
2150
+ days: number[];
2151
+ runsAs: "none" | "one";
1492
2152
  instruction: string;
1493
- answerTo: "webhook" | "none";
2153
+ answerTo: "none" | "webhook";
1494
2154
  repeat: "once" | "repeat";
1495
- days: number[];
1496
2155
  time: string;
1497
- timezone: string;
1498
- customerId: string;
1499
2156
  variables?: Record<string, unknown> | undefined;
2157
+ cron?: string | undefined;
2158
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
2159
+ monthDay?: number | "last" | undefined;
1500
2160
  }>]>, "many">>;
2161
+ workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
2162
+ workflowId: z.ZodString;
2163
+ version: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"live">]>;
2164
+ }, "strict", z.ZodTypeAny, {
2165
+ version: number | "live";
2166
+ workflowId: string;
2167
+ }, {
2168
+ version: number | "live";
2169
+ workflowId: string;
2170
+ }>, "many">>;
1501
2171
  model: z.ZodObject<{
1502
2172
  id: z.ZodString;
1503
- effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
2173
+ effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
1504
2174
  }, "strict", z.ZodTypeAny, {
1505
2175
  id: string;
1506
- effort: "low" | "medium" | "high" | "xhigh";
2176
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
1507
2177
  }, {
1508
2178
  id: string;
1509
- effort: "low" | "medium" | "high" | "xhigh";
2179
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
1510
2180
  }>;
1511
2181
  instructions: z.ZodObject<{
1512
2182
  text: z.ZodString;
@@ -1575,6 +2245,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
1575
2245
  }, "strict", z.ZodTypeAny, {
1576
2246
  id: string;
1577
2247
  name: string;
2248
+ cases: {
2249
+ text: string;
2250
+ }[];
1578
2251
  files: {
1579
2252
  name: string;
1580
2253
  content: string;
@@ -1583,9 +2256,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
1583
2256
  summary: string;
1584
2257
  icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
1585
2258
  load: "auto" | "always";
1586
- cases: {
1587
- text: string;
1588
- }[];
1589
2259
  exceptions: {
1590
2260
  text: string;
1591
2261
  }[];
@@ -1601,12 +2271,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
1601
2271
  }, {
1602
2272
  id: string;
1603
2273
  name: string;
1604
- summary: string;
1605
- icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
1606
- load: "auto" | "always";
1607
2274
  cases: {
1608
2275
  text: string;
1609
2276
  }[];
2277
+ summary: string;
2278
+ icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
2279
+ load: "auto" | "always";
1610
2280
  exceptions: {
1611
2281
  text: string;
1612
2282
  }[];
@@ -1679,7 +2349,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1679
2349
  enabled: boolean;
1680
2350
  files: "per_customer" | "per_run";
1681
2351
  configured: boolean;
1682
- size: "medium" | "small" | "large";
2352
+ size: "medium" | "large" | "small";
1683
2353
  access: "allow" | "ask" | "block";
1684
2354
  languages: string[];
1685
2355
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
@@ -1687,7 +2357,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1687
2357
  enabled: boolean;
1688
2358
  files: "per_customer" | "per_run";
1689
2359
  configured: boolean;
1690
- size: "medium" | "small" | "large";
2360
+ size: "medium" | "large" | "small";
1691
2361
  access: "allow" | "ask" | "block";
1692
2362
  languages: string[];
1693
2363
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
@@ -1729,28 +2399,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
1729
2399
  target: z.ZodEnum<["path", "query", "header", "body"]>;
1730
2400
  key: z.ZodString;
1731
2401
  }, "strict", z.ZodTypeAny, {
1732
- path: string[];
1733
- source: "variable" | "context" | "model" | "identity";
1734
- target: "body" | "path" | "query" | "header";
1735
2402
  key: string;
1736
- }, {
2403
+ source: "model" | "variable" | "context" | "identity";
1737
2404
  path: string[];
1738
- source: "variable" | "context" | "model" | "identity";
1739
- target: "body" | "path" | "query" | "header";
2405
+ target: "path" | "body" | "query" | "header";
2406
+ }, {
1740
2407
  key: string;
2408
+ source: "model" | "variable" | "context" | "identity";
2409
+ path: string[];
2410
+ target: "path" | "body" | "query" | "header";
1741
2411
  }>, "many">>;
1742
2412
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1743
2413
  sample: z.ZodOptional<z.ZodUnknown>;
1744
2414
  }, "strict", z.ZodTypeAny, {
1745
- headers: Record<string, string>;
1746
- body: string;
1747
2415
  path: string;
1748
2416
  id: string;
1749
2417
  name: string;
2418
+ headers: Record<string, string>;
2419
+ body: string;
1750
2420
  query: Record<string, string>;
1751
2421
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1752
- bodyType: "json" | "xml" | "form" | "gql";
1753
- readAs: "json" | "xml" | "text" | "auto";
2422
+ bodyType: "json" | "form" | "xml" | "gql";
2423
+ readAs: "text" | "json" | "xml" | "auto";
1754
2424
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1755
2425
  summary: string;
1756
2426
  latencyMs: number | null;
@@ -1758,58 +2428,51 @@ export declare const botConfigurationSchema: z.ZodObject<{
1758
2428
  effects: "read" | "write" | "unclassified";
1759
2429
  permission: "allow" | "ask" | "block";
1760
2430
  bindings: {
1761
- path: string[];
1762
- source: "variable" | "context" | "model" | "identity";
1763
- target: "body" | "path" | "query" | "header";
1764
2431
  key: string;
2432
+ source: "model" | "variable" | "context" | "identity";
2433
+ path: string[];
2434
+ target: "path" | "body" | "query" | "header";
1765
2435
  }[];
1766
- sample?: unknown;
1767
2436
  inputSchema?: Record<string, unknown> | undefined;
2437
+ sample?: unknown;
1768
2438
  responseSchema?: Record<string, unknown> | undefined;
1769
2439
  }, {
1770
2440
  path: string;
1771
2441
  id: string;
1772
2442
  name: string;
1773
2443
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1774
- bodyType: "json" | "xml" | "form" | "gql";
1775
- readAs: "json" | "xml" | "text" | "auto";
2444
+ bodyType: "json" | "form" | "xml" | "gql";
2445
+ readAs: "text" | "json" | "xml" | "auto";
1776
2446
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1777
2447
  summary: string;
1778
2448
  latencyMs: number | null;
1779
2449
  visibleFields: string[];
1780
2450
  effects: "read" | "write" | "unclassified";
2451
+ inputSchema?: Record<string, unknown> | undefined;
1781
2452
  headers?: Record<string, string> | undefined;
1782
2453
  body?: string | undefined;
1783
2454
  sample?: unknown;
1784
2455
  query?: Record<string, string> | undefined;
1785
2456
  permission?: "allow" | "ask" | "block" | undefined;
1786
- inputSchema?: Record<string, unknown> | undefined;
1787
2457
  bindings?: {
1788
- path: string[];
1789
- source: "variable" | "context" | "model" | "identity";
1790
- target: "body" | "path" | "query" | "header";
1791
2458
  key: string;
2459
+ source: "model" | "variable" | "context" | "identity";
2460
+ path: string[];
2461
+ target: "path" | "body" | "query" | "header";
1792
2462
  }[] | undefined;
1793
2463
  responseSchema?: Record<string, unknown> | undefined;
1794
2464
  }>, "many">;
1795
2465
  }, "strict", z.ZodTypeAny, {
1796
- kind: "http" | "graphql" | "openapi";
1797
- id: string;
1798
- name: string;
1799
- host: string;
1800
- baseUrl: string;
1801
- auth: "one" | "each" | "oauth" | "none";
1802
- sendCustomerIdentity: boolean;
1803
2466
  calls: {
1804
- headers: Record<string, string>;
1805
- body: string;
1806
2467
  path: string;
1807
2468
  id: string;
1808
2469
  name: string;
2470
+ headers: Record<string, string>;
2471
+ body: string;
1809
2472
  query: Record<string, string>;
1810
2473
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1811
- bodyType: "json" | "xml" | "form" | "gql";
1812
- readAs: "json" | "xml" | "text" | "auto";
2474
+ bodyType: "json" | "form" | "xml" | "gql";
2475
+ readAs: "text" | "json" | "xml" | "auto";
1813
2476
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1814
2477
  summary: string;
1815
2478
  latencyMs: number | null;
@@ -1817,57 +2480,64 @@ export declare const botConfigurationSchema: z.ZodObject<{
1817
2480
  effects: "read" | "write" | "unclassified";
1818
2481
  permission: "allow" | "ask" | "block";
1819
2482
  bindings: {
1820
- path: string[];
1821
- source: "variable" | "context" | "model" | "identity";
1822
- target: "body" | "path" | "query" | "header";
1823
2483
  key: string;
2484
+ source: "model" | "variable" | "context" | "identity";
2485
+ path: string[];
2486
+ target: "path" | "body" | "query" | "header";
1824
2487
  }[];
1825
- sample?: unknown;
1826
2488
  inputSchema?: Record<string, unknown> | undefined;
2489
+ sample?: unknown;
1827
2490
  responseSchema?: Record<string, unknown> | undefined;
1828
2491
  }[];
1829
- credentialId?: string | undefined;
1830
- authHeader?: string | undefined;
1831
- }, {
1832
2492
  kind: "http" | "graphql" | "openapi";
1833
2493
  id: string;
1834
2494
  name: string;
1835
2495
  host: string;
1836
2496
  baseUrl: string;
1837
- auth: "one" | "each" | "oauth" | "none";
2497
+ auth: "none" | "one" | "each" | "oauth";
1838
2498
  sendCustomerIdentity: boolean;
2499
+ credentialId?: string | undefined;
2500
+ authHeader?: string | undefined;
2501
+ }, {
1839
2502
  calls: {
1840
2503
  path: string;
1841
2504
  id: string;
1842
2505
  name: string;
1843
2506
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1844
- bodyType: "json" | "xml" | "form" | "gql";
1845
- readAs: "json" | "xml" | "text" | "auto";
2507
+ bodyType: "json" | "form" | "xml" | "gql";
2508
+ readAs: "text" | "json" | "xml" | "auto";
1846
2509
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1847
2510
  summary: string;
1848
2511
  latencyMs: number | null;
1849
2512
  visibleFields: string[];
1850
2513
  effects: "read" | "write" | "unclassified";
2514
+ inputSchema?: Record<string, unknown> | undefined;
1851
2515
  headers?: Record<string, string> | undefined;
1852
2516
  body?: string | undefined;
1853
2517
  sample?: unknown;
1854
2518
  query?: Record<string, string> | undefined;
1855
2519
  permission?: "allow" | "ask" | "block" | undefined;
1856
- inputSchema?: Record<string, unknown> | undefined;
1857
2520
  bindings?: {
1858
- path: string[];
1859
- source: "variable" | "context" | "model" | "identity";
1860
- target: "body" | "path" | "query" | "header";
1861
2521
  key: string;
2522
+ source: "model" | "variable" | "context" | "identity";
2523
+ path: string[];
2524
+ target: "path" | "body" | "query" | "header";
1862
2525
  }[] | undefined;
1863
2526
  responseSchema?: Record<string, unknown> | undefined;
1864
2527
  }[];
2528
+ kind: "http" | "graphql" | "openapi";
2529
+ id: string;
2530
+ name: string;
2531
+ host: string;
2532
+ baseUrl: string;
2533
+ auth: "none" | "one" | "each" | "oauth";
2534
+ sendCustomerIdentity: boolean;
1865
2535
  credentialId?: string | undefined;
1866
2536
  authHeader?: string | undefined;
1867
2537
  }>, "many">;
1868
2538
  apps: z.ZodArray<z.ZodObject<{
1869
2539
  key: z.ZodString;
1870
- account: z.ZodEnum<["project", "customer"]>;
2540
+ account: z.ZodEnum<["project", "customer", "deployment"]>;
1871
2541
  accountId: z.ZodOptional<z.ZodString>;
1872
2542
  rules: z.ZodObject<{
1873
2543
  read: z.ZodEnum<["allow", "ask", "block"]>;
@@ -1887,7 +2557,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1887
2557
  pinned: z.ZodArray<z.ZodString, "many">;
1888
2558
  }, "strict", z.ZodTypeAny, {
1889
2559
  key: string;
1890
- account: "customer" | "project";
2560
+ account: "customer" | "deployment" | "project";
1891
2561
  rules: {
1892
2562
  read: "allow" | "ask" | "block";
1893
2563
  change: "allow" | "ask" | "block";
@@ -1899,7 +2569,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1899
2569
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
1900
2570
  }, {
1901
2571
  key: string;
1902
- account: "customer" | "project";
2572
+ account: "customer" | "deployment" | "project";
1903
2573
  rules: {
1904
2574
  read: "allow" | "ask" | "block";
1905
2575
  change: "allow" | "ask" | "block";
@@ -1923,14 +2593,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
1923
2593
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1924
2594
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1925
2595
  }, "strict", z.ZodTypeAny, {
2596
+ description: string;
1926
2597
  name: string;
1927
2598
  inputSchema: Record<string, unknown>;
1928
- description: string;
1929
2599
  outputSchema?: Record<string, unknown> | undefined;
1930
2600
  }, {
2601
+ description: string;
1931
2602
  name: string;
1932
2603
  inputSchema: Record<string, unknown>;
1933
- description: string;
1934
2604
  outputSchema?: Record<string, unknown> | undefined;
1935
2605
  }>, "many">>;
1936
2606
  groups: z.ZodArray<z.ZodObject<{
@@ -1956,9 +2626,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
1956
2626
  url: string;
1957
2627
  toolCount: number;
1958
2628
  definitions: {
2629
+ description: string;
1959
2630
  name: string;
1960
2631
  inputSchema: Record<string, unknown>;
1961
- description: string;
1962
2632
  outputSchema?: Record<string, unknown> | undefined;
1963
2633
  }[];
1964
2634
  groups: {
@@ -1982,9 +2652,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
1982
2652
  }[];
1983
2653
  credentialId?: string | undefined;
1984
2654
  definitions?: {
2655
+ description: string;
1985
2656
  name: string;
1986
2657
  inputSchema: Record<string, unknown>;
1987
- description: string;
1988
2658
  outputSchema?: Record<string, unknown> | undefined;
1989
2659
  }[] | undefined;
1990
2660
  }>, "many">;
@@ -2011,11 +2681,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2011
2681
  done: z.ZodNumber;
2012
2682
  total: z.ZodNumber;
2013
2683
  }, "strip", z.ZodTypeAny, {
2014
- done: number;
2015
2684
  total: number;
2016
- }, {
2017
2685
  done: number;
2686
+ }, {
2018
2687
  total: number;
2688
+ done: number;
2019
2689
  }>>;
2020
2690
  progress: z.ZodOptional<z.ZodObject<{
2021
2691
  stage: z.ZodString;
@@ -2023,20 +2693,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2023
2693
  total: z.ZodNumber;
2024
2694
  retryable: z.ZodBoolean;
2025
2695
  }, "strip", z.ZodTypeAny, {
2026
- done: number;
2027
2696
  total: number;
2697
+ done: number;
2028
2698
  stage: string;
2029
2699
  retryable: boolean;
2030
2700
  }, {
2031
- done: number;
2032
2701
  total: number;
2702
+ done: number;
2033
2703
  stage: string;
2034
2704
  retryable: boolean;
2035
2705
  }>>;
2036
2706
  syncedLabel: z.ZodString;
2037
2707
  }, "strict", z.ZodTypeAny, {
2038
2708
  status: "failed" | "ready" | "syncing";
2039
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2709
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2040
2710
  id: string;
2041
2711
  name: string;
2042
2712
  scope: "customer" | "project";
@@ -2044,8 +2714,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2044
2714
  syncedLabel: string;
2045
2715
  error?: string | undefined;
2046
2716
  pages?: {
2047
- done: number;
2048
2717
  total: number;
2718
+ done: number;
2049
2719
  } | undefined;
2050
2720
  url?: string | undefined;
2051
2721
  connectedSource?: {
@@ -2053,32 +2723,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
2053
2723
  resourceId: string;
2054
2724
  } | undefined;
2055
2725
  progress?: {
2056
- done: number;
2057
2726
  total: number;
2727
+ done: number;
2058
2728
  stage: string;
2059
2729
  retryable: boolean;
2060
2730
  } | undefined;
2061
2731
  }, {
2062
2732
  status: "failed" | "ready" | "syncing";
2063
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2733
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2064
2734
  id: string;
2065
2735
  name: string;
2066
2736
  detail: string;
2067
2737
  syncedLabel: string;
2068
2738
  error?: string | undefined;
2739
+ scope?: "customer" | "project" | undefined;
2069
2740
  pages?: {
2070
- done: number;
2071
2741
  total: number;
2742
+ done: number;
2072
2743
  } | undefined;
2073
2744
  url?: string | undefined;
2074
- scope?: "customer" | "project" | undefined;
2075
2745
  connectedSource?: {
2076
2746
  accountId: string;
2077
2747
  resourceId: string;
2078
2748
  } | undefined;
2079
2749
  progress?: {
2080
- done: number;
2081
2750
  total: number;
2751
+ done: number;
2082
2752
  stage: string;
2083
2753
  retryable: boolean;
2084
2754
  } | undefined;
@@ -2088,18 +2758,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
2088
2758
  provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
2089
2759
  preferSites: z.ZodArray<z.ZodString, "many">;
2090
2760
  }, "strict", z.ZodTypeAny, {
2091
- enabled: boolean;
2092
2761
  provider: "builtin";
2762
+ enabled: boolean;
2093
2763
  preferSites: string[];
2094
2764
  }, {
2095
- enabled: boolean;
2096
2765
  provider: "builtin" | "exa" | "firecrawl";
2766
+ enabled: boolean;
2097
2767
  preferSites: string[];
2098
2768
  }>;
2099
2769
  }, "strict", z.ZodTypeAny, {
2100
2770
  knowledge: {
2101
2771
  status: "failed" | "ready" | "syncing";
2102
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2772
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2103
2773
  id: string;
2104
2774
  name: string;
2105
2775
  scope: "customer" | "project";
@@ -2107,8 +2777,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2107
2777
  syncedLabel: string;
2108
2778
  error?: string | undefined;
2109
2779
  pages?: {
2110
- done: number;
2111
2780
  total: number;
2781
+ done: number;
2112
2782
  } | undefined;
2113
2783
  url?: string | undefined;
2114
2784
  connectedSource?: {
@@ -2116,8 +2786,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2116
2786
  resourceId: string;
2117
2787
  } | undefined;
2118
2788
  progress?: {
2119
- done: number;
2120
2789
  total: number;
2790
+ done: number;
2121
2791
  stage: string;
2122
2792
  retryable: boolean;
2123
2793
  } | undefined;
@@ -2126,23 +2796,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
2126
2796
  searchPastChats: boolean;
2127
2797
  conversationRetentionDays: number;
2128
2798
  apis: {
2129
- kind: "http" | "graphql" | "openapi";
2130
- id: string;
2131
- name: string;
2132
- host: string;
2133
- baseUrl: string;
2134
- auth: "one" | "each" | "oauth" | "none";
2135
- sendCustomerIdentity: boolean;
2136
2799
  calls: {
2137
- headers: Record<string, string>;
2138
- body: string;
2139
2800
  path: string;
2140
2801
  id: string;
2141
2802
  name: string;
2803
+ headers: Record<string, string>;
2804
+ body: string;
2142
2805
  query: Record<string, string>;
2143
2806
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2144
- bodyType: "json" | "xml" | "form" | "gql";
2145
- readAs: "json" | "xml" | "text" | "auto";
2807
+ bodyType: "json" | "form" | "xml" | "gql";
2808
+ readAs: "text" | "json" | "xml" | "auto";
2146
2809
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2147
2810
  summary: string;
2148
2811
  latencyMs: number | null;
@@ -2150,21 +2813,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
2150
2813
  effects: "read" | "write" | "unclassified";
2151
2814
  permission: "allow" | "ask" | "block";
2152
2815
  bindings: {
2153
- path: string[];
2154
- source: "variable" | "context" | "model" | "identity";
2155
- target: "body" | "path" | "query" | "header";
2156
2816
  key: string;
2817
+ source: "model" | "variable" | "context" | "identity";
2818
+ path: string[];
2819
+ target: "path" | "body" | "query" | "header";
2157
2820
  }[];
2158
- sample?: unknown;
2159
2821
  inputSchema?: Record<string, unknown> | undefined;
2822
+ sample?: unknown;
2160
2823
  responseSchema?: Record<string, unknown> | undefined;
2161
2824
  }[];
2825
+ kind: "http" | "graphql" | "openapi";
2826
+ id: string;
2827
+ name: string;
2828
+ host: string;
2829
+ baseUrl: string;
2830
+ auth: "none" | "one" | "each" | "oauth";
2831
+ sendCustomerIdentity: boolean;
2162
2832
  credentialId?: string | undefined;
2163
2833
  authHeader?: string | undefined;
2164
2834
  }[];
2165
2835
  apps: {
2166
2836
  key: string;
2167
- account: "customer" | "project";
2837
+ account: "customer" | "deployment" | "project";
2168
2838
  rules: {
2169
2839
  read: "allow" | "ask" | "block";
2170
2840
  change: "allow" | "ask" | "block";
@@ -2182,9 +2852,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
2182
2852
  url: string;
2183
2853
  toolCount: number;
2184
2854
  definitions: {
2855
+ description: string;
2185
2856
  name: string;
2186
2857
  inputSchema: Record<string, unknown>;
2187
- description: string;
2188
2858
  outputSchema?: Record<string, unknown> | undefined;
2189
2859
  }[];
2190
2860
  groups: {
@@ -2196,76 +2866,76 @@ export declare const botConfigurationSchema: z.ZodObject<{
2196
2866
  credentialId?: string | undefined;
2197
2867
  }[];
2198
2868
  webSearch: {
2199
- enabled: boolean;
2200
2869
  provider: "builtin";
2870
+ enabled: boolean;
2201
2871
  preferSites: string[];
2202
2872
  };
2203
2873
  }, {
2204
2874
  knowledge: {
2205
2875
  status: "failed" | "ready" | "syncing";
2206
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2876
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2207
2877
  id: string;
2208
2878
  name: string;
2209
2879
  detail: string;
2210
2880
  syncedLabel: string;
2211
2881
  error?: string | undefined;
2882
+ scope?: "customer" | "project" | undefined;
2212
2883
  pages?: {
2213
- done: number;
2214
2884
  total: number;
2885
+ done: number;
2215
2886
  } | undefined;
2216
2887
  url?: string | undefined;
2217
- scope?: "customer" | "project" | undefined;
2218
2888
  connectedSource?: {
2219
2889
  accountId: string;
2220
2890
  resourceId: string;
2221
2891
  } | undefined;
2222
2892
  progress?: {
2223
- done: number;
2224
2893
  total: number;
2894
+ done: number;
2225
2895
  stage: string;
2226
2896
  retryable: boolean;
2227
2897
  } | undefined;
2228
2898
  }[];
2229
2899
  apis: {
2230
- kind: "http" | "graphql" | "openapi";
2231
- id: string;
2232
- name: string;
2233
- host: string;
2234
- baseUrl: string;
2235
- auth: "one" | "each" | "oauth" | "none";
2236
- sendCustomerIdentity: boolean;
2237
2900
  calls: {
2238
2901
  path: string;
2239
2902
  id: string;
2240
2903
  name: string;
2241
2904
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2242
- bodyType: "json" | "xml" | "form" | "gql";
2243
- readAs: "json" | "xml" | "text" | "auto";
2905
+ bodyType: "json" | "form" | "xml" | "gql";
2906
+ readAs: "text" | "json" | "xml" | "auto";
2244
2907
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2245
2908
  summary: string;
2246
2909
  latencyMs: number | null;
2247
2910
  visibleFields: string[];
2248
2911
  effects: "read" | "write" | "unclassified";
2912
+ inputSchema?: Record<string, unknown> | undefined;
2249
2913
  headers?: Record<string, string> | undefined;
2250
2914
  body?: string | undefined;
2251
2915
  sample?: unknown;
2252
2916
  query?: Record<string, string> | undefined;
2253
2917
  permission?: "allow" | "ask" | "block" | undefined;
2254
- inputSchema?: Record<string, unknown> | undefined;
2255
2918
  bindings?: {
2256
- path: string[];
2257
- source: "variable" | "context" | "model" | "identity";
2258
- target: "body" | "path" | "query" | "header";
2259
2919
  key: string;
2920
+ source: "model" | "variable" | "context" | "identity";
2921
+ path: string[];
2922
+ target: "path" | "body" | "query" | "header";
2260
2923
  }[] | undefined;
2261
2924
  responseSchema?: Record<string, unknown> | undefined;
2262
2925
  }[];
2926
+ kind: "http" | "graphql" | "openapi";
2927
+ id: string;
2928
+ name: string;
2929
+ host: string;
2930
+ baseUrl: string;
2931
+ auth: "none" | "one" | "each" | "oauth";
2932
+ sendCustomerIdentity: boolean;
2263
2933
  credentialId?: string | undefined;
2264
2934
  authHeader?: string | undefined;
2265
2935
  }[];
2266
2936
  apps: {
2267
2937
  key: string;
2268
- account: "customer" | "project";
2938
+ account: "customer" | "deployment" | "project";
2269
2939
  rules: {
2270
2940
  read: "allow" | "ask" | "block";
2271
2941
  change: "allow" | "ask" | "block";
@@ -2290,15 +2960,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
2290
2960
  }[];
2291
2961
  credentialId?: string | undefined;
2292
2962
  definitions?: {
2963
+ description: string;
2293
2964
  name: string;
2294
2965
  inputSchema: Record<string, unknown>;
2295
- description: string;
2296
2966
  outputSchema?: Record<string, unknown> | undefined;
2297
2967
  }[] | undefined;
2298
2968
  }[];
2299
2969
  webSearch: {
2300
- enabled: boolean;
2301
2970
  provider: "builtin" | "exa" | "firecrawl";
2971
+ enabled: boolean;
2302
2972
  preferSites: string[];
2303
2973
  };
2304
2974
  readPages?: boolean | undefined;
@@ -2315,21 +2985,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
2315
2985
  chipNote: z.ZodString;
2316
2986
  description: z.ZodString;
2317
2987
  }, "strict", z.ZodTypeAny, {
2988
+ description: string;
2318
2989
  type: "Text" | "Number" | "Yes or no" | "One of…";
2319
2990
  required: boolean;
2320
2991
  name: string;
2321
- description: string;
2322
2992
  defaultValue: string;
2323
- usedIn: ("instructions" | "api" | "run_plan")[];
2993
+ usedIn: ("api" | "instructions" | "run_plan")[];
2324
2994
  chipNote: string;
2325
2995
  values?: string[] | undefined;
2326
2996
  }, {
2997
+ description: string;
2327
2998
  type: "Text" | "Number" | "Yes or no" | "One of…";
2328
2999
  required: boolean;
2329
3000
  name: string;
2330
- description: string;
2331
3001
  defaultValue: string;
2332
- usedIn: ("instructions" | "api" | "run_plan")[];
3002
+ usedIn: ("api" | "instructions" | "run_plan")[];
2333
3003
  chipNote: string;
2334
3004
  values?: string[] | undefined;
2335
3005
  }>, "many">;
@@ -2347,20 +3017,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2347
3017
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2348
3018
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2349
3019
  }, "strict", z.ZodTypeAny, {
2350
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3020
+ description: string;
3021
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2351
3022
  id: string;
2352
3023
  required: boolean;
2353
3024
  name: string;
2354
- description: string;
2355
3025
  level: number;
2356
3026
  values?: string[] | undefined;
2357
3027
  items?: Record<string, unknown> | undefined;
2358
3028
  }, {
2359
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3029
+ description: string;
3030
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2360
3031
  id: string;
2361
3032
  required: boolean;
2362
3033
  name: string;
2363
- description: string;
2364
3034
  level: number;
2365
3035
  values?: string[] | undefined;
2366
3036
  items?: Record<string, unknown> | undefined;
@@ -2368,32 +3038,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
2368
3038
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2369
3039
  }, "strict", z.ZodTypeAny, {
2370
3040
  shape: {
2371
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3041
+ description: string;
3042
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2372
3043
  id: string;
2373
3044
  required: boolean;
2374
3045
  name: string;
2375
- description: string;
2376
3046
  level: number;
2377
3047
  values?: string[] | undefined;
2378
3048
  items?: Record<string, unknown> | undefined;
2379
3049
  }[];
2380
- format: "json" | "text";
2381
- delivery: "stream" | "once" | "webhook";
3050
+ format: "text" | "json";
3051
+ delivery: "webhook" | "stream" | "once";
2382
3052
  webhookUrl: string;
2383
3053
  schema?: Record<string, unknown> | undefined;
2384
3054
  }, {
2385
3055
  shape: {
2386
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3056
+ description: string;
3057
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2387
3058
  id: string;
2388
3059
  required: boolean;
2389
3060
  name: string;
2390
- description: string;
2391
3061
  level: number;
2392
3062
  values?: string[] | undefined;
2393
3063
  items?: Record<string, unknown> | undefined;
2394
3064
  }[];
2395
- format: "json" | "text";
2396
- delivery: "stream" | "once" | "webhook";
3065
+ format: "text" | "json";
3066
+ delivery: "webhook" | "stream" | "once";
2397
3067
  webhookUrl: string;
2398
3068
  schema?: Record<string, unknown> | undefined;
2399
3069
  }>;
@@ -2410,38 +3080,38 @@ export declare const botConfigurationSchema: z.ZodObject<{
2410
3080
  path: z.ZodArray<z.ZodString, "many">;
2411
3081
  target: z.ZodArray<z.ZodString, "many">;
2412
3082
  }, "strict", z.ZodTypeAny, {
2413
- path: string[];
2414
3083
  source: "message" | "variable" | "context";
3084
+ path: string[];
2415
3085
  target: string[];
2416
3086
  }, {
2417
- path: string[];
2418
3087
  source: "message" | "variable" | "context";
3088
+ path: string[];
2419
3089
  target: string[];
2420
3090
  }>, "many">;
2421
3091
  }, "strict", z.ZodTypeAny, {
2422
3092
  kind: "workbench" | "mcp" | "app";
2423
3093
  id: string;
2424
3094
  name: string;
3095
+ input: Record<string, unknown>;
3096
+ toolKey: string;
2425
3097
  capabilityId: string;
2426
3098
  bindings: {
2427
- path: string[];
2428
3099
  source: "message" | "variable" | "context";
3100
+ path: string[];
2429
3101
  target: string[];
2430
3102
  }[];
2431
- toolKey: string;
2432
- input: Record<string, unknown>;
2433
3103
  }, {
2434
3104
  kind: "workbench" | "mcp" | "app";
2435
3105
  id: string;
2436
3106
  name: string;
3107
+ input: Record<string, unknown>;
3108
+ toolKey: string;
2437
3109
  capabilityId: string;
2438
3110
  bindings: {
2439
- path: string[];
2440
3111
  source: "message" | "variable" | "context";
3112
+ path: string[];
2441
3113
  target: string[];
2442
3114
  }[];
2443
- toolKey: string;
2444
- input: Record<string, unknown>;
2445
3115
  }>, "many">>;
2446
3116
  before: z.ZodArray<z.ZodString, "many">;
2447
3117
  after: z.ZodArray<z.ZodString, "many">;
@@ -2456,14 +3126,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
2456
3126
  kind: "workbench" | "mcp" | "app";
2457
3127
  id: string;
2458
3128
  name: string;
3129
+ input: Record<string, unknown>;
3130
+ toolKey: string;
2459
3131
  capabilityId: string;
2460
3132
  bindings: {
2461
- path: string[];
2462
3133
  source: "message" | "variable" | "context";
3134
+ path: string[];
2463
3135
  target: string[];
2464
3136
  }[];
2465
- toolKey: string;
2466
- input: Record<string, unknown>;
2467
3137
  }[];
2468
3138
  stopOnFail: string[];
2469
3139
  stepLimit: number;
@@ -2477,40 +3147,56 @@ export declare const botConfigurationSchema: z.ZodObject<{
2477
3147
  kind: "workbench" | "mcp" | "app";
2478
3148
  id: string;
2479
3149
  name: string;
3150
+ input: Record<string, unknown>;
3151
+ toolKey: string;
2480
3152
  capabilityId: string;
2481
3153
  bindings: {
2482
- path: string[];
2483
3154
  source: "message" | "variable" | "context";
3155
+ path: string[];
2484
3156
  target: string[];
2485
3157
  }[];
2486
- toolKey: string;
2487
- input: Record<string, unknown>;
2488
3158
  }[] | undefined;
2489
3159
  }>;
2490
3160
  }, "strict", z.ZodTypeAny, {
2491
- name: string;
3161
+ memory: {
3162
+ never: string[];
3163
+ enabled: boolean;
3164
+ configured: boolean;
3165
+ who: {
3166
+ customer: boolean;
3167
+ company: boolean;
3168
+ bot: boolean;
3169
+ };
3170
+ what: string;
3171
+ forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
3172
+ };
3173
+ model: {
3174
+ id: string;
3175
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3176
+ };
2492
3177
  workbench: {
2493
3178
  enabled: boolean;
2494
3179
  files: "per_customer" | "per_run";
2495
3180
  configured: boolean;
2496
- size: "medium" | "small" | "large";
3181
+ size: "medium" | "large" | "small";
2497
3182
  access: "allow" | "ask" | "block";
2498
3183
  languages: string[];
2499
3184
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2500
3185
  };
3186
+ name: string;
2501
3187
  variables: {
3188
+ description: string;
2502
3189
  type: "Text" | "Number" | "Yes or no" | "One of…";
2503
3190
  required: boolean;
2504
3191
  name: string;
2505
- description: string;
2506
3192
  defaultValue: string;
2507
- usedIn: ("instructions" | "api" | "run_plan")[];
3193
+ usedIn: ("api" | "instructions" | "run_plan")[];
2508
3194
  chipNote: string;
2509
3195
  values?: string[] | undefined;
2510
3196
  }[];
2511
3197
  files: {
2512
3198
  enabled: boolean;
2513
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3199
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
2514
3200
  bigSpreadsheets: "workbench" | "preview";
2515
3201
  };
2516
3202
  instructions: {
@@ -2520,7 +3206,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2520
3206
  context: {
2521
3207
  knowledge: {
2522
3208
  status: "failed" | "ready" | "syncing";
2523
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
3209
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2524
3210
  id: string;
2525
3211
  name: string;
2526
3212
  scope: "customer" | "project";
@@ -2528,8 +3214,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2528
3214
  syncedLabel: string;
2529
3215
  error?: string | undefined;
2530
3216
  pages?: {
2531
- done: number;
2532
3217
  total: number;
3218
+ done: number;
2533
3219
  } | undefined;
2534
3220
  url?: string | undefined;
2535
3221
  connectedSource?: {
@@ -2537,8 +3223,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2537
3223
  resourceId: string;
2538
3224
  } | undefined;
2539
3225
  progress?: {
2540
- done: number;
2541
3226
  total: number;
3227
+ done: number;
2542
3228
  stage: string;
2543
3229
  retryable: boolean;
2544
3230
  } | undefined;
@@ -2547,23 +3233,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
2547
3233
  searchPastChats: boolean;
2548
3234
  conversationRetentionDays: number;
2549
3235
  apis: {
2550
- kind: "http" | "graphql" | "openapi";
2551
- id: string;
2552
- name: string;
2553
- host: string;
2554
- baseUrl: string;
2555
- auth: "one" | "each" | "oauth" | "none";
2556
- sendCustomerIdentity: boolean;
2557
3236
  calls: {
2558
- headers: Record<string, string>;
2559
- body: string;
2560
3237
  path: string;
2561
3238
  id: string;
2562
3239
  name: string;
3240
+ headers: Record<string, string>;
3241
+ body: string;
2563
3242
  query: Record<string, string>;
2564
3243
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2565
- bodyType: "json" | "xml" | "form" | "gql";
2566
- readAs: "json" | "xml" | "text" | "auto";
3244
+ bodyType: "json" | "form" | "xml" | "gql";
3245
+ readAs: "text" | "json" | "xml" | "auto";
2567
3246
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2568
3247
  summary: string;
2569
3248
  latencyMs: number | null;
@@ -2571,21 +3250,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
2571
3250
  effects: "read" | "write" | "unclassified";
2572
3251
  permission: "allow" | "ask" | "block";
2573
3252
  bindings: {
2574
- path: string[];
2575
- source: "variable" | "context" | "model" | "identity";
2576
- target: "body" | "path" | "query" | "header";
2577
3253
  key: string;
3254
+ source: "model" | "variable" | "context" | "identity";
3255
+ path: string[];
3256
+ target: "path" | "body" | "query" | "header";
2578
3257
  }[];
2579
- sample?: unknown;
2580
3258
  inputSchema?: Record<string, unknown> | undefined;
3259
+ sample?: unknown;
2581
3260
  responseSchema?: Record<string, unknown> | undefined;
2582
3261
  }[];
3262
+ kind: "http" | "graphql" | "openapi";
3263
+ id: string;
3264
+ name: string;
3265
+ host: string;
3266
+ baseUrl: string;
3267
+ auth: "none" | "one" | "each" | "oauth";
3268
+ sendCustomerIdentity: boolean;
2583
3269
  credentialId?: string | undefined;
2584
3270
  authHeader?: string | undefined;
2585
3271
  }[];
2586
3272
  apps: {
2587
3273
  key: string;
2588
- account: "customer" | "project";
3274
+ account: "customer" | "deployment" | "project";
2589
3275
  rules: {
2590
3276
  read: "allow" | "ask" | "block";
2591
3277
  change: "allow" | "ask" | "block";
@@ -2603,9 +3289,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
2603
3289
  url: string;
2604
3290
  toolCount: number;
2605
3291
  definitions: {
3292
+ description: string;
2606
3293
  name: string;
2607
3294
  inputSchema: Record<string, unknown>;
2608
- description: string;
2609
3295
  outputSchema?: Record<string, unknown> | undefined;
2610
3296
  }[];
2611
3297
  groups: {
@@ -2617,30 +3303,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
2617
3303
  credentialId?: string | undefined;
2618
3304
  }[];
2619
3305
  webSearch: {
2620
- enabled: boolean;
2621
3306
  provider: "builtin";
3307
+ enabled: boolean;
2622
3308
  preferSites: string[];
2623
3309
  };
2624
3310
  };
2625
- memory: {
2626
- never: string[];
2627
- enabled: boolean;
2628
- configured: boolean;
2629
- who: {
2630
- customer: boolean;
2631
- company: boolean;
2632
- bot: boolean;
2633
- };
2634
- what: string;
2635
- forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
2636
- };
2637
- model: {
2638
- id: string;
2639
- effort: "low" | "medium" | "high" | "xhigh";
2640
- };
3311
+ publicDescription: string;
3312
+ iconAssetId: string | null;
2641
3313
  skills: {
2642
3314
  id: string;
2643
3315
  name: string;
3316
+ cases: {
3317
+ text: string;
3318
+ }[];
2644
3319
  files: {
2645
3320
  name: string;
2646
3321
  content: string;
@@ -2649,9 +3324,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
2649
3324
  summary: string;
2650
3325
  icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
2651
3326
  load: "auto" | "always";
2652
- cases: {
2653
- text: string;
2654
- }[];
2655
3327
  exceptions: {
2656
3328
  text: string;
2657
3329
  }[];
@@ -2667,17 +3339,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
2667
3339
  }[];
2668
3340
  answer: {
2669
3341
  shape: {
2670
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3342
+ description: string;
3343
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2671
3344
  id: string;
2672
3345
  required: boolean;
2673
3346
  name: string;
2674
- description: string;
2675
3347
  level: number;
2676
3348
  values?: string[] | undefined;
2677
3349
  items?: Record<string, unknown> | undefined;
2678
3350
  }[];
2679
- format: "json" | "text";
2680
- delivery: "stream" | "once" | "webhook";
3351
+ format: "text" | "json";
3352
+ delivery: "webhook" | "stream" | "once";
2681
3353
  webhookUrl: string;
2682
3354
  schema?: Record<string, unknown> | undefined;
2683
3355
  };
@@ -2689,32 +3361,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
2689
3361
  kind: "workbench" | "mcp" | "app";
2690
3362
  id: string;
2691
3363
  name: string;
3364
+ input: Record<string, unknown>;
3365
+ toolKey: string;
2692
3366
  capabilityId: string;
2693
3367
  bindings: {
2694
- path: string[];
2695
3368
  source: "message" | "variable" | "context";
3369
+ path: string[];
2696
3370
  target: string[];
2697
3371
  }[];
2698
- toolKey: string;
2699
- input: Record<string, unknown>;
2700
3372
  }[];
2701
3373
  stopOnFail: string[];
2702
3374
  stepLimit: number;
2703
3375
  };
2704
3376
  triggers: ({
3377
+ label: string;
2705
3378
  kind: "app";
2706
3379
  id: string;
2707
3380
  enabled: boolean;
2708
3381
  name: string;
2709
3382
  variables: Record<string, unknown>;
2710
3383
  subscriptionId: string;
2711
- label: string;
2712
3384
  providerKey: string;
2713
3385
  eventTypes: string[];
2714
3386
  runsAs: "none" | "field";
2715
3387
  customerField: string;
2716
3388
  instruction: string;
2717
- answerTo: "webhook" | "none";
3389
+ answerTo: "none" | "webhook";
2718
3390
  } | {
2719
3391
  kind: "webhook";
2720
3392
  id: string;
@@ -2725,9 +3397,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
2725
3397
  runsAs: "none" | "field";
2726
3398
  customerField: string;
2727
3399
  instruction: string;
2728
- answerTo: "webhook" | "none";
3400
+ answerTo: "none" | "webhook";
2729
3401
  } | {
2730
- every: "week" | "day" | "hour";
3402
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
2731
3403
  kind: "schedule";
2732
3404
  date: string;
2733
3405
  id: string;
@@ -2735,34 +3407,63 @@ export declare const botConfigurationSchema: z.ZodObject<{
2735
3407
  enabled: boolean;
2736
3408
  name: string;
2737
3409
  variables: Record<string, unknown>;
2738
- runsAs: "one" | "none";
2739
- instruction: string;
2740
- answerTo: "webhook" | "none";
2741
- repeat: "once" | "repeat";
2742
- days: number[];
2743
- time: string;
2744
3410
  timezone: string;
2745
3411
  customerId: string;
3412
+ days: number[];
3413
+ runsAs: "none" | "one";
3414
+ instruction: string;
3415
+ answerTo: "none" | "webhook";
3416
+ repeat: "once" | "repeat";
3417
+ time: string;
3418
+ cron?: string | undefined;
3419
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
3420
+ monthDay?: number | "last" | undefined;
2746
3421
  })[];
3422
+ workflows: {
3423
+ version: number | "live";
3424
+ workflowId: string;
3425
+ }[];
2747
3426
  timezone?: string | null | undefined;
3427
+ avatar?: {
3428
+ version: 1;
3429
+ style: "clay" | "pebble" | "shapes" | "letters";
3430
+ seed: string;
3431
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3432
+ } | null | undefined;
2748
3433
  }, {
2749
- name: string;
3434
+ memory: {
3435
+ never: string[];
3436
+ enabled: boolean;
3437
+ configured: boolean;
3438
+ who: {
3439
+ customer: boolean;
3440
+ company: boolean;
3441
+ bot: boolean;
3442
+ };
3443
+ what: string;
3444
+ forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
3445
+ };
3446
+ model: {
3447
+ id: string;
3448
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3449
+ };
2750
3450
  workbench: {
2751
3451
  enabled: boolean;
2752
3452
  files: "per_customer" | "per_run";
2753
3453
  configured: boolean;
2754
- size: "medium" | "small" | "large";
3454
+ size: "medium" | "large" | "small";
2755
3455
  access: "allow" | "ask" | "block";
2756
3456
  languages: string[];
2757
3457
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2758
3458
  };
3459
+ name: string;
2759
3460
  variables: {
3461
+ description: string;
2760
3462
  type: "Text" | "Number" | "Yes or no" | "One of…";
2761
3463
  required: boolean;
2762
3464
  name: string;
2763
- description: string;
2764
3465
  defaultValue: string;
2765
- usedIn: ("instructions" | "api" | "run_plan")[];
3466
+ usedIn: ("api" | "instructions" | "run_plan")[];
2766
3467
  chipNote: string;
2767
3468
  values?: string[] | undefined;
2768
3469
  }[];
@@ -2773,69 +3474,69 @@ export declare const botConfigurationSchema: z.ZodObject<{
2773
3474
  context: {
2774
3475
  knowledge: {
2775
3476
  status: "failed" | "ready" | "syncing";
2776
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
3477
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2777
3478
  id: string;
2778
3479
  name: string;
2779
3480
  detail: string;
2780
3481
  syncedLabel: string;
2781
3482
  error?: string | undefined;
3483
+ scope?: "customer" | "project" | undefined;
2782
3484
  pages?: {
2783
- done: number;
2784
3485
  total: number;
3486
+ done: number;
2785
3487
  } | undefined;
2786
3488
  url?: string | undefined;
2787
- scope?: "customer" | "project" | undefined;
2788
3489
  connectedSource?: {
2789
3490
  accountId: string;
2790
3491
  resourceId: string;
2791
3492
  } | undefined;
2792
3493
  progress?: {
2793
- done: number;
2794
3494
  total: number;
3495
+ done: number;
2795
3496
  stage: string;
2796
3497
  retryable: boolean;
2797
3498
  } | undefined;
2798
3499
  }[];
2799
3500
  apis: {
2800
- kind: "http" | "graphql" | "openapi";
2801
- id: string;
2802
- name: string;
2803
- host: string;
2804
- baseUrl: string;
2805
- auth: "one" | "each" | "oauth" | "none";
2806
- sendCustomerIdentity: boolean;
2807
3501
  calls: {
2808
3502
  path: string;
2809
3503
  id: string;
2810
3504
  name: string;
2811
3505
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2812
- bodyType: "json" | "xml" | "form" | "gql";
2813
- readAs: "json" | "xml" | "text" | "auto";
3506
+ bodyType: "json" | "form" | "xml" | "gql";
3507
+ readAs: "text" | "json" | "xml" | "auto";
2814
3508
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2815
3509
  summary: string;
2816
3510
  latencyMs: number | null;
2817
3511
  visibleFields: string[];
2818
3512
  effects: "read" | "write" | "unclassified";
3513
+ inputSchema?: Record<string, unknown> | undefined;
2819
3514
  headers?: Record<string, string> | undefined;
2820
3515
  body?: string | undefined;
2821
3516
  sample?: unknown;
2822
3517
  query?: Record<string, string> | undefined;
2823
3518
  permission?: "allow" | "ask" | "block" | undefined;
2824
- inputSchema?: Record<string, unknown> | undefined;
2825
3519
  bindings?: {
2826
- path: string[];
2827
- source: "variable" | "context" | "model" | "identity";
2828
- target: "body" | "path" | "query" | "header";
2829
3520
  key: string;
3521
+ source: "model" | "variable" | "context" | "identity";
3522
+ path: string[];
3523
+ target: "path" | "body" | "query" | "header";
2830
3524
  }[] | undefined;
2831
3525
  responseSchema?: Record<string, unknown> | undefined;
2832
3526
  }[];
3527
+ kind: "http" | "graphql" | "openapi";
3528
+ id: string;
3529
+ name: string;
3530
+ host: string;
3531
+ baseUrl: string;
3532
+ auth: "none" | "one" | "each" | "oauth";
3533
+ sendCustomerIdentity: boolean;
2833
3534
  credentialId?: string | undefined;
2834
3535
  authHeader?: string | undefined;
2835
3536
  }[];
2836
3537
  apps: {
2837
3538
  key: string;
2838
- account: "customer" | "project";
3539
+ account: "customer" | "deployment" | "project";
2839
3540
  rules: {
2840
3541
  read: "allow" | "ask" | "block";
2841
3542
  change: "allow" | "ask" | "block";
@@ -2860,46 +3561,30 @@ export declare const botConfigurationSchema: z.ZodObject<{
2860
3561
  }[];
2861
3562
  credentialId?: string | undefined;
2862
3563
  definitions?: {
3564
+ description: string;
2863
3565
  name: string;
2864
3566
  inputSchema: Record<string, unknown>;
2865
- description: string;
2866
3567
  outputSchema?: Record<string, unknown> | undefined;
2867
3568
  }[] | undefined;
2868
3569
  }[];
2869
3570
  webSearch: {
2870
- enabled: boolean;
2871
3571
  provider: "builtin" | "exa" | "firecrawl";
3572
+ enabled: boolean;
2872
3573
  preferSites: string[];
2873
3574
  };
2874
3575
  readPages?: boolean | undefined;
2875
3576
  searchPastChats?: boolean | undefined;
2876
3577
  conversationRetentionDays?: number | undefined;
2877
3578
  };
2878
- memory: {
2879
- never: string[];
2880
- enabled: boolean;
2881
- configured: boolean;
2882
- who: {
2883
- customer: boolean;
2884
- company: boolean;
2885
- bot: boolean;
2886
- };
2887
- what: string;
2888
- forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
2889
- };
2890
- model: {
2891
- id: string;
2892
- effort: "low" | "medium" | "high" | "xhigh";
2893
- };
2894
3579
  skills: {
2895
3580
  id: string;
2896
3581
  name: string;
2897
- summary: string;
2898
- icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
2899
- load: "auto" | "always";
2900
3582
  cases: {
2901
3583
  text: string;
2902
3584
  }[];
3585
+ summary: string;
3586
+ icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
3587
+ load: "auto" | "always";
2903
3588
  exceptions: {
2904
3589
  text: string;
2905
3590
  }[];
@@ -2920,17 +3605,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
2920
3605
  }[];
2921
3606
  answer: {
2922
3607
  shape: {
2923
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
3608
+ description: string;
3609
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
2924
3610
  id: string;
2925
3611
  required: boolean;
2926
3612
  name: string;
2927
- description: string;
2928
3613
  level: number;
2929
3614
  values?: string[] | undefined;
2930
3615
  items?: Record<string, unknown> | undefined;
2931
3616
  }[];
2932
- format: "json" | "text";
2933
- delivery: "stream" | "once" | "webhook";
3617
+ format: "text" | "json";
3618
+ delivery: "webhook" | "stream" | "once";
2934
3619
  webhookUrl: string;
2935
3620
  schema?: Record<string, unknown> | undefined;
2936
3621
  };
@@ -2944,35 +3629,43 @@ export declare const botConfigurationSchema: z.ZodObject<{
2944
3629
  kind: "workbench" | "mcp" | "app";
2945
3630
  id: string;
2946
3631
  name: string;
3632
+ input: Record<string, unknown>;
3633
+ toolKey: string;
2947
3634
  capabilityId: string;
2948
3635
  bindings: {
2949
- path: string[];
2950
3636
  source: "message" | "variable" | "context";
3637
+ path: string[];
2951
3638
  target: string[];
2952
3639
  }[];
2953
- toolKey: string;
2954
- input: Record<string, unknown>;
2955
3640
  }[] | undefined;
2956
3641
  };
3642
+ timezone?: string | null | undefined;
2957
3643
  files?: {
2958
3644
  enabled: boolean;
2959
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3645
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
2960
3646
  bigSpreadsheets: "workbench" | "preview";
2961
3647
  } | undefined;
2962
- timezone?: string | null | undefined;
3648
+ publicDescription?: string | undefined;
3649
+ iconAssetId?: string | null | undefined;
3650
+ avatar?: {
3651
+ version: 1;
3652
+ style: "clay" | "pebble" | "shapes" | "letters";
3653
+ seed: string;
3654
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3655
+ } | null | undefined;
2963
3656
  triggers?: ({
3657
+ label: string;
2964
3658
  kind: "app";
2965
3659
  id: string;
2966
3660
  enabled: boolean;
2967
3661
  name: string;
2968
3662
  subscriptionId: string;
2969
- label: string;
2970
3663
  providerKey: string;
2971
3664
  eventTypes: string[];
2972
3665
  runsAs: "none" | "field";
2973
3666
  customerField: string;
2974
3667
  instruction: string;
2975
- answerTo: "webhook" | "none";
3668
+ answerTo: "none" | "webhook";
2976
3669
  variables?: Record<string, unknown> | undefined;
2977
3670
  } | {
2978
3671
  kind: "webhook";
@@ -2983,40 +3676,65 @@ export declare const botConfigurationSchema: z.ZodObject<{
2983
3676
  runsAs: "none" | "field";
2984
3677
  customerField: string;
2985
3678
  instruction: string;
2986
- answerTo: "webhook" | "none";
3679
+ answerTo: "none" | "webhook";
2987
3680
  variables?: Record<string, unknown> | undefined;
2988
3681
  } | {
2989
- every: "week" | "day" | "hour";
3682
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
2990
3683
  kind: "schedule";
2991
3684
  date: string;
2992
3685
  id: string;
2993
3686
  tenantId: string;
2994
3687
  enabled: boolean;
2995
3688
  name: string;
2996
- runsAs: "one" | "none";
3689
+ timezone: string;
3690
+ customerId: string;
3691
+ days: number[];
3692
+ runsAs: "none" | "one";
2997
3693
  instruction: string;
2998
- answerTo: "webhook" | "none";
3694
+ answerTo: "none" | "webhook";
2999
3695
  repeat: "once" | "repeat";
3000
- days: number[];
3001
3696
  time: string;
3002
- timezone: string;
3003
- customerId: string;
3004
3697
  variables?: Record<string, unknown> | undefined;
3698
+ cron?: string | undefined;
3699
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
3700
+ monthDay?: number | "last" | undefined;
3005
3701
  })[] | undefined;
3702
+ workflows?: {
3703
+ version: number | "live";
3704
+ workflowId: string;
3705
+ }[] | undefined;
3006
3706
  }>;
3007
3707
  export declare const botPatchSchema: z.ZodObject<{
3008
3708
  name: z.ZodOptional<z.ZodString>;
3709
+ publicDescription: z.ZodOptional<z.ZodDefault<z.ZodString>>;
3710
+ iconAssetId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
3711
+ avatar: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3712
+ version: z.ZodLiteral<1>;
3713
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
3714
+ seed: z.ZodString;
3715
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
3716
+ }, "strict", z.ZodTypeAny, {
3717
+ version: 1;
3718
+ style: "clay" | "pebble" | "shapes" | "letters";
3719
+ seed: string;
3720
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3721
+ }, {
3722
+ version: 1;
3723
+ style: "clay" | "pebble" | "shapes" | "letters";
3724
+ seed: string;
3725
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3726
+ }>>>>;
3009
3727
  files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3010
3728
  enabled: z.ZodBoolean;
3011
3729
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
3012
3730
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
3013
3731
  }, "strict", z.ZodTypeAny, {
3014
3732
  enabled: boolean;
3015
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3733
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3016
3734
  bigSpreadsheets: "workbench" | "preview";
3017
3735
  }, {
3018
3736
  enabled: boolean;
3019
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3737
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3020
3738
  bigSpreadsheets: "workbench" | "preview";
3021
3739
  }>>>;
3022
3740
  timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
@@ -3035,32 +3753,32 @@ export declare const botPatchSchema: z.ZodObject<{
3035
3753
  answerTo: z.ZodEnum<["webhook", "none"]>;
3036
3754
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3037
3755
  }, "strict", z.ZodTypeAny, {
3756
+ label: string;
3038
3757
  kind: "app";
3039
3758
  id: string;
3040
3759
  enabled: boolean;
3041
3760
  name: string;
3042
3761
  variables: Record<string, unknown>;
3043
3762
  subscriptionId: string;
3044
- label: string;
3045
3763
  providerKey: string;
3046
3764
  eventTypes: string[];
3047
3765
  runsAs: "none" | "field";
3048
3766
  customerField: string;
3049
3767
  instruction: string;
3050
- answerTo: "webhook" | "none";
3768
+ answerTo: "none" | "webhook";
3051
3769
  }, {
3770
+ label: string;
3052
3771
  kind: "app";
3053
3772
  id: string;
3054
3773
  enabled: boolean;
3055
3774
  name: string;
3056
3775
  subscriptionId: string;
3057
- label: string;
3058
3776
  providerKey: string;
3059
3777
  eventTypes: string[];
3060
3778
  runsAs: "none" | "field";
3061
3779
  customerField: string;
3062
3780
  instruction: string;
3063
- answerTo: "webhook" | "none";
3781
+ answerTo: "none" | "webhook";
3064
3782
  variables?: Record<string, unknown> | undefined;
3065
3783
  }>, z.ZodObject<{
3066
3784
  kind: z.ZodLiteral<"webhook">;
@@ -3083,7 +3801,7 @@ export declare const botPatchSchema: z.ZodObject<{
3083
3801
  runsAs: "none" | "field";
3084
3802
  customerField: string;
3085
3803
  instruction: string;
3086
- answerTo: "webhook" | "none";
3804
+ answerTo: "none" | "webhook";
3087
3805
  }, {
3088
3806
  kind: "webhook";
3089
3807
  id: string;
@@ -3093,13 +3811,16 @@ export declare const botPatchSchema: z.ZodObject<{
3093
3811
  runsAs: "none" | "field";
3094
3812
  customerField: string;
3095
3813
  instruction: string;
3096
- answerTo: "webhook" | "none";
3814
+ answerTo: "none" | "webhook";
3097
3815
  variables?: Record<string, unknown> | undefined;
3098
3816
  }>, z.ZodObject<{
3099
3817
  kind: z.ZodLiteral<"schedule">;
3100
3818
  tenantId: z.ZodString;
3101
3819
  repeat: z.ZodEnum<["repeat", "once"]>;
3102
- every: z.ZodEnum<["week", "day", "hour"]>;
3820
+ every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
3821
+ intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
3822
+ monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
3823
+ cron: z.ZodOptional<z.ZodString>;
3103
3824
  days: z.ZodArray<z.ZodNumber, "many">;
3104
3825
  time: z.ZodString;
3105
3826
  date: z.ZodString;
@@ -3113,7 +3834,7 @@ export declare const botPatchSchema: z.ZodObject<{
3113
3834
  answerTo: z.ZodEnum<["webhook", "none"]>;
3114
3835
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3115
3836
  }, "strict", z.ZodTypeAny, {
3116
- every: "week" | "day" | "hour";
3837
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
3117
3838
  kind: "schedule";
3118
3839
  date: string;
3119
3840
  id: string;
@@ -3121,41 +3842,57 @@ export declare const botPatchSchema: z.ZodObject<{
3121
3842
  enabled: boolean;
3122
3843
  name: string;
3123
3844
  variables: Record<string, unknown>;
3124
- runsAs: "one" | "none";
3845
+ timezone: string;
3846
+ customerId: string;
3847
+ days: number[];
3848
+ runsAs: "none" | "one";
3125
3849
  instruction: string;
3126
- answerTo: "webhook" | "none";
3850
+ answerTo: "none" | "webhook";
3127
3851
  repeat: "once" | "repeat";
3128
- days: number[];
3129
3852
  time: string;
3130
- timezone: string;
3131
- customerId: string;
3853
+ cron?: string | undefined;
3854
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
3855
+ monthDay?: number | "last" | undefined;
3132
3856
  }, {
3133
- every: "week" | "day" | "hour";
3857
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
3134
3858
  kind: "schedule";
3135
3859
  date: string;
3136
3860
  id: string;
3137
3861
  tenantId: string;
3138
3862
  enabled: boolean;
3139
3863
  name: string;
3140
- runsAs: "one" | "none";
3864
+ timezone: string;
3865
+ customerId: string;
3866
+ days: number[];
3867
+ runsAs: "none" | "one";
3141
3868
  instruction: string;
3142
- answerTo: "webhook" | "none";
3869
+ answerTo: "none" | "webhook";
3143
3870
  repeat: "once" | "repeat";
3144
- days: number[];
3145
3871
  time: string;
3146
- timezone: string;
3147
- customerId: string;
3148
3872
  variables?: Record<string, unknown> | undefined;
3873
+ cron?: string | undefined;
3874
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
3875
+ monthDay?: number | "last" | undefined;
3149
3876
  }>]>, "many">>>;
3877
+ workflows: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
3878
+ workflowId: z.ZodString;
3879
+ version: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"live">]>;
3880
+ }, "strict", z.ZodTypeAny, {
3881
+ version: number | "live";
3882
+ workflowId: string;
3883
+ }, {
3884
+ version: number | "live";
3885
+ workflowId: string;
3886
+ }>, "many">>>;
3150
3887
  model: z.ZodOptional<z.ZodObject<{
3151
3888
  id: z.ZodString;
3152
- effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
3889
+ effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
3153
3890
  }, "strict", z.ZodTypeAny, {
3154
3891
  id: string;
3155
- effort: "low" | "medium" | "high" | "xhigh";
3892
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3156
3893
  }, {
3157
3894
  id: string;
3158
- effort: "low" | "medium" | "high" | "xhigh";
3895
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3159
3896
  }>>;
3160
3897
  instructions: z.ZodOptional<z.ZodObject<{
3161
3898
  text: z.ZodString;
@@ -3224,6 +3961,9 @@ export declare const botPatchSchema: z.ZodObject<{
3224
3961
  }, "strict", z.ZodTypeAny, {
3225
3962
  id: string;
3226
3963
  name: string;
3964
+ cases: {
3965
+ text: string;
3966
+ }[];
3227
3967
  files: {
3228
3968
  name: string;
3229
3969
  content: string;
@@ -3232,9 +3972,6 @@ export declare const botPatchSchema: z.ZodObject<{
3232
3972
  summary: string;
3233
3973
  icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
3234
3974
  load: "auto" | "always";
3235
- cases: {
3236
- text: string;
3237
- }[];
3238
3975
  exceptions: {
3239
3976
  text: string;
3240
3977
  }[];
@@ -3250,12 +3987,12 @@ export declare const botPatchSchema: z.ZodObject<{
3250
3987
  }, {
3251
3988
  id: string;
3252
3989
  name: string;
3253
- summary: string;
3254
- icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
3255
- load: "auto" | "always";
3256
3990
  cases: {
3257
3991
  text: string;
3258
3992
  }[];
3993
+ summary: string;
3994
+ icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
3995
+ load: "auto" | "always";
3259
3996
  exceptions: {
3260
3997
  text: string;
3261
3998
  }[];
@@ -3328,7 +4065,7 @@ export declare const botPatchSchema: z.ZodObject<{
3328
4065
  enabled: boolean;
3329
4066
  files: "per_customer" | "per_run";
3330
4067
  configured: boolean;
3331
- size: "medium" | "small" | "large";
4068
+ size: "medium" | "large" | "small";
3332
4069
  access: "allow" | "ask" | "block";
3333
4070
  languages: string[];
3334
4071
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
@@ -3336,7 +4073,7 @@ export declare const botPatchSchema: z.ZodObject<{
3336
4073
  enabled: boolean;
3337
4074
  files: "per_customer" | "per_run";
3338
4075
  configured: boolean;
3339
- size: "medium" | "small" | "large";
4076
+ size: "medium" | "large" | "small";
3340
4077
  access: "allow" | "ask" | "block";
3341
4078
  languages: string[];
3342
4079
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
@@ -3378,28 +4115,28 @@ export declare const botPatchSchema: z.ZodObject<{
3378
4115
  target: z.ZodEnum<["path", "query", "header", "body"]>;
3379
4116
  key: z.ZodString;
3380
4117
  }, "strict", z.ZodTypeAny, {
3381
- path: string[];
3382
- source: "variable" | "context" | "model" | "identity";
3383
- target: "body" | "path" | "query" | "header";
3384
4118
  key: string;
3385
- }, {
4119
+ source: "model" | "variable" | "context" | "identity";
3386
4120
  path: string[];
3387
- source: "variable" | "context" | "model" | "identity";
3388
- target: "body" | "path" | "query" | "header";
4121
+ target: "path" | "body" | "query" | "header";
4122
+ }, {
3389
4123
  key: string;
4124
+ source: "model" | "variable" | "context" | "identity";
4125
+ path: string[];
4126
+ target: "path" | "body" | "query" | "header";
3390
4127
  }>, "many">>;
3391
4128
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3392
4129
  sample: z.ZodOptional<z.ZodUnknown>;
3393
4130
  }, "strict", z.ZodTypeAny, {
3394
- headers: Record<string, string>;
3395
- body: string;
3396
4131
  path: string;
3397
4132
  id: string;
3398
4133
  name: string;
4134
+ headers: Record<string, string>;
4135
+ body: string;
3399
4136
  query: Record<string, string>;
3400
4137
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3401
- bodyType: "json" | "xml" | "form" | "gql";
3402
- readAs: "json" | "xml" | "text" | "auto";
4138
+ bodyType: "json" | "form" | "xml" | "gql";
4139
+ readAs: "text" | "json" | "xml" | "auto";
3403
4140
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3404
4141
  summary: string;
3405
4142
  latencyMs: number | null;
@@ -3407,58 +4144,51 @@ export declare const botPatchSchema: z.ZodObject<{
3407
4144
  effects: "read" | "write" | "unclassified";
3408
4145
  permission: "allow" | "ask" | "block";
3409
4146
  bindings: {
3410
- path: string[];
3411
- source: "variable" | "context" | "model" | "identity";
3412
- target: "body" | "path" | "query" | "header";
3413
4147
  key: string;
4148
+ source: "model" | "variable" | "context" | "identity";
4149
+ path: string[];
4150
+ target: "path" | "body" | "query" | "header";
3414
4151
  }[];
3415
- sample?: unknown;
3416
4152
  inputSchema?: Record<string, unknown> | undefined;
4153
+ sample?: unknown;
3417
4154
  responseSchema?: Record<string, unknown> | undefined;
3418
4155
  }, {
3419
4156
  path: string;
3420
4157
  id: string;
3421
4158
  name: string;
3422
4159
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3423
- bodyType: "json" | "xml" | "form" | "gql";
3424
- readAs: "json" | "xml" | "text" | "auto";
4160
+ bodyType: "json" | "form" | "xml" | "gql";
4161
+ readAs: "text" | "json" | "xml" | "auto";
3425
4162
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3426
4163
  summary: string;
3427
4164
  latencyMs: number | null;
3428
4165
  visibleFields: string[];
3429
4166
  effects: "read" | "write" | "unclassified";
4167
+ inputSchema?: Record<string, unknown> | undefined;
3430
4168
  headers?: Record<string, string> | undefined;
3431
4169
  body?: string | undefined;
3432
4170
  sample?: unknown;
3433
4171
  query?: Record<string, string> | undefined;
3434
4172
  permission?: "allow" | "ask" | "block" | undefined;
3435
- inputSchema?: Record<string, unknown> | undefined;
3436
4173
  bindings?: {
3437
- path: string[];
3438
- source: "variable" | "context" | "model" | "identity";
3439
- target: "body" | "path" | "query" | "header";
3440
4174
  key: string;
4175
+ source: "model" | "variable" | "context" | "identity";
4176
+ path: string[];
4177
+ target: "path" | "body" | "query" | "header";
3441
4178
  }[] | undefined;
3442
4179
  responseSchema?: Record<string, unknown> | undefined;
3443
4180
  }>, "many">;
3444
4181
  }, "strict", z.ZodTypeAny, {
3445
- kind: "http" | "graphql" | "openapi";
3446
- id: string;
3447
- name: string;
3448
- host: string;
3449
- baseUrl: string;
3450
- auth: "one" | "each" | "oauth" | "none";
3451
- sendCustomerIdentity: boolean;
3452
4182
  calls: {
3453
- headers: Record<string, string>;
3454
- body: string;
3455
4183
  path: string;
3456
4184
  id: string;
3457
4185
  name: string;
4186
+ headers: Record<string, string>;
4187
+ body: string;
3458
4188
  query: Record<string, string>;
3459
4189
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3460
- bodyType: "json" | "xml" | "form" | "gql";
3461
- readAs: "json" | "xml" | "text" | "auto";
4190
+ bodyType: "json" | "form" | "xml" | "gql";
4191
+ readAs: "text" | "json" | "xml" | "auto";
3462
4192
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3463
4193
  summary: string;
3464
4194
  latencyMs: number | null;
@@ -3466,57 +4196,64 @@ export declare const botPatchSchema: z.ZodObject<{
3466
4196
  effects: "read" | "write" | "unclassified";
3467
4197
  permission: "allow" | "ask" | "block";
3468
4198
  bindings: {
3469
- path: string[];
3470
- source: "variable" | "context" | "model" | "identity";
3471
- target: "body" | "path" | "query" | "header";
3472
4199
  key: string;
4200
+ source: "model" | "variable" | "context" | "identity";
4201
+ path: string[];
4202
+ target: "path" | "body" | "query" | "header";
3473
4203
  }[];
3474
- sample?: unknown;
3475
4204
  inputSchema?: Record<string, unknown> | undefined;
4205
+ sample?: unknown;
3476
4206
  responseSchema?: Record<string, unknown> | undefined;
3477
4207
  }[];
3478
- credentialId?: string | undefined;
3479
- authHeader?: string | undefined;
3480
- }, {
3481
4208
  kind: "http" | "graphql" | "openapi";
3482
4209
  id: string;
3483
4210
  name: string;
3484
4211
  host: string;
3485
4212
  baseUrl: string;
3486
- auth: "one" | "each" | "oauth" | "none";
4213
+ auth: "none" | "one" | "each" | "oauth";
3487
4214
  sendCustomerIdentity: boolean;
4215
+ credentialId?: string | undefined;
4216
+ authHeader?: string | undefined;
4217
+ }, {
3488
4218
  calls: {
3489
4219
  path: string;
3490
4220
  id: string;
3491
4221
  name: string;
3492
4222
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3493
- bodyType: "json" | "xml" | "form" | "gql";
3494
- readAs: "json" | "xml" | "text" | "auto";
4223
+ bodyType: "json" | "form" | "xml" | "gql";
4224
+ readAs: "text" | "json" | "xml" | "auto";
3495
4225
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3496
4226
  summary: string;
3497
4227
  latencyMs: number | null;
3498
4228
  visibleFields: string[];
3499
4229
  effects: "read" | "write" | "unclassified";
4230
+ inputSchema?: Record<string, unknown> | undefined;
3500
4231
  headers?: Record<string, string> | undefined;
3501
4232
  body?: string | undefined;
3502
4233
  sample?: unknown;
3503
4234
  query?: Record<string, string> | undefined;
3504
4235
  permission?: "allow" | "ask" | "block" | undefined;
3505
- inputSchema?: Record<string, unknown> | undefined;
3506
4236
  bindings?: {
3507
- path: string[];
3508
- source: "variable" | "context" | "model" | "identity";
3509
- target: "body" | "path" | "query" | "header";
3510
4237
  key: string;
4238
+ source: "model" | "variable" | "context" | "identity";
4239
+ path: string[];
4240
+ target: "path" | "body" | "query" | "header";
3511
4241
  }[] | undefined;
3512
4242
  responseSchema?: Record<string, unknown> | undefined;
3513
4243
  }[];
4244
+ kind: "http" | "graphql" | "openapi";
4245
+ id: string;
4246
+ name: string;
4247
+ host: string;
4248
+ baseUrl: string;
4249
+ auth: "none" | "one" | "each" | "oauth";
4250
+ sendCustomerIdentity: boolean;
3514
4251
  credentialId?: string | undefined;
3515
4252
  authHeader?: string | undefined;
3516
4253
  }>, "many">;
3517
4254
  apps: z.ZodArray<z.ZodObject<{
3518
4255
  key: z.ZodString;
3519
- account: z.ZodEnum<["project", "customer"]>;
4256
+ account: z.ZodEnum<["project", "customer", "deployment"]>;
3520
4257
  accountId: z.ZodOptional<z.ZodString>;
3521
4258
  rules: z.ZodObject<{
3522
4259
  read: z.ZodEnum<["allow", "ask", "block"]>;
@@ -3536,7 +4273,7 @@ export declare const botPatchSchema: z.ZodObject<{
3536
4273
  pinned: z.ZodArray<z.ZodString, "many">;
3537
4274
  }, "strict", z.ZodTypeAny, {
3538
4275
  key: string;
3539
- account: "customer" | "project";
4276
+ account: "customer" | "deployment" | "project";
3540
4277
  rules: {
3541
4278
  read: "allow" | "ask" | "block";
3542
4279
  change: "allow" | "ask" | "block";
@@ -3548,7 +4285,7 @@ export declare const botPatchSchema: z.ZodObject<{
3548
4285
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
3549
4286
  }, {
3550
4287
  key: string;
3551
- account: "customer" | "project";
4288
+ account: "customer" | "deployment" | "project";
3552
4289
  rules: {
3553
4290
  read: "allow" | "ask" | "block";
3554
4291
  change: "allow" | "ask" | "block";
@@ -3572,14 +4309,14 @@ export declare const botPatchSchema: z.ZodObject<{
3572
4309
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3573
4310
  outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3574
4311
  }, "strict", z.ZodTypeAny, {
4312
+ description: string;
3575
4313
  name: string;
3576
4314
  inputSchema: Record<string, unknown>;
3577
- description: string;
3578
4315
  outputSchema?: Record<string, unknown> | undefined;
3579
4316
  }, {
4317
+ description: string;
3580
4318
  name: string;
3581
4319
  inputSchema: Record<string, unknown>;
3582
- description: string;
3583
4320
  outputSchema?: Record<string, unknown> | undefined;
3584
4321
  }>, "many">>;
3585
4322
  groups: z.ZodArray<z.ZodObject<{
@@ -3605,9 +4342,9 @@ export declare const botPatchSchema: z.ZodObject<{
3605
4342
  url: string;
3606
4343
  toolCount: number;
3607
4344
  definitions: {
4345
+ description: string;
3608
4346
  name: string;
3609
4347
  inputSchema: Record<string, unknown>;
3610
- description: string;
3611
4348
  outputSchema?: Record<string, unknown> | undefined;
3612
4349
  }[];
3613
4350
  groups: {
@@ -3631,9 +4368,9 @@ export declare const botPatchSchema: z.ZodObject<{
3631
4368
  }[];
3632
4369
  credentialId?: string | undefined;
3633
4370
  definitions?: {
4371
+ description: string;
3634
4372
  name: string;
3635
4373
  inputSchema: Record<string, unknown>;
3636
- description: string;
3637
4374
  outputSchema?: Record<string, unknown> | undefined;
3638
4375
  }[] | undefined;
3639
4376
  }>, "many">;
@@ -3660,11 +4397,11 @@ export declare const botPatchSchema: z.ZodObject<{
3660
4397
  done: z.ZodNumber;
3661
4398
  total: z.ZodNumber;
3662
4399
  }, "strip", z.ZodTypeAny, {
3663
- done: number;
3664
4400
  total: number;
3665
- }, {
3666
4401
  done: number;
4402
+ }, {
3667
4403
  total: number;
4404
+ done: number;
3668
4405
  }>>;
3669
4406
  progress: z.ZodOptional<z.ZodObject<{
3670
4407
  stage: z.ZodString;
@@ -3672,20 +4409,20 @@ export declare const botPatchSchema: z.ZodObject<{
3672
4409
  total: z.ZodNumber;
3673
4410
  retryable: z.ZodBoolean;
3674
4411
  }, "strip", z.ZodTypeAny, {
3675
- done: number;
3676
4412
  total: number;
4413
+ done: number;
3677
4414
  stage: string;
3678
4415
  retryable: boolean;
3679
4416
  }, {
3680
- done: number;
3681
4417
  total: number;
4418
+ done: number;
3682
4419
  stage: string;
3683
4420
  retryable: boolean;
3684
4421
  }>>;
3685
4422
  syncedLabel: z.ZodString;
3686
4423
  }, "strict", z.ZodTypeAny, {
3687
4424
  status: "failed" | "ready" | "syncing";
3688
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4425
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3689
4426
  id: string;
3690
4427
  name: string;
3691
4428
  scope: "customer" | "project";
@@ -3693,8 +4430,8 @@ export declare const botPatchSchema: z.ZodObject<{
3693
4430
  syncedLabel: string;
3694
4431
  error?: string | undefined;
3695
4432
  pages?: {
3696
- done: number;
3697
4433
  total: number;
4434
+ done: number;
3698
4435
  } | undefined;
3699
4436
  url?: string | undefined;
3700
4437
  connectedSource?: {
@@ -3702,32 +4439,32 @@ export declare const botPatchSchema: z.ZodObject<{
3702
4439
  resourceId: string;
3703
4440
  } | undefined;
3704
4441
  progress?: {
3705
- done: number;
3706
4442
  total: number;
4443
+ done: number;
3707
4444
  stage: string;
3708
4445
  retryable: boolean;
3709
4446
  } | undefined;
3710
4447
  }, {
3711
4448
  status: "failed" | "ready" | "syncing";
3712
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4449
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3713
4450
  id: string;
3714
4451
  name: string;
3715
4452
  detail: string;
3716
4453
  syncedLabel: string;
3717
4454
  error?: string | undefined;
4455
+ scope?: "customer" | "project" | undefined;
3718
4456
  pages?: {
3719
- done: number;
3720
4457
  total: number;
4458
+ done: number;
3721
4459
  } | undefined;
3722
4460
  url?: string | undefined;
3723
- scope?: "customer" | "project" | undefined;
3724
4461
  connectedSource?: {
3725
4462
  accountId: string;
3726
4463
  resourceId: string;
3727
4464
  } | undefined;
3728
4465
  progress?: {
3729
- done: number;
3730
4466
  total: number;
4467
+ done: number;
3731
4468
  stage: string;
3732
4469
  retryable: boolean;
3733
4470
  } | undefined;
@@ -3737,18 +4474,18 @@ export declare const botPatchSchema: z.ZodObject<{
3737
4474
  provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
3738
4475
  preferSites: z.ZodArray<z.ZodString, "many">;
3739
4476
  }, "strict", z.ZodTypeAny, {
3740
- enabled: boolean;
3741
4477
  provider: "builtin";
4478
+ enabled: boolean;
3742
4479
  preferSites: string[];
3743
4480
  }, {
3744
- enabled: boolean;
3745
4481
  provider: "builtin" | "exa" | "firecrawl";
4482
+ enabled: boolean;
3746
4483
  preferSites: string[];
3747
4484
  }>;
3748
4485
  }, "strict", z.ZodTypeAny, {
3749
4486
  knowledge: {
3750
4487
  status: "failed" | "ready" | "syncing";
3751
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4488
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3752
4489
  id: string;
3753
4490
  name: string;
3754
4491
  scope: "customer" | "project";
@@ -3756,8 +4493,8 @@ export declare const botPatchSchema: z.ZodObject<{
3756
4493
  syncedLabel: string;
3757
4494
  error?: string | undefined;
3758
4495
  pages?: {
3759
- done: number;
3760
4496
  total: number;
4497
+ done: number;
3761
4498
  } | undefined;
3762
4499
  url?: string | undefined;
3763
4500
  connectedSource?: {
@@ -3765,8 +4502,8 @@ export declare const botPatchSchema: z.ZodObject<{
3765
4502
  resourceId: string;
3766
4503
  } | undefined;
3767
4504
  progress?: {
3768
- done: number;
3769
4505
  total: number;
4506
+ done: number;
3770
4507
  stage: string;
3771
4508
  retryable: boolean;
3772
4509
  } | undefined;
@@ -3775,23 +4512,16 @@ export declare const botPatchSchema: z.ZodObject<{
3775
4512
  searchPastChats: boolean;
3776
4513
  conversationRetentionDays: number;
3777
4514
  apis: {
3778
- kind: "http" | "graphql" | "openapi";
3779
- id: string;
3780
- name: string;
3781
- host: string;
3782
- baseUrl: string;
3783
- auth: "one" | "each" | "oauth" | "none";
3784
- sendCustomerIdentity: boolean;
3785
4515
  calls: {
3786
- headers: Record<string, string>;
3787
- body: string;
3788
4516
  path: string;
3789
4517
  id: string;
3790
4518
  name: string;
4519
+ headers: Record<string, string>;
4520
+ body: string;
3791
4521
  query: Record<string, string>;
3792
4522
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3793
- bodyType: "json" | "xml" | "form" | "gql";
3794
- readAs: "json" | "xml" | "text" | "auto";
4523
+ bodyType: "json" | "form" | "xml" | "gql";
4524
+ readAs: "text" | "json" | "xml" | "auto";
3795
4525
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3796
4526
  summary: string;
3797
4527
  latencyMs: number | null;
@@ -3799,21 +4529,28 @@ export declare const botPatchSchema: z.ZodObject<{
3799
4529
  effects: "read" | "write" | "unclassified";
3800
4530
  permission: "allow" | "ask" | "block";
3801
4531
  bindings: {
3802
- path: string[];
3803
- source: "variable" | "context" | "model" | "identity";
3804
- target: "body" | "path" | "query" | "header";
3805
4532
  key: string;
4533
+ source: "model" | "variable" | "context" | "identity";
4534
+ path: string[];
4535
+ target: "path" | "body" | "query" | "header";
3806
4536
  }[];
3807
- sample?: unknown;
3808
4537
  inputSchema?: Record<string, unknown> | undefined;
4538
+ sample?: unknown;
3809
4539
  responseSchema?: Record<string, unknown> | undefined;
3810
4540
  }[];
4541
+ kind: "http" | "graphql" | "openapi";
4542
+ id: string;
4543
+ name: string;
4544
+ host: string;
4545
+ baseUrl: string;
4546
+ auth: "none" | "one" | "each" | "oauth";
4547
+ sendCustomerIdentity: boolean;
3811
4548
  credentialId?: string | undefined;
3812
4549
  authHeader?: string | undefined;
3813
4550
  }[];
3814
4551
  apps: {
3815
4552
  key: string;
3816
- account: "customer" | "project";
4553
+ account: "customer" | "deployment" | "project";
3817
4554
  rules: {
3818
4555
  read: "allow" | "ask" | "block";
3819
4556
  change: "allow" | "ask" | "block";
@@ -3831,9 +4568,9 @@ export declare const botPatchSchema: z.ZodObject<{
3831
4568
  url: string;
3832
4569
  toolCount: number;
3833
4570
  definitions: {
4571
+ description: string;
3834
4572
  name: string;
3835
4573
  inputSchema: Record<string, unknown>;
3836
- description: string;
3837
4574
  outputSchema?: Record<string, unknown> | undefined;
3838
4575
  }[];
3839
4576
  groups: {
@@ -3845,76 +4582,76 @@ export declare const botPatchSchema: z.ZodObject<{
3845
4582
  credentialId?: string | undefined;
3846
4583
  }[];
3847
4584
  webSearch: {
3848
- enabled: boolean;
3849
4585
  provider: "builtin";
4586
+ enabled: boolean;
3850
4587
  preferSites: string[];
3851
4588
  };
3852
4589
  }, {
3853
4590
  knowledge: {
3854
4591
  status: "failed" | "ready" | "syncing";
3855
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4592
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3856
4593
  id: string;
3857
4594
  name: string;
3858
4595
  detail: string;
3859
4596
  syncedLabel: string;
3860
4597
  error?: string | undefined;
4598
+ scope?: "customer" | "project" | undefined;
3861
4599
  pages?: {
3862
- done: number;
3863
4600
  total: number;
4601
+ done: number;
3864
4602
  } | undefined;
3865
4603
  url?: string | undefined;
3866
- scope?: "customer" | "project" | undefined;
3867
4604
  connectedSource?: {
3868
4605
  accountId: string;
3869
4606
  resourceId: string;
3870
4607
  } | undefined;
3871
4608
  progress?: {
3872
- done: number;
3873
4609
  total: number;
4610
+ done: number;
3874
4611
  stage: string;
3875
4612
  retryable: boolean;
3876
4613
  } | undefined;
3877
4614
  }[];
3878
4615
  apis: {
3879
- kind: "http" | "graphql" | "openapi";
3880
- id: string;
3881
- name: string;
3882
- host: string;
3883
- baseUrl: string;
3884
- auth: "one" | "each" | "oauth" | "none";
3885
- sendCustomerIdentity: boolean;
3886
4616
  calls: {
3887
4617
  path: string;
3888
4618
  id: string;
3889
4619
  name: string;
3890
4620
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3891
- bodyType: "json" | "xml" | "form" | "gql";
3892
- readAs: "json" | "xml" | "text" | "auto";
4621
+ bodyType: "json" | "form" | "xml" | "gql";
4622
+ readAs: "text" | "json" | "xml" | "auto";
3893
4623
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3894
4624
  summary: string;
3895
4625
  latencyMs: number | null;
3896
4626
  visibleFields: string[];
3897
4627
  effects: "read" | "write" | "unclassified";
4628
+ inputSchema?: Record<string, unknown> | undefined;
3898
4629
  headers?: Record<string, string> | undefined;
3899
4630
  body?: string | undefined;
3900
4631
  sample?: unknown;
3901
4632
  query?: Record<string, string> | undefined;
3902
4633
  permission?: "allow" | "ask" | "block" | undefined;
3903
- inputSchema?: Record<string, unknown> | undefined;
3904
4634
  bindings?: {
3905
- path: string[];
3906
- source: "variable" | "context" | "model" | "identity";
3907
- target: "body" | "path" | "query" | "header";
3908
4635
  key: string;
4636
+ source: "model" | "variable" | "context" | "identity";
4637
+ path: string[];
4638
+ target: "path" | "body" | "query" | "header";
3909
4639
  }[] | undefined;
3910
4640
  responseSchema?: Record<string, unknown> | undefined;
3911
4641
  }[];
4642
+ kind: "http" | "graphql" | "openapi";
4643
+ id: string;
4644
+ name: string;
4645
+ host: string;
4646
+ baseUrl: string;
4647
+ auth: "none" | "one" | "each" | "oauth";
4648
+ sendCustomerIdentity: boolean;
3912
4649
  credentialId?: string | undefined;
3913
4650
  authHeader?: string | undefined;
3914
4651
  }[];
3915
4652
  apps: {
3916
4653
  key: string;
3917
- account: "customer" | "project";
4654
+ account: "customer" | "deployment" | "project";
3918
4655
  rules: {
3919
4656
  read: "allow" | "ask" | "block";
3920
4657
  change: "allow" | "ask" | "block";
@@ -3939,15 +4676,15 @@ export declare const botPatchSchema: z.ZodObject<{
3939
4676
  }[];
3940
4677
  credentialId?: string | undefined;
3941
4678
  definitions?: {
4679
+ description: string;
3942
4680
  name: string;
3943
4681
  inputSchema: Record<string, unknown>;
3944
- description: string;
3945
4682
  outputSchema?: Record<string, unknown> | undefined;
3946
4683
  }[] | undefined;
3947
4684
  }[];
3948
4685
  webSearch: {
3949
- enabled: boolean;
3950
4686
  provider: "builtin" | "exa" | "firecrawl";
4687
+ enabled: boolean;
3951
4688
  preferSites: string[];
3952
4689
  };
3953
4690
  readPages?: boolean | undefined;
@@ -3964,21 +4701,21 @@ export declare const botPatchSchema: z.ZodObject<{
3964
4701
  chipNote: z.ZodString;
3965
4702
  description: z.ZodString;
3966
4703
  }, "strict", z.ZodTypeAny, {
4704
+ description: string;
3967
4705
  type: "Text" | "Number" | "Yes or no" | "One of…";
3968
4706
  required: boolean;
3969
4707
  name: string;
3970
- description: string;
3971
4708
  defaultValue: string;
3972
- usedIn: ("instructions" | "api" | "run_plan")[];
4709
+ usedIn: ("api" | "instructions" | "run_plan")[];
3973
4710
  chipNote: string;
3974
4711
  values?: string[] | undefined;
3975
4712
  }, {
4713
+ description: string;
3976
4714
  type: "Text" | "Number" | "Yes or no" | "One of…";
3977
4715
  required: boolean;
3978
4716
  name: string;
3979
- description: string;
3980
4717
  defaultValue: string;
3981
- usedIn: ("instructions" | "api" | "run_plan")[];
4718
+ usedIn: ("api" | "instructions" | "run_plan")[];
3982
4719
  chipNote: string;
3983
4720
  values?: string[] | undefined;
3984
4721
  }>, "many">>;
@@ -3996,20 +4733,20 @@ export declare const botPatchSchema: z.ZodObject<{
3996
4733
  values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3997
4734
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3998
4735
  }, "strict", z.ZodTypeAny, {
3999
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
4736
+ description: string;
4737
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4000
4738
  id: string;
4001
4739
  required: boolean;
4002
4740
  name: string;
4003
- description: string;
4004
4741
  level: number;
4005
4742
  values?: string[] | undefined;
4006
4743
  items?: Record<string, unknown> | undefined;
4007
4744
  }, {
4008
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
4745
+ description: string;
4746
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4009
4747
  id: string;
4010
4748
  required: boolean;
4011
4749
  name: string;
4012
- description: string;
4013
4750
  level: number;
4014
4751
  values?: string[] | undefined;
4015
4752
  items?: Record<string, unknown> | undefined;
@@ -4017,32 +4754,32 @@ export declare const botPatchSchema: z.ZodObject<{
4017
4754
  schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4018
4755
  }, "strict", z.ZodTypeAny, {
4019
4756
  shape: {
4020
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
4757
+ description: string;
4758
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4021
4759
  id: string;
4022
4760
  required: boolean;
4023
4761
  name: string;
4024
- description: string;
4025
4762
  level: number;
4026
4763
  values?: string[] | undefined;
4027
4764
  items?: Record<string, unknown> | undefined;
4028
4765
  }[];
4029
- format: "json" | "text";
4030
- delivery: "stream" | "once" | "webhook";
4766
+ format: "text" | "json";
4767
+ delivery: "webhook" | "stream" | "once";
4031
4768
  webhookUrl: string;
4032
4769
  schema?: Record<string, unknown> | undefined;
4033
4770
  }, {
4034
4771
  shape: {
4035
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
4772
+ description: string;
4773
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4036
4774
  id: string;
4037
4775
  required: boolean;
4038
4776
  name: string;
4039
- description: string;
4040
4777
  level: number;
4041
4778
  values?: string[] | undefined;
4042
4779
  items?: Record<string, unknown> | undefined;
4043
4780
  }[];
4044
- format: "json" | "text";
4045
- delivery: "stream" | "once" | "webhook";
4781
+ format: "text" | "json";
4782
+ delivery: "webhook" | "stream" | "once";
4046
4783
  webhookUrl: string;
4047
4784
  schema?: Record<string, unknown> | undefined;
4048
4785
  }>>;
@@ -4059,38 +4796,38 @@ export declare const botPatchSchema: z.ZodObject<{
4059
4796
  path: z.ZodArray<z.ZodString, "many">;
4060
4797
  target: z.ZodArray<z.ZodString, "many">;
4061
4798
  }, "strict", z.ZodTypeAny, {
4062
- path: string[];
4063
4799
  source: "message" | "variable" | "context";
4800
+ path: string[];
4064
4801
  target: string[];
4065
4802
  }, {
4066
- path: string[];
4067
4803
  source: "message" | "variable" | "context";
4804
+ path: string[];
4068
4805
  target: string[];
4069
4806
  }>, "many">;
4070
4807
  }, "strict", z.ZodTypeAny, {
4071
4808
  kind: "workbench" | "mcp" | "app";
4072
4809
  id: string;
4073
4810
  name: string;
4811
+ input: Record<string, unknown>;
4812
+ toolKey: string;
4074
4813
  capabilityId: string;
4075
4814
  bindings: {
4076
- path: string[];
4077
4815
  source: "message" | "variable" | "context";
4816
+ path: string[];
4078
4817
  target: string[];
4079
4818
  }[];
4080
- toolKey: string;
4081
- input: Record<string, unknown>;
4082
4819
  }, {
4083
4820
  kind: "workbench" | "mcp" | "app";
4084
4821
  id: string;
4085
4822
  name: string;
4823
+ input: Record<string, unknown>;
4824
+ toolKey: string;
4086
4825
  capabilityId: string;
4087
4826
  bindings: {
4088
- path: string[];
4089
4827
  source: "message" | "variable" | "context";
4828
+ path: string[];
4090
4829
  target: string[];
4091
4830
  }[];
4092
- toolKey: string;
4093
- input: Record<string, unknown>;
4094
4831
  }>, "many">>;
4095
4832
  before: z.ZodArray<z.ZodString, "many">;
4096
4833
  after: z.ZodArray<z.ZodString, "many">;
@@ -4105,14 +4842,14 @@ export declare const botPatchSchema: z.ZodObject<{
4105
4842
  kind: "workbench" | "mcp" | "app";
4106
4843
  id: string;
4107
4844
  name: string;
4845
+ input: Record<string, unknown>;
4846
+ toolKey: string;
4108
4847
  capabilityId: string;
4109
4848
  bindings: {
4110
- path: string[];
4111
4849
  source: "message" | "variable" | "context";
4850
+ path: string[];
4112
4851
  target: string[];
4113
4852
  }[];
4114
- toolKey: string;
4115
- input: Record<string, unknown>;
4116
4853
  }[];
4117
4854
  stopOnFail: string[];
4118
4855
  stepLimit: number;
@@ -4126,40 +4863,57 @@ export declare const botPatchSchema: z.ZodObject<{
4126
4863
  kind: "workbench" | "mcp" | "app";
4127
4864
  id: string;
4128
4865
  name: string;
4866
+ input: Record<string, unknown>;
4867
+ toolKey: string;
4129
4868
  capabilityId: string;
4130
4869
  bindings: {
4131
- path: string[];
4132
4870
  source: "message" | "variable" | "context";
4871
+ path: string[];
4133
4872
  target: string[];
4134
4873
  }[];
4135
- toolKey: string;
4136
- input: Record<string, unknown>;
4137
4874
  }[] | undefined;
4138
4875
  }>>;
4139
4876
  }, "strict", z.ZodTypeAny, {
4140
- name?: string | undefined;
4877
+ memory?: {
4878
+ never: string[];
4879
+ enabled: boolean;
4880
+ configured: boolean;
4881
+ who: {
4882
+ customer: boolean;
4883
+ company: boolean;
4884
+ bot: boolean;
4885
+ };
4886
+ what: string;
4887
+ forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
4888
+ } | undefined;
4889
+ model?: {
4890
+ id: string;
4891
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
4892
+ } | undefined;
4141
4893
  workbench?: {
4142
4894
  enabled: boolean;
4143
4895
  files: "per_customer" | "per_run";
4144
4896
  configured: boolean;
4145
- size: "medium" | "small" | "large";
4897
+ size: "medium" | "large" | "small";
4146
4898
  access: "allow" | "ask" | "block";
4147
4899
  languages: string[];
4148
4900
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4149
4901
  } | undefined;
4902
+ name?: string | undefined;
4150
4903
  variables?: {
4904
+ description: string;
4151
4905
  type: "Text" | "Number" | "Yes or no" | "One of…";
4152
4906
  required: boolean;
4153
4907
  name: string;
4154
- description: string;
4155
4908
  defaultValue: string;
4156
- usedIn: ("instructions" | "api" | "run_plan")[];
4909
+ usedIn: ("api" | "instructions" | "run_plan")[];
4157
4910
  chipNote: string;
4158
4911
  values?: string[] | undefined;
4159
4912
  }[] | undefined;
4913
+ timezone?: string | null | undefined;
4160
4914
  files?: {
4161
4915
  enabled: boolean;
4162
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4916
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
4163
4917
  bigSpreadsheets: "workbench" | "preview";
4164
4918
  } | undefined;
4165
4919
  instructions?: {
@@ -4169,7 +4923,7 @@ export declare const botPatchSchema: z.ZodObject<{
4169
4923
  context?: {
4170
4924
  knowledge: {
4171
4925
  status: "failed" | "ready" | "syncing";
4172
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4926
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4173
4927
  id: string;
4174
4928
  name: string;
4175
4929
  scope: "customer" | "project";
@@ -4177,8 +4931,8 @@ export declare const botPatchSchema: z.ZodObject<{
4177
4931
  syncedLabel: string;
4178
4932
  error?: string | undefined;
4179
4933
  pages?: {
4180
- done: number;
4181
4934
  total: number;
4935
+ done: number;
4182
4936
  } | undefined;
4183
4937
  url?: string | undefined;
4184
4938
  connectedSource?: {
@@ -4186,8 +4940,8 @@ export declare const botPatchSchema: z.ZodObject<{
4186
4940
  resourceId: string;
4187
4941
  } | undefined;
4188
4942
  progress?: {
4189
- done: number;
4190
4943
  total: number;
4944
+ done: number;
4191
4945
  stage: string;
4192
4946
  retryable: boolean;
4193
4947
  } | undefined;
@@ -4196,23 +4950,16 @@ export declare const botPatchSchema: z.ZodObject<{
4196
4950
  searchPastChats: boolean;
4197
4951
  conversationRetentionDays: number;
4198
4952
  apis: {
4199
- kind: "http" | "graphql" | "openapi";
4200
- id: string;
4201
- name: string;
4202
- host: string;
4203
- baseUrl: string;
4204
- auth: "one" | "each" | "oauth" | "none";
4205
- sendCustomerIdentity: boolean;
4206
4953
  calls: {
4207
- headers: Record<string, string>;
4208
- body: string;
4209
4954
  path: string;
4210
4955
  id: string;
4211
4956
  name: string;
4957
+ headers: Record<string, string>;
4958
+ body: string;
4212
4959
  query: Record<string, string>;
4213
4960
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4214
- bodyType: "json" | "xml" | "form" | "gql";
4215
- readAs: "json" | "xml" | "text" | "auto";
4961
+ bodyType: "json" | "form" | "xml" | "gql";
4962
+ readAs: "text" | "json" | "xml" | "auto";
4216
4963
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4217
4964
  summary: string;
4218
4965
  latencyMs: number | null;
@@ -4220,21 +4967,28 @@ export declare const botPatchSchema: z.ZodObject<{
4220
4967
  effects: "read" | "write" | "unclassified";
4221
4968
  permission: "allow" | "ask" | "block";
4222
4969
  bindings: {
4223
- path: string[];
4224
- source: "variable" | "context" | "model" | "identity";
4225
- target: "body" | "path" | "query" | "header";
4226
4970
  key: string;
4971
+ source: "model" | "variable" | "context" | "identity";
4972
+ path: string[];
4973
+ target: "path" | "body" | "query" | "header";
4227
4974
  }[];
4228
- sample?: unknown;
4229
4975
  inputSchema?: Record<string, unknown> | undefined;
4976
+ sample?: unknown;
4230
4977
  responseSchema?: Record<string, unknown> | undefined;
4231
4978
  }[];
4979
+ kind: "http" | "graphql" | "openapi";
4980
+ id: string;
4981
+ name: string;
4982
+ host: string;
4983
+ baseUrl: string;
4984
+ auth: "none" | "one" | "each" | "oauth";
4985
+ sendCustomerIdentity: boolean;
4232
4986
  credentialId?: string | undefined;
4233
4987
  authHeader?: string | undefined;
4234
4988
  }[];
4235
4989
  apps: {
4236
4990
  key: string;
4237
- account: "customer" | "project";
4991
+ account: "customer" | "deployment" | "project";
4238
4992
  rules: {
4239
4993
  read: "allow" | "ask" | "block";
4240
4994
  change: "allow" | "ask" | "block";
@@ -4252,9 +5006,9 @@ export declare const botPatchSchema: z.ZodObject<{
4252
5006
  url: string;
4253
5007
  toolCount: number;
4254
5008
  definitions: {
5009
+ description: string;
4255
5010
  name: string;
4256
5011
  inputSchema: Record<string, unknown>;
4257
- description: string;
4258
5012
  outputSchema?: Record<string, unknown> | undefined;
4259
5013
  }[];
4260
5014
  groups: {
@@ -4266,31 +5020,25 @@ export declare const botPatchSchema: z.ZodObject<{
4266
5020
  credentialId?: string | undefined;
4267
5021
  }[];
4268
5022
  webSearch: {
4269
- enabled: boolean;
4270
5023
  provider: "builtin";
5024
+ enabled: boolean;
4271
5025
  preferSites: string[];
4272
5026
  };
4273
5027
  } | undefined;
4274
- memory?: {
4275
- never: string[];
4276
- enabled: boolean;
4277
- configured: boolean;
4278
- who: {
4279
- customer: boolean;
4280
- company: boolean;
4281
- bot: boolean;
4282
- };
4283
- what: string;
4284
- forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
4285
- } | undefined;
4286
- model?: {
4287
- id: string;
4288
- effort: "low" | "medium" | "high" | "xhigh";
4289
- } | undefined;
4290
- timezone?: string | null | undefined;
5028
+ publicDescription?: string | undefined;
5029
+ iconAssetId?: string | null | undefined;
5030
+ avatar?: {
5031
+ version: 1;
5032
+ style: "clay" | "pebble" | "shapes" | "letters";
5033
+ seed: string;
5034
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
5035
+ } | null | undefined;
4291
5036
  skills?: {
4292
5037
  id: string;
4293
5038
  name: string;
5039
+ cases: {
5040
+ text: string;
5041
+ }[];
4294
5042
  files: {
4295
5043
  name: string;
4296
5044
  content: string;
@@ -4299,9 +5047,6 @@ export declare const botPatchSchema: z.ZodObject<{
4299
5047
  summary: string;
4300
5048
  icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
4301
5049
  load: "auto" | "always";
4302
- cases: {
4303
- text: string;
4304
- }[];
4305
5050
  exceptions: {
4306
5051
  text: string;
4307
5052
  }[];
@@ -4317,17 +5062,17 @@ export declare const botPatchSchema: z.ZodObject<{
4317
5062
  }[] | undefined;
4318
5063
  answer?: {
4319
5064
  shape: {
4320
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
5065
+ description: string;
5066
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4321
5067
  id: string;
4322
5068
  required: boolean;
4323
5069
  name: string;
4324
- description: string;
4325
5070
  level: number;
4326
5071
  values?: string[] | undefined;
4327
5072
  items?: Record<string, unknown> | undefined;
4328
5073
  }[];
4329
- format: "json" | "text";
4330
- delivery: "stream" | "once" | "webhook";
5074
+ format: "text" | "json";
5075
+ delivery: "webhook" | "stream" | "once";
4331
5076
  webhookUrl: string;
4332
5077
  schema?: Record<string, unknown> | undefined;
4333
5078
  } | undefined;
@@ -4339,32 +5084,32 @@ export declare const botPatchSchema: z.ZodObject<{
4339
5084
  kind: "workbench" | "mcp" | "app";
4340
5085
  id: string;
4341
5086
  name: string;
5087
+ input: Record<string, unknown>;
5088
+ toolKey: string;
4342
5089
  capabilityId: string;
4343
5090
  bindings: {
4344
- path: string[];
4345
5091
  source: "message" | "variable" | "context";
5092
+ path: string[];
4346
5093
  target: string[];
4347
5094
  }[];
4348
- toolKey: string;
4349
- input: Record<string, unknown>;
4350
5095
  }[];
4351
5096
  stopOnFail: string[];
4352
5097
  stepLimit: number;
4353
5098
  } | undefined;
4354
5099
  triggers?: ({
5100
+ label: string;
4355
5101
  kind: "app";
4356
5102
  id: string;
4357
5103
  enabled: boolean;
4358
5104
  name: string;
4359
5105
  variables: Record<string, unknown>;
4360
5106
  subscriptionId: string;
4361
- label: string;
4362
5107
  providerKey: string;
4363
5108
  eventTypes: string[];
4364
5109
  runsAs: "none" | "field";
4365
5110
  customerField: string;
4366
5111
  instruction: string;
4367
- answerTo: "webhook" | "none";
5112
+ answerTo: "none" | "webhook";
4368
5113
  } | {
4369
5114
  kind: "webhook";
4370
5115
  id: string;
@@ -4375,9 +5120,9 @@ export declare const botPatchSchema: z.ZodObject<{
4375
5120
  runsAs: "none" | "field";
4376
5121
  customerField: string;
4377
5122
  instruction: string;
4378
- answerTo: "webhook" | "none";
5123
+ answerTo: "none" | "webhook";
4379
5124
  } | {
4380
- every: "week" | "day" | "hour";
5125
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
4381
5126
  kind: "schedule";
4382
5127
  date: string;
4383
5128
  id: string;
@@ -4385,39 +5130,63 @@ export declare const botPatchSchema: z.ZodObject<{
4385
5130
  enabled: boolean;
4386
5131
  name: string;
4387
5132
  variables: Record<string, unknown>;
4388
- runsAs: "one" | "none";
5133
+ timezone: string;
5134
+ customerId: string;
5135
+ days: number[];
5136
+ runsAs: "none" | "one";
4389
5137
  instruction: string;
4390
- answerTo: "webhook" | "none";
5138
+ answerTo: "none" | "webhook";
4391
5139
  repeat: "once" | "repeat";
4392
- days: number[];
4393
5140
  time: string;
4394
- timezone: string;
4395
- customerId: string;
5141
+ cron?: string | undefined;
5142
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
5143
+ monthDay?: number | "last" | undefined;
4396
5144
  })[] | undefined;
5145
+ workflows?: {
5146
+ version: number | "live";
5147
+ workflowId: string;
5148
+ }[] | undefined;
4397
5149
  }, {
4398
- name?: string | undefined;
5150
+ memory?: {
5151
+ never: string[];
5152
+ enabled: boolean;
5153
+ configured: boolean;
5154
+ who: {
5155
+ customer: boolean;
5156
+ company: boolean;
5157
+ bot: boolean;
5158
+ };
5159
+ what: string;
5160
+ forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
5161
+ } | undefined;
5162
+ model?: {
5163
+ id: string;
5164
+ effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
5165
+ } | undefined;
4399
5166
  workbench?: {
4400
5167
  enabled: boolean;
4401
5168
  files: "per_customer" | "per_run";
4402
5169
  configured: boolean;
4403
- size: "medium" | "small" | "large";
5170
+ size: "medium" | "large" | "small";
4404
5171
  access: "allow" | "ask" | "block";
4405
5172
  languages: string[];
4406
5173
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4407
5174
  } | undefined;
5175
+ name?: string | undefined;
4408
5176
  variables?: {
5177
+ description: string;
4409
5178
  type: "Text" | "Number" | "Yes or no" | "One of…";
4410
5179
  required: boolean;
4411
5180
  name: string;
4412
- description: string;
4413
5181
  defaultValue: string;
4414
- usedIn: ("instructions" | "api" | "run_plan")[];
5182
+ usedIn: ("api" | "instructions" | "run_plan")[];
4415
5183
  chipNote: string;
4416
5184
  values?: string[] | undefined;
4417
5185
  }[] | undefined;
5186
+ timezone?: string | null | undefined;
4418
5187
  files?: {
4419
5188
  enabled: boolean;
4420
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
5189
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
4421
5190
  bigSpreadsheets: "workbench" | "preview";
4422
5191
  } | undefined;
4423
5192
  instructions?: {
@@ -4427,69 +5196,69 @@ export declare const botPatchSchema: z.ZodObject<{
4427
5196
  context?: {
4428
5197
  knowledge: {
4429
5198
  status: "failed" | "ready" | "syncing";
4430
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
5199
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4431
5200
  id: string;
4432
5201
  name: string;
4433
5202
  detail: string;
4434
5203
  syncedLabel: string;
4435
5204
  error?: string | undefined;
5205
+ scope?: "customer" | "project" | undefined;
4436
5206
  pages?: {
4437
- done: number;
4438
5207
  total: number;
5208
+ done: number;
4439
5209
  } | undefined;
4440
5210
  url?: string | undefined;
4441
- scope?: "customer" | "project" | undefined;
4442
5211
  connectedSource?: {
4443
5212
  accountId: string;
4444
5213
  resourceId: string;
4445
5214
  } | undefined;
4446
5215
  progress?: {
4447
- done: number;
4448
5216
  total: number;
5217
+ done: number;
4449
5218
  stage: string;
4450
5219
  retryable: boolean;
4451
5220
  } | undefined;
4452
5221
  }[];
4453
5222
  apis: {
4454
- kind: "http" | "graphql" | "openapi";
4455
- id: string;
4456
- name: string;
4457
- host: string;
4458
- baseUrl: string;
4459
- auth: "one" | "each" | "oauth" | "none";
4460
- sendCustomerIdentity: boolean;
4461
5223
  calls: {
4462
5224
  path: string;
4463
5225
  id: string;
4464
5226
  name: string;
4465
5227
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4466
- bodyType: "json" | "xml" | "form" | "gql";
4467
- readAs: "json" | "xml" | "text" | "auto";
5228
+ bodyType: "json" | "form" | "xml" | "gql";
5229
+ readAs: "text" | "json" | "xml" | "auto";
4468
5230
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4469
5231
  summary: string;
4470
5232
  latencyMs: number | null;
4471
5233
  visibleFields: string[];
4472
5234
  effects: "read" | "write" | "unclassified";
5235
+ inputSchema?: Record<string, unknown> | undefined;
4473
5236
  headers?: Record<string, string> | undefined;
4474
5237
  body?: string | undefined;
4475
5238
  sample?: unknown;
4476
5239
  query?: Record<string, string> | undefined;
4477
5240
  permission?: "allow" | "ask" | "block" | undefined;
4478
- inputSchema?: Record<string, unknown> | undefined;
4479
5241
  bindings?: {
4480
- path: string[];
4481
- source: "variable" | "context" | "model" | "identity";
4482
- target: "body" | "path" | "query" | "header";
4483
5242
  key: string;
5243
+ source: "model" | "variable" | "context" | "identity";
5244
+ path: string[];
5245
+ target: "path" | "body" | "query" | "header";
4484
5246
  }[] | undefined;
4485
5247
  responseSchema?: Record<string, unknown> | undefined;
4486
5248
  }[];
5249
+ kind: "http" | "graphql" | "openapi";
5250
+ id: string;
5251
+ name: string;
5252
+ host: string;
5253
+ baseUrl: string;
5254
+ auth: "none" | "one" | "each" | "oauth";
5255
+ sendCustomerIdentity: boolean;
4487
5256
  credentialId?: string | undefined;
4488
5257
  authHeader?: string | undefined;
4489
5258
  }[];
4490
5259
  apps: {
4491
5260
  key: string;
4492
- account: "customer" | "project";
5261
+ account: "customer" | "deployment" | "project";
4493
5262
  rules: {
4494
5263
  read: "allow" | "ask" | "block";
4495
5264
  change: "allow" | "ask" | "block";
@@ -4514,47 +5283,38 @@ export declare const botPatchSchema: z.ZodObject<{
4514
5283
  }[];
4515
5284
  credentialId?: string | undefined;
4516
5285
  definitions?: {
5286
+ description: string;
4517
5287
  name: string;
4518
5288
  inputSchema: Record<string, unknown>;
4519
- description: string;
4520
5289
  outputSchema?: Record<string, unknown> | undefined;
4521
5290
  }[] | undefined;
4522
5291
  }[];
4523
5292
  webSearch: {
4524
- enabled: boolean;
4525
5293
  provider: "builtin" | "exa" | "firecrawl";
5294
+ enabled: boolean;
4526
5295
  preferSites: string[];
4527
5296
  };
4528
5297
  readPages?: boolean | undefined;
4529
5298
  searchPastChats?: boolean | undefined;
4530
5299
  conversationRetentionDays?: number | undefined;
4531
5300
  } | undefined;
4532
- memory?: {
4533
- never: string[];
4534
- enabled: boolean;
4535
- configured: boolean;
4536
- who: {
4537
- customer: boolean;
4538
- company: boolean;
4539
- bot: boolean;
4540
- };
4541
- what: string;
4542
- forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
4543
- } | undefined;
4544
- model?: {
4545
- id: string;
4546
- effort: "low" | "medium" | "high" | "xhigh";
4547
- } | undefined;
4548
- timezone?: string | null | undefined;
5301
+ publicDescription?: string | undefined;
5302
+ iconAssetId?: string | null | undefined;
5303
+ avatar?: {
5304
+ version: 1;
5305
+ style: "clay" | "pebble" | "shapes" | "letters";
5306
+ seed: string;
5307
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
5308
+ } | null | undefined;
4549
5309
  skills?: {
4550
5310
  id: string;
4551
5311
  name: string;
4552
- summary: string;
4553
- icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
4554
- load: "auto" | "always";
4555
5312
  cases: {
4556
5313
  text: string;
4557
5314
  }[];
5315
+ summary: string;
5316
+ icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
5317
+ load: "auto" | "always";
4558
5318
  exceptions: {
4559
5319
  text: string;
4560
5320
  }[];
@@ -4575,17 +5335,17 @@ export declare const botPatchSchema: z.ZodObject<{
4575
5335
  }[] | undefined;
4576
5336
  answer?: {
4577
5337
  shape: {
4578
- type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
5338
+ description: string;
5339
+ type: "number" | "date" | "enum" | "text" | "list" | "bool" | "group";
4579
5340
  id: string;
4580
5341
  required: boolean;
4581
5342
  name: string;
4582
- description: string;
4583
5343
  level: number;
4584
5344
  values?: string[] | undefined;
4585
5345
  items?: Record<string, unknown> | undefined;
4586
5346
  }[];
4587
- format: "json" | "text";
4588
- delivery: "stream" | "once" | "webhook";
5347
+ format: "text" | "json";
5348
+ delivery: "webhook" | "stream" | "once";
4589
5349
  webhookUrl: string;
4590
5350
  schema?: Record<string, unknown> | undefined;
4591
5351
  } | undefined;
@@ -4599,29 +5359,29 @@ export declare const botPatchSchema: z.ZodObject<{
4599
5359
  kind: "workbench" | "mcp" | "app";
4600
5360
  id: string;
4601
5361
  name: string;
5362
+ input: Record<string, unknown>;
5363
+ toolKey: string;
4602
5364
  capabilityId: string;
4603
5365
  bindings: {
4604
- path: string[];
4605
5366
  source: "message" | "variable" | "context";
5367
+ path: string[];
4606
5368
  target: string[];
4607
5369
  }[];
4608
- toolKey: string;
4609
- input: Record<string, unknown>;
4610
5370
  }[] | undefined;
4611
5371
  } | undefined;
4612
5372
  triggers?: ({
5373
+ label: string;
4613
5374
  kind: "app";
4614
5375
  id: string;
4615
5376
  enabled: boolean;
4616
5377
  name: string;
4617
5378
  subscriptionId: string;
4618
- label: string;
4619
5379
  providerKey: string;
4620
5380
  eventTypes: string[];
4621
5381
  runsAs: "none" | "field";
4622
5382
  customerField: string;
4623
5383
  instruction: string;
4624
- answerTo: "webhook" | "none";
5384
+ answerTo: "none" | "webhook";
4625
5385
  variables?: Record<string, unknown> | undefined;
4626
5386
  } | {
4627
5387
  kind: "webhook";
@@ -4632,32 +5392,39 @@ export declare const botPatchSchema: z.ZodObject<{
4632
5392
  runsAs: "none" | "field";
4633
5393
  customerField: string;
4634
5394
  instruction: string;
4635
- answerTo: "webhook" | "none";
5395
+ answerTo: "none" | "webhook";
4636
5396
  variables?: Record<string, unknown> | undefined;
4637
5397
  } | {
4638
- every: "week" | "day" | "hour";
5398
+ every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
4639
5399
  kind: "schedule";
4640
5400
  date: string;
4641
5401
  id: string;
4642
5402
  tenantId: string;
4643
5403
  enabled: boolean;
4644
5404
  name: string;
4645
- runsAs: "one" | "none";
5405
+ timezone: string;
5406
+ customerId: string;
5407
+ days: number[];
5408
+ runsAs: "none" | "one";
4646
5409
  instruction: string;
4647
- answerTo: "webhook" | "none";
5410
+ answerTo: "none" | "webhook";
4648
5411
  repeat: "once" | "repeat";
4649
- days: number[];
4650
5412
  time: string;
4651
- timezone: string;
4652
- customerId: string;
4653
5413
  variables?: Record<string, unknown> | undefined;
5414
+ cron?: string | undefined;
5415
+ intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
5416
+ monthDay?: number | "last" | undefined;
4654
5417
  })[] | undefined;
5418
+ workflows?: {
5419
+ version: number | "live";
5420
+ workflowId: string;
5421
+ }[] | undefined;
4655
5422
  }>;
4656
5423
  export declare const botRunInputSchema: z.ZodObject<{
4657
5424
  attachments: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4658
5425
  runId: z.ZodOptional<z.ZodString>;
4659
5426
  conversationId: z.ZodOptional<z.ZodString>;
4660
- message: z.ZodString;
5427
+ message: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4661
5428
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4662
5429
  revision: z.ZodOptional<z.ZodNumber>;
4663
5430
  dataMode: z.ZodDefault<z.ZodEnum<["sample", "live"]>>;
@@ -4667,7 +5434,7 @@ export declare const botRunInputSchema: z.ZodObject<{
4667
5434
  message: string;
4668
5435
  variables: Record<string, unknown>;
4669
5436
  attachments: string[];
4670
- dataMode: "sample" | "live";
5437
+ dataMode: "live" | "sample";
4671
5438
  revision?: number | undefined;
4672
5439
  conversationId?: string | undefined;
4673
5440
  runId?: string | undefined;
@@ -4676,11 +5443,11 @@ export declare const botRunInputSchema: z.ZodObject<{
4676
5443
  }, {
4677
5444
  message: string;
4678
5445
  revision?: number | undefined;
5446
+ variables?: Record<string, unknown> | undefined;
4679
5447
  conversationId?: string | undefined;
4680
5448
  runId?: string | undefined;
4681
- variables?: Record<string, unknown> | undefined;
4682
5449
  attachments?: string[] | undefined;
4683
- dataMode?: "sample" | "live" | undefined;
5450
+ dataMode?: "live" | "sample" | undefined;
4684
5451
  customerSessionId?: string | undefined;
4685
5452
  connectionReturnUrl?: string | undefined;
4686
5453
  }>;
@@ -4694,4 +5461,9 @@ export declare function botApplicationToolRule(config: BotConfiguration, tool: {
4694
5461
  toolkitKey: string;
4695
5462
  mutationLevel: string;
4696
5463
  }): ActionRule;
5464
+ /** Provider grants required by the explicitly selected native chat features. */
5465
+ export declare function botNativeRequiredScopes(provider: BotTeamProvider, value: z.input<typeof botNativeFeaturesSchema>): {
5466
+ scope: string;
5467
+ reason: string;
5468
+ }[];
4697
5469
  //# sourceMappingURL=bot-contract.d.ts.map