@stacklink/sdk 0.6.3 → 0.6.5
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 +16 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/billing-plans.d.ts +139 -10
- package/dist/src/domain/billing-plans.d.ts.map +1 -1
- package/dist/src/domain/billing-plans.js +64 -10
- package/dist/src/domain/billing-plans.js.map +1 -1
- package/dist/src/domain/bot-contract.d.ts +1330 -761
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +41 -2
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/bot-library.d.ts +192 -0
- package/dist/src/domain/bot-library.d.ts.map +1 -0
- package/dist/src/domain/bot-library.js +180 -0
- package/dist/src/domain/bot-library.js.map +1 -0
- package/dist/src/domain/memory-contract.d.ts +1121 -624
- package/dist/src/domain/memory-contract.d.ts.map +1 -1
- package/dist/src/domain/memory-contract.js +128 -24
- package/dist/src/domain/memory-contract.js.map +1 -1
- package/dist/src/domain/platform-approval-contract.d.ts +24 -24
- package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +2 -2
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +14371 -7817
- package/dist/src/domain/workflow-contract.d.ts.map +1 -1
- package/dist/src/domain/workflow-contract.js +23 -2
- package/dist/src/domain/workflow-contract.js.map +1 -1
- package/dist/src/sdk/index.d.ts +59 -11
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +15 -3
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/memory-lifecycle.d.ts +1 -4
- package/dist/src/sdk/memory-lifecycle.d.ts.map +1 -1
- package/dist/src/sdk/memory-lifecycle.js +2 -7
- package/dist/src/sdk/memory-lifecycle.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: "cancelled" | "waiting" | "queued" | "running" | "failed" | "all" | "followup" | "files" | "completed" | "stopped" | "delivery_failed";
|
|
51
51
|
limit: number;
|
|
52
|
-
|
|
53
|
-
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
52
|
+
status?: "pending" | "cancelled" | "queued" | "running" | "failed" | "completed" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_approval" | "waiting_for_execution" | undefined;
|
|
54
53
|
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
|
-
|
|
64
|
-
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
62
|
+
filter?: "cancelled" | "waiting" | "queued" | "running" | "failed" | "all" | "followup" | "files" | "completed" | "stopped" | "delivery_failed" | undefined;
|
|
63
|
+
status?: "pending" | "cancelled" | "queued" | "running" | "failed" | "completed" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_approval" | "waiting_for_execution" | undefined;
|
|
65
64
|
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,11 +76,11 @@ 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: 1 | 7 | 30;
|
|
80
80
|
timezone?: string | undefined;
|
|
81
81
|
}, {
|
|
82
|
-
timezone?: string | undefined;
|
|
83
82
|
days?: number | undefined;
|
|
83
|
+
timezone?: string | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
export type BotBudgetView = {
|
|
86
86
|
scope: 'ai' | 'total';
|
|
@@ -107,6 +107,8 @@ export type BotBudgetView = {
|
|
|
107
107
|
usedUsd: number;
|
|
108
108
|
reservedUsd: number;
|
|
109
109
|
additionalLimitUsd: number;
|
|
110
|
+
microsPerCredit?: number;
|
|
111
|
+
availableMicros?: string;
|
|
110
112
|
additionalSpendingEnabled: boolean;
|
|
111
113
|
funding?: 'non_expiring_internal_credit' | 'plan_allowance' | 'workspace_credits';
|
|
112
114
|
} | null;
|
|
@@ -351,11 +353,11 @@ export declare const botFileSettingsSchema: z.ZodObject<{
|
|
|
351
353
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
352
354
|
}, "strict", z.ZodTypeAny, {
|
|
353
355
|
enabled: boolean;
|
|
354
|
-
kinds: ("
|
|
356
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
355
357
|
bigSpreadsheets: "workbench" | "preview";
|
|
356
358
|
}, {
|
|
357
359
|
enabled: boolean;
|
|
358
|
-
kinds: ("
|
|
360
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
359
361
|
bigSpreadsheets: "workbench" | "preview";
|
|
360
362
|
}>;
|
|
361
363
|
export declare const botFileUploadSchema: z.ZodObject<{
|
|
@@ -398,29 +400,29 @@ export declare const botUploadRequestSchema: z.ZodObject<{
|
|
|
398
400
|
}, "strict", z.ZodTypeAny, {
|
|
399
401
|
message: string;
|
|
400
402
|
runId: string;
|
|
401
|
-
variables?: Record<string, unknown> | undefined;
|
|
402
403
|
conversationId?: string | undefined;
|
|
404
|
+
variables?: Record<string, unknown> | undefined;
|
|
403
405
|
}, {
|
|
404
406
|
message: string;
|
|
405
407
|
runId: string;
|
|
406
|
-
variables?: Record<string, unknown> | undefined;
|
|
407
408
|
conversationId?: string | undefined;
|
|
409
|
+
variables?: Record<string, unknown> | undefined;
|
|
408
410
|
}>>;
|
|
409
411
|
}, "strict", z.ZodTypeAny, {
|
|
410
412
|
requestId: string;
|
|
411
413
|
task?: {
|
|
412
414
|
message: string;
|
|
413
415
|
runId: string;
|
|
414
|
-
variables?: Record<string, unknown> | undefined;
|
|
415
416
|
conversationId?: string | undefined;
|
|
417
|
+
variables?: Record<string, unknown> | undefined;
|
|
416
418
|
} | undefined;
|
|
417
419
|
}, {
|
|
418
420
|
requestId: string;
|
|
419
421
|
task?: {
|
|
420
422
|
message: string;
|
|
421
423
|
runId: string;
|
|
422
|
-
variables?: Record<string, unknown> | undefined;
|
|
423
424
|
conversationId?: string | undefined;
|
|
425
|
+
variables?: Record<string, unknown> | undefined;
|
|
424
426
|
} | undefined;
|
|
425
427
|
}>;
|
|
426
428
|
export type BotUploadRequestView = {
|
|
@@ -468,6 +470,9 @@ export type ActionRule = "allow" | "ask" | "block";
|
|
|
468
470
|
export type AppKey = string;
|
|
469
471
|
export type BotListItem = {
|
|
470
472
|
id: string;
|
|
473
|
+
libraryKey?: string | null;
|
|
474
|
+
/** The Bot's jobs, as `Bot.jobs` (Review code null when absent). */
|
|
475
|
+
jobs?: BotJobs;
|
|
471
476
|
name: string;
|
|
472
477
|
description: string;
|
|
473
478
|
identity?: BotIdentity;
|
|
@@ -869,14 +874,14 @@ export declare const botAvatarSchema: z.ZodObject<{
|
|
|
869
874
|
seed: z.ZodString;
|
|
870
875
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
871
876
|
}, "strict", z.ZodTypeAny, {
|
|
872
|
-
version: 1;
|
|
873
877
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
874
878
|
seed: string;
|
|
879
|
+
version: 1;
|
|
875
880
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
876
881
|
}, {
|
|
877
|
-
version: 1;
|
|
878
882
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
879
883
|
seed: string;
|
|
884
|
+
version: 1;
|
|
880
885
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
881
886
|
}>;
|
|
882
887
|
export type BotAvatar = z.infer<typeof botAvatarSchema>;
|
|
@@ -896,14 +901,14 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
896
901
|
seed: z.ZodString;
|
|
897
902
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
898
903
|
}, "strict", z.ZodTypeAny, {
|
|
899
|
-
version: 1;
|
|
900
904
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
901
905
|
seed: string;
|
|
906
|
+
version: 1;
|
|
902
907
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
903
908
|
}, {
|
|
904
|
-
version: 1;
|
|
905
909
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
906
910
|
seed: string;
|
|
911
|
+
version: 1;
|
|
907
912
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
908
913
|
}>>>;
|
|
909
914
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -911,9 +916,9 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
911
916
|
publicDescription: string;
|
|
912
917
|
iconAssetId: string | null;
|
|
913
918
|
avatar?: {
|
|
914
|
-
version: 1;
|
|
915
919
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
916
920
|
seed: string;
|
|
921
|
+
version: 1;
|
|
917
922
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
918
923
|
} | null | undefined;
|
|
919
924
|
}, {
|
|
@@ -921,17 +926,232 @@ export declare const botIdentityInputSchema: z.ZodObject<{
|
|
|
921
926
|
publicDescription?: string | undefined;
|
|
922
927
|
iconAssetId?: string | null | undefined;
|
|
923
928
|
avatar?: {
|
|
924
|
-
version: 1;
|
|
925
929
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
926
930
|
seed: string;
|
|
931
|
+
version: 1;
|
|
927
932
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
928
933
|
} | null | undefined;
|
|
929
934
|
}>;
|
|
935
|
+
export declare const reviewHost: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
936
|
+
export type ReviewHost = z.infer<typeof reviewHost>;
|
|
937
|
+
export declare const reviewRepository: z.ZodObject<{
|
|
938
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
939
|
+
connectedAccountId: z.ZodString;
|
|
940
|
+
id: z.ZodString;
|
|
941
|
+
name: z.ZodString;
|
|
942
|
+
}, "strict", z.ZodTypeAny, {
|
|
943
|
+
id: string;
|
|
944
|
+
name: string;
|
|
945
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
946
|
+
connectedAccountId: string;
|
|
947
|
+
}, {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string;
|
|
950
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
951
|
+
connectedAccountId: string;
|
|
952
|
+
}>;
|
|
953
|
+
export type ReviewRepository = z.infer<typeof reviewRepository>;
|
|
954
|
+
export declare const reviewSetup: z.ZodEffects<z.ZodObject<{
|
|
955
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
956
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
957
|
+
connectedAccountId: z.ZodString;
|
|
958
|
+
id: z.ZodString;
|
|
959
|
+
name: z.ZodString;
|
|
960
|
+
}, "strict", z.ZodTypeAny, {
|
|
961
|
+
id: string;
|
|
962
|
+
name: string;
|
|
963
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
964
|
+
connectedAccountId: string;
|
|
965
|
+
}, {
|
|
966
|
+
id: string;
|
|
967
|
+
name: string;
|
|
968
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
969
|
+
connectedAccountId: string;
|
|
970
|
+
}>, "many">;
|
|
971
|
+
reviewFocus: z.ZodString;
|
|
972
|
+
}, "strict", z.ZodTypeAny, {
|
|
973
|
+
repositories: {
|
|
974
|
+
id: string;
|
|
975
|
+
name: string;
|
|
976
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
977
|
+
connectedAccountId: string;
|
|
978
|
+
}[];
|
|
979
|
+
reviewFocus: string;
|
|
980
|
+
}, {
|
|
981
|
+
repositories: {
|
|
982
|
+
id: string;
|
|
983
|
+
name: string;
|
|
984
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
985
|
+
connectedAccountId: string;
|
|
986
|
+
}[];
|
|
987
|
+
reviewFocus: string;
|
|
988
|
+
}>, {
|
|
989
|
+
repositories: {
|
|
990
|
+
id: string;
|
|
991
|
+
name: string;
|
|
992
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
993
|
+
connectedAccountId: string;
|
|
994
|
+
}[];
|
|
995
|
+
reviewFocus: string;
|
|
996
|
+
}, {
|
|
997
|
+
repositories: {
|
|
998
|
+
id: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1001
|
+
connectedAccountId: string;
|
|
1002
|
+
}[];
|
|
1003
|
+
reviewFocus: string;
|
|
1004
|
+
}>;
|
|
1005
|
+
export declare const initialReviewSetup: {
|
|
1006
|
+
repositories: never[];
|
|
1007
|
+
reviewFocus: string;
|
|
1008
|
+
};
|
|
1009
|
+
export type ReviewSettings = z.output<typeof reviewSetup>;
|
|
1010
|
+
export declare const botJobsSchema: z.ZodObject<{
|
|
1011
|
+
reviewCode: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
1012
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
1013
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
1014
|
+
connectedAccountId: z.ZodString;
|
|
1015
|
+
id: z.ZodString;
|
|
1016
|
+
name: z.ZodString;
|
|
1017
|
+
}, "strict", z.ZodTypeAny, {
|
|
1018
|
+
id: string;
|
|
1019
|
+
name: string;
|
|
1020
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1021
|
+
connectedAccountId: string;
|
|
1022
|
+
}, {
|
|
1023
|
+
id: string;
|
|
1024
|
+
name: string;
|
|
1025
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1026
|
+
connectedAccountId: string;
|
|
1027
|
+
}>, "many">;
|
|
1028
|
+
reviewFocus: z.ZodString;
|
|
1029
|
+
}, "strict", z.ZodTypeAny, {
|
|
1030
|
+
repositories: {
|
|
1031
|
+
id: string;
|
|
1032
|
+
name: string;
|
|
1033
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1034
|
+
connectedAccountId: string;
|
|
1035
|
+
}[];
|
|
1036
|
+
reviewFocus: string;
|
|
1037
|
+
}, {
|
|
1038
|
+
repositories: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
name: string;
|
|
1041
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1042
|
+
connectedAccountId: string;
|
|
1043
|
+
}[];
|
|
1044
|
+
reviewFocus: string;
|
|
1045
|
+
}>, {
|
|
1046
|
+
repositories: {
|
|
1047
|
+
id: string;
|
|
1048
|
+
name: string;
|
|
1049
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1050
|
+
connectedAccountId: string;
|
|
1051
|
+
}[];
|
|
1052
|
+
reviewFocus: string;
|
|
1053
|
+
}, {
|
|
1054
|
+
repositories: {
|
|
1055
|
+
id: string;
|
|
1056
|
+
name: string;
|
|
1057
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1058
|
+
connectedAccountId: string;
|
|
1059
|
+
}[];
|
|
1060
|
+
reviewFocus: string;
|
|
1061
|
+
}>>>;
|
|
1062
|
+
}, "strict", z.ZodTypeAny, {
|
|
1063
|
+
reviewCode: {
|
|
1064
|
+
repositories: {
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1068
|
+
connectedAccountId: string;
|
|
1069
|
+
}[];
|
|
1070
|
+
reviewFocus: string;
|
|
1071
|
+
} | null;
|
|
1072
|
+
}, {
|
|
1073
|
+
reviewCode?: {
|
|
1074
|
+
repositories: {
|
|
1075
|
+
id: string;
|
|
1076
|
+
name: string;
|
|
1077
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1078
|
+
connectedAccountId: string;
|
|
1079
|
+
}[];
|
|
1080
|
+
reviewFocus: string;
|
|
1081
|
+
} | null | undefined;
|
|
1082
|
+
}>;
|
|
1083
|
+
export type BotJobs = z.output<typeof botJobsSchema>;
|
|
1084
|
+
export declare const reviewRequestSchema: z.ZodObject<{
|
|
1085
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
1086
|
+
repositoryId: z.ZodString;
|
|
1087
|
+
pullNumber: z.ZodNumber;
|
|
1088
|
+
revision: z.ZodNumber;
|
|
1089
|
+
}, "strict", z.ZodTypeAny, {
|
|
1090
|
+
revision: number;
|
|
1091
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1092
|
+
repositoryId: string;
|
|
1093
|
+
pullNumber: number;
|
|
1094
|
+
}, {
|
|
1095
|
+
revision: number;
|
|
1096
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
1097
|
+
repositoryId: string;
|
|
1098
|
+
pullNumber: number;
|
|
1099
|
+
}>;
|
|
1100
|
+
export type ReviewRequest = z.input<typeof reviewRequestSchema>;
|
|
1101
|
+
export type ReviewResult = {
|
|
1102
|
+
id: string;
|
|
1103
|
+
status: string;
|
|
1104
|
+
head: string;
|
|
1105
|
+
url: string | null;
|
|
1106
|
+
title: string | null;
|
|
1107
|
+
omittedFiles: number;
|
|
1108
|
+
runId: string;
|
|
1109
|
+
findings: Array<{
|
|
1110
|
+
id: string;
|
|
1111
|
+
path: string;
|
|
1112
|
+
line: number;
|
|
1113
|
+
body: string;
|
|
1114
|
+
state: 'preview' | 'pending' | 'posting' | 'posted' | 'unknown' | 'fixed' | 'fix_noted' | 'fix_verified';
|
|
1115
|
+
providerId?: string | undefined;
|
|
1116
|
+
url?: string | undefined;
|
|
1117
|
+
nodeId?: string | undefined;
|
|
1118
|
+
}>;
|
|
1119
|
+
previousFindings: Array<{
|
|
1120
|
+
id: string;
|
|
1121
|
+
path: string;
|
|
1122
|
+
line: number;
|
|
1123
|
+
body: string;
|
|
1124
|
+
url: string | null;
|
|
1125
|
+
recheck: 'fixed' | 'still_open' | 'uncertain';
|
|
1126
|
+
}>;
|
|
1127
|
+
};
|
|
1128
|
+
export type ReviewSetupView = {
|
|
1129
|
+
botId: string;
|
|
1130
|
+
name: string;
|
|
1131
|
+
revision: number;
|
|
1132
|
+
publishedRevision: number | null;
|
|
1133
|
+
setupUrl: string;
|
|
1134
|
+
settings: ReviewSettings;
|
|
1135
|
+
activeRepositories: ReviewRepository[];
|
|
1136
|
+
registrations: BotNativeApp[];
|
|
1137
|
+
accounts: Array<{
|
|
1138
|
+
id: string;
|
|
1139
|
+
host: string;
|
|
1140
|
+
name: string;
|
|
1141
|
+
canPublish: boolean;
|
|
1142
|
+
}>;
|
|
1143
|
+
builtInRules: {
|
|
1144
|
+
version: string;
|
|
1145
|
+
text: string;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
930
1148
|
export type BotHelperAvailability = Record<'web_search' | 'audio_transcription', {
|
|
931
1149
|
available: boolean;
|
|
932
1150
|
message: string | null;
|
|
933
1151
|
}>;
|
|
934
1152
|
export type Bot = {
|
|
1153
|
+
jobs?: BotJobs;
|
|
1154
|
+
libraryKey?: string | null;
|
|
935
1155
|
/** Current service availability, separate from the owner's saved configuration. */
|
|
936
1156
|
helperAvailability?: BotHelperAvailability;
|
|
937
1157
|
publicDescription: string;
|
|
@@ -1010,7 +1230,7 @@ export type BotReadinessIssue = {
|
|
|
1010
1230
|
message: string;
|
|
1011
1231
|
};
|
|
1012
1232
|
/** Partial update. Nested objects replace the stored value for that key. */
|
|
1013
|
-
export type BotConfiguration = Pick<Bot, "name" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers" | "workflows">;
|
|
1233
|
+
export type BotConfiguration = Pick<Bot, "name" | "jobs" | "publicDescription" | "iconAssetId" | "avatar" | "files" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers" | "workflows">;
|
|
1014
1234
|
export type BotPatch = Partial<BotConfiguration>;
|
|
1015
1235
|
export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1016
1236
|
kind: z.ZodLiteral<"app">;
|
|
@@ -1027,13 +1247,13 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1027
1247
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1028
1248
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1029
1249
|
}, "strict", z.ZodTypeAny, {
|
|
1030
|
-
label: string;
|
|
1031
|
-
id: string;
|
|
1032
1250
|
kind: "app";
|
|
1251
|
+
id: string;
|
|
1033
1252
|
enabled: boolean;
|
|
1034
1253
|
name: string;
|
|
1035
1254
|
variables: Record<string, unknown>;
|
|
1036
1255
|
subscriptionId: string;
|
|
1256
|
+
label: string;
|
|
1037
1257
|
providerKey: string;
|
|
1038
1258
|
eventTypes: string[];
|
|
1039
1259
|
runsAs: "none" | "field";
|
|
@@ -1041,12 +1261,12 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1041
1261
|
instruction: string;
|
|
1042
1262
|
answerTo: "none" | "webhook";
|
|
1043
1263
|
}, {
|
|
1044
|
-
label: string;
|
|
1045
|
-
id: string;
|
|
1046
1264
|
kind: "app";
|
|
1265
|
+
id: string;
|
|
1047
1266
|
enabled: boolean;
|
|
1048
1267
|
name: string;
|
|
1049
1268
|
subscriptionId: string;
|
|
1269
|
+
label: string;
|
|
1050
1270
|
providerKey: string;
|
|
1051
1271
|
eventTypes: string[];
|
|
1052
1272
|
runsAs: "none" | "field";
|
|
@@ -1066,8 +1286,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1066
1286
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1067
1287
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1068
1288
|
}, "strict", z.ZodTypeAny, {
|
|
1069
|
-
id: string;
|
|
1070
1289
|
kind: "webhook";
|
|
1290
|
+
id: string;
|
|
1071
1291
|
tenantId: string;
|
|
1072
1292
|
enabled: boolean;
|
|
1073
1293
|
name: string;
|
|
@@ -1077,8 +1297,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1077
1297
|
instruction: string;
|
|
1078
1298
|
answerTo: "none" | "webhook";
|
|
1079
1299
|
}, {
|
|
1080
|
-
id: string;
|
|
1081
1300
|
kind: "webhook";
|
|
1301
|
+
id: string;
|
|
1082
1302
|
tenantId: string;
|
|
1083
1303
|
enabled: boolean;
|
|
1084
1304
|
name: string;
|
|
@@ -1108,44 +1328,44 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1108
1328
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1109
1329
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1110
1330
|
}, "strict", z.ZodTypeAny, {
|
|
1111
|
-
every: "
|
|
1112
|
-
id: string;
|
|
1331
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
1113
1332
|
kind: "schedule";
|
|
1114
1333
|
date: string;
|
|
1334
|
+
id: string;
|
|
1115
1335
|
tenantId: string;
|
|
1116
1336
|
enabled: boolean;
|
|
1117
1337
|
name: string;
|
|
1118
|
-
variables: Record<string, unknown>;
|
|
1119
|
-
timezone: string;
|
|
1120
|
-
customerId: string;
|
|
1121
1338
|
days: number[];
|
|
1122
|
-
|
|
1339
|
+
timezone: string;
|
|
1340
|
+
variables: Record<string, unknown>;
|
|
1341
|
+
runsAs: "one" | "none";
|
|
1123
1342
|
instruction: string;
|
|
1124
1343
|
answerTo: "none" | "webhook";
|
|
1125
1344
|
repeat: "once" | "repeat";
|
|
1126
1345
|
time: string;
|
|
1346
|
+
customerId: string;
|
|
1127
1347
|
cron?: string | undefined;
|
|
1128
|
-
intervalMinutes?:
|
|
1348
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
1129
1349
|
monthDay?: number | "last" | undefined;
|
|
1130
1350
|
}, {
|
|
1131
|
-
every: "
|
|
1132
|
-
id: string;
|
|
1351
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
1133
1352
|
kind: "schedule";
|
|
1134
1353
|
date: string;
|
|
1354
|
+
id: string;
|
|
1135
1355
|
tenantId: string;
|
|
1136
1356
|
enabled: boolean;
|
|
1137
1357
|
name: string;
|
|
1138
|
-
timezone: string;
|
|
1139
|
-
customerId: string;
|
|
1140
1358
|
days: number[];
|
|
1141
|
-
|
|
1359
|
+
timezone: string;
|
|
1360
|
+
runsAs: "one" | "none";
|
|
1142
1361
|
instruction: string;
|
|
1143
1362
|
answerTo: "none" | "webhook";
|
|
1144
1363
|
repeat: "once" | "repeat";
|
|
1145
1364
|
time: string;
|
|
1365
|
+
customerId: string;
|
|
1146
1366
|
variables?: Record<string, unknown> | undefined;
|
|
1147
1367
|
cron?: string | undefined;
|
|
1148
|
-
intervalMinutes?:
|
|
1368
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
1149
1369
|
monthDay?: number | "last" | undefined;
|
|
1150
1370
|
}>]>;
|
|
1151
1371
|
export type BotTrigger = z.infer<typeof botTriggerSchema>;
|
|
@@ -1205,9 +1425,11 @@ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1205
1425
|
directMessages: z.ZodBoolean;
|
|
1206
1426
|
threadHistory: z.ZodEnum<["admitted_messages", "platform_thread"]>;
|
|
1207
1427
|
sharedContextAcknowledged: z.ZodBoolean;
|
|
1428
|
+
/** The published configuration actually shown in Who can reach what. */
|
|
1429
|
+
reviewedPublishedRevision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1208
1430
|
}, "strict", z.ZodTypeAny, {
|
|
1209
|
-
provider: "slack" | "microsoft_teams";
|
|
1210
1431
|
connectedAccountId: string | null;
|
|
1432
|
+
provider: "slack" | "microsoft_teams";
|
|
1211
1433
|
authConfigId: string | null;
|
|
1212
1434
|
approvedChannelIds: string[];
|
|
1213
1435
|
channelAccess: "selected" | "where_added";
|
|
@@ -1216,9 +1438,10 @@ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1216
1438
|
directMessages: boolean;
|
|
1217
1439
|
threadHistory: "admitted_messages" | "platform_thread";
|
|
1218
1440
|
sharedContextAcknowledged: boolean;
|
|
1441
|
+
reviewedPublishedRevision?: number | null | undefined;
|
|
1219
1442
|
}, {
|
|
1220
|
-
provider: "slack" | "microsoft_teams";
|
|
1221
1443
|
connectedAccountId: string | null;
|
|
1444
|
+
provider: "slack" | "microsoft_teams";
|
|
1222
1445
|
authConfigId: string | null;
|
|
1223
1446
|
approvedChannelIds: string[];
|
|
1224
1447
|
directMessages: boolean;
|
|
@@ -1227,9 +1450,10 @@ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1227
1450
|
channelAccess?: "selected" | "where_added" | undefined;
|
|
1228
1451
|
peopleAccess?: "selected" | "internal_members" | undefined;
|
|
1229
1452
|
approvedPersonIds?: string[] | undefined;
|
|
1453
|
+
reviewedPublishedRevision?: number | null | undefined;
|
|
1230
1454
|
}>, {
|
|
1231
|
-
provider: "slack" | "microsoft_teams";
|
|
1232
1455
|
connectedAccountId: string | null;
|
|
1456
|
+
provider: "slack" | "microsoft_teams";
|
|
1233
1457
|
authConfigId: string | null;
|
|
1234
1458
|
approvedChannelIds: string[];
|
|
1235
1459
|
channelAccess: "selected" | "where_added";
|
|
@@ -1238,9 +1462,10 @@ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1238
1462
|
directMessages: boolean;
|
|
1239
1463
|
threadHistory: "admitted_messages" | "platform_thread";
|
|
1240
1464
|
sharedContextAcknowledged: boolean;
|
|
1465
|
+
reviewedPublishedRevision?: number | null | undefined;
|
|
1241
1466
|
}, {
|
|
1242
|
-
provider: "slack" | "microsoft_teams";
|
|
1243
1467
|
connectedAccountId: string | null;
|
|
1468
|
+
provider: "slack" | "microsoft_teams";
|
|
1244
1469
|
authConfigId: string | null;
|
|
1245
1470
|
approvedChannelIds: string[];
|
|
1246
1471
|
directMessages: boolean;
|
|
@@ -1249,6 +1474,7 @@ export declare const botTeamDeploymentInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1249
1474
|
channelAccess?: "selected" | "where_added" | undefined;
|
|
1250
1475
|
peopleAccess?: "selected" | "internal_members" | undefined;
|
|
1251
1476
|
approvedPersonIds?: string[] | undefined;
|
|
1477
|
+
reviewedPublishedRevision?: number | null | undefined;
|
|
1252
1478
|
}>;
|
|
1253
1479
|
export type BotTeamDeploymentInput = z.infer<typeof botTeamDeploymentInputSchema>;
|
|
1254
1480
|
export type BotTeamReadinessIssue = {
|
|
@@ -1330,10 +1556,12 @@ export declare const botNativeFeaturesSchema: z.ZodObject<{
|
|
|
1330
1556
|
approvals?: boolean | undefined;
|
|
1331
1557
|
}>;
|
|
1332
1558
|
/** The registration is shared by this Bot's installations, never by different Bots. */
|
|
1559
|
+
export declare const botNativeProviderSchema: z.ZodEnum<["slack", "microsoft_teams", "github", "gitlab", "bitbucket"]>;
|
|
1560
|
+
export type BotNativeProvider = z.infer<typeof botNativeProviderSchema>;
|
|
1333
1561
|
export type BotNativeApp = {
|
|
1334
1562
|
id: string;
|
|
1335
1563
|
botId: string;
|
|
1336
|
-
provider:
|
|
1564
|
+
provider: BotNativeProvider;
|
|
1337
1565
|
revision: number;
|
|
1338
1566
|
status: 'draft' | 'configured' | 'disabled';
|
|
1339
1567
|
identity: BotIdentity;
|
|
@@ -1373,16 +1601,51 @@ export type BotNativeApp = {
|
|
|
1373
1601
|
code: string;
|
|
1374
1602
|
message: string;
|
|
1375
1603
|
}>;
|
|
1604
|
+
codeHost?: {
|
|
1605
|
+
connectedAccountId: string | null;
|
|
1606
|
+
connectionAuthConfigId: string | null;
|
|
1607
|
+
author: {
|
|
1608
|
+
id: string;
|
|
1609
|
+
name: string;
|
|
1610
|
+
handle: string;
|
|
1611
|
+
pictureUrl: string | null;
|
|
1612
|
+
profileUrl: string | null;
|
|
1613
|
+
} | null;
|
|
1614
|
+
appearance: 'not_connected' | 'review_required' | 'owner_reviewed' | 'provider_default' | 'update_required';
|
|
1615
|
+
identityKind: 'github_app' | 'gitlab_service_account' | 'bitbucket_user';
|
|
1616
|
+
installationUrl: string | null;
|
|
1617
|
+
settingsUrl: string | null;
|
|
1618
|
+
repositoryGrant: 'provider_then_narrow';
|
|
1619
|
+
eventSetupAccountId: string | null;
|
|
1620
|
+
credentialExpiresAt: string | null;
|
|
1621
|
+
dedicatedAccountConfirmed: boolean;
|
|
1622
|
+
serviceAccount: {
|
|
1623
|
+
scope: 'groups' | 'projects';
|
|
1624
|
+
scopeId: string;
|
|
1625
|
+
userId: string;
|
|
1626
|
+
ownerAccountId: string;
|
|
1627
|
+
} | null;
|
|
1628
|
+
provisioning?: {
|
|
1629
|
+
ownerAccountId: string;
|
|
1630
|
+
scope: 'groups' | 'projects';
|
|
1631
|
+
scopeId: string;
|
|
1632
|
+
projectIds: string[];
|
|
1633
|
+
username?: string;
|
|
1634
|
+
step: 'ready' | 'creating_account' | 'adding_projects' | 'creating_token' | 'connecting' | 'applying_picture' | 'checking_projects' | 'completed';
|
|
1635
|
+
expiresAt: string;
|
|
1636
|
+
updatedAt: string;
|
|
1637
|
+
} | null;
|
|
1638
|
+
};
|
|
1376
1639
|
};
|
|
1377
1640
|
export declare const botNativeAppCreateSchema: z.ZodObject<{
|
|
1378
|
-
provider: z.ZodEnum<["slack", "microsoft_teams"]>;
|
|
1641
|
+
provider: z.ZodEnum<["slack", "microsoft_teams", "github", "gitlab", "bitbucket"]>;
|
|
1379
1642
|
requestId: z.ZodString;
|
|
1380
1643
|
}, "strict", z.ZodTypeAny, {
|
|
1381
|
-
provider: "slack" | "microsoft_teams";
|
|
1382
1644
|
requestId: string;
|
|
1645
|
+
provider: "slack" | "microsoft_teams" | "github" | "gitlab" | "bitbucket";
|
|
1383
1646
|
}, {
|
|
1384
|
-
provider: "slack" | "microsoft_teams";
|
|
1385
1647
|
requestId: string;
|
|
1648
|
+
provider: "slack" | "microsoft_teams" | "github" | "gitlab" | "bitbucket";
|
|
1386
1649
|
}>;
|
|
1387
1650
|
export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
1388
1651
|
revision: z.ZodNumber;
|
|
@@ -1409,6 +1672,67 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1409
1672
|
nativeAppId: z.ZodOptional<z.ZodString>;
|
|
1410
1673
|
homeTenantId: z.ZodOptional<z.ZodString>;
|
|
1411
1674
|
appearanceAccountId: z.ZodOptional<z.ZodString>;
|
|
1675
|
+
connectedAccountId: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
appearanceChoice: z.ZodOptional<z.ZodEnum<["matches", "provider_default"]>>;
|
|
1677
|
+
dedicatedAccountConfirmed: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1678
|
+
eventSetupAccountId: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
serviceAccount: z.ZodOptional<z.ZodObject<{
|
|
1680
|
+
ownerAccountId: z.ZodString;
|
|
1681
|
+
scope: z.ZodEnum<["groups", "projects"]>;
|
|
1682
|
+
scopeId: z.ZodString;
|
|
1683
|
+
userId: z.ZodString;
|
|
1684
|
+
}, "strict", z.ZodTypeAny, {
|
|
1685
|
+
scope: "groups" | "projects";
|
|
1686
|
+
ownerAccountId: string;
|
|
1687
|
+
scopeId: string;
|
|
1688
|
+
userId: string;
|
|
1689
|
+
}, {
|
|
1690
|
+
scope: "groups" | "projects";
|
|
1691
|
+
ownerAccountId: string;
|
|
1692
|
+
scopeId: string;
|
|
1693
|
+
userId: string;
|
|
1694
|
+
}>>;
|
|
1695
|
+
provisioning: z.ZodOptional<z.ZodObject<{
|
|
1696
|
+
ownerAccountId: z.ZodString;
|
|
1697
|
+
scope: z.ZodEnum<["groups", "projects"]>;
|
|
1698
|
+
scopeId: z.ZodString;
|
|
1699
|
+
projectIds: z.ZodArray<z.ZodString, "many">;
|
|
1700
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
confirmed: z.ZodLiteral<true>;
|
|
1702
|
+
}, "strict", z.ZodTypeAny, {
|
|
1703
|
+
scope: "groups" | "projects";
|
|
1704
|
+
ownerAccountId: string;
|
|
1705
|
+
scopeId: string;
|
|
1706
|
+
projectIds: string[];
|
|
1707
|
+
confirmed: true;
|
|
1708
|
+
username?: string | undefined;
|
|
1709
|
+
}, {
|
|
1710
|
+
scope: "groups" | "projects";
|
|
1711
|
+
ownerAccountId: string;
|
|
1712
|
+
scopeId: string;
|
|
1713
|
+
projectIds: string[];
|
|
1714
|
+
confirmed: true;
|
|
1715
|
+
username?: string | undefined;
|
|
1716
|
+
}>>;
|
|
1717
|
+
githubApp: z.ZodOptional<z.ZodObject<{
|
|
1718
|
+
appId: z.ZodString;
|
|
1719
|
+
privateKey: z.ZodString;
|
|
1720
|
+
clientId: z.ZodString;
|
|
1721
|
+
clientSecret: z.ZodString;
|
|
1722
|
+
webhookSecret: z.ZodString;
|
|
1723
|
+
}, "strict", z.ZodTypeAny, {
|
|
1724
|
+
clientId: string;
|
|
1725
|
+
appId: string;
|
|
1726
|
+
privateKey: string;
|
|
1727
|
+
clientSecret: string;
|
|
1728
|
+
webhookSecret: string;
|
|
1729
|
+
}, {
|
|
1730
|
+
clientId: string;
|
|
1731
|
+
appId: string;
|
|
1732
|
+
privateKey: string;
|
|
1733
|
+
clientSecret: string;
|
|
1734
|
+
webhookSecret: string;
|
|
1735
|
+
}>>;
|
|
1412
1736
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
1413
1737
|
clientSecret: z.ZodString;
|
|
1414
1738
|
signingSecret: z.ZodOptional<z.ZodString>;
|
|
@@ -1419,10 +1743,11 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1419
1743
|
clientSecret: string;
|
|
1420
1744
|
signingSecret?: string | undefined;
|
|
1421
1745
|
}>>;
|
|
1422
|
-
action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance"]>>;
|
|
1746
|
+
action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance", "connect_identity", "configure_service_account", "provision_service_account", "apply_appearance", "connect_existing_app"]>>;
|
|
1423
1747
|
}, "strict", z.ZodTypeAny, {
|
|
1424
1748
|
revision: number;
|
|
1425
|
-
action: "
|
|
1749
|
+
action: "verify" | "save" | "disable" | "review_appearance" | "connect_identity" | "configure_service_account" | "provision_service_account" | "apply_appearance" | "connect_existing_app";
|
|
1750
|
+
connectedAccountId?: string | undefined;
|
|
1426
1751
|
credentials?: {
|
|
1427
1752
|
clientSecret: string;
|
|
1428
1753
|
signingSecret?: string | undefined;
|
|
@@ -1438,9 +1763,34 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1438
1763
|
nativeAppId?: string | undefined;
|
|
1439
1764
|
homeTenantId?: string | undefined;
|
|
1440
1765
|
appearanceAccountId?: string | undefined;
|
|
1766
|
+
appearanceChoice?: "provider_default" | "matches" | undefined;
|
|
1767
|
+
dedicatedAccountConfirmed?: true | undefined;
|
|
1768
|
+
eventSetupAccountId?: string | undefined;
|
|
1769
|
+
serviceAccount?: {
|
|
1770
|
+
scope: "groups" | "projects";
|
|
1771
|
+
ownerAccountId: string;
|
|
1772
|
+
scopeId: string;
|
|
1773
|
+
userId: string;
|
|
1774
|
+
} | undefined;
|
|
1775
|
+
provisioning?: {
|
|
1776
|
+
scope: "groups" | "projects";
|
|
1777
|
+
ownerAccountId: string;
|
|
1778
|
+
scopeId: string;
|
|
1779
|
+
projectIds: string[];
|
|
1780
|
+
confirmed: true;
|
|
1781
|
+
username?: string | undefined;
|
|
1782
|
+
} | undefined;
|
|
1783
|
+
githubApp?: {
|
|
1784
|
+
clientId: string;
|
|
1785
|
+
appId: string;
|
|
1786
|
+
privateKey: string;
|
|
1787
|
+
clientSecret: string;
|
|
1788
|
+
webhookSecret: string;
|
|
1789
|
+
} | undefined;
|
|
1441
1790
|
}, {
|
|
1442
1791
|
revision: number;
|
|
1443
|
-
|
|
1792
|
+
connectedAccountId?: string | undefined;
|
|
1793
|
+
action?: "verify" | "save" | "disable" | "review_appearance" | "connect_identity" | "configure_service_account" | "provision_service_account" | "apply_appearance" | "connect_existing_app" | undefined;
|
|
1444
1794
|
credentials?: {
|
|
1445
1795
|
clientSecret: string;
|
|
1446
1796
|
signingSecret?: string | undefined;
|
|
@@ -1456,6 +1806,30 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
|
|
|
1456
1806
|
nativeAppId?: string | undefined;
|
|
1457
1807
|
homeTenantId?: string | undefined;
|
|
1458
1808
|
appearanceAccountId?: string | undefined;
|
|
1809
|
+
appearanceChoice?: "provider_default" | "matches" | undefined;
|
|
1810
|
+
dedicatedAccountConfirmed?: true | undefined;
|
|
1811
|
+
eventSetupAccountId?: string | undefined;
|
|
1812
|
+
serviceAccount?: {
|
|
1813
|
+
scope: "groups" | "projects";
|
|
1814
|
+
ownerAccountId: string;
|
|
1815
|
+
scopeId: string;
|
|
1816
|
+
userId: string;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
provisioning?: {
|
|
1819
|
+
scope: "groups" | "projects";
|
|
1820
|
+
ownerAccountId: string;
|
|
1821
|
+
scopeId: string;
|
|
1822
|
+
projectIds: string[];
|
|
1823
|
+
confirmed: true;
|
|
1824
|
+
username?: string | undefined;
|
|
1825
|
+
} | undefined;
|
|
1826
|
+
githubApp?: {
|
|
1827
|
+
clientId: string;
|
|
1828
|
+
appId: string;
|
|
1829
|
+
privateKey: string;
|
|
1830
|
+
clientSecret: string;
|
|
1831
|
+
webhookSecret: string;
|
|
1832
|
+
} | undefined;
|
|
1459
1833
|
}>;
|
|
1460
1834
|
export type BotTeamRunSource = {
|
|
1461
1835
|
deploymentId: string;
|
|
@@ -1601,6 +1975,11 @@ export type BotWebSource = {
|
|
|
1601
1975
|
title: string;
|
|
1602
1976
|
};
|
|
1603
1977
|
export type BotRun = {
|
|
1978
|
+
reviewInstructions?: {
|
|
1979
|
+
builtInVersion: string;
|
|
1980
|
+
builtInRules: string;
|
|
1981
|
+
teamInstructions: string;
|
|
1982
|
+
};
|
|
1604
1983
|
webSources?: BotWebSource[];
|
|
1605
1984
|
team?: BotTeamRunSource;
|
|
1606
1985
|
resumeCount?: number;
|
|
@@ -1723,15 +2102,15 @@ export declare const botBindingSchema: z.ZodObject<{
|
|
|
1723
2102
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1724
2103
|
key: z.ZodString;
|
|
1725
2104
|
}, "strict", z.ZodTypeAny, {
|
|
1726
|
-
key: string;
|
|
1727
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1728
2105
|
path: string[];
|
|
1729
|
-
|
|
1730
|
-
}, {
|
|
2106
|
+
source: "variable" | "context" | "model" | "identity";
|
|
1731
2107
|
key: string;
|
|
1732
|
-
|
|
2108
|
+
target: "body" | "path" | "query" | "header";
|
|
2109
|
+
}, {
|
|
1733
2110
|
path: string[];
|
|
1734
|
-
|
|
2111
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2112
|
+
key: string;
|
|
2113
|
+
target: "body" | "path" | "query" | "header";
|
|
1735
2114
|
}>;
|
|
1736
2115
|
export declare const botApiCallSchema: z.ZodObject<{
|
|
1737
2116
|
id: z.ZodString;
|
|
@@ -1756,28 +2135,28 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1756
2135
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1757
2136
|
key: z.ZodString;
|
|
1758
2137
|
}, "strict", z.ZodTypeAny, {
|
|
1759
|
-
key: string;
|
|
1760
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1761
2138
|
path: string[];
|
|
1762
|
-
|
|
1763
|
-
}, {
|
|
2139
|
+
source: "variable" | "context" | "model" | "identity";
|
|
1764
2140
|
key: string;
|
|
1765
|
-
|
|
2141
|
+
target: "body" | "path" | "query" | "header";
|
|
2142
|
+
}, {
|
|
1766
2143
|
path: string[];
|
|
1767
|
-
|
|
2144
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2145
|
+
key: string;
|
|
2146
|
+
target: "body" | "path" | "query" | "header";
|
|
1768
2147
|
}>, "many">>;
|
|
1769
2148
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1770
2149
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
1771
2150
|
}, "strict", z.ZodTypeAny, {
|
|
2151
|
+
headers: Record<string, string>;
|
|
2152
|
+
body: string;
|
|
1772
2153
|
path: string;
|
|
1773
2154
|
id: string;
|
|
1774
2155
|
name: string;
|
|
1775
|
-
headers: Record<string, string>;
|
|
1776
|
-
body: string;
|
|
1777
2156
|
query: Record<string, string>;
|
|
1778
2157
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1779
|
-
bodyType: "json" | "
|
|
1780
|
-
readAs: "
|
|
2158
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2159
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1781
2160
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1782
2161
|
summary: string;
|
|
1783
2162
|
latencyMs: number | null;
|
|
@@ -1785,37 +2164,37 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1785
2164
|
effects: "read" | "write" | "unclassified";
|
|
1786
2165
|
permission: "allow" | "ask" | "block";
|
|
1787
2166
|
bindings: {
|
|
1788
|
-
key: string;
|
|
1789
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1790
2167
|
path: string[];
|
|
1791
|
-
|
|
2168
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2169
|
+
key: string;
|
|
2170
|
+
target: "body" | "path" | "query" | "header";
|
|
1792
2171
|
}[];
|
|
1793
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1794
2172
|
sample?: unknown;
|
|
2173
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1795
2174
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1796
2175
|
}, {
|
|
1797
2176
|
path: string;
|
|
1798
2177
|
id: string;
|
|
1799
2178
|
name: string;
|
|
1800
2179
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1801
|
-
bodyType: "json" | "
|
|
1802
|
-
readAs: "
|
|
2180
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2181
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1803
2182
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1804
2183
|
summary: string;
|
|
1805
2184
|
latencyMs: number | null;
|
|
1806
2185
|
visibleFields: string[];
|
|
1807
2186
|
effects: "read" | "write" | "unclassified";
|
|
1808
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1809
2187
|
headers?: Record<string, string> | undefined;
|
|
1810
2188
|
body?: string | undefined;
|
|
1811
2189
|
sample?: unknown;
|
|
1812
2190
|
query?: Record<string, string> | undefined;
|
|
1813
2191
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2192
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1814
2193
|
bindings?: {
|
|
1815
|
-
key: string;
|
|
1816
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1817
2194
|
path: string[];
|
|
1818
|
-
|
|
2195
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2196
|
+
key: string;
|
|
2197
|
+
target: "body" | "path" | "query" | "header";
|
|
1819
2198
|
}[] | undefined;
|
|
1820
2199
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1821
2200
|
}>;
|
|
@@ -1852,28 +2231,28 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1852
2231
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
1853
2232
|
key: z.ZodString;
|
|
1854
2233
|
}, "strict", z.ZodTypeAny, {
|
|
1855
|
-
key: string;
|
|
1856
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1857
2234
|
path: string[];
|
|
1858
|
-
|
|
1859
|
-
}, {
|
|
2235
|
+
source: "variable" | "context" | "model" | "identity";
|
|
1860
2236
|
key: string;
|
|
1861
|
-
|
|
2237
|
+
target: "body" | "path" | "query" | "header";
|
|
2238
|
+
}, {
|
|
1862
2239
|
path: string[];
|
|
1863
|
-
|
|
2240
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2241
|
+
key: string;
|
|
2242
|
+
target: "body" | "path" | "query" | "header";
|
|
1864
2243
|
}>, "many">>;
|
|
1865
2244
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1866
2245
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
1867
2246
|
}, "strict", z.ZodTypeAny, {
|
|
2247
|
+
headers: Record<string, string>;
|
|
2248
|
+
body: string;
|
|
1868
2249
|
path: string;
|
|
1869
2250
|
id: string;
|
|
1870
2251
|
name: string;
|
|
1871
|
-
headers: Record<string, string>;
|
|
1872
|
-
body: string;
|
|
1873
2252
|
query: Record<string, string>;
|
|
1874
2253
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1875
|
-
bodyType: "json" | "
|
|
1876
|
-
readAs: "
|
|
2254
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2255
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1877
2256
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1878
2257
|
summary: string;
|
|
1879
2258
|
latencyMs: number | null;
|
|
@@ -1881,51 +2260,58 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1881
2260
|
effects: "read" | "write" | "unclassified";
|
|
1882
2261
|
permission: "allow" | "ask" | "block";
|
|
1883
2262
|
bindings: {
|
|
1884
|
-
key: string;
|
|
1885
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1886
2263
|
path: string[];
|
|
1887
|
-
|
|
2264
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2265
|
+
key: string;
|
|
2266
|
+
target: "body" | "path" | "query" | "header";
|
|
1888
2267
|
}[];
|
|
1889
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1890
2268
|
sample?: unknown;
|
|
2269
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1891
2270
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1892
2271
|
}, {
|
|
1893
2272
|
path: string;
|
|
1894
2273
|
id: string;
|
|
1895
2274
|
name: string;
|
|
1896
2275
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1897
|
-
bodyType: "json" | "
|
|
1898
|
-
readAs: "
|
|
2276
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2277
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1899
2278
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1900
2279
|
summary: string;
|
|
1901
2280
|
latencyMs: number | null;
|
|
1902
2281
|
visibleFields: string[];
|
|
1903
2282
|
effects: "read" | "write" | "unclassified";
|
|
1904
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1905
2283
|
headers?: Record<string, string> | undefined;
|
|
1906
2284
|
body?: string | undefined;
|
|
1907
2285
|
sample?: unknown;
|
|
1908
2286
|
query?: Record<string, string> | undefined;
|
|
1909
2287
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2288
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1910
2289
|
bindings?: {
|
|
1911
|
-
key: string;
|
|
1912
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1913
2290
|
path: string[];
|
|
1914
|
-
|
|
2291
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2292
|
+
key: string;
|
|
2293
|
+
target: "body" | "path" | "query" | "header";
|
|
1915
2294
|
}[] | undefined;
|
|
1916
2295
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1917
2296
|
}>, "many">;
|
|
1918
2297
|
}, "strict", z.ZodTypeAny, {
|
|
2298
|
+
kind: "http" | "graphql" | "openapi";
|
|
2299
|
+
id: string;
|
|
2300
|
+
name: string;
|
|
2301
|
+
host: string;
|
|
2302
|
+
baseUrl: string;
|
|
2303
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
2304
|
+
sendCustomerIdentity: boolean;
|
|
1919
2305
|
calls: {
|
|
2306
|
+
headers: Record<string, string>;
|
|
2307
|
+
body: string;
|
|
1920
2308
|
path: string;
|
|
1921
2309
|
id: string;
|
|
1922
2310
|
name: string;
|
|
1923
|
-
headers: Record<string, string>;
|
|
1924
|
-
body: string;
|
|
1925
2311
|
query: Record<string, string>;
|
|
1926
2312
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1927
|
-
bodyType: "json" | "
|
|
1928
|
-
readAs: "
|
|
2313
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2314
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1929
2315
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1930
2316
|
summary: string;
|
|
1931
2317
|
latencyMs: number | null;
|
|
@@ -1933,62 +2319,128 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1933
2319
|
effects: "read" | "write" | "unclassified";
|
|
1934
2320
|
permission: "allow" | "ask" | "block";
|
|
1935
2321
|
bindings: {
|
|
1936
|
-
key: string;
|
|
1937
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1938
2322
|
path: string[];
|
|
1939
|
-
|
|
2323
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2324
|
+
key: string;
|
|
2325
|
+
target: "body" | "path" | "query" | "header";
|
|
1940
2326
|
}[];
|
|
1941
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1942
2327
|
sample?: unknown;
|
|
2328
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1943
2329
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1944
2330
|
}[];
|
|
1945
|
-
|
|
2331
|
+
credentialId?: string | undefined;
|
|
2332
|
+
authHeader?: string | undefined;
|
|
2333
|
+
}, {
|
|
1946
2334
|
kind: "http" | "graphql" | "openapi";
|
|
2335
|
+
id: string;
|
|
1947
2336
|
name: string;
|
|
1948
2337
|
host: string;
|
|
1949
2338
|
baseUrl: string;
|
|
1950
|
-
auth: "
|
|
2339
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
1951
2340
|
sendCustomerIdentity: boolean;
|
|
1952
|
-
credentialId?: string | undefined;
|
|
1953
|
-
authHeader?: string | undefined;
|
|
1954
|
-
}, {
|
|
1955
2341
|
calls: {
|
|
1956
2342
|
path: string;
|
|
1957
2343
|
id: string;
|
|
1958
2344
|
name: string;
|
|
1959
2345
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1960
|
-
bodyType: "json" | "
|
|
1961
|
-
readAs: "
|
|
2346
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2347
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
1962
2348
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1963
2349
|
summary: string;
|
|
1964
2350
|
latencyMs: number | null;
|
|
1965
2351
|
visibleFields: string[];
|
|
1966
2352
|
effects: "read" | "write" | "unclassified";
|
|
1967
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
1968
2353
|
headers?: Record<string, string> | undefined;
|
|
1969
2354
|
body?: string | undefined;
|
|
1970
2355
|
sample?: unknown;
|
|
1971
2356
|
query?: Record<string, string> | undefined;
|
|
1972
2357
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2358
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
1973
2359
|
bindings?: {
|
|
1974
|
-
key: string;
|
|
1975
|
-
source: "model" | "variable" | "context" | "identity";
|
|
1976
2360
|
path: string[];
|
|
1977
|
-
|
|
2361
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2362
|
+
key: string;
|
|
2363
|
+
target: "body" | "path" | "query" | "header";
|
|
1978
2364
|
}[] | undefined;
|
|
1979
2365
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1980
2366
|
}[];
|
|
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;
|
|
1988
2367
|
credentialId?: string | undefined;
|
|
1989
2368
|
authHeader?: string | undefined;
|
|
1990
2369
|
}>;
|
|
1991
2370
|
export declare const botConfigurationSchema: z.ZodObject<{
|
|
2371
|
+
jobs: z.ZodDefault<z.ZodObject<{
|
|
2372
|
+
reviewCode: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
2373
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
2374
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
2375
|
+
connectedAccountId: z.ZodString;
|
|
2376
|
+
id: z.ZodString;
|
|
2377
|
+
name: z.ZodString;
|
|
2378
|
+
}, "strict", z.ZodTypeAny, {
|
|
2379
|
+
id: string;
|
|
2380
|
+
name: string;
|
|
2381
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2382
|
+
connectedAccountId: string;
|
|
2383
|
+
}, {
|
|
2384
|
+
id: string;
|
|
2385
|
+
name: string;
|
|
2386
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2387
|
+
connectedAccountId: string;
|
|
2388
|
+
}>, "many">;
|
|
2389
|
+
reviewFocus: z.ZodString;
|
|
2390
|
+
}, "strict", z.ZodTypeAny, {
|
|
2391
|
+
repositories: {
|
|
2392
|
+
id: string;
|
|
2393
|
+
name: string;
|
|
2394
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2395
|
+
connectedAccountId: string;
|
|
2396
|
+
}[];
|
|
2397
|
+
reviewFocus: string;
|
|
2398
|
+
}, {
|
|
2399
|
+
repositories: {
|
|
2400
|
+
id: string;
|
|
2401
|
+
name: string;
|
|
2402
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2403
|
+
connectedAccountId: string;
|
|
2404
|
+
}[];
|
|
2405
|
+
reviewFocus: string;
|
|
2406
|
+
}>, {
|
|
2407
|
+
repositories: {
|
|
2408
|
+
id: string;
|
|
2409
|
+
name: string;
|
|
2410
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2411
|
+
connectedAccountId: string;
|
|
2412
|
+
}[];
|
|
2413
|
+
reviewFocus: string;
|
|
2414
|
+
}, {
|
|
2415
|
+
repositories: {
|
|
2416
|
+
id: string;
|
|
2417
|
+
name: string;
|
|
2418
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2419
|
+
connectedAccountId: string;
|
|
2420
|
+
}[];
|
|
2421
|
+
reviewFocus: string;
|
|
2422
|
+
}>>>;
|
|
2423
|
+
}, "strict", z.ZodTypeAny, {
|
|
2424
|
+
reviewCode: {
|
|
2425
|
+
repositories: {
|
|
2426
|
+
id: string;
|
|
2427
|
+
name: string;
|
|
2428
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2429
|
+
connectedAccountId: string;
|
|
2430
|
+
}[];
|
|
2431
|
+
reviewFocus: string;
|
|
2432
|
+
} | null;
|
|
2433
|
+
}, {
|
|
2434
|
+
reviewCode?: {
|
|
2435
|
+
repositories: {
|
|
2436
|
+
id: string;
|
|
2437
|
+
name: string;
|
|
2438
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
2439
|
+
connectedAccountId: string;
|
|
2440
|
+
}[];
|
|
2441
|
+
reviewFocus: string;
|
|
2442
|
+
} | null | undefined;
|
|
2443
|
+
}>>;
|
|
1992
2444
|
name: z.ZodString;
|
|
1993
2445
|
publicDescription: z.ZodDefault<z.ZodString>;
|
|
1994
2446
|
iconAssetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1998,14 +2450,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1998
2450
|
seed: z.ZodString;
|
|
1999
2451
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
2000
2452
|
}, "strict", z.ZodTypeAny, {
|
|
2001
|
-
version: 1;
|
|
2002
2453
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
2003
2454
|
seed: string;
|
|
2455
|
+
version: 1;
|
|
2004
2456
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
2005
2457
|
}, {
|
|
2006
|
-
version: 1;
|
|
2007
2458
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
2008
2459
|
seed: string;
|
|
2460
|
+
version: 1;
|
|
2009
2461
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
2010
2462
|
}>>>;
|
|
2011
2463
|
files: z.ZodDefault<z.ZodObject<{
|
|
@@ -2014,11 +2466,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2014
2466
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
2015
2467
|
}, "strict", z.ZodTypeAny, {
|
|
2016
2468
|
enabled: boolean;
|
|
2017
|
-
kinds: ("
|
|
2469
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
2018
2470
|
bigSpreadsheets: "workbench" | "preview";
|
|
2019
2471
|
}, {
|
|
2020
2472
|
enabled: boolean;
|
|
2021
|
-
kinds: ("
|
|
2473
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
2022
2474
|
bigSpreadsheets: "workbench" | "preview";
|
|
2023
2475
|
}>>;
|
|
2024
2476
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
@@ -2037,13 +2489,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2037
2489
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2038
2490
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2039
2491
|
}, "strict", z.ZodTypeAny, {
|
|
2040
|
-
label: string;
|
|
2041
|
-
id: string;
|
|
2042
2492
|
kind: "app";
|
|
2493
|
+
id: string;
|
|
2043
2494
|
enabled: boolean;
|
|
2044
2495
|
name: string;
|
|
2045
2496
|
variables: Record<string, unknown>;
|
|
2046
2497
|
subscriptionId: string;
|
|
2498
|
+
label: string;
|
|
2047
2499
|
providerKey: string;
|
|
2048
2500
|
eventTypes: string[];
|
|
2049
2501
|
runsAs: "none" | "field";
|
|
@@ -2051,12 +2503,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2051
2503
|
instruction: string;
|
|
2052
2504
|
answerTo: "none" | "webhook";
|
|
2053
2505
|
}, {
|
|
2054
|
-
label: string;
|
|
2055
|
-
id: string;
|
|
2056
2506
|
kind: "app";
|
|
2507
|
+
id: string;
|
|
2057
2508
|
enabled: boolean;
|
|
2058
2509
|
name: string;
|
|
2059
2510
|
subscriptionId: string;
|
|
2511
|
+
label: string;
|
|
2060
2512
|
providerKey: string;
|
|
2061
2513
|
eventTypes: string[];
|
|
2062
2514
|
runsAs: "none" | "field";
|
|
@@ -2076,8 +2528,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2076
2528
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2077
2529
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2078
2530
|
}, "strict", z.ZodTypeAny, {
|
|
2079
|
-
id: string;
|
|
2080
2531
|
kind: "webhook";
|
|
2532
|
+
id: string;
|
|
2081
2533
|
tenantId: string;
|
|
2082
2534
|
enabled: boolean;
|
|
2083
2535
|
name: string;
|
|
@@ -2087,8 +2539,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2087
2539
|
instruction: string;
|
|
2088
2540
|
answerTo: "none" | "webhook";
|
|
2089
2541
|
}, {
|
|
2090
|
-
id: string;
|
|
2091
2542
|
kind: "webhook";
|
|
2543
|
+
id: string;
|
|
2092
2544
|
tenantId: string;
|
|
2093
2545
|
enabled: boolean;
|
|
2094
2546
|
name: string;
|
|
@@ -2118,44 +2570,44 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2118
2570
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2119
2571
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2120
2572
|
}, "strict", z.ZodTypeAny, {
|
|
2121
|
-
every: "
|
|
2122
|
-
id: string;
|
|
2573
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
2123
2574
|
kind: "schedule";
|
|
2124
2575
|
date: string;
|
|
2576
|
+
id: string;
|
|
2125
2577
|
tenantId: string;
|
|
2126
2578
|
enabled: boolean;
|
|
2127
2579
|
name: string;
|
|
2128
|
-
variables: Record<string, unknown>;
|
|
2129
|
-
timezone: string;
|
|
2130
|
-
customerId: string;
|
|
2131
2580
|
days: number[];
|
|
2132
|
-
|
|
2581
|
+
timezone: string;
|
|
2582
|
+
variables: Record<string, unknown>;
|
|
2583
|
+
runsAs: "one" | "none";
|
|
2133
2584
|
instruction: string;
|
|
2134
2585
|
answerTo: "none" | "webhook";
|
|
2135
2586
|
repeat: "once" | "repeat";
|
|
2136
2587
|
time: string;
|
|
2588
|
+
customerId: string;
|
|
2137
2589
|
cron?: string | undefined;
|
|
2138
|
-
intervalMinutes?:
|
|
2590
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
2139
2591
|
monthDay?: number | "last" | undefined;
|
|
2140
2592
|
}, {
|
|
2141
|
-
every: "
|
|
2142
|
-
id: string;
|
|
2593
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
2143
2594
|
kind: "schedule";
|
|
2144
2595
|
date: string;
|
|
2596
|
+
id: string;
|
|
2145
2597
|
tenantId: string;
|
|
2146
2598
|
enabled: boolean;
|
|
2147
2599
|
name: string;
|
|
2148
|
-
timezone: string;
|
|
2149
|
-
customerId: string;
|
|
2150
2600
|
days: number[];
|
|
2151
|
-
|
|
2601
|
+
timezone: string;
|
|
2602
|
+
runsAs: "one" | "none";
|
|
2152
2603
|
instruction: string;
|
|
2153
2604
|
answerTo: "none" | "webhook";
|
|
2154
2605
|
repeat: "once" | "repeat";
|
|
2155
2606
|
time: string;
|
|
2607
|
+
customerId: string;
|
|
2156
2608
|
variables?: Record<string, unknown> | undefined;
|
|
2157
2609
|
cron?: string | undefined;
|
|
2158
|
-
intervalMinutes?:
|
|
2610
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
2159
2611
|
monthDay?: number | "last" | undefined;
|
|
2160
2612
|
}>]>, "many">>;
|
|
2161
2613
|
workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -2173,10 +2625,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2173
2625
|
effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
2174
2626
|
}, "strict", z.ZodTypeAny, {
|
|
2175
2627
|
id: string;
|
|
2176
|
-
effort: "
|
|
2628
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
2177
2629
|
}, {
|
|
2178
2630
|
id: string;
|
|
2179
|
-
effort: "
|
|
2631
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
2180
2632
|
}>;
|
|
2181
2633
|
instructions: z.ZodObject<{
|
|
2182
2634
|
text: z.ZodString;
|
|
@@ -2245,9 +2697,6 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2245
2697
|
}, "strict", z.ZodTypeAny, {
|
|
2246
2698
|
id: string;
|
|
2247
2699
|
name: string;
|
|
2248
|
-
cases: {
|
|
2249
|
-
text: string;
|
|
2250
|
-
}[];
|
|
2251
2700
|
files: {
|
|
2252
2701
|
name: string;
|
|
2253
2702
|
content: string;
|
|
@@ -2256,6 +2705,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2256
2705
|
summary: string;
|
|
2257
2706
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
2258
2707
|
load: "auto" | "always";
|
|
2708
|
+
cases: {
|
|
2709
|
+
text: string;
|
|
2710
|
+
}[];
|
|
2259
2711
|
exceptions: {
|
|
2260
2712
|
text: string;
|
|
2261
2713
|
}[];
|
|
@@ -2271,12 +2723,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2271
2723
|
}, {
|
|
2272
2724
|
id: string;
|
|
2273
2725
|
name: string;
|
|
2274
|
-
cases: {
|
|
2275
|
-
text: string;
|
|
2276
|
-
}[];
|
|
2277
2726
|
summary: string;
|
|
2278
2727
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
2279
2728
|
load: "auto" | "always";
|
|
2729
|
+
cases: {
|
|
2730
|
+
text: string;
|
|
2731
|
+
}[];
|
|
2280
2732
|
exceptions: {
|
|
2281
2733
|
text: string;
|
|
2282
2734
|
}[];
|
|
@@ -2349,7 +2801,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2349
2801
|
enabled: boolean;
|
|
2350
2802
|
files: "per_customer" | "per_run";
|
|
2351
2803
|
configured: boolean;
|
|
2352
|
-
size: "medium" | "
|
|
2804
|
+
size: "medium" | "small" | "large";
|
|
2353
2805
|
access: "allow" | "ask" | "block";
|
|
2354
2806
|
languages: string[];
|
|
2355
2807
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -2357,7 +2809,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2357
2809
|
enabled: boolean;
|
|
2358
2810
|
files: "per_customer" | "per_run";
|
|
2359
2811
|
configured: boolean;
|
|
2360
|
-
size: "medium" | "
|
|
2812
|
+
size: "medium" | "small" | "large";
|
|
2361
2813
|
access: "allow" | "ask" | "block";
|
|
2362
2814
|
languages: string[];
|
|
2363
2815
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -2399,28 +2851,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2399
2851
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
2400
2852
|
key: z.ZodString;
|
|
2401
2853
|
}, "strict", z.ZodTypeAny, {
|
|
2402
|
-
key: string;
|
|
2403
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2404
2854
|
path: string[];
|
|
2405
|
-
|
|
2406
|
-
}, {
|
|
2855
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2407
2856
|
key: string;
|
|
2408
|
-
|
|
2857
|
+
target: "body" | "path" | "query" | "header";
|
|
2858
|
+
}, {
|
|
2409
2859
|
path: string[];
|
|
2410
|
-
|
|
2860
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2861
|
+
key: string;
|
|
2862
|
+
target: "body" | "path" | "query" | "header";
|
|
2411
2863
|
}>, "many">>;
|
|
2412
2864
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2413
2865
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
2414
2866
|
}, "strict", z.ZodTypeAny, {
|
|
2867
|
+
headers: Record<string, string>;
|
|
2868
|
+
body: string;
|
|
2415
2869
|
path: string;
|
|
2416
2870
|
id: string;
|
|
2417
2871
|
name: string;
|
|
2418
|
-
headers: Record<string, string>;
|
|
2419
|
-
body: string;
|
|
2420
2872
|
query: Record<string, string>;
|
|
2421
2873
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2422
|
-
bodyType: "json" | "
|
|
2423
|
-
readAs: "
|
|
2874
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2875
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2424
2876
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2425
2877
|
summary: string;
|
|
2426
2878
|
latencyMs: number | null;
|
|
@@ -2428,51 +2880,58 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2428
2880
|
effects: "read" | "write" | "unclassified";
|
|
2429
2881
|
permission: "allow" | "ask" | "block";
|
|
2430
2882
|
bindings: {
|
|
2431
|
-
key: string;
|
|
2432
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2433
2883
|
path: string[];
|
|
2434
|
-
|
|
2884
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2885
|
+
key: string;
|
|
2886
|
+
target: "body" | "path" | "query" | "header";
|
|
2435
2887
|
}[];
|
|
2436
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2437
2888
|
sample?: unknown;
|
|
2889
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2438
2890
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2439
2891
|
}, {
|
|
2440
2892
|
path: string;
|
|
2441
2893
|
id: string;
|
|
2442
2894
|
name: string;
|
|
2443
2895
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2444
|
-
bodyType: "json" | "
|
|
2445
|
-
readAs: "
|
|
2896
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2897
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2446
2898
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2447
2899
|
summary: string;
|
|
2448
2900
|
latencyMs: number | null;
|
|
2449
2901
|
visibleFields: string[];
|
|
2450
2902
|
effects: "read" | "write" | "unclassified";
|
|
2451
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2452
2903
|
headers?: Record<string, string> | undefined;
|
|
2453
2904
|
body?: string | undefined;
|
|
2454
2905
|
sample?: unknown;
|
|
2455
2906
|
query?: Record<string, string> | undefined;
|
|
2456
2907
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2908
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2457
2909
|
bindings?: {
|
|
2458
|
-
key: string;
|
|
2459
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2460
2910
|
path: string[];
|
|
2461
|
-
|
|
2911
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2912
|
+
key: string;
|
|
2913
|
+
target: "body" | "path" | "query" | "header";
|
|
2462
2914
|
}[] | undefined;
|
|
2463
2915
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2464
2916
|
}>, "many">;
|
|
2465
2917
|
}, "strict", z.ZodTypeAny, {
|
|
2918
|
+
kind: "http" | "graphql" | "openapi";
|
|
2919
|
+
id: string;
|
|
2920
|
+
name: string;
|
|
2921
|
+
host: string;
|
|
2922
|
+
baseUrl: string;
|
|
2923
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
2924
|
+
sendCustomerIdentity: boolean;
|
|
2466
2925
|
calls: {
|
|
2926
|
+
headers: Record<string, string>;
|
|
2927
|
+
body: string;
|
|
2467
2928
|
path: string;
|
|
2468
2929
|
id: string;
|
|
2469
2930
|
name: string;
|
|
2470
|
-
headers: Record<string, string>;
|
|
2471
|
-
body: string;
|
|
2472
2931
|
query: Record<string, string>;
|
|
2473
2932
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2474
|
-
bodyType: "json" | "
|
|
2475
|
-
readAs: "
|
|
2933
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2934
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2476
2935
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2477
2936
|
summary: string;
|
|
2478
2937
|
latencyMs: number | null;
|
|
@@ -2480,58 +2939,51 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2480
2939
|
effects: "read" | "write" | "unclassified";
|
|
2481
2940
|
permission: "allow" | "ask" | "block";
|
|
2482
2941
|
bindings: {
|
|
2483
|
-
key: string;
|
|
2484
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2485
2942
|
path: string[];
|
|
2486
|
-
|
|
2943
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2944
|
+
key: string;
|
|
2945
|
+
target: "body" | "path" | "query" | "header";
|
|
2487
2946
|
}[];
|
|
2488
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2489
2947
|
sample?: unknown;
|
|
2948
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2490
2949
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2491
2950
|
}[];
|
|
2492
|
-
|
|
2951
|
+
credentialId?: string | undefined;
|
|
2952
|
+
authHeader?: string | undefined;
|
|
2953
|
+
}, {
|
|
2493
2954
|
kind: "http" | "graphql" | "openapi";
|
|
2955
|
+
id: string;
|
|
2494
2956
|
name: string;
|
|
2495
2957
|
host: string;
|
|
2496
2958
|
baseUrl: string;
|
|
2497
|
-
auth: "
|
|
2959
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
2498
2960
|
sendCustomerIdentity: boolean;
|
|
2499
|
-
credentialId?: string | undefined;
|
|
2500
|
-
authHeader?: string | undefined;
|
|
2501
|
-
}, {
|
|
2502
2961
|
calls: {
|
|
2503
2962
|
path: string;
|
|
2504
2963
|
id: string;
|
|
2505
2964
|
name: string;
|
|
2506
2965
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2507
|
-
bodyType: "json" | "
|
|
2508
|
-
readAs: "
|
|
2966
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
2967
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2509
2968
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2510
2969
|
summary: string;
|
|
2511
2970
|
latencyMs: number | null;
|
|
2512
2971
|
visibleFields: string[];
|
|
2513
2972
|
effects: "read" | "write" | "unclassified";
|
|
2514
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2515
2973
|
headers?: Record<string, string> | undefined;
|
|
2516
2974
|
body?: string | undefined;
|
|
2517
2975
|
sample?: unknown;
|
|
2518
2976
|
query?: Record<string, string> | undefined;
|
|
2519
2977
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
2978
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2520
2979
|
bindings?: {
|
|
2521
|
-
key: string;
|
|
2522
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2523
2980
|
path: string[];
|
|
2524
|
-
|
|
2981
|
+
source: "variable" | "context" | "model" | "identity";
|
|
2982
|
+
key: string;
|
|
2983
|
+
target: "body" | "path" | "query" | "header";
|
|
2525
2984
|
}[] | undefined;
|
|
2526
2985
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2527
2986
|
}[];
|
|
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;
|
|
2535
2987
|
credentialId?: string | undefined;
|
|
2536
2988
|
authHeader?: string | undefined;
|
|
2537
2989
|
}>, "many">;
|
|
@@ -2557,7 +3009,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2557
3009
|
pinned: z.ZodArray<z.ZodString, "many">;
|
|
2558
3010
|
}, "strict", z.ZodTypeAny, {
|
|
2559
3011
|
key: string;
|
|
2560
|
-
account: "customer" | "
|
|
3012
|
+
account: "customer" | "project" | "deployment";
|
|
2561
3013
|
rules: {
|
|
2562
3014
|
read: "allow" | "ask" | "block";
|
|
2563
3015
|
change: "allow" | "ask" | "block";
|
|
@@ -2569,7 +3021,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2569
3021
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2570
3022
|
}, {
|
|
2571
3023
|
key: string;
|
|
2572
|
-
account: "customer" | "
|
|
3024
|
+
account: "customer" | "project" | "deployment";
|
|
2573
3025
|
rules: {
|
|
2574
3026
|
read: "allow" | "ask" | "block";
|
|
2575
3027
|
change: "allow" | "ask" | "block";
|
|
@@ -2593,14 +3045,14 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2593
3045
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2594
3046
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2595
3047
|
}, "strict", z.ZodTypeAny, {
|
|
2596
|
-
description: string;
|
|
2597
3048
|
name: string;
|
|
2598
3049
|
inputSchema: Record<string, unknown>;
|
|
3050
|
+
description: string;
|
|
2599
3051
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2600
3052
|
}, {
|
|
2601
|
-
description: string;
|
|
2602
3053
|
name: string;
|
|
2603
3054
|
inputSchema: Record<string, unknown>;
|
|
3055
|
+
description: string;
|
|
2604
3056
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2605
3057
|
}>, "many">>;
|
|
2606
3058
|
groups: z.ZodArray<z.ZodObject<{
|
|
@@ -2620,41 +3072,41 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2620
3072
|
rule: "allow" | "ask" | "block";
|
|
2621
3073
|
}>, "many">;
|
|
2622
3074
|
}, "strict", z.ZodTypeAny, {
|
|
2623
|
-
id: string;
|
|
2624
3075
|
status: "connecting" | "connected";
|
|
3076
|
+
id: string;
|
|
2625
3077
|
name: string;
|
|
3078
|
+
groups: {
|
|
3079
|
+
tools: string[];
|
|
3080
|
+
name: "Read" | "Change" | "Delete";
|
|
3081
|
+
count: number;
|
|
3082
|
+
rule: "allow" | "ask" | "block";
|
|
3083
|
+
}[];
|
|
2626
3084
|
url: string;
|
|
2627
3085
|
toolCount: number;
|
|
2628
3086
|
definitions: {
|
|
2629
|
-
description: string;
|
|
2630
3087
|
name: string;
|
|
2631
3088
|
inputSchema: Record<string, unknown>;
|
|
3089
|
+
description: string;
|
|
2632
3090
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2633
3091
|
}[];
|
|
2634
|
-
groups: {
|
|
2635
|
-
tools: string[];
|
|
2636
|
-
name: "Read" | "Change" | "Delete";
|
|
2637
|
-
count: number;
|
|
2638
|
-
rule: "allow" | "ask" | "block";
|
|
2639
|
-
}[];
|
|
2640
3092
|
credentialId?: string | undefined;
|
|
2641
3093
|
}, {
|
|
2642
|
-
id: string;
|
|
2643
3094
|
status: "connecting" | "connected";
|
|
3095
|
+
id: string;
|
|
2644
3096
|
name: string;
|
|
2645
|
-
url: string;
|
|
2646
|
-
toolCount: number;
|
|
2647
3097
|
groups: {
|
|
2648
3098
|
tools: string[];
|
|
2649
3099
|
name: "Read" | "Change" | "Delete";
|
|
2650
3100
|
count: number;
|
|
2651
3101
|
rule: "allow" | "ask" | "block";
|
|
2652
3102
|
}[];
|
|
3103
|
+
url: string;
|
|
3104
|
+
toolCount: number;
|
|
2653
3105
|
credentialId?: string | undefined;
|
|
2654
3106
|
definitions?: {
|
|
2655
|
-
description: string;
|
|
2656
3107
|
name: string;
|
|
2657
3108
|
inputSchema: Record<string, unknown>;
|
|
3109
|
+
description: string;
|
|
2658
3110
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2659
3111
|
}[] | undefined;
|
|
2660
3112
|
}>, "many">;
|
|
@@ -2705,9 +3157,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2705
3157
|
}>>;
|
|
2706
3158
|
syncedLabel: z.ZodString;
|
|
2707
3159
|
}, "strict", z.ZodTypeAny, {
|
|
2708
|
-
id: string;
|
|
2709
3160
|
status: "failed" | "ready" | "syncing";
|
|
2710
3161
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3162
|
+
id: string;
|
|
2711
3163
|
name: string;
|
|
2712
3164
|
scope: "customer" | "project";
|
|
2713
3165
|
detail: string;
|
|
@@ -2729,9 +3181,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2729
3181
|
retryable: boolean;
|
|
2730
3182
|
} | undefined;
|
|
2731
3183
|
}, {
|
|
2732
|
-
id: string;
|
|
2733
3184
|
status: "failed" | "ready" | "syncing";
|
|
2734
3185
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3186
|
+
id: string;
|
|
2735
3187
|
name: string;
|
|
2736
3188
|
detail: string;
|
|
2737
3189
|
syncedLabel: string;
|
|
@@ -2758,19 +3210,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2758
3210
|
provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
|
|
2759
3211
|
preferSites: z.ZodArray<z.ZodString, "many">;
|
|
2760
3212
|
}, "strict", z.ZodTypeAny, {
|
|
2761
|
-
provider: "builtin";
|
|
2762
3213
|
enabled: boolean;
|
|
3214
|
+
provider: "builtin";
|
|
2763
3215
|
preferSites: string[];
|
|
2764
3216
|
}, {
|
|
2765
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
2766
3217
|
enabled: boolean;
|
|
3218
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
2767
3219
|
preferSites: string[];
|
|
2768
3220
|
}>;
|
|
2769
3221
|
}, "strict", z.ZodTypeAny, {
|
|
2770
3222
|
knowledge: {
|
|
2771
|
-
id: string;
|
|
2772
3223
|
status: "failed" | "ready" | "syncing";
|
|
2773
3224
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3225
|
+
id: string;
|
|
2774
3226
|
name: string;
|
|
2775
3227
|
scope: "customer" | "project";
|
|
2776
3228
|
detail: string;
|
|
@@ -2796,16 +3248,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2796
3248
|
searchPastChats: boolean;
|
|
2797
3249
|
conversationRetentionDays: number;
|
|
2798
3250
|
apis: {
|
|
3251
|
+
kind: "http" | "graphql" | "openapi";
|
|
3252
|
+
id: string;
|
|
3253
|
+
name: string;
|
|
3254
|
+
host: string;
|
|
3255
|
+
baseUrl: string;
|
|
3256
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
3257
|
+
sendCustomerIdentity: boolean;
|
|
2799
3258
|
calls: {
|
|
3259
|
+
headers: Record<string, string>;
|
|
3260
|
+
body: string;
|
|
2800
3261
|
path: string;
|
|
2801
3262
|
id: string;
|
|
2802
3263
|
name: string;
|
|
2803
|
-
headers: Record<string, string>;
|
|
2804
|
-
body: string;
|
|
2805
3264
|
query: Record<string, string>;
|
|
2806
3265
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2807
|
-
bodyType: "json" | "
|
|
2808
|
-
readAs: "
|
|
3266
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
3267
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2809
3268
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2810
3269
|
summary: string;
|
|
2811
3270
|
latencyMs: number | null;
|
|
@@ -2813,28 +3272,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2813
3272
|
effects: "read" | "write" | "unclassified";
|
|
2814
3273
|
permission: "allow" | "ask" | "block";
|
|
2815
3274
|
bindings: {
|
|
2816
|
-
key: string;
|
|
2817
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2818
3275
|
path: string[];
|
|
2819
|
-
|
|
3276
|
+
source: "variable" | "context" | "model" | "identity";
|
|
3277
|
+
key: string;
|
|
3278
|
+
target: "body" | "path" | "query" | "header";
|
|
2820
3279
|
}[];
|
|
2821
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2822
3280
|
sample?: unknown;
|
|
3281
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2823
3282
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2824
3283
|
}[];
|
|
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;
|
|
2832
3284
|
credentialId?: string | undefined;
|
|
2833
3285
|
authHeader?: string | undefined;
|
|
2834
3286
|
}[];
|
|
2835
3287
|
apps: {
|
|
2836
3288
|
key: string;
|
|
2837
|
-
account: "customer" | "
|
|
3289
|
+
account: "customer" | "project" | "deployment";
|
|
2838
3290
|
rules: {
|
|
2839
3291
|
read: "allow" | "ask" | "block";
|
|
2840
3292
|
change: "allow" | "ask" | "block";
|
|
@@ -2846,35 +3298,35 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2846
3298
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2847
3299
|
}[];
|
|
2848
3300
|
mcpServers: {
|
|
2849
|
-
id: string;
|
|
2850
3301
|
status: "connecting" | "connected";
|
|
3302
|
+
id: string;
|
|
2851
3303
|
name: string;
|
|
3304
|
+
groups: {
|
|
3305
|
+
tools: string[];
|
|
3306
|
+
name: "Read" | "Change" | "Delete";
|
|
3307
|
+
count: number;
|
|
3308
|
+
rule: "allow" | "ask" | "block";
|
|
3309
|
+
}[];
|
|
2852
3310
|
url: string;
|
|
2853
3311
|
toolCount: number;
|
|
2854
3312
|
definitions: {
|
|
2855
|
-
description: string;
|
|
2856
3313
|
name: string;
|
|
2857
3314
|
inputSchema: Record<string, unknown>;
|
|
3315
|
+
description: string;
|
|
2858
3316
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2859
3317
|
}[];
|
|
2860
|
-
groups: {
|
|
2861
|
-
tools: string[];
|
|
2862
|
-
name: "Read" | "Change" | "Delete";
|
|
2863
|
-
count: number;
|
|
2864
|
-
rule: "allow" | "ask" | "block";
|
|
2865
|
-
}[];
|
|
2866
3318
|
credentialId?: string | undefined;
|
|
2867
3319
|
}[];
|
|
2868
3320
|
webSearch: {
|
|
2869
|
-
provider: "builtin";
|
|
2870
3321
|
enabled: boolean;
|
|
3322
|
+
provider: "builtin";
|
|
2871
3323
|
preferSites: string[];
|
|
2872
3324
|
};
|
|
2873
3325
|
}, {
|
|
2874
3326
|
knowledge: {
|
|
2875
|
-
id: string;
|
|
2876
3327
|
status: "failed" | "ready" | "syncing";
|
|
2877
3328
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3329
|
+
id: string;
|
|
2878
3330
|
name: string;
|
|
2879
3331
|
detail: string;
|
|
2880
3332
|
syncedLabel: string;
|
|
@@ -2897,45 +3349,45 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2897
3349
|
} | undefined;
|
|
2898
3350
|
}[];
|
|
2899
3351
|
apis: {
|
|
3352
|
+
kind: "http" | "graphql" | "openapi";
|
|
3353
|
+
id: string;
|
|
3354
|
+
name: string;
|
|
3355
|
+
host: string;
|
|
3356
|
+
baseUrl: string;
|
|
3357
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
3358
|
+
sendCustomerIdentity: boolean;
|
|
2900
3359
|
calls: {
|
|
2901
3360
|
path: string;
|
|
2902
3361
|
id: string;
|
|
2903
3362
|
name: string;
|
|
2904
3363
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2905
|
-
bodyType: "json" | "
|
|
2906
|
-
readAs: "
|
|
3364
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
3365
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
2907
3366
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2908
3367
|
summary: string;
|
|
2909
3368
|
latencyMs: number | null;
|
|
2910
3369
|
visibleFields: string[];
|
|
2911
3370
|
effects: "read" | "write" | "unclassified";
|
|
2912
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
2913
3371
|
headers?: Record<string, string> | undefined;
|
|
2914
3372
|
body?: string | undefined;
|
|
2915
3373
|
sample?: unknown;
|
|
2916
3374
|
query?: Record<string, string> | undefined;
|
|
2917
3375
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
3376
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
2918
3377
|
bindings?: {
|
|
2919
|
-
key: string;
|
|
2920
|
-
source: "model" | "variable" | "context" | "identity";
|
|
2921
3378
|
path: string[];
|
|
2922
|
-
|
|
3379
|
+
source: "variable" | "context" | "model" | "identity";
|
|
3380
|
+
key: string;
|
|
3381
|
+
target: "body" | "path" | "query" | "header";
|
|
2923
3382
|
}[] | undefined;
|
|
2924
3383
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2925
3384
|
}[];
|
|
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;
|
|
2933
3385
|
credentialId?: string | undefined;
|
|
2934
3386
|
authHeader?: string | undefined;
|
|
2935
3387
|
}[];
|
|
2936
3388
|
apps: {
|
|
2937
3389
|
key: string;
|
|
2938
|
-
account: "customer" | "
|
|
3390
|
+
account: "customer" | "project" | "deployment";
|
|
2939
3391
|
rules: {
|
|
2940
3392
|
read: "allow" | "ask" | "block";
|
|
2941
3393
|
change: "allow" | "ask" | "block";
|
|
@@ -2947,28 +3399,28 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2947
3399
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2948
3400
|
}[];
|
|
2949
3401
|
mcpServers: {
|
|
2950
|
-
id: string;
|
|
2951
3402
|
status: "connecting" | "connected";
|
|
3403
|
+
id: string;
|
|
2952
3404
|
name: string;
|
|
2953
|
-
url: string;
|
|
2954
|
-
toolCount: number;
|
|
2955
3405
|
groups: {
|
|
2956
3406
|
tools: string[];
|
|
2957
3407
|
name: "Read" | "Change" | "Delete";
|
|
2958
3408
|
count: number;
|
|
2959
3409
|
rule: "allow" | "ask" | "block";
|
|
2960
3410
|
}[];
|
|
3411
|
+
url: string;
|
|
3412
|
+
toolCount: number;
|
|
2961
3413
|
credentialId?: string | undefined;
|
|
2962
3414
|
definitions?: {
|
|
2963
|
-
description: string;
|
|
2964
3415
|
name: string;
|
|
2965
3416
|
inputSchema: Record<string, unknown>;
|
|
3417
|
+
description: string;
|
|
2966
3418
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2967
3419
|
}[] | undefined;
|
|
2968
3420
|
}[];
|
|
2969
3421
|
webSearch: {
|
|
2970
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
2971
3422
|
enabled: boolean;
|
|
3423
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
2972
3424
|
preferSites: string[];
|
|
2973
3425
|
};
|
|
2974
3426
|
readPages?: boolean | undefined;
|
|
@@ -2985,21 +3437,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2985
3437
|
chipNote: z.ZodString;
|
|
2986
3438
|
description: z.ZodString;
|
|
2987
3439
|
}, "strict", z.ZodTypeAny, {
|
|
2988
|
-
description: string;
|
|
2989
3440
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2990
3441
|
required: boolean;
|
|
2991
3442
|
name: string;
|
|
3443
|
+
description: string;
|
|
2992
3444
|
defaultValue: string;
|
|
2993
|
-
usedIn: ("
|
|
3445
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
2994
3446
|
chipNote: string;
|
|
2995
3447
|
values?: string[] | undefined;
|
|
2996
3448
|
}, {
|
|
2997
|
-
description: string;
|
|
2998
3449
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2999
3450
|
required: boolean;
|
|
3000
3451
|
name: string;
|
|
3452
|
+
description: string;
|
|
3001
3453
|
defaultValue: string;
|
|
3002
|
-
usedIn: ("
|
|
3454
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3003
3455
|
chipNote: string;
|
|
3004
3456
|
values?: string[] | undefined;
|
|
3005
3457
|
}>, "many">;
|
|
@@ -3017,20 +3469,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3017
3469
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3018
3470
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3019
3471
|
}, "strict", z.ZodTypeAny, {
|
|
3020
|
-
|
|
3021
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3472
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3022
3473
|
id: string;
|
|
3023
3474
|
required: boolean;
|
|
3024
3475
|
name: string;
|
|
3476
|
+
description: string;
|
|
3025
3477
|
level: number;
|
|
3026
3478
|
values?: string[] | undefined;
|
|
3027
3479
|
items?: Record<string, unknown> | undefined;
|
|
3028
3480
|
}, {
|
|
3029
|
-
|
|
3030
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3481
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3031
3482
|
id: string;
|
|
3032
3483
|
required: boolean;
|
|
3033
3484
|
name: string;
|
|
3485
|
+
description: string;
|
|
3034
3486
|
level: number;
|
|
3035
3487
|
values?: string[] | undefined;
|
|
3036
3488
|
items?: Record<string, unknown> | undefined;
|
|
@@ -3038,32 +3490,32 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3038
3490
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3039
3491
|
}, "strict", z.ZodTypeAny, {
|
|
3040
3492
|
shape: {
|
|
3041
|
-
|
|
3042
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3493
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3043
3494
|
id: string;
|
|
3044
3495
|
required: boolean;
|
|
3045
3496
|
name: string;
|
|
3497
|
+
description: string;
|
|
3046
3498
|
level: number;
|
|
3047
3499
|
values?: string[] | undefined;
|
|
3048
3500
|
items?: Record<string, unknown> | undefined;
|
|
3049
3501
|
}[];
|
|
3050
|
-
format: "
|
|
3051
|
-
delivery: "
|
|
3502
|
+
format: "json" | "text";
|
|
3503
|
+
delivery: "stream" | "once" | "webhook";
|
|
3052
3504
|
webhookUrl: string;
|
|
3053
3505
|
schema?: Record<string, unknown> | undefined;
|
|
3054
3506
|
}, {
|
|
3055
3507
|
shape: {
|
|
3056
|
-
|
|
3057
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3508
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3058
3509
|
id: string;
|
|
3059
3510
|
required: boolean;
|
|
3060
3511
|
name: string;
|
|
3512
|
+
description: string;
|
|
3061
3513
|
level: number;
|
|
3062
3514
|
values?: string[] | undefined;
|
|
3063
3515
|
items?: Record<string, unknown> | undefined;
|
|
3064
3516
|
}[];
|
|
3065
|
-
format: "
|
|
3066
|
-
delivery: "
|
|
3517
|
+
format: "json" | "text";
|
|
3518
|
+
delivery: "stream" | "once" | "webhook";
|
|
3067
3519
|
webhookUrl: string;
|
|
3068
3520
|
schema?: Record<string, unknown> | undefined;
|
|
3069
3521
|
}>;
|
|
@@ -3080,38 +3532,38 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3080
3532
|
path: z.ZodArray<z.ZodString, "many">;
|
|
3081
3533
|
target: z.ZodArray<z.ZodString, "many">;
|
|
3082
3534
|
}, "strict", z.ZodTypeAny, {
|
|
3083
|
-
source: "message" | "variable" | "context";
|
|
3084
3535
|
path: string[];
|
|
3536
|
+
source: "message" | "variable" | "context";
|
|
3085
3537
|
target: string[];
|
|
3086
3538
|
}, {
|
|
3087
|
-
source: "message" | "variable" | "context";
|
|
3088
3539
|
path: string[];
|
|
3540
|
+
source: "message" | "variable" | "context";
|
|
3089
3541
|
target: string[];
|
|
3090
3542
|
}>, "many">;
|
|
3091
3543
|
}, "strict", z.ZodTypeAny, {
|
|
3092
|
-
id: string;
|
|
3093
3544
|
kind: "workbench" | "mcp" | "app";
|
|
3545
|
+
id: string;
|
|
3094
3546
|
name: string;
|
|
3095
|
-
input: Record<string, unknown>;
|
|
3096
|
-
toolKey: string;
|
|
3097
3547
|
capabilityId: string;
|
|
3098
3548
|
bindings: {
|
|
3099
|
-
source: "message" | "variable" | "context";
|
|
3100
3549
|
path: string[];
|
|
3550
|
+
source: "message" | "variable" | "context";
|
|
3101
3551
|
target: string[];
|
|
3102
3552
|
}[];
|
|
3553
|
+
toolKey: string;
|
|
3554
|
+
input: Record<string, unknown>;
|
|
3103
3555
|
}, {
|
|
3104
|
-
id: string;
|
|
3105
3556
|
kind: "workbench" | "mcp" | "app";
|
|
3557
|
+
id: string;
|
|
3106
3558
|
name: string;
|
|
3107
|
-
input: Record<string, unknown>;
|
|
3108
|
-
toolKey: string;
|
|
3109
3559
|
capabilityId: string;
|
|
3110
3560
|
bindings: {
|
|
3111
|
-
source: "message" | "variable" | "context";
|
|
3112
3561
|
path: string[];
|
|
3562
|
+
source: "message" | "variable" | "context";
|
|
3113
3563
|
target: string[];
|
|
3114
3564
|
}[];
|
|
3565
|
+
toolKey: string;
|
|
3566
|
+
input: Record<string, unknown>;
|
|
3115
3567
|
}>, "many">>;
|
|
3116
3568
|
before: z.ZodArray<z.ZodString, "many">;
|
|
3117
3569
|
after: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3123,17 +3575,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3123
3575
|
before: string[];
|
|
3124
3576
|
after: string[];
|
|
3125
3577
|
preparations: {
|
|
3126
|
-
id: string;
|
|
3127
3578
|
kind: "workbench" | "mcp" | "app";
|
|
3579
|
+
id: string;
|
|
3128
3580
|
name: string;
|
|
3129
|
-
input: Record<string, unknown>;
|
|
3130
|
-
toolKey: string;
|
|
3131
3581
|
capabilityId: string;
|
|
3132
3582
|
bindings: {
|
|
3133
|
-
source: "message" | "variable" | "context";
|
|
3134
3583
|
path: string[];
|
|
3584
|
+
source: "message" | "variable" | "context";
|
|
3135
3585
|
target: string[];
|
|
3136
3586
|
}[];
|
|
3587
|
+
toolKey: string;
|
|
3588
|
+
input: Record<string, unknown>;
|
|
3137
3589
|
}[];
|
|
3138
3590
|
stopOnFail: string[];
|
|
3139
3591
|
stepLimit: number;
|
|
@@ -3144,70 +3596,54 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3144
3596
|
stopOnFail: string[];
|
|
3145
3597
|
stepLimit: number | null;
|
|
3146
3598
|
preparations?: {
|
|
3147
|
-
id: string;
|
|
3148
3599
|
kind: "workbench" | "mcp" | "app";
|
|
3600
|
+
id: string;
|
|
3149
3601
|
name: string;
|
|
3150
|
-
input: Record<string, unknown>;
|
|
3151
|
-
toolKey: string;
|
|
3152
3602
|
capabilityId: string;
|
|
3153
3603
|
bindings: {
|
|
3154
|
-
source: "message" | "variable" | "context";
|
|
3155
3604
|
path: string[];
|
|
3605
|
+
source: "message" | "variable" | "context";
|
|
3156
3606
|
target: string[];
|
|
3157
3607
|
}[];
|
|
3608
|
+
toolKey: string;
|
|
3609
|
+
input: Record<string, unknown>;
|
|
3158
3610
|
}[] | undefined;
|
|
3159
3611
|
}>;
|
|
3160
3612
|
}, "strict", z.ZodTypeAny, {
|
|
3161
|
-
|
|
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
|
-
};
|
|
3613
|
+
name: string;
|
|
3177
3614
|
workbench: {
|
|
3178
3615
|
enabled: boolean;
|
|
3179
3616
|
files: "per_customer" | "per_run";
|
|
3180
3617
|
configured: boolean;
|
|
3181
|
-
size: "medium" | "
|
|
3618
|
+
size: "medium" | "small" | "large";
|
|
3182
3619
|
access: "allow" | "ask" | "block";
|
|
3183
3620
|
languages: string[];
|
|
3184
3621
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
3185
3622
|
};
|
|
3186
|
-
|
|
3623
|
+
files: {
|
|
3624
|
+
enabled: boolean;
|
|
3625
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
3626
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
3627
|
+
};
|
|
3187
3628
|
variables: {
|
|
3188
|
-
description: string;
|
|
3189
3629
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3190
3630
|
required: boolean;
|
|
3191
3631
|
name: string;
|
|
3632
|
+
description: string;
|
|
3192
3633
|
defaultValue: string;
|
|
3193
|
-
usedIn: ("
|
|
3634
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3194
3635
|
chipNote: string;
|
|
3195
3636
|
values?: string[] | undefined;
|
|
3196
3637
|
}[];
|
|
3197
|
-
files: {
|
|
3198
|
-
enabled: boolean;
|
|
3199
|
-
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
3200
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
3201
|
-
};
|
|
3202
3638
|
instructions: {
|
|
3203
3639
|
text: string;
|
|
3204
3640
|
editedAt: string | null;
|
|
3205
3641
|
};
|
|
3206
3642
|
context: {
|
|
3207
3643
|
knowledge: {
|
|
3208
|
-
id: string;
|
|
3209
3644
|
status: "failed" | "ready" | "syncing";
|
|
3210
3645
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3646
|
+
id: string;
|
|
3211
3647
|
name: string;
|
|
3212
3648
|
scope: "customer" | "project";
|
|
3213
3649
|
detail: string;
|
|
@@ -3233,16 +3669,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3233
3669
|
searchPastChats: boolean;
|
|
3234
3670
|
conversationRetentionDays: number;
|
|
3235
3671
|
apis: {
|
|
3672
|
+
kind: "http" | "graphql" | "openapi";
|
|
3673
|
+
id: string;
|
|
3674
|
+
name: string;
|
|
3675
|
+
host: string;
|
|
3676
|
+
baseUrl: string;
|
|
3677
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
3678
|
+
sendCustomerIdentity: boolean;
|
|
3236
3679
|
calls: {
|
|
3680
|
+
headers: Record<string, string>;
|
|
3681
|
+
body: string;
|
|
3237
3682
|
path: string;
|
|
3238
3683
|
id: string;
|
|
3239
3684
|
name: string;
|
|
3240
|
-
headers: Record<string, string>;
|
|
3241
|
-
body: string;
|
|
3242
3685
|
query: Record<string, string>;
|
|
3243
3686
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3244
|
-
bodyType: "json" | "
|
|
3245
|
-
readAs: "
|
|
3687
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
3688
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
3246
3689
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3247
3690
|
summary: string;
|
|
3248
3691
|
latencyMs: number | null;
|
|
@@ -3250,28 +3693,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3250
3693
|
effects: "read" | "write" | "unclassified";
|
|
3251
3694
|
permission: "allow" | "ask" | "block";
|
|
3252
3695
|
bindings: {
|
|
3253
|
-
key: string;
|
|
3254
|
-
source: "model" | "variable" | "context" | "identity";
|
|
3255
3696
|
path: string[];
|
|
3256
|
-
|
|
3697
|
+
source: "variable" | "context" | "model" | "identity";
|
|
3698
|
+
key: string;
|
|
3699
|
+
target: "body" | "path" | "query" | "header";
|
|
3257
3700
|
}[];
|
|
3258
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
3259
3701
|
sample?: unknown;
|
|
3702
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
3260
3703
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3261
3704
|
}[];
|
|
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;
|
|
3269
3705
|
credentialId?: string | undefined;
|
|
3270
3706
|
authHeader?: string | undefined;
|
|
3271
3707
|
}[];
|
|
3272
3708
|
apps: {
|
|
3273
3709
|
key: string;
|
|
3274
|
-
account: "customer" | "
|
|
3710
|
+
account: "customer" | "project" | "deployment";
|
|
3275
3711
|
rules: {
|
|
3276
3712
|
read: "allow" | "ask" | "block";
|
|
3277
3713
|
change: "allow" | "ask" | "block";
|
|
@@ -3283,39 +3719,63 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3283
3719
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3284
3720
|
}[];
|
|
3285
3721
|
mcpServers: {
|
|
3286
|
-
id: string;
|
|
3287
3722
|
status: "connecting" | "connected";
|
|
3723
|
+
id: string;
|
|
3288
3724
|
name: string;
|
|
3725
|
+
groups: {
|
|
3726
|
+
tools: string[];
|
|
3727
|
+
name: "Read" | "Change" | "Delete";
|
|
3728
|
+
count: number;
|
|
3729
|
+
rule: "allow" | "ask" | "block";
|
|
3730
|
+
}[];
|
|
3289
3731
|
url: string;
|
|
3290
3732
|
toolCount: number;
|
|
3291
3733
|
definitions: {
|
|
3292
|
-
description: string;
|
|
3293
3734
|
name: string;
|
|
3294
3735
|
inputSchema: Record<string, unknown>;
|
|
3736
|
+
description: string;
|
|
3295
3737
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3296
3738
|
}[];
|
|
3297
|
-
groups: {
|
|
3298
|
-
tools: string[];
|
|
3299
|
-
name: "Read" | "Change" | "Delete";
|
|
3300
|
-
count: number;
|
|
3301
|
-
rule: "allow" | "ask" | "block";
|
|
3302
|
-
}[];
|
|
3303
3739
|
credentialId?: string | undefined;
|
|
3304
3740
|
}[];
|
|
3305
3741
|
webSearch: {
|
|
3306
|
-
provider: "builtin";
|
|
3307
3742
|
enabled: boolean;
|
|
3743
|
+
provider: "builtin";
|
|
3308
3744
|
preferSites: string[];
|
|
3309
3745
|
};
|
|
3310
3746
|
};
|
|
3747
|
+
memory: {
|
|
3748
|
+
never: string[];
|
|
3749
|
+
enabled: boolean;
|
|
3750
|
+
configured: boolean;
|
|
3751
|
+
who: {
|
|
3752
|
+
customer: boolean;
|
|
3753
|
+
company: boolean;
|
|
3754
|
+
bot: boolean;
|
|
3755
|
+
};
|
|
3756
|
+
what: string;
|
|
3757
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
3758
|
+
};
|
|
3759
|
+
model: {
|
|
3760
|
+
id: string;
|
|
3761
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
3762
|
+
};
|
|
3311
3763
|
publicDescription: string;
|
|
3312
3764
|
iconAssetId: string | null;
|
|
3765
|
+
jobs: {
|
|
3766
|
+
reviewCode: {
|
|
3767
|
+
repositories: {
|
|
3768
|
+
id: string;
|
|
3769
|
+
name: string;
|
|
3770
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
3771
|
+
connectedAccountId: string;
|
|
3772
|
+
}[];
|
|
3773
|
+
reviewFocus: string;
|
|
3774
|
+
} | null;
|
|
3775
|
+
};
|
|
3313
3776
|
skills: {
|
|
3314
3777
|
id: string;
|
|
3315
3778
|
name: string;
|
|
3316
|
-
cases: {
|
|
3317
|
-
text: string;
|
|
3318
|
-
}[];
|
|
3319
3779
|
files: {
|
|
3320
3780
|
name: string;
|
|
3321
3781
|
content: string;
|
|
@@ -3324,6 +3784,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3324
3784
|
summary: string;
|
|
3325
3785
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3326
3786
|
load: "auto" | "always";
|
|
3787
|
+
cases: {
|
|
3788
|
+
text: string;
|
|
3789
|
+
}[];
|
|
3327
3790
|
exceptions: {
|
|
3328
3791
|
text: string;
|
|
3329
3792
|
}[];
|
|
@@ -3339,17 +3802,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3339
3802
|
}[];
|
|
3340
3803
|
answer: {
|
|
3341
3804
|
shape: {
|
|
3342
|
-
|
|
3343
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3805
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3344
3806
|
id: string;
|
|
3345
3807
|
required: boolean;
|
|
3346
3808
|
name: string;
|
|
3809
|
+
description: string;
|
|
3347
3810
|
level: number;
|
|
3348
3811
|
values?: string[] | undefined;
|
|
3349
3812
|
items?: Record<string, unknown> | undefined;
|
|
3350
3813
|
}[];
|
|
3351
|
-
format: "
|
|
3352
|
-
delivery: "
|
|
3814
|
+
format: "json" | "text";
|
|
3815
|
+
delivery: "stream" | "once" | "webhook";
|
|
3353
3816
|
webhookUrl: string;
|
|
3354
3817
|
schema?: Record<string, unknown> | undefined;
|
|
3355
3818
|
};
|
|
@@ -3358,29 +3821,29 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3358
3821
|
before: string[];
|
|
3359
3822
|
after: string[];
|
|
3360
3823
|
preparations: {
|
|
3361
|
-
id: string;
|
|
3362
3824
|
kind: "workbench" | "mcp" | "app";
|
|
3825
|
+
id: string;
|
|
3363
3826
|
name: string;
|
|
3364
|
-
input: Record<string, unknown>;
|
|
3365
|
-
toolKey: string;
|
|
3366
3827
|
capabilityId: string;
|
|
3367
3828
|
bindings: {
|
|
3368
|
-
source: "message" | "variable" | "context";
|
|
3369
3829
|
path: string[];
|
|
3830
|
+
source: "message" | "variable" | "context";
|
|
3370
3831
|
target: string[];
|
|
3371
3832
|
}[];
|
|
3833
|
+
toolKey: string;
|
|
3834
|
+
input: Record<string, unknown>;
|
|
3372
3835
|
}[];
|
|
3373
3836
|
stopOnFail: string[];
|
|
3374
3837
|
stepLimit: number;
|
|
3375
3838
|
};
|
|
3376
3839
|
triggers: ({
|
|
3377
|
-
label: string;
|
|
3378
|
-
id: string;
|
|
3379
3840
|
kind: "app";
|
|
3841
|
+
id: string;
|
|
3380
3842
|
enabled: boolean;
|
|
3381
3843
|
name: string;
|
|
3382
3844
|
variables: Record<string, unknown>;
|
|
3383
3845
|
subscriptionId: string;
|
|
3846
|
+
label: string;
|
|
3384
3847
|
providerKey: string;
|
|
3385
3848
|
eventTypes: string[];
|
|
3386
3849
|
runsAs: "none" | "field";
|
|
@@ -3388,8 +3851,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3388
3851
|
instruction: string;
|
|
3389
3852
|
answerTo: "none" | "webhook";
|
|
3390
3853
|
} | {
|
|
3391
|
-
id: string;
|
|
3392
3854
|
kind: "webhook";
|
|
3855
|
+
id: string;
|
|
3393
3856
|
tenantId: string;
|
|
3394
3857
|
enabled: boolean;
|
|
3395
3858
|
name: string;
|
|
@@ -3399,24 +3862,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3399
3862
|
instruction: string;
|
|
3400
3863
|
answerTo: "none" | "webhook";
|
|
3401
3864
|
} | {
|
|
3402
|
-
every: "
|
|
3403
|
-
id: string;
|
|
3865
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
3404
3866
|
kind: "schedule";
|
|
3405
3867
|
date: string;
|
|
3868
|
+
id: string;
|
|
3406
3869
|
tenantId: string;
|
|
3407
3870
|
enabled: boolean;
|
|
3408
3871
|
name: string;
|
|
3409
|
-
variables: Record<string, unknown>;
|
|
3410
|
-
timezone: string;
|
|
3411
|
-
customerId: string;
|
|
3412
3872
|
days: number[];
|
|
3413
|
-
|
|
3873
|
+
timezone: string;
|
|
3874
|
+
variables: Record<string, unknown>;
|
|
3875
|
+
runsAs: "one" | "none";
|
|
3414
3876
|
instruction: string;
|
|
3415
3877
|
answerTo: "none" | "webhook";
|
|
3416
3878
|
repeat: "once" | "repeat";
|
|
3417
3879
|
time: string;
|
|
3880
|
+
customerId: string;
|
|
3418
3881
|
cron?: string | undefined;
|
|
3419
|
-
intervalMinutes?:
|
|
3882
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
3420
3883
|
monthDay?: number | "last" | undefined;
|
|
3421
3884
|
})[];
|
|
3422
3885
|
workflows: {
|
|
@@ -3425,45 +3888,29 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3425
3888
|
}[];
|
|
3426
3889
|
timezone?: string | null | undefined;
|
|
3427
3890
|
avatar?: {
|
|
3428
|
-
version: 1;
|
|
3429
3891
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3430
3892
|
seed: string;
|
|
3893
|
+
version: 1;
|
|
3431
3894
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3432
3895
|
} | null | undefined;
|
|
3433
3896
|
}, {
|
|
3434
|
-
|
|
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
|
-
};
|
|
3897
|
+
name: string;
|
|
3450
3898
|
workbench: {
|
|
3451
3899
|
enabled: boolean;
|
|
3452
3900
|
files: "per_customer" | "per_run";
|
|
3453
3901
|
configured: boolean;
|
|
3454
|
-
size: "medium" | "
|
|
3902
|
+
size: "medium" | "small" | "large";
|
|
3455
3903
|
access: "allow" | "ask" | "block";
|
|
3456
3904
|
languages: string[];
|
|
3457
3905
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
3458
3906
|
};
|
|
3459
|
-
name: string;
|
|
3460
3907
|
variables: {
|
|
3461
|
-
description: string;
|
|
3462
3908
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3463
3909
|
required: boolean;
|
|
3464
3910
|
name: string;
|
|
3911
|
+
description: string;
|
|
3465
3912
|
defaultValue: string;
|
|
3466
|
-
usedIn: ("
|
|
3913
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3467
3914
|
chipNote: string;
|
|
3468
3915
|
values?: string[] | undefined;
|
|
3469
3916
|
}[];
|
|
@@ -3473,9 +3920,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3473
3920
|
};
|
|
3474
3921
|
context: {
|
|
3475
3922
|
knowledge: {
|
|
3476
|
-
id: string;
|
|
3477
3923
|
status: "failed" | "ready" | "syncing";
|
|
3478
3924
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3925
|
+
id: string;
|
|
3479
3926
|
name: string;
|
|
3480
3927
|
detail: string;
|
|
3481
3928
|
syncedLabel: string;
|
|
@@ -3498,45 +3945,45 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3498
3945
|
} | undefined;
|
|
3499
3946
|
}[];
|
|
3500
3947
|
apis: {
|
|
3948
|
+
kind: "http" | "graphql" | "openapi";
|
|
3949
|
+
id: string;
|
|
3950
|
+
name: string;
|
|
3951
|
+
host: string;
|
|
3952
|
+
baseUrl: string;
|
|
3953
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
3954
|
+
sendCustomerIdentity: boolean;
|
|
3501
3955
|
calls: {
|
|
3502
3956
|
path: string;
|
|
3503
3957
|
id: string;
|
|
3504
3958
|
name: string;
|
|
3505
3959
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3506
|
-
bodyType: "json" | "
|
|
3507
|
-
readAs: "
|
|
3960
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
3961
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
3508
3962
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3509
3963
|
summary: string;
|
|
3510
3964
|
latencyMs: number | null;
|
|
3511
3965
|
visibleFields: string[];
|
|
3512
3966
|
effects: "read" | "write" | "unclassified";
|
|
3513
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
3514
3967
|
headers?: Record<string, string> | undefined;
|
|
3515
3968
|
body?: string | undefined;
|
|
3516
3969
|
sample?: unknown;
|
|
3517
3970
|
query?: Record<string, string> | undefined;
|
|
3518
3971
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
3972
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
3519
3973
|
bindings?: {
|
|
3520
|
-
key: string;
|
|
3521
|
-
source: "model" | "variable" | "context" | "identity";
|
|
3522
3974
|
path: string[];
|
|
3523
|
-
|
|
3975
|
+
source: "variable" | "context" | "model" | "identity";
|
|
3976
|
+
key: string;
|
|
3977
|
+
target: "body" | "path" | "query" | "header";
|
|
3524
3978
|
}[] | undefined;
|
|
3525
3979
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3526
3980
|
}[];
|
|
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
3981
|
credentialId?: string | undefined;
|
|
3535
3982
|
authHeader?: string | undefined;
|
|
3536
3983
|
}[];
|
|
3537
3984
|
apps: {
|
|
3538
3985
|
key: string;
|
|
3539
|
-
account: "customer" | "
|
|
3986
|
+
account: "customer" | "project" | "deployment";
|
|
3540
3987
|
rules: {
|
|
3541
3988
|
read: "allow" | "ask" | "block";
|
|
3542
3989
|
change: "allow" | "ask" | "block";
|
|
@@ -3548,43 +3995,59 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3548
3995
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3549
3996
|
}[];
|
|
3550
3997
|
mcpServers: {
|
|
3551
|
-
id: string;
|
|
3552
3998
|
status: "connecting" | "connected";
|
|
3999
|
+
id: string;
|
|
3553
4000
|
name: string;
|
|
3554
|
-
url: string;
|
|
3555
|
-
toolCount: number;
|
|
3556
4001
|
groups: {
|
|
3557
4002
|
tools: string[];
|
|
3558
4003
|
name: "Read" | "Change" | "Delete";
|
|
3559
4004
|
count: number;
|
|
3560
4005
|
rule: "allow" | "ask" | "block";
|
|
3561
4006
|
}[];
|
|
4007
|
+
url: string;
|
|
4008
|
+
toolCount: number;
|
|
3562
4009
|
credentialId?: string | undefined;
|
|
3563
4010
|
definitions?: {
|
|
3564
|
-
description: string;
|
|
3565
4011
|
name: string;
|
|
3566
4012
|
inputSchema: Record<string, unknown>;
|
|
4013
|
+
description: string;
|
|
3567
4014
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3568
4015
|
}[] | undefined;
|
|
3569
4016
|
}[];
|
|
3570
4017
|
webSearch: {
|
|
3571
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
3572
4018
|
enabled: boolean;
|
|
4019
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
3573
4020
|
preferSites: string[];
|
|
3574
4021
|
};
|
|
3575
4022
|
readPages?: boolean | undefined;
|
|
3576
4023
|
searchPastChats?: boolean | undefined;
|
|
3577
4024
|
conversationRetentionDays?: number | undefined;
|
|
3578
4025
|
};
|
|
4026
|
+
memory: {
|
|
4027
|
+
never: string[];
|
|
4028
|
+
enabled: boolean;
|
|
4029
|
+
configured: boolean;
|
|
4030
|
+
who: {
|
|
4031
|
+
customer: boolean;
|
|
4032
|
+
company: boolean;
|
|
4033
|
+
bot: boolean;
|
|
4034
|
+
};
|
|
4035
|
+
what: string;
|
|
4036
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
4037
|
+
};
|
|
4038
|
+
model: {
|
|
4039
|
+
id: string;
|
|
4040
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
4041
|
+
};
|
|
3579
4042
|
skills: {
|
|
3580
4043
|
id: string;
|
|
3581
4044
|
name: string;
|
|
3582
|
-
cases: {
|
|
3583
|
-
text: string;
|
|
3584
|
-
}[];
|
|
3585
4045
|
summary: string;
|
|
3586
4046
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3587
4047
|
load: "auto" | "always";
|
|
4048
|
+
cases: {
|
|
4049
|
+
text: string;
|
|
4050
|
+
}[];
|
|
3588
4051
|
exceptions: {
|
|
3589
4052
|
text: string;
|
|
3590
4053
|
}[];
|
|
@@ -3605,17 +4068,17 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3605
4068
|
}[];
|
|
3606
4069
|
answer: {
|
|
3607
4070
|
shape: {
|
|
3608
|
-
|
|
3609
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4071
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3610
4072
|
id: string;
|
|
3611
4073
|
required: boolean;
|
|
3612
4074
|
name: string;
|
|
4075
|
+
description: string;
|
|
3613
4076
|
level: number;
|
|
3614
4077
|
values?: string[] | undefined;
|
|
3615
4078
|
items?: Record<string, unknown> | undefined;
|
|
3616
4079
|
}[];
|
|
3617
|
-
format: "
|
|
3618
|
-
delivery: "
|
|
4080
|
+
format: "json" | "text";
|
|
4081
|
+
delivery: "stream" | "once" | "webhook";
|
|
3619
4082
|
webhookUrl: string;
|
|
3620
4083
|
schema?: Record<string, unknown> | undefined;
|
|
3621
4084
|
};
|
|
@@ -3626,40 +4089,51 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3626
4089
|
stopOnFail: string[];
|
|
3627
4090
|
stepLimit: number | null;
|
|
3628
4091
|
preparations?: {
|
|
3629
|
-
id: string;
|
|
3630
4092
|
kind: "workbench" | "mcp" | "app";
|
|
4093
|
+
id: string;
|
|
3631
4094
|
name: string;
|
|
3632
|
-
input: Record<string, unknown>;
|
|
3633
|
-
toolKey: string;
|
|
3634
4095
|
capabilityId: string;
|
|
3635
4096
|
bindings: {
|
|
3636
|
-
source: "message" | "variable" | "context";
|
|
3637
4097
|
path: string[];
|
|
4098
|
+
source: "message" | "variable" | "context";
|
|
3638
4099
|
target: string[];
|
|
3639
4100
|
}[];
|
|
4101
|
+
toolKey: string;
|
|
4102
|
+
input: Record<string, unknown>;
|
|
3640
4103
|
}[] | undefined;
|
|
3641
4104
|
};
|
|
3642
|
-
timezone?: string | null | undefined;
|
|
3643
4105
|
files?: {
|
|
3644
4106
|
enabled: boolean;
|
|
3645
|
-
kinds: ("
|
|
4107
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
3646
4108
|
bigSpreadsheets: "workbench" | "preview";
|
|
3647
4109
|
} | undefined;
|
|
4110
|
+
timezone?: string | null | undefined;
|
|
3648
4111
|
publicDescription?: string | undefined;
|
|
3649
4112
|
iconAssetId?: string | null | undefined;
|
|
3650
4113
|
avatar?: {
|
|
3651
|
-
version: 1;
|
|
3652
4114
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3653
4115
|
seed: string;
|
|
4116
|
+
version: 1;
|
|
3654
4117
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3655
4118
|
} | null | undefined;
|
|
4119
|
+
jobs?: {
|
|
4120
|
+
reviewCode?: {
|
|
4121
|
+
repositories: {
|
|
4122
|
+
id: string;
|
|
4123
|
+
name: string;
|
|
4124
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4125
|
+
connectedAccountId: string;
|
|
4126
|
+
}[];
|
|
4127
|
+
reviewFocus: string;
|
|
4128
|
+
} | null | undefined;
|
|
4129
|
+
} | undefined;
|
|
3656
4130
|
triggers?: ({
|
|
3657
|
-
label: string;
|
|
3658
|
-
id: string;
|
|
3659
4131
|
kind: "app";
|
|
4132
|
+
id: string;
|
|
3660
4133
|
enabled: boolean;
|
|
3661
4134
|
name: string;
|
|
3662
4135
|
subscriptionId: string;
|
|
4136
|
+
label: string;
|
|
3663
4137
|
providerKey: string;
|
|
3664
4138
|
eventTypes: string[];
|
|
3665
4139
|
runsAs: "none" | "field";
|
|
@@ -3668,8 +4142,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3668
4142
|
answerTo: "none" | "webhook";
|
|
3669
4143
|
variables?: Record<string, unknown> | undefined;
|
|
3670
4144
|
} | {
|
|
3671
|
-
id: string;
|
|
3672
4145
|
kind: "webhook";
|
|
4146
|
+
id: string;
|
|
3673
4147
|
tenantId: string;
|
|
3674
4148
|
enabled: boolean;
|
|
3675
4149
|
name: string;
|
|
@@ -3679,24 +4153,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3679
4153
|
answerTo: "none" | "webhook";
|
|
3680
4154
|
variables?: Record<string, unknown> | undefined;
|
|
3681
4155
|
} | {
|
|
3682
|
-
every: "
|
|
3683
|
-
id: string;
|
|
4156
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
3684
4157
|
kind: "schedule";
|
|
3685
4158
|
date: string;
|
|
4159
|
+
id: string;
|
|
3686
4160
|
tenantId: string;
|
|
3687
4161
|
enabled: boolean;
|
|
3688
4162
|
name: string;
|
|
3689
|
-
timezone: string;
|
|
3690
|
-
customerId: string;
|
|
3691
4163
|
days: number[];
|
|
3692
|
-
|
|
4164
|
+
timezone: string;
|
|
4165
|
+
runsAs: "one" | "none";
|
|
3693
4166
|
instruction: string;
|
|
3694
4167
|
answerTo: "none" | "webhook";
|
|
3695
4168
|
repeat: "once" | "repeat";
|
|
3696
4169
|
time: string;
|
|
4170
|
+
customerId: string;
|
|
3697
4171
|
variables?: Record<string, unknown> | undefined;
|
|
3698
4172
|
cron?: string | undefined;
|
|
3699
|
-
intervalMinutes?:
|
|
4173
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
3700
4174
|
monthDay?: number | "last" | undefined;
|
|
3701
4175
|
})[] | undefined;
|
|
3702
4176
|
workflows?: {
|
|
@@ -3705,6 +4179,79 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3705
4179
|
}[] | undefined;
|
|
3706
4180
|
}>;
|
|
3707
4181
|
export declare const botPatchSchema: z.ZodObject<{
|
|
4182
|
+
jobs: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
4183
|
+
reviewCode: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
4184
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
4185
|
+
host: z.ZodEnum<["github", "gitlab", "bitbucket"]>;
|
|
4186
|
+
connectedAccountId: z.ZodString;
|
|
4187
|
+
id: z.ZodString;
|
|
4188
|
+
name: z.ZodString;
|
|
4189
|
+
}, "strict", z.ZodTypeAny, {
|
|
4190
|
+
id: string;
|
|
4191
|
+
name: string;
|
|
4192
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4193
|
+
connectedAccountId: string;
|
|
4194
|
+
}, {
|
|
4195
|
+
id: string;
|
|
4196
|
+
name: string;
|
|
4197
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4198
|
+
connectedAccountId: string;
|
|
4199
|
+
}>, "many">;
|
|
4200
|
+
reviewFocus: z.ZodString;
|
|
4201
|
+
}, "strict", z.ZodTypeAny, {
|
|
4202
|
+
repositories: {
|
|
4203
|
+
id: string;
|
|
4204
|
+
name: string;
|
|
4205
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4206
|
+
connectedAccountId: string;
|
|
4207
|
+
}[];
|
|
4208
|
+
reviewFocus: string;
|
|
4209
|
+
}, {
|
|
4210
|
+
repositories: {
|
|
4211
|
+
id: string;
|
|
4212
|
+
name: string;
|
|
4213
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4214
|
+
connectedAccountId: string;
|
|
4215
|
+
}[];
|
|
4216
|
+
reviewFocus: string;
|
|
4217
|
+
}>, {
|
|
4218
|
+
repositories: {
|
|
4219
|
+
id: string;
|
|
4220
|
+
name: string;
|
|
4221
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4222
|
+
connectedAccountId: string;
|
|
4223
|
+
}[];
|
|
4224
|
+
reviewFocus: string;
|
|
4225
|
+
}, {
|
|
4226
|
+
repositories: {
|
|
4227
|
+
id: string;
|
|
4228
|
+
name: string;
|
|
4229
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4230
|
+
connectedAccountId: string;
|
|
4231
|
+
}[];
|
|
4232
|
+
reviewFocus: string;
|
|
4233
|
+
}>>>;
|
|
4234
|
+
}, "strict", z.ZodTypeAny, {
|
|
4235
|
+
reviewCode: {
|
|
4236
|
+
repositories: {
|
|
4237
|
+
id: string;
|
|
4238
|
+
name: string;
|
|
4239
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4240
|
+
connectedAccountId: string;
|
|
4241
|
+
}[];
|
|
4242
|
+
reviewFocus: string;
|
|
4243
|
+
} | null;
|
|
4244
|
+
}, {
|
|
4245
|
+
reviewCode?: {
|
|
4246
|
+
repositories: {
|
|
4247
|
+
id: string;
|
|
4248
|
+
name: string;
|
|
4249
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
4250
|
+
connectedAccountId: string;
|
|
4251
|
+
}[];
|
|
4252
|
+
reviewFocus: string;
|
|
4253
|
+
} | null | undefined;
|
|
4254
|
+
}>>>;
|
|
3708
4255
|
name: z.ZodOptional<z.ZodString>;
|
|
3709
4256
|
publicDescription: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
3710
4257
|
iconAssetId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
@@ -3714,14 +4261,14 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3714
4261
|
seed: z.ZodString;
|
|
3715
4262
|
tone: z.ZodEnum<["auto", "mint", "teal", "sky", "iris", "plum", "rose", "coral", "apricot", "sun", "lime", "slate", "ink"]>;
|
|
3716
4263
|
}, "strict", z.ZodTypeAny, {
|
|
3717
|
-
version: 1;
|
|
3718
4264
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3719
4265
|
seed: string;
|
|
4266
|
+
version: 1;
|
|
3720
4267
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3721
4268
|
}, {
|
|
3722
|
-
version: 1;
|
|
3723
4269
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
3724
4270
|
seed: string;
|
|
4271
|
+
version: 1;
|
|
3725
4272
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
3726
4273
|
}>>>>;
|
|
3727
4274
|
files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
@@ -3730,11 +4277,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3730
4277
|
bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
|
|
3731
4278
|
}, "strict", z.ZodTypeAny, {
|
|
3732
4279
|
enabled: boolean;
|
|
3733
|
-
kinds: ("
|
|
4280
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
3734
4281
|
bigSpreadsheets: "workbench" | "preview";
|
|
3735
4282
|
}, {
|
|
3736
4283
|
enabled: boolean;
|
|
3737
|
-
kinds: ("
|
|
4284
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
3738
4285
|
bigSpreadsheets: "workbench" | "preview";
|
|
3739
4286
|
}>>>;
|
|
3740
4287
|
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
@@ -3753,13 +4300,13 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3753
4300
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3754
4301
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3755
4302
|
}, "strict", z.ZodTypeAny, {
|
|
3756
|
-
label: string;
|
|
3757
|
-
id: string;
|
|
3758
4303
|
kind: "app";
|
|
4304
|
+
id: string;
|
|
3759
4305
|
enabled: boolean;
|
|
3760
4306
|
name: string;
|
|
3761
4307
|
variables: Record<string, unknown>;
|
|
3762
4308
|
subscriptionId: string;
|
|
4309
|
+
label: string;
|
|
3763
4310
|
providerKey: string;
|
|
3764
4311
|
eventTypes: string[];
|
|
3765
4312
|
runsAs: "none" | "field";
|
|
@@ -3767,12 +4314,12 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3767
4314
|
instruction: string;
|
|
3768
4315
|
answerTo: "none" | "webhook";
|
|
3769
4316
|
}, {
|
|
3770
|
-
label: string;
|
|
3771
|
-
id: string;
|
|
3772
4317
|
kind: "app";
|
|
4318
|
+
id: string;
|
|
3773
4319
|
enabled: boolean;
|
|
3774
4320
|
name: string;
|
|
3775
4321
|
subscriptionId: string;
|
|
4322
|
+
label: string;
|
|
3776
4323
|
providerKey: string;
|
|
3777
4324
|
eventTypes: string[];
|
|
3778
4325
|
runsAs: "none" | "field";
|
|
@@ -3792,8 +4339,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3792
4339
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3793
4340
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3794
4341
|
}, "strict", z.ZodTypeAny, {
|
|
3795
|
-
id: string;
|
|
3796
4342
|
kind: "webhook";
|
|
4343
|
+
id: string;
|
|
3797
4344
|
tenantId: string;
|
|
3798
4345
|
enabled: boolean;
|
|
3799
4346
|
name: string;
|
|
@@ -3803,8 +4350,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3803
4350
|
instruction: string;
|
|
3804
4351
|
answerTo: "none" | "webhook";
|
|
3805
4352
|
}, {
|
|
3806
|
-
id: string;
|
|
3807
4353
|
kind: "webhook";
|
|
4354
|
+
id: string;
|
|
3808
4355
|
tenantId: string;
|
|
3809
4356
|
enabled: boolean;
|
|
3810
4357
|
name: string;
|
|
@@ -3834,44 +4381,44 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3834
4381
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3835
4382
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3836
4383
|
}, "strict", z.ZodTypeAny, {
|
|
3837
|
-
every: "
|
|
3838
|
-
id: string;
|
|
4384
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
3839
4385
|
kind: "schedule";
|
|
3840
4386
|
date: string;
|
|
4387
|
+
id: string;
|
|
3841
4388
|
tenantId: string;
|
|
3842
4389
|
enabled: boolean;
|
|
3843
4390
|
name: string;
|
|
3844
|
-
variables: Record<string, unknown>;
|
|
3845
|
-
timezone: string;
|
|
3846
|
-
customerId: string;
|
|
3847
4391
|
days: number[];
|
|
3848
|
-
|
|
4392
|
+
timezone: string;
|
|
4393
|
+
variables: Record<string, unknown>;
|
|
4394
|
+
runsAs: "one" | "none";
|
|
3849
4395
|
instruction: string;
|
|
3850
4396
|
answerTo: "none" | "webhook";
|
|
3851
4397
|
repeat: "once" | "repeat";
|
|
3852
4398
|
time: string;
|
|
4399
|
+
customerId: string;
|
|
3853
4400
|
cron?: string | undefined;
|
|
3854
|
-
intervalMinutes?:
|
|
4401
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
3855
4402
|
monthDay?: number | "last" | undefined;
|
|
3856
4403
|
}, {
|
|
3857
|
-
every: "
|
|
3858
|
-
id: string;
|
|
4404
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
3859
4405
|
kind: "schedule";
|
|
3860
4406
|
date: string;
|
|
4407
|
+
id: string;
|
|
3861
4408
|
tenantId: string;
|
|
3862
4409
|
enabled: boolean;
|
|
3863
4410
|
name: string;
|
|
3864
|
-
timezone: string;
|
|
3865
|
-
customerId: string;
|
|
3866
4411
|
days: number[];
|
|
3867
|
-
|
|
4412
|
+
timezone: string;
|
|
4413
|
+
runsAs: "one" | "none";
|
|
3868
4414
|
instruction: string;
|
|
3869
4415
|
answerTo: "none" | "webhook";
|
|
3870
4416
|
repeat: "once" | "repeat";
|
|
3871
4417
|
time: string;
|
|
4418
|
+
customerId: string;
|
|
3872
4419
|
variables?: Record<string, unknown> | undefined;
|
|
3873
4420
|
cron?: string | undefined;
|
|
3874
|
-
intervalMinutes?:
|
|
4421
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
3875
4422
|
monthDay?: number | "last" | undefined;
|
|
3876
4423
|
}>]>, "many">>>;
|
|
3877
4424
|
workflows: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -3889,10 +4436,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3889
4436
|
effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
3890
4437
|
}, "strict", z.ZodTypeAny, {
|
|
3891
4438
|
id: string;
|
|
3892
|
-
effort: "
|
|
4439
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
3893
4440
|
}, {
|
|
3894
4441
|
id: string;
|
|
3895
|
-
effort: "
|
|
4442
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
3896
4443
|
}>>;
|
|
3897
4444
|
instructions: z.ZodOptional<z.ZodObject<{
|
|
3898
4445
|
text: z.ZodString;
|
|
@@ -3961,9 +4508,6 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3961
4508
|
}, "strict", z.ZodTypeAny, {
|
|
3962
4509
|
id: string;
|
|
3963
4510
|
name: string;
|
|
3964
|
-
cases: {
|
|
3965
|
-
text: string;
|
|
3966
|
-
}[];
|
|
3967
4511
|
files: {
|
|
3968
4512
|
name: string;
|
|
3969
4513
|
content: string;
|
|
@@ -3972,6 +4516,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3972
4516
|
summary: string;
|
|
3973
4517
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3974
4518
|
load: "auto" | "always";
|
|
4519
|
+
cases: {
|
|
4520
|
+
text: string;
|
|
4521
|
+
}[];
|
|
3975
4522
|
exceptions: {
|
|
3976
4523
|
text: string;
|
|
3977
4524
|
}[];
|
|
@@ -3987,12 +4534,12 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3987
4534
|
}, {
|
|
3988
4535
|
id: string;
|
|
3989
4536
|
name: string;
|
|
3990
|
-
cases: {
|
|
3991
|
-
text: string;
|
|
3992
|
-
}[];
|
|
3993
4537
|
summary: string;
|
|
3994
4538
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
3995
4539
|
load: "auto" | "always";
|
|
4540
|
+
cases: {
|
|
4541
|
+
text: string;
|
|
4542
|
+
}[];
|
|
3996
4543
|
exceptions: {
|
|
3997
4544
|
text: string;
|
|
3998
4545
|
}[];
|
|
@@ -4065,7 +4612,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4065
4612
|
enabled: boolean;
|
|
4066
4613
|
files: "per_customer" | "per_run";
|
|
4067
4614
|
configured: boolean;
|
|
4068
|
-
size: "medium" | "
|
|
4615
|
+
size: "medium" | "small" | "large";
|
|
4069
4616
|
access: "allow" | "ask" | "block";
|
|
4070
4617
|
languages: string[];
|
|
4071
4618
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -4073,7 +4620,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4073
4620
|
enabled: boolean;
|
|
4074
4621
|
files: "per_customer" | "per_run";
|
|
4075
4622
|
configured: boolean;
|
|
4076
|
-
size: "medium" | "
|
|
4623
|
+
size: "medium" | "small" | "large";
|
|
4077
4624
|
access: "allow" | "ask" | "block";
|
|
4078
4625
|
languages: string[];
|
|
4079
4626
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
@@ -4115,28 +4662,28 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4115
4662
|
target: z.ZodEnum<["path", "query", "header", "body"]>;
|
|
4116
4663
|
key: z.ZodString;
|
|
4117
4664
|
}, "strict", z.ZodTypeAny, {
|
|
4118
|
-
key: string;
|
|
4119
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4120
4665
|
path: string[];
|
|
4121
|
-
|
|
4122
|
-
}, {
|
|
4666
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4123
4667
|
key: string;
|
|
4124
|
-
|
|
4668
|
+
target: "body" | "path" | "query" | "header";
|
|
4669
|
+
}, {
|
|
4125
4670
|
path: string[];
|
|
4126
|
-
|
|
4671
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4672
|
+
key: string;
|
|
4673
|
+
target: "body" | "path" | "query" | "header";
|
|
4127
4674
|
}>, "many">>;
|
|
4128
4675
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4129
4676
|
sample: z.ZodOptional<z.ZodUnknown>;
|
|
4130
4677
|
}, "strict", z.ZodTypeAny, {
|
|
4678
|
+
headers: Record<string, string>;
|
|
4679
|
+
body: string;
|
|
4131
4680
|
path: string;
|
|
4132
4681
|
id: string;
|
|
4133
4682
|
name: string;
|
|
4134
|
-
headers: Record<string, string>;
|
|
4135
|
-
body: string;
|
|
4136
4683
|
query: Record<string, string>;
|
|
4137
4684
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4138
|
-
bodyType: "json" | "
|
|
4139
|
-
readAs: "
|
|
4685
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
4686
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4140
4687
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4141
4688
|
summary: string;
|
|
4142
4689
|
latencyMs: number | null;
|
|
@@ -4144,51 +4691,58 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4144
4691
|
effects: "read" | "write" | "unclassified";
|
|
4145
4692
|
permission: "allow" | "ask" | "block";
|
|
4146
4693
|
bindings: {
|
|
4147
|
-
key: string;
|
|
4148
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4149
4694
|
path: string[];
|
|
4150
|
-
|
|
4695
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4696
|
+
key: string;
|
|
4697
|
+
target: "body" | "path" | "query" | "header";
|
|
4151
4698
|
}[];
|
|
4152
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4153
4699
|
sample?: unknown;
|
|
4700
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4154
4701
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4155
4702
|
}, {
|
|
4156
4703
|
path: string;
|
|
4157
4704
|
id: string;
|
|
4158
4705
|
name: string;
|
|
4159
4706
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4160
|
-
bodyType: "json" | "
|
|
4161
|
-
readAs: "
|
|
4707
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
4708
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4162
4709
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4163
4710
|
summary: string;
|
|
4164
4711
|
latencyMs: number | null;
|
|
4165
4712
|
visibleFields: string[];
|
|
4166
4713
|
effects: "read" | "write" | "unclassified";
|
|
4167
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4168
4714
|
headers?: Record<string, string> | undefined;
|
|
4169
4715
|
body?: string | undefined;
|
|
4170
4716
|
sample?: unknown;
|
|
4171
4717
|
query?: Record<string, string> | undefined;
|
|
4172
4718
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
4719
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4173
4720
|
bindings?: {
|
|
4174
|
-
key: string;
|
|
4175
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4176
4721
|
path: string[];
|
|
4177
|
-
|
|
4722
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4723
|
+
key: string;
|
|
4724
|
+
target: "body" | "path" | "query" | "header";
|
|
4178
4725
|
}[] | undefined;
|
|
4179
4726
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4180
4727
|
}>, "many">;
|
|
4181
4728
|
}, "strict", z.ZodTypeAny, {
|
|
4729
|
+
kind: "http" | "graphql" | "openapi";
|
|
4730
|
+
id: string;
|
|
4731
|
+
name: string;
|
|
4732
|
+
host: string;
|
|
4733
|
+
baseUrl: string;
|
|
4734
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
4735
|
+
sendCustomerIdentity: boolean;
|
|
4182
4736
|
calls: {
|
|
4737
|
+
headers: Record<string, string>;
|
|
4738
|
+
body: string;
|
|
4183
4739
|
path: string;
|
|
4184
4740
|
id: string;
|
|
4185
4741
|
name: string;
|
|
4186
|
-
headers: Record<string, string>;
|
|
4187
|
-
body: string;
|
|
4188
4742
|
query: Record<string, string>;
|
|
4189
4743
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4190
|
-
bodyType: "json" | "
|
|
4191
|
-
readAs: "
|
|
4744
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
4745
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4192
4746
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4193
4747
|
summary: string;
|
|
4194
4748
|
latencyMs: number | null;
|
|
@@ -4196,58 +4750,51 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4196
4750
|
effects: "read" | "write" | "unclassified";
|
|
4197
4751
|
permission: "allow" | "ask" | "block";
|
|
4198
4752
|
bindings: {
|
|
4199
|
-
key: string;
|
|
4200
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4201
4753
|
path: string[];
|
|
4202
|
-
|
|
4754
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4755
|
+
key: string;
|
|
4756
|
+
target: "body" | "path" | "query" | "header";
|
|
4203
4757
|
}[];
|
|
4204
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4205
4758
|
sample?: unknown;
|
|
4759
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4206
4760
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4207
4761
|
}[];
|
|
4208
|
-
|
|
4762
|
+
credentialId?: string | undefined;
|
|
4763
|
+
authHeader?: string | undefined;
|
|
4764
|
+
}, {
|
|
4209
4765
|
kind: "http" | "graphql" | "openapi";
|
|
4766
|
+
id: string;
|
|
4210
4767
|
name: string;
|
|
4211
4768
|
host: string;
|
|
4212
4769
|
baseUrl: string;
|
|
4213
|
-
auth: "
|
|
4770
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
4214
4771
|
sendCustomerIdentity: boolean;
|
|
4215
|
-
credentialId?: string | undefined;
|
|
4216
|
-
authHeader?: string | undefined;
|
|
4217
|
-
}, {
|
|
4218
4772
|
calls: {
|
|
4219
4773
|
path: string;
|
|
4220
4774
|
id: string;
|
|
4221
4775
|
name: string;
|
|
4222
4776
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4223
|
-
bodyType: "json" | "
|
|
4224
|
-
readAs: "
|
|
4777
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
4778
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4225
4779
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4226
4780
|
summary: string;
|
|
4227
4781
|
latencyMs: number | null;
|
|
4228
4782
|
visibleFields: string[];
|
|
4229
4783
|
effects: "read" | "write" | "unclassified";
|
|
4230
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4231
4784
|
headers?: Record<string, string> | undefined;
|
|
4232
4785
|
body?: string | undefined;
|
|
4233
4786
|
sample?: unknown;
|
|
4234
4787
|
query?: Record<string, string> | undefined;
|
|
4235
4788
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
4789
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4236
4790
|
bindings?: {
|
|
4237
|
-
key: string;
|
|
4238
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4239
4791
|
path: string[];
|
|
4240
|
-
|
|
4792
|
+
source: "variable" | "context" | "model" | "identity";
|
|
4793
|
+
key: string;
|
|
4794
|
+
target: "body" | "path" | "query" | "header";
|
|
4241
4795
|
}[] | undefined;
|
|
4242
4796
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4243
4797
|
}[];
|
|
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;
|
|
4251
4798
|
credentialId?: string | undefined;
|
|
4252
4799
|
authHeader?: string | undefined;
|
|
4253
4800
|
}>, "many">;
|
|
@@ -4273,7 +4820,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4273
4820
|
pinned: z.ZodArray<z.ZodString, "many">;
|
|
4274
4821
|
}, "strict", z.ZodTypeAny, {
|
|
4275
4822
|
key: string;
|
|
4276
|
-
account: "customer" | "
|
|
4823
|
+
account: "customer" | "project" | "deployment";
|
|
4277
4824
|
rules: {
|
|
4278
4825
|
read: "allow" | "ask" | "block";
|
|
4279
4826
|
change: "allow" | "ask" | "block";
|
|
@@ -4285,7 +4832,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4285
4832
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4286
4833
|
}, {
|
|
4287
4834
|
key: string;
|
|
4288
|
-
account: "customer" | "
|
|
4835
|
+
account: "customer" | "project" | "deployment";
|
|
4289
4836
|
rules: {
|
|
4290
4837
|
read: "allow" | "ask" | "block";
|
|
4291
4838
|
change: "allow" | "ask" | "block";
|
|
@@ -4309,14 +4856,14 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4309
4856
|
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4310
4857
|
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4311
4858
|
}, "strict", z.ZodTypeAny, {
|
|
4312
|
-
description: string;
|
|
4313
4859
|
name: string;
|
|
4314
4860
|
inputSchema: Record<string, unknown>;
|
|
4861
|
+
description: string;
|
|
4315
4862
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4316
4863
|
}, {
|
|
4317
|
-
description: string;
|
|
4318
4864
|
name: string;
|
|
4319
4865
|
inputSchema: Record<string, unknown>;
|
|
4866
|
+
description: string;
|
|
4320
4867
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4321
4868
|
}>, "many">>;
|
|
4322
4869
|
groups: z.ZodArray<z.ZodObject<{
|
|
@@ -4336,41 +4883,41 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4336
4883
|
rule: "allow" | "ask" | "block";
|
|
4337
4884
|
}>, "many">;
|
|
4338
4885
|
}, "strict", z.ZodTypeAny, {
|
|
4339
|
-
id: string;
|
|
4340
4886
|
status: "connecting" | "connected";
|
|
4887
|
+
id: string;
|
|
4341
4888
|
name: string;
|
|
4889
|
+
groups: {
|
|
4890
|
+
tools: string[];
|
|
4891
|
+
name: "Read" | "Change" | "Delete";
|
|
4892
|
+
count: number;
|
|
4893
|
+
rule: "allow" | "ask" | "block";
|
|
4894
|
+
}[];
|
|
4342
4895
|
url: string;
|
|
4343
4896
|
toolCount: number;
|
|
4344
4897
|
definitions: {
|
|
4345
|
-
description: string;
|
|
4346
4898
|
name: string;
|
|
4347
4899
|
inputSchema: Record<string, unknown>;
|
|
4900
|
+
description: string;
|
|
4348
4901
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4349
4902
|
}[];
|
|
4350
|
-
groups: {
|
|
4351
|
-
tools: string[];
|
|
4352
|
-
name: "Read" | "Change" | "Delete";
|
|
4353
|
-
count: number;
|
|
4354
|
-
rule: "allow" | "ask" | "block";
|
|
4355
|
-
}[];
|
|
4356
4903
|
credentialId?: string | undefined;
|
|
4357
4904
|
}, {
|
|
4358
|
-
id: string;
|
|
4359
4905
|
status: "connecting" | "connected";
|
|
4906
|
+
id: string;
|
|
4360
4907
|
name: string;
|
|
4361
|
-
url: string;
|
|
4362
|
-
toolCount: number;
|
|
4363
4908
|
groups: {
|
|
4364
4909
|
tools: string[];
|
|
4365
4910
|
name: "Read" | "Change" | "Delete";
|
|
4366
4911
|
count: number;
|
|
4367
4912
|
rule: "allow" | "ask" | "block";
|
|
4368
4913
|
}[];
|
|
4914
|
+
url: string;
|
|
4915
|
+
toolCount: number;
|
|
4369
4916
|
credentialId?: string | undefined;
|
|
4370
4917
|
definitions?: {
|
|
4371
|
-
description: string;
|
|
4372
4918
|
name: string;
|
|
4373
4919
|
inputSchema: Record<string, unknown>;
|
|
4920
|
+
description: string;
|
|
4374
4921
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4375
4922
|
}[] | undefined;
|
|
4376
4923
|
}>, "many">;
|
|
@@ -4421,9 +4968,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4421
4968
|
}>>;
|
|
4422
4969
|
syncedLabel: z.ZodString;
|
|
4423
4970
|
}, "strict", z.ZodTypeAny, {
|
|
4424
|
-
id: string;
|
|
4425
4971
|
status: "failed" | "ready" | "syncing";
|
|
4426
4972
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4973
|
+
id: string;
|
|
4427
4974
|
name: string;
|
|
4428
4975
|
scope: "customer" | "project";
|
|
4429
4976
|
detail: string;
|
|
@@ -4445,9 +4992,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4445
4992
|
retryable: boolean;
|
|
4446
4993
|
} | undefined;
|
|
4447
4994
|
}, {
|
|
4448
|
-
id: string;
|
|
4449
4995
|
status: "failed" | "ready" | "syncing";
|
|
4450
4996
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4997
|
+
id: string;
|
|
4451
4998
|
name: string;
|
|
4452
4999
|
detail: string;
|
|
4453
5000
|
syncedLabel: string;
|
|
@@ -4474,19 +5021,19 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4474
5021
|
provider: z.ZodEffects<z.ZodEnum<["builtin", "exa", "firecrawl"]>, "builtin", "builtin" | "exa" | "firecrawl">;
|
|
4475
5022
|
preferSites: z.ZodArray<z.ZodString, "many">;
|
|
4476
5023
|
}, "strict", z.ZodTypeAny, {
|
|
4477
|
-
provider: "builtin";
|
|
4478
5024
|
enabled: boolean;
|
|
5025
|
+
provider: "builtin";
|
|
4479
5026
|
preferSites: string[];
|
|
4480
5027
|
}, {
|
|
4481
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
4482
5028
|
enabled: boolean;
|
|
5029
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
4483
5030
|
preferSites: string[];
|
|
4484
5031
|
}>;
|
|
4485
5032
|
}, "strict", z.ZodTypeAny, {
|
|
4486
5033
|
knowledge: {
|
|
4487
|
-
id: string;
|
|
4488
5034
|
status: "failed" | "ready" | "syncing";
|
|
4489
5035
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5036
|
+
id: string;
|
|
4490
5037
|
name: string;
|
|
4491
5038
|
scope: "customer" | "project";
|
|
4492
5039
|
detail: string;
|
|
@@ -4512,16 +5059,23 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4512
5059
|
searchPastChats: boolean;
|
|
4513
5060
|
conversationRetentionDays: number;
|
|
4514
5061
|
apis: {
|
|
5062
|
+
kind: "http" | "graphql" | "openapi";
|
|
5063
|
+
id: string;
|
|
5064
|
+
name: string;
|
|
5065
|
+
host: string;
|
|
5066
|
+
baseUrl: string;
|
|
5067
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
5068
|
+
sendCustomerIdentity: boolean;
|
|
4515
5069
|
calls: {
|
|
5070
|
+
headers: Record<string, string>;
|
|
5071
|
+
body: string;
|
|
4516
5072
|
path: string;
|
|
4517
5073
|
id: string;
|
|
4518
5074
|
name: string;
|
|
4519
|
-
headers: Record<string, string>;
|
|
4520
|
-
body: string;
|
|
4521
5075
|
query: Record<string, string>;
|
|
4522
5076
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4523
|
-
bodyType: "json" | "
|
|
4524
|
-
readAs: "
|
|
5077
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
5078
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4525
5079
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4526
5080
|
summary: string;
|
|
4527
5081
|
latencyMs: number | null;
|
|
@@ -4529,28 +5083,21 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4529
5083
|
effects: "read" | "write" | "unclassified";
|
|
4530
5084
|
permission: "allow" | "ask" | "block";
|
|
4531
5085
|
bindings: {
|
|
4532
|
-
key: string;
|
|
4533
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4534
5086
|
path: string[];
|
|
4535
|
-
|
|
5087
|
+
source: "variable" | "context" | "model" | "identity";
|
|
5088
|
+
key: string;
|
|
5089
|
+
target: "body" | "path" | "query" | "header";
|
|
4536
5090
|
}[];
|
|
4537
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4538
5091
|
sample?: unknown;
|
|
5092
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4539
5093
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4540
5094
|
}[];
|
|
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;
|
|
4548
5095
|
credentialId?: string | undefined;
|
|
4549
5096
|
authHeader?: string | undefined;
|
|
4550
5097
|
}[];
|
|
4551
5098
|
apps: {
|
|
4552
5099
|
key: string;
|
|
4553
|
-
account: "customer" | "
|
|
5100
|
+
account: "customer" | "project" | "deployment";
|
|
4554
5101
|
rules: {
|
|
4555
5102
|
read: "allow" | "ask" | "block";
|
|
4556
5103
|
change: "allow" | "ask" | "block";
|
|
@@ -4562,35 +5109,35 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4562
5109
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4563
5110
|
}[];
|
|
4564
5111
|
mcpServers: {
|
|
4565
|
-
id: string;
|
|
4566
5112
|
status: "connecting" | "connected";
|
|
5113
|
+
id: string;
|
|
4567
5114
|
name: string;
|
|
5115
|
+
groups: {
|
|
5116
|
+
tools: string[];
|
|
5117
|
+
name: "Read" | "Change" | "Delete";
|
|
5118
|
+
count: number;
|
|
5119
|
+
rule: "allow" | "ask" | "block";
|
|
5120
|
+
}[];
|
|
4568
5121
|
url: string;
|
|
4569
5122
|
toolCount: number;
|
|
4570
5123
|
definitions: {
|
|
4571
|
-
description: string;
|
|
4572
5124
|
name: string;
|
|
4573
5125
|
inputSchema: Record<string, unknown>;
|
|
5126
|
+
description: string;
|
|
4574
5127
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4575
5128
|
}[];
|
|
4576
|
-
groups: {
|
|
4577
|
-
tools: string[];
|
|
4578
|
-
name: "Read" | "Change" | "Delete";
|
|
4579
|
-
count: number;
|
|
4580
|
-
rule: "allow" | "ask" | "block";
|
|
4581
|
-
}[];
|
|
4582
5129
|
credentialId?: string | undefined;
|
|
4583
5130
|
}[];
|
|
4584
5131
|
webSearch: {
|
|
4585
|
-
provider: "builtin";
|
|
4586
5132
|
enabled: boolean;
|
|
5133
|
+
provider: "builtin";
|
|
4587
5134
|
preferSites: string[];
|
|
4588
5135
|
};
|
|
4589
5136
|
}, {
|
|
4590
5137
|
knowledge: {
|
|
4591
|
-
id: string;
|
|
4592
5138
|
status: "failed" | "ready" | "syncing";
|
|
4593
5139
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5140
|
+
id: string;
|
|
4594
5141
|
name: string;
|
|
4595
5142
|
detail: string;
|
|
4596
5143
|
syncedLabel: string;
|
|
@@ -4613,45 +5160,45 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4613
5160
|
} | undefined;
|
|
4614
5161
|
}[];
|
|
4615
5162
|
apis: {
|
|
5163
|
+
kind: "http" | "graphql" | "openapi";
|
|
5164
|
+
id: string;
|
|
5165
|
+
name: string;
|
|
5166
|
+
host: string;
|
|
5167
|
+
baseUrl: string;
|
|
5168
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
5169
|
+
sendCustomerIdentity: boolean;
|
|
4616
5170
|
calls: {
|
|
4617
5171
|
path: string;
|
|
4618
5172
|
id: string;
|
|
4619
5173
|
name: string;
|
|
4620
5174
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4621
|
-
bodyType: "json" | "
|
|
4622
|
-
readAs: "
|
|
5175
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
5176
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4623
5177
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4624
5178
|
summary: string;
|
|
4625
5179
|
latencyMs: number | null;
|
|
4626
5180
|
visibleFields: string[];
|
|
4627
5181
|
effects: "read" | "write" | "unclassified";
|
|
4628
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4629
5182
|
headers?: Record<string, string> | undefined;
|
|
4630
5183
|
body?: string | undefined;
|
|
4631
5184
|
sample?: unknown;
|
|
4632
5185
|
query?: Record<string, string> | undefined;
|
|
4633
5186
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
5187
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4634
5188
|
bindings?: {
|
|
4635
|
-
key: string;
|
|
4636
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4637
5189
|
path: string[];
|
|
4638
|
-
|
|
5190
|
+
source: "variable" | "context" | "model" | "identity";
|
|
5191
|
+
key: string;
|
|
5192
|
+
target: "body" | "path" | "query" | "header";
|
|
4639
5193
|
}[] | undefined;
|
|
4640
5194
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4641
5195
|
}[];
|
|
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;
|
|
4649
5196
|
credentialId?: string | undefined;
|
|
4650
5197
|
authHeader?: string | undefined;
|
|
4651
5198
|
}[];
|
|
4652
5199
|
apps: {
|
|
4653
5200
|
key: string;
|
|
4654
|
-
account: "customer" | "
|
|
5201
|
+
account: "customer" | "project" | "deployment";
|
|
4655
5202
|
rules: {
|
|
4656
5203
|
read: "allow" | "ask" | "block";
|
|
4657
5204
|
change: "allow" | "ask" | "block";
|
|
@@ -4663,28 +5210,28 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4663
5210
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4664
5211
|
}[];
|
|
4665
5212
|
mcpServers: {
|
|
4666
|
-
id: string;
|
|
4667
5213
|
status: "connecting" | "connected";
|
|
5214
|
+
id: string;
|
|
4668
5215
|
name: string;
|
|
4669
|
-
url: string;
|
|
4670
|
-
toolCount: number;
|
|
4671
5216
|
groups: {
|
|
4672
5217
|
tools: string[];
|
|
4673
5218
|
name: "Read" | "Change" | "Delete";
|
|
4674
5219
|
count: number;
|
|
4675
5220
|
rule: "allow" | "ask" | "block";
|
|
4676
5221
|
}[];
|
|
5222
|
+
url: string;
|
|
5223
|
+
toolCount: number;
|
|
4677
5224
|
credentialId?: string | undefined;
|
|
4678
5225
|
definitions?: {
|
|
4679
|
-
description: string;
|
|
4680
5226
|
name: string;
|
|
4681
5227
|
inputSchema: Record<string, unknown>;
|
|
5228
|
+
description: string;
|
|
4682
5229
|
outputSchema?: Record<string, unknown> | undefined;
|
|
4683
5230
|
}[] | undefined;
|
|
4684
5231
|
}[];
|
|
4685
5232
|
webSearch: {
|
|
4686
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
4687
5233
|
enabled: boolean;
|
|
5234
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
4688
5235
|
preferSites: string[];
|
|
4689
5236
|
};
|
|
4690
5237
|
readPages?: boolean | undefined;
|
|
@@ -4701,21 +5248,21 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4701
5248
|
chipNote: z.ZodString;
|
|
4702
5249
|
description: z.ZodString;
|
|
4703
5250
|
}, "strict", z.ZodTypeAny, {
|
|
4704
|
-
description: string;
|
|
4705
5251
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4706
5252
|
required: boolean;
|
|
4707
5253
|
name: string;
|
|
5254
|
+
description: string;
|
|
4708
5255
|
defaultValue: string;
|
|
4709
|
-
usedIn: ("
|
|
5256
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
4710
5257
|
chipNote: string;
|
|
4711
5258
|
values?: string[] | undefined;
|
|
4712
5259
|
}, {
|
|
4713
|
-
description: string;
|
|
4714
5260
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4715
5261
|
required: boolean;
|
|
4716
5262
|
name: string;
|
|
5263
|
+
description: string;
|
|
4717
5264
|
defaultValue: string;
|
|
4718
|
-
usedIn: ("
|
|
5265
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
4719
5266
|
chipNote: string;
|
|
4720
5267
|
values?: string[] | undefined;
|
|
4721
5268
|
}>, "many">>;
|
|
@@ -4733,20 +5280,20 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4733
5280
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4734
5281
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4735
5282
|
}, "strict", z.ZodTypeAny, {
|
|
4736
|
-
|
|
4737
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5283
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
4738
5284
|
id: string;
|
|
4739
5285
|
required: boolean;
|
|
4740
5286
|
name: string;
|
|
5287
|
+
description: string;
|
|
4741
5288
|
level: number;
|
|
4742
5289
|
values?: string[] | undefined;
|
|
4743
5290
|
items?: Record<string, unknown> | undefined;
|
|
4744
5291
|
}, {
|
|
4745
|
-
|
|
4746
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5292
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
4747
5293
|
id: string;
|
|
4748
5294
|
required: boolean;
|
|
4749
5295
|
name: string;
|
|
5296
|
+
description: string;
|
|
4750
5297
|
level: number;
|
|
4751
5298
|
values?: string[] | undefined;
|
|
4752
5299
|
items?: Record<string, unknown> | undefined;
|
|
@@ -4754,32 +5301,32 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4754
5301
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4755
5302
|
}, "strict", z.ZodTypeAny, {
|
|
4756
5303
|
shape: {
|
|
4757
|
-
|
|
4758
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5304
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
4759
5305
|
id: string;
|
|
4760
5306
|
required: boolean;
|
|
4761
5307
|
name: string;
|
|
5308
|
+
description: string;
|
|
4762
5309
|
level: number;
|
|
4763
5310
|
values?: string[] | undefined;
|
|
4764
5311
|
items?: Record<string, unknown> | undefined;
|
|
4765
5312
|
}[];
|
|
4766
|
-
format: "
|
|
4767
|
-
delivery: "
|
|
5313
|
+
format: "json" | "text";
|
|
5314
|
+
delivery: "stream" | "once" | "webhook";
|
|
4768
5315
|
webhookUrl: string;
|
|
4769
5316
|
schema?: Record<string, unknown> | undefined;
|
|
4770
5317
|
}, {
|
|
4771
5318
|
shape: {
|
|
4772
|
-
|
|
4773
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5319
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
4774
5320
|
id: string;
|
|
4775
5321
|
required: boolean;
|
|
4776
5322
|
name: string;
|
|
5323
|
+
description: string;
|
|
4777
5324
|
level: number;
|
|
4778
5325
|
values?: string[] | undefined;
|
|
4779
5326
|
items?: Record<string, unknown> | undefined;
|
|
4780
5327
|
}[];
|
|
4781
|
-
format: "
|
|
4782
|
-
delivery: "
|
|
5328
|
+
format: "json" | "text";
|
|
5329
|
+
delivery: "stream" | "once" | "webhook";
|
|
4783
5330
|
webhookUrl: string;
|
|
4784
5331
|
schema?: Record<string, unknown> | undefined;
|
|
4785
5332
|
}>>;
|
|
@@ -4796,38 +5343,38 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4796
5343
|
path: z.ZodArray<z.ZodString, "many">;
|
|
4797
5344
|
target: z.ZodArray<z.ZodString, "many">;
|
|
4798
5345
|
}, "strict", z.ZodTypeAny, {
|
|
4799
|
-
source: "message" | "variable" | "context";
|
|
4800
5346
|
path: string[];
|
|
5347
|
+
source: "message" | "variable" | "context";
|
|
4801
5348
|
target: string[];
|
|
4802
5349
|
}, {
|
|
4803
|
-
source: "message" | "variable" | "context";
|
|
4804
5350
|
path: string[];
|
|
5351
|
+
source: "message" | "variable" | "context";
|
|
4805
5352
|
target: string[];
|
|
4806
5353
|
}>, "many">;
|
|
4807
5354
|
}, "strict", z.ZodTypeAny, {
|
|
4808
|
-
id: string;
|
|
4809
5355
|
kind: "workbench" | "mcp" | "app";
|
|
5356
|
+
id: string;
|
|
4810
5357
|
name: string;
|
|
4811
|
-
input: Record<string, unknown>;
|
|
4812
|
-
toolKey: string;
|
|
4813
5358
|
capabilityId: string;
|
|
4814
5359
|
bindings: {
|
|
4815
|
-
source: "message" | "variable" | "context";
|
|
4816
5360
|
path: string[];
|
|
5361
|
+
source: "message" | "variable" | "context";
|
|
4817
5362
|
target: string[];
|
|
4818
5363
|
}[];
|
|
5364
|
+
toolKey: string;
|
|
5365
|
+
input: Record<string, unknown>;
|
|
4819
5366
|
}, {
|
|
4820
|
-
id: string;
|
|
4821
5367
|
kind: "workbench" | "mcp" | "app";
|
|
5368
|
+
id: string;
|
|
4822
5369
|
name: string;
|
|
4823
|
-
input: Record<string, unknown>;
|
|
4824
|
-
toolKey: string;
|
|
4825
5370
|
capabilityId: string;
|
|
4826
5371
|
bindings: {
|
|
4827
|
-
source: "message" | "variable" | "context";
|
|
4828
5372
|
path: string[];
|
|
5373
|
+
source: "message" | "variable" | "context";
|
|
4829
5374
|
target: string[];
|
|
4830
5375
|
}[];
|
|
5376
|
+
toolKey: string;
|
|
5377
|
+
input: Record<string, unknown>;
|
|
4831
5378
|
}>, "many">>;
|
|
4832
5379
|
before: z.ZodArray<z.ZodString, "many">;
|
|
4833
5380
|
after: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4839,17 +5386,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4839
5386
|
before: string[];
|
|
4840
5387
|
after: string[];
|
|
4841
5388
|
preparations: {
|
|
4842
|
-
id: string;
|
|
4843
5389
|
kind: "workbench" | "mcp" | "app";
|
|
5390
|
+
id: string;
|
|
4844
5391
|
name: string;
|
|
4845
|
-
input: Record<string, unknown>;
|
|
4846
|
-
toolKey: string;
|
|
4847
5392
|
capabilityId: string;
|
|
4848
5393
|
bindings: {
|
|
4849
|
-
source: "message" | "variable" | "context";
|
|
4850
5394
|
path: string[];
|
|
5395
|
+
source: "message" | "variable" | "context";
|
|
4851
5396
|
target: string[];
|
|
4852
5397
|
}[];
|
|
5398
|
+
toolKey: string;
|
|
5399
|
+
input: Record<string, unknown>;
|
|
4853
5400
|
}[];
|
|
4854
5401
|
stopOnFail: string[];
|
|
4855
5402
|
stepLimit: number;
|
|
@@ -4860,71 +5407,55 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4860
5407
|
stopOnFail: string[];
|
|
4861
5408
|
stepLimit: number | null;
|
|
4862
5409
|
preparations?: {
|
|
4863
|
-
id: string;
|
|
4864
5410
|
kind: "workbench" | "mcp" | "app";
|
|
5411
|
+
id: string;
|
|
4865
5412
|
name: string;
|
|
4866
|
-
input: Record<string, unknown>;
|
|
4867
|
-
toolKey: string;
|
|
4868
5413
|
capabilityId: string;
|
|
4869
5414
|
bindings: {
|
|
4870
|
-
source: "message" | "variable" | "context";
|
|
4871
5415
|
path: string[];
|
|
5416
|
+
source: "message" | "variable" | "context";
|
|
4872
5417
|
target: string[];
|
|
4873
5418
|
}[];
|
|
5419
|
+
toolKey: string;
|
|
5420
|
+
input: Record<string, unknown>;
|
|
4874
5421
|
}[] | undefined;
|
|
4875
5422
|
}>>;
|
|
4876
5423
|
}, "strict", z.ZodTypeAny, {
|
|
4877
|
-
|
|
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;
|
|
5424
|
+
name?: string | undefined;
|
|
4893
5425
|
workbench?: {
|
|
4894
5426
|
enabled: boolean;
|
|
4895
5427
|
files: "per_customer" | "per_run";
|
|
4896
5428
|
configured: boolean;
|
|
4897
|
-
size: "medium" | "
|
|
5429
|
+
size: "medium" | "small" | "large";
|
|
4898
5430
|
access: "allow" | "ask" | "block";
|
|
4899
5431
|
languages: string[];
|
|
4900
5432
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
4901
5433
|
} | undefined;
|
|
4902
|
-
|
|
5434
|
+
files?: {
|
|
5435
|
+
enabled: boolean;
|
|
5436
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
5437
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
5438
|
+
} | undefined;
|
|
5439
|
+
timezone?: string | null | undefined;
|
|
4903
5440
|
variables?: {
|
|
4904
|
-
description: string;
|
|
4905
5441
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4906
5442
|
required: boolean;
|
|
4907
5443
|
name: string;
|
|
5444
|
+
description: string;
|
|
4908
5445
|
defaultValue: string;
|
|
4909
|
-
usedIn: ("
|
|
5446
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
4910
5447
|
chipNote: string;
|
|
4911
5448
|
values?: string[] | undefined;
|
|
4912
5449
|
}[] | undefined;
|
|
4913
|
-
timezone?: string | null | undefined;
|
|
4914
|
-
files?: {
|
|
4915
|
-
enabled: boolean;
|
|
4916
|
-
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
4917
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
4918
|
-
} | undefined;
|
|
4919
5450
|
instructions?: {
|
|
4920
5451
|
text: string;
|
|
4921
5452
|
editedAt: string | null;
|
|
4922
5453
|
} | undefined;
|
|
4923
5454
|
context?: {
|
|
4924
5455
|
knowledge: {
|
|
4925
|
-
id: string;
|
|
4926
5456
|
status: "failed" | "ready" | "syncing";
|
|
4927
5457
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5458
|
+
id: string;
|
|
4928
5459
|
name: string;
|
|
4929
5460
|
scope: "customer" | "project";
|
|
4930
5461
|
detail: string;
|
|
@@ -4950,16 +5481,23 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4950
5481
|
searchPastChats: boolean;
|
|
4951
5482
|
conversationRetentionDays: number;
|
|
4952
5483
|
apis: {
|
|
5484
|
+
kind: "http" | "graphql" | "openapi";
|
|
5485
|
+
id: string;
|
|
5486
|
+
name: string;
|
|
5487
|
+
host: string;
|
|
5488
|
+
baseUrl: string;
|
|
5489
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
5490
|
+
sendCustomerIdentity: boolean;
|
|
4953
5491
|
calls: {
|
|
5492
|
+
headers: Record<string, string>;
|
|
5493
|
+
body: string;
|
|
4954
5494
|
path: string;
|
|
4955
5495
|
id: string;
|
|
4956
5496
|
name: string;
|
|
4957
|
-
headers: Record<string, string>;
|
|
4958
|
-
body: string;
|
|
4959
5497
|
query: Record<string, string>;
|
|
4960
5498
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4961
|
-
bodyType: "json" | "
|
|
4962
|
-
readAs: "
|
|
5499
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
5500
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
4963
5501
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4964
5502
|
summary: string;
|
|
4965
5503
|
latencyMs: number | null;
|
|
@@ -4967,28 +5505,21 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4967
5505
|
effects: "read" | "write" | "unclassified";
|
|
4968
5506
|
permission: "allow" | "ask" | "block";
|
|
4969
5507
|
bindings: {
|
|
4970
|
-
key: string;
|
|
4971
|
-
source: "model" | "variable" | "context" | "identity";
|
|
4972
5508
|
path: string[];
|
|
4973
|
-
|
|
5509
|
+
source: "variable" | "context" | "model" | "identity";
|
|
5510
|
+
key: string;
|
|
5511
|
+
target: "body" | "path" | "query" | "header";
|
|
4974
5512
|
}[];
|
|
4975
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
4976
5513
|
sample?: unknown;
|
|
5514
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
4977
5515
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4978
5516
|
}[];
|
|
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;
|
|
4986
5517
|
credentialId?: string | undefined;
|
|
4987
5518
|
authHeader?: string | undefined;
|
|
4988
5519
|
}[];
|
|
4989
5520
|
apps: {
|
|
4990
5521
|
key: string;
|
|
4991
|
-
account: "customer" | "
|
|
5522
|
+
account: "customer" | "project" | "deployment";
|
|
4992
5523
|
rules: {
|
|
4993
5524
|
read: "allow" | "ask" | "block";
|
|
4994
5525
|
change: "allow" | "ask" | "block";
|
|
@@ -5000,45 +5531,69 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5000
5531
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
5001
5532
|
}[];
|
|
5002
5533
|
mcpServers: {
|
|
5003
|
-
id: string;
|
|
5004
5534
|
status: "connecting" | "connected";
|
|
5535
|
+
id: string;
|
|
5005
5536
|
name: string;
|
|
5537
|
+
groups: {
|
|
5538
|
+
tools: string[];
|
|
5539
|
+
name: "Read" | "Change" | "Delete";
|
|
5540
|
+
count: number;
|
|
5541
|
+
rule: "allow" | "ask" | "block";
|
|
5542
|
+
}[];
|
|
5006
5543
|
url: string;
|
|
5007
5544
|
toolCount: number;
|
|
5008
5545
|
definitions: {
|
|
5009
|
-
description: string;
|
|
5010
5546
|
name: string;
|
|
5011
5547
|
inputSchema: Record<string, unknown>;
|
|
5548
|
+
description: string;
|
|
5012
5549
|
outputSchema?: Record<string, unknown> | undefined;
|
|
5013
5550
|
}[];
|
|
5014
|
-
groups: {
|
|
5015
|
-
tools: string[];
|
|
5016
|
-
name: "Read" | "Change" | "Delete";
|
|
5017
|
-
count: number;
|
|
5018
|
-
rule: "allow" | "ask" | "block";
|
|
5019
|
-
}[];
|
|
5020
5551
|
credentialId?: string | undefined;
|
|
5021
5552
|
}[];
|
|
5022
5553
|
webSearch: {
|
|
5023
|
-
provider: "builtin";
|
|
5024
5554
|
enabled: boolean;
|
|
5555
|
+
provider: "builtin";
|
|
5025
5556
|
preferSites: string[];
|
|
5026
5557
|
};
|
|
5027
5558
|
} | undefined;
|
|
5559
|
+
memory?: {
|
|
5560
|
+
never: string[];
|
|
5561
|
+
enabled: boolean;
|
|
5562
|
+
configured: boolean;
|
|
5563
|
+
who: {
|
|
5564
|
+
customer: boolean;
|
|
5565
|
+
company: boolean;
|
|
5566
|
+
bot: boolean;
|
|
5567
|
+
};
|
|
5568
|
+
what: string;
|
|
5569
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
5570
|
+
} | undefined;
|
|
5571
|
+
model?: {
|
|
5572
|
+
id: string;
|
|
5573
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
5574
|
+
} | undefined;
|
|
5028
5575
|
publicDescription?: string | undefined;
|
|
5029
5576
|
iconAssetId?: string | null | undefined;
|
|
5030
5577
|
avatar?: {
|
|
5031
|
-
version: 1;
|
|
5032
5578
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
5033
5579
|
seed: string;
|
|
5580
|
+
version: 1;
|
|
5034
5581
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
5035
5582
|
} | null | undefined;
|
|
5583
|
+
jobs?: {
|
|
5584
|
+
reviewCode: {
|
|
5585
|
+
repositories: {
|
|
5586
|
+
id: string;
|
|
5587
|
+
name: string;
|
|
5588
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
5589
|
+
connectedAccountId: string;
|
|
5590
|
+
}[];
|
|
5591
|
+
reviewFocus: string;
|
|
5592
|
+
} | null;
|
|
5593
|
+
} | undefined;
|
|
5036
5594
|
skills?: {
|
|
5037
5595
|
id: string;
|
|
5038
5596
|
name: string;
|
|
5039
|
-
cases: {
|
|
5040
|
-
text: string;
|
|
5041
|
-
}[];
|
|
5042
5597
|
files: {
|
|
5043
5598
|
name: string;
|
|
5044
5599
|
content: string;
|
|
@@ -5047,6 +5602,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5047
5602
|
summary: string;
|
|
5048
5603
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
5049
5604
|
load: "auto" | "always";
|
|
5605
|
+
cases: {
|
|
5606
|
+
text: string;
|
|
5607
|
+
}[];
|
|
5050
5608
|
exceptions: {
|
|
5051
5609
|
text: string;
|
|
5052
5610
|
}[];
|
|
@@ -5062,17 +5620,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5062
5620
|
}[] | undefined;
|
|
5063
5621
|
answer?: {
|
|
5064
5622
|
shape: {
|
|
5065
|
-
|
|
5066
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5623
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
5067
5624
|
id: string;
|
|
5068
5625
|
required: boolean;
|
|
5069
5626
|
name: string;
|
|
5627
|
+
description: string;
|
|
5070
5628
|
level: number;
|
|
5071
5629
|
values?: string[] | undefined;
|
|
5072
5630
|
items?: Record<string, unknown> | undefined;
|
|
5073
5631
|
}[];
|
|
5074
|
-
format: "
|
|
5075
|
-
delivery: "
|
|
5632
|
+
format: "json" | "text";
|
|
5633
|
+
delivery: "stream" | "once" | "webhook";
|
|
5076
5634
|
webhookUrl: string;
|
|
5077
5635
|
schema?: Record<string, unknown> | undefined;
|
|
5078
5636
|
} | undefined;
|
|
@@ -5081,29 +5639,29 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5081
5639
|
before: string[];
|
|
5082
5640
|
after: string[];
|
|
5083
5641
|
preparations: {
|
|
5084
|
-
id: string;
|
|
5085
5642
|
kind: "workbench" | "mcp" | "app";
|
|
5643
|
+
id: string;
|
|
5086
5644
|
name: string;
|
|
5087
|
-
input: Record<string, unknown>;
|
|
5088
|
-
toolKey: string;
|
|
5089
5645
|
capabilityId: string;
|
|
5090
5646
|
bindings: {
|
|
5091
|
-
source: "message" | "variable" | "context";
|
|
5092
5647
|
path: string[];
|
|
5648
|
+
source: "message" | "variable" | "context";
|
|
5093
5649
|
target: string[];
|
|
5094
5650
|
}[];
|
|
5651
|
+
toolKey: string;
|
|
5652
|
+
input: Record<string, unknown>;
|
|
5095
5653
|
}[];
|
|
5096
5654
|
stopOnFail: string[];
|
|
5097
5655
|
stepLimit: number;
|
|
5098
5656
|
} | undefined;
|
|
5099
5657
|
triggers?: ({
|
|
5100
|
-
label: string;
|
|
5101
|
-
id: string;
|
|
5102
5658
|
kind: "app";
|
|
5659
|
+
id: string;
|
|
5103
5660
|
enabled: boolean;
|
|
5104
5661
|
name: string;
|
|
5105
5662
|
variables: Record<string, unknown>;
|
|
5106
5663
|
subscriptionId: string;
|
|
5664
|
+
label: string;
|
|
5107
5665
|
providerKey: string;
|
|
5108
5666
|
eventTypes: string[];
|
|
5109
5667
|
runsAs: "none" | "field";
|
|
@@ -5111,8 +5669,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5111
5669
|
instruction: string;
|
|
5112
5670
|
answerTo: "none" | "webhook";
|
|
5113
5671
|
} | {
|
|
5114
|
-
id: string;
|
|
5115
5672
|
kind: "webhook";
|
|
5673
|
+
id: string;
|
|
5116
5674
|
tenantId: string;
|
|
5117
5675
|
enabled: boolean;
|
|
5118
5676
|
name: string;
|
|
@@ -5122,24 +5680,24 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5122
5680
|
instruction: string;
|
|
5123
5681
|
answerTo: "none" | "webhook";
|
|
5124
5682
|
} | {
|
|
5125
|
-
every: "
|
|
5126
|
-
id: string;
|
|
5683
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
5127
5684
|
kind: "schedule";
|
|
5128
5685
|
date: string;
|
|
5686
|
+
id: string;
|
|
5129
5687
|
tenantId: string;
|
|
5130
5688
|
enabled: boolean;
|
|
5131
5689
|
name: string;
|
|
5132
|
-
variables: Record<string, unknown>;
|
|
5133
|
-
timezone: string;
|
|
5134
|
-
customerId: string;
|
|
5135
5690
|
days: number[];
|
|
5136
|
-
|
|
5691
|
+
timezone: string;
|
|
5692
|
+
variables: Record<string, unknown>;
|
|
5693
|
+
runsAs: "one" | "none";
|
|
5137
5694
|
instruction: string;
|
|
5138
5695
|
answerTo: "none" | "webhook";
|
|
5139
5696
|
repeat: "once" | "repeat";
|
|
5140
5697
|
time: string;
|
|
5698
|
+
customerId: string;
|
|
5141
5699
|
cron?: string | undefined;
|
|
5142
|
-
intervalMinutes?:
|
|
5700
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
5143
5701
|
monthDay?: number | "last" | undefined;
|
|
5144
5702
|
})[] | undefined;
|
|
5145
5703
|
workflows?: {
|
|
@@ -5147,57 +5705,41 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5147
5705
|
workflowId: string;
|
|
5148
5706
|
}[] | undefined;
|
|
5149
5707
|
}, {
|
|
5150
|
-
|
|
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;
|
|
5708
|
+
name?: string | undefined;
|
|
5166
5709
|
workbench?: {
|
|
5167
5710
|
enabled: boolean;
|
|
5168
5711
|
files: "per_customer" | "per_run";
|
|
5169
5712
|
configured: boolean;
|
|
5170
|
-
size: "medium" | "
|
|
5713
|
+
size: "medium" | "small" | "large";
|
|
5171
5714
|
access: "allow" | "ask" | "block";
|
|
5172
5715
|
languages: string[];
|
|
5173
5716
|
longestRun: "1 minute" | "3 minutes" | "10 minutes";
|
|
5174
5717
|
} | undefined;
|
|
5175
|
-
|
|
5718
|
+
files?: {
|
|
5719
|
+
enabled: boolean;
|
|
5720
|
+
kinds: ("audio" | "code" | "documents" | "spreadsheets" | "images")[];
|
|
5721
|
+
bigSpreadsheets: "workbench" | "preview";
|
|
5722
|
+
} | undefined;
|
|
5723
|
+
timezone?: string | null | undefined;
|
|
5176
5724
|
variables?: {
|
|
5177
|
-
description: string;
|
|
5178
5725
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
5179
5726
|
required: boolean;
|
|
5180
5727
|
name: string;
|
|
5728
|
+
description: string;
|
|
5181
5729
|
defaultValue: string;
|
|
5182
|
-
usedIn: ("
|
|
5730
|
+
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
5183
5731
|
chipNote: string;
|
|
5184
5732
|
values?: string[] | undefined;
|
|
5185
5733
|
}[] | undefined;
|
|
5186
|
-
timezone?: string | null | undefined;
|
|
5187
|
-
files?: {
|
|
5188
|
-
enabled: boolean;
|
|
5189
|
-
kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
|
|
5190
|
-
bigSpreadsheets: "workbench" | "preview";
|
|
5191
|
-
} | undefined;
|
|
5192
5734
|
instructions?: {
|
|
5193
5735
|
text: string;
|
|
5194
5736
|
editedAt: string | null;
|
|
5195
5737
|
} | undefined;
|
|
5196
5738
|
context?: {
|
|
5197
5739
|
knowledge: {
|
|
5198
|
-
id: string;
|
|
5199
5740
|
status: "failed" | "ready" | "syncing";
|
|
5200
5741
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5742
|
+
id: string;
|
|
5201
5743
|
name: string;
|
|
5202
5744
|
detail: string;
|
|
5203
5745
|
syncedLabel: string;
|
|
@@ -5220,45 +5762,45 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5220
5762
|
} | undefined;
|
|
5221
5763
|
}[];
|
|
5222
5764
|
apis: {
|
|
5765
|
+
kind: "http" | "graphql" | "openapi";
|
|
5766
|
+
id: string;
|
|
5767
|
+
name: string;
|
|
5768
|
+
host: string;
|
|
5769
|
+
baseUrl: string;
|
|
5770
|
+
auth: "one" | "none" | "each" | "oauth";
|
|
5771
|
+
sendCustomerIdentity: boolean;
|
|
5223
5772
|
calls: {
|
|
5224
5773
|
path: string;
|
|
5225
5774
|
id: string;
|
|
5226
5775
|
name: string;
|
|
5227
5776
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
5228
|
-
bodyType: "json" | "
|
|
5229
|
-
readAs: "
|
|
5777
|
+
bodyType: "json" | "xml" | "form" | "gql";
|
|
5778
|
+
readAs: "json" | "xml" | "auto" | "text";
|
|
5230
5779
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
5231
5780
|
summary: string;
|
|
5232
5781
|
latencyMs: number | null;
|
|
5233
5782
|
visibleFields: string[];
|
|
5234
5783
|
effects: "read" | "write" | "unclassified";
|
|
5235
|
-
inputSchema?: Record<string, unknown> | undefined;
|
|
5236
5784
|
headers?: Record<string, string> | undefined;
|
|
5237
5785
|
body?: string | undefined;
|
|
5238
5786
|
sample?: unknown;
|
|
5239
5787
|
query?: Record<string, string> | undefined;
|
|
5240
5788
|
permission?: "allow" | "ask" | "block" | undefined;
|
|
5789
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
5241
5790
|
bindings?: {
|
|
5242
|
-
key: string;
|
|
5243
|
-
source: "model" | "variable" | "context" | "identity";
|
|
5244
5791
|
path: string[];
|
|
5245
|
-
|
|
5792
|
+
source: "variable" | "context" | "model" | "identity";
|
|
5793
|
+
key: string;
|
|
5794
|
+
target: "body" | "path" | "query" | "header";
|
|
5246
5795
|
}[] | undefined;
|
|
5247
5796
|
responseSchema?: Record<string, unknown> | undefined;
|
|
5248
5797
|
}[];
|
|
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;
|
|
5256
5798
|
credentialId?: string | undefined;
|
|
5257
5799
|
authHeader?: string | undefined;
|
|
5258
5800
|
}[];
|
|
5259
5801
|
apps: {
|
|
5260
5802
|
key: string;
|
|
5261
|
-
account: "customer" | "
|
|
5803
|
+
account: "customer" | "project" | "deployment";
|
|
5262
5804
|
rules: {
|
|
5263
5805
|
read: "allow" | "ask" | "block";
|
|
5264
5806
|
change: "allow" | "ask" | "block";
|
|
@@ -5270,51 +5812,78 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5270
5812
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
5271
5813
|
}[];
|
|
5272
5814
|
mcpServers: {
|
|
5273
|
-
id: string;
|
|
5274
5815
|
status: "connecting" | "connected";
|
|
5816
|
+
id: string;
|
|
5275
5817
|
name: string;
|
|
5276
|
-
url: string;
|
|
5277
|
-
toolCount: number;
|
|
5278
5818
|
groups: {
|
|
5279
5819
|
tools: string[];
|
|
5280
5820
|
name: "Read" | "Change" | "Delete";
|
|
5281
5821
|
count: number;
|
|
5282
5822
|
rule: "allow" | "ask" | "block";
|
|
5283
5823
|
}[];
|
|
5824
|
+
url: string;
|
|
5825
|
+
toolCount: number;
|
|
5284
5826
|
credentialId?: string | undefined;
|
|
5285
5827
|
definitions?: {
|
|
5286
|
-
description: string;
|
|
5287
5828
|
name: string;
|
|
5288
5829
|
inputSchema: Record<string, unknown>;
|
|
5830
|
+
description: string;
|
|
5289
5831
|
outputSchema?: Record<string, unknown> | undefined;
|
|
5290
5832
|
}[] | undefined;
|
|
5291
5833
|
}[];
|
|
5292
5834
|
webSearch: {
|
|
5293
|
-
provider: "builtin" | "exa" | "firecrawl";
|
|
5294
5835
|
enabled: boolean;
|
|
5836
|
+
provider: "builtin" | "exa" | "firecrawl";
|
|
5295
5837
|
preferSites: string[];
|
|
5296
5838
|
};
|
|
5297
5839
|
readPages?: boolean | undefined;
|
|
5298
5840
|
searchPastChats?: boolean | undefined;
|
|
5299
5841
|
conversationRetentionDays?: number | undefined;
|
|
5300
5842
|
} | undefined;
|
|
5843
|
+
memory?: {
|
|
5844
|
+
never: string[];
|
|
5845
|
+
enabled: boolean;
|
|
5846
|
+
configured: boolean;
|
|
5847
|
+
who: {
|
|
5848
|
+
customer: boolean;
|
|
5849
|
+
company: boolean;
|
|
5850
|
+
bot: boolean;
|
|
5851
|
+
};
|
|
5852
|
+
what: string;
|
|
5853
|
+
forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
|
|
5854
|
+
} | undefined;
|
|
5855
|
+
model?: {
|
|
5856
|
+
id: string;
|
|
5857
|
+
effort: "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
5858
|
+
} | undefined;
|
|
5301
5859
|
publicDescription?: string | undefined;
|
|
5302
5860
|
iconAssetId?: string | null | undefined;
|
|
5303
5861
|
avatar?: {
|
|
5304
|
-
version: 1;
|
|
5305
5862
|
style: "clay" | "pebble" | "shapes" | "letters";
|
|
5306
5863
|
seed: string;
|
|
5864
|
+
version: 1;
|
|
5307
5865
|
tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
|
|
5308
5866
|
} | null | undefined;
|
|
5867
|
+
jobs?: {
|
|
5868
|
+
reviewCode?: {
|
|
5869
|
+
repositories: {
|
|
5870
|
+
id: string;
|
|
5871
|
+
name: string;
|
|
5872
|
+
host: "github" | "gitlab" | "bitbucket";
|
|
5873
|
+
connectedAccountId: string;
|
|
5874
|
+
}[];
|
|
5875
|
+
reviewFocus: string;
|
|
5876
|
+
} | null | undefined;
|
|
5877
|
+
} | undefined;
|
|
5309
5878
|
skills?: {
|
|
5310
5879
|
id: string;
|
|
5311
5880
|
name: string;
|
|
5312
|
-
cases: {
|
|
5313
|
-
text: string;
|
|
5314
|
-
}[];
|
|
5315
5881
|
summary: string;
|
|
5316
5882
|
icon: "refund" | "link" | "person" | "voice" | "mail" | "term" | "box" | "pencil";
|
|
5317
5883
|
load: "auto" | "always";
|
|
5884
|
+
cases: {
|
|
5885
|
+
text: string;
|
|
5886
|
+
}[];
|
|
5318
5887
|
exceptions: {
|
|
5319
5888
|
text: string;
|
|
5320
5889
|
}[];
|
|
@@ -5335,17 +5904,17 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5335
5904
|
}[] | undefined;
|
|
5336
5905
|
answer?: {
|
|
5337
5906
|
shape: {
|
|
5338
|
-
|
|
5339
|
-
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5907
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
5340
5908
|
id: string;
|
|
5341
5909
|
required: boolean;
|
|
5342
5910
|
name: string;
|
|
5911
|
+
description: string;
|
|
5343
5912
|
level: number;
|
|
5344
5913
|
values?: string[] | undefined;
|
|
5345
5914
|
items?: Record<string, unknown> | undefined;
|
|
5346
5915
|
}[];
|
|
5347
|
-
format: "
|
|
5348
|
-
delivery: "
|
|
5916
|
+
format: "json" | "text";
|
|
5917
|
+
delivery: "stream" | "once" | "webhook";
|
|
5349
5918
|
webhookUrl: string;
|
|
5350
5919
|
schema?: Record<string, unknown> | undefined;
|
|
5351
5920
|
} | undefined;
|
|
@@ -5356,26 +5925,26 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5356
5925
|
stopOnFail: string[];
|
|
5357
5926
|
stepLimit: number | null;
|
|
5358
5927
|
preparations?: {
|
|
5359
|
-
id: string;
|
|
5360
5928
|
kind: "workbench" | "mcp" | "app";
|
|
5929
|
+
id: string;
|
|
5361
5930
|
name: string;
|
|
5362
|
-
input: Record<string, unknown>;
|
|
5363
|
-
toolKey: string;
|
|
5364
5931
|
capabilityId: string;
|
|
5365
5932
|
bindings: {
|
|
5366
|
-
source: "message" | "variable" | "context";
|
|
5367
5933
|
path: string[];
|
|
5934
|
+
source: "message" | "variable" | "context";
|
|
5368
5935
|
target: string[];
|
|
5369
5936
|
}[];
|
|
5937
|
+
toolKey: string;
|
|
5938
|
+
input: Record<string, unknown>;
|
|
5370
5939
|
}[] | undefined;
|
|
5371
5940
|
} | undefined;
|
|
5372
5941
|
triggers?: ({
|
|
5373
|
-
label: string;
|
|
5374
|
-
id: string;
|
|
5375
5942
|
kind: "app";
|
|
5943
|
+
id: string;
|
|
5376
5944
|
enabled: boolean;
|
|
5377
5945
|
name: string;
|
|
5378
5946
|
subscriptionId: string;
|
|
5947
|
+
label: string;
|
|
5379
5948
|
providerKey: string;
|
|
5380
5949
|
eventTypes: string[];
|
|
5381
5950
|
runsAs: "none" | "field";
|
|
@@ -5384,8 +5953,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5384
5953
|
answerTo: "none" | "webhook";
|
|
5385
5954
|
variables?: Record<string, unknown> | undefined;
|
|
5386
5955
|
} | {
|
|
5387
|
-
id: string;
|
|
5388
5956
|
kind: "webhook";
|
|
5957
|
+
id: string;
|
|
5389
5958
|
tenantId: string;
|
|
5390
5959
|
enabled: boolean;
|
|
5391
5960
|
name: string;
|
|
@@ -5395,24 +5964,24 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5395
5964
|
answerTo: "none" | "webhook";
|
|
5396
5965
|
variables?: Record<string, unknown> | undefined;
|
|
5397
5966
|
} | {
|
|
5398
|
-
every: "
|
|
5399
|
-
id: string;
|
|
5967
|
+
every: "week" | "day" | "hour" | "minutes" | "month" | "cron";
|
|
5400
5968
|
kind: "schedule";
|
|
5401
5969
|
date: string;
|
|
5970
|
+
id: string;
|
|
5402
5971
|
tenantId: string;
|
|
5403
5972
|
enabled: boolean;
|
|
5404
5973
|
name: string;
|
|
5405
|
-
timezone: string;
|
|
5406
|
-
customerId: string;
|
|
5407
5974
|
days: number[];
|
|
5408
|
-
|
|
5975
|
+
timezone: string;
|
|
5976
|
+
runsAs: "one" | "none";
|
|
5409
5977
|
instruction: string;
|
|
5410
5978
|
answerTo: "none" | "webhook";
|
|
5411
5979
|
repeat: "once" | "repeat";
|
|
5412
5980
|
time: string;
|
|
5981
|
+
customerId: string;
|
|
5413
5982
|
variables?: Record<string, unknown> | undefined;
|
|
5414
5983
|
cron?: string | undefined;
|
|
5415
|
-
intervalMinutes?:
|
|
5984
|
+
intervalMinutes?: 5 | 30 | 15 | 10 | undefined;
|
|
5416
5985
|
monthDay?: number | "last" | undefined;
|
|
5417
5986
|
})[] | undefined;
|
|
5418
5987
|
workflows?: {
|
|
@@ -5434,7 +6003,7 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
5434
6003
|
message: string;
|
|
5435
6004
|
variables: Record<string, unknown>;
|
|
5436
6005
|
attachments: string[];
|
|
5437
|
-
dataMode: "
|
|
6006
|
+
dataMode: "sample" | "live";
|
|
5438
6007
|
revision?: number | undefined;
|
|
5439
6008
|
conversationId?: string | undefined;
|
|
5440
6009
|
runId?: string | undefined;
|
|
@@ -5443,11 +6012,11 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
5443
6012
|
}, {
|
|
5444
6013
|
message: string;
|
|
5445
6014
|
revision?: number | undefined;
|
|
5446
|
-
variables?: Record<string, unknown> | undefined;
|
|
5447
6015
|
conversationId?: string | undefined;
|
|
5448
6016
|
runId?: string | undefined;
|
|
6017
|
+
variables?: Record<string, unknown> | undefined;
|
|
5449
6018
|
attachments?: string[] | undefined;
|
|
5450
|
-
dataMode?: "
|
|
6019
|
+
dataMode?: "sample" | "live" | undefined;
|
|
5451
6020
|
customerSessionId?: string | undefined;
|
|
5452
6021
|
connectionReturnUrl?: string | undefined;
|
|
5453
6022
|
}>;
|