@postman/sdk-config 0.13.0 → 0.15.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.
Files changed (34) hide show
  1. package/dist/index.cjs +16 -3
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +16 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/sdk-config/index.cjs +12 -3
  8. package/dist/sdk-config/index.cjs.map +1 -1
  9. package/dist/sdk-config/index.d.cts +1 -1
  10. package/dist/sdk-config/index.d.ts +1 -1
  11. package/dist/sdk-config/index.js +12 -3
  12. package/dist/sdk-config/index.js.map +1 -1
  13. package/dist/sdk-config/v1/index.cjs +12 -3
  14. package/dist/sdk-config/v1/index.cjs.map +1 -1
  15. package/dist/sdk-config/v1/index.d.cts +33 -2
  16. package/dist/sdk-config/v1/index.d.ts +33 -2
  17. package/dist/sdk-config/v1/index.js +12 -3
  18. package/dist/sdk-config/v1/index.js.map +1 -1
  19. package/dist/sdk-config-ir/index.cjs +7 -0
  20. package/dist/sdk-config-ir/index.cjs.map +1 -1
  21. package/dist/sdk-config-ir/index.d.cts +1 -1
  22. package/dist/sdk-config-ir/index.d.ts +1 -1
  23. package/dist/sdk-config-ir/index.js +7 -0
  24. package/dist/sdk-config-ir/index.js.map +1 -1
  25. package/dist/sdk-config-ir/v1/index.cjs +7 -0
  26. package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
  27. package/dist/sdk-config-ir/v1/index.d.cts +8 -2
  28. package/dist/sdk-config-ir/v1/index.d.ts +8 -2
  29. package/dist/sdk-config-ir/v1/index.js +7 -0
  30. package/dist/sdk-config-ir/v1/index.js.map +1 -1
  31. package/dist/{typescript-BFRxjAah.d.cts → typescript-sGNHFomT.d.cts} +1 -0
  32. package/dist/{typescript-BFRxjAah.d.ts → typescript-sGNHFomT.d.ts} +1 -0
  33. package/package.json +1 -1
  34. 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
- if (value.workflows === true) consume(state, [...sourcePath, "workflows"]);
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."),
@@ -2708,6 +2713,9 @@ var pythonGenerationConfigSchema = zod.z.strictObject({
2708
2713
  extras: zod.z.record(nonEmptyStringSchema, zod.z.array(nonEmptyStringSchema)).optional().describe("Published Python extras and their dependency names."),
2709
2714
  alwaysInitializeOptionals: zod.z.boolean().optional().describe("Whether optional model fields are initialized even when omitted."),
2710
2715
  useTypedDictRequests: zod.z.boolean().optional().describe("Whether request bodies are generated as TypedDict types."),
2716
+ streamAbstraction: zod.z.boolean().optional().describe(
2717
+ "Whether streaming endpoints return Stream and AsyncStream objects instead of plain iterators."
2718
+ ),
2711
2719
  additionalInitExports: zod.z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
2712
2720
  });
2713
2721
  var rubyGenerationConfigSchema = zod.z.strictObject({
@@ -3680,6 +3688,7 @@ function mapPython(config, state, packageConfig, basePath) {
3680
3688
  extras: takeStringArrayRecord(config, ["extras"], state, basePath),
3681
3689
  alwaysInitializeOptionals: takeBoolean(config, ["alwaysInitializeOptionals"], state, basePath),
3682
3690
  useTypedDictRequests: takeBoolean(config, ["useTypedDictRequests"], state, basePath),
3691
+ streamAbstraction: takeBoolean(config, ["streamAbstraction"], state, basePath),
3683
3692
  additionalInitExports: takePythonAdditionalInitExports(config, state, basePath)
3684
3693
  });
3685
3694
  }
@@ -4554,6 +4563,10 @@ var githubOutputSchema2 = zod.z.strictObject({
4554
4563
  /** Raw GitHub credentials. These values can be sensitive and must be handled as secrets. */
4555
4564
  credentials: registryCredentialsSchema.optional().describe("Resolved GitHub credentials."),
4556
4565
  privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private."),
4566
+ /** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
4567
+ workflows: zod.z.boolean().optional().describe(
4568
+ "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."
4569
+ ),
4557
4570
  /** GitHub license block scoped to repository delivery. */
4558
4571
  license: githubLicenseSchema.optional().describe("License configuration for the destination repository."),
4559
4572
  /** GitHub replay control. If omitted, the external publisher applies its default behavior. */