@vm0/cli 9.217.9 → 9.219.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/{agent-3BD7TETH.js → agent-4SQZDYYN.js} +4 -4
  2. package/{automation-UMODYBQ3.js → automation-WPG4IYVE.js} +2 -2
  3. package/{banking-BNH2CVCO.js → banking-S7GOP6WI.js} +2 -2
  4. package/{chat-NRM6A3FJ.js → chat-6E34QZHI.js} +2 -2
  5. package/{chunk-SU2TAGCK.js → chunk-7DWLR3AY.js} +3 -3
  6. package/{chunk-4KC5DNRL.js → chunk-7HZXC5CL.js} +24 -24
  7. package/{chunk-4KC5DNRL.js.map → chunk-7HZXC5CL.js.map} +1 -1
  8. package/{chunk-6ZGJLMHV.js → chunk-B33JIZI2.js} +3 -3
  9. package/{chunk-X2GL7DNQ.js → chunk-C3NCF7AC.js} +77 -5
  10. package/chunk-C3NCF7AC.js.map +1 -0
  11. package/{chunk-BBOXEIPR.js → chunk-NUCGXUQW.js} +2 -2
  12. package/{chunk-X2GG5T45.js → chunk-O5WIIYWN.js} +2 -2
  13. package/{chunk-JQ2AISAA.js → chunk-PTXI3X6L.js} +2 -2
  14. package/{chunk-YHVDFQGM.js → chunk-Q47FRJVT.js} +101 -93
  15. package/chunk-Q47FRJVT.js.map +1 -0
  16. package/{chunk-NFC466I6.js → chunk-RYGMBENC.js} +2 -2
  17. package/{chunk-HQLDHV7V.js → chunk-UQBJX5J5.js} +3 -3
  18. package/{computer-use-ZT7XHVQL.js → computer-use-P5NZISFJ.js} +2 -2
  19. package/{connector-RCLD7UYO.js → connector-BF7GN5KJ.js} +3 -3
  20. package/{credit-WI5IN47U.js → credit-MUMH2AFQ.js} +2 -2
  21. package/deel.generated-JIOY5DWR.js +244 -0
  22. package/deel.generated-JIOY5DWR.js.map +1 -0
  23. package/{developer-support-RQE4MWDH.js → developer-support-YRODRFDP.js} +2 -2
  24. package/{doctor-43S3ELIS.js → doctor-SYQVWI4X.js} +5 -5
  25. package/{generate-WCZL6ZCV.js → generate-SOTMY5L2.js} +4 -4
  26. package/{github-LOS4OIPN.js → github-M5QMAGUR.js} +2 -2
  27. package/{goal-C6ABKOCO.js → goal-UCWUNBDX.js} +2 -2
  28. package/{host-ZISSRQ6R.js → host-FBIUSQM5.js} +2 -2
  29. package/index.js +14 -14
  30. package/{logs-SF6FBF3I.js → logs-2WS7C3NG.js} +7 -7
  31. package/{maps-BGYXTHZK.js → maps-F6HS3TX3.js} +2 -2
  32. package/{model-3363G3G7.js → model-WVSFDOUB.js} +3 -3
  33. package/{model-provider-C26NRE3A.js → model-provider-RW5KSE2A.js} +3 -3
  34. package/{org-4HHOKVAO.js → org-HG7QC6H2.js} +2 -2
  35. package/package.json +1 -1
  36. package/{phone-SVBPUZ35.js → phone-Y53A3YR6.js} +2 -2
  37. package/{preference-BRGTL6CP.js → preference-PDDNKSID.js} +2 -2
  38. package/{resource-KLZMYUD2.js → resource-4RXH7SID.js} +3 -3
  39. package/{search-2Q2NQJLD.js → search-NRX5C4BZ.js} +7 -7
  40. package/{secret-BU6G7J4H.js → secret-G6ZROM3S.js} +3 -3
  41. package/{slack-UGOHWJTY.js → slack-UE7PHE5Q.js} +2 -2
  42. package/{telegram-DTKBHSNW.js → telegram-FMO5JNQL.js} +2 -2
  43. package/{variable-RAQG5IPA.js → variable-3QU5KSPD.js} +2 -2
  44. package/{web-AXKPHAJ6.js → web-NUS7HONQ.js} +2 -2
  45. package/{whoami-GCESGYZX.js → whoami-BVBVPCEX.js} +4 -4
  46. package/{workflow-VN37UXJT.js → workflow-KFXYP54E.js} +73 -14
  47. package/workflow-KFXYP54E.js.map +1 -0
  48. package/zero.js +31 -31
  49. package/chunk-X2GL7DNQ.js.map +0 -1
  50. package/chunk-YHVDFQGM.js.map +0 -1
  51. package/deel.generated-U6UEJPXO.js +0 -189
  52. package/deel.generated-U6UEJPXO.js.map +0 -1
  53. package/workflow-VN37UXJT.js.map +0 -1
  54. /package/{agent-3BD7TETH.js.map → agent-4SQZDYYN.js.map} +0 -0
  55. /package/{automation-UMODYBQ3.js.map → automation-WPG4IYVE.js.map} +0 -0
  56. /package/{banking-BNH2CVCO.js.map → banking-S7GOP6WI.js.map} +0 -0
  57. /package/{chat-NRM6A3FJ.js.map → chat-6E34QZHI.js.map} +0 -0
  58. /package/{chunk-SU2TAGCK.js.map → chunk-7DWLR3AY.js.map} +0 -0
  59. /package/{chunk-6ZGJLMHV.js.map → chunk-B33JIZI2.js.map} +0 -0
  60. /package/{chunk-BBOXEIPR.js.map → chunk-NUCGXUQW.js.map} +0 -0
  61. /package/{chunk-X2GG5T45.js.map → chunk-O5WIIYWN.js.map} +0 -0
  62. /package/{chunk-JQ2AISAA.js.map → chunk-PTXI3X6L.js.map} +0 -0
  63. /package/{chunk-NFC466I6.js.map → chunk-RYGMBENC.js.map} +0 -0
  64. /package/{chunk-HQLDHV7V.js.map → chunk-UQBJX5J5.js.map} +0 -0
  65. /package/{computer-use-ZT7XHVQL.js.map → computer-use-P5NZISFJ.js.map} +0 -0
  66. /package/{connector-RCLD7UYO.js.map → connector-BF7GN5KJ.js.map} +0 -0
  67. /package/{credit-WI5IN47U.js.map → credit-MUMH2AFQ.js.map} +0 -0
  68. /package/{developer-support-RQE4MWDH.js.map → developer-support-YRODRFDP.js.map} +0 -0
  69. /package/{doctor-43S3ELIS.js.map → doctor-SYQVWI4X.js.map} +0 -0
  70. /package/{generate-WCZL6ZCV.js.map → generate-SOTMY5L2.js.map} +0 -0
  71. /package/{github-LOS4OIPN.js.map → github-M5QMAGUR.js.map} +0 -0
  72. /package/{goal-C6ABKOCO.js.map → goal-UCWUNBDX.js.map} +0 -0
  73. /package/{host-ZISSRQ6R.js.map → host-FBIUSQM5.js.map} +0 -0
  74. /package/{logs-SF6FBF3I.js.map → logs-2WS7C3NG.js.map} +0 -0
  75. /package/{maps-BGYXTHZK.js.map → maps-F6HS3TX3.js.map} +0 -0
  76. /package/{model-3363G3G7.js.map → model-WVSFDOUB.js.map} +0 -0
  77. /package/{model-provider-C26NRE3A.js.map → model-provider-RW5KSE2A.js.map} +0 -0
  78. /package/{org-4HHOKVAO.js.map → org-HG7QC6H2.js.map} +0 -0
  79. /package/{phone-SVBPUZ35.js.map → phone-Y53A3YR6.js.map} +0 -0
  80. /package/{preference-BRGTL6CP.js.map → preference-PDDNKSID.js.map} +0 -0
  81. /package/{resource-KLZMYUD2.js.map → resource-4RXH7SID.js.map} +0 -0
  82. /package/{search-2Q2NQJLD.js.map → search-NRX5C4BZ.js.map} +0 -0
  83. /package/{secret-BU6G7J4H.js.map → secret-G6ZROM3S.js.map} +0 -0
  84. /package/{slack-UGOHWJTY.js.map → slack-UE7PHE5Q.js.map} +0 -0
  85. /package/{telegram-DTKBHSNW.js.map → telegram-FMO5JNQL.js.map} +0 -0
  86. /package/{variable-RAQG5IPA.js.map → variable-3QU5KSPD.js.map} +0 -0
  87. /package/{web-AXKPHAJ6.js.map → web-NUS7HONQ.js.map} +0 -0
  88. /package/{whoami-GCESGYZX.js.map → whoami-BVBVPCEX.js.map} +0 -0
@@ -5,11 +5,11 @@ import {
5
5
  formatModelPolicyStatus,
6
6
  getModelProviderRouteKind,
7
7
  getModelProviderTypeLabel
8
- } from "./chunk-NFC466I6.js";
8
+ } from "./chunk-RYGMBENC.js";
9
9
  import "./chunk-LTDQISD7.js";
10
10
  import {
11
11
  listZeroModelPolicies
12
- } from "./chunk-X2GL7DNQ.js";
12
+ } from "./chunk-C3NCF7AC.js";
13
13
  import {
14
14
  withErrorHandler
15
15
  } from "./chunk-3F4RFLPX.js";
@@ -74,4 +74,4 @@ export {
74
74
  setCommand,
75
75
  zeroModelProviderCommand
76
76
  };
77
- //# sourceMappingURL=model-provider-C26NRE3A.js.map
77
+ //# sourceMappingURL=model-provider-RW5KSE2A.js.map
@@ -33,7 +33,7 @@ import {
33
33
  switchZeroOrg,
34
34
  updateZeroOrg,
35
35
  upsertZeroOrgModelProvider
36
- } from "./chunk-X2GL7DNQ.js";
36
+ } from "./chunk-C3NCF7AC.js";
37
37
  import {
38
38
  ApiRequestError,
39
39
  getActiveOrg,
@@ -919,4 +919,4 @@ var zeroOrgCommand = new Command().name("org").description("Manage organization
919
919
  export {
920
920
  zeroOrgCommand
921
921
  };
922
- //# sourceMappingURL=org-4HHOKVAO.js.map
922
+ //# sourceMappingURL=org-HG7QC6H2.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.217.9",
3
+ "version": "9.219.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,7 +7,7 @@ import {
7
7
  downloadPhoneFile,
8
8
  initPhoneFileUpload,
9
9
  sendPhoneMessage
10
- } from "./chunk-X2GL7DNQ.js";
10
+ } from "./chunk-C3NCF7AC.js";
11
11
  import {
12
12
  withErrorHandler
13
13
  } from "./chunk-3F4RFLPX.js";
@@ -201,4 +201,4 @@ Examples:
201
201
  export {
202
202
  zeroPhoneCommand
203
203
  };
204
- //# sourceMappingURL=phone-SVBPUZ35.js.map
204
+ //# sourceMappingURL=phone-Y53A3YR6.js.map
@@ -9,7 +9,7 @@ import "./chunk-LTDQISD7.js";
9
9
  import {
10
10
  getZeroUserPreferences,
11
11
  updateZeroUserPreferences
12
- } from "./chunk-X2GL7DNQ.js";
12
+ } from "./chunk-C3NCF7AC.js";
13
13
  import {
14
14
  withErrorHandler
15
15
  } from "./chunk-3F4RFLPX.js";
@@ -107,4 +107,4 @@ var zeroPreferenceCommand = new Command().name("preference").description("View o
107
107
  export {
108
108
  zeroPreferenceCommand
109
109
  };
110
- //# sourceMappingURL=preference-BRGTL6CP.js.map
110
+ //# sourceMappingURL=preference-PDDNKSID.js.map
@@ -12,11 +12,11 @@ import {
12
12
  findTemplate,
13
13
  findTool,
14
14
  findVideoTemplate
15
- } from "./chunk-4KC5DNRL.js";
15
+ } from "./chunk-7HZXC5CL.js";
16
16
  import "./chunk-LTDQISD7.js";
17
17
  import {
18
18
  getRegistryResourceDownload
19
- } from "./chunk-X2GL7DNQ.js";
19
+ } from "./chunk-C3NCF7AC.js";
20
20
  import {
21
21
  withErrorHandler
22
22
  } from "./chunk-3F4RFLPX.js";
@@ -138,4 +138,4 @@ export {
138
138
  findRegistryResourceForPull,
139
139
  zeroResourceCommand
140
140
  };
141
- //# sourceMappingURL=resource-KLZMYUD2.js.map
141
+ //# sourceMappingURL=resource-4RXH7SID.js.map
@@ -3,21 +3,21 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  runLogsSearch
6
- } from "./chunk-SU2TAGCK.js";
6
+ } from "./chunk-7DWLR3AY.js";
7
7
  import {
8
8
  formatIsoTimestamp,
9
9
  isUUID,
10
10
  parseBoundedLogCount,
11
11
  parseSearchQuery,
12
12
  parseTime
13
- } from "./chunk-YHVDFQGM.js";
14
- import "./chunk-4KC5DNRL.js";
15
- import "./chunk-JQ2AISAA.js";
16
- import "./chunk-X2GG5T45.js";
13
+ } from "./chunk-Q47FRJVT.js";
14
+ import "./chunk-7HZXC5CL.js";
15
+ import "./chunk-PTXI3X6L.js";
16
+ import "./chunk-O5WIIYWN.js";
17
17
  import "./chunk-LTDQISD7.js";
18
18
  import {
19
19
  searchZeroChat
20
- } from "./chunk-X2GL7DNQ.js";
20
+ } from "./chunk-C3NCF7AC.js";
21
21
  import {
22
22
  withErrorHandler
23
23
  } from "./chunk-3F4RFLPX.js";
@@ -201,4 +201,4 @@ export {
201
201
  buildSlackRecipe,
202
202
  zeroSearchCommand
203
203
  };
204
- //# sourceMappingURL=search-2Q2NQJLD.js.map
204
+ //# sourceMappingURL=search-NRX5C4BZ.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
  getConnectorStoredSecretDisplayInfo
6
- } from "./chunk-X2GG5T45.js";
6
+ } from "./chunk-O5WIIYWN.js";
7
7
  import {
8
8
  isInteractive,
9
9
  promptConfirm,
@@ -14,7 +14,7 @@ import {
14
14
  deleteZeroSecret,
15
15
  listZeroSecrets,
16
16
  setZeroSecret
17
- } from "./chunk-X2GL7DNQ.js";
17
+ } from "./chunk-C3NCF7AC.js";
18
18
  import {
19
19
  withErrorHandler
20
20
  } from "./chunk-3F4RFLPX.js";
@@ -160,4 +160,4 @@ var zeroSecretCommand = new Command().name("secret").description("Read or write
160
160
  export {
161
161
  zeroSecretCommand
162
162
  };
163
- //# sourceMappingURL=secret-BU6G7J4H.js.map
163
+ //# sourceMappingURL=secret-G6ZROM3S.js.map
@@ -7,7 +7,7 @@ import {
7
7
  downloadSlackFile,
8
8
  initSlackFileUpload,
9
9
  sendSlackMessage
10
- } from "./chunk-X2GL7DNQ.js";
10
+ } from "./chunk-C3NCF7AC.js";
11
11
  import {
12
12
  withErrorHandler
13
13
  } from "./chunk-3F4RFLPX.js";
@@ -220,4 +220,4 @@ Examples:
220
220
  export {
221
221
  zeroSlackCommand
222
222
  };
223
- //# sourceMappingURL=slack-UGOHWJTY.js.map
223
+ //# sourceMappingURL=slack-UE7PHE5Q.js.map
@@ -8,7 +8,7 @@ import {
8
8
  initTelegramFileUpload,
9
9
  listTelegramBots,
10
10
  sendTelegramMessage
11
- } from "./chunk-X2GL7DNQ.js";
11
+ } from "./chunk-C3NCF7AC.js";
12
12
  import {
13
13
  withErrorHandler
14
14
  } from "./chunk-3F4RFLPX.js";
@@ -335,4 +335,4 @@ Examples:
335
335
  export {
336
336
  zeroTelegramCommand
337
337
  };
338
- //# sourceMappingURL=telegram-DTKBHSNW.js.map
338
+ //# sourceMappingURL=telegram-FMO5JNQL.js.map
@@ -10,7 +10,7 @@ import {
10
10
  deleteZeroVariable,
11
11
  listZeroVariables,
12
12
  setZeroVariable
13
- } from "./chunk-X2GL7DNQ.js";
13
+ } from "./chunk-C3NCF7AC.js";
14
14
  import {
15
15
  withErrorHandler
16
16
  } from "./chunk-3F4RFLPX.js";
@@ -117,4 +117,4 @@ var zeroVariableCommand = new Command().name("variable").description("Read or wr
117
117
  export {
118
118
  zeroVariableCommand
119
119
  };
120
- //# sourceMappingURL=variable-RAQG5IPA.js.map
120
+ //# sourceMappingURL=variable-3QU5KSPD.js.map
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import "./chunk-LTDQISD7.js";
5
- import "./chunk-X2GL7DNQ.js";
5
+ import "./chunk-C3NCF7AC.js";
6
6
  import {
7
7
  downloadWebFile,
8
8
  uploadWebFile,
@@ -106,4 +106,4 @@ Examples:
106
106
  export {
107
107
  zeroWebCommand
108
108
  };
109
- //# sourceMappingURL=web-AXKPHAJ6.js.map
109
+ //# sourceMappingURL=web-NUS7HONQ.js.map
@@ -4,16 +4,16 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  loadConnectorPermissionInfos,
6
6
  policyIcon
7
- } from "./chunk-BBOXEIPR.js";
7
+ } from "./chunk-NUCGXUQW.js";
8
8
  import {
9
9
  permissionGrantsToFirewallPolicies
10
- } from "./chunk-HQLDHV7V.js";
10
+ } from "./chunk-UQBJX5J5.js";
11
11
  import "./chunk-LTDQISD7.js";
12
12
  import {
13
13
  getZeroAgentUserConnectors,
14
14
  listZeroConnectors,
15
15
  listZeroUserPermissionGrants
16
- } from "./chunk-X2GL7DNQ.js";
16
+ } from "./chunk-C3NCF7AC.js";
17
17
  import {
18
18
  getActiveOrg,
19
19
  getApiUrl,
@@ -192,4 +192,4 @@ Notes:
192
192
  export {
193
193
  zeroWhoamiCommand
194
194
  };
195
- //# sourceMappingURL=whoami-GCESGYZX.js.map
195
+ //# sourceMappingURL=whoami-BVBVPCEX.js.map
@@ -27,7 +27,7 @@ import {
27
27
  listWorkflows,
28
28
  updateWorkflow,
29
29
  updateWorkflowTrigger
30
- } from "./chunk-X2GL7DNQ.js";
30
+ } from "./chunk-C3NCF7AC.js";
31
31
  import {
32
32
  withErrorHandler
33
33
  } from "./chunk-3F4RFLPX.js";
@@ -405,6 +405,9 @@ var GMAIL_TEXT_FIELDS = [
405
405
  function isWebhookTrigger(trigger) {
406
406
  return trigger.kind === "event" && trigger.eventType === "webhook-received";
407
407
  }
408
+ function isGoogleCalendarTrigger(trigger) {
409
+ return trigger.kind === "event" && (trigger.eventType === "google-calendar-event-created" || trigger.eventType === "google-calendar-event-updated" || trigger.eventType === "google-calendar-event-cancelled");
410
+ }
408
411
  function quote(value) {
409
412
  return `"${value}"`;
410
413
  }
@@ -464,6 +467,12 @@ function formatWorkflowTriggerEntry(trigger) {
464
467
  if (trigger.kind === "event" && trigger.eventType === "google-calendar-event-created") {
465
468
  return `Google Calendar event created: ${trigger.eventConfig.calendarId}`;
466
469
  }
470
+ if (trigger.kind === "event" && trigger.eventType === "google-calendar-event-updated") {
471
+ return `Google Calendar event updated: ${trigger.eventConfig.calendarId}`;
472
+ }
473
+ if (trigger.kind === "event" && trigger.eventType === "google-calendar-event-cancelled") {
474
+ return `Google Calendar event cancelled: ${trigger.eventConfig.calendarId}`;
475
+ }
467
476
  if (isWebhookTrigger(trigger)) {
468
477
  return `Webhook: ${trigger.webhookUrl}`;
469
478
  }
@@ -480,6 +489,27 @@ function formatWorkflowTriggerEntry(trigger) {
480
489
  function formatRunTime(value) {
481
490
  return value ? formatRelativeTime(value) : source_default.dim("-");
482
491
  }
492
+ function workflowTriggerKindLabel(trigger) {
493
+ if (trigger.kind !== "event") {
494
+ return formatWorkflowTriggerEntry(trigger);
495
+ }
496
+ switch (trigger.eventType) {
497
+ case "gmail-new-message":
498
+ return "Gmail new message";
499
+ case "gmail-label-applied":
500
+ return "Gmail label applied";
501
+ case "github-label-applied":
502
+ return "GitHub label applied";
503
+ case "google-calendar-event-created":
504
+ return "Google Calendar event created";
505
+ case "google-calendar-event-updated":
506
+ return "Google Calendar event updated";
507
+ case "google-calendar-event-cancelled":
508
+ return "Google Calendar event cancelled";
509
+ case "webhook-received":
510
+ return "Webhook";
511
+ }
512
+ }
483
513
  function signedCurlExample(trigger) {
484
514
  const secret = trigger.webhookSecret ?? "<signing-secret>";
485
515
  return [
@@ -536,9 +566,7 @@ function printWorkflowTriggerDetails(trigger, options) {
536
566
  console.log(`${"Workflow:".padEnd(14)}${options.workflowRef}`);
537
567
  }
538
568
  console.log(`${"Status:".padEnd(14)}${status}`);
539
- console.log(
540
- `${"Trigger:".padEnd(14)}${trigger.kind === "event" ? trigger.eventType === "gmail-new-message" ? "Gmail new message" : trigger.eventType === "gmail-label-applied" ? "Gmail label applied" : trigger.eventType === "github-label-applied" ? "GitHub label applied" : trigger.eventType === "google-calendar-event-created" ? "Google Calendar event created" : "Webhook" : formatWorkflowTriggerEntry(trigger)}`
541
- );
569
+ console.log(`${"Trigger:".padEnd(14)}${workflowTriggerKindLabel(trigger)}`);
542
570
  if (trigger.kind === "event" && trigger.eventType === "gmail-new-message") {
543
571
  console.log(
544
572
  `${"Match:".padEnd(14)}${formatGmailMatchSummary(trigger.eventConfig)}`
@@ -558,7 +586,7 @@ function printWorkflowTriggerDetails(trigger, options) {
558
586
  `${"Actor:".padEnd(14)}${trigger.eventConfig.filters.actor.type}`
559
587
  );
560
588
  }
561
- if (trigger.kind === "event" && trigger.eventType === "google-calendar-event-created") {
589
+ if (isGoogleCalendarTrigger(trigger)) {
562
590
  console.log(`${"Calendar:".padEnd(14)}${trigger.eventConfig.calendarId}`);
563
591
  }
564
592
  if (isWebhookTrigger(trigger)) {
@@ -805,10 +833,12 @@ var EVENT_KINDS = [
805
833
  "gmail-label-applied",
806
834
  "github-label-applied",
807
835
  "google-calendar-event-created",
836
+ "google-calendar-event-updated",
837
+ "google-calendar-event-cancelled",
808
838
  "webhook"
809
839
  ];
810
840
  var TRIGGER_KINDS = [...SCHEDULE_KINDS, ...EVENT_KINDS];
811
- var EXACTLY_ONE_FLAG_MESSAGE = "Provide exactly one of --expr (cron), --at (once), --every (loop), Gmail match options, --label, --subject, or --actor";
841
+ var EXACTLY_ONE_FLAG_MESSAGE = "Provide exactly one of --expr (cron), --at (once), --every (loop), Gmail match options, --label, --subject, --actor, or --calendar-id";
812
842
  function addGmailTriggerOptions(command) {
813
843
  return command.option(
814
844
  "--config <path>",
@@ -1112,20 +1142,43 @@ function buildGithubLabelAppliedCreateRequest(options) {
1112
1142
  eventConfig: buildGithubLabelAppliedEventConfig(options)
1113
1143
  };
1114
1144
  }
1115
- function buildGoogleCalendarEventCreatedCreateRequest(options) {
1145
+ function buildGoogleCalendarEventCreateRequest(eventType, options) {
1116
1146
  assertNoScheduleAddOptions(options);
1117
1147
  if (hasGmailTriggerOptions(options) || hasGmailLabelOption(options) || hasGithubTriggerOptions(options)) {
1118
1148
  throw new Error(
1119
1149
  "Gmail and GitHub trigger flags only apply to their event triggers"
1120
1150
  );
1121
1151
  }
1152
+ const calendarId = options.calendarId?.trim() || "primary";
1153
+ if (eventType === "google-calendar-event-created") {
1154
+ return {
1155
+ kind: "event",
1156
+ eventType: "google-calendar-event-created",
1157
+ eventConfig: {
1158
+ provider: "google-calendar",
1159
+ event: "event_created",
1160
+ calendarId
1161
+ }
1162
+ };
1163
+ }
1164
+ if (eventType === "google-calendar-event-updated") {
1165
+ return {
1166
+ kind: "event",
1167
+ eventType: "google-calendar-event-updated",
1168
+ eventConfig: {
1169
+ provider: "google-calendar",
1170
+ event: "event_updated",
1171
+ calendarId
1172
+ }
1173
+ };
1174
+ }
1122
1175
  return {
1123
1176
  kind: "event",
1124
- eventType: "google-calendar-event-created",
1177
+ eventType: "google-calendar-event-cancelled",
1125
1178
  eventConfig: {
1126
1179
  provider: "google-calendar",
1127
- event: "event_created",
1128
- calendarId: options.calendarId?.trim() || "primary"
1180
+ event: "event_cancelled",
1181
+ calendarId
1129
1182
  }
1130
1183
  };
1131
1184
  }
@@ -1159,7 +1212,11 @@ function buildCreateRequest(kind, options) {
1159
1212
  case "github-label-applied":
1160
1213
  return buildGithubLabelAppliedCreateRequest(options);
1161
1214
  case "google-calendar-event-created":
1162
- return buildGoogleCalendarEventCreatedCreateRequest(options);
1215
+ return buildGoogleCalendarEventCreateRequest(kind, options);
1216
+ case "google-calendar-event-updated":
1217
+ return buildGoogleCalendarEventCreateRequest(kind, options);
1218
+ case "google-calendar-event-cancelled":
1219
+ return buildGoogleCalendarEventCreateRequest(kind, options);
1163
1220
  case "webhook":
1164
1221
  return buildWebhookCreateRequest(options);
1165
1222
  default:
@@ -1170,7 +1227,7 @@ function buildEventUpdate(options, existing) {
1170
1227
  const hasGmailOptions = hasGmailTriggerOptions(options);
1171
1228
  const hasLabelOption = hasGmailLabelOption(options);
1172
1229
  const hasGithubOptions = hasGithubTriggerOptions(options);
1173
- if (existing.eventType === "google-calendar-event-created") {
1230
+ if (existing.eventType === "google-calendar-event-created" || existing.eventType === "google-calendar-event-updated" || existing.eventType === "google-calendar-event-cancelled") {
1174
1231
  throw new Error("Google Calendar event triggers cannot be updated");
1175
1232
  }
1176
1233
  if (existing.eventType === "github-label-applied") {
@@ -1272,7 +1329,7 @@ var addCommand = addGithubTriggerOptions(
1272
1329
  )
1273
1330
  ).option(
1274
1331
  "--calendar-id <id>",
1275
- "Google Calendar ID for google-calendar-event-created (default: primary)"
1332
+ "Google Calendar ID for Google Calendar event triggers (default: primary)"
1276
1333
  ).option("--agent <id>", "Agent ID for resolving a workflow name").addHelpText(
1277
1334
  "after",
1278
1335
  `
@@ -1285,6 +1342,8 @@ Examples:
1285
1342
  zero workflow trigger add triage gmail-label-applied --label "Support"
1286
1343
  zero workflow trigger add triage github-label-applied --label "triage" --subject both --actor me
1287
1344
  zero workflow trigger add triage google-calendar-event-created
1345
+ zero workflow trigger add triage google-calendar-event-updated
1346
+ zero workflow trigger add triage google-calendar-event-cancelled
1288
1347
  zero workflow trigger add triage webhook
1289
1348
 
1290
1349
  Notes:
@@ -1413,4 +1472,4 @@ Examples:
1413
1472
  export {
1414
1473
  zeroWorkflowCommand
1415
1474
  };
1416
- //# sourceMappingURL=workflow-VN37UXJT.js.map
1475
+ //# sourceMappingURL=workflow-KFXYP54E.js.map