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