@vm0/cli 9.222.10 → 9.222.12
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-T7M7TEPS.js → agent-XNVQRMKI.js} +4 -4
- package/automation-7MAK66QT.js +31 -0
- package/automation-7MAK66QT.js.map +1 -0
- package/{banking-FNJZFPXK.js → banking-QBTNNOCQ.js} +2 -2
- package/{chat-6NJ4VVNA.js → chat-ELAJKQXT.js} +2 -2
- package/{chunk-IJBKOTQR.js → chunk-7ZJOZZXZ.js} +2 -2
- package/{chunk-PAZFEW6A.js → chunk-F774K6TY.js} +2 -2
- package/{chunk-STCMWCQB.js → chunk-JOOQB7W3.js} +2 -2
- package/{chunk-LRXQIJYA.js → chunk-KBDCWC3F.js} +20 -393
- package/chunk-KBDCWC3F.js.map +1 -0
- package/{chunk-EQLMBGHF.js → chunk-LOEUF572.js} +3 -3
- package/{chunk-UFH34RCB.js → chunk-QYSUVI4Z.js} +7 -9
- package/{chunk-UFH34RCB.js.map → chunk-QYSUVI4Z.js.map} +1 -1
- package/{chunk-FJFAPB3B.js → chunk-SBLYEOJF.js} +480 -47
- package/chunk-SBLYEOJF.js.map +1 -0
- package/{chunk-ZQR57JPN.js → chunk-VTG6TDYL.js} +2 -2
- package/{chunk-ZTIA2B55.js → chunk-Y4YHS5UO.js} +2 -2
- package/{computer-use-PNFYU4P6.js → computer-use-XXPDTJSQ.js} +2 -2
- package/{connector-5QNIIQYE.js → connector-PWDJ3R6G.js} +2 -2
- package/{credit-N4VWEZQD.js → credit-MYBUWRHP.js} +2 -2
- package/{developer-support-6YAKUD6P.js → developer-support-65OQ2RK4.js} +2 -2
- package/{doctor-APGXQWMY.js → doctor-2U4HK4AX.js} +5 -5
- package/{generate-DJTSGM7S.js → generate-UEDRCAKX.js} +2 -2
- package/{github-WJX4QT2H.js → github-R6JKL74U.js} +2 -2
- package/{goal-NITAYB5U.js → goal-BG47S2RP.js} +2 -2
- package/{host-2UZGVQ3F.js → host-2VS2KOZQ.js} +2 -2
- package/index.js +18 -20
- package/index.js.map +1 -1
- package/{logs-7BZRPSMW.js → logs-P4ECN3YI.js} +11 -13
- package/{logs-7BZRPSMW.js.map → logs-P4ECN3YI.js.map} +1 -1
- package/{maps-K5NX2KAB.js → maps-ZBULOEZW.js} +2 -2
- package/{model-HSKVRTFU.js → model-BFHGQJ5U.js} +3 -3
- package/{model-provider-JL4VLJRT.js → model-provider-OUSOKSWW.js} +3 -3
- package/{org-DIC435XZ.js → org-RI2EYUW7.js} +2 -2
- package/package.json +1 -1
- package/{phone-R6FRR5SW.js → phone-SNLGLD3J.js} +2 -2
- package/{preference-2Y47RK7E.js → preference-XDSQRZWM.js} +2 -2
- package/{resource-PNK3R6OE.js → resource-BA4FQCNQ.js} +2 -2
- package/schedule-OSHL7HWT.js +33 -0
- package/schedule-OSHL7HWT.js.map +1 -0
- package/{search-DAC3VR2E.js → search-FMA3IDHQ.js} +8 -10
- package/{search-DAC3VR2E.js.map → search-FMA3IDHQ.js.map} +1 -1
- package/{secret-JNDL44GI.js → secret-NFJQKUPS.js} +3 -3
- package/{slack-46YY7OG4.js → slack-JPM5WVX6.js} +2 -2
- package/{telegram-KOLEDEVQ.js → telegram-BNX4UZTT.js} +2 -2
- package/{variable-WKYVSOGW.js → variable-IAIPAH3T.js} +2 -2
- package/{web-UMLXHPQM.js → web-3TJGHZNA.js} +2 -2
- package/{whoami-UJTFVSQG.js → whoami-OVIXXMRR.js} +4 -4
- package/{workflow-FG4M2QL6.js → workflow-WWMTJDLF.js} +62 -7
- package/workflow-WWMTJDLF.js.map +1 -0
- package/zero.js +36 -37
- package/zero.js.map +1 -1
- package/automation-ODWI55XR.js +0 -501
- package/automation-ODWI55XR.js.map +0 -1
- package/chunk-FJFAPB3B.js.map +0 -1
- package/chunk-H63W4KQL.js +0 -160
- package/chunk-H63W4KQL.js.map +0 -1
- package/chunk-HQFETCZ6.js +0 -71
- package/chunk-HQFETCZ6.js.map +0 -1
- package/chunk-LRXQIJYA.js.map +0 -1
- package/schedule-MTI5OP23.js +0 -31
- package/schedule-MTI5OP23.js.map +0 -1
- package/workflow-FG4M2QL6.js.map +0 -1
- /package/{agent-T7M7TEPS.js.map → agent-XNVQRMKI.js.map} +0 -0
- /package/{banking-FNJZFPXK.js.map → banking-QBTNNOCQ.js.map} +0 -0
- /package/{chat-6NJ4VVNA.js.map → chat-ELAJKQXT.js.map} +0 -0
- /package/{chunk-IJBKOTQR.js.map → chunk-7ZJOZZXZ.js.map} +0 -0
- /package/{chunk-PAZFEW6A.js.map → chunk-F774K6TY.js.map} +0 -0
- /package/{chunk-STCMWCQB.js.map → chunk-JOOQB7W3.js.map} +0 -0
- /package/{chunk-EQLMBGHF.js.map → chunk-LOEUF572.js.map} +0 -0
- /package/{chunk-ZQR57JPN.js.map → chunk-VTG6TDYL.js.map} +0 -0
- /package/{chunk-ZTIA2B55.js.map → chunk-Y4YHS5UO.js.map} +0 -0
- /package/{computer-use-PNFYU4P6.js.map → computer-use-XXPDTJSQ.js.map} +0 -0
- /package/{connector-5QNIIQYE.js.map → connector-PWDJ3R6G.js.map} +0 -0
- /package/{credit-N4VWEZQD.js.map → credit-MYBUWRHP.js.map} +0 -0
- /package/{developer-support-6YAKUD6P.js.map → developer-support-65OQ2RK4.js.map} +0 -0
- /package/{doctor-APGXQWMY.js.map → doctor-2U4HK4AX.js.map} +0 -0
- /package/{generate-DJTSGM7S.js.map → generate-UEDRCAKX.js.map} +0 -0
- /package/{github-WJX4QT2H.js.map → github-R6JKL74U.js.map} +0 -0
- /package/{goal-NITAYB5U.js.map → goal-BG47S2RP.js.map} +0 -0
- /package/{host-2UZGVQ3F.js.map → host-2VS2KOZQ.js.map} +0 -0
- /package/{maps-K5NX2KAB.js.map → maps-ZBULOEZW.js.map} +0 -0
- /package/{model-HSKVRTFU.js.map → model-BFHGQJ5U.js.map} +0 -0
- /package/{model-provider-JL4VLJRT.js.map → model-provider-OUSOKSWW.js.map} +0 -0
- /package/{org-DIC435XZ.js.map → org-RI2EYUW7.js.map} +0 -0
- /package/{phone-R6FRR5SW.js.map → phone-SNLGLD3J.js.map} +0 -0
- /package/{preference-2Y47RK7E.js.map → preference-XDSQRZWM.js.map} +0 -0
- /package/{resource-PNK3R6OE.js.map → resource-BA4FQCNQ.js.map} +0 -0
- /package/{secret-JNDL44GI.js.map → secret-NFJQKUPS.js.map} +0 -0
- /package/{slack-46YY7OG4.js.map → slack-JPM5WVX6.js.map} +0 -0
- /package/{telegram-KOLEDEVQ.js.map → telegram-BNX4UZTT.js.map} +0 -0
- /package/{variable-WKYVSOGW.js.map → variable-IAIPAH3T.js.map} +0 -0
- /package/{web-UMLXHPQM.js.map → web-3TJGHZNA.js.map} +0 -0
- /package/{whoami-UJTFVSQG.js.map → whoami-OVIXXMRR.js.map} +0 -0
|
@@ -4,10 +4,10 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JOOQB7W3.js";
|
|
8
8
|
import {
|
|
9
9
|
permissionGrantsToFirewallPolicies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7ZJOZZXZ.js";
|
|
11
11
|
import {
|
|
12
12
|
isInteractive,
|
|
13
13
|
promptConfirm
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
listZeroUserPermissionGrants,
|
|
25
25
|
updateZeroAgent,
|
|
26
26
|
updateZeroAgentInstructions
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KBDCWC3F.js";
|
|
28
28
|
import {
|
|
29
29
|
withErrorHandler
|
|
30
30
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -595,4 +595,4 @@ Notes:
|
|
|
595
595
|
export {
|
|
596
596
|
zeroAgentCommand
|
|
597
597
|
};
|
|
598
|
-
//# sourceMappingURL=agent-
|
|
598
|
+
//# sourceMappingURL=agent-XNVQRMKI.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
source_default
|
|
6
|
+
} from "./chunk-JUTUEPIR.js";
|
|
7
|
+
import {
|
|
8
|
+
Command
|
|
9
|
+
} from "./chunk-B3W2RUBP.js";
|
|
10
|
+
import {
|
|
11
|
+
init_esm_shims
|
|
12
|
+
} from "./chunk-DIRAZ3YX.js";
|
|
13
|
+
|
|
14
|
+
// src/commands/zero/automation.ts
|
|
15
|
+
init_esm_shims();
|
|
16
|
+
var REMOVAL_NOTICE = [
|
|
17
|
+
"The automation commands were removed: scheduled tasks are workflow triggers now.",
|
|
18
|
+
"",
|
|
19
|
+
`Manage them with ${source_default.cyan("zero workflow")}, for example:`,
|
|
20
|
+
` ${source_default.cyan('zero workflow trigger add <workflow> cron --expr "0 9 * * *"')}`,
|
|
21
|
+
` ${source_default.cyan("zero workflow trigger list")}`,
|
|
22
|
+
` ${source_default.cyan("zero workflow --help")}`
|
|
23
|
+
].join("\n");
|
|
24
|
+
var zeroAutomationCommand = new Command("automation").description("(removed: use `zero workflow`) Automations are workflows now").helpOption(false).allowUnknownOption(true).allowExcessArguments(true).argument("[args...]").action(() => {
|
|
25
|
+
console.error(REMOVAL_NOTICE);
|
|
26
|
+
process.exitCode = 1;
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
zeroAutomationCommand
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=automation-7MAK66QT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/automation.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport chalk from \"chalk\";\n\n// The automation command tree was removed with the automation -> workflow\n// migration (#19959 / #20100): scheduled tasks are workflow triggers now.\n// This stub keeps `zero automation ...` from failing with an opaque\n// unknown-command error and points at the replacement instead.\nconst REMOVAL_NOTICE = [\n \"The automation commands were removed: scheduled tasks are workflow triggers now.\",\n \"\",\n `Manage them with ${chalk.cyan(\"zero workflow\")}, for example:`,\n ` ${chalk.cyan('zero workflow trigger add <workflow> cron --expr \"0 9 * * *\"')}`,\n ` ${chalk.cyan(\"zero workflow trigger list\")}`,\n ` ${chalk.cyan(\"zero workflow --help\")}`,\n].join(\"\\n\");\n\nexport const zeroAutomationCommand = new Command(\"automation\")\n .description(\"(removed: use `zero workflow`) Automations are workflows now\")\n .helpOption(false)\n .allowUnknownOption(true)\n .allowExcessArguments(true)\n .argument(\"[args...]\")\n .action(() => {\n console.error(REMOVAL_NOTICE);\n process.exitCode = 1;\n });\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAOA,IAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,EACA,oBAAoB,eAAM,KAAK,eAAe,CAAC;AAAA,EAC/C,KAAK,eAAM,KAAK,8DAA8D,CAAC;AAAA,EAC/E,KAAK,eAAM,KAAK,4BAA4B,CAAC;AAAA,EAC7C,KAAK,eAAM,KAAK,sBAAsB,CAAC;AACzC,EAAE,KAAK,IAAI;AAEJ,IAAM,wBAAwB,IAAI,QAAQ,YAAY,EAC1D,YAAY,8DAA8D,EAC1E,WAAW,KAAK,EAChB,mBAAmB,IAAI,EACvB,qBAAqB,IAAI,EACzB,SAAS,WAAW,EACpB,OAAO,MAAM;AACZ,UAAQ,MAAM,cAAc;AAC5B,UAAQ,WAAW;AACrB,CAAC;","names":[]}
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import "./chunk-LTDQISD7.js";
|
|
5
5
|
import {
|
|
6
6
|
callZeroBanking
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KBDCWC3F.js";
|
|
8
8
|
import {
|
|
9
9
|
withErrorHandler
|
|
10
10
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -115,4 +115,4 @@ Notes:
|
|
|
115
115
|
export {
|
|
116
116
|
zeroBankingCommand
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=banking-
|
|
118
|
+
//# sourceMappingURL=banking-QBTNNOCQ.js.map
|
|
@@ -5,7 +5,7 @@ import "./chunk-LTDQISD7.js";
|
|
|
5
5
|
import {
|
|
6
6
|
getZeroChatThread,
|
|
7
7
|
renameZeroChatThread
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KBDCWC3F.js";
|
|
9
9
|
import {
|
|
10
10
|
withErrorHandler
|
|
11
11
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -120,4 +120,4 @@ Examples:
|
|
|
120
120
|
export {
|
|
121
121
|
zeroChatCommand
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chat-
|
|
123
|
+
//# sourceMappingURL=chat-ELAJKQXT.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
UNKNOWN_PERMISSION_GRANT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KBDCWC3F.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -3098,4 +3098,4 @@ export {
|
|
|
3098
3098
|
getFirewallPermissionSummary,
|
|
3099
3099
|
loadFirewallPermissionMetadata
|
|
3100
3100
|
};
|
|
3101
|
-
//# sourceMappingURL=chunk-
|
|
3101
|
+
//# sourceMappingURL=chunk-7ZJOZZXZ.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
splitPathSegments,
|
|
11
11
|
validateAuthBaseUrl,
|
|
12
12
|
validateBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KBDCWC3F.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esm_shims
|
|
16
16
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -1175,4 +1175,4 @@ export {
|
|
|
1175
1175
|
matchFirewallBaseUrl,
|
|
1176
1176
|
matchFirewallRequestDecision
|
|
1177
1177
|
};
|
|
1178
|
-
//# sourceMappingURL=chunk-
|
|
1178
|
+
//# sourceMappingURL=chunk-F774K6TY.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadFirewallPermissionMetadata,
|
|
6
6
|
resolveFirewallMetadataPolicies
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7ZJOZZXZ.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default
|
|
10
10
|
} from "./chunk-JUTUEPIR.js";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
policyIcon,
|
|
88
88
|
loadConnectorPermissionInfos
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-JOOQB7W3.js.map
|
|
@@ -22330,6 +22330,21 @@ var publicConnectorCatalogPermissionSummarySchema = external_exports.object({
|
|
|
22330
22330
|
hasCategories: external_exports.boolean(),
|
|
22331
22331
|
hasDefaultPolicyOverrides: external_exports.boolean()
|
|
22332
22332
|
});
|
|
22333
|
+
var publicConnectorCatalogCategoryGroupSchema = external_exports.object({
|
|
22334
|
+
id: external_exports.string(),
|
|
22335
|
+
label: external_exports.string(),
|
|
22336
|
+
menuLabel: external_exports.string()
|
|
22337
|
+
});
|
|
22338
|
+
var publicConnectorCatalogCategorySchema = external_exports.object({
|
|
22339
|
+
id: external_exports.string(),
|
|
22340
|
+
label: external_exports.string(),
|
|
22341
|
+
menuLabel: external_exports.string(),
|
|
22342
|
+
groupId: external_exports.string().nullable()
|
|
22343
|
+
});
|
|
22344
|
+
var publicConnectorCatalogCategoryMetadataSchema = external_exports.object({
|
|
22345
|
+
categories: external_exports.array(publicConnectorCatalogCategorySchema),
|
|
22346
|
+
groups: external_exports.array(publicConnectorCatalogCategoryGroupSchema)
|
|
22347
|
+
});
|
|
22333
22348
|
var publicConnectorCatalogItemSchema = external_exports.object({
|
|
22334
22349
|
connectorRef: connectorRefSchema,
|
|
22335
22350
|
label: external_exports.string(),
|
|
@@ -22367,7 +22382,8 @@ var publicConnectorCatalogDetailSchema = publicConnectorCatalogItemSchema.extend
|
|
|
22367
22382
|
authMethods: external_exports.array(publicConnectorCatalogAuthMethodDetailSchema)
|
|
22368
22383
|
});
|
|
22369
22384
|
var publicConnectorCatalogListResponseSchema = external_exports.object({
|
|
22370
|
-
connectors: external_exports.array(publicConnectorCatalogItemSchema)
|
|
22385
|
+
connectors: external_exports.array(publicConnectorCatalogItemSchema),
|
|
22386
|
+
categoryMetadata: publicConnectorCatalogCategoryMetadataSchema.optional()
|
|
22371
22387
|
});
|
|
22372
22388
|
var publicConnectorCatalogDetailResponseSchema = external_exports.object({
|
|
22373
22389
|
connector: publicConnectorCatalogDetailSchema
|
|
@@ -22395,7 +22411,8 @@ var publicConnectorCatalogStatusItemSchema = publicConnectorCatalogDetailSchema.
|
|
|
22395
22411
|
connectNotice: external_exports.enum(["google-security-warning"]).nullable()
|
|
22396
22412
|
});
|
|
22397
22413
|
var publicConnectorCatalogStatusResponseSchema = external_exports.object({
|
|
22398
|
-
connectors: external_exports.array(publicConnectorCatalogStatusItemSchema)
|
|
22414
|
+
connectors: external_exports.array(publicConnectorCatalogStatusItemSchema),
|
|
22415
|
+
categoryMetadata: publicConnectorCatalogCategoryMetadataSchema.optional()
|
|
22399
22416
|
});
|
|
22400
22417
|
var publicFirewallPolicyValueSchema = external_exports.enum(["allow", "deny", "ask"]);
|
|
22401
22418
|
var publicConnectorCatalogPermissionSchema = external_exports.object({
|
|
@@ -27911,387 +27928,6 @@ async function downloadPhoneFile(fileId, outPath) {
|
|
|
27911
27928
|
return { path: outPath, mimetype, size };
|
|
27912
27929
|
}
|
|
27913
27930
|
|
|
27914
|
-
// src/lib/api/domains/automations.ts
|
|
27915
|
-
init_esm_shims();
|
|
27916
|
-
|
|
27917
|
-
// ../../packages/api-contracts/src/contracts/automations.ts
|
|
27918
|
-
init_esm_shims();
|
|
27919
|
-
var c35 = initContract();
|
|
27920
|
-
var triggerBaseShape = {
|
|
27921
|
-
id: external_exports.string().uuid(),
|
|
27922
|
-
automationId: external_exports.string().uuid(),
|
|
27923
|
-
enabled: external_exports.boolean(),
|
|
27924
|
-
createdAt: external_exports.string(),
|
|
27925
|
-
updatedAt: external_exports.string()
|
|
27926
|
-
};
|
|
27927
|
-
var timeTriggerRuntimeShape = {
|
|
27928
|
-
timezone: external_exports.string(),
|
|
27929
|
-
nextRunAt: external_exports.string().nullable(),
|
|
27930
|
-
lastRunAt: external_exports.string().nullable(),
|
|
27931
|
-
consecutiveFailures: external_exports.number()
|
|
27932
|
-
};
|
|
27933
|
-
var automationTriggerResponseSchema = external_exports.discriminatedUnion("kind", [
|
|
27934
|
-
external_exports.object({
|
|
27935
|
-
...triggerBaseShape,
|
|
27936
|
-
kind: external_exports.literal("cron"),
|
|
27937
|
-
cronExpression: external_exports.string(),
|
|
27938
|
-
...timeTriggerRuntimeShape
|
|
27939
|
-
}),
|
|
27940
|
-
external_exports.object({
|
|
27941
|
-
...triggerBaseShape,
|
|
27942
|
-
kind: external_exports.literal("once"),
|
|
27943
|
-
atTime: external_exports.string(),
|
|
27944
|
-
...timeTriggerRuntimeShape
|
|
27945
|
-
}),
|
|
27946
|
-
external_exports.object({
|
|
27947
|
-
...triggerBaseShape,
|
|
27948
|
-
kind: external_exports.literal("loop"),
|
|
27949
|
-
intervalSeconds: external_exports.number(),
|
|
27950
|
-
...timeTriggerRuntimeShape
|
|
27951
|
-
})
|
|
27952
|
-
]);
|
|
27953
|
-
var automationResponseSchema = external_exports.object({
|
|
27954
|
-
id: external_exports.string().uuid(),
|
|
27955
|
-
agentId: external_exports.string().uuid(),
|
|
27956
|
-
displayName: external_exports.string().nullable(),
|
|
27957
|
-
userId: external_exports.string(),
|
|
27958
|
-
name: external_exports.string(),
|
|
27959
|
-
description: external_exports.string().nullable(),
|
|
27960
|
-
instruction: external_exports.string(),
|
|
27961
|
-
appendSystemPrompt: external_exports.string().nullable(),
|
|
27962
|
-
enabled: external_exports.boolean(),
|
|
27963
|
-
chatThreadId: external_exports.string().uuid(),
|
|
27964
|
-
createdAt: external_exports.string(),
|
|
27965
|
-
updatedAt: external_exports.string(),
|
|
27966
|
-
triggers: external_exports.array(automationTriggerResponseSchema)
|
|
27967
|
-
});
|
|
27968
|
-
var automationListResponseSchema = external_exports.object({
|
|
27969
|
-
automations: external_exports.array(automationResponseSchema)
|
|
27970
|
-
});
|
|
27971
|
-
var cronTriggerConfigSchema = external_exports.object({
|
|
27972
|
-
kind: external_exports.literal("cron"),
|
|
27973
|
-
cronExpression: external_exports.string().min(1),
|
|
27974
|
-
timezone: external_exports.string().optional()
|
|
27975
|
-
});
|
|
27976
|
-
var onceTriggerConfigSchema = external_exports.object({
|
|
27977
|
-
kind: external_exports.literal("once"),
|
|
27978
|
-
atTime: external_exports.string().min(1),
|
|
27979
|
-
timezone: external_exports.string().optional()
|
|
27980
|
-
});
|
|
27981
|
-
var loopTriggerConfigSchema = external_exports.object({
|
|
27982
|
-
kind: external_exports.literal("loop"),
|
|
27983
|
-
intervalSeconds: external_exports.number().int().positive()
|
|
27984
|
-
});
|
|
27985
|
-
var createTriggerRequestSchema = external_exports.discriminatedUnion("kind", [
|
|
27986
|
-
cronTriggerConfigSchema,
|
|
27987
|
-
onceTriggerConfigSchema,
|
|
27988
|
-
loopTriggerConfigSchema
|
|
27989
|
-
]);
|
|
27990
|
-
var updateTriggerRequestSchema = external_exports.discriminatedUnion("kind", [
|
|
27991
|
-
cronTriggerConfigSchema,
|
|
27992
|
-
onceTriggerConfigSchema,
|
|
27993
|
-
loopTriggerConfigSchema
|
|
27994
|
-
]);
|
|
27995
|
-
var createAutomationRequestSchema = external_exports.object({
|
|
27996
|
-
name: external_exports.string().min(1).max(64, "Automation name max 64 chars"),
|
|
27997
|
-
agentId: external_exports.string().uuid("Invalid agent ID"),
|
|
27998
|
-
instruction: external_exports.string().min(1, "Instruction required"),
|
|
27999
|
-
description: external_exports.string().optional(),
|
|
28000
|
-
appendSystemPrompt: external_exports.string().optional(),
|
|
28001
|
-
enabled: external_exports.boolean().optional(),
|
|
28002
|
-
// Chat-thread linkage, honored only on creation. When provided, links the
|
|
28003
|
-
// automation to an existing owned chat thread; when omitted, the server
|
|
28004
|
-
// creates a web chat thread and links it.
|
|
28005
|
-
chatThreadId: external_exports.string().uuid("Invalid chat thread ID").optional(),
|
|
28006
|
-
trigger: createTriggerRequestSchema
|
|
28007
|
-
});
|
|
28008
|
-
var updateAutomationRequestSchema = external_exports.object({
|
|
28009
|
-
name: external_exports.string().min(1).max(64).optional(),
|
|
28010
|
-
instruction: external_exports.string().min(1).optional(),
|
|
28011
|
-
description: external_exports.string().nullable().optional(),
|
|
28012
|
-
appendSystemPrompt: external_exports.string().nullable().optional()
|
|
28013
|
-
});
|
|
28014
|
-
var automationMutationResponseSchema = external_exports.object({
|
|
28015
|
-
automation: automationResponseSchema
|
|
28016
|
-
});
|
|
28017
|
-
var triggerMutationResponseSchema = external_exports.object({
|
|
28018
|
-
trigger: automationTriggerResponseSchema
|
|
28019
|
-
});
|
|
28020
|
-
var automationRunResponseSchema = external_exports.object({
|
|
28021
|
-
runId: external_exports.string()
|
|
28022
|
-
});
|
|
28023
|
-
var refParamsSchema = external_exports.object({
|
|
28024
|
-
// Automation id (UUID) or unique name within the org/user scope.
|
|
28025
|
-
ref: external_exports.string().min(1)
|
|
28026
|
-
});
|
|
28027
|
-
var triggerIdParamsSchema = external_exports.object({
|
|
28028
|
-
id: external_exports.string().uuid("Invalid trigger ID")
|
|
28029
|
-
});
|
|
28030
|
-
var automationsMainContract = c35.router({
|
|
28031
|
-
create: {
|
|
28032
|
-
method: "POST",
|
|
28033
|
-
path: "/api/automations",
|
|
28034
|
-
headers: authHeadersSchema,
|
|
28035
|
-
body: createAutomationRequestSchema,
|
|
28036
|
-
responses: {
|
|
28037
|
-
201: automationMutationResponseSchema,
|
|
28038
|
-
400: apiErrorSchema,
|
|
28039
|
-
401: apiErrorSchema,
|
|
28040
|
-
403: apiErrorSchema,
|
|
28041
|
-
404: apiErrorSchema
|
|
28042
|
-
},
|
|
28043
|
-
summary: "Create an automation with its schedule trigger"
|
|
28044
|
-
},
|
|
28045
|
-
list: {
|
|
28046
|
-
method: "GET",
|
|
28047
|
-
path: "/api/automations",
|
|
28048
|
-
headers: authHeadersSchema,
|
|
28049
|
-
responses: {
|
|
28050
|
-
200: automationListResponseSchema,
|
|
28051
|
-
401: apiErrorSchema,
|
|
28052
|
-
403: apiErrorSchema,
|
|
28053
|
-
404: apiErrorSchema
|
|
28054
|
-
},
|
|
28055
|
-
summary: "List automations with their triggers"
|
|
28056
|
-
}
|
|
28057
|
-
});
|
|
28058
|
-
var automationsByRefContract = c35.router({
|
|
28059
|
-
show: {
|
|
28060
|
-
method: "GET",
|
|
28061
|
-
path: "/api/automations/:ref",
|
|
28062
|
-
headers: authHeadersSchema,
|
|
28063
|
-
pathParams: refParamsSchema,
|
|
28064
|
-
responses: {
|
|
28065
|
-
200: automationResponseSchema,
|
|
28066
|
-
400: apiErrorSchema,
|
|
28067
|
-
401: apiErrorSchema,
|
|
28068
|
-
403: apiErrorSchema,
|
|
28069
|
-
404: apiErrorSchema
|
|
28070
|
-
},
|
|
28071
|
-
summary: "Show an automation and its triggers"
|
|
28072
|
-
},
|
|
28073
|
-
update: {
|
|
28074
|
-
method: "PATCH",
|
|
28075
|
-
path: "/api/automations/:ref",
|
|
28076
|
-
headers: authHeadersSchema,
|
|
28077
|
-
pathParams: refParamsSchema,
|
|
28078
|
-
body: updateAutomationRequestSchema,
|
|
28079
|
-
responses: {
|
|
28080
|
-
200: automationResponseSchema,
|
|
28081
|
-
400: apiErrorSchema,
|
|
28082
|
-
401: apiErrorSchema,
|
|
28083
|
-
403: apiErrorSchema,
|
|
28084
|
-
404: apiErrorSchema
|
|
28085
|
-
},
|
|
28086
|
-
summary: "Update an automation's identity/intent fields"
|
|
28087
|
-
},
|
|
28088
|
-
delete: {
|
|
28089
|
-
method: "DELETE",
|
|
28090
|
-
path: "/api/automations/:ref",
|
|
28091
|
-
headers: authHeadersSchema,
|
|
28092
|
-
pathParams: refParamsSchema,
|
|
28093
|
-
responses: {
|
|
28094
|
-
204: c35.noBody(),
|
|
28095
|
-
400: apiErrorSchema,
|
|
28096
|
-
401: apiErrorSchema,
|
|
28097
|
-
403: apiErrorSchema,
|
|
28098
|
-
404: apiErrorSchema
|
|
28099
|
-
},
|
|
28100
|
-
summary: "Delete an automation (its triggers cascade)"
|
|
28101
|
-
},
|
|
28102
|
-
enable: {
|
|
28103
|
-
method: "POST",
|
|
28104
|
-
path: "/api/automations/:ref/enable",
|
|
28105
|
-
headers: authHeadersSchema,
|
|
28106
|
-
pathParams: refParamsSchema,
|
|
28107
|
-
body: external_exports.object({}).optional(),
|
|
28108
|
-
responses: {
|
|
28109
|
-
200: automationResponseSchema,
|
|
28110
|
-
400: apiErrorSchema,
|
|
28111
|
-
401: apiErrorSchema,
|
|
28112
|
-
403: apiErrorSchema,
|
|
28113
|
-
404: apiErrorSchema
|
|
28114
|
-
},
|
|
28115
|
-
summary: "Enable an automation"
|
|
28116
|
-
},
|
|
28117
|
-
disable: {
|
|
28118
|
-
method: "POST",
|
|
28119
|
-
path: "/api/automations/:ref/disable",
|
|
28120
|
-
headers: authHeadersSchema,
|
|
28121
|
-
pathParams: refParamsSchema,
|
|
28122
|
-
body: external_exports.object({}).optional(),
|
|
28123
|
-
responses: {
|
|
28124
|
-
200: automationResponseSchema,
|
|
28125
|
-
400: apiErrorSchema,
|
|
28126
|
-
401: apiErrorSchema,
|
|
28127
|
-
403: apiErrorSchema,
|
|
28128
|
-
404: apiErrorSchema
|
|
28129
|
-
},
|
|
28130
|
-
summary: "Disable an automation"
|
|
28131
|
-
},
|
|
28132
|
-
run: {
|
|
28133
|
-
method: "POST",
|
|
28134
|
-
path: "/api/automations/:ref/run",
|
|
28135
|
-
headers: authHeadersSchema,
|
|
28136
|
-
pathParams: refParamsSchema,
|
|
28137
|
-
body: external_exports.object({}).optional(),
|
|
28138
|
-
responses: {
|
|
28139
|
-
201: automationRunResponseSchema,
|
|
28140
|
-
400: apiErrorSchema,
|
|
28141
|
-
401: apiErrorSchema,
|
|
28142
|
-
402: apiErrorSchema,
|
|
28143
|
-
403: apiErrorSchema,
|
|
28144
|
-
404: apiErrorSchema,
|
|
28145
|
-
409: apiErrorSchema,
|
|
28146
|
-
429: apiErrorSchema,
|
|
28147
|
-
503: apiErrorSchema
|
|
28148
|
-
},
|
|
28149
|
-
summary: "Manually fire an automation (instruction-only, no event)"
|
|
28150
|
-
}
|
|
28151
|
-
});
|
|
28152
|
-
var automationTriggersContract = c35.router({
|
|
28153
|
-
show: {
|
|
28154
|
-
method: "GET",
|
|
28155
|
-
path: "/api/automation-triggers/:id",
|
|
28156
|
-
headers: authHeadersSchema,
|
|
28157
|
-
pathParams: triggerIdParamsSchema,
|
|
28158
|
-
responses: {
|
|
28159
|
-
200: automationTriggerResponseSchema,
|
|
28160
|
-
401: apiErrorSchema,
|
|
28161
|
-
403: apiErrorSchema,
|
|
28162
|
-
404: apiErrorSchema
|
|
28163
|
-
},
|
|
28164
|
-
summary: "Show a trigger"
|
|
28165
|
-
},
|
|
28166
|
-
update: {
|
|
28167
|
-
method: "PATCH",
|
|
28168
|
-
path: "/api/automation-triggers/:id",
|
|
28169
|
-
headers: authHeadersSchema,
|
|
28170
|
-
pathParams: triggerIdParamsSchema,
|
|
28171
|
-
body: updateTriggerRequestSchema,
|
|
28172
|
-
responses: {
|
|
28173
|
-
200: automationTriggerResponseSchema,
|
|
28174
|
-
400: apiErrorSchema,
|
|
28175
|
-
401: apiErrorSchema,
|
|
28176
|
-
403: apiErrorSchema,
|
|
28177
|
-
404: apiErrorSchema
|
|
28178
|
-
},
|
|
28179
|
-
summary: "Replace a time trigger's schedule config (kind may switch among cron/once/loop)"
|
|
28180
|
-
},
|
|
28181
|
-
enable: {
|
|
28182
|
-
method: "POST",
|
|
28183
|
-
path: "/api/automation-triggers/:id/enable",
|
|
28184
|
-
headers: authHeadersSchema,
|
|
28185
|
-
pathParams: triggerIdParamsSchema,
|
|
28186
|
-
body: external_exports.object({}).optional(),
|
|
28187
|
-
responses: {
|
|
28188
|
-
200: automationTriggerResponseSchema,
|
|
28189
|
-
400: apiErrorSchema,
|
|
28190
|
-
401: apiErrorSchema,
|
|
28191
|
-
403: apiErrorSchema,
|
|
28192
|
-
404: apiErrorSchema
|
|
28193
|
-
},
|
|
28194
|
-
summary: "Enable a single trigger"
|
|
28195
|
-
},
|
|
28196
|
-
disable: {
|
|
28197
|
-
method: "POST",
|
|
28198
|
-
path: "/api/automation-triggers/:id/disable",
|
|
28199
|
-
headers: authHeadersSchema,
|
|
28200
|
-
pathParams: triggerIdParamsSchema,
|
|
28201
|
-
body: external_exports.object({}).optional(),
|
|
28202
|
-
responses: {
|
|
28203
|
-
200: automationTriggerResponseSchema,
|
|
28204
|
-
401: apiErrorSchema,
|
|
28205
|
-
403: apiErrorSchema,
|
|
28206
|
-
404: apiErrorSchema
|
|
28207
|
-
},
|
|
28208
|
-
summary: "Disable a single trigger"
|
|
28209
|
-
}
|
|
28210
|
-
});
|
|
28211
|
-
|
|
28212
|
-
// src/lib/api/domains/automations.ts
|
|
28213
|
-
async function createAutomation(body) {
|
|
28214
|
-
const config = await getClientConfig();
|
|
28215
|
-
const client = initClient(automationsMainContract, config);
|
|
28216
|
-
const result = await client.create({ body });
|
|
28217
|
-
if (result.status === 201) {
|
|
28218
|
-
return result.body;
|
|
28219
|
-
}
|
|
28220
|
-
handleError(result, "Failed to create automation");
|
|
28221
|
-
}
|
|
28222
|
-
async function listAutomations() {
|
|
28223
|
-
const config = await getClientConfig();
|
|
28224
|
-
const client = initClient(automationsMainContract, config);
|
|
28225
|
-
const result = await client.list({ headers: {} });
|
|
28226
|
-
if (result.status === 200) {
|
|
28227
|
-
return result.body;
|
|
28228
|
-
}
|
|
28229
|
-
handleError(result, "Failed to list automations");
|
|
28230
|
-
}
|
|
28231
|
-
async function showAutomation(ref) {
|
|
28232
|
-
const config = await getClientConfig();
|
|
28233
|
-
const client = initClient(automationsByRefContract, config);
|
|
28234
|
-
const result = await client.show({ params: { ref } });
|
|
28235
|
-
if (result.status === 200) {
|
|
28236
|
-
return result.body;
|
|
28237
|
-
}
|
|
28238
|
-
handleError(result, `Automation not found: ${ref}`);
|
|
28239
|
-
}
|
|
28240
|
-
async function updateAutomation(ref, body) {
|
|
28241
|
-
const config = await getClientConfig();
|
|
28242
|
-
const client = initClient(automationsByRefContract, config);
|
|
28243
|
-
const result = await client.update({ params: { ref }, body });
|
|
28244
|
-
if (result.status === 200) {
|
|
28245
|
-
return result.body;
|
|
28246
|
-
}
|
|
28247
|
-
handleError(result, `Failed to update automation "${ref}"`);
|
|
28248
|
-
}
|
|
28249
|
-
async function deleteAutomation(ref) {
|
|
28250
|
-
const config = await getClientConfig();
|
|
28251
|
-
const client = initClient(automationsByRefContract, config);
|
|
28252
|
-
const result = await client.delete({ params: { ref } });
|
|
28253
|
-
if (result.status === 204) {
|
|
28254
|
-
return;
|
|
28255
|
-
}
|
|
28256
|
-
handleError(result, `Failed to delete automation "${ref}"`);
|
|
28257
|
-
}
|
|
28258
|
-
async function enableAutomation(ref) {
|
|
28259
|
-
const config = await getClientConfig();
|
|
28260
|
-
const client = initClient(automationsByRefContract, config);
|
|
28261
|
-
const result = await client.enable({ params: { ref }, body: {} });
|
|
28262
|
-
if (result.status === 200) {
|
|
28263
|
-
return result.body;
|
|
28264
|
-
}
|
|
28265
|
-
handleError(result, `Failed to enable automation "${ref}"`);
|
|
28266
|
-
}
|
|
28267
|
-
async function disableAutomation(ref) {
|
|
28268
|
-
const config = await getClientConfig();
|
|
28269
|
-
const client = initClient(automationsByRefContract, config);
|
|
28270
|
-
const result = await client.disable({ params: { ref }, body: {} });
|
|
28271
|
-
if (result.status === 200) {
|
|
28272
|
-
return result.body;
|
|
28273
|
-
}
|
|
28274
|
-
handleError(result, `Failed to disable automation "${ref}"`);
|
|
28275
|
-
}
|
|
28276
|
-
async function runAutomation(ref) {
|
|
28277
|
-
const config = await getClientConfig();
|
|
28278
|
-
const client = initClient(automationsByRefContract, config);
|
|
28279
|
-
const result = await client.run({ params: { ref }, body: {} });
|
|
28280
|
-
if (result.status === 201) {
|
|
28281
|
-
return result.body;
|
|
28282
|
-
}
|
|
28283
|
-
handleError(result, `Failed to run automation "${ref}"`);
|
|
28284
|
-
}
|
|
28285
|
-
async function updateAutomationTrigger(id, body) {
|
|
28286
|
-
const config = await getClientConfig();
|
|
28287
|
-
const client = initClient(automationTriggersContract, config);
|
|
28288
|
-
const result = await client.update({ params: { id }, body });
|
|
28289
|
-
if (result.status === 200) {
|
|
28290
|
-
return result.body;
|
|
28291
|
-
}
|
|
28292
|
-
handleError(result, `Failed to update trigger ${id}`);
|
|
28293
|
-
}
|
|
28294
|
-
|
|
28295
27931
|
// src/lib/api/domains/zero-logs.ts
|
|
28296
27932
|
init_esm_shims();
|
|
28297
27933
|
async function listZeroLogs(options) {
|
|
@@ -28661,15 +28297,6 @@ export {
|
|
|
28661
28297
|
initPhoneFileUpload,
|
|
28662
28298
|
completePhoneFileUpload,
|
|
28663
28299
|
downloadPhoneFile,
|
|
28664
|
-
createAutomation,
|
|
28665
|
-
listAutomations,
|
|
28666
|
-
showAutomation,
|
|
28667
|
-
updateAutomation,
|
|
28668
|
-
deleteAutomation,
|
|
28669
|
-
enableAutomation,
|
|
28670
|
-
disableAutomation,
|
|
28671
|
-
runAutomation,
|
|
28672
|
-
updateAutomationTrigger,
|
|
28673
28300
|
getZeroRunAgentEvents,
|
|
28674
28301
|
getZeroRunContext,
|
|
28675
28302
|
listZeroLogs,
|
|
@@ -28698,4 +28325,4 @@ export {
|
|
|
28698
28325
|
completeHostedSite,
|
|
28699
28326
|
getHostedSiteFiles
|
|
28700
28327
|
};
|
|
28701
|
-
//# sourceMappingURL=chunk-
|
|
28328
|
+
//# sourceMappingURL=chunk-KBDCWC3F.js.map
|