@stacklink/sdk 0.3.10 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compatibility.json +1 -1
- package/dist/src/domain/bot-contract.d.ts +197 -130
- package/dist/src/domain/bot-contract.d.ts.map +1 -1
- package/dist/src/domain/bot-contract.js +32 -1
- package/dist/src/domain/bot-contract.js.map +1 -1
- package/dist/src/domain/memory-contract.d.ts +9 -9
- package/dist/src/domain/platform-approval-contract.d.ts +119 -1
- package/dist/src/domain/platform-approval-contract.d.ts.map +1 -1
- package/dist/src/domain/platform-approval-contract.js +8 -0
- package/dist/src/domain/platform-approval-contract.js.map +1 -1
- package/dist/src/domain/provider-branding.d.ts.map +1 -1
- package/dist/src/domain/provider-branding.js +7 -0
- package/dist/src/domain/provider-branding.js.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.d.ts +1 -1
- package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +2 -2
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/sdk/index.d.ts +2 -2
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +1 -1
- package/dist/src/sdk/vercel-ai.d.ts +2 -0
- package/dist/src/sdk/vercel-ai.d.ts.map +1 -1
- package/dist/src/sdk/vercel-ai.js +16 -2
- package/dist/src/sdk/vercel-ai.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,12 @@ import { type ApprovalAudience } from "./platform-approval-contract.js";
|
|
|
4
4
|
/** What the list shows. Working and Needs attention are derived, never set by a person. */
|
|
5
5
|
export type BotStatus = "working" | "on" | "attention" | "paused" | "draft";
|
|
6
6
|
/** The only two states an owner can set. */
|
|
7
|
+
export declare const botWorkingStatuses: Set<string>;
|
|
8
|
+
export declare const botAttentionStatuses: Set<string>;
|
|
7
9
|
export type BotRunState = "on" | "paused";
|
|
8
10
|
export declare const botTerminalStatuses: Set<string>;
|
|
9
11
|
export type PauseFor = "1h" | "tomorrow" | "manual";
|
|
10
|
-
export type ModelEffort = "low" | "medium" | "high";
|
|
12
|
+
export type ModelEffort = "low" | "medium" | "high" | "xhigh";
|
|
11
13
|
export type AnswerFormat = "text" | "json";
|
|
12
14
|
export type AnswerDelivery = "stream" | "once" | "webhook";
|
|
13
15
|
export type SkillLoad = "auto" | "always";
|
|
@@ -352,7 +354,7 @@ export type TestCustomer = {
|
|
|
352
354
|
customerId: string | null;
|
|
353
355
|
};
|
|
354
356
|
export type TestDataMode = "sample" | "live";
|
|
355
|
-
export type TestStepKind = "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
|
|
357
|
+
export type TestStepKind = "compaction" | "api" | "app" | "skill" | "memory" | "web" | "knowledge" | "mcp" | "workbench";
|
|
356
358
|
export type TestStep = {
|
|
357
359
|
id?: string;
|
|
358
360
|
startedAt?: string;
|
|
@@ -365,6 +367,9 @@ export type TestStep = {
|
|
|
365
367
|
app?: AppKey;
|
|
366
368
|
};
|
|
367
369
|
export type BotTest = {
|
|
370
|
+
waitingOperation?: BotWaitingOperation | null;
|
|
371
|
+
connection?: BotConnectionAction | null;
|
|
372
|
+
requirements?: BotRequirement[];
|
|
368
373
|
id: string;
|
|
369
374
|
platformSessionId?: string | null;
|
|
370
375
|
revision?: number;
|
|
@@ -400,6 +405,8 @@ export type BotActivity = {
|
|
|
400
405
|
beforeTest: number;
|
|
401
406
|
};
|
|
402
407
|
export type Bot = {
|
|
408
|
+
/** Named timezone for this Bot; absent means local time is unknown. */
|
|
409
|
+
timezone?: string | null | undefined;
|
|
403
410
|
workbenchSuggestion?: {
|
|
404
411
|
size: WorkbenchSize;
|
|
405
412
|
reason: string;
|
|
@@ -424,6 +431,7 @@ export type Bot = {
|
|
|
424
431
|
live: {
|
|
425
432
|
runsNow: number;
|
|
426
433
|
runsToday: number;
|
|
434
|
+
needsAttention?: number;
|
|
427
435
|
} | null;
|
|
428
436
|
model: {
|
|
429
437
|
id: string;
|
|
@@ -459,7 +467,7 @@ export type BotReadinessIssue = {
|
|
|
459
467
|
message: string;
|
|
460
468
|
};
|
|
461
469
|
/** Partial update. Nested objects replace the stored value for that key. */
|
|
462
|
-
export type BotConfiguration = Pick<Bot, "name" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
|
|
470
|
+
export type BotConfiguration = Pick<Bot, "name" | "timezone" | "model" | "instructions" | "skills" | "memory" | "workbench" | "context" | "variables" | "answer" | "runPlan" | "triggers">;
|
|
463
471
|
export type BotPatch = Partial<BotConfiguration>;
|
|
464
472
|
export declare const botTriggerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
465
473
|
kind: z.ZodLiteral<"app">;
|
|
@@ -685,7 +693,54 @@ export type BotRunInput = {
|
|
|
685
693
|
revision?: number;
|
|
686
694
|
dataMode?: TestDataMode;
|
|
687
695
|
customerSessionId?: string;
|
|
696
|
+
/** Hosted connection completion destination on the project's configured return origin. */
|
|
697
|
+
connectionReturnUrl?: string;
|
|
688
698
|
};
|
|
699
|
+
export type BotCapabilityFact = {
|
|
700
|
+
id: string;
|
|
701
|
+
status: 'enabled' | 'disabled' | 'sample';
|
|
702
|
+
owner: 'project_owner' | 'customer';
|
|
703
|
+
account?: 'project' | 'customer';
|
|
704
|
+
};
|
|
705
|
+
/** Configuration facts are safe to disclose without granting tool execution. */
|
|
706
|
+
export declare function botCapabilityFacts(config: BotConfiguration, sample?: boolean): BotCapabilityFact[];
|
|
707
|
+
export type BotConnectionAction = {
|
|
708
|
+
kind: 'connection';
|
|
709
|
+
id: string;
|
|
710
|
+
providerKey: string;
|
|
711
|
+
providerName?: string;
|
|
712
|
+
providerIconUrl?: string;
|
|
713
|
+
owner: 'customer' | 'project_owner';
|
|
714
|
+
status: string;
|
|
715
|
+
expiresAt: string;
|
|
716
|
+
action: {
|
|
717
|
+
kind: 'open_url';
|
|
718
|
+
url: string;
|
|
719
|
+
} | null;
|
|
720
|
+
intent?: 'connect' | 'reconnect';
|
|
721
|
+
canResume?: boolean;
|
|
722
|
+
};
|
|
723
|
+
export type BotWaitingOperation = BotConnectionAction | {
|
|
724
|
+
kind: 'execution';
|
|
725
|
+
id: string;
|
|
726
|
+
};
|
|
727
|
+
export declare const botRequirementSchema: z.ZodObject<{
|
|
728
|
+
capabilityId: z.ZodString;
|
|
729
|
+
code: z.ZodEnum<["bot_not_configured", "bot_capability_disabled", "bot_sample_mode", "bot_owner_connection_required", "provider_not_found", "provider_planned", "provider_blocked"]>;
|
|
730
|
+
owner: z.ZodEnum<["project_owner", "stacklink"]>;
|
|
731
|
+
nextAction: z.ZodEnum<["configure_bot", "repair_connection", "use_live_data", "contact_administrator", "unavailable"]>;
|
|
732
|
+
}, "strict", z.ZodTypeAny, {
|
|
733
|
+
code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
|
|
734
|
+
capabilityId: string;
|
|
735
|
+
owner: "project_owner" | "stacklink";
|
|
736
|
+
nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
|
|
737
|
+
}, {
|
|
738
|
+
code: "bot_not_configured" | "bot_capability_disabled" | "bot_sample_mode" | "bot_owner_connection_required" | "provider_not_found" | "provider_planned" | "provider_blocked";
|
|
739
|
+
capabilityId: string;
|
|
740
|
+
owner: "project_owner" | "stacklink";
|
|
741
|
+
nextAction: "unavailable" | "configure_bot" | "repair_connection" | "use_live_data" | "contact_administrator";
|
|
742
|
+
}>;
|
|
743
|
+
export type BotRequirement = z.infer<typeof botRequirementSchema>;
|
|
689
744
|
export type BotRun = {
|
|
690
745
|
channel: string;
|
|
691
746
|
dataMode: TestDataMode;
|
|
@@ -706,7 +761,10 @@ export type BotRun = {
|
|
|
706
761
|
createdAt: string;
|
|
707
762
|
completedAt: string | null;
|
|
708
763
|
platformSessionId: string | null;
|
|
709
|
-
waitingOperation:
|
|
764
|
+
waitingOperation: BotWaitingOperation | null;
|
|
765
|
+
connection?: BotConnectionAction | null;
|
|
766
|
+
capabilities?: BotCapabilityFact[];
|
|
767
|
+
requirements?: BotRequirement[];
|
|
710
768
|
/** Server projection of the accepted snapshot and durable execution records. */
|
|
711
769
|
display?: BotRunDisplay;
|
|
712
770
|
};
|
|
@@ -1056,6 +1114,7 @@ export declare const botApiSchema: z.ZodObject<{
|
|
|
1056
1114
|
}>;
|
|
1057
1115
|
export declare const botConfigurationSchema: z.ZodObject<{
|
|
1058
1116
|
name: z.ZodString;
|
|
1117
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1059
1118
|
triggers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1060
1119
|
kind: z.ZodLiteral<"app">;
|
|
1061
1120
|
subscriptionId: z.ZodString;
|
|
@@ -1185,13 +1244,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1185
1244
|
}>]>, "many">>;
|
|
1186
1245
|
model: z.ZodObject<{
|
|
1187
1246
|
id: z.ZodString;
|
|
1188
|
-
effort: z.ZodEnum<["low", "medium", "high"]>;
|
|
1247
|
+
effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
|
|
1189
1248
|
}, "strict", z.ZodTypeAny, {
|
|
1190
1249
|
id: string;
|
|
1191
|
-
effort: "low" | "medium" | "high";
|
|
1250
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
1192
1251
|
}, {
|
|
1193
1252
|
id: string;
|
|
1194
|
-
effort: "low" | "medium" | "high";
|
|
1253
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
1195
1254
|
}>;
|
|
1196
1255
|
instructions: z.ZodObject<{
|
|
1197
1256
|
text: z.ZodString;
|
|
@@ -1624,15 +1683,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1624
1683
|
rule: z.ZodEnum<["allow", "ask", "block"]>;
|
|
1625
1684
|
tools: z.ZodArray<z.ZodString, "many">;
|
|
1626
1685
|
}, "strict", z.ZodTypeAny, {
|
|
1686
|
+
tools: string[];
|
|
1627
1687
|
name: "Read" | "Change" | "Delete";
|
|
1628
1688
|
count: number;
|
|
1629
1689
|
rule: "allow" | "ask" | "block";
|
|
1630
|
-
tools: string[];
|
|
1631
1690
|
}, {
|
|
1691
|
+
tools: string[];
|
|
1632
1692
|
name: "Read" | "Change" | "Delete";
|
|
1633
1693
|
count: number;
|
|
1634
1694
|
rule: "allow" | "ask" | "block";
|
|
1635
|
-
tools: string[];
|
|
1636
1695
|
}>, "many">;
|
|
1637
1696
|
}, "strict", z.ZodTypeAny, {
|
|
1638
1697
|
status: "connecting" | "connected";
|
|
@@ -1647,10 +1706,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1647
1706
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1648
1707
|
}[];
|
|
1649
1708
|
groups: {
|
|
1709
|
+
tools: string[];
|
|
1650
1710
|
name: "Read" | "Change" | "Delete";
|
|
1651
1711
|
count: number;
|
|
1652
1712
|
rule: "allow" | "ask" | "block";
|
|
1653
|
-
tools: string[];
|
|
1654
1713
|
}[];
|
|
1655
1714
|
credentialId?: string | undefined;
|
|
1656
1715
|
}, {
|
|
@@ -1660,10 +1719,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1660
1719
|
url: string;
|
|
1661
1720
|
toolCount: number;
|
|
1662
1721
|
groups: {
|
|
1722
|
+
tools: string[];
|
|
1663
1723
|
name: "Read" | "Change" | "Delete";
|
|
1664
1724
|
count: number;
|
|
1665
1725
|
rule: "allow" | "ask" | "block";
|
|
1666
|
-
tools: string[];
|
|
1667
1726
|
}[];
|
|
1668
1727
|
credentialId?: string | undefined;
|
|
1669
1728
|
definitions?: {
|
|
@@ -1728,15 +1787,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1728
1787
|
detail: string;
|
|
1729
1788
|
syncedLabel: string;
|
|
1730
1789
|
error?: string | undefined;
|
|
1790
|
+
pages?: {
|
|
1791
|
+
done: number;
|
|
1792
|
+
total: number;
|
|
1793
|
+
} | undefined;
|
|
1731
1794
|
url?: string | undefined;
|
|
1732
1795
|
connectedSource?: {
|
|
1733
1796
|
accountId: string;
|
|
1734
1797
|
resourceId: string;
|
|
1735
1798
|
} | undefined;
|
|
1736
|
-
pages?: {
|
|
1737
|
-
done: number;
|
|
1738
|
-
total: number;
|
|
1739
|
-
} | undefined;
|
|
1740
1799
|
progress?: {
|
|
1741
1800
|
done: number;
|
|
1742
1801
|
total: number;
|
|
@@ -1751,16 +1810,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1751
1810
|
detail: string;
|
|
1752
1811
|
syncedLabel: string;
|
|
1753
1812
|
error?: string | undefined;
|
|
1813
|
+
pages?: {
|
|
1814
|
+
done: number;
|
|
1815
|
+
total: number;
|
|
1816
|
+
} | undefined;
|
|
1754
1817
|
url?: string | undefined;
|
|
1755
1818
|
scope?: "customer" | "project" | undefined;
|
|
1756
1819
|
connectedSource?: {
|
|
1757
1820
|
accountId: string;
|
|
1758
1821
|
resourceId: string;
|
|
1759
1822
|
} | undefined;
|
|
1760
|
-
pages?: {
|
|
1761
|
-
done: number;
|
|
1762
|
-
total: number;
|
|
1763
|
-
} | undefined;
|
|
1764
1823
|
progress?: {
|
|
1765
1824
|
done: number;
|
|
1766
1825
|
total: number;
|
|
@@ -1791,15 +1850,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1791
1850
|
detail: string;
|
|
1792
1851
|
syncedLabel: string;
|
|
1793
1852
|
error?: string | undefined;
|
|
1853
|
+
pages?: {
|
|
1854
|
+
done: number;
|
|
1855
|
+
total: number;
|
|
1856
|
+
} | undefined;
|
|
1794
1857
|
url?: string | undefined;
|
|
1795
1858
|
connectedSource?: {
|
|
1796
1859
|
accountId: string;
|
|
1797
1860
|
resourceId: string;
|
|
1798
1861
|
} | undefined;
|
|
1799
|
-
pages?: {
|
|
1800
|
-
done: number;
|
|
1801
|
-
total: number;
|
|
1802
|
-
} | undefined;
|
|
1803
1862
|
progress?: {
|
|
1804
1863
|
done: number;
|
|
1805
1864
|
total: number;
|
|
@@ -1873,10 +1932,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1873
1932
|
outputSchema?: Record<string, unknown> | undefined;
|
|
1874
1933
|
}[];
|
|
1875
1934
|
groups: {
|
|
1935
|
+
tools: string[];
|
|
1876
1936
|
name: "Read" | "Change" | "Delete";
|
|
1877
1937
|
count: number;
|
|
1878
1938
|
rule: "allow" | "ask" | "block";
|
|
1879
|
-
tools: string[];
|
|
1880
1939
|
}[];
|
|
1881
1940
|
credentialId?: string | undefined;
|
|
1882
1941
|
}[];
|
|
@@ -1894,16 +1953,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1894
1953
|
detail: string;
|
|
1895
1954
|
syncedLabel: string;
|
|
1896
1955
|
error?: string | undefined;
|
|
1956
|
+
pages?: {
|
|
1957
|
+
done: number;
|
|
1958
|
+
total: number;
|
|
1959
|
+
} | undefined;
|
|
1897
1960
|
url?: string | undefined;
|
|
1898
1961
|
scope?: "customer" | "project" | undefined;
|
|
1899
1962
|
connectedSource?: {
|
|
1900
1963
|
accountId: string;
|
|
1901
1964
|
resourceId: string;
|
|
1902
1965
|
} | undefined;
|
|
1903
|
-
pages?: {
|
|
1904
|
-
done: number;
|
|
1905
|
-
total: number;
|
|
1906
|
-
} | undefined;
|
|
1907
1966
|
progress?: {
|
|
1908
1967
|
done: number;
|
|
1909
1968
|
total: number;
|
|
@@ -1968,10 +2027,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
1968
2027
|
url: string;
|
|
1969
2028
|
toolCount: number;
|
|
1970
2029
|
groups: {
|
|
2030
|
+
tools: string[];
|
|
1971
2031
|
name: "Read" | "Change" | "Delete";
|
|
1972
2032
|
count: number;
|
|
1973
2033
|
rule: "allow" | "ask" | "block";
|
|
1974
|
-
tools: string[];
|
|
1975
2034
|
}[];
|
|
1976
2035
|
credentialId?: string | undefined;
|
|
1977
2036
|
definitions?: {
|
|
@@ -2001,18 +2060,18 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2001
2060
|
description: z.ZodString;
|
|
2002
2061
|
}, "strict", z.ZodTypeAny, {
|
|
2003
2062
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2063
|
+
required: boolean;
|
|
2004
2064
|
name: string;
|
|
2005
2065
|
description: string;
|
|
2006
|
-
required: boolean;
|
|
2007
2066
|
defaultValue: string;
|
|
2008
2067
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
2009
2068
|
chipNote: string;
|
|
2010
2069
|
values?: string[] | undefined;
|
|
2011
2070
|
}, {
|
|
2012
2071
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2072
|
+
required: boolean;
|
|
2013
2073
|
name: string;
|
|
2014
2074
|
description: string;
|
|
2015
|
-
required: boolean;
|
|
2016
2075
|
defaultValue: string;
|
|
2017
2076
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
2018
2077
|
chipNote: string;
|
|
@@ -2032,20 +2091,20 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2032
2091
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2033
2092
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2034
2093
|
}, "strict", z.ZodTypeAny, {
|
|
2035
|
-
type: "number" | "date" | "
|
|
2094
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2036
2095
|
id: string;
|
|
2096
|
+
required: boolean;
|
|
2037
2097
|
name: string;
|
|
2038
2098
|
description: string;
|
|
2039
|
-
required: boolean;
|
|
2040
2099
|
level: number;
|
|
2041
2100
|
values?: string[] | undefined;
|
|
2042
2101
|
items?: Record<string, unknown> | undefined;
|
|
2043
2102
|
}, {
|
|
2044
|
-
type: "number" | "date" | "
|
|
2103
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2045
2104
|
id: string;
|
|
2105
|
+
required: boolean;
|
|
2046
2106
|
name: string;
|
|
2047
2107
|
description: string;
|
|
2048
|
-
required: boolean;
|
|
2049
2108
|
level: number;
|
|
2050
2109
|
values?: string[] | undefined;
|
|
2051
2110
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2053,11 +2112,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2053
2112
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2054
2113
|
}, "strict", z.ZodTypeAny, {
|
|
2055
2114
|
shape: {
|
|
2056
|
-
type: "number" | "date" | "
|
|
2115
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2057
2116
|
id: string;
|
|
2117
|
+
required: boolean;
|
|
2058
2118
|
name: string;
|
|
2059
2119
|
description: string;
|
|
2060
|
-
required: boolean;
|
|
2061
2120
|
level: number;
|
|
2062
2121
|
values?: string[] | undefined;
|
|
2063
2122
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2068,11 +2127,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2068
2127
|
schema?: Record<string, unknown> | undefined;
|
|
2069
2128
|
}, {
|
|
2070
2129
|
shape: {
|
|
2071
|
-
type: "number" | "date" | "
|
|
2130
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2072
2131
|
id: string;
|
|
2132
|
+
required: boolean;
|
|
2073
2133
|
name: string;
|
|
2074
2134
|
description: string;
|
|
2075
|
-
required: boolean;
|
|
2076
2135
|
level: number;
|
|
2077
2136
|
values?: string[] | undefined;
|
|
2078
2137
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2107,24 +2166,24 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2107
2166
|
kind: "workbench" | "mcp" | "app";
|
|
2108
2167
|
id: string;
|
|
2109
2168
|
name: string;
|
|
2169
|
+
capabilityId: string;
|
|
2110
2170
|
bindings: {
|
|
2111
2171
|
path: string[];
|
|
2112
2172
|
source: "message" | "variable" | "context";
|
|
2113
2173
|
target: string[];
|
|
2114
2174
|
}[];
|
|
2115
|
-
capabilityId: string;
|
|
2116
2175
|
toolKey: string;
|
|
2117
2176
|
input: Record<string, unknown>;
|
|
2118
2177
|
}, {
|
|
2119
2178
|
kind: "workbench" | "mcp" | "app";
|
|
2120
2179
|
id: string;
|
|
2121
2180
|
name: string;
|
|
2181
|
+
capabilityId: string;
|
|
2122
2182
|
bindings: {
|
|
2123
2183
|
path: string[];
|
|
2124
2184
|
source: "message" | "variable" | "context";
|
|
2125
2185
|
target: string[];
|
|
2126
2186
|
}[];
|
|
2127
|
-
capabilityId: string;
|
|
2128
2187
|
toolKey: string;
|
|
2129
2188
|
input: Record<string, unknown>;
|
|
2130
2189
|
}>, "many">>;
|
|
@@ -2134,40 +2193,40 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2134
2193
|
stopOnFail: z.ZodArray<z.ZodString, "many">;
|
|
2135
2194
|
stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
|
|
2136
2195
|
}, "strict", z.ZodTypeAny, {
|
|
2196
|
+
off: string[];
|
|
2137
2197
|
before: string[];
|
|
2138
2198
|
after: string[];
|
|
2139
2199
|
preparations: {
|
|
2140
2200
|
kind: "workbench" | "mcp" | "app";
|
|
2141
2201
|
id: string;
|
|
2142
2202
|
name: string;
|
|
2203
|
+
capabilityId: string;
|
|
2143
2204
|
bindings: {
|
|
2144
2205
|
path: string[];
|
|
2145
2206
|
source: "message" | "variable" | "context";
|
|
2146
2207
|
target: string[];
|
|
2147
2208
|
}[];
|
|
2148
|
-
capabilityId: string;
|
|
2149
2209
|
toolKey: string;
|
|
2150
2210
|
input: Record<string, unknown>;
|
|
2151
2211
|
}[];
|
|
2152
|
-
off: string[];
|
|
2153
2212
|
stopOnFail: string[];
|
|
2154
2213
|
stepLimit: number;
|
|
2155
2214
|
}, {
|
|
2215
|
+
off: string[];
|
|
2156
2216
|
before: string[];
|
|
2157
2217
|
after: string[];
|
|
2158
|
-
off: string[];
|
|
2159
2218
|
stopOnFail: string[];
|
|
2160
2219
|
stepLimit: number | null;
|
|
2161
2220
|
preparations?: {
|
|
2162
2221
|
kind: "workbench" | "mcp" | "app";
|
|
2163
2222
|
id: string;
|
|
2164
2223
|
name: string;
|
|
2224
|
+
capabilityId: string;
|
|
2165
2225
|
bindings: {
|
|
2166
2226
|
path: string[];
|
|
2167
2227
|
source: "message" | "variable" | "context";
|
|
2168
2228
|
target: string[];
|
|
2169
2229
|
}[];
|
|
2170
|
-
capabilityId: string;
|
|
2171
2230
|
toolKey: string;
|
|
2172
2231
|
input: Record<string, unknown>;
|
|
2173
2232
|
}[] | undefined;
|
|
@@ -2197,15 +2256,15 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2197
2256
|
detail: string;
|
|
2198
2257
|
syncedLabel: string;
|
|
2199
2258
|
error?: string | undefined;
|
|
2259
|
+
pages?: {
|
|
2260
|
+
done: number;
|
|
2261
|
+
total: number;
|
|
2262
|
+
} | undefined;
|
|
2200
2263
|
url?: string | undefined;
|
|
2201
2264
|
connectedSource?: {
|
|
2202
2265
|
accountId: string;
|
|
2203
2266
|
resourceId: string;
|
|
2204
2267
|
} | undefined;
|
|
2205
|
-
pages?: {
|
|
2206
|
-
done: number;
|
|
2207
|
-
total: number;
|
|
2208
|
-
} | undefined;
|
|
2209
2268
|
progress?: {
|
|
2210
2269
|
done: number;
|
|
2211
2270
|
total: number;
|
|
@@ -2279,10 +2338,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2279
2338
|
outputSchema?: Record<string, unknown> | undefined;
|
|
2280
2339
|
}[];
|
|
2281
2340
|
groups: {
|
|
2341
|
+
tools: string[];
|
|
2282
2342
|
name: "Read" | "Change" | "Delete";
|
|
2283
2343
|
count: number;
|
|
2284
2344
|
rule: "allow" | "ask" | "block";
|
|
2285
|
-
tools: string[];
|
|
2286
2345
|
}[];
|
|
2287
2346
|
credentialId?: string | undefined;
|
|
2288
2347
|
}[];
|
|
@@ -2306,13 +2365,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2306
2365
|
};
|
|
2307
2366
|
model: {
|
|
2308
2367
|
id: string;
|
|
2309
|
-
effort: "low" | "medium" | "high";
|
|
2368
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
2310
2369
|
};
|
|
2311
2370
|
variables: {
|
|
2312
2371
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2372
|
+
required: boolean;
|
|
2313
2373
|
name: string;
|
|
2314
2374
|
description: string;
|
|
2315
|
-
required: boolean;
|
|
2316
2375
|
defaultValue: string;
|
|
2317
2376
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
2318
2377
|
chipNote: string;
|
|
@@ -2347,11 +2406,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2347
2406
|
}[];
|
|
2348
2407
|
answer: {
|
|
2349
2408
|
shape: {
|
|
2350
|
-
type: "number" | "date" | "
|
|
2409
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2351
2410
|
id: string;
|
|
2411
|
+
required: boolean;
|
|
2352
2412
|
name: string;
|
|
2353
2413
|
description: string;
|
|
2354
|
-
required: boolean;
|
|
2355
2414
|
level: number;
|
|
2356
2415
|
values?: string[] | undefined;
|
|
2357
2416
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2362,22 +2421,22 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2362
2421
|
schema?: Record<string, unknown> | undefined;
|
|
2363
2422
|
};
|
|
2364
2423
|
runPlan: {
|
|
2424
|
+
off: string[];
|
|
2365
2425
|
before: string[];
|
|
2366
2426
|
after: string[];
|
|
2367
2427
|
preparations: {
|
|
2368
2428
|
kind: "workbench" | "mcp" | "app";
|
|
2369
2429
|
id: string;
|
|
2370
2430
|
name: string;
|
|
2431
|
+
capabilityId: string;
|
|
2371
2432
|
bindings: {
|
|
2372
2433
|
path: string[];
|
|
2373
2434
|
source: "message" | "variable" | "context";
|
|
2374
2435
|
target: string[];
|
|
2375
2436
|
}[];
|
|
2376
|
-
capabilityId: string;
|
|
2377
2437
|
toolKey: string;
|
|
2378
2438
|
input: Record<string, unknown>;
|
|
2379
2439
|
}[];
|
|
2380
|
-
off: string[];
|
|
2381
2440
|
stopOnFail: string[];
|
|
2382
2441
|
stepLimit: number;
|
|
2383
2442
|
};
|
|
@@ -2424,6 +2483,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2424
2483
|
timezone: string;
|
|
2425
2484
|
customerId: string;
|
|
2426
2485
|
})[];
|
|
2486
|
+
timezone?: string | null | undefined;
|
|
2427
2487
|
}, {
|
|
2428
2488
|
name: string;
|
|
2429
2489
|
workbench: {
|
|
@@ -2448,16 +2508,16 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2448
2508
|
detail: string;
|
|
2449
2509
|
syncedLabel: string;
|
|
2450
2510
|
error?: string | undefined;
|
|
2511
|
+
pages?: {
|
|
2512
|
+
done: number;
|
|
2513
|
+
total: number;
|
|
2514
|
+
} | undefined;
|
|
2451
2515
|
url?: string | undefined;
|
|
2452
2516
|
scope?: "customer" | "project" | undefined;
|
|
2453
2517
|
connectedSource?: {
|
|
2454
2518
|
accountId: string;
|
|
2455
2519
|
resourceId: string;
|
|
2456
2520
|
} | undefined;
|
|
2457
|
-
pages?: {
|
|
2458
|
-
done: number;
|
|
2459
|
-
total: number;
|
|
2460
|
-
} | undefined;
|
|
2461
2521
|
progress?: {
|
|
2462
2522
|
done: number;
|
|
2463
2523
|
total: number;
|
|
@@ -2522,10 +2582,10 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2522
2582
|
url: string;
|
|
2523
2583
|
toolCount: number;
|
|
2524
2584
|
groups: {
|
|
2585
|
+
tools: string[];
|
|
2525
2586
|
name: "Read" | "Change" | "Delete";
|
|
2526
2587
|
count: number;
|
|
2527
2588
|
rule: "allow" | "ask" | "block";
|
|
2528
|
-
tools: string[];
|
|
2529
2589
|
}[];
|
|
2530
2590
|
credentialId?: string | undefined;
|
|
2531
2591
|
definitions?: {
|
|
@@ -2558,13 +2618,13 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2558
2618
|
};
|
|
2559
2619
|
model: {
|
|
2560
2620
|
id: string;
|
|
2561
|
-
effort: "low" | "medium" | "high";
|
|
2621
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
2562
2622
|
};
|
|
2563
2623
|
variables: {
|
|
2564
2624
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
2625
|
+
required: boolean;
|
|
2565
2626
|
name: string;
|
|
2566
2627
|
description: string;
|
|
2567
|
-
required: boolean;
|
|
2568
2628
|
defaultValue: string;
|
|
2569
2629
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
2570
2630
|
chipNote: string;
|
|
@@ -2599,11 +2659,11 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2599
2659
|
}[];
|
|
2600
2660
|
answer: {
|
|
2601
2661
|
shape: {
|
|
2602
|
-
type: "number" | "date" | "
|
|
2662
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
2603
2663
|
id: string;
|
|
2664
|
+
required: boolean;
|
|
2604
2665
|
name: string;
|
|
2605
2666
|
description: string;
|
|
2606
|
-
required: boolean;
|
|
2607
2667
|
level: number;
|
|
2608
2668
|
values?: string[] | undefined;
|
|
2609
2669
|
items?: Record<string, unknown> | undefined;
|
|
@@ -2614,25 +2674,26 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2614
2674
|
schema?: Record<string, unknown> | undefined;
|
|
2615
2675
|
};
|
|
2616
2676
|
runPlan: {
|
|
2677
|
+
off: string[];
|
|
2617
2678
|
before: string[];
|
|
2618
2679
|
after: string[];
|
|
2619
|
-
off: string[];
|
|
2620
2680
|
stopOnFail: string[];
|
|
2621
2681
|
stepLimit: number | null;
|
|
2622
2682
|
preparations?: {
|
|
2623
2683
|
kind: "workbench" | "mcp" | "app";
|
|
2624
2684
|
id: string;
|
|
2625
2685
|
name: string;
|
|
2686
|
+
capabilityId: string;
|
|
2626
2687
|
bindings: {
|
|
2627
2688
|
path: string[];
|
|
2628
2689
|
source: "message" | "variable" | "context";
|
|
2629
2690
|
target: string[];
|
|
2630
2691
|
}[];
|
|
2631
|
-
capabilityId: string;
|
|
2632
2692
|
toolKey: string;
|
|
2633
2693
|
input: Record<string, unknown>;
|
|
2634
2694
|
}[] | undefined;
|
|
2635
2695
|
};
|
|
2696
|
+
timezone?: string | null | undefined;
|
|
2636
2697
|
triggers?: ({
|
|
2637
2698
|
kind: "app";
|
|
2638
2699
|
id: string;
|
|
@@ -2679,6 +2740,7 @@ export declare const botConfigurationSchema: z.ZodObject<{
|
|
|
2679
2740
|
}>;
|
|
2680
2741
|
export declare const botPatchSchema: z.ZodObject<{
|
|
2681
2742
|
name: z.ZodOptional<z.ZodString>;
|
|
2743
|
+
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>>;
|
|
2682
2744
|
triggers: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2683
2745
|
kind: z.ZodLiteral<"app">;
|
|
2684
2746
|
subscriptionId: z.ZodString;
|
|
@@ -2808,13 +2870,13 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
2808
2870
|
}>]>, "many">>>;
|
|
2809
2871
|
model: z.ZodOptional<z.ZodObject<{
|
|
2810
2872
|
id: z.ZodString;
|
|
2811
|
-
effort: z.ZodEnum<["low", "medium", "high"]>;
|
|
2873
|
+
effort: z.ZodEnum<["low", "medium", "high", "xhigh"]>;
|
|
2812
2874
|
}, "strict", z.ZodTypeAny, {
|
|
2813
2875
|
id: string;
|
|
2814
|
-
effort: "low" | "medium" | "high";
|
|
2876
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
2815
2877
|
}, {
|
|
2816
2878
|
id: string;
|
|
2817
|
-
effort: "low" | "medium" | "high";
|
|
2879
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
2818
2880
|
}>>;
|
|
2819
2881
|
instructions: z.ZodOptional<z.ZodObject<{
|
|
2820
2882
|
text: z.ZodString;
|
|
@@ -3247,15 +3309,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3247
3309
|
rule: z.ZodEnum<["allow", "ask", "block"]>;
|
|
3248
3310
|
tools: z.ZodArray<z.ZodString, "many">;
|
|
3249
3311
|
}, "strict", z.ZodTypeAny, {
|
|
3312
|
+
tools: string[];
|
|
3250
3313
|
name: "Read" | "Change" | "Delete";
|
|
3251
3314
|
count: number;
|
|
3252
3315
|
rule: "allow" | "ask" | "block";
|
|
3253
|
-
tools: string[];
|
|
3254
3316
|
}, {
|
|
3317
|
+
tools: string[];
|
|
3255
3318
|
name: "Read" | "Change" | "Delete";
|
|
3256
3319
|
count: number;
|
|
3257
3320
|
rule: "allow" | "ask" | "block";
|
|
3258
|
-
tools: string[];
|
|
3259
3321
|
}>, "many">;
|
|
3260
3322
|
}, "strict", z.ZodTypeAny, {
|
|
3261
3323
|
status: "connecting" | "connected";
|
|
@@ -3270,10 +3332,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3270
3332
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3271
3333
|
}[];
|
|
3272
3334
|
groups: {
|
|
3335
|
+
tools: string[];
|
|
3273
3336
|
name: "Read" | "Change" | "Delete";
|
|
3274
3337
|
count: number;
|
|
3275
3338
|
rule: "allow" | "ask" | "block";
|
|
3276
|
-
tools: string[];
|
|
3277
3339
|
}[];
|
|
3278
3340
|
credentialId?: string | undefined;
|
|
3279
3341
|
}, {
|
|
@@ -3283,10 +3345,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3283
3345
|
url: string;
|
|
3284
3346
|
toolCount: number;
|
|
3285
3347
|
groups: {
|
|
3348
|
+
tools: string[];
|
|
3286
3349
|
name: "Read" | "Change" | "Delete";
|
|
3287
3350
|
count: number;
|
|
3288
3351
|
rule: "allow" | "ask" | "block";
|
|
3289
|
-
tools: string[];
|
|
3290
3352
|
}[];
|
|
3291
3353
|
credentialId?: string | undefined;
|
|
3292
3354
|
definitions?: {
|
|
@@ -3351,15 +3413,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3351
3413
|
detail: string;
|
|
3352
3414
|
syncedLabel: string;
|
|
3353
3415
|
error?: string | undefined;
|
|
3416
|
+
pages?: {
|
|
3417
|
+
done: number;
|
|
3418
|
+
total: number;
|
|
3419
|
+
} | undefined;
|
|
3354
3420
|
url?: string | undefined;
|
|
3355
3421
|
connectedSource?: {
|
|
3356
3422
|
accountId: string;
|
|
3357
3423
|
resourceId: string;
|
|
3358
3424
|
} | undefined;
|
|
3359
|
-
pages?: {
|
|
3360
|
-
done: number;
|
|
3361
|
-
total: number;
|
|
3362
|
-
} | undefined;
|
|
3363
3425
|
progress?: {
|
|
3364
3426
|
done: number;
|
|
3365
3427
|
total: number;
|
|
@@ -3374,16 +3436,16 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3374
3436
|
detail: string;
|
|
3375
3437
|
syncedLabel: string;
|
|
3376
3438
|
error?: string | undefined;
|
|
3439
|
+
pages?: {
|
|
3440
|
+
done: number;
|
|
3441
|
+
total: number;
|
|
3442
|
+
} | undefined;
|
|
3377
3443
|
url?: string | undefined;
|
|
3378
3444
|
scope?: "customer" | "project" | undefined;
|
|
3379
3445
|
connectedSource?: {
|
|
3380
3446
|
accountId: string;
|
|
3381
3447
|
resourceId: string;
|
|
3382
3448
|
} | undefined;
|
|
3383
|
-
pages?: {
|
|
3384
|
-
done: number;
|
|
3385
|
-
total: number;
|
|
3386
|
-
} | undefined;
|
|
3387
3449
|
progress?: {
|
|
3388
3450
|
done: number;
|
|
3389
3451
|
total: number;
|
|
@@ -3414,15 +3476,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3414
3476
|
detail: string;
|
|
3415
3477
|
syncedLabel: string;
|
|
3416
3478
|
error?: string | undefined;
|
|
3479
|
+
pages?: {
|
|
3480
|
+
done: number;
|
|
3481
|
+
total: number;
|
|
3482
|
+
} | undefined;
|
|
3417
3483
|
url?: string | undefined;
|
|
3418
3484
|
connectedSource?: {
|
|
3419
3485
|
accountId: string;
|
|
3420
3486
|
resourceId: string;
|
|
3421
3487
|
} | undefined;
|
|
3422
|
-
pages?: {
|
|
3423
|
-
done: number;
|
|
3424
|
-
total: number;
|
|
3425
|
-
} | undefined;
|
|
3426
3488
|
progress?: {
|
|
3427
3489
|
done: number;
|
|
3428
3490
|
total: number;
|
|
@@ -3496,10 +3558,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3496
3558
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3497
3559
|
}[];
|
|
3498
3560
|
groups: {
|
|
3561
|
+
tools: string[];
|
|
3499
3562
|
name: "Read" | "Change" | "Delete";
|
|
3500
3563
|
count: number;
|
|
3501
3564
|
rule: "allow" | "ask" | "block";
|
|
3502
|
-
tools: string[];
|
|
3503
3565
|
}[];
|
|
3504
3566
|
credentialId?: string | undefined;
|
|
3505
3567
|
}[];
|
|
@@ -3517,16 +3579,16 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3517
3579
|
detail: string;
|
|
3518
3580
|
syncedLabel: string;
|
|
3519
3581
|
error?: string | undefined;
|
|
3582
|
+
pages?: {
|
|
3583
|
+
done: number;
|
|
3584
|
+
total: number;
|
|
3585
|
+
} | undefined;
|
|
3520
3586
|
url?: string | undefined;
|
|
3521
3587
|
scope?: "customer" | "project" | undefined;
|
|
3522
3588
|
connectedSource?: {
|
|
3523
3589
|
accountId: string;
|
|
3524
3590
|
resourceId: string;
|
|
3525
3591
|
} | undefined;
|
|
3526
|
-
pages?: {
|
|
3527
|
-
done: number;
|
|
3528
|
-
total: number;
|
|
3529
|
-
} | undefined;
|
|
3530
3592
|
progress?: {
|
|
3531
3593
|
done: number;
|
|
3532
3594
|
total: number;
|
|
@@ -3591,10 +3653,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3591
3653
|
url: string;
|
|
3592
3654
|
toolCount: number;
|
|
3593
3655
|
groups: {
|
|
3656
|
+
tools: string[];
|
|
3594
3657
|
name: "Read" | "Change" | "Delete";
|
|
3595
3658
|
count: number;
|
|
3596
3659
|
rule: "allow" | "ask" | "block";
|
|
3597
|
-
tools: string[];
|
|
3598
3660
|
}[];
|
|
3599
3661
|
credentialId?: string | undefined;
|
|
3600
3662
|
definitions?: {
|
|
@@ -3624,18 +3686,18 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3624
3686
|
description: z.ZodString;
|
|
3625
3687
|
}, "strict", z.ZodTypeAny, {
|
|
3626
3688
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3689
|
+
required: boolean;
|
|
3627
3690
|
name: string;
|
|
3628
3691
|
description: string;
|
|
3629
|
-
required: boolean;
|
|
3630
3692
|
defaultValue: string;
|
|
3631
3693
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3632
3694
|
chipNote: string;
|
|
3633
3695
|
values?: string[] | undefined;
|
|
3634
3696
|
}, {
|
|
3635
3697
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3698
|
+
required: boolean;
|
|
3636
3699
|
name: string;
|
|
3637
3700
|
description: string;
|
|
3638
|
-
required: boolean;
|
|
3639
3701
|
defaultValue: string;
|
|
3640
3702
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3641
3703
|
chipNote: string;
|
|
@@ -3655,20 +3717,20 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3655
3717
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3656
3718
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3657
3719
|
}, "strict", z.ZodTypeAny, {
|
|
3658
|
-
type: "number" | "date" | "
|
|
3720
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3659
3721
|
id: string;
|
|
3722
|
+
required: boolean;
|
|
3660
3723
|
name: string;
|
|
3661
3724
|
description: string;
|
|
3662
|
-
required: boolean;
|
|
3663
3725
|
level: number;
|
|
3664
3726
|
values?: string[] | undefined;
|
|
3665
3727
|
items?: Record<string, unknown> | undefined;
|
|
3666
3728
|
}, {
|
|
3667
|
-
type: "number" | "date" | "
|
|
3729
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3668
3730
|
id: string;
|
|
3731
|
+
required: boolean;
|
|
3669
3732
|
name: string;
|
|
3670
3733
|
description: string;
|
|
3671
|
-
required: boolean;
|
|
3672
3734
|
level: number;
|
|
3673
3735
|
values?: string[] | undefined;
|
|
3674
3736
|
items?: Record<string, unknown> | undefined;
|
|
@@ -3676,11 +3738,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3676
3738
|
schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3677
3739
|
}, "strict", z.ZodTypeAny, {
|
|
3678
3740
|
shape: {
|
|
3679
|
-
type: "number" | "date" | "
|
|
3741
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3680
3742
|
id: string;
|
|
3743
|
+
required: boolean;
|
|
3681
3744
|
name: string;
|
|
3682
3745
|
description: string;
|
|
3683
|
-
required: boolean;
|
|
3684
3746
|
level: number;
|
|
3685
3747
|
values?: string[] | undefined;
|
|
3686
3748
|
items?: Record<string, unknown> | undefined;
|
|
@@ -3691,11 +3753,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3691
3753
|
schema?: Record<string, unknown> | undefined;
|
|
3692
3754
|
}, {
|
|
3693
3755
|
shape: {
|
|
3694
|
-
type: "number" | "date" | "
|
|
3756
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3695
3757
|
id: string;
|
|
3758
|
+
required: boolean;
|
|
3696
3759
|
name: string;
|
|
3697
3760
|
description: string;
|
|
3698
|
-
required: boolean;
|
|
3699
3761
|
level: number;
|
|
3700
3762
|
values?: string[] | undefined;
|
|
3701
3763
|
items?: Record<string, unknown> | undefined;
|
|
@@ -3730,24 +3792,24 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3730
3792
|
kind: "workbench" | "mcp" | "app";
|
|
3731
3793
|
id: string;
|
|
3732
3794
|
name: string;
|
|
3795
|
+
capabilityId: string;
|
|
3733
3796
|
bindings: {
|
|
3734
3797
|
path: string[];
|
|
3735
3798
|
source: "message" | "variable" | "context";
|
|
3736
3799
|
target: string[];
|
|
3737
3800
|
}[];
|
|
3738
|
-
capabilityId: string;
|
|
3739
3801
|
toolKey: string;
|
|
3740
3802
|
input: Record<string, unknown>;
|
|
3741
3803
|
}, {
|
|
3742
3804
|
kind: "workbench" | "mcp" | "app";
|
|
3743
3805
|
id: string;
|
|
3744
3806
|
name: string;
|
|
3807
|
+
capabilityId: string;
|
|
3745
3808
|
bindings: {
|
|
3746
3809
|
path: string[];
|
|
3747
3810
|
source: "message" | "variable" | "context";
|
|
3748
3811
|
target: string[];
|
|
3749
3812
|
}[];
|
|
3750
|
-
capabilityId: string;
|
|
3751
3813
|
toolKey: string;
|
|
3752
3814
|
input: Record<string, unknown>;
|
|
3753
3815
|
}>, "many">>;
|
|
@@ -3757,40 +3819,40 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3757
3819
|
stopOnFail: z.ZodArray<z.ZodString, "many">;
|
|
3758
3820
|
stepLimit: z.ZodEffects<z.ZodNullable<z.ZodNumber>, number, number | null>;
|
|
3759
3821
|
}, "strict", z.ZodTypeAny, {
|
|
3822
|
+
off: string[];
|
|
3760
3823
|
before: string[];
|
|
3761
3824
|
after: string[];
|
|
3762
3825
|
preparations: {
|
|
3763
3826
|
kind: "workbench" | "mcp" | "app";
|
|
3764
3827
|
id: string;
|
|
3765
3828
|
name: string;
|
|
3829
|
+
capabilityId: string;
|
|
3766
3830
|
bindings: {
|
|
3767
3831
|
path: string[];
|
|
3768
3832
|
source: "message" | "variable" | "context";
|
|
3769
3833
|
target: string[];
|
|
3770
3834
|
}[];
|
|
3771
|
-
capabilityId: string;
|
|
3772
3835
|
toolKey: string;
|
|
3773
3836
|
input: Record<string, unknown>;
|
|
3774
3837
|
}[];
|
|
3775
|
-
off: string[];
|
|
3776
3838
|
stopOnFail: string[];
|
|
3777
3839
|
stepLimit: number;
|
|
3778
3840
|
}, {
|
|
3841
|
+
off: string[];
|
|
3779
3842
|
before: string[];
|
|
3780
3843
|
after: string[];
|
|
3781
|
-
off: string[];
|
|
3782
3844
|
stopOnFail: string[];
|
|
3783
3845
|
stepLimit: number | null;
|
|
3784
3846
|
preparations?: {
|
|
3785
3847
|
kind: "workbench" | "mcp" | "app";
|
|
3786
3848
|
id: string;
|
|
3787
3849
|
name: string;
|
|
3850
|
+
capabilityId: string;
|
|
3788
3851
|
bindings: {
|
|
3789
3852
|
path: string[];
|
|
3790
3853
|
source: "message" | "variable" | "context";
|
|
3791
3854
|
target: string[];
|
|
3792
3855
|
}[];
|
|
3793
|
-
capabilityId: string;
|
|
3794
3856
|
toolKey: string;
|
|
3795
3857
|
input: Record<string, unknown>;
|
|
3796
3858
|
}[] | undefined;
|
|
@@ -3820,15 +3882,15 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3820
3882
|
detail: string;
|
|
3821
3883
|
syncedLabel: string;
|
|
3822
3884
|
error?: string | undefined;
|
|
3885
|
+
pages?: {
|
|
3886
|
+
done: number;
|
|
3887
|
+
total: number;
|
|
3888
|
+
} | undefined;
|
|
3823
3889
|
url?: string | undefined;
|
|
3824
3890
|
connectedSource?: {
|
|
3825
3891
|
accountId: string;
|
|
3826
3892
|
resourceId: string;
|
|
3827
3893
|
} | undefined;
|
|
3828
|
-
pages?: {
|
|
3829
|
-
done: number;
|
|
3830
|
-
total: number;
|
|
3831
|
-
} | undefined;
|
|
3832
3894
|
progress?: {
|
|
3833
3895
|
done: number;
|
|
3834
3896
|
total: number;
|
|
@@ -3902,10 +3964,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3902
3964
|
outputSchema?: Record<string, unknown> | undefined;
|
|
3903
3965
|
}[];
|
|
3904
3966
|
groups: {
|
|
3967
|
+
tools: string[];
|
|
3905
3968
|
name: "Read" | "Change" | "Delete";
|
|
3906
3969
|
count: number;
|
|
3907
3970
|
rule: "allow" | "ask" | "block";
|
|
3908
|
-
tools: string[];
|
|
3909
3971
|
}[];
|
|
3910
3972
|
credentialId?: string | undefined;
|
|
3911
3973
|
}[];
|
|
@@ -3929,18 +3991,19 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3929
3991
|
} | undefined;
|
|
3930
3992
|
model?: {
|
|
3931
3993
|
id: string;
|
|
3932
|
-
effort: "low" | "medium" | "high";
|
|
3994
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
3933
3995
|
} | undefined;
|
|
3934
3996
|
variables?: {
|
|
3935
3997
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
3998
|
+
required: boolean;
|
|
3936
3999
|
name: string;
|
|
3937
4000
|
description: string;
|
|
3938
|
-
required: boolean;
|
|
3939
4001
|
defaultValue: string;
|
|
3940
4002
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
3941
4003
|
chipNote: string;
|
|
3942
4004
|
values?: string[] | undefined;
|
|
3943
4005
|
}[] | undefined;
|
|
4006
|
+
timezone?: string | null | undefined;
|
|
3944
4007
|
skills?: {
|
|
3945
4008
|
id: string;
|
|
3946
4009
|
name: string;
|
|
@@ -3970,11 +4033,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3970
4033
|
}[] | undefined;
|
|
3971
4034
|
answer?: {
|
|
3972
4035
|
shape: {
|
|
3973
|
-
type: "number" | "date" | "
|
|
4036
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
3974
4037
|
id: string;
|
|
4038
|
+
required: boolean;
|
|
3975
4039
|
name: string;
|
|
3976
4040
|
description: string;
|
|
3977
|
-
required: boolean;
|
|
3978
4041
|
level: number;
|
|
3979
4042
|
values?: string[] | undefined;
|
|
3980
4043
|
items?: Record<string, unknown> | undefined;
|
|
@@ -3985,22 +4048,22 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
3985
4048
|
schema?: Record<string, unknown> | undefined;
|
|
3986
4049
|
} | undefined;
|
|
3987
4050
|
runPlan?: {
|
|
4051
|
+
off: string[];
|
|
3988
4052
|
before: string[];
|
|
3989
4053
|
after: string[];
|
|
3990
4054
|
preparations: {
|
|
3991
4055
|
kind: "workbench" | "mcp" | "app";
|
|
3992
4056
|
id: string;
|
|
3993
4057
|
name: string;
|
|
4058
|
+
capabilityId: string;
|
|
3994
4059
|
bindings: {
|
|
3995
4060
|
path: string[];
|
|
3996
4061
|
source: "message" | "variable" | "context";
|
|
3997
4062
|
target: string[];
|
|
3998
4063
|
}[];
|
|
3999
|
-
capabilityId: string;
|
|
4000
4064
|
toolKey: string;
|
|
4001
4065
|
input: Record<string, unknown>;
|
|
4002
4066
|
}[];
|
|
4003
|
-
off: string[];
|
|
4004
4067
|
stopOnFail: string[];
|
|
4005
4068
|
stepLimit: number;
|
|
4006
4069
|
} | undefined;
|
|
@@ -4071,16 +4134,16 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4071
4134
|
detail: string;
|
|
4072
4135
|
syncedLabel: string;
|
|
4073
4136
|
error?: string | undefined;
|
|
4137
|
+
pages?: {
|
|
4138
|
+
done: number;
|
|
4139
|
+
total: number;
|
|
4140
|
+
} | undefined;
|
|
4074
4141
|
url?: string | undefined;
|
|
4075
4142
|
scope?: "customer" | "project" | undefined;
|
|
4076
4143
|
connectedSource?: {
|
|
4077
4144
|
accountId: string;
|
|
4078
4145
|
resourceId: string;
|
|
4079
4146
|
} | undefined;
|
|
4080
|
-
pages?: {
|
|
4081
|
-
done: number;
|
|
4082
|
-
total: number;
|
|
4083
|
-
} | undefined;
|
|
4084
4147
|
progress?: {
|
|
4085
4148
|
done: number;
|
|
4086
4149
|
total: number;
|
|
@@ -4145,10 +4208,10 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4145
4208
|
url: string;
|
|
4146
4209
|
toolCount: number;
|
|
4147
4210
|
groups: {
|
|
4211
|
+
tools: string[];
|
|
4148
4212
|
name: "Read" | "Change" | "Delete";
|
|
4149
4213
|
count: number;
|
|
4150
4214
|
rule: "allow" | "ask" | "block";
|
|
4151
|
-
tools: string[];
|
|
4152
4215
|
}[];
|
|
4153
4216
|
credentialId?: string | undefined;
|
|
4154
4217
|
definitions?: {
|
|
@@ -4181,18 +4244,19 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4181
4244
|
} | undefined;
|
|
4182
4245
|
model?: {
|
|
4183
4246
|
id: string;
|
|
4184
|
-
effort: "low" | "medium" | "high";
|
|
4247
|
+
effort: "low" | "medium" | "high" | "xhigh";
|
|
4185
4248
|
} | undefined;
|
|
4186
4249
|
variables?: {
|
|
4187
4250
|
type: "Text" | "Number" | "Yes or no" | "One of…";
|
|
4251
|
+
required: boolean;
|
|
4188
4252
|
name: string;
|
|
4189
4253
|
description: string;
|
|
4190
|
-
required: boolean;
|
|
4191
4254
|
defaultValue: string;
|
|
4192
4255
|
usedIn: ("instructions" | "api" | "run_plan")[];
|
|
4193
4256
|
chipNote: string;
|
|
4194
4257
|
values?: string[] | undefined;
|
|
4195
4258
|
}[] | undefined;
|
|
4259
|
+
timezone?: string | null | undefined;
|
|
4196
4260
|
skills?: {
|
|
4197
4261
|
id: string;
|
|
4198
4262
|
name: string;
|
|
@@ -4222,11 +4286,11 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4222
4286
|
}[] | undefined;
|
|
4223
4287
|
answer?: {
|
|
4224
4288
|
shape: {
|
|
4225
|
-
type: "number" | "date" | "
|
|
4289
|
+
type: "number" | "date" | "enum" | "text" | "bool" | "list" | "group";
|
|
4226
4290
|
id: string;
|
|
4291
|
+
required: boolean;
|
|
4227
4292
|
name: string;
|
|
4228
4293
|
description: string;
|
|
4229
|
-
required: boolean;
|
|
4230
4294
|
level: number;
|
|
4231
4295
|
values?: string[] | undefined;
|
|
4232
4296
|
items?: Record<string, unknown> | undefined;
|
|
@@ -4237,21 +4301,21 @@ export declare const botPatchSchema: z.ZodObject<{
|
|
|
4237
4301
|
schema?: Record<string, unknown> | undefined;
|
|
4238
4302
|
} | undefined;
|
|
4239
4303
|
runPlan?: {
|
|
4304
|
+
off: string[];
|
|
4240
4305
|
before: string[];
|
|
4241
4306
|
after: string[];
|
|
4242
|
-
off: string[];
|
|
4243
4307
|
stopOnFail: string[];
|
|
4244
4308
|
stepLimit: number | null;
|
|
4245
4309
|
preparations?: {
|
|
4246
4310
|
kind: "workbench" | "mcp" | "app";
|
|
4247
4311
|
id: string;
|
|
4248
4312
|
name: string;
|
|
4313
|
+
capabilityId: string;
|
|
4249
4314
|
bindings: {
|
|
4250
4315
|
path: string[];
|
|
4251
4316
|
source: "message" | "variable" | "context";
|
|
4252
4317
|
target: string[];
|
|
4253
4318
|
}[];
|
|
4254
|
-
capabilityId: string;
|
|
4255
4319
|
toolKey: string;
|
|
4256
4320
|
input: Record<string, unknown>;
|
|
4257
4321
|
}[] | undefined;
|
|
@@ -4308,6 +4372,7 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
4308
4372
|
revision: z.ZodOptional<z.ZodNumber>;
|
|
4309
4373
|
dataMode: z.ZodDefault<z.ZodEnum<["sample", "live"]>>;
|
|
4310
4374
|
customerSessionId: z.ZodOptional<z.ZodString>;
|
|
4375
|
+
connectionReturnUrl: z.ZodOptional<z.ZodString>;
|
|
4311
4376
|
}, "strict", z.ZodTypeAny, {
|
|
4312
4377
|
message: string;
|
|
4313
4378
|
variables: Record<string, unknown>;
|
|
@@ -4316,6 +4381,7 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
4316
4381
|
runId?: string | undefined;
|
|
4317
4382
|
conversationId?: string | undefined;
|
|
4318
4383
|
customerSessionId?: string | undefined;
|
|
4384
|
+
connectionReturnUrl?: string | undefined;
|
|
4319
4385
|
}, {
|
|
4320
4386
|
message: string;
|
|
4321
4387
|
revision?: number | undefined;
|
|
@@ -4324,6 +4390,7 @@ export declare const botRunInputSchema: z.ZodObject<{
|
|
|
4324
4390
|
conversationId?: string | undefined;
|
|
4325
4391
|
dataMode?: "sample" | "live" | undefined;
|
|
4326
4392
|
customerSessionId?: string | undefined;
|
|
4393
|
+
connectionReturnUrl?: string | undefined;
|
|
4327
4394
|
}>;
|
|
4328
4395
|
export declare function defaultBotConfiguration(name: string): BotConfiguration;
|
|
4329
4396
|
/** Infer only structural JSON types; values are never classified by their text. */
|