@vm0/cli 9.240.1 → 9.240.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{agent-CC6SKDTE.js → agent-UU6BOD2Y.js} +5 -5
- package/{banking-KWWMVUGE.js → banking-TZDM6FPW.js} +3 -3
- package/{chat-EB6RKC6E.js → chat-VK7ROWG4.js} +4 -4
- package/{chunk-GV7CTPQI.js → chunk-23L3UUHO.js} +2 -2
- package/{chunk-GV7CTPQI.js.map → chunk-23L3UUHO.js.map} +1 -1
- package/{chunk-6F7XCWTU.js → chunk-3B4I4CZP.js} +2 -2
- package/{chunk-6F7XCWTU.js.map → chunk-3B4I4CZP.js.map} +1 -1
- package/{chunk-6ALDWWYS.js → chunk-FPEMD2NK.js} +2 -2
- package/{chunk-N6YH4JM3.js → chunk-IE6CD57U.js} +249 -170
- package/{chunk-N6YH4JM3.js.map → chunk-IE6CD57U.js.map} +1 -1
- package/{chunk-JWMJI6LS.js → chunk-IS7CXTNO.js} +4 -4
- package/{chunk-T5QRISGA.js → chunk-MKADDVH4.js} +19 -12
- package/chunk-MKADDVH4.js.map +1 -0
- package/{chunk-TYAWHQIR.js → chunk-MZ5MFXZ2.js} +2 -2
- package/{chunk-P4YM6FO3.js → chunk-TFOOMGCO.js} +3 -3
- package/{chunk-BESFDD3J.js → chunk-XQJWG3AG.js} +4 -4
- package/{chunk-GCIVQ5K7.js → chunk-YZCOVBMW.js} +9 -6
- package/chunk-YZCOVBMW.js.map +1 -0
- package/{computer-use-426SRXJY.js → computer-use-KTH27AG6.js} +3 -3
- package/{connector-6YIJ22VY.js → connector-5FB755QM.js} +4 -4
- package/{credit-MFMIQSDG.js → credit-TYXZRPFJ.js} +4 -4
- package/{developer-support-4O3ZV5VX.js → developer-support-YABCSEMY.js} +3 -3
- package/{doctor-YAHO7PJO.js → doctor-NV2P53SL.js} +5 -5
- package/{generate-CRNYFBIA.js → generate-ZEZEBATN.js} +5 -5
- package/{github-IZZ5W7R6.js → github-QQD7WEMP.js} +3 -3
- package/{goal-VIHAN4UG.js → goal-PB4CUVZA.js} +3 -3
- package/{host-AU4NSTEP.js → host-S3MAPKUG.js} +3 -3
- package/index.js +13 -13
- package/{logs-5MBUXZNI.js → logs-MLHFYXLR.js} +6 -6
- package/{maps-A4LBRA2Y.js → maps-IZRQS3JF.js} +3 -3
- package/{memory-4PLVIY7G.js → memory-J2WMMWSW.js} +3 -3
- package/{model-W34GOPB2.js → model-AWWXJUSK.js} +4 -4
- package/{model-provider-JMMU4LX3.js → model-provider-2IGQIWVG.js} +4 -4
- package/{org-FTGVJKXD.js → org-UYMEOGMZ.js} +3 -3
- package/package.json +1 -1
- package/{phone-PWHTCFSV.js → phone-26UXR2H2.js} +3 -3
- package/{preference-FMWABHOM.js → preference-DBYEHWGL.js} +3 -3
- package/{relationship-JK3EQGKR.js → relationship-PXMVIY2D.js} +3 -3
- package/{resource-VYIAC4ZQ.js → resource-FNKXDYGT.js} +4 -4
- package/{scrape-6EWMP2VJ.js → scrape-UYHZKOR7.js} +3 -3
- package/{search-333ILFPD.js → search-ABLZROBC.js} +6 -6
- package/{secret-XZFCBXQ4.js → secret-O5WPHVWS.js} +3 -3
- package/{slack-Y55PSFEQ.js → slack-HKNKQ4RF.js} +3 -3
- package/{teams-MU7O2ZUN.js → teams-4QW3KZWP.js} +3 -3
- package/{telegram-JVCLCOBW.js → telegram-K3XIZ7A2.js} +3 -3
- package/{variable-M32OKII3.js → variable-LY3F7PLD.js} +3 -3
- package/{video-EYLIFRKL.js → video-UY3U3BVR.js} +2 -2
- package/{web-MWIJ225B.js → web-K36WUVBQ.js} +3 -3
- package/{whoami-C7WISJD6.js → whoami-SECUPAZ5.js} +5 -5
- package/{workflow-NSKFK6TX.js → workflow-Q2XBT6JV.js} +292 -263
- package/workflow-Q2XBT6JV.js.map +1 -0
- package/zero.js +35 -35
- package/chunk-GCIVQ5K7.js.map +0 -1
- package/chunk-T5QRISGA.js.map +0 -1
- package/workflow-NSKFK6TX.js.map +0 -1
- /package/{agent-CC6SKDTE.js.map → agent-UU6BOD2Y.js.map} +0 -0
- /package/{banking-KWWMVUGE.js.map → banking-TZDM6FPW.js.map} +0 -0
- /package/{chat-EB6RKC6E.js.map → chat-VK7ROWG4.js.map} +0 -0
- /package/{chunk-6ALDWWYS.js.map → chunk-FPEMD2NK.js.map} +0 -0
- /package/{chunk-JWMJI6LS.js.map → chunk-IS7CXTNO.js.map} +0 -0
- /package/{chunk-TYAWHQIR.js.map → chunk-MZ5MFXZ2.js.map} +0 -0
- /package/{chunk-P4YM6FO3.js.map → chunk-TFOOMGCO.js.map} +0 -0
- /package/{chunk-BESFDD3J.js.map → chunk-XQJWG3AG.js.map} +0 -0
- /package/{computer-use-426SRXJY.js.map → computer-use-KTH27AG6.js.map} +0 -0
- /package/{connector-6YIJ22VY.js.map → connector-5FB755QM.js.map} +0 -0
- /package/{credit-MFMIQSDG.js.map → credit-TYXZRPFJ.js.map} +0 -0
- /package/{developer-support-4O3ZV5VX.js.map → developer-support-YABCSEMY.js.map} +0 -0
- /package/{doctor-YAHO7PJO.js.map → doctor-NV2P53SL.js.map} +0 -0
- /package/{generate-CRNYFBIA.js.map → generate-ZEZEBATN.js.map} +0 -0
- /package/{github-IZZ5W7R6.js.map → github-QQD7WEMP.js.map} +0 -0
- /package/{goal-VIHAN4UG.js.map → goal-PB4CUVZA.js.map} +0 -0
- /package/{host-AU4NSTEP.js.map → host-S3MAPKUG.js.map} +0 -0
- /package/{logs-5MBUXZNI.js.map → logs-MLHFYXLR.js.map} +0 -0
- /package/{maps-A4LBRA2Y.js.map → maps-IZRQS3JF.js.map} +0 -0
- /package/{memory-4PLVIY7G.js.map → memory-J2WMMWSW.js.map} +0 -0
- /package/{model-W34GOPB2.js.map → model-AWWXJUSK.js.map} +0 -0
- /package/{model-provider-JMMU4LX3.js.map → model-provider-2IGQIWVG.js.map} +0 -0
- /package/{org-FTGVJKXD.js.map → org-UYMEOGMZ.js.map} +0 -0
- /package/{phone-PWHTCFSV.js.map → phone-26UXR2H2.js.map} +0 -0
- /package/{preference-FMWABHOM.js.map → preference-DBYEHWGL.js.map} +0 -0
- /package/{relationship-JK3EQGKR.js.map → relationship-PXMVIY2D.js.map} +0 -0
- /package/{resource-VYIAC4ZQ.js.map → resource-FNKXDYGT.js.map} +0 -0
- /package/{scrape-6EWMP2VJ.js.map → scrape-UYHZKOR7.js.map} +0 -0
- /package/{search-333ILFPD.js.map → search-ABLZROBC.js.map} +0 -0
- /package/{secret-XZFCBXQ4.js.map → secret-O5WPHVWS.js.map} +0 -0
- /package/{slack-Y55PSFEQ.js.map → slack-HKNKQ4RF.js.map} +0 -0
- /package/{teams-MU7O2ZUN.js.map → teams-4QW3KZWP.js.map} +0 -0
- /package/{telegram-JVCLCOBW.js.map → telegram-K3XIZ7A2.js.map} +0 -0
- /package/{variable-M32OKII3.js.map → variable-LY3F7PLD.js.map} +0 -0
- /package/{video-EYLIFRKL.js.map → video-UY3U3BVR.js.map} +0 -0
- /package/{web-MWIJ225B.js.map → web-K36WUVBQ.js.map} +0 -0
- /package/{whoami-C7WISJD6.js.map → whoami-SECUPAZ5.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
updateOrgModelPoliciesRequestSchema,
|
|
23
23
|
upsertModelProviderRequestSchema,
|
|
24
24
|
upsertModelProviderResponseSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-23L3UUHO.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__esm,
|
|
@@ -7025,7 +7025,7 @@ var notionWebhookResponseSchema = external_exports.object({
|
|
|
7025
7025
|
refreshed: external_exports.number(),
|
|
7026
7026
|
duplicates: external_exports.number()
|
|
7027
7027
|
});
|
|
7028
|
-
var
|
|
7028
|
+
var workflowAutomationWebhookResponseSchema = external_exports.object({
|
|
7029
7029
|
success: external_exports.literal(true),
|
|
7030
7030
|
duplicate: external_exports.boolean(),
|
|
7031
7031
|
runId: external_exports.string().uuid().optional()
|
|
@@ -7089,24 +7089,34 @@ var webhookNotionContract = c27.router({
|
|
|
7089
7089
|
summary: "Handle Notion webhook events"
|
|
7090
7090
|
}
|
|
7091
7091
|
});
|
|
7092
|
-
var
|
|
7092
|
+
var workflowAutomationWebhookPostRoute = {
|
|
7093
|
+
method: "POST",
|
|
7094
|
+
pathParams: external_exports.object({
|
|
7095
|
+
token: external_exports.string().min(1)
|
|
7096
|
+
}),
|
|
7097
|
+
body: c27.type(),
|
|
7098
|
+
responses: {
|
|
7099
|
+
200: workflowAutomationWebhookResponseSchema,
|
|
7100
|
+
400: thirdPartyWebhookErrorSchema,
|
|
7101
|
+
401: thirdPartyWebhookErrorSchema,
|
|
7102
|
+
404: thirdPartyWebhookErrorSchema,
|
|
7103
|
+
413: thirdPartyWebhookErrorSchema,
|
|
7104
|
+
429: thirdPartyWebhookErrorSchema,
|
|
7105
|
+
500: thirdPartyWebhookErrorSchema
|
|
7106
|
+
}
|
|
7107
|
+
};
|
|
7108
|
+
var webhookWorkflowAutomationContract = c27.router({
|
|
7093
7109
|
post: {
|
|
7094
|
-
|
|
7110
|
+
...workflowAutomationWebhookPostRoute,
|
|
7111
|
+
path: "/api/webhooks/workflow-automations/:token",
|
|
7112
|
+
summary: "Handle inbound workflow automation webhooks"
|
|
7113
|
+
}
|
|
7114
|
+
});
|
|
7115
|
+
var legacyWebhookWorkflowAutomationContract = c27.router({
|
|
7116
|
+
post: {
|
|
7117
|
+
...workflowAutomationWebhookPostRoute,
|
|
7095
7118
|
path: "/api/webhooks/workflow-triggers/:token",
|
|
7096
|
-
|
|
7097
|
-
token: external_exports.string().min(1)
|
|
7098
|
-
}),
|
|
7099
|
-
body: c27.type(),
|
|
7100
|
-
responses: {
|
|
7101
|
-
200: workflowTriggerWebhookResponseSchema,
|
|
7102
|
-
400: thirdPartyWebhookErrorSchema,
|
|
7103
|
-
401: thirdPartyWebhookErrorSchema,
|
|
7104
|
-
404: thirdPartyWebhookErrorSchema,
|
|
7105
|
-
413: thirdPartyWebhookErrorSchema,
|
|
7106
|
-
429: thirdPartyWebhookErrorSchema,
|
|
7107
|
-
500: thirdPartyWebhookErrorSchema
|
|
7108
|
-
},
|
|
7109
|
-
summary: "Handle inbound workflow trigger webhooks"
|
|
7119
|
+
summary: "Handle inbound automation webhooks through the legacy path"
|
|
7110
7120
|
}
|
|
7111
7121
|
});
|
|
7112
7122
|
var webhookBuiltInGenerationFalContract = c27.router({
|
|
@@ -10134,7 +10144,7 @@ var workflowFileMetadataSchema = external_exports.object({
|
|
|
10134
10144
|
});
|
|
10135
10145
|
var workflowInstructionSchema = external_exports.string().max(WORKFLOW_FILES_MAX_BYTES);
|
|
10136
10146
|
var zeroWorkflowScheduleTypeSchema = external_exports.enum(["cron", "loop", "once"]);
|
|
10137
|
-
var
|
|
10147
|
+
var zeroWorkflowAutomationKindSchema = external_exports.enum(["schedule", "event"]);
|
|
10138
10148
|
var zeroWorkflowEventTypeSchema = external_exports.enum([
|
|
10139
10149
|
"gmail-new-message",
|
|
10140
10150
|
"gmail-label-applied",
|
|
@@ -10306,7 +10316,7 @@ var zeroWorkflowScheduleSchema = external_exports.discriminatedUnion("type", [
|
|
|
10306
10316
|
timezone: external_exports.string().min(1)
|
|
10307
10317
|
})
|
|
10308
10318
|
]);
|
|
10309
|
-
var
|
|
10319
|
+
var zeroWorkflowAutomationSummaryBaseSchema = external_exports.object({
|
|
10310
10320
|
id: external_exports.string(),
|
|
10311
10321
|
ownerUserId: external_exports.string(),
|
|
10312
10322
|
enabled: external_exports.boolean(),
|
|
@@ -10314,82 +10324,82 @@ var zeroWorkflowTriggerSummaryBaseSchema = external_exports.object({
|
|
|
10314
10324
|
nextRunAt: external_exports.string().datetime().nullable(),
|
|
10315
10325
|
lastRunAt: external_exports.string().datetime().nullable()
|
|
10316
10326
|
});
|
|
10317
|
-
var
|
|
10327
|
+
var zeroWorkflowScheduleAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10318
10328
|
kind: external_exports.literal("schedule"),
|
|
10319
10329
|
schedule: zeroWorkflowScheduleSchema,
|
|
10320
10330
|
scheduleSummary: external_exports.string()
|
|
10321
10331
|
});
|
|
10322
|
-
var
|
|
10332
|
+
var zeroWorkflowGmailNewMessageAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10323
10333
|
kind: external_exports.literal("event"),
|
|
10324
10334
|
eventType: external_exports.literal("gmail-new-message"),
|
|
10325
10335
|
eventConfig: gmailNewMessageEventConfigSchema,
|
|
10326
10336
|
schedule: external_exports.null(),
|
|
10327
10337
|
scheduleSummary: external_exports.null()
|
|
10328
10338
|
});
|
|
10329
|
-
var
|
|
10339
|
+
var zeroWorkflowGmailLabelAppliedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10330
10340
|
kind: external_exports.literal("event"),
|
|
10331
10341
|
eventType: external_exports.literal("gmail-label-applied"),
|
|
10332
10342
|
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
10333
10343
|
schedule: external_exports.null(),
|
|
10334
10344
|
scheduleSummary: external_exports.null()
|
|
10335
10345
|
});
|
|
10336
|
-
var
|
|
10346
|
+
var zeroWorkflowGithubLabelAppliedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10337
10347
|
kind: external_exports.literal("event"),
|
|
10338
10348
|
eventType: external_exports.literal("github-label-applied"),
|
|
10339
10349
|
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
10340
10350
|
schedule: external_exports.null(),
|
|
10341
10351
|
scheduleSummary: external_exports.null()
|
|
10342
10352
|
});
|
|
10343
|
-
var
|
|
10353
|
+
var zeroWorkflowGoogleCalendarEventCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10344
10354
|
kind: external_exports.literal("event"),
|
|
10345
10355
|
eventType: external_exports.literal("google-calendar-event-created"),
|
|
10346
10356
|
eventConfig: googleCalendarEventCreatedEventConfigSchema,
|
|
10347
10357
|
schedule: external_exports.null(),
|
|
10348
10358
|
scheduleSummary: external_exports.null()
|
|
10349
10359
|
});
|
|
10350
|
-
var
|
|
10360
|
+
var zeroWorkflowGoogleCalendarEventUpdatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10351
10361
|
kind: external_exports.literal("event"),
|
|
10352
10362
|
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
10353
10363
|
eventConfig: googleCalendarEventUpdatedEventConfigSchema,
|
|
10354
10364
|
schedule: external_exports.null(),
|
|
10355
10365
|
scheduleSummary: external_exports.null()
|
|
10356
10366
|
});
|
|
10357
|
-
var
|
|
10367
|
+
var zeroWorkflowGoogleCalendarEventCancelledAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10358
10368
|
kind: external_exports.literal("event"),
|
|
10359
10369
|
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
10360
10370
|
eventConfig: googleCalendarEventCancelledEventConfigSchema,
|
|
10361
10371
|
schedule: external_exports.null(),
|
|
10362
10372
|
scheduleSummary: external_exports.null()
|
|
10363
10373
|
});
|
|
10364
|
-
var
|
|
10374
|
+
var zeroWorkflowGoogleMeetTranscriptGeneratedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10365
10375
|
kind: external_exports.literal("event"),
|
|
10366
10376
|
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
10367
10377
|
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema,
|
|
10368
10378
|
schedule: external_exports.null(),
|
|
10369
10379
|
scheduleSummary: external_exports.null()
|
|
10370
10380
|
});
|
|
10371
|
-
var
|
|
10381
|
+
var zeroWorkflowNotionChildPageCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10372
10382
|
kind: external_exports.literal("event"),
|
|
10373
10383
|
eventType: external_exports.literal("notion-child-page-created"),
|
|
10374
10384
|
eventConfig: notionChildPageCreatedEventConfigSchema,
|
|
10375
10385
|
schedule: external_exports.null(),
|
|
10376
10386
|
scheduleSummary: external_exports.null()
|
|
10377
10387
|
});
|
|
10378
|
-
var
|
|
10388
|
+
var zeroWorkflowNotionDatabaseItemCreatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10379
10389
|
kind: external_exports.literal("event"),
|
|
10380
10390
|
eventType: external_exports.literal("notion-database-item-created"),
|
|
10381
10391
|
eventConfig: notionDatabaseItemCreatedEventConfigSchema,
|
|
10382
10392
|
schedule: external_exports.null(),
|
|
10383
10393
|
scheduleSummary: external_exports.null()
|
|
10384
10394
|
});
|
|
10385
|
-
var
|
|
10395
|
+
var zeroWorkflowNotionPageContentUpdatedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10386
10396
|
kind: external_exports.literal("event"),
|
|
10387
10397
|
eventType: external_exports.literal("notion-page-content-updated"),
|
|
10388
10398
|
eventConfig: notionPageContentUpdatedEventConfigSchema,
|
|
10389
10399
|
schedule: external_exports.null(),
|
|
10390
10400
|
scheduleSummary: external_exports.null()
|
|
10391
10401
|
});
|
|
10392
|
-
var
|
|
10402
|
+
var zeroWorkflowWebhookReceivedAutomationSummarySchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10393
10403
|
kind: external_exports.literal("event"),
|
|
10394
10404
|
eventType: external_exports.literal("webhook-received"),
|
|
10395
10405
|
eventConfig: webhookReceivedEventConfigSchema,
|
|
@@ -10401,25 +10411,25 @@ var zeroWorkflowWebhookReceivedTriggerSummarySchema = zeroWorkflowTriggerSummary
|
|
|
10401
10411
|
lastReceivedAt: external_exports.string().datetime().nullable(),
|
|
10402
10412
|
webhookSecret: external_exports.string().min(1).optional()
|
|
10403
10413
|
});
|
|
10404
|
-
var
|
|
10414
|
+
var zeroWorkflowEventAutomationSummarySchema = external_exports.discriminatedUnion(
|
|
10405
10415
|
"eventType",
|
|
10406
10416
|
[
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10417
|
+
zeroWorkflowGmailNewMessageAutomationSummarySchema,
|
|
10418
|
+
zeroWorkflowGmailLabelAppliedAutomationSummarySchema,
|
|
10419
|
+
zeroWorkflowGithubLabelAppliedAutomationSummarySchema,
|
|
10420
|
+
zeroWorkflowGoogleCalendarEventCreatedAutomationSummarySchema,
|
|
10421
|
+
zeroWorkflowGoogleCalendarEventUpdatedAutomationSummarySchema,
|
|
10422
|
+
zeroWorkflowGoogleCalendarEventCancelledAutomationSummarySchema,
|
|
10423
|
+
zeroWorkflowGoogleMeetTranscriptGeneratedAutomationSummarySchema,
|
|
10424
|
+
zeroWorkflowNotionChildPageCreatedAutomationSummarySchema,
|
|
10425
|
+
zeroWorkflowNotionDatabaseItemCreatedAutomationSummarySchema,
|
|
10426
|
+
zeroWorkflowNotionPageContentUpdatedAutomationSummarySchema,
|
|
10427
|
+
zeroWorkflowWebhookReceivedAutomationSummarySchema
|
|
10418
10428
|
]
|
|
10419
10429
|
);
|
|
10420
|
-
var
|
|
10421
|
-
|
|
10422
|
-
|
|
10430
|
+
var zeroWorkflowAutomationSummarySchema = external_exports.union([
|
|
10431
|
+
zeroWorkflowScheduleAutomationSummarySchema,
|
|
10432
|
+
zeroWorkflowEventAutomationSummarySchema
|
|
10423
10433
|
]);
|
|
10424
10434
|
var chatThreadWorkflowSchema = external_exports.object({
|
|
10425
10435
|
id: external_exports.string().uuid(),
|
|
@@ -10428,131 +10438,129 @@ var chatThreadWorkflowSchema = external_exports.object({
|
|
|
10428
10438
|
displayName: external_exports.string().nullable(),
|
|
10429
10439
|
description: external_exports.string().nullable()
|
|
10430
10440
|
});
|
|
10431
|
-
var
|
|
10441
|
+
var chatThreadWorkflowAutomationBaseSchema = zeroWorkflowAutomationSummaryBaseSchema.extend({
|
|
10432
10442
|
id: external_exports.string().uuid(),
|
|
10433
10443
|
chatThreadId: external_exports.string().min(1),
|
|
10434
10444
|
workflow: chatThreadWorkflowSchema
|
|
10435
10445
|
});
|
|
10436
|
-
var
|
|
10446
|
+
var chatThreadWorkflowScheduleAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10437
10447
|
kind: external_exports.literal("schedule"),
|
|
10438
10448
|
schedule: zeroWorkflowScheduleSchema,
|
|
10439
10449
|
scheduleSummary: external_exports.string()
|
|
10440
10450
|
});
|
|
10441
|
-
var
|
|
10451
|
+
var chatThreadWorkflowGmailNewMessageAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10442
10452
|
kind: external_exports.literal("event"),
|
|
10443
10453
|
eventType: external_exports.literal("gmail-new-message"),
|
|
10444
10454
|
eventConfig: gmailNewMessageEventConfigSchema,
|
|
10445
10455
|
schedule: external_exports.null(),
|
|
10446
10456
|
scheduleSummary: external_exports.null()
|
|
10447
10457
|
});
|
|
10448
|
-
var
|
|
10458
|
+
var chatThreadWorkflowGmailLabelAppliedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10449
10459
|
kind: external_exports.literal("event"),
|
|
10450
10460
|
eventType: external_exports.literal("gmail-label-applied"),
|
|
10451
10461
|
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
10452
10462
|
schedule: external_exports.null(),
|
|
10453
10463
|
scheduleSummary: external_exports.null()
|
|
10454
10464
|
});
|
|
10455
|
-
var
|
|
10465
|
+
var chatThreadWorkflowGithubLabelAppliedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10456
10466
|
kind: external_exports.literal("event"),
|
|
10457
10467
|
eventType: external_exports.literal("github-label-applied"),
|
|
10458
10468
|
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
10459
10469
|
schedule: external_exports.null(),
|
|
10460
10470
|
scheduleSummary: external_exports.null()
|
|
10461
10471
|
});
|
|
10462
|
-
var
|
|
10472
|
+
var chatThreadWorkflowGoogleCalendarEventCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10463
10473
|
kind: external_exports.literal("event"),
|
|
10464
10474
|
eventType: external_exports.literal("google-calendar-event-created"),
|
|
10465
10475
|
eventConfig: googleCalendarEventCreatedEventConfigSchema,
|
|
10466
10476
|
schedule: external_exports.null(),
|
|
10467
10477
|
scheduleSummary: external_exports.null()
|
|
10468
10478
|
});
|
|
10469
|
-
var
|
|
10479
|
+
var chatThreadWorkflowGoogleCalendarEventUpdatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10470
10480
|
kind: external_exports.literal("event"),
|
|
10471
10481
|
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
10472
10482
|
eventConfig: googleCalendarEventUpdatedEventConfigSchema,
|
|
10473
10483
|
schedule: external_exports.null(),
|
|
10474
10484
|
scheduleSummary: external_exports.null()
|
|
10475
10485
|
});
|
|
10476
|
-
var
|
|
10486
|
+
var chatThreadWorkflowGoogleCalendarEventCancelledAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10477
10487
|
kind: external_exports.literal("event"),
|
|
10478
10488
|
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
10479
10489
|
eventConfig: googleCalendarEventCancelledEventConfigSchema,
|
|
10480
10490
|
schedule: external_exports.null(),
|
|
10481
10491
|
scheduleSummary: external_exports.null()
|
|
10482
10492
|
});
|
|
10483
|
-
var
|
|
10493
|
+
var chatThreadWorkflowGoogleMeetTranscriptGeneratedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10484
10494
|
kind: external_exports.literal("event"),
|
|
10485
10495
|
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
10486
10496
|
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema,
|
|
10487
10497
|
schedule: external_exports.null(),
|
|
10488
10498
|
scheduleSummary: external_exports.null()
|
|
10489
10499
|
});
|
|
10490
|
-
var
|
|
10500
|
+
var chatThreadWorkflowNotionChildPageCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10491
10501
|
kind: external_exports.literal("event"),
|
|
10492
10502
|
eventType: external_exports.literal("notion-child-page-created"),
|
|
10493
10503
|
eventConfig: notionChildPageCreatedEventConfigSchema,
|
|
10494
10504
|
schedule: external_exports.null(),
|
|
10495
10505
|
scheduleSummary: external_exports.null()
|
|
10496
10506
|
});
|
|
10497
|
-
var
|
|
10507
|
+
var chatThreadWorkflowNotionDatabaseItemCreatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10498
10508
|
kind: external_exports.literal("event"),
|
|
10499
10509
|
eventType: external_exports.literal("notion-database-item-created"),
|
|
10500
10510
|
eventConfig: notionDatabaseItemCreatedEventConfigSchema,
|
|
10501
10511
|
schedule: external_exports.null(),
|
|
10502
10512
|
scheduleSummary: external_exports.null()
|
|
10503
10513
|
});
|
|
10504
|
-
var
|
|
10514
|
+
var chatThreadWorkflowNotionPageContentUpdatedAutomationSchema = chatThreadWorkflowAutomationBaseSchema.extend({
|
|
10505
10515
|
kind: external_exports.literal("event"),
|
|
10506
10516
|
eventType: external_exports.literal("notion-page-content-updated"),
|
|
10507
10517
|
eventConfig: notionPageContentUpdatedEventConfigSchema,
|
|
10508
10518
|
schedule: external_exports.null(),
|
|
10509
10519
|
scheduleSummary: external_exports.null()
|
|
10510
10520
|
});
|
|
10511
|
-
var
|
|
10521
|
+
var chatThreadWorkflowWebhookReceivedAutomationSchema = zeroWorkflowWebhookReceivedAutomationSummarySchema.extend({
|
|
10512
10522
|
id: external_exports.string().uuid(),
|
|
10513
10523
|
chatThreadId: external_exports.string().min(1),
|
|
10514
10524
|
workflow: chatThreadWorkflowSchema
|
|
10515
10525
|
});
|
|
10516
|
-
var
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10526
|
+
var chatThreadWorkflowAutomationSchema = external_exports.union([
|
|
10527
|
+
chatThreadWorkflowScheduleAutomationSchema,
|
|
10528
|
+
chatThreadWorkflowGmailNewMessageAutomationSchema,
|
|
10529
|
+
chatThreadWorkflowGmailLabelAppliedAutomationSchema,
|
|
10530
|
+
chatThreadWorkflowGithubLabelAppliedAutomationSchema,
|
|
10531
|
+
chatThreadWorkflowGoogleCalendarEventCreatedAutomationSchema,
|
|
10532
|
+
chatThreadWorkflowGoogleCalendarEventUpdatedAutomationSchema,
|
|
10533
|
+
chatThreadWorkflowGoogleCalendarEventCancelledAutomationSchema,
|
|
10534
|
+
chatThreadWorkflowGoogleMeetTranscriptGeneratedAutomationSchema,
|
|
10535
|
+
chatThreadWorkflowNotionChildPageCreatedAutomationSchema,
|
|
10536
|
+
chatThreadWorkflowNotionDatabaseItemCreatedAutomationSchema,
|
|
10537
|
+
chatThreadWorkflowNotionPageContentUpdatedAutomationSchema,
|
|
10538
|
+
chatThreadWorkflowWebhookReceivedAutomationSchema
|
|
10529
10539
|
]);
|
|
10530
|
-
var
|
|
10540
|
+
var zeroWorkflowScheduleAutomationCreateRequestSchema = external_exports.object({
|
|
10531
10541
|
kind: external_exports.literal("schedule").optional(),
|
|
10532
10542
|
schedule: zeroWorkflowScheduleSchema,
|
|
10533
10543
|
enabled: external_exports.boolean().optional()
|
|
10534
10544
|
});
|
|
10535
|
-
var
|
|
10545
|
+
var zeroWorkflowGmailNewMessageAutomationCreateRequestSchema = external_exports.object({
|
|
10536
10546
|
kind: external_exports.literal("event"),
|
|
10537
10547
|
eventType: external_exports.literal("gmail-new-message"),
|
|
10538
10548
|
eventConfig: gmailNewMessageEventConfigSchema,
|
|
10539
10549
|
enabled: external_exports.boolean().optional()
|
|
10540
10550
|
});
|
|
10541
|
-
var
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
);
|
|
10549
|
-
var zeroWorkflowGithubLabelAppliedTriggerCreateRequestSchema = external_exports.object({
|
|
10551
|
+
var zeroWorkflowGmailLabelAppliedAutomationCreateRequestSchema = external_exports.object({
|
|
10552
|
+
kind: external_exports.literal("event"),
|
|
10553
|
+
eventType: external_exports.literal("gmail-label-applied"),
|
|
10554
|
+
eventConfig: gmailLabelAppliedEventConfigSchema,
|
|
10555
|
+
enabled: external_exports.boolean().optional()
|
|
10556
|
+
});
|
|
10557
|
+
var zeroWorkflowGithubLabelAppliedAutomationCreateRequestSchema = external_exports.object({
|
|
10550
10558
|
kind: external_exports.literal("event"),
|
|
10551
10559
|
eventType: external_exports.literal("github-label-applied"),
|
|
10552
10560
|
eventConfig: githubLabelAppliedEventConfigSchema,
|
|
10553
10561
|
enabled: external_exports.boolean().optional()
|
|
10554
10562
|
});
|
|
10555
|
-
var
|
|
10563
|
+
var zeroWorkflowGoogleCalendarEventCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
10556
10564
|
kind: external_exports.literal("event"),
|
|
10557
10565
|
eventType: external_exports.literal("google-calendar-event-created"),
|
|
10558
10566
|
eventConfig: googleCalendarEventCreatedEventConfigSchema.optional().default({
|
|
@@ -10562,7 +10570,7 @@ var zeroWorkflowGoogleCalendarEventCreatedTriggerCreateRequestSchema = external_
|
|
|
10562
10570
|
}),
|
|
10563
10571
|
enabled: external_exports.boolean().optional()
|
|
10564
10572
|
});
|
|
10565
|
-
var
|
|
10573
|
+
var zeroWorkflowGoogleCalendarEventUpdatedAutomationCreateRequestSchema = external_exports.object({
|
|
10566
10574
|
kind: external_exports.literal("event"),
|
|
10567
10575
|
eventType: external_exports.literal("google-calendar-event-updated"),
|
|
10568
10576
|
eventConfig: googleCalendarEventUpdatedEventConfigSchema.optional().default({
|
|
@@ -10572,7 +10580,7 @@ var zeroWorkflowGoogleCalendarEventUpdatedTriggerCreateRequestSchema = external_
|
|
|
10572
10580
|
}),
|
|
10573
10581
|
enabled: external_exports.boolean().optional()
|
|
10574
10582
|
});
|
|
10575
|
-
var
|
|
10583
|
+
var zeroWorkflowGoogleCalendarEventCancelledAutomationCreateRequestSchema = external_exports.object({
|
|
10576
10584
|
kind: external_exports.literal("event"),
|
|
10577
10585
|
eventType: external_exports.literal("google-calendar-event-cancelled"),
|
|
10578
10586
|
eventConfig: googleCalendarEventCancelledEventConfigSchema.optional().default({
|
|
@@ -10582,7 +10590,7 @@ var zeroWorkflowGoogleCalendarEventCancelledTriggerCreateRequestSchema = externa
|
|
|
10582
10590
|
}),
|
|
10583
10591
|
enabled: external_exports.boolean().optional()
|
|
10584
10592
|
});
|
|
10585
|
-
var
|
|
10593
|
+
var zeroWorkflowGoogleMeetTranscriptGeneratedAutomationCreateRequestSchema = external_exports.object({
|
|
10586
10594
|
kind: external_exports.literal("event"),
|
|
10587
10595
|
eventType: external_exports.literal("google-meet-transcript-generated"),
|
|
10588
10596
|
eventConfig: googleMeetTranscriptGeneratedEventConfigSchema.optional().default({
|
|
@@ -10592,57 +10600,57 @@ var zeroWorkflowGoogleMeetTranscriptGeneratedTriggerCreateRequestSchema = extern
|
|
|
10592
10600
|
}),
|
|
10593
10601
|
enabled: external_exports.boolean().optional()
|
|
10594
10602
|
});
|
|
10595
|
-
var
|
|
10603
|
+
var zeroWorkflowNotionChildPageCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
10596
10604
|
kind: external_exports.literal("event"),
|
|
10597
10605
|
eventType: external_exports.literal("notion-child-page-created"),
|
|
10598
10606
|
eventConfig: notionChildPageCreatedEventCreateConfigSchema,
|
|
10599
10607
|
enabled: external_exports.boolean().optional()
|
|
10600
10608
|
});
|
|
10601
|
-
var
|
|
10609
|
+
var zeroWorkflowNotionDatabaseItemCreatedAutomationCreateRequestSchema = external_exports.object({
|
|
10602
10610
|
kind: external_exports.literal("event"),
|
|
10603
10611
|
eventType: external_exports.literal("notion-database-item-created"),
|
|
10604
10612
|
eventConfig: notionDatabaseItemCreatedEventCreateConfigSchema,
|
|
10605
10613
|
enabled: external_exports.boolean().optional()
|
|
10606
10614
|
});
|
|
10607
|
-
var
|
|
10615
|
+
var zeroWorkflowNotionPageContentUpdatedAutomationCreateRequestSchema = external_exports.object({
|
|
10608
10616
|
kind: external_exports.literal("event"),
|
|
10609
10617
|
eventType: external_exports.literal("notion-page-content-updated"),
|
|
10610
10618
|
eventConfig: notionPageContentUpdatedEventCreateConfigSchema,
|
|
10611
10619
|
enabled: external_exports.boolean().optional()
|
|
10612
10620
|
});
|
|
10613
|
-
var
|
|
10621
|
+
var zeroWorkflowWebhookReceivedAutomationCreateRequestSchema = external_exports.object({
|
|
10614
10622
|
kind: external_exports.literal("event"),
|
|
10615
10623
|
eventType: external_exports.literal("webhook-received"),
|
|
10616
10624
|
eventConfig: webhookReceivedEventConfigSchema.optional(),
|
|
10617
10625
|
enabled: external_exports.boolean().optional()
|
|
10618
10626
|
});
|
|
10619
|
-
var
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10627
|
+
var zeroWorkflowAutomationCreateRequestSchema = external_exports.union([
|
|
10628
|
+
zeroWorkflowScheduleAutomationCreateRequestSchema,
|
|
10629
|
+
zeroWorkflowGmailNewMessageAutomationCreateRequestSchema,
|
|
10630
|
+
zeroWorkflowGmailLabelAppliedAutomationCreateRequestSchema,
|
|
10631
|
+
zeroWorkflowGithubLabelAppliedAutomationCreateRequestSchema,
|
|
10632
|
+
zeroWorkflowGoogleCalendarEventCreatedAutomationCreateRequestSchema,
|
|
10633
|
+
zeroWorkflowGoogleCalendarEventUpdatedAutomationCreateRequestSchema,
|
|
10634
|
+
zeroWorkflowGoogleCalendarEventCancelledAutomationCreateRequestSchema,
|
|
10635
|
+
zeroWorkflowGoogleMeetTranscriptGeneratedAutomationCreateRequestSchema,
|
|
10636
|
+
zeroWorkflowNotionChildPageCreatedAutomationCreateRequestSchema,
|
|
10637
|
+
zeroWorkflowNotionDatabaseItemCreatedAutomationCreateRequestSchema,
|
|
10638
|
+
zeroWorkflowNotionPageContentUpdatedAutomationCreateRequestSchema,
|
|
10639
|
+
zeroWorkflowWebhookReceivedAutomationCreateRequestSchema
|
|
10632
10640
|
]);
|
|
10633
|
-
var
|
|
10641
|
+
var zeroWorkflowScheduleAutomationUpdateRequestSchema = external_exports.object({
|
|
10634
10642
|
schedule: zeroWorkflowScheduleSchema
|
|
10635
10643
|
});
|
|
10636
|
-
var
|
|
10644
|
+
var zeroWorkflowGmailEventAutomationUpdateRequestSchema = external_exports.object({
|
|
10637
10645
|
eventConfig: gmailWorkflowEventConfigSchema
|
|
10638
10646
|
});
|
|
10639
|
-
var
|
|
10647
|
+
var zeroWorkflowGithubEventAutomationUpdateRequestSchema = external_exports.object({
|
|
10640
10648
|
eventConfig: githubLabelAppliedEventConfigSchema
|
|
10641
10649
|
});
|
|
10642
|
-
var
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10650
|
+
var zeroWorkflowAutomationUpdateRequestSchema = external_exports.union([
|
|
10651
|
+
zeroWorkflowScheduleAutomationUpdateRequestSchema,
|
|
10652
|
+
zeroWorkflowGmailEventAutomationUpdateRequestSchema,
|
|
10653
|
+
zeroWorkflowGithubEventAutomationUpdateRequestSchema
|
|
10646
10654
|
]);
|
|
10647
10655
|
var zeroWorkflowSummarySchema = external_exports.object({
|
|
10648
10656
|
id: external_exports.string().uuid(),
|
|
@@ -10672,18 +10680,25 @@ var zeroWorkflowDetailResponseSchema = zeroWorkflowSummarySchema.extend({
|
|
|
10672
10680
|
instruction: external_exports.string().nullable(),
|
|
10673
10681
|
files: external_exports.array(workflowFileMetadataSchema).nullable(),
|
|
10674
10682
|
fileContents: external_exports.array(workflowFileEntrySchema).nullable(),
|
|
10675
|
-
triggers: external_exports.array(
|
|
10683
|
+
triggers: external_exports.array(zeroWorkflowAutomationSummarySchema)
|
|
10676
10684
|
});
|
|
10677
10685
|
var zeroWorkflowListResponseSchema = external_exports.array(
|
|
10678
10686
|
zeroWorkflowSummarySchema
|
|
10679
10687
|
);
|
|
10680
10688
|
var zeroWorkflowAutomationEntrySchema = external_exports.object({
|
|
10681
10689
|
workflow: zeroWorkflowSummarySchema,
|
|
10682
|
-
trigger:
|
|
10690
|
+
trigger: zeroWorkflowAutomationSummarySchema
|
|
10683
10691
|
});
|
|
10684
10692
|
var zeroWorkflowAutomationListResponseSchema = external_exports.array(
|
|
10685
10693
|
zeroWorkflowAutomationEntrySchema
|
|
10686
10694
|
);
|
|
10695
|
+
var zeroWorkflowAutomationsListEntrySchema = external_exports.object({
|
|
10696
|
+
workflow: zeroWorkflowSummarySchema,
|
|
10697
|
+
automation: zeroWorkflowAutomationSummarySchema
|
|
10698
|
+
});
|
|
10699
|
+
var zeroWorkflowAutomationsListResponseSchema = external_exports.array(
|
|
10700
|
+
zeroWorkflowAutomationsListEntrySchema
|
|
10701
|
+
);
|
|
10687
10702
|
var zeroWorkflowCreateRequestSchema = external_exports.object({
|
|
10688
10703
|
agentId: external_exports.string().uuid(),
|
|
10689
10704
|
chatThreadId: external_exports.string().uuid().optional(),
|
|
@@ -10906,13 +10921,13 @@ var zeroWorkflowVisibilityContract = c36.router({
|
|
|
10906
10921
|
summary: "Agent write-permission holder demotes a public workflow to private"
|
|
10907
10922
|
}
|
|
10908
10923
|
});
|
|
10909
|
-
var
|
|
10924
|
+
var automationIdParams = external_exports.object({ id: external_exports.string().uuid() });
|
|
10910
10925
|
var chatThreadIdParams = external_exports.object({ threadId: external_exports.string().min(1) });
|
|
10911
10926
|
var zeroWorkflowWebhookSecretResponseSchema = external_exports.object({
|
|
10912
10927
|
webhookUrl: external_exports.url(),
|
|
10913
10928
|
webhookSecret: external_exports.string().min(1)
|
|
10914
10929
|
});
|
|
10915
|
-
var
|
|
10930
|
+
var legacyZeroWorkflowAutomationsContract = c36.router({
|
|
10916
10931
|
listWorkspace: {
|
|
10917
10932
|
method: "GET",
|
|
10918
10933
|
path: "/api/zero/workflow-triggers",
|
|
@@ -10922,7 +10937,7 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
10922
10937
|
401: apiErrorSchema,
|
|
10923
10938
|
403: apiErrorSchema
|
|
10924
10939
|
},
|
|
10925
|
-
summary: "List the caller's
|
|
10940
|
+
summary: "List the caller's automations through the legacy path"
|
|
10926
10941
|
},
|
|
10927
10942
|
listForChatThread: {
|
|
10928
10943
|
method: "GET",
|
|
@@ -10930,12 +10945,12 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
10930
10945
|
headers: authHeadersSchema,
|
|
10931
10946
|
pathParams: chatThreadIdParams,
|
|
10932
10947
|
responses: {
|
|
10933
|
-
200: external_exports.array(
|
|
10948
|
+
200: external_exports.array(chatThreadWorkflowAutomationSchema),
|
|
10934
10949
|
401: apiErrorSchema,
|
|
10935
10950
|
403: apiErrorSchema,
|
|
10936
10951
|
404: apiErrorSchema
|
|
10937
10952
|
},
|
|
10938
|
-
summary: "List
|
|
10953
|
+
summary: "List chat-thread automations through the legacy path"
|
|
10939
10954
|
},
|
|
10940
10955
|
list: {
|
|
10941
10956
|
method: "GET",
|
|
@@ -10943,7 +10958,7 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
10943
10958
|
headers: authHeadersSchema,
|
|
10944
10959
|
pathParams: workflowIdParams,
|
|
10945
10960
|
responses: {
|
|
10946
|
-
200: external_exports.array(
|
|
10961
|
+
200: external_exports.array(zeroWorkflowAutomationSummarySchema),
|
|
10947
10962
|
401: apiErrorSchema,
|
|
10948
10963
|
403: apiErrorSchema,
|
|
10949
10964
|
404: apiErrorSchema
|
|
@@ -10955,9 +10970,9 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
10955
10970
|
path: "/api/zero/workflows/:workflowId/triggers",
|
|
10956
10971
|
headers: authHeadersSchema,
|
|
10957
10972
|
pathParams: workflowIdParams,
|
|
10958
|
-
body:
|
|
10973
|
+
body: zeroWorkflowAutomationCreateRequestSchema,
|
|
10959
10974
|
responses: {
|
|
10960
|
-
201:
|
|
10975
|
+
201: zeroWorkflowAutomationSummarySchema,
|
|
10961
10976
|
400: apiErrorSchema,
|
|
10962
10977
|
401: apiErrorSchema,
|
|
10963
10978
|
402: apiErrorSchema,
|
|
@@ -10971,36 +10986,36 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
10971
10986
|
method: "GET",
|
|
10972
10987
|
path: "/api/zero/workflow-triggers/:id",
|
|
10973
10988
|
headers: authHeadersSchema,
|
|
10974
|
-
pathParams:
|
|
10989
|
+
pathParams: automationIdParams,
|
|
10975
10990
|
responses: {
|
|
10976
|
-
200:
|
|
10991
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
10977
10992
|
401: apiErrorSchema,
|
|
10978
10993
|
403: apiErrorSchema,
|
|
10979
10994
|
404: apiErrorSchema
|
|
10980
10995
|
},
|
|
10981
|
-
summary: "Get
|
|
10996
|
+
summary: "Get an automation through the legacy path"
|
|
10982
10997
|
},
|
|
10983
10998
|
update: {
|
|
10984
10999
|
method: "PATCH",
|
|
10985
11000
|
path: "/api/zero/workflow-triggers/:id",
|
|
10986
11001
|
headers: authHeadersSchema,
|
|
10987
|
-
pathParams:
|
|
10988
|
-
body:
|
|
11002
|
+
pathParams: automationIdParams,
|
|
11003
|
+
body: zeroWorkflowAutomationUpdateRequestSchema,
|
|
10989
11004
|
responses: {
|
|
10990
|
-
200:
|
|
11005
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
10991
11006
|
400: apiErrorSchema,
|
|
10992
11007
|
401: apiErrorSchema,
|
|
10993
11008
|
403: apiErrorSchema,
|
|
10994
11009
|
404: apiErrorSchema,
|
|
10995
11010
|
409: apiErrorSchema
|
|
10996
11011
|
},
|
|
10997
|
-
summary: "Update
|
|
11012
|
+
summary: "Update an automation through the legacy path"
|
|
10998
11013
|
},
|
|
10999
11014
|
delete: {
|
|
11000
11015
|
method: "DELETE",
|
|
11001
11016
|
path: "/api/zero/workflow-triggers/:id",
|
|
11002
11017
|
headers: authHeadersSchema,
|
|
11003
|
-
pathParams:
|
|
11018
|
+
pathParams: automationIdParams,
|
|
11004
11019
|
body: c36.noBody(),
|
|
11005
11020
|
responses: {
|
|
11006
11021
|
204: c36.noBody(),
|
|
@@ -11008,16 +11023,16 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
11008
11023
|
403: apiErrorSchema,
|
|
11009
11024
|
404: apiErrorSchema
|
|
11010
11025
|
},
|
|
11011
|
-
summary: "Delete
|
|
11026
|
+
summary: "Delete an automation through the legacy path"
|
|
11012
11027
|
},
|
|
11013
11028
|
enable: {
|
|
11014
11029
|
method: "POST",
|
|
11015
11030
|
path: "/api/zero/workflow-triggers/:id/enable",
|
|
11016
11031
|
headers: authHeadersSchema,
|
|
11017
|
-
pathParams:
|
|
11032
|
+
pathParams: automationIdParams,
|
|
11018
11033
|
body: c36.noBody(),
|
|
11019
11034
|
responses: {
|
|
11020
|
-
200:
|
|
11035
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
11021
11036
|
400: apiErrorSchema,
|
|
11022
11037
|
401: apiErrorSchema,
|
|
11023
11038
|
402: apiErrorSchema,
|
|
@@ -11025,27 +11040,27 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
11025
11040
|
404: apiErrorSchema,
|
|
11026
11041
|
409: apiErrorSchema
|
|
11027
11042
|
},
|
|
11028
|
-
summary: "Enable
|
|
11043
|
+
summary: "Enable an automation through the legacy path"
|
|
11029
11044
|
},
|
|
11030
11045
|
disable: {
|
|
11031
11046
|
method: "POST",
|
|
11032
11047
|
path: "/api/zero/workflow-triggers/:id/disable",
|
|
11033
11048
|
headers: authHeadersSchema,
|
|
11034
|
-
pathParams:
|
|
11049
|
+
pathParams: automationIdParams,
|
|
11035
11050
|
body: c36.noBody(),
|
|
11036
11051
|
responses: {
|
|
11037
|
-
200:
|
|
11052
|
+
200: zeroWorkflowAutomationSummarySchema,
|
|
11038
11053
|
401: apiErrorSchema,
|
|
11039
11054
|
403: apiErrorSchema,
|
|
11040
11055
|
404: apiErrorSchema
|
|
11041
11056
|
},
|
|
11042
|
-
summary: "Disable
|
|
11057
|
+
summary: "Disable an automation through the legacy path"
|
|
11043
11058
|
},
|
|
11044
11059
|
run: {
|
|
11045
11060
|
method: "POST",
|
|
11046
11061
|
path: "/api/zero/workflow-triggers/:id/run",
|
|
11047
11062
|
headers: authHeadersSchema,
|
|
11048
|
-
pathParams:
|
|
11063
|
+
pathParams: automationIdParams,
|
|
11049
11064
|
body: c36.noBody(),
|
|
11050
11065
|
responses: {
|
|
11051
11066
|
201: zeroWorkflowRunResponseSchema,
|
|
@@ -11055,13 +11070,13 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
11055
11070
|
404: apiErrorSchema,
|
|
11056
11071
|
409: apiErrorSchema
|
|
11057
11072
|
},
|
|
11058
|
-
summary: "Run
|
|
11073
|
+
summary: "Run an automation immediately through the legacy path"
|
|
11059
11074
|
},
|
|
11060
11075
|
revealWebhookSecret: {
|
|
11061
11076
|
method: "POST",
|
|
11062
11077
|
path: "/api/zero/workflow-triggers/:id/webhook-secret",
|
|
11063
11078
|
headers: authHeadersSchema,
|
|
11064
|
-
pathParams:
|
|
11079
|
+
pathParams: automationIdParams,
|
|
11065
11080
|
body: c36.noBody(),
|
|
11066
11081
|
responses: {
|
|
11067
11082
|
200: zeroWorkflowWebhookSecretResponseSchema,
|
|
@@ -11069,7 +11084,68 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
11069
11084
|
403: apiErrorSchema,
|
|
11070
11085
|
404: apiErrorSchema
|
|
11071
11086
|
},
|
|
11072
|
-
summary: "Reveal
|
|
11087
|
+
summary: "Reveal automation webhook credentials through the legacy path"
|
|
11088
|
+
}
|
|
11089
|
+
});
|
|
11090
|
+
var zeroWorkflowAutomationsContract = c36.router({
|
|
11091
|
+
listWorkspace: {
|
|
11092
|
+
...legacyZeroWorkflowAutomationsContract.listWorkspace,
|
|
11093
|
+
path: "/api/zero/workflow-automations",
|
|
11094
|
+
responses: {
|
|
11095
|
+
...legacyZeroWorkflowAutomationsContract.listWorkspace.responses,
|
|
11096
|
+
200: zeroWorkflowAutomationsListResponseSchema
|
|
11097
|
+
},
|
|
11098
|
+
summary: "List the caller's automations across visible workflows"
|
|
11099
|
+
},
|
|
11100
|
+
listForChatThread: {
|
|
11101
|
+
...legacyZeroWorkflowAutomationsContract.listForChatThread,
|
|
11102
|
+
path: "/api/zero/chat-threads/:threadId/workflow-automations",
|
|
11103
|
+
summary: "List workflow automations bound to a chat thread"
|
|
11104
|
+
},
|
|
11105
|
+
list: {
|
|
11106
|
+
...legacyZeroWorkflowAutomationsContract.list,
|
|
11107
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
11108
|
+
summary: "List the caller's own automations for a workflow"
|
|
11109
|
+
},
|
|
11110
|
+
create: {
|
|
11111
|
+
...legacyZeroWorkflowAutomationsContract.create,
|
|
11112
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
11113
|
+
summary: "Create an automation on a workflow"
|
|
11114
|
+
},
|
|
11115
|
+
get: {
|
|
11116
|
+
...legacyZeroWorkflowAutomationsContract.get,
|
|
11117
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11118
|
+
summary: "Get a workflow automation"
|
|
11119
|
+
},
|
|
11120
|
+
update: {
|
|
11121
|
+
...legacyZeroWorkflowAutomationsContract.update,
|
|
11122
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11123
|
+
summary: "Update a workflow automation"
|
|
11124
|
+
},
|
|
11125
|
+
delete: {
|
|
11126
|
+
...legacyZeroWorkflowAutomationsContract.delete,
|
|
11127
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11128
|
+
summary: "Delete a workflow automation"
|
|
11129
|
+
},
|
|
11130
|
+
enable: {
|
|
11131
|
+
...legacyZeroWorkflowAutomationsContract.enable,
|
|
11132
|
+
path: "/api/zero/workflow-automations/:id/enable",
|
|
11133
|
+
summary: "Enable a workflow automation"
|
|
11134
|
+
},
|
|
11135
|
+
disable: {
|
|
11136
|
+
...legacyZeroWorkflowAutomationsContract.disable,
|
|
11137
|
+
path: "/api/zero/workflow-automations/:id/disable",
|
|
11138
|
+
summary: "Disable a workflow automation"
|
|
11139
|
+
},
|
|
11140
|
+
run: {
|
|
11141
|
+
...legacyZeroWorkflowAutomationsContract.run,
|
|
11142
|
+
path: "/api/zero/workflow-automations/:id/run",
|
|
11143
|
+
summary: "Run a workflow automation immediately in its bound chat thread"
|
|
11144
|
+
},
|
|
11145
|
+
revealWebhookSecret: {
|
|
11146
|
+
...legacyZeroWorkflowAutomationsContract.revealWebhookSecret,
|
|
11147
|
+
path: "/api/zero/workflow-automations/:id/webhook-secret",
|
|
11148
|
+
summary: "Reveal the webhook URL and signing secret for a workflow automation"
|
|
11073
11149
|
}
|
|
11074
11150
|
});
|
|
11075
11151
|
|
|
@@ -11119,54 +11195,57 @@ async function copyWorkflow(workflowId, toAgentId) {
|
|
|
11119
11195
|
if (result.status === 201) return result.body;
|
|
11120
11196
|
handleError(result, `Failed to copy workflow "${workflowId}"`);
|
|
11121
11197
|
}
|
|
11122
|
-
async function
|
|
11198
|
+
async function listWorkflowAutomations(workflowId) {
|
|
11123
11199
|
const config = await getClientConfig();
|
|
11124
|
-
const client = initClient(
|
|
11200
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11125
11201
|
const result = await client.list({ params: { workflowId } });
|
|
11126
11202
|
if (result.status === 200) return result.body;
|
|
11127
|
-
handleError(
|
|
11203
|
+
handleError(
|
|
11204
|
+
result,
|
|
11205
|
+
`Failed to list automations for workflow "${workflowId}"`
|
|
11206
|
+
);
|
|
11128
11207
|
}
|
|
11129
|
-
async function
|
|
11208
|
+
async function createWorkflowAutomation(workflowId, body) {
|
|
11130
11209
|
const config = await getClientConfig();
|
|
11131
|
-
const client = initClient(
|
|
11210
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11132
11211
|
const result = await client.create({ params: { workflowId }, body });
|
|
11133
11212
|
if (result.status === 201) return result.body;
|
|
11134
|
-
handleError(result, `Failed to add
|
|
11213
|
+
handleError(result, `Failed to add automation to workflow "${workflowId}"`);
|
|
11135
11214
|
}
|
|
11136
|
-
async function
|
|
11215
|
+
async function getWorkflowAutomation(id) {
|
|
11137
11216
|
const config = await getClientConfig();
|
|
11138
|
-
const client = initClient(
|
|
11217
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11139
11218
|
const result = await client.get({ params: { id } });
|
|
11140
11219
|
if (result.status === 200) return result.body;
|
|
11141
|
-
handleError(result, `Workflow
|
|
11220
|
+
handleError(result, `Workflow automation "${id}" not found`);
|
|
11142
11221
|
}
|
|
11143
|
-
async function
|
|
11222
|
+
async function updateWorkflowAutomation(id, body) {
|
|
11144
11223
|
const config = await getClientConfig();
|
|
11145
|
-
const client = initClient(
|
|
11224
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11146
11225
|
const result = await client.update({ params: { id }, body });
|
|
11147
11226
|
if (result.status === 200) return result.body;
|
|
11148
|
-
handleError(result, `Failed to update workflow
|
|
11227
|
+
handleError(result, `Failed to update workflow automation "${id}"`);
|
|
11149
11228
|
}
|
|
11150
|
-
async function
|
|
11229
|
+
async function deleteWorkflowAutomation(id) {
|
|
11151
11230
|
const config = await getClientConfig();
|
|
11152
|
-
const client = initClient(
|
|
11231
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11153
11232
|
const result = await client.delete({ params: { id } });
|
|
11154
11233
|
if (result.status === 204) return;
|
|
11155
|
-
handleError(result, `Workflow
|
|
11234
|
+
handleError(result, `Workflow automation "${id}" not found`);
|
|
11156
11235
|
}
|
|
11157
|
-
async function
|
|
11236
|
+
async function enableWorkflowAutomation(id) {
|
|
11158
11237
|
const config = await getClientConfig();
|
|
11159
|
-
const client = initClient(
|
|
11238
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11160
11239
|
const result = await client.enable({ params: { id } });
|
|
11161
11240
|
if (result.status === 200) return result.body;
|
|
11162
|
-
handleError(result, `Failed to enable workflow
|
|
11241
|
+
handleError(result, `Failed to enable workflow automation "${id}"`);
|
|
11163
11242
|
}
|
|
11164
|
-
async function
|
|
11243
|
+
async function disableWorkflowAutomation(id) {
|
|
11165
11244
|
const config = await getClientConfig();
|
|
11166
|
-
const client = initClient(
|
|
11245
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11167
11246
|
const result = await client.disable({ params: { id } });
|
|
11168
11247
|
if (result.status === 200) return result.body;
|
|
11169
|
-
handleError(result, `Failed to disable workflow
|
|
11248
|
+
handleError(result, `Failed to disable workflow automation "${id}"`);
|
|
11170
11249
|
}
|
|
11171
11250
|
|
|
11172
11251
|
// src/lib/api/domains/integrations-slack.ts
|
|
@@ -13768,13 +13847,13 @@ export {
|
|
|
13768
13847
|
updateWorkflow,
|
|
13769
13848
|
deleteWorkflow,
|
|
13770
13849
|
copyWorkflow,
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13850
|
+
listWorkflowAutomations,
|
|
13851
|
+
createWorkflowAutomation,
|
|
13852
|
+
getWorkflowAutomation,
|
|
13853
|
+
updateWorkflowAutomation,
|
|
13854
|
+
deleteWorkflowAutomation,
|
|
13855
|
+
enableWorkflowAutomation,
|
|
13856
|
+
disableWorkflowAutomation,
|
|
13778
13857
|
createGoal,
|
|
13779
13858
|
editGoal,
|
|
13780
13859
|
getGoal,
|
|
@@ -13861,4 +13940,4 @@ export {
|
|
|
13861
13940
|
completeHostedSite,
|
|
13862
13941
|
getHostedSiteFiles
|
|
13863
13942
|
};
|
|
13864
|
-
//# sourceMappingURL=chunk-
|
|
13943
|
+
//# sourceMappingURL=chunk-IE6CD57U.js.map
|