@fern-api/fern-api-dev 5.47.2 → 5.47.3
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 +74 -28
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -25368,7 +25368,7 @@ var init_CliError = __esm({
|
|
|
25368
25368
|
if (Error.captureStackTrace) {
|
|
25369
25369
|
Error.captureStackTrace(this, this.constructor);
|
|
25370
25370
|
}
|
|
25371
|
-
this.name =
|
|
25371
|
+
this.name = "CliError";
|
|
25372
25372
|
this.code = code5;
|
|
25373
25373
|
this.docsLink = docsLink;
|
|
25374
25374
|
}
|
|
@@ -434559,7 +434559,7 @@ var require_replay_run = __commonJS({
|
|
|
434559
434559
|
if (Error.captureStackTrace) {
|
|
434560
434560
|
Error.captureStackTrace(this, this.constructor);
|
|
434561
434561
|
}
|
|
434562
|
-
this.name =
|
|
434562
|
+
this.name = "ReplayPrepareError";
|
|
434563
434563
|
this.reason = reason;
|
|
434564
434564
|
}
|
|
434565
434565
|
};
|
|
@@ -524683,24 +524683,24 @@ function stringifyValidationError(error50) {
|
|
|
524683
524683
|
}
|
|
524684
524684
|
|
|
524685
524685
|
// ../fern-definition/schema/lib/schemas/core/schemas/builders/schema-utils/JsonError.js
|
|
524686
|
-
var JsonError = class extends Error {
|
|
524686
|
+
var JsonError = class _JsonError extends Error {
|
|
524687
524687
|
errors;
|
|
524688
524688
|
constructor(errors4) {
|
|
524689
524689
|
super(errors4.map(stringifyValidationError).join("; "));
|
|
524690
524690
|
this.errors = errors4;
|
|
524691
|
-
Object.setPrototypeOf(this,
|
|
524692
|
-
this.name =
|
|
524691
|
+
Object.setPrototypeOf(this, _JsonError.prototype);
|
|
524692
|
+
this.name = "JsonError";
|
|
524693
524693
|
}
|
|
524694
524694
|
};
|
|
524695
524695
|
|
|
524696
524696
|
// ../fern-definition/schema/lib/schemas/core/schemas/builders/schema-utils/ParseError.js
|
|
524697
|
-
var ParseError = class extends Error {
|
|
524697
|
+
var ParseError = class _ParseError extends Error {
|
|
524698
524698
|
errors;
|
|
524699
524699
|
constructor(errors4) {
|
|
524700
524700
|
super(errors4.map(stringifyValidationError).join("; "));
|
|
524701
524701
|
this.errors = errors4;
|
|
524702
|
-
Object.setPrototypeOf(this,
|
|
524703
|
-
this.name =
|
|
524702
|
+
Object.setPrototypeOf(this, _ParseError.prototype);
|
|
524703
|
+
this.name = "ParseError";
|
|
524704
524704
|
}
|
|
524705
524705
|
};
|
|
524706
524706
|
|
|
@@ -526613,7 +526613,8 @@ var HttpRequest = schemas_exports.undiscriminatedUnion([schemas_exports.string()
|
|
|
526613
526613
|
var HttpResponseSchemaDetailed = schemas_exports.object({
|
|
526614
526614
|
type: schemas_exports.string().optional(),
|
|
526615
526615
|
property: schemas_exports.string().optional(),
|
|
526616
|
-
"status-code": schemas_exports.number().optional()
|
|
526616
|
+
"status-code": schemas_exports.number().optional(),
|
|
526617
|
+
"content-type": schemas_exports.string().optional()
|
|
526617
526618
|
}).extend(WithDocsSchema);
|
|
526618
526619
|
|
|
526619
526620
|
// ../fern-definition/schema/lib/schemas/serialization/resources/service/types/HttpResponseSchema.js
|
|
@@ -536856,7 +536857,9 @@ var StreamingResponse2 = schemas_exports3.union("type", {
|
|
|
536856
536857
|
});
|
|
536857
536858
|
|
|
536858
536859
|
// ../../ir-sdk/lib/sdk/serialization/resources/http/types/TextResponse.js
|
|
536859
|
-
var TextResponse = schemas_exports3.objectWithoutOptionalProperties({
|
|
536860
|
+
var TextResponse = schemas_exports3.objectWithoutOptionalProperties({
|
|
536861
|
+
contentType: schemas_exports3.string().optional()
|
|
536862
|
+
}).extend(WithDocs).extend(WithV2Examples);
|
|
536860
536863
|
|
|
536861
536864
|
// ../../ir-sdk/lib/sdk/serialization/resources/http/types/NonStreamHttpResponseBody.js
|
|
536862
536865
|
var NonStreamHttpResponseBody2 = schemas_exports3.union("type", {
|
|
@@ -539816,7 +539819,8 @@ function visitEndpoint({ endpointId, endpoint: endpoint3, service, visitor, node
|
|
|
539816
539819
|
}
|
|
539817
539820
|
},
|
|
539818
539821
|
property: noop2,
|
|
539819
|
-
"status-code": noop2
|
|
539822
|
+
"status-code": noop2,
|
|
539823
|
+
"content-type": noop2
|
|
539820
539824
|
});
|
|
539821
539825
|
}
|
|
539822
539826
|
},
|
|
@@ -568101,7 +568105,9 @@ var JsonResponse3 = schemas_exports9.objectWithoutOptionalProperties({
|
|
|
568101
568105
|
}).extend(WithDescription).extend(WithSource).extend(WithStatusCode);
|
|
568102
568106
|
|
|
568103
568107
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/TextResponse.js
|
|
568104
|
-
var TextResponse2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
568108
|
+
var TextResponse2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
568109
|
+
contentType: schemas_exports9.string().optional()
|
|
568110
|
+
}).extend(WithDescription).extend(WithSource).extend(WithStatusCode);
|
|
568105
568111
|
|
|
568106
568112
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/Response.js
|
|
568107
568113
|
var Response5 = schemas_exports9.union("type", {
|
|
@@ -573169,7 +573175,8 @@ function buildEndpoint({ endpoint: endpoint3, declarationFile, context: context3
|
|
|
573169
573175
|
convertedEndpoint.response = {
|
|
573170
573176
|
docs: textResponse.description ?? void 0,
|
|
573171
573177
|
type: "text",
|
|
573172
|
-
"status-code": textResponse.statusCode
|
|
573178
|
+
"status-code": textResponse.statusCode,
|
|
573179
|
+
"content-type": textResponse.contentType ?? void 0
|
|
573173
573180
|
};
|
|
573174
573181
|
},
|
|
573175
573182
|
_other: () => {
|
|
@@ -573916,7 +573923,8 @@ function buildWebhooks(context3) {
|
|
|
573916
573923
|
webhookDefinition.response = {
|
|
573917
573924
|
docs: textResponse.description ?? void 0,
|
|
573918
573925
|
type: "text",
|
|
573919
|
-
"status-code": textResponse.statusCode
|
|
573926
|
+
"status-code": textResponse.statusCode,
|
|
573927
|
+
"content-type": textResponse.contentType ?? void 0
|
|
573920
573928
|
};
|
|
573921
573929
|
},
|
|
573922
573930
|
streamingJson: (jsonResponse) => {
|
|
@@ -585359,14 +585367,25 @@ function convertResolvedResponse({ operationContext, streamFormat, streamTermina
|
|
|
585359
585367
|
}
|
|
585360
585368
|
if (mimeType.isText() && !mediaType.includes("event-stream")) {
|
|
585361
585369
|
const textPlainSchema = mediaObject.schema;
|
|
585370
|
+
const contentType = !mimeType.isPlainText() ? mediaType : void 0;
|
|
585362
585371
|
if (textPlainSchema == null) {
|
|
585363
|
-
return ResponseWithExample.text({
|
|
585372
|
+
return ResponseWithExample.text({
|
|
585373
|
+
description: resolvedResponse.description,
|
|
585374
|
+
source: source2,
|
|
585375
|
+
statusCode,
|
|
585376
|
+
contentType
|
|
585377
|
+
});
|
|
585364
585378
|
}
|
|
585365
585379
|
const resolvedTextPlainSchema = isReferenceObject(textPlainSchema) ? context3.resolveSchemaReference(textPlainSchema) : textPlainSchema;
|
|
585366
585380
|
if (resolvedTextPlainSchema.type === "string" && resolvedTextPlainSchema.format === "byte") {
|
|
585367
585381
|
return ResponseWithExample.file({ description: resolvedResponse.description, source: source2, statusCode });
|
|
585368
585382
|
}
|
|
585369
|
-
return ResponseWithExample.text({
|
|
585383
|
+
return ResponseWithExample.text({
|
|
585384
|
+
description: resolvedResponse.description,
|
|
585385
|
+
source: source2,
|
|
585386
|
+
statusCode,
|
|
585387
|
+
contentType
|
|
585388
|
+
});
|
|
585370
585389
|
}
|
|
585371
585390
|
}
|
|
585372
585391
|
return void 0;
|
|
@@ -608070,9 +608089,11 @@ function convertNonStreamHttpResponseBody({ endpoint: endpoint3, file: file4, ty
|
|
|
608070
608089
|
v2Examples: void 0
|
|
608071
608090
|
});
|
|
608072
608091
|
} else if (parseRawTextType(responseType) != null) {
|
|
608092
|
+
const contentType = typeof response !== "string" ? response["content-type"] : void 0;
|
|
608073
608093
|
return HttpResponseBody.text({
|
|
608074
608094
|
docs: docs2,
|
|
608075
|
-
v2Examples: void 0
|
|
608095
|
+
v2Examples: void 0,
|
|
608096
|
+
contentType: contentType ?? void 0
|
|
608076
608097
|
});
|
|
608077
608098
|
} else if (parseRawBytesType(responseType) != null) {
|
|
608078
608099
|
return HttpResponseBody.bytes({
|
|
@@ -610881,9 +610902,11 @@ function convertWebhookResponseBody({ response, file: file4, typeResolver }) {
|
|
|
610881
610902
|
v2Examples: void 0
|
|
610882
610903
|
});
|
|
610883
610904
|
} else if (parseRawTextType(responseType) != null) {
|
|
610905
|
+
const contentType = typeof response !== "string" ? response["content-type"] : void 0;
|
|
610884
610906
|
return HttpResponseBody.text({
|
|
610885
610907
|
docs: docs2,
|
|
610886
|
-
v2Examples: void 0
|
|
610908
|
+
v2Examples: void 0,
|
|
610909
|
+
contentType: contentType ?? void 0
|
|
610887
610910
|
});
|
|
610888
610911
|
} else if (parseRawBytesType(responseType) != null) {
|
|
610889
610912
|
return HttpResponseBody.bytes({
|
|
@@ -640009,6 +640032,16 @@ var definitions2 = {
|
|
|
640009
640032
|
type: "null"
|
|
640010
640033
|
}
|
|
640011
640034
|
]
|
|
640035
|
+
},
|
|
640036
|
+
"content-type": {
|
|
640037
|
+
oneOf: [
|
|
640038
|
+
{
|
|
640039
|
+
type: "string"
|
|
640040
|
+
},
|
|
640041
|
+
{
|
|
640042
|
+
type: "null"
|
|
640043
|
+
}
|
|
640044
|
+
]
|
|
640012
640045
|
}
|
|
640013
640046
|
},
|
|
640014
640047
|
additionalProperties: false
|
|
@@ -644289,6 +644322,16 @@ var definitions3 = {
|
|
|
644289
644322
|
type: "null"
|
|
644290
644323
|
}
|
|
644291
644324
|
]
|
|
644325
|
+
},
|
|
644326
|
+
"content-type": {
|
|
644327
|
+
oneOf: [
|
|
644328
|
+
{
|
|
644329
|
+
type: "string"
|
|
644330
|
+
},
|
|
644331
|
+
{
|
|
644332
|
+
type: "null"
|
|
644333
|
+
}
|
|
644334
|
+
]
|
|
644292
644335
|
}
|
|
644293
644336
|
},
|
|
644294
644337
|
additionalProperties: false
|
|
@@ -656800,7 +656843,8 @@ var ResponseBodyConverter = class extends converters_exports.AbstractConverters.
|
|
|
656800
656843
|
}
|
|
656801
656844
|
if (this.shouldReturnTextResponse(contentType)) {
|
|
656802
656845
|
return this.returnTextResponse({
|
|
656803
|
-
mediaTypeObject
|
|
656846
|
+
mediaTypeObject,
|
|
656847
|
+
contentType
|
|
656804
656848
|
});
|
|
656805
656849
|
}
|
|
656806
656850
|
}
|
|
@@ -656956,7 +657000,7 @@ var ResponseBodyConverter = class extends converters_exports.AbstractConverters.
|
|
|
656956
657000
|
headers: this.convertResponseHeaders()
|
|
656957
657001
|
};
|
|
656958
657002
|
}
|
|
656959
|
-
returnTextResponse({ mediaTypeObject }) {
|
|
657003
|
+
returnTextResponse({ mediaTypeObject, contentType }) {
|
|
656960
657004
|
return {
|
|
656961
657005
|
responseBody: HttpResponseBody.text({
|
|
656962
657006
|
docs: this.responseBody.description,
|
|
@@ -656964,7 +657008,8 @@ var ResponseBodyConverter = class extends converters_exports.AbstractConverters.
|
|
|
656964
657008
|
mediaTypeObject,
|
|
656965
657009
|
generateOptionalProperties: true,
|
|
656966
657010
|
exampleGenerationStrategy: "response"
|
|
656967
|
-
})
|
|
657011
|
+
}),
|
|
657012
|
+
contentType: MediaType.parse(contentType)?.isPlainText() ? void 0 : contentType
|
|
656968
657013
|
}),
|
|
656969
657014
|
streamResponseBody: void 0,
|
|
656970
657015
|
inlinedTypes: {},
|
|
@@ -670346,7 +670391,7 @@ var AccessTokenPosthogManager = class {
|
|
|
670346
670391
|
properties: {
|
|
670347
670392
|
...event,
|
|
670348
670393
|
...event.properties,
|
|
670349
|
-
version: "5.47.
|
|
670394
|
+
version: "5.47.3",
|
|
670350
670395
|
usingAccessToken: true,
|
|
670351
670396
|
...getRunIdProperties()
|
|
670352
670397
|
}
|
|
@@ -670410,7 +670455,7 @@ var UserPosthogManager = class {
|
|
|
670410
670455
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
670411
670456
|
event: "CLI",
|
|
670412
670457
|
properties: {
|
|
670413
|
-
version: "5.47.
|
|
670458
|
+
version: "5.47.3",
|
|
670414
670459
|
...event,
|
|
670415
670460
|
...event.properties,
|
|
670416
670461
|
usingAccessToken: false,
|
|
@@ -862379,7 +862424,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
862379
862424
|
var LOGS_FOLDER_NAME = "logs";
|
|
862380
862425
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
862381
862426
|
function getCliSource() {
|
|
862382
|
-
const version7 = "5.47.
|
|
862427
|
+
const version7 = "5.47.3";
|
|
862383
862428
|
return `cli@${version7}`;
|
|
862384
862429
|
}
|
|
862385
862430
|
var DebugLogger = class {
|
|
@@ -893608,7 +893653,7 @@ var LegacyDocsPublisher = class {
|
|
|
893608
893653
|
previewId,
|
|
893609
893654
|
disableTemplates: void 0,
|
|
893610
893655
|
skipUpload,
|
|
893611
|
-
cliVersion: "5.47.
|
|
893656
|
+
cliVersion: "5.47.3",
|
|
893612
893657
|
loginCommand: "fern auth login"
|
|
893613
893658
|
});
|
|
893614
893659
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -958989,7 +959034,7 @@ function getAutomationContextFromEnv() {
|
|
|
958989
959034
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
958990
959035
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
958991
959036
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
958992
|
-
cli_version: "5.47.
|
|
959037
|
+
cli_version: "5.47.3"
|
|
958993
959038
|
};
|
|
958994
959039
|
}
|
|
958995
959040
|
function isAutomationMode() {
|
|
@@ -959815,7 +959860,7 @@ var CliContext = class _CliContext {
|
|
|
959815
959860
|
if (false) {
|
|
959816
959861
|
this.logger.error("CLI_VERSION is not defined");
|
|
959817
959862
|
}
|
|
959818
|
-
return "5.47.
|
|
959863
|
+
return "5.47.3";
|
|
959819
959864
|
}
|
|
959820
959865
|
getCliName() {
|
|
959821
959866
|
if (false) {
|
|
@@ -970069,10 +970114,11 @@ function convertResponse3({
|
|
|
970069
970114
|
}
|
|
970070
970115
|
};
|
|
970071
970116
|
} else if (httpResponse?.body?.type === "text") {
|
|
970117
|
+
const textContentType = httpResponse.body.contentType ?? "text/plain";
|
|
970072
970118
|
responseByStatusCode[String(httpResponse.statusCode ?? 200)] = {
|
|
970073
970119
|
description: httpResponse.body.docs ?? "",
|
|
970074
970120
|
content: {
|
|
970075
|
-
|
|
970121
|
+
[textContentType]: {
|
|
970076
970122
|
schema: {
|
|
970077
970123
|
type: "string"
|
|
970078
970124
|
}
|
package/package.json
CHANGED