@fern-api/fern-api-dev 3.46.0 → 3.47.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 +68 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1312153,6 +1312153,7 @@ __export(schemas_exports2, {
1312153
1312153
  Availability: () => Availability,
1312154
1312154
  BodyThemeConfig: () => BodyThemeConfig,
1312155
1312155
  ContentAlignment: () => ContentAlignment,
1312156
+ EditThisPageLaunch: () => EditThisPageLaunch,
1312156
1312157
  FernDocsConfig: () => api_exports,
1312157
1312158
  FernDocsConfigError: () => FernDocsConfigError,
1312158
1312159
  FernDocsConfigTimeoutError: () => FernDocsConfigTimeoutError,
@@ -1312188,6 +1312189,7 @@ __export(api_exports, {
1312188
1312189
  Availability: () => Availability,
1312189
1312190
  BodyThemeConfig: () => BodyThemeConfig,
1312190
1312191
  ContentAlignment: () => ContentAlignment,
1312192
+ EditThisPageLaunch: () => EditThisPageLaunch,
1312191
1312193
  FontDisplay: () => FontDisplay,
1312192
1312194
  FontStyle: () => FontStyle,
1312193
1312195
  FooterNavThemeConfig: () => FooterNavThemeConfig,
@@ -1312218,6 +1312220,7 @@ __export(docs_exports, {
1312218
1312220
  Availability: () => Availability,
1312219
1312221
  BodyThemeConfig: () => BodyThemeConfig,
1312220
1312222
  ContentAlignment: () => ContentAlignment,
1312223
+ EditThisPageLaunch: () => EditThisPageLaunch,
1312221
1312224
  FontDisplay: () => FontDisplay,
1312222
1312225
  FontStyle: () => FontStyle,
1312223
1312226
  FooterNavThemeConfig: () => FooterNavThemeConfig,
@@ -1312304,6 +1312307,12 @@ var AiChatModel = {
1312304
1312307
  CommandA: "command-a"
1312305
1312308
  };
1312306
1312309
 
1312310
+ // ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/EditThisPageLaunch.js
1312311
+ var EditThisPageLaunch = {
1312312
+ Github: "github",
1312313
+ Dashboard: "dashboard"
1312314
+ };
1312315
+
1312307
1312316
  // ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/Availability.js
1312308
1312317
  var Availability = {
1312309
1312318
  Stable: "stable",
@@ -1312519,6 +1312528,7 @@ __export(serialization_exports, {
1312519
1312528
  DocsSettingsConfig: () => DocsSettingsConfig,
1312520
1312529
  DocsTypographyConfig: () => DocsTypographyConfig,
1312521
1312530
  EditThisPageConfig: () => EditThisPageConfig,
1312531
+ EditThisPageLaunch: () => EditThisPageLaunch2,
1312522
1312532
  ExperimentalConfig: () => ExperimentalConfig,
1312523
1312533
  ExternalProduct: () => ExternalProduct,
1312524
1312534
  FeatureFlag: () => FeatureFlag,
@@ -1312647,6 +1312657,7 @@ __export(docs_exports2, {
1312647
1312657
  DocsSettingsConfig: () => DocsSettingsConfig,
1312648
1312658
  DocsTypographyConfig: () => DocsTypographyConfig,
1312649
1312659
  EditThisPageConfig: () => EditThisPageConfig,
1312660
+ EditThisPageLaunch: () => EditThisPageLaunch2,
1312650
1312661
  ExperimentalConfig: () => ExperimentalConfig,
1312651
1312662
  ExternalProduct: () => ExternalProduct,
1312652
1312663
  FeatureFlag: () => FeatureFlag,
@@ -1314146,9 +1314157,13 @@ var GithubEditThisPageConfig = schemas_exports.object({
1314146
1314157
  branch: schemas_exports.string().optional()
1314147
1314158
  });
1314148
1314159
 
1314160
+ // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/EditThisPageLaunch.js
1314161
+ var EditThisPageLaunch2 = schemas_exports.enum_(["github", "dashboard"]);
1314162
+
1314149
1314163
  // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/EditThisPageConfig.js
1314150
1314164
  var EditThisPageConfig = schemas_exports.object({
1314151
- github: GithubEditThisPageConfig.optional()
1314165
+ github: GithubEditThisPageConfig.optional(),
1314166
+ launch: EditThisPageLaunch2.optional()
1314152
1314167
  });
1314153
1314168
 
1314154
1314169
  // ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/AudienceId.js
@@ -1329010,7 +1329025,7 @@ function sortBy(arr, criteria) {
1329010
1329025
  return orderBy(arr, criteria, ["asc"]);
1329011
1329026
  }
1329012
1329027
 
1329013
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.6-48348b476_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1329028
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.9-f12426eb4_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1329014
1329029
  var import_ts_essentials = __toESM(require_dist(), 1);
1329015
1329030
 
1329016
1329031
  // ../../../node_modules/.pnpm/es-toolkit@1.43.0/node_modules/es-toolkit/dist/object/mapValues.mjs
@@ -1329031,7 +1329046,7 @@ function words2(str3) {
1329031
1329046
  return Array.from(str3.match(CASE_SPLIT_PATTERN) ?? []);
1329032
1329047
  }
1329033
1329048
 
1329034
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.6-48348b476_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1329049
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.9-f12426eb4_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1329035
1329050
  var import_qs = __toESM(require_lib2(), 1);
1329036
1329051
  var import_ts_essentials2 = __toESM(require_dist(), 1);
1329037
1329052
  var import_ts_essentials3 = __toESM(require_dist(), 1);
@@ -1334772,7 +1334787,7 @@ function kebabCase2(str3) {
1334772
1334787
  return words$1.map((word) => word.toLowerCase()).join("-");
1334773
1334788
  }
1334774
1334789
 
1334775
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.6-48348b476_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1334790
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.9-f12426eb4_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1334776
1334791
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
1334777
1334792
  var import_ts_essentials4 = __toESM(require_dist(), 1);
1334778
1334793
  var import_url_join2 = __toESM(require_url_join(), 1);
@@ -1334791,7 +1334806,7 @@ function once(func) {
1334791
1334806
  };
1334792
1334807
  }
1334793
1334808
 
1334794
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.6-48348b476_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1334809
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.9-f12426eb4_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1334795
1334810
  var import_ts_essentials6 = __toESM(require_dist(), 1);
1334796
1334811
  var import_ts_essentials7 = __toESM(require_dist(), 1);
1334797
1334812
  var import_url_join3 = __toESM(require_url_join(), 1);
@@ -1335021,7 +1335036,7 @@ var esm_default2 = typeof structuredClone === "function" ? (
1335021
1335036
  (any8, options2) => options2 && ("json" in options2 || "lossy" in options2) ? deserialize(serialize(any8, options2)) : structuredClone(any8)
1335022
1335037
  ) : (any8, options2) => deserialize(serialize(any8, options2));
1335023
1335038
 
1335024
- // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.6-48348b476_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1335039
+ // ../../../node_modules/.pnpm/@fern-api+fdr-sdk@0.143.9-f12426eb4_typescript@5.9.3/node_modules/@fern-api/fdr-sdk/dist/js/index.mjs
1335025
1335040
  var import_ts_essentials12 = __toESM(require_dist(), 1);
1335026
1335041
  var __create2 = Object.create;
1335027
1335042
  var __defProp2 = Object.defineProperty;
@@ -1386870,6 +1386885,7 @@ __export2(commons_exports6, {
1386870
1386885
  DocsPageActionsConfig: () => DocsPageActionsConfig,
1386871
1386886
  DocsSidebarConfig: () => DocsSidebarConfig,
1386872
1386887
  DocsTabsConfig: () => DocsTabsConfig,
1386888
+ EditThisPageLaunch: () => EditThisPageLaunch3,
1386873
1386889
  FontDisplay: () => FontDisplay3,
1386874
1386890
  FontStyle: () => FontStyle3,
1386875
1386891
  FooterNavConfig: () => FooterNavConfig,
@@ -1386895,6 +1386911,7 @@ __export2(commons_exports5, {
1386895
1386911
  DocsPageActionsConfig: () => DocsPageActionsConfig,
1386896
1386912
  DocsSidebarConfig: () => DocsSidebarConfig,
1386897
1386913
  DocsTabsConfig: () => DocsTabsConfig,
1386914
+ EditThisPageLaunch: () => EditThisPageLaunch3,
1386898
1386915
  FontDisplay: () => FontDisplay3,
1386899
1386916
  FontStyle: () => FontStyle3,
1386900
1386917
  FooterNavConfig: () => FooterNavConfig,
@@ -1386941,6 +1386958,10 @@ var DocsTabsConfig = {
1386941
1386958
  Default: "default",
1386942
1386959
  Bubble: "bubble"
1386943
1386960
  };
1386961
+ var EditThisPageLaunch3 = {
1386962
+ Github: "github",
1386963
+ Dashboard: "dashboard"
1386964
+ };
1386944
1386965
  var FontDisplay3 = {
1386945
1386966
  Auto: "auto",
1386946
1386967
  Block: "block",
@@ -1391089,6 +1391110,7 @@ var WriteClient = class {
1391089
1391110
  * "pages": {
1391090
1391111
  * markdown: "markdown",
1391091
1391112
  * editThisPageUrl: undefined,
1391113
+ * editThisPageLaunch: undefined,
1391092
1391114
  * rawMarkdown: undefined
1391093
1391115
  * }
1391094
1391116
  * },
@@ -1391119,6 +1391141,7 @@ var WriteClient = class {
1391119
1391141
  * js: undefined,
1391120
1391142
  * aiChatConfig: undefined,
1391121
1391143
  * pageActions: undefined,
1391144
+ * editThisPageLaunch: undefined,
1391122
1391145
  * header: undefined,
1391123
1391146
  * footer: undefined,
1391124
1391147
  * backgroundImage: undefined,
@@ -1392012,6 +1392035,7 @@ var WriteClient2 = class {
1392012
1392035
  * "pages": {
1392013
1392036
  * markdown: "markdown",
1392014
1392037
  * editThisPageUrl: undefined,
1392038
+ * editThisPageLaunch: undefined,
1392015
1392039
  * rawMarkdown: undefined
1392016
1392040
  * }
1392017
1392041
  * },
@@ -1392042,6 +1392066,7 @@ var WriteClient2 = class {
1392042
1392066
  * js: undefined,
1392043
1392067
  * aiChatConfig: undefined,
1392044
1392068
  * pageActions: undefined,
1392069
+ * editThisPageLaunch: undefined,
1392045
1392070
  * header: undefined,
1392046
1392071
  * footer: undefined,
1392047
1392072
  * backgroundImage: undefined,
@@ -1395372,6 +1395397,7 @@ __export2(DocsV1Db_exports, {
1395372
1395397
  DocsPageActionsConfig: () => DocsPageActionsConfig,
1395373
1395398
  DocsSidebarConfig: () => DocsSidebarConfig,
1395374
1395399
  DocsTabsConfig: () => DocsTabsConfig,
1395400
+ EditThisPageLaunch: () => EditThisPageLaunch3,
1395375
1395401
  EndpointId: () => EndpointId,
1395376
1395402
  EndpointPathLiteral: () => EndpointPathLiteral,
1395377
1395403
  EnvironmentId: () => EnvironmentId,
@@ -1395421,6 +1395447,7 @@ __export2(DocsV1Read_exports, {
1395421
1395447
  DocsPageActionsConfig: () => DocsPageActionsConfig,
1395422
1395448
  DocsSidebarConfig: () => DocsSidebarConfig,
1395423
1395449
  DocsTabsConfig: () => DocsTabsConfig,
1395450
+ EditThisPageLaunch: () => EditThisPageLaunch3,
1395424
1395451
  EndpointId: () => EndpointId,
1395425
1395452
  EndpointPathLiteral: () => EndpointPathLiteral,
1395426
1395453
  EnvironmentId: () => EnvironmentId,
@@ -1395473,6 +1395500,7 @@ __export2(DocsV1Write_exports, {
1395473
1395500
  DocsRegistrationId: () => DocsRegistrationId,
1395474
1395501
  DocsSidebarConfig: () => DocsSidebarConfig,
1395475
1395502
  DocsTabsConfig: () => DocsTabsConfig,
1395503
+ EditThisPageLaunch: () => EditThisPageLaunch3,
1395476
1395504
  EndpointId: () => EndpointId,
1395477
1395505
  EndpointPathLiteral: () => EndpointPathLiteral,
1395478
1395506
  EnvironmentId: () => EnvironmentId,
@@ -1396930,6 +1396958,7 @@ function convertDocsDefinitionToDb({
1396930
1396958
  announcement: writeShape.config.announcement,
1396931
1396959
  aiChatConfig: writeShape.config.aiChatConfig,
1396932
1396960
  pageActions: writeShape.config.pageActions,
1396961
+ editThisPageLaunch: writeShape.config.editThisPageLaunch,
1396933
1396962
  header: writeShape.config.header,
1396934
1396963
  footer: writeShape.config.footer
1396935
1396964
  },
@@ -1397666,6 +1397695,7 @@ function convertDbDocsConfigToRead({ dbShape }) {
1397666
1397695
  announcement: dbShape.announcement,
1397667
1397696
  aiChatConfig: dbShape.aiChatConfig,
1397668
1397697
  pageActions: dbShape.pageActions,
1397698
+ editThisPageLaunch: dbShape.editThisPageLaunch,
1397669
1397699
  header: dbShape.header,
1397670
1397700
  footer: dbShape.footer
1397671
1397701
  };
@@ -1420087,7 +1420117,7 @@ var AccessTokenPosthogManager = class {
1420087
1420117
  properties: {
1420088
1420118
  ...event,
1420089
1420119
  ...event.properties,
1420090
- version: "3.46.0",
1420120
+ version: "3.47.0",
1420091
1420121
  usingAccessToken: true
1420092
1420122
  }
1420093
1420123
  });
@@ -1420186,7 +1420216,7 @@ var UserPosthogManager = class {
1420186
1420216
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1420187
1420217
  event: "CLI",
1420188
1420218
  properties: {
1420189
- version: "3.46.0",
1420219
+ version: "3.47.0",
1420190
1420220
  ...event,
1420191
1420221
  ...event.properties,
1420192
1420222
  usingAccessToken: false,
@@ -1499559,7 +1499589,7 @@ var CliContext = class {
1499559
1499589
  if (false) {
1499560
1499590
  this.logger.error("CLI_VERSION is not defined");
1499561
1499591
  }
1499562
- return "3.46.0";
1499592
+ return "3.47.0";
1499563
1499593
  }
1499564
1499594
  getCliName() {
1499565
1499595
  if (false) {
@@ -1546523,6 +1546553,13 @@ var definitions4 = {
1546523
1546553
  ],
1546524
1546554
  additionalProperties: false
1546525
1546555
  },
1546556
+ "docs.EditThisPageLaunch": {
1546557
+ type: "string",
1546558
+ enum: [
1546559
+ "github",
1546560
+ "dashboard"
1546561
+ ]
1546562
+ },
1546526
1546563
  "docs.EditThisPageConfig": {
1546527
1546564
  type: "object",
1546528
1546565
  properties: {
@@ -1546535,6 +1546572,16 @@ var definitions4 = {
1546535
1546572
  type: "null"
1546536
1546573
  }
1546537
1546574
  ]
1546575
+ },
1546576
+ launch: {
1546577
+ oneOf: [
1546578
+ {
1546579
+ $ref: "#/definitions/docs.EditThisPageLaunch"
1546580
+ },
1546581
+ {
1546582
+ type: "null"
1546583
+ }
1546584
+ ]
1546538
1546585
  }
1546539
1546586
  },
1546540
1546587
  additionalProperties: false
@@ -1585733,11 +1585780,12 @@ var DocsDefinitionResolver = class {
1585733
1585780
  this.taskContext.logger.debug("Building page content...");
1585734
1585781
  const pages = {};
1585735
1585782
  Object.entries(this.parsedDocsConfig.pages).forEach(([relativePageFilepath, markdown]) => {
1585736
- const url2 = createEditThisPageUrl(this.editThisPage, relativePageFilepath);
1585783
+ const { url: editThisPageUrl, launch: editThisPageLaunch } = createEditThisPageUrl(this.editThisPage, relativePageFilepath);
1585737
1585784
  const rawMarkdown = this.rawMarkdownFiles[RelativeFilePath2.of(relativePageFilepath)];
1585738
1585785
  pages[DocsV1Write_exports.PageId(relativePageFilepath)] = {
1585739
1585786
  markdown,
1585740
- editThisPageUrl: url2 ? DocsV1Write_exports.Url(url2) : void 0,
1585787
+ editThisPageUrl: editThisPageUrl ? DocsV1Write_exports.Url(editThisPageUrl) : void 0,
1585788
+ editThisPageLaunch,
1585741
1585789
  rawMarkdown
1585742
1585790
  };
1585743
1585791
  });
@@ -1585946,6 +1585994,7 @@ var DocsDefinitionResolver = class {
1585946
1585994
  heap: void 0
1585947
1585995
  },
1585948
1585996
  announcement: this.parsedDocsConfig.announcement != null ? { text: this.parsedDocsConfig.announcement.message } : void 0,
1585997
+ editThisPageLaunch: this.editThisPage?.launch ?? "github",
1585949
1585998
  pageActions: this.convertPageActions(),
1585950
1585999
  theme: this.parsedDocsConfig.theme != null ? {
1585951
1586000
  sidebar: this.parsedDocsConfig.theme.sidebar,
@@ -1586765,11 +1586814,13 @@ The generated documentation will replace this placeholder page with complete API
1586765
1586814
  }
1586766
1586815
  };
1586767
1586816
  function createEditThisPageUrl(editThisPage, pageFilepath) {
1586817
+ const launch4 = editThisPage?.launch ?? "github";
1586768
1586818
  if (editThisPage?.github == null) {
1586769
- return void 0;
1586819
+ return { url: void 0, launch: launch4 };
1586770
1586820
  }
1586771
1586821
  const { owner, repo, branch = "main", host = "https://github.com" } = editThisPage.github;
1586772
- return `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}?plain=1`;
1586822
+ const url2 = `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}?plain=1`;
1586823
+ return { url: url2, launch: launch4 };
1586773
1586824
  }
1586774
1586825
  function convertAvailability5(availability) {
1586775
1586826
  switch (availability) {
@@ -1595480,7 +1595531,7 @@ var import_path37 = __toESM(require("path"), 1);
1595480
1595531
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1595481
1595532
  var LOGS_FOLDER_NAME = "logs";
1595482
1595533
  function getCliSource() {
1595483
- const version6 = "3.46.0";
1595534
+ const version6 = "3.47.0";
1595484
1595535
  return `cli@${version6}`;
1595485
1595536
  }
1595486
1595537
  var DebugLogger = class {
@@ -1597265,6 +1597316,7 @@ async function getPreviewDocsDefinition({ domain: domain2, project, context: con
1597265
1597316
  previousDocsDefinition.pages[pageId] = {
1597266
1597317
  markdown: finalMarkdown,
1597267
1597318
  editThisPageUrl: previousValue.editThisPageUrl,
1597319
+ editThisPageLaunch: previousValue.editThisPageLaunch,
1597268
1597320
  rawMarkdown: markdown
1597269
1597321
  };
1597270
1597322
  }
@@ -1597430,6 +1597482,7 @@ var EMPTY_DOCS_DEFINITION = {
1597430
1597482
  js: void 0,
1597431
1597483
  pageActions: void 0,
1597432
1597484
  theme: void 0,
1597485
+ editThisPageLaunch: void 0,
1597433
1597486
  header: void 0,
1597434
1597487
  footer: void 0
1597435
1597488
  },
@@ -1598143,6 +1598196,7 @@ var EMPTY_DOCS_DEFINITION2 = {
1598143
1598196
  js: void 0,
1598144
1598197
  pageActions: void 0,
1598145
1598198
  theme: void 0,
1598199
+ editThisPageLaunch: void 0,
1598146
1598200
  header: void 0,
1598147
1598201
  footer: void 0
1598148
1598202
  },
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.46.0",
2
+ "version": "3.47.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",