@postman/sdk-config 0.11.0 → 0.13.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 +18 -6
- package/dist/index.cjs +372 -24
- 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 +372 -24
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +370 -23
- 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 +370 -23
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +370 -23
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +632 -31
- package/dist/sdk-config/v1/index.d.ts +632 -31
- package/dist/sdk-config/v1/index.js +370 -23
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +57 -6
- 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 +57 -6
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +57 -6
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +211 -4
- package/dist/sdk-config-ir/v1/index.d.ts +211 -4
- package/dist/sdk-config-ir/v1/index.js +57 -6
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-CsAa1VSy.d.cts → typescript-BFRxjAah.d.cts} +65 -0
- package/dist/{typescript-CsAa1VSy.d.ts → typescript-BFRxjAah.d.ts} +65 -0
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +32 -11
- package/src/sdk-config-ir/v1/README.md +115 -60
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-
|
|
2
|
-
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliProfilesConfig, g as CliProfilesProvisionOperation, h as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, j as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, k as McpGenerationConfig, l as McpToolFilter, P as PackageConfig, m as PhpGenerationConfig, n as PlanModifiers, o as PythonGenerationConfig, R as RubyGenerationConfig, p as RustGenerationConfig, q as SwiftGenerationConfig, T as TerraformGenerationConfig, r as TypescriptGenerationConfig, s as cliDistributionConfigSchema, t as cliDistributionGithubAppSchema, u as cliDistributionHomebrewSchema, v as cliDistributionScoopSchema, w as cliGenerationConfigSchema, x as composerPackageNameSchema, y as csharpGenerationConfigSchema, z as dependencySchema, A as exactSemverSchema, B as githubActionsSecretNameSchema, E as goGenerationConfigSchema, F as goModulePathSchema, H as javaGenerationConfigSchema, I as jsonObjectSchema, L as jsonValueSchema, N as kotlinGenerationConfigSchema, O as mcpAvailabilityStatuses, Q as mcpGenerationConfigSchema, U as nonEmptyStringSchema, V as packageConfigSchema, W as phpGenerationConfigSchema, X as pythonGenerationConfigSchema, Y as relativePathSchema, Z as rubyGenerationConfigSchema, _ as rustGenerationConfigSchema, $ as swiftGenerationConfigSchema, a0 as terraformGenerationConfigSchema, a1 as typescriptGenerationConfigSchema } from '../../typescript-
|
|
1
|
+
import { i as JsonObject, S as SdkConfigDiagnostic } from '../../typescript-BFRxjAah.js';
|
|
2
|
+
export { C as CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE, a as CliDistributionConfig, b as CliDistributionGithubAppConfig, c as CliDistributionHomebrewConfig, d as CliDistributionScoopConfig, e as CliGenerationConfig, f as CliProfilesConfig, g as CliProfilesProvisionOperation, h as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, j as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, k as McpGenerationConfig, l as McpToolFilter, P as PackageConfig, m as PhpGenerationConfig, n as PlanModifiers, o as PythonGenerationConfig, R as RubyGenerationConfig, p as RustGenerationConfig, q as SwiftGenerationConfig, T as TerraformGenerationConfig, r as TypescriptGenerationConfig, s as cliDistributionConfigSchema, t as cliDistributionGithubAppSchema, u as cliDistributionHomebrewSchema, v as cliDistributionScoopSchema, w as cliGenerationConfigSchema, x as composerPackageNameSchema, y as csharpGenerationConfigSchema, z as dependencySchema, A as exactSemverSchema, B as githubActionsSecretNameSchema, E as goGenerationConfigSchema, F as goModulePathSchema, H as javaGenerationConfigSchema, I as jsonObjectSchema, L as jsonValueSchema, N as kotlinGenerationConfigSchema, O as mcpAvailabilityStatuses, Q as mcpGenerationConfigSchema, U as nonEmptyStringSchema, V as packageConfigSchema, W as phpGenerationConfigSchema, X as pythonGenerationConfigSchema, Y as relativePathSchema, Z as rubyGenerationConfigSchema, _ as rustGenerationConfigSchema, $ as swiftGenerationConfigSchema, a0 as terraformGenerationConfigSchema, a1 as typescriptGenerationConfigSchema } from '../../typescript-BFRxjAah.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const authSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -674,6 +674,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
674
674
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
675
675
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
676
676
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
677
678
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
678
679
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
679
680
|
v1: "v1";
|
|
@@ -710,6 +711,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
710
711
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
711
712
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
712
713
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
714
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
713
715
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
714
716
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
715
717
|
v1: "v1";
|
|
@@ -1014,6 +1016,10 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1014
1016
|
description: z.ZodOptional<z.ZodString>;
|
|
1015
1017
|
repository: z.ZodOptional<z.ZodString>;
|
|
1016
1018
|
homepage: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
bugs: z.ZodOptional<z.ZodObject<{
|
|
1020
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
}, z.core.$strict>>;
|
|
1017
1023
|
documentationUrl: z.ZodOptional<z.ZodString>;
|
|
1018
1024
|
authors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1019
1025
|
name: z.ZodString;
|
|
@@ -1126,6 +1132,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1126
1132
|
bucket: z.ZodString;
|
|
1127
1133
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1128
1134
|
}, z.core.$strict>>;
|
|
1135
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1129
1136
|
}, z.core.$strict>>;
|
|
1130
1137
|
delivery: z.ZodLiteral<"files">;
|
|
1131
1138
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -1193,6 +1200,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1193
1200
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1194
1201
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1195
1202
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1196
1204
|
registry: z.ZodLiteral<"rubygems">;
|
|
1197
1205
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1198
1206
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1288,6 +1296,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1288
1296
|
bucket: z.ZodString;
|
|
1289
1297
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1290
1298
|
}, z.core.$strict>>;
|
|
1299
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1291
1300
|
}, z.core.$strict>>;
|
|
1292
1301
|
delivery: z.ZodLiteral<"zip">;
|
|
1293
1302
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -1355,6 +1364,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1355
1364
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1356
1365
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1357
1366
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1367
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1358
1368
|
registry: z.ZodLiteral<"rubygems">;
|
|
1359
1369
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1360
1370
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1450,6 +1460,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1450
1460
|
bucket: z.ZodString;
|
|
1451
1461
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1452
1462
|
}, z.core.$strict>>;
|
|
1463
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1453
1464
|
}, z.core.$strict>>;
|
|
1454
1465
|
delivery: z.ZodLiteral<"github">;
|
|
1455
1466
|
github: z.ZodObject<{
|
|
@@ -1550,6 +1561,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1550
1561
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1551
1562
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1552
1563
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1564
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1553
1565
|
registry: z.ZodLiteral<"rubygems">;
|
|
1554
1566
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1555
1567
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1768,9 +1780,9 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1768
1780
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1769
1781
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
1770
1782
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
1783
|
+
auto: "auto";
|
|
1771
1784
|
synthetic: "synthetic";
|
|
1772
1785
|
recorded: "recorded";
|
|
1773
|
-
auto: "auto";
|
|
1774
1786
|
}>>;
|
|
1775
1787
|
}, z.core.$strict>>;
|
|
1776
1788
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -1843,6 +1855,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1843
1855
|
name: z.ZodEnum<{
|
|
1844
1856
|
axios: "axios";
|
|
1845
1857
|
fetch: "fetch";
|
|
1858
|
+
"node-fetch": "node-fetch";
|
|
1846
1859
|
}>;
|
|
1847
1860
|
}, z.core.$strict>>;
|
|
1848
1861
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1862,6 +1875,35 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1862
1875
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1863
1876
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
1864
1877
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
1879
|
+
Node16: "Node16";
|
|
1880
|
+
Node18: "Node18";
|
|
1881
|
+
}>>;
|
|
1882
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
1883
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
1885
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
1886
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
1887
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
1888
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
1889
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
1890
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
1891
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
1892
|
+
biome: "biome";
|
|
1893
|
+
oxlint: "oxlint";
|
|
1894
|
+
none: "none";
|
|
1895
|
+
}>>;
|
|
1896
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
1897
|
+
biome: "biome";
|
|
1898
|
+
none: "none";
|
|
1899
|
+
prettier: "prettier";
|
|
1900
|
+
oxfmt: "oxfmt";
|
|
1901
|
+
}>>;
|
|
1902
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1903
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1904
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1905
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
1906
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
1865
1907
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
1866
1908
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
1867
1909
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2005,6 +2047,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2005
2047
|
name: z.ZodEnum<{
|
|
2006
2048
|
axios: "axios";
|
|
2007
2049
|
fetch: "fetch";
|
|
2050
|
+
"node-fetch": "node-fetch";
|
|
2008
2051
|
}>;
|
|
2009
2052
|
}, z.core.$strict>>;
|
|
2010
2053
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2024,6 +2067,35 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
2024
2067
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
2025
2068
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
2026
2069
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2070
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
2071
|
+
Node16: "Node16";
|
|
2072
|
+
Node18: "Node18";
|
|
2073
|
+
}>>;
|
|
2074
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
2075
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
2076
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
2077
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
2078
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
2079
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
2080
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
2081
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
2082
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
2083
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
2084
|
+
biome: "biome";
|
|
2085
|
+
oxlint: "oxlint";
|
|
2086
|
+
none: "none";
|
|
2087
|
+
}>>;
|
|
2088
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
2089
|
+
biome: "biome";
|
|
2090
|
+
none: "none";
|
|
2091
|
+
prettier: "prettier";
|
|
2092
|
+
oxfmt: "oxfmt";
|
|
2093
|
+
}>>;
|
|
2094
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2095
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2096
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2097
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2098
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
2027
2099
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
2028
2100
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
2029
2101
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2222,6 +2294,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
2222
2294
|
name: z.ZodEnum<{
|
|
2223
2295
|
axios: "axios";
|
|
2224
2296
|
fetch: "fetch";
|
|
2297
|
+
"node-fetch": "node-fetch";
|
|
2225
2298
|
}>;
|
|
2226
2299
|
}, z.core.$strict>>;
|
|
2227
2300
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2241,6 +2314,35 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
2241
2314
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
2242
2315
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
2243
2316
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2317
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
2318
|
+
Node16: "Node16";
|
|
2319
|
+
Node18: "Node18";
|
|
2320
|
+
}>>;
|
|
2321
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
2323
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
2324
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
2325
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
2326
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
2327
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
2328
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
2329
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
2330
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
2331
|
+
biome: "biome";
|
|
2332
|
+
oxlint: "oxlint";
|
|
2333
|
+
none: "none";
|
|
2334
|
+
}>>;
|
|
2335
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
2336
|
+
biome: "biome";
|
|
2337
|
+
none: "none";
|
|
2338
|
+
prettier: "prettier";
|
|
2339
|
+
oxfmt: "oxfmt";
|
|
2340
|
+
}>>;
|
|
2341
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2342
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2343
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2344
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2345
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
2244
2346
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
2245
2347
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
2246
2348
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2384,6 +2486,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
2384
2486
|
name: z.ZodEnum<{
|
|
2385
2487
|
axios: "axios";
|
|
2386
2488
|
fetch: "fetch";
|
|
2489
|
+
"node-fetch": "node-fetch";
|
|
2387
2490
|
}>;
|
|
2388
2491
|
}, z.core.$strict>>;
|
|
2389
2492
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2403,6 +2506,35 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
2403
2506
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
2404
2507
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
2405
2508
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2509
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
2510
|
+
Node16: "Node16";
|
|
2511
|
+
Node18: "Node18";
|
|
2512
|
+
}>>;
|
|
2513
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
2514
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
2515
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
2516
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
2517
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
2518
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
2519
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
2520
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
2521
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
2522
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
2523
|
+
biome: "biome";
|
|
2524
|
+
oxlint: "oxlint";
|
|
2525
|
+
none: "none";
|
|
2526
|
+
}>>;
|
|
2527
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
2528
|
+
biome: "biome";
|
|
2529
|
+
none: "none";
|
|
2530
|
+
prettier: "prettier";
|
|
2531
|
+
oxfmt: "oxfmt";
|
|
2532
|
+
}>>;
|
|
2533
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2534
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2535
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2536
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2537
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
2406
2538
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
2407
2539
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
2408
2540
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2561,9 +2693,9 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2561
2693
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2562
2694
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
2563
2695
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
2696
|
+
auto: "auto";
|
|
2564
2697
|
synthetic: "synthetic";
|
|
2565
2698
|
recorded: "recorded";
|
|
2566
|
-
auto: "auto";
|
|
2567
2699
|
}>>;
|
|
2568
2700
|
}, z.core.$strict>>;
|
|
2569
2701
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -2636,6 +2768,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2636
2768
|
name: z.ZodEnum<{
|
|
2637
2769
|
axios: "axios";
|
|
2638
2770
|
fetch: "fetch";
|
|
2771
|
+
"node-fetch": "node-fetch";
|
|
2639
2772
|
}>;
|
|
2640
2773
|
}, z.core.$strict>>;
|
|
2641
2774
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2655,6 +2788,35 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2655
2788
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
2656
2789
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
2657
2790
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2791
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
2792
|
+
Node16: "Node16";
|
|
2793
|
+
Node18: "Node18";
|
|
2794
|
+
}>>;
|
|
2795
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
2796
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
2797
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
2798
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
2799
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
2800
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
2801
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
2802
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
2803
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
2804
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
2805
|
+
biome: "biome";
|
|
2806
|
+
oxlint: "oxlint";
|
|
2807
|
+
none: "none";
|
|
2808
|
+
}>>;
|
|
2809
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
2810
|
+
biome: "biome";
|
|
2811
|
+
none: "none";
|
|
2812
|
+
prettier: "prettier";
|
|
2813
|
+
oxfmt: "oxfmt";
|
|
2814
|
+
}>>;
|
|
2815
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2816
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2817
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2818
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
2819
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
2658
2820
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
2659
2821
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
2660
2822
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2798,6 +2960,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2798
2960
|
name: z.ZodEnum<{
|
|
2799
2961
|
axios: "axios";
|
|
2800
2962
|
fetch: "fetch";
|
|
2963
|
+
"node-fetch": "node-fetch";
|
|
2801
2964
|
}>;
|
|
2802
2965
|
}, z.core.$strict>>;
|
|
2803
2966
|
packageManager: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2817,6 +2980,35 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2817
2980
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
2818
2981
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
2819
2982
|
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2983
|
+
formDataSupport: z.ZodOptional<z.ZodEnum<{
|
|
2984
|
+
Node16: "Node16";
|
|
2985
|
+
Node18: "Node18";
|
|
2986
|
+
}>>;
|
|
2987
|
+
allowExtraFields: z.ZodOptional<z.ZodBoolean>;
|
|
2988
|
+
generateSubpackageExports: z.ZodOptional<z.ZodBoolean>;
|
|
2989
|
+
exportAllRequestsAtRoot: z.ZodOptional<z.ZodBoolean>;
|
|
2990
|
+
generateEndpointMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
2991
|
+
outputEsm: z.ZodOptional<z.ZodBoolean>;
|
|
2992
|
+
neverThrowErrors: z.ZodOptional<z.ZodBoolean>;
|
|
2993
|
+
includeOtherInUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
2994
|
+
includeUtilsOnUnionMembers: z.ZodOptional<z.ZodBoolean>;
|
|
2995
|
+
omitFernHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
2996
|
+
linter: z.ZodOptional<z.ZodEnum<{
|
|
2997
|
+
biome: "biome";
|
|
2998
|
+
oxlint: "oxlint";
|
|
2999
|
+
none: "none";
|
|
3000
|
+
}>>;
|
|
3001
|
+
formatter: z.ZodOptional<z.ZodEnum<{
|
|
3002
|
+
biome: "biome";
|
|
3003
|
+
none: "none";
|
|
3004
|
+
prettier: "prettier";
|
|
3005
|
+
oxfmt: "oxfmt";
|
|
3006
|
+
}>>;
|
|
3007
|
+
exports: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
3008
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3009
|
+
engines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3010
|
+
lintStaged: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
3011
|
+
browser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
|
|
2820
3012
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
2821
3013
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
2822
3014
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2995,6 +3187,8 @@ declare const publishConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2995
3187
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
2996
3188
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
2997
3189
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3190
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3191
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
2998
3192
|
registry: z.ZodLiteral<"rubygems">;
|
|
2999
3193
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3000
3194
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3124,6 +3318,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3124
3318
|
bucket: z.ZodString;
|
|
3125
3319
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3126
3320
|
}, z.core.$strict>>;
|
|
3321
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3127
3322
|
}, z.core.$strict>>;
|
|
3128
3323
|
delivery: z.ZodLiteral<"files">;
|
|
3129
3324
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -3225,6 +3420,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3225
3420
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3226
3421
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3227
3422
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3423
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3424
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3228
3425
|
registry: z.ZodLiteral<"rubygems">;
|
|
3229
3426
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3230
3427
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3353,6 +3550,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3353
3550
|
bucket: z.ZodString;
|
|
3354
3551
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3355
3552
|
}, z.core.$strict>>;
|
|
3553
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3356
3554
|
}, z.core.$strict>>;
|
|
3357
3555
|
delivery: z.ZodLiteral<"zip">;
|
|
3358
3556
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -3454,6 +3652,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3454
3652
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3455
3653
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3456
3654
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3655
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3656
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3457
3657
|
registry: z.ZodLiteral<"rubygems">;
|
|
3458
3658
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3459
3659
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3582,6 +3782,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3582
3782
|
bucket: z.ZodString;
|
|
3583
3783
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3584
3784
|
}, z.core.$strict>>;
|
|
3785
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3585
3786
|
}, z.core.$strict>>;
|
|
3586
3787
|
delivery: z.ZodLiteral<"github">;
|
|
3587
3788
|
github: z.ZodObject<{
|
|
@@ -3725,6 +3926,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3725
3926
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3726
3927
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3727
3928
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3929
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3930
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3728
3931
|
registry: z.ZodLiteral<"rubygems">;
|
|
3729
3932
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3730
3933
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3864,6 +4067,7 @@ declare const apiImportSettingsSchema: z.ZodObject<{
|
|
|
3864
4067
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
3865
4068
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
3866
4069
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4070
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
3867
4071
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
3868
4072
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
3869
4073
|
v1: "v1";
|
|
@@ -3919,6 +4123,7 @@ declare const sourceSpecConfigSchema: z.ZodObject<{
|
|
|
3919
4123
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
3920
4124
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
3921
4125
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4126
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
3922
4127
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
3923
4128
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
3924
4129
|
v1: "v1";
|
|
@@ -3968,6 +4173,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
3968
4173
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
3969
4174
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
3970
4175
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4176
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
3971
4177
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
3972
4178
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
3973
4179
|
v1: "v1";
|
|
@@ -4004,6 +4210,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
4004
4210
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4005
4211
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4006
4212
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4213
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4007
4214
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4008
4215
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4009
4216
|
v1: "v1";
|
|
@@ -440,7 +440,10 @@ var cliDistributionConfigSchema = z.strictObject({
|
|
|
440
440
|
"A GitHub App used to mint short-lived tokens for every channel without its own tokenSecretName."
|
|
441
441
|
),
|
|
442
442
|
homebrew: cliDistributionHomebrewSchema.optional().describe("Publishes a Homebrew formula to a tap repository on each tagged release."),
|
|
443
|
-
scoop: cliDistributionScoopSchema.optional().describe("Publishes a Scoop manifest to a bucket repository on each tagged release.")
|
|
443
|
+
scoop: cliDistributionScoopSchema.optional().describe("Publishes a Scoop manifest to a bucket repository on each tagged release."),
|
|
444
|
+
githubAttestations: z.union([z.literal("auto"), z.boolean()], { error: 'must be "auto", true, or false' }).optional().describe(
|
|
445
|
+
'Whether the generated release workflow attests build provenance. "auto" (the generator default) attests only on public repositories; true always attests, for private repositories on GitHub Enterprise Cloud; false omits the attestation step and its permissions.'
|
|
446
|
+
)
|
|
444
447
|
}).superRefine((distribution, context) => {
|
|
445
448
|
if (distribution.homebrew !== void 0 || distribution.scoop !== void 0) {
|
|
446
449
|
return;
|
|
@@ -453,6 +456,9 @@ var cliDistributionConfigSchema = z.strictObject({
|
|
|
453
456
|
});
|
|
454
457
|
return;
|
|
455
458
|
}
|
|
459
|
+
if (distribution.githubAttestations !== void 0) {
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
456
462
|
context.addIssue({
|
|
457
463
|
code: "custom",
|
|
458
464
|
message: "distribution must configure at least one channel: homebrew or scoop"
|
|
@@ -464,14 +470,17 @@ var CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE = "CLI_DISTRIBUTION_NON_RELEASE_MODE"
|
|
|
464
470
|
var nonReleaseGithubModes = /* @__PURE__ */ new Set(["pull-request", "push", "commit"]);
|
|
465
471
|
function cliDistributionModeDiagnostic(output, outputPath) {
|
|
466
472
|
const mode = output?.github?.mode;
|
|
467
|
-
|
|
473
|
+
const distribution = output?.distribution;
|
|
474
|
+
if (distribution === void 0 || mode === void 0 || !nonReleaseGithubModes.has(mode)) {
|
|
468
475
|
return void 0;
|
|
469
476
|
}
|
|
477
|
+
const hasChannel = distribution.homebrew !== void 0 || distribution.scoop !== void 0;
|
|
478
|
+
const consequence = hasChannel ? "Homebrew and Scoop publish only after a semantic-version tag is pushed to the repository." : "the release workflow, including its githubAttestations setting, runs only after a semantic-version tag is pushed to the repository.";
|
|
470
479
|
return {
|
|
471
480
|
code: CLI_DISTRIBUTION_NON_RELEASE_MODE_CODE,
|
|
472
481
|
severity: "warning",
|
|
473
482
|
path: [...outputPath, "github", "mode"],
|
|
474
|
-
reason: `GitHub mode "${mode}" does not create a release tag, so
|
|
483
|
+
reason: `GitHub mode "${mode}" does not create a release tag, so ${consequence}`,
|
|
475
484
|
suggestedAction: 'Use mode "release" or "commit-and-release", or push a version tag after merging generated changes.'
|
|
476
485
|
};
|
|
477
486
|
}
|
|
@@ -696,7 +705,7 @@ var packageScriptSchema = z.strictObject({
|
|
|
696
705
|
command: nonEmptyStringSchema.describe("The command executed by the package script.")
|
|
697
706
|
});
|
|
698
707
|
var httpClientSchema = z.strictObject({
|
|
699
|
-
name: z.enum(["axios", "fetch"]).describe("The HTTP client used by generated TypeScript code.")
|
|
708
|
+
name: z.enum(["axios", "fetch", "node-fetch"]).describe("The HTTP client used by generated TypeScript code.")
|
|
700
709
|
});
|
|
701
710
|
var typescriptGenerationConfigSchema = z.strictObject({
|
|
702
711
|
typescriptVersion: nonEmptyStringSchema.optional().describe("The TypeScript version used by the generated project."),
|
|
@@ -712,6 +721,37 @@ var typescriptGenerationConfigSchema = z.strictObject({
|
|
|
712
721
|
/** Name of the top-level namespace export emitted by Fern-compatible TypeScript SDKs. */
|
|
713
722
|
namespaceExportName: nonEmptyStringSchema.optional().describe("The top-level namespace export name."),
|
|
714
723
|
consolidateTypeFiles: z.boolean().optional().describe("Whether generated types are consolidated into fewer source files."),
|
|
724
|
+
formDataSupport: z.enum(["Node16", "Node18"]).optional().describe(
|
|
725
|
+
"The multipart form-data implementation: Node16 uses the form-data packages, Node18 uses the platform FormData."
|
|
726
|
+
),
|
|
727
|
+
allowExtraFields: z.boolean().optional().describe(
|
|
728
|
+
"Whether response parsing keeps unrecognized object keys and accepts unrecognized union members and enum values."
|
|
729
|
+
),
|
|
730
|
+
generateSubpackageExports: z.boolean().optional().describe(
|
|
731
|
+
"Whether the package manifest exports each subpackage client as its own entry point."
|
|
732
|
+
),
|
|
733
|
+
exportAllRequestsAtRoot: z.boolean().optional().describe("Whether every request type is also exported from the package root."),
|
|
734
|
+
generateEndpointMetadata: z.boolean().optional().describe("Whether generated clients expose metadata for each endpoint."),
|
|
735
|
+
outputEsm: z.boolean().optional().describe(
|
|
736
|
+
"Whether the package is marked as an ES module while still shipping its CommonJS build."
|
|
737
|
+
),
|
|
738
|
+
neverThrowErrors: z.boolean().optional().describe(
|
|
739
|
+
"Whether client methods return a wrapped response instead of throwing on a non-2xx status."
|
|
740
|
+
),
|
|
741
|
+
includeOtherInUnionTypes: z.boolean().optional().describe("Whether union types gain a member for variants the SDK does not recognize."),
|
|
742
|
+
includeUtilsOnUnionMembers: z.boolean().optional().describe("Whether helper utilities are generated on each member of a union type."),
|
|
743
|
+
omitFernHeaders: z.boolean().optional().describe("Whether requests omit the SDK identification headers and the User-Agent header."),
|
|
744
|
+
linter: z.enum(["biome", "oxlint", "none"]).optional().describe("The linter configured in the generated project."),
|
|
745
|
+
formatter: z.enum(["prettier", "biome", "oxfmt", "none"]).optional().describe("The formatter configured in the generated project."),
|
|
746
|
+
exports: jsonObjectSchema.optional().describe(
|
|
747
|
+
"package.json exports entries, keyed by subpath, applied over the generated exports. Each subpath replaces the generated one."
|
|
748
|
+
),
|
|
749
|
+
files: z.array(nonEmptyStringSchema).optional().describe("package.json files entries, listed ahead of the generated ones."),
|
|
750
|
+
engines: z.record(nonEmptyStringSchema, nonEmptyStringSchema).optional().describe("package.json engines version ranges, keyed by engine name such as node."),
|
|
751
|
+
lintStaged: z.record(nonEmptyStringSchema, z.array(nonEmptyStringSchema).min(1)).optional().describe("lint-staged commands to run, keyed by file glob."),
|
|
752
|
+
browser: z.record(nonEmptyStringSchema, z.union([z.boolean(), nonEmptyStringSchema])).optional().describe(
|
|
753
|
+
"package.json browser field: a module or file is excluded (false) or replaced by another path."
|
|
754
|
+
),
|
|
715
755
|
allowCustomFetcher: z.boolean().optional().describe("Whether callers can supply a custom fetch implementation."),
|
|
716
756
|
useBrandedStringAliases: z.boolean().optional().describe("Whether string aliases are emitted as distinct branded types."),
|
|
717
757
|
useLegacyExports: z.boolean().optional().describe("Whether the package emits the legacy export layout."),
|
|
@@ -785,7 +825,7 @@ var pythonGenerationConfigSchema = z.strictObject({
|
|
|
785
825
|
additionalInitExports: z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
|
|
786
826
|
});
|
|
787
827
|
var rubyGenerationConfigSchema = z.strictObject({
|
|
788
|
-
requirePaths: z.array(nonEmptyStringSchema).optional().describe("
|
|
828
|
+
requirePaths: z.array(nonEmptyStringSchema).optional().describe("Files the generated entry file loads with `require`.")
|
|
789
829
|
});
|
|
790
830
|
var rustGenerationConfigSchema = z.strictObject({
|
|
791
831
|
/**
|
|
@@ -858,6 +898,12 @@ var dependencySchema = z.strictObject({
|
|
|
858
898
|
}).refine(({ source, version }) => source !== void 0 || version !== void 0, {
|
|
859
899
|
message: "dependency must define a version or a source"
|
|
860
900
|
});
|
|
901
|
+
var bugsSchema = z.strictObject({
|
|
902
|
+
url: nonEmptyStringSchema.optional().describe("The issue tracker URL."),
|
|
903
|
+
email: nonEmptyStringSchema.optional().describe("The address for reporting issues.")
|
|
904
|
+
}).refine(({ url, email }) => url !== void 0 || email !== void 0, {
|
|
905
|
+
message: "bugs must define a url or an email"
|
|
906
|
+
});
|
|
861
907
|
var projectUrlSchema = z.strictObject({
|
|
862
908
|
label: nonEmptyStringSchema.describe("The label displayed for the project link."),
|
|
863
909
|
url: nonEmptyStringSchema.describe("The project link URL.")
|
|
@@ -872,6 +918,7 @@ var packageConfigSchema = z.strictObject({
|
|
|
872
918
|
description: z.string().optional().describe("The package description used in generated metadata."),
|
|
873
919
|
repository: nonEmptyStringSchema.optional().describe("The source repository for the generated SDK."),
|
|
874
920
|
homepage: nonEmptyStringSchema.optional().describe("The package homepage URL."),
|
|
921
|
+
bugs: bugsSchema.optional().describe("Where issues with the package are reported."),
|
|
875
922
|
documentationUrl: nonEmptyStringSchema.optional().describe("The package documentation URL."),
|
|
876
923
|
authors: z.array(authorSchema).optional().describe("Authors credited in package metadata."),
|
|
877
924
|
developers: z.array(developerSchema).optional().describe("Developers credited in package metadata."),
|
|
@@ -1157,6 +1204,7 @@ var publishConfigSchema = z.discriminatedUnion("registry", [
|
|
|
1157
1204
|
z.strictObject({
|
|
1158
1205
|
registry: z.literal("rubygems").describe("Publishes the package to a RubyGems-compatible registry."),
|
|
1159
1206
|
apiKeyEnvironmentVariable: nonEmptyStringSchema.optional().describe("The environment variable containing the RubyGems API key."),
|
|
1207
|
+
...trustedPublishingShape,
|
|
1160
1208
|
...commonPublishShape
|
|
1161
1209
|
}),
|
|
1162
1210
|
z.strictObject({
|
|
@@ -1227,7 +1275,7 @@ var githubOutputSchema = z.strictObject({
|
|
|
1227
1275
|
var distributionShape = {
|
|
1228
1276
|
/** Valid only for `cli` targets with GitHub delivery; secret names only, never values. */
|
|
1229
1277
|
distribution: cliDistributionConfigSchema.optional().describe(
|
|
1230
|
-
"CLI release channels
|
|
1278
|
+
"CLI release channels and build attestation settings for the generated release workflow; credentials are GitHub Actions secret names."
|
|
1231
1279
|
)
|
|
1232
1280
|
};
|
|
1233
1281
|
var credentialResolutionShape = {
|
|
@@ -1287,6 +1335,9 @@ var apiImportSettingsSchema = z.strictObject({
|
|
|
1287
1335
|
discriminatedUnionV2: z.boolean().optional().describe("Whether oneOf and anyOf schemas use the newer discriminator inference rules."),
|
|
1288
1336
|
undiscriminatedUnionsWithLiterals: z.boolean().optional().describe("Whether literal-bearing unions remain undiscriminated during import."),
|
|
1289
1337
|
inlineAllOfSchemas: z.boolean().optional().describe("Whether schemas composed with allOf are inlined when possible."),
|
|
1338
|
+
inferDiscriminatedUnionBaseProperties: z.boolean().optional().describe(
|
|
1339
|
+
"Whether properties every discriminated-union variant shares are lifted onto the union."
|
|
1340
|
+
),
|
|
1290
1341
|
resolveSchemaCollisions: z.boolean().optional().describe("Whether colliding imported schema names are resolved automatically."),
|
|
1291
1342
|
asyncApiMessageNaming: z.enum(["v1", "v2"]).optional().describe("The naming strategy used for messages imported from AsyncAPI."),
|
|
1292
1343
|
defaultIntegerFormat: z.enum(["int32", "int64", "uint32", "uint64"]).optional().describe("The integer format used when a schema does not declare one.")
|