@vm0/cli 9.165.1 → 9.165.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.
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.165.1",
74086
+ release: "9.165.3",
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.165.1",
74105
+ version: "9.165.3",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -74316,8 +74316,7 @@ var FEATURE_SWITCHES = {
74316
74316
  ["googleAdsConnector" /* GoogleAdsConnector */]: {
74317
74317
  maintainer: "ethan@vm0.ai",
74318
74318
  description: "Enable the Google Ads connector",
74319
- enabled: false,
74320
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
74319
+ enabled: true
74321
74320
  },
74322
74321
  ["metaAdsConnector" /* MetaAdsConnector */]: {
74323
74322
  maintainer: "ethan@vm0.ai",
@@ -95681,6 +95680,7 @@ var checkoutRequestSchema = external_exports.object({
95681
95680
  });
95682
95681
  var creditCheckoutRequestSchema = external_exports.object({
95683
95682
  credits: external_exports.number().int().min(1e3).max(1e7),
95683
+ customAmount: external_exports.boolean().optional(),
95684
95684
  successUrl: external_exports.string().url(),
95685
95685
  cancelUrl: external_exports.string().url(),
95686
95686
  autoRecharge: external_exports.object({
@@ -95689,6 +95689,11 @@ var creditCheckoutRequestSchema = external_exports.object({
95689
95689
  amount: external_exports.number().int().min(1e3).max(1e7).optional()
95690
95690
  }).optional()
95691
95691
  }).refine(
95692
+ (data) => {
95693
+ return data.customAmount !== true || data.autoRecharge === void 0;
95694
+ },
95695
+ { message: "auto-recharge is not supported for custom amount checkout" }
95696
+ ).refine(
95692
95697
  (data) => {
95693
95698
  return data.autoRecharge?.enabled !== true || data.autoRecharge.threshold === void 0 || data.autoRecharge.amount === void 0 || data.autoRecharge.threshold < data.autoRecharge.amount;
95694
95699
  },
@@ -117809,19 +117814,6 @@ var GOOGLE_OAUTH_CONNECTOR_TYPES = [
117809
117814
  var GOOGLE_OAUTH_CONNECTOR_TYPE_SET = new Set(GOOGLE_OAUTH_CONNECTOR_TYPES);
117810
117815
 
117811
117816
  // ../../packages/connectors/src/connector-utils.ts
117812
- function lookupConnectorAuthMethod(type, authMethod) {
117813
- for (const [methodId, method] of Object.entries(
117814
- CONNECTOR_TYPES[type].authMethods
117815
- )) {
117816
- if (methodId === authMethod) {
117817
- return method;
117818
- }
117819
- }
117820
- return void 0;
117821
- }
117822
- function getConnectorAuthMethod(type, authMethod) {
117823
- return lookupConnectorAuthMethod(type, authMethod);
117824
- }
117825
117817
  function connectorAuthMethodValues(type) {
117826
117818
  return Object.values(CONNECTOR_TYPES[type].authMethods);
117827
117819
  }
@@ -117864,19 +117856,25 @@ function authMethodAccessPriority(method) {
117864
117856
  return 0;
117865
117857
  }
117866
117858
  }
117867
- function getConnectorOAuthGrantConfigIfSupported(type) {
117868
- const method = getConnectorAuthMethod(type, "oauth");
117869
- switch (method?.grant.kind) {
117859
+ function isConnectorOAuthGrantConfig(method) {
117860
+ switch (method.grant.kind) {
117870
117861
  case "auth-code":
117871
117862
  case "device-auth":
117872
- return method.grant;
117863
+ return true;
117873
117864
  case "manual":
117874
117865
  case "managed":
117875
117866
  case "interactive-pairing":
117876
- case void 0:
117877
- return void 0;
117867
+ return false;
117878
117868
  }
117879
117869
  }
117870
+ function getConnectorOAuthGrantConfigIfSupported(type) {
117871
+ for (const method of connectorAuthMethodValues(type)) {
117872
+ if (isConnectorOAuthGrantConfig(method)) {
117873
+ return method.grant;
117874
+ }
117875
+ }
117876
+ return void 0;
117877
+ }
117880
117878
  function getConnectorGenerationTypes(type) {
117881
117879
  const config4 = CONNECTOR_TYPES[type];
117882
117880
  return "generation" in config4 ? config4.generation ?? [] : [];
@@ -132099,6 +132097,7 @@ var zeroUsageRunsContract = c74.router({
132099
132097
  query: external_exports.object({
132100
132098
  page: external_exports.coerce.number().int().positive().default(1),
132101
132099
  pageSize: external_exports.coerce.number().int().positive().max(100).default(20),
132100
+ runId: external_exports.string().uuid().optional(),
132102
132101
  agentId: external_exports.string().optional(),
132103
132102
  // Comma-separated list of user IDs to filter by. Empty string = no filter.
132104
132103
  userIds: external_exports.string().optional(),
@@ -132107,6 +132106,7 @@ var zeroUsageRunsContract = c74.router({
132107
132106
  }),
132108
132107
  responses: {
132109
132108
  200: usageRunsResponseSchema,
132109
+ 400: apiErrorSchema,
132110
132110
  401: apiErrorSchema,
132111
132111
  403: apiErrorSchema,
132112
132112
  500: apiErrorSchema
@@ -135346,4 +135346,4 @@ undici/lib/web/fetch/body.js:
135346
135346
  undici/lib/web/websocket/frame.js:
135347
135347
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
135348
135348
  */
135349
- //# sourceMappingURL=chunk-SEONTKHL.js.map
135349
+ //# sourceMappingURL=chunk-X7OEKYPB.js.map