@stacklink/sdk 0.3.14 → 0.4.0

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.
@@ -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,196 @@ 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: "cancelled" | "waiting" | "queued" | "running" | "failed" | "all" | "followup" | "files" | "completed" | "stopped" | "delivery_failed";
51
+ limit: number;
52
+ status?: "pending" | "cancelled" | "queued" | "running" | "failed" | "completed" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_approval" | "waiting_for_execution" | undefined;
53
+ channel?: "test" | "published" | undefined;
54
+ source?: "slack" | "mcp" | "app" | "microsoft_teams" | "trigger" | "test" | 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?: "cancelled" | "waiting" | "queued" | "running" | "failed" | "all" | "followup" | "files" | "completed" | "stopped" | "delivery_failed" | undefined;
63
+ status?: "pending" | "cancelled" | "queued" | "running" | "failed" | "completed" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_approval" | "waiting_for_execution" | undefined;
64
+ channel?: "test" | "published" | undefined;
65
+ source?: "slack" | "mcp" | "app" | "microsoft_teams" | "trigger" | "test" | 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: 1 | 7 | 30;
80
+ timezone?: string | undefined;
81
+ }, {
82
+ days?: number | undefined;
83
+ timezone?: string | undefined;
84
+ }>;
85
+ export type BotBudgetView = {
86
+ status: 'ready' | 'pricing_not_configured' | 'agreement_required';
87
+ currency: 'USD';
88
+ usedUsd: number | null;
89
+ reservedUsd: number | null;
90
+ monthlyLimitUsd: number | null;
91
+ warningPercent: 90;
92
+ autoTopUp: 'coming_soon';
93
+ enforced: boolean;
94
+ canManage: boolean;
95
+ canViewMoney: boolean;
96
+ version: number;
97
+ rateCardVersion: string;
98
+ period: {
99
+ from: string;
100
+ to: string;
101
+ };
102
+ workspace: {
103
+ allowanceUsd: number;
104
+ usedUsd: number;
105
+ reservedUsd: number;
106
+ additionalLimitUsd: number;
107
+ additionalSpendingEnabled: boolean;
108
+ funding?: 'non_expiring_internal_credit' | 'plan_allowance';
109
+ } | null;
110
+ };
111
+ export declare const botBudgetChangeSchema: z.ZodObject<{
112
+ version: z.ZodNumber;
113
+ monthlyLimitUsd: z.ZodNullable<z.ZodNumber>;
114
+ }, "strict", z.ZodTypeAny, {
115
+ version: number;
116
+ monthlyLimitUsd: number | null;
117
+ }, {
118
+ version: number;
119
+ monthlyLimitUsd: number | null;
120
+ }>;
121
+ export type BotOverviewProblem = {
122
+ kind: 'run_failed' | 'connection_required' | 'approval_required' | 'delivery_failed' | 'delivery_retrying' | 'delivery_unknown';
123
+ code: string;
124
+ label: string;
125
+ count: number;
126
+ latestAt: string;
127
+ filter: Pick<BotRunsQuery, 'filter' | 'errorCode' | 'status' | 'deliveryStatus'>;
128
+ };
129
+ export type BotOverview = {
130
+ generatedAt: string;
131
+ period: {
132
+ from: string;
133
+ to: string;
134
+ timezone: string;
135
+ days: 1 | 7 | 30;
136
+ };
137
+ excludesTests: true;
138
+ historyScope: 'retained_runs';
139
+ totals: {
140
+ conversations: number;
141
+ requests: number;
142
+ completed: number;
143
+ failed: number;
144
+ stopped: number;
145
+ queued: number;
146
+ running: number;
147
+ waiting: number;
148
+ };
149
+ current: {
150
+ queued: number;
151
+ running: number;
152
+ waiting: number;
153
+ };
154
+ completion: {
155
+ completed: number;
156
+ terminalRequests: number;
157
+ percent: number | null;
158
+ };
159
+ completionTime: {
160
+ medianMs: number | null;
161
+ sampleCount: number;
162
+ includesQueueAndWaits: true;
163
+ };
164
+ series: Array<{
165
+ date: string;
166
+ requests: number;
167
+ completed: number;
168
+ failed: number;
169
+ stopped: number;
170
+ queued: number;
171
+ running: number;
172
+ waiting: number;
173
+ }>;
174
+ sources: Array<{
175
+ source: BotRunSource;
176
+ requests: number;
177
+ conversations: number;
178
+ }>;
179
+ deliveries: {
180
+ delivered: number;
181
+ pending: number;
182
+ retrying: number;
183
+ failed: number;
184
+ unknown: number;
185
+ suppressed: number;
186
+ affectedRuns: number;
187
+ };
188
+ problems: BotOverviewProblem[];
189
+ budget: BotBudgetView;
190
+ };
191
+ export type BotDeletionImpact = {
192
+ botId: string;
193
+ name: string;
194
+ revision: number;
195
+ canDelete: boolean;
196
+ blockers: Array<{
197
+ kind: 'runs' | 'followups' | 'deliveries' | 'admissions' | 'imports' | 'executions';
198
+ count: number;
199
+ label: string;
200
+ }>;
201
+ removes: {
202
+ conversations: number;
203
+ runs: number;
204
+ files: number;
205
+ knowledgeSources: number;
206
+ deployments: number;
207
+ nativeRegistrations: number;
208
+ };
209
+ destinations: Array<{
210
+ provider: 'slack' | 'microsoft_teams';
211
+ count: number;
212
+ }>;
213
+ preserves: Array<'shared_connections' | 'shared_apis' | 'external_apps' | 'delivered_messages' | 'billing_records' | 'shared_memory'>;
214
+ fileCleanup: 'asynchronous';
215
+ botMemory: 'managed_separately';
216
+ };
19
217
  export type AttachmentStatus = 'uploading' | 'uploaded' | 'preparing' | 'ready' | 'failed' | 'gone';
20
218
  /** What the server read from a file. Every field is optional; the tile shows what it has. */
21
219
  export type AttachmentFacts = {
@@ -39,13 +237,25 @@ export type AttachmentError = {
39
237
  message: string;
40
238
  };
41
239
  /** 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';
240
+ 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';
241
+ export type BotFileLink = {
242
+ url: string;
243
+ expiresAt: string;
244
+ playback?: {
245
+ url: string;
246
+ expiresAt: string;
247
+ mediaType: 'audio/mpeg';
248
+ };
249
+ };
43
250
  export type BotAttachment = {
44
251
  id: string;
45
252
  name: string;
46
253
  mediaType: string;
47
254
  sizeBytes: number;
48
255
  status: AttachmentStatus;
256
+ transcription?: {
257
+ state: 'queued' | 'transcribing' | 'reconciling' | 'completed' | 'failed';
258
+ };
49
259
  facts?: AttachmentFacts;
50
260
  error?: AttachmentError | null;
51
261
  /** A short-lived link to a small preview image (photos). */
@@ -175,7 +385,7 @@ export type BotFileUpload = {
175
385
  export declare const botUploadRequestSchema: z.ZodObject<{
176
386
  requestId: z.ZodString;
177
387
  task: z.ZodOptional<z.ZodObject<{
178
- message: z.ZodString;
388
+ message: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
179
389
  conversationId: z.ZodOptional<z.ZodString>;
180
390
  runId: z.ZodString;
181
391
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -221,6 +431,7 @@ export type BotUploadRequestView = {
221
431
  hasTask: boolean;
222
432
  taskMessage?: string;
223
433
  runId?: string;
434
+ continuation?: 'client' | 'server';
224
435
  action?: {
225
436
  kind: 'open_url';
226
437
  url: string;
@@ -229,6 +440,13 @@ export type BotUploadRequestView = {
229
440
  /** Shared, versioned contract for Bots across the dashboard, API and SDK. */
230
441
  /** What the list shows. Working and Needs attention are derived, never set by a person. */
231
442
  export type BotStatus = "working" | "on" | "attention" | "paused" | "draft";
443
+ /** The same lifecycle projection is used by the Bot list and an open Bot. */
444
+ export declare function botActivityStatus(input: {
445
+ published: boolean;
446
+ paused: boolean;
447
+ working: boolean;
448
+ needsAttention: boolean;
449
+ }): BotStatus;
232
450
  /** The only two states an owner can set. */
233
451
  export declare const botWorkingStatuses: Set<string>;
234
452
  export declare const botAttentionStatuses: Set<string>;
@@ -246,6 +464,7 @@ export type BotListItem = {
246
464
  id: string;
247
465
  name: string;
248
466
  description: string;
467
+ identity?: BotIdentity;
249
468
  status: BotStatus;
250
469
  statusLine: string;
251
470
  modelId: string;
@@ -442,7 +661,7 @@ export declare function botApiSignaturePayload(input: {
442
661
  }): string;
443
662
  export type ContextApp = {
444
663
  key: AppKey;
445
- account: "project" | "customer";
664
+ account: "project" | "customer" | "deployment";
446
665
  accountId?: string | undefined;
447
666
  rules: {
448
667
  read: ActionRule;
@@ -612,6 +831,7 @@ export type BotTest = {
612
831
  error?: unknown;
613
832
  dataMode?: TestDataMode;
614
833
  answer: {
834
+ webSources?: BotWebSource[];
615
835
  citations?: FileCitation[];
616
836
  /** e.g. "Matches your 4 fields" or "Answered". */
617
837
  verdict: string;
@@ -636,7 +856,85 @@ export type BotActivity = {
636
856
  /** Shown before the test at this index (tests.length = after the last test). */
637
857
  beforeTest: number;
638
858
  };
859
+ /** Public appearance. The name is a projection of the canonical Bot name. */
860
+ export declare const botAvatarSchema: z.ZodObject<{
861
+ version: z.ZodLiteral<1>;
862
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
863
+ seed: z.ZodString;
864
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
865
+ }, "strict", z.ZodTypeAny, {
866
+ style: "clay" | "pebble" | "shapes" | "letters";
867
+ seed: string;
868
+ version: 1;
869
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
870
+ }, {
871
+ style: "clay" | "pebble" | "shapes" | "letters";
872
+ seed: string;
873
+ version: 1;
874
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
875
+ }>;
876
+ export type BotAvatar = z.infer<typeof botAvatarSchema>;
877
+ export type BotIdentity = {
878
+ name: string;
879
+ description: string;
880
+ pictureUrl: string | null;
881
+ avatar?: BotAvatar | null;
882
+ };
883
+ export declare const botIdentityInputSchema: z.ZodObject<{
884
+ name: z.ZodString;
885
+ publicDescription: z.ZodDefault<z.ZodString>;
886
+ iconAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
887
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
888
+ version: z.ZodLiteral<1>;
889
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
890
+ seed: z.ZodString;
891
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
892
+ }, "strict", z.ZodTypeAny, {
893
+ style: "clay" | "pebble" | "shapes" | "letters";
894
+ seed: string;
895
+ version: 1;
896
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
897
+ }, {
898
+ style: "clay" | "pebble" | "shapes" | "letters";
899
+ seed: string;
900
+ version: 1;
901
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
902
+ }>>>;
903
+ }, "strict", z.ZodTypeAny, {
904
+ name: string;
905
+ publicDescription: string;
906
+ iconAssetId: string | null;
907
+ avatar?: {
908
+ style: "clay" | "pebble" | "shapes" | "letters";
909
+ seed: string;
910
+ version: 1;
911
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
912
+ } | null | undefined;
913
+ }, {
914
+ name: string;
915
+ publicDescription?: string | undefined;
916
+ iconAssetId?: string | null | undefined;
917
+ avatar?: {
918
+ style: "clay" | "pebble" | "shapes" | "letters";
919
+ seed: string;
920
+ version: 1;
921
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
922
+ } | null | undefined;
923
+ }>;
924
+ export type BotHelperAvailability = Record<'web_search' | 'audio_transcription', {
925
+ available: boolean;
926
+ message: string | null;
927
+ }>;
639
928
  export type Bot = {
929
+ /** Current service availability, separate from the owner's saved configuration. */
930
+ helperAvailability?: BotHelperAvailability;
931
+ publicDescription: string;
932
+ iconAssetId: string | null;
933
+ /** Saved generated design; null means an uploaded icon. Older Bots may omit it. */
934
+ avatar?: BotAvatar | null | undefined;
935
+ identity: BotIdentity;
936
+ /** Identity accepted by publication. Null until the Bot is published. */
937
+ publishedIdentity?: BotIdentity | null;
640
938
  files?: BotFileSettings;
641
939
  /** Named timezone for this Bot; absent means local time is unknown. */
642
940
  timezone?: string | null | undefined;
@@ -656,6 +954,8 @@ export type Bot = {
656
954
  publishedAt: string | null;
657
955
  publishedConfiguration?: BotConfiguration | null;
658
956
  runState: BotRunState;
957
+ /** Server-projected activity, shared with the list. Tests are separate from published traffic. */
958
+ activityStatus?: BotStatus;
659
959
  pause: {
660
960
  reason: string;
661
961
  expiresAt: string | null;
@@ -700,7 +1000,7 @@ export type BotReadinessIssue = {
700
1000
  message: string;
701
1001
  };
702
1002
  /** 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">;
1003
+ export type BotConfiguration = Pick<Bot, "name" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
704
1004
  export type BotPatch = Partial<BotConfiguration>;
705
1005
  export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
706
1006
  kind: z.ZodLiteral<"app">;
@@ -729,7 +1029,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
729
1029
  runsAs: "none" | "field";
730
1030
  customerField: string;
731
1031
  instruction: string;
732
- answerTo: "webhook" | "none";
1032
+ answerTo: "none" | "webhook";
733
1033
  }, {
734
1034
  kind: "app";
735
1035
  id: string;
@@ -742,7 +1042,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
742
1042
  runsAs: "none" | "field";
743
1043
  customerField: string;
744
1044
  instruction: string;
745
- answerTo: "webhook" | "none";
1045
+ answerTo: "none" | "webhook";
746
1046
  variables?: Record<string, unknown> | undefined;
747
1047
  }>, z.ZodObject<{
748
1048
  kind: z.ZodLiteral<"webhook">;
@@ -765,7 +1065,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
765
1065
  runsAs: "none" | "field";
766
1066
  customerField: string;
767
1067
  instruction: string;
768
- answerTo: "webhook" | "none";
1068
+ answerTo: "none" | "webhook";
769
1069
  }, {
770
1070
  kind: "webhook";
771
1071
  id: string;
@@ -775,7 +1075,7 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
775
1075
  runsAs: "none" | "field";
776
1076
  customerField: string;
777
1077
  instruction: string;
778
- answerTo: "webhook" | "none";
1078
+ answerTo: "none" | "webhook";
779
1079
  variables?: Record<string, unknown> | undefined;
780
1080
  }>, z.ZodObject<{
781
1081
  kind: z.ZodLiteral<"schedule">;
@@ -802,14 +1102,14 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
802
1102
  tenantId: string;
803
1103
  enabled: boolean;
804
1104
  name: string;
1105
+ days: number[];
1106
+ timezone: string;
805
1107
  variables: Record<string, unknown>;
806
1108
  runsAs: "one" | "none";
807
1109
  instruction: string;
808
- answerTo: "webhook" | "none";
1110
+ answerTo: "none" | "webhook";
809
1111
  repeat: "once" | "repeat";
810
- days: number[];
811
1112
  time: string;
812
- timezone: string;
813
1113
  customerId: string;
814
1114
  }, {
815
1115
  every: "week" | "day" | "hour";
@@ -819,13 +1119,13 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
819
1119
  tenantId: string;
820
1120
  enabled: boolean;
821
1121
  name: string;
1122
+ days: number[];
1123
+ timezone: string;
822
1124
  runsAs: "one" | "none";
823
1125
  instruction: string;
824
- answerTo: "webhook" | "none";
1126
+ answerTo: "none" | "webhook";
825
1127
  repeat: "once" | "repeat";
826
- days: number[];
827
1128
  time: string;
828
- timezone: string;
829
1129
  customerId: string;
830
1130
  variables?: Record<string, unknown> | undefined;
831
1131
  }>]>;
@@ -871,6 +1171,293 @@ export type PublishChannels = {
871
1171
  mcp: boolean;
872
1172
  team: boolean;
873
1173
  };
1174
+ /** Channel deployments are independent of SDK/MCP publication. Names never route messages. */
1175
+ export declare const botTeamProviderSchema: z.ZodEnum<["slack", "microsoft_teams"]>;
1176
+ export type BotTeamProvider = z.infer<typeof botTeamProviderSchema>;
1177
+ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
1178
+ provider: z.ZodEnum<["slack", "microsoft_teams"]>;
1179
+ connectedAccountId: z.ZodNullable<z.ZodString>;
1180
+ authConfigId: z.ZodNullable<z.ZodString>;
1181
+ approvedChannelIds: z.ZodArray<z.ZodString, "many">;
1182
+ channelAccess: z.ZodDefault<z.ZodEnum<["selected", "where_added"]>>;
1183
+ peopleAccess: z.ZodDefault<z.ZodEnum<["internal_members", "selected"]>>;
1184
+ approvedPersonIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1185
+ directMessages: z.ZodBoolean;
1186
+ threadHistory: z.ZodEnum<["admitted_messages", "platform_thread"]>;
1187
+ sharedContextAcknowledged: z.ZodBoolean;
1188
+ }, "strict", z.ZodTypeAny, {
1189
+ provider: "slack" | "microsoft_teams";
1190
+ connectedAccountId: string | null;
1191
+ authConfigId: string | null;
1192
+ approvedChannelIds: string[];
1193
+ channelAccess: "selected" | "where_added";
1194
+ peopleAccess: "selected" | "internal_members";
1195
+ approvedPersonIds: string[];
1196
+ directMessages: boolean;
1197
+ threadHistory: "admitted_messages" | "platform_thread";
1198
+ sharedContextAcknowledged: boolean;
1199
+ }, {
1200
+ provider: "slack" | "microsoft_teams";
1201
+ connectedAccountId: string | null;
1202
+ authConfigId: string | null;
1203
+ approvedChannelIds: string[];
1204
+ directMessages: boolean;
1205
+ threadHistory: "admitted_messages" | "platform_thread";
1206
+ sharedContextAcknowledged: boolean;
1207
+ channelAccess?: "selected" | "where_added" | undefined;
1208
+ peopleAccess?: "selected" | "internal_members" | undefined;
1209
+ approvedPersonIds?: string[] | undefined;
1210
+ }>, {
1211
+ provider: "slack" | "microsoft_teams";
1212
+ connectedAccountId: string | null;
1213
+ authConfigId: string | null;
1214
+ approvedChannelIds: string[];
1215
+ channelAccess: "selected" | "where_added";
1216
+ peopleAccess: "selected" | "internal_members";
1217
+ approvedPersonIds: string[];
1218
+ directMessages: boolean;
1219
+ threadHistory: "admitted_messages" | "platform_thread";
1220
+ sharedContextAcknowledged: boolean;
1221
+ }, {
1222
+ provider: "slack" | "microsoft_teams";
1223
+ connectedAccountId: string | null;
1224
+ authConfigId: string | null;
1225
+ approvedChannelIds: string[];
1226
+ directMessages: boolean;
1227
+ threadHistory: "admitted_messages" | "platform_thread";
1228
+ sharedContextAcknowledged: boolean;
1229
+ channelAccess?: "selected" | "where_added" | undefined;
1230
+ peopleAccess?: "selected" | "internal_members" | undefined;
1231
+ approvedPersonIds?: string[] | undefined;
1232
+ }>;
1233
+ export type BotTeamDeploymentInput = z.infer<typeof botTeamDeploymentInputSchema>;
1234
+ export type BotTeamReadinessIssue = {
1235
+ 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';
1236
+ message: string;
1237
+ channelId?: string;
1238
+ };
1239
+ export type BotTeamIdentity = {
1240
+ appId: string;
1241
+ botId: string;
1242
+ name: string;
1243
+ workspaceId: string;
1244
+ workspaceName: string;
1245
+ logoUrl?: string;
1246
+ };
1247
+ export type BotTeamDestination = {
1248
+ id: string;
1249
+ name: string;
1250
+ teamId?: string;
1251
+ kind: 'public' | 'private' | 'standard' | 'shared';
1252
+ accessible: boolean;
1253
+ supported: boolean;
1254
+ reason?: string;
1255
+ };
1256
+ export type BotTeamDeployment = BotTeamDeploymentInput & {
1257
+ id: string;
1258
+ botId: string;
1259
+ revision: number;
1260
+ status: 'draft' | 'active' | 'disabled';
1261
+ identity: BotTeamIdentity | null;
1262
+ acceptedPublishedRevision: number | null;
1263
+ ingressUrl?: string;
1264
+ readiness: {
1265
+ ready: boolean;
1266
+ issues: BotTeamReadinessIssue[];
1267
+ };
1268
+ updatedAt: string;
1269
+ };
1270
+ export type BotTeamSetup = {
1271
+ provider: BotTeamProvider;
1272
+ accounts: Array<{
1273
+ id: string;
1274
+ name: string;
1275
+ status: string;
1276
+ authConfigId: string | null;
1277
+ }>;
1278
+ identity: BotTeamIdentity | null;
1279
+ destinations: BotTeamDestination[];
1280
+ issues: BotTeamReadinessIssue[];
1281
+ grantedScopes?: string[];
1282
+ people?: Array<{
1283
+ id: string;
1284
+ name: string;
1285
+ }>;
1286
+ peopleNextCursor?: string | null;
1287
+ installUrl?: string | null;
1288
+ /** Owner review for this selected installation and current identity, not another workspace. */
1289
+ appearanceReviewedAt?: string | null;
1290
+ registrations?: BotNativeApp[];
1291
+ };
1292
+ /** Older registrations enabled files in both personal chats and channels. */
1293
+ export declare const botNativeFeaturesSchema: z.ZodObject<{
1294
+ directMessages: z.ZodDefault<z.ZodBoolean>;
1295
+ threadHistory: z.ZodDefault<z.ZodEnum<["admitted_messages", "platform_thread"]>>;
1296
+ files: z.ZodDefault<z.ZodBoolean>;
1297
+ channelFiles: z.ZodDefault<z.ZodBoolean>;
1298
+ approvals: z.ZodDefault<z.ZodBoolean>;
1299
+ }, "strict", z.ZodTypeAny, {
1300
+ files: boolean;
1301
+ directMessages: boolean;
1302
+ threadHistory: "admitted_messages" | "platform_thread";
1303
+ channelFiles: boolean;
1304
+ approvals: boolean;
1305
+ }, {
1306
+ files?: boolean | undefined;
1307
+ directMessages?: boolean | undefined;
1308
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1309
+ channelFiles?: boolean | undefined;
1310
+ approvals?: boolean | undefined;
1311
+ }>;
1312
+ /** The registration is shared by this Bot's installations, never by different Bots. */
1313
+ export type BotNativeApp = {
1314
+ id: string;
1315
+ botId: string;
1316
+ provider: BotTeamProvider;
1317
+ revision: number;
1318
+ status: 'draft' | 'configured' | 'disabled';
1319
+ identity: BotIdentity;
1320
+ nativeAppId: string | null;
1321
+ clientId: string | null;
1322
+ homeTenantId: string | null;
1323
+ teamsManifestId: string | null;
1324
+ packageVersion: string;
1325
+ messagingEndpoint: string;
1326
+ redirectUrl: string;
1327
+ providerConsoleUrl: string;
1328
+ createUrl: string | null;
1329
+ manifest: Record<string, unknown> | null;
1330
+ packageUrl: string | null;
1331
+ requiredScopes: Array<{
1332
+ scope: string;
1333
+ reason: string;
1334
+ }>;
1335
+ credentials: {
1336
+ configured: boolean;
1337
+ verifiedAt: string | null;
1338
+ callbackVerifiedAt?: string | null;
1339
+ pendingRotation?: {
1340
+ version: number;
1341
+ callbackVerifiedAt: string | null;
1342
+ } | null;
1343
+ };
1344
+ appearance: {
1345
+ status: 'not_installed' | 'review_required' | 'update_required' | 'owner_reviewed';
1346
+ observedName: string | null;
1347
+ observedPictureUrl: string | null;
1348
+ reviewedAt?: string | null;
1349
+ };
1350
+ features: z.infer<typeof botNativeFeaturesSchema>;
1351
+ nextAction: 'configure' | 'credentials' | 'install' | 'verify' | 'activate' | 'reconnect';
1352
+ issues: Array<{
1353
+ code: string;
1354
+ message: string;
1355
+ }>;
1356
+ };
1357
+ export declare const botNativeAppCreateSchema: z.ZodObject<{
1358
+ provider: z.ZodEnum<["slack", "microsoft_teams"]>;
1359
+ requestId: z.ZodString;
1360
+ }, "strict", z.ZodTypeAny, {
1361
+ requestId: string;
1362
+ provider: "slack" | "microsoft_teams";
1363
+ }, {
1364
+ requestId: string;
1365
+ provider: "slack" | "microsoft_teams";
1366
+ }>;
1367
+ export declare const botNativeAppUpdateSchema: z.ZodObject<{
1368
+ revision: z.ZodNumber;
1369
+ features: z.ZodOptional<z.ZodObject<{
1370
+ files: z.ZodDefault<z.ZodBoolean>;
1371
+ directMessages: z.ZodDefault<z.ZodBoolean>;
1372
+ threadHistory: z.ZodDefault<z.ZodEnum<["admitted_messages", "platform_thread"]>>;
1373
+ channelFiles: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1374
+ approvals: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1375
+ }, "strict", z.ZodTypeAny, {
1376
+ files: boolean;
1377
+ directMessages: boolean;
1378
+ threadHistory: "admitted_messages" | "platform_thread";
1379
+ channelFiles?: boolean | undefined;
1380
+ approvals?: boolean | undefined;
1381
+ }, {
1382
+ files?: boolean | undefined;
1383
+ directMessages?: boolean | undefined;
1384
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1385
+ channelFiles?: boolean | undefined;
1386
+ approvals?: boolean | undefined;
1387
+ }>>;
1388
+ clientId: z.ZodOptional<z.ZodString>;
1389
+ nativeAppId: z.ZodOptional<z.ZodString>;
1390
+ homeTenantId: z.ZodOptional<z.ZodString>;
1391
+ appearanceAccountId: z.ZodOptional<z.ZodString>;
1392
+ credentials: z.ZodOptional<z.ZodObject<{
1393
+ clientSecret: z.ZodString;
1394
+ signingSecret: z.ZodOptional<z.ZodString>;
1395
+ }, "strict", z.ZodTypeAny, {
1396
+ clientSecret: string;
1397
+ signingSecret?: string | undefined;
1398
+ }, {
1399
+ clientSecret: string;
1400
+ signingSecret?: string | undefined;
1401
+ }>>;
1402
+ action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance"]>>;
1403
+ }, "strict", z.ZodTypeAny, {
1404
+ revision: number;
1405
+ action: "verify" | "save" | "disable" | "review_appearance";
1406
+ credentials?: {
1407
+ clientSecret: string;
1408
+ signingSecret?: string | undefined;
1409
+ } | undefined;
1410
+ features?: {
1411
+ files: boolean;
1412
+ directMessages: boolean;
1413
+ threadHistory: "admitted_messages" | "platform_thread";
1414
+ channelFiles?: boolean | undefined;
1415
+ approvals?: boolean | undefined;
1416
+ } | undefined;
1417
+ clientId?: string | undefined;
1418
+ nativeAppId?: string | undefined;
1419
+ homeTenantId?: string | undefined;
1420
+ appearanceAccountId?: string | undefined;
1421
+ }, {
1422
+ revision: number;
1423
+ action?: "verify" | "save" | "disable" | "review_appearance" | undefined;
1424
+ credentials?: {
1425
+ clientSecret: string;
1426
+ signingSecret?: string | undefined;
1427
+ } | undefined;
1428
+ features?: {
1429
+ files?: boolean | undefined;
1430
+ directMessages?: boolean | undefined;
1431
+ threadHistory?: "admitted_messages" | "platform_thread" | undefined;
1432
+ channelFiles?: boolean | undefined;
1433
+ approvals?: boolean | undefined;
1434
+ } | undefined;
1435
+ clientId?: string | undefined;
1436
+ nativeAppId?: string | undefined;
1437
+ homeTenantId?: string | undefined;
1438
+ appearanceAccountId?: string | undefined;
1439
+ }>;
1440
+ export type BotTeamRunSource = {
1441
+ deploymentId: string;
1442
+ provider: BotTeamProvider;
1443
+ workspaceId: string;
1444
+ destinationId: string;
1445
+ threadId: string;
1446
+ audience: 'private' | 'shared';
1447
+ sender: {
1448
+ id: string;
1449
+ name: string;
1450
+ };
1451
+ messageId: string;
1452
+ sourceUrl?: string;
1453
+ delivery: {
1454
+ status: 'pending' | 'retrying' | 'sent' | 'failed' | 'unknown' | 'suppressed';
1455
+ id?: string;
1456
+ canRetry?: boolean;
1457
+ messageId?: string;
1458
+ error?: string;
1459
+ };
1460
+ };
874
1461
  export type PublishCheck = {
875
1462
  name: string;
876
1463
  result: string;
@@ -937,10 +1524,11 @@ export type BotCapabilityFact = {
937
1524
  id: string;
938
1525
  status: 'enabled' | 'disabled' | 'sample';
939
1526
  owner: 'project_owner' | 'customer';
940
- account?: 'project' | 'customer';
1527
+ account?: 'project' | 'customer' | 'deployment';
1528
+ requiresPrivateConversation?: boolean;
941
1529
  };
942
1530
  /** Configuration facts are safe to disclose without granting tool execution. */
943
- export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean): BotCapabilityFact[];
1531
+ export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean, sharedConversation?: boolean): BotCapabilityFact[];
944
1532
  export type BotConnectionAction = {
945
1533
  kind: 'connection';
946
1534
  id: string;
@@ -960,25 +1548,36 @@ export type BotConnectionAction = {
960
1548
  export type BotWaitingOperation = BotConnectionAction | {
961
1549
  kind: 'execution';
962
1550
  id: string;
1551
+ } | {
1552
+ kind: 'attachment_preparation';
1553
+ id: string;
1554
+ fileId: string;
963
1555
  };
964
1556
  export declare const botRequirementSchema: z.ZodObject<{
965
1557
  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"]>;
1558
+ 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"]>;
1559
+ owner: z.ZodEnum<["project_owner", "stacklink", "customer"]>;
1560
+ nextAction: z.ZodEnum<["configure_bot", "repair_connection", "use_live_data", "contact_administrator", "direct_message", "unavailable"]>;
969
1561
  }, "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";
1562
+ 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
1563
  capabilityId: string;
972
- owner: "project_owner" | "stacklink";
973
- nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
1564
+ owner: "customer" | "project_owner" | "stacklink";
1565
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator" | "direct_message";
974
1566
  }, {
975
- code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
1567
+ 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
1568
  capabilityId: string;
977
- owner: "project_owner" | "stacklink";
978
- nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
1569
+ owner: "customer" | "project_owner" | "stacklink";
1570
+ nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator" | "direct_message";
979
1571
  }>;
980
1572
  export type BotRequirement = z.infer<typeof botRequirementSchema>;
1573
+ export type BotWebSource = {
1574
+ id: string;
1575
+ url: string;
1576
+ title: string;
1577
+ };
981
1578
  export type BotRun = {
1579
+ webSources?: BotWebSource[];
1580
+ team?: BotTeamRunSource;
982
1581
  resumeCount?: number;
983
1582
  attachments?: BotAttachment[];
984
1583
  outputs?: BotOutputFile[];
@@ -1028,6 +1627,15 @@ export type BotDelivery = {
1028
1627
  processedAt: string | null;
1029
1628
  };
1030
1629
  export type BotRunDisplay = {
1630
+ source?: {
1631
+ kind: BotRunSource;
1632
+ clientName: string | null;
1633
+ };
1634
+ queue?: {
1635
+ position: number;
1636
+ maximumFollowups: number;
1637
+ held: boolean;
1638
+ } | null;
1031
1639
  turnNumber: number;
1032
1640
  trigger: {
1033
1641
  id: string;
@@ -1057,7 +1665,7 @@ export type BotRunDisplay = {
1057
1665
  items: BotDelivery[];
1058
1666
  };
1059
1667
  pricing: {
1060
- status: 'pending';
1668
+ status: 'priced' | 'pending' | 'not_configured';
1061
1669
  modelCostUsd: number | null;
1062
1670
  };
1063
1671
  };
@@ -1092,13 +1700,13 @@ export declare const botBindingSchema: z.ZodObject<{
1092
1700
  }, "strict", z.ZodTypeAny, {
1093
1701
  path: string[];
1094
1702
  source: "variable" | "context" | "model" | "identity";
1095
- target: "body" | "path" | "query" | "header";
1096
1703
  key: string;
1704
+ target: "body" | "path" | "query" | "header";
1097
1705
  }, {
1098
1706
  path: string[];
1099
1707
  source: "variable" | "context" | "model" | "identity";
1100
- target: "body" | "path" | "query" | "header";
1101
1708
  key: string;
1709
+ target: "body" | "path" | "query" | "header";
1102
1710
  }>;
1103
1711
  export declare const botApiCallSchema: z.ZodObject<{
1104
1712
  id: z.ZodString;
@@ -1125,13 +1733,13 @@ export declare const botApiCallSchema: z.ZodObject<{
1125
1733
  }, "strict", z.ZodTypeAny, {
1126
1734
  path: string[];
1127
1735
  source: "variable" | "context" | "model" | "identity";
1128
- target: "body" | "path" | "query" | "header";
1129
1736
  key: string;
1737
+ target: "body" | "path" | "query" | "header";
1130
1738
  }, {
1131
1739
  path: string[];
1132
1740
  source: "variable" | "context" | "model" | "identity";
1133
- target: "body" | "path" | "query" | "header";
1134
1741
  key: string;
1742
+ target: "body" | "path" | "query" | "header";
1135
1743
  }>, "many">>;
1136
1744
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1137
1745
  sample: z.ZodOptional<z.ZodUnknown>;
@@ -1144,7 +1752,7 @@ export declare const botApiCallSchema: z.ZodObject<{
1144
1752
  query: Record<string, string>;
1145
1753
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1146
1754
  bodyType: "json" | "xml" | "form" | "gql";
1147
- readAs: "json" | "xml" | "text" | "auto";
1755
+ readAs: "json" | "xml" | "auto" | "text";
1148
1756
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1149
1757
  summary: string;
1150
1758
  latencyMs: number | null;
@@ -1154,8 +1762,8 @@ export declare const botApiCallSchema: z.ZodObject<{
1154
1762
  bindings: {
1155
1763
  path: string[];
1156
1764
  source: "variable" | "context" | "model" | "identity";
1157
- target: "body" | "path" | "query" | "header";
1158
1765
  key: string;
1766
+ target: "body" | "path" | "query" | "header";
1159
1767
  }[];
1160
1768
  sample?: unknown;
1161
1769
  inputSchema?: Record<string, unknown> | undefined;
@@ -1166,7 +1774,7 @@ export declare const botApiCallSchema: z.ZodObject<{
1166
1774
  name: string;
1167
1775
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1168
1776
  bodyType: "json" | "xml" | "form" | "gql";
1169
- readAs: "json" | "xml" | "text" | "auto";
1777
+ readAs: "json" | "xml" | "auto" | "text";
1170
1778
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1171
1779
  summary: string;
1172
1780
  latencyMs: number | null;
@@ -1181,8 +1789,8 @@ export declare const botApiCallSchema: z.ZodObject<{
1181
1789
  bindings?: {
1182
1790
  path: string[];
1183
1791
  source: "variable" | "context" | "model" | "identity";
1184
- target: "body" | "path" | "query" | "header";
1185
1792
  key: string;
1793
+ target: "body" | "path" | "query" | "header";
1186
1794
  }[] | undefined;
1187
1795
  responseSchema?: Record<string, unknown> | undefined;
1188
1796
  }>;
@@ -1221,13 +1829,13 @@ export declare const botApiSchema: z.ZodObject<{
1221
1829
  }, "strict", z.ZodTypeAny, {
1222
1830
  path: string[];
1223
1831
  source: "variable" | "context" | "model" | "identity";
1224
- target: "body" | "path" | "query" | "header";
1225
1832
  key: string;
1833
+ target: "body" | "path" | "query" | "header";
1226
1834
  }, {
1227
1835
  path: string[];
1228
1836
  source: "variable" | "context" | "model" | "identity";
1229
- target: "body" | "path" | "query" | "header";
1230
1837
  key: string;
1838
+ target: "body" | "path" | "query" | "header";
1231
1839
  }>, "many">>;
1232
1840
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1233
1841
  sample: z.ZodOptional<z.ZodUnknown>;
@@ -1240,7 +1848,7 @@ export declare const botApiSchema: z.ZodObject<{
1240
1848
  query: Record<string, string>;
1241
1849
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1242
1850
  bodyType: "json" | "xml" | "form" | "gql";
1243
- readAs: "json" | "xml" | "text" | "auto";
1851
+ readAs: "json" | "xml" | "auto" | "text";
1244
1852
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1245
1853
  summary: string;
1246
1854
  latencyMs: number | null;
@@ -1250,8 +1858,8 @@ export declare const botApiSchema: z.ZodObject<{
1250
1858
  bindings: {
1251
1859
  path: string[];
1252
1860
  source: "variable" | "context" | "model" | "identity";
1253
- target: "body" | "path" | "query" | "header";
1254
1861
  key: string;
1862
+ target: "body" | "path" | "query" | "header";
1255
1863
  }[];
1256
1864
  sample?: unknown;
1257
1865
  inputSchema?: Record<string, unknown> | undefined;
@@ -1262,7 +1870,7 @@ export declare const botApiSchema: z.ZodObject<{
1262
1870
  name: string;
1263
1871
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1264
1872
  bodyType: "json" | "xml" | "form" | "gql";
1265
- readAs: "json" | "xml" | "text" | "auto";
1873
+ readAs: "json" | "xml" | "auto" | "text";
1266
1874
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1267
1875
  summary: string;
1268
1876
  latencyMs: number | null;
@@ -1277,8 +1885,8 @@ export declare const botApiSchema: z.ZodObject<{
1277
1885
  bindings?: {
1278
1886
  path: string[];
1279
1887
  source: "variable" | "context" | "model" | "identity";
1280
- target: "body" | "path" | "query" | "header";
1281
1888
  key: string;
1889
+ target: "body" | "path" | "query" | "header";
1282
1890
  }[] | undefined;
1283
1891
  responseSchema?: Record<string, unknown> | undefined;
1284
1892
  }>, "many">;
@@ -1288,7 +1896,7 @@ export declare const botApiSchema: z.ZodObject<{
1288
1896
  name: string;
1289
1897
  host: string;
1290
1898
  baseUrl: string;
1291
- auth: "one" | "each" | "oauth" | "none";
1899
+ auth: "one" | "none" | "each" | "oauth";
1292
1900
  sendCustomerIdentity: boolean;
1293
1901
  calls: {
1294
1902
  headers: Record<string, string>;
@@ -1299,7 +1907,7 @@ export declare const botApiSchema: z.ZodObject<{
1299
1907
  query: Record<string, string>;
1300
1908
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1301
1909
  bodyType: "json" | "xml" | "form" | "gql";
1302
- readAs: "json" | "xml" | "text" | "auto";
1910
+ readAs: "json" | "xml" | "auto" | "text";
1303
1911
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1304
1912
  summary: string;
1305
1913
  latencyMs: number | null;
@@ -1309,8 +1917,8 @@ export declare const botApiSchema: z.ZodObject<{
1309
1917
  bindings: {
1310
1918
  path: string[];
1311
1919
  source: "variable" | "context" | "model" | "identity";
1312
- target: "body" | "path" | "query" | "header";
1313
1920
  key: string;
1921
+ target: "body" | "path" | "query" | "header";
1314
1922
  }[];
1315
1923
  sample?: unknown;
1316
1924
  inputSchema?: Record<string, unknown> | undefined;
@@ -1324,7 +1932,7 @@ export declare const botApiSchema: z.ZodObject<{
1324
1932
  name: string;
1325
1933
  host: string;
1326
1934
  baseUrl: string;
1327
- auth: "one" | "each" | "oauth" | "none";
1935
+ auth: "one" | "none" | "each" | "oauth";
1328
1936
  sendCustomerIdentity: boolean;
1329
1937
  calls: {
1330
1938
  path: string;
@@ -1332,7 +1940,7 @@ export declare const botApiSchema: z.ZodObject<{
1332
1940
  name: string;
1333
1941
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1334
1942
  bodyType: "json" | "xml" | "form" | "gql";
1335
- readAs: "json" | "xml" | "text" | "auto";
1943
+ readAs: "json" | "xml" | "auto" | "text";
1336
1944
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1337
1945
  summary: string;
1338
1946
  latencyMs: number | null;
@@ -1347,8 +1955,8 @@ export declare const botApiSchema: z.ZodObject<{
1347
1955
  bindings?: {
1348
1956
  path: string[];
1349
1957
  source: "variable" | "context" | "model" | "identity";
1350
- target: "body" | "path" | "query" | "header";
1351
1958
  key: string;
1959
+ target: "body" | "path" | "query" | "header";
1352
1960
  }[] | undefined;
1353
1961
  responseSchema?: Record<string, unknown> | undefined;
1354
1962
  }[];
@@ -1357,6 +1965,24 @@ export declare const botApiSchema: z.ZodObject<{
1357
1965
  }>;
1358
1966
  export declare const botConfigurationSchema: z.ZodObject<{
1359
1967
  name: z.ZodString;
1968
+ publicDescription: z.ZodDefault<z.ZodString>;
1969
+ iconAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1970
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1971
+ version: z.ZodLiteral<1>;
1972
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
1973
+ seed: z.ZodString;
1974
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
1975
+ }, "strict", z.ZodTypeAny, {
1976
+ style: "clay" | "pebble" | "shapes" | "letters";
1977
+ seed: string;
1978
+ version: 1;
1979
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
1980
+ }, {
1981
+ style: "clay" | "pebble" | "shapes" | "letters";
1982
+ seed: string;
1983
+ version: 1;
1984
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
1985
+ }>>>;
1360
1986
  files: z.ZodDefault<z.ZodObject<{
1361
1987
  enabled: z.ZodBoolean;
1362
1988
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
@@ -1398,7 +2024,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1398
2024
  runsAs: "none" | "field";
1399
2025
  customerField: string;
1400
2026
  instruction: string;
1401
- answerTo: "webhook" | "none";
2027
+ answerTo: "none" | "webhook";
1402
2028
  }, {
1403
2029
  kind: "app";
1404
2030
  id: string;
@@ -1411,7 +2037,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1411
2037
  runsAs: "none" | "field";
1412
2038
  customerField: string;
1413
2039
  instruction: string;
1414
- answerTo: "webhook" | "none";
2040
+ answerTo: "none" | "webhook";
1415
2041
  variables?: Record<string, unknown> | undefined;
1416
2042
  }>, z.ZodObject<{
1417
2043
  kind: z.ZodLiteral<"webhook">;
@@ -1434,7 +2060,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1434
2060
  runsAs: "none" | "field";
1435
2061
  customerField: string;
1436
2062
  instruction: string;
1437
- answerTo: "webhook" | "none";
2063
+ answerTo: "none" | "webhook";
1438
2064
  }, {
1439
2065
  kind: "webhook";
1440
2066
  id: string;
@@ -1444,7 +2070,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1444
2070
  runsAs: "none" | "field";
1445
2071
  customerField: string;
1446
2072
  instruction: string;
1447
- answerTo: "webhook" | "none";
2073
+ answerTo: "none" | "webhook";
1448
2074
  variables?: Record<string, unknown> | undefined;
1449
2075
  }>, z.ZodObject<{
1450
2076
  kind: z.ZodLiteral<"schedule">;
@@ -1471,14 +2097,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
1471
2097
  tenantId: string;
1472
2098
  enabled: boolean;
1473
2099
  name: string;
2100
+ days: number[];
2101
+ timezone: string;
1474
2102
  variables: Record<string, unknown>;
1475
2103
  runsAs: "one" | "none";
1476
2104
  instruction: string;
1477
- answerTo: "webhook" | "none";
2105
+ answerTo: "none" | "webhook";
1478
2106
  repeat: "once" | "repeat";
1479
- days: number[];
1480
2107
  time: string;
1481
- timezone: string;
1482
2108
  customerId: string;
1483
2109
  }, {
1484
2110
  every: "week" | "day" | "hour";
@@ -1488,13 +2114,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
1488
2114
  tenantId: string;
1489
2115
  enabled: boolean;
1490
2116
  name: string;
2117
+ days: number[];
2118
+ timezone: string;
1491
2119
  runsAs: "one" | "none";
1492
2120
  instruction: string;
1493
- answerTo: "webhook" | "none";
2121
+ answerTo: "none" | "webhook";
1494
2122
  repeat: "once" | "repeat";
1495
- days: number[];
1496
2123
  time: string;
1497
- timezone: string;
1498
2124
  customerId: string;
1499
2125
  variables?: Record<string, unknown> | undefined;
1500
2126
  }>]>, "many">>;
@@ -1731,13 +2357,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
1731
2357
  }, "strict", z.ZodTypeAny, {
1732
2358
  path: string[];
1733
2359
  source: "variable" | "context" | "model" | "identity";
1734
- target: "body" | "path" | "query" | "header";
1735
2360
  key: string;
2361
+ target: "body" | "path" | "query" | "header";
1736
2362
  }, {
1737
2363
  path: string[];
1738
2364
  source: "variable" | "context" | "model" | "identity";
1739
- target: "body" | "path" | "query" | "header";
1740
2365
  key: string;
2366
+ target: "body" | "path" | "query" | "header";
1741
2367
  }>, "many">>;
1742
2368
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1743
2369
  sample: z.ZodOptional<z.ZodUnknown>;
@@ -1750,7 +2376,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1750
2376
  query: Record<string, string>;
1751
2377
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1752
2378
  bodyType: "json" | "xml" | "form" | "gql";
1753
- readAs: "json" | "xml" | "text" | "auto";
2379
+ readAs: "json" | "xml" | "auto" | "text";
1754
2380
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1755
2381
  summary: string;
1756
2382
  latencyMs: number | null;
@@ -1760,8 +2386,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
1760
2386
  bindings: {
1761
2387
  path: string[];
1762
2388
  source: "variable" | "context" | "model" | "identity";
1763
- target: "body" | "path" | "query" | "header";
1764
2389
  key: string;
2390
+ target: "body" | "path" | "query" | "header";
1765
2391
  }[];
1766
2392
  sample?: unknown;
1767
2393
  inputSchema?: Record<string, unknown> | undefined;
@@ -1772,7 +2398,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1772
2398
  name: string;
1773
2399
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1774
2400
  bodyType: "json" | "xml" | "form" | "gql";
1775
- readAs: "json" | "xml" | "text" | "auto";
2401
+ readAs: "json" | "xml" | "auto" | "text";
1776
2402
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1777
2403
  summary: string;
1778
2404
  latencyMs: number | null;
@@ -1787,8 +2413,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
1787
2413
  bindings?: {
1788
2414
  path: string[];
1789
2415
  source: "variable" | "context" | "model" | "identity";
1790
- target: "body" | "path" | "query" | "header";
1791
2416
  key: string;
2417
+ target: "body" | "path" | "query" | "header";
1792
2418
  }[] | undefined;
1793
2419
  responseSchema?: Record<string, unknown> | undefined;
1794
2420
  }>, "many">;
@@ -1798,7 +2424,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1798
2424
  name: string;
1799
2425
  host: string;
1800
2426
  baseUrl: string;
1801
- auth: "one" | "each" | "oauth" | "none";
2427
+ auth: "one" | "none" | "each" | "oauth";
1802
2428
  sendCustomerIdentity: boolean;
1803
2429
  calls: {
1804
2430
  headers: Record<string, string>;
@@ -1809,7 +2435,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1809
2435
  query: Record<string, string>;
1810
2436
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1811
2437
  bodyType: "json" | "xml" | "form" | "gql";
1812
- readAs: "json" | "xml" | "text" | "auto";
2438
+ readAs: "json" | "xml" | "auto" | "text";
1813
2439
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1814
2440
  summary: string;
1815
2441
  latencyMs: number | null;
@@ -1819,8 +2445,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
1819
2445
  bindings: {
1820
2446
  path: string[];
1821
2447
  source: "variable" | "context" | "model" | "identity";
1822
- target: "body" | "path" | "query" | "header";
1823
2448
  key: string;
2449
+ target: "body" | "path" | "query" | "header";
1824
2450
  }[];
1825
2451
  sample?: unknown;
1826
2452
  inputSchema?: Record<string, unknown> | undefined;
@@ -1834,7 +2460,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1834
2460
  name: string;
1835
2461
  host: string;
1836
2462
  baseUrl: string;
1837
- auth: "one" | "each" | "oauth" | "none";
2463
+ auth: "one" | "none" | "each" | "oauth";
1838
2464
  sendCustomerIdentity: boolean;
1839
2465
  calls: {
1840
2466
  path: string;
@@ -1842,7 +2468,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1842
2468
  name: string;
1843
2469
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1844
2470
  bodyType: "json" | "xml" | "form" | "gql";
1845
- readAs: "json" | "xml" | "text" | "auto";
2471
+ readAs: "json" | "xml" | "auto" | "text";
1846
2472
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1847
2473
  summary: string;
1848
2474
  latencyMs: number | null;
@@ -1857,8 +2483,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
1857
2483
  bindings?: {
1858
2484
  path: string[];
1859
2485
  source: "variable" | "context" | "model" | "identity";
1860
- target: "body" | "path" | "query" | "header";
1861
2486
  key: string;
2487
+ target: "body" | "path" | "query" | "header";
1862
2488
  }[] | undefined;
1863
2489
  responseSchema?: Record<string, unknown> | undefined;
1864
2490
  }[];
@@ -1867,7 +2493,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1867
2493
  }>, "many">;
1868
2494
  apps: z.ZodArray<z.ZodObject<{
1869
2495
  key: z.ZodString;
1870
- account: z.ZodEnum<["project", "customer"]>;
2496
+ account: z.ZodEnum<["project", "customer", "deployment"]>;
1871
2497
  accountId: z.ZodOptional<z.ZodString>;
1872
2498
  rules: z.ZodObject<{
1873
2499
  read: z.ZodEnum<["allow", "ask", "block"]>;
@@ -1887,7 +2513,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1887
2513
  pinned: z.ZodArray<z.ZodString, "many">;
1888
2514
  }, "strict", z.ZodTypeAny, {
1889
2515
  key: string;
1890
- account: "customer" | "project";
2516
+ account: "customer" | "project" | "deployment";
1891
2517
  rules: {
1892
2518
  read: "allow" | "ask" | "block";
1893
2519
  change: "allow" | "ask" | "block";
@@ -1899,7 +2525,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
1899
2525
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
1900
2526
  }, {
1901
2527
  key: string;
1902
- account: "customer" | "project";
2528
+ account: "customer" | "project" | "deployment";
1903
2529
  rules: {
1904
2530
  read: "allow" | "ask" | "block";
1905
2531
  change: "allow" | "ask" | "block";
@@ -2036,7 +2662,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2036
2662
  syncedLabel: z.ZodString;
2037
2663
  }, "strict", z.ZodTypeAny, {
2038
2664
  status: "failed" | "ready" | "syncing";
2039
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2665
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2040
2666
  id: string;
2041
2667
  name: string;
2042
2668
  scope: "customer" | "project";
@@ -2060,7 +2686,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2060
2686
  } | undefined;
2061
2687
  }, {
2062
2688
  status: "failed" | "ready" | "syncing";
2063
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2689
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2064
2690
  id: string;
2065
2691
  name: string;
2066
2692
  detail: string;
@@ -2099,7 +2725,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2099
2725
  }, "strict", z.ZodTypeAny, {
2100
2726
  knowledge: {
2101
2727
  status: "failed" | "ready" | "syncing";
2102
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2728
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2103
2729
  id: string;
2104
2730
  name: string;
2105
2731
  scope: "customer" | "project";
@@ -2131,7 +2757,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2131
2757
  name: string;
2132
2758
  host: string;
2133
2759
  baseUrl: string;
2134
- auth: "one" | "each" | "oauth" | "none";
2760
+ auth: "one" | "none" | "each" | "oauth";
2135
2761
  sendCustomerIdentity: boolean;
2136
2762
  calls: {
2137
2763
  headers: Record<string, string>;
@@ -2142,7 +2768,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2142
2768
  query: Record<string, string>;
2143
2769
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2144
2770
  bodyType: "json" | "xml" | "form" | "gql";
2145
- readAs: "json" | "xml" | "text" | "auto";
2771
+ readAs: "json" | "xml" | "auto" | "text";
2146
2772
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2147
2773
  summary: string;
2148
2774
  latencyMs: number | null;
@@ -2152,8 +2778,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2152
2778
  bindings: {
2153
2779
  path: string[];
2154
2780
  source: "variable" | "context" | "model" | "identity";
2155
- target: "body" | "path" | "query" | "header";
2156
2781
  key: string;
2782
+ target: "body" | "path" | "query" | "header";
2157
2783
  }[];
2158
2784
  sample?: unknown;
2159
2785
  inputSchema?: Record<string, unknown> | undefined;
@@ -2164,7 +2790,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2164
2790
  }[];
2165
2791
  apps: {
2166
2792
  key: string;
2167
- account: "customer" | "project";
2793
+ account: "customer" | "project" | "deployment";
2168
2794
  rules: {
2169
2795
  read: "allow" | "ask" | "block";
2170
2796
  change: "allow" | "ask" | "block";
@@ -2203,7 +2829,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2203
2829
  }, {
2204
2830
  knowledge: {
2205
2831
  status: "failed" | "ready" | "syncing";
2206
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
2832
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2207
2833
  id: string;
2208
2834
  name: string;
2209
2835
  detail: string;
@@ -2232,7 +2858,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2232
2858
  name: string;
2233
2859
  host: string;
2234
2860
  baseUrl: string;
2235
- auth: "one" | "each" | "oauth" | "none";
2861
+ auth: "one" | "none" | "each" | "oauth";
2236
2862
  sendCustomerIdentity: boolean;
2237
2863
  calls: {
2238
2864
  path: string;
@@ -2240,7 +2866,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2240
2866
  name: string;
2241
2867
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2242
2868
  bodyType: "json" | "xml" | "form" | "gql";
2243
- readAs: "json" | "xml" | "text" | "auto";
2869
+ readAs: "json" | "xml" | "auto" | "text";
2244
2870
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2245
2871
  summary: string;
2246
2872
  latencyMs: number | null;
@@ -2255,8 +2881,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2255
2881
  bindings?: {
2256
2882
  path: string[];
2257
2883
  source: "variable" | "context" | "model" | "identity";
2258
- target: "body" | "path" | "query" | "header";
2259
2884
  key: string;
2885
+ target: "body" | "path" | "query" | "header";
2260
2886
  }[] | undefined;
2261
2887
  responseSchema?: Record<string, unknown> | undefined;
2262
2888
  }[];
@@ -2265,7 +2891,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2265
2891
  }[];
2266
2892
  apps: {
2267
2893
  key: string;
2268
- account: "customer" | "project";
2894
+ account: "customer" | "project" | "deployment";
2269
2895
  rules: {
2270
2896
  read: "allow" | "ask" | "block";
2271
2897
  change: "allow" | "ask" | "block";
@@ -2498,6 +3124,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2498
3124
  languages: string[];
2499
3125
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2500
3126
  };
3127
+ files: {
3128
+ enabled: boolean;
3129
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
3130
+ bigSpreadsheets: "workbench" | "preview";
3131
+ };
2501
3132
  variables: {
2502
3133
  type: "Text" | "Number" | "Yes or no" | "One of…";
2503
3134
  required: boolean;
@@ -2508,11 +3139,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
2508
3139
  chipNote: string;
2509
3140
  values?: string[] | undefined;
2510
3141
  }[];
2511
- files: {
2512
- enabled: boolean;
2513
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
2514
- bigSpreadsheets: "workbench" | "preview";
2515
- };
2516
3142
  instructions: {
2517
3143
  text: string;
2518
3144
  editedAt: string | null;
@@ -2520,7 +3146,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2520
3146
  context: {
2521
3147
  knowledge: {
2522
3148
  status: "failed" | "ready" | "syncing";
2523
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
3149
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2524
3150
  id: string;
2525
3151
  name: string;
2526
3152
  scope: "customer" | "project";
@@ -2552,7 +3178,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2552
3178
  name: string;
2553
3179
  host: string;
2554
3180
  baseUrl: string;
2555
- auth: "one" | "each" | "oauth" | "none";
3181
+ auth: "one" | "none" | "each" | "oauth";
2556
3182
  sendCustomerIdentity: boolean;
2557
3183
  calls: {
2558
3184
  headers: Record<string, string>;
@@ -2563,7 +3189,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2563
3189
  query: Record<string, string>;
2564
3190
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2565
3191
  bodyType: "json" | "xml" | "form" | "gql";
2566
- readAs: "json" | "xml" | "text" | "auto";
3192
+ readAs: "json" | "xml" | "auto" | "text";
2567
3193
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2568
3194
  summary: string;
2569
3195
  latencyMs: number | null;
@@ -2573,8 +3199,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2573
3199
  bindings: {
2574
3200
  path: string[];
2575
3201
  source: "variable" | "context" | "model" | "identity";
2576
- target: "body" | "path" | "query" | "header";
2577
3202
  key: string;
3203
+ target: "body" | "path" | "query" | "header";
2578
3204
  }[];
2579
3205
  sample?: unknown;
2580
3206
  inputSchema?: Record<string, unknown> | undefined;
@@ -2585,7 +3211,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2585
3211
  }[];
2586
3212
  apps: {
2587
3213
  key: string;
2588
- account: "customer" | "project";
3214
+ account: "customer" | "project" | "deployment";
2589
3215
  rules: {
2590
3216
  read: "allow" | "ask" | "block";
2591
3217
  change: "allow" | "ask" | "block";
@@ -2638,6 +3264,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2638
3264
  id: string;
2639
3265
  effort: "low" | "medium" | "high" | "xhigh";
2640
3266
  };
3267
+ publicDescription: string;
3268
+ iconAssetId: string | null;
2641
3269
  skills: {
2642
3270
  id: string;
2643
3271
  name: string;
@@ -2714,7 +3342,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2714
3342
  runsAs: "none" | "field";
2715
3343
  customerField: string;
2716
3344
  instruction: string;
2717
- answerTo: "webhook" | "none";
3345
+ answerTo: "none" | "webhook";
2718
3346
  } | {
2719
3347
  kind: "webhook";
2720
3348
  id: string;
@@ -2725,7 +3353,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2725
3353
  runsAs: "none" | "field";
2726
3354
  customerField: string;
2727
3355
  instruction: string;
2728
- answerTo: "webhook" | "none";
3356
+ answerTo: "none" | "webhook";
2729
3357
  } | {
2730
3358
  every: "week" | "day" | "hour";
2731
3359
  kind: "schedule";
@@ -2734,17 +3362,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2734
3362
  tenantId: string;
2735
3363
  enabled: boolean;
2736
3364
  name: string;
3365
+ days: number[];
3366
+ timezone: string;
2737
3367
  variables: Record<string, unknown>;
2738
3368
  runsAs: "one" | "none";
2739
3369
  instruction: string;
2740
- answerTo: "webhook" | "none";
3370
+ answerTo: "none" | "webhook";
2741
3371
  repeat: "once" | "repeat";
2742
- days: number[];
2743
3372
  time: string;
2744
- timezone: string;
2745
3373
  customerId: string;
2746
3374
  })[];
2747
3375
  timezone?: string | null | undefined;
3376
+ avatar?: {
3377
+ style: "clay" | "pebble" | "shapes" | "letters";
3378
+ seed: string;
3379
+ version: 1;
3380
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3381
+ } | null | undefined;
2748
3382
  }, {
2749
3383
  name: string;
2750
3384
  workbench: {
@@ -2773,7 +3407,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2773
3407
  context: {
2774
3408
  knowledge: {
2775
3409
  status: "failed" | "ready" | "syncing";
2776
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
3410
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2777
3411
  id: string;
2778
3412
  name: string;
2779
3413
  detail: string;
@@ -2802,7 +3436,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2802
3436
  name: string;
2803
3437
  host: string;
2804
3438
  baseUrl: string;
2805
- auth: "one" | "each" | "oauth" | "none";
3439
+ auth: "one" | "none" | "each" | "oauth";
2806
3440
  sendCustomerIdentity: boolean;
2807
3441
  calls: {
2808
3442
  path: string;
@@ -2810,7 +3444,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2810
3444
  name: string;
2811
3445
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2812
3446
  bodyType: "json" | "xml" | "form" | "gql";
2813
- readAs: "json" | "xml" | "text" | "auto";
3447
+ readAs: "json" | "xml" | "auto" | "text";
2814
3448
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2815
3449
  summary: string;
2816
3450
  latencyMs: number | null;
@@ -2825,8 +3459,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2825
3459
  bindings?: {
2826
3460
  path: string[];
2827
3461
  source: "variable" | "context" | "model" | "identity";
2828
- target: "body" | "path" | "query" | "header";
2829
3462
  key: string;
3463
+ target: "body" | "path" | "query" | "header";
2830
3464
  }[] | undefined;
2831
3465
  responseSchema?: Record<string, unknown> | undefined;
2832
3466
  }[];
@@ -2835,7 +3469,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2835
3469
  }[];
2836
3470
  apps: {
2837
3471
  key: string;
2838
- account: "customer" | "project";
3472
+ account: "customer" | "project" | "deployment";
2839
3473
  rules: {
2840
3474
  read: "allow" | "ask" | "block";
2841
3475
  change: "allow" | "ask" | "block";
@@ -2960,6 +3594,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
2960
3594
  bigSpreadsheets: "workbench" | "preview";
2961
3595
  } | undefined;
2962
3596
  timezone?: string | null | undefined;
3597
+ publicDescription?: string | undefined;
3598
+ iconAssetId?: string | null | undefined;
3599
+ avatar?: {
3600
+ style: "clay" | "pebble" | "shapes" | "letters";
3601
+ seed: string;
3602
+ version: 1;
3603
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3604
+ } | null | undefined;
2963
3605
  triggers?: ({
2964
3606
  kind: "app";
2965
3607
  id: string;
@@ -2972,7 +3614,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2972
3614
  runsAs: "none" | "field";
2973
3615
  customerField: string;
2974
3616
  instruction: string;
2975
- answerTo: "webhook" | "none";
3617
+ answerTo: "none" | "webhook";
2976
3618
  variables?: Record<string, unknown> | undefined;
2977
3619
  } | {
2978
3620
  kind: "webhook";
@@ -2983,7 +3625,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
2983
3625
  runsAs: "none" | "field";
2984
3626
  customerField: string;
2985
3627
  instruction: string;
2986
- answerTo: "webhook" | "none";
3628
+ answerTo: "none" | "webhook";
2987
3629
  variables?: Record<string, unknown> | undefined;
2988
3630
  } | {
2989
3631
  every: "week" | "day" | "hour";
@@ -2993,19 +3635,37 @@ export declare const botConfigurationSchema: z.ZodObject<{
2993
3635
  tenantId: string;
2994
3636
  enabled: boolean;
2995
3637
  name: string;
3638
+ days: number[];
3639
+ timezone: string;
2996
3640
  runsAs: "one" | "none";
2997
3641
  instruction: string;
2998
- answerTo: "webhook" | "none";
3642
+ answerTo: "none" | "webhook";
2999
3643
  repeat: "once" | "repeat";
3000
- days: number[];
3001
3644
  time: string;
3002
- timezone: string;
3003
3645
  customerId: string;
3004
3646
  variables?: Record<string, unknown> | undefined;
3005
3647
  })[] | undefined;
3006
3648
  }>;
3007
3649
  export declare const botPatchSchema: z.ZodObject<{
3008
3650
  name: z.ZodOptional<z.ZodString>;
3651
+ publicDescription: z.ZodOptional<z.ZodDefault<z.ZodString>>;
3652
+ iconAssetId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
3653
+ avatar: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3654
+ version: z.ZodLiteral<1>;
3655
+ style: z.ZodEnum<["clay", "pebble", "shapes", "letters"]>;
3656
+ seed: z.ZodString;
3657
+ tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
3658
+ }, "strict", z.ZodTypeAny, {
3659
+ style: "clay" | "pebble" | "shapes" | "letters";
3660
+ seed: string;
3661
+ version: 1;
3662
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3663
+ }, {
3664
+ style: "clay" | "pebble" | "shapes" | "letters";
3665
+ seed: string;
3666
+ version: 1;
3667
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3668
+ }>>>>;
3009
3669
  files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3010
3670
  enabled: z.ZodBoolean;
3011
3671
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
@@ -3047,7 +3707,7 @@ export declare const botPatchSchema: z.ZodObject<{
3047
3707
  runsAs: "none" | "field";
3048
3708
  customerField: string;
3049
3709
  instruction: string;
3050
- answerTo: "webhook" | "none";
3710
+ answerTo: "none" | "webhook";
3051
3711
  }, {
3052
3712
  kind: "app";
3053
3713
  id: string;
@@ -3060,7 +3720,7 @@ export declare const botPatchSchema: z.ZodObject<{
3060
3720
  runsAs: "none" | "field";
3061
3721
  customerField: string;
3062
3722
  instruction: string;
3063
- answerTo: "webhook" | "none";
3723
+ answerTo: "none" | "webhook";
3064
3724
  variables?: Record<string, unknown> | undefined;
3065
3725
  }>, z.ZodObject<{
3066
3726
  kind: z.ZodLiteral<"webhook">;
@@ -3083,7 +3743,7 @@ export declare const botPatchSchema: z.ZodObject<{
3083
3743
  runsAs: "none" | "field";
3084
3744
  customerField: string;
3085
3745
  instruction: string;
3086
- answerTo: "webhook" | "none";
3746
+ answerTo: "none" | "webhook";
3087
3747
  }, {
3088
3748
  kind: "webhook";
3089
3749
  id: string;
@@ -3093,7 +3753,7 @@ export declare const botPatchSchema: z.ZodObject<{
3093
3753
  runsAs: "none" | "field";
3094
3754
  customerField: string;
3095
3755
  instruction: string;
3096
- answerTo: "webhook" | "none";
3756
+ answerTo: "none" | "webhook";
3097
3757
  variables?: Record<string, unknown> | undefined;
3098
3758
  }>, z.ZodObject<{
3099
3759
  kind: z.ZodLiteral<"schedule">;
@@ -3120,14 +3780,14 @@ export declare const botPatchSchema: z.ZodObject<{
3120
3780
  tenantId: string;
3121
3781
  enabled: boolean;
3122
3782
  name: string;
3783
+ days: number[];
3784
+ timezone: string;
3123
3785
  variables: Record<string, unknown>;
3124
3786
  runsAs: "one" | "none";
3125
3787
  instruction: string;
3126
- answerTo: "webhook" | "none";
3788
+ answerTo: "none" | "webhook";
3127
3789
  repeat: "once" | "repeat";
3128
- days: number[];
3129
3790
  time: string;
3130
- timezone: string;
3131
3791
  customerId: string;
3132
3792
  }, {
3133
3793
  every: "week" | "day" | "hour";
@@ -3137,13 +3797,13 @@ export declare const botPatchSchema: z.ZodObject<{
3137
3797
  tenantId: string;
3138
3798
  enabled: boolean;
3139
3799
  name: string;
3800
+ days: number[];
3801
+ timezone: string;
3140
3802
  runsAs: "one" | "none";
3141
3803
  instruction: string;
3142
- answerTo: "webhook" | "none";
3804
+ answerTo: "none" | "webhook";
3143
3805
  repeat: "once" | "repeat";
3144
- days: number[];
3145
3806
  time: string;
3146
- timezone: string;
3147
3807
  customerId: string;
3148
3808
  variables?: Record<string, unknown> | undefined;
3149
3809
  }>]>, "many">>>;
@@ -3380,13 +4040,13 @@ export declare const botPatchSchema: z.ZodObject<{
3380
4040
  }, "strict", z.ZodTypeAny, {
3381
4041
  path: string[];
3382
4042
  source: "variable" | "context" | "model" | "identity";
3383
- target: "body" | "path" | "query" | "header";
3384
4043
  key: string;
4044
+ target: "body" | "path" | "query" | "header";
3385
4045
  }, {
3386
4046
  path: string[];
3387
4047
  source: "variable" | "context" | "model" | "identity";
3388
- target: "body" | "path" | "query" | "header";
3389
4048
  key: string;
4049
+ target: "body" | "path" | "query" | "header";
3390
4050
  }>, "many">>;
3391
4051
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3392
4052
  sample: z.ZodOptional<z.ZodUnknown>;
@@ -3399,7 +4059,7 @@ export declare const botPatchSchema: z.ZodObject<{
3399
4059
  query: Record<string, string>;
3400
4060
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3401
4061
  bodyType: "json" | "xml" | "form" | "gql";
3402
- readAs: "json" | "xml" | "text" | "auto";
4062
+ readAs: "json" | "xml" | "auto" | "text";
3403
4063
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3404
4064
  summary: string;
3405
4065
  latencyMs: number | null;
@@ -3409,8 +4069,8 @@ export declare const botPatchSchema: z.ZodObject<{
3409
4069
  bindings: {
3410
4070
  path: string[];
3411
4071
  source: "variable" | "context" | "model" | "identity";
3412
- target: "body" | "path" | "query" | "header";
3413
4072
  key: string;
4073
+ target: "body" | "path" | "query" | "header";
3414
4074
  }[];
3415
4075
  sample?: unknown;
3416
4076
  inputSchema?: Record<string, unknown> | undefined;
@@ -3421,7 +4081,7 @@ export declare const botPatchSchema: z.ZodObject<{
3421
4081
  name: string;
3422
4082
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3423
4083
  bodyType: "json" | "xml" | "form" | "gql";
3424
- readAs: "json" | "xml" | "text" | "auto";
4084
+ readAs: "json" | "xml" | "auto" | "text";
3425
4085
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3426
4086
  summary: string;
3427
4087
  latencyMs: number | null;
@@ -3436,8 +4096,8 @@ export declare const botPatchSchema: z.ZodObject<{
3436
4096
  bindings?: {
3437
4097
  path: string[];
3438
4098
  source: "variable" | "context" | "model" | "identity";
3439
- target: "body" | "path" | "query" | "header";
3440
4099
  key: string;
4100
+ target: "body" | "path" | "query" | "header";
3441
4101
  }[] | undefined;
3442
4102
  responseSchema?: Record<string, unknown> | undefined;
3443
4103
  }>, "many">;
@@ -3447,7 +4107,7 @@ export declare const botPatchSchema: z.ZodObject<{
3447
4107
  name: string;
3448
4108
  host: string;
3449
4109
  baseUrl: string;
3450
- auth: "one" | "each" | "oauth" | "none";
4110
+ auth: "one" | "none" | "each" | "oauth";
3451
4111
  sendCustomerIdentity: boolean;
3452
4112
  calls: {
3453
4113
  headers: Record<string, string>;
@@ -3458,7 +4118,7 @@ export declare const botPatchSchema: z.ZodObject<{
3458
4118
  query: Record<string, string>;
3459
4119
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3460
4120
  bodyType: "json" | "xml" | "form" | "gql";
3461
- readAs: "json" | "xml" | "text" | "auto";
4121
+ readAs: "json" | "xml" | "auto" | "text";
3462
4122
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3463
4123
  summary: string;
3464
4124
  latencyMs: number | null;
@@ -3468,8 +4128,8 @@ export declare const botPatchSchema: z.ZodObject<{
3468
4128
  bindings: {
3469
4129
  path: string[];
3470
4130
  source: "variable" | "context" | "model" | "identity";
3471
- target: "body" | "path" | "query" | "header";
3472
4131
  key: string;
4132
+ target: "body" | "path" | "query" | "header";
3473
4133
  }[];
3474
4134
  sample?: unknown;
3475
4135
  inputSchema?: Record<string, unknown> | undefined;
@@ -3483,7 +4143,7 @@ export declare const botPatchSchema: z.ZodObject<{
3483
4143
  name: string;
3484
4144
  host: string;
3485
4145
  baseUrl: string;
3486
- auth: "one" | "each" | "oauth" | "none";
4146
+ auth: "one" | "none" | "each" | "oauth";
3487
4147
  sendCustomerIdentity: boolean;
3488
4148
  calls: {
3489
4149
  path: string;
@@ -3491,7 +4151,7 @@ export declare const botPatchSchema: z.ZodObject<{
3491
4151
  name: string;
3492
4152
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3493
4153
  bodyType: "json" | "xml" | "form" | "gql";
3494
- readAs: "json" | "xml" | "text" | "auto";
4154
+ readAs: "json" | "xml" | "auto" | "text";
3495
4155
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3496
4156
  summary: string;
3497
4157
  latencyMs: number | null;
@@ -3506,8 +4166,8 @@ export declare const botPatchSchema: z.ZodObject<{
3506
4166
  bindings?: {
3507
4167
  path: string[];
3508
4168
  source: "variable" | "context" | "model" | "identity";
3509
- target: "body" | "path" | "query" | "header";
3510
4169
  key: string;
4170
+ target: "body" | "path" | "query" | "header";
3511
4171
  }[] | undefined;
3512
4172
  responseSchema?: Record<string, unknown> | undefined;
3513
4173
  }[];
@@ -3516,7 +4176,7 @@ export declare const botPatchSchema: z.ZodObject<{
3516
4176
  }>, "many">;
3517
4177
  apps: z.ZodArray<z.ZodObject<{
3518
4178
  key: z.ZodString;
3519
- account: z.ZodEnum<["project", "customer"]>;
4179
+ account: z.ZodEnum<["project", "customer", "deployment"]>;
3520
4180
  accountId: z.ZodOptional<z.ZodString>;
3521
4181
  rules: z.ZodObject<{
3522
4182
  read: z.ZodEnum<["allow", "ask", "block"]>;
@@ -3536,7 +4196,7 @@ export declare const botPatchSchema: z.ZodObject<{
3536
4196
  pinned: z.ZodArray<z.ZodString, "many">;
3537
4197
  }, "strict", z.ZodTypeAny, {
3538
4198
  key: string;
3539
- account: "customer" | "project";
4199
+ account: "customer" | "project" | "deployment";
3540
4200
  rules: {
3541
4201
  read: "allow" | "ask" | "block";
3542
4202
  change: "allow" | "ask" | "block";
@@ -3548,7 +4208,7 @@ export declare const botPatchSchema: z.ZodObject<{
3548
4208
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
3549
4209
  }, {
3550
4210
  key: string;
3551
- account: "customer" | "project";
4211
+ account: "customer" | "project" | "deployment";
3552
4212
  rules: {
3553
4213
  read: "allow" | "ask" | "block";
3554
4214
  change: "allow" | "ask" | "block";
@@ -3685,7 +4345,7 @@ export declare const botPatchSchema: z.ZodObject<{
3685
4345
  syncedLabel: z.ZodString;
3686
4346
  }, "strict", z.ZodTypeAny, {
3687
4347
  status: "failed" | "ready" | "syncing";
3688
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4348
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3689
4349
  id: string;
3690
4350
  name: string;
3691
4351
  scope: "customer" | "project";
@@ -3709,7 +4369,7 @@ export declare const botPatchSchema: z.ZodObject<{
3709
4369
  } | undefined;
3710
4370
  }, {
3711
4371
  status: "failed" | "ready" | "syncing";
3712
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4372
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3713
4373
  id: string;
3714
4374
  name: string;
3715
4375
  detail: string;
@@ -3748,7 +4408,7 @@ export declare const botPatchSchema: z.ZodObject<{
3748
4408
  }, "strict", z.ZodTypeAny, {
3749
4409
  knowledge: {
3750
4410
  status: "failed" | "ready" | "syncing";
3751
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4411
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3752
4412
  id: string;
3753
4413
  name: string;
3754
4414
  scope: "customer" | "project";
@@ -3780,7 +4440,7 @@ export declare const botPatchSchema: z.ZodObject<{
3780
4440
  name: string;
3781
4441
  host: string;
3782
4442
  baseUrl: string;
3783
- auth: "one" | "each" | "oauth" | "none";
4443
+ auth: "one" | "none" | "each" | "oauth";
3784
4444
  sendCustomerIdentity: boolean;
3785
4445
  calls: {
3786
4446
  headers: Record<string, string>;
@@ -3791,7 +4451,7 @@ export declare const botPatchSchema: z.ZodObject<{
3791
4451
  query: Record<string, string>;
3792
4452
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3793
4453
  bodyType: "json" | "xml" | "form" | "gql";
3794
- readAs: "json" | "xml" | "text" | "auto";
4454
+ readAs: "json" | "xml" | "auto" | "text";
3795
4455
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3796
4456
  summary: string;
3797
4457
  latencyMs: number | null;
@@ -3801,8 +4461,8 @@ export declare const botPatchSchema: z.ZodObject<{
3801
4461
  bindings: {
3802
4462
  path: string[];
3803
4463
  source: "variable" | "context" | "model" | "identity";
3804
- target: "body" | "path" | "query" | "header";
3805
4464
  key: string;
4465
+ target: "body" | "path" | "query" | "header";
3806
4466
  }[];
3807
4467
  sample?: unknown;
3808
4468
  inputSchema?: Record<string, unknown> | undefined;
@@ -3813,7 +4473,7 @@ export declare const botPatchSchema: z.ZodObject<{
3813
4473
  }[];
3814
4474
  apps: {
3815
4475
  key: string;
3816
- account: "customer" | "project";
4476
+ account: "customer" | "project" | "deployment";
3817
4477
  rules: {
3818
4478
  read: "allow" | "ask" | "block";
3819
4479
  change: "allow" | "ask" | "block";
@@ -3852,7 +4512,7 @@ export declare const botPatchSchema: z.ZodObject<{
3852
4512
  }, {
3853
4513
  knowledge: {
3854
4514
  status: "failed" | "ready" | "syncing";
3855
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4515
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3856
4516
  id: string;
3857
4517
  name: string;
3858
4518
  detail: string;
@@ -3881,7 +4541,7 @@ export declare const botPatchSchema: z.ZodObject<{
3881
4541
  name: string;
3882
4542
  host: string;
3883
4543
  baseUrl: string;
3884
- auth: "one" | "each" | "oauth" | "none";
4544
+ auth: "one" | "none" | "each" | "oauth";
3885
4545
  sendCustomerIdentity: boolean;
3886
4546
  calls: {
3887
4547
  path: string;
@@ -3889,7 +4549,7 @@ export declare const botPatchSchema: z.ZodObject<{
3889
4549
  name: string;
3890
4550
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3891
4551
  bodyType: "json" | "xml" | "form" | "gql";
3892
- readAs: "json" | "xml" | "text" | "auto";
4552
+ readAs: "json" | "xml" | "auto" | "text";
3893
4553
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3894
4554
  summary: string;
3895
4555
  latencyMs: number | null;
@@ -3904,8 +4564,8 @@ export declare const botPatchSchema: z.ZodObject<{
3904
4564
  bindings?: {
3905
4565
  path: string[];
3906
4566
  source: "variable" | "context" | "model" | "identity";
3907
- target: "body" | "path" | "query" | "header";
3908
4567
  key: string;
4568
+ target: "body" | "path" | "query" | "header";
3909
4569
  }[] | undefined;
3910
4570
  responseSchema?: Record<string, unknown> | undefined;
3911
4571
  }[];
@@ -3914,7 +4574,7 @@ export declare const botPatchSchema: z.ZodObject<{
3914
4574
  }[];
3915
4575
  apps: {
3916
4576
  key: string;
3917
- account: "customer" | "project";
4577
+ account: "customer" | "project" | "deployment";
3918
4578
  rules: {
3919
4579
  read: "allow" | "ask" | "block";
3920
4580
  change: "allow" | "ask" | "block";
@@ -4147,6 +4807,12 @@ export declare const botPatchSchema: z.ZodObject<{
4147
4807
  languages: string[];
4148
4808
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4149
4809
  } | undefined;
4810
+ files?: {
4811
+ enabled: boolean;
4812
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4813
+ bigSpreadsheets: "workbench" | "preview";
4814
+ } | undefined;
4815
+ timezone?: string | null | undefined;
4150
4816
  variables?: {
4151
4817
  type: "Text" | "Number" | "Yes or no" | "One of…";
4152
4818
  required: boolean;
@@ -4157,11 +4823,6 @@ export declare const botPatchSchema: z.ZodObject<{
4157
4823
  chipNote: string;
4158
4824
  values?: string[] | undefined;
4159
4825
  }[] | undefined;
4160
- files?: {
4161
- enabled: boolean;
4162
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4163
- bigSpreadsheets: "workbench" | "preview";
4164
- } | undefined;
4165
4826
  instructions?: {
4166
4827
  text: string;
4167
4828
  editedAt: string | null;
@@ -4169,7 +4830,7 @@ export declare const botPatchSchema: z.ZodObject<{
4169
4830
  context?: {
4170
4831
  knowledge: {
4171
4832
  status: "failed" | "ready" | "syncing";
4172
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
4833
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4173
4834
  id: string;
4174
4835
  name: string;
4175
4836
  scope: "customer" | "project";
@@ -4201,7 +4862,7 @@ export declare const botPatchSchema: z.ZodObject<{
4201
4862
  name: string;
4202
4863
  host: string;
4203
4864
  baseUrl: string;
4204
- auth: "one" | "each" | "oauth" | "none";
4865
+ auth: "one" | "none" | "each" | "oauth";
4205
4866
  sendCustomerIdentity: boolean;
4206
4867
  calls: {
4207
4868
  headers: Record<string, string>;
@@ -4212,7 +4873,7 @@ export declare const botPatchSchema: z.ZodObject<{
4212
4873
  query: Record<string, string>;
4213
4874
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4214
4875
  bodyType: "json" | "xml" | "form" | "gql";
4215
- readAs: "json" | "xml" | "text" | "auto";
4876
+ readAs: "json" | "xml" | "auto" | "text";
4216
4877
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4217
4878
  summary: string;
4218
4879
  latencyMs: number | null;
@@ -4222,8 +4883,8 @@ export declare const botPatchSchema: z.ZodObject<{
4222
4883
  bindings: {
4223
4884
  path: string[];
4224
4885
  source: "variable" | "context" | "model" | "identity";
4225
- target: "body" | "path" | "query" | "header";
4226
4886
  key: string;
4887
+ target: "body" | "path" | "query" | "header";
4227
4888
  }[];
4228
4889
  sample?: unknown;
4229
4890
  inputSchema?: Record<string, unknown> | undefined;
@@ -4234,7 +4895,7 @@ export declare const botPatchSchema: z.ZodObject<{
4234
4895
  }[];
4235
4896
  apps: {
4236
4897
  key: string;
4237
- account: "customer" | "project";
4898
+ account: "customer" | "project" | "deployment";
4238
4899
  rules: {
4239
4900
  read: "allow" | "ask" | "block";
4240
4901
  change: "allow" | "ask" | "block";
@@ -4287,7 +4948,14 @@ export declare const botPatchSchema: z.ZodObject<{
4287
4948
  id: string;
4288
4949
  effort: "low" | "medium" | "high" | "xhigh";
4289
4950
  } | undefined;
4290
- timezone?: string | null | undefined;
4951
+ publicDescription?: string | undefined;
4952
+ iconAssetId?: string | null | undefined;
4953
+ avatar?: {
4954
+ style: "clay" | "pebble" | "shapes" | "letters";
4955
+ seed: string;
4956
+ version: 1;
4957
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
4958
+ } | null | undefined;
4291
4959
  skills?: {
4292
4960
  id: string;
4293
4961
  name: string;
@@ -4364,7 +5032,7 @@ export declare const botPatchSchema: z.ZodObject<{
4364
5032
  runsAs: "none" | "field";
4365
5033
  customerField: string;
4366
5034
  instruction: string;
4367
- answerTo: "webhook" | "none";
5035
+ answerTo: "none" | "webhook";
4368
5036
  } | {
4369
5037
  kind: "webhook";
4370
5038
  id: string;
@@ -4375,7 +5043,7 @@ export declare const botPatchSchema: z.ZodObject<{
4375
5043
  runsAs: "none" | "field";
4376
5044
  customerField: string;
4377
5045
  instruction: string;
4378
- answerTo: "webhook" | "none";
5046
+ answerTo: "none" | "webhook";
4379
5047
  } | {
4380
5048
  every: "week" | "day" | "hour";
4381
5049
  kind: "schedule";
@@ -4384,14 +5052,14 @@ export declare const botPatchSchema: z.ZodObject<{
4384
5052
  tenantId: string;
4385
5053
  enabled: boolean;
4386
5054
  name: string;
5055
+ days: number[];
5056
+ timezone: string;
4387
5057
  variables: Record<string, unknown>;
4388
5058
  runsAs: "one" | "none";
4389
5059
  instruction: string;
4390
- answerTo: "webhook" | "none";
5060
+ answerTo: "none" | "webhook";
4391
5061
  repeat: "once" | "repeat";
4392
- days: number[];
4393
5062
  time: string;
4394
- timezone: string;
4395
5063
  customerId: string;
4396
5064
  })[] | undefined;
4397
5065
  }, {
@@ -4405,6 +5073,12 @@ export declare const botPatchSchema: z.ZodObject<{
4405
5073
  languages: string[];
4406
5074
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4407
5075
  } | undefined;
5076
+ files?: {
5077
+ enabled: boolean;
5078
+ kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
5079
+ bigSpreadsheets: "workbench" | "preview";
5080
+ } | undefined;
5081
+ timezone?: string | null | undefined;
4408
5082
  variables?: {
4409
5083
  type: "Text" | "Number" | "Yes or no" | "One of…";
4410
5084
  required: boolean;
@@ -4415,11 +5089,6 @@ export declare const botPatchSchema: z.ZodObject<{
4415
5089
  chipNote: string;
4416
5090
  values?: string[] | undefined;
4417
5091
  }[] | undefined;
4418
- files?: {
4419
- enabled: boolean;
4420
- kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
4421
- bigSpreadsheets: "workbench" | "preview";
4422
- } | undefined;
4423
5092
  instructions?: {
4424
5093
  text: string;
4425
5094
  editedAt: string | null;
@@ -4427,7 +5096,7 @@ export declare const botPatchSchema: z.ZodObject<{
4427
5096
  context?: {
4428
5097
  knowledge: {
4429
5098
  status: "failed" | "ready" | "syncing";
4430
- kind: "help_center" | "website" | "files" | "note" | "notion" | "google_drive";
5099
+ kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4431
5100
  id: string;
4432
5101
  name: string;
4433
5102
  detail: string;
@@ -4456,7 +5125,7 @@ export declare const botPatchSchema: z.ZodObject<{
4456
5125
  name: string;
4457
5126
  host: string;
4458
5127
  baseUrl: string;
4459
- auth: "one" | "each" | "oauth" | "none";
5128
+ auth: "one" | "none" | "each" | "oauth";
4460
5129
  sendCustomerIdentity: boolean;
4461
5130
  calls: {
4462
5131
  path: string;
@@ -4464,7 +5133,7 @@ export declare const botPatchSchema: z.ZodObject<{
4464
5133
  name: string;
4465
5134
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4466
5135
  bodyType: "json" | "xml" | "form" | "gql";
4467
- readAs: "json" | "xml" | "text" | "auto";
5136
+ readAs: "json" | "xml" | "auto" | "text";
4468
5137
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4469
5138
  summary: string;
4470
5139
  latencyMs: number | null;
@@ -4479,8 +5148,8 @@ export declare const botPatchSchema: z.ZodObject<{
4479
5148
  bindings?: {
4480
5149
  path: string[];
4481
5150
  source: "variable" | "context" | "model" | "identity";
4482
- target: "body" | "path" | "query" | "header";
4483
5151
  key: string;
5152
+ target: "body" | "path" | "query" | "header";
4484
5153
  }[] | undefined;
4485
5154
  responseSchema?: Record<string, unknown> | undefined;
4486
5155
  }[];
@@ -4489,7 +5158,7 @@ export declare const botPatchSchema: z.ZodObject<{
4489
5158
  }[];
4490
5159
  apps: {
4491
5160
  key: string;
4492
- account: "customer" | "project";
5161
+ account: "customer" | "project" | "deployment";
4493
5162
  rules: {
4494
5163
  read: "allow" | "ask" | "block";
4495
5164
  change: "allow" | "ask" | "block";
@@ -4545,7 +5214,14 @@ export declare const botPatchSchema: z.ZodObject<{
4545
5214
  id: string;
4546
5215
  effort: "low" | "medium" | "high" | "xhigh";
4547
5216
  } | undefined;
4548
- timezone?: string | null | undefined;
5217
+ publicDescription?: string | undefined;
5218
+ iconAssetId?: string | null | undefined;
5219
+ avatar?: {
5220
+ style: "clay" | "pebble" | "shapes" | "letters";
5221
+ seed: string;
5222
+ version: 1;
5223
+ tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
5224
+ } | null | undefined;
4549
5225
  skills?: {
4550
5226
  id: string;
4551
5227
  name: string;
@@ -4621,7 +5297,7 @@ export declare const botPatchSchema: z.ZodObject<{
4621
5297
  runsAs: "none" | "field";
4622
5298
  customerField: string;
4623
5299
  instruction: string;
4624
- answerTo: "webhook" | "none";
5300
+ answerTo: "none" | "webhook";
4625
5301
  variables?: Record<string, unknown> | undefined;
4626
5302
  } | {
4627
5303
  kind: "webhook";
@@ -4632,7 +5308,7 @@ export declare const botPatchSchema: z.ZodObject<{
4632
5308
  runsAs: "none" | "field";
4633
5309
  customerField: string;
4634
5310
  instruction: string;
4635
- answerTo: "webhook" | "none";
5311
+ answerTo: "none" | "webhook";
4636
5312
  variables?: Record<string, unknown> | undefined;
4637
5313
  } | {
4638
5314
  every: "week" | "day" | "hour";
@@ -4642,13 +5318,13 @@ export declare const botPatchSchema: z.ZodObject<{
4642
5318
  tenantId: string;
4643
5319
  enabled: boolean;
4644
5320
  name: string;
5321
+ days: number[];
5322
+ timezone: string;
4645
5323
  runsAs: "one" | "none";
4646
5324
  instruction: string;
4647
- answerTo: "webhook" | "none";
5325
+ answerTo: "none" | "webhook";
4648
5326
  repeat: "once" | "repeat";
4649
- days: number[];
4650
5327
  time: string;
4651
- timezone: string;
4652
5328
  customerId: string;
4653
5329
  variables?: Record<string, unknown> | undefined;
4654
5330
  })[] | undefined;
@@ -4657,7 +5333,7 @@ export declare const botRunInputSchema: z.ZodObject<{
4657
5333
  attachments: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
4658
5334
  runId: z.ZodOptional<z.ZodString>;
4659
5335
  conversationId: z.ZodOptional<z.ZodString>;
4660
- message: z.ZodString;
5336
+ message: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4661
5337
  variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4662
5338
  revision: z.ZodOptional<z.ZodNumber>;
4663
5339
  dataMode: z.ZodDefault<z.ZodEnum<["sample", "live"]>>;
@@ -4694,4 +5370,9 @@ export declare function botApplicationToolRule(config: BotConfiguration, tool: {
4694
5370
  toolkitKey: string;
4695
5371
  mutationLevel: string;
4696
5372
  }): ActionRule;
5373
+ /** Provider grants required by the explicitly selected native chat features. */
5374
+ export declare function botNativeRequiredScopes(provider: BotTeamProvider, value: z.input<typeof botNativeFeaturesSchema>): {
5375
+ scope: string;
5376
+ reason: string;
5377
+ }[];
4697
5378
  //# sourceMappingURL=bot-contract.d.ts.map