@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 +1 -1
- package/dist/index.cjs +29 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +19 -6
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.js +19 -6
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +19 -6
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +5684 -80
- package/dist/sdk-config/v1/index.d.ts +5684 -80
- package/dist/sdk-config/v1/index.js +19 -6
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +10 -2
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.js +10 -2
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +10 -2
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +1040 -2
- package/dist/sdk-config-ir/v1/index.d.ts +1040 -2
- package/dist/sdk-config-ir/v1/index.js +10 -2
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
[
|
|
2472
|
-
|
|
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.")
|