@postman/sdk-config 0.13.0 → 0.14.0
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.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +8 -3
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.js +8 -3
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +8 -3
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +29 -0
- package/dist/sdk-config/v1/index.d.ts +29 -0
- package/dist/sdk-config/v1/index.js +8 -3
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +4 -0
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.js +4 -0
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +4 -0
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +3 -0
- package/dist/sdk-config-ir/v1/index.d.ts +3 -0
- package/dist/sdk-config-ir/v1/index.js +4 -0
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +3 -1
package/dist/index.cjs
CHANGED
|
@@ -1278,7 +1278,8 @@ function githubOutput(value, publishInfo, rawOutput, language, sourcePath, state
|
|
|
1278
1278
|
const reviewers = mapReviewers(value.reviewers, [...sourcePath, "reviewers"], state);
|
|
1279
1279
|
if (type) consume(state, [...sourcePath, "type"]);
|
|
1280
1280
|
if (typeof value.makePr === "boolean") consume(state, [...sourcePath, "makePr"]);
|
|
1281
|
-
|
|
1281
|
+
const workflows = typeof value.workflows === "boolean" ? value.workflows : void 0;
|
|
1282
|
+
if (workflows !== void 0) consume(state, [...sourcePath, "workflows"]);
|
|
1282
1283
|
if (stringValue(value.host)) consume(state, [...sourcePath, "host"]);
|
|
1283
1284
|
if (stringValue(value.branch)) consume(state, [...sourcePath, "branch"]);
|
|
1284
1285
|
consumeCredentialObject(value.credentials, [...sourcePath, "credentials"], state);
|
|
@@ -1298,7 +1299,8 @@ function githubOutput(value, publishInfo, rawOutput, language, sourcePath, state
|
|
|
1298
1299
|
...optional("host", stringValue(value.host)),
|
|
1299
1300
|
...optional("branch", stringValue(value.branch)),
|
|
1300
1301
|
mode: value.makePr === true || type === "pullRequest" ? "pull-request" : type === "push" ? "push" : "release",
|
|
1301
|
-
...optional("reviewers", reviewers)
|
|
1302
|
+
...optional("reviewers", reviewers),
|
|
1303
|
+
...workflows === false ? { workflows } : {}
|
|
1302
1304
|
},
|
|
1303
1305
|
...publication ? { publish: publication.publish } : {}
|
|
1304
1306
|
},
|
|
@@ -2420,7 +2422,10 @@ var githubOutputSchema = zod.z.strictObject({
|
|
|
2420
2422
|
mode: zod.z.enum(["release", "pull-request", "push", "commit", "commit-and-release"]).optional().describe("How generated changes are delivered to the repository."),
|
|
2421
2423
|
reviewers: reviewersSchema.optional().describe("Reviewers requested for generated pull requests."),
|
|
2422
2424
|
credentials: githubCredentialsSchema.optional().describe("Credentials used to authenticate GitHub delivery."),
|
|
2423
|
-
privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private.")
|
|
2425
|
+
privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private."),
|
|
2426
|
+
workflows: zod.z.boolean().optional().describe(
|
|
2427
|
+
"Whether generated .github/workflows files are delivered. Defaults to true. When false, newly generated workflow files are skipped and existing ones in the repository are left untouched."
|
|
2428
|
+
)
|
|
2424
2429
|
});
|
|
2425
2430
|
var filesOutputSchema = zod.z.strictObject({
|
|
2426
2431
|
delivery: zod.z.literal("files").describe("Writes the generated SDK to a directory."),
|
|
@@ -4554,6 +4559,10 @@ var githubOutputSchema2 = zod.z.strictObject({
|
|
|
4554
4559
|
/** Raw GitHub credentials. These values can be sensitive and must be handled as secrets. */
|
|
4555
4560
|
credentials: registryCredentialsSchema.optional().describe("Resolved GitHub credentials."),
|
|
4556
4561
|
privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private."),
|
|
4562
|
+
/** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
|
|
4563
|
+
workflows: zod.z.boolean().optional().describe(
|
|
4564
|
+
"Whether generated .github/workflows files are delivered. Defaults to true. When false, newly generated workflow files are skipped and existing ones in the repository are left untouched."
|
|
4565
|
+
),
|
|
4557
4566
|
/** GitHub license block scoped to repository delivery. */
|
|
4558
4567
|
license: githubLicenseSchema.optional().describe("License configuration for the destination repository."),
|
|
4559
4568
|
/** GitHub replay control. If omitted, the external publisher applies its default behavior. */
|