@fern-api/fern-api-dev 5.23.3-1209-g5a3bf80f2fe → 5.23.3-1220-g1df406742cc

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 +28 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -688639,7 +688639,7 @@ var AccessTokenPosthogManager = class {
688639
688639
  properties: {
688640
688640
  ...event,
688641
688641
  ...event.properties,
688642
- version: "5.23.3-1209-g5a3bf80f2fe",
688642
+ version: "5.23.3-1220-g1df406742cc",
688643
688643
  usingAccessToken: true,
688644
688644
  ...getRunIdProperties()
688645
688645
  }
@@ -688705,7 +688705,7 @@ var UserPosthogManager = class {
688705
688705
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
688706
688706
  event: "CLI",
688707
688707
  properties: {
688708
- version: "5.23.3-1209-g5a3bf80f2fe",
688708
+ version: "5.23.3-1220-g1df406742cc",
688709
688709
  ...event,
688710
688710
  ...event.properties,
688711
688711
  usingAccessToken: false,
@@ -869801,7 +869801,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
869801
869801
  var LOGS_FOLDER_NAME = "logs";
869802
869802
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
869803
869803
  function getCliSource() {
869804
- const version7 = "5.23.3-1209-g5a3bf80f2fe";
869804
+ const version7 = "5.23.3-1220-g1df406742cc";
869805
869805
  return `cli@${version7}`;
869806
869806
  }
869807
869807
  var DebugLogger = class {
@@ -902363,7 +902363,7 @@ var LegacyDocsPublisher = class {
902363
902363
  previewId,
902364
902364
  disableTemplates: void 0,
902365
902365
  skipUpload,
902366
- cliVersion: "5.23.3-1209-g5a3bf80f2fe",
902366
+ cliVersion: "5.23.3-1220-g1df406742cc",
902367
902367
  loginCommand: "fern auth login"
902368
902368
  });
902369
902369
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -921941,8 +921941,22 @@ var Generation = class {
921941
921941
  maxRetries: () => this.customConfig.maxRetries,
921942
921942
  /** Controls which HTTP status codes trigger automatic retries. Default: "legacy". */
921943
921943
  retryStatusCodes: () => this.customConfig.retryStatusCodes ?? "legacy",
921944
- /** Override the default request timeout (in seconds) for the generated SDK client. `"infinity"` disables the default timeout. Default: 30. */
921945
- defaultTimeoutInSeconds: () => this.customConfig["default-timeout-in-seconds"],
921944
+ /**
921945
+ * Override the default request timeout (in milliseconds) for the generated SDK client. `"infinity"` disables
921946
+ * the default timeout. Resolves the new `default-timeout-in-milliseconds` key when set, otherwise falls back
921947
+ * to the deprecated `default-timeout-in-seconds` (converted to milliseconds). Default: 30000.
921948
+ */
921949
+ defaultTimeoutInMilliseconds: () => {
921950
+ const milliseconds = this.customConfig["default-timeout-in-milliseconds"];
921951
+ if (milliseconds != null) {
921952
+ return milliseconds;
921953
+ }
921954
+ const seconds = this.customConfig["default-timeout-in-seconds"];
921955
+ if (seconds == null) {
921956
+ return void 0;
921957
+ }
921958
+ return seconds === "infinity" ? "infinity" : seconds * 1e3;
921959
+ },
921946
921960
  /**
921947
921961
  * Output path configuration for generated files.
921948
921962
  * Returns normalized paths for library, test, solution, and other files.
@@ -952306,7 +952320,9 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
952306
952320
  bundle: external_exports2.optional(external_exports2.boolean()),
952307
952321
  allowCustomFetcher: external_exports2.optional(external_exports2.boolean()),
952308
952322
  generateWebSocketClients: external_exports2.optional(external_exports2.boolean()),
952309
- defaultTimeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952323
+ // Default request timeout, expressed in milliseconds (idiomatic for JS/TS, e.g.
952324
+ // `setTimeout` / `AbortSignal.timeout(ms)`). Use "infinity" to disable the timeout.
952325
+ defaultTimeout: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952310
952326
  skipResponseValidation: external_exports2.optional(external_exports2.boolean()),
952311
952327
  extraDependencies: external_exports2.optional(external_exports2.record(external_exports2.string())),
952312
952328
  extraDevDependencies: external_exports2.optional(external_exports2.record(external_exports2.string())),
@@ -952370,6 +952386,9 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
952370
952386
  skipNpmPkgFix: external_exports2.optional(external_exports2.boolean()),
952371
952387
  experimentalGenerateReadWriteOnlyTypes: external_exports2.optional(external_exports2.boolean()),
952372
952388
  // deprecated
952389
+ // @deprecated Use `defaultTimeout` (milliseconds) instead. Converted to milliseconds (× 1000).
952390
+ defaultTimeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952391
+ // @deprecated Use `defaultTimeout` (milliseconds) instead. Converted to milliseconds (× 1000).
952373
952392
  timeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952374
952393
  includeApiReference: external_exports2.optional(external_exports2.boolean()),
952375
952394
  // @deprecated Use generateWebSocketClients instead
@@ -968673,7 +968692,7 @@ function getAutomationContextFromEnv() {
968673
968692
  config_branch: process.env.FERN_CONFIG_BRANCH,
968674
968693
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
968675
968694
  trigger: process.env.GITHUB_EVENT_NAME,
968676
- cli_version: "5.23.3-1209-g5a3bf80f2fe"
968695
+ cli_version: "5.23.3-1220-g1df406742cc"
968677
968696
  };
968678
968697
  }
968679
968698
  function isAutomationMode() {
@@ -969505,7 +969524,7 @@ var CliContext = class _CliContext {
969505
969524
  if (false) {
969506
969525
  this.logger.error("CLI_VERSION is not defined");
969507
969526
  }
969508
- return "5.23.3-1209-g5a3bf80f2fe";
969527
+ return "5.23.3-1220-g1df406742cc";
969509
969528
  }
969510
969529
  getCliName() {
969511
969530
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-1209-g5a3bf80f2fe",
2
+ "version": "5.23.3-1220-g1df406742cc",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",