@fern-api/fern-api-dev 4.85.0-3-g23b453e2191 → 4.85.1-14-g12da300acd4

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 +14 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -614772,7 +614772,7 @@ var AccessTokenPosthogManager = class {
614772
614772
  properties: {
614773
614773
  ...event,
614774
614774
  ...event.properties,
614775
- version: "4.85.0-3-g23b453e2191",
614775
+ version: "4.85.1-14-g12da300acd4",
614776
614776
  usingAccessToken: true
614777
614777
  }
614778
614778
  });
@@ -614826,7 +614826,7 @@ var UserPosthogManager = class {
614826
614826
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614827
614827
  event: "CLI",
614828
614828
  properties: {
614829
- version: "4.85.0-3-g23b453e2191",
614829
+ version: "4.85.1-14-g12da300acd4",
614830
614830
  ...event,
614831
614831
  ...event.properties,
614832
614832
  usingAccessToken: false,
@@ -832324,7 +832324,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832324
832324
  var LOGS_FOLDER_NAME = "logs";
832325
832325
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832326
832326
  function getCliSource() {
832327
- const version7 = "4.85.0-3-g23b453e2191";
832327
+ const version7 = "4.85.1-14-g12da300acd4";
832328
832328
  return `cli@${version7}`;
832329
832329
  }
832330
832330
  var DebugLogger = class {
@@ -841933,7 +841933,12 @@ async function startJob({ intermediateRepresentation, generatorInvocation, job,
841933
841933
  }
841934
841934
  }
841935
841935
  function extractErrorMessage2(error50) {
841936
- const body = error50?.content?.reason === "status-code" ? error50.content.body : void 0;
841936
+ let body;
841937
+ if (error50?.reason === "status-code") {
841938
+ body = error50.body;
841939
+ } else if (error50?.content?.reason === "status-code") {
841940
+ body = error50.content.body;
841941
+ }
841937
841942
  if (typeof body?.content?.message === "string") {
841938
841943
  return body.content.message;
841939
841944
  }
@@ -843971,7 +843976,7 @@ var LegacyDocsPublisher = class {
843971
843976
  previewId,
843972
843977
  disableTemplates: void 0,
843973
843978
  skipUpload,
843974
- cliVersion: "4.85.0-3-g23b453e2191"
843979
+ cliVersion: "4.85.1-14-g12da300acd4"
843975
843980
  });
843976
843981
  if (taskContext.getResult() === TaskResult.Failure) {
843977
843982
  return { success: false };
@@ -864186,6 +864191,8 @@ var Generation = class {
864186
864191
  websocketEnvironments: () => this.customConfig["temporary-websocket-environments"] ?? {},
864187
864192
  /** Custom name for the pagination class. Default: "" (auto-generated). */
864188
864193
  customPagerName: () => this.customConfig["custom-pager-name"] ?? "",
864194
+ /** When true, uses page-index semantics for offset pagination (increment by 1). Default: false (item-index). */
864195
+ usePageIndexSemantics: () => this.customConfig["offset-semantics"] === "page-index",
864189
864196
  /** Custom name for the environment configuration class. Default: "" (auto-generated). */
864190
864197
  environmentClassName: () => this.customConfig["environment-class-name"] ?? "",
864191
864198
  /** When true, generates dedicated error type classes for API errors. Default: true. */
@@ -870596,6 +870603,7 @@ var BaseJavaCustomConfigSchema = external_exports2.object({
870596
870603
  "collapse-optional-nullable": external_exports2.boolean().optional(),
870597
870604
  "custom-readme-sections": external_exports2.array(CustomReadmeSectionSchema).optional(),
870598
870605
  "custom-pager-name": external_exports2.string().optional(),
870606
+ "offset-semantics": external_exports2.enum(["item-index", "page-index"]).optional(),
870599
870607
  "default-timeout-in-seconds": external_exports2.number().optional(),
870600
870608
  "gradle-distribution-url": external_exports2.string().optional(),
870601
870609
  "gradle-plugin-management": external_exports2.string().optional(),
@@ -919356,7 +919364,7 @@ var CliContext = class _CliContext {
919356
919364
  if (false) {
919357
919365
  this.logger.error("CLI_VERSION is not defined");
919358
919366
  }
919359
- return "4.85.0-3-g23b453e2191";
919367
+ return "4.85.1-14-g12da300acd4";
919360
919368
  }
919361
919369
  getCliName() {
919362
919370
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.85.0-3-g23b453e2191",
2
+ "version": "4.85.1-14-g12da300acd4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",