@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/README.md CHANGED
@@ -187,7 +187,7 @@ For each request target, the API request and matching SDK Config target must agr
187
187
  - API version, when present
188
188
  - generator version, when `generatorVersion` is present in SDK Config
189
189
  - every package property included in the API request; the request may omit package properties
190
- - ZIP output without publication settings, paired with a download request
190
+ - ZIP output without publication settings, paired with a download request. `delivery: local` is an alias of `zip` and is normalized to `zip` on parse.
191
191
 
192
192
  Root package properties are inherited by each target and overridden by target package properties.
193
193
  A target output replaces the root output; it is not merged with it.
package/dist/index.cjs CHANGED
@@ -2462,6 +2462,12 @@ var zipOutputSchema = zod.z.strictObject({
2462
2462
  fileName: nonEmptyStringSchema.optional().describe("The generated ZIP archive file name."),
2463
2463
  publish: sdkConfigV1PublishConfigSchema.optional().describe("Optional package registry publication.")
2464
2464
  });
2465
+ var localAliasOutputSchema = zipOutputSchema.extend({
2466
+ delivery: zod.z.literal("local").describe('Alias of "zip": the package on the local machine.')
2467
+ }).transform(normalizeLocalDelivery);
2468
+ function normalizeLocalDelivery(output) {
2469
+ return { ...output, delivery: "zip" };
2470
+ }
2465
2471
  var githubDeliverySchema = zod.z.strictObject({
2466
2472
  delivery: zod.z.literal("github").describe("Delivers the generated SDK to GitHub."),
2467
2473
  github: githubOutputSchema.describe("GitHub repository delivery settings."),
@@ -2469,8 +2475,8 @@ var githubDeliverySchema = zod.z.strictObject({
2469
2475
  });
2470
2476
  var sdkConfigV1OutputConfigSchema = zod.z.discriminatedUnion(
2471
2477
  "delivery",
2472
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema],
2473
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2478
+ [filesOutputSchema, zipOutputSchema, githubDeliverySchema, localAliasOutputSchema],
2479
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2474
2480
  );
2475
2481
  var hostedOutputSchema = zod.z.strictObject({
2476
2482
  delivery: zod.z.literal("hosted").describe("Deploys the generated MCP server to Fern-hosted infrastructure."),
@@ -2480,8 +2486,14 @@ var hostedOutputSchema = zod.z.strictObject({
2480
2486
  });
2481
2487
  var sdkConfigV1McpOutputConfigSchema = zod.z.discriminatedUnion(
2482
2488
  "delivery",
2483
- [filesOutputSchema, zipOutputSchema, githubDeliverySchema, hostedOutputSchema],
2484
- { error: 'output.delivery must be one of "files", "zip", "github", or "hosted"' }
2489
+ [
2490
+ filesOutputSchema,
2491
+ zipOutputSchema,
2492
+ githubDeliverySchema,
2493
+ hostedOutputSchema,
2494
+ localAliasOutputSchema
2495
+ ],
2496
+ { error: 'output.delivery must be one of "files", "zip", "local", "github", or "hosted"' }
2485
2497
  );
2486
2498
  var cliDistributionShape = {
2487
2499
  distribution: cliDistributionConfigSchema.optional().describe(
@@ -2502,9 +2514,10 @@ var sdkConfigV1CliOutputConfigSchema = zod.z.discriminatedUnion(
2502
2514
  [
2503
2515
  filesOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2504
2516
  zipOutputSchema.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub),
2505
- githubDeliverySchema.extend(cliDistributionShape)
2517
+ githubDeliverySchema.extend(cliDistributionShape),
2518
+ localAliasOutputSchema.in.extend(cliDistributionShape).superRefine(rejectDistributionWithoutGithub).transform(normalizeLocalDelivery)
2506
2519
  ],
2507
- { error: 'output.delivery must be one of "files", "zip", or "github"' }
2520
+ { error: 'output.delivery must be one of "files", "zip", "local", or "github"' }
2508
2521
  );
2509
2522
  var sdkConfigV1ReplayConfigSchema = zod.z.strictObject({
2510
2523
  enabled: zod.z.boolean().describe("Whether regeneration reapplies customer-authored repository changes.")
@@ -4706,6 +4719,14 @@ var zipOutputSchema2 = zod.z.strictObject({
4706
4719
  ...distributionShape,
4707
4720
  ...credentialResolutionShape
4708
4721
  });
4722
+ var localAliasOutputSchema2 = zipOutputSchema2.extend({
4723
+ delivery: zod.z.literal("local").describe('Alias of "zip": the package on the local machine.')
4724
+ }).transform(
4725
+ (output) => ({
4726
+ ...output,
4727
+ delivery: "zip"
4728
+ })
4729
+ );
4709
4730
  var githubDeliverySchema2 = zod.z.strictObject({
4710
4731
  delivery: zod.z.literal("github").describe("Delivers the generated SDK to GitHub."),
4711
4732
  github: githubOutputSchema2.describe("GitHub repository delivery settings."),
@@ -4715,9 +4736,9 @@ var githubDeliverySchema2 = zod.z.strictObject({
4715
4736
  });
4716
4737
  var outputConfigSchema = zod.z.discriminatedUnion(
4717
4738
  "delivery",
4718
- [filesOutputSchema2, zipOutputSchema2, githubDeliverySchema2],
4739
+ [filesOutputSchema2, zipOutputSchema2, githubDeliverySchema2, localAliasOutputSchema2],
4719
4740
  {
4720
- error: 'output.delivery must be one of "files", "zip", or "github"'
4741
+ error: 'output.delivery must be one of "files", "zip", "local", or "github"'
4721
4742
  }
4722
4743
  );
4723
4744
  var replayConfigSchema = zod.z.strictObject({