@zapier/zapier-sdk-cli 0.86.6 → 0.86.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.86.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 3467793: _This release contains no user-facing changes._
8
+ - Updated dependencies [3467793]
9
+ - @zapier/zapier-sdk@0.115.1
10
+ - @zapier/zapier-sdk-mcp@0.27.7
11
+
3
12
  ## 0.86.6
4
13
 
5
14
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -606,7 +606,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
606
606
 
607
607
  // package.json
608
608
  var package_default = {
609
- version: "0.86.6"};
609
+ version: "0.86.7"};
610
610
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
611
611
  var LOCKFILES = [
612
612
  ["pnpm-lock.yaml", "pnpm"],
@@ -8695,7 +8695,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
8695
8695
  });
8696
8696
  var createWorkflowRef = experimental.declareMethod({ id: "createWorkflow" });
8697
8697
  function createPublicInputSchema(schema) {
8698
- return zod.z.object(
8698
+ const publicSchema = zod.z.object(
8699
8699
  Object.fromEntries(
8700
8700
  Object.entries(schema.shape).filter(
8701
8701
  ([name]) => !experimental.INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -8703,7 +8703,8 @@ function createPublicInputSchema(schema) {
8703
8703
  )
8704
8704
  )
8705
8705
  )
8706
- ).describe(schema.description ?? "Create a workflow");
8706
+ );
8707
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
8707
8708
  }
8708
8709
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
8709
8710
  experimental.CreateWorkflowOptionsSchema
@@ -8726,6 +8727,25 @@ var createWorkflowCliPlugin = experimental.defineMethod({
8726
8727
  creationAccessMethod: "sdk_cli"
8727
8728
  })
8728
8729
  });
8730
+ var importWorkflowRef = experimental.declareMethod({ id: "importWorkflow" });
8731
+ var importWorkflowCliPlugin = experimental.defineMethod({
8732
+ namespace: "cli",
8733
+ name: "importWorkflow",
8734
+ imports: [importWorkflowRef],
8735
+ type: "create",
8736
+ itemType: "Workflow",
8737
+ categories: ["code-workflow"],
8738
+ stability: "experimental",
8739
+ inputSchema: createPublicInputSchema(experimental.ImportWorkflowOptionsSchema),
8740
+ outputSchema: experimental.ImportWorkflowResponseSchema,
8741
+ skipOutputValidation: true,
8742
+ output: "raw",
8743
+ run: ({ imports, input }) => imports.importWorkflow({
8744
+ ...input,
8745
+ creationHarness: experimental.getAgent(),
8746
+ creationAccessMethod: "sdk_cli"
8747
+ })
8748
+ });
8729
8749
  var BOX_WIDTH = 72;
8730
8750
  var BOX_TITLE = "ZAPIER SDK DEPRECATION NOTICE";
8731
8751
  var activeNotices = /* @__PURE__ */ new Map();
@@ -8768,7 +8788,7 @@ function buildBoxLines(message) {
8768
8788
  // package.json with { type: 'json' }
8769
8789
  var package_default2 = {
8770
8790
  name: "@zapier/zapier-sdk-cli",
8771
- version: "0.86.6"};
8791
+ version: "0.86.7"};
8772
8792
 
8773
8793
  // src/sdk.ts
8774
8794
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -8935,11 +8955,13 @@ function createZapierCliSdk3(options = {}) {
8935
8955
  experimental.omitExports(experimental.zapierExperimentalSdkPlugin, [
8936
8956
  "drainTriggerInbox",
8937
8957
  "watchTriggerInbox",
8938
- "createWorkflow"
8958
+ "createWorkflow",
8959
+ "importWorkflow"
8939
8960
  ]),
8940
8961
  drainTriggerInboxCliPlugin,
8941
8962
  watchTriggerInboxCliPlugin,
8942
8963
  createWorkflowCliPlugin,
8964
+ importWorkflowCliPlugin,
8943
8965
  loginPlugin,
8944
8966
  signupPlugin,
8945
8967
  logoutPlugin,
package/dist/cli.mjs CHANGED
@@ -34,7 +34,7 @@ import packageJsonLib, { VersionNotFoundError } from 'package-json';
34
34
  import semver from 'semver';
35
35
  import crossSpawn from 'cross-spawn';
36
36
  import Table from 'cli-table3';
37
- import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$2, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, formatExtensionPluginFailure } from '@zapier/zapier-sdk/experimental';
37
+ import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, ImportWorkflowResponseSchema, injectCliLogin as injectCliLogin$2, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, formatExtensionPluginFailure, ImportWorkflowOptionsSchema } from '@zapier/zapier-sdk/experimental';
38
38
  import { injectCliLogin as injectCliLogin$1, definePlugin as definePlugin$2, omitExports as omitExports$2, zapierBetaSdkPlugin, createSdk as createSdk$1, CORE_OPTIONS_ID as CORE_OPTIONS_ID$1, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin as addPlugin$1, formatExtensionPluginFailure as formatExtensionPluginFailure$1 } from '@zapier/zapier-sdk/beta';
39
39
  import * as readline from 'readline';
40
40
 
@@ -562,7 +562,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
562
562
 
563
563
  // package.json
564
564
  var package_default = {
565
- version: "0.86.6"};
565
+ version: "0.86.7"};
566
566
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
567
567
  var LOCKFILES = [
568
568
  ["pnpm-lock.yaml", "pnpm"],
@@ -8651,7 +8651,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
8651
8651
  });
8652
8652
  var createWorkflowRef = declareMethod$1({ id: "createWorkflow" });
8653
8653
  function createPublicInputSchema(schema) {
8654
- return z.object(
8654
+ const publicSchema = z.object(
8655
8655
  Object.fromEntries(
8656
8656
  Object.entries(schema.shape).filter(
8657
8657
  ([name]) => !INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -8659,7 +8659,8 @@ function createPublicInputSchema(schema) {
8659
8659
  )
8660
8660
  )
8661
8661
  )
8662
- ).describe(schema.description ?? "Create a workflow");
8662
+ );
8663
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
8663
8664
  }
8664
8665
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
8665
8666
  CreateWorkflowOptionsSchema
@@ -8682,6 +8683,25 @@ var createWorkflowCliPlugin = defineMethod$1({
8682
8683
  creationAccessMethod: "sdk_cli"
8683
8684
  })
8684
8685
  });
8686
+ var importWorkflowRef = declareMethod$1({ id: "importWorkflow" });
8687
+ var importWorkflowCliPlugin = defineMethod$1({
8688
+ namespace: "cli",
8689
+ name: "importWorkflow",
8690
+ imports: [importWorkflowRef],
8691
+ type: "create",
8692
+ itemType: "Workflow",
8693
+ categories: ["code-workflow"],
8694
+ stability: "experimental",
8695
+ inputSchema: createPublicInputSchema(ImportWorkflowOptionsSchema),
8696
+ outputSchema: ImportWorkflowResponseSchema,
8697
+ skipOutputValidation: true,
8698
+ output: "raw",
8699
+ run: ({ imports, input }) => imports.importWorkflow({
8700
+ ...input,
8701
+ creationHarness: getAgent(),
8702
+ creationAccessMethod: "sdk_cli"
8703
+ })
8704
+ });
8685
8705
  var BOX_WIDTH = 72;
8686
8706
  var BOX_TITLE = "ZAPIER SDK DEPRECATION NOTICE";
8687
8707
  var activeNotices = /* @__PURE__ */ new Map();
@@ -8724,7 +8744,7 @@ function buildBoxLines(message) {
8724
8744
  // package.json with { type: 'json' }
8725
8745
  var package_default2 = {
8726
8746
  name: "@zapier/zapier-sdk-cli",
8727
- version: "0.86.6"};
8747
+ version: "0.86.7"};
8728
8748
 
8729
8749
  // src/sdk.ts
8730
8750
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -8891,11 +8911,13 @@ function createZapierCliSdk3(options = {}) {
8891
8911
  omitExports$1(zapierExperimentalSdkPlugin, [
8892
8912
  "drainTriggerInbox",
8893
8913
  "watchTriggerInbox",
8894
- "createWorkflow"
8914
+ "createWorkflow",
8915
+ "importWorkflow"
8895
8916
  ]),
8896
8917
  drainTriggerInboxCliPlugin,
8897
8918
  watchTriggerInboxCliPlugin,
8898
8919
  createWorkflowCliPlugin,
8920
+ importWorkflowCliPlugin,
8899
8921
  loginPlugin,
8900
8922
  signupPlugin,
8901
8923
  logoutPlugin,
@@ -7173,7 +7173,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
7173
7173
  });
7174
7174
  var createWorkflowRef = experimental.declareMethod({ id: "createWorkflow" });
7175
7175
  function createPublicInputSchema(schema) {
7176
- return zod.z.object(
7176
+ const publicSchema = zod.z.object(
7177
7177
  Object.fromEntries(
7178
7178
  Object.entries(schema.shape).filter(
7179
7179
  ([name]) => !experimental.INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -7181,7 +7181,8 @@ function createPublicInputSchema(schema) {
7181
7181
  )
7182
7182
  )
7183
7183
  )
7184
- ).describe(schema.description ?? "Create a workflow");
7184
+ );
7185
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
7185
7186
  }
7186
7187
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
7187
7188
  experimental.CreateWorkflowOptionsSchema
@@ -7204,6 +7205,25 @@ var createWorkflowCliPlugin = experimental.defineMethod({
7204
7205
  creationAccessMethod: "sdk_cli"
7205
7206
  })
7206
7207
  });
7208
+ var importWorkflowRef = experimental.declareMethod({ id: "importWorkflow" });
7209
+ var importWorkflowCliPlugin = experimental.defineMethod({
7210
+ namespace: "cli",
7211
+ name: "importWorkflow",
7212
+ imports: [importWorkflowRef],
7213
+ type: "create",
7214
+ itemType: "Workflow",
7215
+ categories: ["code-workflow"],
7216
+ stability: "experimental",
7217
+ inputSchema: createPublicInputSchema(experimental.ImportWorkflowOptionsSchema),
7218
+ outputSchema: experimental.ImportWorkflowResponseSchema,
7219
+ skipOutputValidation: true,
7220
+ output: "raw",
7221
+ run: ({ imports, input }) => imports.importWorkflow({
7222
+ ...input,
7223
+ creationHarness: experimental.getAgent(),
7224
+ creationAccessMethod: "sdk_cli"
7225
+ })
7226
+ });
7207
7227
  function warningBlock({
7208
7228
  banner,
7209
7229
  message,
@@ -7231,7 +7251,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7231
7251
  // package.json with { type: 'json' }
7232
7252
  var package_default = {
7233
7253
  name: "@zapier/zapier-sdk-cli",
7234
- version: "0.86.6"};
7254
+ version: "0.86.7"};
7235
7255
 
7236
7256
  // src/sdk.ts
7237
7257
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7313,11 +7333,13 @@ function createZapierCliSdk(options = {}) {
7313
7333
  experimental.omitExports(experimental.zapierExperimentalSdkPlugin, [
7314
7334
  "drainTriggerInbox",
7315
7335
  "watchTriggerInbox",
7316
- "createWorkflow"
7336
+ "createWorkflow",
7337
+ "importWorkflow"
7317
7338
  ]),
7318
7339
  drainTriggerInboxCliPlugin,
7319
7340
  watchTriggerInboxCliPlugin,
7320
7341
  createWorkflowCliPlugin,
7342
+ importWorkflowCliPlugin,
7321
7343
  loginPlugin,
7322
7344
  signupPlugin,
7323
7345
  logoutPlugin,
@@ -9,7 +9,7 @@ import { resolve, join, dirname, basename, relative, extname } from 'path';
9
9
  import * as lockfile from 'proper-lockfile';
10
10
  import { definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, createSdk, SDK_OPTIONS_ID, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, isCoreCancelledSignal, ZapierAuthenticationError, STABILITY_DEFINITIONS, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
11
11
  import { z } from 'zod';
12
- import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk as createSdk$1, CORE_OPTIONS_ID, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin, formatExtensionPluginFailure } from '@zapier/zapier-sdk/experimental';
12
+ import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, ImportWorkflowResponseSchema, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, ImportWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk as createSdk$1, CORE_OPTIONS_ID, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin, formatExtensionPluginFailure } from '@zapier/zapier-sdk/experimental';
13
13
  import { hostname } from 'os';
14
14
  import inquirer4 from 'inquirer';
15
15
  import chalk5 from 'chalk';
@@ -7132,7 +7132,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
7132
7132
  });
7133
7133
  var createWorkflowRef = declareMethod$1({ id: "createWorkflow" });
7134
7134
  function createPublicInputSchema(schema) {
7135
- return z.object(
7135
+ const publicSchema = z.object(
7136
7136
  Object.fromEntries(
7137
7137
  Object.entries(schema.shape).filter(
7138
7138
  ([name]) => !INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -7140,7 +7140,8 @@ function createPublicInputSchema(schema) {
7140
7140
  )
7141
7141
  )
7142
7142
  )
7143
- ).describe(schema.description ?? "Create a workflow");
7143
+ );
7144
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
7144
7145
  }
7145
7146
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
7146
7147
  CreateWorkflowOptionsSchema
@@ -7163,6 +7164,25 @@ var createWorkflowCliPlugin = defineMethod$1({
7163
7164
  creationAccessMethod: "sdk_cli"
7164
7165
  })
7165
7166
  });
7167
+ var importWorkflowRef = declareMethod$1({ id: "importWorkflow" });
7168
+ var importWorkflowCliPlugin = defineMethod$1({
7169
+ namespace: "cli",
7170
+ name: "importWorkflow",
7171
+ imports: [importWorkflowRef],
7172
+ type: "create",
7173
+ itemType: "Workflow",
7174
+ categories: ["code-workflow"],
7175
+ stability: "experimental",
7176
+ inputSchema: createPublicInputSchema(ImportWorkflowOptionsSchema),
7177
+ outputSchema: ImportWorkflowResponseSchema,
7178
+ skipOutputValidation: true,
7179
+ output: "raw",
7180
+ run: ({ imports, input }) => imports.importWorkflow({
7181
+ ...input,
7182
+ creationHarness: getAgent(),
7183
+ creationAccessMethod: "sdk_cli"
7184
+ })
7185
+ });
7166
7186
  function warningBlock({
7167
7187
  banner,
7168
7188
  message,
@@ -7190,7 +7210,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7190
7210
  // package.json with { type: 'json' }
7191
7211
  var package_default = {
7192
7212
  name: "@zapier/zapier-sdk-cli",
7193
- version: "0.86.6"};
7213
+ version: "0.86.7"};
7194
7214
 
7195
7215
  // src/sdk.ts
7196
7216
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7272,11 +7292,13 @@ function createZapierCliSdk(options = {}) {
7272
7292
  omitExports$1(zapierExperimentalSdkPlugin, [
7273
7293
  "drainTriggerInbox",
7274
7294
  "watchTriggerInbox",
7275
- "createWorkflow"
7295
+ "createWorkflow",
7296
+ "importWorkflow"
7276
7297
  ]),
7277
7298
  drainTriggerInboxCliPlugin,
7278
7299
  watchTriggerInboxCliPlugin,
7279
7300
  createWorkflowCliPlugin,
7301
+ importWorkflowCliPlugin,
7280
7302
  loginPlugin,
7281
7303
  signupPlugin,
7282
7304
  logoutPlugin,
package/dist/index.cjs CHANGED
@@ -7185,7 +7185,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
7185
7185
  });
7186
7186
  var createWorkflowRef = experimental.declareMethod({ id: "createWorkflow" });
7187
7187
  function createPublicInputSchema(schema) {
7188
- return zod.z.object(
7188
+ const publicSchema = zod.z.object(
7189
7189
  Object.fromEntries(
7190
7190
  Object.entries(schema.shape).filter(
7191
7191
  ([name]) => !experimental.INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -7193,7 +7193,8 @@ function createPublicInputSchema(schema) {
7193
7193
  )
7194
7194
  )
7195
7195
  )
7196
- ).describe(schema.description ?? "Create a workflow");
7196
+ );
7197
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
7197
7198
  }
7198
7199
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
7199
7200
  experimental.CreateWorkflowOptionsSchema
@@ -7216,6 +7217,25 @@ experimental.defineMethod({
7216
7217
  creationAccessMethod: "sdk_cli"
7217
7218
  })
7218
7219
  });
7220
+ var importWorkflowRef = experimental.declareMethod({ id: "importWorkflow" });
7221
+ experimental.defineMethod({
7222
+ namespace: "cli",
7223
+ name: "importWorkflow",
7224
+ imports: [importWorkflowRef],
7225
+ type: "create",
7226
+ itemType: "Workflow",
7227
+ categories: ["code-workflow"],
7228
+ stability: "experimental",
7229
+ inputSchema: createPublicInputSchema(experimental.ImportWorkflowOptionsSchema),
7230
+ outputSchema: experimental.ImportWorkflowResponseSchema,
7231
+ skipOutputValidation: true,
7232
+ output: "raw",
7233
+ run: ({ imports, input }) => imports.importWorkflow({
7234
+ ...input,
7235
+ creationHarness: experimental.getAgent(),
7236
+ creationAccessMethod: "sdk_cli"
7237
+ })
7238
+ });
7219
7239
  var activeNotices = /* @__PURE__ */ new Map();
7220
7240
  function collectDeprecationNotice(event) {
7221
7241
  if (event.type !== zapierSdk.DEPRECATION_NOTICE_EVENT) return;
@@ -7232,7 +7252,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7232
7252
  // package.json with { type: 'json' }
7233
7253
  var package_default = {
7234
7254
  name: "@zapier/zapier-sdk-cli",
7235
- version: "0.86.6"};
7255
+ version: "0.86.7"};
7236
7256
 
7237
7257
  // src/sdk.ts
7238
7258
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7326,7 +7346,7 @@ function createZapierCliSdk(options = {}) {
7326
7346
 
7327
7347
  // package.json
7328
7348
  var package_default2 = {
7329
- version: "0.86.6"};
7349
+ version: "0.86.7"};
7330
7350
 
7331
7351
  // src/telemetry/builders.ts
7332
7352
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -31,7 +31,7 @@ import semver from 'semver';
31
31
  import crossSpawn from 'cross-spawn';
32
32
  import wrapAnsi from 'wrap-ansi';
33
33
  import Table from 'cli-table3';
34
- import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema } from '@zapier/zapier-sdk/experimental';
34
+ import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, ImportWorkflowResponseSchema, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, ImportWorkflowOptionsSchema } from '@zapier/zapier-sdk/experimental';
35
35
  import 'commander';
36
36
 
37
37
  var __defProp = Object.defineProperty;
@@ -7144,7 +7144,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
7144
7144
  });
7145
7145
  var createWorkflowRef = declareMethod$1({ id: "createWorkflow" });
7146
7146
  function createPublicInputSchema(schema) {
7147
- return z.object(
7147
+ const publicSchema = z.object(
7148
7148
  Object.fromEntries(
7149
7149
  Object.entries(schema.shape).filter(
7150
7150
  ([name]) => !INTERNAL_CREATE_WORKFLOW_FIELDS.includes(
@@ -7152,7 +7152,8 @@ function createPublicInputSchema(schema) {
7152
7152
  )
7153
7153
  )
7154
7154
  )
7155
- ).describe(schema.description ?? "Create a workflow");
7155
+ );
7156
+ return schema.description === void 0 ? publicSchema : publicSchema.describe(schema.description);
7156
7157
  }
7157
7158
  var CreateWorkflowCliOptionsSchema = createPublicInputSchema(
7158
7159
  CreateWorkflowOptionsSchema
@@ -7175,6 +7176,25 @@ defineMethod$1({
7175
7176
  creationAccessMethod: "sdk_cli"
7176
7177
  })
7177
7178
  });
7179
+ var importWorkflowRef = declareMethod$1({ id: "importWorkflow" });
7180
+ defineMethod$1({
7181
+ namespace: "cli",
7182
+ name: "importWorkflow",
7183
+ imports: [importWorkflowRef],
7184
+ type: "create",
7185
+ itemType: "Workflow",
7186
+ categories: ["code-workflow"],
7187
+ stability: "experimental",
7188
+ inputSchema: createPublicInputSchema(ImportWorkflowOptionsSchema),
7189
+ outputSchema: ImportWorkflowResponseSchema,
7190
+ skipOutputValidation: true,
7191
+ output: "raw",
7192
+ run: ({ imports, input }) => imports.importWorkflow({
7193
+ ...input,
7194
+ creationHarness: getAgent(),
7195
+ creationAccessMethod: "sdk_cli"
7196
+ })
7197
+ });
7178
7198
  var activeNotices = /* @__PURE__ */ new Map();
7179
7199
  function collectDeprecationNotice(event) {
7180
7200
  if (event.type !== DEPRECATION_NOTICE_EVENT) return;
@@ -7191,7 +7211,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7191
7211
  // package.json with { type: 'json' }
7192
7212
  var package_default = {
7193
7213
  name: "@zapier/zapier-sdk-cli",
7194
- version: "0.86.6"};
7214
+ version: "0.86.7"};
7195
7215
 
7196
7216
  // src/sdk.ts
7197
7217
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7285,7 +7305,7 @@ function createZapierCliSdk(options = {}) {
7285
7305
 
7286
7306
  // package.json
7287
7307
  var package_default2 = {
7288
- version: "0.86.6"};
7308
+ version: "0.86.7"};
7289
7309
 
7290
7310
  // src/telemetry/builders.ts
7291
7311
  function createCliBaseEvent(context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.86.6",
3
+ "version": "0.86.7",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -95,9 +95,9 @@
95
95
  "typescript": "^5.8.3",
96
96
  "wrap-ansi": "^10.0.0",
97
97
  "zod": "4.3.6",
98
- "@zapier/zapier-sdk": "0.115.0",
99
- "@zapier/zapier-sdk-mcp": "0.27.6",
100
- "@zapier/kitcore": "0.21.3"
98
+ "@zapier/zapier-sdk": "0.115.1",
99
+ "@zapier/kitcore": "0.21.3",
100
+ "@zapier/zapier-sdk-mcp": "0.27.7"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@types/cross-spawn": "^6.0.6",