@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
@@ -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
  },
@@ -2408,7 +2410,10 @@ var githubOutputSchema = zod.z.strictObject({
2408
2410
  mode: zod.z.enum(["release", "pull-request", "push", "commit", "commit-and-release"]).optional().describe("How generated changes are delivered to the repository."),
2409
2411
  reviewers: reviewersSchema.optional().describe("Reviewers requested for generated pull requests."),
2410
2412
  credentials: githubCredentialsSchema.optional().describe("Credentials used to authenticate GitHub delivery."),
2411
- privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private.")
2413
+ privateRepository: zod.z.boolean().optional().describe("Whether the destination repository is private."),
2414
+ workflows: zod.z.boolean().optional().describe(
2415
+ "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."
2416
+ )
2412
2417
  });
2413
2418
  var filesOutputSchema = zod.z.strictObject({
2414
2419
  delivery: zod.z.literal("files").describe("Writes the generated SDK to a directory."),
@@ -2696,6 +2701,9 @@ var pythonGenerationConfigSchema = zod.z.strictObject({
2696
2701
  extras: zod.z.record(nonEmptyStringSchema, zod.z.array(nonEmptyStringSchema)).optional().describe("Published Python extras and their dependency names."),
2697
2702
  alwaysInitializeOptionals: zod.z.boolean().optional().describe("Whether optional model fields are initialized even when omitted."),
2698
2703
  useTypedDictRequests: zod.z.boolean().optional().describe("Whether request bodies are generated as TypedDict types."),
2704
+ streamAbstraction: zod.z.boolean().optional().describe(
2705
+ "Whether streaming endpoints return Stream and AsyncStream objects instead of plain iterators."
2706
+ ),
2699
2707
  additionalInitExports: zod.z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
2700
2708
  });
2701
2709
  var rubyGenerationConfigSchema = zod.z.strictObject({
@@ -3668,6 +3676,7 @@ function mapPython(config, state, packageConfig, basePath) {
3668
3676
  extras: takeStringArrayRecord(config, ["extras"], state, basePath),
3669
3677
  alwaysInitializeOptionals: takeBoolean(config, ["alwaysInitializeOptionals"], state, basePath),
3670
3678
  useTypedDictRequests: takeBoolean(config, ["useTypedDictRequests"], state, basePath),
3679
+ streamAbstraction: takeBoolean(config, ["streamAbstraction"], state, basePath),
3671
3680
  additionalInitExports: takePythonAdditionalInitExports(config, state, basePath)
3672
3681
  });
3673
3682
  }