@postman/sdk-config 0.14.0 → 0.16.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 +11 -2
- 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 +11 -2
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +11 -2
- 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 +11 -2
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +11 -2
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +12 -2
- package/dist/sdk-config/v1/index.d.ts +12 -2
- package/dist/sdk-config/v1/index.js +11 -2
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +6 -1
- 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 +6 -1
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +6 -1
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +17 -2
- package/dist/sdk-config-ir/v1/index.d.ts +17 -2
- package/dist/sdk-config-ir/v1/index.js +6 -1
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-BFRxjAah.d.cts → typescript-Cc50beVo.d.cts} +6 -0
- package/dist/{typescript-BFRxjAah.d.ts → typescript-Cc50beVo.d.ts} +6 -0
- package/package.json +1 -1
|
@@ -2554,7 +2554,9 @@ var goGenerationConfigSchema = zod.z.strictObject({
|
|
|
2554
2554
|
/** Overrides the fern root-client constructor independently from the client type name. */
|
|
2555
2555
|
clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
|
|
2556
2556
|
unionVersion: zod.z.enum(["v0", "v1"]).optional().describe("The representation used for generated Go unions."),
|
|
2557
|
-
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers.")
|
|
2557
|
+
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
|
|
2558
|
+
/** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
|
|
2559
|
+
packageLayout: zod.z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
|
|
2558
2560
|
});
|
|
2559
2561
|
var jvmGenerationConfigSchema = zod.z.strictObject({
|
|
2560
2562
|
packageLayout: zod.z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
|
|
@@ -2701,6 +2703,9 @@ var pythonGenerationConfigSchema = zod.z.strictObject({
|
|
|
2701
2703
|
extras: zod.z.record(nonEmptyStringSchema, zod.z.array(nonEmptyStringSchema)).optional().describe("Published Python extras and their dependency names."),
|
|
2702
2704
|
alwaysInitializeOptionals: zod.z.boolean().optional().describe("Whether optional model fields are initialized even when omitted."),
|
|
2703
2705
|
useTypedDictRequests: zod.z.boolean().optional().describe("Whether request bodies are generated as TypedDict types."),
|
|
2706
|
+
streamAbstraction: zod.z.boolean().optional().describe(
|
|
2707
|
+
"Whether streaming endpoints return Stream and AsyncStream objects instead of plain iterators."
|
|
2708
|
+
),
|
|
2704
2709
|
additionalInitExports: zod.z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
|
|
2705
2710
|
});
|
|
2706
2711
|
var rubyGenerationConfigSchema = zod.z.strictObject({
|
|
@@ -3673,6 +3678,7 @@ function mapPython(config, state, packageConfig, basePath) {
|
|
|
3673
3678
|
extras: takeStringArrayRecord(config, ["extras"], state, basePath),
|
|
3674
3679
|
alwaysInitializeOptionals: takeBoolean(config, ["alwaysInitializeOptionals"], state, basePath),
|
|
3675
3680
|
useTypedDictRequests: takeBoolean(config, ["useTypedDictRequests"], state, basePath),
|
|
3681
|
+
streamAbstraction: takeBoolean(config, ["streamAbstraction"], state, basePath),
|
|
3676
3682
|
additionalInitExports: takePythonAdditionalInitExports(config, state, basePath)
|
|
3677
3683
|
});
|
|
3678
3684
|
}
|
|
@@ -3723,7 +3729,10 @@ function mapGo(config, state, packageConfig, basePath) {
|
|
|
3723
3729
|
state,
|
|
3724
3730
|
basePath
|
|
3725
3731
|
),
|
|
3726
|
-
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
|
|
3732
|
+
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
|
|
3733
|
+
// One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
|
|
3734
|
+
// and `_` and lowercases, so `package-layout` in generators.yml matches too.
|
|
3735
|
+
packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
|
|
3727
3736
|
});
|
|
3728
3737
|
}
|
|
3729
3738
|
function mapCsharp(config, state, packageConfig, basePath) {
|