@vm0/cli 9.215.1 → 9.215.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/{agent-H6EHGFPZ.js → agent-AZQKRG4B.js} +4 -4
  2. package/{automation-QV3AWLCI.js → automation-ZIEV4Q72.js} +2 -2
  3. package/{banking-HZVGHSLM.js → banking-2CDU223M.js} +2 -2
  4. package/{chunk-LRUD7ROI.js → chunk-2MYK53HJ.js} +2 -2
  5. package/{chunk-L6GC6AUS.js → chunk-DMAXHLSM.js} +25 -5
  6. package/chunk-DMAXHLSM.js.map +1 -0
  7. package/{chunk-PSFY2ETN.js → chunk-EWITRIWZ.js} +2 -2
  8. package/{chunk-R2HX7TVW.js → chunk-GBGNRPZ5.js} +3 -3
  9. package/{chunk-A6UR5VOC.js → chunk-LCMCP2WQ.js} +2 -2
  10. package/{chunk-ZXOCKNRI.js → chunk-QE6HJUL2.js} +3 -3
  11. package/{chunk-KZJ4S6U5.js → chunk-RVZTMBZ7.js} +2 -2
  12. package/{chunk-DQDALBWF.js → chunk-SS5WCV7W.js} +13 -7
  13. package/{chunk-DQDALBWF.js.map → chunk-SS5WCV7W.js.map} +1 -1
  14. package/{chunk-INN5SRMT.js → chunk-WL7EL2UG.js} +2 -2
  15. package/{computer-use-ZKUBXP6V.js → computer-use-AZPPQK7I.js} +2 -2
  16. package/{connector-ZSGIGADY.js → connector-NADUUXPW.js} +3 -3
  17. package/{credit-VMJYM4DD.js → credit-JHOMWMFK.js} +2 -2
  18. package/{developer-support-EVU3TTCS.js → developer-support-U7JULAYC.js} +2 -2
  19. package/{doctor-NL5HUJ6F.js → doctor-A7V3ZJEY.js} +272 -33
  20. package/doctor-A7V3ZJEY.js.map +1 -0
  21. package/{generate-KNCZMJNB.js → generate-2SJTN5W2.js} +3 -3
  22. package/{github-2MLRXIUS.js → github-GRU4EHAJ.js} +2 -2
  23. package/{goal-JWNBPZMQ.js → goal-GURJHZXL.js} +2 -2
  24. package/{host-XCU3JVEP.js → host-GYT2IEH4.js} +2 -2
  25. package/index.js +13 -13
  26. package/{logs-VLNWK6EJ.js → logs-N3PNIAGS.js} +6 -6
  27. package/{maps-UUYNXLCH.js → maps-D5QH3GHE.js} +2 -2
  28. package/{model-XQ6PKJLP.js → model-MM25EQUD.js} +3 -3
  29. package/{model-provider-ZDVTD7R5.js → model-provider-5OZ222EJ.js} +3 -3
  30. package/{org-IFSQQBDR.js → org-QBMRMNB4.js} +2 -2
  31. package/package.json +1 -1
  32. package/{phone-KCBQJ424.js → phone-FXXNTGIC.js} +2 -2
  33. package/{preference-2L2WBMTL.js → preference-KHMX4NLR.js} +2 -2
  34. package/{resource-WLS4LTR3.js → resource-EZHY7PAW.js} +2 -2
  35. package/{search-6NLSGHYB.js → search-PXKNMVKT.js} +6 -6
  36. package/{secret-3ZXJAPVT.js → secret-Y32Q5NUL.js} +3 -3
  37. package/{slack-QIMOKJW4.js → slack-DTGXXB4X.js} +2 -2
  38. package/{telegram-HYFTWR3Y.js → telegram-SXAGLUSM.js} +2 -2
  39. package/{variable-BJEI7JVT.js → variable-POHEUC5N.js} +2 -2
  40. package/{web-T4YMNTPC.js → web-NHHGB5F5.js} +2 -2
  41. package/{whoami-NTKQA7XK.js → whoami-QVS4BRD6.js} +4 -4
  42. package/{workflow-Q6PLLIZ3.js → workflow-65JJ6IXI.js} +2 -2
  43. package/zero.js +30 -30
  44. package/chunk-L6GC6AUS.js.map +0 -1
  45. package/doctor-NL5HUJ6F.js.map +0 -1
  46. /package/{agent-H6EHGFPZ.js.map → agent-AZQKRG4B.js.map} +0 -0
  47. /package/{automation-QV3AWLCI.js.map → automation-ZIEV4Q72.js.map} +0 -0
  48. /package/{banking-HZVGHSLM.js.map → banking-2CDU223M.js.map} +0 -0
  49. /package/{chunk-LRUD7ROI.js.map → chunk-2MYK53HJ.js.map} +0 -0
  50. /package/{chunk-PSFY2ETN.js.map → chunk-EWITRIWZ.js.map} +0 -0
  51. /package/{chunk-R2HX7TVW.js.map → chunk-GBGNRPZ5.js.map} +0 -0
  52. /package/{chunk-A6UR5VOC.js.map → chunk-LCMCP2WQ.js.map} +0 -0
  53. /package/{chunk-ZXOCKNRI.js.map → chunk-QE6HJUL2.js.map} +0 -0
  54. /package/{chunk-KZJ4S6U5.js.map → chunk-RVZTMBZ7.js.map} +0 -0
  55. /package/{chunk-INN5SRMT.js.map → chunk-WL7EL2UG.js.map} +0 -0
  56. /package/{computer-use-ZKUBXP6V.js.map → computer-use-AZPPQK7I.js.map} +0 -0
  57. /package/{connector-ZSGIGADY.js.map → connector-NADUUXPW.js.map} +0 -0
  58. /package/{credit-VMJYM4DD.js.map → credit-JHOMWMFK.js.map} +0 -0
  59. /package/{developer-support-EVU3TTCS.js.map → developer-support-U7JULAYC.js.map} +0 -0
  60. /package/{generate-KNCZMJNB.js.map → generate-2SJTN5W2.js.map} +0 -0
  61. /package/{github-2MLRXIUS.js.map → github-GRU4EHAJ.js.map} +0 -0
  62. /package/{goal-JWNBPZMQ.js.map → goal-GURJHZXL.js.map} +0 -0
  63. /package/{host-XCU3JVEP.js.map → host-GYT2IEH4.js.map} +0 -0
  64. /package/{logs-VLNWK6EJ.js.map → logs-N3PNIAGS.js.map} +0 -0
  65. /package/{maps-UUYNXLCH.js.map → maps-D5QH3GHE.js.map} +0 -0
  66. /package/{model-XQ6PKJLP.js.map → model-MM25EQUD.js.map} +0 -0
  67. /package/{model-provider-ZDVTD7R5.js.map → model-provider-5OZ222EJ.js.map} +0 -0
  68. /package/{org-IFSQQBDR.js.map → org-QBMRMNB4.js.map} +0 -0
  69. /package/{phone-KCBQJ424.js.map → phone-FXXNTGIC.js.map} +0 -0
  70. /package/{preference-2L2WBMTL.js.map → preference-KHMX4NLR.js.map} +0 -0
  71. /package/{resource-WLS4LTR3.js.map → resource-EZHY7PAW.js.map} +0 -0
  72. /package/{search-6NLSGHYB.js.map → search-PXKNMVKT.js.map} +0 -0
  73. /package/{secret-3ZXJAPVT.js.map → secret-Y32Q5NUL.js.map} +0 -0
  74. /package/{slack-QIMOKJW4.js.map → slack-DTGXXB4X.js.map} +0 -0
  75. /package/{telegram-HYFTWR3Y.js.map → telegram-SXAGLUSM.js.map} +0 -0
  76. /package/{variable-BJEI7JVT.js.map → variable-POHEUC5N.js.map} +0 -0
  77. /package/{web-T4YMNTPC.js.map → web-NHHGB5F5.js.map} +0 -0
  78. /package/{whoami-NTKQA7XK.js.map → whoami-QVS4BRD6.js.map} +0 -0
  79. /package/{workflow-Q6PLLIZ3.js.map → workflow-65JJ6IXI.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-KZJ4S6U5.js";
7
+ } from "./chunk-RVZTMBZ7.js";
8
8
  import {
9
9
  permissionGrantsToFirewallPolicies
10
- } from "./chunk-INN5SRMT.js";
10
+ } from "./chunk-WL7EL2UG.js";
11
11
  import {
12
12
  isInteractive,
13
13
  promptConfirm
@@ -23,7 +23,7 @@ import {
23
23
  listZeroUserPermissionGrants,
24
24
  updateZeroAgent,
25
25
  updateZeroAgentInstructions
26
- } from "./chunk-L6GC6AUS.js";
26
+ } from "./chunk-DMAXHLSM.js";
27
27
  import "./chunk-LTDQISD7.js";
28
28
  import {
29
29
  withErrorHandler
@@ -595,4 +595,4 @@ Notes:
595
595
  export {
596
596
  zeroAgentCommand
597
597
  };
598
- //# sourceMappingURL=agent-H6EHGFPZ.js.map
598
+ //# sourceMappingURL=agent-AZQKRG4B.js.map
@@ -23,7 +23,7 @@ import {
23
23
  showAutomation,
24
24
  updateAutomation,
25
25
  updateAutomationTrigger
26
- } from "./chunk-L6GC6AUS.js";
26
+ } from "./chunk-DMAXHLSM.js";
27
27
  import "./chunk-LTDQISD7.js";
28
28
  import {
29
29
  withErrorHandler
@@ -490,4 +490,4 @@ Examples:
490
490
  export {
491
491
  zeroAutomationCommand
492
492
  };
493
- //# sourceMappingURL=automation-QV3AWLCI.js.map
493
+ //# sourceMappingURL=automation-ZIEV4Q72.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
  callZeroBanking
6
- } from "./chunk-L6GC6AUS.js";
6
+ } from "./chunk-DMAXHLSM.js";
7
7
  import "./chunk-LTDQISD7.js";
8
8
  import {
9
9
  withErrorHandler
@@ -115,4 +115,4 @@ Notes:
115
115
  export {
116
116
  zeroBankingCommand
117
117
  };
118
- //# sourceMappingURL=banking-HZVGHSLM.js.map
118
+ //# sourceMappingURL=banking-2CDU223M.js.map
@@ -5,7 +5,7 @@ import {
5
5
  CONNECTOR_TYPES,
6
6
  CONNECTOR_TYPE_KEYS,
7
7
  connectorAuthMethodIdSchema
8
- } from "./chunk-L6GC6AUS.js";
8
+ } from "./chunk-DMAXHLSM.js";
9
9
  import {
10
10
  init_esm_shims
11
11
  } from "./chunk-DIRAZ3YX.js";
@@ -181,4 +181,4 @@ export {
181
181
  hasRequiredConnectorAuthMethodScopes,
182
182
  getConnectorAuthMethodScopeDiff
183
183
  };
184
- //# sourceMappingURL=chunk-LRUD7ROI.js.map
184
+ //# sourceMappingURL=chunk-2MYK53HJ.js.map
@@ -3787,6 +3787,11 @@ function pathSegmentHasUnsafeSyntax(segment2, rejectPathStructure) {
3787
3787
  const decoded = percentDecodePathSegment(current, rejectPathStructure);
3788
3788
  return decoded === null || decoded !== current;
3789
3789
  }
3790
+ function hasUnsafeFirewallPath(path) {
3791
+ return path.split("/").some((segment2) => {
3792
+ return pathSegmentHasUnsafeSyntax(segment2, false);
3793
+ });
3794
+ }
3790
3795
  function validateBaseUrlVariablePercentEncoding({
3791
3796
  base,
3792
3797
  serviceName,
@@ -6101,6 +6106,9 @@ var chatThreadUnreadsSchema = external_exports.object({
6101
6106
  })
6102
6107
  )
6103
6108
  });
6109
+ var chatThreadUnreadAgentsSchema = external_exports.object({
6110
+ agentIds: external_exports.array(external_exports.string())
6111
+ });
6104
6112
  var chatThreadListItemSchema = external_exports.object({
6105
6113
  id: external_exports.string(),
6106
6114
  title: external_exports.string().nullable(),
@@ -6400,7 +6408,18 @@ var chatThreadsContract = c15.router({
6400
6408
  200: chatThreadUnreadsSchema,
6401
6409
  401: apiErrorSchema
6402
6410
  },
6403
- summary: "List the caller's unread chat threads under an agent, each with the timestamp of the message that made it unread. Fetched separately from the thread list; mark-read returns the same snapshot so read state needs no broadcast."
6411
+ summary: "List the caller's unread chat threads under an agent, each with the timestamp of the message that made it unread."
6412
+ },
6413
+ unreadAgents: {
6414
+ method: "GET",
6415
+ path: "/api/zero/chat-thread-unread-agents",
6416
+ headers: authHeadersSchema,
6417
+ responses: {
6418
+ 200: chatThreadUnreadAgentsSchema,
6419
+ 401: apiErrorSchema,
6420
+ 403: apiErrorSchema
6421
+ },
6422
+ summary: "List agent IDs with at least one unread chat thread for the caller."
6404
6423
  }
6405
6424
  });
6406
6425
  var chatThreadIdPathParamsSchema = external_exports.object({ id: external_exports.string().uuid() });
@@ -6466,8 +6485,8 @@ var chatThreadMarkReadContract = c15.router({
6466
6485
  lastReadMessageId: external_exports.string().nullable(),
6467
6486
  /**
6468
6487
  * Fresh unread snapshot for the thread's agent (same shape as the
6469
- * unreads endpoint), so the caller syncs read state from the response
6470
- * instead of a broadcast-triggered refetch.
6488
+ * unreads endpoint). Kept for response compatibility; clients should
6489
+ * treat `chatThreadReadCursorUpdated` as read-state invalidation.
6471
6490
  */
6472
6491
  unreads: chatThreadUnreadsSchema.shape.unreads
6473
6492
  }),
@@ -6475,7 +6494,7 @@ var chatThreadMarkReadContract = c15.router({
6475
6494
  401: apiErrorSchema,
6476
6495
  404: apiErrorSchema
6477
6496
  },
6478
- summary: "Mark a chat thread as read up to the latest message and return the agent's unread snapshot"
6497
+ summary: "Mark a chat thread as read up to the latest message"
6479
6498
  }
6480
6499
  });
6481
6500
  var chatThreadPinContract = c15.router({
@@ -27340,6 +27359,7 @@ export {
27340
27359
  splitPathSegments,
27341
27360
  UNKNOWN_PERMISSION_GRANT,
27342
27361
  firewallPoliciesSchema,
27362
+ hasUnsafeFirewallPath,
27343
27363
  resolveFirewallBaseUrlTemplate,
27344
27364
  hasBaseUrlParams,
27345
27365
  validateBaseUrl,
@@ -27502,4 +27522,4 @@ export {
27502
27522
  completeHostedSite,
27503
27523
  getHostedSiteFiles
27504
27524
  };
27505
- //# sourceMappingURL=chunk-L6GC6AUS.js.map
27525
+ //# sourceMappingURL=chunk-DMAXHLSM.js.map