@fern-api/fern-api-dev 5.30.3 → 5.31.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/cli.cjs +61 -21
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -537109,6 +537109,7 @@ var Package = schemas_exports3.objectWithoutOptionalProperties({
|
|
|
537109
537109
|
websocket: WebSocketChannelId.optional(),
|
|
537110
537110
|
subpackages: schemas_exports3.list(SubpackageId),
|
|
537111
537111
|
hasEndpointsInTree: schemas_exports3.boolean(),
|
|
537112
|
+
hasWebSocketInTree: schemas_exports3.boolean().optional(),
|
|
537112
537113
|
navigationConfig: PackageNavigationConfig.optional()
|
|
537113
537114
|
}).extend(WithDocs);
|
|
537114
537115
|
|
|
@@ -584420,7 +584421,7 @@ function getRequestBody2({ context: context3, operation, streamingExtension, isS
|
|
|
584420
584421
|
return void 0;
|
|
584421
584422
|
}
|
|
584422
584423
|
const resolvedRequestBodySchema = isReferenceObject(jsonMediaObject.schema) ? context3.resolveSchemaReference(jsonMediaObject.schema) : jsonMediaObject.schema;
|
|
584423
|
-
if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null) {
|
|
584424
|
+
if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null && resolvedRequestBodySchema.oneOf == null && resolvedRequestBodySchema.anyOf == null) {
|
|
584424
584425
|
return void 0;
|
|
584425
584426
|
}
|
|
584426
584427
|
let streamingProperty = resolvedRequestBodySchema.properties?.[streamingExtension.streamConditionProperty];
|
|
@@ -602931,6 +602932,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
|
|
|
602931
602932
|
webhooks: ir1.rootPackage.webhooks ?? ir23.rootPackage.webhooks,
|
|
602932
602933
|
websocket: ir1.rootPackage.websocket ?? ir23.rootPackage.websocket,
|
|
602933
602934
|
hasEndpointsInTree: ir1.rootPackage.hasEndpointsInTree || ir23.rootPackage.hasEndpointsInTree,
|
|
602935
|
+
hasWebSocketInTree: (ir1.rootPackage.hasWebSocketInTree ?? false) || (ir23.rootPackage.hasWebSocketInTree ?? false) || void 0,
|
|
602934
602936
|
navigationConfig: ir1.rootPackage.navigationConfig ?? ir23.rootPackage.navigationConfig,
|
|
602935
602937
|
docs: ir1.rootPackage.docs ?? ir23.rootPackage.docs
|
|
602936
602938
|
},
|
|
@@ -602963,6 +602965,7 @@ function mergeSubpackages(subpackages1, subpackages2) {
|
|
|
602963
602965
|
displayName: subpackage.displayName,
|
|
602964
602966
|
fernFilepath: subpackage.fernFilepath,
|
|
602965
602967
|
hasEndpointsInTree: mergedSubpackages[subpackageId].hasEndpointsInTree || subpackage.hasEndpointsInTree,
|
|
602968
|
+
hasWebSocketInTree: (mergedSubpackages[subpackageId].hasWebSocketInTree ?? false) || (subpackage.hasWebSocketInTree ?? false) || void 0,
|
|
602966
602969
|
navigationConfig: mergedSubpackages[subpackageId].navigationConfig ?? subpackage.navigationConfig,
|
|
602967
602970
|
docs: mergedSubpackages[subpackageId].docs ?? subpackage.docs,
|
|
602968
602971
|
service: mergedSubpackages[subpackageId].service ?? subpackage.service,
|
|
@@ -610163,14 +610166,17 @@ var PackageTreeGenerator = class {
|
|
|
610163
610166
|
};
|
|
610164
610167
|
}
|
|
610165
610168
|
const allSubpackagesWithEndpoints = new Set(this.getAllChildrenWithEndpoints(this.rootPackage));
|
|
610169
|
+
const allSubpackagesWithWebSocket = new Set(this.getAllChildrenWithWebSocket(this.rootPackage));
|
|
610166
610170
|
return {
|
|
610167
610171
|
subpackages: mapValues_default(this.subpackages, (subpackage, subpackageId) => ({
|
|
610168
610172
|
...subpackage,
|
|
610169
|
-
hasEndpointsInTree: allSubpackagesWithEndpoints.has(subpackageId)
|
|
610173
|
+
hasEndpointsInTree: allSubpackagesWithEndpoints.has(subpackageId),
|
|
610174
|
+
hasWebSocketInTree: allSubpackagesWithWebSocket.has(subpackageId) || subpackage.websocket != null
|
|
610170
610175
|
})),
|
|
610171
610176
|
rootPackage: {
|
|
610172
610177
|
...this.rootPackage,
|
|
610173
|
-
hasEndpointsInTree: allSubpackagesWithEndpoints.size > 0 || this.rootPackage.service != null
|
|
610178
|
+
hasEndpointsInTree: allSubpackagesWithEndpoints.size > 0 || this.rootPackage.service != null,
|
|
610179
|
+
hasWebSocketInTree: allSubpackagesWithWebSocket.size > 0 || this.rootPackage.websocket != null || Object.values(this.subpackages).some((s9) => s9.websocket != null)
|
|
610174
610180
|
}
|
|
610175
610181
|
};
|
|
610176
610182
|
}
|
|
@@ -610215,6 +610221,22 @@ var PackageTreeGenerator = class {
|
|
|
610215
610221
|
return [...this.getAllSubpackagesWithEndpoints(child)];
|
|
610216
610222
|
});
|
|
610217
610223
|
}
|
|
610224
|
+
getAllSubpackagesWithWebSocket(root6) {
|
|
610225
|
+
const subpackage = this.subpackages[root6];
|
|
610226
|
+
if (subpackage == null) {
|
|
610227
|
+
throw new CliError({ message: "Subpackage does not exist: " + root6, code: CliError.Code.ResolutionError });
|
|
610228
|
+
}
|
|
610229
|
+
const subpackagesWithWebSocket = this.getAllChildrenWithWebSocket(subpackage);
|
|
610230
|
+
if (subpackagesWithWebSocket.length > 0 || subpackage.websocket != null) {
|
|
610231
|
+
subpackagesWithWebSocket.push(root6);
|
|
610232
|
+
}
|
|
610233
|
+
return subpackagesWithWebSocket;
|
|
610234
|
+
}
|
|
610235
|
+
getAllChildrenWithWebSocket(package_) {
|
|
610236
|
+
return package_.subpackages.flatMap((child) => {
|
|
610237
|
+
return [...this.getAllSubpackagesWithWebSocket(child)];
|
|
610238
|
+
});
|
|
610239
|
+
}
|
|
610218
610240
|
getPackageForFernFilepath(fernFilepath, index3 = 0, parent = this.rootPackage) {
|
|
610219
610241
|
const nextPart = fernFilepath.allParts[index3];
|
|
610220
610242
|
if (nextPart == null) {
|
|
@@ -647779,6 +647801,7 @@ var AbstractSpecConverter = class extends AbstractConverter {
|
|
|
647779
647801
|
webhooks: void 0,
|
|
647780
647802
|
websocket: void 0,
|
|
647781
647803
|
hasEndpointsInTree: false,
|
|
647804
|
+
hasWebSocketInTree: void 0,
|
|
647782
647805
|
navigationConfig: void 0
|
|
647783
647806
|
};
|
|
647784
647807
|
}
|
|
@@ -654182,18 +654205,24 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654182
654205
|
if (resolvedMediaTypeSchema == null) {
|
|
654183
654206
|
return void 0;
|
|
654184
654207
|
}
|
|
654185
|
-
|
|
654186
|
-
if (streamConditionProperty
|
|
654187
|
-
|
|
654208
|
+
let streamConditionProperty = resolvedMediaTypeSchema.properties?.[this.streamingExtension.streamConditionProperty];
|
|
654209
|
+
if (streamConditionProperty != null && this.context.isReferenceObject(streamConditionProperty)) {
|
|
654210
|
+
streamConditionProperty = void 0;
|
|
654188
654211
|
}
|
|
654189
|
-
|
|
654212
|
+
if (streamConditionProperty == null) {
|
|
654213
|
+
if (resolvedMediaTypeSchema.oneOf == null && resolvedMediaTypeSchema.anyOf == null) {
|
|
654214
|
+
return void 0;
|
|
654215
|
+
}
|
|
654216
|
+
streamConditionProperty = { type: "boolean" };
|
|
654217
|
+
}
|
|
654218
|
+
const streamingOutput = this.buildStreamConditionRequestBody({
|
|
654190
654219
|
streamConditionProperty,
|
|
654191
654220
|
resolvedMediaTypeSchema,
|
|
654192
654221
|
isStreaming: true,
|
|
654193
654222
|
contentType,
|
|
654194
654223
|
mediaTypeObject
|
|
654195
654224
|
});
|
|
654196
|
-
const nonStreamingOutput = this.
|
|
654225
|
+
const nonStreamingOutput = this.buildStreamConditionRequestBody({
|
|
654197
654226
|
streamConditionProperty,
|
|
654198
654227
|
resolvedMediaTypeSchema,
|
|
654199
654228
|
isStreaming: false,
|
|
@@ -654215,7 +654244,7 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654215
654244
|
})
|
|
654216
654245
|
};
|
|
654217
654246
|
}
|
|
654218
|
-
|
|
654247
|
+
buildStreamConditionRequestBody({ streamConditionProperty, resolvedMediaTypeSchema, isStreaming, contentType, mediaTypeObject }) {
|
|
654219
654248
|
if (this.streamingExtension == null || this.streamingExtension.type !== "streamCondition") {
|
|
654220
654249
|
return void 0;
|
|
654221
654250
|
}
|
|
@@ -654262,7 +654291,18 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654262
654291
|
inlinedTypes: convertedSchema.inlinedTypes
|
|
654263
654292
|
};
|
|
654264
654293
|
}
|
|
654265
|
-
return
|
|
654294
|
+
return {
|
|
654295
|
+
requestBody: HttpRequestBody.reference({
|
|
654296
|
+
contentType,
|
|
654297
|
+
docs: this.description,
|
|
654298
|
+
requestBodyType: convertedSchema.type,
|
|
654299
|
+
v2Examples: this.convertMediaTypeObjectExamples({
|
|
654300
|
+
mediaTypeObject: modifiedMediaTypeObject,
|
|
654301
|
+
exampleGenerationStrategy: "request"
|
|
654302
|
+
})
|
|
654303
|
+
}),
|
|
654304
|
+
inlinedTypes: convertedSchema.inlinedTypes ?? {}
|
|
654305
|
+
};
|
|
654266
654306
|
}
|
|
654267
654307
|
recursivelyCheckTypeReferenceIsFile({ typeReference: typeReference2, isOptional, isArray: isArray7 }) {
|
|
654268
654308
|
if (this.context.isList(typeReference2)) {
|
|
@@ -668029,7 +668069,7 @@ var AccessTokenPosthogManager = class {
|
|
|
668029
668069
|
properties: {
|
|
668030
668070
|
...event,
|
|
668031
668071
|
...event.properties,
|
|
668032
|
-
version: "5.
|
|
668072
|
+
version: "5.31.0",
|
|
668033
668073
|
usingAccessToken: true,
|
|
668034
668074
|
...getRunIdProperties()
|
|
668035
668075
|
}
|
|
@@ -668093,7 +668133,7 @@ var UserPosthogManager = class {
|
|
|
668093
668133
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668094
668134
|
event: "CLI",
|
|
668095
668135
|
properties: {
|
|
668096
|
-
version: "5.
|
|
668136
|
+
version: "5.31.0",
|
|
668097
668137
|
...event,
|
|
668098
668138
|
...event.properties,
|
|
668099
668139
|
usingAccessToken: false,
|
|
@@ -812477,10 +812517,10 @@ var V67_TO_V66_MIGRATION = {
|
|
|
812477
812517
|
laterVersion: "v67",
|
|
812478
812518
|
earlierVersion: "v66",
|
|
812479
812519
|
firstGeneratorVersionToConsumeNewIR: {
|
|
812480
|
-
[GeneratorName.TYPESCRIPT_NODE_SDK]:
|
|
812481
|
-
[GeneratorName.TYPESCRIPT_BROWSER_SDK]:
|
|
812482
|
-
[GeneratorName.TYPESCRIPT]:
|
|
812483
|
-
[GeneratorName.TYPESCRIPT_SDK]:
|
|
812520
|
+
[GeneratorName.TYPESCRIPT_NODE_SDK]: "3.70.9-rc.0",
|
|
812521
|
+
[GeneratorName.TYPESCRIPT_BROWSER_SDK]: "3.70.9-rc.0",
|
|
812522
|
+
[GeneratorName.TYPESCRIPT]: "3.70.9-rc.0",
|
|
812523
|
+
[GeneratorName.TYPESCRIPT_SDK]: "3.70.9-rc.0",
|
|
812484
812524
|
[GeneratorName.TYPESCRIPT_EXPRESS]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812485
812525
|
[GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812486
812526
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -812490,7 +812530,7 @@ var V67_TO_V66_MIGRATION = {
|
|
|
812490
812530
|
[GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812491
812531
|
[GeneratorName.PYTHON_FASTAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812492
812532
|
[GeneratorName.PYTHON_PYDANTIC]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812493
|
-
[GeneratorName.PYTHON_SDK]:
|
|
812533
|
+
[GeneratorName.PYTHON_SDK]: "5.13.1-rc.0",
|
|
812494
812534
|
[GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812495
812535
|
[GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812496
812536
|
[GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -859869,7 +859909,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859869
859909
|
var LOGS_FOLDER_NAME = "logs";
|
|
859870
859910
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859871
859911
|
function getCliSource() {
|
|
859872
|
-
const version7 = "5.
|
|
859912
|
+
const version7 = "5.31.0";
|
|
859873
859913
|
return `cli@${version7}`;
|
|
859874
859914
|
}
|
|
859875
859915
|
var DebugLogger = class {
|
|
@@ -878701,7 +878741,7 @@ var LegacyDocsPublisher = class {
|
|
|
878701
878741
|
previewId,
|
|
878702
878742
|
disableTemplates: void 0,
|
|
878703
878743
|
skipUpload,
|
|
878704
|
-
cliVersion: "5.
|
|
878744
|
+
cliVersion: "5.31.0",
|
|
878705
878745
|
loginCommand: "fern auth login"
|
|
878706
878746
|
});
|
|
878707
878747
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -953111,7 +953151,7 @@ function getAutomationContextFromEnv() {
|
|
|
953111
953151
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
953112
953152
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
953113
953153
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
953114
|
-
cli_version: "5.
|
|
953154
|
+
cli_version: "5.31.0"
|
|
953115
953155
|
};
|
|
953116
953156
|
}
|
|
953117
953157
|
function isAutomationMode() {
|
|
@@ -953937,7 +953977,7 @@ var CliContext = class _CliContext {
|
|
|
953937
953977
|
if (false) {
|
|
953938
953978
|
this.logger.error("CLI_VERSION is not defined");
|
|
953939
953979
|
}
|
|
953940
|
-
return "5.
|
|
953980
|
+
return "5.31.0";
|
|
953941
953981
|
}
|
|
953942
953982
|
getCliName() {
|
|
953943
953983
|
if (false) {
|
package/package.json
CHANGED