@fern-api/fern-api-dev 5.120.5 → 5.121.1

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 +31 -15
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -118455,7 +118455,8 @@ var init_DocsYmlSchemas = __esm({
118455
118455
  "system-prompt": external_exports.string().optional(),
118456
118456
  location: external_exports.array(AIChatLocation).optional(),
118457
118457
  datasources: external_exports.array(AIChatDatasource).optional(),
118458
- "mask-pii": external_exports.boolean().optional()
118458
+ "mask-pii": external_exports.boolean().optional(),
118459
+ disclaimer: external_exports.string().optional()
118459
118460
  });
118460
118461
  FontConfigVariant = external_exports.object({
118461
118462
  path: external_exports.string(),
@@ -122928,7 +122929,8 @@ var init_AiChatConfig2 = __esm({
122928
122929
  systemPrompt: schemas_exports6.property("system-prompt", schemas_exports6.string().optional()),
122929
122930
  location: schemas_exports6.list(AiChatLocation2).optional(),
122930
122931
  datasources: schemas_exports6.list(AiChatDatasource).optional(),
122931
- maskPii: schemas_exports6.property("mask-pii", schemas_exports6.boolean().optional())
122932
+ maskPii: schemas_exports6.property("mask-pii", schemas_exports6.boolean().optional()),
122933
+ disclaimer: schemas_exports6.string().optional()
122932
122934
  });
122933
122935
  }
122934
122936
  });
@@ -464492,6 +464494,17 @@ var init_docs_yml_schema = __esm({
464492
464494
  }
464493
464495
  ],
464494
464496
  description: "When enabled, personally identifiable information (PII) in user messages is masked before\nbeing sent to Ask Fern. Disabled by default."
464497
+ },
464498
+ disclaimer: {
464499
+ oneOf: [
464500
+ {
464501
+ type: "string"
464502
+ },
464503
+ {
464504
+ type: "null"
464505
+ }
464506
+ ],
464507
+ description: 'Overrides the disclaimer shown in the Ask Fern chat\n(default: "Responses are generated using AI and may contain mistakes.").'
464495
464508
  }
464496
464509
  },
464497
464510
  additionalProperties: false
@@ -476202,7 +476215,8 @@ var init_DocsDefinitionResolver = __esm({
476202
476215
  url: ds2.url,
476203
476216
  title: ds2.title
476204
476217
  })),
476205
- maskPii: this.parsedDocsConfig.aiChatConfig.maskPii
476218
+ maskPii: this.parsedDocsConfig.aiChatConfig.maskPii,
476219
+ disclaimer: this.parsedDocsConfig.aiChatConfig.disclaimer
476206
476220
  } : void 0,
476207
476221
  hideNavLinks: void 0,
476208
476222
  title: this.parsedDocsConfig.title,
@@ -706750,7 +706764,7 @@ var AccessTokenPosthogManager = class {
706750
706764
  properties: {
706751
706765
  ...event,
706752
706766
  ...event.properties,
706753
- version: "5.120.5",
706767
+ version: "5.121.1",
706754
706768
  usingAccessToken: true,
706755
706769
  ...getRunIdProperties()
706756
706770
  }
@@ -706816,7 +706830,7 @@ var UserPosthogManager = class {
706816
706830
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
706817
706831
  event: "CLI",
706818
706832
  properties: {
706819
- version: "5.120.5",
706833
+ version: "5.121.1",
706820
706834
  ...event,
706821
706835
  ...event.properties,
706822
706836
  usingAccessToken: false,
@@ -888519,7 +888533,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
888519
888533
  var LOGS_FOLDER_NAME = "logs";
888520
888534
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
888521
888535
  function getCliSource() {
888522
- const version7 = "5.120.5";
888536
+ const version7 = "5.121.1";
888523
888537
  return `cli@${version7}`;
888524
888538
  }
888525
888539
  var DebugLogger = class {
@@ -912894,8 +912908,8 @@ async function runRemoteGenerationForGenerator({ projectConfig, organization, wo
912894
912908
  await sdkGenApiPreparationBatch?.ready(sdkGenApiTargetIdSeed, sdkConfigBuildParameters);
912895
912909
  }
912896
912910
  const requiresFdrRegistration = sdkGenApiRoute?.payloadKind !== "sdk-config-v1";
912897
- let generateOauthClients = false;
912898
- let generatePaginatedClients = false;
912911
+ let generateOauthClients = true;
912912
+ let generatePaginatedClients = true;
912899
912913
  if (!isAirGapped && requiresFdrRegistration) {
912900
912914
  const venus = createVenusService({ token: token.value });
912901
912915
  const orgResponse = await venus.organization.get({ orgId: projectConfig.organization });
@@ -912907,8 +912921,10 @@ async function runRemoteGenerationForGenerator({ projectConfig, organization, wo
912907
912921
  ir3.readmeConfig.whiteLabel = true;
912908
912922
  }
912909
912923
  ir3.selfHosted = orgResponse.body.selfHostedSdKs;
912910
- generateOauthClients = orgResponse.body.oauthClientEnabled ?? false;
912911
- generatePaginatedClients = orgResponse.body.paginationEnabled ?? false;
912924
+ generateOauthClients = orgResponse.body.oauthClientEnabled ?? true;
912925
+ generatePaginatedClients = orgResponse.body.paginationEnabled ?? true;
912926
+ } else {
912927
+ interactiveTaskContext.logger.warn(`Failed to load organization settings for ${projectConfig.organization}; assuming pagination and OAuth clients are enabled.`);
912912
912928
  }
912913
912929
  }
912914
912930
  let fdrApiDefinitionId;
@@ -915867,7 +915883,7 @@ var LegacyDocsPublisher = class {
915867
915883
  previewId,
915868
915884
  disableTemplates: void 0,
915869
915885
  skipUpload,
915870
- cliVersion: "5.120.5",
915886
+ cliVersion: "5.121.1",
915871
915887
  loginCommand: "fern auth login"
915872
915888
  });
915873
915889
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -971369,8 +971385,8 @@ generators:
971369
971385
  irVersionOverride: generatorInvocation.irVersionOverride,
971370
971386
  outputVersionOverride: version7,
971371
971387
  writeUnitTests: true,
971372
- generateOauthClients: orgBody?.oauthClientEnabled ?? false,
971373
- generatePaginatedClients: orgBody?.paginationEnabled ?? false,
971388
+ generateOauthClients: orgBody?.oauthClientEnabled ?? true,
971389
+ generatePaginatedClients: orgBody?.paginationEnabled ?? true,
971374
971390
  includeOptionalRequestPropertyExamples: false,
971375
971391
  inspect: inspect6,
971376
971392
  executionEnvironment: void 0,
@@ -983292,7 +983308,7 @@ function getAutomationContextFromEnv() {
983292
983308
  config_branch: process.env.FERN_CONFIG_BRANCH,
983293
983309
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
983294
983310
  trigger: process.env.GITHUB_EVENT_NAME,
983295
- cli_version: "5.120.5"
983311
+ cli_version: "5.121.1"
983296
983312
  };
983297
983313
  }
983298
983314
  function isAutomationMode() {
@@ -984124,7 +984140,7 @@ var CliContext = class _CliContext {
984124
984140
  if (false) {
984125
984141
  this.logger.error("CLI_VERSION is not defined");
984126
984142
  }
984127
- return "5.120.5";
984143
+ return "5.121.1";
984128
984144
  }
984129
984145
  getCliName() {
984130
984146
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.120.5",
2
+ "version": "5.121.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",