@postman/sdk-config 0.12.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/README.md +18 -6
- package/dist/index.cjs +170 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +170 -18
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +164 -17
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.d.cts +1 -1
- package/dist/sdk-config/index.d.ts +1 -1
- package/dist/sdk-config/index.js +164 -17
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +164 -17
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +429 -31
- package/dist/sdk-config/v1/index.d.ts +429 -31
- package/dist/sdk-config/v1/index.js +164 -17
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +22 -5
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +1 -1
- package/dist/sdk-config-ir/index.d.ts +1 -1
- package/dist/sdk-config-ir/index.js +22 -5
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +22 -5
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +30 -4
- package/dist/sdk-config-ir/v1/index.d.ts +30 -4
- package/dist/sdk-config-ir/v1/index.js +22 -5
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-Byhn4MqL.d.cts → typescript-BFRxjAah.d.cts} +1 -0
- package/dist/{typescript-Byhn4MqL.d.ts → typescript-BFRxjAah.d.ts} +1 -0
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +35 -12
- package/src/sdk-config-ir/v1/README.md +36 -29
|
@@ -446,7 +446,10 @@ var cliDistributionConfigSchema = zod.z.strictObject({
|
|
|
446
446
|
"A GitHub App used to mint short-lived tokens for every channel without its own tokenSecretName."
|
|
447
447
|
),
|
|
448
448
|
homebrew: cliDistributionHomebrewSchema.optional().describe("Publishes a Homebrew formula to a tap repository on each tagged release."),
|
|
449
|
-
scoop: cliDistributionScoopSchema.optional().describe("Publishes a Scoop manifest to a bucket repository on each tagged release.")
|
|
449
|
+
scoop: cliDistributionScoopSchema.optional().describe("Publishes a Scoop manifest to a bucket repository on each tagged release."),
|
|
450
|
+
githubAttestations: zod.z.union([zod.z.literal("auto"), zod.z.boolean()], { error: 'must be "auto", true, or false' }).optional().describe(
|
|
451
|
+
'Whether the generated release workflow attests build provenance. "auto" (the generator default) attests only on public repositories; true always attests, for private repositories on GitHub Enterprise Cloud; false omits the attestation step and its permissions.'
|
|
452
|
+
)
|
|
450
453
|
}).superRefine((distribution, context) => {
|
|
451
454
|
if (distribution.homebrew !== void 0 || distribution.scoop !== void 0) {
|
|
452
455
|
return;
|
|
@@ -459,6 +462,9 @@ var cliDistributionConfigSchema = zod.z.strictObject({
|
|
|
459
462
|
});
|
|
460
463
|
return;
|
|
461
464
|
}
|
|
465
|
+
if (distribution.githubAttestations !== void 0) {
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
462
468
|
context.addIssue({
|
|
463
469
|
code: "custom",
|
|
464
470
|
message: "distribution must configure at least one channel: homebrew or scoop"
|
|
@@ -470,14 +476,17 @@ var CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE = "CLI_DISTRIBUTION_NON_RELEASE_MODE"
|
|
|
470
476
|
var nonReleaseGithubModes = /* @__PURE__ */ new Set(["pull-request", "push", "commit"]);
|
|
471
477
|
function cliDistributionModeDiagnostic(output, outputPath) {
|
|
472
478
|
const mode = output?.github?.mode;
|
|
473
|
-
|
|
479
|
+
const distribution = output?.distribution;
|
|
480
|
+
if (distribution === void 0 || mode === void 0 || !nonReleaseGithubModes.has(mode)) {
|
|
474
481
|
return void 0;
|
|
475
482
|
}
|
|
483
|
+
const hasChannel = distribution.homebrew !== void 0 || distribution.scoop !== void 0;
|
|
484
|
+
const consequence = hasChannel ? "Homebrew and Scoop publish only after a semantic-version tag is pushed to the repository." : "the release workflow, including its githubAttestations setting, runs only after a semantic-version tag is pushed to the repository.";
|
|
476
485
|
return {
|
|
477
486
|
code: CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE,
|
|
478
487
|
severity: "warning",
|
|
479
488
|
path: [...outputPath, "github", "mode"],
|
|
480
|
-
reason: `GitHub mode "${mode}" does not create a release tag, so
|
|
489
|
+
reason: `GitHub mode "${mode}" does not create a release tag, so ${consequence}`,
|
|
481
490
|
suggestedAction: 'Use mode "release" or "commit-and-release", or push a version tag after merging generated changes.'
|
|
482
491
|
};
|
|
483
492
|
}
|
|
@@ -822,7 +831,7 @@ var pythonGenerationConfigSchema = zod.z.strictObject({
|
|
|
822
831
|
additionalInitExports: zod.z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
|
|
823
832
|
});
|
|
824
833
|
var rubyGenerationConfigSchema = zod.z.strictObject({
|
|
825
|
-
requirePaths: zod.z.array(nonEmptyStringSchema).optional().describe("
|
|
834
|
+
requirePaths: zod.z.array(nonEmptyStringSchema).optional().describe("Files the generated entry file loads with `require`.")
|
|
826
835
|
});
|
|
827
836
|
var rustGenerationConfigSchema = zod.z.strictObject({
|
|
828
837
|
/**
|
|
@@ -1201,6 +1210,7 @@ var publishConfigSchema = zod.z.discriminatedUnion("registry", [
|
|
|
1201
1210
|
zod.z.strictObject({
|
|
1202
1211
|
registry: zod.z.literal("rubygems").describe("Publishes the package to a RubyGems-compatible registry."),
|
|
1203
1212
|
apiKeyEnvironmentVariable: nonEmptyStringSchema.optional().describe("The environment variable containing the RubyGems API key."),
|
|
1213
|
+
...trustedPublishingShape,
|
|
1204
1214
|
...commonPublishShape
|
|
1205
1215
|
}),
|
|
1206
1216
|
zod.z.strictObject({
|
|
@@ -1257,6 +1267,10 @@ var githubOutputSchema = zod.z.strictObject({
|
|
|
1257
1267
|
/** Raw GitHub credentials. These values can be sensitive and must be handled as secrets. */
|
|
1258
1268
|
credentials: registryCredentialsSchema.optional().describe("Resolved GitHub credentials."),
|
|
1259
1269
|
privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private."),
|
|
1270
|
+
/** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
|
|
1271
|
+
workflows: zod.z.boolean().optional().describe(
|
|
1272
|
+
"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."
|
|
1273
|
+
),
|
|
1260
1274
|
/** GitHub license block scoped to repository delivery. */
|
|
1261
1275
|
license: githubLicenseSchema.optional().describe("License configuration for the destination repository."),
|
|
1262
1276
|
/** GitHub replay control. If omitted, the external publisher applies its default behavior. */
|
|
@@ -1271,7 +1285,7 @@ var githubOutputSchema = zod.z.strictObject({
|
|
|
1271
1285
|
var distributionShape = {
|
|
1272
1286
|
/** Valid only for `cli` targets with GitHub delivery; secret names only, never values. */
|
|
1273
1287
|
distribution: cliDistributionConfigSchema.optional().describe(
|
|
1274
|
-
"CLI release channels
|
|
1288
|
+
"CLI release channels and build attestation settings for the generated release workflow; credentials are GitHub Actions secret names."
|
|
1275
1289
|
)
|
|
1276
1290
|
};
|
|
1277
1291
|
var credentialResolutionShape = {
|
|
@@ -1331,6 +1345,9 @@ var apiImportSettingsSchema = zod.z.strictObject({
|
|
|
1331
1345
|
discriminatedUnionV2: zod.z.boolean().optional().describe("Whether oneOf and anyOf schemas use the newer discriminator inference rules."),
|
|
1332
1346
|
undiscriminatedUnionsWithLiterals: zod.z.boolean().optional().describe("Whether literal-bearing unions remain undiscriminated during import."),
|
|
1333
1347
|
inlineAllOfSchemas: zod.z.boolean().optional().describe("Whether schemas composed with allOf are inlined when possible."),
|
|
1348
|
+
inferDiscriminatedUnionBaseProperties: zod.z.boolean().optional().describe(
|
|
1349
|
+
"Whether properties every discriminated-union variant shares are lifted onto the union."
|
|
1350
|
+
),
|
|
1334
1351
|
resolveSchemaCollisions: zod.z.boolean().optional().describe("Whether colliding imported schema names are resolved automatically."),
|
|
1335
1352
|
asyncApiMessageNaming: zod.z.enum(["v1", "v2"]).optional().describe("The naming strategy used for messages imported from AsyncAPI."),
|
|
1336
1353
|
defaultIntegerFormat: zod.z.enum(["int32", "int64", "uint32", "uint64"]).optional().describe("The integer format used when a schema does not declare one.")
|