@fern-api/fern-api-dev 5.38.1 → 5.39.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.
Files changed (2) hide show
  1. package/cli.cjs +76 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -555128,6 +555128,7 @@ __export(DocsYmlSchemas_exports, {
555128
555128
  RelativeProductPath: () => RelativeProductPath,
555129
555129
  Role: () => Role,
555130
555130
  RoleId: () => RoleId,
555131
+ SearchSettingsConfig: () => SearchSettingsConfig,
555131
555132
  SearchbarPlacement: () => SearchbarPlacement,
555132
555133
  SectionConfiguration: () => SectionConfiguration,
555133
555134
  SegmentConfig: () => SegmentConfig,
@@ -555366,11 +555367,16 @@ var LayoutConfig = external_exports.object({
555366
555367
  "hide-feedback": external_exports.boolean().optional(),
555367
555368
  "mobile-toc": external_exports.boolean().optional()
555368
555369
  });
555370
+ var SearchSettingsConfig = external_exports.object({
555371
+ "prioritize-current-product": external_exports.boolean().optional(),
555372
+ "default-filter-by-current-product": external_exports.boolean().optional()
555373
+ });
555369
555374
  var DocsSettingsConfig = external_exports.object({
555370
555375
  "search-text": external_exports.string().optional(),
555371
555376
  "disable-search": external_exports.boolean().optional(),
555372
555377
  "dark-mode-code": external_exports.boolean().optional(),
555373
555378
  "default-search-filters": external_exports.boolean().optional(),
555379
+ search: SearchSettingsConfig.optional(),
555374
555380
  "http-snippets": HttpSnippetsConfig.optional(),
555375
555381
  "hide-404-page": external_exports.boolean().optional(),
555376
555382
  "use-javascript-as-typescript": external_exports.boolean().optional(),
@@ -556567,6 +556573,7 @@ __export(serialization_exports3, {
556567
556573
  RelativeProductPath: () => RelativeProductPath2,
556568
556574
  Role: () => Role2,
556569
556575
  RoleId: () => RoleId2,
556576
+ SearchSettingsConfig: () => SearchSettingsConfig2,
556570
556577
  SearchbarPlacement: () => SearchbarPlacement3,
556571
556578
  SectionConfiguration: () => SectionConfiguration2,
556572
556579
  SegmentConfig: () => SegmentConfig2,
@@ -556721,6 +556728,7 @@ __export(docs_exports2, {
556721
556728
  RelativeProductPath: () => RelativeProductPath2,
556722
556729
  Role: () => Role2,
556723
556730
  RoleId: () => RoleId2,
556731
+ SearchSettingsConfig: () => SearchSettingsConfig2,
556724
556732
  SearchbarPlacement: () => SearchbarPlacement3,
556725
556733
  SectionConfiguration: () => SectionConfiguration2,
556726
556734
  SegmentConfig: () => SegmentConfig2,
@@ -558657,6 +558665,12 @@ var HttpSnippetsConfig2 = schemas_exports6.undiscriminatedUnion([
558657
558665
  // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/Language.js
558658
558666
  var Language2 = schemas_exports6.string();
558659
558667
 
558668
+ // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/SearchSettingsConfig.js
558669
+ var SearchSettingsConfig2 = schemas_exports6.object({
558670
+ prioritizeCurrentProduct: schemas_exports6.property("prioritize-current-product", schemas_exports6.boolean().optional()),
558671
+ defaultFilterByCurrentProduct: schemas_exports6.property("default-filter-by-current-product", schemas_exports6.boolean().optional())
558672
+ });
558673
+
558660
558674
  // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TitleSource.js
558661
558675
  var TitleSource3 = schemas_exports6.enum_(["frontmatter", "filename"]);
558662
558676
 
@@ -558669,6 +558683,7 @@ var DocsSettingsConfig2 = schemas_exports6.object({
558669
558683
  disableSearch: schemas_exports6.property("disable-search", schemas_exports6.boolean().optional()),
558670
558684
  darkModeCode: schemas_exports6.property("dark-mode-code", schemas_exports6.boolean().optional()),
558671
558685
  defaultSearchFilters: schemas_exports6.property("default-search-filters", schemas_exports6.boolean().optional()),
558686
+ search: SearchSettingsConfig2.optional(),
558672
558687
  httpSnippets: schemas_exports6.property("http-snippets", HttpSnippetsConfig2.optional()),
558673
558688
  hide404Page: schemas_exports6.property("hide-404-page", schemas_exports6.boolean().optional()),
558674
558689
  useJavascriptAsTypescript: schemas_exports6.property("use-javascript-as-typescript", schemas_exports6.boolean().optional()),
@@ -582549,6 +582564,13 @@ function getDocumentLevelResumable(document4) {
582549
582564
  }
582550
582565
  return typeof docStreaming.resumable === "boolean" ? docStreaming.resumable : void 0;
582551
582566
  }
582567
+ function getOperationLevelResumable(operation) {
582568
+ const streaming = getExtension(operation, FernOpenAPIExtension.STREAMING);
582569
+ if (streaming == null || typeof streaming === "boolean") {
582570
+ return void 0;
582571
+ }
582572
+ return typeof streaming.resumable === "boolean" ? streaming.resumable : void 0;
582573
+ }
582552
582574
  function maybeTrimRequestPrefix(streamCondition) {
582553
582575
  if (streamCondition.startsWith(REQUEST_PREFIX)) {
582554
582576
  return streamCondition.slice(REQUEST_PREFIX.length);
@@ -585099,7 +585121,7 @@ function convertOperation({ context: context3, pathItemContext, operation, conve
585099
585121
  type: "stream",
585100
585122
  format: "sse",
585101
585123
  terminator: void 0,
585102
- resumable: getDocumentLevelResumable(context3.document) ?? false
585124
+ resumable: getOperationLevelResumable(operation) ?? getDocumentLevelResumable(context3.document) ?? false
585103
585125
  };
585104
585126
  }
585105
585127
  }
@@ -587650,9 +587672,15 @@ function convertSettingsConfig(settings) {
587650
587672
  if (settings == null) {
587651
587673
  return void 0;
587652
587674
  }
587675
+ const defaultFilterByCurrentProduct = (settings.search?.defaultFilterByCurrentProduct ?? false) || (settings.defaultSearchFilters ?? false);
587676
+ const prioritizeCurrentProduct = settings.search?.prioritizeCurrentProduct ?? false;
587653
587677
  return {
587654
587678
  darkModeCode: settings.darkModeCode ?? false,
587655
- defaultSearchFilters: settings.defaultSearchFilters ?? false,
587679
+ defaultSearchFilters: defaultFilterByCurrentProduct,
587680
+ search: {
587681
+ prioritizeCurrentProduct,
587682
+ defaultFilterByCurrentProduct
587683
+ },
587656
587684
  language: settings.language ?? "en",
587657
587685
  disableSearch: settings.disableSearch ?? false,
587658
587686
  hide404Page: settings.hide404Page ?? false,
@@ -669322,7 +669350,7 @@ var AccessTokenPosthogManager = class {
669322
669350
  properties: {
669323
669351
  ...event,
669324
669352
  ...event.properties,
669325
- version: "5.38.1",
669353
+ version: "5.39.0",
669326
669354
  usingAccessToken: true,
669327
669355
  ...getRunIdProperties()
669328
669356
  }
@@ -669386,7 +669414,7 @@ var UserPosthogManager = class {
669386
669414
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669387
669415
  event: "CLI",
669388
669416
  properties: {
669389
- version: "5.38.1",
669417
+ version: "5.39.0",
669390
669418
  ...event,
669391
669419
  ...event.properties,
669392
669420
  usingAccessToken: false,
@@ -860299,7 +860327,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860299
860327
  var LOGS_FOLDER_NAME = "logs";
860300
860328
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860301
860329
  function getCliSource() {
860302
- const version7 = "5.38.1";
860330
+ const version7 = "5.39.0";
860303
860331
  return `cli@${version7}`;
860304
860332
  }
860305
860333
  var DebugLogger = class {
@@ -877512,6 +877540,34 @@ og:description, headline, excerpt).`
877512
877540
  },
877513
877541
  additionalProperties: false
877514
877542
  },
877543
+ "docs.SearchSettingsConfig": {
877544
+ type: "object",
877545
+ properties: {
877546
+ "prioritize-current-product": {
877547
+ oneOf: [
877548
+ {
877549
+ type: "boolean"
877550
+ },
877551
+ {
877552
+ type: "null"
877553
+ }
877554
+ ],
877555
+ description: "If set to true, search results from the current product/version are\nboosted in Algolia's ranking (via `optionalFilters`) without excluding\nresults from other products/versions.\n\n@default: false"
877556
+ },
877557
+ "default-filter-by-current-product": {
877558
+ oneOf: [
877559
+ {
877560
+ type: "boolean"
877561
+ },
877562
+ {
877563
+ type: "null"
877564
+ }
877565
+ ],
877566
+ description: "If set to true, the current product is automatically selected as a\nfacet filter, so only results from the current product are shown by\ndefault. Equivalent to the legacy `settings.default-search-filters`\nsetting, which is preserved as an alias for backwards compatibility.\n\n@default: false"
877567
+ }
877568
+ },
877569
+ additionalProperties: false
877570
+ },
877515
877571
  "docs.HttpSnippetLanguage": {
877516
877572
  type: "string",
877517
877573
  enum: [
@@ -877592,7 +877648,18 @@ og:description, headline, excerpt).`
877592
877648
  type: "null"
877593
877649
  }
877594
877650
  ],
877595
- description: "By default (`false`), search will display results for pages across all products and versions.\nIf set to true, search will display results for pages within the current product and version.\n\n@default: false"
877651
+ description: "By default (`false`), search will display results for pages across all products and versions.\nIf set to true, search will display results for pages within the current product and version.\n\nPreserved for backwards compatibility. Equivalent to\n`search.default-filter-by-current-product`.\n\n@default: false"
877652
+ },
877653
+ search: {
877654
+ oneOf: [
877655
+ {
877656
+ $ref: "#/definitions/docs.SearchSettingsConfig"
877657
+ },
877658
+ {
877659
+ type: "null"
877660
+ }
877661
+ ],
877662
+ description: "Controls product-aware search behavior. See `SearchSettingsConfig` for\nindividual options."
877596
877663
  },
877597
877664
  "http-snippets": {
877598
877665
  oneOf: [
@@ -880900,7 +880967,7 @@ var LegacyDocsPublisher = class {
880900
880967
  previewId,
880901
880968
  disableTemplates: void 0,
880902
880969
  skipUpload,
880903
- cliVersion: "5.38.1",
880970
+ cliVersion: "5.39.0",
880904
880971
  loginCommand: "fern auth login"
880905
880972
  });
880906
880973
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -955820,7 +955887,7 @@ function getAutomationContextFromEnv() {
955820
955887
  config_branch: process.env.FERN_CONFIG_BRANCH,
955821
955888
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
955822
955889
  trigger: process.env.GITHUB_EVENT_NAME,
955823
- cli_version: "5.38.1"
955890
+ cli_version: "5.39.0"
955824
955891
  };
955825
955892
  }
955826
955893
  function isAutomationMode() {
@@ -956646,7 +956713,7 @@ var CliContext = class _CliContext {
956646
956713
  if (false) {
956647
956714
  this.logger.error("CLI_VERSION is not defined");
956648
956715
  }
956649
- return "5.38.1";
956716
+ return "5.39.0";
956650
956717
  }
956651
956718
  getCliName() {
956652
956719
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.38.1",
2
+ "version": "5.39.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",