@fern-api/fern-api-dev 4.67.1-57-gcb2da2e3a5f → 4.67.1-59-g2bfe06b9ee5
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 +39 -18
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -529587,6 +529587,7 @@ var WebsocketMessageOrigin2 = schemas_exports9.enum_(["client", "server"]);
|
|
|
529587
529587
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebsocketMessageSchema.js
|
|
529588
529588
|
var WebsocketMessageSchema = schemas_exports9.objectWithoutOptionalProperties({
|
|
529589
529589
|
name: schemas_exports9.string(),
|
|
529590
|
+
displayName: schemas_exports9.string().optional(),
|
|
529590
529591
|
origin: WebsocketMessageOrigin2,
|
|
529591
529592
|
body: schemas_exports9.lazy(() => Schema2),
|
|
529592
529593
|
methodName: schemas_exports9.string().optional()
|
|
@@ -532840,6 +532841,9 @@ function buildChannel({ channel: channel3, context: context3, declarationFile })
|
|
|
532840
532841
|
declarationDepth: 0
|
|
532841
532842
|
})
|
|
532842
532843
|
};
|
|
532844
|
+
if (message.displayName != null) {
|
|
532845
|
+
messageSchema["display-name"] = message.displayName;
|
|
532846
|
+
}
|
|
532843
532847
|
if (message.methodName != null) {
|
|
532844
532848
|
messageSchema["method-name"] = message.methodName;
|
|
532845
532849
|
}
|
|
@@ -546026,6 +546030,7 @@ function parseAsyncAPIV2({ context: context3, breadcrumbs, source: source2, asyn
|
|
|
546026
546030
|
messages2.push({
|
|
546027
546031
|
origin: "client",
|
|
546028
546032
|
name: "publish",
|
|
546033
|
+
displayName: channel3.publish != null ? getExtension(channel3.publish, FernAsyncAPIExtension.FERN_DISPLAY_NAME) : void 0,
|
|
546029
546034
|
body: convertSchemaWithExampleToSchema(publishSchema),
|
|
546030
546035
|
methodName: channel3.publish != null ? getExtension(channel3.publish, FernAsyncAPIExtension.FERN_SDK_METHOD_NAME) : void 0
|
|
546031
546036
|
});
|
|
@@ -546034,6 +546039,7 @@ function parseAsyncAPIV2({ context: context3, breadcrumbs, source: source2, asyn
|
|
|
546034
546039
|
messages2.push({
|
|
546035
546040
|
origin: "server",
|
|
546036
546041
|
name: "subscribe",
|
|
546042
|
+
displayName: channel3.subscribe != null ? getExtension(channel3.subscribe, FernAsyncAPIExtension.FERN_DISPLAY_NAME) : void 0,
|
|
546037
546043
|
body: convertSchemaWithExampleToSchema(subscribeSchema),
|
|
546038
546044
|
methodName: channel3.subscribe != null ? getExtension(channel3.subscribe, FernAsyncAPIExtension.FERN_SDK_METHOD_NAME) : void 0
|
|
546039
546045
|
});
|
|
@@ -546327,12 +546333,14 @@ function parseAsyncAPIV3({ context: context3, breadcrumbs, source: source2, asyn
|
|
|
546327
546333
|
channelEvents[channelPath] = { subscribe: [], publish: [], __parsedMessages: [] };
|
|
546328
546334
|
}
|
|
546329
546335
|
const methodName = getExtension(operation, FernAsyncAPIExtension.FERN_SDK_METHOD_NAME);
|
|
546336
|
+
const operationDisplayName = getExtension(operation, FernAsyncAPIExtension.FERN_DISPLAY_NAME);
|
|
546330
546337
|
if (!operation.messages || !Array.isArray(operation.messages)) {
|
|
546331
546338
|
continue;
|
|
546332
546339
|
}
|
|
546333
546340
|
const messagesWithMethodName = operation.messages.filter((ref2) => ref2 != null && ref2.$ref != null).map((ref2) => ({
|
|
546334
546341
|
ref: ref2,
|
|
546335
|
-
methodName
|
|
546342
|
+
methodName,
|
|
546343
|
+
displayName: operationDisplayName
|
|
546336
546344
|
}));
|
|
546337
546345
|
const channelEvent = channelEvents[channelPath];
|
|
546338
546346
|
if (channelEvent == null) {
|
|
@@ -546660,6 +546668,7 @@ function convertMessageReferencesToWebsocketSchemas({ messages: messages2, chann
|
|
|
546660
546668
|
results.push({
|
|
546661
546669
|
origin: origin2,
|
|
546662
546670
|
name: schemaId ?? `${origin2}Message${i11 + 1}`,
|
|
546671
|
+
displayName: message.displayName,
|
|
546663
546672
|
body: convertSchemaWithExampleToSchema(schema2),
|
|
546664
546673
|
methodName: message.methodName
|
|
546665
546674
|
});
|
|
@@ -611857,14 +611866,14 @@ var ChannelAddressExtension = class extends AbstractExtension {
|
|
|
611857
611866
|
|
|
611858
611867
|
// ../api-importers/asyncapi-to-ir/lib/extensions/x-fern-display-name.js
|
|
611859
611868
|
var DisplayNameExtension = class extends AbstractExtension {
|
|
611860
|
-
|
|
611869
|
+
node;
|
|
611861
611870
|
key = "x-fern-display-name";
|
|
611862
|
-
constructor({ breadcrumbs,
|
|
611871
|
+
constructor({ breadcrumbs, node: node4, context: context3 }) {
|
|
611863
611872
|
super({ breadcrumbs, context: context3 });
|
|
611864
|
-
this.
|
|
611873
|
+
this.node = node4;
|
|
611865
611874
|
}
|
|
611866
611875
|
convert() {
|
|
611867
|
-
const extensionValue = this.getExtensionValue(this.
|
|
611876
|
+
const extensionValue = this.getExtensionValue(this.node);
|
|
611868
611877
|
if (extensionValue == null || typeof extensionValue !== "string") {
|
|
611869
611878
|
return void 0;
|
|
611870
611879
|
}
|
|
@@ -611899,12 +611908,12 @@ var ChannelConverter2_X = class extends AbstractChannelConverter {
|
|
|
611899
611908
|
const pathParameters = [];
|
|
611900
611909
|
const queryParameters = [];
|
|
611901
611910
|
const headers2 = [];
|
|
611902
|
-
const
|
|
611911
|
+
const channelDisplayNameExtension = new DisplayNameExtension({
|
|
611903
611912
|
breadcrumbs: this.breadcrumbs,
|
|
611904
|
-
|
|
611913
|
+
node: this.channel,
|
|
611905
611914
|
context: this.context
|
|
611906
611915
|
});
|
|
611907
|
-
const displayName =
|
|
611916
|
+
const displayName = channelDisplayNameExtension.convert() ?? this.websocketGroup?.join(".");
|
|
611908
611917
|
if (this.channel.parameters) {
|
|
611909
611918
|
this.convertPathParameters({
|
|
611910
611919
|
context: this.context,
|
|
@@ -612074,9 +612083,15 @@ var ChannelConverter2_X = class extends AbstractChannelConverter {
|
|
|
612074
612083
|
docs: operation.description
|
|
612075
612084
|
});
|
|
612076
612085
|
const messageType = origin2 === "server" ? "subscribe" : "publish";
|
|
612086
|
+
const operationDisplayNameExtension = new DisplayNameExtension({
|
|
612087
|
+
breadcrumbs: [...this.breadcrumbs, messageType],
|
|
612088
|
+
node: operation,
|
|
612089
|
+
context: this.context
|
|
612090
|
+
});
|
|
612091
|
+
const operationDisplayName = operationDisplayNameExtension.convert() ?? messageType;
|
|
612077
612092
|
return {
|
|
612078
612093
|
type: messageType,
|
|
612079
|
-
displayName:
|
|
612094
|
+
displayName: operationDisplayName,
|
|
612080
612095
|
origin: origin2,
|
|
612081
612096
|
body,
|
|
612082
612097
|
availability: context3.getAvailability({
|
|
@@ -612238,12 +612253,12 @@ var ChannelConverter3_0 = class extends AbstractChannelConverter {
|
|
|
612238
612253
|
const pathParameters = [];
|
|
612239
612254
|
const queryParameters = [];
|
|
612240
612255
|
const headers2 = [];
|
|
612241
|
-
const
|
|
612256
|
+
const channelDisplayNameExtension = new DisplayNameExtension({
|
|
612242
612257
|
breadcrumbs: this.breadcrumbs,
|
|
612243
|
-
|
|
612258
|
+
node: this.channel,
|
|
612244
612259
|
context: this.context
|
|
612245
612260
|
});
|
|
612246
|
-
const displayName =
|
|
612261
|
+
const displayName = channelDisplayNameExtension.convert() ?? this.websocketGroup?.join(".") ?? this.channelPath;
|
|
612247
612262
|
if (this.channel.parameters) {
|
|
612248
612263
|
this.convertChannelParameters({
|
|
612249
612264
|
pathParameters,
|
|
@@ -612263,6 +612278,12 @@ var ChannelConverter3_0 = class extends AbstractChannelConverter {
|
|
|
612263
612278
|
}, {});
|
|
612264
612279
|
const messages2 = [];
|
|
612265
612280
|
for (const [operationId, operation] of Object.entries(channelOperations)) {
|
|
612281
|
+
const operationDisplayNameExtension = new DisplayNameExtension({
|
|
612282
|
+
breadcrumbs: [...this.breadcrumbs, operationId],
|
|
612283
|
+
node: operation,
|
|
612284
|
+
context: this.context
|
|
612285
|
+
});
|
|
612286
|
+
const operationDisplayName = operationDisplayNameExtension.convert() ?? operationId;
|
|
612266
612287
|
for (const message of operation.messages) {
|
|
612267
612288
|
const resolved = this.context.convertReferenceToTypeReference({ reference: message });
|
|
612268
612289
|
if (resolved.ok) {
|
|
@@ -612272,7 +612293,7 @@ var ChannelConverter3_0 = class extends AbstractChannelConverter {
|
|
|
612272
612293
|
});
|
|
612273
612294
|
messages2.push({
|
|
612274
612295
|
type: operationId,
|
|
612275
|
-
displayName:
|
|
612296
|
+
displayName: operationDisplayName,
|
|
612276
612297
|
origin: operation.action === "send" ? "client" : "server",
|
|
612277
612298
|
body: messageBody,
|
|
612278
612299
|
availability: this.context.getAvailability({
|
|
@@ -627603,7 +627624,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627603
627624
|
properties: {
|
|
627604
627625
|
...event,
|
|
627605
627626
|
...event.properties,
|
|
627606
|
-
version: "4.67.1-
|
|
627627
|
+
version: "4.67.1-59-g2bfe06b9ee5",
|
|
627607
627628
|
usingAccessToken: true
|
|
627608
627629
|
}
|
|
627609
627630
|
});
|
|
@@ -627654,7 +627675,7 @@ var UserPosthogManager = class {
|
|
|
627654
627675
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627655
627676
|
event: "CLI",
|
|
627656
627677
|
properties: {
|
|
627657
|
-
version: "4.67.1-
|
|
627678
|
+
version: "4.67.1-59-g2bfe06b9ee5",
|
|
627658
627679
|
...event,
|
|
627659
627680
|
...event.properties,
|
|
627660
627681
|
usingAccessToken: false,
|
|
@@ -843923,7 +843944,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843923
843944
|
var LOGS_FOLDER_NAME = "logs";
|
|
843924
843945
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843925
843946
|
function getCliSource() {
|
|
843926
|
-
const version7 = "4.67.1-
|
|
843947
|
+
const version7 = "4.67.1-59-g2bfe06b9ee5";
|
|
843927
843948
|
return `cli@${version7}`;
|
|
843928
843949
|
}
|
|
843929
843950
|
var DebugLogger = class {
|
|
@@ -855171,7 +855192,7 @@ var LegacyDocsPublisher = class {
|
|
|
855171
855192
|
previewId,
|
|
855172
855193
|
disableTemplates: void 0,
|
|
855173
855194
|
skipUpload,
|
|
855174
|
-
cliVersion: "4.67.1-
|
|
855195
|
+
cliVersion: "4.67.1-59-g2bfe06b9ee5"
|
|
855175
855196
|
});
|
|
855176
855197
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855177
855198
|
return { success: false };
|
|
@@ -928913,7 +928934,7 @@ var CliContext = class _CliContext {
|
|
|
928913
928934
|
if (false) {
|
|
928914
928935
|
this.logger.error("CLI_VERSION is not defined");
|
|
928915
928936
|
}
|
|
928916
|
-
return "4.67.1-
|
|
928937
|
+
return "4.67.1-59-g2bfe06b9ee5";
|
|
928917
928938
|
}
|
|
928918
928939
|
getCliName() {
|
|
928919
928940
|
if (false) {
|
package/package.json
CHANGED