@fern-api/fern-api-dev 4.78.0 → 4.79.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 +23 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -468855,7 +468855,7 @@ function getClientOptions(options2, getDefaultIntegrationsImpl) {
468855
468855
  const tracesSampleRate = getTracesSampleRate(options2.tracesSampleRate);
468856
468856
  const mergedOptions = {
468857
468857
  ...options2,
468858
- dsn: options2.dsn ?? "",
468858
+ dsn: options2.dsn ?? "https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496",
468859
468859
  environment: options2.environment ?? "development",
468860
468860
  sendClientReports: options2.sendClientReports ?? true,
468861
468861
  transport: options2.transport ?? makeNodeTransport,
@@ -509660,6 +509660,7 @@ var DocsSettingsConfig2 = schemas_exports6.object({
509660
509660
  hide404Page: schemas_exports6.property("hide-404-page", schemas_exports6.boolean().optional()),
509661
509661
  useJavascriptAsTypescript: schemas_exports6.property("use-javascript-as-typescript", schemas_exports6.boolean().optional()),
509662
509662
  disableExplorerProxy: schemas_exports6.property("disable-explorer-proxy", schemas_exports6.boolean().optional()),
509663
+ disableEnvironmentEditing: schemas_exports6.property("disable-environment-editing", schemas_exports6.boolean().optional()),
509663
509664
  disableAnalytics: schemas_exports6.property("disable-analytics", schemas_exports6.boolean().optional()),
509664
509665
  language: Language3.optional(),
509665
509666
  folderTitleSource: schemas_exports6.property("folder-title-source", TitleSource3.optional()),
@@ -544507,6 +544508,7 @@ function convertSettingsConfig(settings) {
544507
544508
  searchText: settings.searchText ?? void 0,
544508
544509
  useJavascriptAsTypescript: settings.useJavascriptAsTypescript ?? false,
544509
544510
  disableExplorerProxy: settings.disableExplorerProxy ?? false,
544511
+ disableEnvironmentEditing: settings.disableEnvironmentEditing ?? false,
544510
544512
  disableAnalytics: settings.disableAnalytics ?? false
544511
544513
  };
544512
544514
  }
@@ -622189,7 +622191,7 @@ var AccessTokenPosthogManager = class {
622189
622191
  properties: {
622190
622192
  ...event,
622191
622193
  ...event.properties,
622192
- version: "4.78.0",
622194
+ version: "4.79.0",
622193
622195
  usingAccessToken: true
622194
622196
  }
622195
622197
  });
@@ -622243,7 +622245,7 @@ var UserPosthogManager = class {
622243
622245
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
622244
622246
  event: "CLI",
622245
622247
  properties: {
622246
- version: "4.78.0",
622248
+ version: "4.79.0",
622247
622249
  ...event,
622248
622250
  ...event.properties,
622249
622251
  usingAccessToken: false,
@@ -625705,7 +625707,7 @@ var TelemetryClient = class _TelemetryClient {
625705
625707
  usingAccessToken: process.env.FERN_TOKEN != null
625706
625708
  };
625707
625709
  this.posthog = apiKey != null && apiKey.length > 0 && isTelemetryEnabled ? new PostHog(apiKey) : void 0;
625708
- const sentryDsn = "";
625710
+ const sentryDsn = "https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";
625709
625711
  if (sentryDsn != null && sentryDsn.length > 0 && isTelemetryEnabled) {
625710
625712
  const sentryEnvironment = "development";
625711
625713
  if (sentryEnvironment == null || sentryEnvironment.length === 0) {
@@ -839470,7 +839472,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
839470
839472
  var LOGS_FOLDER_NAME = "logs";
839471
839473
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
839472
839474
  function getCliSource() {
839473
- const version7 = "4.78.0";
839475
+ const version7 = "4.79.0";
839474
839476
  return `cli@${version7}`;
839475
839477
  }
839476
839478
  var DebugLogger = class {
@@ -848164,6 +848166,16 @@ var definitions6 = {
848164
848166
  }
848165
848167
  ]
848166
848168
  },
848169
+ "disable-environment-editing": {
848170
+ oneOf: [
848171
+ {
848172
+ type: "boolean"
848173
+ },
848174
+ {
848175
+ type: "null"
848176
+ }
848177
+ ]
848178
+ },
848167
848179
  "disable-analytics": {
848168
848180
  oneOf: [
848169
848181
  {
@@ -850789,7 +850801,7 @@ var LegacyDocsPublisher = class {
850789
850801
  previewId,
850790
850802
  disableTemplates: void 0,
850791
850803
  skipUpload,
850792
- cliVersion: "4.78.0"
850804
+ cliVersion: "4.79.0"
850793
850805
  });
850794
850806
  if (taskContext.getResult() === TaskResult.Failure) {
850795
850807
  return { success: false };
@@ -886450,12 +886462,13 @@ var DynamicSnippetsGeneratorContext5 = class _DynamicSnippetsGeneratorContext ex
886450
886462
  }
886451
886463
  getDiscriminatedUnionVariantClassReference({ unionDeclaration, discriminantValue }) {
886452
886464
  const unionClassName = this.getClassName(unionDeclaration.name);
886453
- const variantSuffix = discriminantValue.name.pascalCase.safeName;
886465
+ const variantName = discriminantValue.name.pascalCase.safeName;
886454
886466
  const modulePath = [
886455
886467
  ...this.getRootModulePath(),
886456
886468
  ...unionDeclaration.fernFilepath.allParts.map((part) => part.snakeCase.safeName)
886457
886469
  ];
886458
- return python_exports2.reference({ name: `${unionClassName}_${variantSuffix}`, modulePath });
886470
+ const name2 = this.customConfig.pydantic_config?.union_naming === "v1" ? `${variantName}${unionClassName}` : `${unionClassName}_${variantName}`;
886471
+ return python_exports2.reference({ name: name2, modulePath });
886459
886472
  }
886460
886473
  useTypedDictRequests() {
886461
886474
  return this.customConfig.use_typeddict_requests === true;
@@ -925266,7 +925279,7 @@ var SentryClient = class {
925266
925279
  sentry;
925267
925280
  constructor({ release: release2 }) {
925268
925281
  const isTelemetryEnabled = process.env.FERN_DISABLE_TELEMETRY !== "true";
925269
- const sentryDsn = "";
925282
+ const sentryDsn = "https://84f58b5e457f06999d92f11ce4b79158@o4509504076185600.ingest.us.sentry.io/4511021546602496";
925270
925283
  if (isTelemetryEnabled && sentryDsn != null && sentryDsn.length > 0) {
925271
925284
  const sentryEnvironment = "development";
925272
925285
  if (sentryEnvironment == null || sentryEnvironment.length === 0) {
@@ -925861,7 +925874,7 @@ var CliContext = class _CliContext {
925861
925874
  if (false) {
925862
925875
  this.logger.error("CLI_VERSION is not defined");
925863
925876
  }
925864
- return "4.78.0";
925877
+ return "4.79.0";
925865
925878
  }
925866
925879
  getCliName() {
925867
925880
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.78.0",
2
+ "version": "4.79.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",