@stacklink/sdk 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/compatibility.json +1 -1
- package/dist/src/domain/bot-contract.d.ts +116 -116
- package/dist/src/domain/memory-contract.d.ts +18 -18
- package/dist/src/domain/platform-approval-contract.d.ts +20 -20
- package/dist/src/domain/stacklink-meta-tools.js +1 -1
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/domain/workflow-contract.d.ts +480 -71
- package/dist/src/domain/workflow-contract.d.ts.map +1 -1
- package/dist/src/domain/workflow-contract.js +28 -0
- package/dist/src/domain/workflow-contract.js.map +1 -1
- package/dist/src/sdk/index.d.ts +14 -4
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +4 -2
- package/dist/src/sdk/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ export declare const botRunsQuerySchema: z.ZodObject<{
|
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
filter: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed";
|
|
51
51
|
limit: number;
|
|
52
|
-
source?: "slack" | "mcp" | "
|
|
52
|
+
source?: "slack" | "mcp" | "app" | "test" | "microsoft_teams" | "trigger" | undefined;
|
|
53
53
|
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
54
54
|
channel?: "test" | "published" | undefined;
|
|
55
55
|
cursor?: string | undefined;
|
|
@@ -60,7 +60,7 @@ export declare const botRunsQuerySchema: z.ZodObject<{
|
|
|
60
60
|
deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
filter?: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed" | undefined;
|
|
63
|
-
source?: "slack" | "mcp" | "
|
|
63
|
+
source?: "slack" | "mcp" | "app" | "test" | "microsoft_teams" | "trigger" | undefined;
|
|
64
64
|
status?: "completed" | "failed" | "pending" | "cancelled" | "queued" | "running" | "waiting_for_approval" | "stopped" | "held" | "waiting_for_connection" | "waiting_for_execution" | undefined;
|
|
65
65
|
channel?: "test" | "published" | undefined;
|
|
66
66
|
cursor?: string | undefined;
|
|
@@ -1028,8 +1028,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1028
1028
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1029
1029
|
}, "strict", z.ZodTypeAny, {
|
|
1030
1030
|
label: string;
|
|
1031
|
-
kind: "app";
|
|
1032
1031
|
id: string;
|
|
1032
|
+
kind: "app";
|
|
1033
1033
|
enabled: boolean;
|
|
1034
1034
|
name: string;
|
|
1035
1035
|
variables: Record<string, unknown>;
|
|
@@ -1042,8 +1042,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1042
1042
|
answerTo: "none" | "webhook";
|
|
1043
1043
|
}, {
|
|
1044
1044
|
label: string;
|
|
1045
|
-
kind: "app";
|
|
1046
1045
|
id: string;
|
|
1046
|
+
kind: "app";
|
|
1047
1047
|
enabled: boolean;
|
|
1048
1048
|
name: string;
|
|
1049
1049
|
subscriptionId: string;
|
|
@@ -1066,8 +1066,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1066
1066
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
1067
1067
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1068
1068
|
}, "strict", z.ZodTypeAny, {
|
|
1069
|
-
kind: "webhook";
|
|
1070
1069
|
id: string;
|
|
1070
|
+
kind: "webhook";
|
|
1071
1071
|
tenantId: string;
|
|
1072
1072
|
enabled: boolean;
|
|
1073
1073
|
name: string;
|
|
@@ -1077,8 +1077,8 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1077
1077
|
instruction: string;
|
|
1078
1078
|
answerTo: "none" | "webhook";
|
|
1079
1079
|
}, {
|
|
1080
|
-
kind: "webhook";
|
|
1081
1080
|
id: string;
|
|
1081
|
+
kind: "webhook";
|
|
1082
1082
|
tenantId: string;
|
|
1083
1083
|
enabled: boolean;
|
|
1084
1084
|
name: string;
|
|
@@ -1109,9 +1109,9 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1109
1109
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1110
1110
|
}, "strict", z.ZodTypeAny, {
|
|
1111
1111
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
1112
|
+
id: string;
|
|
1112
1113
|
kind: "schedule";
|
|
1113
1114
|
date: string;
|
|
1114
|
-
id: string;
|
|
1115
1115
|
tenantId: string;
|
|
1116
1116
|
enabled: boolean;
|
|
1117
1117
|
name: string;
|
|
@@ -1129,9 +1129,9 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1129
1129
|
monthDay?: number | "last" | undefined;
|
|
1130
1130
|
}, {
|
|
1131
1131
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
1132
|
+
id: string;
|
|
1132
1133
|
kind: "schedule";
|
|
1133
1134
|
date: string;
|
|
1134
|
-
id: string;
|
|
1135
1135
|
tenantId: string;
|
|
1136
1136
|
enabled: boolean;
|
|
1137
1137
|
name: string;
|
|
@@ -1777,7 +1777,7 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1777
1777
|
query: Record<string, string>;
|
|
1778
1778
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1779
1779
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1780
|
-
readAs: "
|
|
1780
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1781
1781
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1782
1782
|
summary: string;
|
|
1783
1783
|
latencyMs: number | null;
|
|
@@ -1799,7 +1799,7 @@ export declare const botApiCallSchema: z.ZodObject<{
|
|
|
1799
1799
|
name: string;
|
|
1800
1800
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1801
1801
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1802
|
-
readAs: "
|
|
1802
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1803
1803
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1804
1804
|
summary: string;
|
|
1805
1805
|
latencyMs: number | null;
|
|
@@ -1873,7 +1873,7 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1873
1873
|
query: Record<string, string>;
|
|
1874
1874
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1875
1875
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1876
|
-
readAs: "
|
|
1876
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1877
1877
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1878
1878
|
summary: string;
|
|
1879
1879
|
latencyMs: number | null;
|
|
@@ -1895,7 +1895,7 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1895
1895
|
name: string;
|
|
1896
1896
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1897
1897
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1898
|
-
readAs: "
|
|
1898
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1899
1899
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1900
1900
|
summary: string;
|
|
1901
1901
|
latencyMs: number | null;
|
|
@@ -1925,7 +1925,7 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1925
1925
|
query: Record<string, string>;
|
|
1926
1926
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1927
1927
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1928
|
-
readAs: "
|
|
1928
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1929
1929
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1930
1930
|
summary: string;
|
|
1931
1931
|
latencyMs: number | null;
|
|
@@ -1942,8 +1942,8 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1942
1942
|
sample?: unknown;
|
|
1943
1943
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1944
1944
|
}[];
|
|
1945
|
-
kind: "http" | "graphql" | "openapi";
|
|
1946
1945
|
id: string;
|
|
1946
|
+
kind: "http" | "graphql" | "openapi";
|
|
1947
1947
|
name: string;
|
|
1948
1948
|
host: string;
|
|
1949
1949
|
baseUrl: string;
|
|
@@ -1958,7 +1958,7 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1958
1958
|
name: string;
|
|
1959
1959
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
1960
1960
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
1961
|
-
readAs: "
|
|
1961
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
1962
1962
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
1963
1963
|
summary: string;
|
|
1964
1964
|
latencyMs: number | null;
|
|
@@ -1978,8 +1978,8 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1978
1978
|
}[] | undefined;
|
|
1979
1979
|
responseSchema?: Record<string, unknown> | undefined;
|
|
1980
1980
|
}[];
|
|
1981
|
-
kind: "http" | "graphql" | "openapi";
|
|
1982
1981
|
id: string;
|
|
1982
|
+
kind: "http" | "graphql" | "openapi";
|
|
1983
1983
|
name: string;
|
|
1984
1984
|
host: string;
|
|
1985
1985
|
baseUrl: string;
|
|
@@ -2038,8 +2038,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2038
2038
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2039
2039
|
}, "strict", z.ZodTypeAny, {
|
|
2040
2040
|
label: string;
|
|
2041
|
-
kind: "app";
|
|
2042
2041
|
id: string;
|
|
2042
|
+
kind: "app";
|
|
2043
2043
|
enabled: boolean;
|
|
2044
2044
|
name: string;
|
|
2045
2045
|
variables: Record<string, unknown>;
|
|
@@ -2052,8 +2052,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2052
2052
|
answerTo: "none" | "webhook";
|
|
2053
2053
|
}, {
|
|
2054
2054
|
label: string;
|
|
2055
|
-
kind: "app";
|
|
2056
2055
|
id: string;
|
|
2056
|
+
kind: "app";
|
|
2057
2057
|
enabled: boolean;
|
|
2058
2058
|
name: string;
|
|
2059
2059
|
subscriptionId: string;
|
|
@@ -2076,8 +2076,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2076
2076
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
2077
2077
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2078
2078
|
}, "strict", z.ZodTypeAny, {
|
|
2079
|
-
kind: "webhook";
|
|
2080
2079
|
id: string;
|
|
2080
|
+
kind: "webhook";
|
|
2081
2081
|
tenantId: string;
|
|
2082
2082
|
enabled: boolean;
|
|
2083
2083
|
name: string;
|
|
@@ -2087,8 +2087,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2087
2087
|
instruction: string;
|
|
2088
2088
|
answerTo: "none" | "webhook";
|
|
2089
2089
|
}, {
|
|
2090
|
-
kind: "webhook";
|
|
2091
2090
|
id: string;
|
|
2091
|
+
kind: "webhook";
|
|
2092
2092
|
tenantId: string;
|
|
2093
2093
|
enabled: boolean;
|
|
2094
2094
|
name: string;
|
|
@@ -2119,9 +2119,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2119
2119
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2120
2120
|
}, "strict", z.ZodTypeAny, {
|
|
2121
2121
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
2122
|
+
id: string;
|
|
2122
2123
|
kind: "schedule";
|
|
2123
2124
|
date: string;
|
|
2124
|
-
id: string;
|
|
2125
2125
|
tenantId: string;
|
|
2126
2126
|
enabled: boolean;
|
|
2127
2127
|
name: string;
|
|
@@ -2139,9 +2139,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2139
2139
|
monthDay?: number | "last" | undefined;
|
|
2140
2140
|
}, {
|
|
2141
2141
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
2142
|
+
id: string;
|
|
2142
2143
|
kind: "schedule";
|
|
2143
2144
|
date: string;
|
|
2144
|
-
id: string;
|
|
2145
2145
|
tenantId: string;
|
|
2146
2146
|
enabled: boolean;
|
|
2147
2147
|
name: string;
|
|
@@ -2420,7 +2420,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2420
2420
|
query: Record<string, string>;
|
|
2421
2421
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2422
2422
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2423
|
-
readAs: "
|
|
2423
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2424
2424
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2425
2425
|
summary: string;
|
|
2426
2426
|
latencyMs: number | null;
|
|
@@ -2442,7 +2442,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2442
2442
|
name: string;
|
|
2443
2443
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2444
2444
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2445
|
-
readAs: "
|
|
2445
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2446
2446
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2447
2447
|
summary: string;
|
|
2448
2448
|
latencyMs: number | null;
|
|
@@ -2472,7 +2472,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2472
2472
|
query: Record<string, string>;
|
|
2473
2473
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2474
2474
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2475
|
-
readAs: "
|
|
2475
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2476
2476
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2477
2477
|
summary: string;
|
|
2478
2478
|
latencyMs: number | null;
|
|
@@ -2489,8 +2489,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2489
2489
|
sample?: unknown;
|
|
2490
2490
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2491
2491
|
}[];
|
|
2492
|
-
kind: "http" | "graphql" | "openapi";
|
|
2493
2492
|
id: string;
|
|
2493
|
+
kind: "http" | "graphql" | "openapi";
|
|
2494
2494
|
name: string;
|
|
2495
2495
|
host: string;
|
|
2496
2496
|
baseUrl: string;
|
|
@@ -2505,7 +2505,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2505
2505
|
name: string;
|
|
2506
2506
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2507
2507
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2508
|
-
readAs: "
|
|
2508
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2509
2509
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2510
2510
|
summary: string;
|
|
2511
2511
|
latencyMs: number | null;
|
|
@@ -2525,8 +2525,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2525
2525
|
}[] | undefined;
|
|
2526
2526
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2527
2527
|
}[];
|
|
2528
|
-
kind: "http" | "graphql" | "openapi";
|
|
2529
2528
|
id: string;
|
|
2529
|
+
kind: "http" | "graphql" | "openapi";
|
|
2530
2530
|
name: string;
|
|
2531
2531
|
host: string;
|
|
2532
2532
|
baseUrl: string;
|
|
@@ -2620,8 +2620,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2620
2620
|
rule: "allow" | "ask" | "block";
|
|
2621
2621
|
}>, "many">;
|
|
2622
2622
|
}, "strict", z.ZodTypeAny, {
|
|
2623
|
-
status: "connecting" | "connected";
|
|
2624
2623
|
id: string;
|
|
2624
|
+
status: "connecting" | "connected";
|
|
2625
2625
|
name: string;
|
|
2626
2626
|
url: string;
|
|
2627
2627
|
toolCount: number;
|
|
@@ -2639,8 +2639,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2639
2639
|
}[];
|
|
2640
2640
|
credentialId?: string | undefined;
|
|
2641
2641
|
}, {
|
|
2642
|
-
status: "connecting" | "connected";
|
|
2643
2642
|
id: string;
|
|
2643
|
+
status: "connecting" | "connected";
|
|
2644
2644
|
name: string;
|
|
2645
2645
|
url: string;
|
|
2646
2646
|
toolCount: number;
|
|
@@ -2705,9 +2705,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2705
2705
|
}>>;
|
|
2706
2706
|
syncedLabel: z.ZodString;
|
|
2707
2707
|
}, "strict", z.ZodTypeAny, {
|
|
2708
|
+
id: string;
|
|
2708
2709
|
status: "failed" | "ready" | "syncing";
|
|
2709
2710
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2710
|
-
id: string;
|
|
2711
2711
|
name: string;
|
|
2712
2712
|
scope: "customer" | "project";
|
|
2713
2713
|
detail: string;
|
|
@@ -2729,9 +2729,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2729
2729
|
retryable: boolean;
|
|
2730
2730
|
} | undefined;
|
|
2731
2731
|
}, {
|
|
2732
|
+
id: string;
|
|
2732
2733
|
status: "failed" | "ready" | "syncing";
|
|
2733
2734
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2734
|
-
id: string;
|
|
2735
2735
|
name: string;
|
|
2736
2736
|
detail: string;
|
|
2737
2737
|
syncedLabel: string;
|
|
@@ -2768,9 +2768,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2768
2768
|
}>;
|
|
2769
2769
|
}, "strict", z.ZodTypeAny, {
|
|
2770
2770
|
knowledge: {
|
|
2771
|
+
id: string;
|
|
2771
2772
|
status: "failed" | "ready" | "syncing";
|
|
2772
2773
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2773
|
-
id: string;
|
|
2774
2774
|
name: string;
|
|
2775
2775
|
scope: "customer" | "project";
|
|
2776
2776
|
detail: string;
|
|
@@ -2805,7 +2805,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2805
2805
|
query: Record<string, string>;
|
|
2806
2806
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2807
2807
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2808
|
-
readAs: "
|
|
2808
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2809
2809
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2810
2810
|
summary: string;
|
|
2811
2811
|
latencyMs: number | null;
|
|
@@ -2822,8 +2822,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2822
2822
|
sample?: unknown;
|
|
2823
2823
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2824
2824
|
}[];
|
|
2825
|
-
kind: "http" | "graphql" | "openapi";
|
|
2826
2825
|
id: string;
|
|
2826
|
+
kind: "http" | "graphql" | "openapi";
|
|
2827
2827
|
name: string;
|
|
2828
2828
|
host: string;
|
|
2829
2829
|
baseUrl: string;
|
|
@@ -2846,8 +2846,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2846
2846
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2847
2847
|
}[];
|
|
2848
2848
|
mcpServers: {
|
|
2849
|
-
status: "connecting" | "connected";
|
|
2850
2849
|
id: string;
|
|
2850
|
+
status: "connecting" | "connected";
|
|
2851
2851
|
name: string;
|
|
2852
2852
|
url: string;
|
|
2853
2853
|
toolCount: number;
|
|
@@ -2872,9 +2872,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2872
2872
|
};
|
|
2873
2873
|
}, {
|
|
2874
2874
|
knowledge: {
|
|
2875
|
+
id: string;
|
|
2875
2876
|
status: "failed" | "ready" | "syncing";
|
|
2876
2877
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
2877
|
-
id: string;
|
|
2878
2878
|
name: string;
|
|
2879
2879
|
detail: string;
|
|
2880
2880
|
syncedLabel: string;
|
|
@@ -2903,7 +2903,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2903
2903
|
name: string;
|
|
2904
2904
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
2905
2905
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
2906
|
-
readAs: "
|
|
2906
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
2907
2907
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
2908
2908
|
summary: string;
|
|
2909
2909
|
latencyMs: number | null;
|
|
@@ -2923,8 +2923,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2923
2923
|
}[] | undefined;
|
|
2924
2924
|
responseSchema?: Record<string, unknown> | undefined;
|
|
2925
2925
|
}[];
|
|
2926
|
-
kind: "http" | "graphql" | "openapi";
|
|
2927
2926
|
id: string;
|
|
2927
|
+
kind: "http" | "graphql" | "openapi";
|
|
2928
2928
|
name: string;
|
|
2929
2929
|
host: string;
|
|
2930
2930
|
baseUrl: string;
|
|
@@ -2947,8 +2947,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2947
2947
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
2948
2948
|
}[];
|
|
2949
2949
|
mcpServers: {
|
|
2950
|
-
status: "connecting" | "connected";
|
|
2951
2950
|
id: string;
|
|
2951
|
+
status: "connecting" | "connected";
|
|
2952
2952
|
name: string;
|
|
2953
2953
|
url: string;
|
|
2954
2954
|
toolCount: number;
|
|
@@ -3018,7 +3018,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3018
3018
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3019
3019
|
}, "strict", z.ZodTypeAny, {
|
|
3020
3020
|
description: string;
|
|
3021
|
-
type: "number" | "
|
|
3021
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3022
3022
|
id: string;
|
|
3023
3023
|
required: boolean;
|
|
3024
3024
|
name: string;
|
|
@@ -3027,7 +3027,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3027
3027
|
items?: Record<string, unknown> | undefined;
|
|
3028
3028
|
}, {
|
|
3029
3029
|
description: string;
|
|
3030
|
-
type: "number" | "
|
|
3030
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3031
3031
|
id: string;
|
|
3032
3032
|
required: boolean;
|
|
3033
3033
|
name: string;
|
|
@@ -3039,7 +3039,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3039
3039
|
}, "strict", z.ZodTypeAny, {
|
|
3040
3040
|
shape: {
|
|
3041
3041
|
description: string;
|
|
3042
|
-
type: "number" | "
|
|
3042
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3043
3043
|
id: string;
|
|
3044
3044
|
required: boolean;
|
|
3045
3045
|
name: string;
|
|
@@ -3054,7 +3054,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3054
3054
|
}, {
|
|
3055
3055
|
shape: {
|
|
3056
3056
|
description: string;
|
|
3057
|
-
type: "number" | "
|
|
3057
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3058
3058
|
id: string;
|
|
3059
3059
|
required: boolean;
|
|
3060
3060
|
name: string;
|
|
@@ -3089,8 +3089,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3089
3089
|
target: string[];
|
|
3090
3090
|
}>, "many">;
|
|
3091
3091
|
}, "strict", z.ZodTypeAny, {
|
|
3092
|
-
kind: "workbench" | "mcp" | "app";
|
|
3093
3092
|
id: string;
|
|
3093
|
+
kind: "workbench" | "mcp" | "app";
|
|
3094
3094
|
name: string;
|
|
3095
3095
|
input: Record<string, unknown>;
|
|
3096
3096
|
toolKey: string;
|
|
@@ -3101,8 +3101,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3101
3101
|
target: string[];
|
|
3102
3102
|
}[];
|
|
3103
3103
|
}, {
|
|
3104
|
-
kind: "workbench" | "mcp" | "app";
|
|
3105
3104
|
id: string;
|
|
3105
|
+
kind: "workbench" | "mcp" | "app";
|
|
3106
3106
|
name: string;
|
|
3107
3107
|
input: Record<string, unknown>;
|
|
3108
3108
|
toolKey: string;
|
|
@@ -3123,8 +3123,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3123
3123
|
before: string[];
|
|
3124
3124
|
after: string[];
|
|
3125
3125
|
preparations: {
|
|
3126
|
-
kind: "workbench" | "mcp" | "app";
|
|
3127
3126
|
id: string;
|
|
3127
|
+
kind: "workbench" | "mcp" | "app";
|
|
3128
3128
|
name: string;
|
|
3129
3129
|
input: Record<string, unknown>;
|
|
3130
3130
|
toolKey: string;
|
|
@@ -3144,8 +3144,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3144
3144
|
stopOnFail: string[];
|
|
3145
3145
|
stepLimit: number | null;
|
|
3146
3146
|
preparations?: {
|
|
3147
|
-
kind: "workbench" | "mcp" | "app";
|
|
3148
3147
|
id: string;
|
|
3148
|
+
kind: "workbench" | "mcp" | "app";
|
|
3149
3149
|
name: string;
|
|
3150
3150
|
input: Record<string, unknown>;
|
|
3151
3151
|
toolKey: string;
|
|
@@ -3205,9 +3205,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3205
3205
|
};
|
|
3206
3206
|
context: {
|
|
3207
3207
|
knowledge: {
|
|
3208
|
+
id: string;
|
|
3208
3209
|
status: "failed" | "ready" | "syncing";
|
|
3209
3210
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3210
|
-
id: string;
|
|
3211
3211
|
name: string;
|
|
3212
3212
|
scope: "customer" | "project";
|
|
3213
3213
|
detail: string;
|
|
@@ -3242,7 +3242,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3242
3242
|
query: Record<string, string>;
|
|
3243
3243
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3244
3244
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
3245
|
-
readAs: "
|
|
3245
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
3246
3246
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3247
3247
|
summary: string;
|
|
3248
3248
|
latencyMs: number | null;
|
|
@@ -3259,8 +3259,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3259
3259
|
sample?: unknown;
|
|
3260
3260
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3261
3261
|
}[];
|
|
3262
|
-
kind: "http" | "graphql" | "openapi";
|
|
3263
3262
|
id: string;
|
|
3263
|
+
kind: "http" | "graphql" | "openapi";
|
|
3264
3264
|
name: string;
|
|
3265
3265
|
host: string;
|
|
3266
3266
|
baseUrl: string;
|
|
@@ -3283,8 +3283,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3283
3283
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3284
3284
|
}[];
|
|
3285
3285
|
mcpServers: {
|
|
3286
|
-
status: "connecting" | "connected";
|
|
3287
3286
|
id: string;
|
|
3287
|
+
status: "connecting" | "connected";
|
|
3288
3288
|
name: string;
|
|
3289
3289
|
url: string;
|
|
3290
3290
|
toolCount: number;
|
|
@@ -3340,7 +3340,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3340
3340
|
answer: {
|
|
3341
3341
|
shape: {
|
|
3342
3342
|
description: string;
|
|
3343
|
-
type: "number" | "
|
|
3343
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3344
3344
|
id: string;
|
|
3345
3345
|
required: boolean;
|
|
3346
3346
|
name: string;
|
|
@@ -3358,8 +3358,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3358
3358
|
before: string[];
|
|
3359
3359
|
after: string[];
|
|
3360
3360
|
preparations: {
|
|
3361
|
-
kind: "workbench" | "mcp" | "app";
|
|
3362
3361
|
id: string;
|
|
3362
|
+
kind: "workbench" | "mcp" | "app";
|
|
3363
3363
|
name: string;
|
|
3364
3364
|
input: Record<string, unknown>;
|
|
3365
3365
|
toolKey: string;
|
|
@@ -3375,8 +3375,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3375
3375
|
};
|
|
3376
3376
|
triggers: ({
|
|
3377
3377
|
label: string;
|
|
3378
|
-
kind: "app";
|
|
3379
3378
|
id: string;
|
|
3379
|
+
kind: "app";
|
|
3380
3380
|
enabled: boolean;
|
|
3381
3381
|
name: string;
|
|
3382
3382
|
variables: Record<string, unknown>;
|
|
@@ -3388,8 +3388,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3388
3388
|
instruction: string;
|
|
3389
3389
|
answerTo: "none" | "webhook";
|
|
3390
3390
|
} | {
|
|
3391
|
-
kind: "webhook";
|
|
3392
3391
|
id: string;
|
|
3392
|
+
kind: "webhook";
|
|
3393
3393
|
tenantId: string;
|
|
3394
3394
|
enabled: boolean;
|
|
3395
3395
|
name: string;
|
|
@@ -3400,9 +3400,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3400
3400
|
answerTo: "none" | "webhook";
|
|
3401
3401
|
} | {
|
|
3402
3402
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3403
|
+
id: string;
|
|
3403
3404
|
kind: "schedule";
|
|
3404
3405
|
date: string;
|
|
3405
|
-
id: string;
|
|
3406
3406
|
tenantId: string;
|
|
3407
3407
|
enabled: boolean;
|
|
3408
3408
|
name: string;
|
|
@@ -3473,9 +3473,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3473
3473
|
};
|
|
3474
3474
|
context: {
|
|
3475
3475
|
knowledge: {
|
|
3476
|
+
id: string;
|
|
3476
3477
|
status: "failed" | "ready" | "syncing";
|
|
3477
3478
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
3478
|
-
id: string;
|
|
3479
3479
|
name: string;
|
|
3480
3480
|
detail: string;
|
|
3481
3481
|
syncedLabel: string;
|
|
@@ -3504,7 +3504,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3504
3504
|
name: string;
|
|
3505
3505
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
3506
3506
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
3507
|
-
readAs: "
|
|
3507
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
3508
3508
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
3509
3509
|
summary: string;
|
|
3510
3510
|
latencyMs: number | null;
|
|
@@ -3524,8 +3524,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3524
3524
|
}[] | undefined;
|
|
3525
3525
|
responseSchema?: Record<string, unknown> | undefined;
|
|
3526
3526
|
}[];
|
|
3527
|
-
kind: "http" | "graphql" | "openapi";
|
|
3528
3527
|
id: string;
|
|
3528
|
+
kind: "http" | "graphql" | "openapi";
|
|
3529
3529
|
name: string;
|
|
3530
3530
|
host: string;
|
|
3531
3531
|
baseUrl: string;
|
|
@@ -3548,8 +3548,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3548
3548
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
3549
3549
|
}[];
|
|
3550
3550
|
mcpServers: {
|
|
3551
|
-
status: "connecting" | "connected";
|
|
3552
3551
|
id: string;
|
|
3552
|
+
status: "connecting" | "connected";
|
|
3553
3553
|
name: string;
|
|
3554
3554
|
url: string;
|
|
3555
3555
|
toolCount: number;
|
|
@@ -3606,7 +3606,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3606
3606
|
answer: {
|
|
3607
3607
|
shape: {
|
|
3608
3608
|
description: string;
|
|
3609
|
-
type: "number" | "
|
|
3609
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
3610
3610
|
id: string;
|
|
3611
3611
|
required: boolean;
|
|
3612
3612
|
name: string;
|
|
@@ -3626,8 +3626,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3626
3626
|
stopOnFail: string[];
|
|
3627
3627
|
stepLimit: number | null;
|
|
3628
3628
|
preparations?: {
|
|
3629
|
-
kind: "workbench" | "mcp" | "app";
|
|
3630
3629
|
id: string;
|
|
3630
|
+
kind: "workbench" | "mcp" | "app";
|
|
3631
3631
|
name: string;
|
|
3632
3632
|
input: Record<string, unknown>;
|
|
3633
3633
|
toolKey: string;
|
|
@@ -3655,8 +3655,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3655
3655
|
} | null | undefined;
|
|
3656
3656
|
triggers?: ({
|
|
3657
3657
|
label: string;
|
|
3658
|
-
kind: "app";
|
|
3659
3658
|
id: string;
|
|
3659
|
+
kind: "app";
|
|
3660
3660
|
enabled: boolean;
|
|
3661
3661
|
name: string;
|
|
3662
3662
|
subscriptionId: string;
|
|
@@ -3668,8 +3668,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3668
3668
|
answerTo: "none" | "webhook";
|
|
3669
3669
|
variables?: Record<string, unknown> | undefined;
|
|
3670
3670
|
} | {
|
|
3671
|
-
kind: "webhook";
|
|
3672
3671
|
id: string;
|
|
3672
|
+
kind: "webhook";
|
|
3673
3673
|
tenantId: string;
|
|
3674
3674
|
enabled: boolean;
|
|
3675
3675
|
name: string;
|
|
@@ -3680,9 +3680,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
3680
3680
|
variables?: Record<string, unknown> | undefined;
|
|
3681
3681
|
} | {
|
|
3682
3682
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3683
|
+
id: string;
|
|
3683
3684
|
kind: "schedule";
|
|
3684
3685
|
date: string;
|
|
3685
|
-
id: string;
|
|
3686
3686
|
tenantId: string;
|
|
3687
3687
|
enabled: boolean;
|
|
3688
3688
|
name: string;
|
|
@@ -3754,8 +3754,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3754
3754
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3755
3755
|
}, "strict", z.ZodTypeAny, {
|
|
3756
3756
|
label: string;
|
|
3757
|
-
kind: "app";
|
|
3758
3757
|
id: string;
|
|
3758
|
+
kind: "app";
|
|
3759
3759
|
enabled: boolean;
|
|
3760
3760
|
name: string;
|
|
3761
3761
|
variables: Record<string, unknown>;
|
|
@@ -3768,8 +3768,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3768
3768
|
answerTo: "none" | "webhook";
|
|
3769
3769
|
}, {
|
|
3770
3770
|
label: string;
|
|
3771
|
-
kind: "app";
|
|
3772
3771
|
id: string;
|
|
3772
|
+
kind: "app";
|
|
3773
3773
|
enabled: boolean;
|
|
3774
3774
|
name: string;
|
|
3775
3775
|
subscriptionId: string;
|
|
@@ -3792,8 +3792,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3792
3792
|
answerTo: z.ZodEnum<["webhook", "none"]>;
|
|
3793
3793
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3794
3794
|
}, "strict", z.ZodTypeAny, {
|
|
3795
|
-
kind: "webhook";
|
|
3796
3795
|
id: string;
|
|
3796
|
+
kind: "webhook";
|
|
3797
3797
|
tenantId: string;
|
|
3798
3798
|
enabled: boolean;
|
|
3799
3799
|
name: string;
|
|
@@ -3803,8 +3803,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3803
3803
|
instruction: string;
|
|
3804
3804
|
answerTo: "none" | "webhook";
|
|
3805
3805
|
}, {
|
|
3806
|
-
kind: "webhook";
|
|
3807
3806
|
id: string;
|
|
3807
|
+
kind: "webhook";
|
|
3808
3808
|
tenantId: string;
|
|
3809
3809
|
enabled: boolean;
|
|
3810
3810
|
name: string;
|
|
@@ -3835,9 +3835,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3835
3835
|
variables: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3836
3836
|
}, "strict", z.ZodTypeAny, {
|
|
3837
3837
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3838
|
+
id: string;
|
|
3838
3839
|
kind: "schedule";
|
|
3839
3840
|
date: string;
|
|
3840
|
-
id: string;
|
|
3841
3841
|
tenantId: string;
|
|
3842
3842
|
enabled: boolean;
|
|
3843
3843
|
name: string;
|
|
@@ -3855,9 +3855,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3855
3855
|
monthDay?: number | "last" | undefined;
|
|
3856
3856
|
}, {
|
|
3857
3857
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
3858
|
+
id: string;
|
|
3858
3859
|
kind: "schedule";
|
|
3859
3860
|
date: string;
|
|
3860
|
-
id: string;
|
|
3861
3861
|
tenantId: string;
|
|
3862
3862
|
enabled: boolean;
|
|
3863
3863
|
name: string;
|
|
@@ -4136,7 +4136,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4136
4136
|
query: Record<string, string>;
|
|
4137
4137
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4138
4138
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4139
|
-
readAs: "
|
|
4139
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4140
4140
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4141
4141
|
summary: string;
|
|
4142
4142
|
latencyMs: number | null;
|
|
@@ -4158,7 +4158,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4158
4158
|
name: string;
|
|
4159
4159
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4160
4160
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4161
|
-
readAs: "
|
|
4161
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4162
4162
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4163
4163
|
summary: string;
|
|
4164
4164
|
latencyMs: number | null;
|
|
@@ -4188,7 +4188,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4188
4188
|
query: Record<string, string>;
|
|
4189
4189
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4190
4190
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4191
|
-
readAs: "
|
|
4191
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4192
4192
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4193
4193
|
summary: string;
|
|
4194
4194
|
latencyMs: number | null;
|
|
@@ -4205,8 +4205,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4205
4205
|
sample?: unknown;
|
|
4206
4206
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4207
4207
|
}[];
|
|
4208
|
-
kind: "http" | "graphql" | "openapi";
|
|
4209
4208
|
id: string;
|
|
4209
|
+
kind: "http" | "graphql" | "openapi";
|
|
4210
4210
|
name: string;
|
|
4211
4211
|
host: string;
|
|
4212
4212
|
baseUrl: string;
|
|
@@ -4221,7 +4221,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4221
4221
|
name: string;
|
|
4222
4222
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4223
4223
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4224
|
-
readAs: "
|
|
4224
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4225
4225
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4226
4226
|
summary: string;
|
|
4227
4227
|
latencyMs: number | null;
|
|
@@ -4241,8 +4241,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4241
4241
|
}[] | undefined;
|
|
4242
4242
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4243
4243
|
}[];
|
|
4244
|
-
kind: "http" | "graphql" | "openapi";
|
|
4245
4244
|
id: string;
|
|
4245
|
+
kind: "http" | "graphql" | "openapi";
|
|
4246
4246
|
name: string;
|
|
4247
4247
|
host: string;
|
|
4248
4248
|
baseUrl: string;
|
|
@@ -4336,8 +4336,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4336
4336
|
rule: "allow" | "ask" | "block";
|
|
4337
4337
|
}>, "many">;
|
|
4338
4338
|
}, "strict", z.ZodTypeAny, {
|
|
4339
|
-
status: "connecting" | "connected";
|
|
4340
4339
|
id: string;
|
|
4340
|
+
status: "connecting" | "connected";
|
|
4341
4341
|
name: string;
|
|
4342
4342
|
url: string;
|
|
4343
4343
|
toolCount: number;
|
|
@@ -4355,8 +4355,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4355
4355
|
}[];
|
|
4356
4356
|
credentialId?: string | undefined;
|
|
4357
4357
|
}, {
|
|
4358
|
-
status: "connecting" | "connected";
|
|
4359
4358
|
id: string;
|
|
4359
|
+
status: "connecting" | "connected";
|
|
4360
4360
|
name: string;
|
|
4361
4361
|
url: string;
|
|
4362
4362
|
toolCount: number;
|
|
@@ -4421,9 +4421,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4421
4421
|
}>>;
|
|
4422
4422
|
syncedLabel: z.ZodString;
|
|
4423
4423
|
}, "strict", z.ZodTypeAny, {
|
|
4424
|
+
id: string;
|
|
4424
4425
|
status: "failed" | "ready" | "syncing";
|
|
4425
4426
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4426
|
-
id: string;
|
|
4427
4427
|
name: string;
|
|
4428
4428
|
scope: "customer" | "project";
|
|
4429
4429
|
detail: string;
|
|
@@ -4445,9 +4445,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4445
4445
|
retryable: boolean;
|
|
4446
4446
|
} | undefined;
|
|
4447
4447
|
}, {
|
|
4448
|
+
id: string;
|
|
4448
4449
|
status: "failed" | "ready" | "syncing";
|
|
4449
4450
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4450
|
-
id: string;
|
|
4451
4451
|
name: string;
|
|
4452
4452
|
detail: string;
|
|
4453
4453
|
syncedLabel: string;
|
|
@@ -4484,9 +4484,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4484
4484
|
}>;
|
|
4485
4485
|
}, "strict", z.ZodTypeAny, {
|
|
4486
4486
|
knowledge: {
|
|
4487
|
+
id: string;
|
|
4487
4488
|
status: "failed" | "ready" | "syncing";
|
|
4488
4489
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4489
|
-
id: string;
|
|
4490
4490
|
name: string;
|
|
4491
4491
|
scope: "customer" | "project";
|
|
4492
4492
|
detail: string;
|
|
@@ -4521,7 +4521,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4521
4521
|
query: Record<string, string>;
|
|
4522
4522
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4523
4523
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4524
|
-
readAs: "
|
|
4524
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4525
4525
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4526
4526
|
summary: string;
|
|
4527
4527
|
latencyMs: number | null;
|
|
@@ -4538,8 +4538,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4538
4538
|
sample?: unknown;
|
|
4539
4539
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4540
4540
|
}[];
|
|
4541
|
-
kind: "http" | "graphql" | "openapi";
|
|
4542
4541
|
id: string;
|
|
4542
|
+
kind: "http" | "graphql" | "openapi";
|
|
4543
4543
|
name: string;
|
|
4544
4544
|
host: string;
|
|
4545
4545
|
baseUrl: string;
|
|
@@ -4562,8 +4562,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4562
4562
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4563
4563
|
}[];
|
|
4564
4564
|
mcpServers: {
|
|
4565
|
-
status: "connecting" | "connected";
|
|
4566
4565
|
id: string;
|
|
4566
|
+
status: "connecting" | "connected";
|
|
4567
4567
|
name: string;
|
|
4568
4568
|
url: string;
|
|
4569
4569
|
toolCount: number;
|
|
@@ -4588,9 +4588,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4588
4588
|
};
|
|
4589
4589
|
}, {
|
|
4590
4590
|
knowledge: {
|
|
4591
|
+
id: string;
|
|
4591
4592
|
status: "failed" | "ready" | "syncing";
|
|
4592
4593
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4593
|
-
id: string;
|
|
4594
4594
|
name: string;
|
|
4595
4595
|
detail: string;
|
|
4596
4596
|
syncedLabel: string;
|
|
@@ -4619,7 +4619,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4619
4619
|
name: string;
|
|
4620
4620
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4621
4621
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4622
|
-
readAs: "
|
|
4622
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4623
4623
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4624
4624
|
summary: string;
|
|
4625
4625
|
latencyMs: number | null;
|
|
@@ -4639,8 +4639,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4639
4639
|
}[] | undefined;
|
|
4640
4640
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4641
4641
|
}[];
|
|
4642
|
-
kind: "http" | "graphql" | "openapi";
|
|
4643
4642
|
id: string;
|
|
4643
|
+
kind: "http" | "graphql" | "openapi";
|
|
4644
4644
|
name: string;
|
|
4645
4645
|
host: string;
|
|
4646
4646
|
baseUrl: string;
|
|
@@ -4663,8 +4663,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4663
4663
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
4664
4664
|
}[];
|
|
4665
4665
|
mcpServers: {
|
|
4666
|
-
status: "connecting" | "connected";
|
|
4667
4666
|
id: string;
|
|
4667
|
+
status: "connecting" | "connected";
|
|
4668
4668
|
name: string;
|
|
4669
4669
|
url: string;
|
|
4670
4670
|
toolCount: number;
|
|
@@ -4734,7 +4734,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4734
4734
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4735
4735
|
}, "strict", z.ZodTypeAny, {
|
|
4736
4736
|
description: string;
|
|
4737
|
-
type: "number" | "
|
|
4737
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4738
4738
|
id: string;
|
|
4739
4739
|
required: boolean;
|
|
4740
4740
|
name: string;
|
|
@@ -4743,7 +4743,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4743
4743
|
items?: Record<string, unknown> | undefined;
|
|
4744
4744
|
}, {
|
|
4745
4745
|
description: string;
|
|
4746
|
-
type: "number" | "
|
|
4746
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4747
4747
|
id: string;
|
|
4748
4748
|
required: boolean;
|
|
4749
4749
|
name: string;
|
|
@@ -4755,7 +4755,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4755
4755
|
}, "strict", z.ZodTypeAny, {
|
|
4756
4756
|
shape: {
|
|
4757
4757
|
description: string;
|
|
4758
|
-
type: "number" | "
|
|
4758
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4759
4759
|
id: string;
|
|
4760
4760
|
required: boolean;
|
|
4761
4761
|
name: string;
|
|
@@ -4770,7 +4770,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4770
4770
|
}, {
|
|
4771
4771
|
shape: {
|
|
4772
4772
|
description: string;
|
|
4773
|
-
type: "number" | "
|
|
4773
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
4774
4774
|
id: string;
|
|
4775
4775
|
required: boolean;
|
|
4776
4776
|
name: string;
|
|
@@ -4805,8 +4805,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4805
4805
|
target: string[];
|
|
4806
4806
|
}>, "many">;
|
|
4807
4807
|
}, "strict", z.ZodTypeAny, {
|
|
4808
|
-
kind: "workbench" | "mcp" | "app";
|
|
4809
4808
|
id: string;
|
|
4809
|
+
kind: "workbench" | "mcp" | "app";
|
|
4810
4810
|
name: string;
|
|
4811
4811
|
input: Record<string, unknown>;
|
|
4812
4812
|
toolKey: string;
|
|
@@ -4817,8 +4817,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4817
4817
|
target: string[];
|
|
4818
4818
|
}[];
|
|
4819
4819
|
}, {
|
|
4820
|
-
kind: "workbench" | "mcp" | "app";
|
|
4821
4820
|
id: string;
|
|
4821
|
+
kind: "workbench" | "mcp" | "app";
|
|
4822
4822
|
name: string;
|
|
4823
4823
|
input: Record<string, unknown>;
|
|
4824
4824
|
toolKey: string;
|
|
@@ -4839,8 +4839,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4839
4839
|
before: string[];
|
|
4840
4840
|
after: string[];
|
|
4841
4841
|
preparations: {
|
|
4842
|
-
kind: "workbench" | "mcp" | "app";
|
|
4843
4842
|
id: string;
|
|
4843
|
+
kind: "workbench" | "mcp" | "app";
|
|
4844
4844
|
name: string;
|
|
4845
4845
|
input: Record<string, unknown>;
|
|
4846
4846
|
toolKey: string;
|
|
@@ -4860,8 +4860,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4860
4860
|
stopOnFail: string[];
|
|
4861
4861
|
stepLimit: number | null;
|
|
4862
4862
|
preparations?: {
|
|
4863
|
-
kind: "workbench" | "mcp" | "app";
|
|
4864
4863
|
id: string;
|
|
4864
|
+
kind: "workbench" | "mcp" | "app";
|
|
4865
4865
|
name: string;
|
|
4866
4866
|
input: Record<string, unknown>;
|
|
4867
4867
|
toolKey: string;
|
|
@@ -4922,9 +4922,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4922
4922
|
} | undefined;
|
|
4923
4923
|
context?: {
|
|
4924
4924
|
knowledge: {
|
|
4925
|
+
id: string;
|
|
4925
4926
|
status: "failed" | "ready" | "syncing";
|
|
4926
4927
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
4927
|
-
id: string;
|
|
4928
4928
|
name: string;
|
|
4929
4929
|
scope: "customer" | "project";
|
|
4930
4930
|
detail: string;
|
|
@@ -4959,7 +4959,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4959
4959
|
query: Record<string, string>;
|
|
4960
4960
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4961
4961
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
4962
|
-
readAs: "
|
|
4962
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
4963
4963
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
4964
4964
|
summary: string;
|
|
4965
4965
|
latencyMs: number | null;
|
|
@@ -4976,8 +4976,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4976
4976
|
sample?: unknown;
|
|
4977
4977
|
responseSchema?: Record<string, unknown> | undefined;
|
|
4978
4978
|
}[];
|
|
4979
|
-
kind: "http" | "graphql" | "openapi";
|
|
4980
4979
|
id: string;
|
|
4980
|
+
kind: "http" | "graphql" | "openapi";
|
|
4981
4981
|
name: string;
|
|
4982
4982
|
host: string;
|
|
4983
4983
|
baseUrl: string;
|
|
@@ -5000,8 +5000,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5000
5000
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
5001
5001
|
}[];
|
|
5002
5002
|
mcpServers: {
|
|
5003
|
-
status: "connecting" | "connected";
|
|
5004
5003
|
id: string;
|
|
5004
|
+
status: "connecting" | "connected";
|
|
5005
5005
|
name: string;
|
|
5006
5006
|
url: string;
|
|
5007
5007
|
toolCount: number;
|
|
@@ -5063,7 +5063,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5063
5063
|
answer?: {
|
|
5064
5064
|
shape: {
|
|
5065
5065
|
description: string;
|
|
5066
|
-
type: "number" | "
|
|
5066
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5067
5067
|
id: string;
|
|
5068
5068
|
required: boolean;
|
|
5069
5069
|
name: string;
|
|
@@ -5081,8 +5081,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5081
5081
|
before: string[];
|
|
5082
5082
|
after: string[];
|
|
5083
5083
|
preparations: {
|
|
5084
|
-
kind: "workbench" | "mcp" | "app";
|
|
5085
5084
|
id: string;
|
|
5085
|
+
kind: "workbench" | "mcp" | "app";
|
|
5086
5086
|
name: string;
|
|
5087
5087
|
input: Record<string, unknown>;
|
|
5088
5088
|
toolKey: string;
|
|
@@ -5098,8 +5098,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5098
5098
|
} | undefined;
|
|
5099
5099
|
triggers?: ({
|
|
5100
5100
|
label: string;
|
|
5101
|
-
kind: "app";
|
|
5102
5101
|
id: string;
|
|
5102
|
+
kind: "app";
|
|
5103
5103
|
enabled: boolean;
|
|
5104
5104
|
name: string;
|
|
5105
5105
|
variables: Record<string, unknown>;
|
|
@@ -5111,8 +5111,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5111
5111
|
instruction: string;
|
|
5112
5112
|
answerTo: "none" | "webhook";
|
|
5113
5113
|
} | {
|
|
5114
|
-
kind: "webhook";
|
|
5115
5114
|
id: string;
|
|
5115
|
+
kind: "webhook";
|
|
5116
5116
|
tenantId: string;
|
|
5117
5117
|
enabled: boolean;
|
|
5118
5118
|
name: string;
|
|
@@ -5123,9 +5123,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5123
5123
|
answerTo: "none" | "webhook";
|
|
5124
5124
|
} | {
|
|
5125
5125
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
5126
|
+
id: string;
|
|
5126
5127
|
kind: "schedule";
|
|
5127
5128
|
date: string;
|
|
5128
|
-
id: string;
|
|
5129
5129
|
tenantId: string;
|
|
5130
5130
|
enabled: boolean;
|
|
5131
5131
|
name: string;
|
|
@@ -5195,9 +5195,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5195
5195
|
} | undefined;
|
|
5196
5196
|
context?: {
|
|
5197
5197
|
knowledge: {
|
|
5198
|
+
id: string;
|
|
5198
5199
|
status: "failed" | "ready" | "syncing";
|
|
5199
5200
|
kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
|
|
5200
|
-
id: string;
|
|
5201
5201
|
name: string;
|
|
5202
5202
|
detail: string;
|
|
5203
5203
|
syncedLabel: string;
|
|
@@ -5226,7 +5226,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5226
5226
|
name: string;
|
|
5227
5227
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
5228
5228
|
bodyType: "json" | "form" | "xml" | "gql";
|
|
5229
|
-
readAs: "
|
|
5229
|
+
readAs: "auto" | "text" | "json" | "xml";
|
|
5230
5230
|
timeout: "2 seconds" | "5 seconds" | "10 seconds";
|
|
5231
5231
|
summary: string;
|
|
5232
5232
|
latencyMs: number | null;
|
|
@@ -5246,8 +5246,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5246
5246
|
}[] | undefined;
|
|
5247
5247
|
responseSchema?: Record<string, unknown> | undefined;
|
|
5248
5248
|
}[];
|
|
5249
|
-
kind: "http" | "graphql" | "openapi";
|
|
5250
5249
|
id: string;
|
|
5250
|
+
kind: "http" | "graphql" | "openapi";
|
|
5251
5251
|
name: string;
|
|
5252
5252
|
host: string;
|
|
5253
5253
|
baseUrl: string;
|
|
@@ -5270,8 +5270,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5270
5270
|
askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
|
|
5271
5271
|
}[];
|
|
5272
5272
|
mcpServers: {
|
|
5273
|
-
status: "connecting" | "connected";
|
|
5274
5273
|
id: string;
|
|
5274
|
+
status: "connecting" | "connected";
|
|
5275
5275
|
name: string;
|
|
5276
5276
|
url: string;
|
|
5277
5277
|
toolCount: number;
|
|
@@ -5336,7 +5336,7 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5336
5336
|
answer?: {
|
|
5337
5337
|
shape: {
|
|
5338
5338
|
description: string;
|
|
5339
|
-
type: "number" | "
|
|
5339
|
+
type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
|
|
5340
5340
|
id: string;
|
|
5341
5341
|
required: boolean;
|
|
5342
5342
|
name: string;
|
|
@@ -5356,8 +5356,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5356
5356
|
stopOnFail: string[];
|
|
5357
5357
|
stepLimit: number | null;
|
|
5358
5358
|
preparations?: {
|
|
5359
|
-
kind: "workbench" | "mcp" | "app";
|
|
5360
5359
|
id: string;
|
|
5360
|
+
kind: "workbench" | "mcp" | "app";
|
|
5361
5361
|
name: string;
|
|
5362
5362
|
input: Record<string, unknown>;
|
|
5363
5363
|
toolKey: string;
|
|
@@ -5371,8 +5371,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5371
5371
|
} | undefined;
|
|
5372
5372
|
triggers?: ({
|
|
5373
5373
|
label: string;
|
|
5374
|
-
kind: "app";
|
|
5375
5374
|
id: string;
|
|
5375
|
+
kind: "app";
|
|
5376
5376
|
enabled: boolean;
|
|
5377
5377
|
name: string;
|
|
5378
5378
|
subscriptionId: string;
|
|
@@ -5384,8 +5384,8 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5384
5384
|
answerTo: "none" | "webhook";
|
|
5385
5385
|
variables?: Record<string, unknown> | undefined;
|
|
5386
5386
|
} | {
|
|
5387
|
-
kind: "webhook";
|
|
5388
5387
|
id: string;
|
|
5388
|
+
kind: "webhook";
|
|
5389
5389
|
tenantId: string;
|
|
5390
5390
|
enabled: boolean;
|
|
5391
5391
|
name: string;
|
|
@@ -5396,9 +5396,9 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
5396
5396
|
variables?: Record<string, unknown> | undefined;
|
|
5397
5397
|
} | {
|
|
5398
5398
|
every: "cron" | "week" | "day" | "hour" | "minutes" | "month";
|
|
5399
|
+
id: string;
|
|
5399
5400
|
kind: "schedule";
|
|
5400
5401
|
date: string;
|
|
5401
|
-
id: string;
|
|
5402
5402
|
tenantId: string;
|
|
5403
5403
|
enabled: boolean;
|
|
5404
5404
|
name: string;
|