@vm0/cli 9.222.9 → 9.222.11
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-ZDJQRV5F.js → agent-XNVQRMKI.js} +4 -4
- package/automation-7MAK66QT.js +31 -0
- package/automation-7MAK66QT.js.map +1 -0
- package/{banking-3VE6CETL.js → banking-QBTNNOCQ.js} +2 -2
- package/{chat-LBGYMTDO.js → chat-ELAJKQXT.js} +2 -2
- package/{chunk-S473TX4B.js → chunk-5EPGSDIQ.js} +479 -46
- package/chunk-5EPGSDIQ.js.map +1 -0
- package/{chunk-OJEINPMU.js → chunk-7ZJOZZXZ.js} +3 -3
- package/{chunk-Y3NUN3UL.js → chunk-F774K6TY.js} +2 -2
- package/{chunk-YVZFUVCW.js → chunk-JOOQB7W3.js} +2 -2
- package/{chunk-QVSVGYE3.js → chunk-KBDCWC3F.js} +40 -395
- package/chunk-KBDCWC3F.js.map +1 -0
- package/{chunk-N2FY46MD.js → chunk-MJ4W2C3Z.js} +7 -9
- package/{chunk-N2FY46MD.js.map → chunk-MJ4W2C3Z.js.map} +1 -1
- package/{chunk-TWIQPNKQ.js → chunk-VTG6TDYL.js} +2 -2
- package/{chunk-LBHBBYUU.js → chunk-Y4YHS5UO.js} +2 -2
- package/{chunk-3ZVLQIJN.js → chunk-ZPWEXRMA.js} +3 -3
- package/{computer-use-7M4K42CT.js → computer-use-XXPDTJSQ.js} +2 -2
- package/{connector-PLTWJW2T.js → connector-PWDJ3R6G.js} +2 -2
- package/{credit-2MVNEHI6.js → credit-MYBUWRHP.js} +2 -2
- package/{developer-support-PEFJTIAK.js → developer-support-65OQ2RK4.js} +2 -2
- package/{doctor-NCFSDVXU.js → doctor-2U4HK4AX.js} +6 -6
- package/{generate-BZ2SR3S2.js → generate-UEDRCAKX.js} +2 -2
- package/{github-D52YY3PW.js → github-R6JKL74U.js} +2 -2
- package/{goal-CGDHCZQL.js → goal-BG47S2RP.js} +2 -2
- package/{host-RU374UJZ.js → host-2VS2KOZQ.js} +2 -2
- package/index.js +18 -20
- package/index.js.map +1 -1
- package/{logs-GLJEMUTL.js → logs-XFVZAKVG.js} +11 -13
- package/{logs-GLJEMUTL.js.map → logs-XFVZAKVG.js.map} +1 -1
- package/{maps-QCEV2Y5T.js → maps-ZBULOEZW.js} +2 -2
- package/{maskdb.generated-X4O7LDNM.js → maskdb.generated-VAIGGNUJ.js} +2 -2
- package/maskdb.generated-VAIGGNUJ.js.map +1 -0
- package/{maskdb.generated-ROG4XZ7X.js → maskdb.generated-WA5B4GQ5.js} +5 -1
- package/maskdb.generated-WA5B4GQ5.js.map +1 -0
- package/{model-RTTTCIHY.js → model-BFHGQJ5U.js} +3 -3
- package/{model-provider-CZJPMY6Z.js → model-provider-OUSOKSWW.js} +3 -3
- package/{org-4WKWAWHE.js → org-RI2EYUW7.js} +2 -2
- package/package.json +1 -1
- package/{phone-GI7KA3KZ.js → phone-SNLGLD3J.js} +2 -2
- package/{preference-KD4UYLQE.js → preference-XDSQRZWM.js} +2 -2
- package/{resource-UYWSXAUZ.js → resource-BA4FQCNQ.js} +2 -2
- package/schedule-OSHL7HWT.js +33 -0
- package/schedule-OSHL7HWT.js.map +1 -0
- package/{search-V5ME4TLE.js → search-KXVRANLT.js} +8 -10
- package/{search-V5ME4TLE.js.map → search-KXVRANLT.js.map} +1 -1
- package/{secret-YCQ5IAMV.js → secret-NFJQKUPS.js} +3 -3
- package/{slack-UF64OZUG.js → slack-JPM5WVX6.js} +2 -2
- package/{telegram-U76HOCPN.js → telegram-BNX4UZTT.js} +2 -2
- package/{variable-NXY6SYD3.js → variable-IAIPAH3T.js} +2 -2
- package/{web-QQFWWXYM.js → web-3TJGHZNA.js} +2 -2
- package/{whoami-NFGUYQYI.js → whoami-OVIXXMRR.js} +4 -4
- package/{workflow-CIIUERNL.js → workflow-WWMTJDLF.js} +71 -10
- package/workflow-WWMTJDLF.js.map +1 -0
- package/zero.js +36 -37
- package/zero.js.map +1 -1
- package/automation-FJOIHXBS.js +0 -501
- package/automation-FJOIHXBS.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-QVSVGYE3.js.map +0 -1
- package/chunk-S473TX4B.js.map +0 -1
- package/maskdb.generated-ROG4XZ7X.js.map +0 -1
- package/maskdb.generated-X4O7LDNM.js.map +0 -1
- package/schedule-MTI5OP23.js +0 -31
- package/schedule-MTI5OP23.js.map +0 -1
- package/workflow-CIIUERNL.js.map +0 -1
- /package/{agent-ZDJQRV5F.js.map → agent-XNVQRMKI.js.map} +0 -0
- /package/{banking-3VE6CETL.js.map → banking-QBTNNOCQ.js.map} +0 -0
- /package/{chat-LBGYMTDO.js.map → chat-ELAJKQXT.js.map} +0 -0
- /package/{chunk-OJEINPMU.js.map → chunk-7ZJOZZXZ.js.map} +0 -0
- /package/{chunk-Y3NUN3UL.js.map → chunk-F774K6TY.js.map} +0 -0
- /package/{chunk-YVZFUVCW.js.map → chunk-JOOQB7W3.js.map} +0 -0
- /package/{chunk-TWIQPNKQ.js.map → chunk-VTG6TDYL.js.map} +0 -0
- /package/{chunk-LBHBBYUU.js.map → chunk-Y4YHS5UO.js.map} +0 -0
- /package/{chunk-3ZVLQIJN.js.map → chunk-ZPWEXRMA.js.map} +0 -0
- /package/{computer-use-7M4K42CT.js.map → computer-use-XXPDTJSQ.js.map} +0 -0
- /package/{connector-PLTWJW2T.js.map → connector-PWDJ3R6G.js.map} +0 -0
- /package/{credit-2MVNEHI6.js.map → credit-MYBUWRHP.js.map} +0 -0
- /package/{developer-support-PEFJTIAK.js.map → developer-support-65OQ2RK4.js.map} +0 -0
- /package/{doctor-NCFSDVXU.js.map → doctor-2U4HK4AX.js.map} +0 -0
- /package/{generate-BZ2SR3S2.js.map → generate-UEDRCAKX.js.map} +0 -0
- /package/{github-D52YY3PW.js.map → github-R6JKL74U.js.map} +0 -0
- /package/{goal-CGDHCZQL.js.map → goal-BG47S2RP.js.map} +0 -0
- /package/{host-RU374UJZ.js.map → host-2VS2KOZQ.js.map} +0 -0
- /package/{maps-QCEV2Y5T.js.map → maps-ZBULOEZW.js.map} +0 -0
- /package/{model-RTTTCIHY.js.map → model-BFHGQJ5U.js.map} +0 -0
- /package/{model-provider-CZJPMY6Z.js.map → model-provider-OUSOKSWW.js.map} +0 -0
- /package/{org-4WKWAWHE.js.map → org-RI2EYUW7.js.map} +0 -0
- /package/{phone-GI7KA3KZ.js.map → phone-SNLGLD3J.js.map} +0 -0
- /package/{preference-KD4UYLQE.js.map → preference-XDSQRZWM.js.map} +0 -0
- /package/{resource-UYWSXAUZ.js.map → resource-BA4FQCNQ.js.map} +0 -0
- /package/{secret-YCQ5IAMV.js.map → secret-NFJQKUPS.js.map} +0 -0
- /package/{slack-UF64OZUG.js.map → slack-JPM5WVX6.js.map} +0 -0
- /package/{telegram-U76HOCPN.js.map → telegram-BNX4UZTT.js.map} +0 -0
- /package/{variable-NXY6SYD3.js.map → variable-IAIPAH3T.js.map} +0 -0
- /package/{web-QQFWWXYM.js.map → web-3TJGHZNA.js.map} +0 -0
- /package/{whoami-NFGUYQYI.js.map → whoami-OVIXXMRR.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
|
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";
|
|
@@ -558,7 +558,7 @@ var FIREWALL_PERMISSION_METADATA_LOADERS = Object.assign(/* @__PURE__ */ Object.
|
|
|
558
558
|
return (await import("./mapbox.generated-ZIDE43IQ.js"))["firewallPermissionMetadata"];
|
|
559
559
|
},
|
|
560
560
|
["maskdb"]: async () => {
|
|
561
|
-
return (await import("./maskdb.generated-
|
|
561
|
+
return (await import("./maskdb.generated-VAIGGNUJ.js"))["firewallPermissionMetadata"];
|
|
562
562
|
},
|
|
563
563
|
["massive"]: async () => {
|
|
564
564
|
return (await import("./massive.generated-6EUHPY6F.js"))["firewallPermissionMetadata"];
|
|
@@ -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
|
|
@@ -16352,7 +16352,7 @@ var maskdb = {
|
|
|
16352
16352
|
maskdb: {
|
|
16353
16353
|
label: "maskdb",
|
|
16354
16354
|
category: "data-automation-infrastructure",
|
|
16355
|
-
helpText: "Connect maskdb to run read-only, structured queries against a masked Postgres database. Sensitive columns are returned masked and can never be used to filter or
|
|
16355
|
+
helpText: "Connect maskdb to run read-only, structured queries against a masked Postgres database. Sensitive columns are returned masked and can never be used to filter, sort, group, or aggregate.",
|
|
16356
16356
|
authMethods: {
|
|
16357
16357
|
"api-token": {
|
|
16358
16358
|
label: "Token",
|
|
@@ -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({
|
|
@@ -26529,7 +26546,7 @@ var zeroWorkflowWebhookReceivedTriggerSummarySchema = zeroWorkflowTriggerSummary
|
|
|
26529
26546
|
eventConfig: webhookReceivedEventConfigSchema,
|
|
26530
26547
|
schedule: external_exports.null(),
|
|
26531
26548
|
scheduleSummary: external_exports.null(),
|
|
26532
|
-
webhookUrl: external_exports.url(),
|
|
26549
|
+
webhookUrl: external_exports.url().optional(),
|
|
26533
26550
|
secretLastFour: external_exports.string().length(4),
|
|
26534
26551
|
lastReceivedAt: external_exports.string().datetime().nullable(),
|
|
26535
26552
|
webhookSecret: external_exports.string().min(1).optional()
|
|
@@ -26952,6 +26969,10 @@ var zeroWorkflowVisibilityContract = c33.router({
|
|
|
26952
26969
|
});
|
|
26953
26970
|
var triggerIdParams = external_exports.object({ id: external_exports.string().uuid() });
|
|
26954
26971
|
var chatThreadIdParams = external_exports.object({ threadId: external_exports.string().min(1) });
|
|
26972
|
+
var zeroWorkflowWebhookSecretResponseSchema = external_exports.object({
|
|
26973
|
+
webhookUrl: external_exports.url(),
|
|
26974
|
+
webhookSecret: external_exports.string().min(1)
|
|
26975
|
+
});
|
|
26955
26976
|
var zeroWorkflowTriggersContract = c33.router({
|
|
26956
26977
|
listWorkspace: {
|
|
26957
26978
|
method: "GET",
|
|
@@ -27093,6 +27114,20 @@ var zeroWorkflowTriggersContract = c33.router({
|
|
|
27093
27114
|
409: apiErrorSchema
|
|
27094
27115
|
},
|
|
27095
27116
|
summary: "Run a workflow trigger immediately in its bound chat thread"
|
|
27117
|
+
},
|
|
27118
|
+
revealWebhookSecret: {
|
|
27119
|
+
method: "POST",
|
|
27120
|
+
path: "/api/zero/workflow-triggers/:id/webhook-secret",
|
|
27121
|
+
headers: authHeadersSchema,
|
|
27122
|
+
pathParams: triggerIdParams,
|
|
27123
|
+
body: c33.noBody(),
|
|
27124
|
+
responses: {
|
|
27125
|
+
200: zeroWorkflowWebhookSecretResponseSchema,
|
|
27126
|
+
401: apiErrorSchema,
|
|
27127
|
+
403: apiErrorSchema,
|
|
27128
|
+
404: apiErrorSchema
|
|
27129
|
+
},
|
|
27130
|
+
summary: "Reveal the webhook URL and signing secret for a workflow trigger"
|
|
27096
27131
|
}
|
|
27097
27132
|
});
|
|
27098
27133
|
|
|
@@ -27893,387 +27928,6 @@ async function downloadPhoneFile(fileId, outPath) {
|
|
|
27893
27928
|
return { path: outPath, mimetype, size };
|
|
27894
27929
|
}
|
|
27895
27930
|
|
|
27896
|
-
// src/lib/api/domains/automations.ts
|
|
27897
|
-
init_esm_shims();
|
|
27898
|
-
|
|
27899
|
-
// ../../packages/api-contracts/src/contracts/automations.ts
|
|
27900
|
-
init_esm_shims();
|
|
27901
|
-
var c35 = initContract();
|
|
27902
|
-
var triggerBaseShape = {
|
|
27903
|
-
id: external_exports.string().uuid(),
|
|
27904
|
-
automationId: external_exports.string().uuid(),
|
|
27905
|
-
enabled: external_exports.boolean(),
|
|
27906
|
-
createdAt: external_exports.string(),
|
|
27907
|
-
updatedAt: external_exports.string()
|
|
27908
|
-
};
|
|
27909
|
-
var timeTriggerRuntimeShape = {
|
|
27910
|
-
timezone: external_exports.string(),
|
|
27911
|
-
nextRunAt: external_exports.string().nullable(),
|
|
27912
|
-
lastRunAt: external_exports.string().nullable(),
|
|
27913
|
-
consecutiveFailures: external_exports.number()
|
|
27914
|
-
};
|
|
27915
|
-
var automationTriggerResponseSchema = external_exports.discriminatedUnion("kind", [
|
|
27916
|
-
external_exports.object({
|
|
27917
|
-
...triggerBaseShape,
|
|
27918
|
-
kind: external_exports.literal("cron"),
|
|
27919
|
-
cronExpression: external_exports.string(),
|
|
27920
|
-
...timeTriggerRuntimeShape
|
|
27921
|
-
}),
|
|
27922
|
-
external_exports.object({
|
|
27923
|
-
...triggerBaseShape,
|
|
27924
|
-
kind: external_exports.literal("once"),
|
|
27925
|
-
atTime: external_exports.string(),
|
|
27926
|
-
...timeTriggerRuntimeShape
|
|
27927
|
-
}),
|
|
27928
|
-
external_exports.object({
|
|
27929
|
-
...triggerBaseShape,
|
|
27930
|
-
kind: external_exports.literal("loop"),
|
|
27931
|
-
intervalSeconds: external_exports.number(),
|
|
27932
|
-
...timeTriggerRuntimeShape
|
|
27933
|
-
})
|
|
27934
|
-
]);
|
|
27935
|
-
var automationResponseSchema = external_exports.object({
|
|
27936
|
-
id: external_exports.string().uuid(),
|
|
27937
|
-
agentId: external_exports.string().uuid(),
|
|
27938
|
-
displayName: external_exports.string().nullable(),
|
|
27939
|
-
userId: external_exports.string(),
|
|
27940
|
-
name: external_exports.string(),
|
|
27941
|
-
description: external_exports.string().nullable(),
|
|
27942
|
-
instruction: external_exports.string(),
|
|
27943
|
-
appendSystemPrompt: external_exports.string().nullable(),
|
|
27944
|
-
enabled: external_exports.boolean(),
|
|
27945
|
-
chatThreadId: external_exports.string().uuid(),
|
|
27946
|
-
createdAt: external_exports.string(),
|
|
27947
|
-
updatedAt: external_exports.string(),
|
|
27948
|
-
triggers: external_exports.array(automationTriggerResponseSchema)
|
|
27949
|
-
});
|
|
27950
|
-
var automationListResponseSchema = external_exports.object({
|
|
27951
|
-
automations: external_exports.array(automationResponseSchema)
|
|
27952
|
-
});
|
|
27953
|
-
var cronTriggerConfigSchema = external_exports.object({
|
|
27954
|
-
kind: external_exports.literal("cron"),
|
|
27955
|
-
cronExpression: external_exports.string().min(1),
|
|
27956
|
-
timezone: external_exports.string().optional()
|
|
27957
|
-
});
|
|
27958
|
-
var onceTriggerConfigSchema = external_exports.object({
|
|
27959
|
-
kind: external_exports.literal("once"),
|
|
27960
|
-
atTime: external_exports.string().min(1),
|
|
27961
|
-
timezone: external_exports.string().optional()
|
|
27962
|
-
});
|
|
27963
|
-
var loopTriggerConfigSchema = external_exports.object({
|
|
27964
|
-
kind: external_exports.literal("loop"),
|
|
27965
|
-
intervalSeconds: external_exports.number().int().positive()
|
|
27966
|
-
});
|
|
27967
|
-
var createTriggerRequestSchema = external_exports.discriminatedUnion("kind", [
|
|
27968
|
-
cronTriggerConfigSchema,
|
|
27969
|
-
onceTriggerConfigSchema,
|
|
27970
|
-
loopTriggerConfigSchema
|
|
27971
|
-
]);
|
|
27972
|
-
var updateTriggerRequestSchema = external_exports.discriminatedUnion("kind", [
|
|
27973
|
-
cronTriggerConfigSchema,
|
|
27974
|
-
onceTriggerConfigSchema,
|
|
27975
|
-
loopTriggerConfigSchema
|
|
27976
|
-
]);
|
|
27977
|
-
var createAutomationRequestSchema = external_exports.object({
|
|
27978
|
-
name: external_exports.string().min(1).max(64, "Automation name max 64 chars"),
|
|
27979
|
-
agentId: external_exports.string().uuid("Invalid agent ID"),
|
|
27980
|
-
instruction: external_exports.string().min(1, "Instruction required"),
|
|
27981
|
-
description: external_exports.string().optional(),
|
|
27982
|
-
appendSystemPrompt: external_exports.string().optional(),
|
|
27983
|
-
enabled: external_exports.boolean().optional(),
|
|
27984
|
-
// Chat-thread linkage, honored only on creation. When provided, links the
|
|
27985
|
-
// automation to an existing owned chat thread; when omitted, the server
|
|
27986
|
-
// creates a web chat thread and links it.
|
|
27987
|
-
chatThreadId: external_exports.string().uuid("Invalid chat thread ID").optional(),
|
|
27988
|
-
trigger: createTriggerRequestSchema
|
|
27989
|
-
});
|
|
27990
|
-
var updateAutomationRequestSchema = external_exports.object({
|
|
27991
|
-
name: external_exports.string().min(1).max(64).optional(),
|
|
27992
|
-
instruction: external_exports.string().min(1).optional(),
|
|
27993
|
-
description: external_exports.string().nullable().optional(),
|
|
27994
|
-
appendSystemPrompt: external_exports.string().nullable().optional()
|
|
27995
|
-
});
|
|
27996
|
-
var automationMutationResponseSchema = external_exports.object({
|
|
27997
|
-
automation: automationResponseSchema
|
|
27998
|
-
});
|
|
27999
|
-
var triggerMutationResponseSchema = external_exports.object({
|
|
28000
|
-
trigger: automationTriggerResponseSchema
|
|
28001
|
-
});
|
|
28002
|
-
var automationRunResponseSchema = external_exports.object({
|
|
28003
|
-
runId: external_exports.string()
|
|
28004
|
-
});
|
|
28005
|
-
var refParamsSchema = external_exports.object({
|
|
28006
|
-
// Automation id (UUID) or unique name within the org/user scope.
|
|
28007
|
-
ref: external_exports.string().min(1)
|
|
28008
|
-
});
|
|
28009
|
-
var triggerIdParamsSchema = external_exports.object({
|
|
28010
|
-
id: external_exports.string().uuid("Invalid trigger ID")
|
|
28011
|
-
});
|
|
28012
|
-
var automationsMainContract = c35.router({
|
|
28013
|
-
create: {
|
|
28014
|
-
method: "POST",
|
|
28015
|
-
path: "/api/automations",
|
|
28016
|
-
headers: authHeadersSchema,
|
|
28017
|
-
body: createAutomationRequestSchema,
|
|
28018
|
-
responses: {
|
|
28019
|
-
201: automationMutationResponseSchema,
|
|
28020
|
-
400: apiErrorSchema,
|
|
28021
|
-
401: apiErrorSchema,
|
|
28022
|
-
403: apiErrorSchema,
|
|
28023
|
-
404: apiErrorSchema
|
|
28024
|
-
},
|
|
28025
|
-
summary: "Create an automation with its schedule trigger"
|
|
28026
|
-
},
|
|
28027
|
-
list: {
|
|
28028
|
-
method: "GET",
|
|
28029
|
-
path: "/api/automations",
|
|
28030
|
-
headers: authHeadersSchema,
|
|
28031
|
-
responses: {
|
|
28032
|
-
200: automationListResponseSchema,
|
|
28033
|
-
401: apiErrorSchema,
|
|
28034
|
-
403: apiErrorSchema,
|
|
28035
|
-
404: apiErrorSchema
|
|
28036
|
-
},
|
|
28037
|
-
summary: "List automations with their triggers"
|
|
28038
|
-
}
|
|
28039
|
-
});
|
|
28040
|
-
var automationsByRefContract = c35.router({
|
|
28041
|
-
show: {
|
|
28042
|
-
method: "GET",
|
|
28043
|
-
path: "/api/automations/:ref",
|
|
28044
|
-
headers: authHeadersSchema,
|
|
28045
|
-
pathParams: refParamsSchema,
|
|
28046
|
-
responses: {
|
|
28047
|
-
200: automationResponseSchema,
|
|
28048
|
-
400: apiErrorSchema,
|
|
28049
|
-
401: apiErrorSchema,
|
|
28050
|
-
403: apiErrorSchema,
|
|
28051
|
-
404: apiErrorSchema
|
|
28052
|
-
},
|
|
28053
|
-
summary: "Show an automation and its triggers"
|
|
28054
|
-
},
|
|
28055
|
-
update: {
|
|
28056
|
-
method: "PATCH",
|
|
28057
|
-
path: "/api/automations/:ref",
|
|
28058
|
-
headers: authHeadersSchema,
|
|
28059
|
-
pathParams: refParamsSchema,
|
|
28060
|
-
body: updateAutomationRequestSchema,
|
|
28061
|
-
responses: {
|
|
28062
|
-
200: automationResponseSchema,
|
|
28063
|
-
400: apiErrorSchema,
|
|
28064
|
-
401: apiErrorSchema,
|
|
28065
|
-
403: apiErrorSchema,
|
|
28066
|
-
404: apiErrorSchema
|
|
28067
|
-
},
|
|
28068
|
-
summary: "Update an automation's identity/intent fields"
|
|
28069
|
-
},
|
|
28070
|
-
delete: {
|
|
28071
|
-
method: "DELETE",
|
|
28072
|
-
path: "/api/automations/:ref",
|
|
28073
|
-
headers: authHeadersSchema,
|
|
28074
|
-
pathParams: refParamsSchema,
|
|
28075
|
-
responses: {
|
|
28076
|
-
204: c35.noBody(),
|
|
28077
|
-
400: apiErrorSchema,
|
|
28078
|
-
401: apiErrorSchema,
|
|
28079
|
-
403: apiErrorSchema,
|
|
28080
|
-
404: apiErrorSchema
|
|
28081
|
-
},
|
|
28082
|
-
summary: "Delete an automation (its triggers cascade)"
|
|
28083
|
-
},
|
|
28084
|
-
enable: {
|
|
28085
|
-
method: "POST",
|
|
28086
|
-
path: "/api/automations/:ref/enable",
|
|
28087
|
-
headers: authHeadersSchema,
|
|
28088
|
-
pathParams: refParamsSchema,
|
|
28089
|
-
body: external_exports.object({}).optional(),
|
|
28090
|
-
responses: {
|
|
28091
|
-
200: automationResponseSchema,
|
|
28092
|
-
400: apiErrorSchema,
|
|
28093
|
-
401: apiErrorSchema,
|
|
28094
|
-
403: apiErrorSchema,
|
|
28095
|
-
404: apiErrorSchema
|
|
28096
|
-
},
|
|
28097
|
-
summary: "Enable an automation"
|
|
28098
|
-
},
|
|
28099
|
-
disable: {
|
|
28100
|
-
method: "POST",
|
|
28101
|
-
path: "/api/automations/:ref/disable",
|
|
28102
|
-
headers: authHeadersSchema,
|
|
28103
|
-
pathParams: refParamsSchema,
|
|
28104
|
-
body: external_exports.object({}).optional(),
|
|
28105
|
-
responses: {
|
|
28106
|
-
200: automationResponseSchema,
|
|
28107
|
-
400: apiErrorSchema,
|
|
28108
|
-
401: apiErrorSchema,
|
|
28109
|
-
403: apiErrorSchema,
|
|
28110
|
-
404: apiErrorSchema
|
|
28111
|
-
},
|
|
28112
|
-
summary: "Disable an automation"
|
|
28113
|
-
},
|
|
28114
|
-
run: {
|
|
28115
|
-
method: "POST",
|
|
28116
|
-
path: "/api/automations/:ref/run",
|
|
28117
|
-
headers: authHeadersSchema,
|
|
28118
|
-
pathParams: refParamsSchema,
|
|
28119
|
-
body: external_exports.object({}).optional(),
|
|
28120
|
-
responses: {
|
|
28121
|
-
201: automationRunResponseSchema,
|
|
28122
|
-
400: apiErrorSchema,
|
|
28123
|
-
401: apiErrorSchema,
|
|
28124
|
-
402: apiErrorSchema,
|
|
28125
|
-
403: apiErrorSchema,
|
|
28126
|
-
404: apiErrorSchema,
|
|
28127
|
-
409: apiErrorSchema,
|
|
28128
|
-
429: apiErrorSchema,
|
|
28129
|
-
503: apiErrorSchema
|
|
28130
|
-
},
|
|
28131
|
-
summary: "Manually fire an automation (instruction-only, no event)"
|
|
28132
|
-
}
|
|
28133
|
-
});
|
|
28134
|
-
var automationTriggersContract = c35.router({
|
|
28135
|
-
show: {
|
|
28136
|
-
method: "GET",
|
|
28137
|
-
path: "/api/automation-triggers/:id",
|
|
28138
|
-
headers: authHeadersSchema,
|
|
28139
|
-
pathParams: triggerIdParamsSchema,
|
|
28140
|
-
responses: {
|
|
28141
|
-
200: automationTriggerResponseSchema,
|
|
28142
|
-
401: apiErrorSchema,
|
|
28143
|
-
403: apiErrorSchema,
|
|
28144
|
-
404: apiErrorSchema
|
|
28145
|
-
},
|
|
28146
|
-
summary: "Show a trigger"
|
|
28147
|
-
},
|
|
28148
|
-
update: {
|
|
28149
|
-
method: "PATCH",
|
|
28150
|
-
path: "/api/automation-triggers/:id",
|
|
28151
|
-
headers: authHeadersSchema,
|
|
28152
|
-
pathParams: triggerIdParamsSchema,
|
|
28153
|
-
body: updateTriggerRequestSchema,
|
|
28154
|
-
responses: {
|
|
28155
|
-
200: automationTriggerResponseSchema,
|
|
28156
|
-
400: apiErrorSchema,
|
|
28157
|
-
401: apiErrorSchema,
|
|
28158
|
-
403: apiErrorSchema,
|
|
28159
|
-
404: apiErrorSchema
|
|
28160
|
-
},
|
|
28161
|
-
summary: "Replace a time trigger's schedule config (kind may switch among cron/once/loop)"
|
|
28162
|
-
},
|
|
28163
|
-
enable: {
|
|
28164
|
-
method: "POST",
|
|
28165
|
-
path: "/api/automation-triggers/:id/enable",
|
|
28166
|
-
headers: authHeadersSchema,
|
|
28167
|
-
pathParams: triggerIdParamsSchema,
|
|
28168
|
-
body: external_exports.object({}).optional(),
|
|
28169
|
-
responses: {
|
|
28170
|
-
200: automationTriggerResponseSchema,
|
|
28171
|
-
400: apiErrorSchema,
|
|
28172
|
-
401: apiErrorSchema,
|
|
28173
|
-
403: apiErrorSchema,
|
|
28174
|
-
404: apiErrorSchema
|
|
28175
|
-
},
|
|
28176
|
-
summary: "Enable a single trigger"
|
|
28177
|
-
},
|
|
28178
|
-
disable: {
|
|
28179
|
-
method: "POST",
|
|
28180
|
-
path: "/api/automation-triggers/:id/disable",
|
|
28181
|
-
headers: authHeadersSchema,
|
|
28182
|
-
pathParams: triggerIdParamsSchema,
|
|
28183
|
-
body: external_exports.object({}).optional(),
|
|
28184
|
-
responses: {
|
|
28185
|
-
200: automationTriggerResponseSchema,
|
|
28186
|
-
401: apiErrorSchema,
|
|
28187
|
-
403: apiErrorSchema,
|
|
28188
|
-
404: apiErrorSchema
|
|
28189
|
-
},
|
|
28190
|
-
summary: "Disable a single trigger"
|
|
28191
|
-
}
|
|
28192
|
-
});
|
|
28193
|
-
|
|
28194
|
-
// src/lib/api/domains/automations.ts
|
|
28195
|
-
async function createAutomation(body) {
|
|
28196
|
-
const config = await getClientConfig();
|
|
28197
|
-
const client = initClient(automationsMainContract, config);
|
|
28198
|
-
const result = await client.create({ body });
|
|
28199
|
-
if (result.status === 201) {
|
|
28200
|
-
return result.body;
|
|
28201
|
-
}
|
|
28202
|
-
handleError(result, "Failed to create automation");
|
|
28203
|
-
}
|
|
28204
|
-
async function listAutomations() {
|
|
28205
|
-
const config = await getClientConfig();
|
|
28206
|
-
const client = initClient(automationsMainContract, config);
|
|
28207
|
-
const result = await client.list({ headers: {} });
|
|
28208
|
-
if (result.status === 200) {
|
|
28209
|
-
return result.body;
|
|
28210
|
-
}
|
|
28211
|
-
handleError(result, "Failed to list automations");
|
|
28212
|
-
}
|
|
28213
|
-
async function showAutomation(ref) {
|
|
28214
|
-
const config = await getClientConfig();
|
|
28215
|
-
const client = initClient(automationsByRefContract, config);
|
|
28216
|
-
const result = await client.show({ params: { ref } });
|
|
28217
|
-
if (result.status === 200) {
|
|
28218
|
-
return result.body;
|
|
28219
|
-
}
|
|
28220
|
-
handleError(result, `Automation not found: ${ref}`);
|
|
28221
|
-
}
|
|
28222
|
-
async function updateAutomation(ref, body) {
|
|
28223
|
-
const config = await getClientConfig();
|
|
28224
|
-
const client = initClient(automationsByRefContract, config);
|
|
28225
|
-
const result = await client.update({ params: { ref }, body });
|
|
28226
|
-
if (result.status === 200) {
|
|
28227
|
-
return result.body;
|
|
28228
|
-
}
|
|
28229
|
-
handleError(result, `Failed to update automation "${ref}"`);
|
|
28230
|
-
}
|
|
28231
|
-
async function deleteAutomation(ref) {
|
|
28232
|
-
const config = await getClientConfig();
|
|
28233
|
-
const client = initClient(automationsByRefContract, config);
|
|
28234
|
-
const result = await client.delete({ params: { ref } });
|
|
28235
|
-
if (result.status === 204) {
|
|
28236
|
-
return;
|
|
28237
|
-
}
|
|
28238
|
-
handleError(result, `Failed to delete automation "${ref}"`);
|
|
28239
|
-
}
|
|
28240
|
-
async function enableAutomation(ref) {
|
|
28241
|
-
const config = await getClientConfig();
|
|
28242
|
-
const client = initClient(automationsByRefContract, config);
|
|
28243
|
-
const result = await client.enable({ params: { ref }, body: {} });
|
|
28244
|
-
if (result.status === 200) {
|
|
28245
|
-
return result.body;
|
|
28246
|
-
}
|
|
28247
|
-
handleError(result, `Failed to enable automation "${ref}"`);
|
|
28248
|
-
}
|
|
28249
|
-
async function disableAutomation(ref) {
|
|
28250
|
-
const config = await getClientConfig();
|
|
28251
|
-
const client = initClient(automationsByRefContract, config);
|
|
28252
|
-
const result = await client.disable({ params: { ref }, body: {} });
|
|
28253
|
-
if (result.status === 200) {
|
|
28254
|
-
return result.body;
|
|
28255
|
-
}
|
|
28256
|
-
handleError(result, `Failed to disable automation "${ref}"`);
|
|
28257
|
-
}
|
|
28258
|
-
async function runAutomation(ref) {
|
|
28259
|
-
const config = await getClientConfig();
|
|
28260
|
-
const client = initClient(automationsByRefContract, config);
|
|
28261
|
-
const result = await client.run({ params: { ref }, body: {} });
|
|
28262
|
-
if (result.status === 201) {
|
|
28263
|
-
return result.body;
|
|
28264
|
-
}
|
|
28265
|
-
handleError(result, `Failed to run automation "${ref}"`);
|
|
28266
|
-
}
|
|
28267
|
-
async function updateAutomationTrigger(id, body) {
|
|
28268
|
-
const config = await getClientConfig();
|
|
28269
|
-
const client = initClient(automationTriggersContract, config);
|
|
28270
|
-
const result = await client.update({ params: { id }, body });
|
|
28271
|
-
if (result.status === 200) {
|
|
28272
|
-
return result.body;
|
|
28273
|
-
}
|
|
28274
|
-
handleError(result, `Failed to update trigger ${id}`);
|
|
28275
|
-
}
|
|
28276
|
-
|
|
28277
27931
|
// src/lib/api/domains/zero-logs.ts
|
|
28278
27932
|
init_esm_shims();
|
|
28279
27933
|
async function listZeroLogs(options) {
|
|
@@ -28643,15 +28297,6 @@ export {
|
|
|
28643
28297
|
initPhoneFileUpload,
|
|
28644
28298
|
completePhoneFileUpload,
|
|
28645
28299
|
downloadPhoneFile,
|
|
28646
|
-
createAutomation,
|
|
28647
|
-
listAutomations,
|
|
28648
|
-
showAutomation,
|
|
28649
|
-
updateAutomation,
|
|
28650
|
-
deleteAutomation,
|
|
28651
|
-
enableAutomation,
|
|
28652
|
-
disableAutomation,
|
|
28653
|
-
runAutomation,
|
|
28654
|
-
updateAutomationTrigger,
|
|
28655
28300
|
getZeroRunAgentEvents,
|
|
28656
28301
|
getZeroRunContext,
|
|
28657
28302
|
listZeroLogs,
|
|
@@ -28680,4 +28325,4 @@ export {
|
|
|
28680
28325
|
completeHostedSite,
|
|
28681
28326
|
getHostedSiteFiles
|
|
28682
28327
|
};
|
|
28683
|
-
//# sourceMappingURL=chunk-
|
|
28328
|
+
//# sourceMappingURL=chunk-KBDCWC3F.js.map
|