@postman/sdk-config 0.7.0 → 0.8.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/README.md +1 -3
- package/dist/index.cjs +808 -742
- 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 +808 -742
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +570 -539
- 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 +570 -539
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +570 -539
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +62 -934
- package/dist/sdk-config/v1/index.d.ts +62 -934
- package/dist/sdk-config/v1/index.js +570 -539
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +606 -541
- 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 +606 -541
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +606 -541
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +7 -7
- package/dist/sdk-config-ir/v1/index.d.ts +7 -7
- package/dist/sdk-config-ir/v1/index.js +606 -541
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-BdDv_kwT.d.cts → typescript-Chge0X4f.d.cts} +1 -2
- package/dist/{typescript-BdDv_kwT.d.ts → typescript-Chge0X4f.d.ts} +1 -2
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +15 -14
|
@@ -292,9 +292,9 @@ declare const pythonGenerationConfigSchema: z.ZodObject<{
|
|
|
292
292
|
pydanticVersion: z.ZodOptional<z.ZodString>;
|
|
293
293
|
pydantic: z.ZodOptional<z.ZodObject<{
|
|
294
294
|
versionCompatibility: z.ZodOptional<z.ZodEnum<{
|
|
295
|
-
both: "both";
|
|
296
295
|
v1: "v1";
|
|
297
296
|
v2: "v2";
|
|
297
|
+
both: "both";
|
|
298
298
|
"v1-on-v2": "v1-on-v2";
|
|
299
299
|
}>>;
|
|
300
300
|
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -419,7 +419,6 @@ declare const typescriptGenerationConfigSchema: z.ZodObject<{
|
|
|
419
419
|
pnpm: "pnpm";
|
|
420
420
|
yarn: "yarn";
|
|
421
421
|
}>>;
|
|
422
|
-
/** e.g. `1.22.22` — from the customer's own `config.packageJson.packageManager` (`yarn@1.22.22`). */
|
|
423
422
|
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
424
423
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
425
424
|
jest: "jest";
|
|
@@ -292,9 +292,9 @@ declare const pythonGenerationConfigSchema: z.ZodObject<{
|
|
|
292
292
|
pydanticVersion: z.ZodOptional<z.ZodString>;
|
|
293
293
|
pydantic: z.ZodOptional<z.ZodObject<{
|
|
294
294
|
versionCompatibility: z.ZodOptional<z.ZodEnum<{
|
|
295
|
-
both: "both";
|
|
296
295
|
v1: "v1";
|
|
297
296
|
v2: "v2";
|
|
297
|
+
both: "both";
|
|
298
298
|
"v1-on-v2": "v1-on-v2";
|
|
299
299
|
}>>;
|
|
300
300
|
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -419,7 +419,6 @@ declare const typescriptGenerationConfigSchema: z.ZodObject<{
|
|
|
419
419
|
pnpm: "pnpm";
|
|
420
420
|
yarn: "yarn";
|
|
421
421
|
}>>;
|
|
422
|
-
/** e.g. `1.22.22` — from the customer's own `config.packageJson.packageManager` (`yarn@1.22.22`). */
|
|
423
422
|
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
424
423
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
425
424
|
jest: "jest";
|
package/package.json
CHANGED
|
@@ -63,8 +63,9 @@ severity, reason, suggested manual action, and the SDK Config destination when o
|
|
|
63
63
|
cases. Generation must not recover omitted values from legacy configuration. Differing
|
|
64
64
|
target-specific values are retained as sparse target overrides when the public shape can represent
|
|
65
65
|
them. Optional `api` enrichment may be supplied after Fern's definition or IR has already been
|
|
66
|
-
lowered into the public API shape.
|
|
67
|
-
|
|
66
|
+
lowered into the public API shape. Supported registry credentials, signing material, and GitHub
|
|
67
|
+
credentials are preserved in SDK Config when present; callers must treat these fields as sensitive
|
|
68
|
+
secrets.
|
|
68
69
|
|
|
69
70
|
## Contract boundaries
|
|
70
71
|
|
|
@@ -88,12 +89,14 @@ server-generated artifact metadata are not valid public locators. The public sch
|
|
|
88
89
|
no `compatibility`, source-origin, artifact ID, credential-resolution, or server-generated
|
|
89
90
|
publishing control fields. Supported registry credentials are flat fields selected by the `registry`
|
|
90
91
|
discriminator: npm and crates accept `token`, PyPI and Maven accept `username` and `password`, and
|
|
91
|
-
Maven accepts a complete `signature` containing `keyId`, `password`, and `secretKey`.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
Maven accepts a complete `signature` containing `keyId`, `password`, and `secretKey`. GitHub delivery
|
|
93
|
+
accepts a `credentials` object containing `username`, `password`, `token`, or `apiKey`. Use
|
|
94
|
+
environment expressions such as `${NPM_TOKEN}` for every credential rather than literal values.
|
|
95
|
+
Unknown fields are rejected at every object boundary. Fern migration copies credential fields only
|
|
96
|
+
when their raw `generators.yml` values are exact environment expressions. It never treats normalized
|
|
97
|
+
or resolved output as credential provenance; literals and untraceable values are omitted with
|
|
98
|
+
credential-safe warnings. Portable API, client, documentation, package, source settings, and
|
|
99
|
+
language field schemas
|
|
97
100
|
come from a neutral shared domain layer to prevent drift; the public and internal envelopes and
|
|
98
101
|
their operational extensions remain separate explicit allowlists.
|
|
99
102
|
|
|
@@ -117,8 +120,6 @@ segments. Absolute paths and `..` traversal are rejected at validation time.
|
|
|
117
120
|
"output": { "delivery": "zip" },
|
|
118
121
|
"replay": { "enabled": false },
|
|
119
122
|
"generation": {
|
|
120
|
-
"includeWatermark": true,
|
|
121
|
-
"generateFullProject": false,
|
|
122
123
|
"naming": { "smartCasing": true, "smartCasingDigitWordBoundary": false }
|
|
123
124
|
},
|
|
124
125
|
"targets": [
|
|
@@ -213,10 +214,10 @@ while an explicitly supplied array replaces the inherited array.
|
|
|
213
214
|
|
|
214
215
|
An integration may also supply operational values at generation time. Those request values take
|
|
215
216
|
precedence over the persisted SDK Config for fields the integration exposes, such as SDK name,
|
|
216
|
-
SDK version, API version, package settings, generator version, output intent
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
SDK version, API version, package settings, generator version, and output intent. Operational
|
|
218
|
+
packaging controls remain on the generation request rather than in the customer-authored SDK
|
|
219
|
+
Config. Schema/domain defaults are applied only after this merge, when the single-target
|
|
220
|
+
`SdkConfigIrV1` is parsed.
|
|
220
221
|
|
|
221
222
|
Package publication requirements are validated after applying package and output precedence. For
|
|
222
223
|
example, a TypeScript target publishing to npm may inherit a root `packageName`, while a Python
|