@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.
@@ -1,5 +1,5 @@
1
- import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-BFRxjAah.cjs';
2
- export { C as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as SdkConfigV1CliDistributionConfig, b as SdkConfigV1CliDistributionGithubAppConfig, c as SdkConfigV1CliDistributionHomebrewConfig, d as SdkConfigV1CliDistributionScoopConfig, s as sdkConfigV1CliDistributionConfigSchema, t as sdkConfigV1CliDistributionGithubAppSchema, u as sdkConfigV1CliDistributionHomebrewSchema, v as sdkConfigV1CliDistributionScoopSchema, w as sdkConfigV1CliGenerationConfigSchema, x as sdkConfigV1ComposerPackageNameSchema, y as sdkConfigV1CsharpGenerationConfigSchema, A as sdkConfigV1ExactSemverSchema, B as sdkConfigV1GithubActionsSecretNameSchema, E as sdkConfigV1GoGenerationConfigSchema, F as sdkConfigV1GoModulePathSchema, H as sdkConfigV1JavaGenerationConfigSchema, N as sdkConfigV1KotlinGenerationConfigSchema, Q as sdkConfigV1McpGenerationConfigSchema, U as sdkConfigV1NonEmptyStringSchema, W as sdkConfigV1PhpGenerationConfigSchema, X as sdkConfigV1PythonGenerationConfigSchema, Y as sdkConfigV1RelativePathSchema, Z as sdkConfigV1RubyGenerationConfigSchema, _ as sdkConfigV1RustGenerationConfigSchema, $ as sdkConfigV1SwiftGenerationConfigSchema, a0 as sdkConfigV1TerraformGenerationConfigSchema, a1 as sdkConfigV1TypescriptGenerationConfigSchema } from '../../typescript-BFRxjAah.cjs';
1
+ import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-Cc50beVo.cjs';
2
+ export { C as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as SdkConfigV1CliDistributionConfig, b as SdkConfigV1CliDistributionGithubAppConfig, c as SdkConfigV1CliDistributionHomebrewConfig, d as SdkConfigV1CliDistributionScoopConfig, s as sdkConfigV1CliDistributionConfigSchema, t as sdkConfigV1CliDistributionGithubAppSchema, u as sdkConfigV1CliDistributionHomebrewSchema, v as sdkConfigV1CliDistributionScoopSchema, w as sdkConfigV1CliGenerationConfigSchema, x as sdkConfigV1ComposerPackageNameSchema, y as sdkConfigV1CsharpGenerationConfigSchema, A as sdkConfigV1ExactSemverSchema, B as sdkConfigV1GithubActionsSecretNameSchema, E as sdkConfigV1GoGenerationConfigSchema, F as sdkConfigV1GoModulePathSchema, H as sdkConfigV1JavaGenerationConfigSchema, N as sdkConfigV1KotlinGenerationConfigSchema, Q as sdkConfigV1McpGenerationConfigSchema, U as sdkConfigV1NonEmptyStringSchema, W as sdkConfigV1PhpGenerationConfigSchema, X as sdkConfigV1PythonGenerationConfigSchema, Y as sdkConfigV1RelativePathSchema, Z as sdkConfigV1RubyGenerationConfigSchema, _ as sdkConfigV1RustGenerationConfigSchema, $ as sdkConfigV1SwiftGenerationConfigSchema, a0 as sdkConfigV1TerraformGenerationConfigSchema, a1 as sdkConfigV1TypescriptGenerationConfigSchema } from '../../typescript-Cc50beVo.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  declare const sdkConfigV1AuthSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2632,6 +2632,7 @@ declare const sdkConfigV1Schema: z.ZodObject<{
2632
2632
  extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2633
2633
  alwaysInitializeOptionals: z.ZodOptional<z.ZodBoolean>;
2634
2634
  useTypedDictRequests: z.ZodOptional<z.ZodBoolean>;
2635
+ streamAbstraction: z.ZodOptional<z.ZodBoolean>;
2635
2636
  additionalInitExports: z.ZodOptional<z.ZodArray<z.ZodObject<{
2636
2637
  from: z.ZodString;
2637
2638
  imports: z.ZodArray<z.ZodString>;
@@ -4285,6 +4286,10 @@ declare const sdkConfigV1Schema: z.ZodObject<{
4285
4286
  v0: "v0";
4286
4287
  }>>;
4287
4288
  includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
4289
+ packageLayout: z.ZodOptional<z.ZodEnum<{
4290
+ root: "root";
4291
+ types: "types";
4292
+ }>>;
4288
4293
  }, z.core.$strict>>;
4289
4294
  }, z.core.$strict>, z.ZodObject<{
4290
4295
  generatorVersion: z.ZodOptional<z.ZodString>;
@@ -11179,6 +11184,7 @@ declare const sdkConfigV1TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11179
11184
  extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
11180
11185
  alwaysInitializeOptionals: z.ZodOptional<z.ZodBoolean>;
11181
11186
  useTypedDictRequests: z.ZodOptional<z.ZodBoolean>;
11187
+ streamAbstraction: z.ZodOptional<z.ZodBoolean>;
11182
11188
  additionalInitExports: z.ZodOptional<z.ZodArray<z.ZodObject<{
11183
11189
  from: z.ZodString;
11184
11190
  imports: z.ZodArray<z.ZodString>;
@@ -12832,6 +12838,10 @@ declare const sdkConfigV1TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12832
12838
  v0: "v0";
12833
12839
  }>>;
12834
12840
  includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
12841
+ packageLayout: z.ZodOptional<z.ZodEnum<{
12842
+ root: "root";
12843
+ types: "types";
12844
+ }>>;
12835
12845
  }, z.core.$strict>>;
12836
12846
  }, z.core.$strict>, z.ZodObject<{
12837
12847
  generatorVersion: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,5 @@
1
- import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-BFRxjAah.js';
2
- export { C as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as SdkConfigV1CliDistributionConfig, b as SdkConfigV1CliDistributionGithubAppConfig, c as SdkConfigV1CliDistributionHomebrewConfig, d as SdkConfigV1CliDistributionScoopConfig, s as sdkConfigV1CliDistributionConfigSchema, t as sdkConfigV1CliDistributionGithubAppSchema, u as sdkConfigV1CliDistributionHomebrewSchema, v as sdkConfigV1CliDistributionScoopSchema, w as sdkConfigV1CliGenerationConfigSchema, x as sdkConfigV1ComposerPackageNameSchema, y as sdkConfigV1CsharpGenerationConfigSchema, A as sdkConfigV1ExactSemverSchema, B as sdkConfigV1GithubActionsSecretNameSchema, E as sdkConfigV1GoGenerationConfigSchema, F as sdkConfigV1GoModulePathSchema, H as sdkConfigV1JavaGenerationConfigSchema, N as sdkConfigV1KotlinGenerationConfigSchema, Q as sdkConfigV1McpGenerationConfigSchema, U as sdkConfigV1NonEmptyStringSchema, W as sdkConfigV1PhpGenerationConfigSchema, X as sdkConfigV1PythonGenerationConfigSchema, Y as sdkConfigV1RelativePathSchema, Z as sdkConfigV1RubyGenerationConfigSchema, _ as sdkConfigV1RustGenerationConfigSchema, $ as sdkConfigV1SwiftGenerationConfigSchema, a0 as sdkConfigV1TerraformGenerationConfigSchema, a1 as sdkConfigV1TypescriptGenerationConfigSchema } from '../../typescript-BFRxjAah.js';
1
+ import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-Cc50beVo.js';
2
+ export { C as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as SdkConfigV1CliDistributionConfig, b as SdkConfigV1CliDistributionGithubAppConfig, c as SdkConfigV1CliDistributionHomebrewConfig, d as SdkConfigV1CliDistributionScoopConfig, s as sdkConfigV1CliDistributionConfigSchema, t as sdkConfigV1CliDistributionGithubAppSchema, u as sdkConfigV1CliDistributionHomebrewSchema, v as sdkConfigV1CliDistributionScoopSchema, w as sdkConfigV1CliGenerationConfigSchema, x as sdkConfigV1ComposerPackageNameSchema, y as sdkConfigV1CsharpGenerationConfigSchema, A as sdkConfigV1ExactSemverSchema, B as sdkConfigV1GithubActionsSecretNameSchema, E as sdkConfigV1GoGenerationConfigSchema, F as sdkConfigV1GoModulePathSchema, H as sdkConfigV1JavaGenerationConfigSchema, N as sdkConfigV1KotlinGenerationConfigSchema, Q as sdkConfigV1McpGenerationConfigSchema, U as sdkConfigV1NonEmptyStringSchema, W as sdkConfigV1PhpGenerationConfigSchema, X as sdkConfigV1PythonGenerationConfigSchema, Y as sdkConfigV1RelativePathSchema, Z as sdkConfigV1RubyGenerationConfigSchema, _ as sdkConfigV1RustGenerationConfigSchema, $ as sdkConfigV1SwiftGenerationConfigSchema, a0 as sdkConfigV1TerraformGenerationConfigSchema, a1 as sdkConfigV1TypescriptGenerationConfigSchema } from '../../typescript-Cc50beVo.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  declare const sdkConfigV1AuthSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2632,6 +2632,7 @@ declare const sdkConfigV1Schema: z.ZodObject<{
2632
2632
  extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2633
2633
  alwaysInitializeOptionals: z.ZodOptional<z.ZodBoolean>;
2634
2634
  useTypedDictRequests: z.ZodOptional<z.ZodBoolean>;
2635
+ streamAbstraction: z.ZodOptional<z.ZodBoolean>;
2635
2636
  additionalInitExports: z.ZodOptional<z.ZodArray<z.ZodObject<{
2636
2637
  from: z.ZodString;
2637
2638
  imports: z.ZodArray<z.ZodString>;
@@ -4285,6 +4286,10 @@ declare const sdkConfigV1Schema: z.ZodObject<{
4285
4286
  v0: "v0";
4286
4287
  }>>;
4287
4288
  includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
4289
+ packageLayout: z.ZodOptional<z.ZodEnum<{
4290
+ root: "root";
4291
+ types: "types";
4292
+ }>>;
4288
4293
  }, z.core.$strict>>;
4289
4294
  }, z.core.$strict>, z.ZodObject<{
4290
4295
  generatorVersion: z.ZodOptional<z.ZodString>;
@@ -11179,6 +11184,7 @@ declare const sdkConfigV1TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11179
11184
  extras: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
11180
11185
  alwaysInitializeOptionals: z.ZodOptional<z.ZodBoolean>;
11181
11186
  useTypedDictRequests: z.ZodOptional<z.ZodBoolean>;
11187
+ streamAbstraction: z.ZodOptional<z.ZodBoolean>;
11182
11188
  additionalInitExports: z.ZodOptional<z.ZodArray<z.ZodObject<{
11183
11189
  from: z.ZodString;
11184
11190
  imports: z.ZodArray<z.ZodString>;
@@ -12832,6 +12838,10 @@ declare const sdkConfigV1TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12832
12838
  v0: "v0";
12833
12839
  }>>;
12834
12840
  includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
12841
+ packageLayout: z.ZodOptional<z.ZodEnum<{
12842
+ root: "root";
12843
+ types: "types";
12844
+ }>>;
12835
12845
  }, z.core.$strict>>;
12836
12846
  }, z.core.$strict>, z.ZodObject<{
12837
12847
  generatorVersion: z.ZodOptional<z.ZodString>;
@@ -2548,7 +2548,9 @@ var goGenerationConfigSchema = z.strictObject({
2548
2548
  /** Overrides the fern root-client constructor independently from the client type name. */
2549
2549
  clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
2550
2550
  unionVersion: z.enum(["v0", "v1"]).optional().describe("The representation used for generated Go unions."),
2551
- includeLegacyClientOptions: z.boolean().optional().describe("Whether the client retains legacy constructor option helpers.")
2551
+ includeLegacyClientOptions: z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
2552
+ /** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
2553
+ packageLayout: z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
2552
2554
  });
2553
2555
  var jvmGenerationConfigSchema = z.strictObject({
2554
2556
  packageLayout: z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
@@ -2695,6 +2697,9 @@ var pythonGenerationConfigSchema = z.strictObject({
2695
2697
  extras: z.record(nonEmptyStringSchema, z.array(nonEmptyStringSchema)).optional().describe("Published Python extras and their dependency names."),
2696
2698
  alwaysInitializeOptionals: z.boolean().optional().describe("Whether optional model fields are initialized even when omitted."),
2697
2699
  useTypedDictRequests: z.boolean().optional().describe("Whether request bodies are generated as TypedDict types."),
2700
+ streamAbstraction: z.boolean().optional().describe(
2701
+ "Whether streaming endpoints return Stream and AsyncStream objects instead of plain iterators."
2702
+ ),
2698
2703
  additionalInitExports: z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
2699
2704
  });
2700
2705
  var rubyGenerationConfigSchema = z.strictObject({
@@ -3667,6 +3672,7 @@ function mapPython(config, state, packageConfig, basePath) {
3667
3672
  extras: takeStringArrayRecord(config, ["extras"], state, basePath),
3668
3673
  alwaysInitializeOptionals: takeBoolean(config, ["alwaysInitializeOptionals"], state, basePath),
3669
3674
  useTypedDictRequests: takeBoolean(config, ["useTypedDictRequests"], state, basePath),
3675
+ streamAbstraction: takeBoolean(config, ["streamAbstraction"], state, basePath),
3670
3676
  additionalInitExports: takePythonAdditionalInitExports(config, state, basePath)
3671
3677
  });
3672
3678
  }
@@ -3717,7 +3723,10 @@ function mapGo(config, state, packageConfig, basePath) {
3717
3723
  state,
3718
3724
  basePath
3719
3725
  ),
3720
- clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
3726
+ clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
3727
+ // One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
3728
+ // and `_` and lowercases, so `package-layout` in generators.yml matches too.
3729
+ packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
3721
3730
  });
3722
3731
  }
3723
3732
  function mapCsharp(config, state, packageConfig, basePath) {