@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.
@@ -2450,6 +2450,12 @@ var zipOutputSchema = zod.z.strictObject({
2450
2450
  fileName: nonEmptyStringSchema.optional().describe("The generated ZIP archive file name."),
2451
2451
  publish: sdkConfigV1PublishConfigSchema.optional().describe("Optional package registry publication.")
2452
2452
  });
2453
+ var localAliasOutputSchema = zipOutputSchema.extend({
2454
+ delivery: zod.z.literal("local").describe('Alias of "zip": the package on the local machine.')
2455
+ }).transform(normalizeLocalDelivery);
2456
+ function normalizeLocalDelivery(output) {
2457
+ return { ...output, delivery: "zip" };
2458
+ }
2453
2459
  var githubDeliverySchema = zod.z.strictObject({
2454
2460
  delivery: zod.z.literal("github").describe("Delivers the generated SDK to GitHub."),
2455
2461
  github: githubOutputSchema.describe("GitHub repository delivery settings."),
@@ -2457,8 +2463,8 @@ var githubDeliverySchema = zod.z.strictObject({
2457
2463
  });
2458
2464
  var sdkConfigV1OutputConfigSchema = zod.z.discriminatedUnion(
2459
2465
  "delivery",
2460
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema],
2461
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2466
+ [filesOutputSchema, zipOutputSchema, githubDeliverySchema, localAliasOutputSchema],
2467
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2462
2468
  );
2463
2469
  var hostedOutputSchema = zod.z.strictObject({
2464
2470
  delivery: zod.z.literal("hosted").describe("Deploys the generated MCP server to Fern-hosted infrastructure."),
@@ -2468,8 +2474,14 @@ var hostedOutputSchema = zod.z.strictObject({
2468
2474
  });
2469
2475
  var sdkConfigV1McpOutputConfigSchema = zod.z.discriminatedUnion(
2470
2476
  "delivery",
2471
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema, hostedOutputSchema],
2472
- { error: 'output.delivery must be one of "files", "zip", "github", or "hosted"' }
2477
+ [
2478
+ filesOutputSchema,
2479
+ zipOutputSchema,
2480
+ githubDeliverySchema,
2481
+ hostedOutputSchema,
2482
+ localAliasOutputSchema
2483
+ ],
2484
+ { error: 'output.delivery must be one of "files", "zip", "local", "github", or "hosted"' }
2473
2485
  );
2474
2486
  var cliDistributionShape = {
2475
2487
  distribution: cliDistributionConfigSchema.optional().describe(
@@ -2490,9 +2502,10 @@ var sdkConfigV1CliOutputConfigSchema = zod.z.discriminatedUnion(
2490
2502
  [
2491
2503
  filesOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2492
2504
  zipOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2493
- githubDeliverySchema.extend(cliDistributionShape)
2505
+ githubDeliverySchema.extend(cliDistributionShape),
2506
+ localAliasOutputSchema.in.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub).transform(normalizeLocalDelivery)
2494
2507
  ],
2495
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2508
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2496
2509
  );
2497
2510
  var sdkConfigV1ReplayConfigSchema = zod.z.strictObject({
2498
2511
  enabled: zod.z.boolean().describe("Whether regeneration reapplies customer-authored repository changes.")