@postman/sdk-config 0.11.0 → 0.12.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 +214 -9
- 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 +214 -9
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +214 -9
- 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 +214 -9
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +214 -9
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +234 -2
- package/dist/sdk-config/v1/index.d.ts +234 -2
- package/dist/sdk-config/v1/index.js +214 -9
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +39 -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 +39 -1
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +39 -1
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +186 -2
- package/dist/sdk-config-ir/v1/index.d.ts +186 -2
- package/dist/sdk-config-ir/v1/index.js +39 -1
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-CsAa1VSy.d.cts → typescript-Byhn4MqL.d.cts} +64 -0
- package/dist/{typescript-CsAa1VSy.d.ts → typescript-Byhn4MqL.d.ts} +64 -0
- package/package.json +1 -1
- package/src/sdk-config-ir/v1/README.md +79 -31
|
@@ -702,7 +702,7 @@ var packageScriptSchema = zod.z.strictObject({
|
|
|
702
702
|
command: nonEmptyStringSchema.describe("The command executed by the package script.")
|
|
703
703
|
});
|
|
704
704
|
var httpClientSchema = zod.z.strictObject({
|
|
705
|
-
name: zod.z.enum(["axios", "fetch"]).describe("The HTTP client used by generated TypeScript code.")
|
|
705
|
+
name: zod.z.enum(["axios", "fetch", "node-fetch"]).describe("The HTTP client used by generated TypeScript code.")
|
|
706
706
|
});
|
|
707
707
|
var typescriptGenerationConfigSchema = zod.z.strictObject({
|
|
708
708
|
typescriptVersion: nonEmptyStringSchema.optional().describe("The TypeScript version used by the generated project."),
|
|
@@ -718,6 +718,37 @@ var typescriptGenerationConfigSchema = zod.z.strictObject({
|
|
|
718
718
|
/** Name of the top-level namespace export emitted by Fern-compatible TypeScript SDKs. */
|
|
719
719
|
namespaceExportName: nonEmptyStringSchema.optional().describe("The top-level namespace export name."),
|
|
720
720
|
consolidateTypeFiles: zod.z.boolean().optional().describe("Whether generated types are consolidated into fewer source files."),
|
|
721
|
+
formDataSupport: zod.z.enum(["Node16", "Node18"]).optional().describe(
|
|
722
|
+
"The multipart form-data implementation: Node16 uses the form-data packages, Node18 uses the platform FormData."
|
|
723
|
+
),
|
|
724
|
+
allowExtraFields: zod.z.boolean().optional().describe(
|
|
725
|
+
"Whether response parsing keeps unrecognized object keys and accepts unrecognized union members and enum values."
|
|
726
|
+
),
|
|
727
|
+
generateSubpackageExports: zod.z.boolean().optional().describe(
|
|
728
|
+
"Whether the package manifest exports each subpackage client as its own entry point."
|
|
729
|
+
),
|
|
730
|
+
exportAllRequestsAtRoot: zod.z.boolean().optional().describe("Whether every request type is also exported from the package root."),
|
|
731
|
+
generateEndpointMetadata: zod.z.boolean().optional().describe("Whether generated clients expose metadata for each endpoint."),
|
|
732
|
+
outputEsm: zod.z.boolean().optional().describe(
|
|
733
|
+
"Whether the package is marked as an ES module while still shipping its CommonJS build."
|
|
734
|
+
),
|
|
735
|
+
neverThrowErrors: zod.z.boolean().optional().describe(
|
|
736
|
+
"Whether client methods return a wrapped response instead of throwing on a non-2xx status."
|
|
737
|
+
),
|
|
738
|
+
includeOtherInUnionTypes: zod.z.boolean().optional().describe("Whether union types gain a member for variants the SDK does not recognize."),
|
|
739
|
+
includeUtilsOnUnionMembers: zod.z.boolean().optional().describe("Whether helper utilities are generated on each member of a union type."),
|
|
740
|
+
omitFernHeaders: zod.z.boolean().optional().describe("Whether requests omit the SDK identification headers and the User-Agent header."),
|
|
741
|
+
linter: zod.z.enum(["biome", "oxlint", "none"]).optional().describe("The linter configured in the generated project."),
|
|
742
|
+
formatter: zod.z.enum(["prettier", "biome", "oxfmt", "none"]).optional().describe("The formatter configured in the generated project."),
|
|
743
|
+
exports: jsonObjectSchema.optional().describe(
|
|
744
|
+
"package.json exports entries, keyed by subpath, applied over the generated exports. Each subpath replaces the generated one."
|
|
745
|
+
),
|
|
746
|
+
files: zod.z.array(nonEmptyStringSchema).optional().describe("package.json files entries, listed ahead of the generated ones."),
|
|
747
|
+
engines: zod.z.record(nonEmptyStringSchema, nonEmptyStringSchema).optional().describe("package.json engines version ranges, keyed by engine name such as node."),
|
|
748
|
+
lintStaged: zod.z.record(nonEmptyStringSchema, zod.z.array(nonEmptyStringSchema).min(1)).optional().describe("lint-staged commands to run, keyed by file glob."),
|
|
749
|
+
browser: zod.z.record(nonEmptyStringSchema, zod.z.union([zod.z.boolean(), nonEmptyStringSchema])).optional().describe(
|
|
750
|
+
"package.json browser field: a module or file is excluded (false) or replaced by another path."
|
|
751
|
+
),
|
|
721
752
|
allowCustomFetcher: zod.z.boolean().optional().describe("Whether callers can supply a custom fetch implementation."),
|
|
722
753
|
useBrandedStringAliases: zod.z.boolean().optional().describe("Whether string aliases are emitted as distinct branded types."),
|
|
723
754
|
useLegacyExports: zod.z.boolean().optional().describe("Whether the package emits the legacy export layout."),
|
|
@@ -864,6 +895,12 @@ var dependencySchema = zod.z.strictObject({
|
|
|
864
895
|
}).refine(({ source, version }) => source !== void 0 || version !== void 0, {
|
|
865
896
|
message: "dependency must define a version or a source"
|
|
866
897
|
});
|
|
898
|
+
var bugsSchema = zod.z.strictObject({
|
|
899
|
+
url: nonEmptyStringSchema.optional().describe("The issue tracker URL."),
|
|
900
|
+
email: nonEmptyStringSchema.optional().describe("The address for reporting issues.")
|
|
901
|
+
}).refine(({ url, email }) => url !== void 0 || email !== void 0, {
|
|
902
|
+
message: "bugs must define a url or an email"
|
|
903
|
+
});
|
|
867
904
|
var projectUrlSchema = zod.z.strictObject({
|
|
868
905
|
label: nonEmptyStringSchema.describe("The label displayed for the project link."),
|
|
869
906
|
url: nonEmptyStringSchema.describe("The project link URL.")
|
|
@@ -878,6 +915,7 @@ var packageConfigSchema = zod.z.strictObject({
|
|
|
878
915
|
description: zod.z.string().optional().describe("The package description used in generated metadata."),
|
|
879
916
|
repository: nonEmptyStringSchema.optional().describe("The source repository for the generated SDK."),
|
|
880
917
|
homepage: nonEmptyStringSchema.optional().describe("The package homepage URL."),
|
|
918
|
+
bugs: bugsSchema.optional().describe("Where issues with the package are reported."),
|
|
881
919
|
documentationUrl: nonEmptyStringSchema.optional().describe("The package documentation URL."),
|
|
882
920
|
authors: zod.z.array(authorSchema).optional().describe("Authors credited in package metadata."),
|
|
883
921
|
developers: zod.z.array(developerSchema).optional().describe("Developers credited in package metadata."),
|