@zapier/zapier-sdk-cli 0.66.2 → 0.66.4

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.
@@ -2666,7 +2666,7 @@ async function bundleCode(options) {
2666
2666
  }
2667
2667
  return finalOutput;
2668
2668
  } catch (error) {
2669
- if (error instanceof zapierSdk.ZapierBundleError) {
2669
+ if (zapierSdk.isZapierBundleError(error)) {
2670
2670
  throw error;
2671
2671
  }
2672
2672
  throw new zapierSdk.ZapierBundleError(
@@ -3549,7 +3549,7 @@ var generateAppTypesPlugin = zapierSdk.defineMethod({
3549
3549
  app: app.key,
3550
3550
  error: errorMessage
3551
3551
  });
3552
- if (error instanceof zapierSdk.ZapierValidationError) {
3552
+ if (zapierSdk.isZapierValidationError(error)) {
3553
3553
  throw error;
3554
3554
  }
3555
3555
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -3636,7 +3636,7 @@ var buildManifestPlugin = zapierSdk.defineMethod({
3636
3636
  app: app.key,
3637
3637
  error: errorMessage
3638
3638
  });
3639
- if (error instanceof zapierSdk.ZapierValidationError) {
3639
+ if (zapierSdk.isZapierValidationError(error)) {
3640
3640
  throw error;
3641
3641
  }
3642
3642
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -4955,7 +4955,7 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
4955
4955
  await interactive(message);
4956
4956
  fulfilled++;
4957
4957
  } catch (err) {
4958
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4958
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4959
4959
  skipped++;
4960
4960
  }
4961
4961
  throw err;
@@ -5074,7 +5074,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
5074
5074
  await interactive(message);
5075
5075
  fulfilled++;
5076
5076
  } catch (err) {
5077
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5077
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5078
5078
  skipped++;
5079
5079
  }
5080
5080
  throw err;
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5109
5109
  // package.json with { type: 'json' }
5110
5110
  var package_default = {
5111
5111
  name: "@zapier/zapier-sdk-cli",
5112
- version: "0.66.2"};
5112
+ version: "0.66.4"};
5113
5113
 
5114
5114
  // src/sdk.ts
5115
5115
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7,7 +7,7 @@ import crypto, { createHash } from 'crypto';
7
7
  import * as path from 'path';
8
8
  import { resolve, join, dirname, basename, relative, extname } from 'path';
9
9
  import * as lockfile from 'proper-lockfile';
10
- import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
10
+ import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
11
11
  import { z } from 'zod';
12
12
  import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, injectCliLogin as injectCliLogin$1, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin } from '@zapier/zapier-sdk/experimental';
13
13
  import { hostname } from 'os';
@@ -2630,7 +2630,7 @@ async function bundleCode(options) {
2630
2630
  }
2631
2631
  return finalOutput;
2632
2632
  } catch (error) {
2633
- if (error instanceof ZapierBundleError) {
2633
+ if (isZapierBundleError(error)) {
2634
2634
  throw error;
2635
2635
  }
2636
2636
  throw new ZapierBundleError(
@@ -3513,7 +3513,7 @@ var generateAppTypesPlugin = defineMethod({
3513
3513
  app: app.key,
3514
3514
  error: errorMessage
3515
3515
  });
3516
- if (error instanceof ZapierValidationError) {
3516
+ if (isZapierValidationError(error)) {
3517
3517
  throw error;
3518
3518
  }
3519
3519
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -3600,7 +3600,7 @@ var buildManifestPlugin = defineMethod({
3600
3600
  app: app.key,
3601
3601
  error: errorMessage
3602
3602
  });
3603
- if (error instanceof ZapierValidationError) {
3603
+ if (isZapierValidationError(error)) {
3604
3604
  throw error;
3605
3605
  }
3606
3606
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -4919,7 +4919,7 @@ var drainTriggerInboxCliPlugin = defineMethod({
4919
4919
  await interactive(message);
4920
4920
  fulfilled++;
4921
4921
  } catch (err) {
4922
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4922
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4923
4923
  skipped++;
4924
4924
  }
4925
4925
  throw err;
@@ -5038,7 +5038,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
5038
5038
  await interactive(message);
5039
5039
  fulfilled++;
5040
5040
  } catch (err) {
5041
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5041
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5042
5042
  skipped++;
5043
5043
  }
5044
5044
  throw err;
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5073
5073
  // package.json with { type: 'json' }
5074
5074
  var package_default = {
5075
5075
  name: "@zapier/zapier-sdk-cli",
5076
- version: "0.66.2"};
5076
+ version: "0.66.4"};
5077
5077
 
5078
5078
  // src/sdk.ts
5079
5079
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
package/dist/index.cjs CHANGED
@@ -2671,7 +2671,7 @@ async function bundleCode(options) {
2671
2671
  }
2672
2672
  return finalOutput;
2673
2673
  } catch (error) {
2674
- if (error instanceof zapierSdk.ZapierBundleError) {
2674
+ if (zapierSdk.isZapierBundleError(error)) {
2675
2675
  throw error;
2676
2676
  }
2677
2677
  throw new zapierSdk.ZapierBundleError(
@@ -3554,7 +3554,7 @@ var generateAppTypesPlugin = zapierSdk.defineMethod({
3554
3554
  app: app.key,
3555
3555
  error: errorMessage
3556
3556
  });
3557
- if (error instanceof zapierSdk.ZapierValidationError) {
3557
+ if (zapierSdk.isZapierValidationError(error)) {
3558
3558
  throw error;
3559
3559
  }
3560
3560
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -3641,7 +3641,7 @@ var buildManifestPlugin = zapierSdk.defineMethod({
3641
3641
  app: app.key,
3642
3642
  error: errorMessage
3643
3643
  });
3644
- if (error instanceof zapierSdk.ZapierValidationError) {
3644
+ if (zapierSdk.isZapierValidationError(error)) {
3645
3645
  throw error;
3646
3646
  }
3647
3647
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -4955,7 +4955,7 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
4955
4955
  await interactive(message);
4956
4956
  fulfilled++;
4957
4957
  } catch (err) {
4958
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4958
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4959
4959
  skipped++;
4960
4960
  }
4961
4961
  throw err;
@@ -5074,7 +5074,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
5074
5074
  await interactive(message);
5075
5075
  fulfilled++;
5076
5076
  } catch (err) {
5077
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5077
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5078
5078
  skipped++;
5079
5079
  }
5080
5080
  throw err;
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5109
5109
  // package.json with { type: 'json' }
5110
5110
  var package_default = {
5111
5111
  name: "@zapier/zapier-sdk-cli",
5112
- version: "0.66.2"};
5112
+ version: "0.66.4"};
5113
5113
 
5114
5114
  // src/sdk.ts
5115
5115
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -5192,7 +5192,7 @@ function createZapierCliSdk(options = {}) {
5192
5192
 
5193
5193
  // package.json
5194
5194
  var package_default2 = {
5195
- version: "0.66.2"};
5195
+ version: "0.66.4"};
5196
5196
 
5197
5197
  // src/telemetry/builders.ts
5198
5198
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import crypto, { createHash } from 'crypto';
7
7
  import * as path from 'path';
8
8
  import { resolve, join, dirname, basename, relative, extname } from 'path';
9
9
  import * as lockfile from 'proper-lockfile';
10
- import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, buildApplicationLifecycleEvent, AuthMechanism, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
10
+ import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
11
11
  import { z } from 'zod';
12
12
  import chalk3 from 'chalk';
13
13
  import { hostname } from 'os';
@@ -2635,7 +2635,7 @@ async function bundleCode(options) {
2635
2635
  }
2636
2636
  return finalOutput;
2637
2637
  } catch (error) {
2638
- if (error instanceof ZapierBundleError) {
2638
+ if (isZapierBundleError(error)) {
2639
2639
  throw error;
2640
2640
  }
2641
2641
  throw new ZapierBundleError(
@@ -3518,7 +3518,7 @@ var generateAppTypesPlugin = defineMethod({
3518
3518
  app: app.key,
3519
3519
  error: errorMessage
3520
3520
  });
3521
- if (error instanceof ZapierValidationError) {
3521
+ if (isZapierValidationError(error)) {
3522
3522
  throw error;
3523
3523
  }
3524
3524
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -3605,7 +3605,7 @@ var buildManifestPlugin = defineMethod({
3605
3605
  app: app.key,
3606
3606
  error: errorMessage
3607
3607
  });
3608
- if (error instanceof ZapierValidationError) {
3608
+ if (isZapierValidationError(error)) {
3609
3609
  throw error;
3610
3610
  }
3611
3611
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -4919,7 +4919,7 @@ var drainTriggerInboxCliPlugin = defineMethod({
4919
4919
  await interactive(message);
4920
4920
  fulfilled++;
4921
4921
  } catch (err) {
4922
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4922
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4923
4923
  skipped++;
4924
4924
  }
4925
4925
  throw err;
@@ -5038,7 +5038,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
5038
5038
  await interactive(message);
5039
5039
  fulfilled++;
5040
5040
  } catch (err) {
5041
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5041
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5042
5042
  skipped++;
5043
5043
  }
5044
5044
  throw err;
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5073
5073
  // package.json with { type: 'json' }
5074
5074
  var package_default = {
5075
5075
  name: "@zapier/zapier-sdk-cli",
5076
- version: "0.66.2"};
5076
+ version: "0.66.4"};
5077
5077
 
5078
5078
  // src/sdk.ts
5079
5079
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -5156,7 +5156,7 @@ function createZapierCliSdk(options = {}) {
5156
5156
 
5157
5157
  // package.json
5158
5158
  var package_default2 = {
5159
- version: "0.66.2"};
5159
+ version: "0.66.4"};
5160
5160
 
5161
5161
  // src/telemetry/builders.ts
5162
5162
  function createCliBaseEvent(context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.66.2",
3
+ "version": "0.66.4",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -94,8 +94,8 @@
94
94
  "typescript": "^5.8.3",
95
95
  "wrap-ansi": "^10.0.0",
96
96
  "zod": "4.3.6",
97
- "@zapier/zapier-sdk": "0.85.0",
98
- "@zapier/zapier-sdk-mcp": "0.18.11"
97
+ "@zapier/zapier-sdk": "0.87.0",
98
+ "@zapier/zapier-sdk-mcp": "0.18.13"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/express": "^5.0.3",