@postman/sdk-config 0.15.0 → 0.17.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 +83 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +78 -20
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +71 -19
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.d.cts +2 -2
- package/dist/sdk-config/index.d.ts +2 -2
- package/dist/sdk-config/index.js +68 -20
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +71 -19
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +230 -22
- package/dist/sdk-config/v1/index.d.ts +230 -22
- package/dist/sdk-config/v1/index.js +68 -20
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +21 -2
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +2 -2
- package/dist/sdk-config-ir/index.d.ts +2 -2
- package/dist/sdk-config-ir/index.js +20 -3
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +21 -2
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +34 -3
- package/dist/sdk-config-ir/v1/index.d.ts +34 -3
- package/dist/sdk-config-ir/v1/index.js +20 -3
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-sGNHFomT.d.cts → typescript-D0YeGxxS.d.cts} +11 -1
- package/dist/{typescript-sGNHFomT.d.ts → typescript-D0YeGxxS.d.ts} +11 -1
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +31 -0
- package/src/sdk-config-ir/v1/README.md +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-
|
|
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
|
|
1
|
+
import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-D0YeGxxS.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 sdkConfigV1ParentRelativePathSchema, X as sdkConfigV1PhpGenerationConfigSchema, Y as sdkConfigV1PythonGenerationConfigSchema, Z as sdkConfigV1RelativePathSchema, _ as sdkConfigV1RubyGenerationConfigSchema, $ as sdkConfigV1RustGenerationConfigSchema, a0 as sdkConfigV1SwiftGenerationConfigSchema, a1 as sdkConfigV1TerraformGenerationConfigSchema, a2 as sdkConfigV1TypescriptGenerationConfigSchema } from '../../typescript-D0YeGxxS.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const sdkConfigV1AuthSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -605,7 +605,6 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
605
605
|
source: z.ZodObject<{
|
|
606
606
|
specs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
607
607
|
path: z.ZodString;
|
|
608
|
-
id: z.ZodString;
|
|
609
608
|
type: z.ZodEnum<{
|
|
610
609
|
openapi: "openapi";
|
|
611
610
|
swagger: "swagger";
|
|
@@ -613,6 +612,9 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
613
612
|
asyncapi: "asyncapi";
|
|
614
613
|
graphql: "graphql";
|
|
615
614
|
}>;
|
|
615
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
616
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
617
|
+
id: z.ZodString;
|
|
616
618
|
name: z.ZodOptional<z.ZodString>;
|
|
617
619
|
namespace: z.ZodOptional<z.ZodString>;
|
|
618
620
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -648,12 +650,10 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
648
650
|
uint32: "uint32";
|
|
649
651
|
uint64: "uint64";
|
|
650
652
|
}>>;
|
|
653
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
651
654
|
}, z.core.$strict>>;
|
|
652
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
654
655
|
}, z.core.$strict>, z.ZodObject<{
|
|
655
656
|
url: z.ZodURL;
|
|
656
|
-
id: z.ZodString;
|
|
657
657
|
type: z.ZodEnum<{
|
|
658
658
|
openapi: "openapi";
|
|
659
659
|
swagger: "swagger";
|
|
@@ -661,6 +661,9 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
661
661
|
asyncapi: "asyncapi";
|
|
662
662
|
graphql: "graphql";
|
|
663
663
|
}>;
|
|
664
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
665
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
666
|
+
id: z.ZodString;
|
|
664
667
|
name: z.ZodOptional<z.ZodString>;
|
|
665
668
|
namespace: z.ZodOptional<z.ZodString>;
|
|
666
669
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -696,9 +699,61 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
696
699
|
uint32: "uint32";
|
|
697
700
|
uint64: "uint64";
|
|
698
701
|
}>>;
|
|
702
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
703
|
+
}, z.core.$strict>>;
|
|
704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
705
|
+
proto: z.ZodObject<{
|
|
706
|
+
root: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
707
|
+
git: z.ZodObject<{
|
|
708
|
+
repo: z.ZodString;
|
|
709
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
710
|
+
path: z.ZodString;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
}, z.core.$strict>]>;
|
|
713
|
+
target: z.ZodOptional<z.ZodString>;
|
|
714
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
715
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
716
|
+
localGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
717
|
+
fromOpenApi: z.ZodDefault<z.ZodBoolean>;
|
|
718
|
+
}, z.core.$strict>;
|
|
719
|
+
id: z.ZodString;
|
|
720
|
+
name: z.ZodOptional<z.ZodString>;
|
|
721
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
722
|
+
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
respectNullableSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
724
|
+
titleAsSchemaName: z.ZodOptional<z.ZodBoolean>;
|
|
725
|
+
coerceEnumsToLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
+
idiomaticRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
wrapReferencesToNullableInOptional: z.ZodOptional<z.ZodBoolean>;
|
|
728
|
+
coerceOptionalSchemasToNullable: z.ZodOptional<z.ZodBoolean>;
|
|
729
|
+
pathParameterOrder: z.ZodOptional<z.ZodEnum<{
|
|
730
|
+
"url-order": "url-order";
|
|
731
|
+
"spec-order": "spec-order";
|
|
732
|
+
}>>;
|
|
733
|
+
onlyIncludeReferencedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
734
|
+
objectQueryParameters: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
+
typeDatesAsStrings: z.ZodOptional<z.ZodBoolean>;
|
|
736
|
+
groupMultiApiEnvironments: z.ZodOptional<z.ZodBoolean>;
|
|
737
|
+
ignoreTags: z.ZodOptional<z.ZodBoolean>;
|
|
738
|
+
disambiguateRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
respectReadonlySchemas: z.ZodOptional<z.ZodBoolean>;
|
|
740
|
+
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
741
|
+
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
742
|
+
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
743
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
744
|
+
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
745
|
+
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
746
|
+
v1: "v1";
|
|
747
|
+
v2: "v2";
|
|
748
|
+
}>>;
|
|
749
|
+
defaultIntegerFormat: z.ZodOptional<z.ZodEnum<{
|
|
750
|
+
int32: "int32";
|
|
751
|
+
int64: "int64";
|
|
752
|
+
uint32: "uint32";
|
|
753
|
+
uint64: "uint64";
|
|
754
|
+
}>>;
|
|
755
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
699
756
|
}, z.core.$strict>>;
|
|
700
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
701
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
702
757
|
}, z.core.$strict>]>>;
|
|
703
758
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
704
759
|
respectNullableSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -733,6 +788,7 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
733
788
|
uint32: "uint32";
|
|
734
789
|
uint64: "uint64";
|
|
735
790
|
}>>;
|
|
791
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
736
792
|
}, z.core.$strict>>;
|
|
737
793
|
}, z.core.$strict>;
|
|
738
794
|
api: z.ZodPrefault<z.ZodObject<{
|
|
@@ -4286,6 +4342,10 @@ declare const sdkConfigV1Schema: z.ZodObject<{
|
|
|
4286
4342
|
v0: "v0";
|
|
4287
4343
|
}>>;
|
|
4288
4344
|
includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
|
|
4345
|
+
packageLayout: z.ZodOptional<z.ZodEnum<{
|
|
4346
|
+
root: "root";
|
|
4347
|
+
types: "types";
|
|
4348
|
+
}>>;
|
|
4289
4349
|
}, z.core.$strict>>;
|
|
4290
4350
|
}, z.core.$strict>, z.ZodObject<{
|
|
4291
4351
|
generatorVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -9774,10 +9834,39 @@ declare const sdkConfigV1ReplayConfigSchema: z.ZodObject<{
|
|
|
9774
9834
|
}, z.core.$strict>;
|
|
9775
9835
|
type SdkConfigV1ReplayConfig = z.infer<typeof sdkConfigV1ReplayConfigSchema>;
|
|
9776
9836
|
|
|
9777
|
-
|
|
9837
|
+
declare const sdkConfigV1GitRemoteSchema: z.ZodObject<{
|
|
9838
|
+
repo: z.ZodString;
|
|
9839
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
9840
|
+
path: z.ZodString;
|
|
9841
|
+
}, z.core.$strict>;
|
|
9842
|
+
declare const sdkConfigV1ProtobufRootSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9843
|
+
git: z.ZodObject<{
|
|
9844
|
+
repo: z.ZodString;
|
|
9845
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
9846
|
+
path: z.ZodString;
|
|
9847
|
+
}, z.core.$strict>;
|
|
9848
|
+
}, z.core.$strict>]>;
|
|
9849
|
+
declare const sdkConfigV1ProtobufSourceSchema: z.ZodObject<{
|
|
9850
|
+
root: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9851
|
+
git: z.ZodObject<{
|
|
9852
|
+
repo: z.ZodString;
|
|
9853
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
9854
|
+
path: z.ZodString;
|
|
9855
|
+
}, z.core.$strict>;
|
|
9856
|
+
}, z.core.$strict>]>;
|
|
9857
|
+
target: z.ZodOptional<z.ZodString>;
|
|
9858
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9859
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9860
|
+
localGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
9861
|
+
fromOpenApi: z.ZodDefault<z.ZodBoolean>;
|
|
9862
|
+
}, z.core.$strict>;
|
|
9863
|
+
/**
|
|
9864
|
+
* A source is a local path, an HTTP(S) URL, or protobuf definitions; the locators are mutually
|
|
9865
|
+
* exclusive. A spec with a proto locator reports the protobuf option's issues so its errors stay
|
|
9866
|
+
* actionable instead of collapsing into the generic locator message.
|
|
9867
|
+
*/
|
|
9778
9868
|
declare const sdkConfigV1SourceSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
9779
9869
|
path: z.ZodString;
|
|
9780
|
-
id: z.ZodString;
|
|
9781
9870
|
type: z.ZodEnum<{
|
|
9782
9871
|
openapi: "openapi";
|
|
9783
9872
|
swagger: "swagger";
|
|
@@ -9785,6 +9874,9 @@ declare const sdkConfigV1SourceSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
9785
9874
|
asyncapi: "asyncapi";
|
|
9786
9875
|
graphql: "graphql";
|
|
9787
9876
|
}>;
|
|
9877
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9878
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9879
|
+
id: z.ZodString;
|
|
9788
9880
|
name: z.ZodOptional<z.ZodString>;
|
|
9789
9881
|
namespace: z.ZodOptional<z.ZodString>;
|
|
9790
9882
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -9820,12 +9912,10 @@ declare const sdkConfigV1SourceSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
9820
9912
|
uint32: "uint32";
|
|
9821
9913
|
uint64: "uint64";
|
|
9822
9914
|
}>>;
|
|
9915
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
9823
9916
|
}, z.core.$strict>>;
|
|
9824
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9825
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9826
9917
|
}, z.core.$strict>, z.ZodObject<{
|
|
9827
9918
|
url: z.ZodURL;
|
|
9828
|
-
id: z.ZodString;
|
|
9829
9919
|
type: z.ZodEnum<{
|
|
9830
9920
|
openapi: "openapi";
|
|
9831
9921
|
swagger: "swagger";
|
|
@@ -9833,6 +9923,9 @@ declare const sdkConfigV1SourceSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
9833
9923
|
asyncapi: "asyncapi";
|
|
9834
9924
|
graphql: "graphql";
|
|
9835
9925
|
}>;
|
|
9926
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9927
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9928
|
+
id: z.ZodString;
|
|
9836
9929
|
name: z.ZodOptional<z.ZodString>;
|
|
9837
9930
|
namespace: z.ZodOptional<z.ZodString>;
|
|
9838
9931
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -9868,14 +9961,65 @@ declare const sdkConfigV1SourceSpecSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
9868
9961
|
uint32: "uint32";
|
|
9869
9962
|
uint64: "uint64";
|
|
9870
9963
|
}>>;
|
|
9964
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
9965
|
+
}, z.core.$strict>>;
|
|
9966
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9967
|
+
proto: z.ZodObject<{
|
|
9968
|
+
root: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9969
|
+
git: z.ZodObject<{
|
|
9970
|
+
repo: z.ZodString;
|
|
9971
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
9972
|
+
path: z.ZodString;
|
|
9973
|
+
}, z.core.$strict>;
|
|
9974
|
+
}, z.core.$strict>]>;
|
|
9975
|
+
target: z.ZodOptional<z.ZodString>;
|
|
9976
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9977
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9978
|
+
localGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
9979
|
+
fromOpenApi: z.ZodDefault<z.ZodBoolean>;
|
|
9980
|
+
}, z.core.$strict>;
|
|
9981
|
+
id: z.ZodString;
|
|
9982
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9983
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
9984
|
+
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
9985
|
+
respectNullableSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
9986
|
+
titleAsSchemaName: z.ZodOptional<z.ZodBoolean>;
|
|
9987
|
+
coerceEnumsToLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
9988
|
+
idiomaticRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
9989
|
+
wrapReferencesToNullableInOptional: z.ZodOptional<z.ZodBoolean>;
|
|
9990
|
+
coerceOptionalSchemasToNullable: z.ZodOptional<z.ZodBoolean>;
|
|
9991
|
+
pathParameterOrder: z.ZodOptional<z.ZodEnum<{
|
|
9992
|
+
"url-order": "url-order";
|
|
9993
|
+
"spec-order": "spec-order";
|
|
9994
|
+
}>>;
|
|
9995
|
+
onlyIncludeReferencedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
9996
|
+
objectQueryParameters: z.ZodOptional<z.ZodBoolean>;
|
|
9997
|
+
typeDatesAsStrings: z.ZodOptional<z.ZodBoolean>;
|
|
9998
|
+
groupMultiApiEnvironments: z.ZodOptional<z.ZodBoolean>;
|
|
9999
|
+
ignoreTags: z.ZodOptional<z.ZodBoolean>;
|
|
10000
|
+
disambiguateRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
10001
|
+
respectReadonlySchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10002
|
+
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
10003
|
+
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
10004
|
+
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10005
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
10006
|
+
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
10007
|
+
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
10008
|
+
v1: "v1";
|
|
10009
|
+
v2: "v2";
|
|
10010
|
+
}>>;
|
|
10011
|
+
defaultIntegerFormat: z.ZodOptional<z.ZodEnum<{
|
|
10012
|
+
int32: "int32";
|
|
10013
|
+
int64: "int64";
|
|
10014
|
+
uint32: "uint32";
|
|
10015
|
+
uint64: "uint64";
|
|
10016
|
+
}>>;
|
|
10017
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
9871
10018
|
}, z.core.$strict>>;
|
|
9872
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9873
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9874
10019
|
}, z.core.$strict>]>;
|
|
9875
10020
|
declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
9876
10021
|
specs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
9877
10022
|
path: z.ZodString;
|
|
9878
|
-
id: z.ZodString;
|
|
9879
10023
|
type: z.ZodEnum<{
|
|
9880
10024
|
openapi: "openapi";
|
|
9881
10025
|
swagger: "swagger";
|
|
@@ -9883,6 +10027,9 @@ declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
|
9883
10027
|
asyncapi: "asyncapi";
|
|
9884
10028
|
graphql: "graphql";
|
|
9885
10029
|
}>;
|
|
10030
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10031
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10032
|
+
id: z.ZodString;
|
|
9886
10033
|
name: z.ZodOptional<z.ZodString>;
|
|
9887
10034
|
namespace: z.ZodOptional<z.ZodString>;
|
|
9888
10035
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -9918,12 +10065,10 @@ declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
|
9918
10065
|
uint32: "uint32";
|
|
9919
10066
|
uint64: "uint64";
|
|
9920
10067
|
}>>;
|
|
10068
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
9921
10069
|
}, z.core.$strict>>;
|
|
9922
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9923
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9924
10070
|
}, z.core.$strict>, z.ZodObject<{
|
|
9925
10071
|
url: z.ZodURL;
|
|
9926
|
-
id: z.ZodString;
|
|
9927
10072
|
type: z.ZodEnum<{
|
|
9928
10073
|
openapi: "openapi";
|
|
9929
10074
|
swagger: "swagger";
|
|
@@ -9931,6 +10076,9 @@ declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
|
9931
10076
|
asyncapi: "asyncapi";
|
|
9932
10077
|
graphql: "graphql";
|
|
9933
10078
|
}>;
|
|
10079
|
+
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10080
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10081
|
+
id: z.ZodString;
|
|
9934
10082
|
name: z.ZodOptional<z.ZodString>;
|
|
9935
10083
|
namespace: z.ZodOptional<z.ZodString>;
|
|
9936
10084
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
@@ -9966,9 +10114,61 @@ declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
|
9966
10114
|
uint32: "uint32";
|
|
9967
10115
|
uint64: "uint64";
|
|
9968
10116
|
}>>;
|
|
10117
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
10118
|
+
}, z.core.$strict>>;
|
|
10119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10120
|
+
proto: z.ZodObject<{
|
|
10121
|
+
root: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
10122
|
+
git: z.ZodObject<{
|
|
10123
|
+
repo: z.ZodString;
|
|
10124
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
10125
|
+
path: z.ZodString;
|
|
10126
|
+
}, z.core.$strict>;
|
|
10127
|
+
}, z.core.$strict>]>;
|
|
10128
|
+
target: z.ZodOptional<z.ZodString>;
|
|
10129
|
+
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10130
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10131
|
+
localGeneration: z.ZodOptional<z.ZodBoolean>;
|
|
10132
|
+
fromOpenApi: z.ZodDefault<z.ZodBoolean>;
|
|
10133
|
+
}, z.core.$strict>;
|
|
10134
|
+
id: z.ZodString;
|
|
10135
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10136
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
10137
|
+
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
10138
|
+
respectNullableSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10139
|
+
titleAsSchemaName: z.ZodOptional<z.ZodBoolean>;
|
|
10140
|
+
coerceEnumsToLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
10141
|
+
idiomaticRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
10142
|
+
wrapReferencesToNullableInOptional: z.ZodOptional<z.ZodBoolean>;
|
|
10143
|
+
coerceOptionalSchemasToNullable: z.ZodOptional<z.ZodBoolean>;
|
|
10144
|
+
pathParameterOrder: z.ZodOptional<z.ZodEnum<{
|
|
10145
|
+
"url-order": "url-order";
|
|
10146
|
+
"spec-order": "spec-order";
|
|
10147
|
+
}>>;
|
|
10148
|
+
onlyIncludeReferencedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10149
|
+
objectQueryParameters: z.ZodOptional<z.ZodBoolean>;
|
|
10150
|
+
typeDatesAsStrings: z.ZodOptional<z.ZodBoolean>;
|
|
10151
|
+
groupMultiApiEnvironments: z.ZodOptional<z.ZodBoolean>;
|
|
10152
|
+
ignoreTags: z.ZodOptional<z.ZodBoolean>;
|
|
10153
|
+
disambiguateRequestNames: z.ZodOptional<z.ZodBoolean>;
|
|
10154
|
+
respectReadonlySchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10155
|
+
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
10156
|
+
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
10157
|
+
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
10158
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
10159
|
+
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
10160
|
+
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
10161
|
+
v1: "v1";
|
|
10162
|
+
v2: "v2";
|
|
10163
|
+
}>>;
|
|
10164
|
+
defaultIntegerFormat: z.ZodOptional<z.ZodEnum<{
|
|
10165
|
+
int32: "int32";
|
|
10166
|
+
int64: "int64";
|
|
10167
|
+
uint32: "uint32";
|
|
10168
|
+
uint64: "uint64";
|
|
10169
|
+
}>>;
|
|
10170
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
9969
10171
|
}, z.core.$strict>>;
|
|
9970
|
-
overlays: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9971
|
-
overrides: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9972
10172
|
}, z.core.$strict>]>>;
|
|
9973
10173
|
apiImportSettings: z.ZodOptional<z.ZodObject<{
|
|
9974
10174
|
respectNullableSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10003,8 +10203,12 @@ declare const sdkConfigV1SourceConfigSchema: z.ZodObject<{
|
|
|
10003
10203
|
uint32: "uint32";
|
|
10004
10204
|
uint64: "uint64";
|
|
10005
10205
|
}>>;
|
|
10206
|
+
respectByteFormat: z.ZodOptional<z.ZodBoolean>;
|
|
10006
10207
|
}, z.core.$strict>>;
|
|
10007
10208
|
}, z.core.$strict>;
|
|
10209
|
+
type SdkConfigV1GitRemote = z.infer<typeof sdkConfigV1GitRemoteSchema>;
|
|
10210
|
+
type SdkConfigV1ProtobufRoot = z.infer<typeof sdkConfigV1ProtobufRootSchema>;
|
|
10211
|
+
type SdkConfigV1ProtobufSource = z.infer<typeof sdkConfigV1ProtobufSourceSchema>;
|
|
10008
10212
|
type SdkConfigV1SourceSpec = z.infer<typeof sdkConfigV1SourceSpecSchema>;
|
|
10009
10213
|
type SdkConfigV1SourceConfig = z.infer<typeof sdkConfigV1SourceConfigSchema>;
|
|
10010
10214
|
|
|
@@ -12834,6 +13038,10 @@ declare const sdkConfigV1TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12834
13038
|
v0: "v0";
|
|
12835
13039
|
}>>;
|
|
12836
13040
|
includeLegacyClientOptions: z.ZodOptional<z.ZodBoolean>;
|
|
13041
|
+
packageLayout: z.ZodOptional<z.ZodEnum<{
|
|
13042
|
+
root: "root";
|
|
13043
|
+
types: "types";
|
|
13044
|
+
}>>;
|
|
12837
13045
|
}, z.core.$strict>>;
|
|
12838
13046
|
}, z.core.$strict>, z.ZodObject<{
|
|
12839
13047
|
generatorVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -17419,4 +17627,4 @@ declare class FernConfigMappingError extends Error {
|
|
|
17419
17627
|
/** Converts one resolved Fern generator group into a validated customer-facing SDK Config. */
|
|
17420
17628
|
declare function mapFernConfigToSdkConfigV1(input: FernResolvedGeneratorGroupInput): FernConfigMappingResult;
|
|
17421
17629
|
|
|
17422
|
-
export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1CliOutputConfig, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, SdkConfigDiagnostic as SdkConfigV1Diagnostic, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, type SdkConfigV1WebhookSignature, type SdkConfigV1WebhookSignatureInput, getSdkConfigV1Diagnostics, mapFernConfigToSdkConfigV1, parseSdkConfigV1, parseSdkConfigV1ForConsumption, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1CliOutputConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
|
|
17630
|
+
export { type FernConfigMappingDiagnostic, FernConfigMappingError, type FernConfigMappingResult, type FernResolvedGeneratorGroupInput, type FernResolvedGeneratorInput, type FernSdkConfigLanguage, SDK_CONFIG_V1_SCHEMA_VERSION, type SdkConfigV1, type SdkConfigV1ApiConfig, type SdkConfigV1ApiConfigInput, type SdkConfigV1CliOutputConfig, type SdkConfigV1ClientConfig, type SdkConfigV1ClientConfigInput, type SdkConfigV1ClientConfigOverride, type SdkConfigV1Dependency, SdkConfigDiagnostic as SdkConfigV1Diagnostic, type SdkConfigV1DocsConfig, type SdkConfigV1Document, type SdkConfigV1GenerationConfig, type SdkConfigV1GenerationConfigInput, type SdkConfigV1GenerationConfigOverride, type SdkConfigV1GitRemote, type SdkConfigV1Input, type SdkConfigV1OutputConfig, type SdkConfigV1PackageConfig, type SdkConfigV1ProtobufRoot, type SdkConfigV1ProtobufSource, type SdkConfigV1PublishConfig, type SdkConfigV1PublishRegistry, type SdkConfigV1ReplayConfig, type SdkConfigV1SourceConfig, type SdkConfigV1SourceSpec, type SdkConfigV1Target, type SdkConfigV1WebhookSignature, type SdkConfigV1WebhookSignatureInput, getSdkConfigV1Diagnostics, mapFernConfigToSdkConfigV1, parseSdkConfigV1, parseSdkConfigV1ForConsumption, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, sdkConfigV1CliOutputConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1GitRemoteSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, sdkConfigV1ProtobufRootSchema, sdkConfigV1ProtobufSourceSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, sdkConfigV1ReplayConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, sdkConfigV1TargetSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
|
|
@@ -7,6 +7,10 @@ var relativePathSchema = nonEmptyStringSchema.refine(
|
|
|
7
7
|
(value) => !/^(?:[\\/]|[A-Za-z]:)/.test(value) && !value.split(/[\\/]/).some((segment) => segment === ".."),
|
|
8
8
|
{ message: "must be a relative path without parent directory segments" }
|
|
9
9
|
);
|
|
10
|
+
var parentRelativePathSchema = nonEmptyStringSchema.refine(
|
|
11
|
+
(value) => !/^(?:[\\/]|[A-Za-z]:)/.test(value),
|
|
12
|
+
{ message: "must be a relative path" }
|
|
13
|
+
);
|
|
10
14
|
var exactSemverSchema = z.string().refine(
|
|
11
15
|
(value) => {
|
|
12
16
|
if (value.trim() !== value || !/^\d/.test(value)) {
|
|
@@ -2482,7 +2486,8 @@ var apiImportSettingsSchema = z.strictObject({
|
|
|
2482
2486
|
),
|
|
2483
2487
|
resolveSchemaCollisions: z.boolean().optional().describe("Whether colliding imported schema names are resolved automatically."),
|
|
2484
2488
|
asyncApiMessageNaming: z.enum(["v1", "v2"]).optional().describe("The naming strategy used for messages imported from AsyncAPI."),
|
|
2485
|
-
defaultIntegerFormat: z.enum(["int32", "int64", "uint32", "uint64"]).optional().describe("The integer format used when a schema does not declare one.")
|
|
2489
|
+
defaultIntegerFormat: z.enum(["int32", "int64", "uint32", "uint64"]).optional().describe("The integer format used when a schema does not declare one."),
|
|
2490
|
+
respectByteFormat: z.boolean().optional().describe("Whether string schemas with format byte are imported as base64-encoded bytes.")
|
|
2486
2491
|
});
|
|
2487
2492
|
var sourceSpecTypeSchema = z.enum([
|
|
2488
2493
|
"openapi",
|
|
@@ -2493,28 +2498,66 @@ var sourceSpecTypeSchema = z.enum([
|
|
|
2493
2498
|
]);
|
|
2494
2499
|
|
|
2495
2500
|
// src/sdk-config/v1/source.ts
|
|
2496
|
-
var
|
|
2501
|
+
var commonSourceSpecShape = {
|
|
2497
2502
|
id: nonEmptyStringSchema.describe("A unique identifier for this API source."),
|
|
2498
|
-
type: sourceSpecTypeSchema.describe("The API description format of this source."),
|
|
2499
2503
|
name: nonEmptyStringSchema.optional().describe("A human-readable name for this API source."),
|
|
2500
2504
|
namespace: nonEmptyStringSchema.optional().describe("A namespace used to isolate this source in a multi-source SDK."),
|
|
2501
|
-
apiImportSettings: apiImportSettingsSchema.optional().describe("Import behavior that overrides the source-level defaults for this spec.")
|
|
2505
|
+
apiImportSettings: apiImportSettingsSchema.optional().describe("Import behavior that overrides the source-level defaults for this spec.")
|
|
2506
|
+
};
|
|
2507
|
+
var sourceSpecShape = {
|
|
2508
|
+
...commonSourceSpecShape,
|
|
2509
|
+
type: sourceSpecTypeSchema.describe("The API description format of this source."),
|
|
2502
2510
|
overlays: z.array(relativePathSchema).optional().describe("Relative paths to overlays applied to this source in order."),
|
|
2503
2511
|
overrides: z.array(relativePathSchema).optional().describe("Relative paths to source override files applied in order.")
|
|
2504
2512
|
};
|
|
2505
|
-
var
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2513
|
+
var sdkConfigV1GitRemoteSchema = z.strictObject({
|
|
2514
|
+
repo: nonEmptyStringSchema.describe("The git repository URL."),
|
|
2515
|
+
ref: nonEmptyStringSchema.optional().describe("The branch, tag, or commit SHA. Defaults to the repository's default branch."),
|
|
2516
|
+
path: relativePathSchema.describe("The path to the directory within the repository.")
|
|
2517
|
+
});
|
|
2518
|
+
var sdkConfigV1ProtobufRootSchema = z.union([
|
|
2519
|
+
parentRelativePathSchema.describe("The relative path to the .proto directory root."),
|
|
2520
|
+
z.strictObject({
|
|
2521
|
+
git: sdkConfigV1GitRemoteSchema.describe("The git remote holding the .proto files.")
|
|
2522
|
+
}).describe("A .proto directory root in a remote git repository.")
|
|
2523
|
+
]);
|
|
2524
|
+
var sdkConfigV1ProtobufSourceSchema = z.strictObject({
|
|
2525
|
+
root: sdkConfigV1ProtobufRootSchema.describe(
|
|
2526
|
+
"The .proto directory root, as a relative path or a git remote."
|
|
2527
|
+
),
|
|
2528
|
+
target: parentRelativePathSchema.optional().describe("The relative path to the single .proto file that defines the API."),
|
|
2529
|
+
overrides: z.array(parentRelativePathSchema).optional().describe("Relative paths to override files applied to the converted API in order."),
|
|
2530
|
+
dependencies: z.array(nonEmptyStringSchema).optional().describe("Buf Schema Registry modules the .proto files depend on."),
|
|
2531
|
+
localGeneration: z.boolean().optional().describe("Whether the .proto files are compiled locally instead of remotely."),
|
|
2532
|
+
fromOpenApi: z.boolean().default(false).describe("Whether SDKs are generated from the OpenAPI converted from the .proto files.")
|
|
2533
|
+
});
|
|
2534
|
+
var sourceSpecOptions = [
|
|
2535
|
+
z.strictObject({
|
|
2536
|
+
...sourceSpecShape,
|
|
2537
|
+
path: relativePathSchema.describe("The relative path to the API source file.")
|
|
2538
|
+
}),
|
|
2539
|
+
z.strictObject({
|
|
2540
|
+
...sourceSpecShape,
|
|
2541
|
+
url: z.url({ protocol: /^https?$/ }).describe("The HTTP or HTTPS URL of the API source file.")
|
|
2542
|
+
}),
|
|
2543
|
+
z.strictObject({
|
|
2544
|
+
...commonSourceSpecShape,
|
|
2545
|
+
proto: sdkConfigV1ProtobufSourceSchema.describe("The protobuf definitions of this source.")
|
|
2546
|
+
})
|
|
2547
|
+
];
|
|
2548
|
+
var protobufSourceSpecOptionIndex = 2;
|
|
2549
|
+
function hasProtoLocator(input) {
|
|
2550
|
+
return typeof input === "object" && input !== null && "proto" in input;
|
|
2551
|
+
}
|
|
2552
|
+
var sdkConfigV1SourceSpecSchema = z.union(sourceSpecOptions, {
|
|
2553
|
+
error: (issue) => {
|
|
2554
|
+
if (issue.code !== "invalid_union" || !hasProtoLocator(issue.input)) {
|
|
2555
|
+
return "source spec must contain exactly one locator: path, HTTP(S) url, or proto";
|
|
2556
|
+
}
|
|
2557
|
+
const details = (issue.errors[protobufSourceSpecOptionIndex] ?? []).map(({ path, message }) => path.length ? `${path.join(".")}: ${message}` : message).join("; ");
|
|
2558
|
+
return `protobuf source spec is invalid: ${details}`;
|
|
2559
|
+
}
|
|
2560
|
+
});
|
|
2518
2561
|
var sdkConfigV1SourceConfigSchema = z.strictObject({
|
|
2519
2562
|
specs: z.array(sdkConfigV1SourceSpecSchema).min(1, "source.specs must contain at least one source spec").describe("API source files in authoritative processing order."),
|
|
2520
2563
|
apiImportSettings: apiImportSettingsSchema.optional().describe("Default import behavior shared by every source spec.")
|
|
@@ -2548,7 +2591,9 @@ var goGenerationConfigSchema = z.strictObject({
|
|
|
2548
2591
|
/** Overrides the fern root-client constructor independently from the client type name. */
|
|
2549
2592
|
clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
|
|
2550
2593
|
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.")
|
|
2594
|
+
includeLegacyClientOptions: z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
|
|
2595
|
+
/** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
|
|
2596
|
+
packageLayout: z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
|
|
2552
2597
|
});
|
|
2553
2598
|
var jvmGenerationConfigSchema = z.strictObject({
|
|
2554
2599
|
packageLayout: z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
|
|
@@ -3721,7 +3766,10 @@ function mapGo(config, state, packageConfig, basePath) {
|
|
|
3721
3766
|
state,
|
|
3722
3767
|
basePath
|
|
3723
3768
|
),
|
|
3724
|
-
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
|
|
3769
|
+
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
|
|
3770
|
+
// One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
|
|
3771
|
+
// and `_` and lowercases, so `package-layout` in generators.yml matches too.
|
|
3772
|
+
packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
|
|
3725
3773
|
});
|
|
3726
3774
|
}
|
|
3727
3775
|
function mapCsharp(config, state, packageConfig, basePath) {
|
|
@@ -4214,6 +4262,6 @@ function takeToolsets(value, aliases, state, basePath) {
|
|
|
4214
4262
|
return Object.fromEntries(entries.filter((entry) => entry !== void 0));
|
|
4215
4263
|
}
|
|
4216
4264
|
|
|
4217
|
-
export { FernConfigMappingError, CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, SDK_CONFIG_V1_SCHEMA_VERSION, getSdkConfigV1Diagnostics, mapFernConfigToSdkConfigV1, parseSdkConfigV1, parseSdkConfigV1ForConsumption, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, cliDistributionConfigSchema as sdkConfigV1CliDistributionConfigSchema, cliDistributionGithubAppSchema as sdkConfigV1CliDistributionGithubAppSchema, cliDistributionHomebrewSchema as sdkConfigV1CliDistributionHomebrewSchema, cliDistributionScoopSchema as sdkConfigV1CliDistributionScoopSchema, cliGenerationConfigSchema as sdkConfigV1CliGenerationConfigSchema, sdkConfigV1CliOutputConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, composerPackageNameSchema as sdkConfigV1ComposerPackageNameSchema, csharpGenerationConfigSchema as sdkConfigV1CsharpGenerationConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, exactSemverSchema as sdkConfigV1ExactSemverSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, githubActionsSecretNameSchema as sdkConfigV1GithubActionsSecretNameSchema, goGenerationConfigSchema as sdkConfigV1GoGenerationConfigSchema, goModulePathSchema as sdkConfigV1GoModulePathSchema, javaGenerationConfigSchema as sdkConfigV1JavaGenerationConfigSchema, kotlinGenerationConfigSchema as sdkConfigV1KotlinGenerationConfigSchema, mcpGenerationConfigSchema as sdkConfigV1McpGenerationConfigSchema, nonEmptyStringSchema as sdkConfigV1NonEmptyStringSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, phpGenerationConfigSchema as sdkConfigV1PhpGenerationConfigSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, pythonGenerationConfigSchema as sdkConfigV1PythonGenerationConfigSchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, relativePathSchema as sdkConfigV1RelativePathSchema, sdkConfigV1ReplayConfigSchema, rubyGenerationConfigSchema as sdkConfigV1RubyGenerationConfigSchema, rustGenerationConfigSchema as sdkConfigV1RustGenerationConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, swiftGenerationConfigSchema as sdkConfigV1SwiftGenerationConfigSchema, sdkConfigV1TargetSchema, terraformGenerationConfigSchema as sdkConfigV1TerraformGenerationConfigSchema, typescriptGenerationConfigSchema as sdkConfigV1TypescriptGenerationConfigSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
|
|
4265
|
+
export { FernConfigMappingError, CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE as SDK_CONFIG_V1_CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, SDK_CONFIG_V1_SCHEMA_VERSION, getSdkConfigV1Diagnostics, mapFernConfigToSdkConfigV1, parseSdkConfigV1, parseSdkConfigV1ForConsumption, sdkConfigV1ApiConfigSchema, sdkConfigV1AuthConfigSchema, sdkConfigV1AuthSchemeSchema, cliDistributionConfigSchema as sdkConfigV1CliDistributionConfigSchema, cliDistributionGithubAppSchema as sdkConfigV1CliDistributionGithubAppSchema, cliDistributionHomebrewSchema as sdkConfigV1CliDistributionHomebrewSchema, cliDistributionScoopSchema as sdkConfigV1CliDistributionScoopSchema, cliGenerationConfigSchema as sdkConfigV1CliGenerationConfigSchema, sdkConfigV1CliOutputConfigSchema, sdkConfigV1ClientConfigOverrideSchema, sdkConfigV1ClientConfigSchema, composerPackageNameSchema as sdkConfigV1ComposerPackageNameSchema, csharpGenerationConfigSchema as sdkConfigV1CsharpGenerationConfigSchema, sdkConfigV1DependencySchema, sdkConfigV1DocsConfigSchema, exactSemverSchema as sdkConfigV1ExactSemverSchema, sdkConfigV1GenerationConfigOverrideSchema, sdkConfigV1GenerationConfigSchema, sdkConfigV1GitRemoteSchema, githubActionsSecretNameSchema as sdkConfigV1GithubActionsSecretNameSchema, goGenerationConfigSchema as sdkConfigV1GoGenerationConfigSchema, goModulePathSchema as sdkConfigV1GoModulePathSchema, javaGenerationConfigSchema as sdkConfigV1JavaGenerationConfigSchema, kotlinGenerationConfigSchema as sdkConfigV1KotlinGenerationConfigSchema, mcpGenerationConfigSchema as sdkConfigV1McpGenerationConfigSchema, nonEmptyStringSchema as sdkConfigV1NonEmptyStringSchema, sdkConfigV1OutputConfigSchema, sdkConfigV1PackageConfigSchema, parentRelativePathSchema as sdkConfigV1ParentRelativePathSchema, phpGenerationConfigSchema as sdkConfigV1PhpGenerationConfigSchema, sdkConfigV1ProtobufRootSchema, sdkConfigV1ProtobufSourceSchema, sdkConfigV1PublishConfigSchema, sdkConfigV1PublishRegistrySchema, pythonGenerationConfigSchema as sdkConfigV1PythonGenerationConfigSchema, sdkConfigV1ReadmeCustomSectionSchema, sdkConfigV1ReadmeEndpointSchema, relativePathSchema as sdkConfigV1RelativePathSchema, sdkConfigV1ReplayConfigSchema, rubyGenerationConfigSchema as sdkConfigV1RubyGenerationConfigSchema, rustGenerationConfigSchema as sdkConfigV1RustGenerationConfigSchema, sdkConfigV1Schema, sdkConfigV1SourceConfigSchema, sdkConfigV1SourceSpecSchema, swiftGenerationConfigSchema as sdkConfigV1SwiftGenerationConfigSchema, sdkConfigV1TargetSchema, terraformGenerationConfigSchema as sdkConfigV1TerraformGenerationConfigSchema, typescriptGenerationConfigSchema as sdkConfigV1TypescriptGenerationConfigSchema, sdkConfigV1WebhookSignatureSchema, splitSdkConfigV1TargetGeneration, validateSdkConfigV1 };
|
|
4218
4266
|
//# sourceMappingURL=index.js.map
|
|
4219
4267
|
//# sourceMappingURL=index.js.map
|