@stacklink/sdk 0.6.3 → 0.6.4

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.
@@ -47,26 +47,26 @@ 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: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed";
50
+ filter: "completed" | "failed" | "all" | "cancelled" | "waiting" | "queued" | "running" | "followup" | "files" | "stopped" | "delivery_failed";
51
51
  limit: number;
52
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
+ from?: string | undefined;
54
55
  channel?: "test" | "published" | undefined;
55
56
  cursor?: string | undefined;
56
57
  mine?: "true" | "false" | undefined;
57
- from?: string | undefined;
58
58
  to?: string | undefined;
59
59
  errorCode?: string | undefined;
60
60
  deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
61
61
  }, {
62
- filter?: "completed" | "failed" | "cancelled" | "waiting" | "queued" | "running" | "all" | "followup" | "files" | "stopped" | "delivery_failed" | undefined;
62
+ filter?: "completed" | "failed" | "all" | "cancelled" | "waiting" | "queued" | "running" | "followup" | "files" | "stopped" | "delivery_failed" | undefined;
63
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
+ from?: string | undefined;
65
66
  channel?: "test" | "published" | undefined;
66
- cursor?: string | undefined;
67
67
  limit?: number | undefined;
68
+ cursor?: string | undefined;
68
69
  mine?: "true" | "false" | undefined;
69
- from?: string | undefined;
70
70
  to?: string | undefined;
71
71
  errorCode?: string | undefined;
72
72
  deliveryStatus?: "failed" | "unknown" | "retry_scheduled" | "dead_letter" | "suppressed" | undefined;
@@ -350,12 +350,12 @@ export declare const botFileSettingsSchema: z.ZodObject<{
350
350
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
351
351
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
352
352
  }, "strict", z.ZodTypeAny, {
353
- enabled: boolean;
354
353
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
354
+ enabled: boolean;
355
355
  bigSpreadsheets: "workbench" | "preview";
356
356
  }, {
357
- enabled: boolean;
358
357
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
358
+ enabled: boolean;
359
359
  bigSpreadsheets: "workbench" | "preview";
360
360
  }>;
361
361
  export declare const botFileUploadSchema: z.ZodObject<{
@@ -872,12 +872,12 @@ export declare const botAvatarSchema: z.ZodObject<{
872
872
  version: 1;
873
873
  style: "clay" | "pebble" | "shapes" | "letters";
874
874
  seed: string;
875
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
875
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
876
876
  }, {
877
877
  version: 1;
878
878
  style: "clay" | "pebble" | "shapes" | "letters";
879
879
  seed: string;
880
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
880
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
881
881
  }>;
882
882
  export type BotAvatar = z.infer<typeof botAvatarSchema>;
883
883
  export type BotIdentity = {
@@ -899,12 +899,12 @@ export declare const botIdentityInputSchema: z.ZodObject<{
899
899
  version: 1;
900
900
  style: "clay" | "pebble" | "shapes" | "letters";
901
901
  seed: string;
902
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
902
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
903
903
  }, {
904
904
  version: 1;
905
905
  style: "clay" | "pebble" | "shapes" | "letters";
906
906
  seed: string;
907
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
907
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
908
908
  }>>>;
909
909
  }, "strict", z.ZodTypeAny, {
910
910
  name: string;
@@ -914,7 +914,7 @@ export declare const botIdentityInputSchema: z.ZodObject<{
914
914
  version: 1;
915
915
  style: "clay" | "pebble" | "shapes" | "letters";
916
916
  seed: string;
917
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
917
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
918
918
  } | null | undefined;
919
919
  }, {
920
920
  name: string;
@@ -924,7 +924,7 @@ export declare const botIdentityInputSchema: z.ZodObject<{
924
924
  version: 1;
925
925
  style: "clay" | "pebble" | "shapes" | "letters";
926
926
  seed: string;
927
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
927
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
928
928
  } | null | undefined;
929
929
  }>;
930
930
  export type BotHelperAvailability = Record<'web_search' | 'audio_transcription', {
@@ -1028,13 +1028,13 @@ 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
- id: string;
1032
1031
  kind: "app";
1033
- enabled: boolean;
1034
1032
  name: string;
1033
+ id: string;
1034
+ providerKey: string;
1035
+ enabled: boolean;
1035
1036
  variables: Record<string, unknown>;
1036
1037
  subscriptionId: string;
1037
- providerKey: string;
1038
1038
  eventTypes: string[];
1039
1039
  runsAs: "none" | "field";
1040
1040
  customerField: string;
@@ -1042,12 +1042,12 @@ export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
1042
1042
  answerTo: "none" | "webhook";
1043
1043
  }, {
1044
1044
  label: string;
1045
- id: string;
1046
1045
  kind: "app";
1047
- enabled: boolean;
1048
1046
  name: string;
1049
- subscriptionId: string;
1047
+ id: string;
1050
1048
  providerKey: string;
1049
+ enabled: boolean;
1050
+ subscriptionId: string;
1051
1051
  eventTypes: string[];
1052
1052
  runsAs: "none" | "field";
1053
1053
  customerField: string;
@@ -1066,22 +1066,22 @@ 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
- id: string;
1070
1069
  kind: "webhook";
1071
1070
  tenantId: string;
1072
- enabled: boolean;
1073
1071
  name: string;
1072
+ id: string;
1073
+ enabled: boolean;
1074
1074
  variables: Record<string, unknown>;
1075
1075
  runsAs: "none" | "field";
1076
1076
  customerField: string;
1077
1077
  instruction: string;
1078
1078
  answerTo: "none" | "webhook";
1079
1079
  }, {
1080
- id: string;
1081
1080
  kind: "webhook";
1082
1081
  tenantId: string;
1083
- enabled: boolean;
1084
1082
  name: string;
1083
+ id: string;
1084
+ enabled: boolean;
1085
1085
  runsAs: "none" | "field";
1086
1086
  customerField: string;
1087
1087
  instruction: string;
@@ -1109,12 +1109,12 @@ 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;
1113
- kind: "schedule";
1114
1112
  date: string;
1113
+ kind: "schedule";
1115
1114
  tenantId: string;
1116
- enabled: boolean;
1117
1115
  name: string;
1116
+ id: string;
1117
+ enabled: boolean;
1118
1118
  variables: Record<string, unknown>;
1119
1119
  timezone: string;
1120
1120
  customerId: string;
@@ -1129,12 +1129,12 @@ 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;
1133
- kind: "schedule";
1134
1132
  date: string;
1133
+ kind: "schedule";
1135
1134
  tenantId: string;
1136
- enabled: boolean;
1137
1135
  name: string;
1136
+ id: string;
1137
+ enabled: boolean;
1138
1138
  timezone: string;
1139
1139
  customerId: string;
1140
1140
  days: number[];
@@ -1421,8 +1421,8 @@ export declare const botNativeAppUpdateSchema: z.ZodObject<{
1421
1421
  }>>;
1422
1422
  action: z.ZodDefault<z.ZodEnum<["save", "verify", "disable", "review_appearance"]>>;
1423
1423
  }, "strict", z.ZodTypeAny, {
1424
- revision: number;
1425
1424
  action: "save" | "verify" | "disable" | "review_appearance";
1425
+ revision: number;
1426
1426
  credentials?: {
1427
1427
  clientSecret: string;
1428
1428
  signingSecret?: string | undefined;
@@ -1724,14 +1724,14 @@ export declare const botBindingSchema: z.ZodObject<{
1724
1724
  key: z.ZodString;
1725
1725
  }, "strict", z.ZodTypeAny, {
1726
1726
  key: string;
1727
- source: "model" | "variable" | "context" | "identity";
1727
+ source: "model" | "context" | "variable" | "identity";
1728
1728
  path: string[];
1729
- target: "path" | "body" | "query" | "header";
1729
+ target: "path" | "query" | "body" | "header";
1730
1730
  }, {
1731
1731
  key: string;
1732
- source: "model" | "variable" | "context" | "identity";
1732
+ source: "model" | "context" | "variable" | "identity";
1733
1733
  path: string[];
1734
- target: "path" | "body" | "query" | "header";
1734
+ target: "path" | "query" | "body" | "header";
1735
1735
  }>;
1736
1736
  export declare const botApiCallSchema: z.ZodObject<{
1737
1737
  id: z.ZodString;
@@ -1757,65 +1757,65 @@ export declare const botApiCallSchema: z.ZodObject<{
1757
1757
  key: z.ZodString;
1758
1758
  }, "strict", z.ZodTypeAny, {
1759
1759
  key: string;
1760
- source: "model" | "variable" | "context" | "identity";
1760
+ source: "model" | "context" | "variable" | "identity";
1761
1761
  path: string[];
1762
- target: "path" | "body" | "query" | "header";
1762
+ target: "path" | "query" | "body" | "header";
1763
1763
  }, {
1764
1764
  key: string;
1765
- source: "model" | "variable" | "context" | "identity";
1765
+ source: "model" | "context" | "variable" | "identity";
1766
1766
  path: string[];
1767
- target: "path" | "body" | "query" | "header";
1767
+ target: "path" | "query" | "body" | "header";
1768
1768
  }>, "many">>;
1769
1769
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1770
1770
  sample: z.ZodOptional<z.ZodUnknown>;
1771
1771
  }, "strict", z.ZodTypeAny, {
1772
1772
  path: string;
1773
- id: string;
1774
1773
  name: string;
1774
+ id: string;
1775
+ query: Record<string, string>;
1775
1776
  headers: Record<string, string>;
1776
1777
  body: string;
1777
- query: Record<string, string>;
1778
1778
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1779
1779
  bodyType: "json" | "form" | "xml" | "gql";
1780
- readAs: "auto" | "text" | "json" | "xml";
1780
+ readAs: "text" | "json" | "auto" | "xml";
1781
1781
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1782
1782
  summary: string;
1783
1783
  latencyMs: number | null;
1784
1784
  visibleFields: string[];
1785
1785
  effects: "read" | "write" | "unclassified";
1786
- permission: "allow" | "ask" | "block";
1786
+ permission: "block" | "allow" | "ask";
1787
1787
  bindings: {
1788
1788
  key: string;
1789
- source: "model" | "variable" | "context" | "identity";
1789
+ source: "model" | "context" | "variable" | "identity";
1790
1790
  path: string[];
1791
- target: "path" | "body" | "query" | "header";
1791
+ target: "path" | "query" | "body" | "header";
1792
1792
  }[];
1793
1793
  inputSchema?: Record<string, unknown> | undefined;
1794
1794
  sample?: unknown;
1795
1795
  responseSchema?: Record<string, unknown> | undefined;
1796
1796
  }, {
1797
1797
  path: string;
1798
- id: string;
1799
1798
  name: string;
1799
+ id: string;
1800
1800
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1801
1801
  bodyType: "json" | "form" | "xml" | "gql";
1802
- readAs: "auto" | "text" | "json" | "xml";
1802
+ readAs: "text" | "json" | "auto" | "xml";
1803
1803
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1804
1804
  summary: string;
1805
1805
  latencyMs: number | null;
1806
1806
  visibleFields: string[];
1807
1807
  effects: "read" | "write" | "unclassified";
1808
+ query?: Record<string, string> | undefined;
1808
1809
  inputSchema?: Record<string, unknown> | undefined;
1809
1810
  headers?: Record<string, string> | undefined;
1810
1811
  body?: string | undefined;
1811
1812
  sample?: unknown;
1812
- query?: Record<string, string> | undefined;
1813
- permission?: "allow" | "ask" | "block" | undefined;
1813
+ permission?: "block" | "allow" | "ask" | undefined;
1814
1814
  bindings?: {
1815
1815
  key: string;
1816
- source: "model" | "variable" | "context" | "identity";
1816
+ source: "model" | "context" | "variable" | "identity";
1817
1817
  path: string[];
1818
- target: "path" | "body" | "query" | "header";
1818
+ target: "path" | "query" | "body" | "header";
1819
1819
  }[] | undefined;
1820
1820
  responseSchema?: Record<string, unknown> | undefined;
1821
1821
  }>;
@@ -1853,98 +1853,98 @@ export declare const botApiSchema: z.ZodObject<{
1853
1853
  key: z.ZodString;
1854
1854
  }, "strict", z.ZodTypeAny, {
1855
1855
  key: string;
1856
- source: "model" | "variable" | "context" | "identity";
1856
+ source: "model" | "context" | "variable" | "identity";
1857
1857
  path: string[];
1858
- target: "path" | "body" | "query" | "header";
1858
+ target: "path" | "query" | "body" | "header";
1859
1859
  }, {
1860
1860
  key: string;
1861
- source: "model" | "variable" | "context" | "identity";
1861
+ source: "model" | "context" | "variable" | "identity";
1862
1862
  path: string[];
1863
- target: "path" | "body" | "query" | "header";
1863
+ target: "path" | "query" | "body" | "header";
1864
1864
  }>, "many">>;
1865
1865
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1866
1866
  sample: z.ZodOptional<z.ZodUnknown>;
1867
1867
  }, "strict", z.ZodTypeAny, {
1868
1868
  path: string;
1869
- id: string;
1870
1869
  name: string;
1870
+ id: string;
1871
+ query: Record<string, string>;
1871
1872
  headers: Record<string, string>;
1872
1873
  body: string;
1873
- query: Record<string, string>;
1874
1874
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1875
1875
  bodyType: "json" | "form" | "xml" | "gql";
1876
- readAs: "auto" | "text" | "json" | "xml";
1876
+ readAs: "text" | "json" | "auto" | "xml";
1877
1877
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1878
1878
  summary: string;
1879
1879
  latencyMs: number | null;
1880
1880
  visibleFields: string[];
1881
1881
  effects: "read" | "write" | "unclassified";
1882
- permission: "allow" | "ask" | "block";
1882
+ permission: "block" | "allow" | "ask";
1883
1883
  bindings: {
1884
1884
  key: string;
1885
- source: "model" | "variable" | "context" | "identity";
1885
+ source: "model" | "context" | "variable" | "identity";
1886
1886
  path: string[];
1887
- target: "path" | "body" | "query" | "header";
1887
+ target: "path" | "query" | "body" | "header";
1888
1888
  }[];
1889
1889
  inputSchema?: Record<string, unknown> | undefined;
1890
1890
  sample?: unknown;
1891
1891
  responseSchema?: Record<string, unknown> | undefined;
1892
1892
  }, {
1893
1893
  path: string;
1894
- id: string;
1895
1894
  name: string;
1895
+ id: string;
1896
1896
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1897
1897
  bodyType: "json" | "form" | "xml" | "gql";
1898
- readAs: "auto" | "text" | "json" | "xml";
1898
+ readAs: "text" | "json" | "auto" | "xml";
1899
1899
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1900
1900
  summary: string;
1901
1901
  latencyMs: number | null;
1902
1902
  visibleFields: string[];
1903
1903
  effects: "read" | "write" | "unclassified";
1904
+ query?: Record<string, string> | undefined;
1904
1905
  inputSchema?: Record<string, unknown> | undefined;
1905
1906
  headers?: Record<string, string> | undefined;
1906
1907
  body?: string | undefined;
1907
1908
  sample?: unknown;
1908
- query?: Record<string, string> | undefined;
1909
- permission?: "allow" | "ask" | "block" | undefined;
1909
+ permission?: "block" | "allow" | "ask" | undefined;
1910
1910
  bindings?: {
1911
1911
  key: string;
1912
- source: "model" | "variable" | "context" | "identity";
1912
+ source: "model" | "context" | "variable" | "identity";
1913
1913
  path: string[];
1914
- target: "path" | "body" | "query" | "header";
1914
+ target: "path" | "query" | "body" | "header";
1915
1915
  }[] | undefined;
1916
1916
  responseSchema?: Record<string, unknown> | undefined;
1917
1917
  }>, "many">;
1918
1918
  }, "strict", z.ZodTypeAny, {
1919
1919
  calls: {
1920
1920
  path: string;
1921
- id: string;
1922
1921
  name: string;
1922
+ id: string;
1923
+ query: Record<string, string>;
1923
1924
  headers: Record<string, string>;
1924
1925
  body: string;
1925
- query: Record<string, string>;
1926
1926
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1927
1927
  bodyType: "json" | "form" | "xml" | "gql";
1928
- readAs: "auto" | "text" | "json" | "xml";
1928
+ readAs: "text" | "json" | "auto" | "xml";
1929
1929
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1930
1930
  summary: string;
1931
1931
  latencyMs: number | null;
1932
1932
  visibleFields: string[];
1933
1933
  effects: "read" | "write" | "unclassified";
1934
- permission: "allow" | "ask" | "block";
1934
+ permission: "block" | "allow" | "ask";
1935
1935
  bindings: {
1936
1936
  key: string;
1937
- source: "model" | "variable" | "context" | "identity";
1937
+ source: "model" | "context" | "variable" | "identity";
1938
1938
  path: string[];
1939
- target: "path" | "body" | "query" | "header";
1939
+ target: "path" | "query" | "body" | "header";
1940
1940
  }[];
1941
1941
  inputSchema?: Record<string, unknown> | undefined;
1942
1942
  sample?: unknown;
1943
1943
  responseSchema?: Record<string, unknown> | undefined;
1944
1944
  }[];
1945
- id: string;
1946
1945
  kind: "http" | "graphql" | "openapi";
1947
1946
  name: string;
1947
+ id: string;
1948
1948
  host: string;
1949
1949
  baseUrl: string;
1950
1950
  auth: "none" | "one" | "each" | "oauth";
@@ -1954,33 +1954,33 @@ export declare const botApiSchema: z.ZodObject<{
1954
1954
  }, {
1955
1955
  calls: {
1956
1956
  path: string;
1957
- id: string;
1958
1957
  name: string;
1958
+ id: string;
1959
1959
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1960
1960
  bodyType: "json" | "form" | "xml" | "gql";
1961
- readAs: "auto" | "text" | "json" | "xml";
1961
+ readAs: "text" | "json" | "auto" | "xml";
1962
1962
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
1963
1963
  summary: string;
1964
1964
  latencyMs: number | null;
1965
1965
  visibleFields: string[];
1966
1966
  effects: "read" | "write" | "unclassified";
1967
+ query?: Record<string, string> | undefined;
1967
1968
  inputSchema?: Record<string, unknown> | undefined;
1968
1969
  headers?: Record<string, string> | undefined;
1969
1970
  body?: string | undefined;
1970
1971
  sample?: unknown;
1971
- query?: Record<string, string> | undefined;
1972
- permission?: "allow" | "ask" | "block" | undefined;
1972
+ permission?: "block" | "allow" | "ask" | undefined;
1973
1973
  bindings?: {
1974
1974
  key: string;
1975
- source: "model" | "variable" | "context" | "identity";
1975
+ source: "model" | "context" | "variable" | "identity";
1976
1976
  path: string[];
1977
- target: "path" | "body" | "query" | "header";
1977
+ target: "path" | "query" | "body" | "header";
1978
1978
  }[] | undefined;
1979
1979
  responseSchema?: Record<string, unknown> | undefined;
1980
1980
  }[];
1981
- id: string;
1982
1981
  kind: "http" | "graphql" | "openapi";
1983
1982
  name: string;
1983
+ id: string;
1984
1984
  host: string;
1985
1985
  baseUrl: string;
1986
1986
  auth: "none" | "one" | "each" | "oauth";
@@ -2001,24 +2001,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
2001
2001
  version: 1;
2002
2002
  style: "clay" | "pebble" | "shapes" | "letters";
2003
2003
  seed: string;
2004
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
2004
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
2005
2005
  }, {
2006
2006
  version: 1;
2007
2007
  style: "clay" | "pebble" | "shapes" | "letters";
2008
2008
  seed: string;
2009
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
2009
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
2010
2010
  }>>>;
2011
2011
  files: z.ZodDefault<z.ZodObject<{
2012
2012
  enabled: z.ZodBoolean;
2013
2013
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
2014
2014
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
2015
2015
  }, "strict", z.ZodTypeAny, {
2016
- enabled: boolean;
2017
2016
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
2017
+ enabled: boolean;
2018
2018
  bigSpreadsheets: "workbench" | "preview";
2019
2019
  }, {
2020
- enabled: boolean;
2021
2020
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
2021
+ enabled: boolean;
2022
2022
  bigSpreadsheets: "workbench" | "preview";
2023
2023
  }>>;
2024
2024
  timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
@@ -2038,13 +2038,13 @@ 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
- id: string;
2042
2041
  kind: "app";
2043
- enabled: boolean;
2044
2042
  name: string;
2043
+ id: string;
2044
+ providerKey: string;
2045
+ enabled: boolean;
2045
2046
  variables: Record<string, unknown>;
2046
2047
  subscriptionId: string;
2047
- providerKey: string;
2048
2048
  eventTypes: string[];
2049
2049
  runsAs: "none" | "field";
2050
2050
  customerField: string;
@@ -2052,12 +2052,12 @@ export declare const botConfigurationSchema: z.ZodObject<{
2052
2052
  answerTo: "none" | "webhook";
2053
2053
  }, {
2054
2054
  label: string;
2055
- id: string;
2056
2055
  kind: "app";
2057
- enabled: boolean;
2058
2056
  name: string;
2059
- subscriptionId: string;
2057
+ id: string;
2060
2058
  providerKey: string;
2059
+ enabled: boolean;
2060
+ subscriptionId: string;
2061
2061
  eventTypes: string[];
2062
2062
  runsAs: "none" | "field";
2063
2063
  customerField: string;
@@ -2076,22 +2076,22 @@ 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
- id: string;
2080
2079
  kind: "webhook";
2081
2080
  tenantId: string;
2082
- enabled: boolean;
2083
2081
  name: string;
2082
+ id: string;
2083
+ enabled: boolean;
2084
2084
  variables: Record<string, unknown>;
2085
2085
  runsAs: "none" | "field";
2086
2086
  customerField: string;
2087
2087
  instruction: string;
2088
2088
  answerTo: "none" | "webhook";
2089
2089
  }, {
2090
- id: string;
2091
2090
  kind: "webhook";
2092
2091
  tenantId: string;
2093
- enabled: boolean;
2094
2092
  name: string;
2093
+ id: string;
2094
+ enabled: boolean;
2095
2095
  runsAs: "none" | "field";
2096
2096
  customerField: string;
2097
2097
  instruction: string;
@@ -2119,12 +2119,12 @@ 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;
2123
- kind: "schedule";
2124
2122
  date: string;
2123
+ kind: "schedule";
2125
2124
  tenantId: string;
2126
- enabled: boolean;
2127
2125
  name: string;
2126
+ id: string;
2127
+ enabled: boolean;
2128
2128
  variables: Record<string, unknown>;
2129
2129
  timezone: string;
2130
2130
  customerId: string;
@@ -2139,12 +2139,12 @@ 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;
2143
- kind: "schedule";
2144
2142
  date: string;
2143
+ kind: "schedule";
2145
2144
  tenantId: string;
2146
- enabled: boolean;
2147
2145
  name: string;
2146
+ id: string;
2147
+ enabled: boolean;
2148
2148
  timezone: string;
2149
2149
  customerId: string;
2150
2150
  days: number[];
@@ -2173,10 +2173,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
2173
2173
  effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
2174
2174
  }, "strict", z.ZodTypeAny, {
2175
2175
  id: string;
2176
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
2176
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
2177
2177
  }, {
2178
2178
  id: string;
2179
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
2179
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
2180
2180
  }>;
2181
2181
  instructions: z.ZodObject<{
2182
2182
  text: z.ZodString;
@@ -2236,21 +2236,21 @@ export declare const botConfigurationSchema: z.ZodObject<{
2236
2236
  name: z.ZodString;
2237
2237
  content: z.ZodString;
2238
2238
  }, "strict", z.ZodTypeAny, {
2239
- name: string;
2240
2239
  content: string;
2241
- }, {
2242
2240
  name: string;
2241
+ }, {
2243
2242
  content: string;
2243
+ name: string;
2244
2244
  }>, "many">>;
2245
2245
  }, "strict", z.ZodTypeAny, {
2246
- id: string;
2247
2246
  name: string;
2247
+ id: string;
2248
2248
  cases: {
2249
2249
  text: string;
2250
2250
  }[];
2251
2251
  files: {
2252
- name: string;
2253
2252
  content: string;
2253
+ name: string;
2254
2254
  }[];
2255
2255
  instructions: string;
2256
2256
  summary: string;
@@ -2269,8 +2269,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2269
2269
  check: "is one of" | "is" | "is not";
2270
2270
  }[];
2271
2271
  }, {
2272
- id: string;
2273
2272
  name: string;
2273
+ id: string;
2274
2274
  cases: {
2275
2275
  text: string;
2276
2276
  }[];
@@ -2290,8 +2290,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
2290
2290
  check: "is one of" | "is" | "is not";
2291
2291
  }[];
2292
2292
  files?: {
2293
- name: string;
2294
2293
  content: string;
2294
+ name: string;
2295
2295
  }[] | undefined;
2296
2296
  instructions?: string | undefined;
2297
2297
  }>, "many">;
@@ -2303,13 +2303,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
2303
2303
  company: z.ZodBoolean;
2304
2304
  bot: z.ZodBoolean;
2305
2305
  }, "strict", z.ZodTypeAny, {
2306
+ bot: boolean;
2306
2307
  customer: boolean;
2307
2308
  company: boolean;
2308
- bot: boolean;
2309
2309
  }, {
2310
+ bot: boolean;
2310
2311
  customer: boolean;
2311
2312
  company: boolean;
2312
- bot: boolean;
2313
2313
  }>;
2314
2314
  what: z.ZodString;
2315
2315
  never: z.ZodArray<z.ZodString, "many">;
@@ -2319,9 +2319,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
2319
2319
  enabled: boolean;
2320
2320
  configured: boolean;
2321
2321
  who: {
2322
+ bot: boolean;
2322
2323
  customer: boolean;
2323
2324
  company: boolean;
2324
- bot: boolean;
2325
2325
  };
2326
2326
  what: string;
2327
2327
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
@@ -2330,9 +2330,9 @@ export declare const botConfigurationSchema: z.ZodObject<{
2330
2330
  enabled: boolean;
2331
2331
  configured: boolean;
2332
2332
  who: {
2333
+ bot: boolean;
2333
2334
  customer: boolean;
2334
2335
  company: boolean;
2335
- bot: boolean;
2336
2336
  };
2337
2337
  what: string;
2338
2338
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
@@ -2346,20 +2346,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2346
2346
  files: z.ZodEnum<["per_customer", "per_run"]>;
2347
2347
  longestRun: z.ZodEnum<["1 minute", "3 minutes", "10 minutes"]>;
2348
2348
  }, "strict", z.ZodTypeAny, {
2349
+ access: "block" | "allow" | "ask";
2350
+ languages: string[];
2349
2351
  enabled: boolean;
2350
2352
  files: "per_customer" | "per_run";
2351
2353
  configured: boolean;
2352
2354
  size: "medium" | "large" | "small";
2353
- access: "allow" | "ask" | "block";
2354
- languages: string[];
2355
2355
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2356
2356
  }, {
2357
+ access: "block" | "allow" | "ask";
2358
+ languages: string[];
2357
2359
  enabled: boolean;
2358
2360
  files: "per_customer" | "per_run";
2359
2361
  configured: boolean;
2360
2362
  size: "medium" | "large" | "small";
2361
- access: "allow" | "ask" | "block";
2362
- languages: string[];
2363
2363
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
2364
2364
  }>;
2365
2365
  context: z.ZodObject<{
@@ -2400,98 +2400,98 @@ export declare const botConfigurationSchema: z.ZodObject<{
2400
2400
  key: z.ZodString;
2401
2401
  }, "strict", z.ZodTypeAny, {
2402
2402
  key: string;
2403
- source: "model" | "variable" | "context" | "identity";
2403
+ source: "model" | "context" | "variable" | "identity";
2404
2404
  path: string[];
2405
- target: "path" | "body" | "query" | "header";
2405
+ target: "path" | "query" | "body" | "header";
2406
2406
  }, {
2407
2407
  key: string;
2408
- source: "model" | "variable" | "context" | "identity";
2408
+ source: "model" | "context" | "variable" | "identity";
2409
2409
  path: string[];
2410
- target: "path" | "body" | "query" | "header";
2410
+ target: "path" | "query" | "body" | "header";
2411
2411
  }>, "many">>;
2412
2412
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2413
2413
  sample: z.ZodOptional<z.ZodUnknown>;
2414
2414
  }, "strict", z.ZodTypeAny, {
2415
2415
  path: string;
2416
- id: string;
2417
2416
  name: string;
2417
+ id: string;
2418
+ query: Record<string, string>;
2418
2419
  headers: Record<string, string>;
2419
2420
  body: string;
2420
- query: Record<string, string>;
2421
2421
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2422
2422
  bodyType: "json" | "form" | "xml" | "gql";
2423
- readAs: "auto" | "text" | "json" | "xml";
2423
+ readAs: "text" | "json" | "auto" | "xml";
2424
2424
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2425
2425
  summary: string;
2426
2426
  latencyMs: number | null;
2427
2427
  visibleFields: string[];
2428
2428
  effects: "read" | "write" | "unclassified";
2429
- permission: "allow" | "ask" | "block";
2429
+ permission: "block" | "allow" | "ask";
2430
2430
  bindings: {
2431
2431
  key: string;
2432
- source: "model" | "variable" | "context" | "identity";
2432
+ source: "model" | "context" | "variable" | "identity";
2433
2433
  path: string[];
2434
- target: "path" | "body" | "query" | "header";
2434
+ target: "path" | "query" | "body" | "header";
2435
2435
  }[];
2436
2436
  inputSchema?: Record<string, unknown> | undefined;
2437
2437
  sample?: unknown;
2438
2438
  responseSchema?: Record<string, unknown> | undefined;
2439
2439
  }, {
2440
2440
  path: string;
2441
- id: string;
2442
2441
  name: string;
2442
+ id: string;
2443
2443
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2444
2444
  bodyType: "json" | "form" | "xml" | "gql";
2445
- readAs: "auto" | "text" | "json" | "xml";
2445
+ readAs: "text" | "json" | "auto" | "xml";
2446
2446
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2447
2447
  summary: string;
2448
2448
  latencyMs: number | null;
2449
2449
  visibleFields: string[];
2450
2450
  effects: "read" | "write" | "unclassified";
2451
+ query?: Record<string, string> | undefined;
2451
2452
  inputSchema?: Record<string, unknown> | undefined;
2452
2453
  headers?: Record<string, string> | undefined;
2453
2454
  body?: string | undefined;
2454
2455
  sample?: unknown;
2455
- query?: Record<string, string> | undefined;
2456
- permission?: "allow" | "ask" | "block" | undefined;
2456
+ permission?: "block" | "allow" | "ask" | undefined;
2457
2457
  bindings?: {
2458
2458
  key: string;
2459
- source: "model" | "variable" | "context" | "identity";
2459
+ source: "model" | "context" | "variable" | "identity";
2460
2460
  path: string[];
2461
- target: "path" | "body" | "query" | "header";
2461
+ target: "path" | "query" | "body" | "header";
2462
2462
  }[] | undefined;
2463
2463
  responseSchema?: Record<string, unknown> | undefined;
2464
2464
  }>, "many">;
2465
2465
  }, "strict", z.ZodTypeAny, {
2466
2466
  calls: {
2467
2467
  path: string;
2468
- id: string;
2469
2468
  name: string;
2469
+ id: string;
2470
+ query: Record<string, string>;
2470
2471
  headers: Record<string, string>;
2471
2472
  body: string;
2472
- query: Record<string, string>;
2473
2473
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2474
2474
  bodyType: "json" | "form" | "xml" | "gql";
2475
- readAs: "auto" | "text" | "json" | "xml";
2475
+ readAs: "text" | "json" | "auto" | "xml";
2476
2476
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2477
2477
  summary: string;
2478
2478
  latencyMs: number | null;
2479
2479
  visibleFields: string[];
2480
2480
  effects: "read" | "write" | "unclassified";
2481
- permission: "allow" | "ask" | "block";
2481
+ permission: "block" | "allow" | "ask";
2482
2482
  bindings: {
2483
2483
  key: string;
2484
- source: "model" | "variable" | "context" | "identity";
2484
+ source: "model" | "context" | "variable" | "identity";
2485
2485
  path: string[];
2486
- target: "path" | "body" | "query" | "header";
2486
+ target: "path" | "query" | "body" | "header";
2487
2487
  }[];
2488
2488
  inputSchema?: Record<string, unknown> | undefined;
2489
2489
  sample?: unknown;
2490
2490
  responseSchema?: Record<string, unknown> | undefined;
2491
2491
  }[];
2492
- id: string;
2493
2492
  kind: "http" | "graphql" | "openapi";
2494
2493
  name: string;
2494
+ id: string;
2495
2495
  host: string;
2496
2496
  baseUrl: string;
2497
2497
  auth: "none" | "one" | "each" | "oauth";
@@ -2501,33 +2501,33 @@ export declare const botConfigurationSchema: z.ZodObject<{
2501
2501
  }, {
2502
2502
  calls: {
2503
2503
  path: string;
2504
- id: string;
2505
2504
  name: string;
2505
+ id: string;
2506
2506
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2507
2507
  bodyType: "json" | "form" | "xml" | "gql";
2508
- readAs: "auto" | "text" | "json" | "xml";
2508
+ readAs: "text" | "json" | "auto" | "xml";
2509
2509
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2510
2510
  summary: string;
2511
2511
  latencyMs: number | null;
2512
2512
  visibleFields: string[];
2513
2513
  effects: "read" | "write" | "unclassified";
2514
+ query?: Record<string, string> | undefined;
2514
2515
  inputSchema?: Record<string, unknown> | undefined;
2515
2516
  headers?: Record<string, string> | undefined;
2516
2517
  body?: string | undefined;
2517
2518
  sample?: unknown;
2518
- query?: Record<string, string> | undefined;
2519
- permission?: "allow" | "ask" | "block" | undefined;
2519
+ permission?: "block" | "allow" | "ask" | undefined;
2520
2520
  bindings?: {
2521
2521
  key: string;
2522
- source: "model" | "variable" | "context" | "identity";
2522
+ source: "model" | "context" | "variable" | "identity";
2523
2523
  path: string[];
2524
- target: "path" | "body" | "query" | "header";
2524
+ target: "path" | "query" | "body" | "header";
2525
2525
  }[] | undefined;
2526
2526
  responseSchema?: Record<string, unknown> | undefined;
2527
2527
  }[];
2528
- id: string;
2529
2528
  kind: "http" | "graphql" | "openapi";
2530
2529
  name: string;
2530
+ id: string;
2531
2531
  host: string;
2532
2532
  baseUrl: string;
2533
2533
  auth: "none" | "one" | "each" | "oauth";
@@ -2544,13 +2544,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
2544
2544
  change: z.ZodEnum<["allow", "ask", "block"]>;
2545
2545
  delete: z.ZodEnum<["allow", "ask", "block"]>;
2546
2546
  }, "strict", z.ZodTypeAny, {
2547
- read: "allow" | "ask" | "block";
2548
- change: "allow" | "ask" | "block";
2549
- delete: "allow" | "ask" | "block";
2547
+ read: "block" | "allow" | "ask";
2548
+ change: "block" | "allow" | "ask";
2549
+ delete: "block" | "allow" | "ask";
2550
2550
  }, {
2551
- read: "allow" | "ask" | "block";
2552
- change: "allow" | "ask" | "block";
2553
- delete: "allow" | "ask" | "block";
2551
+ read: "block" | "allow" | "ask";
2552
+ change: "block" | "allow" | "ask";
2553
+ delete: "block" | "allow" | "ask";
2554
2554
  }>;
2555
2555
  actionRules: z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "block"]>>;
2556
2556
  askWho: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["approvers", "customer", "customer-approvers"]>>>;
@@ -2559,11 +2559,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2559
2559
  key: string;
2560
2560
  account: "customer" | "deployment" | "project";
2561
2561
  rules: {
2562
- read: "allow" | "ask" | "block";
2563
- change: "allow" | "ask" | "block";
2564
- delete: "allow" | "ask" | "block";
2562
+ read: "block" | "allow" | "ask";
2563
+ change: "block" | "allow" | "ask";
2564
+ delete: "block" | "allow" | "ask";
2565
2565
  };
2566
- actionRules: Record<string, "allow" | "ask" | "block">;
2566
+ actionRules: Record<string, "block" | "allow" | "ask">;
2567
2567
  pinned: string[];
2568
2568
  accountId?: string | undefined;
2569
2569
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
@@ -2571,11 +2571,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2571
2571
  key: string;
2572
2572
  account: "customer" | "deployment" | "project";
2573
2573
  rules: {
2574
- read: "allow" | "ask" | "block";
2575
- change: "allow" | "ask" | "block";
2576
- delete: "allow" | "ask" | "block";
2574
+ read: "block" | "allow" | "ask";
2575
+ change: "block" | "allow" | "ask";
2576
+ delete: "block" | "allow" | "ask";
2577
2577
  };
2578
- actionRules: Record<string, "allow" | "ask" | "block">;
2578
+ actionRules: Record<string, "block" | "allow" | "ask">;
2579
2579
  pinned: string[];
2580
2580
  accountId?: string | undefined;
2581
2581
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
@@ -2609,20 +2609,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
2609
2609
  rule: z.ZodEnum<["allow", "ask", "block"]>;
2610
2610
  tools: z.ZodArray<z.ZodString, "many">;
2611
2611
  }, "strict", z.ZodTypeAny, {
2612
- tools: string[];
2613
2612
  name: "Read" | "Change" | "Delete";
2613
+ tools: string[];
2614
2614
  count: number;
2615
- rule: "allow" | "ask" | "block";
2615
+ rule: "block" | "allow" | "ask";
2616
2616
  }, {
2617
- tools: string[];
2618
2617
  name: "Read" | "Change" | "Delete";
2618
+ tools: string[];
2619
2619
  count: number;
2620
- rule: "allow" | "ask" | "block";
2620
+ rule: "block" | "allow" | "ask";
2621
2621
  }>, "many">;
2622
2622
  }, "strict", z.ZodTypeAny, {
2623
- id: string;
2624
2623
  status: "connecting" | "connected";
2625
2624
  name: string;
2625
+ id: string;
2626
2626
  url: string;
2627
2627
  toolCount: number;
2628
2628
  definitions: {
@@ -2632,23 +2632,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2632
2632
  outputSchema?: Record<string, unknown> | undefined;
2633
2633
  }[];
2634
2634
  groups: {
2635
- tools: string[];
2636
2635
  name: "Read" | "Change" | "Delete";
2636
+ tools: string[];
2637
2637
  count: number;
2638
- rule: "allow" | "ask" | "block";
2638
+ rule: "block" | "allow" | "ask";
2639
2639
  }[];
2640
2640
  credentialId?: string | undefined;
2641
2641
  }, {
2642
- id: string;
2643
2642
  status: "connecting" | "connected";
2644
2643
  name: string;
2644
+ id: string;
2645
2645
  url: string;
2646
2646
  toolCount: number;
2647
2647
  groups: {
2648
- tools: string[];
2649
2648
  name: "Read" | "Change" | "Delete";
2649
+ tools: string[];
2650
2650
  count: number;
2651
- rule: "allow" | "ask" | "block";
2651
+ rule: "block" | "allow" | "ask";
2652
2652
  }[];
2653
2653
  credentialId?: string | undefined;
2654
2654
  definitions?: {
@@ -2666,11 +2666,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
2666
2666
  accountId: z.ZodString;
2667
2667
  resourceId: z.ZodString;
2668
2668
  }, "strict", z.ZodTypeAny, {
2669
- accountId: string;
2670
2669
  resourceId: string;
2671
- }, {
2672
2670
  accountId: string;
2671
+ }, {
2673
2672
  resourceId: string;
2673
+ accountId: string;
2674
2674
  }>>;
2675
2675
  name: z.ZodString;
2676
2676
  detail: z.ZodString;
@@ -2705,23 +2705,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2705
2705
  }>>;
2706
2706
  syncedLabel: z.ZodString;
2707
2707
  }, "strict", z.ZodTypeAny, {
2708
- id: string;
2709
2708
  status: "failed" | "ready" | "syncing";
2710
2709
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2711
2710
  name: string;
2711
+ id: string;
2712
2712
  scope: "customer" | "project";
2713
2713
  detail: string;
2714
2714
  syncedLabel: string;
2715
+ url?: string | undefined;
2716
+ connectedSource?: {
2717
+ resourceId: string;
2718
+ accountId: string;
2719
+ } | undefined;
2715
2720
  error?: string | undefined;
2716
2721
  pages?: {
2717
2722
  total: number;
2718
2723
  done: number;
2719
2724
  } | undefined;
2720
- url?: string | undefined;
2721
- connectedSource?: {
2722
- accountId: string;
2723
- resourceId: string;
2724
- } | undefined;
2725
2725
  progress?: {
2726
2726
  total: number;
2727
2727
  done: number;
@@ -2729,23 +2729,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2729
2729
  retryable: boolean;
2730
2730
  } | undefined;
2731
2731
  }, {
2732
- id: string;
2733
2732
  status: "failed" | "ready" | "syncing";
2734
2733
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2735
2734
  name: string;
2735
+ id: string;
2736
2736
  detail: string;
2737
2737
  syncedLabel: string;
2738
+ url?: string | undefined;
2739
+ connectedSource?: {
2740
+ resourceId: string;
2741
+ accountId: string;
2742
+ } | undefined;
2738
2743
  error?: string | undefined;
2739
2744
  scope?: "customer" | "project" | undefined;
2740
2745
  pages?: {
2741
2746
  total: number;
2742
2747
  done: number;
2743
2748
  } | undefined;
2744
- url?: string | undefined;
2745
- connectedSource?: {
2746
- accountId: string;
2747
- resourceId: string;
2748
- } | undefined;
2749
2749
  progress?: {
2750
2750
  total: number;
2751
2751
  done: number;
@@ -2768,23 +2768,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2768
2768
  }>;
2769
2769
  }, "strict", z.ZodTypeAny, {
2770
2770
  knowledge: {
2771
- id: string;
2772
2771
  status: "failed" | "ready" | "syncing";
2773
2772
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2774
2773
  name: string;
2774
+ id: string;
2775
2775
  scope: "customer" | "project";
2776
2776
  detail: string;
2777
2777
  syncedLabel: string;
2778
+ url?: string | undefined;
2779
+ connectedSource?: {
2780
+ resourceId: string;
2781
+ accountId: string;
2782
+ } | undefined;
2778
2783
  error?: string | undefined;
2779
2784
  pages?: {
2780
2785
  total: number;
2781
2786
  done: number;
2782
2787
  } | undefined;
2783
- url?: string | undefined;
2784
- connectedSource?: {
2785
- accountId: string;
2786
- resourceId: string;
2787
- } | undefined;
2788
2788
  progress?: {
2789
2789
  total: number;
2790
2790
  done: number;
@@ -2798,33 +2798,33 @@ export declare const botConfigurationSchema: z.ZodObject<{
2798
2798
  apis: {
2799
2799
  calls: {
2800
2800
  path: string;
2801
- id: string;
2802
2801
  name: string;
2802
+ id: string;
2803
+ query: Record<string, string>;
2803
2804
  headers: Record<string, string>;
2804
2805
  body: string;
2805
- query: Record<string, string>;
2806
2806
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2807
2807
  bodyType: "json" | "form" | "xml" | "gql";
2808
- readAs: "auto" | "text" | "json" | "xml";
2808
+ readAs: "text" | "json" | "auto" | "xml";
2809
2809
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2810
2810
  summary: string;
2811
2811
  latencyMs: number | null;
2812
2812
  visibleFields: string[];
2813
2813
  effects: "read" | "write" | "unclassified";
2814
- permission: "allow" | "ask" | "block";
2814
+ permission: "block" | "allow" | "ask";
2815
2815
  bindings: {
2816
2816
  key: string;
2817
- source: "model" | "variable" | "context" | "identity";
2817
+ source: "model" | "context" | "variable" | "identity";
2818
2818
  path: string[];
2819
- target: "path" | "body" | "query" | "header";
2819
+ target: "path" | "query" | "body" | "header";
2820
2820
  }[];
2821
2821
  inputSchema?: Record<string, unknown> | undefined;
2822
2822
  sample?: unknown;
2823
2823
  responseSchema?: Record<string, unknown> | undefined;
2824
2824
  }[];
2825
- id: string;
2826
2825
  kind: "http" | "graphql" | "openapi";
2827
2826
  name: string;
2827
+ id: string;
2828
2828
  host: string;
2829
2829
  baseUrl: string;
2830
2830
  auth: "none" | "one" | "each" | "oauth";
@@ -2836,19 +2836,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
2836
2836
  key: string;
2837
2837
  account: "customer" | "deployment" | "project";
2838
2838
  rules: {
2839
- read: "allow" | "ask" | "block";
2840
- change: "allow" | "ask" | "block";
2841
- delete: "allow" | "ask" | "block";
2839
+ read: "block" | "allow" | "ask";
2840
+ change: "block" | "allow" | "ask";
2841
+ delete: "block" | "allow" | "ask";
2842
2842
  };
2843
- actionRules: Record<string, "allow" | "ask" | "block">;
2843
+ actionRules: Record<string, "block" | "allow" | "ask">;
2844
2844
  pinned: string[];
2845
2845
  accountId?: string | undefined;
2846
2846
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
2847
2847
  }[];
2848
2848
  mcpServers: {
2849
- id: string;
2850
2849
  status: "connecting" | "connected";
2851
2850
  name: string;
2851
+ id: string;
2852
2852
  url: string;
2853
2853
  toolCount: number;
2854
2854
  definitions: {
@@ -2858,10 +2858,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
2858
2858
  outputSchema?: Record<string, unknown> | undefined;
2859
2859
  }[];
2860
2860
  groups: {
2861
- tools: string[];
2862
2861
  name: "Read" | "Change" | "Delete";
2862
+ tools: string[];
2863
2863
  count: number;
2864
- rule: "allow" | "ask" | "block";
2864
+ rule: "block" | "allow" | "ask";
2865
2865
  }[];
2866
2866
  credentialId?: string | undefined;
2867
2867
  }[];
@@ -2872,23 +2872,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
2872
2872
  };
2873
2873
  }, {
2874
2874
  knowledge: {
2875
- id: string;
2876
2875
  status: "failed" | "ready" | "syncing";
2877
2876
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
2878
2877
  name: string;
2878
+ id: string;
2879
2879
  detail: string;
2880
2880
  syncedLabel: string;
2881
+ url?: string | undefined;
2882
+ connectedSource?: {
2883
+ resourceId: string;
2884
+ accountId: string;
2885
+ } | undefined;
2881
2886
  error?: string | undefined;
2882
2887
  scope?: "customer" | "project" | undefined;
2883
2888
  pages?: {
2884
2889
  total: number;
2885
2890
  done: number;
2886
2891
  } | undefined;
2887
- url?: string | undefined;
2888
- connectedSource?: {
2889
- accountId: string;
2890
- resourceId: string;
2891
- } | undefined;
2892
2892
  progress?: {
2893
2893
  total: number;
2894
2894
  done: number;
@@ -2899,33 +2899,33 @@ export declare const botConfigurationSchema: z.ZodObject<{
2899
2899
  apis: {
2900
2900
  calls: {
2901
2901
  path: string;
2902
- id: string;
2903
2902
  name: string;
2903
+ id: string;
2904
2904
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2905
2905
  bodyType: "json" | "form" | "xml" | "gql";
2906
- readAs: "auto" | "text" | "json" | "xml";
2906
+ readAs: "text" | "json" | "auto" | "xml";
2907
2907
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
2908
2908
  summary: string;
2909
2909
  latencyMs: number | null;
2910
2910
  visibleFields: string[];
2911
2911
  effects: "read" | "write" | "unclassified";
2912
+ query?: Record<string, string> | undefined;
2912
2913
  inputSchema?: Record<string, unknown> | undefined;
2913
2914
  headers?: Record<string, string> | undefined;
2914
2915
  body?: string | undefined;
2915
2916
  sample?: unknown;
2916
- query?: Record<string, string> | undefined;
2917
- permission?: "allow" | "ask" | "block" | undefined;
2917
+ permission?: "block" | "allow" | "ask" | undefined;
2918
2918
  bindings?: {
2919
2919
  key: string;
2920
- source: "model" | "variable" | "context" | "identity";
2920
+ source: "model" | "context" | "variable" | "identity";
2921
2921
  path: string[];
2922
- target: "path" | "body" | "query" | "header";
2922
+ target: "path" | "query" | "body" | "header";
2923
2923
  }[] | undefined;
2924
2924
  responseSchema?: Record<string, unknown> | undefined;
2925
2925
  }[];
2926
- id: string;
2927
2926
  kind: "http" | "graphql" | "openapi";
2928
2927
  name: string;
2928
+ id: string;
2929
2929
  host: string;
2930
2930
  baseUrl: string;
2931
2931
  auth: "none" | "one" | "each" | "oauth";
@@ -2937,26 +2937,26 @@ export declare const botConfigurationSchema: z.ZodObject<{
2937
2937
  key: string;
2938
2938
  account: "customer" | "deployment" | "project";
2939
2939
  rules: {
2940
- read: "allow" | "ask" | "block";
2941
- change: "allow" | "ask" | "block";
2942
- delete: "allow" | "ask" | "block";
2940
+ read: "block" | "allow" | "ask";
2941
+ change: "block" | "allow" | "ask";
2942
+ delete: "block" | "allow" | "ask";
2943
2943
  };
2944
- actionRules: Record<string, "allow" | "ask" | "block">;
2944
+ actionRules: Record<string, "block" | "allow" | "ask">;
2945
2945
  pinned: string[];
2946
2946
  accountId?: string | undefined;
2947
2947
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
2948
2948
  }[];
2949
2949
  mcpServers: {
2950
- id: string;
2951
2950
  status: "connecting" | "connected";
2952
2951
  name: string;
2952
+ id: string;
2953
2953
  url: string;
2954
2954
  toolCount: number;
2955
2955
  groups: {
2956
- tools: string[];
2957
2956
  name: "Read" | "Change" | "Delete";
2957
+ tools: string[];
2958
2958
  count: number;
2959
- rule: "allow" | "ask" | "block";
2959
+ rule: "block" | "allow" | "ask";
2960
2960
  }[];
2961
2961
  credentialId?: string | undefined;
2962
2962
  definitions?: {
@@ -3018,19 +3018,19 @@ 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" | "text" | "date" | "enum" | "list" | "bool" | "group";
3022
- id: string;
3021
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3023
3022
  required: boolean;
3024
3023
  name: string;
3024
+ id: string;
3025
3025
  level: number;
3026
3026
  values?: string[] | undefined;
3027
3027
  items?: Record<string, unknown> | undefined;
3028
3028
  }, {
3029
3029
  description: string;
3030
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
3031
- id: string;
3030
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3032
3031
  required: boolean;
3033
3032
  name: string;
3033
+ id: string;
3034
3034
  level: number;
3035
3035
  values?: string[] | undefined;
3036
3036
  items?: Record<string, unknown> | undefined;
@@ -3039,10 +3039,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
3039
3039
  }, "strict", z.ZodTypeAny, {
3040
3040
  shape: {
3041
3041
  description: string;
3042
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
3043
- id: string;
3042
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3044
3043
  required: boolean;
3045
3044
  name: string;
3045
+ id: string;
3046
3046
  level: number;
3047
3047
  values?: string[] | undefined;
3048
3048
  items?: Record<string, unknown> | undefined;
@@ -3054,10 +3054,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
3054
3054
  }, {
3055
3055
  shape: {
3056
3056
  description: string;
3057
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
3058
- id: string;
3057
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3059
3058
  required: boolean;
3060
3059
  name: string;
3060
+ id: string;
3061
3061
  level: number;
3062
3062
  values?: string[] | undefined;
3063
3063
  items?: Record<string, unknown> | undefined;
@@ -3080,35 +3080,35 @@ export declare const botConfigurationSchema: z.ZodObject<{
3080
3080
  path: z.ZodArray<z.ZodString, "many">;
3081
3081
  target: z.ZodArray<z.ZodString, "many">;
3082
3082
  }, "strict", z.ZodTypeAny, {
3083
- source: "message" | "variable" | "context";
3083
+ source: "message" | "context" | "variable";
3084
3084
  path: string[];
3085
3085
  target: string[];
3086
3086
  }, {
3087
- source: "message" | "variable" | "context";
3087
+ source: "message" | "context" | "variable";
3088
3088
  path: string[];
3089
3089
  target: string[];
3090
3090
  }>, "many">;
3091
3091
  }, "strict", z.ZodTypeAny, {
3092
- id: string;
3093
3092
  kind: "workbench" | "mcp" | "app";
3094
3093
  name: string;
3094
+ id: string;
3095
3095
  input: Record<string, unknown>;
3096
3096
  toolKey: string;
3097
3097
  capabilityId: string;
3098
3098
  bindings: {
3099
- source: "message" | "variable" | "context";
3099
+ source: "message" | "context" | "variable";
3100
3100
  path: string[];
3101
3101
  target: string[];
3102
3102
  }[];
3103
3103
  }, {
3104
- id: string;
3105
3104
  kind: "workbench" | "mcp" | "app";
3106
3105
  name: string;
3106
+ id: string;
3107
3107
  input: Record<string, unknown>;
3108
3108
  toolKey: string;
3109
3109
  capabilityId: string;
3110
3110
  bindings: {
3111
- source: "message" | "variable" | "context";
3111
+ source: "message" | "context" | "variable";
3112
3112
  path: string[];
3113
3113
  target: string[];
3114
3114
  }[];
@@ -3119,18 +3119,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
3119
3119
  stopOnFail: z.ZodArray<z.ZodString, "many">;
3120
3120
  stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
3121
3121
  }, "strict", z.ZodTypeAny, {
3122
- off: string[];
3123
3122
  before: string[];
3124
3123
  after: string[];
3124
+ off: string[];
3125
3125
  preparations: {
3126
- id: string;
3127
3126
  kind: "workbench" | "mcp" | "app";
3128
3127
  name: string;
3128
+ id: string;
3129
3129
  input: Record<string, unknown>;
3130
3130
  toolKey: string;
3131
3131
  capabilityId: string;
3132
3132
  bindings: {
3133
- source: "message" | "variable" | "context";
3133
+ source: "message" | "context" | "variable";
3134
3134
  path: string[];
3135
3135
  target: string[];
3136
3136
  }[];
@@ -3138,20 +3138,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
3138
3138
  stopOnFail: string[];
3139
3139
  stepLimit: number;
3140
3140
  }, {
3141
- off: string[];
3142
3141
  before: string[];
3143
3142
  after: string[];
3143
+ off: string[];
3144
3144
  stopOnFail: string[];
3145
3145
  stepLimit: number | null;
3146
3146
  preparations?: {
3147
- id: string;
3148
3147
  kind: "workbench" | "mcp" | "app";
3149
3148
  name: string;
3149
+ id: string;
3150
3150
  input: Record<string, unknown>;
3151
3151
  toolKey: string;
3152
3152
  capabilityId: string;
3153
3153
  bindings: {
3154
- source: "message" | "variable" | "context";
3154
+ source: "message" | "context" | "variable";
3155
3155
  path: string[];
3156
3156
  target: string[];
3157
3157
  }[];
@@ -3163,65 +3163,46 @@ export declare const botConfigurationSchema: z.ZodObject<{
3163
3163
  enabled: boolean;
3164
3164
  configured: boolean;
3165
3165
  who: {
3166
+ bot: boolean;
3166
3167
  customer: boolean;
3167
3168
  company: boolean;
3168
- bot: boolean;
3169
3169
  };
3170
3170
  what: string;
3171
3171
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
3172
3172
  };
3173
3173
  model: {
3174
3174
  id: string;
3175
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3175
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
3176
3176
  };
3177
3177
  workbench: {
3178
+ access: "block" | "allow" | "ask";
3179
+ languages: string[];
3178
3180
  enabled: boolean;
3179
3181
  files: "per_customer" | "per_run";
3180
3182
  configured: boolean;
3181
3183
  size: "medium" | "large" | "small";
3182
- access: "allow" | "ask" | "block";
3183
- languages: string[];
3184
3184
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
3185
3185
  };
3186
3186
  name: string;
3187
- variables: {
3188
- description: string;
3189
- type: "Text" | "Number" | "Yes or no" | "One of…";
3190
- required: boolean;
3191
- name: string;
3192
- defaultValue: string;
3193
- usedIn: ("api" | "instructions" | "run_plan")[];
3194
- chipNote: string;
3195
- values?: string[] | undefined;
3196
- }[];
3197
- files: {
3198
- enabled: boolean;
3199
- kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3200
- bigSpreadsheets: "workbench" | "preview";
3201
- };
3202
- instructions: {
3203
- text: string;
3204
- editedAt: string | null;
3205
- };
3206
3187
  context: {
3207
3188
  knowledge: {
3208
- id: string;
3209
3189
  status: "failed" | "ready" | "syncing";
3210
3190
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3211
3191
  name: string;
3192
+ id: string;
3212
3193
  scope: "customer" | "project";
3213
3194
  detail: string;
3214
3195
  syncedLabel: string;
3196
+ url?: string | undefined;
3197
+ connectedSource?: {
3198
+ resourceId: string;
3199
+ accountId: string;
3200
+ } | undefined;
3215
3201
  error?: string | undefined;
3216
3202
  pages?: {
3217
3203
  total: number;
3218
3204
  done: number;
3219
3205
  } | undefined;
3220
- url?: string | undefined;
3221
- connectedSource?: {
3222
- accountId: string;
3223
- resourceId: string;
3224
- } | undefined;
3225
3206
  progress?: {
3226
3207
  total: number;
3227
3208
  done: number;
@@ -3235,33 +3216,33 @@ export declare const botConfigurationSchema: z.ZodObject<{
3235
3216
  apis: {
3236
3217
  calls: {
3237
3218
  path: string;
3238
- id: string;
3239
3219
  name: string;
3220
+ id: string;
3221
+ query: Record<string, string>;
3240
3222
  headers: Record<string, string>;
3241
3223
  body: string;
3242
- query: Record<string, string>;
3243
3224
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3244
3225
  bodyType: "json" | "form" | "xml" | "gql";
3245
- readAs: "auto" | "text" | "json" | "xml";
3226
+ readAs: "text" | "json" | "auto" | "xml";
3246
3227
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3247
3228
  summary: string;
3248
3229
  latencyMs: number | null;
3249
3230
  visibleFields: string[];
3250
3231
  effects: "read" | "write" | "unclassified";
3251
- permission: "allow" | "ask" | "block";
3232
+ permission: "block" | "allow" | "ask";
3252
3233
  bindings: {
3253
3234
  key: string;
3254
- source: "model" | "variable" | "context" | "identity";
3235
+ source: "model" | "context" | "variable" | "identity";
3255
3236
  path: string[];
3256
- target: "path" | "body" | "query" | "header";
3237
+ target: "path" | "query" | "body" | "header";
3257
3238
  }[];
3258
3239
  inputSchema?: Record<string, unknown> | undefined;
3259
3240
  sample?: unknown;
3260
3241
  responseSchema?: Record<string, unknown> | undefined;
3261
3242
  }[];
3262
- id: string;
3263
3243
  kind: "http" | "graphql" | "openapi";
3264
3244
  name: string;
3245
+ id: string;
3265
3246
  host: string;
3266
3247
  baseUrl: string;
3267
3248
  auth: "none" | "one" | "each" | "oauth";
@@ -3273,19 +3254,19 @@ export declare const botConfigurationSchema: z.ZodObject<{
3273
3254
  key: string;
3274
3255
  account: "customer" | "deployment" | "project";
3275
3256
  rules: {
3276
- read: "allow" | "ask" | "block";
3277
- change: "allow" | "ask" | "block";
3278
- delete: "allow" | "ask" | "block";
3257
+ read: "block" | "allow" | "ask";
3258
+ change: "block" | "allow" | "ask";
3259
+ delete: "block" | "allow" | "ask";
3279
3260
  };
3280
- actionRules: Record<string, "allow" | "ask" | "block">;
3261
+ actionRules: Record<string, "block" | "allow" | "ask">;
3281
3262
  pinned: string[];
3282
3263
  accountId?: string | undefined;
3283
3264
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
3284
3265
  }[];
3285
3266
  mcpServers: {
3286
- id: string;
3287
3267
  status: "connecting" | "connected";
3288
3268
  name: string;
3269
+ id: string;
3289
3270
  url: string;
3290
3271
  toolCount: number;
3291
3272
  definitions: {
@@ -3295,10 +3276,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
3295
3276
  outputSchema?: Record<string, unknown> | undefined;
3296
3277
  }[];
3297
3278
  groups: {
3298
- tools: string[];
3299
3279
  name: "Read" | "Change" | "Delete";
3280
+ tools: string[];
3300
3281
  count: number;
3301
- rule: "allow" | "ask" | "block";
3282
+ rule: "block" | "allow" | "ask";
3302
3283
  }[];
3303
3284
  credentialId?: string | undefined;
3304
3285
  }[];
@@ -3308,17 +3289,36 @@ export declare const botConfigurationSchema: z.ZodObject<{
3308
3289
  preferSites: string[];
3309
3290
  };
3310
3291
  };
3292
+ variables: {
3293
+ description: string;
3294
+ type: "Text" | "Number" | "Yes or no" | "One of…";
3295
+ required: boolean;
3296
+ name: string;
3297
+ defaultValue: string;
3298
+ usedIn: ("api" | "instructions" | "run_plan")[];
3299
+ chipNote: string;
3300
+ values?: string[] | undefined;
3301
+ }[];
3302
+ files: {
3303
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3304
+ enabled: boolean;
3305
+ bigSpreadsheets: "workbench" | "preview";
3306
+ };
3307
+ instructions: {
3308
+ text: string;
3309
+ editedAt: string | null;
3310
+ };
3311
3311
  publicDescription: string;
3312
3312
  iconAssetId: string | null;
3313
3313
  skills: {
3314
- id: string;
3315
3314
  name: string;
3315
+ id: string;
3316
3316
  cases: {
3317
3317
  text: string;
3318
3318
  }[];
3319
3319
  files: {
3320
- name: string;
3321
3320
  content: string;
3321
+ name: string;
3322
3322
  }[];
3323
3323
  instructions: string;
3324
3324
  summary: string;
@@ -3340,10 +3340,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
3340
3340
  answer: {
3341
3341
  shape: {
3342
3342
  description: string;
3343
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
3344
- id: string;
3343
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3345
3344
  required: boolean;
3346
3345
  name: string;
3346
+ id: string;
3347
3347
  level: number;
3348
3348
  values?: string[] | undefined;
3349
3349
  items?: Record<string, unknown> | undefined;
@@ -3354,18 +3354,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
3354
3354
  schema?: Record<string, unknown> | undefined;
3355
3355
  };
3356
3356
  runPlan: {
3357
- off: string[];
3358
3357
  before: string[];
3359
3358
  after: string[];
3359
+ off: string[];
3360
3360
  preparations: {
3361
- id: string;
3362
3361
  kind: "workbench" | "mcp" | "app";
3363
3362
  name: string;
3363
+ id: string;
3364
3364
  input: Record<string, unknown>;
3365
3365
  toolKey: string;
3366
3366
  capabilityId: string;
3367
3367
  bindings: {
3368
- source: "message" | "variable" | "context";
3368
+ source: "message" | "context" | "variable";
3369
3369
  path: string[];
3370
3370
  target: string[];
3371
3371
  }[];
@@ -3375,24 +3375,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
3375
3375
  };
3376
3376
  triggers: ({
3377
3377
  label: string;
3378
- id: string;
3379
3378
  kind: "app";
3380
- enabled: boolean;
3381
3379
  name: string;
3380
+ id: string;
3381
+ providerKey: string;
3382
+ enabled: boolean;
3382
3383
  variables: Record<string, unknown>;
3383
3384
  subscriptionId: string;
3384
- providerKey: string;
3385
3385
  eventTypes: string[];
3386
3386
  runsAs: "none" | "field";
3387
3387
  customerField: string;
3388
3388
  instruction: string;
3389
3389
  answerTo: "none" | "webhook";
3390
3390
  } | {
3391
- id: string;
3392
3391
  kind: "webhook";
3393
3392
  tenantId: string;
3394
- enabled: boolean;
3395
3393
  name: string;
3394
+ id: string;
3395
+ enabled: boolean;
3396
3396
  variables: Record<string, unknown>;
3397
3397
  runsAs: "none" | "field";
3398
3398
  customerField: string;
@@ -3400,12 +3400,12 @@ 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;
3404
- kind: "schedule";
3405
3403
  date: string;
3404
+ kind: "schedule";
3406
3405
  tenantId: string;
3407
- enabled: boolean;
3408
3406
  name: string;
3407
+ id: string;
3408
+ enabled: boolean;
3409
3409
  variables: Record<string, unknown>;
3410
3410
  timezone: string;
3411
3411
  customerId: string;
@@ -3428,7 +3428,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
3428
3428
  version: 1;
3429
3429
  style: "clay" | "pebble" | "shapes" | "letters";
3430
3430
  seed: string;
3431
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3431
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
3432
3432
  } | null | undefined;
3433
3433
  }, {
3434
3434
  memory: {
@@ -3436,60 +3436,46 @@ export declare const botConfigurationSchema: z.ZodObject<{
3436
3436
  enabled: boolean;
3437
3437
  configured: boolean;
3438
3438
  who: {
3439
+ bot: boolean;
3439
3440
  customer: boolean;
3440
3441
  company: boolean;
3441
- bot: boolean;
3442
3442
  };
3443
3443
  what: string;
3444
3444
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
3445
3445
  };
3446
3446
  model: {
3447
3447
  id: string;
3448
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3448
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
3449
3449
  };
3450
3450
  workbench: {
3451
+ access: "block" | "allow" | "ask";
3452
+ languages: string[];
3451
3453
  enabled: boolean;
3452
3454
  files: "per_customer" | "per_run";
3453
3455
  configured: boolean;
3454
3456
  size: "medium" | "large" | "small";
3455
- access: "allow" | "ask" | "block";
3456
- languages: string[];
3457
3457
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
3458
3458
  };
3459
3459
  name: string;
3460
- variables: {
3461
- description: string;
3462
- type: "Text" | "Number" | "Yes or no" | "One of…";
3463
- required: boolean;
3464
- name: string;
3465
- defaultValue: string;
3466
- usedIn: ("api" | "instructions" | "run_plan")[];
3467
- chipNote: string;
3468
- values?: string[] | undefined;
3469
- }[];
3470
- instructions: {
3471
- text: string;
3472
- editedAt: string | null;
3473
- };
3474
3460
  context: {
3475
3461
  knowledge: {
3476
- id: string;
3477
3462
  status: "failed" | "ready" | "syncing";
3478
3463
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
3479
3464
  name: string;
3465
+ id: string;
3480
3466
  detail: string;
3481
3467
  syncedLabel: string;
3468
+ url?: string | undefined;
3469
+ connectedSource?: {
3470
+ resourceId: string;
3471
+ accountId: string;
3472
+ } | undefined;
3482
3473
  error?: string | undefined;
3483
3474
  scope?: "customer" | "project" | undefined;
3484
3475
  pages?: {
3485
3476
  total: number;
3486
3477
  done: number;
3487
3478
  } | undefined;
3488
- url?: string | undefined;
3489
- connectedSource?: {
3490
- accountId: string;
3491
- resourceId: string;
3492
- } | undefined;
3493
3479
  progress?: {
3494
3480
  total: number;
3495
3481
  done: number;
@@ -3500,33 +3486,33 @@ export declare const botConfigurationSchema: z.ZodObject<{
3500
3486
  apis: {
3501
3487
  calls: {
3502
3488
  path: string;
3503
- id: string;
3504
3489
  name: string;
3490
+ id: string;
3505
3491
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3506
3492
  bodyType: "json" | "form" | "xml" | "gql";
3507
- readAs: "auto" | "text" | "json" | "xml";
3493
+ readAs: "text" | "json" | "auto" | "xml";
3508
3494
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
3509
3495
  summary: string;
3510
3496
  latencyMs: number | null;
3511
3497
  visibleFields: string[];
3512
3498
  effects: "read" | "write" | "unclassified";
3499
+ query?: Record<string, string> | undefined;
3513
3500
  inputSchema?: Record<string, unknown> | undefined;
3514
3501
  headers?: Record<string, string> | undefined;
3515
3502
  body?: string | undefined;
3516
3503
  sample?: unknown;
3517
- query?: Record<string, string> | undefined;
3518
- permission?: "allow" | "ask" | "block" | undefined;
3504
+ permission?: "block" | "allow" | "ask" | undefined;
3519
3505
  bindings?: {
3520
3506
  key: string;
3521
- source: "model" | "variable" | "context" | "identity";
3507
+ source: "model" | "context" | "variable" | "identity";
3522
3508
  path: string[];
3523
- target: "path" | "body" | "query" | "header";
3509
+ target: "path" | "query" | "body" | "header";
3524
3510
  }[] | undefined;
3525
3511
  responseSchema?: Record<string, unknown> | undefined;
3526
3512
  }[];
3527
- id: string;
3528
3513
  kind: "http" | "graphql" | "openapi";
3529
3514
  name: string;
3515
+ id: string;
3530
3516
  host: string;
3531
3517
  baseUrl: string;
3532
3518
  auth: "none" | "one" | "each" | "oauth";
@@ -3538,26 +3524,26 @@ export declare const botConfigurationSchema: z.ZodObject<{
3538
3524
  key: string;
3539
3525
  account: "customer" | "deployment" | "project";
3540
3526
  rules: {
3541
- read: "allow" | "ask" | "block";
3542
- change: "allow" | "ask" | "block";
3543
- delete: "allow" | "ask" | "block";
3527
+ read: "block" | "allow" | "ask";
3528
+ change: "block" | "allow" | "ask";
3529
+ delete: "block" | "allow" | "ask";
3544
3530
  };
3545
- actionRules: Record<string, "allow" | "ask" | "block">;
3531
+ actionRules: Record<string, "block" | "allow" | "ask">;
3546
3532
  pinned: string[];
3547
3533
  accountId?: string | undefined;
3548
3534
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
3549
3535
  }[];
3550
3536
  mcpServers: {
3551
- id: string;
3552
3537
  status: "connecting" | "connected";
3553
3538
  name: string;
3539
+ id: string;
3554
3540
  url: string;
3555
3541
  toolCount: number;
3556
3542
  groups: {
3557
- tools: string[];
3558
3543
  name: "Read" | "Change" | "Delete";
3544
+ tools: string[];
3559
3545
  count: number;
3560
- rule: "allow" | "ask" | "block";
3546
+ rule: "block" | "allow" | "ask";
3561
3547
  }[];
3562
3548
  credentialId?: string | undefined;
3563
3549
  definitions?: {
@@ -3576,9 +3562,23 @@ export declare const botConfigurationSchema: z.ZodObject<{
3576
3562
  searchPastChats?: boolean | undefined;
3577
3563
  conversationRetentionDays?: number | undefined;
3578
3564
  };
3565
+ variables: {
3566
+ description: string;
3567
+ type: "Text" | "Number" | "Yes or no" | "One of…";
3568
+ required: boolean;
3569
+ name: string;
3570
+ defaultValue: string;
3571
+ usedIn: ("api" | "instructions" | "run_plan")[];
3572
+ chipNote: string;
3573
+ values?: string[] | undefined;
3574
+ }[];
3575
+ instructions: {
3576
+ text: string;
3577
+ editedAt: string | null;
3578
+ };
3579
3579
  skills: {
3580
- id: string;
3581
3580
  name: string;
3581
+ id: string;
3582
3582
  cases: {
3583
3583
  text: string;
3584
3584
  }[];
@@ -3598,18 +3598,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
3598
3598
  check: "is one of" | "is" | "is not";
3599
3599
  }[];
3600
3600
  files?: {
3601
- name: string;
3602
3601
  content: string;
3602
+ name: string;
3603
3603
  }[] | undefined;
3604
3604
  instructions?: string | undefined;
3605
3605
  }[];
3606
3606
  answer: {
3607
3607
  shape: {
3608
3608
  description: string;
3609
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
3610
- id: string;
3609
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
3611
3610
  required: boolean;
3612
3611
  name: string;
3612
+ id: string;
3613
3613
  level: number;
3614
3614
  values?: string[] | undefined;
3615
3615
  items?: Record<string, unknown> | undefined;
@@ -3620,20 +3620,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
3620
3620
  schema?: Record<string, unknown> | undefined;
3621
3621
  };
3622
3622
  runPlan: {
3623
- off: string[];
3624
3623
  before: string[];
3625
3624
  after: string[];
3625
+ off: string[];
3626
3626
  stopOnFail: string[];
3627
3627
  stepLimit: number | null;
3628
3628
  preparations?: {
3629
- id: string;
3630
3629
  kind: "workbench" | "mcp" | "app";
3631
3630
  name: string;
3631
+ id: string;
3632
3632
  input: Record<string, unknown>;
3633
3633
  toolKey: string;
3634
3634
  capabilityId: string;
3635
3635
  bindings: {
3636
- source: "message" | "variable" | "context";
3636
+ source: "message" | "context" | "variable";
3637
3637
  path: string[];
3638
3638
  target: string[];
3639
3639
  }[];
@@ -3641,8 +3641,8 @@ export declare const botConfigurationSchema: z.ZodObject<{
3641
3641
  };
3642
3642
  timezone?: string | null | undefined;
3643
3643
  files?: {
3644
- enabled: boolean;
3645
3644
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3645
+ enabled: boolean;
3646
3646
  bigSpreadsheets: "workbench" | "preview";
3647
3647
  } | undefined;
3648
3648
  publicDescription?: string | undefined;
@@ -3651,16 +3651,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
3651
3651
  version: 1;
3652
3652
  style: "clay" | "pebble" | "shapes" | "letters";
3653
3653
  seed: string;
3654
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3654
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
3655
3655
  } | null | undefined;
3656
3656
  triggers?: ({
3657
3657
  label: string;
3658
- id: string;
3659
3658
  kind: "app";
3660
- enabled: boolean;
3661
3659
  name: string;
3662
- subscriptionId: string;
3660
+ id: string;
3663
3661
  providerKey: string;
3662
+ enabled: boolean;
3663
+ subscriptionId: string;
3664
3664
  eventTypes: string[];
3665
3665
  runsAs: "none" | "field";
3666
3666
  customerField: string;
@@ -3668,11 +3668,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
3668
3668
  answerTo: "none" | "webhook";
3669
3669
  variables?: Record<string, unknown> | undefined;
3670
3670
  } | {
3671
- id: string;
3672
3671
  kind: "webhook";
3673
3672
  tenantId: string;
3674
- enabled: boolean;
3675
3673
  name: string;
3674
+ id: string;
3675
+ enabled: boolean;
3676
3676
  runsAs: "none" | "field";
3677
3677
  customerField: string;
3678
3678
  instruction: string;
@@ -3680,12 +3680,12 @@ 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;
3684
- kind: "schedule";
3685
3683
  date: string;
3684
+ kind: "schedule";
3686
3685
  tenantId: string;
3687
- enabled: boolean;
3688
3686
  name: string;
3687
+ id: string;
3688
+ enabled: boolean;
3689
3689
  timezone: string;
3690
3690
  customerId: string;
3691
3691
  days: number[];
@@ -3717,24 +3717,24 @@ export declare const botPatchSchema: z.ZodObject<{
3717
3717
  version: 1;
3718
3718
  style: "clay" | "pebble" | "shapes" | "letters";
3719
3719
  seed: string;
3720
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3720
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
3721
3721
  }, {
3722
3722
  version: 1;
3723
3723
  style: "clay" | "pebble" | "shapes" | "letters";
3724
3724
  seed: string;
3725
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
3725
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
3726
3726
  }>>>>;
3727
3727
  files: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3728
3728
  enabled: z.ZodBoolean;
3729
3729
  kinds: z.ZodArray<z.ZodEnum<["documents", "spreadsheets", "images", "audio", "code"]>, "many">;
3730
3730
  bigSpreadsheets: z.ZodEnum<["workbench", "preview"]>;
3731
3731
  }, "strict", z.ZodTypeAny, {
3732
- enabled: boolean;
3733
3732
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3733
+ enabled: boolean;
3734
3734
  bigSpreadsheets: "workbench" | "preview";
3735
3735
  }, {
3736
- enabled: boolean;
3737
3736
  kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
3737
+ enabled: boolean;
3738
3738
  bigSpreadsheets: "workbench" | "preview";
3739
3739
  }>>>;
3740
3740
  timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
@@ -3754,13 +3754,13 @@ 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
- id: string;
3758
3757
  kind: "app";
3759
- enabled: boolean;
3760
3758
  name: string;
3759
+ id: string;
3760
+ providerKey: string;
3761
+ enabled: boolean;
3761
3762
  variables: Record<string, unknown>;
3762
3763
  subscriptionId: string;
3763
- providerKey: string;
3764
3764
  eventTypes: string[];
3765
3765
  runsAs: "none" | "field";
3766
3766
  customerField: string;
@@ -3768,12 +3768,12 @@ export declare const botPatchSchema: z.ZodObject<{
3768
3768
  answerTo: "none" | "webhook";
3769
3769
  }, {
3770
3770
  label: string;
3771
- id: string;
3772
3771
  kind: "app";
3773
- enabled: boolean;
3774
3772
  name: string;
3775
- subscriptionId: string;
3773
+ id: string;
3776
3774
  providerKey: string;
3775
+ enabled: boolean;
3776
+ subscriptionId: string;
3777
3777
  eventTypes: string[];
3778
3778
  runsAs: "none" | "field";
3779
3779
  customerField: string;
@@ -3792,22 +3792,22 @@ 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
- id: string;
3796
3795
  kind: "webhook";
3797
3796
  tenantId: string;
3798
- enabled: boolean;
3799
3797
  name: string;
3798
+ id: string;
3799
+ enabled: boolean;
3800
3800
  variables: Record<string, unknown>;
3801
3801
  runsAs: "none" | "field";
3802
3802
  customerField: string;
3803
3803
  instruction: string;
3804
3804
  answerTo: "none" | "webhook";
3805
3805
  }, {
3806
- id: string;
3807
3806
  kind: "webhook";
3808
3807
  tenantId: string;
3809
- enabled: boolean;
3810
3808
  name: string;
3809
+ id: string;
3810
+ enabled: boolean;
3811
3811
  runsAs: "none" | "field";
3812
3812
  customerField: string;
3813
3813
  instruction: string;
@@ -3835,12 +3835,12 @@ 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;
3839
- kind: "schedule";
3840
3838
  date: string;
3839
+ kind: "schedule";
3841
3840
  tenantId: string;
3842
- enabled: boolean;
3843
3841
  name: string;
3842
+ id: string;
3843
+ enabled: boolean;
3844
3844
  variables: Record<string, unknown>;
3845
3845
  timezone: string;
3846
3846
  customerId: string;
@@ -3855,12 +3855,12 @@ 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;
3859
- kind: "schedule";
3860
3858
  date: string;
3859
+ kind: "schedule";
3861
3860
  tenantId: string;
3862
- enabled: boolean;
3863
3861
  name: string;
3862
+ id: string;
3863
+ enabled: boolean;
3864
3864
  timezone: string;
3865
3865
  customerId: string;
3866
3866
  days: number[];
@@ -3889,10 +3889,10 @@ export declare const botPatchSchema: z.ZodObject<{
3889
3889
  effort: z.ZodEnum<["minimal", "low", "medium", "high", "xhigh", "max"]>;
3890
3890
  }, "strict", z.ZodTypeAny, {
3891
3891
  id: string;
3892
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3892
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
3893
3893
  }, {
3894
3894
  id: string;
3895
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
3895
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
3896
3896
  }>>;
3897
3897
  instructions: z.ZodOptional<z.ZodObject<{
3898
3898
  text: z.ZodString;
@@ -3952,21 +3952,21 @@ export declare const botPatchSchema: z.ZodObject<{
3952
3952
  name: z.ZodString;
3953
3953
  content: z.ZodString;
3954
3954
  }, "strict", z.ZodTypeAny, {
3955
- name: string;
3956
3955
  content: string;
3957
- }, {
3958
3956
  name: string;
3957
+ }, {
3959
3958
  content: string;
3959
+ name: string;
3960
3960
  }>, "many">>;
3961
3961
  }, "strict", z.ZodTypeAny, {
3962
- id: string;
3963
3962
  name: string;
3963
+ id: string;
3964
3964
  cases: {
3965
3965
  text: string;
3966
3966
  }[];
3967
3967
  files: {
3968
- name: string;
3969
3968
  content: string;
3969
+ name: string;
3970
3970
  }[];
3971
3971
  instructions: string;
3972
3972
  summary: string;
@@ -3985,8 +3985,8 @@ export declare const botPatchSchema: z.ZodObject<{
3985
3985
  check: "is one of" | "is" | "is not";
3986
3986
  }[];
3987
3987
  }, {
3988
- id: string;
3989
3988
  name: string;
3989
+ id: string;
3990
3990
  cases: {
3991
3991
  text: string;
3992
3992
  }[];
@@ -4006,8 +4006,8 @@ export declare const botPatchSchema: z.ZodObject<{
4006
4006
  check: "is one of" | "is" | "is not";
4007
4007
  }[];
4008
4008
  files?: {
4009
- name: string;
4010
4009
  content: string;
4010
+ name: string;
4011
4011
  }[] | undefined;
4012
4012
  instructions?: string | undefined;
4013
4013
  }>, "many">>;
@@ -4019,13 +4019,13 @@ export declare const botPatchSchema: z.ZodObject<{
4019
4019
  company: z.ZodBoolean;
4020
4020
  bot: z.ZodBoolean;
4021
4021
  }, "strict", z.ZodTypeAny, {
4022
+ bot: boolean;
4022
4023
  customer: boolean;
4023
4024
  company: boolean;
4024
- bot: boolean;
4025
4025
  }, {
4026
+ bot: boolean;
4026
4027
  customer: boolean;
4027
4028
  company: boolean;
4028
- bot: boolean;
4029
4029
  }>;
4030
4030
  what: z.ZodString;
4031
4031
  never: z.ZodArray<z.ZodString, "many">;
@@ -4035,9 +4035,9 @@ export declare const botPatchSchema: z.ZodObject<{
4035
4035
  enabled: boolean;
4036
4036
  configured: boolean;
4037
4037
  who: {
4038
+ bot: boolean;
4038
4039
  customer: boolean;
4039
4040
  company: boolean;
4040
- bot: boolean;
4041
4041
  };
4042
4042
  what: string;
4043
4043
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
@@ -4046,9 +4046,9 @@ export declare const botPatchSchema: z.ZodObject<{
4046
4046
  enabled: boolean;
4047
4047
  configured: boolean;
4048
4048
  who: {
4049
+ bot: boolean;
4049
4050
  customer: boolean;
4050
4051
  company: boolean;
4051
- bot: boolean;
4052
4052
  };
4053
4053
  what: string;
4054
4054
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
@@ -4062,20 +4062,20 @@ export declare const botPatchSchema: z.ZodObject<{
4062
4062
  files: z.ZodEnum<["per_customer", "per_run"]>;
4063
4063
  longestRun: z.ZodEnum<["1 minute", "3 minutes", "10 minutes"]>;
4064
4064
  }, "strict", z.ZodTypeAny, {
4065
+ access: "block" | "allow" | "ask";
4066
+ languages: string[];
4065
4067
  enabled: boolean;
4066
4068
  files: "per_customer" | "per_run";
4067
4069
  configured: boolean;
4068
4070
  size: "medium" | "large" | "small";
4069
- access: "allow" | "ask" | "block";
4070
- languages: string[];
4071
4071
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4072
4072
  }, {
4073
+ access: "block" | "allow" | "ask";
4074
+ languages: string[];
4073
4075
  enabled: boolean;
4074
4076
  files: "per_customer" | "per_run";
4075
4077
  configured: boolean;
4076
4078
  size: "medium" | "large" | "small";
4077
- access: "allow" | "ask" | "block";
4078
- languages: string[];
4079
4079
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4080
4080
  }>>;
4081
4081
  context: z.ZodOptional<z.ZodObject<{
@@ -4116,98 +4116,98 @@ export declare const botPatchSchema: z.ZodObject<{
4116
4116
  key: z.ZodString;
4117
4117
  }, "strict", z.ZodTypeAny, {
4118
4118
  key: string;
4119
- source: "model" | "variable" | "context" | "identity";
4119
+ source: "model" | "context" | "variable" | "identity";
4120
4120
  path: string[];
4121
- target: "path" | "body" | "query" | "header";
4121
+ target: "path" | "query" | "body" | "header";
4122
4122
  }, {
4123
4123
  key: string;
4124
- source: "model" | "variable" | "context" | "identity";
4124
+ source: "model" | "context" | "variable" | "identity";
4125
4125
  path: string[];
4126
- target: "path" | "body" | "query" | "header";
4126
+ target: "path" | "query" | "body" | "header";
4127
4127
  }>, "many">>;
4128
4128
  responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4129
4129
  sample: z.ZodOptional<z.ZodUnknown>;
4130
4130
  }, "strict", z.ZodTypeAny, {
4131
4131
  path: string;
4132
- id: string;
4133
4132
  name: string;
4133
+ id: string;
4134
+ query: Record<string, string>;
4134
4135
  headers: Record<string, string>;
4135
4136
  body: string;
4136
- query: Record<string, string>;
4137
4137
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4138
4138
  bodyType: "json" | "form" | "xml" | "gql";
4139
- readAs: "auto" | "text" | "json" | "xml";
4139
+ readAs: "text" | "json" | "auto" | "xml";
4140
4140
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4141
4141
  summary: string;
4142
4142
  latencyMs: number | null;
4143
4143
  visibleFields: string[];
4144
4144
  effects: "read" | "write" | "unclassified";
4145
- permission: "allow" | "ask" | "block";
4145
+ permission: "block" | "allow" | "ask";
4146
4146
  bindings: {
4147
4147
  key: string;
4148
- source: "model" | "variable" | "context" | "identity";
4148
+ source: "model" | "context" | "variable" | "identity";
4149
4149
  path: string[];
4150
- target: "path" | "body" | "query" | "header";
4150
+ target: "path" | "query" | "body" | "header";
4151
4151
  }[];
4152
4152
  inputSchema?: Record<string, unknown> | undefined;
4153
4153
  sample?: unknown;
4154
4154
  responseSchema?: Record<string, unknown> | undefined;
4155
4155
  }, {
4156
4156
  path: string;
4157
- id: string;
4158
4157
  name: string;
4158
+ id: string;
4159
4159
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4160
4160
  bodyType: "json" | "form" | "xml" | "gql";
4161
- readAs: "auto" | "text" | "json" | "xml";
4161
+ readAs: "text" | "json" | "auto" | "xml";
4162
4162
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4163
4163
  summary: string;
4164
4164
  latencyMs: number | null;
4165
4165
  visibleFields: string[];
4166
4166
  effects: "read" | "write" | "unclassified";
4167
+ query?: Record<string, string> | undefined;
4167
4168
  inputSchema?: Record<string, unknown> | undefined;
4168
4169
  headers?: Record<string, string> | undefined;
4169
4170
  body?: string | undefined;
4170
4171
  sample?: unknown;
4171
- query?: Record<string, string> | undefined;
4172
- permission?: "allow" | "ask" | "block" | undefined;
4172
+ permission?: "block" | "allow" | "ask" | undefined;
4173
4173
  bindings?: {
4174
4174
  key: string;
4175
- source: "model" | "variable" | "context" | "identity";
4175
+ source: "model" | "context" | "variable" | "identity";
4176
4176
  path: string[];
4177
- target: "path" | "body" | "query" | "header";
4177
+ target: "path" | "query" | "body" | "header";
4178
4178
  }[] | undefined;
4179
4179
  responseSchema?: Record<string, unknown> | undefined;
4180
4180
  }>, "many">;
4181
4181
  }, "strict", z.ZodTypeAny, {
4182
4182
  calls: {
4183
4183
  path: string;
4184
- id: string;
4185
4184
  name: string;
4185
+ id: string;
4186
+ query: Record<string, string>;
4186
4187
  headers: Record<string, string>;
4187
4188
  body: string;
4188
- query: Record<string, string>;
4189
4189
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4190
4190
  bodyType: "json" | "form" | "xml" | "gql";
4191
- readAs: "auto" | "text" | "json" | "xml";
4191
+ readAs: "text" | "json" | "auto" | "xml";
4192
4192
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4193
4193
  summary: string;
4194
4194
  latencyMs: number | null;
4195
4195
  visibleFields: string[];
4196
4196
  effects: "read" | "write" | "unclassified";
4197
- permission: "allow" | "ask" | "block";
4197
+ permission: "block" | "allow" | "ask";
4198
4198
  bindings: {
4199
4199
  key: string;
4200
- source: "model" | "variable" | "context" | "identity";
4200
+ source: "model" | "context" | "variable" | "identity";
4201
4201
  path: string[];
4202
- target: "path" | "body" | "query" | "header";
4202
+ target: "path" | "query" | "body" | "header";
4203
4203
  }[];
4204
4204
  inputSchema?: Record<string, unknown> | undefined;
4205
4205
  sample?: unknown;
4206
4206
  responseSchema?: Record<string, unknown> | undefined;
4207
4207
  }[];
4208
- id: string;
4209
4208
  kind: "http" | "graphql" | "openapi";
4210
4209
  name: string;
4210
+ id: string;
4211
4211
  host: string;
4212
4212
  baseUrl: string;
4213
4213
  auth: "none" | "one" | "each" | "oauth";
@@ -4217,33 +4217,33 @@ export declare const botPatchSchema: z.ZodObject<{
4217
4217
  }, {
4218
4218
  calls: {
4219
4219
  path: string;
4220
- id: string;
4221
4220
  name: string;
4221
+ id: string;
4222
4222
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4223
4223
  bodyType: "json" | "form" | "xml" | "gql";
4224
- readAs: "auto" | "text" | "json" | "xml";
4224
+ readAs: "text" | "json" | "auto" | "xml";
4225
4225
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4226
4226
  summary: string;
4227
4227
  latencyMs: number | null;
4228
4228
  visibleFields: string[];
4229
4229
  effects: "read" | "write" | "unclassified";
4230
+ query?: Record<string, string> | undefined;
4230
4231
  inputSchema?: Record<string, unknown> | undefined;
4231
4232
  headers?: Record<string, string> | undefined;
4232
4233
  body?: string | undefined;
4233
4234
  sample?: unknown;
4234
- query?: Record<string, string> | undefined;
4235
- permission?: "allow" | "ask" | "block" | undefined;
4235
+ permission?: "block" | "allow" | "ask" | undefined;
4236
4236
  bindings?: {
4237
4237
  key: string;
4238
- source: "model" | "variable" | "context" | "identity";
4238
+ source: "model" | "context" | "variable" | "identity";
4239
4239
  path: string[];
4240
- target: "path" | "body" | "query" | "header";
4240
+ target: "path" | "query" | "body" | "header";
4241
4241
  }[] | undefined;
4242
4242
  responseSchema?: Record<string, unknown> | undefined;
4243
4243
  }[];
4244
- id: string;
4245
4244
  kind: "http" | "graphql" | "openapi";
4246
4245
  name: string;
4246
+ id: string;
4247
4247
  host: string;
4248
4248
  baseUrl: string;
4249
4249
  auth: "none" | "one" | "each" | "oauth";
@@ -4260,13 +4260,13 @@ export declare const botPatchSchema: z.ZodObject<{
4260
4260
  change: z.ZodEnum<["allow", "ask", "block"]>;
4261
4261
  delete: z.ZodEnum<["allow", "ask", "block"]>;
4262
4262
  }, "strict", z.ZodTypeAny, {
4263
- read: "allow" | "ask" | "block";
4264
- change: "allow" | "ask" | "block";
4265
- delete: "allow" | "ask" | "block";
4263
+ read: "block" | "allow" | "ask";
4264
+ change: "block" | "allow" | "ask";
4265
+ delete: "block" | "allow" | "ask";
4266
4266
  }, {
4267
- read: "allow" | "ask" | "block";
4268
- change: "allow" | "ask" | "block";
4269
- delete: "allow" | "ask" | "block";
4267
+ read: "block" | "allow" | "ask";
4268
+ change: "block" | "allow" | "ask";
4269
+ delete: "block" | "allow" | "ask";
4270
4270
  }>;
4271
4271
  actionRules: z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "block"]>>;
4272
4272
  askWho: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["approvers", "customer", "customer-approvers"]>>>;
@@ -4275,11 +4275,11 @@ export declare const botPatchSchema: z.ZodObject<{
4275
4275
  key: string;
4276
4276
  account: "customer" | "deployment" | "project";
4277
4277
  rules: {
4278
- read: "allow" | "ask" | "block";
4279
- change: "allow" | "ask" | "block";
4280
- delete: "allow" | "ask" | "block";
4278
+ read: "block" | "allow" | "ask";
4279
+ change: "block" | "allow" | "ask";
4280
+ delete: "block" | "allow" | "ask";
4281
4281
  };
4282
- actionRules: Record<string, "allow" | "ask" | "block">;
4282
+ actionRules: Record<string, "block" | "allow" | "ask">;
4283
4283
  pinned: string[];
4284
4284
  accountId?: string | undefined;
4285
4285
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
@@ -4287,11 +4287,11 @@ export declare const botPatchSchema: z.ZodObject<{
4287
4287
  key: string;
4288
4288
  account: "customer" | "deployment" | "project";
4289
4289
  rules: {
4290
- read: "allow" | "ask" | "block";
4291
- change: "allow" | "ask" | "block";
4292
- delete: "allow" | "ask" | "block";
4290
+ read: "block" | "allow" | "ask";
4291
+ change: "block" | "allow" | "ask";
4292
+ delete: "block" | "allow" | "ask";
4293
4293
  };
4294
- actionRules: Record<string, "allow" | "ask" | "block">;
4294
+ actionRules: Record<string, "block" | "allow" | "ask">;
4295
4295
  pinned: string[];
4296
4296
  accountId?: string | undefined;
4297
4297
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
@@ -4325,20 +4325,20 @@ export declare const botPatchSchema: z.ZodObject<{
4325
4325
  rule: z.ZodEnum<["allow", "ask", "block"]>;
4326
4326
  tools: z.ZodArray<z.ZodString, "many">;
4327
4327
  }, "strict", z.ZodTypeAny, {
4328
- tools: string[];
4329
4328
  name: "Read" | "Change" | "Delete";
4329
+ tools: string[];
4330
4330
  count: number;
4331
- rule: "allow" | "ask" | "block";
4331
+ rule: "block" | "allow" | "ask";
4332
4332
  }, {
4333
- tools: string[];
4334
4333
  name: "Read" | "Change" | "Delete";
4334
+ tools: string[];
4335
4335
  count: number;
4336
- rule: "allow" | "ask" | "block";
4336
+ rule: "block" | "allow" | "ask";
4337
4337
  }>, "many">;
4338
4338
  }, "strict", z.ZodTypeAny, {
4339
- id: string;
4340
4339
  status: "connecting" | "connected";
4341
4340
  name: string;
4341
+ id: string;
4342
4342
  url: string;
4343
4343
  toolCount: number;
4344
4344
  definitions: {
@@ -4348,23 +4348,23 @@ export declare const botPatchSchema: z.ZodObject<{
4348
4348
  outputSchema?: Record<string, unknown> | undefined;
4349
4349
  }[];
4350
4350
  groups: {
4351
- tools: string[];
4352
4351
  name: "Read" | "Change" | "Delete";
4352
+ tools: string[];
4353
4353
  count: number;
4354
- rule: "allow" | "ask" | "block";
4354
+ rule: "block" | "allow" | "ask";
4355
4355
  }[];
4356
4356
  credentialId?: string | undefined;
4357
4357
  }, {
4358
- id: string;
4359
4358
  status: "connecting" | "connected";
4360
4359
  name: string;
4360
+ id: string;
4361
4361
  url: string;
4362
4362
  toolCount: number;
4363
4363
  groups: {
4364
- tools: string[];
4365
4364
  name: "Read" | "Change" | "Delete";
4365
+ tools: string[];
4366
4366
  count: number;
4367
- rule: "allow" | "ask" | "block";
4367
+ rule: "block" | "allow" | "ask";
4368
4368
  }[];
4369
4369
  credentialId?: string | undefined;
4370
4370
  definitions?: {
@@ -4382,11 +4382,11 @@ export declare const botPatchSchema: z.ZodObject<{
4382
4382
  accountId: z.ZodString;
4383
4383
  resourceId: z.ZodString;
4384
4384
  }, "strict", z.ZodTypeAny, {
4385
- accountId: string;
4386
4385
  resourceId: string;
4387
- }, {
4388
4386
  accountId: string;
4387
+ }, {
4389
4388
  resourceId: string;
4389
+ accountId: string;
4390
4390
  }>>;
4391
4391
  name: z.ZodString;
4392
4392
  detail: z.ZodString;
@@ -4421,23 +4421,23 @@ export declare const botPatchSchema: z.ZodObject<{
4421
4421
  }>>;
4422
4422
  syncedLabel: z.ZodString;
4423
4423
  }, "strict", z.ZodTypeAny, {
4424
- id: string;
4425
4424
  status: "failed" | "ready" | "syncing";
4426
4425
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4427
4426
  name: string;
4427
+ id: string;
4428
4428
  scope: "customer" | "project";
4429
4429
  detail: string;
4430
4430
  syncedLabel: string;
4431
+ url?: string | undefined;
4432
+ connectedSource?: {
4433
+ resourceId: string;
4434
+ accountId: string;
4435
+ } | undefined;
4431
4436
  error?: string | undefined;
4432
4437
  pages?: {
4433
4438
  total: number;
4434
4439
  done: number;
4435
4440
  } | undefined;
4436
- url?: string | undefined;
4437
- connectedSource?: {
4438
- accountId: string;
4439
- resourceId: string;
4440
- } | undefined;
4441
4441
  progress?: {
4442
4442
  total: number;
4443
4443
  done: number;
@@ -4445,23 +4445,23 @@ export declare const botPatchSchema: z.ZodObject<{
4445
4445
  retryable: boolean;
4446
4446
  } | undefined;
4447
4447
  }, {
4448
- id: string;
4449
4448
  status: "failed" | "ready" | "syncing";
4450
4449
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4451
4450
  name: string;
4451
+ id: string;
4452
4452
  detail: string;
4453
4453
  syncedLabel: string;
4454
+ url?: string | undefined;
4455
+ connectedSource?: {
4456
+ resourceId: string;
4457
+ accountId: string;
4458
+ } | undefined;
4454
4459
  error?: string | undefined;
4455
4460
  scope?: "customer" | "project" | undefined;
4456
4461
  pages?: {
4457
4462
  total: number;
4458
4463
  done: number;
4459
4464
  } | undefined;
4460
- url?: string | undefined;
4461
- connectedSource?: {
4462
- accountId: string;
4463
- resourceId: string;
4464
- } | undefined;
4465
4465
  progress?: {
4466
4466
  total: number;
4467
4467
  done: number;
@@ -4484,23 +4484,23 @@ export declare const botPatchSchema: z.ZodObject<{
4484
4484
  }>;
4485
4485
  }, "strict", z.ZodTypeAny, {
4486
4486
  knowledge: {
4487
- id: string;
4488
4487
  status: "failed" | "ready" | "syncing";
4489
4488
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4490
4489
  name: string;
4490
+ id: string;
4491
4491
  scope: "customer" | "project";
4492
4492
  detail: string;
4493
4493
  syncedLabel: string;
4494
+ url?: string | undefined;
4495
+ connectedSource?: {
4496
+ resourceId: string;
4497
+ accountId: string;
4498
+ } | undefined;
4494
4499
  error?: string | undefined;
4495
4500
  pages?: {
4496
4501
  total: number;
4497
4502
  done: number;
4498
4503
  } | undefined;
4499
- url?: string | undefined;
4500
- connectedSource?: {
4501
- accountId: string;
4502
- resourceId: string;
4503
- } | undefined;
4504
4504
  progress?: {
4505
4505
  total: number;
4506
4506
  done: number;
@@ -4514,33 +4514,33 @@ export declare const botPatchSchema: z.ZodObject<{
4514
4514
  apis: {
4515
4515
  calls: {
4516
4516
  path: string;
4517
- id: string;
4518
4517
  name: string;
4518
+ id: string;
4519
+ query: Record<string, string>;
4519
4520
  headers: Record<string, string>;
4520
4521
  body: string;
4521
- query: Record<string, string>;
4522
4522
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4523
4523
  bodyType: "json" | "form" | "xml" | "gql";
4524
- readAs: "auto" | "text" | "json" | "xml";
4524
+ readAs: "text" | "json" | "auto" | "xml";
4525
4525
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4526
4526
  summary: string;
4527
4527
  latencyMs: number | null;
4528
4528
  visibleFields: string[];
4529
4529
  effects: "read" | "write" | "unclassified";
4530
- permission: "allow" | "ask" | "block";
4530
+ permission: "block" | "allow" | "ask";
4531
4531
  bindings: {
4532
4532
  key: string;
4533
- source: "model" | "variable" | "context" | "identity";
4533
+ source: "model" | "context" | "variable" | "identity";
4534
4534
  path: string[];
4535
- target: "path" | "body" | "query" | "header";
4535
+ target: "path" | "query" | "body" | "header";
4536
4536
  }[];
4537
4537
  inputSchema?: Record<string, unknown> | undefined;
4538
4538
  sample?: unknown;
4539
4539
  responseSchema?: Record<string, unknown> | undefined;
4540
4540
  }[];
4541
- id: string;
4542
4541
  kind: "http" | "graphql" | "openapi";
4543
4542
  name: string;
4543
+ id: string;
4544
4544
  host: string;
4545
4545
  baseUrl: string;
4546
4546
  auth: "none" | "one" | "each" | "oauth";
@@ -4552,19 +4552,19 @@ export declare const botPatchSchema: z.ZodObject<{
4552
4552
  key: string;
4553
4553
  account: "customer" | "deployment" | "project";
4554
4554
  rules: {
4555
- read: "allow" | "ask" | "block";
4556
- change: "allow" | "ask" | "block";
4557
- delete: "allow" | "ask" | "block";
4555
+ read: "block" | "allow" | "ask";
4556
+ change: "block" | "allow" | "ask";
4557
+ delete: "block" | "allow" | "ask";
4558
4558
  };
4559
- actionRules: Record<string, "allow" | "ask" | "block">;
4559
+ actionRules: Record<string, "block" | "allow" | "ask">;
4560
4560
  pinned: string[];
4561
4561
  accountId?: string | undefined;
4562
4562
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
4563
4563
  }[];
4564
4564
  mcpServers: {
4565
- id: string;
4566
4565
  status: "connecting" | "connected";
4567
4566
  name: string;
4567
+ id: string;
4568
4568
  url: string;
4569
4569
  toolCount: number;
4570
4570
  definitions: {
@@ -4574,10 +4574,10 @@ export declare const botPatchSchema: z.ZodObject<{
4574
4574
  outputSchema?: Record<string, unknown> | undefined;
4575
4575
  }[];
4576
4576
  groups: {
4577
- tools: string[];
4578
4577
  name: "Read" | "Change" | "Delete";
4578
+ tools: string[];
4579
4579
  count: number;
4580
- rule: "allow" | "ask" | "block";
4580
+ rule: "block" | "allow" | "ask";
4581
4581
  }[];
4582
4582
  credentialId?: string | undefined;
4583
4583
  }[];
@@ -4588,23 +4588,23 @@ export declare const botPatchSchema: z.ZodObject<{
4588
4588
  };
4589
4589
  }, {
4590
4590
  knowledge: {
4591
- id: string;
4592
4591
  status: "failed" | "ready" | "syncing";
4593
4592
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4594
4593
  name: string;
4594
+ id: string;
4595
4595
  detail: string;
4596
4596
  syncedLabel: string;
4597
+ url?: string | undefined;
4598
+ connectedSource?: {
4599
+ resourceId: string;
4600
+ accountId: string;
4601
+ } | undefined;
4597
4602
  error?: string | undefined;
4598
4603
  scope?: "customer" | "project" | undefined;
4599
4604
  pages?: {
4600
4605
  total: number;
4601
4606
  done: number;
4602
4607
  } | undefined;
4603
- url?: string | undefined;
4604
- connectedSource?: {
4605
- accountId: string;
4606
- resourceId: string;
4607
- } | undefined;
4608
4608
  progress?: {
4609
4609
  total: number;
4610
4610
  done: number;
@@ -4615,33 +4615,33 @@ export declare const botPatchSchema: z.ZodObject<{
4615
4615
  apis: {
4616
4616
  calls: {
4617
4617
  path: string;
4618
- id: string;
4619
4618
  name: string;
4619
+ id: string;
4620
4620
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4621
4621
  bodyType: "json" | "form" | "xml" | "gql";
4622
- readAs: "auto" | "text" | "json" | "xml";
4622
+ readAs: "text" | "json" | "auto" | "xml";
4623
4623
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4624
4624
  summary: string;
4625
4625
  latencyMs: number | null;
4626
4626
  visibleFields: string[];
4627
4627
  effects: "read" | "write" | "unclassified";
4628
+ query?: Record<string, string> | undefined;
4628
4629
  inputSchema?: Record<string, unknown> | undefined;
4629
4630
  headers?: Record<string, string> | undefined;
4630
4631
  body?: string | undefined;
4631
4632
  sample?: unknown;
4632
- query?: Record<string, string> | undefined;
4633
- permission?: "allow" | "ask" | "block" | undefined;
4633
+ permission?: "block" | "allow" | "ask" | undefined;
4634
4634
  bindings?: {
4635
4635
  key: string;
4636
- source: "model" | "variable" | "context" | "identity";
4636
+ source: "model" | "context" | "variable" | "identity";
4637
4637
  path: string[];
4638
- target: "path" | "body" | "query" | "header";
4638
+ target: "path" | "query" | "body" | "header";
4639
4639
  }[] | undefined;
4640
4640
  responseSchema?: Record<string, unknown> | undefined;
4641
4641
  }[];
4642
- id: string;
4643
4642
  kind: "http" | "graphql" | "openapi";
4644
4643
  name: string;
4644
+ id: string;
4645
4645
  host: string;
4646
4646
  baseUrl: string;
4647
4647
  auth: "none" | "one" | "each" | "oauth";
@@ -4653,26 +4653,26 @@ export declare const botPatchSchema: z.ZodObject<{
4653
4653
  key: string;
4654
4654
  account: "customer" | "deployment" | "project";
4655
4655
  rules: {
4656
- read: "allow" | "ask" | "block";
4657
- change: "allow" | "ask" | "block";
4658
- delete: "allow" | "ask" | "block";
4656
+ read: "block" | "allow" | "ask";
4657
+ change: "block" | "allow" | "ask";
4658
+ delete: "block" | "allow" | "ask";
4659
4659
  };
4660
- actionRules: Record<string, "allow" | "ask" | "block">;
4660
+ actionRules: Record<string, "block" | "allow" | "ask">;
4661
4661
  pinned: string[];
4662
4662
  accountId?: string | undefined;
4663
4663
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
4664
4664
  }[];
4665
4665
  mcpServers: {
4666
- id: string;
4667
4666
  status: "connecting" | "connected";
4668
4667
  name: string;
4668
+ id: string;
4669
4669
  url: string;
4670
4670
  toolCount: number;
4671
4671
  groups: {
4672
- tools: string[];
4673
4672
  name: "Read" | "Change" | "Delete";
4673
+ tools: string[];
4674
4674
  count: number;
4675
- rule: "allow" | "ask" | "block";
4675
+ rule: "block" | "allow" | "ask";
4676
4676
  }[];
4677
4677
  credentialId?: string | undefined;
4678
4678
  definitions?: {
@@ -4734,19 +4734,19 @@ 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" | "text" | "date" | "enum" | "list" | "bool" | "group";
4738
- id: string;
4737
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
4739
4738
  required: boolean;
4740
4739
  name: string;
4740
+ id: string;
4741
4741
  level: number;
4742
4742
  values?: string[] | undefined;
4743
4743
  items?: Record<string, unknown> | undefined;
4744
4744
  }, {
4745
4745
  description: string;
4746
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
4747
- id: string;
4746
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
4748
4747
  required: boolean;
4749
4748
  name: string;
4749
+ id: string;
4750
4750
  level: number;
4751
4751
  values?: string[] | undefined;
4752
4752
  items?: Record<string, unknown> | undefined;
@@ -4755,10 +4755,10 @@ export declare const botPatchSchema: z.ZodObject<{
4755
4755
  }, "strict", z.ZodTypeAny, {
4756
4756
  shape: {
4757
4757
  description: string;
4758
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
4759
- id: string;
4758
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
4760
4759
  required: boolean;
4761
4760
  name: string;
4761
+ id: string;
4762
4762
  level: number;
4763
4763
  values?: string[] | undefined;
4764
4764
  items?: Record<string, unknown> | undefined;
@@ -4770,10 +4770,10 @@ export declare const botPatchSchema: z.ZodObject<{
4770
4770
  }, {
4771
4771
  shape: {
4772
4772
  description: string;
4773
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
4774
- id: string;
4773
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
4775
4774
  required: boolean;
4776
4775
  name: string;
4776
+ id: string;
4777
4777
  level: number;
4778
4778
  values?: string[] | undefined;
4779
4779
  items?: Record<string, unknown> | undefined;
@@ -4796,35 +4796,35 @@ export declare const botPatchSchema: z.ZodObject<{
4796
4796
  path: z.ZodArray<z.ZodString, "many">;
4797
4797
  target: z.ZodArray<z.ZodString, "many">;
4798
4798
  }, "strict", z.ZodTypeAny, {
4799
- source: "message" | "variable" | "context";
4799
+ source: "message" | "context" | "variable";
4800
4800
  path: string[];
4801
4801
  target: string[];
4802
4802
  }, {
4803
- source: "message" | "variable" | "context";
4803
+ source: "message" | "context" | "variable";
4804
4804
  path: string[];
4805
4805
  target: string[];
4806
4806
  }>, "many">;
4807
4807
  }, "strict", z.ZodTypeAny, {
4808
- id: string;
4809
4808
  kind: "workbench" | "mcp" | "app";
4810
4809
  name: string;
4810
+ id: string;
4811
4811
  input: Record<string, unknown>;
4812
4812
  toolKey: string;
4813
4813
  capabilityId: string;
4814
4814
  bindings: {
4815
- source: "message" | "variable" | "context";
4815
+ source: "message" | "context" | "variable";
4816
4816
  path: string[];
4817
4817
  target: string[];
4818
4818
  }[];
4819
4819
  }, {
4820
- id: string;
4821
4820
  kind: "workbench" | "mcp" | "app";
4822
4821
  name: string;
4822
+ id: string;
4823
4823
  input: Record<string, unknown>;
4824
4824
  toolKey: string;
4825
4825
  capabilityId: string;
4826
4826
  bindings: {
4827
- source: "message" | "variable" | "context";
4827
+ source: "message" | "context" | "variable";
4828
4828
  path: string[];
4829
4829
  target: string[];
4830
4830
  }[];
@@ -4835,18 +4835,18 @@ export declare const botPatchSchema: z.ZodObject<{
4835
4835
  stopOnFail: z.ZodArray<z.ZodString, "many">;
4836
4836
  stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
4837
4837
  }, "strict", z.ZodTypeAny, {
4838
- off: string[];
4839
4838
  before: string[];
4840
4839
  after: string[];
4840
+ off: string[];
4841
4841
  preparations: {
4842
- id: string;
4843
4842
  kind: "workbench" | "mcp" | "app";
4844
4843
  name: string;
4844
+ id: string;
4845
4845
  input: Record<string, unknown>;
4846
4846
  toolKey: string;
4847
4847
  capabilityId: string;
4848
4848
  bindings: {
4849
- source: "message" | "variable" | "context";
4849
+ source: "message" | "context" | "variable";
4850
4850
  path: string[];
4851
4851
  target: string[];
4852
4852
  }[];
@@ -4854,20 +4854,20 @@ export declare const botPatchSchema: z.ZodObject<{
4854
4854
  stopOnFail: string[];
4855
4855
  stepLimit: number;
4856
4856
  }, {
4857
- off: string[];
4858
4857
  before: string[];
4859
4858
  after: string[];
4859
+ off: string[];
4860
4860
  stopOnFail: string[];
4861
4861
  stepLimit: number | null;
4862
4862
  preparations?: {
4863
- id: string;
4864
4863
  kind: "workbench" | "mcp" | "app";
4865
4864
  name: string;
4865
+ id: string;
4866
4866
  input: Record<string, unknown>;
4867
4867
  toolKey: string;
4868
4868
  capabilityId: string;
4869
4869
  bindings: {
4870
- source: "message" | "variable" | "context";
4870
+ source: "message" | "context" | "variable";
4871
4871
  path: string[];
4872
4872
  target: string[];
4873
4873
  }[];
@@ -4879,66 +4879,46 @@ export declare const botPatchSchema: z.ZodObject<{
4879
4879
  enabled: boolean;
4880
4880
  configured: boolean;
4881
4881
  who: {
4882
+ bot: boolean;
4882
4883
  customer: boolean;
4883
4884
  company: boolean;
4884
- bot: boolean;
4885
4885
  };
4886
4886
  what: string;
4887
4887
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
4888
4888
  } | undefined;
4889
4889
  model?: {
4890
4890
  id: string;
4891
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
4891
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
4892
4892
  } | undefined;
4893
4893
  workbench?: {
4894
+ access: "block" | "allow" | "ask";
4895
+ languages: string[];
4894
4896
  enabled: boolean;
4895
4897
  files: "per_customer" | "per_run";
4896
4898
  configured: boolean;
4897
4899
  size: "medium" | "large" | "small";
4898
- access: "allow" | "ask" | "block";
4899
- languages: string[];
4900
4900
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
4901
4901
  } | undefined;
4902
4902
  name?: string | undefined;
4903
- variables?: {
4904
- description: string;
4905
- type: "Text" | "Number" | "Yes or no" | "One of…";
4906
- required: boolean;
4907
- name: string;
4908
- defaultValue: string;
4909
- usedIn: ("api" | "instructions" | "run_plan")[];
4910
- chipNote: string;
4911
- values?: string[] | undefined;
4912
- }[] | undefined;
4913
- timezone?: string | null | undefined;
4914
- files?: {
4915
- enabled: boolean;
4916
- kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
4917
- bigSpreadsheets: "workbench" | "preview";
4918
- } | undefined;
4919
- instructions?: {
4920
- text: string;
4921
- editedAt: string | null;
4922
- } | undefined;
4923
4903
  context?: {
4924
4904
  knowledge: {
4925
- id: string;
4926
4905
  status: "failed" | "ready" | "syncing";
4927
4906
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
4928
4907
  name: string;
4908
+ id: string;
4929
4909
  scope: "customer" | "project";
4930
4910
  detail: string;
4931
4911
  syncedLabel: string;
4912
+ url?: string | undefined;
4913
+ connectedSource?: {
4914
+ resourceId: string;
4915
+ accountId: string;
4916
+ } | undefined;
4932
4917
  error?: string | undefined;
4933
4918
  pages?: {
4934
4919
  total: number;
4935
4920
  done: number;
4936
4921
  } | undefined;
4937
- url?: string | undefined;
4938
- connectedSource?: {
4939
- accountId: string;
4940
- resourceId: string;
4941
- } | undefined;
4942
4922
  progress?: {
4943
4923
  total: number;
4944
4924
  done: number;
@@ -4952,33 +4932,33 @@ export declare const botPatchSchema: z.ZodObject<{
4952
4932
  apis: {
4953
4933
  calls: {
4954
4934
  path: string;
4955
- id: string;
4956
4935
  name: string;
4936
+ id: string;
4937
+ query: Record<string, string>;
4957
4938
  headers: Record<string, string>;
4958
4939
  body: string;
4959
- query: Record<string, string>;
4960
4940
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4961
4941
  bodyType: "json" | "form" | "xml" | "gql";
4962
- readAs: "auto" | "text" | "json" | "xml";
4942
+ readAs: "text" | "json" | "auto" | "xml";
4963
4943
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
4964
4944
  summary: string;
4965
4945
  latencyMs: number | null;
4966
4946
  visibleFields: string[];
4967
4947
  effects: "read" | "write" | "unclassified";
4968
- permission: "allow" | "ask" | "block";
4948
+ permission: "block" | "allow" | "ask";
4969
4949
  bindings: {
4970
4950
  key: string;
4971
- source: "model" | "variable" | "context" | "identity";
4951
+ source: "model" | "context" | "variable" | "identity";
4972
4952
  path: string[];
4973
- target: "path" | "body" | "query" | "header";
4953
+ target: "path" | "query" | "body" | "header";
4974
4954
  }[];
4975
4955
  inputSchema?: Record<string, unknown> | undefined;
4976
4956
  sample?: unknown;
4977
4957
  responseSchema?: Record<string, unknown> | undefined;
4978
4958
  }[];
4979
- id: string;
4980
4959
  kind: "http" | "graphql" | "openapi";
4981
4960
  name: string;
4961
+ id: string;
4982
4962
  host: string;
4983
4963
  baseUrl: string;
4984
4964
  auth: "none" | "one" | "each" | "oauth";
@@ -4990,19 +4970,19 @@ export declare const botPatchSchema: z.ZodObject<{
4990
4970
  key: string;
4991
4971
  account: "customer" | "deployment" | "project";
4992
4972
  rules: {
4993
- read: "allow" | "ask" | "block";
4994
- change: "allow" | "ask" | "block";
4995
- delete: "allow" | "ask" | "block";
4973
+ read: "block" | "allow" | "ask";
4974
+ change: "block" | "allow" | "ask";
4975
+ delete: "block" | "allow" | "ask";
4996
4976
  };
4997
- actionRules: Record<string, "allow" | "ask" | "block">;
4977
+ actionRules: Record<string, "block" | "allow" | "ask">;
4998
4978
  pinned: string[];
4999
4979
  accountId?: string | undefined;
5000
4980
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
5001
4981
  }[];
5002
4982
  mcpServers: {
5003
- id: string;
5004
4983
  status: "connecting" | "connected";
5005
4984
  name: string;
4985
+ id: string;
5006
4986
  url: string;
5007
4987
  toolCount: number;
5008
4988
  definitions: {
@@ -5012,10 +4992,10 @@ export declare const botPatchSchema: z.ZodObject<{
5012
4992
  outputSchema?: Record<string, unknown> | undefined;
5013
4993
  }[];
5014
4994
  groups: {
5015
- tools: string[];
5016
4995
  name: "Read" | "Change" | "Delete";
4996
+ tools: string[];
5017
4997
  count: number;
5018
- rule: "allow" | "ask" | "block";
4998
+ rule: "block" | "allow" | "ask";
5019
4999
  }[];
5020
5000
  credentialId?: string | undefined;
5021
5001
  }[];
@@ -5025,23 +5005,43 @@ export declare const botPatchSchema: z.ZodObject<{
5025
5005
  preferSites: string[];
5026
5006
  };
5027
5007
  } | undefined;
5008
+ variables?: {
5009
+ description: string;
5010
+ type: "Text" | "Number" | "Yes or no" | "One of…";
5011
+ required: boolean;
5012
+ name: string;
5013
+ defaultValue: string;
5014
+ usedIn: ("api" | "instructions" | "run_plan")[];
5015
+ chipNote: string;
5016
+ values?: string[] | undefined;
5017
+ }[] | undefined;
5018
+ timezone?: string | null | undefined;
5019
+ files?: {
5020
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
5021
+ enabled: boolean;
5022
+ bigSpreadsheets: "workbench" | "preview";
5023
+ } | undefined;
5024
+ instructions?: {
5025
+ text: string;
5026
+ editedAt: string | null;
5027
+ } | undefined;
5028
5028
  publicDescription?: string | undefined;
5029
5029
  iconAssetId?: string | null | undefined;
5030
5030
  avatar?: {
5031
5031
  version: 1;
5032
5032
  style: "clay" | "pebble" | "shapes" | "letters";
5033
5033
  seed: string;
5034
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
5034
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
5035
5035
  } | null | undefined;
5036
5036
  skills?: {
5037
- id: string;
5038
5037
  name: string;
5038
+ id: string;
5039
5039
  cases: {
5040
5040
  text: string;
5041
5041
  }[];
5042
5042
  files: {
5043
- name: string;
5044
5043
  content: string;
5044
+ name: string;
5045
5045
  }[];
5046
5046
  instructions: string;
5047
5047
  summary: string;
@@ -5063,10 +5063,10 @@ export declare const botPatchSchema: z.ZodObject<{
5063
5063
  answer?: {
5064
5064
  shape: {
5065
5065
  description: string;
5066
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
5067
- id: string;
5066
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
5068
5067
  required: boolean;
5069
5068
  name: string;
5069
+ id: string;
5070
5070
  level: number;
5071
5071
  values?: string[] | undefined;
5072
5072
  items?: Record<string, unknown> | undefined;
@@ -5077,18 +5077,18 @@ export declare const botPatchSchema: z.ZodObject<{
5077
5077
  schema?: Record<string, unknown> | undefined;
5078
5078
  } | undefined;
5079
5079
  runPlan?: {
5080
- off: string[];
5081
5080
  before: string[];
5082
5081
  after: string[];
5082
+ off: string[];
5083
5083
  preparations: {
5084
- id: string;
5085
5084
  kind: "workbench" | "mcp" | "app";
5086
5085
  name: string;
5086
+ id: string;
5087
5087
  input: Record<string, unknown>;
5088
5088
  toolKey: string;
5089
5089
  capabilityId: string;
5090
5090
  bindings: {
5091
- source: "message" | "variable" | "context";
5091
+ source: "message" | "context" | "variable";
5092
5092
  path: string[];
5093
5093
  target: string[];
5094
5094
  }[];
@@ -5098,24 +5098,24 @@ export declare const botPatchSchema: z.ZodObject<{
5098
5098
  } | undefined;
5099
5099
  triggers?: ({
5100
5100
  label: string;
5101
- id: string;
5102
5101
  kind: "app";
5103
- enabled: boolean;
5104
5102
  name: string;
5103
+ id: string;
5104
+ providerKey: string;
5105
+ enabled: boolean;
5105
5106
  variables: Record<string, unknown>;
5106
5107
  subscriptionId: string;
5107
- providerKey: string;
5108
5108
  eventTypes: string[];
5109
5109
  runsAs: "none" | "field";
5110
5110
  customerField: string;
5111
5111
  instruction: string;
5112
5112
  answerTo: "none" | "webhook";
5113
5113
  } | {
5114
- id: string;
5115
5114
  kind: "webhook";
5116
5115
  tenantId: string;
5117
- enabled: boolean;
5118
5116
  name: string;
5117
+ id: string;
5118
+ enabled: boolean;
5119
5119
  variables: Record<string, unknown>;
5120
5120
  runsAs: "none" | "field";
5121
5121
  customerField: string;
@@ -5123,12 +5123,12 @@ 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;
5127
- kind: "schedule";
5128
5126
  date: string;
5127
+ kind: "schedule";
5129
5128
  tenantId: string;
5130
- enabled: boolean;
5131
5129
  name: string;
5130
+ id: string;
5131
+ enabled: boolean;
5132
5132
  variables: Record<string, unknown>;
5133
5133
  timezone: string;
5134
5134
  customerId: string;
@@ -5152,66 +5152,46 @@ export declare const botPatchSchema: z.ZodObject<{
5152
5152
  enabled: boolean;
5153
5153
  configured: boolean;
5154
5154
  who: {
5155
+ bot: boolean;
5155
5156
  customer: boolean;
5156
5157
  company: boolean;
5157
- bot: boolean;
5158
5158
  };
5159
5159
  what: string;
5160
5160
  forgetAfter: "1 year" | "6 months" | "90 days" | "Never";
5161
5161
  } | undefined;
5162
5162
  model?: {
5163
5163
  id: string;
5164
- effort: "medium" | "minimal" | "low" | "high" | "xhigh" | "max";
5164
+ effort: "medium" | "low" | "high" | "minimal" | "xhigh" | "max";
5165
5165
  } | undefined;
5166
5166
  workbench?: {
5167
+ access: "block" | "allow" | "ask";
5168
+ languages: string[];
5167
5169
  enabled: boolean;
5168
5170
  files: "per_customer" | "per_run";
5169
5171
  configured: boolean;
5170
5172
  size: "medium" | "large" | "small";
5171
- access: "allow" | "ask" | "block";
5172
- languages: string[];
5173
5173
  longestRun: "1 minute" | "3 minutes" | "10 minutes";
5174
5174
  } | undefined;
5175
5175
  name?: string | undefined;
5176
- variables?: {
5177
- description: string;
5178
- type: "Text" | "Number" | "Yes or no" | "One of…";
5179
- required: boolean;
5180
- name: string;
5181
- defaultValue: string;
5182
- usedIn: ("api" | "instructions" | "run_plan")[];
5183
- chipNote: string;
5184
- values?: string[] | undefined;
5185
- }[] | undefined;
5186
- timezone?: string | null | undefined;
5187
- files?: {
5188
- enabled: boolean;
5189
- kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
5190
- bigSpreadsheets: "workbench" | "preview";
5191
- } | undefined;
5192
- instructions?: {
5193
- text: string;
5194
- editedAt: string | null;
5195
- } | undefined;
5196
5176
  context?: {
5197
5177
  knowledge: {
5198
- id: string;
5199
5178
  status: "failed" | "ready" | "syncing";
5200
5179
  kind: "files" | "help_center" | "website" | "note" | "notion" | "google_drive";
5201
5180
  name: string;
5181
+ id: string;
5202
5182
  detail: string;
5203
5183
  syncedLabel: string;
5184
+ url?: string | undefined;
5185
+ connectedSource?: {
5186
+ resourceId: string;
5187
+ accountId: string;
5188
+ } | undefined;
5204
5189
  error?: string | undefined;
5205
5190
  scope?: "customer" | "project" | undefined;
5206
5191
  pages?: {
5207
5192
  total: number;
5208
5193
  done: number;
5209
5194
  } | undefined;
5210
- url?: string | undefined;
5211
- connectedSource?: {
5212
- accountId: string;
5213
- resourceId: string;
5214
- } | undefined;
5215
5195
  progress?: {
5216
5196
  total: number;
5217
5197
  done: number;
@@ -5222,33 +5202,33 @@ export declare const botPatchSchema: z.ZodObject<{
5222
5202
  apis: {
5223
5203
  calls: {
5224
5204
  path: string;
5225
- id: string;
5226
5205
  name: string;
5206
+ id: string;
5227
5207
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
5228
5208
  bodyType: "json" | "form" | "xml" | "gql";
5229
- readAs: "auto" | "text" | "json" | "xml";
5209
+ readAs: "text" | "json" | "auto" | "xml";
5230
5210
  timeout: "2 seconds" | "5 seconds" | "10 seconds";
5231
5211
  summary: string;
5232
5212
  latencyMs: number | null;
5233
5213
  visibleFields: string[];
5234
5214
  effects: "read" | "write" | "unclassified";
5215
+ query?: Record<string, string> | undefined;
5235
5216
  inputSchema?: Record<string, unknown> | undefined;
5236
5217
  headers?: Record<string, string> | undefined;
5237
5218
  body?: string | undefined;
5238
5219
  sample?: unknown;
5239
- query?: Record<string, string> | undefined;
5240
- permission?: "allow" | "ask" | "block" | undefined;
5220
+ permission?: "block" | "allow" | "ask" | undefined;
5241
5221
  bindings?: {
5242
5222
  key: string;
5243
- source: "model" | "variable" | "context" | "identity";
5223
+ source: "model" | "context" | "variable" | "identity";
5244
5224
  path: string[];
5245
- target: "path" | "body" | "query" | "header";
5225
+ target: "path" | "query" | "body" | "header";
5246
5226
  }[] | undefined;
5247
5227
  responseSchema?: Record<string, unknown> | undefined;
5248
5228
  }[];
5249
- id: string;
5250
5229
  kind: "http" | "graphql" | "openapi";
5251
5230
  name: string;
5231
+ id: string;
5252
5232
  host: string;
5253
5233
  baseUrl: string;
5254
5234
  auth: "none" | "one" | "each" | "oauth";
@@ -5260,26 +5240,26 @@ export declare const botPatchSchema: z.ZodObject<{
5260
5240
  key: string;
5261
5241
  account: "customer" | "deployment" | "project";
5262
5242
  rules: {
5263
- read: "allow" | "ask" | "block";
5264
- change: "allow" | "ask" | "block";
5265
- delete: "allow" | "ask" | "block";
5243
+ read: "block" | "allow" | "ask";
5244
+ change: "block" | "allow" | "ask";
5245
+ delete: "block" | "allow" | "ask";
5266
5246
  };
5267
- actionRules: Record<string, "allow" | "ask" | "block">;
5247
+ actionRules: Record<string, "block" | "allow" | "ask">;
5268
5248
  pinned: string[];
5269
5249
  accountId?: string | undefined;
5270
5250
  askWho?: Record<string, "approvers" | "customer" | "customer-approvers"> | undefined;
5271
5251
  }[];
5272
5252
  mcpServers: {
5273
- id: string;
5274
5253
  status: "connecting" | "connected";
5275
5254
  name: string;
5255
+ id: string;
5276
5256
  url: string;
5277
5257
  toolCount: number;
5278
5258
  groups: {
5279
- tools: string[];
5280
5259
  name: "Read" | "Change" | "Delete";
5260
+ tools: string[];
5281
5261
  count: number;
5282
- rule: "allow" | "ask" | "block";
5262
+ rule: "block" | "allow" | "ask";
5283
5263
  }[];
5284
5264
  credentialId?: string | undefined;
5285
5265
  definitions?: {
@@ -5298,17 +5278,37 @@ export declare const botPatchSchema: z.ZodObject<{
5298
5278
  searchPastChats?: boolean | undefined;
5299
5279
  conversationRetentionDays?: number | undefined;
5300
5280
  } | undefined;
5281
+ variables?: {
5282
+ description: string;
5283
+ type: "Text" | "Number" | "Yes or no" | "One of…";
5284
+ required: boolean;
5285
+ name: string;
5286
+ defaultValue: string;
5287
+ usedIn: ("api" | "instructions" | "run_plan")[];
5288
+ chipNote: string;
5289
+ values?: string[] | undefined;
5290
+ }[] | undefined;
5291
+ timezone?: string | null | undefined;
5292
+ files?: {
5293
+ kinds: ("code" | "audio" | "documents" | "spreadsheets" | "images")[];
5294
+ enabled: boolean;
5295
+ bigSpreadsheets: "workbench" | "preview";
5296
+ } | undefined;
5297
+ instructions?: {
5298
+ text: string;
5299
+ editedAt: string | null;
5300
+ } | undefined;
5301
5301
  publicDescription?: string | undefined;
5302
5302
  iconAssetId?: string | null | undefined;
5303
5303
  avatar?: {
5304
5304
  version: 1;
5305
5305
  style: "clay" | "pebble" | "shapes" | "letters";
5306
5306
  seed: string;
5307
- tone: "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink" | "auto";
5307
+ tone: "auto" | "mint" | "teal" | "sky" | "iris" | "plum" | "rose" | "coral" | "apricot" | "sun" | "lime" | "slate" | "ink";
5308
5308
  } | null | undefined;
5309
5309
  skills?: {
5310
- id: string;
5311
5310
  name: string;
5311
+ id: string;
5312
5312
  cases: {
5313
5313
  text: string;
5314
5314
  }[];
@@ -5328,18 +5328,18 @@ export declare const botPatchSchema: z.ZodObject<{
5328
5328
  check: "is one of" | "is" | "is not";
5329
5329
  }[];
5330
5330
  files?: {
5331
- name: string;
5332
5331
  content: string;
5332
+ name: string;
5333
5333
  }[] | undefined;
5334
5334
  instructions?: string | undefined;
5335
5335
  }[] | undefined;
5336
5336
  answer?: {
5337
5337
  shape: {
5338
5338
  description: string;
5339
- type: "number" | "text" | "date" | "enum" | "list" | "bool" | "group";
5340
- id: string;
5339
+ type: "number" | "date" | "text" | "enum" | "list" | "bool" | "group";
5341
5340
  required: boolean;
5342
5341
  name: string;
5342
+ id: string;
5343
5343
  level: number;
5344
5344
  values?: string[] | undefined;
5345
5345
  items?: Record<string, unknown> | undefined;
@@ -5350,20 +5350,20 @@ export declare const botPatchSchema: z.ZodObject<{
5350
5350
  schema?: Record<string, unknown> | undefined;
5351
5351
  } | undefined;
5352
5352
  runPlan?: {
5353
- off: string[];
5354
5353
  before: string[];
5355
5354
  after: string[];
5355
+ off: string[];
5356
5356
  stopOnFail: string[];
5357
5357
  stepLimit: number | null;
5358
5358
  preparations?: {
5359
- id: string;
5360
5359
  kind: "workbench" | "mcp" | "app";
5361
5360
  name: string;
5361
+ id: string;
5362
5362
  input: Record<string, unknown>;
5363
5363
  toolKey: string;
5364
5364
  capabilityId: string;
5365
5365
  bindings: {
5366
- source: "message" | "variable" | "context";
5366
+ source: "message" | "context" | "variable";
5367
5367
  path: string[];
5368
5368
  target: string[];
5369
5369
  }[];
@@ -5371,12 +5371,12 @@ export declare const botPatchSchema: z.ZodObject<{
5371
5371
  } | undefined;
5372
5372
  triggers?: ({
5373
5373
  label: string;
5374
- id: string;
5375
5374
  kind: "app";
5376
- enabled: boolean;
5377
5375
  name: string;
5378
- subscriptionId: string;
5376
+ id: string;
5379
5377
  providerKey: string;
5378
+ enabled: boolean;
5379
+ subscriptionId: string;
5380
5380
  eventTypes: string[];
5381
5381
  runsAs: "none" | "field";
5382
5382
  customerField: string;
@@ -5384,11 +5384,11 @@ export declare const botPatchSchema: z.ZodObject<{
5384
5384
  answerTo: "none" | "webhook";
5385
5385
  variables?: Record<string, unknown> | undefined;
5386
5386
  } | {
5387
- id: string;
5388
5387
  kind: "webhook";
5389
5388
  tenantId: string;
5390
- enabled: boolean;
5391
5389
  name: string;
5390
+ id: string;
5391
+ enabled: boolean;
5392
5392
  runsAs: "none" | "field";
5393
5393
  customerField: string;
5394
5394
  instruction: string;
@@ -5396,12 +5396,12 @@ 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;
5400
- kind: "schedule";
5401
5399
  date: string;
5400
+ kind: "schedule";
5402
5401
  tenantId: string;
5403
- enabled: boolean;
5404
5402
  name: string;
5403
+ id: string;
5404
+ enabled: boolean;
5405
5405
  timezone: string;
5406
5406
  customerId: string;
5407
5407
  days: number[];