@vm0/cli 9.213.0 → 9.213.1

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.
@@ -80403,7 +80403,7 @@ if (DSN) {
80403
80403
  init2({
80404
80404
  dsn: DSN,
80405
80405
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
80406
- release: "9.213.0",
80406
+ release: "9.213.1",
80407
80407
  sendDefaultPii: false,
80408
80408
  tracesSampleRate: 0,
80409
80409
  shutdownTimeout: 500,
@@ -80422,7 +80422,7 @@ if (DSN) {
80422
80422
  }
80423
80423
  });
80424
80424
  setContext("cli", {
80425
- version: "9.213.0",
80425
+ version: "9.213.1",
80426
80426
  command: process.argv.slice(2).join(" ")
80427
80427
  });
80428
80428
  setContext("runtime", {
@@ -120609,6 +120609,13 @@ var zeroWorkflowDetailResponseSchema = zeroWorkflowSummarySchema.extend({
120609
120609
  var zeroWorkflowListResponseSchema = external_exports.array(
120610
120610
  zeroWorkflowSummarySchema
120611
120611
  );
120612
+ var zeroWorkflowTriggerAutomationEntrySchema = external_exports.object({
120613
+ workflow: zeroWorkflowSummarySchema,
120614
+ trigger: zeroWorkflowTriggerSummarySchema
120615
+ });
120616
+ var zeroWorkflowTriggerAutomationListResponseSchema = external_exports.array(
120617
+ zeroWorkflowTriggerAutomationEntrySchema
120618
+ );
120612
120619
  var zeroWorkflowCreateRequestSchema = external_exports.object({
120613
120620
  agentId: external_exports.string().uuid(),
120614
120621
  name: zeroWorkflowNameSchema,
@@ -120842,6 +120849,17 @@ var zeroWorkflowVisibilityContract = c32.router({
120842
120849
  var triggerIdParams = external_exports.object({ id: external_exports.string().uuid() });
120843
120850
  var chatThreadIdParams = external_exports.object({ threadId: external_exports.string().min(1) });
120844
120851
  var zeroWorkflowTriggersContract = c32.router({
120852
+ listWorkspace: {
120853
+ method: "GET",
120854
+ path: "/api/zero/workflow-triggers",
120855
+ headers: authHeadersSchema,
120856
+ responses: {
120857
+ 200: zeroWorkflowTriggerAutomationListResponseSchema,
120858
+ 401: apiErrorSchema,
120859
+ 403: apiErrorSchema
120860
+ },
120861
+ summary: "List the caller's workflow triggers across visible workflows"
120862
+ },
120845
120863
  listForChatThread: {
120846
120864
  method: "GET",
120847
120865
  path: "/api/zero/chat-threads/:threadId/workflow-triggers",
@@ -121027,6 +121045,16 @@ async function runWorkflow(workflowId) {
121027
121045
  if (result.status === 200) return result.body;
121028
121046
  handleError(result, `Failed to run workflow "${workflowId}"`);
121029
121047
  }
121048
+ async function getZeroWorkflowUserConnectors(workflowId) {
121049
+ const config4 = await getClientConfig();
121050
+ const client = initClient(zeroWorkflowUserConnectorsContract, config4);
121051
+ const result = await client.get({ params: { id: workflowId } });
121052
+ if (result.status === 200) return result.body.enabledTypes;
121053
+ handleError(
121054
+ result,
121055
+ `Failed to get connector permissions for zero workflow "${workflowId}"`
121056
+ );
121057
+ }
121030
121058
  async function listWorkflowTriggers(workflowId) {
121031
121059
  const config4 = await getClientConfig();
121032
121060
  const client = initClient(zeroWorkflowTriggersContract, config4);
@@ -139734,6 +139762,7 @@ export {
139734
139762
  deleteWorkflow,
139735
139763
  copyWorkflow,
139736
139764
  runWorkflow,
139765
+ getZeroWorkflowUserConnectors,
139737
139766
  listWorkflowTriggers,
139738
139767
  createWorkflowTrigger,
139739
139768
  getWorkflowTrigger,
@@ -139882,4 +139911,4 @@ undici/lib/web/fetch/body.js:
139882
139911
  undici/lib/web/websocket/frame.js:
139883
139912
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
139884
139913
  */
139885
- //# sourceMappingURL=chunk-HRHBUW35.js.map
139914
+ //# sourceMappingURL=chunk-AFQMB63J.js.map