@fern-api/fern-api-dev 4.90.0-3-gc834556541b → 4.90.0-5-g48cbf3f77dd

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.
Files changed (2) hide show
  1. package/cli.cjs +272 -18
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -475527,6 +475527,7 @@ var SourceSchema = schemas_exports.undiscriminatedUnion([OpenApiSourceSchema, Pr
475527
475527
  // ../fern-definition/schema/lib/schemas/serialization/resources/types/types/BaseTypeReferenceSchema.js
475528
475528
  var BaseTypeReferenceSchema = schemas_exports.object({
475529
475529
  default: schemas_exports.unknown().optional(),
475530
+ "client-default": schemas_exports.unknown().optional(),
475530
475531
  encoding: EncodingSchema.optional(),
475531
475532
  validation: ValidationSchema.optional()
475532
475533
  }).extend(WithDocsSchema).extend(WithAvailability);
@@ -475815,7 +475816,8 @@ var DiscriminatedUnionSchema = schemas_exports.object({
475815
475816
  discriminant: UnionDiscriminant.optional(),
475816
475817
  extends: ObjectExtendsSchema.optional(),
475817
475818
  "base-properties": schemas_exports.record(schemas_exports.string(), TypeReferenceSchema).optional(),
475818
- union: schemas_exports.record(schemas_exports.string(), SingleUnionTypeSchema)
475819
+ union: schemas_exports.record(schemas_exports.string(), SingleUnionTypeSchema),
475820
+ "default-variant": schemas_exports.string().optional()
475819
475821
  }).extend(BaseTypeDeclarationSchema);
475820
475822
 
475821
475823
  // ../fern-definition/schema/lib/schemas/serialization/resources/types/types/CasingOverridesSchema.js
@@ -488639,6 +488641,7 @@ function visitEndpoint({ endpointId, endpoint: endpoint3, service, visitor, node
488639
488641
  audiences: noop2,
488640
488642
  encoding: noop2,
488641
488643
  default: noop2,
488644
+ "client-default": noop2,
488642
488645
  validation: noop2
488643
488646
  });
488644
488647
  }
@@ -488702,6 +488705,7 @@ function visitEndpoint({ endpointId, endpoint: endpoint3, service, visitor, node
488702
488705
  audiences: noop2,
488703
488706
  encoding: noop2,
488704
488707
  default: noop2,
488708
+ "client-default": noop2,
488705
488709
  validation: noop2
488706
488710
  });
488707
488711
  }
@@ -488951,6 +488955,7 @@ function visitPathParameters({ pathParameters, visitor, nodePath }) {
488951
488955
  availability: noop2,
488952
488956
  encoding: noop2,
488953
488957
  default: noop2,
488958
+ "client-default": noop2,
488954
488959
  validation: noop2,
488955
488960
  name: noop2,
488956
488961
  audiences: noop2
@@ -488984,6 +488989,7 @@ function visitHeaders({ headers: headers2, visitor, nodePath }) {
488984
488989
  encoding: noop2,
488985
488990
  env: noop2,
488986
488991
  default: noop2,
488992
+ "client-default": noop2,
488987
488993
  validation: noop2
488988
488994
  });
488989
488995
  }
@@ -489078,6 +489084,7 @@ function visitTypeDeclaration({ typeName, declaration, visitor, nodePathForType
489078
489084
  audiences: noop2,
489079
489085
  encoding: noop2,
489080
489086
  default: noop2,
489087
+ "client-default": noop2,
489081
489088
  validation: noop2,
489082
489089
  access: noop2
489083
489090
  });
@@ -489326,6 +489333,7 @@ function visitWebhooks({ webhook, visitor, nodePathForWebhook }) {
489326
489333
  audiences: noop2,
489327
489334
  encoding: noop2,
489328
489335
  default: noop2,
489336
+ "client-default": noop2,
489329
489337
  validation: noop2,
489330
489338
  access: noop2
489331
489339
  });
@@ -489371,6 +489379,7 @@ function visitHeaders2({ headers: headers2, visitor, nodePath }) {
489371
489379
  encoding: noop2,
489372
489380
  env: noop2,
489373
489381
  default: noop2,
489382
+ "client-default": noop2,
489374
489383
  validation: noop2
489375
489384
  });
489376
489385
  }
@@ -519690,7 +519699,7 @@ function buildHeader({ header, context: context3, fileContainingReference, names
519690
519699
  headerSchema.availability = convertAvailability(header.availability);
519691
519700
  }
519692
519701
  if (header.clientDefault != null) {
519693
- headerSchema.default = header.clientDefault;
519702
+ headerSchema["client-default"] = header.clientDefault;
519694
519703
  }
519695
519704
  return headerSchema;
519696
519705
  }
@@ -519719,7 +519728,7 @@ function buildPathParameter({ pathParameter, context: context3, fileContainingRe
519719
519728
  pathParameterSchema.availability = convertAvailability(pathParameter.availability);
519720
519729
  }
519721
519730
  if (pathParameter.clientDefault != null && "type" in pathParameterSchema) {
519722
- pathParameterSchema.default = pathParameter.clientDefault;
519731
+ pathParameterSchema["client-default"] = pathParameter.clientDefault;
519723
519732
  }
519724
519733
  return pathParameterSchema;
519725
519734
  }
@@ -519747,8 +519756,9 @@ function buildQueryParameter({ queryParameter, context: context3, fileContaining
519747
519756
  type: queryParameterType
519748
519757
  };
519749
519758
  if (queryParameter.clientDefault != null) {
519750
- queryParameterSchema.default = queryParameter.clientDefault;
519751
- } else if (queryParameterDefault != null) {
519759
+ queryParameterSchema["client-default"] = queryParameter.clientDefault;
519760
+ }
519761
+ if (queryParameterDefault != null) {
519752
519762
  queryParameterSchema.default = queryParameterDefault;
519753
519763
  }
519754
519764
  if (typeReference2.allowMultiple) {
@@ -519771,7 +519781,7 @@ function buildQueryParameter({ queryParameter, context: context3, fileContaining
519771
519781
  queryParameterSchema.validation = typeReference2.value.validation;
519772
519782
  }
519773
519783
  }
519774
- if (queryParameterSchema.default == null && queryParameterSchema["allow-multiple"] == null && queryParameterSchema.docs == null && queryParameterSchema.name == null && queryParameterSchema.availability == null && queryParameterSchema.validation == null && queryParameterSchema.explode == null) {
519784
+ if (queryParameterSchema.default == null && queryParameterSchema["client-default"] == null && queryParameterSchema["allow-multiple"] == null && queryParameterSchema.docs == null && queryParameterSchema.name == null && queryParameterSchema.availability == null && queryParameterSchema.validation == null && queryParameterSchema.explode == null) {
519775
519785
  return queryParameterType;
519776
519786
  }
519777
519787
  return queryParameterSchema;
@@ -521141,7 +521151,7 @@ function buildGlobalHeaders(context3) {
521141
521151
  })) ?? defaultType : defaultType
521142
521152
  };
521143
521153
  if (typeof header.clientDefault === "string" || typeof header.clientDefault === "boolean") {
521144
- schema2.default = header.clientDefault;
521154
+ schema2["client-default"] = header.clientDefault;
521145
521155
  }
521146
521156
  }
521147
521157
  context3.builder.addGlobalHeader({
@@ -557530,7 +557540,7 @@ function convertSingleUnionType({ rawValueType, rawSingleUnionType, fileContaini
557530
557540
  function convertQueryParameter({ file: file4, queryParameterKey, queryParameter }) {
557531
557541
  const { name: name2 } = getQueryParameterName({ queryParameterKey, queryParameter });
557532
557542
  const valueType = file4.parseTypeReference(queryParameter);
557533
- const defaultValue = typeof queryParameter !== "string" ? queryParameter.default : void 0;
557543
+ const clientDefaultValue = typeof queryParameter !== "string" ? queryParameter["client-default"] : void 0;
557534
557544
  return {
557535
557545
  ...convertDeclaration(queryParameter),
557536
557546
  name: file4.casingsGenerator.generateNameAndWireValue({
@@ -557539,7 +557549,7 @@ function convertQueryParameter({ file: file4, queryParameterKey, queryParameter
557539
557549
  }),
557540
557550
  valueType,
557541
557551
  allowMultiple: typeof queryParameter !== "string" && queryParameter["allow-multiple"] != null ? queryParameter["allow-multiple"] : false,
557542
- clientDefault: convertDefaultToLiteral(defaultValue),
557552
+ clientDefault: convertDefaultToLiteral(clientDefaultValue),
557543
557553
  v2Examples: {
557544
557554
  userSpecifiedExamples: {},
557545
557555
  autogeneratedExamples: {}
@@ -558609,14 +558619,14 @@ function convertPathParameters2({ pathParameters, location: location2, file: fil
558609
558619
  }));
558610
558620
  }
558611
558621
  function convertPathParameter({ parameterName, parameter: parameter6, location: location2, file: file4, variableResolver }) {
558612
- const defaultValue = typeof parameter6 !== "string" && "type" in parameter6 ? parameter6.default : void 0;
558622
+ const clientDefaultValue = typeof parameter6 !== "string" && "type" in parameter6 ? parameter6["client-default"] : void 0;
558613
558623
  return {
558614
558624
  ...convertDeclaration(parameter6),
558615
558625
  name: file4.casingsGenerator.generateName(parameterName),
558616
558626
  valueType: getPathParameterType({ parameter: parameter6, variableResolver, file: file4 }),
558617
558627
  location: location2,
558618
558628
  variable: isVariablePathParameter(parameter6) ? variableResolver.getVariableIdOrThrow(typeof parameter6 === "string" ? parameter6 : parameter6.variable) : void 0,
558619
- clientDefault: convertDefaultToLiteral(defaultValue),
558629
+ clientDefault: convertDefaultToLiteral(clientDefaultValue),
558620
558630
  v2Examples: {
558621
558631
  userSpecifiedExamples: {},
558622
558632
  autogeneratedExamples: {}
@@ -558682,7 +558692,7 @@ function convertHttpMethod(method8) {
558682
558692
  }
558683
558693
  function convertHttpHeader({ headerKey, header, file: file4 }) {
558684
558694
  const { name: name2 } = getHeaderName3({ headerKey, header });
558685
- const defaultValue = typeof header !== "string" ? header.default : void 0;
558695
+ const clientDefaultValue = typeof header !== "string" ? header["client-default"] : void 0;
558686
558696
  return {
558687
558697
  ...convertDeclaration(header),
558688
558698
  name: file4.casingsGenerator.generateNameAndWireValue({
@@ -558691,7 +558701,7 @@ function convertHttpHeader({ headerKey, header, file: file4 }) {
558691
558701
  }),
558692
558702
  valueType: file4.parseTypeReference(header),
558693
558703
  env: typeof header === "string" ? void 0 : header.env,
558694
- clientDefault: convertDefaultToLiteral(defaultValue),
558704
+ clientDefault: convertDefaultToLiteral(clientDefaultValue),
558695
558705
  v2Examples: {
558696
558706
  userSpecifiedExamples: {},
558697
558707
  autogeneratedExamples: {}
@@ -586541,6 +586551,23 @@ var definitions = {
586541
586551
  }
586542
586552
  ]
586543
586553
  },
586554
+ "client-default": {
586555
+ oneOf: [
586556
+ {
586557
+ type: [
586558
+ "string",
586559
+ "number",
586560
+ "boolean",
586561
+ "object",
586562
+ "array",
586563
+ "null"
586564
+ ]
586565
+ },
586566
+ {
586567
+ type: "null"
586568
+ }
586569
+ ]
586570
+ },
586544
586571
  encoding: {
586545
586572
  oneOf: [
586546
586573
  {
@@ -586691,6 +586718,23 @@ var definitions = {
586691
586718
  }
586692
586719
  ]
586693
586720
  },
586721
+ "client-default": {
586722
+ oneOf: [
586723
+ {
586724
+ type: [
586725
+ "string",
586726
+ "number",
586727
+ "boolean",
586728
+ "object",
586729
+ "array",
586730
+ "null"
586731
+ ]
586732
+ },
586733
+ {
586734
+ type: "null"
586735
+ }
586736
+ ]
586737
+ },
586694
586738
  encoding: {
586695
586739
  oneOf: [
586696
586740
  {
@@ -587679,6 +587723,23 @@ var definitions2 = {
587679
587723
  }
587680
587724
  ]
587681
587725
  },
587726
+ "client-default": {
587727
+ oneOf: [
587728
+ {
587729
+ type: [
587730
+ "string",
587731
+ "number",
587732
+ "boolean",
587733
+ "object",
587734
+ "array",
587735
+ "null"
587736
+ ]
587737
+ },
587738
+ {
587739
+ type: "null"
587740
+ }
587741
+ ]
587742
+ },
587682
587743
  encoding: {
587683
587744
  oneOf: [
587684
587745
  {
@@ -588161,6 +588222,23 @@ var definitions2 = {
588161
588222
  }
588162
588223
  ]
588163
588224
  },
588225
+ "client-default": {
588226
+ oneOf: [
588227
+ {
588228
+ type: [
588229
+ "string",
588230
+ "number",
588231
+ "boolean",
588232
+ "object",
588233
+ "array",
588234
+ "null"
588235
+ ]
588236
+ },
588237
+ {
588238
+ type: "null"
588239
+ }
588240
+ ]
588241
+ },
588164
588242
  encoding: {
588165
588243
  oneOf: [
588166
588244
  {
@@ -588478,6 +588556,16 @@ var definitions2 = {
588478
588556
  additionalProperties: {
588479
588557
  $ref: "#/definitions/types.SingleUnionTypeSchema"
588480
588558
  }
588559
+ },
588560
+ "default-variant": {
588561
+ oneOf: [
588562
+ {
588563
+ type: "string"
588564
+ },
588565
+ {
588566
+ type: "null"
588567
+ }
588568
+ ]
588481
588569
  }
588482
588570
  },
588483
588571
  required: [
@@ -588884,6 +588972,23 @@ var definitions2 = {
588884
588972
  }
588885
588973
  ]
588886
588974
  },
588975
+ "client-default": {
588976
+ oneOf: [
588977
+ {
588978
+ type: [
588979
+ "string",
588980
+ "number",
588981
+ "boolean",
588982
+ "object",
588983
+ "array",
588984
+ "null"
588985
+ ]
588986
+ },
588987
+ {
588988
+ type: "null"
588989
+ }
588990
+ ]
588991
+ },
588887
588992
  encoding: {
588888
588993
  oneOf: [
588889
588994
  {
@@ -588956,6 +589061,16 @@ var definitions2 = {
588956
589061
  type: "null"
588957
589062
  }
588958
589063
  ]
589064
+ },
589065
+ explode: {
589066
+ oneOf: [
589067
+ {
589068
+ type: "boolean"
589069
+ },
589070
+ {
589071
+ type: "null"
589072
+ }
589073
+ ]
588959
589074
  }
588960
589075
  },
588961
589076
  required: [
@@ -588996,6 +589111,23 @@ var definitions2 = {
588996
589111
  }
588997
589112
  ]
588998
589113
  },
589114
+ "client-default": {
589115
+ oneOf: [
589116
+ {
589117
+ type: [
589118
+ "string",
589119
+ "number",
589120
+ "boolean",
589121
+ "object",
589122
+ "array",
589123
+ "null"
589124
+ ]
589125
+ },
589126
+ {
589127
+ type: "null"
589128
+ }
589129
+ ]
589130
+ },
588999
589131
  encoding: {
589000
589132
  oneOf: [
589001
589133
  {
@@ -589141,6 +589273,23 @@ var definitions2 = {
589141
589273
  }
589142
589274
  ]
589143
589275
  },
589276
+ "client-default": {
589277
+ oneOf: [
589278
+ {
589279
+ type: [
589280
+ "string",
589281
+ "number",
589282
+ "boolean",
589283
+ "object",
589284
+ "array",
589285
+ "null"
589286
+ ]
589287
+ },
589288
+ {
589289
+ type: "null"
589290
+ }
589291
+ ]
589292
+ },
589144
589293
  encoding: {
589145
589294
  oneOf: [
589146
589295
  {
@@ -591785,6 +591934,23 @@ var definitions3 = {
591785
591934
  }
591786
591935
  ]
591787
591936
  },
591937
+ "client-default": {
591938
+ oneOf: [
591939
+ {
591940
+ type: [
591941
+ "string",
591942
+ "number",
591943
+ "boolean",
591944
+ "object",
591945
+ "array",
591946
+ "null"
591947
+ ]
591948
+ },
591949
+ {
591950
+ type: "null"
591951
+ }
591952
+ ]
591953
+ },
591788
591954
  encoding: {
591789
591955
  oneOf: [
591790
591956
  {
@@ -592267,6 +592433,23 @@ var definitions3 = {
592267
592433
  }
592268
592434
  ]
592269
592435
  },
592436
+ "client-default": {
592437
+ oneOf: [
592438
+ {
592439
+ type: [
592440
+ "string",
592441
+ "number",
592442
+ "boolean",
592443
+ "object",
592444
+ "array",
592445
+ "null"
592446
+ ]
592447
+ },
592448
+ {
592449
+ type: "null"
592450
+ }
592451
+ ]
592452
+ },
592270
592453
  encoding: {
592271
592454
  oneOf: [
592272
592455
  {
@@ -592584,6 +592767,16 @@ var definitions3 = {
592584
592767
  additionalProperties: {
592585
592768
  $ref: "#/definitions/types.SingleUnionTypeSchema"
592586
592769
  }
592770
+ },
592771
+ "default-variant": {
592772
+ oneOf: [
592773
+ {
592774
+ type: "string"
592775
+ },
592776
+ {
592777
+ type: "null"
592778
+ }
592779
+ ]
592587
592780
  }
592588
592781
  },
592589
592782
  required: [
@@ -592990,6 +593183,23 @@ var definitions3 = {
592990
593183
  }
592991
593184
  ]
592992
593185
  },
593186
+ "client-default": {
593187
+ oneOf: [
593188
+ {
593189
+ type: [
593190
+ "string",
593191
+ "number",
593192
+ "boolean",
593193
+ "object",
593194
+ "array",
593195
+ "null"
593196
+ ]
593197
+ },
593198
+ {
593199
+ type: "null"
593200
+ }
593201
+ ]
593202
+ },
592993
593203
  encoding: {
592994
593204
  oneOf: [
592995
593205
  {
@@ -593062,6 +593272,16 @@ var definitions3 = {
593062
593272
  type: "null"
593063
593273
  }
593064
593274
  ]
593275
+ },
593276
+ explode: {
593277
+ oneOf: [
593278
+ {
593279
+ type: "boolean"
593280
+ },
593281
+ {
593282
+ type: "null"
593283
+ }
593284
+ ]
593065
593285
  }
593066
593286
  },
593067
593287
  required: [
@@ -593102,6 +593322,23 @@ var definitions3 = {
593102
593322
  }
593103
593323
  ]
593104
593324
  },
593325
+ "client-default": {
593326
+ oneOf: [
593327
+ {
593328
+ type: [
593329
+ "string",
593330
+ "number",
593331
+ "boolean",
593332
+ "object",
593333
+ "array",
593334
+ "null"
593335
+ ]
593336
+ },
593337
+ {
593338
+ type: "null"
593339
+ }
593340
+ ]
593341
+ },
593105
593342
  encoding: {
593106
593343
  oneOf: [
593107
593344
  {
@@ -593247,6 +593484,23 @@ var definitions3 = {
593247
593484
  }
593248
593485
  ]
593249
593486
  },
593487
+ "client-default": {
593488
+ oneOf: [
593489
+ {
593490
+ type: [
593491
+ "string",
593492
+ "number",
593493
+ "boolean",
593494
+ "object",
593495
+ "array",
593496
+ "null"
593497
+ ]
593498
+ },
593499
+ {
593500
+ type: "null"
593501
+ }
593502
+ ]
593503
+ },
593250
593504
  encoding: {
593251
593505
  oneOf: [
593252
593506
  {
@@ -617921,7 +618175,7 @@ var AccessTokenPosthogManager = class {
617921
618175
  properties: {
617922
618176
  ...event,
617923
618177
  ...event.properties,
617924
- version: "4.90.0-3-gc834556541b",
618178
+ version: "4.90.0-5-g48cbf3f77dd",
617925
618179
  usingAccessToken: true
617926
618180
  }
617927
618181
  });
@@ -617975,7 +618229,7 @@ var UserPosthogManager = class {
617975
618229
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
617976
618230
  event: "CLI",
617977
618231
  properties: {
617978
- version: "4.90.0-3-gc834556541b",
618232
+ version: "4.90.0-5-g48cbf3f77dd",
617979
618233
  ...event,
617980
618234
  ...event.properties,
617981
618235
  usingAccessToken: false,
@@ -835543,7 +835797,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
835543
835797
  var LOGS_FOLDER_NAME = "logs";
835544
835798
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
835545
835799
  function getCliSource() {
835546
- const version7 = "4.90.0-3-gc834556541b";
835800
+ const version7 = "4.90.0-5-g48cbf3f77dd";
835547
835801
  return `cli@${version7}`;
835548
835802
  }
835549
835803
  var DebugLogger = class {
@@ -847294,7 +847548,7 @@ var LegacyDocsPublisher = class {
847294
847548
  previewId,
847295
847549
  disableTemplates: void 0,
847296
847550
  skipUpload,
847297
- cliVersion: "4.90.0-3-gc834556541b"
847551
+ cliVersion: "4.90.0-5-g48cbf3f77dd"
847298
847552
  });
847299
847553
  if (taskContext.getResult() === TaskResult.Failure) {
847300
847554
  return { success: false };
@@ -921332,7 +921586,7 @@ var CliContext = class _CliContext {
921332
921586
  if (false) {
921333
921587
  this.logger.error("CLI_VERSION is not defined");
921334
921588
  }
921335
- return "4.90.0-3-gc834556541b";
921589
+ return "4.90.0-5-g48cbf3f77dd";
921336
921590
  }
921337
921591
  getCliName() {
921338
921592
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.90.0-3-gc834556541b",
2
+ "version": "4.90.0-5-g48cbf3f77dd",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",