@stacklink/sdk 0.4.0 → 0.6.3
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.
- package/README.md +31 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/billing-plans.d.ts +827 -0
- package/dist/src/domain/billing-plans.d.ts.map +1 -0
- package/dist/src/domain/billing-plans.js +893 -0
- package/dist/src/domain/billing-plans.js.map +1 -0
- package/dist/src/domain/bot-contract.d.ts +838 -747
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +8 -2
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/memory-contract.d.ts +231 -231
- package/dist/src/domain/platform-approval-contract.d.ts +24 -24
- package/dist/src/domain/provider-branding.d.ts.map +1 -1
- package/dist/src/domain/provider-branding.js +3 -0
- package/dist/src/domain/provider-branding.js.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.d.ts +18 -2
- package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +26 -15
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +24747 -0
- package/dist/src/domain/workflow-contract.d.ts.map +1 -0
- package/dist/src/domain/workflow-contract.js +123 -0
- package/dist/src/domain/workflow-contract.js.map +1 -0
- package/dist/src/sdk/index.d.ts +225 -10
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +72 -7
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -47,11 +47,11 @@ export declare const botRunsQuerySchema: z.ZodObject<{
|
|
|
47
47
|
cursor: z.ZodOptional<z.ZodString>;
|
|
48
48
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
filter: "
|
|
50
|
+
filter: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed";
|
|
51
51
|
limit: number;
|
|
52
|
-
|
|
52
|
+
source?: "slack" | "mcp" | "app" | "test" | "microsoft_teams" | "trigger" | undefined;
|
|
53
|
+
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
53
54
|
channel?: "test" | "published" | undefined;
|
|
54
|
-
source?: "slack" | "mcp" | "app" | "microsoft_teams" | "trigger" | "test" | undefined;
|
|
55
55
|
cursor?: string | undefined;
|
|
56
56
|
mine?: "true" | "false" | undefined;
|
|
57
57
|
from?: string | undefined;
|
|
@@ -59,10 +59,10 @@ export declare const botRunsQuerySchema: z.ZodObject<{
|
|
|
59
59
|
errorCode?: string | undefined;
|
|
60
60
|
deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
|
|
61
61
|
}, {
|
|
62
|
-
filter?: "
|
|
63
|
-
|
|
62
|
+
filter?: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed" | undefined;
|
|
63
|
+
source?: "slack" | "mcp" | "app" | "test" | "microsoft_teams" | "trigger" | undefined;
|
|
64
|
+
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
64
65
|
channel?: "test" | "published" | undefined;
|
|
65
|
-
source?: "slack" | "mcp" | "app" | "microsoft_teams" | "trigger" | "test" | undefined;
|
|
66
66
|
cursor?: string | undefined;
|
|
67
67
|
limit?: number | undefined;
|
|
68
68
|
mine?: "true" | "false" | undefined;
|
|
@@ -76,13 +76,16 @@ export declare const botOverviewQuerySchema: z.ZodObject<{
|
|
|
76
76
|
days: z.ZodDefault<z.ZodPipeline<z.ZodNumber, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>>;
|
|
77
77
|
timezone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
days:
|
|
79
|
+
days: 30 | 1 | 7;
|
|
80
80
|
timezone?: string | undefined;
|
|
81
81
|
}, {
|
|
82
|
-
days?: number | undefined;
|
|
83
82
|
timezone?: string | undefined;
|
|
83
|
+
days?: number | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
export type BotBudgetView = {
|
|
86
|
+
scope: 'ai' | 'total';
|
|
87
|
+
creditsUsedUsd?: number | null;
|
|
88
|
+
includedValueUsd?: number | null;
|
|
86
89
|
status: 'ready' | 'pricing_not_configured' | 'agreement_required';
|
|
87
90
|
currency: 'USD';
|
|
88
91
|
usedUsd: number | null;
|
|
@@ -105,18 +108,21 @@ export type BotBudgetView = {
|
|
|
105
108
|
reservedUsd: number;
|
|
106
109
|
additionalLimitUsd: number;
|
|
107
110
|
additionalSpendingEnabled: boolean;
|
|
108
|
-
funding?: 'non_expiring_internal_credit' | 'plan_allowance';
|
|
111
|
+
funding?: 'non_expiring_internal_credit' | 'plan_allowance' | 'workspace_credits';
|
|
109
112
|
} | null;
|
|
110
113
|
};
|
|
111
114
|
export declare const botBudgetChangeSchema: z.ZodObject<{
|
|
115
|
+
scope: z.ZodOptional<z.ZodEnum<["ai", "total"]>>;
|
|
112
116
|
version: z.ZodNumber;
|
|
113
117
|
monthlyLimitUsd: z.ZodNullable<z.ZodNumber>;
|
|
114
118
|
}, "strict", z.ZodTypeAny, {
|
|
115
119
|
version: number;
|
|
116
120
|
monthlyLimitUsd: number | null;
|
|
121
|
+
scope?: "ai" | "total" | undefined;
|
|
117
122
|
}, {
|
|
118
123
|
version: number;
|
|
119
124
|
monthlyLimitUsd: number | null;
|
|
125
|
+
scope?: "ai" | "total" | undefined;
|
|
120
126
|
}>;
|
|
121
127
|
export type BotOverviewProblem = {
|
|
122
128
|
kind: 'run_failed' | 'connection_required' | 'approval_required' | 'delivery_failed' | 'delivery_retrying' | 'delivery_unknown';
|
|
@@ -254,7 +260,7 @@ export type BotAttachment = {
|
|
|
254
260
|
sizeBytes: number;
|
|
255
261
|
status: AttachmentStatus;
|
|
256
262
|
transcription?: {
|
|
257
|
-
state: 'queued' | 'transcribing' | 'reconciling' | 'completed' | 'failed';
|
|
263
|
+
state: 'queued' | 'waiting_for_funding' | 'transcribing' | 'reconciling' | 'completed' | 'failed';
|
|
258
264
|
};
|
|
259
265
|
facts?: AttachmentFacts;
|
|
260
266
|
error?: AttachmentError | null;
|
|
@@ -345,11 +351,11 @@ export declare const botFileSettingsSchema: z.ZodObject<{
|
|
|
345
351
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
346
352
|
}, "strict", z.ZodTypeAny, {
|
|
347
353
|
enabled: boolean;
|
|
348
|
-
kinds: ("
|
|
354
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
349
355
|
bigSpreadsheets: "workbench" | "preview";
|
|
350
356
|
}, {
|
|
351
357
|
enabled: boolean;
|
|
352
|
-
kinds: ("
|
|
358
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
353
359
|
bigSpreadsheets: "workbench" | "preview";
|
|
354
360
|
}>;
|
|
355
361
|
export declare const botFileUploadSchema: z.ZodObject<{
|
|
@@ -392,29 +398,29 @@ export declare const botUploadRequestSchema: z.ZodObject<{
|
|
|
392
398
|
}, "strict", z.ZodTypeAny, {
|
|
393
399
|
message: string;
|
|
394
400
|
runId: string;
|
|
395
|
-
conversationId?: string | undefined;
|
|
396
401
|
variables?: Record<string, unknown> | undefined;
|
|
402
|
+
conversationId?: string | undefined;
|
|
397
403
|
}, {
|
|
398
404
|
message: string;
|
|
399
405
|
runId: string;
|
|
400
|
-
conversationId?: string | undefined;
|
|
401
406
|
variables?: Record<string, unknown> | undefined;
|
|
407
|
+
conversationId?: string | undefined;
|
|
402
408
|
}>>;
|
|
403
409
|
}, "strict", z.ZodTypeAny, {
|
|
404
410
|
requestId: string;
|
|
405
411
|
task?: {
|
|
406
412
|
message: string;
|
|
407
413
|
runId: string;
|
|
408
|
-
conversationId?: string | undefined;
|
|
409
414
|
variables?: Record<string, unknown> | undefined;
|
|
415
|
+
conversationId?: string | undefined;
|
|
410
416
|
} | undefined;
|
|
411
417
|
}, {
|
|
412
418
|
requestId: string;
|
|
413
419
|
task?: {
|
|
414
420
|
message: string;
|
|
415
421
|
runId: string;
|
|
416
|
-
conversationId?: string | undefined;
|
|
417
422
|
variables?: Record<string, unknown> | undefined;
|
|
423
|
+
conversationId?: string | undefined;
|
|
418
424
|
} | undefined;
|
|
419
425
|
}>;
|
|
420
426
|
export type BotUploadRequestView = {
|
|
@@ -453,7 +459,7 @@ export declare const botAttentionStatuses: Set<string>;
|
|
|
453
459
|
export type BotRunState = "on" | "paused";
|
|
454
460
|
export declare const botTerminalStatuses: Set<string>;
|
|
455
461
|
export type PauseFor = "1h" | "tomorrow" | "manual";
|
|
456
|
-
export type ModelEffort = "low" | "medium" | "high" | "xhigh";
|
|
462
|
+
export type ModelEffort = "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
457
463
|
export type AnswerFormat = "text" | "json";
|
|
458
464
|
export type AnswerDelivery = "stream" | "once" | "webhook";
|
|
459
465
|
export type SkillLoad = "auto" | "always";
|
|
@@ -863,14 +869,14 @@ export declare const botAvatarSchema: z.ZodObject<{
|
|
|
863
869
|
seed: z.ZodString;
|
|
864
870
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
865
871
|
}, "strict", z.ZodTypeAny, {
|
|
872
|
+
version: 1;
|
|
866
873
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
867
874
|
seed: string;
|
|
868
|
-
version: 1;
|
|
869
875
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
870
876
|
}, {
|
|
877
|
+
version: 1;
|
|
871
878
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
872
879
|
seed: string;
|
|
873
|
-
version: 1;
|
|
874
880
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
875
881
|
}>;
|
|
876
882
|
export type BotAvatar = z.infer<typeof botAvatarSchema>;
|
|
@@ -890,14 +896,14 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
890
896
|
seed: z.ZodString;
|
|
891
897
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
892
898
|
}, "strict", z.ZodTypeAny, {
|
|
899
|
+
version: 1;
|
|
893
900
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
894
901
|
seed: string;
|
|
895
|
-
version: 1;
|
|
896
902
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
897
903
|
}, {
|
|
904
|
+
version: 1;
|
|
898
905
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
899
906
|
seed: string;
|
|
900
|
-
version: 1;
|
|
901
907
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
902
908
|
}>>>;
|
|
903
909
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -905,9 +911,9 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
905
911
|
publicDescription: string;
|
|
906
912
|
iconAssetId: string | null;
|
|
907
913
|
avatar?: {
|
|
914
|
+
version: 1;
|
|
908
915
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
909
916
|
seed: string;
|
|
910
|
-
version: 1;
|
|
911
917
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
912
918
|
} | null | undefined;
|
|
913
919
|
}, {
|
|
@@ -915,9 +921,9 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
915
921
|
publicDescription?: string | undefined;
|
|
916
922
|
iconAssetId?: string | null | undefined;
|
|
917
923
|
avatar?: {
|
|
924
|
+
version: 1;
|
|
918
925
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
919
926
|
seed: string;
|
|
920
|
-
version: 1;
|
|
921
927
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
922
928
|
} | null | undefined;
|
|
923
929
|
}>;
|
|
@@ -944,6 +950,10 @@ export type Bot = {
|
|
|
944
950
|
};
|
|
945
951
|
readiness: BotReadinessIssue[];
|
|
946
952
|
triggers: BotTrigger[];
|
|
953
|
+
workflows?: Array<{
|
|
954
|
+
workflowId: string;
|
|
955
|
+
version: number | 'live';
|
|
956
|
+
}>;
|
|
947
957
|
triggerStates: BotTriggerState[];
|
|
948
958
|
revision: number;
|
|
949
959
|
channels: PublishChannels;
|
|
@@ -1000,7 +1010,7 @@ export type BotReadinessIssue = {
|
|
|
1000
1010
|
message: string;
|
|
1001
1011
|
};
|
|
1002
1012
|
/** Partial update. Nested objects replace the stored value for that key. */
|
|
1003
|
-
export type BotConfiguration = Pick<Bot, "name" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
|
|
1013
|
+
export type BotConfiguration = Pick<Bot, "name" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers" | "workflows">;
|
|
1004
1014
|
export type BotPatch = Partial<BotConfiguration>;
|
|
1005
1015
|
export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1006
1016
|
kind: z.ZodLiteral<"app">;
|
|
@@ -1017,13 +1027,13 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1017
1027
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1018
1028
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1019
1029
|
}, "strict", z.ZodTypeAny, {
|
|
1020
|
-
|
|
1030
|
+
label: string;
|
|
1021
1031
|
id: string;
|
|
1032
|
+
kind: "app";
|
|
1022
1033
|
enabled: boolean;
|
|
1023
1034
|
name: string;
|
|
1024
1035
|
variables: Record<string, unknown>;
|
|
1025
1036
|
subscriptionId: string;
|
|
1026
|
-
label: string;
|
|
1027
1037
|
providerKey: string;
|
|
1028
1038
|
eventTypes: string[];
|
|
1029
1039
|
runsAs: "none" | "field";
|
|
@@ -1031,12 +1041,12 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1031
1041
|
instruction: string;
|
|
1032
1042
|
answerTo: "none" | "webhook";
|
|
1033
1043
|
}, {
|
|
1034
|
-
|
|
1044
|
+
label: string;
|
|
1035
1045
|
id: string;
|
|
1046
|
+
kind: "app";
|
|
1036
1047
|
enabled: boolean;
|
|
1037
1048
|
name: string;
|
|
1038
1049
|
subscriptionId: string;
|
|
1039
|
-
label: string;
|
|
1040
1050
|
providerKey: string;
|
|
1041
1051
|
eventTypes: string[];
|
|
1042
1052
|
runsAs: "none" | "field";
|
|
@@ -1056,8 +1066,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1056
1066
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1057
1067
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1058
1068
|
}, "strict", z.ZodTypeAny, {
|
|
1059
|
-
kind: "webhook";
|
|
1060
1069
|
id: string;
|
|
1070
|
+
kind: "webhook";
|
|
1061
1071
|
tenantId: string;
|
|
1062
1072
|
enabled: boolean;
|
|
1063
1073
|
name: string;
|
|
@@ -1067,8 +1077,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1067
1077
|
instruction: string;
|
|
1068
1078
|
answerTo: "none" | "webhook";
|
|
1069
1079
|
}, {
|
|
1070
|
-
kind: "webhook";
|
|
1071
1080
|
id: string;
|
|
1081
|
+
kind: "webhook";
|
|
1072
1082
|
tenantId: string;
|
|
1073
1083
|
enabled: boolean;
|
|
1074
1084
|
name: string;
|
|
@@ -1081,7 +1091,10 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1081
1091
|
kind: z.ZodLiteral<"schedule">;
|
|
1082
1092
|
tenantId: z.ZodString;
|
|
1083
1093
|
repeat: z.ZodEnum<["repeat", "once"]>;
|
|
1084
|
-
every: z.ZodEnum<["week", "day", "hour"]>;
|
|
1094
|
+
every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
|
|
1095
|
+
intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
|
|
1096
|
+
monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
|
|
1097
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
1085
1098
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
1086
1099
|
time: z.ZodString;
|
|
1087
1100
|
date: z.ZodString;
|
|
@@ -1095,39 +1108,45 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1095
1108
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1096
1109
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1097
1110
|
}, "strict", z.ZodTypeAny, {
|
|
1098
|
-
every: "week" | "day" | "hour";
|
|
1111
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
1112
|
+
id: string;
|
|
1099
1113
|
kind: "schedule";
|
|
1100
1114
|
date: string;
|
|
1101
|
-
id: string;
|
|
1102
1115
|
tenantId: string;
|
|
1103
1116
|
enabled: boolean;
|
|
1104
1117
|
name: string;
|
|
1105
|
-
days: number[];
|
|
1106
|
-
timezone: string;
|
|
1107
1118
|
variables: Record<string, unknown>;
|
|
1108
|
-
|
|
1119
|
+
timezone: string;
|
|
1120
|
+
customerId: string;
|
|
1121
|
+
days: number[];
|
|
1122
|
+
runsAs: "none" | "one";
|
|
1109
1123
|
instruction: string;
|
|
1110
1124
|
answerTo: "none" | "webhook";
|
|
1111
1125
|
repeat: "once" | "repeat";
|
|
1112
1126
|
time: string;
|
|
1113
|
-
|
|
1127
|
+
cron?: string | undefined;
|
|
1128
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
1129
|
+
monthDay?: number | "last" | undefined;
|
|
1114
1130
|
}, {
|
|
1115
|
-
every: "week" | "day" | "hour";
|
|
1131
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
1132
|
+
id: string;
|
|
1116
1133
|
kind: "schedule";
|
|
1117
1134
|
date: string;
|
|
1118
|
-
id: string;
|
|
1119
1135
|
tenantId: string;
|
|
1120
1136
|
enabled: boolean;
|
|
1121
1137
|
name: string;
|
|
1122
|
-
days: number[];
|
|
1123
1138
|
timezone: string;
|
|
1124
|
-
|
|
1139
|
+
customerId: string;
|
|
1140
|
+
days: number[];
|
|
1141
|
+
runsAs: "none" | "one";
|
|
1125
1142
|
instruction: string;
|
|
1126
1143
|
answerTo: "none" | "webhook";
|
|
1127
1144
|
repeat: "once" | "repeat";
|
|
1128
1145
|
time: string;
|
|
1129
|
-
customerId: string;
|
|
1130
1146
|
variables?: Record<string, unknown> | undefined;
|
|
1147
|
+
cron?: string | undefined;
|
|
1148
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
1149
|
+
monthDay?: number | "last" | undefined;
|
|
1131
1150
|
}>]>;
|
|
1132
1151
|
export type BotTrigger = z.infer<typeof botTriggerSchema>;
|
|
1133
1152
|
export type BotTriggerState = {
|
|
@@ -1152,6 +1171,7 @@ export type ModelOption = {
|
|
|
1152
1171
|
bg?: string;
|
|
1153
1172
|
more?: boolean;
|
|
1154
1173
|
efforts?: ModelEffort[];
|
|
1174
|
+
defaultEffort?: ModelEffort | null;
|
|
1155
1175
|
};
|
|
1156
1176
|
export type CatalogApp = {
|
|
1157
1177
|
key: AppKey;
|
|
@@ -1358,11 +1378,11 @@ export declare const botNativeAppCreateSchema: z.ZodObject<{
|
|
|
1358
1378
|
provider: z.ZodEnum<["slack", "microsoft_teams"]>;
|
|
1359
1379
|
requestId: z.ZodString;
|
|
1360
1380
|
}, "strict", z.ZodTypeAny, {
|
|
1361
|
-
requestId: string;
|
|
1362
1381
|
provider: "slack" | "microsoft_teams";
|
|
1363
|
-
}, {
|
|
1364
1382
|
requestId: string;
|
|
1383
|
+
}, {
|
|
1365
1384
|
provider: "slack" | "microsoft_teams";
|
|
1385
|
+
requestId: string;
|
|
1366
1386
|
}>;
|
|
1367
1387
|
export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
1368
1388
|
revision: z.ZodNumber;
|
|
@@ -1402,7 +1422,7 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1402
1422
|
action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance"]>>;
|
|
1403
1423
|
}, "strict", z.ZodTypeAny, {
|
|
1404
1424
|
revision: number;
|
|
1405
|
-
action: "
|
|
1425
|
+
action: "save" | "verify" | "disable" | "review_appearance";
|
|
1406
1426
|
credentials?: {
|
|
1407
1427
|
clientSecret: string;
|
|
1408
1428
|
signingSecret?: string | undefined;
|
|
@@ -1420,7 +1440,7 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1420
1440
|
appearanceAccountId?: string | undefined;
|
|
1421
1441
|
}, {
|
|
1422
1442
|
revision: number;
|
|
1423
|
-
action?: "
|
|
1443
|
+
action?: "save" | "verify" | "disable" | "review_appearance" | undefined;
|
|
1424
1444
|
credentials?: {
|
|
1425
1445
|
clientSecret: string;
|
|
1426
1446
|
signingSecret?: string | undefined;
|
|
@@ -1545,7 +1565,12 @@ export type BotConnectionAction = {
|
|
|
1545
1565
|
intent?: 'connect' | 'reconnect';
|
|
1546
1566
|
canResume?: boolean;
|
|
1547
1567
|
};
|
|
1548
|
-
export type BotWaitingOperation =
|
|
1568
|
+
export type BotWaitingOperation = {
|
|
1569
|
+
kind: 'funding';
|
|
1570
|
+
id: string;
|
|
1571
|
+
reason: string;
|
|
1572
|
+
canResume: true;
|
|
1573
|
+
} | BotConnectionAction | {
|
|
1549
1574
|
kind: 'execution';
|
|
1550
1575
|
id: string;
|
|
1551
1576
|
} | {
|
|
@@ -1698,15 +1723,15 @@ export declare const botBindingSchema: z.ZodObject<{
|
|
|
1698
1723
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1699
1724
|
key: z.ZodString;
|
|
1700
1725
|
}, "strict", z.ZodTypeAny, {
|
|
1701
|
-
path: string[];
|
|
1702
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1703
1726
|
key: string;
|
|
1704
|
-
|
|
1705
|
-
}, {
|
|
1727
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1706
1728
|
path: string[];
|
|
1707
|
-
|
|
1729
|
+
target: "path" | "body" | "query" | "header";
|
|
1730
|
+
}, {
|
|
1708
1731
|
key: string;
|
|
1709
|
-
|
|
1732
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1733
|
+
path: string[];
|
|
1734
|
+
target: "path" | "body" | "query" | "header";
|
|
1710
1735
|
}>;
|
|
1711
1736
|
export declare const botApiCallSchema: z.ZodObject<{
|
|
1712
1737
|
id: z.ZodString;
|
|
@@ -1731,28 +1756,28 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1731
1756
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1732
1757
|
key: z.ZodString;
|
|
1733
1758
|
}, "strict", z.ZodTypeAny, {
|
|
1734
|
-
path: string[];
|
|
1735
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1736
1759
|
key: string;
|
|
1737
|
-
|
|
1738
|
-
}, {
|
|
1760
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1739
1761
|
path: string[];
|
|
1740
|
-
|
|
1762
|
+
target: "path" | "body" | "query" | "header";
|
|
1763
|
+
}, {
|
|
1741
1764
|
key: string;
|
|
1742
|
-
|
|
1765
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1766
|
+
path: string[];
|
|
1767
|
+
target: "path" | "body" | "query" | "header";
|
|
1743
1768
|
}>, "many">>;
|
|
1744
1769
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1745
1770
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
1746
1771
|
}, "strict", z.ZodTypeAny, {
|
|
1747
|
-
headers: Record<string, string>;
|
|
1748
|
-
body: string;
|
|
1749
1772
|
path: string;
|
|
1750
1773
|
id: string;
|
|
1751
1774
|
name: string;
|
|
1775
|
+
headers: Record<string, string>;
|
|
1776
|
+
body: string;
|
|
1752
1777
|
query: Record<string, string>;
|
|
1753
1778
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1754
|
-
bodyType: "json" | "
|
|
1755
|
-
readAs: "
|
|
1779
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1780
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1756
1781
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1757
1782
|
summary: string;
|
|
1758
1783
|
latencyMs: number | null;
|
|
@@ -1760,37 +1785,37 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1760
1785
|
effects: "read" | "write" | "unclassified";
|
|
1761
1786
|
permission: "allow" | "ask" | "block";
|
|
1762
1787
|
bindings: {
|
|
1763
|
-
path: string[];
|
|
1764
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1765
1788
|
key: string;
|
|
1766
|
-
|
|
1789
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1790
|
+
path: string[];
|
|
1791
|
+
target: "path" | "body" | "query" | "header";
|
|
1767
1792
|
}[];
|
|
1768
|
-
sample?: unknown;
|
|
1769
1793
|
inputSchema?: Record<string, unknown> | undefined;
|
|
1794
|
+
sample?: unknown;
|
|
1770
1795
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1771
1796
|
}, {
|
|
1772
1797
|
path: string;
|
|
1773
1798
|
id: string;
|
|
1774
1799
|
name: string;
|
|
1775
1800
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1776
|
-
bodyType: "json" | "
|
|
1777
|
-
readAs: "
|
|
1801
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1802
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1778
1803
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1779
1804
|
summary: string;
|
|
1780
1805
|
latencyMs: number | null;
|
|
1781
1806
|
visibleFields: string[];
|
|
1782
1807
|
effects: "read" | "write" | "unclassified";
|
|
1808
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1783
1809
|
headers?: Record<string, string> | undefined;
|
|
1784
1810
|
body?: string | undefined;
|
|
1785
1811
|
sample?: unknown;
|
|
1786
1812
|
query?: Record<string, string> | undefined;
|
|
1787
1813
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
1788
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1789
1814
|
bindings?: {
|
|
1790
|
-
path: string[];
|
|
1791
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1792
1815
|
key: string;
|
|
1793
|
-
|
|
1816
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1817
|
+
path: string[];
|
|
1818
|
+
target: "path" | "body" | "query" | "header";
|
|
1794
1819
|
}[] | undefined;
|
|
1795
1820
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1796
1821
|
}>;
|
|
@@ -1827,28 +1852,28 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1827
1852
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1828
1853
|
key: z.ZodString;
|
|
1829
1854
|
}, "strict", z.ZodTypeAny, {
|
|
1830
|
-
path: string[];
|
|
1831
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1832
1855
|
key: string;
|
|
1833
|
-
|
|
1834
|
-
}, {
|
|
1856
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1835
1857
|
path: string[];
|
|
1836
|
-
|
|
1858
|
+
target: "path" | "body" | "query" | "header";
|
|
1859
|
+
}, {
|
|
1837
1860
|
key: string;
|
|
1838
|
-
|
|
1861
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1862
|
+
path: string[];
|
|
1863
|
+
target: "path" | "body" | "query" | "header";
|
|
1839
1864
|
}>, "many">>;
|
|
1840
1865
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1841
1866
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
1842
1867
|
}, "strict", z.ZodTypeAny, {
|
|
1843
|
-
headers: Record<string, string>;
|
|
1844
|
-
body: string;
|
|
1845
1868
|
path: string;
|
|
1846
1869
|
id: string;
|
|
1847
1870
|
name: string;
|
|
1871
|
+
headers: Record<string, string>;
|
|
1872
|
+
body: string;
|
|
1848
1873
|
query: Record<string, string>;
|
|
1849
1874
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1850
|
-
bodyType: "json" | "
|
|
1851
|
-
readAs: "
|
|
1875
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1876
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1852
1877
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1853
1878
|
summary: string;
|
|
1854
1879
|
latencyMs: number | null;
|
|
@@ -1856,58 +1881,51 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1856
1881
|
effects: "read" | "write" | "unclassified";
|
|
1857
1882
|
permission: "allow" | "ask" | "block";
|
|
1858
1883
|
bindings: {
|
|
1859
|
-
path: string[];
|
|
1860
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1861
1884
|
key: string;
|
|
1862
|
-
|
|
1885
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1886
|
+
path: string[];
|
|
1887
|
+
target: "path" | "body" | "query" | "header";
|
|
1863
1888
|
}[];
|
|
1864
|
-
sample?: unknown;
|
|
1865
1889
|
inputSchema?: Record<string, unknown> | undefined;
|
|
1890
|
+
sample?: unknown;
|
|
1866
1891
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1867
1892
|
}, {
|
|
1868
1893
|
path: string;
|
|
1869
1894
|
id: string;
|
|
1870
1895
|
name: string;
|
|
1871
1896
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1872
|
-
bodyType: "json" | "
|
|
1873
|
-
readAs: "
|
|
1897
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1898
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1874
1899
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1875
1900
|
summary: string;
|
|
1876
1901
|
latencyMs: number | null;
|
|
1877
1902
|
visibleFields: string[];
|
|
1878
1903
|
effects: "read" | "write" | "unclassified";
|
|
1904
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1879
1905
|
headers?: Record<string, string> | undefined;
|
|
1880
1906
|
body?: string | undefined;
|
|
1881
1907
|
sample?: unknown;
|
|
1882
1908
|
query?: Record<string, string> | undefined;
|
|
1883
1909
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
1884
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1885
1910
|
bindings?: {
|
|
1886
|
-
path: string[];
|
|
1887
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1888
1911
|
key: string;
|
|
1889
|
-
|
|
1912
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1913
|
+
path: string[];
|
|
1914
|
+
target: "path" | "body" | "query" | "header";
|
|
1890
1915
|
}[] | undefined;
|
|
1891
1916
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1892
1917
|
}>, "many">;
|
|
1893
1918
|
}, "strict", z.ZodTypeAny, {
|
|
1894
|
-
kind: "http" | "graphql" | "openapi";
|
|
1895
|
-
id: string;
|
|
1896
|
-
name: string;
|
|
1897
|
-
host: string;
|
|
1898
|
-
baseUrl: string;
|
|
1899
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
1900
|
-
sendCustomerIdentity: boolean;
|
|
1901
1919
|
calls: {
|
|
1902
|
-
headers: Record<string, string>;
|
|
1903
|
-
body: string;
|
|
1904
1920
|
path: string;
|
|
1905
1921
|
id: string;
|
|
1906
1922
|
name: string;
|
|
1923
|
+
headers: Record<string, string>;
|
|
1924
|
+
body: string;
|
|
1907
1925
|
query: Record<string, string>;
|
|
1908
1926
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1909
|
-
bodyType: "json" | "
|
|
1910
|
-
readAs: "
|
|
1927
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1928
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1911
1929
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1912
1930
|
summary: string;
|
|
1913
1931
|
latencyMs: number | null;
|
|
@@ -1915,51 +1933,58 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1915
1933
|
effects: "read" | "write" | "unclassified";
|
|
1916
1934
|
permission: "allow" | "ask" | "block";
|
|
1917
1935
|
bindings: {
|
|
1918
|
-
path: string[];
|
|
1919
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1920
1936
|
key: string;
|
|
1921
|
-
|
|
1937
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1938
|
+
path: string[];
|
|
1939
|
+
target: "path" | "body" | "query" | "header";
|
|
1922
1940
|
}[];
|
|
1923
|
-
sample?: unknown;
|
|
1924
1941
|
inputSchema?: Record<string, unknown> | undefined;
|
|
1942
|
+
sample?: unknown;
|
|
1925
1943
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1926
1944
|
}[];
|
|
1927
|
-
credentialId?: string | undefined;
|
|
1928
|
-
authHeader?: string | undefined;
|
|
1929
|
-
}, {
|
|
1930
|
-
kind: "http" | "graphql" | "openapi";
|
|
1931
1945
|
id: string;
|
|
1946
|
+
kind: "http" | "graphql" | "openapi";
|
|
1932
1947
|
name: string;
|
|
1933
1948
|
host: string;
|
|
1934
1949
|
baseUrl: string;
|
|
1935
|
-
auth: "
|
|
1950
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
1936
1951
|
sendCustomerIdentity: boolean;
|
|
1952
|
+
credentialId?: string | undefined;
|
|
1953
|
+
authHeader?: string | undefined;
|
|
1954
|
+
}, {
|
|
1937
1955
|
calls: {
|
|
1938
1956
|
path: string;
|
|
1939
1957
|
id: string;
|
|
1940
1958
|
name: string;
|
|
1941
1959
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1942
|
-
bodyType: "json" | "
|
|
1943
|
-
readAs: "
|
|
1960
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
1961
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1944
1962
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1945
1963
|
summary: string;
|
|
1946
1964
|
latencyMs: number | null;
|
|
1947
1965
|
visibleFields: string[];
|
|
1948
1966
|
effects: "read" | "write" | "unclassified";
|
|
1967
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1949
1968
|
headers?: Record<string, string> | undefined;
|
|
1950
1969
|
body?: string | undefined;
|
|
1951
1970
|
sample?: unknown;
|
|
1952
1971
|
query?: Record<string, string> | undefined;
|
|
1953
1972
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
1954
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1955
1973
|
bindings?: {
|
|
1956
|
-
path: string[];
|
|
1957
|
-
source: "variable" | "context" | "model" | "identity";
|
|
1958
1974
|
key: string;
|
|
1959
|
-
|
|
1975
|
+
source: "model" | "variable" | "context" | "identity";
|
|
1976
|
+
path: string[];
|
|
1977
|
+
target: "path" | "body" | "query" | "header";
|
|
1960
1978
|
}[] | undefined;
|
|
1961
1979
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1962
1980
|
}[];
|
|
1981
|
+
id: string;
|
|
1982
|
+
kind: "http" | "graphql" | "openapi";
|
|
1983
|
+
name: string;
|
|
1984
|
+
host: string;
|
|
1985
|
+
baseUrl: string;
|
|
1986
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
1987
|
+
sendCustomerIdentity: boolean;
|
|
1963
1988
|
credentialId?: string | undefined;
|
|
1964
1989
|
authHeader?: string | undefined;
|
|
1965
1990
|
}>;
|
|
@@ -1973,14 +1998,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1973
1998
|
seed: z.ZodString;
|
|
1974
1999
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
1975
2000
|
}, "strict", z.ZodTypeAny, {
|
|
2001
|
+
version: 1;
|
|
1976
2002
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
1977
2003
|
seed: string;
|
|
1978
|
-
version: 1;
|
|
1979
2004
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
1980
2005
|
}, {
|
|
2006
|
+
version: 1;
|
|
1981
2007
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
1982
2008
|
seed: string;
|
|
1983
|
-
version: 1;
|
|
1984
2009
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
1985
2010
|
}>>>;
|
|
1986
2011
|
files: z.ZodDefault<z.ZodObject<{
|
|
@@ -1989,11 +2014,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1989
2014
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
1990
2015
|
}, "strict", z.ZodTypeAny, {
|
|
1991
2016
|
enabled: boolean;
|
|
1992
|
-
kinds: ("
|
|
2017
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
1993
2018
|
bigSpreadsheets: "workbench" | "preview";
|
|
1994
2019
|
}, {
|
|
1995
2020
|
enabled: boolean;
|
|
1996
|
-
kinds: ("
|
|
2021
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
1997
2022
|
bigSpreadsheets: "workbench" | "preview";
|
|
1998
2023
|
}>>;
|
|
1999
2024
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
@@ -2012,13 +2037,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2012
2037
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2013
2038
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2014
2039
|
}, "strict", z.ZodTypeAny, {
|
|
2015
|
-
|
|
2040
|
+
label: string;
|
|
2016
2041
|
id: string;
|
|
2042
|
+
kind: "app";
|
|
2017
2043
|
enabled: boolean;
|
|
2018
2044
|
name: string;
|
|
2019
2045
|
variables: Record<string, unknown>;
|
|
2020
2046
|
subscriptionId: string;
|
|
2021
|
-
label: string;
|
|
2022
2047
|
providerKey: string;
|
|
2023
2048
|
eventTypes: string[];
|
|
2024
2049
|
runsAs: "none" | "field";
|
|
@@ -2026,12 +2051,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2026
2051
|
instruction: string;
|
|
2027
2052
|
answerTo: "none" | "webhook";
|
|
2028
2053
|
}, {
|
|
2029
|
-
|
|
2054
|
+
label: string;
|
|
2030
2055
|
id: string;
|
|
2056
|
+
kind: "app";
|
|
2031
2057
|
enabled: boolean;
|
|
2032
2058
|
name: string;
|
|
2033
2059
|
subscriptionId: string;
|
|
2034
|
-
label: string;
|
|
2035
2060
|
providerKey: string;
|
|
2036
2061
|
eventTypes: string[];
|
|
2037
2062
|
runsAs: "none" | "field";
|
|
@@ -2051,8 +2076,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2051
2076
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2052
2077
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2053
2078
|
}, "strict", z.ZodTypeAny, {
|
|
2054
|
-
kind: "webhook";
|
|
2055
2079
|
id: string;
|
|
2080
|
+
kind: "webhook";
|
|
2056
2081
|
tenantId: string;
|
|
2057
2082
|
enabled: boolean;
|
|
2058
2083
|
name: string;
|
|
@@ -2062,8 +2087,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2062
2087
|
instruction: string;
|
|
2063
2088
|
answerTo: "none" | "webhook";
|
|
2064
2089
|
}, {
|
|
2065
|
-
kind: "webhook";
|
|
2066
2090
|
id: string;
|
|
2091
|
+
kind: "webhook";
|
|
2067
2092
|
tenantId: string;
|
|
2068
2093
|
enabled: boolean;
|
|
2069
2094
|
name: string;
|
|
@@ -2076,7 +2101,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2076
2101
|
kind: z.ZodLiteral<"schedule">;
|
|
2077
2102
|
tenantId: z.ZodString;
|
|
2078
2103
|
repeat: z.ZodEnum<["repeat", "once"]>;
|
|
2079
|
-
every: z.ZodEnum<["week", "day", "hour"]>;
|
|
2104
|
+
every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
|
|
2105
|
+
intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
|
|
2106
|
+
monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
|
|
2107
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
2080
2108
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
2081
2109
|
time: z.ZodString;
|
|
2082
2110
|
date: z.ZodString;
|
|
@@ -2090,49 +2118,65 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2090
2118
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2091
2119
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2092
2120
|
}, "strict", z.ZodTypeAny, {
|
|
2093
|
-
every: "week" | "day" | "hour";
|
|
2121
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
2122
|
+
id: string;
|
|
2094
2123
|
kind: "schedule";
|
|
2095
2124
|
date: string;
|
|
2096
|
-
id: string;
|
|
2097
2125
|
tenantId: string;
|
|
2098
2126
|
enabled: boolean;
|
|
2099
2127
|
name: string;
|
|
2100
|
-
days: number[];
|
|
2101
|
-
timezone: string;
|
|
2102
2128
|
variables: Record<string, unknown>;
|
|
2103
|
-
|
|
2129
|
+
timezone: string;
|
|
2130
|
+
customerId: string;
|
|
2131
|
+
days: number[];
|
|
2132
|
+
runsAs: "none" | "one";
|
|
2104
2133
|
instruction: string;
|
|
2105
2134
|
answerTo: "none" | "webhook";
|
|
2106
2135
|
repeat: "once" | "repeat";
|
|
2107
2136
|
time: string;
|
|
2108
|
-
|
|
2137
|
+
cron?: string | undefined;
|
|
2138
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
2139
|
+
monthDay?: number | "last" | undefined;
|
|
2109
2140
|
}, {
|
|
2110
|
-
every: "week" | "day" | "hour";
|
|
2141
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
2142
|
+
id: string;
|
|
2111
2143
|
kind: "schedule";
|
|
2112
2144
|
date: string;
|
|
2113
|
-
id: string;
|
|
2114
2145
|
tenantId: string;
|
|
2115
2146
|
enabled: boolean;
|
|
2116
2147
|
name: string;
|
|
2117
|
-
days: number[];
|
|
2118
2148
|
timezone: string;
|
|
2119
|
-
|
|
2149
|
+
customerId: string;
|
|
2150
|
+
days: number[];
|
|
2151
|
+
runsAs: "none" | "one";
|
|
2120
2152
|
instruction: string;
|
|
2121
2153
|
answerTo: "none" | "webhook";
|
|
2122
2154
|
repeat: "once" | "repeat";
|
|
2123
2155
|
time: string;
|
|
2124
|
-
customerId: string;
|
|
2125
2156
|
variables?: Record<string, unknown> | undefined;
|
|
2157
|
+
cron?: string | undefined;
|
|
2158
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
2159
|
+
monthDay?: number | "last" | undefined;
|
|
2126
2160
|
}>]>, "many">>;
|
|
2161
|
+
workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2162
|
+
workflowId: z.ZodString;
|
|
2163
|
+
version: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"live">]>;
|
|
2164
|
+
}, "strict", z.ZodTypeAny, {
|
|
2165
|
+
version: number | "live";
|
|
2166
|
+
workflowId: string;
|
|
2167
|
+
}, {
|
|
2168
|
+
version: number | "live";
|
|
2169
|
+
workflowId: string;
|
|
2170
|
+
}>, "many">>;
|
|
2127
2171
|
model: z.ZodObject<{
|
|
2128
2172
|
id: z.ZodString;
|
|
2129
|
-
effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
|
|
2173
|
+
effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
2130
2174
|
}, "strict", z.ZodTypeAny, {
|
|
2131
2175
|
id: string;
|
|
2132
|
-
effort: "
|
|
2176
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
2133
2177
|
}, {
|
|
2134
2178
|
id: string;
|
|
2135
|
-
effort: "
|
|
2179
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
2136
2180
|
}>;
|
|
2137
2181
|
instructions: z.ZodObject<{
|
|
2138
2182
|
text: z.ZodString;
|
|
@@ -2201,6 +2245,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2201
2245
|
}, "strict", z.ZodTypeAny, {
|
|
2202
2246
|
id: string;
|
|
2203
2247
|
name: string;
|
|
2248
|
+
cases: {
|
|
2249
|
+
text: string;
|
|
2250
|
+
}[];
|
|
2204
2251
|
files: {
|
|
2205
2252
|
name: string;
|
|
2206
2253
|
content: string;
|
|
@@ -2209,9 +2256,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2209
2256
|
summary: string;
|
|
2210
2257
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
2211
2258
|
load: "auto" | "always";
|
|
2212
|
-
cases: {
|
|
2213
|
-
text: string;
|
|
2214
|
-
}[];
|
|
2215
2259
|
exceptions: {
|
|
2216
2260
|
text: string;
|
|
2217
2261
|
}[];
|
|
@@ -2227,12 +2271,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2227
2271
|
}, {
|
|
2228
2272
|
id: string;
|
|
2229
2273
|
name: string;
|
|
2230
|
-
summary: string;
|
|
2231
|
-
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
2232
|
-
load: "auto" | "always";
|
|
2233
2274
|
cases: {
|
|
2234
2275
|
text: string;
|
|
2235
2276
|
}[];
|
|
2277
|
+
summary: string;
|
|
2278
|
+
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
2279
|
+
load: "auto" | "always";
|
|
2236
2280
|
exceptions: {
|
|
2237
2281
|
text: string;
|
|
2238
2282
|
}[];
|
|
@@ -2305,7 +2349,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2305
2349
|
enabled: boolean;
|
|
2306
2350
|
files: "per_customer" | "per_run";
|
|
2307
2351
|
configured: boolean;
|
|
2308
|
-
size: "medium" | "
|
|
2352
|
+
size: "medium" | "large" | "small";
|
|
2309
2353
|
access: "allow" | "ask" | "block";
|
|
2310
2354
|
languages: string[];
|
|
2311
2355
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -2313,7 +2357,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2313
2357
|
enabled: boolean;
|
|
2314
2358
|
files: "per_customer" | "per_run";
|
|
2315
2359
|
configured: boolean;
|
|
2316
|
-
size: "medium" | "
|
|
2360
|
+
size: "medium" | "large" | "small";
|
|
2317
2361
|
access: "allow" | "ask" | "block";
|
|
2318
2362
|
languages: string[];
|
|
2319
2363
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -2355,28 +2399,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2355
2399
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
2356
2400
|
key: z.ZodString;
|
|
2357
2401
|
}, "strict", z.ZodTypeAny, {
|
|
2358
|
-
path: string[];
|
|
2359
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2360
2402
|
key: string;
|
|
2361
|
-
|
|
2362
|
-
}, {
|
|
2403
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2363
2404
|
path: string[];
|
|
2364
|
-
|
|
2405
|
+
target: "path" | "body" | "query" | "header";
|
|
2406
|
+
}, {
|
|
2365
2407
|
key: string;
|
|
2366
|
-
|
|
2408
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2409
|
+
path: string[];
|
|
2410
|
+
target: "path" | "body" | "query" | "header";
|
|
2367
2411
|
}>, "many">>;
|
|
2368
2412
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2369
2413
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
2370
2414
|
}, "strict", z.ZodTypeAny, {
|
|
2371
|
-
headers: Record<string, string>;
|
|
2372
|
-
body: string;
|
|
2373
2415
|
path: string;
|
|
2374
2416
|
id: string;
|
|
2375
2417
|
name: string;
|
|
2418
|
+
headers: Record<string, string>;
|
|
2419
|
+
body: string;
|
|
2376
2420
|
query: Record<string, string>;
|
|
2377
2421
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2378
|
-
bodyType: "json" | "
|
|
2379
|
-
readAs: "
|
|
2422
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2423
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2380
2424
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2381
2425
|
summary: string;
|
|
2382
2426
|
latencyMs: number | null;
|
|
@@ -2384,58 +2428,51 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2384
2428
|
effects: "read" | "write" | "unclassified";
|
|
2385
2429
|
permission: "allow" | "ask" | "block";
|
|
2386
2430
|
bindings: {
|
|
2387
|
-
path: string[];
|
|
2388
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2389
2431
|
key: string;
|
|
2390
|
-
|
|
2432
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2433
|
+
path: string[];
|
|
2434
|
+
target: "path" | "body" | "query" | "header";
|
|
2391
2435
|
}[];
|
|
2392
|
-
sample?: unknown;
|
|
2393
2436
|
inputSchema?: Record<string, unknown> | undefined;
|
|
2437
|
+
sample?: unknown;
|
|
2394
2438
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2395
2439
|
}, {
|
|
2396
2440
|
path: string;
|
|
2397
2441
|
id: string;
|
|
2398
2442
|
name: string;
|
|
2399
2443
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2400
|
-
bodyType: "json" | "
|
|
2401
|
-
readAs: "
|
|
2444
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2445
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2402
2446
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2403
2447
|
summary: string;
|
|
2404
2448
|
latencyMs: number | null;
|
|
2405
2449
|
visibleFields: string[];
|
|
2406
2450
|
effects: "read" | "write" | "unclassified";
|
|
2451
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2407
2452
|
headers?: Record<string, string> | undefined;
|
|
2408
2453
|
body?: string | undefined;
|
|
2409
2454
|
sample?: unknown;
|
|
2410
2455
|
query?: Record<string, string> | undefined;
|
|
2411
2456
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2412
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2413
2457
|
bindings?: {
|
|
2414
|
-
path: string[];
|
|
2415
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2416
2458
|
key: string;
|
|
2417
|
-
|
|
2459
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2460
|
+
path: string[];
|
|
2461
|
+
target: "path" | "body" | "query" | "header";
|
|
2418
2462
|
}[] | undefined;
|
|
2419
2463
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2420
2464
|
}>, "many">;
|
|
2421
2465
|
}, "strict", z.ZodTypeAny, {
|
|
2422
|
-
kind: "http" | "graphql" | "openapi";
|
|
2423
|
-
id: string;
|
|
2424
|
-
name: string;
|
|
2425
|
-
host: string;
|
|
2426
|
-
baseUrl: string;
|
|
2427
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
2428
|
-
sendCustomerIdentity: boolean;
|
|
2429
2466
|
calls: {
|
|
2430
|
-
headers: Record<string, string>;
|
|
2431
|
-
body: string;
|
|
2432
2467
|
path: string;
|
|
2433
2468
|
id: string;
|
|
2434
2469
|
name: string;
|
|
2470
|
+
headers: Record<string, string>;
|
|
2471
|
+
body: string;
|
|
2435
2472
|
query: Record<string, string>;
|
|
2436
2473
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2437
|
-
bodyType: "json" | "
|
|
2438
|
-
readAs: "
|
|
2474
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2475
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2439
2476
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2440
2477
|
summary: string;
|
|
2441
2478
|
latencyMs: number | null;
|
|
@@ -2443,51 +2480,58 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2443
2480
|
effects: "read" | "write" | "unclassified";
|
|
2444
2481
|
permission: "allow" | "ask" | "block";
|
|
2445
2482
|
bindings: {
|
|
2446
|
-
path: string[];
|
|
2447
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2448
2483
|
key: string;
|
|
2449
|
-
|
|
2484
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2485
|
+
path: string[];
|
|
2486
|
+
target: "path" | "body" | "query" | "header";
|
|
2450
2487
|
}[];
|
|
2451
|
-
sample?: unknown;
|
|
2452
2488
|
inputSchema?: Record<string, unknown> | undefined;
|
|
2489
|
+
sample?: unknown;
|
|
2453
2490
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2454
2491
|
}[];
|
|
2455
|
-
credentialId?: string | undefined;
|
|
2456
|
-
authHeader?: string | undefined;
|
|
2457
|
-
}, {
|
|
2458
|
-
kind: "http" | "graphql" | "openapi";
|
|
2459
2492
|
id: string;
|
|
2493
|
+
kind: "http" | "graphql" | "openapi";
|
|
2460
2494
|
name: string;
|
|
2461
2495
|
host: string;
|
|
2462
2496
|
baseUrl: string;
|
|
2463
|
-
auth: "
|
|
2497
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
2464
2498
|
sendCustomerIdentity: boolean;
|
|
2499
|
+
credentialId?: string | undefined;
|
|
2500
|
+
authHeader?: string | undefined;
|
|
2501
|
+
}, {
|
|
2465
2502
|
calls: {
|
|
2466
2503
|
path: string;
|
|
2467
2504
|
id: string;
|
|
2468
2505
|
name: string;
|
|
2469
2506
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2470
|
-
bodyType: "json" | "
|
|
2471
|
-
readAs: "
|
|
2507
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2508
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2472
2509
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2473
2510
|
summary: string;
|
|
2474
2511
|
latencyMs: number | null;
|
|
2475
2512
|
visibleFields: string[];
|
|
2476
2513
|
effects: "read" | "write" | "unclassified";
|
|
2514
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2477
2515
|
headers?: Record<string, string> | undefined;
|
|
2478
2516
|
body?: string | undefined;
|
|
2479
2517
|
sample?: unknown;
|
|
2480
2518
|
query?: Record<string, string> | undefined;
|
|
2481
2519
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2482
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2483
2520
|
bindings?: {
|
|
2484
|
-
path: string[];
|
|
2485
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2486
2521
|
key: string;
|
|
2487
|
-
|
|
2522
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2523
|
+
path: string[];
|
|
2524
|
+
target: "path" | "body" | "query" | "header";
|
|
2488
2525
|
}[] | undefined;
|
|
2489
2526
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2490
2527
|
}[];
|
|
2528
|
+
id: string;
|
|
2529
|
+
kind: "http" | "graphql" | "openapi";
|
|
2530
|
+
name: string;
|
|
2531
|
+
host: string;
|
|
2532
|
+
baseUrl: string;
|
|
2533
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
2534
|
+
sendCustomerIdentity: boolean;
|
|
2491
2535
|
credentialId?: string | undefined;
|
|
2492
2536
|
authHeader?: string | undefined;
|
|
2493
2537
|
}>, "many">;
|
|
@@ -2513,7 +2557,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2513
2557
|
pinned: z.ZodArray<z.ZodString, "many">;
|
|
2514
2558
|
}, "strict", z.ZodTypeAny, {
|
|
2515
2559
|
key: string;
|
|
2516
|
-
account: "customer" | "
|
|
2560
|
+
account: "customer" | "deployment" | "project";
|
|
2517
2561
|
rules: {
|
|
2518
2562
|
read: "allow" | "ask" | "block";
|
|
2519
2563
|
change: "allow" | "ask" | "block";
|
|
@@ -2525,7 +2569,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2525
2569
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2526
2570
|
}, {
|
|
2527
2571
|
key: string;
|
|
2528
|
-
account: "customer" | "
|
|
2572
|
+
account: "customer" | "deployment" | "project";
|
|
2529
2573
|
rules: {
|
|
2530
2574
|
read: "allow" | "ask" | "block";
|
|
2531
2575
|
change: "allow" | "ask" | "block";
|
|
@@ -2549,14 +2593,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2549
2593
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2550
2594
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2551
2595
|
}, "strict", z.ZodTypeAny, {
|
|
2596
|
+
description: string;
|
|
2552
2597
|
name: string;
|
|
2553
2598
|
inputSchema: Record<string, unknown>;
|
|
2554
|
-
description: string;
|
|
2555
2599
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2556
2600
|
}, {
|
|
2601
|
+
description: string;
|
|
2557
2602
|
name: string;
|
|
2558
2603
|
inputSchema: Record<string, unknown>;
|
|
2559
|
-
description: string;
|
|
2560
2604
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2561
2605
|
}>, "many">>;
|
|
2562
2606
|
groups: z.ZodArray<z.ZodObject<{
|
|
@@ -2576,15 +2620,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2576
2620
|
rule: "allow" | "ask" | "block";
|
|
2577
2621
|
}>, "many">;
|
|
2578
2622
|
}, "strict", z.ZodTypeAny, {
|
|
2579
|
-
status: "connecting" | "connected";
|
|
2580
2623
|
id: string;
|
|
2624
|
+
status: "connecting" | "connected";
|
|
2581
2625
|
name: string;
|
|
2582
2626
|
url: string;
|
|
2583
2627
|
toolCount: number;
|
|
2584
2628
|
definitions: {
|
|
2629
|
+
description: string;
|
|
2585
2630
|
name: string;
|
|
2586
2631
|
inputSchema: Record<string, unknown>;
|
|
2587
|
-
description: string;
|
|
2588
2632
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2589
2633
|
}[];
|
|
2590
2634
|
groups: {
|
|
@@ -2595,8 +2639,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2595
2639
|
}[];
|
|
2596
2640
|
credentialId?: string | undefined;
|
|
2597
2641
|
}, {
|
|
2598
|
-
status: "connecting" | "connected";
|
|
2599
2642
|
id: string;
|
|
2643
|
+
status: "connecting" | "connected";
|
|
2600
2644
|
name: string;
|
|
2601
2645
|
url: string;
|
|
2602
2646
|
toolCount: number;
|
|
@@ -2608,9 +2652,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2608
2652
|
}[];
|
|
2609
2653
|
credentialId?: string | undefined;
|
|
2610
2654
|
definitions?: {
|
|
2655
|
+
description: string;
|
|
2611
2656
|
name: string;
|
|
2612
2657
|
inputSchema: Record<string, unknown>;
|
|
2613
|
-
description: string;
|
|
2614
2658
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2615
2659
|
}[] | undefined;
|
|
2616
2660
|
}>, "many">;
|
|
@@ -2637,11 +2681,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2637
2681
|
done: z.ZodNumber;
|
|
2638
2682
|
total: z.ZodNumber;
|
|
2639
2683
|
}, "strip", z.ZodTypeAny, {
|
|
2640
|
-
done: number;
|
|
2641
2684
|
total: number;
|
|
2642
|
-
}, {
|
|
2643
2685
|
done: number;
|
|
2686
|
+
}, {
|
|
2644
2687
|
total: number;
|
|
2688
|
+
done: number;
|
|
2645
2689
|
}>>;
|
|
2646
2690
|
progress: z.ZodOptional<z.ZodObject<{
|
|
2647
2691
|
stage: z.ZodString;
|
|
@@ -2649,29 +2693,29 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2649
2693
|
total: z.ZodNumber;
|
|
2650
2694
|
retryable: z.ZodBoolean;
|
|
2651
2695
|
}, "strip", z.ZodTypeAny, {
|
|
2652
|
-
done: number;
|
|
2653
2696
|
total: number;
|
|
2697
|
+
done: number;
|
|
2654
2698
|
stage: string;
|
|
2655
2699
|
retryable: boolean;
|
|
2656
2700
|
}, {
|
|
2657
|
-
done: number;
|
|
2658
2701
|
total: number;
|
|
2702
|
+
done: number;
|
|
2659
2703
|
stage: string;
|
|
2660
2704
|
retryable: boolean;
|
|
2661
2705
|
}>>;
|
|
2662
2706
|
syncedLabel: z.ZodString;
|
|
2663
2707
|
}, "strict", z.ZodTypeAny, {
|
|
2708
|
+
id: string;
|
|
2664
2709
|
status: "failed" | "ready" | "syncing";
|
|
2665
2710
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2666
|
-
id: string;
|
|
2667
2711
|
name: string;
|
|
2668
2712
|
scope: "customer" | "project";
|
|
2669
2713
|
detail: string;
|
|
2670
2714
|
syncedLabel: string;
|
|
2671
2715
|
error?: string | undefined;
|
|
2672
2716
|
pages?: {
|
|
2673
|
-
done: number;
|
|
2674
2717
|
total: number;
|
|
2718
|
+
done: number;
|
|
2675
2719
|
} | undefined;
|
|
2676
2720
|
url?: string | undefined;
|
|
2677
2721
|
connectedSource?: {
|
|
@@ -2679,32 +2723,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2679
2723
|
resourceId: string;
|
|
2680
2724
|
} | undefined;
|
|
2681
2725
|
progress?: {
|
|
2682
|
-
done: number;
|
|
2683
2726
|
total: number;
|
|
2727
|
+
done: number;
|
|
2684
2728
|
stage: string;
|
|
2685
2729
|
retryable: boolean;
|
|
2686
2730
|
} | undefined;
|
|
2687
2731
|
}, {
|
|
2732
|
+
id: string;
|
|
2688
2733
|
status: "failed" | "ready" | "syncing";
|
|
2689
2734
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2690
|
-
id: string;
|
|
2691
2735
|
name: string;
|
|
2692
2736
|
detail: string;
|
|
2693
2737
|
syncedLabel: string;
|
|
2694
2738
|
error?: string | undefined;
|
|
2739
|
+
scope?: "customer" | "project" | undefined;
|
|
2695
2740
|
pages?: {
|
|
2696
|
-
done: number;
|
|
2697
2741
|
total: number;
|
|
2742
|
+
done: number;
|
|
2698
2743
|
} | undefined;
|
|
2699
2744
|
url?: string | undefined;
|
|
2700
|
-
scope?: "customer" | "project" | undefined;
|
|
2701
2745
|
connectedSource?: {
|
|
2702
2746
|
accountId: string;
|
|
2703
2747
|
resourceId: string;
|
|
2704
2748
|
} | undefined;
|
|
2705
2749
|
progress?: {
|
|
2706
|
-
done: number;
|
|
2707
2750
|
total: number;
|
|
2751
|
+
done: number;
|
|
2708
2752
|
stage: string;
|
|
2709
2753
|
retryable: boolean;
|
|
2710
2754
|
} | undefined;
|
|
@@ -2714,27 +2758,27 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2714
2758
|
provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
|
|
2715
2759
|
preferSites: z.ZodArray<z.ZodString, "many">;
|
|
2716
2760
|
}, "strict", z.ZodTypeAny, {
|
|
2717
|
-
enabled: boolean;
|
|
2718
2761
|
provider: "builtin";
|
|
2762
|
+
enabled: boolean;
|
|
2719
2763
|
preferSites: string[];
|
|
2720
2764
|
}, {
|
|
2721
|
-
enabled: boolean;
|
|
2722
2765
|
provider: "builtin" | "exa" | "firecrawl";
|
|
2766
|
+
enabled: boolean;
|
|
2723
2767
|
preferSites: string[];
|
|
2724
2768
|
}>;
|
|
2725
2769
|
}, "strict", z.ZodTypeAny, {
|
|
2726
2770
|
knowledge: {
|
|
2771
|
+
id: string;
|
|
2727
2772
|
status: "failed" | "ready" | "syncing";
|
|
2728
2773
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2729
|
-
id: string;
|
|
2730
2774
|
name: string;
|
|
2731
2775
|
scope: "customer" | "project";
|
|
2732
2776
|
detail: string;
|
|
2733
2777
|
syncedLabel: string;
|
|
2734
2778
|
error?: string | undefined;
|
|
2735
2779
|
pages?: {
|
|
2736
|
-
done: number;
|
|
2737
2780
|
total: number;
|
|
2781
|
+
done: number;
|
|
2738
2782
|
} | undefined;
|
|
2739
2783
|
url?: string | undefined;
|
|
2740
2784
|
connectedSource?: {
|
|
@@ -2742,8 +2786,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2742
2786
|
resourceId: string;
|
|
2743
2787
|
} | undefined;
|
|
2744
2788
|
progress?: {
|
|
2745
|
-
done: number;
|
|
2746
2789
|
total: number;
|
|
2790
|
+
done: number;
|
|
2747
2791
|
stage: string;
|
|
2748
2792
|
retryable: boolean;
|
|
2749
2793
|
} | undefined;
|
|
@@ -2752,23 +2796,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2752
2796
|
searchPastChats: boolean;
|
|
2753
2797
|
conversationRetentionDays: number;
|
|
2754
2798
|
apis: {
|
|
2755
|
-
kind: "http" | "graphql" | "openapi";
|
|
2756
|
-
id: string;
|
|
2757
|
-
name: string;
|
|
2758
|
-
host: string;
|
|
2759
|
-
baseUrl: string;
|
|
2760
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
2761
|
-
sendCustomerIdentity: boolean;
|
|
2762
2799
|
calls: {
|
|
2763
|
-
headers: Record<string, string>;
|
|
2764
|
-
body: string;
|
|
2765
2800
|
path: string;
|
|
2766
2801
|
id: string;
|
|
2767
2802
|
name: string;
|
|
2803
|
+
headers: Record<string, string>;
|
|
2804
|
+
body: string;
|
|
2768
2805
|
query: Record<string, string>;
|
|
2769
2806
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2770
|
-
bodyType: "json" | "
|
|
2771
|
-
readAs: "
|
|
2807
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2808
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2772
2809
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2773
2810
|
summary: string;
|
|
2774
2811
|
latencyMs: number | null;
|
|
@@ -2776,21 +2813,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2776
2813
|
effects: "read" | "write" | "unclassified";
|
|
2777
2814
|
permission: "allow" | "ask" | "block";
|
|
2778
2815
|
bindings: {
|
|
2779
|
-
path: string[];
|
|
2780
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2781
2816
|
key: string;
|
|
2782
|
-
|
|
2817
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2818
|
+
path: string[];
|
|
2819
|
+
target: "path" | "body" | "query" | "header";
|
|
2783
2820
|
}[];
|
|
2784
|
-
sample?: unknown;
|
|
2785
2821
|
inputSchema?: Record<string, unknown> | undefined;
|
|
2822
|
+
sample?: unknown;
|
|
2786
2823
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2787
2824
|
}[];
|
|
2825
|
+
id: string;
|
|
2826
|
+
kind: "http" | "graphql" | "openapi";
|
|
2827
|
+
name: string;
|
|
2828
|
+
host: string;
|
|
2829
|
+
baseUrl: string;
|
|
2830
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
2831
|
+
sendCustomerIdentity: boolean;
|
|
2788
2832
|
credentialId?: string | undefined;
|
|
2789
2833
|
authHeader?: string | undefined;
|
|
2790
2834
|
}[];
|
|
2791
2835
|
apps: {
|
|
2792
2836
|
key: string;
|
|
2793
|
-
account: "customer" | "
|
|
2837
|
+
account: "customer" | "deployment" | "project";
|
|
2794
2838
|
rules: {
|
|
2795
2839
|
read: "allow" | "ask" | "block";
|
|
2796
2840
|
change: "allow" | "ask" | "block";
|
|
@@ -2802,15 +2846,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2802
2846
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2803
2847
|
}[];
|
|
2804
2848
|
mcpServers: {
|
|
2805
|
-
status: "connecting" | "connected";
|
|
2806
2849
|
id: string;
|
|
2850
|
+
status: "connecting" | "connected";
|
|
2807
2851
|
name: string;
|
|
2808
2852
|
url: string;
|
|
2809
2853
|
toolCount: number;
|
|
2810
2854
|
definitions: {
|
|
2855
|
+
description: string;
|
|
2811
2856
|
name: string;
|
|
2812
2857
|
inputSchema: Record<string, unknown>;
|
|
2813
|
-
description: string;
|
|
2814
2858
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2815
2859
|
}[];
|
|
2816
2860
|
groups: {
|
|
@@ -2822,76 +2866,76 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2822
2866
|
credentialId?: string | undefined;
|
|
2823
2867
|
}[];
|
|
2824
2868
|
webSearch: {
|
|
2825
|
-
enabled: boolean;
|
|
2826
2869
|
provider: "builtin";
|
|
2870
|
+
enabled: boolean;
|
|
2827
2871
|
preferSites: string[];
|
|
2828
2872
|
};
|
|
2829
2873
|
}, {
|
|
2830
2874
|
knowledge: {
|
|
2875
|
+
id: string;
|
|
2831
2876
|
status: "failed" | "ready" | "syncing";
|
|
2832
2877
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2833
|
-
id: string;
|
|
2834
2878
|
name: string;
|
|
2835
2879
|
detail: string;
|
|
2836
2880
|
syncedLabel: string;
|
|
2837
2881
|
error?: string | undefined;
|
|
2882
|
+
scope?: "customer" | "project" | undefined;
|
|
2838
2883
|
pages?: {
|
|
2839
|
-
done: number;
|
|
2840
2884
|
total: number;
|
|
2885
|
+
done: number;
|
|
2841
2886
|
} | undefined;
|
|
2842
2887
|
url?: string | undefined;
|
|
2843
|
-
scope?: "customer" | "project" | undefined;
|
|
2844
2888
|
connectedSource?: {
|
|
2845
2889
|
accountId: string;
|
|
2846
2890
|
resourceId: string;
|
|
2847
2891
|
} | undefined;
|
|
2848
2892
|
progress?: {
|
|
2849
|
-
done: number;
|
|
2850
2893
|
total: number;
|
|
2894
|
+
done: number;
|
|
2851
2895
|
stage: string;
|
|
2852
2896
|
retryable: boolean;
|
|
2853
2897
|
} | undefined;
|
|
2854
2898
|
}[];
|
|
2855
2899
|
apis: {
|
|
2856
|
-
kind: "http" | "graphql" | "openapi";
|
|
2857
|
-
id: string;
|
|
2858
|
-
name: string;
|
|
2859
|
-
host: string;
|
|
2860
|
-
baseUrl: string;
|
|
2861
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
2862
|
-
sendCustomerIdentity: boolean;
|
|
2863
2900
|
calls: {
|
|
2864
2901
|
path: string;
|
|
2865
2902
|
id: string;
|
|
2866
2903
|
name: string;
|
|
2867
2904
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2868
|
-
bodyType: "json" | "
|
|
2869
|
-
readAs: "
|
|
2905
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
2906
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2870
2907
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2871
2908
|
summary: string;
|
|
2872
2909
|
latencyMs: number | null;
|
|
2873
2910
|
visibleFields: string[];
|
|
2874
2911
|
effects: "read" | "write" | "unclassified";
|
|
2912
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2875
2913
|
headers?: Record<string, string> | undefined;
|
|
2876
2914
|
body?: string | undefined;
|
|
2877
2915
|
sample?: unknown;
|
|
2878
2916
|
query?: Record<string, string> | undefined;
|
|
2879
2917
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2880
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2881
2918
|
bindings?: {
|
|
2882
|
-
path: string[];
|
|
2883
|
-
source: "variable" | "context" | "model" | "identity";
|
|
2884
2919
|
key: string;
|
|
2885
|
-
|
|
2920
|
+
source: "model" | "variable" | "context" | "identity";
|
|
2921
|
+
path: string[];
|
|
2922
|
+
target: "path" | "body" | "query" | "header";
|
|
2886
2923
|
}[] | undefined;
|
|
2887
2924
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2888
2925
|
}[];
|
|
2926
|
+
id: string;
|
|
2927
|
+
kind: "http" | "graphql" | "openapi";
|
|
2928
|
+
name: string;
|
|
2929
|
+
host: string;
|
|
2930
|
+
baseUrl: string;
|
|
2931
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
2932
|
+
sendCustomerIdentity: boolean;
|
|
2889
2933
|
credentialId?: string | undefined;
|
|
2890
2934
|
authHeader?: string | undefined;
|
|
2891
2935
|
}[];
|
|
2892
2936
|
apps: {
|
|
2893
2937
|
key: string;
|
|
2894
|
-
account: "customer" | "
|
|
2938
|
+
account: "customer" | "deployment" | "project";
|
|
2895
2939
|
rules: {
|
|
2896
2940
|
read: "allow" | "ask" | "block";
|
|
2897
2941
|
change: "allow" | "ask" | "block";
|
|
@@ -2903,8 +2947,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2903
2947
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2904
2948
|
}[];
|
|
2905
2949
|
mcpServers: {
|
|
2906
|
-
status: "connecting" | "connected";
|
|
2907
2950
|
id: string;
|
|
2951
|
+
status: "connecting" | "connected";
|
|
2908
2952
|
name: string;
|
|
2909
2953
|
url: string;
|
|
2910
2954
|
toolCount: number;
|
|
@@ -2916,15 +2960,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2916
2960
|
}[];
|
|
2917
2961
|
credentialId?: string | undefined;
|
|
2918
2962
|
definitions?: {
|
|
2963
|
+
description: string;
|
|
2919
2964
|
name: string;
|
|
2920
2965
|
inputSchema: Record<string, unknown>;
|
|
2921
|
-
description: string;
|
|
2922
2966
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2923
2967
|
}[] | undefined;
|
|
2924
2968
|
}[];
|
|
2925
2969
|
webSearch: {
|
|
2926
|
-
enabled: boolean;
|
|
2927
2970
|
provider: "builtin" | "exa" | "firecrawl";
|
|
2971
|
+
enabled: boolean;
|
|
2928
2972
|
preferSites: string[];
|
|
2929
2973
|
};
|
|
2930
2974
|
readPages?: boolean | undefined;
|
|
@@ -2941,21 +2985,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2941
2985
|
chipNote: z.ZodString;
|
|
2942
2986
|
description: z.ZodString;
|
|
2943
2987
|
}, "strict", z.ZodTypeAny, {
|
|
2988
|
+
description: string;
|
|
2944
2989
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2945
2990
|
required: boolean;
|
|
2946
2991
|
name: string;
|
|
2947
|
-
description: string;
|
|
2948
2992
|
defaultValue: string;
|
|
2949
|
-
usedIn: ("
|
|
2993
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
2950
2994
|
chipNote: string;
|
|
2951
2995
|
values?: string[] | undefined;
|
|
2952
2996
|
}, {
|
|
2997
|
+
description: string;
|
|
2953
2998
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2954
2999
|
required: boolean;
|
|
2955
3000
|
name: string;
|
|
2956
|
-
description: string;
|
|
2957
3001
|
defaultValue: string;
|
|
2958
|
-
usedIn: ("
|
|
3002
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
2959
3003
|
chipNote: string;
|
|
2960
3004
|
values?: string[] | undefined;
|
|
2961
3005
|
}>, "many">;
|
|
@@ -2973,20 +3017,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2973
3017
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2974
3018
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2975
3019
|
}, "strict", z.ZodTypeAny, {
|
|
2976
|
-
|
|
3020
|
+
description: string;
|
|
3021
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
2977
3022
|
id: string;
|
|
2978
3023
|
required: boolean;
|
|
2979
3024
|
name: string;
|
|
2980
|
-
description: string;
|
|
2981
3025
|
level: number;
|
|
2982
3026
|
values?: string[] | undefined;
|
|
2983
3027
|
items?: Record<string, unknown> | undefined;
|
|
2984
3028
|
}, {
|
|
2985
|
-
|
|
3029
|
+
description: string;
|
|
3030
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
2986
3031
|
id: string;
|
|
2987
3032
|
required: boolean;
|
|
2988
3033
|
name: string;
|
|
2989
|
-
description: string;
|
|
2990
3034
|
level: number;
|
|
2991
3035
|
values?: string[] | undefined;
|
|
2992
3036
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2994,32 +3038,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2994
3038
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2995
3039
|
}, "strict", z.ZodTypeAny, {
|
|
2996
3040
|
shape: {
|
|
2997
|
-
|
|
3041
|
+
description: string;
|
|
3042
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
2998
3043
|
id: string;
|
|
2999
3044
|
required: boolean;
|
|
3000
3045
|
name: string;
|
|
3001
|
-
description: string;
|
|
3002
3046
|
level: number;
|
|
3003
3047
|
values?: string[] | undefined;
|
|
3004
3048
|
items?: Record<string, unknown> | undefined;
|
|
3005
3049
|
}[];
|
|
3006
|
-
format: "
|
|
3007
|
-
delivery: "
|
|
3050
|
+
format: "text" | "json";
|
|
3051
|
+
delivery: "webhook" | "stream" | "once";
|
|
3008
3052
|
webhookUrl: string;
|
|
3009
3053
|
schema?: Record<string, unknown> | undefined;
|
|
3010
3054
|
}, {
|
|
3011
3055
|
shape: {
|
|
3012
|
-
|
|
3056
|
+
description: string;
|
|
3057
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3013
3058
|
id: string;
|
|
3014
3059
|
required: boolean;
|
|
3015
3060
|
name: string;
|
|
3016
|
-
description: string;
|
|
3017
3061
|
level: number;
|
|
3018
3062
|
values?: string[] | undefined;
|
|
3019
3063
|
items?: Record<string, unknown> | undefined;
|
|
3020
3064
|
}[];
|
|
3021
|
-
format: "
|
|
3022
|
-
delivery: "
|
|
3065
|
+
format: "text" | "json";
|
|
3066
|
+
delivery: "webhook" | "stream" | "once";
|
|
3023
3067
|
webhookUrl: string;
|
|
3024
3068
|
schema?: Record<string, unknown> | undefined;
|
|
3025
3069
|
}>;
|
|
@@ -3036,38 +3080,38 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3036
3080
|
path: z.ZodArray<z.ZodString, "many">;
|
|
3037
3081
|
target: z.ZodArray<z.ZodString, "many">;
|
|
3038
3082
|
}, "strict", z.ZodTypeAny, {
|
|
3039
|
-
path: string[];
|
|
3040
3083
|
source: "message" | "variable" | "context";
|
|
3084
|
+
path: string[];
|
|
3041
3085
|
target: string[];
|
|
3042
3086
|
}, {
|
|
3043
|
-
path: string[];
|
|
3044
3087
|
source: "message" | "variable" | "context";
|
|
3088
|
+
path: string[];
|
|
3045
3089
|
target: string[];
|
|
3046
3090
|
}>, "many">;
|
|
3047
3091
|
}, "strict", z.ZodTypeAny, {
|
|
3048
|
-
kind: "workbench" | "mcp" | "app";
|
|
3049
3092
|
id: string;
|
|
3093
|
+
kind: "workbench" | "mcp" | "app";
|
|
3050
3094
|
name: string;
|
|
3095
|
+
input: Record<string, unknown>;
|
|
3096
|
+
toolKey: string;
|
|
3051
3097
|
capabilityId: string;
|
|
3052
3098
|
bindings: {
|
|
3053
|
-
path: string[];
|
|
3054
3099
|
source: "message" | "variable" | "context";
|
|
3100
|
+
path: string[];
|
|
3055
3101
|
target: string[];
|
|
3056
3102
|
}[];
|
|
3057
|
-
toolKey: string;
|
|
3058
|
-
input: Record<string, unknown>;
|
|
3059
3103
|
}, {
|
|
3060
|
-
kind: "workbench" | "mcp" | "app";
|
|
3061
3104
|
id: string;
|
|
3105
|
+
kind: "workbench" | "mcp" | "app";
|
|
3062
3106
|
name: string;
|
|
3107
|
+
input: Record<string, unknown>;
|
|
3108
|
+
toolKey: string;
|
|
3063
3109
|
capabilityId: string;
|
|
3064
3110
|
bindings: {
|
|
3065
|
-
path: string[];
|
|
3066
3111
|
source: "message" | "variable" | "context";
|
|
3112
|
+
path: string[];
|
|
3067
3113
|
target: string[];
|
|
3068
3114
|
}[];
|
|
3069
|
-
toolKey: string;
|
|
3070
|
-
input: Record<string, unknown>;
|
|
3071
3115
|
}>, "many">>;
|
|
3072
3116
|
before: z.ZodArray<z.ZodString, "many">;
|
|
3073
3117
|
after: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3079,17 +3123,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3079
3123
|
before: string[];
|
|
3080
3124
|
after: string[];
|
|
3081
3125
|
preparations: {
|
|
3082
|
-
kind: "workbench" | "mcp" | "app";
|
|
3083
3126
|
id: string;
|
|
3127
|
+
kind: "workbench" | "mcp" | "app";
|
|
3084
3128
|
name: string;
|
|
3129
|
+
input: Record<string, unknown>;
|
|
3130
|
+
toolKey: string;
|
|
3085
3131
|
capabilityId: string;
|
|
3086
3132
|
bindings: {
|
|
3087
|
-
path: string[];
|
|
3088
3133
|
source: "message" | "variable" | "context";
|
|
3134
|
+
path: string[];
|
|
3089
3135
|
target: string[];
|
|
3090
3136
|
}[];
|
|
3091
|
-
toolKey: string;
|
|
3092
|
-
input: Record<string, unknown>;
|
|
3093
3137
|
}[];
|
|
3094
3138
|
stopOnFail: string[];
|
|
3095
3139
|
stepLimit: number;
|
|
@@ -3100,62 +3144,78 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3100
3144
|
stopOnFail: string[];
|
|
3101
3145
|
stepLimit: number | null;
|
|
3102
3146
|
preparations?: {
|
|
3103
|
-
kind: "workbench" | "mcp" | "app";
|
|
3104
3147
|
id: string;
|
|
3148
|
+
kind: "workbench" | "mcp" | "app";
|
|
3105
3149
|
name: string;
|
|
3150
|
+
input: Record<string, unknown>;
|
|
3151
|
+
toolKey: string;
|
|
3106
3152
|
capabilityId: string;
|
|
3107
3153
|
bindings: {
|
|
3108
|
-
path: string[];
|
|
3109
3154
|
source: "message" | "variable" | "context";
|
|
3155
|
+
path: string[];
|
|
3110
3156
|
target: string[];
|
|
3111
3157
|
}[];
|
|
3112
|
-
toolKey: string;
|
|
3113
|
-
input: Record<string, unknown>;
|
|
3114
3158
|
}[] | undefined;
|
|
3115
3159
|
}>;
|
|
3116
3160
|
}, "strict", z.ZodTypeAny, {
|
|
3117
|
-
|
|
3161
|
+
memory: {
|
|
3162
|
+
never: string[];
|
|
3163
|
+
enabled: boolean;
|
|
3164
|
+
configured: boolean;
|
|
3165
|
+
who: {
|
|
3166
|
+
customer: boolean;
|
|
3167
|
+
company: boolean;
|
|
3168
|
+
bot: boolean;
|
|
3169
|
+
};
|
|
3170
|
+
what: string;
|
|
3171
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
3172
|
+
};
|
|
3173
|
+
model: {
|
|
3174
|
+
id: string;
|
|
3175
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
3176
|
+
};
|
|
3118
3177
|
workbench: {
|
|
3119
3178
|
enabled: boolean;
|
|
3120
3179
|
files: "per_customer" | "per_run";
|
|
3121
3180
|
configured: boolean;
|
|
3122
|
-
size: "medium" | "
|
|
3181
|
+
size: "medium" | "large" | "small";
|
|
3123
3182
|
access: "allow" | "ask" | "block";
|
|
3124
3183
|
languages: string[];
|
|
3125
3184
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
3126
3185
|
};
|
|
3127
|
-
|
|
3128
|
-
enabled: boolean;
|
|
3129
|
-
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
3130
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
3131
|
-
};
|
|
3186
|
+
name: string;
|
|
3132
3187
|
variables: {
|
|
3188
|
+
description: string;
|
|
3133
3189
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3134
3190
|
required: boolean;
|
|
3135
3191
|
name: string;
|
|
3136
|
-
description: string;
|
|
3137
3192
|
defaultValue: string;
|
|
3138
|
-
usedIn: ("
|
|
3193
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
3139
3194
|
chipNote: string;
|
|
3140
3195
|
values?: string[] | undefined;
|
|
3141
3196
|
}[];
|
|
3197
|
+
files: {
|
|
3198
|
+
enabled: boolean;
|
|
3199
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
3200
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
3201
|
+
};
|
|
3142
3202
|
instructions: {
|
|
3143
3203
|
text: string;
|
|
3144
3204
|
editedAt: string | null;
|
|
3145
3205
|
};
|
|
3146
3206
|
context: {
|
|
3147
3207
|
knowledge: {
|
|
3208
|
+
id: string;
|
|
3148
3209
|
status: "failed" | "ready" | "syncing";
|
|
3149
3210
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3150
|
-
id: string;
|
|
3151
3211
|
name: string;
|
|
3152
3212
|
scope: "customer" | "project";
|
|
3153
3213
|
detail: string;
|
|
3154
3214
|
syncedLabel: string;
|
|
3155
3215
|
error?: string | undefined;
|
|
3156
3216
|
pages?: {
|
|
3157
|
-
done: number;
|
|
3158
3217
|
total: number;
|
|
3218
|
+
done: number;
|
|
3159
3219
|
} | undefined;
|
|
3160
3220
|
url?: string | undefined;
|
|
3161
3221
|
connectedSource?: {
|
|
@@ -3163,8 +3223,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3163
3223
|
resourceId: string;
|
|
3164
3224
|
} | undefined;
|
|
3165
3225
|
progress?: {
|
|
3166
|
-
done: number;
|
|
3167
3226
|
total: number;
|
|
3227
|
+
done: number;
|
|
3168
3228
|
stage: string;
|
|
3169
3229
|
retryable: boolean;
|
|
3170
3230
|
} | undefined;
|
|
@@ -3173,23 +3233,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3173
3233
|
searchPastChats: boolean;
|
|
3174
3234
|
conversationRetentionDays: number;
|
|
3175
3235
|
apis: {
|
|
3176
|
-
kind: "http" | "graphql" | "openapi";
|
|
3177
|
-
id: string;
|
|
3178
|
-
name: string;
|
|
3179
|
-
host: string;
|
|
3180
|
-
baseUrl: string;
|
|
3181
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
3182
|
-
sendCustomerIdentity: boolean;
|
|
3183
3236
|
calls: {
|
|
3184
|
-
headers: Record<string, string>;
|
|
3185
|
-
body: string;
|
|
3186
3237
|
path: string;
|
|
3187
3238
|
id: string;
|
|
3188
3239
|
name: string;
|
|
3240
|
+
headers: Record<string, string>;
|
|
3241
|
+
body: string;
|
|
3189
3242
|
query: Record<string, string>;
|
|
3190
3243
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3191
|
-
bodyType: "json" | "
|
|
3192
|
-
readAs: "
|
|
3244
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
3245
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
3193
3246
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3194
3247
|
summary: string;
|
|
3195
3248
|
latencyMs: number | null;
|
|
@@ -3197,21 +3250,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3197
3250
|
effects: "read" | "write" | "unclassified";
|
|
3198
3251
|
permission: "allow" | "ask" | "block";
|
|
3199
3252
|
bindings: {
|
|
3200
|
-
path: string[];
|
|
3201
|
-
source: "variable" | "context" | "model" | "identity";
|
|
3202
3253
|
key: string;
|
|
3203
|
-
|
|
3254
|
+
source: "model" | "variable" | "context" | "identity";
|
|
3255
|
+
path: string[];
|
|
3256
|
+
target: "path" | "body" | "query" | "header";
|
|
3204
3257
|
}[];
|
|
3205
|
-
sample?: unknown;
|
|
3206
3258
|
inputSchema?: Record<string, unknown> | undefined;
|
|
3259
|
+
sample?: unknown;
|
|
3207
3260
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3208
3261
|
}[];
|
|
3262
|
+
id: string;
|
|
3263
|
+
kind: "http" | "graphql" | "openapi";
|
|
3264
|
+
name: string;
|
|
3265
|
+
host: string;
|
|
3266
|
+
baseUrl: string;
|
|
3267
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
3268
|
+
sendCustomerIdentity: boolean;
|
|
3209
3269
|
credentialId?: string | undefined;
|
|
3210
3270
|
authHeader?: string | undefined;
|
|
3211
3271
|
}[];
|
|
3212
3272
|
apps: {
|
|
3213
3273
|
key: string;
|
|
3214
|
-
account: "customer" | "
|
|
3274
|
+
account: "customer" | "deployment" | "project";
|
|
3215
3275
|
rules: {
|
|
3216
3276
|
read: "allow" | "ask" | "block";
|
|
3217
3277
|
change: "allow" | "ask" | "block";
|
|
@@ -3223,15 +3283,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3223
3283
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3224
3284
|
}[];
|
|
3225
3285
|
mcpServers: {
|
|
3226
|
-
status: "connecting" | "connected";
|
|
3227
3286
|
id: string;
|
|
3287
|
+
status: "connecting" | "connected";
|
|
3228
3288
|
name: string;
|
|
3229
3289
|
url: string;
|
|
3230
3290
|
toolCount: number;
|
|
3231
3291
|
definitions: {
|
|
3292
|
+
description: string;
|
|
3232
3293
|
name: string;
|
|
3233
3294
|
inputSchema: Record<string, unknown>;
|
|
3234
|
-
description: string;
|
|
3235
3295
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3236
3296
|
}[];
|
|
3237
3297
|
groups: {
|
|
@@ -3243,32 +3303,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3243
3303
|
credentialId?: string | undefined;
|
|
3244
3304
|
}[];
|
|
3245
3305
|
webSearch: {
|
|
3246
|
-
enabled: boolean;
|
|
3247
3306
|
provider: "builtin";
|
|
3307
|
+
enabled: boolean;
|
|
3248
3308
|
preferSites: string[];
|
|
3249
3309
|
};
|
|
3250
3310
|
};
|
|
3251
|
-
memory: {
|
|
3252
|
-
never: string[];
|
|
3253
|
-
enabled: boolean;
|
|
3254
|
-
configured: boolean;
|
|
3255
|
-
who: {
|
|
3256
|
-
customer: boolean;
|
|
3257
|
-
company: boolean;
|
|
3258
|
-
bot: boolean;
|
|
3259
|
-
};
|
|
3260
|
-
what: string;
|
|
3261
|
-
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
3262
|
-
};
|
|
3263
|
-
model: {
|
|
3264
|
-
id: string;
|
|
3265
|
-
effort: "low" | "medium" | "high" | "xhigh";
|
|
3266
|
-
};
|
|
3267
3311
|
publicDescription: string;
|
|
3268
3312
|
iconAssetId: string | null;
|
|
3269
3313
|
skills: {
|
|
3270
3314
|
id: string;
|
|
3271
3315
|
name: string;
|
|
3316
|
+
cases: {
|
|
3317
|
+
text: string;
|
|
3318
|
+
}[];
|
|
3272
3319
|
files: {
|
|
3273
3320
|
name: string;
|
|
3274
3321
|
content: string;
|
|
@@ -3277,9 +3324,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3277
3324
|
summary: string;
|
|
3278
3325
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3279
3326
|
load: "auto" | "always";
|
|
3280
|
-
cases: {
|
|
3281
|
-
text: string;
|
|
3282
|
-
}[];
|
|
3283
3327
|
exceptions: {
|
|
3284
3328
|
text: string;
|
|
3285
3329
|
}[];
|
|
@@ -3295,17 +3339,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3295
3339
|
}[];
|
|
3296
3340
|
answer: {
|
|
3297
3341
|
shape: {
|
|
3298
|
-
|
|
3342
|
+
description: string;
|
|
3343
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3299
3344
|
id: string;
|
|
3300
3345
|
required: boolean;
|
|
3301
3346
|
name: string;
|
|
3302
|
-
description: string;
|
|
3303
3347
|
level: number;
|
|
3304
3348
|
values?: string[] | undefined;
|
|
3305
3349
|
items?: Record<string, unknown> | undefined;
|
|
3306
3350
|
}[];
|
|
3307
|
-
format: "
|
|
3308
|
-
delivery: "
|
|
3351
|
+
format: "text" | "json";
|
|
3352
|
+
delivery: "webhook" | "stream" | "once";
|
|
3309
3353
|
webhookUrl: string;
|
|
3310
3354
|
schema?: Record<string, unknown> | undefined;
|
|
3311
3355
|
};
|
|
@@ -3314,29 +3358,29 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3314
3358
|
before: string[];
|
|
3315
3359
|
after: string[];
|
|
3316
3360
|
preparations: {
|
|
3317
|
-
kind: "workbench" | "mcp" | "app";
|
|
3318
3361
|
id: string;
|
|
3362
|
+
kind: "workbench" | "mcp" | "app";
|
|
3319
3363
|
name: string;
|
|
3364
|
+
input: Record<string, unknown>;
|
|
3365
|
+
toolKey: string;
|
|
3320
3366
|
capabilityId: string;
|
|
3321
3367
|
bindings: {
|
|
3322
|
-
path: string[];
|
|
3323
3368
|
source: "message" | "variable" | "context";
|
|
3369
|
+
path: string[];
|
|
3324
3370
|
target: string[];
|
|
3325
3371
|
}[];
|
|
3326
|
-
toolKey: string;
|
|
3327
|
-
input: Record<string, unknown>;
|
|
3328
3372
|
}[];
|
|
3329
3373
|
stopOnFail: string[];
|
|
3330
3374
|
stepLimit: number;
|
|
3331
3375
|
};
|
|
3332
3376
|
triggers: ({
|
|
3333
|
-
|
|
3377
|
+
label: string;
|
|
3334
3378
|
id: string;
|
|
3379
|
+
kind: "app";
|
|
3335
3380
|
enabled: boolean;
|
|
3336
3381
|
name: string;
|
|
3337
3382
|
variables: Record<string, unknown>;
|
|
3338
3383
|
subscriptionId: string;
|
|
3339
|
-
label: string;
|
|
3340
3384
|
providerKey: string;
|
|
3341
3385
|
eventTypes: string[];
|
|
3342
3386
|
runsAs: "none" | "field";
|
|
@@ -3344,8 +3388,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3344
3388
|
instruction: string;
|
|
3345
3389
|
answerTo: "none" | "webhook";
|
|
3346
3390
|
} | {
|
|
3347
|
-
kind: "webhook";
|
|
3348
3391
|
id: string;
|
|
3392
|
+
kind: "webhook";
|
|
3349
3393
|
tenantId: string;
|
|
3350
3394
|
enabled: boolean;
|
|
3351
3395
|
name: string;
|
|
@@ -3355,48 +3399,71 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3355
3399
|
instruction: string;
|
|
3356
3400
|
answerTo: "none" | "webhook";
|
|
3357
3401
|
} | {
|
|
3358
|
-
every: "week" | "day" | "hour";
|
|
3402
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3403
|
+
id: string;
|
|
3359
3404
|
kind: "schedule";
|
|
3360
3405
|
date: string;
|
|
3361
|
-
id: string;
|
|
3362
3406
|
tenantId: string;
|
|
3363
3407
|
enabled: boolean;
|
|
3364
3408
|
name: string;
|
|
3365
|
-
days: number[];
|
|
3366
|
-
timezone: string;
|
|
3367
3409
|
variables: Record<string, unknown>;
|
|
3368
|
-
|
|
3410
|
+
timezone: string;
|
|
3411
|
+
customerId: string;
|
|
3412
|
+
days: number[];
|
|
3413
|
+
runsAs: "none" | "one";
|
|
3369
3414
|
instruction: string;
|
|
3370
3415
|
answerTo: "none" | "webhook";
|
|
3371
3416
|
repeat: "once" | "repeat";
|
|
3372
3417
|
time: string;
|
|
3373
|
-
|
|
3418
|
+
cron?: string | undefined;
|
|
3419
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
3420
|
+
monthDay?: number | "last" | undefined;
|
|
3374
3421
|
})[];
|
|
3422
|
+
workflows: {
|
|
3423
|
+
version: number | "live";
|
|
3424
|
+
workflowId: string;
|
|
3425
|
+
}[];
|
|
3375
3426
|
timezone?: string | null | undefined;
|
|
3376
3427
|
avatar?: {
|
|
3428
|
+
version: 1;
|
|
3377
3429
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3378
3430
|
seed: string;
|
|
3379
|
-
version: 1;
|
|
3380
3431
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3381
3432
|
} | null | undefined;
|
|
3382
3433
|
}, {
|
|
3383
|
-
|
|
3434
|
+
memory: {
|
|
3435
|
+
never: string[];
|
|
3436
|
+
enabled: boolean;
|
|
3437
|
+
configured: boolean;
|
|
3438
|
+
who: {
|
|
3439
|
+
customer: boolean;
|
|
3440
|
+
company: boolean;
|
|
3441
|
+
bot: boolean;
|
|
3442
|
+
};
|
|
3443
|
+
what: string;
|
|
3444
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
3445
|
+
};
|
|
3446
|
+
model: {
|
|
3447
|
+
id: string;
|
|
3448
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
3449
|
+
};
|
|
3384
3450
|
workbench: {
|
|
3385
3451
|
enabled: boolean;
|
|
3386
3452
|
files: "per_customer" | "per_run";
|
|
3387
3453
|
configured: boolean;
|
|
3388
|
-
size: "medium" | "
|
|
3454
|
+
size: "medium" | "large" | "small";
|
|
3389
3455
|
access: "allow" | "ask" | "block";
|
|
3390
3456
|
languages: string[];
|
|
3391
3457
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
3392
3458
|
};
|
|
3459
|
+
name: string;
|
|
3393
3460
|
variables: {
|
|
3461
|
+
description: string;
|
|
3394
3462
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3395
3463
|
required: boolean;
|
|
3396
3464
|
name: string;
|
|
3397
|
-
description: string;
|
|
3398
3465
|
defaultValue: string;
|
|
3399
|
-
usedIn: ("
|
|
3466
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
3400
3467
|
chipNote: string;
|
|
3401
3468
|
values?: string[] | undefined;
|
|
3402
3469
|
}[];
|
|
@@ -3406,70 +3473,70 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3406
3473
|
};
|
|
3407
3474
|
context: {
|
|
3408
3475
|
knowledge: {
|
|
3476
|
+
id: string;
|
|
3409
3477
|
status: "failed" | "ready" | "syncing";
|
|
3410
3478
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3411
|
-
id: string;
|
|
3412
3479
|
name: string;
|
|
3413
3480
|
detail: string;
|
|
3414
3481
|
syncedLabel: string;
|
|
3415
3482
|
error?: string | undefined;
|
|
3483
|
+
scope?: "customer" | "project" | undefined;
|
|
3416
3484
|
pages?: {
|
|
3417
|
-
done: number;
|
|
3418
3485
|
total: number;
|
|
3486
|
+
done: number;
|
|
3419
3487
|
} | undefined;
|
|
3420
3488
|
url?: string | undefined;
|
|
3421
|
-
scope?: "customer" | "project" | undefined;
|
|
3422
3489
|
connectedSource?: {
|
|
3423
3490
|
accountId: string;
|
|
3424
3491
|
resourceId: string;
|
|
3425
3492
|
} | undefined;
|
|
3426
3493
|
progress?: {
|
|
3427
|
-
done: number;
|
|
3428
3494
|
total: number;
|
|
3495
|
+
done: number;
|
|
3429
3496
|
stage: string;
|
|
3430
3497
|
retryable: boolean;
|
|
3431
3498
|
} | undefined;
|
|
3432
3499
|
}[];
|
|
3433
3500
|
apis: {
|
|
3434
|
-
kind: "http" | "graphql" | "openapi";
|
|
3435
|
-
id: string;
|
|
3436
|
-
name: string;
|
|
3437
|
-
host: string;
|
|
3438
|
-
baseUrl: string;
|
|
3439
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
3440
|
-
sendCustomerIdentity: boolean;
|
|
3441
3501
|
calls: {
|
|
3442
3502
|
path: string;
|
|
3443
3503
|
id: string;
|
|
3444
3504
|
name: string;
|
|
3445
3505
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3446
|
-
bodyType: "json" | "
|
|
3447
|
-
readAs: "
|
|
3506
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
3507
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
3448
3508
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3449
3509
|
summary: string;
|
|
3450
3510
|
latencyMs: number | null;
|
|
3451
3511
|
visibleFields: string[];
|
|
3452
3512
|
effects: "read" | "write" | "unclassified";
|
|
3513
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
3453
3514
|
headers?: Record<string, string> | undefined;
|
|
3454
3515
|
body?: string | undefined;
|
|
3455
3516
|
sample?: unknown;
|
|
3456
3517
|
query?: Record<string, string> | undefined;
|
|
3457
3518
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
3458
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
3459
3519
|
bindings?: {
|
|
3460
|
-
path: string[];
|
|
3461
|
-
source: "variable" | "context" | "model" | "identity";
|
|
3462
3520
|
key: string;
|
|
3463
|
-
|
|
3521
|
+
source: "model" | "variable" | "context" | "identity";
|
|
3522
|
+
path: string[];
|
|
3523
|
+
target: "path" | "body" | "query" | "header";
|
|
3464
3524
|
}[] | undefined;
|
|
3465
3525
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3466
3526
|
}[];
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3527
|
+
id: string;
|
|
3528
|
+
kind: "http" | "graphql" | "openapi";
|
|
3529
|
+
name: string;
|
|
3530
|
+
host: string;
|
|
3531
|
+
baseUrl: string;
|
|
3532
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
3533
|
+
sendCustomerIdentity: boolean;
|
|
3534
|
+
credentialId?: string | undefined;
|
|
3535
|
+
authHeader?: string | undefined;
|
|
3536
|
+
}[];
|
|
3537
|
+
apps: {
|
|
3471
3538
|
key: string;
|
|
3472
|
-
account: "customer" | "
|
|
3539
|
+
account: "customer" | "deployment" | "project";
|
|
3473
3540
|
rules: {
|
|
3474
3541
|
read: "allow" | "ask" | "block";
|
|
3475
3542
|
change: "allow" | "ask" | "block";
|
|
@@ -3481,8 +3548,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3481
3548
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3482
3549
|
}[];
|
|
3483
3550
|
mcpServers: {
|
|
3484
|
-
status: "connecting" | "connected";
|
|
3485
3551
|
id: string;
|
|
3552
|
+
status: "connecting" | "connected";
|
|
3486
3553
|
name: string;
|
|
3487
3554
|
url: string;
|
|
3488
3555
|
toolCount: number;
|
|
@@ -3494,46 +3561,30 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3494
3561
|
}[];
|
|
3495
3562
|
credentialId?: string | undefined;
|
|
3496
3563
|
definitions?: {
|
|
3564
|
+
description: string;
|
|
3497
3565
|
name: string;
|
|
3498
3566
|
inputSchema: Record<string, unknown>;
|
|
3499
|
-
description: string;
|
|
3500
3567
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3501
3568
|
}[] | undefined;
|
|
3502
3569
|
}[];
|
|
3503
3570
|
webSearch: {
|
|
3504
|
-
enabled: boolean;
|
|
3505
3571
|
provider: "builtin" | "exa" | "firecrawl";
|
|
3572
|
+
enabled: boolean;
|
|
3506
3573
|
preferSites: string[];
|
|
3507
3574
|
};
|
|
3508
3575
|
readPages?: boolean | undefined;
|
|
3509
3576
|
searchPastChats?: boolean | undefined;
|
|
3510
3577
|
conversationRetentionDays?: number | undefined;
|
|
3511
3578
|
};
|
|
3512
|
-
memory: {
|
|
3513
|
-
never: string[];
|
|
3514
|
-
enabled: boolean;
|
|
3515
|
-
configured: boolean;
|
|
3516
|
-
who: {
|
|
3517
|
-
customer: boolean;
|
|
3518
|
-
company: boolean;
|
|
3519
|
-
bot: boolean;
|
|
3520
|
-
};
|
|
3521
|
-
what: string;
|
|
3522
|
-
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
3523
|
-
};
|
|
3524
|
-
model: {
|
|
3525
|
-
id: string;
|
|
3526
|
-
effort: "low" | "medium" | "high" | "xhigh";
|
|
3527
|
-
};
|
|
3528
3579
|
skills: {
|
|
3529
3580
|
id: string;
|
|
3530
3581
|
name: string;
|
|
3531
|
-
summary: string;
|
|
3532
|
-
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3533
|
-
load: "auto" | "always";
|
|
3534
3582
|
cases: {
|
|
3535
3583
|
text: string;
|
|
3536
3584
|
}[];
|
|
3585
|
+
summary: string;
|
|
3586
|
+
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3587
|
+
load: "auto" | "always";
|
|
3537
3588
|
exceptions: {
|
|
3538
3589
|
text: string;
|
|
3539
3590
|
}[];
|
|
@@ -3554,17 +3605,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3554
3605
|
}[];
|
|
3555
3606
|
answer: {
|
|
3556
3607
|
shape: {
|
|
3557
|
-
|
|
3608
|
+
description: string;
|
|
3609
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3558
3610
|
id: string;
|
|
3559
3611
|
required: boolean;
|
|
3560
3612
|
name: string;
|
|
3561
|
-
description: string;
|
|
3562
3613
|
level: number;
|
|
3563
3614
|
values?: string[] | undefined;
|
|
3564
3615
|
items?: Record<string, unknown> | undefined;
|
|
3565
3616
|
}[];
|
|
3566
|
-
format: "
|
|
3567
|
-
delivery: "
|
|
3617
|
+
format: "text" | "json";
|
|
3618
|
+
delivery: "webhook" | "stream" | "once";
|
|
3568
3619
|
webhookUrl: string;
|
|
3569
3620
|
schema?: Record<string, unknown> | undefined;
|
|
3570
3621
|
};
|
|
@@ -3575,40 +3626,40 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3575
3626
|
stopOnFail: string[];
|
|
3576
3627
|
stepLimit: number | null;
|
|
3577
3628
|
preparations?: {
|
|
3578
|
-
kind: "workbench" | "mcp" | "app";
|
|
3579
3629
|
id: string;
|
|
3630
|
+
kind: "workbench" | "mcp" | "app";
|
|
3580
3631
|
name: string;
|
|
3632
|
+
input: Record<string, unknown>;
|
|
3633
|
+
toolKey: string;
|
|
3581
3634
|
capabilityId: string;
|
|
3582
3635
|
bindings: {
|
|
3583
|
-
path: string[];
|
|
3584
3636
|
source: "message" | "variable" | "context";
|
|
3637
|
+
path: string[];
|
|
3585
3638
|
target: string[];
|
|
3586
3639
|
}[];
|
|
3587
|
-
toolKey: string;
|
|
3588
|
-
input: Record<string, unknown>;
|
|
3589
3640
|
}[] | undefined;
|
|
3590
3641
|
};
|
|
3642
|
+
timezone?: string | null | undefined;
|
|
3591
3643
|
files?: {
|
|
3592
3644
|
enabled: boolean;
|
|
3593
|
-
kinds: ("
|
|
3645
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
3594
3646
|
bigSpreadsheets: "workbench" | "preview";
|
|
3595
3647
|
} | undefined;
|
|
3596
|
-
timezone?: string | null | undefined;
|
|
3597
3648
|
publicDescription?: string | undefined;
|
|
3598
3649
|
iconAssetId?: string | null | undefined;
|
|
3599
3650
|
avatar?: {
|
|
3651
|
+
version: 1;
|
|
3600
3652
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3601
3653
|
seed: string;
|
|
3602
|
-
version: 1;
|
|
3603
3654
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3604
3655
|
} | null | undefined;
|
|
3605
3656
|
triggers?: ({
|
|
3606
|
-
|
|
3657
|
+
label: string;
|
|
3607
3658
|
id: string;
|
|
3659
|
+
kind: "app";
|
|
3608
3660
|
enabled: boolean;
|
|
3609
3661
|
name: string;
|
|
3610
3662
|
subscriptionId: string;
|
|
3611
|
-
label: string;
|
|
3612
3663
|
providerKey: string;
|
|
3613
3664
|
eventTypes: string[];
|
|
3614
3665
|
runsAs: "none" | "field";
|
|
@@ -3617,8 +3668,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3617
3668
|
answerTo: "none" | "webhook";
|
|
3618
3669
|
variables?: Record<string, unknown> | undefined;
|
|
3619
3670
|
} | {
|
|
3620
|
-
kind: "webhook";
|
|
3621
3671
|
id: string;
|
|
3672
|
+
kind: "webhook";
|
|
3622
3673
|
tenantId: string;
|
|
3623
3674
|
enabled: boolean;
|
|
3624
3675
|
name: string;
|
|
@@ -3628,23 +3679,30 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3628
3679
|
answerTo: "none" | "webhook";
|
|
3629
3680
|
variables?: Record<string, unknown> | undefined;
|
|
3630
3681
|
} | {
|
|
3631
|
-
every: "week" | "day" | "hour";
|
|
3682
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3683
|
+
id: string;
|
|
3632
3684
|
kind: "schedule";
|
|
3633
3685
|
date: string;
|
|
3634
|
-
id: string;
|
|
3635
3686
|
tenantId: string;
|
|
3636
3687
|
enabled: boolean;
|
|
3637
3688
|
name: string;
|
|
3638
|
-
days: number[];
|
|
3639
3689
|
timezone: string;
|
|
3640
|
-
|
|
3690
|
+
customerId: string;
|
|
3691
|
+
days: number[];
|
|
3692
|
+
runsAs: "none" | "one";
|
|
3641
3693
|
instruction: string;
|
|
3642
3694
|
answerTo: "none" | "webhook";
|
|
3643
3695
|
repeat: "once" | "repeat";
|
|
3644
3696
|
time: string;
|
|
3645
|
-
customerId: string;
|
|
3646
3697
|
variables?: Record<string, unknown> | undefined;
|
|
3698
|
+
cron?: string | undefined;
|
|
3699
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
3700
|
+
monthDay?: number | "last" | undefined;
|
|
3647
3701
|
})[] | undefined;
|
|
3702
|
+
workflows?: {
|
|
3703
|
+
version: number | "live";
|
|
3704
|
+
workflowId: string;
|
|
3705
|
+
}[] | undefined;
|
|
3648
3706
|
}>;
|
|
3649
3707
|
export declare const botPatchSchema: z.ZodObject<{
|
|
3650
3708
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3656,14 +3714,14 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3656
3714
|
seed: z.ZodString;
|
|
3657
3715
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
3658
3716
|
}, "strict", z.ZodTypeAny, {
|
|
3717
|
+
version: 1;
|
|
3659
3718
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3660
3719
|
seed: string;
|
|
3661
|
-
version: 1;
|
|
3662
3720
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3663
3721
|
}, {
|
|
3722
|
+
version: 1;
|
|
3664
3723
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3665
3724
|
seed: string;
|
|
3666
|
-
version: 1;
|
|
3667
3725
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3668
3726
|
}>>>>;
|
|
3669
3727
|
files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -3672,11 +3730,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3672
3730
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
3673
3731
|
}, "strict", z.ZodTypeAny, {
|
|
3674
3732
|
enabled: boolean;
|
|
3675
|
-
kinds: ("
|
|
3733
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
3676
3734
|
bigSpreadsheets: "workbench" | "preview";
|
|
3677
3735
|
}, {
|
|
3678
3736
|
enabled: boolean;
|
|
3679
|
-
kinds: ("
|
|
3737
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
3680
3738
|
bigSpreadsheets: "workbench" | "preview";
|
|
3681
3739
|
}>>>;
|
|
3682
3740
|
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
@@ -3695,13 +3753,13 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3695
3753
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3696
3754
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3697
3755
|
}, "strict", z.ZodTypeAny, {
|
|
3698
|
-
|
|
3756
|
+
label: string;
|
|
3699
3757
|
id: string;
|
|
3758
|
+
kind: "app";
|
|
3700
3759
|
enabled: boolean;
|
|
3701
3760
|
name: string;
|
|
3702
3761
|
variables: Record<string, unknown>;
|
|
3703
3762
|
subscriptionId: string;
|
|
3704
|
-
label: string;
|
|
3705
3763
|
providerKey: string;
|
|
3706
3764
|
eventTypes: string[];
|
|
3707
3765
|
runsAs: "none" | "field";
|
|
@@ -3709,12 +3767,12 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3709
3767
|
instruction: string;
|
|
3710
3768
|
answerTo: "none" | "webhook";
|
|
3711
3769
|
}, {
|
|
3712
|
-
|
|
3770
|
+
label: string;
|
|
3713
3771
|
id: string;
|
|
3772
|
+
kind: "app";
|
|
3714
3773
|
enabled: boolean;
|
|
3715
3774
|
name: string;
|
|
3716
3775
|
subscriptionId: string;
|
|
3717
|
-
label: string;
|
|
3718
3776
|
providerKey: string;
|
|
3719
3777
|
eventTypes: string[];
|
|
3720
3778
|
runsAs: "none" | "field";
|
|
@@ -3734,8 +3792,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3734
3792
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3735
3793
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3736
3794
|
}, "strict", z.ZodTypeAny, {
|
|
3737
|
-
kind: "webhook";
|
|
3738
3795
|
id: string;
|
|
3796
|
+
kind: "webhook";
|
|
3739
3797
|
tenantId: string;
|
|
3740
3798
|
enabled: boolean;
|
|
3741
3799
|
name: string;
|
|
@@ -3745,8 +3803,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3745
3803
|
instruction: string;
|
|
3746
3804
|
answerTo: "none" | "webhook";
|
|
3747
3805
|
}, {
|
|
3748
|
-
kind: "webhook";
|
|
3749
3806
|
id: string;
|
|
3807
|
+
kind: "webhook";
|
|
3750
3808
|
tenantId: string;
|
|
3751
3809
|
enabled: boolean;
|
|
3752
3810
|
name: string;
|
|
@@ -3759,7 +3817,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3759
3817
|
kind: z.ZodLiteral<"schedule">;
|
|
3760
3818
|
tenantId: z.ZodString;
|
|
3761
3819
|
repeat: z.ZodEnum<["repeat", "once"]>;
|
|
3762
|
-
every: z.ZodEnum<["week", "day", "hour"]>;
|
|
3820
|
+
every: z.ZodEnum<["week", "day", "hour", "minutes", "month", "cron"]>;
|
|
3821
|
+
intervalMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>, z.ZodLiteral<30>]>>;
|
|
3822
|
+
monthDay: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"last">]>>;
|
|
3823
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
3763
3824
|
days: z.ZodArray<z.ZodNumber, "many">;
|
|
3764
3825
|
time: z.ZodString;
|
|
3765
3826
|
date: z.ZodString;
|
|
@@ -3773,49 +3834,65 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3773
3834
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3774
3835
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3775
3836
|
}, "strict", z.ZodTypeAny, {
|
|
3776
|
-
every: "week" | "day" | "hour";
|
|
3837
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3838
|
+
id: string;
|
|
3777
3839
|
kind: "schedule";
|
|
3778
3840
|
date: string;
|
|
3779
|
-
id: string;
|
|
3780
3841
|
tenantId: string;
|
|
3781
3842
|
enabled: boolean;
|
|
3782
3843
|
name: string;
|
|
3783
|
-
days: number[];
|
|
3784
|
-
timezone: string;
|
|
3785
3844
|
variables: Record<string, unknown>;
|
|
3786
|
-
|
|
3845
|
+
timezone: string;
|
|
3846
|
+
customerId: string;
|
|
3847
|
+
days: number[];
|
|
3848
|
+
runsAs: "none" | "one";
|
|
3787
3849
|
instruction: string;
|
|
3788
3850
|
answerTo: "none" | "webhook";
|
|
3789
3851
|
repeat: "once" | "repeat";
|
|
3790
3852
|
time: string;
|
|
3791
|
-
|
|
3853
|
+
cron?: string | undefined;
|
|
3854
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
3855
|
+
monthDay?: number | "last" | undefined;
|
|
3792
3856
|
}, {
|
|
3793
|
-
every: "week" | "day" | "hour";
|
|
3857
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3858
|
+
id: string;
|
|
3794
3859
|
kind: "schedule";
|
|
3795
3860
|
date: string;
|
|
3796
|
-
id: string;
|
|
3797
3861
|
tenantId: string;
|
|
3798
3862
|
enabled: boolean;
|
|
3799
3863
|
name: string;
|
|
3800
|
-
days: number[];
|
|
3801
3864
|
timezone: string;
|
|
3802
|
-
|
|
3865
|
+
customerId: string;
|
|
3866
|
+
days: number[];
|
|
3867
|
+
runsAs: "none" | "one";
|
|
3803
3868
|
instruction: string;
|
|
3804
3869
|
answerTo: "none" | "webhook";
|
|
3805
3870
|
repeat: "once" | "repeat";
|
|
3806
3871
|
time: string;
|
|
3807
|
-
customerId: string;
|
|
3808
3872
|
variables?: Record<string, unknown> | undefined;
|
|
3873
|
+
cron?: string | undefined;
|
|
3874
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
3875
|
+
monthDay?: number | "last" | undefined;
|
|
3809
3876
|
}>]>, "many">>>;
|
|
3877
|
+
workflows: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3878
|
+
workflowId: z.ZodString;
|
|
3879
|
+
version: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"live">]>;
|
|
3880
|
+
}, "strict", z.ZodTypeAny, {
|
|
3881
|
+
version: number | "live";
|
|
3882
|
+
workflowId: string;
|
|
3883
|
+
}, {
|
|
3884
|
+
version: number | "live";
|
|
3885
|
+
workflowId: string;
|
|
3886
|
+
}>, "many">>>;
|
|
3810
3887
|
model: z.ZodOptional<z.ZodObject<{
|
|
3811
3888
|
id: z.ZodString;
|
|
3812
|
-
effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
|
|
3889
|
+
effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
3813
3890
|
}, "strict", z.ZodTypeAny, {
|
|
3814
3891
|
id: string;
|
|
3815
|
-
effort: "
|
|
3892
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
3816
3893
|
}, {
|
|
3817
3894
|
id: string;
|
|
3818
|
-
effort: "
|
|
3895
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
3819
3896
|
}>>;
|
|
3820
3897
|
instructions: z.ZodOptional<z.ZodObject<{
|
|
3821
3898
|
text: z.ZodString;
|
|
@@ -3884,6 +3961,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3884
3961
|
}, "strict", z.ZodTypeAny, {
|
|
3885
3962
|
id: string;
|
|
3886
3963
|
name: string;
|
|
3964
|
+
cases: {
|
|
3965
|
+
text: string;
|
|
3966
|
+
}[];
|
|
3887
3967
|
files: {
|
|
3888
3968
|
name: string;
|
|
3889
3969
|
content: string;
|
|
@@ -3892,9 +3972,6 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3892
3972
|
summary: string;
|
|
3893
3973
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3894
3974
|
load: "auto" | "always";
|
|
3895
|
-
cases: {
|
|
3896
|
-
text: string;
|
|
3897
|
-
}[];
|
|
3898
3975
|
exceptions: {
|
|
3899
3976
|
text: string;
|
|
3900
3977
|
}[];
|
|
@@ -3910,12 +3987,12 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3910
3987
|
}, {
|
|
3911
3988
|
id: string;
|
|
3912
3989
|
name: string;
|
|
3913
|
-
summary: string;
|
|
3914
|
-
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3915
|
-
load: "auto" | "always";
|
|
3916
3990
|
cases: {
|
|
3917
3991
|
text: string;
|
|
3918
3992
|
}[];
|
|
3993
|
+
summary: string;
|
|
3994
|
+
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3995
|
+
load: "auto" | "always";
|
|
3919
3996
|
exceptions: {
|
|
3920
3997
|
text: string;
|
|
3921
3998
|
}[];
|
|
@@ -3988,7 +4065,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3988
4065
|
enabled: boolean;
|
|
3989
4066
|
files: "per_customer" | "per_run";
|
|
3990
4067
|
configured: boolean;
|
|
3991
|
-
size: "medium" | "
|
|
4068
|
+
size: "medium" | "large" | "small";
|
|
3992
4069
|
access: "allow" | "ask" | "block";
|
|
3993
4070
|
languages: string[];
|
|
3994
4071
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -3996,7 +4073,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3996
4073
|
enabled: boolean;
|
|
3997
4074
|
files: "per_customer" | "per_run";
|
|
3998
4075
|
configured: boolean;
|
|
3999
|
-
size: "medium" | "
|
|
4076
|
+
size: "medium" | "large" | "small";
|
|
4000
4077
|
access: "allow" | "ask" | "block";
|
|
4001
4078
|
languages: string[];
|
|
4002
4079
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -4038,28 +4115,28 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4038
4115
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
4039
4116
|
key: z.ZodString;
|
|
4040
4117
|
}, "strict", z.ZodTypeAny, {
|
|
4041
|
-
path: string[];
|
|
4042
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4043
4118
|
key: string;
|
|
4044
|
-
|
|
4045
|
-
}, {
|
|
4119
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4046
4120
|
path: string[];
|
|
4047
|
-
|
|
4121
|
+
target: "path" | "body" | "query" | "header";
|
|
4122
|
+
}, {
|
|
4048
4123
|
key: string;
|
|
4049
|
-
|
|
4124
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4125
|
+
path: string[];
|
|
4126
|
+
target: "path" | "body" | "query" | "header";
|
|
4050
4127
|
}>, "many">>;
|
|
4051
4128
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4052
4129
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
4053
4130
|
}, "strict", z.ZodTypeAny, {
|
|
4054
|
-
headers: Record<string, string>;
|
|
4055
|
-
body: string;
|
|
4056
4131
|
path: string;
|
|
4057
4132
|
id: string;
|
|
4058
4133
|
name: string;
|
|
4134
|
+
headers: Record<string, string>;
|
|
4135
|
+
body: string;
|
|
4059
4136
|
query: Record<string, string>;
|
|
4060
4137
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4061
|
-
bodyType: "json" | "
|
|
4062
|
-
readAs: "
|
|
4138
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4139
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4063
4140
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4064
4141
|
summary: string;
|
|
4065
4142
|
latencyMs: number | null;
|
|
@@ -4067,58 +4144,51 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4067
4144
|
effects: "read" | "write" | "unclassified";
|
|
4068
4145
|
permission: "allow" | "ask" | "block";
|
|
4069
4146
|
bindings: {
|
|
4070
|
-
path: string[];
|
|
4071
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4072
4147
|
key: string;
|
|
4073
|
-
|
|
4148
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4149
|
+
path: string[];
|
|
4150
|
+
target: "path" | "body" | "query" | "header";
|
|
4074
4151
|
}[];
|
|
4075
|
-
sample?: unknown;
|
|
4076
4152
|
inputSchema?: Record<string, unknown> | undefined;
|
|
4153
|
+
sample?: unknown;
|
|
4077
4154
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4078
4155
|
}, {
|
|
4079
4156
|
path: string;
|
|
4080
4157
|
id: string;
|
|
4081
4158
|
name: string;
|
|
4082
4159
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4083
|
-
bodyType: "json" | "
|
|
4084
|
-
readAs: "
|
|
4160
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4161
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4085
4162
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4086
4163
|
summary: string;
|
|
4087
4164
|
latencyMs: number | null;
|
|
4088
4165
|
visibleFields: string[];
|
|
4089
4166
|
effects: "read" | "write" | "unclassified";
|
|
4167
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4090
4168
|
headers?: Record<string, string> | undefined;
|
|
4091
4169
|
body?: string | undefined;
|
|
4092
4170
|
sample?: unknown;
|
|
4093
4171
|
query?: Record<string, string> | undefined;
|
|
4094
4172
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
4095
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4096
4173
|
bindings?: {
|
|
4097
|
-
path: string[];
|
|
4098
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4099
4174
|
key: string;
|
|
4100
|
-
|
|
4175
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4176
|
+
path: string[];
|
|
4177
|
+
target: "path" | "body" | "query" | "header";
|
|
4101
4178
|
}[] | undefined;
|
|
4102
4179
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4103
4180
|
}>, "many">;
|
|
4104
4181
|
}, "strict", z.ZodTypeAny, {
|
|
4105
|
-
kind: "http" | "graphql" | "openapi";
|
|
4106
|
-
id: string;
|
|
4107
|
-
name: string;
|
|
4108
|
-
host: string;
|
|
4109
|
-
baseUrl: string;
|
|
4110
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
4111
|
-
sendCustomerIdentity: boolean;
|
|
4112
4182
|
calls: {
|
|
4113
|
-
headers: Record<string, string>;
|
|
4114
|
-
body: string;
|
|
4115
4183
|
path: string;
|
|
4116
4184
|
id: string;
|
|
4117
4185
|
name: string;
|
|
4186
|
+
headers: Record<string, string>;
|
|
4187
|
+
body: string;
|
|
4118
4188
|
query: Record<string, string>;
|
|
4119
4189
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4120
|
-
bodyType: "json" | "
|
|
4121
|
-
readAs: "
|
|
4190
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4191
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4122
4192
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4123
4193
|
summary: string;
|
|
4124
4194
|
latencyMs: number | null;
|
|
@@ -4126,51 +4196,58 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4126
4196
|
effects: "read" | "write" | "unclassified";
|
|
4127
4197
|
permission: "allow" | "ask" | "block";
|
|
4128
4198
|
bindings: {
|
|
4129
|
-
path: string[];
|
|
4130
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4131
4199
|
key: string;
|
|
4132
|
-
|
|
4200
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4201
|
+
path: string[];
|
|
4202
|
+
target: "path" | "body" | "query" | "header";
|
|
4133
4203
|
}[];
|
|
4134
|
-
sample?: unknown;
|
|
4135
4204
|
inputSchema?: Record<string, unknown> | undefined;
|
|
4205
|
+
sample?: unknown;
|
|
4136
4206
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4137
4207
|
}[];
|
|
4138
|
-
credentialId?: string | undefined;
|
|
4139
|
-
authHeader?: string | undefined;
|
|
4140
|
-
}, {
|
|
4141
|
-
kind: "http" | "graphql" | "openapi";
|
|
4142
4208
|
id: string;
|
|
4209
|
+
kind: "http" | "graphql" | "openapi";
|
|
4143
4210
|
name: string;
|
|
4144
4211
|
host: string;
|
|
4145
4212
|
baseUrl: string;
|
|
4146
|
-
auth: "
|
|
4213
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
4147
4214
|
sendCustomerIdentity: boolean;
|
|
4215
|
+
credentialId?: string | undefined;
|
|
4216
|
+
authHeader?: string | undefined;
|
|
4217
|
+
}, {
|
|
4148
4218
|
calls: {
|
|
4149
4219
|
path: string;
|
|
4150
4220
|
id: string;
|
|
4151
4221
|
name: string;
|
|
4152
4222
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4153
|
-
bodyType: "json" | "
|
|
4154
|
-
readAs: "
|
|
4223
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4224
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4155
4225
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4156
4226
|
summary: string;
|
|
4157
4227
|
latencyMs: number | null;
|
|
4158
4228
|
visibleFields: string[];
|
|
4159
4229
|
effects: "read" | "write" | "unclassified";
|
|
4230
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4160
4231
|
headers?: Record<string, string> | undefined;
|
|
4161
4232
|
body?: string | undefined;
|
|
4162
4233
|
sample?: unknown;
|
|
4163
4234
|
query?: Record<string, string> | undefined;
|
|
4164
4235
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
4165
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4166
4236
|
bindings?: {
|
|
4167
|
-
path: string[];
|
|
4168
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4169
4237
|
key: string;
|
|
4170
|
-
|
|
4238
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4239
|
+
path: string[];
|
|
4240
|
+
target: "path" | "body" | "query" | "header";
|
|
4171
4241
|
}[] | undefined;
|
|
4172
4242
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4173
4243
|
}[];
|
|
4244
|
+
id: string;
|
|
4245
|
+
kind: "http" | "graphql" | "openapi";
|
|
4246
|
+
name: string;
|
|
4247
|
+
host: string;
|
|
4248
|
+
baseUrl: string;
|
|
4249
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
4250
|
+
sendCustomerIdentity: boolean;
|
|
4174
4251
|
credentialId?: string | undefined;
|
|
4175
4252
|
authHeader?: string | undefined;
|
|
4176
4253
|
}>, "many">;
|
|
@@ -4196,7 +4273,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4196
4273
|
pinned: z.ZodArray<z.ZodString, "many">;
|
|
4197
4274
|
}, "strict", z.ZodTypeAny, {
|
|
4198
4275
|
key: string;
|
|
4199
|
-
account: "customer" | "
|
|
4276
|
+
account: "customer" | "deployment" | "project";
|
|
4200
4277
|
rules: {
|
|
4201
4278
|
read: "allow" | "ask" | "block";
|
|
4202
4279
|
change: "allow" | "ask" | "block";
|
|
@@ -4208,7 +4285,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4208
4285
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4209
4286
|
}, {
|
|
4210
4287
|
key: string;
|
|
4211
|
-
account: "customer" | "
|
|
4288
|
+
account: "customer" | "deployment" | "project";
|
|
4212
4289
|
rules: {
|
|
4213
4290
|
read: "allow" | "ask" | "block";
|
|
4214
4291
|
change: "allow" | "ask" | "block";
|
|
@@ -4232,14 +4309,14 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4232
4309
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4233
4310
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4234
4311
|
}, "strict", z.ZodTypeAny, {
|
|
4312
|
+
description: string;
|
|
4235
4313
|
name: string;
|
|
4236
4314
|
inputSchema: Record<string, unknown>;
|
|
4237
|
-
description: string;
|
|
4238
4315
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4239
4316
|
}, {
|
|
4317
|
+
description: string;
|
|
4240
4318
|
name: string;
|
|
4241
4319
|
inputSchema: Record<string, unknown>;
|
|
4242
|
-
description: string;
|
|
4243
4320
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4244
4321
|
}>, "many">>;
|
|
4245
4322
|
groups: z.ZodArray<z.ZodObject<{
|
|
@@ -4259,15 +4336,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4259
4336
|
rule: "allow" | "ask" | "block";
|
|
4260
4337
|
}>, "many">;
|
|
4261
4338
|
}, "strict", z.ZodTypeAny, {
|
|
4262
|
-
status: "connecting" | "connected";
|
|
4263
4339
|
id: string;
|
|
4340
|
+
status: "connecting" | "connected";
|
|
4264
4341
|
name: string;
|
|
4265
4342
|
url: string;
|
|
4266
4343
|
toolCount: number;
|
|
4267
4344
|
definitions: {
|
|
4345
|
+
description: string;
|
|
4268
4346
|
name: string;
|
|
4269
4347
|
inputSchema: Record<string, unknown>;
|
|
4270
|
-
description: string;
|
|
4271
4348
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4272
4349
|
}[];
|
|
4273
4350
|
groups: {
|
|
@@ -4278,8 +4355,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4278
4355
|
}[];
|
|
4279
4356
|
credentialId?: string | undefined;
|
|
4280
4357
|
}, {
|
|
4281
|
-
status: "connecting" | "connected";
|
|
4282
4358
|
id: string;
|
|
4359
|
+
status: "connecting" | "connected";
|
|
4283
4360
|
name: string;
|
|
4284
4361
|
url: string;
|
|
4285
4362
|
toolCount: number;
|
|
@@ -4291,9 +4368,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4291
4368
|
}[];
|
|
4292
4369
|
credentialId?: string | undefined;
|
|
4293
4370
|
definitions?: {
|
|
4371
|
+
description: string;
|
|
4294
4372
|
name: string;
|
|
4295
4373
|
inputSchema: Record<string, unknown>;
|
|
4296
|
-
description: string;
|
|
4297
4374
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4298
4375
|
}[] | undefined;
|
|
4299
4376
|
}>, "many">;
|
|
@@ -4320,11 +4397,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4320
4397
|
done: z.ZodNumber;
|
|
4321
4398
|
total: z.ZodNumber;
|
|
4322
4399
|
}, "strip", z.ZodTypeAny, {
|
|
4323
|
-
done: number;
|
|
4324
4400
|
total: number;
|
|
4325
|
-
}, {
|
|
4326
4401
|
done: number;
|
|
4402
|
+
}, {
|
|
4327
4403
|
total: number;
|
|
4404
|
+
done: number;
|
|
4328
4405
|
}>>;
|
|
4329
4406
|
progress: z.ZodOptional<z.ZodObject<{
|
|
4330
4407
|
stage: z.ZodString;
|
|
@@ -4332,29 +4409,29 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4332
4409
|
total: z.ZodNumber;
|
|
4333
4410
|
retryable: z.ZodBoolean;
|
|
4334
4411
|
}, "strip", z.ZodTypeAny, {
|
|
4335
|
-
done: number;
|
|
4336
4412
|
total: number;
|
|
4413
|
+
done: number;
|
|
4337
4414
|
stage: string;
|
|
4338
4415
|
retryable: boolean;
|
|
4339
4416
|
}, {
|
|
4340
|
-
done: number;
|
|
4341
4417
|
total: number;
|
|
4418
|
+
done: number;
|
|
4342
4419
|
stage: string;
|
|
4343
4420
|
retryable: boolean;
|
|
4344
4421
|
}>>;
|
|
4345
4422
|
syncedLabel: z.ZodString;
|
|
4346
4423
|
}, "strict", z.ZodTypeAny, {
|
|
4424
|
+
id: string;
|
|
4347
4425
|
status: "failed" | "ready" | "syncing";
|
|
4348
4426
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4349
|
-
id: string;
|
|
4350
4427
|
name: string;
|
|
4351
4428
|
scope: "customer" | "project";
|
|
4352
4429
|
detail: string;
|
|
4353
4430
|
syncedLabel: string;
|
|
4354
4431
|
error?: string | undefined;
|
|
4355
4432
|
pages?: {
|
|
4356
|
-
done: number;
|
|
4357
4433
|
total: number;
|
|
4434
|
+
done: number;
|
|
4358
4435
|
} | undefined;
|
|
4359
4436
|
url?: string | undefined;
|
|
4360
4437
|
connectedSource?: {
|
|
@@ -4362,32 +4439,32 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4362
4439
|
resourceId: string;
|
|
4363
4440
|
} | undefined;
|
|
4364
4441
|
progress?: {
|
|
4365
|
-
done: number;
|
|
4366
4442
|
total: number;
|
|
4443
|
+
done: number;
|
|
4367
4444
|
stage: string;
|
|
4368
4445
|
retryable: boolean;
|
|
4369
4446
|
} | undefined;
|
|
4370
4447
|
}, {
|
|
4448
|
+
id: string;
|
|
4371
4449
|
status: "failed" | "ready" | "syncing";
|
|
4372
4450
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4373
|
-
id: string;
|
|
4374
4451
|
name: string;
|
|
4375
4452
|
detail: string;
|
|
4376
4453
|
syncedLabel: string;
|
|
4377
4454
|
error?: string | undefined;
|
|
4455
|
+
scope?: "customer" | "project" | undefined;
|
|
4378
4456
|
pages?: {
|
|
4379
|
-
done: number;
|
|
4380
4457
|
total: number;
|
|
4458
|
+
done: number;
|
|
4381
4459
|
} | undefined;
|
|
4382
4460
|
url?: string | undefined;
|
|
4383
|
-
scope?: "customer" | "project" | undefined;
|
|
4384
4461
|
connectedSource?: {
|
|
4385
4462
|
accountId: string;
|
|
4386
4463
|
resourceId: string;
|
|
4387
4464
|
} | undefined;
|
|
4388
4465
|
progress?: {
|
|
4389
|
-
done: number;
|
|
4390
4466
|
total: number;
|
|
4467
|
+
done: number;
|
|
4391
4468
|
stage: string;
|
|
4392
4469
|
retryable: boolean;
|
|
4393
4470
|
} | undefined;
|
|
@@ -4397,27 +4474,27 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4397
4474
|
provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
|
|
4398
4475
|
preferSites: z.ZodArray<z.ZodString, "many">;
|
|
4399
4476
|
}, "strict", z.ZodTypeAny, {
|
|
4400
|
-
enabled: boolean;
|
|
4401
4477
|
provider: "builtin";
|
|
4478
|
+
enabled: boolean;
|
|
4402
4479
|
preferSites: string[];
|
|
4403
4480
|
}, {
|
|
4404
|
-
enabled: boolean;
|
|
4405
4481
|
provider: "builtin" | "exa" | "firecrawl";
|
|
4482
|
+
enabled: boolean;
|
|
4406
4483
|
preferSites: string[];
|
|
4407
4484
|
}>;
|
|
4408
4485
|
}, "strict", z.ZodTypeAny, {
|
|
4409
4486
|
knowledge: {
|
|
4487
|
+
id: string;
|
|
4410
4488
|
status: "failed" | "ready" | "syncing";
|
|
4411
4489
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4412
|
-
id: string;
|
|
4413
4490
|
name: string;
|
|
4414
4491
|
scope: "customer" | "project";
|
|
4415
4492
|
detail: string;
|
|
4416
4493
|
syncedLabel: string;
|
|
4417
4494
|
error?: string | undefined;
|
|
4418
4495
|
pages?: {
|
|
4419
|
-
done: number;
|
|
4420
4496
|
total: number;
|
|
4497
|
+
done: number;
|
|
4421
4498
|
} | undefined;
|
|
4422
4499
|
url?: string | undefined;
|
|
4423
4500
|
connectedSource?: {
|
|
@@ -4425,8 +4502,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4425
4502
|
resourceId: string;
|
|
4426
4503
|
} | undefined;
|
|
4427
4504
|
progress?: {
|
|
4428
|
-
done: number;
|
|
4429
4505
|
total: number;
|
|
4506
|
+
done: number;
|
|
4430
4507
|
stage: string;
|
|
4431
4508
|
retryable: boolean;
|
|
4432
4509
|
} | undefined;
|
|
@@ -4435,23 +4512,16 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4435
4512
|
searchPastChats: boolean;
|
|
4436
4513
|
conversationRetentionDays: number;
|
|
4437
4514
|
apis: {
|
|
4438
|
-
kind: "http" | "graphql" | "openapi";
|
|
4439
|
-
id: string;
|
|
4440
|
-
name: string;
|
|
4441
|
-
host: string;
|
|
4442
|
-
baseUrl: string;
|
|
4443
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
4444
|
-
sendCustomerIdentity: boolean;
|
|
4445
4515
|
calls: {
|
|
4446
|
-
headers: Record<string, string>;
|
|
4447
|
-
body: string;
|
|
4448
4516
|
path: string;
|
|
4449
4517
|
id: string;
|
|
4450
4518
|
name: string;
|
|
4519
|
+
headers: Record<string, string>;
|
|
4520
|
+
body: string;
|
|
4451
4521
|
query: Record<string, string>;
|
|
4452
4522
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4453
|
-
bodyType: "json" | "
|
|
4454
|
-
readAs: "
|
|
4523
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4524
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4455
4525
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4456
4526
|
summary: string;
|
|
4457
4527
|
latencyMs: number | null;
|
|
@@ -4459,21 +4529,28 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4459
4529
|
effects: "read" | "write" | "unclassified";
|
|
4460
4530
|
permission: "allow" | "ask" | "block";
|
|
4461
4531
|
bindings: {
|
|
4462
|
-
path: string[];
|
|
4463
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4464
4532
|
key: string;
|
|
4465
|
-
|
|
4533
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4534
|
+
path: string[];
|
|
4535
|
+
target: "path" | "body" | "query" | "header";
|
|
4466
4536
|
}[];
|
|
4467
|
-
sample?: unknown;
|
|
4468
4537
|
inputSchema?: Record<string, unknown> | undefined;
|
|
4538
|
+
sample?: unknown;
|
|
4469
4539
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4470
4540
|
}[];
|
|
4541
|
+
id: string;
|
|
4542
|
+
kind: "http" | "graphql" | "openapi";
|
|
4543
|
+
name: string;
|
|
4544
|
+
host: string;
|
|
4545
|
+
baseUrl: string;
|
|
4546
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
4547
|
+
sendCustomerIdentity: boolean;
|
|
4471
4548
|
credentialId?: string | undefined;
|
|
4472
4549
|
authHeader?: string | undefined;
|
|
4473
4550
|
}[];
|
|
4474
4551
|
apps: {
|
|
4475
4552
|
key: string;
|
|
4476
|
-
account: "customer" | "
|
|
4553
|
+
account: "customer" | "deployment" | "project";
|
|
4477
4554
|
rules: {
|
|
4478
4555
|
read: "allow" | "ask" | "block";
|
|
4479
4556
|
change: "allow" | "ask" | "block";
|
|
@@ -4485,15 +4562,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4485
4562
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4486
4563
|
}[];
|
|
4487
4564
|
mcpServers: {
|
|
4488
|
-
status: "connecting" | "connected";
|
|
4489
4565
|
id: string;
|
|
4566
|
+
status: "connecting" | "connected";
|
|
4490
4567
|
name: string;
|
|
4491
4568
|
url: string;
|
|
4492
4569
|
toolCount: number;
|
|
4493
4570
|
definitions: {
|
|
4571
|
+
description: string;
|
|
4494
4572
|
name: string;
|
|
4495
4573
|
inputSchema: Record<string, unknown>;
|
|
4496
|
-
description: string;
|
|
4497
4574
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4498
4575
|
}[];
|
|
4499
4576
|
groups: {
|
|
@@ -4505,76 +4582,76 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4505
4582
|
credentialId?: string | undefined;
|
|
4506
4583
|
}[];
|
|
4507
4584
|
webSearch: {
|
|
4508
|
-
enabled: boolean;
|
|
4509
4585
|
provider: "builtin";
|
|
4586
|
+
enabled: boolean;
|
|
4510
4587
|
preferSites: string[];
|
|
4511
4588
|
};
|
|
4512
4589
|
}, {
|
|
4513
4590
|
knowledge: {
|
|
4591
|
+
id: string;
|
|
4514
4592
|
status: "failed" | "ready" | "syncing";
|
|
4515
4593
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4516
|
-
id: string;
|
|
4517
4594
|
name: string;
|
|
4518
4595
|
detail: string;
|
|
4519
4596
|
syncedLabel: string;
|
|
4520
4597
|
error?: string | undefined;
|
|
4598
|
+
scope?: "customer" | "project" | undefined;
|
|
4521
4599
|
pages?: {
|
|
4522
|
-
done: number;
|
|
4523
4600
|
total: number;
|
|
4601
|
+
done: number;
|
|
4524
4602
|
} | undefined;
|
|
4525
4603
|
url?: string | undefined;
|
|
4526
|
-
scope?: "customer" | "project" | undefined;
|
|
4527
4604
|
connectedSource?: {
|
|
4528
4605
|
accountId: string;
|
|
4529
4606
|
resourceId: string;
|
|
4530
4607
|
} | undefined;
|
|
4531
4608
|
progress?: {
|
|
4532
|
-
done: number;
|
|
4533
4609
|
total: number;
|
|
4610
|
+
done: number;
|
|
4534
4611
|
stage: string;
|
|
4535
4612
|
retryable: boolean;
|
|
4536
4613
|
} | undefined;
|
|
4537
4614
|
}[];
|
|
4538
4615
|
apis: {
|
|
4539
|
-
kind: "http" | "graphql" | "openapi";
|
|
4540
|
-
id: string;
|
|
4541
|
-
name: string;
|
|
4542
|
-
host: string;
|
|
4543
|
-
baseUrl: string;
|
|
4544
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
4545
|
-
sendCustomerIdentity: boolean;
|
|
4546
4616
|
calls: {
|
|
4547
4617
|
path: string;
|
|
4548
4618
|
id: string;
|
|
4549
4619
|
name: string;
|
|
4550
4620
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4551
|
-
bodyType: "json" | "
|
|
4552
|
-
readAs: "
|
|
4621
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4622
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4553
4623
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4554
4624
|
summary: string;
|
|
4555
4625
|
latencyMs: number | null;
|
|
4556
4626
|
visibleFields: string[];
|
|
4557
4627
|
effects: "read" | "write" | "unclassified";
|
|
4628
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4558
4629
|
headers?: Record<string, string> | undefined;
|
|
4559
4630
|
body?: string | undefined;
|
|
4560
4631
|
sample?: unknown;
|
|
4561
4632
|
query?: Record<string, string> | undefined;
|
|
4562
4633
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
4563
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4564
4634
|
bindings?: {
|
|
4565
|
-
path: string[];
|
|
4566
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4567
4635
|
key: string;
|
|
4568
|
-
|
|
4636
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4637
|
+
path: string[];
|
|
4638
|
+
target: "path" | "body" | "query" | "header";
|
|
4569
4639
|
}[] | undefined;
|
|
4570
4640
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4571
4641
|
}[];
|
|
4642
|
+
id: string;
|
|
4643
|
+
kind: "http" | "graphql" | "openapi";
|
|
4644
|
+
name: string;
|
|
4645
|
+
host: string;
|
|
4646
|
+
baseUrl: string;
|
|
4647
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
4648
|
+
sendCustomerIdentity: boolean;
|
|
4572
4649
|
credentialId?: string | undefined;
|
|
4573
4650
|
authHeader?: string | undefined;
|
|
4574
4651
|
}[];
|
|
4575
4652
|
apps: {
|
|
4576
4653
|
key: string;
|
|
4577
|
-
account: "customer" | "
|
|
4654
|
+
account: "customer" | "deployment" | "project";
|
|
4578
4655
|
rules: {
|
|
4579
4656
|
read: "allow" | "ask" | "block";
|
|
4580
4657
|
change: "allow" | "ask" | "block";
|
|
@@ -4586,8 +4663,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4586
4663
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4587
4664
|
}[];
|
|
4588
4665
|
mcpServers: {
|
|
4589
|
-
status: "connecting" | "connected";
|
|
4590
4666
|
id: string;
|
|
4667
|
+
status: "connecting" | "connected";
|
|
4591
4668
|
name: string;
|
|
4592
4669
|
url: string;
|
|
4593
4670
|
toolCount: number;
|
|
@@ -4599,15 +4676,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4599
4676
|
}[];
|
|
4600
4677
|
credentialId?: string | undefined;
|
|
4601
4678
|
definitions?: {
|
|
4679
|
+
description: string;
|
|
4602
4680
|
name: string;
|
|
4603
4681
|
inputSchema: Record<string, unknown>;
|
|
4604
|
-
description: string;
|
|
4605
4682
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4606
4683
|
}[] | undefined;
|
|
4607
4684
|
}[];
|
|
4608
4685
|
webSearch: {
|
|
4609
|
-
enabled: boolean;
|
|
4610
4686
|
provider: "builtin" | "exa" | "firecrawl";
|
|
4687
|
+
enabled: boolean;
|
|
4611
4688
|
preferSites: string[];
|
|
4612
4689
|
};
|
|
4613
4690
|
readPages?: boolean | undefined;
|
|
@@ -4624,21 +4701,21 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4624
4701
|
chipNote: z.ZodString;
|
|
4625
4702
|
description: z.ZodString;
|
|
4626
4703
|
}, "strict", z.ZodTypeAny, {
|
|
4704
|
+
description: string;
|
|
4627
4705
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4628
4706
|
required: boolean;
|
|
4629
4707
|
name: string;
|
|
4630
|
-
description: string;
|
|
4631
4708
|
defaultValue: string;
|
|
4632
|
-
usedIn: ("
|
|
4709
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
4633
4710
|
chipNote: string;
|
|
4634
4711
|
values?: string[] | undefined;
|
|
4635
4712
|
}, {
|
|
4713
|
+
description: string;
|
|
4636
4714
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4637
4715
|
required: boolean;
|
|
4638
4716
|
name: string;
|
|
4639
|
-
description: string;
|
|
4640
4717
|
defaultValue: string;
|
|
4641
|
-
usedIn: ("
|
|
4718
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
4642
4719
|
chipNote: string;
|
|
4643
4720
|
values?: string[] | undefined;
|
|
4644
4721
|
}>, "many">>;
|
|
@@ -4656,20 +4733,20 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4656
4733
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4657
4734
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4658
4735
|
}, "strict", z.ZodTypeAny, {
|
|
4659
|
-
|
|
4736
|
+
description: string;
|
|
4737
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4660
4738
|
id: string;
|
|
4661
4739
|
required: boolean;
|
|
4662
4740
|
name: string;
|
|
4663
|
-
description: string;
|
|
4664
4741
|
level: number;
|
|
4665
4742
|
values?: string[] | undefined;
|
|
4666
4743
|
items?: Record<string, unknown> | undefined;
|
|
4667
4744
|
}, {
|
|
4668
|
-
|
|
4745
|
+
description: string;
|
|
4746
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4669
4747
|
id: string;
|
|
4670
4748
|
required: boolean;
|
|
4671
4749
|
name: string;
|
|
4672
|
-
description: string;
|
|
4673
4750
|
level: number;
|
|
4674
4751
|
values?: string[] | undefined;
|
|
4675
4752
|
items?: Record<string, unknown> | undefined;
|
|
@@ -4677,32 +4754,32 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4677
4754
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4678
4755
|
}, "strict", z.ZodTypeAny, {
|
|
4679
4756
|
shape: {
|
|
4680
|
-
|
|
4757
|
+
description: string;
|
|
4758
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4681
4759
|
id: string;
|
|
4682
4760
|
required: boolean;
|
|
4683
4761
|
name: string;
|
|
4684
|
-
description: string;
|
|
4685
4762
|
level: number;
|
|
4686
4763
|
values?: string[] | undefined;
|
|
4687
4764
|
items?: Record<string, unknown> | undefined;
|
|
4688
4765
|
}[];
|
|
4689
|
-
format: "
|
|
4690
|
-
delivery: "
|
|
4766
|
+
format: "text" | "json";
|
|
4767
|
+
delivery: "webhook" | "stream" | "once";
|
|
4691
4768
|
webhookUrl: string;
|
|
4692
4769
|
schema?: Record<string, unknown> | undefined;
|
|
4693
4770
|
}, {
|
|
4694
4771
|
shape: {
|
|
4695
|
-
|
|
4772
|
+
description: string;
|
|
4773
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4696
4774
|
id: string;
|
|
4697
4775
|
required: boolean;
|
|
4698
4776
|
name: string;
|
|
4699
|
-
description: string;
|
|
4700
4777
|
level: number;
|
|
4701
4778
|
values?: string[] | undefined;
|
|
4702
4779
|
items?: Record<string, unknown> | undefined;
|
|
4703
4780
|
}[];
|
|
4704
|
-
format: "
|
|
4705
|
-
delivery: "
|
|
4781
|
+
format: "text" | "json";
|
|
4782
|
+
delivery: "webhook" | "stream" | "once";
|
|
4706
4783
|
webhookUrl: string;
|
|
4707
4784
|
schema?: Record<string, unknown> | undefined;
|
|
4708
4785
|
}>>;
|
|
@@ -4719,38 +4796,38 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4719
4796
|
path: z.ZodArray<z.ZodString, "many">;
|
|
4720
4797
|
target: z.ZodArray<z.ZodString, "many">;
|
|
4721
4798
|
}, "strict", z.ZodTypeAny, {
|
|
4722
|
-
path: string[];
|
|
4723
4799
|
source: "message" | "variable" | "context";
|
|
4800
|
+
path: string[];
|
|
4724
4801
|
target: string[];
|
|
4725
4802
|
}, {
|
|
4726
|
-
path: string[];
|
|
4727
4803
|
source: "message" | "variable" | "context";
|
|
4804
|
+
path: string[];
|
|
4728
4805
|
target: string[];
|
|
4729
4806
|
}>, "many">;
|
|
4730
4807
|
}, "strict", z.ZodTypeAny, {
|
|
4731
|
-
kind: "workbench" | "mcp" | "app";
|
|
4732
4808
|
id: string;
|
|
4809
|
+
kind: "workbench" | "mcp" | "app";
|
|
4733
4810
|
name: string;
|
|
4811
|
+
input: Record<string, unknown>;
|
|
4812
|
+
toolKey: string;
|
|
4734
4813
|
capabilityId: string;
|
|
4735
4814
|
bindings: {
|
|
4736
|
-
path: string[];
|
|
4737
4815
|
source: "message" | "variable" | "context";
|
|
4816
|
+
path: string[];
|
|
4738
4817
|
target: string[];
|
|
4739
4818
|
}[];
|
|
4740
|
-
toolKey: string;
|
|
4741
|
-
input: Record<string, unknown>;
|
|
4742
4819
|
}, {
|
|
4743
|
-
kind: "workbench" | "mcp" | "app";
|
|
4744
4820
|
id: string;
|
|
4821
|
+
kind: "workbench" | "mcp" | "app";
|
|
4745
4822
|
name: string;
|
|
4823
|
+
input: Record<string, unknown>;
|
|
4824
|
+
toolKey: string;
|
|
4746
4825
|
capabilityId: string;
|
|
4747
4826
|
bindings: {
|
|
4748
|
-
path: string[];
|
|
4749
4827
|
source: "message" | "variable" | "context";
|
|
4828
|
+
path: string[];
|
|
4750
4829
|
target: string[];
|
|
4751
4830
|
}[];
|
|
4752
|
-
toolKey: string;
|
|
4753
|
-
input: Record<string, unknown>;
|
|
4754
4831
|
}>, "many">>;
|
|
4755
4832
|
before: z.ZodArray<z.ZodString, "many">;
|
|
4756
4833
|
after: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4762,17 +4839,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4762
4839
|
before: string[];
|
|
4763
4840
|
after: string[];
|
|
4764
4841
|
preparations: {
|
|
4765
|
-
kind: "workbench" | "mcp" | "app";
|
|
4766
4842
|
id: string;
|
|
4843
|
+
kind: "workbench" | "mcp" | "app";
|
|
4767
4844
|
name: string;
|
|
4845
|
+
input: Record<string, unknown>;
|
|
4846
|
+
toolKey: string;
|
|
4768
4847
|
capabilityId: string;
|
|
4769
4848
|
bindings: {
|
|
4770
|
-
path: string[];
|
|
4771
4849
|
source: "message" | "variable" | "context";
|
|
4850
|
+
path: string[];
|
|
4772
4851
|
target: string[];
|
|
4773
4852
|
}[];
|
|
4774
|
-
toolKey: string;
|
|
4775
|
-
input: Record<string, unknown>;
|
|
4776
4853
|
}[];
|
|
4777
4854
|
stopOnFail: string[];
|
|
4778
4855
|
stepLimit: number;
|
|
@@ -4783,63 +4860,79 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4783
4860
|
stopOnFail: string[];
|
|
4784
4861
|
stepLimit: number | null;
|
|
4785
4862
|
preparations?: {
|
|
4786
|
-
kind: "workbench" | "mcp" | "app";
|
|
4787
4863
|
id: string;
|
|
4864
|
+
kind: "workbench" | "mcp" | "app";
|
|
4788
4865
|
name: string;
|
|
4866
|
+
input: Record<string, unknown>;
|
|
4867
|
+
toolKey: string;
|
|
4789
4868
|
capabilityId: string;
|
|
4790
4869
|
bindings: {
|
|
4791
|
-
path: string[];
|
|
4792
4870
|
source: "message" | "variable" | "context";
|
|
4871
|
+
path: string[];
|
|
4793
4872
|
target: string[];
|
|
4794
4873
|
}[];
|
|
4795
|
-
toolKey: string;
|
|
4796
|
-
input: Record<string, unknown>;
|
|
4797
4874
|
}[] | undefined;
|
|
4798
4875
|
}>>;
|
|
4799
4876
|
}, "strict", z.ZodTypeAny, {
|
|
4800
|
-
|
|
4877
|
+
memory?: {
|
|
4878
|
+
never: string[];
|
|
4879
|
+
enabled: boolean;
|
|
4880
|
+
configured: boolean;
|
|
4881
|
+
who: {
|
|
4882
|
+
customer: boolean;
|
|
4883
|
+
company: boolean;
|
|
4884
|
+
bot: boolean;
|
|
4885
|
+
};
|
|
4886
|
+
what: string;
|
|
4887
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
4888
|
+
} | undefined;
|
|
4889
|
+
model?: {
|
|
4890
|
+
id: string;
|
|
4891
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
4892
|
+
} | undefined;
|
|
4801
4893
|
workbench?: {
|
|
4802
4894
|
enabled: boolean;
|
|
4803
4895
|
files: "per_customer" | "per_run";
|
|
4804
4896
|
configured: boolean;
|
|
4805
|
-
size: "medium" | "
|
|
4897
|
+
size: "medium" | "large" | "small";
|
|
4806
4898
|
access: "allow" | "ask" | "block";
|
|
4807
4899
|
languages: string[];
|
|
4808
4900
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
4809
4901
|
} | undefined;
|
|
4810
|
-
|
|
4811
|
-
enabled: boolean;
|
|
4812
|
-
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
4813
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
4814
|
-
} | undefined;
|
|
4815
|
-
timezone?: string | null | undefined;
|
|
4902
|
+
name?: string | undefined;
|
|
4816
4903
|
variables?: {
|
|
4904
|
+
description: string;
|
|
4817
4905
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4818
4906
|
required: boolean;
|
|
4819
4907
|
name: string;
|
|
4820
|
-
description: string;
|
|
4821
4908
|
defaultValue: string;
|
|
4822
|
-
usedIn: ("
|
|
4909
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
4823
4910
|
chipNote: string;
|
|
4824
4911
|
values?: string[] | undefined;
|
|
4825
4912
|
}[] | undefined;
|
|
4913
|
+
timezone?: string | null | undefined;
|
|
4914
|
+
files?: {
|
|
4915
|
+
enabled: boolean;
|
|
4916
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
4917
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
4918
|
+
} | undefined;
|
|
4826
4919
|
instructions?: {
|
|
4827
4920
|
text: string;
|
|
4828
4921
|
editedAt: string | null;
|
|
4829
4922
|
} | undefined;
|
|
4830
4923
|
context?: {
|
|
4831
4924
|
knowledge: {
|
|
4925
|
+
id: string;
|
|
4832
4926
|
status: "failed" | "ready" | "syncing";
|
|
4833
4927
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4834
|
-
id: string;
|
|
4835
4928
|
name: string;
|
|
4836
4929
|
scope: "customer" | "project";
|
|
4837
4930
|
detail: string;
|
|
4838
4931
|
syncedLabel: string;
|
|
4839
4932
|
error?: string | undefined;
|
|
4840
4933
|
pages?: {
|
|
4841
|
-
done: number;
|
|
4842
4934
|
total: number;
|
|
4935
|
+
done: number;
|
|
4843
4936
|
} | undefined;
|
|
4844
4937
|
url?: string | undefined;
|
|
4845
4938
|
connectedSource?: {
|
|
@@ -4847,8 +4940,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4847
4940
|
resourceId: string;
|
|
4848
4941
|
} | undefined;
|
|
4849
4942
|
progress?: {
|
|
4850
|
-
done: number;
|
|
4851
4943
|
total: number;
|
|
4944
|
+
done: number;
|
|
4852
4945
|
stage: string;
|
|
4853
4946
|
retryable: boolean;
|
|
4854
4947
|
} | undefined;
|
|
@@ -4857,23 +4950,16 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4857
4950
|
searchPastChats: boolean;
|
|
4858
4951
|
conversationRetentionDays: number;
|
|
4859
4952
|
apis: {
|
|
4860
|
-
kind: "http" | "graphql" | "openapi";
|
|
4861
|
-
id: string;
|
|
4862
|
-
name: string;
|
|
4863
|
-
host: string;
|
|
4864
|
-
baseUrl: string;
|
|
4865
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
4866
|
-
sendCustomerIdentity: boolean;
|
|
4867
4953
|
calls: {
|
|
4868
|
-
headers: Record<string, string>;
|
|
4869
|
-
body: string;
|
|
4870
4954
|
path: string;
|
|
4871
4955
|
id: string;
|
|
4872
4956
|
name: string;
|
|
4957
|
+
headers: Record<string, string>;
|
|
4958
|
+
body: string;
|
|
4873
4959
|
query: Record<string, string>;
|
|
4874
4960
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4875
|
-
bodyType: "json" | "
|
|
4876
|
-
readAs: "
|
|
4961
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
4962
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4877
4963
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4878
4964
|
summary: string;
|
|
4879
4965
|
latencyMs: number | null;
|
|
@@ -4881,21 +4967,28 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4881
4967
|
effects: "read" | "write" | "unclassified";
|
|
4882
4968
|
permission: "allow" | "ask" | "block";
|
|
4883
4969
|
bindings: {
|
|
4884
|
-
path: string[];
|
|
4885
|
-
source: "variable" | "context" | "model" | "identity";
|
|
4886
4970
|
key: string;
|
|
4887
|
-
|
|
4971
|
+
source: "model" | "variable" | "context" | "identity";
|
|
4972
|
+
path: string[];
|
|
4973
|
+
target: "path" | "body" | "query" | "header";
|
|
4888
4974
|
}[];
|
|
4889
|
-
sample?: unknown;
|
|
4890
4975
|
inputSchema?: Record<string, unknown> | undefined;
|
|
4976
|
+
sample?: unknown;
|
|
4891
4977
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4892
4978
|
}[];
|
|
4979
|
+
id: string;
|
|
4980
|
+
kind: "http" | "graphql" | "openapi";
|
|
4981
|
+
name: string;
|
|
4982
|
+
host: string;
|
|
4983
|
+
baseUrl: string;
|
|
4984
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
4985
|
+
sendCustomerIdentity: boolean;
|
|
4893
4986
|
credentialId?: string | undefined;
|
|
4894
4987
|
authHeader?: string | undefined;
|
|
4895
4988
|
}[];
|
|
4896
4989
|
apps: {
|
|
4897
4990
|
key: string;
|
|
4898
|
-
account: "customer" | "
|
|
4991
|
+
account: "customer" | "deployment" | "project";
|
|
4899
4992
|
rules: {
|
|
4900
4993
|
read: "allow" | "ask" | "block";
|
|
4901
4994
|
change: "allow" | "ask" | "block";
|
|
@@ -4907,15 +5000,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4907
5000
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4908
5001
|
}[];
|
|
4909
5002
|
mcpServers: {
|
|
4910
|
-
status: "connecting" | "connected";
|
|
4911
5003
|
id: string;
|
|
5004
|
+
status: "connecting" | "connected";
|
|
4912
5005
|
name: string;
|
|
4913
5006
|
url: string;
|
|
4914
5007
|
toolCount: number;
|
|
4915
5008
|
definitions: {
|
|
5009
|
+
description: string;
|
|
4916
5010
|
name: string;
|
|
4917
5011
|
inputSchema: Record<string, unknown>;
|
|
4918
|
-
description: string;
|
|
4919
5012
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4920
5013
|
}[];
|
|
4921
5014
|
groups: {
|
|
@@ -4927,38 +5020,25 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4927
5020
|
credentialId?: string | undefined;
|
|
4928
5021
|
}[];
|
|
4929
5022
|
webSearch: {
|
|
4930
|
-
enabled: boolean;
|
|
4931
5023
|
provider: "builtin";
|
|
5024
|
+
enabled: boolean;
|
|
4932
5025
|
preferSites: string[];
|
|
4933
5026
|
};
|
|
4934
5027
|
} | undefined;
|
|
4935
|
-
memory?: {
|
|
4936
|
-
never: string[];
|
|
4937
|
-
enabled: boolean;
|
|
4938
|
-
configured: boolean;
|
|
4939
|
-
who: {
|
|
4940
|
-
customer: boolean;
|
|
4941
|
-
company: boolean;
|
|
4942
|
-
bot: boolean;
|
|
4943
|
-
};
|
|
4944
|
-
what: string;
|
|
4945
|
-
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
4946
|
-
} | undefined;
|
|
4947
|
-
model?: {
|
|
4948
|
-
id: string;
|
|
4949
|
-
effort: "low" | "medium" | "high" | "xhigh";
|
|
4950
|
-
} | undefined;
|
|
4951
5028
|
publicDescription?: string | undefined;
|
|
4952
5029
|
iconAssetId?: string | null | undefined;
|
|
4953
5030
|
avatar?: {
|
|
5031
|
+
version: 1;
|
|
4954
5032
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
4955
5033
|
seed: string;
|
|
4956
|
-
version: 1;
|
|
4957
5034
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
4958
5035
|
} | null | undefined;
|
|
4959
5036
|
skills?: {
|
|
4960
5037
|
id: string;
|
|
4961
5038
|
name: string;
|
|
5039
|
+
cases: {
|
|
5040
|
+
text: string;
|
|
5041
|
+
}[];
|
|
4962
5042
|
files: {
|
|
4963
5043
|
name: string;
|
|
4964
5044
|
content: string;
|
|
@@ -4967,9 +5047,6 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4967
5047
|
summary: string;
|
|
4968
5048
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
4969
5049
|
load: "auto" | "always";
|
|
4970
|
-
cases: {
|
|
4971
|
-
text: string;
|
|
4972
|
-
}[];
|
|
4973
5050
|
exceptions: {
|
|
4974
5051
|
text: string;
|
|
4975
5052
|
}[];
|
|
@@ -4985,17 +5062,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4985
5062
|
}[] | undefined;
|
|
4986
5063
|
answer?: {
|
|
4987
5064
|
shape: {
|
|
4988
|
-
|
|
5065
|
+
description: string;
|
|
5066
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4989
5067
|
id: string;
|
|
4990
5068
|
required: boolean;
|
|
4991
5069
|
name: string;
|
|
4992
|
-
description: string;
|
|
4993
5070
|
level: number;
|
|
4994
5071
|
values?: string[] | undefined;
|
|
4995
5072
|
items?: Record<string, unknown> | undefined;
|
|
4996
5073
|
}[];
|
|
4997
|
-
format: "
|
|
4998
|
-
delivery: "
|
|
5074
|
+
format: "text" | "json";
|
|
5075
|
+
delivery: "webhook" | "stream" | "once";
|
|
4999
5076
|
webhookUrl: string;
|
|
5000
5077
|
schema?: Record<string, unknown> | undefined;
|
|
5001
5078
|
} | undefined;
|
|
@@ -5004,29 +5081,29 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5004
5081
|
before: string[];
|
|
5005
5082
|
after: string[];
|
|
5006
5083
|
preparations: {
|
|
5007
|
-
kind: "workbench" | "mcp" | "app";
|
|
5008
5084
|
id: string;
|
|
5085
|
+
kind: "workbench" | "mcp" | "app";
|
|
5009
5086
|
name: string;
|
|
5087
|
+
input: Record<string, unknown>;
|
|
5088
|
+
toolKey: string;
|
|
5010
5089
|
capabilityId: string;
|
|
5011
5090
|
bindings: {
|
|
5012
|
-
path: string[];
|
|
5013
5091
|
source: "message" | "variable" | "context";
|
|
5092
|
+
path: string[];
|
|
5014
5093
|
target: string[];
|
|
5015
5094
|
}[];
|
|
5016
|
-
toolKey: string;
|
|
5017
|
-
input: Record<string, unknown>;
|
|
5018
5095
|
}[];
|
|
5019
5096
|
stopOnFail: string[];
|
|
5020
5097
|
stepLimit: number;
|
|
5021
5098
|
} | undefined;
|
|
5022
5099
|
triggers?: ({
|
|
5023
|
-
|
|
5100
|
+
label: string;
|
|
5024
5101
|
id: string;
|
|
5102
|
+
kind: "app";
|
|
5025
5103
|
enabled: boolean;
|
|
5026
5104
|
name: string;
|
|
5027
5105
|
variables: Record<string, unknown>;
|
|
5028
5106
|
subscriptionId: string;
|
|
5029
|
-
label: string;
|
|
5030
5107
|
providerKey: string;
|
|
5031
5108
|
eventTypes: string[];
|
|
5032
5109
|
runsAs: "none" | "field";
|
|
@@ -5034,8 +5111,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5034
5111
|
instruction: string;
|
|
5035
5112
|
answerTo: "none" | "webhook";
|
|
5036
5113
|
} | {
|
|
5037
|
-
kind: "webhook";
|
|
5038
5114
|
id: string;
|
|
5115
|
+
kind: "webhook";
|
|
5039
5116
|
tenantId: string;
|
|
5040
5117
|
enabled: boolean;
|
|
5041
5118
|
name: string;
|
|
@@ -5045,120 +5122,143 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5045
5122
|
instruction: string;
|
|
5046
5123
|
answerTo: "none" | "webhook";
|
|
5047
5124
|
} | {
|
|
5048
|
-
every: "week" | "day" | "hour";
|
|
5125
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
5126
|
+
id: string;
|
|
5049
5127
|
kind: "schedule";
|
|
5050
5128
|
date: string;
|
|
5051
|
-
id: string;
|
|
5052
5129
|
tenantId: string;
|
|
5053
5130
|
enabled: boolean;
|
|
5054
5131
|
name: string;
|
|
5055
|
-
days: number[];
|
|
5056
|
-
timezone: string;
|
|
5057
5132
|
variables: Record<string, unknown>;
|
|
5058
|
-
|
|
5133
|
+
timezone: string;
|
|
5134
|
+
customerId: string;
|
|
5135
|
+
days: number[];
|
|
5136
|
+
runsAs: "none" | "one";
|
|
5059
5137
|
instruction: string;
|
|
5060
5138
|
answerTo: "none" | "webhook";
|
|
5061
5139
|
repeat: "once" | "repeat";
|
|
5062
5140
|
time: string;
|
|
5063
|
-
|
|
5141
|
+
cron?: string | undefined;
|
|
5142
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
5143
|
+
monthDay?: number | "last" | undefined;
|
|
5064
5144
|
})[] | undefined;
|
|
5145
|
+
workflows?: {
|
|
5146
|
+
version: number | "live";
|
|
5147
|
+
workflowId: string;
|
|
5148
|
+
}[] | undefined;
|
|
5065
5149
|
}, {
|
|
5066
|
-
|
|
5150
|
+
memory?: {
|
|
5151
|
+
never: string[];
|
|
5152
|
+
enabled: boolean;
|
|
5153
|
+
configured: boolean;
|
|
5154
|
+
who: {
|
|
5155
|
+
customer: boolean;
|
|
5156
|
+
company: boolean;
|
|
5157
|
+
bot: boolean;
|
|
5158
|
+
};
|
|
5159
|
+
what: string;
|
|
5160
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
5161
|
+
} | undefined;
|
|
5162
|
+
model?: {
|
|
5163
|
+
id: string;
|
|
5164
|
+
effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
|
|
5165
|
+
} | undefined;
|
|
5067
5166
|
workbench?: {
|
|
5068
5167
|
enabled: boolean;
|
|
5069
5168
|
files: "per_customer" | "per_run";
|
|
5070
5169
|
configured: boolean;
|
|
5071
|
-
size: "medium" | "
|
|
5170
|
+
size: "medium" | "large" | "small";
|
|
5072
5171
|
access: "allow" | "ask" | "block";
|
|
5073
5172
|
languages: string[];
|
|
5074
5173
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
5075
5174
|
} | undefined;
|
|
5076
|
-
|
|
5077
|
-
enabled: boolean;
|
|
5078
|
-
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
5079
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
5080
|
-
} | undefined;
|
|
5081
|
-
timezone?: string | null | undefined;
|
|
5175
|
+
name?: string | undefined;
|
|
5082
5176
|
variables?: {
|
|
5177
|
+
description: string;
|
|
5083
5178
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
5084
5179
|
required: boolean;
|
|
5085
5180
|
name: string;
|
|
5086
|
-
description: string;
|
|
5087
5181
|
defaultValue: string;
|
|
5088
|
-
usedIn: ("
|
|
5182
|
+
usedIn: ("api" | "instructions" | "run_plan")[];
|
|
5089
5183
|
chipNote: string;
|
|
5090
5184
|
values?: string[] | undefined;
|
|
5091
5185
|
}[] | undefined;
|
|
5186
|
+
timezone?: string | null | undefined;
|
|
5187
|
+
files?: {
|
|
5188
|
+
enabled: boolean;
|
|
5189
|
+
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
5190
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
5191
|
+
} | undefined;
|
|
5092
5192
|
instructions?: {
|
|
5093
5193
|
text: string;
|
|
5094
5194
|
editedAt: string | null;
|
|
5095
5195
|
} | undefined;
|
|
5096
5196
|
context?: {
|
|
5097
5197
|
knowledge: {
|
|
5198
|
+
id: string;
|
|
5098
5199
|
status: "failed" | "ready" | "syncing";
|
|
5099
5200
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5100
|
-
id: string;
|
|
5101
5201
|
name: string;
|
|
5102
5202
|
detail: string;
|
|
5103
5203
|
syncedLabel: string;
|
|
5104
5204
|
error?: string | undefined;
|
|
5205
|
+
scope?: "customer" | "project" | undefined;
|
|
5105
5206
|
pages?: {
|
|
5106
|
-
done: number;
|
|
5107
5207
|
total: number;
|
|
5208
|
+
done: number;
|
|
5108
5209
|
} | undefined;
|
|
5109
5210
|
url?: string | undefined;
|
|
5110
|
-
scope?: "customer" | "project" | undefined;
|
|
5111
5211
|
connectedSource?: {
|
|
5112
5212
|
accountId: string;
|
|
5113
5213
|
resourceId: string;
|
|
5114
5214
|
} | undefined;
|
|
5115
5215
|
progress?: {
|
|
5116
|
-
done: number;
|
|
5117
5216
|
total: number;
|
|
5217
|
+
done: number;
|
|
5118
5218
|
stage: string;
|
|
5119
5219
|
retryable: boolean;
|
|
5120
5220
|
} | undefined;
|
|
5121
5221
|
}[];
|
|
5122
5222
|
apis: {
|
|
5123
|
-
kind: "http" | "graphql" | "openapi";
|
|
5124
|
-
id: string;
|
|
5125
|
-
name: string;
|
|
5126
|
-
host: string;
|
|
5127
|
-
baseUrl: string;
|
|
5128
|
-
auth: "one" | "none" | "each" | "oauth";
|
|
5129
|
-
sendCustomerIdentity: boolean;
|
|
5130
5223
|
calls: {
|
|
5131
5224
|
path: string;
|
|
5132
5225
|
id: string;
|
|
5133
5226
|
name: string;
|
|
5134
5227
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
5135
|
-
bodyType: "json" | "
|
|
5136
|
-
readAs: "
|
|
5228
|
+
bodyType: "json" | "form" | "xml" | "gql";
|
|
5229
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
5137
5230
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
5138
5231
|
summary: string;
|
|
5139
5232
|
latencyMs: number | null;
|
|
5140
5233
|
visibleFields: string[];
|
|
5141
5234
|
effects: "read" | "write" | "unclassified";
|
|
5235
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
5142
5236
|
headers?: Record<string, string> | undefined;
|
|
5143
5237
|
body?: string | undefined;
|
|
5144
5238
|
sample?: unknown;
|
|
5145
5239
|
query?: Record<string, string> | undefined;
|
|
5146
5240
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
5147
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
5148
5241
|
bindings?: {
|
|
5149
|
-
path: string[];
|
|
5150
|
-
source: "variable" | "context" | "model" | "identity";
|
|
5151
5242
|
key: string;
|
|
5152
|
-
|
|
5243
|
+
source: "model" | "variable" | "context" | "identity";
|
|
5244
|
+
path: string[];
|
|
5245
|
+
target: "path" | "body" | "query" | "header";
|
|
5153
5246
|
}[] | undefined;
|
|
5154
5247
|
responseSchema?: Record<string, unknown> | undefined;
|
|
5155
5248
|
}[];
|
|
5249
|
+
id: string;
|
|
5250
|
+
kind: "http" | "graphql" | "openapi";
|
|
5251
|
+
name: string;
|
|
5252
|
+
host: string;
|
|
5253
|
+
baseUrl: string;
|
|
5254
|
+
auth: "none" | "one" | "each" | "oauth";
|
|
5255
|
+
sendCustomerIdentity: boolean;
|
|
5156
5256
|
credentialId?: string | undefined;
|
|
5157
5257
|
authHeader?: string | undefined;
|
|
5158
5258
|
}[];
|
|
5159
5259
|
apps: {
|
|
5160
5260
|
key: string;
|
|
5161
|
-
account: "customer" | "
|
|
5261
|
+
account: "customer" | "deployment" | "project";
|
|
5162
5262
|
rules: {
|
|
5163
5263
|
read: "allow" | "ask" | "block";
|
|
5164
5264
|
change: "allow" | "ask" | "block";
|
|
@@ -5170,8 +5270,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5170
5270
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
5171
5271
|
}[];
|
|
5172
5272
|
mcpServers: {
|
|
5173
|
-
status: "connecting" | "connected";
|
|
5174
5273
|
id: string;
|
|
5274
|
+
status: "connecting" | "connected";
|
|
5175
5275
|
name: string;
|
|
5176
5276
|
url: string;
|
|
5177
5277
|
toolCount: number;
|
|
@@ -5183,54 +5283,38 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5183
5283
|
}[];
|
|
5184
5284
|
credentialId?: string | undefined;
|
|
5185
5285
|
definitions?: {
|
|
5286
|
+
description: string;
|
|
5186
5287
|
name: string;
|
|
5187
5288
|
inputSchema: Record<string, unknown>;
|
|
5188
|
-
description: string;
|
|
5189
5289
|
outputSchema?: Record<string, unknown> | undefined;
|
|
5190
5290
|
}[] | undefined;
|
|
5191
5291
|
}[];
|
|
5192
5292
|
webSearch: {
|
|
5193
|
-
enabled: boolean;
|
|
5194
5293
|
provider: "builtin" | "exa" | "firecrawl";
|
|
5294
|
+
enabled: boolean;
|
|
5195
5295
|
preferSites: string[];
|
|
5196
5296
|
};
|
|
5197
5297
|
readPages?: boolean | undefined;
|
|
5198
5298
|
searchPastChats?: boolean | undefined;
|
|
5199
5299
|
conversationRetentionDays?: number | undefined;
|
|
5200
5300
|
} | undefined;
|
|
5201
|
-
memory?: {
|
|
5202
|
-
never: string[];
|
|
5203
|
-
enabled: boolean;
|
|
5204
|
-
configured: boolean;
|
|
5205
|
-
who: {
|
|
5206
|
-
customer: boolean;
|
|
5207
|
-
company: boolean;
|
|
5208
|
-
bot: boolean;
|
|
5209
|
-
};
|
|
5210
|
-
what: string;
|
|
5211
|
-
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
5212
|
-
} | undefined;
|
|
5213
|
-
model?: {
|
|
5214
|
-
id: string;
|
|
5215
|
-
effort: "low" | "medium" | "high" | "xhigh";
|
|
5216
|
-
} | undefined;
|
|
5217
5301
|
publicDescription?: string | undefined;
|
|
5218
5302
|
iconAssetId?: string | null | undefined;
|
|
5219
5303
|
avatar?: {
|
|
5304
|
+
version: 1;
|
|
5220
5305
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
5221
5306
|
seed: string;
|
|
5222
|
-
version: 1;
|
|
5223
5307
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
5224
5308
|
} | null | undefined;
|
|
5225
5309
|
skills?: {
|
|
5226
5310
|
id: string;
|
|
5227
5311
|
name: string;
|
|
5228
|
-
summary: string;
|
|
5229
|
-
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
5230
|
-
load: "auto" | "always";
|
|
5231
5312
|
cases: {
|
|
5232
5313
|
text: string;
|
|
5233
5314
|
}[];
|
|
5315
|
+
summary: string;
|
|
5316
|
+
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
5317
|
+
load: "auto" | "always";
|
|
5234
5318
|
exceptions: {
|
|
5235
5319
|
text: string;
|
|
5236
5320
|
}[];
|
|
@@ -5251,17 +5335,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5251
5335
|
}[] | undefined;
|
|
5252
5336
|
answer?: {
|
|
5253
5337
|
shape: {
|
|
5254
|
-
|
|
5338
|
+
description: string;
|
|
5339
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5255
5340
|
id: string;
|
|
5256
5341
|
required: boolean;
|
|
5257
5342
|
name: string;
|
|
5258
|
-
description: string;
|
|
5259
5343
|
level: number;
|
|
5260
5344
|
values?: string[] | undefined;
|
|
5261
5345
|
items?: Record<string, unknown> | undefined;
|
|
5262
5346
|
}[];
|
|
5263
|
-
format: "
|
|
5264
|
-
delivery: "
|
|
5347
|
+
format: "text" | "json";
|
|
5348
|
+
delivery: "webhook" | "stream" | "once";
|
|
5265
5349
|
webhookUrl: string;
|
|
5266
5350
|
schema?: Record<string, unknown> | undefined;
|
|
5267
5351
|
} | undefined;
|
|
@@ -5272,26 +5356,26 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5272
5356
|
stopOnFail: string[];
|
|
5273
5357
|
stepLimit: number | null;
|
|
5274
5358
|
preparations?: {
|
|
5275
|
-
kind: "workbench" | "mcp" | "app";
|
|
5276
5359
|
id: string;
|
|
5360
|
+
kind: "workbench" | "mcp" | "app";
|
|
5277
5361
|
name: string;
|
|
5362
|
+
input: Record<string, unknown>;
|
|
5363
|
+
toolKey: string;
|
|
5278
5364
|
capabilityId: string;
|
|
5279
5365
|
bindings: {
|
|
5280
|
-
path: string[];
|
|
5281
5366
|
source: "message" | "variable" | "context";
|
|
5367
|
+
path: string[];
|
|
5282
5368
|
target: string[];
|
|
5283
5369
|
}[];
|
|
5284
|
-
toolKey: string;
|
|
5285
|
-
input: Record<string, unknown>;
|
|
5286
5370
|
}[] | undefined;
|
|
5287
5371
|
} | undefined;
|
|
5288
5372
|
triggers?: ({
|
|
5289
|
-
|
|
5373
|
+
label: string;
|
|
5290
5374
|
id: string;
|
|
5375
|
+
kind: "app";
|
|
5291
5376
|
enabled: boolean;
|
|
5292
5377
|
name: string;
|
|
5293
5378
|
subscriptionId: string;
|
|
5294
|
-
label: string;
|
|
5295
5379
|
providerKey: string;
|
|
5296
5380
|
eventTypes: string[];
|
|
5297
5381
|
runsAs: "none" | "field";
|
|
@@ -5300,8 +5384,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5300
5384
|
answerTo: "none" | "webhook";
|
|
5301
5385
|
variables?: Record<string, unknown> | undefined;
|
|
5302
5386
|
} | {
|
|
5303
|
-
kind: "webhook";
|
|
5304
5387
|
id: string;
|
|
5388
|
+
kind: "webhook";
|
|
5305
5389
|
tenantId: string;
|
|
5306
5390
|
enabled: boolean;
|
|
5307
5391
|
name: string;
|
|
@@ -5311,23 +5395,30 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5311
5395
|
answerTo: "none" | "webhook";
|
|
5312
5396
|
variables?: Record<string, unknown> | undefined;
|
|
5313
5397
|
} | {
|
|
5314
|
-
every: "week" | "day" | "hour";
|
|
5398
|
+
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
5399
|
+
id: string;
|
|
5315
5400
|
kind: "schedule";
|
|
5316
5401
|
date: string;
|
|
5317
|
-
id: string;
|
|
5318
5402
|
tenantId: string;
|
|
5319
5403
|
enabled: boolean;
|
|
5320
5404
|
name: string;
|
|
5321
|
-
days: number[];
|
|
5322
5405
|
timezone: string;
|
|
5323
|
-
|
|
5406
|
+
customerId: string;
|
|
5407
|
+
days: number[];
|
|
5408
|
+
runsAs: "none" | "one";
|
|
5324
5409
|
instruction: string;
|
|
5325
5410
|
answerTo: "none" | "webhook";
|
|
5326
5411
|
repeat: "once" | "repeat";
|
|
5327
5412
|
time: string;
|
|
5328
|
-
customerId: string;
|
|
5329
5413
|
variables?: Record<string, unknown> | undefined;
|
|
5414
|
+
cron?: string | undefined;
|
|
5415
|
+
intervalMinutes?: 30 | 10 | 5 | 15 | undefined;
|
|
5416
|
+
monthDay?: number | "last" | undefined;
|
|
5330
5417
|
})[] | undefined;
|
|
5418
|
+
workflows?: {
|
|
5419
|
+
version: number | "live";
|
|
5420
|
+
workflowId: string;
|
|
5421
|
+
}[] | undefined;
|
|
5331
5422
|
}>;
|
|
5332
5423
|
export declare const botRunInputSchema: z.ZodObject<{
|
|
5333
5424
|
attachments: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
@@ -5343,7 +5434,7 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
5343
5434
|
message: string;
|
|
5344
5435
|
variables: Record<string, unknown>;
|
|
5345
5436
|
attachments: string[];
|
|
5346
|
-
dataMode: "
|
|
5437
|
+
dataMode: "live" | "sample";
|
|
5347
5438
|
revision?: number | undefined;
|
|
5348
5439
|
conversationId?: string | undefined;
|
|
5349
5440
|
runId?: string | undefined;
|
|
@@ -5352,11 +5443,11 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
5352
5443
|
}, {
|
|
5353
5444
|
message: string;
|
|
5354
5445
|
revision?: number | undefined;
|
|
5446
|
+
variables?: Record<string, unknown> | undefined;
|
|
5355
5447
|
conversationId?: string | undefined;
|
|
5356
5448
|
runId?: string | undefined;
|
|
5357
|
-
variables?: Record<string, unknown> | undefined;
|
|
5358
5449
|
attachments?: string[] | undefined;
|
|
5359
|
-
dataMode?: "
|
|
5450
|
+
dataMode?: "live" | "sample" | undefined;
|
|
5360
5451
|
customerSessionId?: string | undefined;
|
|
5361
5452
|
connectionReturnUrl?: string | undefined;
|
|
5362
5453
|
}>;
|