@postman/sdk-config 0.19.1 → 0.20.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/dist/index.cjs +208 -50
- 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 +208 -51
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +154 -5
- 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 +154 -5
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +154 -5
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +164 -30
- package/dist/sdk-config/v1/index.d.ts +164 -30
- package/dist/sdk-config/v1/index.js +154 -5
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +199 -49
- 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 +199 -50
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +199 -49
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +163 -4
- package/dist/sdk-config-ir/v1/index.d.ts +163 -4
- package/dist/sdk-config-ir/v1/index.js +199 -50
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-D0YeGxxS.d.cts → typescript-VEqEGvnA.d.cts} +60 -1
- package/dist/{typescript-D0YeGxxS.d.ts → typescript-VEqEGvnA.d.ts} +60 -1
- package/package.json +2 -2
- package/src/sdk-config/v1/README.md +59 -4
|
@@ -140,6 +140,39 @@ var publicClientIdSchema = nonEmptyStringSchema.refine((value) => value.trim() =
|
|
|
140
140
|
}).refine((value) => !value.includes("${"), {
|
|
141
141
|
message: "must be a literal public client ID, not an environment expression"
|
|
142
142
|
});
|
|
143
|
+
var oauthExtraParametersSchema = zod.z.record(zod.z.string().min(1), zod.z.string());
|
|
144
|
+
function parseUrl(value) {
|
|
145
|
+
try {
|
|
146
|
+
return new URL(value);
|
|
147
|
+
} catch {
|
|
148
|
+
return void 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
var loopbackRedirectUriSchema = nonEmptyStringSchema.refine(
|
|
152
|
+
(value) => {
|
|
153
|
+
const url = parseUrl(value);
|
|
154
|
+
return url !== void 0 && url.protocol === "http:" && (url.hostname === "127.0.0.1" || url.hostname === "localhost") && url.port !== "";
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
message: "must be an http URL on 127.0.0.1 or localhost that pins a port, such as http://127.0.0.1:8484/callback"
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
function containsControlCharacter(value) {
|
|
161
|
+
return [...value].some((character) => {
|
|
162
|
+
const code = character.charCodeAt(0);
|
|
163
|
+
return code <= 31 || code === 127;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
var hostedPageUrlSchema = nonEmptyStringSchema.refine(
|
|
167
|
+
(value) => {
|
|
168
|
+
const url = parseUrl(value);
|
|
169
|
+
return url !== void 0 && (url.protocol === "http:" || url.protocol === "https:");
|
|
170
|
+
},
|
|
171
|
+
{ message: "must be an absolute http or https URL" }
|
|
172
|
+
).refine((value) => !containsControlCharacter(value), {
|
|
173
|
+
message: "must not contain control characters"
|
|
174
|
+
});
|
|
175
|
+
var redirectPortSchema = zod.z.number().int().min(1).max(65535);
|
|
143
176
|
var oauthFlowSchema = zod.z.discriminatedUnion("type", [
|
|
144
177
|
zod.z.strictObject({
|
|
145
178
|
type: zod.z.literal("authorization-code").describe("Uses the OAuth authorization code flow."),
|
|
@@ -149,7 +182,25 @@ var oauthFlowSchema = zod.z.discriminatedUnion("type", [
|
|
|
149
182
|
scopes: zod.z.array(oauthScopeSchema).optional().describe("The scopes supported by this flow."),
|
|
150
183
|
clientId: publicClientIdSchema.optional().describe(
|
|
151
184
|
"The public, non-secret OAuth client ID that generated interactive login flows, such as CLI browser login with PKCE, send to the authorization and token endpoints. It is embedded verbatim in generated code, so it must never be a client secret."
|
|
152
|
-
)
|
|
185
|
+
),
|
|
186
|
+
redirectUri: loopbackRedirectUriSchema.optional().describe(
|
|
187
|
+
"The loopback callback of the interactive login, such as http://127.0.0.1:8484/callback. The login binds this exact host, port and path and sends it to the authorization server, so it must match the redirect registered there. Without it the login uses a free port chosen by the operating system."
|
|
188
|
+
),
|
|
189
|
+
redirectUriBackupPorts: zod.z.array(redirectPortSchema).min(1).optional().describe(
|
|
190
|
+
"Ports tried in order when the port of redirectUri is busy. Each reuses the host and path of redirectUri, and every resulting URI must be registered with the authorization server. Requires redirectUri."
|
|
191
|
+
),
|
|
192
|
+
successRedirectUrl: hostedPageUrlSchema.optional().describe(
|
|
193
|
+
"A page the browser is sent to once the login captured the authorization code. Without it the login shows its own page."
|
|
194
|
+
),
|
|
195
|
+
errorRedirectUrl: hostedPageUrlSchema.optional().describe(
|
|
196
|
+
"A page the browser is sent to when the login fails; the error and error_description query parameters are added. Without it the login shows its own page."
|
|
197
|
+
),
|
|
198
|
+
authorizationParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the authorization request, such as audience."),
|
|
199
|
+
tokenParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the authorization code exchange request."),
|
|
200
|
+
refreshParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the token refresh request.")
|
|
201
|
+
}).refine((flow) => flow.redirectUriBackupPorts === void 0 || flow.redirectUri !== void 0, {
|
|
202
|
+
message: "redirectUriBackupPorts requires redirectUri",
|
|
203
|
+
path: ["redirectUriBackupPorts"]
|
|
153
204
|
}),
|
|
154
205
|
zod.z.strictObject({
|
|
155
206
|
type: zod.z.literal("client-credentials").describe("Uses the OAuth client credentials flow."),
|
|
@@ -168,21 +219,47 @@ var oauthFlowSchema = zod.z.discriminatedUnion("type", [
|
|
|
168
219
|
tokenUrl: nonEmptyStringSchema.describe("The URL used to obtain access tokens."),
|
|
169
220
|
refreshUrl: nonEmptyStringSchema.optional().describe("The URL used to refresh access tokens."),
|
|
170
221
|
scopes: zod.z.array(oauthScopeSchema).optional().describe("The scopes supported by this flow.")
|
|
222
|
+
}),
|
|
223
|
+
zod.z.strictObject({
|
|
224
|
+
type: zod.z.literal("device-code").describe(
|
|
225
|
+
"Uses the OAuth device authorization flow (RFC 8628) for logins without a browser."
|
|
226
|
+
),
|
|
227
|
+
clientId: publicClientIdSchema.describe(
|
|
228
|
+
"The public, non-secret OAuth client ID sent to the device authorization and token endpoints. It is embedded verbatim in generated code, so it must never be a client secret."
|
|
229
|
+
),
|
|
230
|
+
deviceAuthorizationUrl: nonEmptyStringSchema.describe(
|
|
231
|
+
"The URL that issues the device code, the user code and the verification URL."
|
|
232
|
+
),
|
|
233
|
+
tokenUrl: nonEmptyStringSchema.describe(
|
|
234
|
+
"The URL polled to exchange the device code for tokens once the user approved."
|
|
235
|
+
),
|
|
236
|
+
refreshUrl: nonEmptyStringSchema.optional().describe("The URL used to refresh access tokens."),
|
|
237
|
+
scopes: zod.z.array(oauthScopeSchema).optional().describe("The scopes supported by this flow."),
|
|
238
|
+
deviceAuthorizationParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the device authorization request, such as audience."),
|
|
239
|
+
tokenParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the token polling request."),
|
|
240
|
+
refreshParameters: oauthExtraParametersSchema.optional().describe("Extra parameters added to the token refresh request.")
|
|
171
241
|
})
|
|
172
242
|
]);
|
|
173
|
-
var
|
|
243
|
+
var oauth2AuthObjectSchema = zod.z.strictObject({
|
|
174
244
|
id: nonEmptyStringSchema.describe("A unique identifier for this authentication scheme."),
|
|
175
245
|
type: zod.z.literal("oauth2").describe("Identifies an OAuth 2.0 authentication scheme."),
|
|
176
246
|
flows: zod.z.array(oauthFlowSchema).min(1).describe("The OAuth flows supported by the API."),
|
|
177
247
|
clientId: authVariableSchema.optional().describe("The OAuth client ID parameter exposed by the SDK."),
|
|
178
248
|
clientSecret: authVariableSchema.optional().describe("The OAuth client secret parameter exposed by the SDK."),
|
|
179
249
|
tokenHeader: nonEmptyStringSchema.optional().describe("The request header that carries the OAuth access token."),
|
|
180
|
-
tokenPrefix: nonEmptyStringSchema.optional().describe(
|
|
250
|
+
tokenPrefix: nonEmptyStringSchema.optional().describe('The prefix added before the OAuth access token. Defaults to "Bearer" when omitted.'),
|
|
251
|
+
omitTokenPrefix: zod.z.boolean().optional().describe(
|
|
252
|
+
'Whether the OAuth access token is sent as-is, with no prefix. Without it, a missing tokenPrefix means "Bearer". Cannot be combined with tokenPrefix.'
|
|
253
|
+
),
|
|
181
254
|
refreshBufferSeconds: zod.z.number().nonnegative().optional().describe("How early, in seconds, the client refreshes a token before it expires."),
|
|
182
255
|
description: zod.z.string().optional().describe(
|
|
183
256
|
"A description of the authentication scheme included in generated SDK documentation."
|
|
184
257
|
)
|
|
185
258
|
});
|
|
259
|
+
var oauth2AuthSchema = oauth2AuthObjectSchema.refine(
|
|
260
|
+
(scheme) => !(scheme.omitTokenPrefix === true && scheme.tokenPrefix !== void 0),
|
|
261
|
+
{ message: "omitTokenPrefix cannot be combined with tokenPrefix", path: ["omitTokenPrefix"] }
|
|
262
|
+
);
|
|
186
263
|
var customAuthParameterSchema = zod.z.strictObject({
|
|
187
264
|
location: zod.z.enum(["header", "query", "cookie"]).describe("Where the custom authentication value is sent."),
|
|
188
265
|
name: nonEmptyStringSchema.describe("The header, query parameter, or cookie name."),
|
|
@@ -592,6 +669,9 @@ var RESERVED_PROFILES_COMMAND_NAMES = /* @__PURE__ */ new Set([
|
|
|
592
669
|
var binaryNameSchema = nonEmptyStringSchema.regex(ALPHANUMERIC_PATTERN, {
|
|
593
670
|
message: "binaryName must contain at least one ASCII letter or digit"
|
|
594
671
|
});
|
|
672
|
+
var crateNameSchema = zod.z.string().regex(/^[A-Za-z][A-Za-z0-9_-]{0,63}$/, {
|
|
673
|
+
message: "crateName must start with a letter, contain only letters, digits, hyphens, and underscores, and be at most 64 characters"
|
|
674
|
+
});
|
|
595
675
|
var rootGroupSchema = zod.z.string().regex(ROOT_GROUP_PATTERN, {
|
|
596
676
|
message: "rootGroup must start with a lowercase letter and contain only lowercase letters, digits, hyphens, and underscores"
|
|
597
677
|
});
|
|
@@ -656,17 +736,78 @@ var profilesConfigSchema = zod.z.strictObject({
|
|
|
656
736
|
revokeOperation: dottedCommandPathSchema("profiles.revokeOperation").optional().describe('The dotted command path called by "profiles remove --revoke".'),
|
|
657
737
|
provisionOperation: profilesProvisionOperationSchema.optional().describe('The operation called by "profiles create --provision" and its response mapping.')
|
|
658
738
|
});
|
|
739
|
+
var oauthPropertyPathSchema = zod.z.string().regex(FIELD_NAME_PATTERN, {
|
|
740
|
+
message: 'must be a property name, or a dotted path to a nested property, such as "data.token"'
|
|
741
|
+
}).regex(/^[^.]+(\.[^.]+)*$/, { message: "must not have an empty path segment" });
|
|
742
|
+
var oauthTokenRequestPropertiesSchema = zod.z.strictObject({
|
|
743
|
+
clientId: oauthPropertyPathSchema.optional().describe('The request property that carries the client ID. Defaults to "client_id".'),
|
|
744
|
+
clientSecret: oauthPropertyPathSchema.optional().describe('The request property that carries the client secret. Defaults to "client_secret".'),
|
|
745
|
+
scopes: oauthPropertyPathSchema.optional().describe('The request property that carries the scopes. Defaults to "scope".')
|
|
746
|
+
});
|
|
747
|
+
var oauthTokenResponsePropertiesSchema = zod.z.strictObject({
|
|
748
|
+
accessToken: oauthPropertyPathSchema.optional().describe('The response property that holds the access token. Defaults to "access_token".'),
|
|
749
|
+
expiresIn: oauthPropertyPathSchema.optional().describe(
|
|
750
|
+
'The response property that holds the lifetime in seconds. Defaults to "expires_in".'
|
|
751
|
+
),
|
|
752
|
+
refreshToken: oauthPropertyPathSchema.optional().describe('The response property that holds the refresh token. Defaults to "refresh_token".')
|
|
753
|
+
});
|
|
754
|
+
var oauthTokenEndpointsSchema = zod.z.strictObject({
|
|
755
|
+
token: zod.z.strictObject({
|
|
756
|
+
requestProperties: oauthTokenRequestPropertiesSchema.optional().describe("The names of the properties of the token request."),
|
|
757
|
+
responseProperties: oauthTokenResponsePropertiesSchema.optional().describe("The names of the properties of the token response.")
|
|
758
|
+
}).optional().describe("The token endpoint of the client credentials flow (its tokenUrl)."),
|
|
759
|
+
refresh: zod.z.strictObject({
|
|
760
|
+
requestProperties: zod.z.strictObject({
|
|
761
|
+
refreshToken: oauthPropertyPathSchema.optional().describe(
|
|
762
|
+
'The request property that carries the refresh token. Defaults to "refresh_token".'
|
|
763
|
+
)
|
|
764
|
+
}).optional().describe("The names of the properties of the refresh request."),
|
|
765
|
+
responseProperties: oauthTokenResponsePropertiesSchema.optional().describe("The names of the properties of the refresh response.")
|
|
766
|
+
}).optional().describe("The refresh endpoint of the client credentials flow (its refreshUrl).")
|
|
767
|
+
});
|
|
768
|
+
function oauthTokenEndpointsIssues(oauthTokenEndpoints, schemes, basePath) {
|
|
769
|
+
const flowsById = /* @__PURE__ */ new Map();
|
|
770
|
+
for (const scheme of schemes ?? []) {
|
|
771
|
+
const flow = scheme.type === "oauth2" ? scheme.flows?.find((f) => f.type === "client-credentials") : void 0;
|
|
772
|
+
if (flow !== void 0) {
|
|
773
|
+
flowsById.set(scheme.id, flow);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return Object.entries(oauthTokenEndpoints ?? {}).flatMap(([id, endpoints]) => {
|
|
777
|
+
const flow = flowsById.get(id);
|
|
778
|
+
if (flow === void 0) {
|
|
779
|
+
return [
|
|
780
|
+
{
|
|
781
|
+
message: `oauthTokenEndpoints "${id}" must name an OAuth scheme with a client-credentials flow`,
|
|
782
|
+
path: [...basePath, id]
|
|
783
|
+
}
|
|
784
|
+
];
|
|
785
|
+
}
|
|
786
|
+
return endpoints.refresh !== void 0 && flow.refreshUrl === void 0 ? [
|
|
787
|
+
{
|
|
788
|
+
message: `oauthTokenEndpoints "${id}" has refresh settings, but its flow has no refreshUrl`,
|
|
789
|
+
path: [...basePath, id, "refresh"]
|
|
790
|
+
}
|
|
791
|
+
] : [];
|
|
792
|
+
});
|
|
793
|
+
}
|
|
659
794
|
var cliGenerationConfigSchema = zod.z.strictObject({
|
|
660
795
|
paginationParameters: zod.z.array(nonEmptyStringSchema).optional().describe("Request parameter names treated as pagination controls by the CLI."),
|
|
661
796
|
skills: zod.z.boolean().optional().describe("Whether the generated CLI includes skills that teach AI agents to invoke commands."),
|
|
662
797
|
binaryName: binaryNameSchema.optional().describe(
|
|
663
798
|
"The CLI executable name. The generator kebab-cases it and also uses it for the source directory and env-var prefix."
|
|
664
799
|
),
|
|
800
|
+
crateName: crateNameSchema.optional().describe(
|
|
801
|
+
"The name of the generated Cargo package, which release archives and installers are named after. The generator defaults it to the binary name when the output is delivered to GitHub."
|
|
802
|
+
),
|
|
665
803
|
customCommands: zod.z.boolean().optional().describe("Whether hand-written command support is generated. The generator defaults to true."),
|
|
666
804
|
rootGroup: rootGroupSchema.optional().describe("A command group that every spec-derived command is nested under."),
|
|
667
805
|
profiles: profilesConfigSchema.optional().describe("Named profile command configuration."),
|
|
668
806
|
splitTypeCrates: zod.z.boolean().optional().describe("Whether generated types are split into one crate per API behind a facade crate."),
|
|
669
|
-
userAgentSuffixFlag: userAgentSuffixFlagSchema.optional().describe('The long flag name, without "--", that appends a product token to the User-Agent.')
|
|
807
|
+
userAgentSuffixFlag: userAgentSuffixFlagSchema.optional().describe('The long flag name, without "--", that appends a product token to the User-Agent.'),
|
|
808
|
+
oauthTokenEndpoints: zod.z.record(nonEmptyStringSchema, oauthTokenEndpointsSchema).optional().describe(
|
|
809
|
+
"Per OAuth scheme id (api.auth.schemes[].id), the names of the properties of the token and refresh requests and responses, for the client credentials flow of an API whose token endpoint does not use the RFC 6749 names."
|
|
810
|
+
)
|
|
670
811
|
});
|
|
671
812
|
var csharpGenerationConfigSchema = zod.z.strictObject({
|
|
672
813
|
useOptionalWrapper: zod.z.boolean().optional().describe("Whether optional values use an explicit Optional wrapper."),
|
|
@@ -1554,63 +1695,71 @@ var sdkConfigIrV1Schema = zod.z.strictObject({
|
|
|
1554
1695
|
"Shared and language-specific generation behavior."
|
|
1555
1696
|
),
|
|
1556
1697
|
compatibility: compatibilityConfigSchema.optional().describe("Temporary provenance and diagnostics retained during legacy migration.")
|
|
1557
|
-
}).superRefine(
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
[
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1698
|
+
}).superRefine(
|
|
1699
|
+
({ api, compatibility, generation, output, package: packageConfig, target }, context) => {
|
|
1700
|
+
const configuredLanguages = Object.keys(generation.language ?? {});
|
|
1701
|
+
const requiresExternalPublishIdentity = output.delivery === "github" || output.publish !== void 0;
|
|
1702
|
+
if (requiresExternalPublishIdentity) {
|
|
1703
|
+
[
|
|
1704
|
+
["apiName", "target.apiName is required for external publishing"],
|
|
1705
|
+
["organizationName", "target.organizationName is required for external publishing"]
|
|
1706
|
+
].forEach(([field, message]) => {
|
|
1707
|
+
if (!target[field]) {
|
|
1708
|
+
context.addIssue({
|
|
1709
|
+
code: "custom",
|
|
1710
|
+
message,
|
|
1711
|
+
path: ["target", field]
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
oauthTokenEndpointsIssues(generation.language?.cli?.oauthTokenEndpoints, api.auth?.schemes, [
|
|
1717
|
+
"generation",
|
|
1718
|
+
"language",
|
|
1719
|
+
"cli",
|
|
1720
|
+
"oauthTokenEndpoints"
|
|
1721
|
+
]).forEach((issue) => context.addIssue({ code: "custom", ...issue }));
|
|
1722
|
+
configuredLanguages.forEach((language) => {
|
|
1723
|
+
if (language !== target.language) {
|
|
1566
1724
|
context.addIssue({
|
|
1567
1725
|
code: "custom",
|
|
1568
|
-
message
|
|
1569
|
-
path: ["
|
|
1726
|
+
message: `generation.language.${language} does not match target language "${target.language}"`,
|
|
1727
|
+
path: ["generation", "language", language]
|
|
1570
1728
|
});
|
|
1571
1729
|
}
|
|
1572
1730
|
});
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1731
|
+
if (output.publish && !publishRegistryLanguages[output.publish.registry].some(
|
|
1732
|
+
(language) => language === target.language
|
|
1733
|
+
)) {
|
|
1576
1734
|
context.addIssue({
|
|
1577
1735
|
code: "custom",
|
|
1578
|
-
message: `
|
|
1579
|
-
path: ["
|
|
1736
|
+
message: `registry "${output.publish.registry}" is not supported for target language "${target.language}"`,
|
|
1737
|
+
path: ["output", "publish", "registry"]
|
|
1580
1738
|
});
|
|
1581
1739
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
}
|
|
1592
|
-
if (output.publish) {
|
|
1593
|
-
validatePublishingIdentity(packageConfig, output.publish.registry, context);
|
|
1594
|
-
if (output.delivery !== "github" && output.publish.shouldGeneratePublishWorkflow === true) {
|
|
1595
|
-
context.addIssue({
|
|
1596
|
-
code: "custom",
|
|
1597
|
-
message: "output.publish.shouldGeneratePublishWorkflow requires GitHub delivery",
|
|
1598
|
-
path: ["output", "publish", "shouldGeneratePublishWorkflow"]
|
|
1599
|
-
});
|
|
1740
|
+
if (output.publish) {
|
|
1741
|
+
validatePublishingIdentity(packageConfig, output.publish.registry, context);
|
|
1742
|
+
if (output.delivery !== "github" && output.publish.shouldGeneratePublishWorkflow === true) {
|
|
1743
|
+
context.addIssue({
|
|
1744
|
+
code: "custom",
|
|
1745
|
+
message: "output.publish.shouldGeneratePublishWorkflow requires GitHub delivery",
|
|
1746
|
+
path: ["output", "publish", "shouldGeneratePublishWorkflow"]
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1600
1749
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1750
|
+
validateCliOutput(output, target.language, context);
|
|
1751
|
+
if (compatibility?.legacyInput) {
|
|
1752
|
+
const expectedKind = target.sourceOrigin === "postman" ? "postman-build-parameters" : "fern-generator-invocation";
|
|
1753
|
+
if (compatibility.legacyInput.kind !== expectedKind) {
|
|
1754
|
+
context.addIssue({
|
|
1755
|
+
code: "custom",
|
|
1756
|
+
message: `compatibility.legacyInput kind "${compatibility.legacyInput.kind}" does not match target.sourceOrigin "${target.sourceOrigin}"`,
|
|
1757
|
+
path: ["compatibility", "legacyInput", "kind"]
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1611
1760
|
}
|
|
1612
1761
|
}
|
|
1613
|
-
|
|
1762
|
+
);
|
|
1614
1763
|
function parseSdkConfigIrV1(value) {
|
|
1615
1764
|
return sdkConfigIrV1Schema.parse(value);
|
|
1616
1765
|
}
|
|
@@ -1794,6 +1943,7 @@ exports.legacyInputSchema = legacyInputSchema;
|
|
|
1794
1943
|
exports.mcpAvailabilityStatuses = mcpAvailabilityStatuses;
|
|
1795
1944
|
exports.mcpGenerationConfigSchema = mcpGenerationConfigSchema;
|
|
1796
1945
|
exports.nonEmptyStringSchema = nonEmptyStringSchema;
|
|
1946
|
+
exports.oauthTokenEndpointsIssues = oauthTokenEndpointsIssues;
|
|
1797
1947
|
exports.outputConfigSchema = outputConfigSchema;
|
|
1798
1948
|
exports.packageConfigSchema = packageConfigSchema;
|
|
1799
1949
|
exports.parentRelativePathSchema = parentRelativePathSchema;
|