fern-api 0.19.0 → 0.19.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/bundle.cjs +33 -18
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -352775,9 +352775,9 @@ var init_Request = __esm({
|
|
|
352775
352775
|
}
|
|
352776
352776
|
});
|
|
352777
352777
|
|
|
352778
|
-
// pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/
|
|
352779
|
-
var
|
|
352780
|
-
"pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/
|
|
352778
|
+
// pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/OctetStreamRequest.js
|
|
352779
|
+
var init_OctetStreamRequest = __esm({
|
|
352780
|
+
"pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/api/resources/finalIr/types/OctetStreamRequest.js"() {
|
|
352781
352781
|
}
|
|
352782
352782
|
});
|
|
352783
352783
|
|
|
@@ -353389,7 +353389,7 @@ var init_types28 = __esm({
|
|
|
353389
353389
|
init_QueryParameter3();
|
|
353390
353390
|
init_Header();
|
|
353391
353391
|
init_Request();
|
|
353392
|
-
|
|
353392
|
+
init_OctetStreamRequest();
|
|
353393
353393
|
init_JsonRequest();
|
|
353394
353394
|
init_MultipartRequest();
|
|
353395
353395
|
init_MultipartRequestProperty();
|
|
@@ -356448,7 +356448,7 @@ var init_Request2 = __esm({
|
|
|
356448
356448
|
init_api2();
|
|
356449
356449
|
init_core3();
|
|
356450
356450
|
Request2 = schemas_exports4.union("type", {
|
|
356451
|
-
octetStream: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).
|
|
356451
|
+
octetStream: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).OctetStreamRequest),
|
|
356452
356452
|
multipart: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).MultipartRequest),
|
|
356453
356453
|
json: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).JsonRequest)
|
|
356454
356454
|
}).transform({
|
|
@@ -356469,12 +356469,12 @@ var init_Request2 = __esm({
|
|
|
356469
356469
|
}
|
|
356470
356470
|
});
|
|
356471
356471
|
|
|
356472
|
-
// pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/
|
|
356473
|
-
var
|
|
356474
|
-
var
|
|
356475
|
-
"pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/
|
|
356472
|
+
// pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/OctetStreamRequest.js
|
|
356473
|
+
var OctetStreamRequest;
|
|
356474
|
+
var init_OctetStreamRequest2 = __esm({
|
|
356475
|
+
"pnp:/home/circleci/project/packages/cli/openapi-ir-sdk/lib/sdk/serialization/resources/finalIr/types/OctetStreamRequest.js"() {
|
|
356476
356476
|
init_core3();
|
|
356477
|
-
|
|
356477
|
+
OctetStreamRequest = schemas_exports4.objectWithoutOptionalProperties({}).extend(schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
356478
356478
|
}
|
|
356479
356479
|
});
|
|
356480
356480
|
|
|
@@ -357017,7 +357017,7 @@ var init_types32 = __esm({
|
|
|
357017
357017
|
init_QueryParameter4();
|
|
357018
357018
|
init_Header2();
|
|
357019
357019
|
init_Request2();
|
|
357020
|
-
|
|
357020
|
+
init_OctetStreamRequest2();
|
|
357021
357021
|
init_JsonRequest2();
|
|
357022
357022
|
init_MultipartRequest2();
|
|
357023
357023
|
init_MultipartRequestProperty2();
|
|
@@ -357088,7 +357088,7 @@ __export(finalIr_exports2, {
|
|
|
357088
357088
|
ObjectProperty: () => ObjectProperty2,
|
|
357089
357089
|
ObjectPropertyConflictInfo: () => ObjectPropertyConflictInfo,
|
|
357090
357090
|
ObjectSchema: () => ObjectSchema2,
|
|
357091
|
-
|
|
357091
|
+
OctetStreamRequest: () => OctetStreamRequest,
|
|
357092
357092
|
OneOfSchema: () => OneOfSchema2,
|
|
357093
357093
|
OpenApiIntermediateRepresentation: () => OpenApiIntermediateRepresentation,
|
|
357094
357094
|
OptionalSchema: () => OptionalSchema,
|
|
@@ -357181,7 +357181,7 @@ var init_RequestWithExample2 = __esm({
|
|
|
357181
357181
|
init_api2();
|
|
357182
357182
|
init_core3();
|
|
357183
357183
|
RequestWithExample2 = schemas_exports4.union("type", {
|
|
357184
|
-
octetStream: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).
|
|
357184
|
+
octetStream: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).OctetStreamRequest),
|
|
357185
357185
|
multipart: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).MultipartRequest),
|
|
357186
357186
|
json: schemas_exports4.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).JsonRequestWithExample)
|
|
357187
357187
|
}).transform({
|
|
@@ -357836,7 +357836,7 @@ __export(serialization_exports3, {
|
|
|
357836
357836
|
ObjectPropertyWithExample: () => ObjectPropertyWithExample,
|
|
357837
357837
|
ObjectSchema: () => ObjectSchema2,
|
|
357838
357838
|
ObjectSchemaWithExample: () => ObjectSchemaWithExample,
|
|
357839
|
-
|
|
357839
|
+
OctetStreamRequest: () => OctetStreamRequest,
|
|
357840
357840
|
OneOfSchema: () => OneOfSchema2,
|
|
357841
357841
|
OneOfSchemaWithExample: () => OneOfSchemaWithExample2,
|
|
357842
357842
|
OpenApiIntermediateRepresentation: () => OpenApiIntermediateRepresentation,
|
|
@@ -797931,7 +797931,7 @@ var AccessTokenPosthogManager = class {
|
|
|
797931
797931
|
properties: {
|
|
797932
797932
|
...event,
|
|
797933
797933
|
...event.properties,
|
|
797934
|
-
version: "0.19.
|
|
797934
|
+
version: "0.19.2",
|
|
797935
797935
|
usingAccessToken: true
|
|
797936
797936
|
}
|
|
797937
797937
|
});
|
|
@@ -797993,7 +797993,7 @@ var UserPosthogManager = class {
|
|
|
797993
797993
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
797994
797994
|
event: "CLI",
|
|
797995
797995
|
properties: {
|
|
797996
|
-
version: "0.19.
|
|
797996
|
+
version: "0.19.2",
|
|
797997
797997
|
...event,
|
|
797998
797998
|
...event.properties
|
|
797999
797999
|
}
|
|
@@ -814403,6 +814403,9 @@ function getFernAvailability(operationObject) {
|
|
|
814403
814403
|
} else if (availability === "deprecated") {
|
|
814404
814404
|
return EndpointAvailability.Deprecated;
|
|
814405
814405
|
}
|
|
814406
|
+
if (operationObject.deprecated) {
|
|
814407
|
+
return EndpointAvailability.Deprecated;
|
|
814408
|
+
}
|
|
814406
814409
|
return void 0;
|
|
814407
814410
|
}
|
|
814408
814411
|
|
|
@@ -814598,6 +814601,18 @@ function convertResponse({ operationContext, responses, context, responseBreadcr
|
|
|
814598
814601
|
function convertResolvedResponse({ operationContext, isStreaming, response, context, responseBreadcrumbs }) {
|
|
814599
814602
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h;
|
|
814600
814603
|
const resolvedResponse = isReferenceObject(response) ? context.resolveResponseReference(response) : response;
|
|
814604
|
+
if (resolvedResponse.content != null) {
|
|
814605
|
+
const isdownloadFile = Object.entries(resolvedResponse.content).find(([_4, mediaObject]) => {
|
|
814606
|
+
if (mediaObject.schema == null) {
|
|
814607
|
+
return false;
|
|
814608
|
+
}
|
|
814609
|
+
const resolvedSchema = isReferenceObject(mediaObject.schema) ? context.resolveSchemaReference(mediaObject.schema) : mediaObject.schema;
|
|
814610
|
+
return resolvedSchema.type === "string" && resolvedSchema.format === "binary";
|
|
814611
|
+
});
|
|
814612
|
+
if (isdownloadFile) {
|
|
814613
|
+
return ResponseWithExample.file({ description: resolvedResponse.description });
|
|
814614
|
+
}
|
|
814615
|
+
}
|
|
814601
814616
|
const jsonMediaObject = getApplicationJsonSchemaMediaObject(resolvedResponse.content ?? {});
|
|
814602
814617
|
if (jsonMediaObject != null) {
|
|
814603
814618
|
if (isStreaming) {
|
|
@@ -824756,10 +824771,10 @@ var CliContext = class {
|
|
|
824756
824771
|
return "fern-api";
|
|
824757
824772
|
}
|
|
824758
824773
|
getPackageVersion() {
|
|
824759
|
-
if ("0.19.
|
|
824774
|
+
if ("0.19.2" == null) {
|
|
824760
824775
|
this.logger.error("CLI_VERSION is not defined");
|
|
824761
824776
|
}
|
|
824762
|
-
return "0.19.
|
|
824777
|
+
return "0.19.2";
|
|
824763
824778
|
}
|
|
824764
824779
|
getCliName() {
|
|
824765
824780
|
if ("fern" == null) {
|