@fern-api/fern-api-dev 5.41.0 → 5.41.2
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 +22 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -600700,13 +600700,14 @@ function createExamplesForResponseStatusCodes({ endpoint: endpoint3, userRequest
|
|
|
600700
600700
|
requestExamplesUsed.add(firstUserRequestName);
|
|
600701
600701
|
}
|
|
600702
600702
|
let key2 = createExampleKey(firstUserRequestName ?? firstAutoRequestName ?? "base", firstAutoResponseName ?? "base", response?.statusCode);
|
|
600703
|
+
const userOrAutoStore = firstUserRequestExample != null ? userResults : autoResults;
|
|
600703
600704
|
if (maybeCreateAndStoreExample({
|
|
600704
600705
|
key: key2,
|
|
600705
600706
|
displayName: firstUserRequestName ?? firstAutoRequestName ?? fallbackExampleDisplayName,
|
|
600706
600707
|
request: firstUserRequestExample ?? firstAutoRequestExample ?? baseRequestExample,
|
|
600707
600708
|
response: firstAutoResponseExample ?? baseResponseExample,
|
|
600708
600709
|
exampleStore,
|
|
600709
|
-
userOrAutoStore
|
|
600710
|
+
userOrAutoStore
|
|
600710
600711
|
})) {
|
|
600711
600712
|
examplesCreatedForResponse = true;
|
|
600712
600713
|
}
|
|
@@ -669383,7 +669384,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669383
669384
|
properties: {
|
|
669384
669385
|
...event,
|
|
669385
669386
|
...event.properties,
|
|
669386
|
-
version: "5.41.
|
|
669387
|
+
version: "5.41.2",
|
|
669387
669388
|
usingAccessToken: true,
|
|
669388
669389
|
...getRunIdProperties()
|
|
669389
669390
|
}
|
|
@@ -669447,7 +669448,7 @@ var UserPosthogManager = class {
|
|
|
669447
669448
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669448
669449
|
event: "CLI",
|
|
669449
669450
|
properties: {
|
|
669450
|
-
version: "5.41.
|
|
669451
|
+
version: "5.41.2",
|
|
669451
669452
|
...event,
|
|
669452
669453
|
...event.properties,
|
|
669453
669454
|
usingAccessToken: false,
|
|
@@ -824046,10 +824047,22 @@ function convertService(irService, ir11) {
|
|
|
824046
824047
|
}),
|
|
824047
824048
|
includeInApiExplorer: irEndpoint.apiPlayground
|
|
824048
824049
|
};
|
|
824050
|
+
attachUserSpecifiedV2ExamplesMarker(endpoint3, irEndpoint);
|
|
824049
824051
|
endpoints.push(endpoint3);
|
|
824050
824052
|
}
|
|
824051
824053
|
return endpoints;
|
|
824052
824054
|
}
|
|
824055
|
+
function attachUserSpecifiedV2ExamplesMarker(endpoint3, irEndpoint) {
|
|
824056
|
+
const userSpecifiedExamples = irEndpoint.v2Examples?.userSpecifiedExamples;
|
|
824057
|
+
if (userSpecifiedExamples == null || Object.keys(userSpecifiedExamples).length === 0) {
|
|
824058
|
+
return;
|
|
824059
|
+
}
|
|
824060
|
+
const endpointWithV2ExamplesMarker = endpoint3;
|
|
824061
|
+
endpointWithV2ExamplesMarker.v2Examples = {
|
|
824062
|
+
userSpecifiedExamples,
|
|
824063
|
+
autogeneratedExamples: {}
|
|
824064
|
+
};
|
|
824065
|
+
}
|
|
824053
824066
|
function convertWebSocketChannel(channel3, ir11) {
|
|
824054
824067
|
let examples = [];
|
|
824055
824068
|
if (channel3.v2Examples != null && (Object.keys(channel3.v2Examples.userSpecifiedExamples).length > 0 || Object.keys(channel3.v2Examples.autogeneratedExamples).length > 0)) {
|
|
@@ -860398,7 +860411,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
860398
860411
|
var LOGS_FOLDER_NAME = "logs";
|
|
860399
860412
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
860400
860413
|
function getCliSource() {
|
|
860401
|
-
const version7 = "5.41.
|
|
860414
|
+
const version7 = "5.41.2";
|
|
860402
860415
|
return `cli@${version7}`;
|
|
860403
860416
|
}
|
|
860404
860417
|
var DebugLogger = class {
|
|
@@ -880093,7 +880106,8 @@ async function publishDocs({ token, organization, docsWorkspace, domain: domain3
|
|
|
880093
880106
|
context: context3,
|
|
880094
880107
|
apiNameOverride: apiName
|
|
880095
880108
|
});
|
|
880096
|
-
const
|
|
880109
|
+
const isSelfHosted = token.value === "dummy";
|
|
880110
|
+
const aiEnhancerConfig = getAIEnhancerConfig(withAiExamples && !isSelfHosted, docsWorkspace.config.aiExamples?.style ?? docsWorkspace.config.experimental?.aiExampleStyleInstructions);
|
|
880097
880111
|
if (aiEnhancerConfig) {
|
|
880098
880112
|
const sources = workspace?.getSources();
|
|
880099
880113
|
const openApiSources = sources?.filter((source2) => source2.type === "openapi").map((source2) => ({
|
|
@@ -881038,7 +881052,7 @@ var LegacyDocsPublisher = class {
|
|
|
881038
881052
|
previewId,
|
|
881039
881053
|
disableTemplates: void 0,
|
|
881040
881054
|
skipUpload,
|
|
881041
|
-
cliVersion: "5.41.
|
|
881055
|
+
cliVersion: "5.41.2",
|
|
881042
881056
|
loginCommand: "fern auth login"
|
|
881043
881057
|
});
|
|
881044
881058
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -955968,7 +955982,7 @@ function getAutomationContextFromEnv() {
|
|
|
955968
955982
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
955969
955983
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
955970
955984
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
955971
|
-
cli_version: "5.41.
|
|
955985
|
+
cli_version: "5.41.2"
|
|
955972
955986
|
};
|
|
955973
955987
|
}
|
|
955974
955988
|
function isAutomationMode() {
|
|
@@ -956794,7 +956808,7 @@ var CliContext = class _CliContext {
|
|
|
956794
956808
|
if (false) {
|
|
956795
956809
|
this.logger.error("CLI_VERSION is not defined");
|
|
956796
956810
|
}
|
|
956797
|
-
return "5.41.
|
|
956811
|
+
return "5.41.2";
|
|
956798
956812
|
}
|
|
956799
956813
|
getCliName() {
|
|
956800
956814
|
if (false) {
|
package/package.json
CHANGED