@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
package/dist/index.cjs
CHANGED
|
@@ -2566,7 +2566,9 @@ var goGenerationConfigSchema = zod.z.strictObject({
|
|
|
2566
2566
|
/** Overrides the fern root-client constructor independently from the client type name. */
|
|
2567
2567
|
clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
|
|
2568
2568
|
unionVersion: zod.z.enum(["v0", "v1"]).optional().describe("The representation used for generated Go unions."),
|
|
2569
|
-
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers.")
|
|
2569
|
+
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
|
|
2570
|
+
/** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
|
|
2571
|
+
packageLayout: zod.z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
|
|
2570
2572
|
});
|
|
2571
2573
|
var jvmGenerationConfigSchema = zod.z.strictObject({
|
|
2572
2574
|
packageLayout: zod.z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
|
|
@@ -2713,6 +2715,9 @@ var pythonGenerationConfigSchema = zod.z.strictObject({
|
|
|
2713
2715
|
extras: zod.z.record(nonEmptyStringSchema, zod.z.array(nonEmptyStringSchema)).optional().describe("Published Python extras and their dependency names."),
|
|
2714
2716
|
alwaysInitializeOptionals: zod.z.boolean().optional().describe("Whether optional model fields are initialized even when omitted."),
|
|
2715
2717
|
useTypedDictRequests: zod.z.boolean().optional().describe("Whether request bodies are generated as TypedDict types."),
|
|
2718
|
+
streamAbstraction: zod.z.boolean().optional().describe(
|
|
2719
|
+
"Whether streaming endpoints return Stream and AsyncStream objects instead of plain iterators."
|
|
2720
|
+
),
|
|
2716
2721
|
additionalInitExports: zod.z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
|
|
2717
2722
|
});
|
|
2718
2723
|
var rubyGenerationConfigSchema = zod.z.strictObject({
|
|
@@ -3685,6 +3690,7 @@ function mapPython(config, state, packageConfig, basePath) {
|
|
|
3685
3690
|
extras: takeStringArrayRecord(config, ["extras"], state, basePath),
|
|
3686
3691
|
alwaysInitializeOptionals: takeBoolean(config, ["alwaysInitializeOptionals"], state, basePath),
|
|
3687
3692
|
useTypedDictRequests: takeBoolean(config, ["useTypedDictRequests"], state, basePath),
|
|
3693
|
+
streamAbstraction: takeBoolean(config, ["streamAbstraction"], state, basePath),
|
|
3688
3694
|
additionalInitExports: takePythonAdditionalInitExports(config, state, basePath)
|
|
3689
3695
|
});
|
|
3690
3696
|
}
|
|
@@ -3735,7 +3741,10 @@ function mapGo(config, state, packageConfig, basePath) {
|
|
|
3735
3741
|
state,
|
|
3736
3742
|
basePath
|
|
3737
3743
|
),
|
|
3738
|
-
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
|
|
3744
|
+
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
|
|
3745
|
+
// One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
|
|
3746
|
+
// and `_` and lowercases, so `package-layout` in generators.yml matches too.
|
|
3747
|
+
packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
|
|
3739
3748
|
});
|
|
3740
3749
|
}
|
|
3741
3750
|
function mapCsharp(config, state, packageConfig, basePath) {
|