@fern-api/fern-api-dev 4.90.0-1-g35b7d24cb0b → 4.90.0-13-g88979a56bb3

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