@fern-api/fern-api-dev 4.94.1-3-ge7a9f6e7764 → 4.94.1-8-g7a0fcfffa0a

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 +29 -19
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -485946,7 +485946,9 @@ var Name2 = schemas_exports3.objectWithoutOptionalProperties({
485946
485946
  // ../../ir-sdk/lib/sdk/serialization/resources/dynamic/resources/auth/types/BasicAuth.js
485947
485947
  var BasicAuth = schemas_exports3.objectWithoutOptionalProperties({
485948
485948
  username: Name2,
485949
- password: Name2
485949
+ usernameOmit: schemas_exports3.boolean().optional(),
485950
+ password: Name2,
485951
+ passwordOmit: schemas_exports3.boolean().optional()
485950
485952
  });
485951
485953
 
485952
485954
  // ../../ir-sdk/lib/sdk/serialization/resources/dynamic/resources/auth/types/BearerAuth.js
@@ -559088,17 +559090,12 @@ var DynamicSnippetsConverter = class {
559088
559090
  const scheme = auth8.schemes[0];
559089
559091
  switch (scheme.type) {
559090
559092
  case "basic": {
559091
- const basicAuth = {
559093
+ return dynamic_exports.Auth.basic({
559092
559094
  username: this.inflateName(scheme.username),
559093
- password: this.inflateName(scheme.password)
559094
- };
559095
- if (scheme.usernameOmit) {
559096
- basicAuth.usernameOmit = scheme.usernameOmit;
559097
- }
559098
- if (scheme.passwordOmit) {
559099
- basicAuth.passwordOmit = scheme.passwordOmit;
559100
- }
559101
- return dynamic_exports.Auth.basic(basicAuth);
559095
+ usernameOmit: scheme.usernameOmit,
559096
+ password: this.inflateName(scheme.password),
559097
+ passwordOmit: scheme.passwordOmit
559098
+ });
559102
559099
  }
559103
559100
  case "bearer":
559104
559101
  return dynamic_exports.Auth.bearer({
@@ -559138,8 +559135,8 @@ var DynamicSnippetsConverter = class {
559138
559135
  });
559139
559136
  case "basic":
559140
559137
  return dynamic_exports.AuthValues.basic({
559141
- username: "<username>",
559142
- password: "<password>"
559138
+ username: scheme.usernameOmit ? "" : "<username>",
559139
+ password: scheme.passwordOmit ? "" : "<password>"
559143
559140
  });
559144
559141
  case "header":
559145
559142
  return dynamic_exports.AuthValues.header({
@@ -618020,7 +618017,7 @@ var AccessTokenPosthogManager = class {
618020
618017
  properties: {
618021
618018
  ...event,
618022
618019
  ...event.properties,
618023
- version: "4.94.1-3-ge7a9f6e7764",
618020
+ version: "4.94.1-8-g7a0fcfffa0a",
618024
618021
  usingAccessToken: true
618025
618022
  }
618026
618023
  });
@@ -618074,7 +618071,7 @@ var UserPosthogManager = class {
618074
618071
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
618075
618072
  event: "CLI",
618076
618073
  properties: {
618077
- version: "4.94.1-3-ge7a9f6e7764",
618074
+ version: "4.94.1-8-g7a0fcfffa0a",
618078
618075
  ...event,
618079
618076
  ...event.properties,
618080
618077
  usingAccessToken: false,
@@ -829198,7 +829195,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
829198
829195
  var LOGS_FOLDER_NAME = "logs";
829199
829196
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
829200
829197
  function getCliSource() {
829201
- const version7 = "4.94.1-3-ge7a9f6e7764";
829198
+ const version7 = "4.94.1-8-g7a0fcfffa0a";
829202
829199
  return `cli@${version7}`;
829203
829200
  }
829204
829201
  var DebugLogger = class {
@@ -841161,7 +841158,7 @@ var LegacyDocsPublisher = class {
841161
841158
  previewId,
841162
841159
  disableTemplates: void 0,
841163
841160
  skipUpload,
841164
- cliVersion: "4.94.1-3-ge7a9f6e7764",
841161
+ cliVersion: "4.94.1-8-g7a0fcfffa0a",
841165
841162
  loginCommand: "fern auth login"
841166
841163
  });
841167
841164
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -870222,10 +870219,23 @@ var EndpointSnippetGenerator4 = class {
870222
870219
  this.context.errors.add({ severity: Severity.Warning, message });
870223
870220
  }
870224
870221
  getRootClientBasicAuthArgs({ auth: auth8, values: values2 }) {
870222
+ const authRecord = auth8;
870223
+ const usernameOmitted = !!authRecord.usernameOmit;
870224
+ const passwordOmitted = !!authRecord.passwordOmit;
870225
+ const credentialParts = [];
870226
+ if (!usernameOmitted) {
870227
+ credentialParts.push(`"${values2.username}"`);
870228
+ }
870229
+ if (!passwordOmitted) {
870230
+ credentialParts.push(`"${values2.password}"`);
870231
+ }
870232
+ if (credentialParts.length === 0) {
870233
+ return [];
870234
+ }
870225
870235
  return [
870226
870236
  {
870227
870237
  name: "credentials",
870228
- value: java_exports.TypeLiteral.raw(`"${values2.username}", "${values2.password}"`)
870238
+ value: java_exports.TypeLiteral.raw(credentialParts.join(", "))
870229
870239
  }
870230
870240
  ];
870231
870241
  }
@@ -915624,7 +915634,7 @@ var CliContext = class _CliContext {
915624
915634
  if (false) {
915625
915635
  this.logger.error("CLI_VERSION is not defined");
915626
915636
  }
915627
- return "4.94.1-3-ge7a9f6e7764";
915637
+ return "4.94.1-8-g7a0fcfffa0a";
915628
915638
  }
915629
915639
  getCliName() {
915630
915640
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.94.1-3-ge7a9f6e7764",
2
+ "version": "4.94.1-8-g7a0fcfffa0a",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",