@postman/sdk-config 0.0.4 → 0.1.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 +42 -17
- package/dist/index.cjs +2011 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1974 -182
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +2233 -0
- package/dist/sdk-config/index.cjs.map +1 -0
- package/dist/sdk-config/index.d.cts +3 -0
- package/dist/sdk-config/index.d.ts +3 -0
- package/dist/sdk-config/index.js +2192 -0
- package/dist/sdk-config/index.js.map +1 -0
- package/dist/sdk-config/v1/index.cjs +2233 -0
- package/dist/sdk-config/v1/index.cjs.map +1 -0
- package/dist/sdk-config/v1/index.d.cts +8644 -0
- package/dist/sdk-config/v1/index.d.ts +8644 -0
- package/dist/sdk-config/v1/index.js +2192 -0
- package/dist/sdk-config/v1/index.js.map +1 -0
- package/dist/sdk-config-ir/index.cjs +147 -18
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +2 -1
- package/dist/sdk-config-ir/index.d.ts +2 -1
- package/dist/sdk-config-ir/index.js +146 -19
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +147 -18
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +422 -400
- package/dist/sdk-config-ir/v1/index.d.ts +422 -400
- package/dist/sdk-config-ir/v1/index.js +146 -19
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/typescript-ByDbin_v.d.cts +426 -0
- package/dist/typescript-ByDbin_v.d.ts +426 -0
- package/package.json +15 -2
- package/src/sdk-config/v1/README.md +135 -0
- package/src/sdk-config-ir/v1/README.md +44 -26
|
@@ -7,7 +7,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
|
|
8
8
|
var semver__default = /*#__PURE__*/_interopDefault(semver);
|
|
9
9
|
|
|
10
|
-
// src/sdk-config-
|
|
10
|
+
// src/sdk-config-domain/v1/api.ts
|
|
11
11
|
var nonEmptyStringSchema = zod.z.string().min(1);
|
|
12
12
|
var exactSemverSchema = zod.z.string().refine(
|
|
13
13
|
(value) => {
|
|
@@ -31,7 +31,7 @@ var jsonValueSchema = zod.z.lazy(
|
|
|
31
31
|
);
|
|
32
32
|
var jsonObjectSchema = zod.z.record(zod.z.string(), jsonValueSchema);
|
|
33
33
|
|
|
34
|
-
// src/sdk-config-
|
|
34
|
+
// src/sdk-config-domain/v1/api.ts
|
|
35
35
|
var authVariableSchema = zod.z.strictObject({
|
|
36
36
|
name: nonEmptyStringSchema.optional(),
|
|
37
37
|
environmentVariable: nonEmptyStringSchema.optional(),
|
|
@@ -181,7 +181,14 @@ var apiConfigSchema = zod.z.strictObject({
|
|
|
181
181
|
environmentVariables: zod.z.array(environmentVariableSchema).default([]),
|
|
182
182
|
defaultEnvironment: nonEmptyStringSchema.optional(),
|
|
183
183
|
auth: authConfigSchema.optional(),
|
|
184
|
-
headers: zod.z.array(headerSchema).optional()
|
|
184
|
+
headers: zod.z.array(headerSchema).optional(),
|
|
185
|
+
/**
|
|
186
|
+
* Selects the named `x-fern-audiences`.
|
|
187
|
+
*
|
|
188
|
+
* Absent means all audiences. A present empty array selects no tagged audience: untagged nodes
|
|
189
|
+
* remain included, while every audience-tagged node is excluded.
|
|
190
|
+
*/
|
|
191
|
+
audiences: zod.z.array(nonEmptyStringSchema).optional()
|
|
185
192
|
});
|
|
186
193
|
var retryConfigSchema = zod.z.strictObject({
|
|
187
194
|
enabled: zod.z.boolean().default(true),
|
|
@@ -235,6 +242,7 @@ var clientConfigSchema = zod.z.strictObject({
|
|
|
235
242
|
pathParameterStyle: parameterStyleSchema.optional(),
|
|
236
243
|
filePropertyStyle: parameterStyleSchema.optional(),
|
|
237
244
|
useDefaultRequestParameterValues: zod.z.boolean().optional(),
|
|
245
|
+
respectOptionalRequestBody: zod.z.boolean().optional(),
|
|
238
246
|
tokenRefresh: tokenRefreshConfigSchema.optional()
|
|
239
247
|
});
|
|
240
248
|
var unsupportedFieldSchema = zod.z.strictObject({
|
|
@@ -280,12 +288,17 @@ var readmeEndpointSchema = zod.z.strictObject({
|
|
|
280
288
|
path: nonEmptyStringSchema,
|
|
281
289
|
stream: zod.z.boolean().optional()
|
|
282
290
|
});
|
|
291
|
+
var readmeCustomSectionSchema = zod.z.strictObject({
|
|
292
|
+
title: nonEmptyStringSchema,
|
|
293
|
+
content: zod.z.string()
|
|
294
|
+
});
|
|
283
295
|
var readmeConfigSchema = zod.z.strictObject({
|
|
284
296
|
apiName: nonEmptyStringSchema.optional(),
|
|
285
297
|
introduction: zod.z.string().optional(),
|
|
286
298
|
apiReferenceLink: nonEmptyStringSchema.optional(),
|
|
287
299
|
bannerLink: nonEmptyStringSchema.optional(),
|
|
288
300
|
disabledSections: zod.z.array(nonEmptyStringSchema).optional(),
|
|
301
|
+
customSections: zod.z.array(readmeCustomSectionSchema).optional(),
|
|
289
302
|
defaultEndpoint: readmeEndpointSchema.optional(),
|
|
290
303
|
features: zod.z.record(zod.z.string(), zod.z.array(readmeEndpointSchema)).optional()
|
|
291
304
|
});
|
|
@@ -309,10 +322,15 @@ var csharpGenerationConfigSchema = zod.z.strictObject({
|
|
|
309
322
|
simplifyObjectDictionaries: zod.z.boolean().optional(),
|
|
310
323
|
explicitNamespaces: zod.z.boolean().optional(),
|
|
311
324
|
rootNamespaceForCoreClasses: zod.z.boolean().optional(),
|
|
312
|
-
includeExceptionHandler: zod.z.boolean().optional()
|
|
325
|
+
includeExceptionHandler: zod.z.boolean().optional(),
|
|
326
|
+
experimentalExplicitNullableOptional: zod.z.boolean().optional()
|
|
313
327
|
});
|
|
314
328
|
var goGenerationConfigSchema = zod.z.strictObject({
|
|
315
329
|
legacyComplexModels: zod.z.boolean().optional(),
|
|
330
|
+
/** Uppercase common initialisms in generated names (`UserID` rather than `UserId`). */
|
|
331
|
+
smartCasing: zod.z.boolean().optional(),
|
|
332
|
+
/** Overrides the fern root-client constructor independently from the client type name. */
|
|
333
|
+
clientConstructorName: nonEmptyStringSchema.optional(),
|
|
316
334
|
unionVersion: zod.z.enum(["v0", "v1"]).optional(),
|
|
317
335
|
includeLegacyClientOptions: zod.z.boolean().optional()
|
|
318
336
|
});
|
|
@@ -322,15 +340,17 @@ var jvmGenerationConfigSchema = zod.z.strictObject({
|
|
|
322
340
|
collapseOptionalNullable: zod.z.boolean().optional(),
|
|
323
341
|
gradleDistributionUrl: zod.z.string().min(1).optional(),
|
|
324
342
|
gradlePluginManagement: zod.z.string().optional(),
|
|
325
|
-
gradleCentralDependencyManagement: zod.z.boolean().optional()
|
|
343
|
+
gradleCentralDependencyManagement: zod.z.boolean().optional(),
|
|
344
|
+
/** Selects co-located async methods or a separate async client surface. */
|
|
345
|
+
asyncStyle: zod.z.enum(["dedicated-client", "twin-methods"]).optional()
|
|
326
346
|
});
|
|
327
347
|
|
|
328
|
-
// src/sdk-config-
|
|
348
|
+
// src/sdk-config-domain/v1/language/java.ts
|
|
329
349
|
var javaGenerationConfigSchema = jvmGenerationConfigSchema.extend({
|
|
330
350
|
includeKotlinSnippets: zod.z.boolean().optional()
|
|
331
351
|
});
|
|
332
352
|
|
|
333
|
-
// src/sdk-config-
|
|
353
|
+
// src/sdk-config-domain/v1/language/kotlin.ts
|
|
334
354
|
var kotlinGenerationConfigSchema = jvmGenerationConfigSchema;
|
|
335
355
|
var compilerOptionsSchema = zod.z.strictObject({
|
|
336
356
|
target: nonEmptyStringSchema.optional(),
|
|
@@ -362,8 +382,32 @@ var typescriptGenerationConfigSchema = zod.z.strictObject({
|
|
|
362
382
|
scripts: zod.z.array(packageScriptSchema).optional()
|
|
363
383
|
});
|
|
364
384
|
|
|
365
|
-
// src/sdk-config-
|
|
366
|
-
var
|
|
385
|
+
// src/sdk-config-domain/v1/language/mcp.ts
|
|
386
|
+
var mcpAvailabilityStatuses = [
|
|
387
|
+
"IN_DEVELOPMENT",
|
|
388
|
+
"PRE_RELEASE",
|
|
389
|
+
"GENERAL_AVAILABILITY",
|
|
390
|
+
"DEPRECATED",
|
|
391
|
+
"ALPHA",
|
|
392
|
+
"BETA",
|
|
393
|
+
"PREVIEW",
|
|
394
|
+
"LEGACY"
|
|
395
|
+
];
|
|
396
|
+
var mcpToolFilterSchema = zod.z.strictObject({
|
|
397
|
+
include: zod.z.array(nonEmptyStringSchema).optional(),
|
|
398
|
+
exclude: zod.z.array(nonEmptyStringSchema).optional()
|
|
399
|
+
});
|
|
400
|
+
var mcpToolsetNameSchema = nonEmptyStringSchema.refine(
|
|
401
|
+
(name) => name !== "default" && /^[a-z0-9-]+$/.test(name),
|
|
402
|
+
'toolset names must match [a-z0-9-]+ and cannot be "default"'
|
|
403
|
+
);
|
|
404
|
+
var mcpGenerationConfigSchema = typescriptGenerationConfigSchema.extend({
|
|
405
|
+
serverName: nonEmptyStringSchema.optional(),
|
|
406
|
+
serverDescription: nonEmptyStringSchema.optional(),
|
|
407
|
+
excludeAvailability: zod.z.array(zod.z.enum(mcpAvailabilityStatuses)).optional(),
|
|
408
|
+
tools: mcpToolFilterSchema.optional(),
|
|
409
|
+
toolsets: zod.z.record(mcpToolsetNameSchema, mcpToolFilterSchema).optional()
|
|
410
|
+
});
|
|
367
411
|
var phpGenerationConfigSchema = zod.z.strictObject({
|
|
368
412
|
propertyAccess: zod.z.enum(["public", "private"]).optional(),
|
|
369
413
|
generateClientInterfaces: zod.z.boolean().optional()
|
|
@@ -404,7 +448,8 @@ var rustGenerationConfigSchema = zod.z.strictObject({
|
|
|
404
448
|
defaultFeatures: zod.z.array(nonEmptyStringSchema).optional()
|
|
405
449
|
});
|
|
406
450
|
var swiftGenerationConfigSchema = zod.z.strictObject({
|
|
407
|
-
moduleName: nonEmptyStringSchema.optional()
|
|
451
|
+
moduleName: nonEmptyStringSchema.optional(),
|
|
452
|
+
nullableAsOptional: zod.z.boolean().optional()
|
|
408
453
|
});
|
|
409
454
|
var goModulePathSchema = nonEmptyStringSchema.regex(
|
|
410
455
|
/^(?!.*(?:^|\/)\.{1,2}(?:\/|$))[A-Za-z0-9._~-]+(?:\/[A-Za-z0-9._~-]+)+$/,
|
|
@@ -485,7 +530,7 @@ var packageConfigSchema = zod.z.strictObject({
|
|
|
485
530
|
extraPeerDependencies: zod.z.array(dependencySchema).optional()
|
|
486
531
|
});
|
|
487
532
|
|
|
488
|
-
// src/sdk-config-
|
|
533
|
+
// src/sdk-config-domain/v1/language/terraform.ts
|
|
489
534
|
var planModifierSourceSchema = zod.z.discriminatedUnion("enabled", [
|
|
490
535
|
zod.z.strictObject({ enabled: zod.z.literal(true), sourceDir: nonEmptyStringSchema }),
|
|
491
536
|
zod.z.strictObject({ enabled: zod.z.literal(false) })
|
|
@@ -567,6 +612,11 @@ var unitTestsSchema = zod.z.strictObject({
|
|
|
567
612
|
mode: zod.z.enum(["core-runtime", "schema-driven", "both"]).optional(),
|
|
568
613
|
exclusions: zod.z.array(nonEmptyStringSchema).optional()
|
|
569
614
|
});
|
|
615
|
+
var fernDefinitionMetadataSchema = zod.z.strictObject({
|
|
616
|
+
definitionS3DownloadUrl: nonEmptyStringSchema,
|
|
617
|
+
outputPath: nonEmptyStringSchema.optional(),
|
|
618
|
+
cliVersion: nonEmptyStringSchema.optional()
|
|
619
|
+
});
|
|
570
620
|
var streamsSchema = zod.z.strictObject({
|
|
571
621
|
enabled: zod.z.boolean(),
|
|
572
622
|
responseType: zod.z.enum(["wrapper", "native", "web"]).optional(),
|
|
@@ -618,6 +668,17 @@ var generationConfigSchema = zod.z.strictObject({
|
|
|
618
668
|
devContainer: zod.z.boolean().default(false),
|
|
619
669
|
allowMockClient: zod.z.boolean().default(false),
|
|
620
670
|
ignoreFiles: zod.z.array(nonEmptyStringSchema).optional(),
|
|
671
|
+
/**
|
|
672
|
+
* Raw .fernignore file contents supplied to external publishers that need Fern ignore semantics.
|
|
673
|
+
* This is separate from generation.ignoreFiles because raw contents preserve comments, ordering,
|
|
674
|
+
* blank lines, and negation rules.
|
|
675
|
+
*/
|
|
676
|
+
fernignoreContents: zod.z.string().optional(),
|
|
677
|
+
/**
|
|
678
|
+
* Optional Fern definition metadata for publisher paths that need to write definition or
|
|
679
|
+
* mock-server support files. This is not required for core GitHub artifact publishing.
|
|
680
|
+
*/
|
|
681
|
+
fernDefinitionMetadata: fernDefinitionMetadataSchema.optional(),
|
|
621
682
|
reservedKeywords: zod.z.array(nonEmptyStringSchema).optional(),
|
|
622
683
|
hooks: hooksConfigSchema.optional(),
|
|
623
684
|
customCode: customCodeConfigSchema.optional(),
|
|
@@ -643,8 +704,17 @@ var publishRegistrySchema = zod.z.enum([
|
|
|
643
704
|
"go",
|
|
644
705
|
"composer"
|
|
645
706
|
]);
|
|
707
|
+
var credentialResolutionSchema = zod.z.enum([
|
|
708
|
+
"refs-only",
|
|
709
|
+
"resolved-by-orchestrator",
|
|
710
|
+
"resolved-by-fiddle"
|
|
711
|
+
]);
|
|
646
712
|
var commonPublishShape = {
|
|
647
713
|
url: nonEmptyStringSchema.optional(),
|
|
714
|
+
/**
|
|
715
|
+
* Reference to registry publishing credentials. Raw tokens/passwords are intentionally not part of
|
|
716
|
+
* SDK Config IR; the external publisher or orchestrator resolves this reference before use.
|
|
717
|
+
*/
|
|
648
718
|
credentialsRef: nonEmptyStringSchema.optional(),
|
|
649
719
|
releaseBranch: nonEmptyStringSchema.optional(),
|
|
650
720
|
tolerateRepublish: zod.z.boolean().optional()
|
|
@@ -659,6 +729,10 @@ var publishConfigSchema = zod.z.discriminatedUnion("registry", [
|
|
|
659
729
|
zod.z.strictObject({ registry: zod.z.literal("composer"), ...commonPublishShape }),
|
|
660
730
|
zod.z.strictObject({
|
|
661
731
|
registry: zod.z.literal("maven"),
|
|
732
|
+
/**
|
|
733
|
+
* Reference to Maven signing credentials. Raw signing keys are intentionally not part of SDK
|
|
734
|
+
* Config IR; the external publisher or orchestrator resolves this reference before use.
|
|
735
|
+
*/
|
|
662
736
|
signingCredentialsRef: nonEmptyStringSchema.optional(),
|
|
663
737
|
...commonPublishShape
|
|
664
738
|
})
|
|
@@ -667,29 +741,54 @@ var reviewersSchema = zod.z.strictObject({
|
|
|
667
741
|
teams: zod.z.array(nonEmptyStringSchema).optional(),
|
|
668
742
|
users: zod.z.array(nonEmptyStringSchema).optional()
|
|
669
743
|
});
|
|
744
|
+
var replayControlSchema = zod.z.strictObject({
|
|
745
|
+
enabled: zod.z.boolean()
|
|
746
|
+
});
|
|
670
747
|
var githubOutputSchema = zod.z.strictObject({
|
|
671
748
|
repository: nonEmptyStringSchema,
|
|
672
749
|
host: nonEmptyStringSchema.optional(),
|
|
673
750
|
branch: nonEmptyStringSchema.optional(),
|
|
674
751
|
mode: zod.z.enum(["release", "pull-request", "push"]).optional(),
|
|
675
752
|
reviewers: reviewersSchema.optional(),
|
|
753
|
+
/**
|
|
754
|
+
* Reference to GitHub credentials. Raw tokens are intentionally not part of SDK Config IR; the
|
|
755
|
+
* external publisher or orchestrator resolves this reference before use.
|
|
756
|
+
*/
|
|
676
757
|
credentialsRef: nonEmptyStringSchema.optional(),
|
|
677
|
-
privateRepository: zod.z.boolean().optional()
|
|
678
|
-
|
|
758
|
+
privateRepository: zod.z.boolean().optional(),
|
|
759
|
+
/** GitHub replay control. If omitted, the external publisher applies its default behavior. */
|
|
760
|
+
replay: replayControlSchema.optional(),
|
|
761
|
+
/** Run GitHub publishing verification. Defaults to false to match current Fiddle job behavior. */
|
|
762
|
+
verify: zod.z.boolean().default(false),
|
|
763
|
+
/** Skip creating/updating a GitHub PR when no files changed. Defaults to false. */
|
|
764
|
+
skipIfNoDiff: zod.z.boolean().default(false),
|
|
765
|
+
/** Automatically merge the GitHub publishing PR. Defaults to false. */
|
|
766
|
+
autoMerge: zod.z.boolean().default(false)
|
|
767
|
+
});
|
|
768
|
+
var credentialResolutionShape = {
|
|
769
|
+
/**
|
|
770
|
+
* Where output credential references are resolved. SDK Config IR carries refs only; raw resolved
|
|
771
|
+
* credentials belong at the external publisher/orchestrator boundary, not in this config.
|
|
772
|
+
*/
|
|
773
|
+
credentialResolution: credentialResolutionSchema.default("refs-only")
|
|
774
|
+
};
|
|
679
775
|
var filesOutputSchema = zod.z.strictObject({
|
|
680
776
|
delivery: zod.z.literal("files"),
|
|
681
777
|
path: nonEmptyStringSchema.optional(),
|
|
682
|
-
publish: publishConfigSchema.optional()
|
|
778
|
+
publish: publishConfigSchema.optional(),
|
|
779
|
+
...credentialResolutionShape
|
|
683
780
|
});
|
|
684
781
|
var zipOutputSchema = zod.z.strictObject({
|
|
685
782
|
delivery: zod.z.literal("zip"),
|
|
686
783
|
fileName: nonEmptyStringSchema.optional(),
|
|
687
|
-
publish: publishConfigSchema.optional()
|
|
784
|
+
publish: publishConfigSchema.optional(),
|
|
785
|
+
...credentialResolutionShape
|
|
688
786
|
});
|
|
689
787
|
var githubDeliverySchema = zod.z.strictObject({
|
|
690
788
|
delivery: zod.z.literal("github"),
|
|
691
789
|
github: githubOutputSchema,
|
|
692
|
-
publish: publishConfigSchema.optional()
|
|
790
|
+
publish: publishConfigSchema.optional(),
|
|
791
|
+
...credentialResolutionShape
|
|
693
792
|
});
|
|
694
793
|
var outputConfigSchema = zod.z.discriminatedUnion(
|
|
695
794
|
"delivery",
|
|
@@ -709,7 +808,8 @@ var apiImportSettingsSchema = zod.z.strictObject({
|
|
|
709
808
|
onlyIncludeReferencedSchemas: zod.z.boolean().optional(),
|
|
710
809
|
objectQueryParameters: zod.z.boolean().optional(),
|
|
711
810
|
typeDatesAsStrings: zod.z.boolean().optional(),
|
|
712
|
-
groupMultiApiEnvironments: zod.z.boolean().optional()
|
|
811
|
+
groupMultiApiEnvironments: zod.z.boolean().optional(),
|
|
812
|
+
defaultIntegerFormat: zod.z.enum(["int32", "int64", "uint32", "uint64"]).optional()
|
|
713
813
|
});
|
|
714
814
|
var sourceSpecTypeSchema = zod.z.enum([
|
|
715
815
|
"openapi",
|
|
@@ -766,7 +866,19 @@ var targetConfigSchema = zod.z.strictObject({
|
|
|
766
866
|
generatorVersion: exactSemverSchema.optional(),
|
|
767
867
|
sourceOrigin: zod.z.enum(["postman", "fern"]),
|
|
768
868
|
sdkName: nonEmptyStringSchema,
|
|
869
|
+
/**
|
|
870
|
+
* Stable Fern/Fiddle API identity for external publishing.
|
|
871
|
+
* Producers must set this explicitly for GitHub or registry publishing; it is not inferred from
|
|
872
|
+
* target.sdkName because SDK display names and Fern API names are not equivalent.
|
|
873
|
+
*/
|
|
874
|
+
apiName: nonEmptyStringSchema.optional(),
|
|
769
875
|
organization: nonEmptyStringSchema.optional(),
|
|
876
|
+
/**
|
|
877
|
+
* Stable Fern/Fiddle organization identity for external publishing.
|
|
878
|
+
* Producers must set this explicitly for GitHub or registry publishing; it is not inferred from
|
|
879
|
+
* target.organization because source organization metadata is optional and may not match Fern.
|
|
880
|
+
*/
|
|
881
|
+
organizationName: nonEmptyStringSchema.optional(),
|
|
770
882
|
sdkVersion: nonEmptyStringSchema.default("1.0.0"),
|
|
771
883
|
apiVersion: nonEmptyStringSchema.optional()
|
|
772
884
|
});
|
|
@@ -774,7 +886,7 @@ var targetConfigSchema = zod.z.strictObject({
|
|
|
774
886
|
// src/sdk-config-ir/v1/sdk-config-ir-v1.ts
|
|
775
887
|
var SDK_CONFIG_IR_V1_SCHEMA_VERSION = "sdk-config-ir/v1";
|
|
776
888
|
var publishRegistryLanguages = {
|
|
777
|
-
npm: ["typescript"],
|
|
889
|
+
npm: ["typescript", "mcp"],
|
|
778
890
|
pypi: ["python"],
|
|
779
891
|
maven: ["java", "kotlin"],
|
|
780
892
|
nuget: ["csharp"],
|
|
@@ -842,6 +954,21 @@ var sdkConfigIrV1Schema = zod.z.strictObject({
|
|
|
842
954
|
compatibility: compatibilityConfigSchema.optional()
|
|
843
955
|
}).superRefine(({ compatibility, generation, output, package: packageConfig, target }, context) => {
|
|
844
956
|
const configuredLanguages = Object.keys(generation.language ?? {});
|
|
957
|
+
const requiresExternalPublishIdentity = output.delivery === "github" || output.publish !== void 0;
|
|
958
|
+
if (requiresExternalPublishIdentity) {
|
|
959
|
+
[
|
|
960
|
+
["apiName", "target.apiName is required for external publishing"],
|
|
961
|
+
["organizationName", "target.organizationName is required for external publishing"]
|
|
962
|
+
].forEach(([field, message]) => {
|
|
963
|
+
if (!target[field]) {
|
|
964
|
+
context.addIssue({
|
|
965
|
+
code: "custom",
|
|
966
|
+
message,
|
|
967
|
+
path: ["target", field]
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
}
|
|
845
972
|
configuredLanguages.forEach((language) => {
|
|
846
973
|
if (language !== target.language) {
|
|
847
974
|
context.addIssue({
|
|
@@ -900,6 +1027,7 @@ exports.jsonValueSchema = jsonValueSchema;
|
|
|
900
1027
|
exports.kotlinGenerationConfigSchema = kotlinGenerationConfigSchema;
|
|
901
1028
|
exports.languageGenerationConfigSchema = languageGenerationConfigSchema;
|
|
902
1029
|
exports.legacyInputSchema = legacyInputSchema;
|
|
1030
|
+
exports.mcpAvailabilityStatuses = mcpAvailabilityStatuses;
|
|
903
1031
|
exports.mcpGenerationConfigSchema = mcpGenerationConfigSchema;
|
|
904
1032
|
exports.nonEmptyStringSchema = nonEmptyStringSchema;
|
|
905
1033
|
exports.outputConfigSchema = outputConfigSchema;
|
|
@@ -909,6 +1037,7 @@ exports.phpGenerationConfigSchema = phpGenerationConfigSchema;
|
|
|
909
1037
|
exports.publishConfigSchema = publishConfigSchema;
|
|
910
1038
|
exports.publishRegistrySchema = publishRegistrySchema;
|
|
911
1039
|
exports.pythonGenerationConfigSchema = pythonGenerationConfigSchema;
|
|
1040
|
+
exports.readmeCustomSectionSchema = readmeCustomSectionSchema;
|
|
912
1041
|
exports.readmeEndpointSchema = readmeEndpointSchema;
|
|
913
1042
|
exports.rubyGenerationConfigSchema = rubyGenerationConfigSchema;
|
|
914
1043
|
exports.rustGenerationConfigSchema = rustGenerationConfigSchema;
|