fern-api 0.19.14-rc1 → 0.19.14-rc3

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 +68 -14
  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
@@ -832141,7 +832147,7 @@ var AccessTokenPosthogManager = class {
832141
832147
  properties: {
832142
832148
  ...event,
832143
832149
  ...event.properties,
832144
- version: "0.19.14-rc1",
832150
+ version: "0.19.14-rc3",
832145
832151
  usingAccessToken: true
832146
832152
  }
832147
832153
  });
@@ -832203,7 +832209,7 @@ var UserPosthogManager = class {
832203
832209
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
832204
832210
  event: "CLI",
832205
832211
  properties: {
832206
- version: "0.19.14-rc1",
832212
+ version: "0.19.14-rc3",
832207
832213
  ...event,
832208
832214
  ...event.properties
832209
832215
  }
@@ -845669,6 +845675,46 @@ function convertSchemaWithExampleToSchema(schema2) {
845669
845675
  assertNever(schema2);
845670
845676
  }
845671
845677
  }
845678
+ function convertSchemaWithExampleToOptionalSchema(schema2) {
845679
+ switch (schema2.type) {
845680
+ case "object":
845681
+ case "array":
845682
+ case "enum":
845683
+ case "literal":
845684
+ case "nullable":
845685
+ case "primitive":
845686
+ case "map":
845687
+ case "reference":
845688
+ case "unknown":
845689
+ return Schema2.optional({
845690
+ generatedName: schema2.generatedName,
845691
+ nameOverride: schema2.nameOverride,
845692
+ description: schema2.description,
845693
+ value: convertSchemaWithExampleToSchema(schema2),
845694
+ groupName: schema2.groupName
845695
+ });
845696
+ case "optional":
845697
+ return Schema2.optional({
845698
+ generatedName: schema2.generatedName,
845699
+ nameOverride: schema2.nameOverride,
845700
+ description: schema2.description,
845701
+ value: convertSchemaWithExampleToSchema(schema2.value),
845702
+ groupName: schema2.groupName
845703
+ });
845704
+ case "oneOf": {
845705
+ const oneOfSchema = convertToOneOf(schema2.value);
845706
+ return Schema2.optional({
845707
+ generatedName: oneOfSchema.generatedName,
845708
+ nameOverride: oneOfSchema.nameOverride,
845709
+ description: oneOfSchema.description,
845710
+ value: Schema2.oneOf(convertToOneOf(schema2.value)),
845711
+ groupName: oneOfSchema.groupName
845712
+ });
845713
+ }
845714
+ default:
845715
+ assertNever(schema2);
845716
+ }
845717
+ }
845672
845718
  function convertToOneOf(oneOfSchema) {
845673
845719
  switch (oneOfSchema.type) {
845674
845720
  case "discriminated":
@@ -848215,9 +848261,9 @@ function convertRequest({ requestBody, document: document4, context, requestBrea
848215
848261
  name: isReferenceObject(multipartSchema) && context.getNumberOfOccurrencesForRef(multipartSchema) === 1 ? resolvedMultipartSchema.id : void 0,
848216
848262
  description: void 0,
848217
848263
  properties: Object.entries(resolvedMultipartSchema.schema.properties ?? {}).map(([key2, definition2]) => {
848264
+ const required = resolvedMultipartSchema.schema.required;
848265
+ const isRequired = required !== void 0 && required.includes(key2);
848218
848266
  if (!isReferenceObject(definition2) && (definition2.type === "string" && definition2.format === "binary" || definition2.type === "array" && !isReferenceObject(definition2.items) && definition2.items.type === "string" && definition2.items.format === "binary")) {
848219
- const required = resolvedMultipartSchema.schema.required;
848220
- const isRequired = required !== void 0 && required.includes(key2);
848221
848267
  return {
848222
848268
  key: key2,
848223
848269
  schema: MultipartSchema.file({ isOptional: !isRequired, isArray: definition2.type === "array" }),
@@ -848226,10 +848272,11 @@ function convertRequest({ requestBody, document: document4, context, requestBrea
848226
848272
  }
848227
848273
  const schemaWithExample = convertSchema(definition2, false, context, [...requestBreadcrumbs, key2]);
848228
848274
  const audiences = getExtension(definition2, FernOpenAPIExtension.AUDIENCES) ?? [];
848275
+ const schema2 = isRequired ? convertSchemaWithExampleToSchema(schemaWithExample) : convertSchemaWithExampleToOptionalSchema(schemaWithExample);
848229
848276
  return {
848230
848277
  key: key2,
848231
848278
  audiences,
848232
- schema: MultipartSchema.json(convertSchemaWithExampleToSchema(schemaWithExample)),
848279
+ schema: MultipartSchema.json(schema2),
848233
848280
  description: void 0
848234
848281
  };
848235
848282
  })
@@ -855719,10 +855766,10 @@ var CliContext = class {
855719
855766
  return "fern-api";
855720
855767
  }
855721
855768
  getPackageVersion() {
855722
- if ("0.19.14-rc1" == null) {
855769
+ if ("0.19.14-rc3" == null) {
855723
855770
  this.logger.error("CLI_VERSION is not defined");
855724
855771
  }
855725
- return "0.19.14-rc1";
855772
+ return "0.19.14-rc3";
855726
855773
  }
855727
855774
  getCliName() {
855728
855775
  if ("fern" == null) {
@@ -897954,13 +898001,20 @@ var ValidMarkdownRule = {
897954
898001
  };
897955
898002
  var REMARK_PLUGINS = [remarkGfm];
897956
898003
  var FrontmatterSchema = z.object({
897957
- title: z.optional(z.string()),
897958
- description: z.optional(z.string()),
897959
- slug: z.optional(z.string()),
897960
- redirects: z.optional(z.array(z.string())),
898004
+ title: z.optional(z.string(), { description: "Renders as the page title." }),
898005
+ "og:title": z.optional(z.string(), { description: "Renders as the og:title tag." }),
898006
+ "og:description": z.optional(z.string(), { description: "Renders as the og:description tag." }),
898007
+ subtitle: z.optional(z.string(), {
898008
+ description: "Renders as a subtitle on the page, and is also used in the meta description tag if description is not set."
898009
+ }),
898010
+ description: z.optional(z.string(), { description: "Renders as the meta description tag." }),
898011
+ image: z.optional(z.string(), { description: "Renders as the og:image tag." }),
898012
+ slug: z.optional(z.string(), {
898013
+ description: "The full slug path for the page, starting from root `/` (or basepath)."
898014
+ }),
898015
+ redirects: z.optional(z.array(z.string()), { description: "A list of URLs to redirect to this page." }),
897961
898016
  editThisPageUrl: z.optional(z.string()),
897962
- image: z.optional(z.string()),
897963
- excerpt: z.optional(z.string())
898017
+ excerpt: z.optional(z.string(), { description: "Deprecated. Use `subtitle` instead." })
897964
898018
  });
897965
898019
  async function parseMarkdown({ markdown }) {
897966
898020
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.14-rc1",
3
+ "version": "0.19.14-rc3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",