@vm0/cli 9.240.0 → 9.240.2
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-BU3F5RW5.js → agent-VCTJB2V7.js} +5 -5
- package/{banking-L74MGBP6.js → banking-A7VMJ3DM.js} +3 -3
- package/{chat-IYZH3T3O.js → chat-LJTRIYLH.js} +4 -4
- package/{chunk-6F7XCWTU.js → chunk-3B4I4CZP.js} +2 -2
- package/{chunk-6F7XCWTU.js.map → chunk-3B4I4CZP.js.map} +1 -1
- package/{chunk-3IH2QU57.js → chunk-3BDRU5WG.js} +2 -2
- package/{chunk-YHR4HVAA.js → chunk-7JLQS475.js} +3 -3
- package/{chunk-QCYKZV5E.js → chunk-HQTSY3FI.js} +4 -4
- package/{chunk-PCP7O5ST.js → chunk-ISC7E56M.js} +2 -2
- package/{chunk-7BHKM63H.js → chunk-OGCTK67A.js} +6 -11
- package/chunk-OGCTK67A.js.map +1 -0
- package/{chunk-UHBFZAMT.js → chunk-UJ5H65KR.js} +9 -6
- package/chunk-UJ5H65KR.js.map +1 -0
- package/{chunk-V77QTHRL.js → chunk-VC7NX4NF.js} +4 -4
- package/{chunk-MFO54L7D.js → chunk-ZMWXQJYA.js} +127 -46
- package/{chunk-MFO54L7D.js.map → chunk-ZMWXQJYA.js.map} +1 -1
- package/{chunk-6R4HTQSH.js → chunk-ZZWAWZAX.js} +2 -2
- package/{chunk-6R4HTQSH.js.map → chunk-ZZWAWZAX.js.map} +1 -1
- package/{computer-use-WY7PTADU.js → computer-use-UFSUZW4S.js} +3 -3
- package/{connector-HQKPT3NI.js → connector-RVPMZLN5.js} +4 -4
- package/{credit-3VSUM5MJ.js → credit-5UXG5CV4.js} +4 -4
- package/{developer-support-5BH43Z25.js → developer-support-C2VVLCT5.js} +3 -3
- package/{doctor-DSWP27KJ.js → doctor-CNRNUHXX.js} +5 -5
- package/{generate-OGV26ZYH.js → generate-74MBJ6G2.js} +5 -5
- package/{github-VQ65HTCS.js → github-WOA2BET2.js} +3 -3
- package/{goal-TSNIPDUC.js → goal-NV23KTC2.js} +3 -3
- package/{host-T24ERN32.js → host-OFUEE5R2.js} +3 -3
- package/index.js +13 -13
- package/{logs-N2U6VGYP.js → logs-BKNAEZ2V.js} +6 -6
- package/{maps-QJAHISKI.js → maps-4E3HQO7Y.js} +3 -3
- package/{memory-M5KENS56.js → memory-ONWXGP6N.js} +3 -3
- package/{model-AH2AZKKM.js → model-KQ5DWFMB.js} +4 -4
- package/{model-provider-QWF2AOQA.js → model-provider-CH2NDJAQ.js} +4 -4
- package/{org-T4N5A63U.js → org-T5HKNOI5.js} +3 -3
- package/package.json +1 -1
- package/{phone-LT7NI7U4.js → phone-IKCDDVZE.js} +3 -3
- package/{preference-Y3DR33YJ.js → preference-BAVSSXYL.js} +3 -3
- package/{relationship-C4H3MOT2.js → relationship-FPV2UMAU.js} +3 -3
- package/{resource-VIGI33NN.js → resource-ZESK7TP6.js} +4 -4
- package/{scrape-FPAOJRQU.js → scrape-L4WRVDZC.js} +3 -3
- package/{search-CZ6N5LLL.js → search-4ZQP3MRX.js} +6 -6
- package/{secret-T5L72H7R.js → secret-VZONUOO3.js} +3 -3
- package/{slack-O5AEPMB3.js → slack-PNTENEPN.js} +3 -3
- package/{teams-6BZVHEUM.js → teams-UJCNHFVN.js} +3 -3
- package/{telegram-33Y34S6K.js → telegram-IWU5VQH4.js} +3 -3
- package/{variable-CLPVIKW5.js → variable-75ZY3D2M.js} +3 -3
- package/{video-E3KESQP6.js → video-EM7XKL3X.js} +2 -2
- package/{web-RHIEBRDN.js → web-BNTKPP5V.js} +3 -3
- package/{whoami-YIED4I4V.js → whoami-WJK3PZIO.js} +5 -5
- package/{workflow-JBYQGDQO.js → workflow-KNIVHJGP.js} +292 -263
- package/workflow-KNIVHJGP.js.map +1 -0
- package/zero.js +35 -35
- package/chunk-7BHKM63H.js.map +0 -1
- package/chunk-UHBFZAMT.js.map +0 -1
- package/workflow-JBYQGDQO.js.map +0 -1
- /package/{agent-BU3F5RW5.js.map → agent-VCTJB2V7.js.map} +0 -0
- /package/{banking-L74MGBP6.js.map → banking-A7VMJ3DM.js.map} +0 -0
- /package/{chat-IYZH3T3O.js.map → chat-LJTRIYLH.js.map} +0 -0
- /package/{chunk-3IH2QU57.js.map → chunk-3BDRU5WG.js.map} +0 -0
- /package/{chunk-YHR4HVAA.js.map → chunk-7JLQS475.js.map} +0 -0
- /package/{chunk-QCYKZV5E.js.map → chunk-HQTSY3FI.js.map} +0 -0
- /package/{chunk-PCP7O5ST.js.map → chunk-ISC7E56M.js.map} +0 -0
- /package/{chunk-V77QTHRL.js.map → chunk-VC7NX4NF.js.map} +0 -0
- /package/{computer-use-WY7PTADU.js.map → computer-use-UFSUZW4S.js.map} +0 -0
- /package/{connector-HQKPT3NI.js.map → connector-RVPMZLN5.js.map} +0 -0
- /package/{credit-3VSUM5MJ.js.map → credit-5UXG5CV4.js.map} +0 -0
- /package/{developer-support-5BH43Z25.js.map → developer-support-C2VVLCT5.js.map} +0 -0
- /package/{doctor-DSWP27KJ.js.map → doctor-CNRNUHXX.js.map} +0 -0
- /package/{generate-OGV26ZYH.js.map → generate-74MBJ6G2.js.map} +0 -0
- /package/{github-VQ65HTCS.js.map → github-WOA2BET2.js.map} +0 -0
- /package/{goal-TSNIPDUC.js.map → goal-NV23KTC2.js.map} +0 -0
- /package/{host-T24ERN32.js.map → host-OFUEE5R2.js.map} +0 -0
- /package/{logs-N2U6VGYP.js.map → logs-BKNAEZ2V.js.map} +0 -0
- /package/{maps-QJAHISKI.js.map → maps-4E3HQO7Y.js.map} +0 -0
- /package/{memory-M5KENS56.js.map → memory-ONWXGP6N.js.map} +0 -0
- /package/{model-AH2AZKKM.js.map → model-KQ5DWFMB.js.map} +0 -0
- /package/{model-provider-QWF2AOQA.js.map → model-provider-CH2NDJAQ.js.map} +0 -0
- /package/{org-T4N5A63U.js.map → org-T5HKNOI5.js.map} +0 -0
- /package/{phone-LT7NI7U4.js.map → phone-IKCDDVZE.js.map} +0 -0
- /package/{preference-Y3DR33YJ.js.map → preference-BAVSSXYL.js.map} +0 -0
- /package/{relationship-C4H3MOT2.js.map → relationship-FPV2UMAU.js.map} +0 -0
- /package/{resource-VIGI33NN.js.map → resource-ZESK7TP6.js.map} +0 -0
- /package/{scrape-FPAOJRQU.js.map → scrape-L4WRVDZC.js.map} +0 -0
- /package/{search-CZ6N5LLL.js.map → search-4ZQP3MRX.js.map} +0 -0
- /package/{secret-T5L72H7R.js.map → secret-VZONUOO3.js.map} +0 -0
- /package/{slack-O5AEPMB3.js.map → slack-PNTENEPN.js.map} +0 -0
- /package/{teams-6BZVHEUM.js.map → teams-UJCNHFVN.js.map} +0 -0
- /package/{telegram-33Y34S6K.js.map → telegram-IWU5VQH4.js.map} +0 -0
- /package/{variable-CLPVIKW5.js.map → variable-75ZY3D2M.js.map} +0 -0
- /package/{video-E3KESQP6.js.map → video-EM7XKL3X.js.map} +0 -0
- /package/{web-RHIEBRDN.js.map → web-BNTKPP5V.js.map} +0 -0
- /package/{whoami-YIED4I4V.js.map → whoami-WJK3PZIO.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
getApiUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZZWAWZAX.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -13,11 +13,14 @@ init_esm_shims();
|
|
|
13
13
|
function toPlatformUrl(apiUrl) {
|
|
14
14
|
const parsed = new URL(apiUrl);
|
|
15
15
|
const parts = parsed.hostname.split(".");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const serviceLabel = parts[0];
|
|
17
|
+
if (serviceLabel.endsWith("-www")) {
|
|
18
|
+
parts[0] = serviceLabel.slice(0, -"-www".length) + "-app";
|
|
19
|
+
} else if (serviceLabel.endsWith("-api")) {
|
|
20
|
+
parts[0] = serviceLabel.slice(0, -"-api".length) + "-app";
|
|
21
|
+
} else if (serviceLabel === "api" || serviceLabel === "www" || serviceLabel === "platform") {
|
|
19
22
|
parts[0] = "app";
|
|
20
|
-
} else if (
|
|
23
|
+
} else if (serviceLabel !== "app" && !serviceLabel.endsWith("-app") && serviceLabel !== "localhost") {
|
|
21
24
|
parts.unshift("app");
|
|
22
25
|
}
|
|
23
26
|
parsed.hostname = parts.join(".");
|
|
@@ -32,4 +35,4 @@ export {
|
|
|
32
35
|
toPlatformUrl,
|
|
33
36
|
getPlatformOrigin
|
|
34
37
|
};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-UJ5H65KR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/doctor/platform-url.ts"],"sourcesContent":["import { getApiUrl } from \"../../../lib/api/config\";\n\n/**\n * Transform the API host to the platform (app) host.\n *\n * api.vm0.ai → app.vm0.ai\n * www.vm0.ai → app.vm0.ai\n * platform.vm0.ai → app.vm0.ai\n * pr-123-api.vm6.ai → pr-123-app.vm6.ai\n * tunnel-user-host-www.vm7.ai → tunnel-user-host-app.vm7.ai\n * pr-123-app.vm6.ai → pr-123-app.vm6.ai\n * localhost:3000 → localhost:3000\n * custom.example.com → app.custom.example.com\n */\nexport function toPlatformUrl(apiUrl: string): URL {\n const parsed = new URL(apiUrl);\n const parts = parsed.hostname.split(\".\");\n const serviceLabel = parts[0]!;\n if (serviceLabel.endsWith(\"-www\")) {\n parts[0] = serviceLabel.slice(0, -\"-www\".length) + \"-app\";\n } else if (serviceLabel.endsWith(\"-api\")) {\n parts[0] = serviceLabel.slice(0, -\"-api\".length) + \"-app\";\n } else if (\n serviceLabel === \"api\" ||\n serviceLabel === \"www\" ||\n serviceLabel === \"platform\"\n ) {\n parts[0] = \"app\";\n } else if (\n serviceLabel !== \"app\" &&\n !serviceLabel.endsWith(\"-app\") &&\n serviceLabel !== \"localhost\"\n ) {\n parts.unshift(\"app\");\n }\n parsed.hostname = parts.join(\".\");\n return parsed;\n}\n\nexport async function getPlatformOrigin(): Promise<string> {\n const apiUrl = await getApiUrl();\n return toPlatformUrl(apiUrl).origin;\n}\n"],"mappings":";;;;;;;;;;;AAAA;AAcO,SAAS,cAAc,QAAqB;AACjD,QAAM,SAAS,IAAI,IAAI,MAAM;AAC7B,QAAM,QAAQ,OAAO,SAAS,MAAM,GAAG;AACvC,QAAM,eAAe,MAAM,CAAC;AAC5B,MAAI,aAAa,SAAS,MAAM,GAAG;AACjC,UAAM,CAAC,IAAI,aAAa,MAAM,GAAG,CAAC,OAAO,MAAM,IAAI;AAAA,EACrD,WAAW,aAAa,SAAS,MAAM,GAAG;AACxC,UAAM,CAAC,IAAI,aAAa,MAAM,GAAG,CAAC,OAAO,MAAM,IAAI;AAAA,EACrD,WACE,iBAAiB,SACjB,iBAAiB,SACjB,iBAAiB,YACjB;AACA,UAAM,CAAC,IAAI;AAAA,EACb,WACE,iBAAiB,SACjB,CAAC,aAAa,SAAS,MAAM,KAC7B,iBAAiB,aACjB;AACA,UAAM,QAAQ,KAAK;AAAA,EACrB;AACA,SAAO,WAAW,MAAM,KAAK,GAAG;AAChC,SAAO;AACT;AAEA,eAAsB,oBAAqC;AACzD,QAAM,SAAS,MAAM,UAAU;AAC/B,SAAO,cAAc,MAAM,EAAE;AAC/B;","names":[]}
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
resolveFirewallMetadataPolicies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ISC7E56M.js";
|
|
7
7
|
import {
|
|
8
8
|
getZeroConnectorCatalogPermissions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZMWXQJYA.js";
|
|
10
10
|
import {
|
|
11
11
|
source_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZZWAWZAX.js";
|
|
13
13
|
import {
|
|
14
14
|
init_esm_shims
|
|
15
15
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
policyIcon,
|
|
90
90
|
loadConnectorPermissionInfos
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-VC7NX4NF.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
updateOrgModelPoliciesRequestSchema,
|
|
23
23
|
upsertModelProviderRequestSchema,
|
|
24
24
|
upsertModelProviderResponseSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZZWAWZAX.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 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({
|
|
7109
|
+
post: {
|
|
7110
|
+
...workflowAutomationWebhookPostRoute,
|
|
7111
|
+
path: "/api/webhooks/workflow-automations/:token",
|
|
7112
|
+
summary: "Handle inbound workflow automation webhooks"
|
|
7113
|
+
}
|
|
7114
|
+
});
|
|
7092
7115
|
var webhookWorkflowTriggerContract = c27.router({
|
|
7093
7116
|
post: {
|
|
7094
|
-
|
|
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 legacy inbound workflow trigger webhooks"
|
|
7110
7120
|
}
|
|
7111
7121
|
});
|
|
7112
7122
|
var webhookBuiltInGenerationFalContract = c27.router({
|
|
@@ -10684,6 +10694,13 @@ var zeroWorkflowAutomationEntrySchema = external_exports.object({
|
|
|
10684
10694
|
var zeroWorkflowAutomationListResponseSchema = external_exports.array(
|
|
10685
10695
|
zeroWorkflowAutomationEntrySchema
|
|
10686
10696
|
);
|
|
10697
|
+
var zeroWorkflowAutomationsListEntrySchema = external_exports.object({
|
|
10698
|
+
workflow: zeroWorkflowSummarySchema,
|
|
10699
|
+
automation: zeroWorkflowTriggerSummarySchema
|
|
10700
|
+
});
|
|
10701
|
+
var zeroWorkflowAutomationsListResponseSchema = external_exports.array(
|
|
10702
|
+
zeroWorkflowAutomationsListEntrySchema
|
|
10703
|
+
);
|
|
10687
10704
|
var zeroWorkflowCreateRequestSchema = external_exports.object({
|
|
10688
10705
|
agentId: external_exports.string().uuid(),
|
|
10689
10706
|
chatThreadId: external_exports.string().uuid().optional(),
|
|
@@ -11072,6 +11089,67 @@ var zeroWorkflowTriggersContract = c36.router({
|
|
|
11072
11089
|
summary: "Reveal the webhook URL and signing secret for a workflow trigger"
|
|
11073
11090
|
}
|
|
11074
11091
|
});
|
|
11092
|
+
var zeroWorkflowAutomationsContract = c36.router({
|
|
11093
|
+
listWorkspace: {
|
|
11094
|
+
...zeroWorkflowTriggersContract.listWorkspace,
|
|
11095
|
+
path: "/api/zero/workflow-automations",
|
|
11096
|
+
responses: {
|
|
11097
|
+
...zeroWorkflowTriggersContract.listWorkspace.responses,
|
|
11098
|
+
200: zeroWorkflowAutomationsListResponseSchema
|
|
11099
|
+
},
|
|
11100
|
+
summary: "List the caller's automations across visible workflows"
|
|
11101
|
+
},
|
|
11102
|
+
listForChatThread: {
|
|
11103
|
+
...zeroWorkflowTriggersContract.listForChatThread,
|
|
11104
|
+
path: "/api/zero/chat-threads/:threadId/workflow-automations",
|
|
11105
|
+
summary: "List workflow automations bound to a chat thread"
|
|
11106
|
+
},
|
|
11107
|
+
list: {
|
|
11108
|
+
...zeroWorkflowTriggersContract.list,
|
|
11109
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
11110
|
+
summary: "List the caller's own automations for a workflow"
|
|
11111
|
+
},
|
|
11112
|
+
create: {
|
|
11113
|
+
...zeroWorkflowTriggersContract.create,
|
|
11114
|
+
path: "/api/zero/workflows/:workflowId/automations",
|
|
11115
|
+
summary: "Create an automation on a workflow"
|
|
11116
|
+
},
|
|
11117
|
+
get: {
|
|
11118
|
+
...zeroWorkflowTriggersContract.get,
|
|
11119
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11120
|
+
summary: "Get a workflow automation"
|
|
11121
|
+
},
|
|
11122
|
+
update: {
|
|
11123
|
+
...zeroWorkflowTriggersContract.update,
|
|
11124
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11125
|
+
summary: "Update a workflow automation"
|
|
11126
|
+
},
|
|
11127
|
+
delete: {
|
|
11128
|
+
...zeroWorkflowTriggersContract.delete,
|
|
11129
|
+
path: "/api/zero/workflow-automations/:id",
|
|
11130
|
+
summary: "Delete a workflow automation"
|
|
11131
|
+
},
|
|
11132
|
+
enable: {
|
|
11133
|
+
...zeroWorkflowTriggersContract.enable,
|
|
11134
|
+
path: "/api/zero/workflow-automations/:id/enable",
|
|
11135
|
+
summary: "Enable a workflow automation"
|
|
11136
|
+
},
|
|
11137
|
+
disable: {
|
|
11138
|
+
...zeroWorkflowTriggersContract.disable,
|
|
11139
|
+
path: "/api/zero/workflow-automations/:id/disable",
|
|
11140
|
+
summary: "Disable a workflow automation"
|
|
11141
|
+
},
|
|
11142
|
+
run: {
|
|
11143
|
+
...zeroWorkflowTriggersContract.run,
|
|
11144
|
+
path: "/api/zero/workflow-automations/:id/run",
|
|
11145
|
+
summary: "Run a workflow automation immediately in its bound chat thread"
|
|
11146
|
+
},
|
|
11147
|
+
revealWebhookSecret: {
|
|
11148
|
+
...zeroWorkflowTriggersContract.revealWebhookSecret,
|
|
11149
|
+
path: "/api/zero/workflow-automations/:id/webhook-secret",
|
|
11150
|
+
summary: "Reveal the webhook URL and signing secret for a workflow automation"
|
|
11151
|
+
}
|
|
11152
|
+
});
|
|
11075
11153
|
|
|
11076
11154
|
// src/lib/api/domains/zero-workflows.ts
|
|
11077
11155
|
async function listWorkflows(query) {
|
|
@@ -11119,54 +11197,57 @@ async function copyWorkflow(workflowId, toAgentId) {
|
|
|
11119
11197
|
if (result.status === 201) return result.body;
|
|
11120
11198
|
handleError(result, `Failed to copy workflow "${workflowId}"`);
|
|
11121
11199
|
}
|
|
11122
|
-
async function
|
|
11200
|
+
async function listWorkflowAutomations(workflowId) {
|
|
11123
11201
|
const config = await getClientConfig();
|
|
11124
|
-
const client = initClient(
|
|
11202
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11125
11203
|
const result = await client.list({ params: { workflowId } });
|
|
11126
11204
|
if (result.status === 200) return result.body;
|
|
11127
|
-
handleError(
|
|
11205
|
+
handleError(
|
|
11206
|
+
result,
|
|
11207
|
+
`Failed to list automations for workflow "${workflowId}"`
|
|
11208
|
+
);
|
|
11128
11209
|
}
|
|
11129
|
-
async function
|
|
11210
|
+
async function createWorkflowAutomation(workflowId, body) {
|
|
11130
11211
|
const config = await getClientConfig();
|
|
11131
|
-
const client = initClient(
|
|
11212
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11132
11213
|
const result = await client.create({ params: { workflowId }, body });
|
|
11133
11214
|
if (result.status === 201) return result.body;
|
|
11134
|
-
handleError(result, `Failed to add
|
|
11215
|
+
handleError(result, `Failed to add automation to workflow "${workflowId}"`);
|
|
11135
11216
|
}
|
|
11136
|
-
async function
|
|
11217
|
+
async function getWorkflowAutomation(id) {
|
|
11137
11218
|
const config = await getClientConfig();
|
|
11138
|
-
const client = initClient(
|
|
11219
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11139
11220
|
const result = await client.get({ params: { id } });
|
|
11140
11221
|
if (result.status === 200) return result.body;
|
|
11141
|
-
handleError(result, `Workflow
|
|
11222
|
+
handleError(result, `Workflow automation "${id}" not found`);
|
|
11142
11223
|
}
|
|
11143
|
-
async function
|
|
11224
|
+
async function updateWorkflowAutomation(id, body) {
|
|
11144
11225
|
const config = await getClientConfig();
|
|
11145
|
-
const client = initClient(
|
|
11226
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11146
11227
|
const result = await client.update({ params: { id }, body });
|
|
11147
11228
|
if (result.status === 200) return result.body;
|
|
11148
|
-
handleError(result, `Failed to update workflow
|
|
11229
|
+
handleError(result, `Failed to update workflow automation "${id}"`);
|
|
11149
11230
|
}
|
|
11150
|
-
async function
|
|
11231
|
+
async function deleteWorkflowAutomation(id) {
|
|
11151
11232
|
const config = await getClientConfig();
|
|
11152
|
-
const client = initClient(
|
|
11233
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11153
11234
|
const result = await client.delete({ params: { id } });
|
|
11154
11235
|
if (result.status === 204) return;
|
|
11155
|
-
handleError(result, `Workflow
|
|
11236
|
+
handleError(result, `Workflow automation "${id}" not found`);
|
|
11156
11237
|
}
|
|
11157
|
-
async function
|
|
11238
|
+
async function enableWorkflowAutomation(id) {
|
|
11158
11239
|
const config = await getClientConfig();
|
|
11159
|
-
const client = initClient(
|
|
11240
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11160
11241
|
const result = await client.enable({ params: { id } });
|
|
11161
11242
|
if (result.status === 200) return result.body;
|
|
11162
|
-
handleError(result, `Failed to enable workflow
|
|
11243
|
+
handleError(result, `Failed to enable workflow automation "${id}"`);
|
|
11163
11244
|
}
|
|
11164
|
-
async function
|
|
11245
|
+
async function disableWorkflowAutomation(id) {
|
|
11165
11246
|
const config = await getClientConfig();
|
|
11166
|
-
const client = initClient(
|
|
11247
|
+
const client = initClient(zeroWorkflowAutomationsContract, config);
|
|
11167
11248
|
const result = await client.disable({ params: { id } });
|
|
11168
11249
|
if (result.status === 200) return result.body;
|
|
11169
|
-
handleError(result, `Failed to disable workflow
|
|
11250
|
+
handleError(result, `Failed to disable workflow automation "${id}"`);
|
|
11170
11251
|
}
|
|
11171
11252
|
|
|
11172
11253
|
// src/lib/api/domains/integrations-slack.ts
|
|
@@ -13768,13 +13849,13 @@ export {
|
|
|
13768
13849
|
updateWorkflow,
|
|
13769
13850
|
deleteWorkflow,
|
|
13770
13851
|
copyWorkflow,
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13852
|
+
listWorkflowAutomations,
|
|
13853
|
+
createWorkflowAutomation,
|
|
13854
|
+
getWorkflowAutomation,
|
|
13855
|
+
updateWorkflowAutomation,
|
|
13856
|
+
deleteWorkflowAutomation,
|
|
13857
|
+
enableWorkflowAutomation,
|
|
13858
|
+
disableWorkflowAutomation,
|
|
13778
13859
|
createGoal,
|
|
13779
13860
|
editGoal,
|
|
13780
13861
|
getGoal,
|
|
@@ -13861,4 +13942,4 @@ export {
|
|
|
13861
13942
|
completeHostedSite,
|
|
13862
13943
|
getHostedSiteFiles
|
|
13863
13944
|
};
|
|
13864
|
-
//# sourceMappingURL=chunk-
|
|
13945
|
+
//# sourceMappingURL=chunk-ZMWXQJYA.js.map
|