@postman/sdk-config 0.18.0 → 0.19.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.
package/dist/index.js CHANGED
@@ -2456,6 +2456,12 @@ var zipOutputSchema = z.strictObject({
2456
2456
  fileName: nonEmptyStringSchema.optional().describe("The generated ZIP archive file name."),
2457
2457
  publish: sdkConfigV1PublishConfigSchema.optional().describe("Optional package registry publication.")
2458
2458
  });
2459
+ var localAliasOutputSchema = zipOutputSchema.extend({
2460
+ delivery: z.literal("local").describe('Alias of "zip": the package on the local machine.')
2461
+ }).transform(normalizeLocalDelivery);
2462
+ function normalizeLocalDelivery(output) {
2463
+ return { ...output, delivery: "zip" };
2464
+ }
2459
2465
  var githubDeliverySchema = z.strictObject({
2460
2466
  delivery: z.literal("github").describe("Delivers the generated SDK to GitHub."),
2461
2467
  github: githubOutputSchema.describe("GitHub repository delivery settings."),
@@ -2463,8 +2469,8 @@ var githubDeliverySchema = z.strictObject({
2463
2469
  });
2464
2470
  var sdkConfigV1OutputConfigSchema = z.discriminatedUnion(
2465
2471
  "delivery",
2466
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema],
2467
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2472
+ [filesOutputSchema, zipOutputSchema, githubDeliverySchema, localAliasOutputSchema],
2473
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2468
2474
  );
2469
2475
  var hostedOutputSchema = z.strictObject({
2470
2476
  delivery: z.literal("hosted").describe("Deploys the generated MCP server to Fern-hosted infrastructure."),
@@ -2474,8 +2480,14 @@ var hostedOutputSchema = z.strictObject({
2474
2480
  });
2475
2481
  var sdkConfigV1McpOutputConfigSchema = z.discriminatedUnion(
2476
2482
  "delivery",
2477
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema, hostedOutputSchema],
2478
- { error: 'output.delivery must be one of "files", "zip", "github", or "hosted"' }
2483
+ [
2484
+ filesOutputSchema,
2485
+ zipOutputSchema,
2486
+ githubDeliverySchema,
2487
+ hostedOutputSchema,
2488
+ localAliasOutputSchema
2489
+ ],
2490
+ { error: 'output.delivery must be one of "files", "zip", "local", "github", or "hosted"' }
2479
2491
  );
2480
2492
  var cliDistributionShape = {
2481
2493
  distribution: cliDistributionConfigSchema.optional().describe(
@@ -2496,9 +2508,10 @@ var sdkConfigV1CliOutputConfigSchema = z.discriminatedUnion(
2496
2508
  [
2497
2509
  filesOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2498
2510
  zipOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2499
- githubDeliverySchema.extend(cliDistributionShape)
2511
+ githubDeliverySchema.extend(cliDistributionShape),
2512
+ localAliasOutputSchema.in.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub).transform(normalizeLocalDelivery)
2500
2513
  ],
2501
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2514
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2502
2515
  );
2503
2516
  var sdkConfigV1ReplayConfigSchema = z.strictObject({
2504
2517
  enabled: z.boolean().describe("Whether regeneration reapplies customer-authored repository changes.")
@@ -4700,6 +4713,14 @@ var zipOutputSchema2 = z.strictObject({
4700
4713
  ...distributionShape,
4701
4714
  ...credentialResolutionShape
4702
4715
  });
4716
+ var localAliasOutputSchema2 = zipOutputSchema2.extend({
4717
+ delivery: z.literal("local").describe('Alias of "zip": the package on the local machine.')
4718
+ }).transform(
4719
+ (output) => ({
4720
+ ...output,
4721
+ delivery: "zip"
4722
+ })
4723
+ );
4703
4724
  var githubDeliverySchema2 = z.strictObject({
4704
4725
  delivery: z.literal("github").describe("Delivers the generated SDK to GitHub."),
4705
4726
  github: githubOutputSchema2.describe("GitHub repository delivery settings."),
@@ -4709,9 +4730,9 @@ var githubDeliverySchema2 = z.strictObject({
4709
4730
  });
4710
4731
  var outputConfigSchema = z.discriminatedUnion(
4711
4732
  "delivery",
4712
- [filesOutputSchema2, zipOutputSchema2, githubDeliverySchema2],
4733
+ [filesOutputSchema2, zipOutputSchema2, githubDeliverySchema2, localAliasOutputSchema2],
4713
4734
  {
4714
- error: 'output.delivery must be one of "files", "zip", or "github"'
4735
+ error: 'output.delivery must be one of "files", "zip", "local", or "github"'
4715
4736
  }
4716
4737
  );
4717
4738
  var replayConfigSchema = z.strictObject({