fern-api 0.27.1-rc0 → 0.29.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/bundle.cjs +48 -22
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -367503,7 +367503,8 @@ var init_JsonRequest2 = __esm({
|
|
|
367503
367503
|
init_core3();
|
|
367504
367504
|
JsonRequest = schemas_exports5.objectWithoutOptionalProperties({
|
|
367505
367505
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).Schema),
|
|
367506
|
-
contentType: schemas_exports5.string().optional()
|
|
367506
|
+
contentType: schemas_exports5.string().optional(),
|
|
367507
|
+
additionalProperties: schemas_exports5.boolean()
|
|
367507
367508
|
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
367508
367509
|
}
|
|
367509
367510
|
});
|
|
@@ -367844,7 +367845,8 @@ var init_ObjectSchema2 = __esm({
|
|
|
367844
367845
|
ObjectSchema2 = schemas_exports5.objectWithoutOptionalProperties({
|
|
367845
367846
|
allOf: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ReferencedSchema)),
|
|
367846
367847
|
properties: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ObjectProperty)),
|
|
367847
|
-
allOfPropertyConflicts: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).AllOfPropertyConflict))
|
|
367848
|
+
allOfPropertyConflicts: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).AllOfPropertyConflict)),
|
|
367849
|
+
additionalProperties: schemas_exports5.boolean()
|
|
367848
367850
|
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
367849
367851
|
}
|
|
367850
367852
|
});
|
|
@@ -368299,7 +368301,8 @@ var init_JsonRequestWithExample2 = __esm({
|
|
|
368299
368301
|
JsonRequestWithExample = schemas_exports5.objectWithoutOptionalProperties({
|
|
368300
368302
|
schema: schemas_exports5.lazy(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).SchemaWithExample),
|
|
368301
368303
|
contentType: schemas_exports5.string().optional(),
|
|
368302
|
-
fullExamples: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).NamedFullExample)).optional()
|
|
368304
|
+
fullExamples: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).NamedFullExample)).optional(),
|
|
368305
|
+
additionalProperties: schemas_exports5.boolean()
|
|
368303
368306
|
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription));
|
|
368304
368307
|
}
|
|
368305
368308
|
});
|
|
@@ -368527,7 +368530,8 @@ var init_ObjectSchemaWithExample2 = __esm({
|
|
|
368527
368530
|
allOf: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ReferencedSchema)),
|
|
368528
368531
|
properties: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).ObjectPropertyWithExample)),
|
|
368529
368532
|
allOfPropertyConflicts: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).AllOfPropertyConflict)),
|
|
368530
|
-
fullExamples: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).NamedFullExample)).optional()
|
|
368533
|
+
fullExamples: schemas_exports5.list(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).NamedFullExample)).optional(),
|
|
368534
|
+
additionalProperties: schemas_exports5.boolean()
|
|
368531
368535
|
}).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithDescription)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithName)).extend(schemas_exports5.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization3(), serialization_exports3))).WithSdkGroupName));
|
|
368532
368536
|
}
|
|
368533
368537
|
});
|
|
@@ -1012974,7 +1012978,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1012974
1012978
|
properties: {
|
|
1012975
1012979
|
...event,
|
|
1012976
1012980
|
...event.properties,
|
|
1012977
|
-
version: "0.
|
|
1012981
|
+
version: "0.29.0",
|
|
1012978
1012982
|
usingAccessToken: true
|
|
1012979
1012983
|
}
|
|
1012980
1012984
|
});
|
|
@@ -1013036,7 +1013040,7 @@ var UserPosthogManager = class {
|
|
|
1013036
1013040
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1013037
1013041
|
event: "CLI",
|
|
1013038
1013042
|
properties: {
|
|
1013039
|
-
version: "0.
|
|
1013043
|
+
version: "0.29.0",
|
|
1013040
1013044
|
...event,
|
|
1013041
1013045
|
...event.properties
|
|
1013042
1013046
|
}
|
|
@@ -1017741,6 +1017745,9 @@ function buildObjectTypeDeclaration({ schema: schema2, context, declarationFile
|
|
|
1017741
1017745
|
if (extendedSchemas.length > 0) {
|
|
1017742
1017746
|
objectTypeDeclaration.extends = extendedSchemas;
|
|
1017743
1017747
|
}
|
|
1017748
|
+
if (schema2.additionalProperties) {
|
|
1017749
|
+
objectTypeDeclaration["extra-properties"] = true;
|
|
1017750
|
+
}
|
|
1017744
1017751
|
return {
|
|
1017745
1017752
|
name: schema2.nameOverride ?? schema2.generatedName,
|
|
1017746
1017753
|
schema: objectTypeDeclaration
|
|
@@ -1018438,7 +1018445,7 @@ function isReferenceObject(parameter) {
|
|
|
1018438
1018445
|
|
|
1018439
1018446
|
// pnp:/home/circleci/project/packages/cli/openapi-parser/lib/schema/convertAdditionalProperties.js
|
|
1018440
1018447
|
function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs, additionalProperties, description, wrapAsNullable, context, groupName, example }) {
|
|
1018441
|
-
if (typeof additionalProperties === "boolean" ||
|
|
1018448
|
+
if (typeof additionalProperties === "boolean" || isAdditionalPropertiesAny(additionalProperties)) {
|
|
1018442
1018449
|
return wrapMap({
|
|
1018443
1018450
|
nameOverride,
|
|
1018444
1018451
|
generatedName,
|
|
@@ -1018493,9 +1018500,6 @@ function convertAdditionalProperties({ nameOverride, generatedName, breadcrumbs,
|
|
|
1018493
1018500
|
example
|
|
1018494
1018501
|
});
|
|
1018495
1018502
|
}
|
|
1018496
|
-
function isAdditionalPropertiesEmptyDictionary(additionalProperties) {
|
|
1018497
|
-
return !isReferenceObject(additionalProperties) && Object.keys(additionalProperties).length === 0;
|
|
1018498
|
-
}
|
|
1018499
1018503
|
function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNullable, description, groupName, example }) {
|
|
1018500
1018504
|
if (wrapAsNullable) {
|
|
1018501
1018505
|
return SchemaWithExample.nullable({
|
|
@@ -1018524,6 +1018528,15 @@ function wrapMap({ nameOverride, generatedName, keySchema, valueSchema, wrapAsNu
|
|
|
1018524
1018528
|
example
|
|
1018525
1018529
|
});
|
|
1018526
1018530
|
}
|
|
1018531
|
+
function isAdditionalPropertiesAny(additionalProperties) {
|
|
1018532
|
+
if (additionalProperties == null) {
|
|
1018533
|
+
return false;
|
|
1018534
|
+
}
|
|
1018535
|
+
if (typeof additionalProperties === "boolean") {
|
|
1018536
|
+
return additionalProperties;
|
|
1018537
|
+
}
|
|
1018538
|
+
return !isReferenceObject(additionalProperties) && Object.keys(additionalProperties).length === 0;
|
|
1018539
|
+
}
|
|
1018527
1018540
|
|
|
1018528
1018541
|
// pnp:/home/circleci/project/packages/cli/openapi-parser/lib/schema/convertArray.js
|
|
1018529
1018542
|
function convertArray({ nameOverride, generatedName, breadcrumbs, item, description, wrapAsNullable, context, groupName, example }) {
|
|
@@ -1019084,7 +1019097,8 @@ function convertSchemaWithExampleToSchema(schema2) {
|
|
|
1019084
1019097
|
description: schema2.description,
|
|
1019085
1019098
|
generatedName: schema2.generatedName,
|
|
1019086
1019099
|
nameOverride: schema2.nameOverride,
|
|
1019087
|
-
groupName: schema2.groupName
|
|
1019100
|
+
groupName: schema2.groupName,
|
|
1019101
|
+
additionalProperties: schema2.additionalProperties
|
|
1019088
1019102
|
});
|
|
1019089
1019103
|
case "array":
|
|
1019090
1019104
|
return Schema2.array({
|
|
@@ -1019305,7 +1019319,7 @@ function isObjectEqual(a2, b2) {
|
|
|
1019305
1019319
|
}
|
|
1019306
1019320
|
|
|
1019307
1019321
|
// pnp:/home/circleci/project/packages/cli/openapi-parser/lib/schema/convertObject.js
|
|
1019308
|
-
function convertObject({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, allOf, context, propertiesToExclude, groupName, fullExamples }) {
|
|
1019322
|
+
function convertObject({ nameOverride, generatedName, breadcrumbs, properties, description, required, wrapAsNullable, allOf, context, propertiesToExclude, groupName, fullExamples, additionalProperties }) {
|
|
1019309
1019323
|
const allRequired = [...required ?? []];
|
|
1019310
1019324
|
const propertiesToConvert = { ...properties };
|
|
1019311
1019325
|
const inlinedParentProperties = [];
|
|
@@ -1019441,10 +1019455,11 @@ function convertObject({ nameOverride, generatedName, breadcrumbs, properties, d
|
|
|
1019441
1019455
|
allOf: parents.map((parent2) => parent2.convertedSchema),
|
|
1019442
1019456
|
allOfPropertyConflicts,
|
|
1019443
1019457
|
groupName,
|
|
1019444
|
-
fullExamples
|
|
1019458
|
+
fullExamples,
|
|
1019459
|
+
additionalProperties
|
|
1019445
1019460
|
});
|
|
1019446
1019461
|
}
|
|
1019447
|
-
function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, description, allOf, allOfPropertyConflicts, groupName, fullExamples }) {
|
|
1019462
|
+
function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, description, allOf, allOfPropertyConflicts, groupName, fullExamples, additionalProperties }) {
|
|
1019448
1019463
|
if (wrapAsNullable) {
|
|
1019449
1019464
|
return SchemaWithExample.nullable({
|
|
1019450
1019465
|
nameOverride,
|
|
@@ -1019457,7 +1019472,8 @@ function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, d
|
|
|
1019457
1019472
|
allOf,
|
|
1019458
1019473
|
allOfPropertyConflicts,
|
|
1019459
1019474
|
groupName,
|
|
1019460
|
-
fullExamples
|
|
1019475
|
+
fullExamples,
|
|
1019476
|
+
additionalProperties: isAdditionalPropertiesAny(additionalProperties)
|
|
1019461
1019477
|
}),
|
|
1019462
1019478
|
description,
|
|
1019463
1019479
|
groupName
|
|
@@ -1019471,7 +1019487,8 @@ function wrapObject({ nameOverride, generatedName, wrapAsNullable, properties, d
|
|
|
1019471
1019487
|
allOf,
|
|
1019472
1019488
|
allOfPropertyConflicts,
|
|
1019473
1019489
|
groupName,
|
|
1019474
|
-
fullExamples
|
|
1019490
|
+
fullExamples,
|
|
1019491
|
+
additionalProperties: isAdditionalPropertiesAny(additionalProperties)
|
|
1019475
1019492
|
});
|
|
1019476
1019493
|
}
|
|
1019477
1019494
|
function getAllProperties({ schema: schema2, context, breadcrumbs }) {
|
|
@@ -1020139,7 +1020156,8 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
1020139
1020156
|
context,
|
|
1020140
1020157
|
propertiesToExclude,
|
|
1020141
1020158
|
groupName,
|
|
1020142
|
-
fullExamples
|
|
1020159
|
+
fullExamples,
|
|
1020160
|
+
additionalProperties: schema2.additionalProperties
|
|
1020143
1020161
|
});
|
|
1020144
1020162
|
}
|
|
1020145
1020163
|
if (schema2.type === "object" && hasNoOneOf(schema2) && hasNoAllOf(schema2) && hasNoProperties(schema2)) {
|
|
@@ -1021146,7 +1021164,8 @@ function convertSchemaToSchemaWithExample(schema2) {
|
|
|
1021146
1021164
|
generatedName: schema2.generatedName,
|
|
1021147
1021165
|
nameOverride: schema2.nameOverride,
|
|
1021148
1021166
|
groupName: schema2.groupName,
|
|
1021149
|
-
fullExamples: void 0
|
|
1021167
|
+
fullExamples: void 0,
|
|
1021168
|
+
additionalProperties: schema2.additionalProperties
|
|
1021150
1021169
|
});
|
|
1021151
1021170
|
case "array":
|
|
1021152
1021171
|
return SchemaWithExample.array({
|
|
@@ -1021761,7 +1021780,8 @@ function convertMultipartRequestToSchema(request) {
|
|
|
1021761
1021780
|
description: request.description,
|
|
1021762
1021781
|
nameOverride: void 0,
|
|
1021763
1021782
|
generatedName: "",
|
|
1021764
|
-
groupName: void 0
|
|
1021783
|
+
groupName: void 0,
|
|
1021784
|
+
additionalProperties: false
|
|
1021765
1021785
|
});
|
|
1021766
1021786
|
}
|
|
1021767
1021787
|
|
|
@@ -1022901,7 +1022921,8 @@ function convertRequest({ requestBody, document: document6, context, requestBrea
|
|
|
1022901
1022921
|
description: void 0,
|
|
1022902
1022922
|
schema: requestSchema,
|
|
1022903
1022923
|
contentType: void 0,
|
|
1022904
|
-
fullExamples: jsonMediaObject.examples
|
|
1022924
|
+
fullExamples: jsonMediaObject.examples,
|
|
1022925
|
+
additionalProperties: !isReferenceObject(jsonMediaObject.schema) && isAdditionalPropertiesAny(jsonMediaObject.schema.additionalProperties)
|
|
1022905
1022926
|
});
|
|
1022906
1022927
|
}
|
|
1022907
1022928
|
function resolveSchema(schema2, document6) {
|
|
@@ -1025411,6 +1025432,9 @@ function getRequest({ declarationFile, context, request, requestNameOverride, ge
|
|
|
1025411
1025432
|
if (extendedSchemas.length > 0) {
|
|
1025412
1025433
|
requestBodySchema.extends = extendedSchemas;
|
|
1025413
1025434
|
}
|
|
1025435
|
+
if (request.additionalProperties) {
|
|
1025436
|
+
requestBodySchema["extra-properties"] = true;
|
|
1025437
|
+
}
|
|
1025414
1025438
|
const convertedRequestValue = {
|
|
1025415
1025439
|
name: requestNameOverride ?? resolvedSchema.nameOverride ?? resolvedSchema.generatedName,
|
|
1025416
1025440
|
"query-parameters": queryParameters,
|
|
@@ -1030337,10 +1030361,10 @@ var CliContext = class {
|
|
|
1030337
1030361
|
return "fern-api";
|
|
1030338
1030362
|
}
|
|
1030339
1030363
|
getPackageVersion() {
|
|
1030340
|
-
if ("0.
|
|
1030364
|
+
if ("0.29.0" == null) {
|
|
1030341
1030365
|
this.logger.error("CLI_VERSION is not defined");
|
|
1030342
1030366
|
}
|
|
1030343
|
-
return "0.
|
|
1030367
|
+
return "0.29.0";
|
|
1030344
1030368
|
}
|
|
1030345
1030369
|
getCliName() {
|
|
1030346
1030370
|
if ("fern" == null) {
|
|
@@ -1031045,10 +1031069,12 @@ var COMMON_ITIALISMS = /* @__PURE__ */ new Set([
|
|
|
1031045
1031069
|
"RAM",
|
|
1031046
1031070
|
"RHS",
|
|
1031047
1031071
|
"RPC",
|
|
1031072
|
+
"SAML",
|
|
1031048
1031073
|
"SLA",
|
|
1031049
1031074
|
"SMTP",
|
|
1031050
1031075
|
"SQL",
|
|
1031051
1031076
|
"SSH",
|
|
1031077
|
+
"SSO",
|
|
1031052
1031078
|
"TCP",
|
|
1031053
1031079
|
"TLS",
|
|
1031054
1031080
|
"TTL",
|