@postman/sdk-config 0.5.1 → 0.7.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 +15 -0
- package/dist/index.cjs +263 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +260 -28
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +224 -27
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.d.cts +2 -2
- package/dist/sdk-config/index.d.ts +2 -2
- package/dist/sdk-config/index.js +224 -28
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +224 -27
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +20 -2
- package/dist/sdk-config/v1/index.d.ts +20 -2
- package/dist/sdk-config/v1/index.js +224 -28
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +153 -0
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +2 -2
- package/dist/sdk-config-ir/index.d.ts +2 -2
- package/dist/sdk-config-ir/index.js +151 -1
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +153 -0
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +43 -3
- package/dist/sdk-config-ir/v1/index.d.ts +43 -3
- package/dist/sdk-config-ir/v1/index.js +151 -1
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-BruxA5zG.d.cts → typescript-BdDv_kwT.d.cts} +8 -0
- package/dist/{typescript-BruxA5zG.d.ts → typescript-BdDv_kwT.d.ts} +8 -0
- package/package.json +1 -1
- package/src/sdk-config-ir/v1/README.md +10 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as JsonObject } from '../../typescript-
|
|
2
|
-
export { C as CliGenerationConfig, a as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, c as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, d as McpGenerationConfig, e as McpToolFilter, P as PackageConfig, f as PhpGenerationConfig, g as PlanModifiers, h as PythonGenerationConfig, R as RubyGenerationConfig, i as RustGenerationConfig, S as SwiftGenerationConfig, T as TerraformGenerationConfig, j as TypescriptGenerationConfig, k as cliGenerationConfigSchema, l as composerPackageNameSchema, m as csharpGenerationConfigSchema, n as dependencySchema, o as exactSemverSchema, p as goGenerationConfigSchema, q as goModulePathSchema, r as javaGenerationConfigSchema, s as jsonObjectSchema, t as jsonValueSchema, u as kotlinGenerationConfigSchema, v as mcpAvailabilityStatuses, w as mcpGenerationConfigSchema, x as nonEmptyStringSchema, y as packageConfigSchema, z as phpGenerationConfigSchema, A as pythonGenerationConfigSchema, B as relativePathSchema, E as rubyGenerationConfigSchema, F as rustGenerationConfigSchema, H as swiftGenerationConfigSchema, I as terraformGenerationConfigSchema, L as typescriptGenerationConfigSchema } from '../../typescript-
|
|
1
|
+
import { b as JsonObject } from '../../typescript-BdDv_kwT.cjs';
|
|
2
|
+
export { C as CliGenerationConfig, a as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, c as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, d as McpGenerationConfig, e as McpToolFilter, P as PackageConfig, f as PhpGenerationConfig, g as PlanModifiers, h as PythonGenerationConfig, R as RubyGenerationConfig, i as RustGenerationConfig, S as SwiftGenerationConfig, T as TerraformGenerationConfig, j as TypescriptGenerationConfig, k as cliGenerationConfigSchema, l as composerPackageNameSchema, m as csharpGenerationConfigSchema, n as dependencySchema, o as exactSemverSchema, p as goGenerationConfigSchema, q as goModulePathSchema, r as javaGenerationConfigSchema, s as jsonObjectSchema, t as jsonValueSchema, u as kotlinGenerationConfigSchema, v as mcpAvailabilityStatuses, w as mcpGenerationConfigSchema, x as nonEmptyStringSchema, y as packageConfigSchema, z as phpGenerationConfigSchema, A as pythonGenerationConfigSchema, B as relativePathSchema, E as rubyGenerationConfigSchema, F as rustGenerationConfigSchema, H as swiftGenerationConfigSchema, I as terraformGenerationConfigSchema, L as typescriptGenerationConfigSchema } from '../../typescript-BdDv_kwT.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const authSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -701,6 +701,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
701
701
|
pnpm: "pnpm";
|
|
702
702
|
yarn: "yarn";
|
|
703
703
|
}>>;
|
|
704
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
704
705
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
705
706
|
jest: "jest";
|
|
706
707
|
vitest: "vitest";
|
|
@@ -712,11 +713,13 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
712
713
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
713
714
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
714
715
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
716
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
715
717
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
716
718
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
717
719
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
718
720
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
719
721
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
722
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
720
723
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
721
724
|
name: z.ZodString;
|
|
722
725
|
command: z.ZodString;
|
|
@@ -845,6 +848,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
845
848
|
pnpm: "pnpm";
|
|
846
849
|
yarn: "yarn";
|
|
847
850
|
}>>;
|
|
851
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
848
852
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
849
853
|
jest: "jest";
|
|
850
854
|
vitest: "vitest";
|
|
@@ -856,11 +860,13 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
856
860
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
857
861
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
858
862
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
863
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
859
864
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
860
865
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
861
866
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
862
867
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
863
868
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
864
870
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
865
871
|
name: z.ZodString;
|
|
866
872
|
command: z.ZodString;
|
|
@@ -1094,6 +1100,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1094
1100
|
pnpm: "pnpm";
|
|
1095
1101
|
yarn: "yarn";
|
|
1096
1102
|
}>>;
|
|
1103
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
1097
1104
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
1098
1105
|
jest: "jest";
|
|
1099
1106
|
vitest: "vitest";
|
|
@@ -1105,11 +1112,13 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1105
1112
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
1106
1113
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1107
1114
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
1108
1116
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
1109
1117
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
1110
1118
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
1111
1119
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
1112
1120
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
1121
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1113
1122
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1114
1123
|
name: z.ZodString;
|
|
1115
1124
|
command: z.ZodString;
|
|
@@ -1238,6 +1247,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1238
1247
|
pnpm: "pnpm";
|
|
1239
1248
|
yarn: "yarn";
|
|
1240
1249
|
}>>;
|
|
1250
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
1241
1251
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
1242
1252
|
jest: "jest";
|
|
1243
1253
|
vitest: "vitest";
|
|
@@ -1249,11 +1259,13 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1249
1259
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
1250
1260
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1251
1261
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
1252
1263
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
1253
1264
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
1254
1265
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
1255
1266
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
1256
1267
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
1268
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1257
1269
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1258
1270
|
name: z.ZodString;
|
|
1259
1271
|
command: z.ZodString;
|
|
@@ -3377,6 +3389,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3377
3389
|
pnpm: "pnpm";
|
|
3378
3390
|
yarn: "yarn";
|
|
3379
3391
|
}>>;
|
|
3392
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
3380
3393
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
3381
3394
|
jest: "jest";
|
|
3382
3395
|
vitest: "vitest";
|
|
@@ -3388,11 +3401,13 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3388
3401
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
3389
3402
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
3390
3403
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
3404
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
3391
3405
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
3392
3406
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
3393
3407
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
3394
3408
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
3395
3409
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
3410
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3396
3411
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3397
3412
|
name: z.ZodString;
|
|
3398
3413
|
command: z.ZodString;
|
|
@@ -3521,6 +3536,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3521
3536
|
pnpm: "pnpm";
|
|
3522
3537
|
yarn: "yarn";
|
|
3523
3538
|
}>>;
|
|
3539
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
3524
3540
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
3525
3541
|
jest: "jest";
|
|
3526
3542
|
vitest: "vitest";
|
|
@@ -3532,11 +3548,13 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3532
3548
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
3533
3549
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
3534
3550
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
3551
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
3535
3552
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
3536
3553
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
3537
3554
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
3538
3555
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
3539
3556
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
3557
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3540
3558
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3541
3559
|
name: z.ZodString;
|
|
3542
3560
|
command: z.ZodString;
|
|
@@ -3934,4 +3952,26 @@ declare const webhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3934
3952
|
type WebhookSignatureInput = z.input<typeof webhookSignatureSchema>;
|
|
3935
3953
|
type WebhookSignature = z.output<typeof webhookSignatureSchema>;
|
|
3936
3954
|
|
|
3937
|
-
|
|
3955
|
+
declare const sdkConfigIrCapabilitySchema: z.ZodEnum<{
|
|
3956
|
+
"generation.generateFullProject": "generation.generateFullProject";
|
|
3957
|
+
}>;
|
|
3958
|
+
type SdkConfigIrCapability = z.infer<typeof sdkConfigIrCapabilitySchema>;
|
|
3959
|
+
interface SerializedSdkConfigIrV1 {
|
|
3960
|
+
/** Canonical UTF-8 JSON payload intended for a generator runtime. */
|
|
3961
|
+
body: Uint8Array;
|
|
3962
|
+
/** Behavior the selected generator version must implement for this payload. */
|
|
3963
|
+
requiredCapabilities: SdkConfigIrCapability[];
|
|
3964
|
+
}
|
|
3965
|
+
/**
|
|
3966
|
+
* Serializes SDK Config IR v1 for generator transport. Defaults are runtime behavior, not wire
|
|
3967
|
+
* requirements, so they are omitted. Semantically active features declare the capabilities the
|
|
3968
|
+
* orchestrator must verify before dispatch.
|
|
3969
|
+
*/
|
|
3970
|
+
declare function serializeSdkConfigIrV1(value: SdkConfigIrV1Input | SdkConfigIrV1): SerializedSdkConfigIrV1;
|
|
3971
|
+
/**
|
|
3972
|
+
* Parses a service-to-service SDK Config IR payload while ignoring additive object fields unknown
|
|
3973
|
+
* to this package version. Known fields and all cross-field invariants remain fully validated.
|
|
3974
|
+
*/
|
|
3975
|
+
declare function parseSdkConfigIrV1ForConsumption(value: unknown): SdkConfigIrV1;
|
|
3976
|
+
|
|
3977
|
+
export { type ApiConfig, type ApiConfigInput, type ApiImportSettings, type AuthConfig, type AuthScheme, type ClientConfig, type ClientConfigInput, type ClientConfigOverride, type CompatibilityConfig, type CredentialResolution, type DocsConfig, type GenerationConfig, JsonObject, type LanguageGenerationConfig, type LegacyInput, type OutputConfig, type PublishConfig, type PublishRegistry, type ReadmeCustomSection, type ReadmeEndpoint, type ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, type SdkConfigIrCapability, type SdkConfigIrV1, type SdkConfigIrV1Input, type SerializedSdkConfigIrV1, type SourceConfig, type SourceSpecConfig, type SourceSpecType, type TargetConfig, type TargetLanguage, type UnsupportedField, type WebhookSignature, type WebhookSignatureInput, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, docsConfigSchema, generationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, outputConfigSchema, parseSdkConfigIrV1, parseSdkConfigIrV1ForConsumption, publishConfigSchema, publishRegistrySchema, readmeCustomSectionSchema, readmeEndpointSchema, replayConfigSchema, sdkConfigIrCapabilitySchema, sdkConfigIrV1Schema, serializeSdkConfigIrV1, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, targetConfigSchema, targetLanguageSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as JsonObject } from '../../typescript-
|
|
2
|
-
export { C as CliGenerationConfig, a as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, c as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, d as McpGenerationConfig, e as McpToolFilter, P as PackageConfig, f as PhpGenerationConfig, g as PlanModifiers, h as PythonGenerationConfig, R as RubyGenerationConfig, i as RustGenerationConfig, S as SwiftGenerationConfig, T as TerraformGenerationConfig, j as TypescriptGenerationConfig, k as cliGenerationConfigSchema, l as composerPackageNameSchema, m as csharpGenerationConfigSchema, n as dependencySchema, o as exactSemverSchema, p as goGenerationConfigSchema, q as goModulePathSchema, r as javaGenerationConfigSchema, s as jsonObjectSchema, t as jsonValueSchema, u as kotlinGenerationConfigSchema, v as mcpAvailabilityStatuses, w as mcpGenerationConfigSchema, x as nonEmptyStringSchema, y as packageConfigSchema, z as phpGenerationConfigSchema, A as pythonGenerationConfigSchema, B as relativePathSchema, E as rubyGenerationConfigSchema, F as rustGenerationConfigSchema, H as swiftGenerationConfigSchema, I as terraformGenerationConfigSchema, L as typescriptGenerationConfigSchema } from '../../typescript-
|
|
1
|
+
import { b as JsonObject } from '../../typescript-BdDv_kwT.js';
|
|
2
|
+
export { C as CliGenerationConfig, a as CsharpGenerationConfig, D as Dependency, G as GoGenerationConfig, J as JavaGenerationConfig, c as JsonValue, K as KotlinGenerationConfig, M as McpAvailabilityStatus, d as McpGenerationConfig, e as McpToolFilter, P as PackageConfig, f as PhpGenerationConfig, g as PlanModifiers, h as PythonGenerationConfig, R as RubyGenerationConfig, i as RustGenerationConfig, S as SwiftGenerationConfig, T as TerraformGenerationConfig, j as TypescriptGenerationConfig, k as cliGenerationConfigSchema, l as composerPackageNameSchema, m as csharpGenerationConfigSchema, n as dependencySchema, o as exactSemverSchema, p as goGenerationConfigSchema, q as goModulePathSchema, r as javaGenerationConfigSchema, s as jsonObjectSchema, t as jsonValueSchema, u as kotlinGenerationConfigSchema, v as mcpAvailabilityStatuses, w as mcpGenerationConfigSchema, x as nonEmptyStringSchema, y as packageConfigSchema, z as phpGenerationConfigSchema, A as pythonGenerationConfigSchema, B as relativePathSchema, E as rubyGenerationConfigSchema, F as rustGenerationConfigSchema, H as swiftGenerationConfigSchema, I as terraformGenerationConfigSchema, L as typescriptGenerationConfigSchema } from '../../typescript-BdDv_kwT.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const authSchemeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -701,6 +701,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
701
701
|
pnpm: "pnpm";
|
|
702
702
|
yarn: "yarn";
|
|
703
703
|
}>>;
|
|
704
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
704
705
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
705
706
|
jest: "jest";
|
|
706
707
|
vitest: "vitest";
|
|
@@ -712,11 +713,13 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
712
713
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
713
714
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
714
715
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
716
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
715
717
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
716
718
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
717
719
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
718
720
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
719
721
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
722
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
720
723
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
721
724
|
name: z.ZodString;
|
|
722
725
|
command: z.ZodString;
|
|
@@ -845,6 +848,7 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
845
848
|
pnpm: "pnpm";
|
|
846
849
|
yarn: "yarn";
|
|
847
850
|
}>>;
|
|
851
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
848
852
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
849
853
|
jest: "jest";
|
|
850
854
|
vitest: "vitest";
|
|
@@ -856,11 +860,13 @@ declare const languageGenerationConfigSchema: z.ZodObject<{
|
|
|
856
860
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
857
861
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
858
862
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
863
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
859
864
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
860
865
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
861
866
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
862
867
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
863
868
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
864
870
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
865
871
|
name: z.ZodString;
|
|
866
872
|
command: z.ZodString;
|
|
@@ -1094,6 +1100,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1094
1100
|
pnpm: "pnpm";
|
|
1095
1101
|
yarn: "yarn";
|
|
1096
1102
|
}>>;
|
|
1103
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
1097
1104
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
1098
1105
|
jest: "jest";
|
|
1099
1106
|
vitest: "vitest";
|
|
@@ -1105,11 +1112,13 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1105
1112
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
1106
1113
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1107
1114
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
1108
1116
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
1109
1117
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
1110
1118
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
1111
1119
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
1112
1120
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
1121
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1113
1122
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1114
1123
|
name: z.ZodString;
|
|
1115
1124
|
command: z.ZodString;
|
|
@@ -1238,6 +1247,7 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1238
1247
|
pnpm: "pnpm";
|
|
1239
1248
|
yarn: "yarn";
|
|
1240
1249
|
}>>;
|
|
1250
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
1241
1251
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
1242
1252
|
jest: "jest";
|
|
1243
1253
|
vitest: "vitest";
|
|
@@ -1249,11 +1259,13 @@ declare const generationConfigSchema: z.ZodObject<{
|
|
|
1249
1259
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
1250
1260
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1251
1261
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
1252
1263
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
1253
1264
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
1254
1265
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
1255
1266
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
1256
1267
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
1268
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1257
1269
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1258
1270
|
name: z.ZodString;
|
|
1259
1271
|
command: z.ZodString;
|
|
@@ -3377,6 +3389,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3377
3389
|
pnpm: "pnpm";
|
|
3378
3390
|
yarn: "yarn";
|
|
3379
3391
|
}>>;
|
|
3392
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
3380
3393
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
3381
3394
|
jest: "jest";
|
|
3382
3395
|
vitest: "vitest";
|
|
@@ -3388,11 +3401,13 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3388
3401
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
3389
3402
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
3390
3403
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
3404
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
3391
3405
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
3392
3406
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
3393
3407
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
3394
3408
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
3395
3409
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
3410
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3396
3411
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3397
3412
|
name: z.ZodString;
|
|
3398
3413
|
command: z.ZodString;
|
|
@@ -3521,6 +3536,7 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3521
3536
|
pnpm: "pnpm";
|
|
3522
3537
|
yarn: "yarn";
|
|
3523
3538
|
}>>;
|
|
3539
|
+
packageManagerVersion: z.ZodOptional<z.ZodString>;
|
|
3524
3540
|
testFramework: z.ZodOptional<z.ZodEnum<{
|
|
3525
3541
|
jest: "jest";
|
|
3526
3542
|
vitest: "vitest";
|
|
@@ -3532,11 +3548,13 @@ declare const sdkConfigIrV1Schema: z.ZodObject<{
|
|
|
3532
3548
|
bundle: z.ZodOptional<z.ZodBoolean>;
|
|
3533
3549
|
exportClassDefault: z.ZodOptional<z.ZodBoolean>;
|
|
3534
3550
|
namespaceExportName: z.ZodOptional<z.ZodString>;
|
|
3551
|
+
consolidateTypeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
3535
3552
|
allowCustomFetcher: z.ZodOptional<z.ZodBoolean>;
|
|
3536
3553
|
useBrandedStringAliases: z.ZodOptional<z.ZodBoolean>;
|
|
3537
3554
|
useLegacyExports: z.ZodOptional<z.ZodBoolean>;
|
|
3538
3555
|
useBigInt: z.ZodOptional<z.ZodBoolean>;
|
|
3539
3556
|
serdeLayer: z.ZodOptional<z.ZodBoolean>;
|
|
3557
|
+
esmOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3540
3558
|
scripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3541
3559
|
name: z.ZodString;
|
|
3542
3560
|
command: z.ZodString;
|
|
@@ -3934,4 +3952,26 @@ declare const webhookSignatureSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3934
3952
|
type WebhookSignatureInput = z.input<typeof webhookSignatureSchema>;
|
|
3935
3953
|
type WebhookSignature = z.output<typeof webhookSignatureSchema>;
|
|
3936
3954
|
|
|
3937
|
-
|
|
3955
|
+
declare const sdkConfigIrCapabilitySchema: z.ZodEnum<{
|
|
3956
|
+
"generation.generateFullProject": "generation.generateFullProject";
|
|
3957
|
+
}>;
|
|
3958
|
+
type SdkConfigIrCapability = z.infer<typeof sdkConfigIrCapabilitySchema>;
|
|
3959
|
+
interface SerializedSdkConfigIrV1 {
|
|
3960
|
+
/** Canonical UTF-8 JSON payload intended for a generator runtime. */
|
|
3961
|
+
body: Uint8Array;
|
|
3962
|
+
/** Behavior the selected generator version must implement for this payload. */
|
|
3963
|
+
requiredCapabilities: SdkConfigIrCapability[];
|
|
3964
|
+
}
|
|
3965
|
+
/**
|
|
3966
|
+
* Serializes SDK Config IR v1 for generator transport. Defaults are runtime behavior, not wire
|
|
3967
|
+
* requirements, so they are omitted. Semantically active features declare the capabilities the
|
|
3968
|
+
* orchestrator must verify before dispatch.
|
|
3969
|
+
*/
|
|
3970
|
+
declare function serializeSdkConfigIrV1(value: SdkConfigIrV1Input | SdkConfigIrV1): SerializedSdkConfigIrV1;
|
|
3971
|
+
/**
|
|
3972
|
+
* Parses a service-to-service SDK Config IR payload while ignoring additive object fields unknown
|
|
3973
|
+
* to this package version. Known fields and all cross-field invariants remain fully validated.
|
|
3974
|
+
*/
|
|
3975
|
+
declare function parseSdkConfigIrV1ForConsumption(value: unknown): SdkConfigIrV1;
|
|
3976
|
+
|
|
3977
|
+
export { type ApiConfig, type ApiConfigInput, type ApiImportSettings, type AuthConfig, type AuthScheme, type ClientConfig, type ClientConfigInput, type ClientConfigOverride, type CompatibilityConfig, type CredentialResolution, type DocsConfig, type GenerationConfig, JsonObject, type LanguageGenerationConfig, type LegacyInput, type OutputConfig, type PublishConfig, type PublishRegistry, type ReadmeCustomSection, type ReadmeEndpoint, type ReplayConfig, SDK_CONFIG_IR_V1_SCHEMA_VERSION, type SdkConfigIrCapability, type SdkConfigIrV1, type SdkConfigIrV1Input, type SerializedSdkConfigIrV1, type SourceConfig, type SourceSpecConfig, type SourceSpecType, type TargetConfig, type TargetLanguage, type UnsupportedField, type WebhookSignature, type WebhookSignatureInput, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, docsConfigSchema, generationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, outputConfigSchema, parseSdkConfigIrV1, parseSdkConfigIrV1ForConsumption, publishConfigSchema, publishRegistrySchema, readmeCustomSectionSchema, readmeEndpointSchema, replayConfigSchema, sdkConfigIrCapabilitySchema, sdkConfigIrV1Schema, serializeSdkConfigIrV1, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, targetConfigSchema, targetLanguageSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
@@ -462,17 +462,22 @@ var typescriptGenerationConfigSchema = z.strictObject({
|
|
|
462
462
|
compilerOptions: compilerOptionsSchema.optional(),
|
|
463
463
|
httpClient: httpClientSchema.optional(),
|
|
464
464
|
packageManager: z.enum(["pnpm", "yarn"]).optional(),
|
|
465
|
+
/** e.g. `1.22.22` — from the customer's own `config.packageJson.packageManager` (`yarn@1.22.22`). */
|
|
466
|
+
packageManagerVersion: nonEmptyStringSchema.optional(),
|
|
465
467
|
testFramework: z.enum(["jest", "vitest"]).optional(),
|
|
466
468
|
namingStrategy: z.enum(["base", "originalPropertyNames"]).optional(),
|
|
467
469
|
bundle: z.boolean().optional(),
|
|
468
470
|
exportClassDefault: z.boolean().optional(),
|
|
469
471
|
/** Name of the top-level namespace export emitted by Fern-compatible TypeScript SDKs. */
|
|
470
472
|
namespaceExportName: nonEmptyStringSchema.optional(),
|
|
473
|
+
consolidateTypeFiles: z.boolean().optional(),
|
|
471
474
|
allowCustomFetcher: z.boolean().optional(),
|
|
472
475
|
useBrandedStringAliases: z.boolean().optional(),
|
|
473
476
|
useLegacyExports: z.boolean().optional(),
|
|
474
477
|
useBigInt: z.boolean().optional(),
|
|
475
478
|
serdeLayer: z.boolean().optional(),
|
|
479
|
+
/** Ship only the ESM build (drops CJS) to avoid the Node dual-package hazard. */
|
|
480
|
+
esmOnly: z.boolean().optional(),
|
|
476
481
|
scripts: z.array(packageScriptSchema).optional()
|
|
477
482
|
});
|
|
478
483
|
|
|
@@ -1198,7 +1203,152 @@ var sdkConfigIrV1Schema = z.strictObject({
|
|
|
1198
1203
|
function parseSdkConfigIrV1(value) {
|
|
1199
1204
|
return sdkConfigIrV1Schema.parse(value);
|
|
1200
1205
|
}
|
|
1206
|
+
var OMIT = /* @__PURE__ */ Symbol("omit");
|
|
1207
|
+
function inputJsonSchema(schema) {
|
|
1208
|
+
return z.toJSONSchema(schema, {
|
|
1209
|
+
io: "input",
|
|
1210
|
+
unrepresentable: "any"
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
function stripUnknownProperties(value, schema) {
|
|
1214
|
+
return project(value, schema, schema, false);
|
|
1215
|
+
}
|
|
1216
|
+
function omitSchemaDefaults(value, schema) {
|
|
1217
|
+
const projected = project(value, schema, schema, true);
|
|
1218
|
+
return projected === OMIT ? void 0 : projected;
|
|
1219
|
+
}
|
|
1220
|
+
function project(value, candidateSchema, rootSchema, omitDefaults) {
|
|
1221
|
+
const resolvedCandidate = resolveSchema(candidateSchema, rootSchema);
|
|
1222
|
+
if (omitDefaults && Object.hasOwn(resolvedCandidate, "default") && deepEqual(value, resolvedCandidate.default)) {
|
|
1223
|
+
return OMIT;
|
|
1224
|
+
}
|
|
1225
|
+
const schema = selectSchema(value, resolvedCandidate, rootSchema);
|
|
1226
|
+
if (omitDefaults && schema !== resolvedCandidate && Object.hasOwn(schema, "default") && deepEqual(value, schema.default)) {
|
|
1227
|
+
return OMIT;
|
|
1228
|
+
}
|
|
1229
|
+
if (Array.isArray(value)) {
|
|
1230
|
+
if (!schema.items) return value;
|
|
1231
|
+
return value.map((item) => {
|
|
1232
|
+
const projected = project(item, schema.items, rootSchema, omitDefaults);
|
|
1233
|
+
return projected === OMIT ? item : projected;
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
if (!isRecord(value) || schema.type !== "object") return value;
|
|
1237
|
+
const entries = [];
|
|
1238
|
+
const properties = schema.properties ?? {};
|
|
1239
|
+
const unionProperties = omitDefaults ? properties : collectAlternativeProperties(resolvedCandidate, rootSchema);
|
|
1240
|
+
for (const [key, propertySchema] of Object.entries(properties)) {
|
|
1241
|
+
if (!Object.hasOwn(value, key)) continue;
|
|
1242
|
+
const projected = project(value[key], propertySchema, rootSchema, omitDefaults);
|
|
1243
|
+
if (projected !== OMIT) entries.push([key, projected]);
|
|
1244
|
+
}
|
|
1245
|
+
for (const [key, fieldValue] of Object.entries(value)) {
|
|
1246
|
+
if (Object.hasOwn(properties, key)) continue;
|
|
1247
|
+
if (Object.hasOwn(unionProperties, key)) {
|
|
1248
|
+
entries.push([key, fieldValue]);
|
|
1249
|
+
continue;
|
|
1250
|
+
}
|
|
1251
|
+
if (schema.additionalProperties !== false) {
|
|
1252
|
+
const projected = typeof schema.additionalProperties === "object" ? project(fieldValue, schema.additionalProperties, rootSchema, omitDefaults) : fieldValue;
|
|
1253
|
+
if (projected !== OMIT) entries.push([key, projected]);
|
|
1254
|
+
} else if (omitDefaults) {
|
|
1255
|
+
throw new Error(`Cannot serialize property unknown to the wire schema: ${key}`);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
return Object.fromEntries(entries);
|
|
1259
|
+
}
|
|
1260
|
+
function collectAlternativeProperties(schema, rootSchema) {
|
|
1261
|
+
const alternatives = schema.oneOf ?? schema.anyOf;
|
|
1262
|
+
if (!alternatives) return schema.properties ?? {};
|
|
1263
|
+
return Object.assign(
|
|
1264
|
+
{},
|
|
1265
|
+
...alternatives.map((alternative) => resolveSchema(alternative, rootSchema).properties ?? {})
|
|
1266
|
+
);
|
|
1267
|
+
}
|
|
1268
|
+
function selectSchema(value, schema, rootSchema) {
|
|
1269
|
+
const alternatives = schema.oneOf ?? schema.anyOf;
|
|
1270
|
+
if (!alternatives || alternatives.length === 0) return schema;
|
|
1271
|
+
const best = alternatives.map((alternative, index) => {
|
|
1272
|
+
const resolved = resolveSchema(alternative, rootSchema);
|
|
1273
|
+
return { index, schema: resolved, score: schemaMatchScore(value, resolved) };
|
|
1274
|
+
}).sort((left, right) => right.score - left.score || left.index - right.index)[0];
|
|
1275
|
+
return best.score === Number.NEGATIVE_INFINITY ? schema : best.schema;
|
|
1276
|
+
}
|
|
1277
|
+
function schemaMatchScore(value, schema) {
|
|
1278
|
+
if (Object.hasOwn(schema, "const") && !deepEqual(value, schema.const)) {
|
|
1279
|
+
return Number.NEGATIVE_INFINITY;
|
|
1280
|
+
}
|
|
1281
|
+
if (schema.enum && !schema.enum.some((candidate) => deepEqual(value, candidate))) {
|
|
1282
|
+
return Number.NEGATIVE_INFINITY;
|
|
1283
|
+
}
|
|
1284
|
+
if (schema.type === "object") {
|
|
1285
|
+
if (!isRecord(value)) return Number.NEGATIVE_INFINITY;
|
|
1286
|
+
const properties = schema.properties ?? {};
|
|
1287
|
+
for (const [key, propertySchema] of Object.entries(properties)) {
|
|
1288
|
+
if (!Object.hasOwn(value, key)) continue;
|
|
1289
|
+
if (Object.hasOwn(propertySchema, "const") && !deepEqual(value[key], propertySchema.const)) {
|
|
1290
|
+
return Number.NEGATIVE_INFINITY;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return Object.keys(value).filter((key) => Object.hasOwn(properties, key)).length;
|
|
1294
|
+
}
|
|
1295
|
+
if (schema.type === "array") return Array.isArray(value) ? 1 : Number.NEGATIVE_INFINITY;
|
|
1296
|
+
if (schema.type === "string") return typeof value === "string" ? 1 : Number.NEGATIVE_INFINITY;
|
|
1297
|
+
if (schema.type === "number" || schema.type === "integer") {
|
|
1298
|
+
return typeof value === "number" ? 1 : Number.NEGATIVE_INFINITY;
|
|
1299
|
+
}
|
|
1300
|
+
if (schema.type === "boolean") return typeof value === "boolean" ? 1 : Number.NEGATIVE_INFINITY;
|
|
1301
|
+
if (schema.type === "null") return value === null ? 1 : Number.NEGATIVE_INFINITY;
|
|
1302
|
+
return 0;
|
|
1303
|
+
}
|
|
1304
|
+
function resolveSchema(schema, rootSchema) {
|
|
1305
|
+
if (!schema.$ref) return schema;
|
|
1306
|
+
if (!schema.$ref.startsWith("#/$defs/")) return schema;
|
|
1307
|
+
const name = schema.$ref.slice("#/$defs/".length).replaceAll("~1", "/").replaceAll("~0", "~");
|
|
1308
|
+
return rootSchema.$defs?.[name] ?? schema;
|
|
1309
|
+
}
|
|
1310
|
+
function isRecord(value) {
|
|
1311
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
1312
|
+
}
|
|
1313
|
+
function deepEqual(left, right) {
|
|
1314
|
+
if (Object.is(left, right)) return true;
|
|
1315
|
+
if (Array.isArray(left) && Array.isArray(right)) {
|
|
1316
|
+
return left.length === right.length && left.every((value, index) => deepEqual(value, right[index]));
|
|
1317
|
+
}
|
|
1318
|
+
if (isRecord(left) && isRecord(right)) {
|
|
1319
|
+
const leftKeys = Object.keys(left);
|
|
1320
|
+
const rightKeys = Object.keys(right);
|
|
1321
|
+
return leftKeys.length === rightKeys.length && leftKeys.every((key) => Object.hasOwn(right, key) && deepEqual(left[key], right[key]));
|
|
1322
|
+
}
|
|
1323
|
+
return false;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
// src/sdk-config-ir/v1/wire.ts
|
|
1327
|
+
var sdkConfigIrCapabilitySchema = z.enum(["generation.generateFullProject"]);
|
|
1328
|
+
var sdkConfigIrV1InputJsonSchema = inputJsonSchema(sdkConfigIrV1Schema);
|
|
1329
|
+
function serializeSdkConfigIrV1(value) {
|
|
1330
|
+
const parsed = parseSdkConfigIrV1(value);
|
|
1331
|
+
const wireValue = omitSchemaDefaults(parsed, sdkConfigIrV1InputJsonSchema);
|
|
1332
|
+
const requiredCapabilities = [];
|
|
1333
|
+
if (wireValue === void 0) {
|
|
1334
|
+
throw new Error("SDK Config IR v1 root cannot be omitted from its wire payload");
|
|
1335
|
+
}
|
|
1336
|
+
if (parsed.generation.generateFullProject) {
|
|
1337
|
+
requiredCapabilities.push("generation.generateFullProject");
|
|
1338
|
+
}
|
|
1339
|
+
const json = JSON.stringify(wireValue);
|
|
1340
|
+
if (json === void 0) {
|
|
1341
|
+
throw new Error("SDK Config IR v1 could not be serialized as JSON");
|
|
1342
|
+
}
|
|
1343
|
+
return {
|
|
1344
|
+
body: new TextEncoder().encode(json),
|
|
1345
|
+
requiredCapabilities
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
function parseSdkConfigIrV1ForConsumption(value) {
|
|
1349
|
+
return parseSdkConfigIrV1(stripUnknownProperties(value, sdkConfigIrV1InputJsonSchema));
|
|
1350
|
+
}
|
|
1201
1351
|
|
|
1202
|
-
export { SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, outputConfigSchema, packageConfigSchema, parseSdkConfigIrV1, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrV1Schema, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
1352
|
+
export { SDK_CONFIG_IR_V1_SCHEMA_VERSION, apiConfigSchema, apiImportSettingsSchema, authConfigSchema, authSchemeSchema, cliGenerationConfigSchema, clientConfigOverrideSchema, clientConfigSchema, clientRetryOverrideSchema, compatibilityConfigSchema, composerPackageNameSchema, csharpGenerationConfigSchema, dependencySchema, docsConfigSchema, exactSemverSchema, generationConfigSchema, goGenerationConfigSchema, goModulePathSchema, javaGenerationConfigSchema, jsonObjectSchema, jsonValueSchema, kotlinGenerationConfigSchema, languageGenerationConfigSchema, legacyInputSchema, mcpAvailabilityStatuses, mcpGenerationConfigSchema, nonEmptyStringSchema, outputConfigSchema, packageConfigSchema, parseSdkConfigIrV1, parseSdkConfigIrV1ForConsumption, phpGenerationConfigSchema, publishConfigSchema, publishRegistrySchema, pythonGenerationConfigSchema, readmeCustomSectionSchema, readmeEndpointSchema, relativePathSchema, replayConfigSchema, rubyGenerationConfigSchema, rustGenerationConfigSchema, sdkConfigIrCapabilitySchema, sdkConfigIrV1Schema, serializeSdkConfigIrV1, sourceConfigSchema, sourceSpecConfigSchema, sourceSpecTypeSchema, swiftGenerationConfigSchema, targetConfigSchema, targetLanguageSchema, terraformGenerationConfigSchema, typescriptGenerationConfigSchema, unsupportedFieldSchema, webhookSignatureSchema };
|
|
1203
1353
|
//# sourceMappingURL=index.js.map
|
|
1204
1354
|
//# sourceMappingURL=index.js.map
|