@postman/sdk-config 0.12.0 → 0.14.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 +170 -18
- 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 +170 -18
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +164 -17
- 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 +164 -17
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +164 -17
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +429 -31
- package/dist/sdk-config/v1/index.d.ts +429 -31
- package/dist/sdk-config/v1/index.js +164 -17
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +22 -5
- 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 +22 -5
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +22 -5
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +30 -4
- package/dist/sdk-config-ir/v1/index.d.ts +30 -4
- package/dist/sdk-config-ir/v1/index.js +22 -5
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-Byhn4MqL.d.cts → typescript-BFRxjAah.d.cts} +1 -0
- package/dist/{typescript-Byhn4MqL.d.ts → typescript-BFRxjAah.d.ts} +1 -0
- package/package.json +1 -1
- package/src/sdk-config/v1/README.md +35 -12
- package/src/sdk-config-ir/v1/README.md +36 -29
|
@@ -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.cjs';
|
|
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.cjs';
|
|
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";
|
|
@@ -1130,6 +1132,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1130
1132
|
bucket: z.ZodString;
|
|
1131
1133
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1132
1134
|
}, z.core.$strict>>;
|
|
1135
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1133
1136
|
}, z.core.$strict>>;
|
|
1134
1137
|
delivery: z.ZodLiteral<"files">;
|
|
1135
1138
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -1197,6 +1200,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1197
1200
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1198
1201
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1199
1202
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1200
1204
|
registry: z.ZodLiteral<"rubygems">;
|
|
1201
1205
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1202
1206
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1292,6 +1296,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1292
1296
|
bucket: z.ZodString;
|
|
1293
1297
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1294
1298
|
}, z.core.$strict>>;
|
|
1299
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1295
1300
|
}, z.core.$strict>>;
|
|
1296
1301
|
delivery: z.ZodLiteral<"zip">;
|
|
1297
1302
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -1359,6 +1364,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1359
1364
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1360
1365
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1361
1366
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1367
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1362
1368
|
registry: z.ZodLiteral<"rubygems">;
|
|
1363
1369
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1364
1370
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1454,6 +1460,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1454
1460
|
bucket: z.ZodString;
|
|
1455
1461
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1456
1462
|
}, z.core.$strict>>;
|
|
1463
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1457
1464
|
}, z.core.$strict>>;
|
|
1458
1465
|
delivery: z.ZodLiteral<"github">;
|
|
1459
1466
|
github: z.ZodObject<{
|
|
@@ -1479,6 +1486,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1479
1486
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
1480
1487
|
}, z.core.$strict>>;
|
|
1481
1488
|
privateRepository: z.ZodOptional<z.ZodBoolean>;
|
|
1489
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1482
1490
|
license: z.ZodOptional<z.ZodObject<{
|
|
1483
1491
|
type: z.ZodOptional<z.ZodString>;
|
|
1484
1492
|
customPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1554,6 +1562,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1554
1562
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1555
1563
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1556
1564
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1557
1566
|
registry: z.ZodLiteral<"rubygems">;
|
|
1558
1567
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1559
1568
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1772,9 +1781,9 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1772
1781
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1773
1782
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
1774
1783
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
1784
|
+
auto: "auto";
|
|
1775
1785
|
synthetic: "synthetic";
|
|
1776
1786
|
recorded: "recorded";
|
|
1777
|
-
auto: "auto";
|
|
1778
1787
|
}>>;
|
|
1779
1788
|
}, z.core.$strict>>;
|
|
1780
1789
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -2685,9 +2694,9 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2685
2694
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2686
2695
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
2687
2696
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
2697
|
+
auto: "auto";
|
|
2688
2698
|
synthetic: "synthetic";
|
|
2689
2699
|
recorded: "recorded";
|
|
2690
|
-
auto: "auto";
|
|
2691
2700
|
}>>;
|
|
2692
2701
|
}, z.core.$strict>>;
|
|
2693
2702
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -3179,6 +3188,8 @@ declare const publishConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3179
3188
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3180
3189
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3181
3190
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3191
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3192
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3182
3193
|
registry: z.ZodLiteral<"rubygems">;
|
|
3183
3194
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3184
3195
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3308,6 +3319,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3308
3319
|
bucket: z.ZodString;
|
|
3309
3320
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3310
3321
|
}, z.core.$strict>>;
|
|
3322
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3311
3323
|
}, z.core.$strict>>;
|
|
3312
3324
|
delivery: z.ZodLiteral<"files">;
|
|
3313
3325
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -3409,6 +3421,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3409
3421
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3410
3422
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3411
3423
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3424
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3425
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3412
3426
|
registry: z.ZodLiteral<"rubygems">;
|
|
3413
3427
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3414
3428
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3537,6 +3551,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3537
3551
|
bucket: z.ZodString;
|
|
3538
3552
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3539
3553
|
}, z.core.$strict>>;
|
|
3554
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3540
3555
|
}, z.core.$strict>>;
|
|
3541
3556
|
delivery: z.ZodLiteral<"zip">;
|
|
3542
3557
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -3638,6 +3653,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3638
3653
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3639
3654
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3640
3655
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3656
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3657
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3641
3658
|
registry: z.ZodLiteral<"rubygems">;
|
|
3642
3659
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3643
3660
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3766,6 +3783,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3766
3783
|
bucket: z.ZodString;
|
|
3767
3784
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3768
3785
|
}, z.core.$strict>>;
|
|
3786
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3769
3787
|
}, z.core.$strict>>;
|
|
3770
3788
|
delivery: z.ZodLiteral<"github">;
|
|
3771
3789
|
github: z.ZodObject<{
|
|
@@ -3793,6 +3811,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3793
3811
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
3794
3812
|
}, z.core.$strict>>;
|
|
3795
3813
|
privateRepository: z.ZodOptional<z.ZodBoolean>;
|
|
3814
|
+
/** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
|
|
3815
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
3796
3816
|
/** GitHub license block scoped to repository delivery. */
|
|
3797
3817
|
license: z.ZodOptional<z.ZodObject<{
|
|
3798
3818
|
/** SPDX identifier or license key for the repository license (for example, "MIT"). */
|
|
@@ -3909,6 +3929,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3909
3929
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3910
3930
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3911
3931
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3932
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3933
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3912
3934
|
registry: z.ZodLiteral<"rubygems">;
|
|
3913
3935
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3914
3936
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4048,6 +4070,7 @@ declare const apiImportSettingsSchema: z.ZodObject<{
|
|
|
4048
4070
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4049
4071
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4050
4072
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4073
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4051
4074
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4052
4075
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4053
4076
|
v1: "v1";
|
|
@@ -4103,6 +4126,7 @@ declare const sourceSpecConfigSchema: z.ZodObject<{
|
|
|
4103
4126
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4104
4127
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4105
4128
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4129
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4106
4130
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4107
4131
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4108
4132
|
v1: "v1";
|
|
@@ -4152,6 +4176,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
4152
4176
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4153
4177
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4154
4178
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4179
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4155
4180
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4156
4181
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4157
4182
|
v1: "v1";
|
|
@@ -4188,6 +4213,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
4188
4213
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4189
4214
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4190
4215
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4216
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4191
4217
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4192
4218
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4193
4219
|
v1: "v1";
|
|
@@ -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";
|
|
@@ -1130,6 +1132,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1130
1132
|
bucket: z.ZodString;
|
|
1131
1133
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1132
1134
|
}, z.core.$strict>>;
|
|
1135
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1133
1136
|
}, z.core.$strict>>;
|
|
1134
1137
|
delivery: z.ZodLiteral<"files">;
|
|
1135
1138
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -1197,6 +1200,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1197
1200
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1198
1201
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1199
1202
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1200
1204
|
registry: z.ZodLiteral<"rubygems">;
|
|
1201
1205
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1202
1206
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1292,6 +1296,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1292
1296
|
bucket: z.ZodString;
|
|
1293
1297
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1294
1298
|
}, z.core.$strict>>;
|
|
1299
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1295
1300
|
}, z.core.$strict>>;
|
|
1296
1301
|
delivery: z.ZodLiteral<"zip">;
|
|
1297
1302
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -1359,6 +1364,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1359
1364
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1360
1365
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1361
1366
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1367
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1362
1368
|
registry: z.ZodLiteral<"rubygems">;
|
|
1363
1369
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1364
1370
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1454,6 +1460,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1454
1460
|
bucket: z.ZodString;
|
|
1455
1461
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
1456
1462
|
}, z.core.$strict>>;
|
|
1463
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1457
1464
|
}, z.core.$strict>>;
|
|
1458
1465
|
delivery: z.ZodLiteral<"github">;
|
|
1459
1466
|
github: z.ZodObject<{
|
|
@@ -1479,6 +1486,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1479
1486
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
1480
1487
|
}, z.core.$strict>>;
|
|
1481
1488
|
privateRepository: z.ZodOptional<z.ZodBoolean>;
|
|
1489
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1482
1490
|
license: z.ZodOptional<z.ZodObject<{
|
|
1483
1491
|
type: z.ZodOptional<z.ZodString>;
|
|
1484
1492
|
customPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1554,6 +1562,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1554
1562
|
releaseBranch: z.ZodOptional<z.ZodString>;
|
|
1555
1563
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
1556
1564
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
1557
1566
|
registry: z.ZodLiteral<"rubygems">;
|
|
1558
1567
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
1559
1568
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1772,9 +1781,9 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
1772
1781
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1773
1782
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
1774
1783
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
1784
|
+
auto: "auto";
|
|
1775
1785
|
synthetic: "synthetic";
|
|
1776
1786
|
recorded: "recorded";
|
|
1777
|
-
auto: "auto";
|
|
1778
1787
|
}>>;
|
|
1779
1788
|
}, z.core.$strict>>;
|
|
1780
1789
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -2685,9 +2694,9 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
2685
2694
|
exclusions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2686
2695
|
fallbackToGeneratedErrorExamples: z.ZodOptional<z.ZodBoolean>;
|
|
2687
2696
|
fixtureSource: z.ZodOptional<z.ZodEnum<{
|
|
2697
|
+
auto: "auto";
|
|
2688
2698
|
synthetic: "synthetic";
|
|
2689
2699
|
recorded: "recorded";
|
|
2690
|
-
auto: "auto";
|
|
2691
2700
|
}>>;
|
|
2692
2701
|
}, z.core.$strict>>;
|
|
2693
2702
|
unitTests: z.ZodOptional<z.ZodObject<{
|
|
@@ -3179,6 +3188,8 @@ declare const publishConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3179
3188
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3180
3189
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3181
3190
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3191
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3192
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3182
3193
|
registry: z.ZodLiteral<"rubygems">;
|
|
3183
3194
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3184
3195
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3308,6 +3319,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3308
3319
|
bucket: z.ZodString;
|
|
3309
3320
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3310
3321
|
}, z.core.$strict>>;
|
|
3322
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3311
3323
|
}, z.core.$strict>>;
|
|
3312
3324
|
delivery: z.ZodLiteral<"files">;
|
|
3313
3325
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -3409,6 +3421,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3409
3421
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3410
3422
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3411
3423
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3424
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3425
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3412
3426
|
registry: z.ZodLiteral<"rubygems">;
|
|
3413
3427
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3414
3428
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3537,6 +3551,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3537
3551
|
bucket: z.ZodString;
|
|
3538
3552
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3539
3553
|
}, z.core.$strict>>;
|
|
3554
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3540
3555
|
}, z.core.$strict>>;
|
|
3541
3556
|
delivery: z.ZodLiteral<"zip">;
|
|
3542
3557
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -3638,6 +3653,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3638
3653
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3639
3654
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3640
3655
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3656
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3657
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3641
3658
|
registry: z.ZodLiteral<"rubygems">;
|
|
3642
3659
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3643
3660
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3766,6 +3783,7 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3766
3783
|
bucket: z.ZodString;
|
|
3767
3784
|
tokenSecretName: z.ZodOptional<z.ZodString>;
|
|
3768
3785
|
}, z.core.$strict>>;
|
|
3786
|
+
githubAttestations: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
3769
3787
|
}, z.core.$strict>>;
|
|
3770
3788
|
delivery: z.ZodLiteral<"github">;
|
|
3771
3789
|
github: z.ZodObject<{
|
|
@@ -3793,6 +3811,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3793
3811
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
3794
3812
|
}, z.core.$strict>>;
|
|
3795
3813
|
privateRepository: z.ZodOptional<z.ZodBoolean>;
|
|
3814
|
+
/** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
|
|
3815
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
3796
3816
|
/** GitHub license block scoped to repository delivery. */
|
|
3797
3817
|
license: z.ZodOptional<z.ZodObject<{
|
|
3798
3818
|
/** SPDX identifier or license key for the repository license (for example, "MIT"). */
|
|
@@ -3909,6 +3929,8 @@ declare const outputConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3909
3929
|
tolerateRepublish: z.ZodOptional<z.ZodBoolean>;
|
|
3910
3930
|
/** Generate registry publishing workflow files when publishing through GitHub delivery. */
|
|
3911
3931
|
shouldGeneratePublishWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3932
|
+
/** Use registry trusted publishing / OIDC instead of a static token secret. */
|
|
3933
|
+
trustedPublishing: z.ZodOptional<z.ZodBoolean>;
|
|
3912
3934
|
registry: z.ZodLiteral<"rubygems">;
|
|
3913
3935
|
apiKeyEnvironmentVariable: z.ZodOptional<z.ZodString>;
|
|
3914
3936
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4048,6 +4070,7 @@ declare const apiImportSettingsSchema: z.ZodObject<{
|
|
|
4048
4070
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4049
4071
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4050
4072
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4073
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4051
4074
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4052
4075
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4053
4076
|
v1: "v1";
|
|
@@ -4103,6 +4126,7 @@ declare const sourceSpecConfigSchema: z.ZodObject<{
|
|
|
4103
4126
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4104
4127
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4105
4128
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4129
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4106
4130
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4107
4131
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4108
4132
|
v1: "v1";
|
|
@@ -4152,6 +4176,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
4152
4176
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4153
4177
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4154
4178
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4179
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4155
4180
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4156
4181
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4157
4182
|
v1: "v1";
|
|
@@ -4188,6 +4213,7 @@ declare const sourceConfigSchema: z.ZodObject<{
|
|
|
4188
4213
|
discriminatedUnionV2: z.ZodOptional<z.ZodBoolean>;
|
|
4189
4214
|
undiscriminatedUnionsWithLiterals: z.ZodOptional<z.ZodBoolean>;
|
|
4190
4215
|
inlineAllOfSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
4216
|
+
inferDiscriminatedUnionBaseProperties: z.ZodOptional<z.ZodBoolean>;
|
|
4191
4217
|
resolveSchemaCollisions: z.ZodOptional<z.ZodBoolean>;
|
|
4192
4218
|
asyncApiMessageNaming: z.ZodOptional<z.ZodEnum<{
|
|
4193
4219
|
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
|
}
|
|
@@ -816,7 +825,7 @@ var pythonGenerationConfigSchema = z.strictObject({
|
|
|
816
825
|
additionalInitExports: z.array(additionalInitExportSchema).optional().describe("Additional names re-exported from the package initializer.")
|
|
817
826
|
});
|
|
818
827
|
var rubyGenerationConfigSchema = z.strictObject({
|
|
819
|
-
requirePaths: z.array(nonEmptyStringSchema).optional().describe("
|
|
828
|
+
requirePaths: z.array(nonEmptyStringSchema).optional().describe("Files the generated entry file loads with `require`.")
|
|
820
829
|
});
|
|
821
830
|
var rustGenerationConfigSchema = z.strictObject({
|
|
822
831
|
/**
|
|
@@ -1195,6 +1204,7 @@ var publishConfigSchema = z.discriminatedUnion("registry", [
|
|
|
1195
1204
|
z.strictObject({
|
|
1196
1205
|
registry: z.literal("rubygems").describe("Publishes the package to a RubyGems-compatible registry."),
|
|
1197
1206
|
apiKeyEnvironmentVariable: nonEmptyStringSchema.optional().describe("The environment variable containing the RubyGems API key."),
|
|
1207
|
+
...trustedPublishingShape,
|
|
1198
1208
|
...commonPublishShape
|
|
1199
1209
|
}),
|
|
1200
1210
|
z.strictObject({
|
|
@@ -1251,6 +1261,10 @@ var githubOutputSchema = z.strictObject({
|
|
|
1251
1261
|
/** Raw GitHub credentials. These values can be sensitive and must be handled as secrets. */
|
|
1252
1262
|
credentials: registryCredentialsSchema.optional().describe("Resolved GitHub credentials."),
|
|
1253
1263
|
privateRepository: z.boolean().optional().describe("Whether the destination repository is private."),
|
|
1264
|
+
/** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
|
|
1265
|
+
workflows: z.boolean().optional().describe(
|
|
1266
|
+
"Whether generated .github/workflows files are delivered. Defaults to true. When false, newly generated workflow files are skipped and existing ones in the repository are left untouched."
|
|
1267
|
+
),
|
|
1254
1268
|
/** GitHub license block scoped to repository delivery. */
|
|
1255
1269
|
license: githubLicenseSchema.optional().describe("License configuration for the destination repository."),
|
|
1256
1270
|
/** GitHub replay control. If omitted, the external publisher applies its default behavior. */
|
|
@@ -1265,7 +1279,7 @@ var githubOutputSchema = z.strictObject({
|
|
|
1265
1279
|
var distributionShape = {
|
|
1266
1280
|
/** Valid only for `cli` targets with GitHub delivery; secret names only, never values. */
|
|
1267
1281
|
distribution: cliDistributionConfigSchema.optional().describe(
|
|
1268
|
-
"CLI release channels
|
|
1282
|
+
"CLI release channels and build attestation settings for the generated release workflow; credentials are GitHub Actions secret names."
|
|
1269
1283
|
)
|
|
1270
1284
|
};
|
|
1271
1285
|
var credentialResolutionShape = {
|
|
@@ -1325,6 +1339,9 @@ var apiImportSettingsSchema = z.strictObject({
|
|
|
1325
1339
|
discriminatedUnionV2: z.boolean().optional().describe("Whether oneOf and anyOf schemas use the newer discriminator inference rules."),
|
|
1326
1340
|
undiscriminatedUnionsWithLiterals: z.boolean().optional().describe("Whether literal-bearing unions remain undiscriminated during import."),
|
|
1327
1341
|
inlineAllOfSchemas: z.boolean().optional().describe("Whether schemas composed with allOf are inlined when possible."),
|
|
1342
|
+
inferDiscriminatedUnionBaseProperties: z.boolean().optional().describe(
|
|
1343
|
+
"Whether properties every discriminated-union variant shares are lifted onto the union."
|
|
1344
|
+
),
|
|
1328
1345
|
resolveSchemaCollisions: z.boolean().optional().describe("Whether colliding imported schema names are resolved automatically."),
|
|
1329
1346
|
asyncApiMessageNaming: z.enum(["v1", "v2"]).optional().describe("The naming strategy used for messages imported from AsyncAPI."),
|
|
1330
1347
|
defaultIntegerFormat: z.enum(["int32", "int64", "uint32", "uint64"]).optional().describe("The integer format used when a schema does not declare one.")
|