fern-api 0.19.14-rc2 → 0.19.14

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/bundle.cjs +41 -17
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -828490,12 +828490,18 @@ var LocalFileSystemOutputLocationSchema = z.strictObject({
828490
828490
  });
828491
828491
 
828492
828492
  // pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/MavenOutputLocationSchema.js
828493
+ var MavenOutputSignatureSchema = z.strictObject({
828494
+ keyId: z.string(),
828495
+ password: z.string(),
828496
+ secretKey: z.string()
828497
+ });
828493
828498
  var MavenOutputLocationSchema = z.strictObject({
828494
828499
  location: z.literal("maven"),
828495
828500
  url: z.optional(z.string()),
828496
828501
  coordinate: z.string(),
828497
828502
  username: z.optional(z.string()),
828498
- password: z.optional(z.string())
828503
+ password: z.optional(z.string()),
828504
+ signature: z.optional(MavenOutputSignatureSchema)
828499
828505
  });
828500
828506
 
828501
828507
  // pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/NpmOutputLocationSchema.js
@@ -828805,7 +828811,12 @@ async function convertOutputMode({ absolutePathToGeneratorsConfiguration, genera
828805
828811
  registryUrl: generator.output.url ?? "https://s01.oss.sonatype.org/content/repositories/releases/",
828806
828812
  username: generator.output.username ?? "",
828807
828813
  password: generator.output.password ?? "",
828808
- coordinate: generator.output.coordinate
828814
+ coordinate: generator.output.coordinate,
828815
+ signature: generator.output.signature != null ? {
828816
+ keyId: generator.output.signature.keyId,
828817
+ secretKey: generator.output.signature.secretKey,
828818
+ password: generator.output.signature.password
828819
+ } : void 0
828809
828820
  }));
828810
828821
  case "postman":
828811
828822
  return import_fiddle_sdk.FernFiddle.OutputMode.publishV2(import_fiddle_sdk.FernFiddle.remoteGen.PublishOutputModeV2.postman({
@@ -828868,6 +828879,11 @@ function getGithubPublishInfo(output) {
828868
828879
  credentials: output.username != null && output.password != null ? {
828869
828880
  username: output.username,
828870
828881
  password: output.password
828882
+ } : void 0,
828883
+ signature: output.signature != null ? {
828884
+ keyId: output.signature.keyId,
828885
+ password: output.signature.password,
828886
+ secretKey: output.signature.secretKey
828871
828887
  } : void 0
828872
828888
  });
828873
828889
  case "postman":
@@ -832141,7 +832157,7 @@ var AccessTokenPosthogManager = class {
832141
832157
  properties: {
832142
832158
  ...event,
832143
832159
  ...event.properties,
832144
- version: "0.19.14-rc2",
832160
+ version: "0.19.14",
832145
832161
  usingAccessToken: true
832146
832162
  }
832147
832163
  });
@@ -832203,7 +832219,7 @@ var UserPosthogManager = class {
832203
832219
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
832204
832220
  event: "CLI",
832205
832221
  properties: {
832206
- version: "0.19.14-rc2",
832222
+ version: "0.19.14",
832207
832223
  ...event,
832208
832224
  ...event.properties
832209
832225
  }
@@ -855760,10 +855776,10 @@ var CliContext = class {
855760
855776
  return "fern-api";
855761
855777
  }
855762
855778
  getPackageVersion() {
855763
- if ("0.19.14-rc2" == null) {
855779
+ if ("0.19.14" == null) {
855764
855780
  this.logger.error("CLI_VERSION is not defined");
855765
855781
  }
855766
- return "0.19.14-rc2";
855782
+ return "0.19.14";
855767
855783
  }
855768
855784
  getCliName() {
855769
855785
  if ("fern" == null) {
@@ -871832,16 +871848,16 @@ function getGithubPublishConfig(githubPublishInfo) {
871832
871848
  tokenEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.token ?? "")
871833
871849
  }),
871834
871850
  maven: (value) => {
871835
- var _a2, _b2, _c2, _d, _e;
871851
+ var _a2, _b2;
871836
871852
  return import_generator_exec_sdk.FernGeneratorExec.GithubPublishInfo.maven({
871837
871853
  registryUrl: value.registryUrl,
871838
871854
  coordinate: value.coordinate,
871839
871855
  usernameEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_a2 = value.credentials) == null ? void 0 : _a2.username) ?? ""),
871840
871856
  passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_b2 = value.credentials) == null ? void 0 : _b2.password) ?? ""),
871841
871857
  signature: value.signature != null ? {
871842
- keyIdEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_c2 = value.signature) == null ? void 0 : _c2.keyId) ?? ""),
871843
- passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_d = value.signature) == null ? void 0 : _d.password) ?? ""),
871844
- secretKeyEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_e = value.signature) == null ? void 0 : _e.secretKey) ?? "")
871858
+ keyIdEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.keyId ?? ""),
871859
+ passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.password ?? ""),
871860
+ secretKeyEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.secretKey ?? "")
871845
871861
  } : void 0
871846
871862
  });
871847
871863
  },
@@ -871974,7 +871990,8 @@ function newDummyPublishOutputConfig(version3, multipleOutputMode) {
871974
871990
  password: (outputMode == null ? void 0 : outputMode.password) ?? "",
871975
871991
  registryUrl: (outputMode == null ? void 0 : outputMode.registryUrl) ?? "",
871976
871992
  username: (outputMode == null ? void 0 : outputMode.username) ?? "",
871977
- coordinate: (outputMode == null ? void 0 : outputMode.coordinate) ?? ""
871993
+ coordinate: (outputMode == null ? void 0 : outputMode.coordinate) ?? "",
871994
+ signature: outputMode == null ? void 0 : outputMode.signature
871978
871995
  },
871979
871996
  npm: {
871980
871997
  registryUrl: (outputMode == null ? void 0 : outputMode.registryUrl) ?? "",
@@ -897995,13 +898012,20 @@ var ValidMarkdownRule = {
897995
898012
  };
897996
898013
  var REMARK_PLUGINS = [remarkGfm];
897997
898014
  var FrontmatterSchema = z.object({
897998
- title: z.optional(z.string()),
897999
- description: z.optional(z.string()),
898000
- slug: z.optional(z.string()),
898001
- redirects: z.optional(z.array(z.string())),
898015
+ title: z.optional(z.string(), { description: "Renders as the page title." }),
898016
+ "og:title": z.optional(z.string(), { description: "Renders as the og:title tag." }),
898017
+ "og:description": z.optional(z.string(), { description: "Renders as the og:description tag." }),
898018
+ subtitle: z.optional(z.string(), {
898019
+ description: "Renders as a subtitle on the page, and is also used in the meta description tag if description is not set."
898020
+ }),
898021
+ description: z.optional(z.string(), { description: "Renders as the meta description tag." }),
898022
+ image: z.optional(z.string(), { description: "Renders as the og:image tag." }),
898023
+ slug: z.optional(z.string(), {
898024
+ description: "The full slug path for the page, starting from root `/` (or basepath)."
898025
+ }),
898026
+ redirects: z.optional(z.array(z.string()), { description: "A list of URLs to redirect to this page." }),
898002
898027
  editThisPageUrl: z.optional(z.string()),
898003
- image: z.optional(z.string()),
898004
- excerpt: z.optional(z.string())
898028
+ excerpt: z.optional(z.string(), { description: "Deprecated. Use `subtitle` instead." })
898005
898029
  });
898006
898030
  async function parseMarkdown({ markdown }) {
898007
898031
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.14-rc2",
3
+ "version": "0.19.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",