@vm0/cli 9.278.0 → 9.279.0
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/{agent-HUDTEGLK.js → agent-4N7ZZDFJ.js} +16 -10
- package/agent-4N7ZZDFJ.js.map +1 -0
- package/{banking-BMZONEXP.js → banking-HBODHOCJ.js} +64 -10
- package/banking-HBODHOCJ.js.map +1 -0
- package/{browser-LQP445CU.js → browser-KT5KVZY2.js} +7 -8
- package/browser-KT5KVZY2.js.map +1 -0
- package/{chat-UF7QAWUT.js → chat-6RRIXDF5.js} +29 -21
- package/chat-6RRIXDF5.js.map +1 -0
- package/chunk-4ATK3VFX.js +202 -0
- package/chunk-4ATK3VFX.js.map +1 -0
- package/chunk-4CXT7THL.js +55 -0
- package/chunk-4CXT7THL.js.map +1 -0
- package/{chunk-BRV4D3P2.js → chunk-4QGLWHVD.js} +3 -3
- package/chunk-4SGKKHZW.js +309 -0
- package/chunk-4SGKKHZW.js.map +1 -0
- package/{chunk-AUWSMG4F.js → chunk-52CNCL6Y.js} +5 -2
- package/{chunk-AUWSMG4F.js.map → chunk-52CNCL6Y.js.map} +1 -1
- package/chunk-5RY3DZTW.js +101 -0
- package/chunk-5RY3DZTW.js.map +1 -0
- package/chunk-AFKJ4MU3.js +105 -0
- package/chunk-AFKJ4MU3.js.map +1 -0
- package/chunk-AMLZWOJK.js +792 -0
- package/chunk-AMLZWOJK.js.map +1 -0
- package/chunk-B3U6VDOF.js +90 -0
- package/chunk-B3U6VDOF.js.map +1 -0
- package/chunk-B6RXOHA2.js +801 -0
- package/chunk-B6RXOHA2.js.map +1 -0
- package/chunk-BB6QIVAM.js +189 -0
- package/chunk-BB6QIVAM.js.map +1 -0
- package/{chunk-NDYPPVD3.js → chunk-BMQE7GWV.js} +2 -2
- package/chunk-BMRAUGFL.js +198 -0
- package/chunk-BMRAUGFL.js.map +1 -0
- package/{chunk-45J5VDVQ.js → chunk-BS6PZU7T.js} +2 -2
- package/chunk-C4LKBBIS.js +2053 -0
- package/chunk-C4LKBBIS.js.map +1 -0
- package/{chunk-QC63TUJC.js → chunk-CBNDRL4P.js} +3 -3
- package/{chunk-V7A6ZFHR.js → chunk-CMWQJ3XO.js} +26 -775
- package/chunk-CMWQJ3XO.js.map +1 -0
- package/{chunk-NKYACNWA.js → chunk-DUWZNPUA.js} +2 -2
- package/{chunk-BVCE3PAD.js → chunk-G2HB4N56.js} +2 -2
- package/chunk-HMH473P6.js +362 -0
- package/chunk-HMH473P6.js.map +1 -0
- package/chunk-HMUAPCDD.js +81 -0
- package/chunk-HMUAPCDD.js.map +1 -0
- package/chunk-HXIDRGW4.js +434 -0
- package/chunk-HXIDRGW4.js.map +1 -0
- package/chunk-JXWXVXOW.js +1275 -0
- package/chunk-JXWXVXOW.js.map +1 -0
- package/{chunk-32FE3MDA.js → chunk-KHPTA6UQ.js} +2 -2
- package/chunk-KWHNNLC5.js +31 -0
- package/chunk-KWHNNLC5.js.map +1 -0
- package/chunk-LLQCX33F.js +49 -0
- package/chunk-LLQCX33F.js.map +1 -0
- package/{chunk-E53W6UVQ.js → chunk-LO24UKAH.js} +5 -5
- package/chunk-LO24UKAH.js.map +1 -0
- package/chunk-ML33LZ5V.js +66 -0
- package/chunk-ML33LZ5V.js.map +1 -0
- package/chunk-NIG6LRRX.js +39 -0
- package/chunk-NIG6LRRX.js.map +1 -0
- package/{chunk-JAUTPXVK.js → chunk-PAULHBEP.js} +2 -2
- package/chunk-PO3DAXC6.js +52 -0
- package/chunk-PO3DAXC6.js.map +1 -0
- package/chunk-QQT7SBVV.js +1300 -0
- package/chunk-QQT7SBVV.js.map +1 -0
- package/{chunk-J45P5ALH.js → chunk-RAQ7DE6K.js} +2 -2
- package/chunk-RKOODQ77.js +194 -0
- package/chunk-RKOODQ77.js.map +1 -0
- package/{chunk-V5ZVB7RJ.js → chunk-T656XQMT.js} +7 -7
- package/chunk-T656XQMT.js.map +1 -0
- package/chunk-TDLAIIDN.js +568 -0
- package/chunk-TDLAIIDN.js.map +1 -0
- package/{chunk-A6TMOGPR.js → chunk-TQKKFLRI.js} +1416 -339
- package/chunk-TQKKFLRI.js.map +1 -0
- package/{chunk-5ZZI2LSO.js → chunk-U2PPHCTL.js} +7 -7
- package/{chunk-VNNPAHD3.js → chunk-UH7XK55U.js} +2 -2
- package/chunk-VCAMYQOI.js +31 -0
- package/chunk-VCAMYQOI.js.map +1 -0
- package/chunk-WERS62WT.js +21130 -0
- package/chunk-WERS62WT.js.map +1 -0
- package/chunk-XIZVMBW4.js +188 -0
- package/chunk-XIZVMBW4.js.map +1 -0
- package/{chunk-SVFOPAWB.js → chunk-XJXBVERS.js} +2 -2
- package/chunk-XQ4CXHGB.js +131 -0
- package/chunk-XQ4CXHGB.js.map +1 -0
- package/{chunk-F2AM4RWA.js → chunk-XW5M3ADB.js} +3 -3
- package/{chunk-F2AM4RWA.js.map → chunk-XW5M3ADB.js.map} +1 -1
- package/chunk-YEXLP5U7.js +64 -0
- package/chunk-YEXLP5U7.js.map +1 -0
- package/chunk-ZEFTCUFJ.js +114 -0
- package/chunk-ZEFTCUFJ.js.map +1 -0
- package/{computer-use-RRD7BCCK.js → computer-use-VG65FLDL.js} +12 -10
- package/computer-use-VG65FLDL.js.map +1 -0
- package/{connector-XX7UU6XE.js → connector-25H4SU52.js} +28 -16
- package/connector-25H4SU52.js.map +1 -0
- package/{credit-GDNNAQRO.js → credit-D3RLUW6C.js} +12 -14
- package/credit-D3RLUW6C.js.map +1 -0
- package/{developer-support-IISP5UBI.js → developer-support-NMZJG32A.js} +30 -10
- package/developer-support-NMZJG32A.js.map +1 -0
- package/{doctor-IZM2TJOH.js → doctor-MXF4RDPN.js} +17 -15
- package/doctor-MXF4RDPN.js.map +1 -0
- package/{esm-GRI4FR5B.js → esm-XLHK4LBA.js} +3 -3
- package/{feishu-XB7SQBSI.js → feishu-SHMTS5ZM.js} +102 -12
- package/feishu-SHMTS5ZM.js.map +1 -0
- package/{finance-OGWHKQLU.js → finance-A3QUYKGH.js} +52 -12
- package/finance-A3QUYKGH.js.map +1 -0
- package/{generate-AA2PVOYQ.js → generate-QQ6ZTCR2.js} +31 -26
- package/generate-QQ6ZTCR2.js.map +1 -0
- package/{getMachineId-bsd-UR6WEJ6T.js → getMachineId-bsd-WOC3WZM5.js} +4 -4
- package/{getMachineId-darwin-O3UESQMK.js → getMachineId-darwin-K35YZX2F.js} +4 -4
- package/{getMachineId-linux-EGNGXDN3.js → getMachineId-linux-A4QJCCBS.js} +3 -3
- package/{getMachineId-unsupported-EZ7SMARH.js → getMachineId-unsupported-UOQIWS5S.js} +3 -3
- package/{getMachineId-win-CM62ICHH.js → getMachineId-win-YJDJQYJQ.js} +4 -4
- package/{github-VJVIBTVF.js → github-5M3YRGDF.js} +86 -11
- package/github-5M3YRGDF.js.map +1 -0
- package/{goal-7SYVHDTK.js → goal-F6G5KOI2.js} +72 -16
- package/goal-F6G5KOI2.js.map +1 -0
- package/{host-UVQMIOBA.js → host-6UT2OW4I.js} +127 -13
- package/host-6UT2OW4I.js.map +1 -0
- package/{intro-2UYXBOHI.js → intro-HYSW634N.js} +3 -3
- package/{logs-PIS4X24E.js → logs-YH346I7J.js} +57 -17
- package/logs-YH346I7J.js.map +1 -0
- package/{mail-L33OSQ2R.js → mail-SC44CH54.js} +42 -11
- package/mail-SC44CH54.js.map +1 -0
- package/{maps-D5XTXU5U.js → maps-YQ62JSHO.js} +68 -14
- package/maps-YQ62JSHO.js.map +1 -0
- package/{model-ZFMRECDM.js → model-PPOIXDVZ.js} +9 -9
- package/model-PPOIXDVZ.js.map +1 -0
- package/{model-provider-EZZ2DRYZ.js → model-provider-PD7FGL7A.js} +9 -9
- package/model-provider-PD7FGL7A.js.map +1 -0
- package/package.json +2 -5
- package/{people-search-PFTIO2QS.js → people-search-VS5J4HME.js} +25 -9
- package/people-search-VS5J4HME.js.map +1 -0
- package/{phone-6SG5ZUNL.js → phone-YZ7TX25A.js} +93 -12
- package/phone-YZ7TX25A.js.map +1 -0
- package/{recognize-LLU6J3SW.js → recognize-XKO53YEI.js} +30 -12
- package/recognize-XKO53YEI.js.map +1 -0
- package/{resource-FGUSXS4G.js → resource-V43QBVKO.js} +25 -11
- package/resource-V43QBVKO.js.map +1 -0
- package/{scrape-BAUZ2YFD.js → scrape-PDMJI2PY.js} +25 -9
- package/scrape-PDMJI2PY.js.map +1 -0
- package/{search-DLO5RXRM.js → search-USJZ3HKX.js} +35 -15
- package/search-USJZ3HKX.js.map +1 -0
- package/{slack-CVATPKP3.js → slack-K557P6WW.js} +106 -14
- package/slack-K557P6WW.js.map +1 -0
- package/{teams-ZZYO6YIK.js → teams-HN2UOU3U.js} +93 -12
- package/teams-HN2UOU3U.js.map +1 -0
- package/{telegram-VY7T4YAR.js → telegram-YCRQFLJC.js} +104 -13
- package/telegram-YCRQFLJC.js.map +1 -0
- package/{undici-MBS5ACFE.js → undici-YESHDB4G.js} +2 -2
- package/{upgrade-GFA4ZUU4.js → upgrade-VVJ3KJ6V.js} +7 -8
- package/upgrade-VVJ3KJ6V.js.map +1 -0
- package/{video-STFG7BET.js → video-DNGIFKVY.js} +8 -7
- package/video-DNGIFKVY.js.map +1 -0
- package/{weather-ISJEHJWR.js → weather-4Z7OZ2TP.js} +73 -19
- package/weather-4Z7OZ2TP.js.map +1 -0
- package/{web-YN4CVHK7.js → web-C6RLBMZM.js} +8 -8
- package/web-C6RLBMZM.js.map +1 -0
- package/{web-search-PC7IECND.js → web-search-CDPWLF74.js} +25 -9
- package/web-search-CDPWLF74.js.map +1 -0
- package/{whoami-KXFXZGM6.js → whoami-VDI5345O.js} +19 -10
- package/whoami-VDI5345O.js.map +1 -0
- package/{workflow-O7YZHB7A.js → workflow-VEZ3NTPR.js} +140 -44
- package/workflow-VEZ3NTPR.js.map +1 -0
- package/zero.js +46 -46
- package/agent-HUDTEGLK.js.map +0 -1
- package/banking-BMZONEXP.js.map +0 -1
- package/browser-LQP445CU.js.map +0 -1
- package/chat-UF7QAWUT.js.map +0 -1
- package/chunk-2W73DZDW.js +0 -32
- package/chunk-2W73DZDW.js.map +0 -1
- package/chunk-6PN6QGIM.js +0 -11405
- package/chunk-6PN6QGIM.js.map +0 -1
- package/chunk-A6TMOGPR.js.map +0 -1
- package/chunk-ANOLYIPL.js +0 -10
- package/chunk-ANOLYIPL.js.map +0 -1
- package/chunk-E53W6UVQ.js.map +0 -1
- package/chunk-V5ZVB7RJ.js.map +0 -1
- package/chunk-V7A6ZFHR.js.map +0 -1
- package/computer-use-RRD7BCCK.js.map +0 -1
- package/connector-XX7UU6XE.js.map +0 -1
- package/credit-GDNNAQRO.js.map +0 -1
- package/developer-support-IISP5UBI.js.map +0 -1
- package/doctor-IZM2TJOH.js.map +0 -1
- package/feishu-XB7SQBSI.js.map +0 -1
- package/finance-OGWHKQLU.js.map +0 -1
- package/generate-AA2PVOYQ.js.map +0 -1
- package/github-VJVIBTVF.js.map +0 -1
- package/goal-7SYVHDTK.js.map +0 -1
- package/host-UVQMIOBA.js.map +0 -1
- package/logs-PIS4X24E.js.map +0 -1
- package/mail-L33OSQ2R.js.map +0 -1
- package/maps-D5XTXU5U.js.map +0 -1
- package/model-ZFMRECDM.js.map +0 -1
- package/model-provider-EZZ2DRYZ.js.map +0 -1
- package/people-search-PFTIO2QS.js.map +0 -1
- package/phone-6SG5ZUNL.js.map +0 -1
- package/recognize-LLU6J3SW.js.map +0 -1
- package/resource-FGUSXS4G.js.map +0 -1
- package/scrape-BAUZ2YFD.js.map +0 -1
- package/search-DLO5RXRM.js.map +0 -1
- package/slack-CVATPKP3.js.map +0 -1
- package/teams-ZZYO6YIK.js.map +0 -1
- package/telegram-VY7T4YAR.js.map +0 -1
- package/upgrade-GFA4ZUU4.js.map +0 -1
- package/video-STFG7BET.js.map +0 -1
- package/weather-ISJEHJWR.js.map +0 -1
- package/web-YN4CVHK7.js.map +0 -1
- package/web-search-PC7IECND.js.map +0 -1
- package/whoami-KXFXZGM6.js.map +0 -1
- package/workflow-O7YZHB7A.js.map +0 -1
- /package/{chunk-BRV4D3P2.js.map → chunk-4QGLWHVD.js.map} +0 -0
- /package/{chunk-NDYPPVD3.js.map → chunk-BMQE7GWV.js.map} +0 -0
- /package/{chunk-45J5VDVQ.js.map → chunk-BS6PZU7T.js.map} +0 -0
- /package/{chunk-QC63TUJC.js.map → chunk-CBNDRL4P.js.map} +0 -0
- /package/{chunk-NKYACNWA.js.map → chunk-DUWZNPUA.js.map} +0 -0
- /package/{chunk-BVCE3PAD.js.map → chunk-G2HB4N56.js.map} +0 -0
- /package/{chunk-32FE3MDA.js.map → chunk-KHPTA6UQ.js.map} +0 -0
- /package/{chunk-JAUTPXVK.js.map → chunk-PAULHBEP.js.map} +0 -0
- /package/{chunk-J45P5ALH.js.map → chunk-RAQ7DE6K.js.map} +0 -0
- /package/{chunk-5ZZI2LSO.js.map → chunk-U2PPHCTL.js.map} +0 -0
- /package/{chunk-VNNPAHD3.js.map → chunk-UH7XK55U.js.map} +0 -0
- /package/{chunk-SVFOPAWB.js.map → chunk-XJXBVERS.js.map} +0 -0
- /package/{esm-GRI4FR5B.js.map → esm-XLHK4LBA.js.map} +0 -0
- /package/{getMachineId-bsd-UR6WEJ6T.js.map → getMachineId-bsd-WOC3WZM5.js.map} +0 -0
- /package/{getMachineId-darwin-O3UESQMK.js.map → getMachineId-darwin-K35YZX2F.js.map} +0 -0
- /package/{getMachineId-linux-EGNGXDN3.js.map → getMachineId-linux-A4QJCCBS.js.map} +0 -0
- /package/{getMachineId-unsupported-EZ7SMARH.js.map → getMachineId-unsupported-UOQIWS5S.js.map} +0 -0
- /package/{getMachineId-win-CM62ICHH.js.map → getMachineId-win-YJDJQYJQ.js.map} +0 -0
- /package/{intro-2UYXBOHI.js.map → intro-HYSW634N.js.map} +0 -0
- /package/{undici-MBS5ACFE.js.map → undici-YESHDB4G.js.map} +0 -0
|
@@ -0,0 +1,1300 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
publicConnectorCatalogIconSchema
|
|
6
|
+
} from "./chunk-HXIDRGW4.js";
|
|
7
|
+
import {
|
|
8
|
+
connectorSlugSchema
|
|
9
|
+
} from "./chunk-CMWQJ3XO.js";
|
|
10
|
+
import {
|
|
11
|
+
authHeadersSchema
|
|
12
|
+
} from "./chunk-NIG6LRRX.js";
|
|
13
|
+
import {
|
|
14
|
+
apiErrorSchema,
|
|
15
|
+
external_exports,
|
|
16
|
+
initContract
|
|
17
|
+
} from "./chunk-U2PPHCTL.js";
|
|
18
|
+
import {
|
|
19
|
+
init_esm_shims
|
|
20
|
+
} from "./chunk-52CNCL6Y.js";
|
|
21
|
+
|
|
22
|
+
// ../../packages/api-contracts/src/contracts/zero-workflows.ts
|
|
23
|
+
init_esm_shims();
|
|
24
|
+
var c = initContract();
|
|
25
|
+
var zeroWorkflowVisibilitySchema = external_exports.enum(["public", "private"]);
|
|
26
|
+
var zeroWorkflowNameSchema = external_exports.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
|
|
27
|
+
var RESERVED_SKILL_FILE = "SKILL.md";
|
|
28
|
+
var workflowFileEntrySchema = external_exports.object({
|
|
29
|
+
path: external_exports.string().min(1).max(256).refine(
|
|
30
|
+
(p) => {
|
|
31
|
+
return !p.startsWith("/");
|
|
32
|
+
},
|
|
33
|
+
{ message: "Path must be relative" }
|
|
34
|
+
).refine(
|
|
35
|
+
(p) => {
|
|
36
|
+
return !p.includes("..");
|
|
37
|
+
},
|
|
38
|
+
{ message: "Path must not contain .." }
|
|
39
|
+
).refine(
|
|
40
|
+
(p) => {
|
|
41
|
+
return p !== RESERVED_SKILL_FILE;
|
|
42
|
+
},
|
|
43
|
+
{ message: "SKILL.md is reserved and is generated automatically" }
|
|
44
|
+
),
|
|
45
|
+
content: external_exports.string()
|
|
46
|
+
});
|
|
47
|
+
var WORKFLOW_FILES_MAX_BYTES = 5 * 1024 * 1024;
|
|
48
|
+
var WORKFLOW_FILES_MAX_COUNT = 500;
|
|
49
|
+
var workflowFilesSchema = external_exports.array(workflowFileEntrySchema).max(
|
|
50
|
+
WORKFLOW_FILES_MAX_COUNT,
|
|
51
|
+
`Maximum ${WORKFLOW_FILES_MAX_COUNT} files allowed`
|
|
52
|
+
).refine(
|
|
53
|
+
(files) => {
|
|
54
|
+
const total = files.reduce((sum, f) => {
|
|
55
|
+
return sum + new TextEncoder().encode(f.content).length;
|
|
56
|
+
}, 0);
|
|
57
|
+
return total <= WORKFLOW_FILES_MAX_BYTES;
|
|
58
|
+
},
|
|
59
|
+
{ message: "Total file size must not exceed 5MB" }
|
|
60
|
+
);
|
|
61
|
+
var workflowFileMetadataSchema = external_exports.object({
|
|
62
|
+
path: external_exports.string(),
|
|
63
|
+
size: external_exports.number()
|
|
64
|
+
});
|
|
65
|
+
var workflowInstructionSchema = external_exports.string().max(WORKFLOW_FILES_MAX_BYTES);
|
|
66
|
+
var zeroWorkflowScheduleTypeSchema = external_exports.enum(["cron", "loop", "once"]);
|
|
67
|
+
var zeroWorkflowAutomationKindSchema = external_exports.enum(["schedule", "event"]);
|
|
68
|
+
var zeroWorkflowEventTypeSchema = external_exports.enum([
|
|
69
|
+
"chat-run-finished",
|
|
70
|
+
"gmail-new-message",
|
|
71
|
+
"gmail-label-applied",
|
|
72
|
+
"github-label-applied",
|
|
73
|
+
"github-deployment-status-created",
|
|
74
|
+
"github-issue-comment-created",
|
|
75
|
+
"github-pull-request-review-submitted",
|
|
76
|
+
"github-workflow-job-completed",
|
|
77
|
+
"github-workflow-run-completed",
|
|
78
|
+
"google-calendar-event-created",
|
|
79
|
+
"google-calendar-event-updated",
|
|
80
|
+
"google-calendar-event-cancelled",
|
|
81
|
+
"google-meet-transcript-generated",
|
|
82
|
+
"notion-child-page-created",
|
|
83
|
+
"notion-database-item-created",
|
|
84
|
+
"notion-page-content-updated",
|
|
85
|
+
"strapi-entry-published",
|
|
86
|
+
"webhook-received"
|
|
87
|
+
]);
|
|
88
|
+
var chatRunFinishedRunStatusSchema = external_exports.enum([
|
|
89
|
+
"completed",
|
|
90
|
+
"failed",
|
|
91
|
+
"cancelled"
|
|
92
|
+
]);
|
|
93
|
+
var chatRunFinishedEventConfigSchema = external_exports.object({
|
|
94
|
+
provider: external_exports.literal("chat"),
|
|
95
|
+
event: external_exports.literal("run_finished"),
|
|
96
|
+
chatThreadId: external_exports.string().uuid(),
|
|
97
|
+
runStatuses: external_exports.array(chatRunFinishedRunStatusSchema).min(1).optional(),
|
|
98
|
+
outputPattern: external_exports.string().trim().min(1).max(512).optional()
|
|
99
|
+
}).strict();
|
|
100
|
+
var gmailTextMatchSchema = external_exports.object({
|
|
101
|
+
contains: external_exports.string().min(1).optional(),
|
|
102
|
+
containsAny: external_exports.array(external_exports.string().min(1)).min(1).optional(),
|
|
103
|
+
doesNotContain: external_exports.string().min(1).optional(),
|
|
104
|
+
doesNotContainAny: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
105
|
+
}).strict().refine(
|
|
106
|
+
(value) => {
|
|
107
|
+
return value.contains !== void 0 || value.containsAny !== void 0 || value.doesNotContain !== void 0 || value.doesNotContainAny !== void 0;
|
|
108
|
+
},
|
|
109
|
+
{ message: "At least one text matcher is required" }
|
|
110
|
+
);
|
|
111
|
+
var gmailNewMessageEventConfigSchema = external_exports.object({
|
|
112
|
+
provider: external_exports.literal("gmail"),
|
|
113
|
+
event: external_exports.literal("new_message"),
|
|
114
|
+
threadId: external_exports.string().min(1).optional(),
|
|
115
|
+
match: external_exports.object({
|
|
116
|
+
from: gmailTextMatchSchema.optional(),
|
|
117
|
+
subject: gmailTextMatchSchema.optional(),
|
|
118
|
+
body: gmailTextMatchSchema.optional(),
|
|
119
|
+
to: gmailTextMatchSchema.optional(),
|
|
120
|
+
cc: gmailTextMatchSchema.optional()
|
|
121
|
+
}).strict().optional()
|
|
122
|
+
}).strict();
|
|
123
|
+
var gmailLabelAppliedEventConfigSchema = external_exports.object({
|
|
124
|
+
provider: external_exports.literal("gmail"),
|
|
125
|
+
event: external_exports.literal("label_applied"),
|
|
126
|
+
labelName: external_exports.string().trim().min(1).max(225),
|
|
127
|
+
resolvedLabelId: external_exports.string().min(1).max(128).optional()
|
|
128
|
+
}).strict();
|
|
129
|
+
var gmailWorkflowEventConfigSchema = external_exports.discriminatedUnion("event", [
|
|
130
|
+
gmailNewMessageEventConfigSchema,
|
|
131
|
+
gmailLabelAppliedEventConfigSchema
|
|
132
|
+
]);
|
|
133
|
+
var webhookReceivedEventConfigSchema = external_exports.object({
|
|
134
|
+
provider: external_exports.literal("webhook"),
|
|
135
|
+
event: external_exports.literal("received"),
|
|
136
|
+
auth: external_exports.object({
|
|
137
|
+
mode: external_exports.literal("hmac-sha256")
|
|
138
|
+
}).strict()
|
|
139
|
+
}).strict();
|
|
140
|
+
var githubLabelAppliedSubjectFilterSchema = external_exports.enum([
|
|
141
|
+
"both",
|
|
142
|
+
"issues",
|
|
143
|
+
"pull_requests"
|
|
144
|
+
]);
|
|
145
|
+
var githubLabelAppliedActorFilterSchema = external_exports.object({
|
|
146
|
+
type: external_exports.enum(["me", "anyone"])
|
|
147
|
+
}).strict();
|
|
148
|
+
var githubLabelAppliedEventConfigSchema = external_exports.object({
|
|
149
|
+
provider: external_exports.literal("github"),
|
|
150
|
+
event: external_exports.literal("label_applied"),
|
|
151
|
+
labelName: external_exports.string().trim().min(1).max(255),
|
|
152
|
+
filters: external_exports.object({
|
|
153
|
+
subject: githubLabelAppliedSubjectFilterSchema.default("both"),
|
|
154
|
+
actor: githubLabelAppliedActorFilterSchema.default({ type: "me" })
|
|
155
|
+
}).strict().default({ subject: "both", actor: { type: "me" } })
|
|
156
|
+
}).strict();
|
|
157
|
+
var githubWorkflowRunConclusionSchema = external_exports.enum([
|
|
158
|
+
"action_required",
|
|
159
|
+
"cancelled",
|
|
160
|
+
"failure",
|
|
161
|
+
"neutral",
|
|
162
|
+
"skipped",
|
|
163
|
+
"stale",
|
|
164
|
+
"startup_failure",
|
|
165
|
+
"success",
|
|
166
|
+
"timed_out"
|
|
167
|
+
]);
|
|
168
|
+
var githubFilterValuesSchema = external_exports.array(external_exports.string().trim().min(1).max(255)).min(1).max(100);
|
|
169
|
+
var githubWorkflowRunCompletedEventConfigSchema = external_exports.object({
|
|
170
|
+
provider: external_exports.literal("github"),
|
|
171
|
+
event: external_exports.literal("workflow_run_completed"),
|
|
172
|
+
filters: external_exports.object({
|
|
173
|
+
repositories: githubFilterValuesSchema.optional(),
|
|
174
|
+
workflows: githubFilterValuesSchema.optional(),
|
|
175
|
+
conclusions: external_exports.array(githubWorkflowRunConclusionSchema).min(1).max(githubWorkflowRunConclusionSchema.options.length).optional(),
|
|
176
|
+
branches: githubFilterValuesSchema.optional(),
|
|
177
|
+
events: githubFilterValuesSchema.optional(),
|
|
178
|
+
actors: githubFilterValuesSchema.optional()
|
|
179
|
+
}).strict().default({})
|
|
180
|
+
}).strict();
|
|
181
|
+
var githubWorkflowJobCompletedEventConfigSchema = external_exports.object({
|
|
182
|
+
provider: external_exports.literal("github"),
|
|
183
|
+
event: external_exports.literal("workflow_job_completed"),
|
|
184
|
+
filters: external_exports.object({
|
|
185
|
+
repositories: githubFilterValuesSchema.optional(),
|
|
186
|
+
workflows: githubFilterValuesSchema.optional(),
|
|
187
|
+
jobs: githubFilterValuesSchema.optional(),
|
|
188
|
+
conclusions: external_exports.array(githubWorkflowRunConclusionSchema).min(1).max(githubWorkflowRunConclusionSchema.options.length).optional(),
|
|
189
|
+
branches: githubFilterValuesSchema.optional(),
|
|
190
|
+
runnerLabels: githubFilterValuesSchema.optional(),
|
|
191
|
+
runnerGroups: githubFilterValuesSchema.optional()
|
|
192
|
+
}).strict().default({})
|
|
193
|
+
}).strict();
|
|
194
|
+
var githubPullRequestReviewStateSchema = external_exports.enum([
|
|
195
|
+
"approved",
|
|
196
|
+
"changes_requested",
|
|
197
|
+
"commented"
|
|
198
|
+
]);
|
|
199
|
+
var githubPullRequestReviewSubmittedEventConfigSchema = external_exports.object({
|
|
200
|
+
provider: external_exports.literal("github"),
|
|
201
|
+
event: external_exports.literal("pull_request_review_submitted"),
|
|
202
|
+
filters: external_exports.object({
|
|
203
|
+
repositories: githubFilterValuesSchema.optional(),
|
|
204
|
+
reviewStates: external_exports.array(githubPullRequestReviewStateSchema).min(1).max(githubPullRequestReviewStateSchema.options.length).optional(),
|
|
205
|
+
baseBranches: githubFilterValuesSchema.optional(),
|
|
206
|
+
headBranches: githubFilterValuesSchema.optional(),
|
|
207
|
+
trustedAuthors: githubFilterValuesSchema.optional()
|
|
208
|
+
}).strict().default({})
|
|
209
|
+
}).strict();
|
|
210
|
+
var githubDeploymentStateSchema = external_exports.enum([
|
|
211
|
+
"error",
|
|
212
|
+
"failure",
|
|
213
|
+
"inactive",
|
|
214
|
+
"in_progress",
|
|
215
|
+
"pending",
|
|
216
|
+
"queued",
|
|
217
|
+
"success",
|
|
218
|
+
"waiting"
|
|
219
|
+
]);
|
|
220
|
+
var githubDeploymentStatusCreatedEventConfigSchema = external_exports.object({
|
|
221
|
+
provider: external_exports.literal("github"),
|
|
222
|
+
event: external_exports.literal("deployment_status_created"),
|
|
223
|
+
filters: external_exports.object({
|
|
224
|
+
repositories: githubFilterValuesSchema.optional(),
|
|
225
|
+
environments: githubFilterValuesSchema.optional(),
|
|
226
|
+
states: external_exports.array(githubDeploymentStateSchema).min(1).max(githubDeploymentStateSchema.options.length).optional(),
|
|
227
|
+
refs: githubFilterValuesSchema.optional(),
|
|
228
|
+
productionEnvironment: external_exports.boolean().optional(),
|
|
229
|
+
creators: githubFilterValuesSchema.optional(),
|
|
230
|
+
apps: githubFilterValuesSchema.optional()
|
|
231
|
+
}).strict().default({})
|
|
232
|
+
}).strict();
|
|
233
|
+
var githubIssueCommentSubjectFilterSchema = external_exports.enum([
|
|
234
|
+
"both",
|
|
235
|
+
"issues",
|
|
236
|
+
"pull_requests"
|
|
237
|
+
]);
|
|
238
|
+
var githubIssueCommentCreatedEventConfigSchema = external_exports.object({
|
|
239
|
+
provider: external_exports.literal("github"),
|
|
240
|
+
event: external_exports.literal("issue_comment_created"),
|
|
241
|
+
filters: external_exports.object({
|
|
242
|
+
repositories: githubFilterValuesSchema.optional(),
|
|
243
|
+
subject: githubIssueCommentSubjectFilterSchema.default("both"),
|
|
244
|
+
trustedAuthors: githubFilterValuesSchema.optional(),
|
|
245
|
+
commentPrefixes: external_exports.array(external_exports.string().trim().min(1).max(1024)).min(1).max(100).optional()
|
|
246
|
+
}).strict().default({ subject: "both" })
|
|
247
|
+
}).strict();
|
|
248
|
+
var githubWorkflowEventConfigSchema = external_exports.discriminatedUnion("event", [
|
|
249
|
+
githubLabelAppliedEventConfigSchema,
|
|
250
|
+
githubDeploymentStatusCreatedEventConfigSchema,
|
|
251
|
+
githubIssueCommentCreatedEventConfigSchema,
|
|
252
|
+
githubPullRequestReviewSubmittedEventConfigSchema,
|
|
253
|
+
githubWorkflowJobCompletedEventConfigSchema,
|
|
254
|
+
githubWorkflowRunCompletedEventConfigSchema
|
|
255
|
+
]);
|
|
256
|
+
var googleCalendarEventCreatedEventConfigSchema = external_exports.object({
|
|
257
|
+
provider: external_exports.literal("google-calendar"),
|
|
258
|
+
event: external_exports.literal("event_created"),
|
|
259
|
+
calendarId: external_exports.string().trim().min(1).max(1024).default("primary")
|
|
260
|
+
}).strict();
|
|
261
|
+
var googleCalendarEventUpdatedEventConfigSchema = external_exports.object({
|
|
262
|
+
provider: external_exports.literal("google-calendar"),
|
|
263
|
+
event: external_exports.literal("event_updated"),
|
|
264
|
+
calendarId: external_exports.string().trim().min(1).max(1024).default("primary")
|
|
265
|
+
}).strict();
|
|
266
|
+
var googleCalendarEventCancelledEventConfigSchema = external_exports.object({
|
|
267
|
+
provider: external_exports.literal("google-calendar"),
|
|
268
|
+
event: external_exports.literal("event_cancelled"),
|
|
269
|
+
calendarId: external_exports.string().trim().min(1).max(1024).default("primary")
|
|
270
|
+
}).strict();
|
|
271
|
+
var googleMeetTranscriptGeneratedEventConfigSchema = external_exports.object({
|
|
272
|
+
provider: external_exports.literal("google-meet"),
|
|
273
|
+
event: external_exports.literal("transcript_generated"),
|
|
274
|
+
scope: external_exports.object({
|
|
275
|
+
type: external_exports.literal("organizer_user")
|
|
276
|
+
}).strict().default({ type: "organizer_user" })
|
|
277
|
+
}).strict();
|
|
278
|
+
var notionPageReferenceSchema = external_exports.object({
|
|
279
|
+
id: external_exports.string().uuid(),
|
|
280
|
+
url: external_exports.url(),
|
|
281
|
+
title: external_exports.string().nullable(),
|
|
282
|
+
rawUrl: external_exports.string().min(1).max(2048).optional()
|
|
283
|
+
}).strict();
|
|
284
|
+
var notionDataSourceReferenceSchema = external_exports.object({
|
|
285
|
+
id: external_exports.string().uuid(),
|
|
286
|
+
url: external_exports.url(),
|
|
287
|
+
title: external_exports.string().nullable(),
|
|
288
|
+
rawUrl: external_exports.string().min(1).max(2048).optional()
|
|
289
|
+
}).strict();
|
|
290
|
+
var notionChildPageCreatedEventConfigSchema = external_exports.object({
|
|
291
|
+
provider: external_exports.literal("notion"),
|
|
292
|
+
event: external_exports.literal("child_page_created"),
|
|
293
|
+
connectorId: external_exports.string().uuid(),
|
|
294
|
+
parentPage: notionPageReferenceSchema
|
|
295
|
+
}).strict();
|
|
296
|
+
var notionChildPageCreatedEventCreateConfigSchema = external_exports.object({
|
|
297
|
+
provider: external_exports.literal("notion"),
|
|
298
|
+
event: external_exports.literal("child_page_created"),
|
|
299
|
+
parentPageUrl: external_exports.string().trim().min(1).max(2048)
|
|
300
|
+
}).strict();
|
|
301
|
+
var notionDatabaseItemCreatedEventConfigSchema = external_exports.object({
|
|
302
|
+
provider: external_exports.literal("notion"),
|
|
303
|
+
event: external_exports.literal("database_item_created"),
|
|
304
|
+
connectorId: external_exports.string().uuid(),
|
|
305
|
+
dataSource: notionDataSourceReferenceSchema
|
|
306
|
+
}).strict();
|
|
307
|
+
var notionDatabaseItemCreatedEventCreateConfigSchema = external_exports.object({
|
|
308
|
+
provider: external_exports.literal("notion"),
|
|
309
|
+
event: external_exports.literal("database_item_created"),
|
|
310
|
+
databaseUrl: external_exports.string().trim().min(1).max(2048)
|
|
311
|
+
}).strict();
|
|
312
|
+
var notionPageContentUpdatedScopeSchema = external_exports.discriminatedUnion(
|
|
313
|
+
"type",
|
|
314
|
+
[
|
|
315
|
+
external_exports.object({
|
|
316
|
+
type: external_exports.literal("page"),
|
|
317
|
+
page: notionPageReferenceSchema
|
|
318
|
+
}).strict(),
|
|
319
|
+
external_exports.object({
|
|
320
|
+
type: external_exports.literal("data_source"),
|
|
321
|
+
dataSource: notionDataSourceReferenceSchema
|
|
322
|
+
}).strict()
|
|
323
|
+
]
|
|
324
|
+
);
|
|
325
|
+
var notionPageContentUpdatedEventConfigSchema = external_exports.object({
|
|
326
|
+
provider: external_exports.literal("notion"),
|
|
327
|
+
event: external_exports.literal("page_content_updated"),
|
|
328
|
+
connectorId: external_exports.string().uuid(),
|
|
329
|
+
scope: notionPageContentUpdatedScopeSchema
|
|
330
|
+
}).strict();
|
|
331
|
+
var notionPageContentUpdatedEventCreateConfigSchema = external_exports.object({
|
|
332
|
+
provider: external_exports.literal("notion"),
|
|
333
|
+
event: external_exports.literal("page_content_updated"),
|
|
334
|
+
pageUrl: external_exports.string().trim().min(1).max(2048).optional(),
|
|
335
|
+
databaseUrl: external_exports.string().trim().min(1).max(2048).optional()
|
|
336
|
+
}).strict().refine(
|
|
337
|
+
(value) => {
|
|
338
|
+
return value.pageUrl !== void 0 !== (value.databaseUrl !== void 0);
|
|
339
|
+
},
|
|
340
|
+
{ message: "Provide exactly one of pageUrl or databaseUrl" }
|
|
341
|
+
);
|
|
342
|
+
var strapiEntryPublishedEventConfigSchema = external_exports.object({
|
|
343
|
+
provider: external_exports.literal("strapi"),
|
|
344
|
+
event: external_exports.literal("entry_published"),
|
|
345
|
+
integrationId: external_exports.string().uuid(),
|
|
346
|
+
contentTypeUid: external_exports.string().trim().min(1).max(255).optional(),
|
|
347
|
+
locale: external_exports.string().trim().min(1).max(64).optional()
|
|
348
|
+
}).strict();
|
|
349
|
+
var zeroWorkflowScheduleSchema = external_exports.discriminatedUnion("type", [
|
|
350
|
+
external_exports.object({
|
|
351
|
+
type: external_exports.literal("cron"),
|
|
352
|
+
cronExpression: external_exports.string().min(1).max(100),
|
|
353
|
+
timezone: external_exports.string().min(1)
|
|
354
|
+
}),
|
|
355
|
+
external_exports.object({
|
|
356
|
+
type: external_exports.literal("loop"),
|
|
357
|
+
intervalSeconds: external_exports.number().int().positive()
|
|
358
|
+
}),
|
|
359
|
+
external_exports.object({
|
|
360
|
+
type: external_exports.literal("once"),
|
|
361
|
+
atTime: external_exports.string().min(1),
|
|
362
|
+
timezone: external_exports.string().min(1)
|
|
363
|
+
})
|
|
364
|
+
]);
|
|
365
|
+
var zeroWorkflowAutomationSummaryBaseSchema = external_exports.object({
|
|
366
|
+
id: external_exports.string(),
|
|
367
|
+
ownerUserId: external_exports.string(),
|
|
368
|
+
enabled: external_exports.boolean(),
|
|
369
|
+
chatThreadId: external_exports.string().nullable(),
|
|
370
|
+
nextRunAt: external_exports.string().datetime().nullable(),
|
|
371
|
+
lastRunAt: external_exports.string().datetime().nullable()
|
|
372
|
+
});
|
|
373
|
+
var zeroWorkflowScheduleAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
374
|
+
kind: external_exports.literal("schedule"),
|
|
375
|
+
schedule: zeroWorkflowScheduleSchema,
|
|
376
|
+
scheduleSummary: external_exports.string()
|
|
377
|
+
});
|
|
378
|
+
var zeroWorkflowChatRunFinishedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
379
|
+
kind: external_exports.literal("event"),
|
|
380
|
+
eventType: external_exports.literal("chat-run-finished"),
|
|
381
|
+
eventConfig: chatRunFinishedEventConfigSchema,
|
|
382
|
+
schedule: external_exports.null(),
|
|
383
|
+
scheduleSummary: external_exports.null()
|
|
384
|
+
});
|
|
385
|
+
var zeroWorkflowGmailNewMessageAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
386
|
+
kind: external_exports.literal("event"),
|
|
387
|
+
eventType: external_exports.literal("gmail-new-message"),
|
|
388
|
+
eventConfig: gmailNewMessageEventConfigSchema,
|
|
389
|
+
schedule: external_exports.null(),
|
|
390
|
+
scheduleSummary: external_exports.null()
|
|
391
|
+
});
|
|
392
|
+
var zeroWorkflowGmailLabelAppliedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
393
|
+
kind: external_exports.literal("event"),
|
|
394
|
+
eventType: external_exports.literal("gmail-label-applied"),
|
|
395
|
+
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
396
|
+
schedule: external_exports.null(),
|
|
397
|
+
scheduleSummary: external_exports.null()
|
|
398
|
+
});
|
|
399
|
+
var zeroWorkflowGithubLabelAppliedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
400
|
+
kind: external_exports.literal("event"),
|
|
401
|
+
eventType: external_exports.literal("github-label-applied"),
|
|
402
|
+
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
403
|
+
schedule: external_exports.null(),
|
|
404
|
+
scheduleSummary: external_exports.null()
|
|
405
|
+
});
|
|
406
|
+
var zeroWorkflowGithubWorkflowRunCompletedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
407
|
+
kind: external_exports.literal("event"),
|
|
408
|
+
eventType: external_exports.literal("github-workflow-run-completed"),
|
|
409
|
+
eventConfig: githubWorkflowRunCompletedEventConfigSchema,
|
|
410
|
+
schedule: external_exports.null(),
|
|
411
|
+
scheduleSummary: external_exports.null()
|
|
412
|
+
});
|
|
413
|
+
var zeroWorkflowGithubWorkflowJobCompletedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
414
|
+
kind: external_exports.literal("event"),
|
|
415
|
+
eventType: external_exports.literal("github-workflow-job-completed"),
|
|
416
|
+
eventConfig: githubWorkflowJobCompletedEventConfigSchema,
|
|
417
|
+
schedule: external_exports.null(),
|
|
418
|
+
scheduleSummary: external_exports.null()
|
|
419
|
+
});
|
|
420
|
+
var zeroWorkflowGithubPullRequestReviewSubmittedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
421
|
+
kind: external_exports.literal("event"),
|
|
422
|
+
eventType: external_exports.literal("github-pull-request-review-submitted"),
|
|
423
|
+
eventConfig: githubPullRequestReviewSubmittedEventConfigSchema,
|
|
424
|
+
schedule: external_exports.null(),
|
|
425
|
+
scheduleSummary: external_exports.null()
|
|
426
|
+
});
|
|
427
|
+
var zeroWorkflowGithubDeploymentStatusCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
428
|
+
kind: external_exports.literal("event"),
|
|
429
|
+
eventType: external_exports.literal("github-deployment-status-created"),
|
|
430
|
+
eventConfig: githubDeploymentStatusCreatedEventConfigSchema,
|
|
431
|
+
schedule: external_exports.null(),
|
|
432
|
+
scheduleSummary: external_exports.null()
|
|
433
|
+
});
|
|
434
|
+
var zeroWorkflowGithubIssueCommentCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
435
|
+
kind: external_exports.literal("event"),
|
|
436
|
+
eventType: external_exports.literal("github-issue-comment-created"),
|
|
437
|
+
eventConfig: githubIssueCommentCreatedEventConfigSchema,
|
|
438
|
+
schedule: external_exports.null(),
|
|
439
|
+
scheduleSummary: external_exports.null()
|
|
440
|
+
});
|
|
441
|
+
var zeroWorkflowGoogleCalendarEventCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
442
|
+
kind: external_exports.literal("event"),
|
|
443
|
+
eventType: external_exports.literal("google-calendar-event-created"),
|
|
444
|
+
eventConfig: googleCalendarEventCreatedEventConfigSchema,
|
|
445
|
+
schedule: external_exports.null(),
|
|
446
|
+
scheduleSummary: external_exports.null()
|
|
447
|
+
});
|
|
448
|
+
var zeroWorkflowGoogleCalendarEventUpdatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
449
|
+
kind: external_exports.literal("event"),
|
|
450
|
+
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
451
|
+
eventConfig: googleCalendarEventUpdatedEventConfigSchema,
|
|
452
|
+
schedule: external_exports.null(),
|
|
453
|
+
scheduleSummary: external_exports.null()
|
|
454
|
+
});
|
|
455
|
+
var zeroWorkflowGoogleCalendarEventCancelledAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
456
|
+
kind: external_exports.literal("event"),
|
|
457
|
+
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
458
|
+
eventConfig: googleCalendarEventCancelledEventConfigSchema,
|
|
459
|
+
schedule: external_exports.null(),
|
|
460
|
+
scheduleSummary: external_exports.null()
|
|
461
|
+
});
|
|
462
|
+
var zeroWorkflowGoogleMeetTranscriptGeneratedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
463
|
+
kind: external_exports.literal("event"),
|
|
464
|
+
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
465
|
+
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema,
|
|
466
|
+
schedule: external_exports.null(),
|
|
467
|
+
scheduleSummary: external_exports.null()
|
|
468
|
+
});
|
|
469
|
+
var zeroWorkflowNotionChildPageCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
470
|
+
kind: external_exports.literal("event"),
|
|
471
|
+
eventType: external_exports.literal("notion-child-page-created"),
|
|
472
|
+
eventConfig: notionChildPageCreatedEventConfigSchema,
|
|
473
|
+
schedule: external_exports.null(),
|
|
474
|
+
scheduleSummary: external_exports.null()
|
|
475
|
+
});
|
|
476
|
+
var zeroWorkflowNotionDatabaseItemCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
477
|
+
kind: external_exports.literal("event"),
|
|
478
|
+
eventType: external_exports.literal("notion-database-item-created"),
|
|
479
|
+
eventConfig: notionDatabaseItemCreatedEventConfigSchema,
|
|
480
|
+
schedule: external_exports.null(),
|
|
481
|
+
scheduleSummary: external_exports.null()
|
|
482
|
+
});
|
|
483
|
+
var zeroWorkflowNotionPageContentUpdatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
484
|
+
kind: external_exports.literal("event"),
|
|
485
|
+
eventType: external_exports.literal("notion-page-content-updated"),
|
|
486
|
+
eventConfig: notionPageContentUpdatedEventConfigSchema,
|
|
487
|
+
schedule: external_exports.null(),
|
|
488
|
+
scheduleSummary: external_exports.null()
|
|
489
|
+
});
|
|
490
|
+
var zeroWorkflowStrapiEntryPublishedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
491
|
+
kind: external_exports.literal("event"),
|
|
492
|
+
eventType: external_exports.literal("strapi-entry-published"),
|
|
493
|
+
eventConfig: strapiEntryPublishedEventConfigSchema,
|
|
494
|
+
schedule: external_exports.null(),
|
|
495
|
+
scheduleSummary: external_exports.null()
|
|
496
|
+
});
|
|
497
|
+
var zeroWorkflowWebhookReceivedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
498
|
+
kind: external_exports.literal("event"),
|
|
499
|
+
eventType: external_exports.literal("webhook-received"),
|
|
500
|
+
eventConfig: webhookReceivedEventConfigSchema,
|
|
501
|
+
schedule: external_exports.null(),
|
|
502
|
+
scheduleSummary: external_exports.null(),
|
|
503
|
+
webhookUrl: external_exports.url().optional(),
|
|
504
|
+
secretLastFour: external_exports.string().length(4),
|
|
505
|
+
disabledReason: external_exports.literal("paid_plan_required").nullable().optional(),
|
|
506
|
+
lastReceivedAt: external_exports.string().datetime().nullable(),
|
|
507
|
+
webhookSecret: external_exports.string().min(1).optional()
|
|
508
|
+
});
|
|
509
|
+
var zeroWorkflowEventAutomationSummarySchema = external_exports.discriminatedUnion(
|
|
510
|
+
"eventType",
|
|
511
|
+
[
|
|
512
|
+
zeroWorkflowChatRunFinishedAutomationSummarySchema,
|
|
513
|
+
zeroWorkflowGmailNewMessageAutomationSummarySchema,
|
|
514
|
+
zeroWorkflowGmailLabelAppliedAutomationSummarySchema,
|
|
515
|
+
zeroWorkflowGithubLabelAppliedAutomationSummarySchema,
|
|
516
|
+
zeroWorkflowGithubDeploymentStatusCreatedAutomationSummarySchema,
|
|
517
|
+
zeroWorkflowGithubIssueCommentCreatedAutomationSummarySchema,
|
|
518
|
+
zeroWorkflowGithubPullRequestReviewSubmittedAutomationSummarySchema,
|
|
519
|
+
zeroWorkflowGithubWorkflowJobCompletedAutomationSummarySchema,
|
|
520
|
+
zeroWorkflowGithubWorkflowRunCompletedAutomationSummarySchema,
|
|
521
|
+
zeroWorkflowGoogleCalendarEventCreatedAutomationSummarySchema,
|
|
522
|
+
zeroWorkflowGoogleCalendarEventUpdatedAutomationSummarySchema,
|
|
523
|
+
zeroWorkflowGoogleCalendarEventCancelledAutomationSummarySchema,
|
|
524
|
+
zeroWorkflowGoogleMeetTranscriptGeneratedAutomationSummarySchema,
|
|
525
|
+
zeroWorkflowNotionChildPageCreatedAutomationSummarySchema,
|
|
526
|
+
zeroWorkflowNotionDatabaseItemCreatedAutomationSummarySchema,
|
|
527
|
+
zeroWorkflowNotionPageContentUpdatedAutomationSummarySchema,
|
|
528
|
+
zeroWorkflowStrapiEntryPublishedAutomationSummarySchema,
|
|
529
|
+
zeroWorkflowWebhookReceivedAutomationSummarySchema
|
|
530
|
+
]
|
|
531
|
+
);
|
|
532
|
+
var zeroWorkflowAutomationSummarySchema = external_exports.union([
|
|
533
|
+
zeroWorkflowScheduleAutomationSummarySchema,
|
|
534
|
+
zeroWorkflowEventAutomationSummarySchema
|
|
535
|
+
]);
|
|
536
|
+
var chatThreadWorkflowSchema = external_exports.object({
|
|
537
|
+
id: external_exports.string().uuid(),
|
|
538
|
+
agentId: external_exports.string().uuid(),
|
|
539
|
+
name: zeroWorkflowNameSchema,
|
|
540
|
+
displayName: external_exports.string().nullable(),
|
|
541
|
+
description: external_exports.string().nullable()
|
|
542
|
+
});
|
|
543
|
+
var chatThreadWorkflowAutomationBaseSchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
544
|
+
id: external_exports.string().uuid(),
|
|
545
|
+
chatThreadId: external_exports.string().min(1),
|
|
546
|
+
workflow: chatThreadWorkflowSchema
|
|
547
|
+
});
|
|
548
|
+
var chatThreadWorkflowScheduleAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
549
|
+
kind: external_exports.literal("schedule"),
|
|
550
|
+
schedule: zeroWorkflowScheduleSchema,
|
|
551
|
+
scheduleSummary: external_exports.string()
|
|
552
|
+
});
|
|
553
|
+
var chatThreadWorkflowChatRunFinishedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
554
|
+
kind: external_exports.literal("event"),
|
|
555
|
+
eventType: external_exports.literal("chat-run-finished"),
|
|
556
|
+
eventConfig: chatRunFinishedEventConfigSchema,
|
|
557
|
+
schedule: external_exports.null(),
|
|
558
|
+
scheduleSummary: external_exports.null()
|
|
559
|
+
});
|
|
560
|
+
var chatThreadWorkflowGmailNewMessageAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
561
|
+
kind: external_exports.literal("event"),
|
|
562
|
+
eventType: external_exports.literal("gmail-new-message"),
|
|
563
|
+
eventConfig: gmailNewMessageEventConfigSchema,
|
|
564
|
+
schedule: external_exports.null(),
|
|
565
|
+
scheduleSummary: external_exports.null()
|
|
566
|
+
});
|
|
567
|
+
var chatThreadWorkflowGmailLabelAppliedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
568
|
+
kind: external_exports.literal("event"),
|
|
569
|
+
eventType: external_exports.literal("gmail-label-applied"),
|
|
570
|
+
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
571
|
+
schedule: external_exports.null(),
|
|
572
|
+
scheduleSummary: external_exports.null()
|
|
573
|
+
});
|
|
574
|
+
var chatThreadWorkflowGithubLabelAppliedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
575
|
+
kind: external_exports.literal("event"),
|
|
576
|
+
eventType: external_exports.literal("github-label-applied"),
|
|
577
|
+
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
578
|
+
schedule: external_exports.null(),
|
|
579
|
+
scheduleSummary: external_exports.null()
|
|
580
|
+
});
|
|
581
|
+
var chatThreadWorkflowGithubWorkflowRunCompletedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
582
|
+
kind: external_exports.literal("event"),
|
|
583
|
+
eventType: external_exports.literal("github-workflow-run-completed"),
|
|
584
|
+
eventConfig: githubWorkflowRunCompletedEventConfigSchema,
|
|
585
|
+
schedule: external_exports.null(),
|
|
586
|
+
scheduleSummary: external_exports.null()
|
|
587
|
+
});
|
|
588
|
+
var chatThreadWorkflowGithubWorkflowJobCompletedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
589
|
+
kind: external_exports.literal("event"),
|
|
590
|
+
eventType: external_exports.literal("github-workflow-job-completed"),
|
|
591
|
+
eventConfig: githubWorkflowJobCompletedEventConfigSchema,
|
|
592
|
+
schedule: external_exports.null(),
|
|
593
|
+
scheduleSummary: external_exports.null()
|
|
594
|
+
});
|
|
595
|
+
var chatThreadWorkflowGithubPullRequestReviewSubmittedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
596
|
+
kind: external_exports.literal("event"),
|
|
597
|
+
eventType: external_exports.literal("github-pull-request-review-submitted"),
|
|
598
|
+
eventConfig: githubPullRequestReviewSubmittedEventConfigSchema,
|
|
599
|
+
schedule: external_exports.null(),
|
|
600
|
+
scheduleSummary: external_exports.null()
|
|
601
|
+
});
|
|
602
|
+
var chatThreadWorkflowGithubDeploymentStatusCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
603
|
+
kind: external_exports.literal("event"),
|
|
604
|
+
eventType: external_exports.literal("github-deployment-status-created"),
|
|
605
|
+
eventConfig: githubDeploymentStatusCreatedEventConfigSchema,
|
|
606
|
+
schedule: external_exports.null(),
|
|
607
|
+
scheduleSummary: external_exports.null()
|
|
608
|
+
});
|
|
609
|
+
var chatThreadWorkflowGithubIssueCommentCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
610
|
+
kind: external_exports.literal("event"),
|
|
611
|
+
eventType: external_exports.literal("github-issue-comment-created"),
|
|
612
|
+
eventConfig: githubIssueCommentCreatedEventConfigSchema,
|
|
613
|
+
schedule: external_exports.null(),
|
|
614
|
+
scheduleSummary: external_exports.null()
|
|
615
|
+
});
|
|
616
|
+
var chatThreadWorkflowGoogleCalendarEventCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
617
|
+
kind: external_exports.literal("event"),
|
|
618
|
+
eventType: external_exports.literal("google-calendar-event-created"),
|
|
619
|
+
eventConfig: googleCalendarEventCreatedEventConfigSchema,
|
|
620
|
+
schedule: external_exports.null(),
|
|
621
|
+
scheduleSummary: external_exports.null()
|
|
622
|
+
});
|
|
623
|
+
var chatThreadWorkflowGoogleCalendarEventUpdatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
624
|
+
kind: external_exports.literal("event"),
|
|
625
|
+
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
626
|
+
eventConfig: googleCalendarEventUpdatedEventConfigSchema,
|
|
627
|
+
schedule: external_exports.null(),
|
|
628
|
+
scheduleSummary: external_exports.null()
|
|
629
|
+
});
|
|
630
|
+
var chatThreadWorkflowGoogleCalendarEventCancelledAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
631
|
+
kind: external_exports.literal("event"),
|
|
632
|
+
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
633
|
+
eventConfig: googleCalendarEventCancelledEventConfigSchema,
|
|
634
|
+
schedule: external_exports.null(),
|
|
635
|
+
scheduleSummary: external_exports.null()
|
|
636
|
+
});
|
|
637
|
+
var chatThreadWorkflowGoogleMeetTranscriptGeneratedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
638
|
+
kind: external_exports.literal("event"),
|
|
639
|
+
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
640
|
+
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema,
|
|
641
|
+
schedule: external_exports.null(),
|
|
642
|
+
scheduleSummary: external_exports.null()
|
|
643
|
+
});
|
|
644
|
+
var chatThreadWorkflowNotionChildPageCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
645
|
+
kind: external_exports.literal("event"),
|
|
646
|
+
eventType: external_exports.literal("notion-child-page-created"),
|
|
647
|
+
eventConfig: notionChildPageCreatedEventConfigSchema,
|
|
648
|
+
schedule: external_exports.null(),
|
|
649
|
+
scheduleSummary: external_exports.null()
|
|
650
|
+
});
|
|
651
|
+
var chatThreadWorkflowNotionDatabaseItemCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
652
|
+
kind: external_exports.literal("event"),
|
|
653
|
+
eventType: external_exports.literal("notion-database-item-created"),
|
|
654
|
+
eventConfig: notionDatabaseItemCreatedEventConfigSchema,
|
|
655
|
+
schedule: external_exports.null(),
|
|
656
|
+
scheduleSummary: external_exports.null()
|
|
657
|
+
});
|
|
658
|
+
var chatThreadWorkflowNotionPageContentUpdatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
659
|
+
kind: external_exports.literal("event"),
|
|
660
|
+
eventType: external_exports.literal("notion-page-content-updated"),
|
|
661
|
+
eventConfig: notionPageContentUpdatedEventConfigSchema,
|
|
662
|
+
schedule: external_exports.null(),
|
|
663
|
+
scheduleSummary: external_exports.null()
|
|
664
|
+
});
|
|
665
|
+
var chatThreadWorkflowStrapiEntryPublishedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
666
|
+
kind: external_exports.literal("event"),
|
|
667
|
+
eventType: external_exports.literal("strapi-entry-published"),
|
|
668
|
+
eventConfig: strapiEntryPublishedEventConfigSchema,
|
|
669
|
+
schedule: external_exports.null(),
|
|
670
|
+
scheduleSummary: external_exports.null()
|
|
671
|
+
});
|
|
672
|
+
var chatThreadWorkflowWebhookReceivedAutomationSchema = zeroWorkflowWebhookReceivedAutomationSummarySchema.extend({
|
|
673
|
+
id: external_exports.string().uuid(),
|
|
674
|
+
chatThreadId: external_exports.string().min(1),
|
|
675
|
+
workflow: chatThreadWorkflowSchema
|
|
676
|
+
});
|
|
677
|
+
var chatThreadWorkflowAutomationSchema = external_exports.union([
|
|
678
|
+
chatThreadWorkflowScheduleAutomationSchema,
|
|
679
|
+
chatThreadWorkflowChatRunFinishedAutomationSchema,
|
|
680
|
+
chatThreadWorkflowGmailNewMessageAutomationSchema,
|
|
681
|
+
chatThreadWorkflowGmailLabelAppliedAutomationSchema,
|
|
682
|
+
chatThreadWorkflowGithubLabelAppliedAutomationSchema,
|
|
683
|
+
chatThreadWorkflowGithubDeploymentStatusCreatedAutomationSchema,
|
|
684
|
+
chatThreadWorkflowGithubIssueCommentCreatedAutomationSchema,
|
|
685
|
+
chatThreadWorkflowGithubPullRequestReviewSubmittedAutomationSchema,
|
|
686
|
+
chatThreadWorkflowGithubWorkflowJobCompletedAutomationSchema,
|
|
687
|
+
chatThreadWorkflowGithubWorkflowRunCompletedAutomationSchema,
|
|
688
|
+
chatThreadWorkflowGoogleCalendarEventCreatedAutomationSchema,
|
|
689
|
+
chatThreadWorkflowGoogleCalendarEventUpdatedAutomationSchema,
|
|
690
|
+
chatThreadWorkflowGoogleCalendarEventCancelledAutomationSchema,
|
|
691
|
+
chatThreadWorkflowGoogleMeetTranscriptGeneratedAutomationSchema,
|
|
692
|
+
chatThreadWorkflowNotionChildPageCreatedAutomationSchema,
|
|
693
|
+
chatThreadWorkflowNotionDatabaseItemCreatedAutomationSchema,
|
|
694
|
+
chatThreadWorkflowNotionPageContentUpdatedAutomationSchema,
|
|
695
|
+
chatThreadWorkflowStrapiEntryPublishedAutomationSchema,
|
|
696
|
+
chatThreadWorkflowWebhookReceivedAutomationSchema
|
|
697
|
+
]);
|
|
698
|
+
var zeroWorkflowScheduleAutomationCreateRequestSchema = external_exports.object({
|
|
699
|
+
kind: external_exports.literal("schedule").optional(),
|
|
700
|
+
schedule: zeroWorkflowScheduleSchema,
|
|
701
|
+
enabled: external_exports.boolean().optional()
|
|
702
|
+
});
|
|
703
|
+
var zeroWorkflowChatRunFinishedAutomationCreateRequestSchema = external_exports.object({
|
|
704
|
+
kind: external_exports.literal("event"),
|
|
705
|
+
eventType: external_exports.literal("chat-run-finished"),
|
|
706
|
+
eventConfig: chatRunFinishedEventConfigSchema,
|
|
707
|
+
enabled: external_exports.boolean().optional()
|
|
708
|
+
});
|
|
709
|
+
var zeroWorkflowGmailNewMessageAutomationCreateRequestSchema = external_exports.object({
|
|
710
|
+
kind: external_exports.literal("event"),
|
|
711
|
+
eventType: external_exports.literal("gmail-new-message"),
|
|
712
|
+
eventConfig: gmailNewMessageEventConfigSchema,
|
|
713
|
+
enabled: external_exports.boolean().optional()
|
|
714
|
+
});
|
|
715
|
+
var zeroWorkflowGmailLabelAppliedAutomationCreateRequestSchema = external_exports.object({
|
|
716
|
+
kind: external_exports.literal("event"),
|
|
717
|
+
eventType: external_exports.literal("gmail-label-applied"),
|
|
718
|
+
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
719
|
+
enabled: external_exports.boolean().optional()
|
|
720
|
+
});
|
|
721
|
+
var zeroWorkflowGithubLabelAppliedAutomationCreateRequestSchema = external_exports.object({
|
|
722
|
+
kind: external_exports.literal("event"),
|
|
723
|
+
eventType: external_exports.literal("github-label-applied"),
|
|
724
|
+
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
725
|
+
enabled: external_exports.boolean().optional()
|
|
726
|
+
});
|
|
727
|
+
var zeroWorkflowGithubWorkflowRunCompletedAutomationCreateRequestSchema = external_exports.object({
|
|
728
|
+
kind: external_exports.literal("event"),
|
|
729
|
+
eventType: external_exports.literal("github-workflow-run-completed"),
|
|
730
|
+
eventConfig: githubWorkflowRunCompletedEventConfigSchema,
|
|
731
|
+
enabled: external_exports.boolean().optional()
|
|
732
|
+
});
|
|
733
|
+
var zeroWorkflowGithubWorkflowJobCompletedAutomationCreateRequestSchema = external_exports.object({
|
|
734
|
+
kind: external_exports.literal("event"),
|
|
735
|
+
eventType: external_exports.literal("github-workflow-job-completed"),
|
|
736
|
+
eventConfig: githubWorkflowJobCompletedEventConfigSchema,
|
|
737
|
+
enabled: external_exports.boolean().optional()
|
|
738
|
+
});
|
|
739
|
+
var zeroWorkflowGithubPullRequestReviewSubmittedAutomationCreateRequestSchema = external_exports.object({
|
|
740
|
+
kind: external_exports.literal("event"),
|
|
741
|
+
eventType: external_exports.literal("github-pull-request-review-submitted"),
|
|
742
|
+
eventConfig: githubPullRequestReviewSubmittedEventConfigSchema,
|
|
743
|
+
enabled: external_exports.boolean().optional()
|
|
744
|
+
});
|
|
745
|
+
var zeroWorkflowGithubDeploymentStatusCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
746
|
+
kind: external_exports.literal("event"),
|
|
747
|
+
eventType: external_exports.literal("github-deployment-status-created"),
|
|
748
|
+
eventConfig: githubDeploymentStatusCreatedEventConfigSchema,
|
|
749
|
+
enabled: external_exports.boolean().optional()
|
|
750
|
+
});
|
|
751
|
+
var zeroWorkflowGithubIssueCommentCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
752
|
+
kind: external_exports.literal("event"),
|
|
753
|
+
eventType: external_exports.literal("github-issue-comment-created"),
|
|
754
|
+
eventConfig: githubIssueCommentCreatedEventConfigSchema,
|
|
755
|
+
enabled: external_exports.boolean().optional()
|
|
756
|
+
});
|
|
757
|
+
var zeroWorkflowGoogleCalendarEventCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
758
|
+
kind: external_exports.literal("event"),
|
|
759
|
+
eventType: external_exports.literal("google-calendar-event-created"),
|
|
760
|
+
eventConfig: googleCalendarEventCreatedEventConfigSchema.optional().default({
|
|
761
|
+
provider: "google-calendar",
|
|
762
|
+
event: "event_created",
|
|
763
|
+
calendarId: "primary"
|
|
764
|
+
}),
|
|
765
|
+
enabled: external_exports.boolean().optional()
|
|
766
|
+
});
|
|
767
|
+
var zeroWorkflowGoogleCalendarEventUpdatedAutomationCreateRequestSchema = external_exports.object({
|
|
768
|
+
kind: external_exports.literal("event"),
|
|
769
|
+
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
770
|
+
eventConfig: googleCalendarEventUpdatedEventConfigSchema.optional().default({
|
|
771
|
+
provider: "google-calendar",
|
|
772
|
+
event: "event_updated",
|
|
773
|
+
calendarId: "primary"
|
|
774
|
+
}),
|
|
775
|
+
enabled: external_exports.boolean().optional()
|
|
776
|
+
});
|
|
777
|
+
var zeroWorkflowGoogleCalendarEventCancelledAutomationCreateRequestSchema = external_exports.object({
|
|
778
|
+
kind: external_exports.literal("event"),
|
|
779
|
+
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
780
|
+
eventConfig: googleCalendarEventCancelledEventConfigSchema.optional().default({
|
|
781
|
+
provider: "google-calendar",
|
|
782
|
+
event: "event_cancelled",
|
|
783
|
+
calendarId: "primary"
|
|
784
|
+
}),
|
|
785
|
+
enabled: external_exports.boolean().optional()
|
|
786
|
+
});
|
|
787
|
+
var zeroWorkflowGoogleMeetTranscriptGeneratedAutomationCreateRequestSchema = external_exports.object({
|
|
788
|
+
kind: external_exports.literal("event"),
|
|
789
|
+
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
790
|
+
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema.optional().default({
|
|
791
|
+
provider: "google-meet",
|
|
792
|
+
event: "transcript_generated",
|
|
793
|
+
scope: { type: "organizer_user" }
|
|
794
|
+
}),
|
|
795
|
+
enabled: external_exports.boolean().optional()
|
|
796
|
+
});
|
|
797
|
+
var zeroWorkflowNotionChildPageCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
798
|
+
kind: external_exports.literal("event"),
|
|
799
|
+
eventType: external_exports.literal("notion-child-page-created"),
|
|
800
|
+
eventConfig: notionChildPageCreatedEventCreateConfigSchema,
|
|
801
|
+
enabled: external_exports.boolean().optional()
|
|
802
|
+
});
|
|
803
|
+
var zeroWorkflowNotionDatabaseItemCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
804
|
+
kind: external_exports.literal("event"),
|
|
805
|
+
eventType: external_exports.literal("notion-database-item-created"),
|
|
806
|
+
eventConfig: notionDatabaseItemCreatedEventCreateConfigSchema,
|
|
807
|
+
enabled: external_exports.boolean().optional()
|
|
808
|
+
});
|
|
809
|
+
var zeroWorkflowNotionPageContentUpdatedAutomationCreateRequestSchema = external_exports.object({
|
|
810
|
+
kind: external_exports.literal("event"),
|
|
811
|
+
eventType: external_exports.literal("notion-page-content-updated"),
|
|
812
|
+
eventConfig: notionPageContentUpdatedEventCreateConfigSchema,
|
|
813
|
+
enabled: external_exports.boolean().optional()
|
|
814
|
+
});
|
|
815
|
+
var zeroWorkflowStrapiEntryPublishedAutomationCreateRequestSchema = external_exports.object({
|
|
816
|
+
kind: external_exports.literal("event"),
|
|
817
|
+
eventType: external_exports.literal("strapi-entry-published"),
|
|
818
|
+
eventConfig: strapiEntryPublishedEventConfigSchema,
|
|
819
|
+
enabled: external_exports.boolean().optional()
|
|
820
|
+
});
|
|
821
|
+
var zeroWorkflowWebhookReceivedAutomationCreateRequestSchema = external_exports.object({
|
|
822
|
+
kind: external_exports.literal("event"),
|
|
823
|
+
eventType: external_exports.literal("webhook-received"),
|
|
824
|
+
eventConfig: webhookReceivedEventConfigSchema.optional(),
|
|
825
|
+
enabled: external_exports.boolean().optional()
|
|
826
|
+
});
|
|
827
|
+
var zeroWorkflowAutomationCreateRequestSchema = external_exports.union([
|
|
828
|
+
zeroWorkflowScheduleAutomationCreateRequestSchema,
|
|
829
|
+
zeroWorkflowChatRunFinishedAutomationCreateRequestSchema,
|
|
830
|
+
zeroWorkflowGmailNewMessageAutomationCreateRequestSchema,
|
|
831
|
+
zeroWorkflowGmailLabelAppliedAutomationCreateRequestSchema,
|
|
832
|
+
zeroWorkflowGithubLabelAppliedAutomationCreateRequestSchema,
|
|
833
|
+
zeroWorkflowGithubDeploymentStatusCreatedAutomationCreateRequestSchema,
|
|
834
|
+
zeroWorkflowGithubIssueCommentCreatedAutomationCreateRequestSchema,
|
|
835
|
+
zeroWorkflowGithubPullRequestReviewSubmittedAutomationCreateRequestSchema,
|
|
836
|
+
zeroWorkflowGithubWorkflowJobCompletedAutomationCreateRequestSchema,
|
|
837
|
+
zeroWorkflowGithubWorkflowRunCompletedAutomationCreateRequestSchema,
|
|
838
|
+
zeroWorkflowGoogleCalendarEventCreatedAutomationCreateRequestSchema,
|
|
839
|
+
zeroWorkflowGoogleCalendarEventUpdatedAutomationCreateRequestSchema,
|
|
840
|
+
zeroWorkflowGoogleCalendarEventCancelledAutomationCreateRequestSchema,
|
|
841
|
+
zeroWorkflowGoogleMeetTranscriptGeneratedAutomationCreateRequestSchema,
|
|
842
|
+
zeroWorkflowNotionChildPageCreatedAutomationCreateRequestSchema,
|
|
843
|
+
zeroWorkflowNotionDatabaseItemCreatedAutomationCreateRequestSchema,
|
|
844
|
+
zeroWorkflowNotionPageContentUpdatedAutomationCreateRequestSchema,
|
|
845
|
+
zeroWorkflowStrapiEntryPublishedAutomationCreateRequestSchema,
|
|
846
|
+
zeroWorkflowWebhookReceivedAutomationCreateRequestSchema
|
|
847
|
+
]);
|
|
848
|
+
var zeroWorkflowScheduleAutomationUpdateRequestSchema = external_exports.object({
|
|
849
|
+
schedule: zeroWorkflowScheduleSchema
|
|
850
|
+
});
|
|
851
|
+
var zeroWorkflowGmailEventAutomationUpdateRequestSchema = external_exports.object({
|
|
852
|
+
eventConfig: gmailWorkflowEventConfigSchema
|
|
853
|
+
});
|
|
854
|
+
var zeroWorkflowGithubEventAutomationUpdateRequestSchema = external_exports.object({
|
|
855
|
+
eventConfig: githubWorkflowEventConfigSchema
|
|
856
|
+
});
|
|
857
|
+
var zeroWorkflowAutomationUpdateRequestSchema = external_exports.union([
|
|
858
|
+
zeroWorkflowScheduleAutomationUpdateRequestSchema,
|
|
859
|
+
zeroWorkflowGmailEventAutomationUpdateRequestSchema,
|
|
860
|
+
zeroWorkflowGithubEventAutomationUpdateRequestSchema
|
|
861
|
+
]);
|
|
862
|
+
var zeroWorkflowSummarySchema = external_exports.object({
|
|
863
|
+
id: external_exports.string().uuid(),
|
|
864
|
+
agentId: external_exports.string().uuid(),
|
|
865
|
+
agentName: external_exports.string().nullable(),
|
|
866
|
+
agentDisplayName: external_exports.string().nullable(),
|
|
867
|
+
name: zeroWorkflowNameSchema,
|
|
868
|
+
displayName: external_exports.string().max(256).nullable(),
|
|
869
|
+
description: external_exports.string().max(1024).nullable(),
|
|
870
|
+
visibility: zeroWorkflowVisibilitySchema,
|
|
871
|
+
ownerUserId: external_exports.string(),
|
|
872
|
+
ownerUserDisplayName: external_exports.string().nullable().optional(),
|
|
873
|
+
ownerUserImageUrl: external_exports.string().nullable().optional(),
|
|
874
|
+
createdAt: external_exports.string().datetime(),
|
|
875
|
+
canManage: external_exports.boolean(),
|
|
876
|
+
canPublish: external_exports.boolean(),
|
|
877
|
+
shadowedBy: external_exports.object({
|
|
878
|
+
id: external_exports.string().uuid(),
|
|
879
|
+
name: zeroWorkflowNameSchema,
|
|
880
|
+
displayName: external_exports.string().max(256).nullable()
|
|
881
|
+
}).nullable().optional()
|
|
882
|
+
});
|
|
883
|
+
var zeroWorkflowDetailResponseSchema = zeroWorkflowSummarySchema.extend({
|
|
884
|
+
createdByUserId: external_exports.string(),
|
|
885
|
+
updatedByUserId: external_exports.string(),
|
|
886
|
+
updatedAt: external_exports.string().datetime(),
|
|
887
|
+
instruction: external_exports.string().nullable(),
|
|
888
|
+
files: external_exports.array(workflowFileMetadataSchema).nullable(),
|
|
889
|
+
fileContents: external_exports.array(workflowFileEntrySchema).nullable(),
|
|
890
|
+
automations: external_exports.array(zeroWorkflowAutomationSummarySchema)
|
|
891
|
+
});
|
|
892
|
+
var zeroWorkflowListResponseSchema = external_exports.array(
|
|
893
|
+
zeroWorkflowSummarySchema
|
|
894
|
+
);
|
|
895
|
+
var zeroWorkflowAutomationsListEntrySchema = external_exports.object({
|
|
896
|
+
workflow: zeroWorkflowSummarySchema,
|
|
897
|
+
automation: zeroWorkflowAutomationSummarySchema
|
|
898
|
+
});
|
|
899
|
+
var zeroWorkflowAutomationsListResponseSchema = external_exports.array(
|
|
900
|
+
zeroWorkflowAutomationsListEntrySchema
|
|
901
|
+
);
|
|
902
|
+
var zeroWorkflowCreateRequestSchema = external_exports.object({
|
|
903
|
+
agentId: external_exports.string().uuid(),
|
|
904
|
+
chatThreadId: external_exports.string().uuid().optional(),
|
|
905
|
+
name: zeroWorkflowNameSchema,
|
|
906
|
+
instruction: workflowInstructionSchema.optional(),
|
|
907
|
+
files: workflowFilesSchema.optional(),
|
|
908
|
+
displayName: external_exports.string().max(256).optional(),
|
|
909
|
+
description: external_exports.string().max(1024).optional(),
|
|
910
|
+
visibility: zeroWorkflowVisibilitySchema.optional()
|
|
911
|
+
});
|
|
912
|
+
var zeroWorkflowUpdateRequestSchema = external_exports.object({
|
|
913
|
+
name: zeroWorkflowNameSchema.optional(),
|
|
914
|
+
instruction: workflowInstructionSchema.nullable().optional(),
|
|
915
|
+
files: workflowFilesSchema.optional(),
|
|
916
|
+
displayName: external_exports.string().max(256).nullable().optional(),
|
|
917
|
+
description: external_exports.string().max(1024).nullable().optional()
|
|
918
|
+
}).refine(
|
|
919
|
+
(body) => {
|
|
920
|
+
return body.name !== void 0 || body.instruction !== void 0 || body.files !== void 0 || body.displayName !== void 0 || body.description !== void 0;
|
|
921
|
+
},
|
|
922
|
+
{ message: "At least one workflow update is required" }
|
|
923
|
+
);
|
|
924
|
+
var zeroWorkflowCopyRequestSchema = external_exports.object({
|
|
925
|
+
toAgentId: external_exports.string().uuid()
|
|
926
|
+
});
|
|
927
|
+
var zeroWorkflowRunResponseSchema = external_exports.object({
|
|
928
|
+
chatThreadId: external_exports.string().uuid(),
|
|
929
|
+
// Null means the manual invocation is waiting in the chat thread queue and
|
|
930
|
+
// no run has been created for it yet.
|
|
931
|
+
runId: external_exports.string().nullable()
|
|
932
|
+
});
|
|
933
|
+
var zeroWorkflowChatThreadResponseSchema = external_exports.object({
|
|
934
|
+
chatThreadId: external_exports.string().uuid(),
|
|
935
|
+
prompt: external_exports.string()
|
|
936
|
+
});
|
|
937
|
+
var zeroWorkflowConnectorReadinessStatusSchema = external_exports.enum([
|
|
938
|
+
"connected",
|
|
939
|
+
"not-connected",
|
|
940
|
+
"scope-mismatch",
|
|
941
|
+
"reconnect-required",
|
|
942
|
+
"not-enabled-for-agent",
|
|
943
|
+
"unavailable"
|
|
944
|
+
]);
|
|
945
|
+
var zeroWorkflowConnectorReadinessEntrySchema = external_exports.object({
|
|
946
|
+
connectorSlug: connectorSlugSchema,
|
|
947
|
+
label: external_exports.string().min(1),
|
|
948
|
+
icon: publicConnectorCatalogIconSchema,
|
|
949
|
+
reason: external_exports.string().min(1),
|
|
950
|
+
status: zeroWorkflowConnectorReadinessStatusSchema
|
|
951
|
+
});
|
|
952
|
+
var zeroWorkflowConnectorReadinessResponseSchema = external_exports.object({
|
|
953
|
+
connectors: external_exports.array(zeroWorkflowConnectorReadinessEntrySchema)
|
|
954
|
+
}).strict();
|
|
955
|
+
var workflowIdParams = external_exports.object({ workflowId: external_exports.string().uuid() });
|
|
956
|
+
var zeroWorkflowsCollectionContract = c.router({
|
|
957
|
+
list: {
|
|
958
|
+
method: "GET",
|
|
959
|
+
path: "/api/zero/workflows",
|
|
960
|
+
headers: authHeadersSchema,
|
|
961
|
+
query: external_exports.object({ agentId: external_exports.string().uuid().optional() }),
|
|
962
|
+
responses: {
|
|
963
|
+
200: zeroWorkflowListResponseSchema,
|
|
964
|
+
401: apiErrorSchema,
|
|
965
|
+
403: apiErrorSchema
|
|
966
|
+
},
|
|
967
|
+
summary: "List visible workflows, optionally scoped to one agent"
|
|
968
|
+
},
|
|
969
|
+
create: {
|
|
970
|
+
method: "POST",
|
|
971
|
+
path: "/api/zero/workflows",
|
|
972
|
+
headers: authHeadersSchema,
|
|
973
|
+
body: zeroWorkflowCreateRequestSchema,
|
|
974
|
+
responses: {
|
|
975
|
+
201: zeroWorkflowSummarySchema,
|
|
976
|
+
400: apiErrorSchema,
|
|
977
|
+
401: apiErrorSchema,
|
|
978
|
+
403: apiErrorSchema,
|
|
979
|
+
404: apiErrorSchema,
|
|
980
|
+
409: apiErrorSchema
|
|
981
|
+
},
|
|
982
|
+
summary: "Create a workflow under an agent"
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
var zeroWorkflowsDetailContract = c.router({
|
|
986
|
+
get: {
|
|
987
|
+
method: "GET",
|
|
988
|
+
path: "/api/zero/workflows/:workflowId",
|
|
989
|
+
headers: authHeadersSchema,
|
|
990
|
+
pathParams: workflowIdParams,
|
|
991
|
+
responses: {
|
|
992
|
+
200: zeroWorkflowDetailResponseSchema,
|
|
993
|
+
401: apiErrorSchema,
|
|
994
|
+
403: apiErrorSchema,
|
|
995
|
+
404: apiErrorSchema
|
|
996
|
+
},
|
|
997
|
+
summary: "Get a workflow with its instruction and files"
|
|
998
|
+
},
|
|
999
|
+
update: {
|
|
1000
|
+
method: "PATCH",
|
|
1001
|
+
path: "/api/zero/workflows/:workflowId",
|
|
1002
|
+
headers: authHeadersSchema,
|
|
1003
|
+
pathParams: workflowIdParams,
|
|
1004
|
+
body: zeroWorkflowUpdateRequestSchema,
|
|
1005
|
+
responses: {
|
|
1006
|
+
200: zeroWorkflowDetailResponseSchema,
|
|
1007
|
+
400: apiErrorSchema,
|
|
1008
|
+
401: apiErrorSchema,
|
|
1009
|
+
403: apiErrorSchema,
|
|
1010
|
+
404: apiErrorSchema,
|
|
1011
|
+
409: apiErrorSchema
|
|
1012
|
+
},
|
|
1013
|
+
summary: "Update a workflow's instruction, files, or metadata"
|
|
1014
|
+
},
|
|
1015
|
+
delete: {
|
|
1016
|
+
method: "DELETE",
|
|
1017
|
+
path: "/api/zero/workflows/:workflowId",
|
|
1018
|
+
headers: authHeadersSchema,
|
|
1019
|
+
pathParams: workflowIdParams,
|
|
1020
|
+
body: c.noBody(),
|
|
1021
|
+
responses: {
|
|
1022
|
+
204: c.noBody(),
|
|
1023
|
+
401: apiErrorSchema,
|
|
1024
|
+
403: apiErrorSchema,
|
|
1025
|
+
404: apiErrorSchema
|
|
1026
|
+
},
|
|
1027
|
+
summary: "Delete a workflow"
|
|
1028
|
+
},
|
|
1029
|
+
copy: {
|
|
1030
|
+
method: "POST",
|
|
1031
|
+
path: "/api/zero/workflows/:workflowId/copy",
|
|
1032
|
+
headers: authHeadersSchema,
|
|
1033
|
+
pathParams: workflowIdParams,
|
|
1034
|
+
body: zeroWorkflowCopyRequestSchema,
|
|
1035
|
+
responses: {
|
|
1036
|
+
201: zeroWorkflowSummarySchema,
|
|
1037
|
+
400: apiErrorSchema,
|
|
1038
|
+
401: apiErrorSchema,
|
|
1039
|
+
403: apiErrorSchema,
|
|
1040
|
+
404: apiErrorSchema,
|
|
1041
|
+
409: apiErrorSchema
|
|
1042
|
+
},
|
|
1043
|
+
summary: "Copy (fork) a workflow onto another agent"
|
|
1044
|
+
},
|
|
1045
|
+
chatThread: {
|
|
1046
|
+
method: "POST",
|
|
1047
|
+
path: "/api/zero/workflows/:workflowId/chat-thread",
|
|
1048
|
+
headers: authHeadersSchema,
|
|
1049
|
+
pathParams: workflowIdParams,
|
|
1050
|
+
body: c.noBody(),
|
|
1051
|
+
responses: {
|
|
1052
|
+
200: zeroWorkflowChatThreadResponseSchema,
|
|
1053
|
+
401: apiErrorSchema,
|
|
1054
|
+
403: apiErrorSchema,
|
|
1055
|
+
404: apiErrorSchema
|
|
1056
|
+
},
|
|
1057
|
+
summary: "Get or create the shared chat thread for a workflow"
|
|
1058
|
+
},
|
|
1059
|
+
run: {
|
|
1060
|
+
method: "POST",
|
|
1061
|
+
path: "/api/zero/workflows/:workflowId/run",
|
|
1062
|
+
headers: authHeadersSchema,
|
|
1063
|
+
pathParams: workflowIdParams,
|
|
1064
|
+
body: c.noBody(),
|
|
1065
|
+
responses: {
|
|
1066
|
+
200: zeroWorkflowRunResponseSchema,
|
|
1067
|
+
400: apiErrorSchema,
|
|
1068
|
+
401: apiErrorSchema,
|
|
1069
|
+
402: apiErrorSchema,
|
|
1070
|
+
403: apiErrorSchema,
|
|
1071
|
+
404: apiErrorSchema,
|
|
1072
|
+
409: apiErrorSchema
|
|
1073
|
+
},
|
|
1074
|
+
summary: "Run the workflow once in its shared chat thread (equivalent to /slug)"
|
|
1075
|
+
},
|
|
1076
|
+
connectorReadiness: {
|
|
1077
|
+
method: "POST",
|
|
1078
|
+
path: "/api/zero/workflows/:workflowId/connector-readiness",
|
|
1079
|
+
headers: authHeadersSchema,
|
|
1080
|
+
pathParams: workflowIdParams,
|
|
1081
|
+
body: c.noBody(),
|
|
1082
|
+
responses: {
|
|
1083
|
+
200: zeroWorkflowConnectorReadinessResponseSchema,
|
|
1084
|
+
400: apiErrorSchema,
|
|
1085
|
+
401: apiErrorSchema,
|
|
1086
|
+
403: apiErrorSchema,
|
|
1087
|
+
404: apiErrorSchema,
|
|
1088
|
+
413: apiErrorSchema,
|
|
1089
|
+
503: apiErrorSchema
|
|
1090
|
+
},
|
|
1091
|
+
summary: "Detect the built-in connectors a workflow may need and report their readiness"
|
|
1092
|
+
}
|
|
1093
|
+
});
|
|
1094
|
+
var zeroWorkflowVisibilityContract = c.router({
|
|
1095
|
+
publish: {
|
|
1096
|
+
method: "POST",
|
|
1097
|
+
path: "/api/zero/workflows/:workflowId/publish",
|
|
1098
|
+
headers: authHeadersSchema,
|
|
1099
|
+
pathParams: workflowIdParams,
|
|
1100
|
+
body: c.noBody(),
|
|
1101
|
+
responses: {
|
|
1102
|
+
200: zeroWorkflowSummarySchema,
|
|
1103
|
+
400: apiErrorSchema,
|
|
1104
|
+
401: apiErrorSchema,
|
|
1105
|
+
403: apiErrorSchema,
|
|
1106
|
+
404: apiErrorSchema,
|
|
1107
|
+
409: apiErrorSchema
|
|
1108
|
+
},
|
|
1109
|
+
summary: "Publish a private workflow"
|
|
1110
|
+
},
|
|
1111
|
+
demote: {
|
|
1112
|
+
method: "POST",
|
|
1113
|
+
path: "/api/zero/workflows/:workflowId/demote",
|
|
1114
|
+
headers: authHeadersSchema,
|
|
1115
|
+
pathParams: workflowIdParams,
|
|
1116
|
+
body: c.noBody(),
|
|
1117
|
+
responses: {
|
|
1118
|
+
200: zeroWorkflowSummarySchema,
|
|
1119
|
+
400: apiErrorSchema,
|
|
1120
|
+
401: apiErrorSchema,
|
|
1121
|
+
403: apiErrorSchema,
|
|
1122
|
+
404: apiErrorSchema,
|
|
1123
|
+
409: apiErrorSchema
|
|
1124
|
+
},
|
|
1125
|
+
summary: "Agent write-permission holder demotes a public workflow to private"
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
var automationIdParams = external_exports.object({ id: external_exports.string().uuid() });
|
|
1129
|
+
var chatThreadIdParams = external_exports.object({ threadId: external_exports.string().min(1) });
|
|
1130
|
+
var zeroWorkflowWebhookSecretResponseSchema = external_exports.object({
|
|
1131
|
+
webhookUrl: external_exports.url(),
|
|
1132
|
+
webhookSecret: external_exports.string().min(1)
|
|
1133
|
+
});
|
|
1134
|
+
var zeroWorkflowAutomationsContract = c.router({
|
|
1135
|
+
listWorkspace: {
|
|
1136
|
+
method: "GET",
|
|
1137
|
+
path: "/api/zero/workflow-automations",
|
|
1138
|
+
headers: authHeadersSchema,
|
|
1139
|
+
responses: {
|
|
1140
|
+
200: zeroWorkflowAutomationsListResponseSchema,
|
|
1141
|
+
401: apiErrorSchema,
|
|
1142
|
+
403: apiErrorSchema
|
|
1143
|
+
},
|
|
1144
|
+
summary: "List the caller's automations across visible workflows"
|
|
1145
|
+
},
|
|
1146
|
+
listForChatThread: {
|
|
1147
|
+
method: "GET",
|
|
1148
|
+
path: "/api/zero/chat-threads/:threadId/workflow-automations",
|
|
1149
|
+
headers: authHeadersSchema,
|
|
1150
|
+
pathParams: chatThreadIdParams,
|
|
1151
|
+
responses: {
|
|
1152
|
+
200: external_exports.array(chatThreadWorkflowAutomationSchema),
|
|
1153
|
+
401: apiErrorSchema,
|
|
1154
|
+
403: apiErrorSchema,
|
|
1155
|
+
404: apiErrorSchema
|
|
1156
|
+
},
|
|
1157
|
+
summary: "List workflow automations bound to a chat thread"
|
|
1158
|
+
},
|
|
1159
|
+
list: {
|
|
1160
|
+
method: "GET",
|
|
1161
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
1162
|
+
headers: authHeadersSchema,
|
|
1163
|
+
pathParams: workflowIdParams,
|
|
1164
|
+
responses: {
|
|
1165
|
+
200: external_exports.array(zeroWorkflowAutomationSummarySchema),
|
|
1166
|
+
401: apiErrorSchema,
|
|
1167
|
+
403: apiErrorSchema,
|
|
1168
|
+
404: apiErrorSchema
|
|
1169
|
+
},
|
|
1170
|
+
summary: "List the caller's own automations for a workflow"
|
|
1171
|
+
},
|
|
1172
|
+
create: {
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
1175
|
+
headers: authHeadersSchema,
|
|
1176
|
+
pathParams: workflowIdParams,
|
|
1177
|
+
body: zeroWorkflowAutomationCreateRequestSchema,
|
|
1178
|
+
responses: {
|
|
1179
|
+
201: zeroWorkflowAutomationSummarySchema,
|
|
1180
|
+
400: apiErrorSchema,
|
|
1181
|
+
401: apiErrorSchema,
|
|
1182
|
+
402: apiErrorSchema,
|
|
1183
|
+
403: apiErrorSchema,
|
|
1184
|
+
404: apiErrorSchema,
|
|
1185
|
+
409: apiErrorSchema
|
|
1186
|
+
},
|
|
1187
|
+
summary: "Create an automation on a workflow"
|
|
1188
|
+
},
|
|
1189
|
+
get: {
|
|
1190
|
+
method: "GET",
|
|
1191
|
+
path: "/api/zero/workflow-automations/:id",
|
|
1192
|
+
headers: authHeadersSchema,
|
|
1193
|
+
pathParams: automationIdParams,
|
|
1194
|
+
responses: {
|
|
1195
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
1196
|
+
401: apiErrorSchema,
|
|
1197
|
+
403: apiErrorSchema,
|
|
1198
|
+
404: apiErrorSchema
|
|
1199
|
+
},
|
|
1200
|
+
summary: "Get a workflow automation"
|
|
1201
|
+
},
|
|
1202
|
+
update: {
|
|
1203
|
+
method: "PATCH",
|
|
1204
|
+
path: "/api/zero/workflow-automations/:id",
|
|
1205
|
+
headers: authHeadersSchema,
|
|
1206
|
+
pathParams: automationIdParams,
|
|
1207
|
+
body: zeroWorkflowAutomationUpdateRequestSchema,
|
|
1208
|
+
responses: {
|
|
1209
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
1210
|
+
400: apiErrorSchema,
|
|
1211
|
+
401: apiErrorSchema,
|
|
1212
|
+
403: apiErrorSchema,
|
|
1213
|
+
404: apiErrorSchema,
|
|
1214
|
+
409: apiErrorSchema
|
|
1215
|
+
},
|
|
1216
|
+
summary: "Update a workflow automation"
|
|
1217
|
+
},
|
|
1218
|
+
delete: {
|
|
1219
|
+
method: "DELETE",
|
|
1220
|
+
path: "/api/zero/workflow-automations/:id",
|
|
1221
|
+
headers: authHeadersSchema,
|
|
1222
|
+
pathParams: automationIdParams,
|
|
1223
|
+
body: c.noBody(),
|
|
1224
|
+
responses: {
|
|
1225
|
+
204: c.noBody(),
|
|
1226
|
+
401: apiErrorSchema,
|
|
1227
|
+
403: apiErrorSchema,
|
|
1228
|
+
404: apiErrorSchema
|
|
1229
|
+
},
|
|
1230
|
+
summary: "Delete a workflow automation"
|
|
1231
|
+
},
|
|
1232
|
+
enable: {
|
|
1233
|
+
method: "POST",
|
|
1234
|
+
path: "/api/zero/workflow-automations/:id/enable",
|
|
1235
|
+
headers: authHeadersSchema,
|
|
1236
|
+
pathParams: automationIdParams,
|
|
1237
|
+
body: c.noBody(),
|
|
1238
|
+
responses: {
|
|
1239
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
1240
|
+
400: apiErrorSchema,
|
|
1241
|
+
401: apiErrorSchema,
|
|
1242
|
+
402: apiErrorSchema,
|
|
1243
|
+
403: apiErrorSchema,
|
|
1244
|
+
404: apiErrorSchema,
|
|
1245
|
+
409: apiErrorSchema
|
|
1246
|
+
},
|
|
1247
|
+
summary: "Enable a workflow automation"
|
|
1248
|
+
},
|
|
1249
|
+
disable: {
|
|
1250
|
+
method: "POST",
|
|
1251
|
+
path: "/api/zero/workflow-automations/:id/disable",
|
|
1252
|
+
headers: authHeadersSchema,
|
|
1253
|
+
pathParams: automationIdParams,
|
|
1254
|
+
body: c.noBody(),
|
|
1255
|
+
responses: {
|
|
1256
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
1257
|
+
401: apiErrorSchema,
|
|
1258
|
+
403: apiErrorSchema,
|
|
1259
|
+
404: apiErrorSchema
|
|
1260
|
+
},
|
|
1261
|
+
summary: "Disable a workflow automation"
|
|
1262
|
+
},
|
|
1263
|
+
run: {
|
|
1264
|
+
method: "POST",
|
|
1265
|
+
path: "/api/zero/workflow-automations/:id/run",
|
|
1266
|
+
headers: authHeadersSchema,
|
|
1267
|
+
pathParams: automationIdParams,
|
|
1268
|
+
body: c.noBody(),
|
|
1269
|
+
responses: {
|
|
1270
|
+
201: zeroWorkflowRunResponseSchema,
|
|
1271
|
+
400: apiErrorSchema,
|
|
1272
|
+
401: apiErrorSchema,
|
|
1273
|
+
403: apiErrorSchema,
|
|
1274
|
+
404: apiErrorSchema,
|
|
1275
|
+
409: apiErrorSchema
|
|
1276
|
+
},
|
|
1277
|
+
summary: "Submit a workflow automation run in its bound chat thread"
|
|
1278
|
+
},
|
|
1279
|
+
revealWebhookSecret: {
|
|
1280
|
+
method: "POST",
|
|
1281
|
+
path: "/api/zero/workflow-automations/:id/webhook-secret",
|
|
1282
|
+
headers: authHeadersSchema,
|
|
1283
|
+
pathParams: automationIdParams,
|
|
1284
|
+
body: c.noBody(),
|
|
1285
|
+
responses: {
|
|
1286
|
+
200: zeroWorkflowWebhookSecretResponseSchema,
|
|
1287
|
+
401: apiErrorSchema,
|
|
1288
|
+
403: apiErrorSchema,
|
|
1289
|
+
404: apiErrorSchema
|
|
1290
|
+
},
|
|
1291
|
+
summary: "Reveal the webhook URL and signing secret for a workflow automation"
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1295
|
+
export {
|
|
1296
|
+
zeroWorkflowsCollectionContract,
|
|
1297
|
+
zeroWorkflowsDetailContract,
|
|
1298
|
+
zeroWorkflowAutomationsContract
|
|
1299
|
+
};
|
|
1300
|
+
//# sourceMappingURL=chunk-QQT7SBVV.js.map
|