@vm0/cli 9.168.3 → 9.169.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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.168.3",
74086
+ release: "9.169.0",
74087
74087
  sendDefaultPii: false,
74088
74088
  tracesSampleRate: 0,
74089
74089
  shutdownTimeout: 500,
@@ -74102,7 +74102,7 @@ if (DSN) {
74102
74102
  }
74103
74103
  });
74104
74104
  setContext("cli", {
74105
- version: "9.168.3",
74105
+ version: "9.169.0",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -74476,9 +74476,8 @@ var FEATURE_SWITCHES = {
74476
74476
  },
74477
74477
  ["zeroMaps" /* ZeroMaps */]: {
74478
74478
  maintainer: "ethan@vm0.ai",
74479
- description: "Enable managed Zero Maps CLI access for geocoding, directions, and places. Staff-only during rollout.",
74480
- enabled: false,
74481
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
74479
+ description: "Enable managed Zero Maps CLI access for geocoding, directions, and places.",
74480
+ enabled: true
74482
74481
  }
74483
74482
  };
74484
74483
  function isFeatureEnabled(key, ctx) {
@@ -107710,6 +107709,26 @@ var zeroConnectorOauthStartContract = c18.router({
107710
107709
  summary: "Create connector OAuth handoff and authorization URL"
107711
107710
  }
107712
107711
  });
107712
+ var zeroConnectorApiTokenContract = c18.router({
107713
+ connect: {
107714
+ method: "POST",
107715
+ path: "/api/zero/connectors/:type/api-token",
107716
+ headers: authHeadersSchema,
107717
+ pathParams: external_exports.object({ type: connectorTypeSchema }),
107718
+ body: external_exports.object({
107719
+ values: external_exports.record(external_exports.string(), external_exports.string())
107720
+ }),
107721
+ responses: {
107722
+ 200: connectorResponseSchema,
107723
+ 400: apiErrorSchema,
107724
+ 401: apiErrorSchema,
107725
+ 403: apiErrorSchema,
107726
+ 404: apiErrorSchema,
107727
+ 500: apiErrorSchema
107728
+ },
107729
+ summary: "Connect a connector with API-token credentials"
107730
+ }
107731
+ });
107713
107732
  var zeroConnectorOauthDeviceAuthSessionContract = c18.router({
107714
107733
  create: {
107715
107734
  method: "POST",
@@ -107873,6 +107892,18 @@ async function getZeroConnector(type) {
107873
107892
  }
107874
107893
  handleError(result, `Failed to get connector "${type}"`);
107875
107894
  }
107895
+ async function connectZeroConnectorApiToken(type, values) {
107896
+ const config4 = await getClientConfig();
107897
+ const client = initClient(zeroConnectorApiTokenContract, config4);
107898
+ const result = await client.connect({
107899
+ params: { type },
107900
+ body: { values }
107901
+ });
107902
+ if (result.status === 200) {
107903
+ return result.body;
107904
+ }
107905
+ handleError(result, `Failed to connect connector "${type}"`);
107906
+ }
107876
107907
 
107877
107908
  // src/lib/api/domains/integrations-slack.ts
107878
107909
  init_esm_shims();
@@ -117722,10 +117753,7 @@ function connectorAccessOutputs(access) {
117722
117753
  switch (access.kind) {
117723
117754
  case "static":
117724
117755
  case "refresh-token":
117725
- case "credential-exchange":
117726
117756
  return access.outputs;
117727
- case "managed":
117728
- return access.outputs ?? {};
117729
117757
  case "none":
117730
117758
  return {};
117731
117759
  }
@@ -135092,6 +135120,7 @@ export {
135092
135120
  listZeroConnectors,
135093
135121
  searchZeroConnectors,
135094
135122
  getZeroConnector,
135123
+ connectZeroConnectorApiToken,
135095
135124
  sendSlackMessage,
135096
135125
  initSlackFileUpload,
135097
135126
  completeSlackFileUpload,
@@ -135199,4 +135228,4 @@ undici/lib/web/fetch/body.js:
135199
135228
  undici/lib/web/websocket/frame.js:
135200
135229
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135201
135230
  */
135202
- //# sourceMappingURL=chunk-M3MX2TJ6.js.map
135231
+ //# sourceMappingURL=chunk-5KJLUOMN.js.map