@fern-api/fern-api-dev 4.109.0 → 5.0.0-6-gb0a2ec4ace2

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 +126 -52
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -510619,7 +510619,7 @@ var MetadataConfig = external_exports.object({
510619
510619
  "twitter:url": external_exports.string().optional(),
510620
510620
  "twitter:card": TwitterCardSetting.optional(),
510621
510621
  "og:dynamic": external_exports.boolean().optional(),
510622
- "og:background-image": external_exports.string().optional(),
510622
+ "og:dynamic:background-image": external_exports.string().optional(),
510623
510623
  "og:dynamic:text-color": external_exports.string().optional(),
510624
510624
  "og:dynamic:background-color": external_exports.string().optional(),
510625
510625
  "og:dynamic:logo-color": external_exports.enum(["dark", "light"]).optional(),
@@ -513961,7 +513961,7 @@ var MetadataConfig2 = schemas_exports6.object({
513961
513961
  twitterUrl: schemas_exports6.property("twitter:url", schemas_exports6.string().optional()),
513962
513962
  twitterCard: schemas_exports6.property("twitter:card", TwitterCardSetting3.optional()),
513963
513963
  ogDynamic: schemas_exports6.property("og:dynamic", schemas_exports6.boolean().optional()),
513964
- ogBackgroundImage: schemas_exports6.property("og:background-image", schemas_exports6.string().optional()),
513964
+ ogDynamicBackgroundImage: schemas_exports6.property("og:dynamic:background-image", schemas_exports6.string().optional()),
513965
513965
  ogDynamicTextColor: schemas_exports6.property("og:dynamic:text-color", schemas_exports6.string().optional()),
513966
513966
  ogDynamicBackgroundColor: schemas_exports6.property("og:dynamic:background-color", schemas_exports6.string().optional()),
513967
513967
  ogDynamicLogoColor: schemas_exports6.property("og:dynamic:logo-color", OgDynamicLogoColor2.optional()),
@@ -543279,7 +543279,7 @@ async function convertMetadata(metadata, absoluteFilepathToDocsConfig, context3)
543279
543279
  "twitter:url": metadata.twitterUrl,
543280
543280
  "twitter:card": metadata.twitterCard,
543281
543281
  "og:dynamic": metadata.ogDynamic,
543282
- "og:background-image": await convertFilepathOrUrl(metadata.ogBackgroundImage, absoluteFilepathToDocsConfig),
543282
+ "og:dynamic:background-image": await convertFilepathOrUrl(metadata.ogDynamicBackgroundImage, absoluteFilepathToDocsConfig),
543283
543283
  "og:dynamic:text-color": metadata.ogDynamicTextColor,
543284
543284
  "og:dynamic:background-color": metadata.ogDynamicBackgroundColor,
543285
543285
  "og:dynamic:logo-color": metadata.ogDynamicLogoColor,
@@ -543296,7 +543296,7 @@ async function convertMetadata(metadata, absoluteFilepathToDocsConfig, context3)
543296
543296
  function warnOnMetadataConflicts(metadata, context3) {
543297
543297
  const dynamicEnabled = metadata.ogDynamic === true;
543298
543298
  const dynamicSettings = [
543299
- ["og:background-image", metadata.ogBackgroundImage],
543299
+ ["og:dynamic:background-image", metadata.ogDynamicBackgroundImage],
543300
543300
  ["og:dynamic:text-color", metadata.ogDynamicTextColor],
543301
543301
  ["og:dynamic:background-color", metadata.ogDynamicBackgroundColor],
543302
543302
  ["og:dynamic:logo-color", metadata.ogDynamicLogoColor],
@@ -621386,7 +621386,7 @@ var AccessTokenPosthogManager = class {
621386
621386
  properties: {
621387
621387
  ...event,
621388
621388
  ...event.properties,
621389
- version: "4.109.0",
621389
+ version: "5.0.0-6-gb0a2ec4ace2",
621390
621390
  usingAccessToken: true
621391
621391
  }
621392
621392
  });
@@ -621440,7 +621440,7 @@ var UserPosthogManager = class {
621440
621440
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621441
621441
  event: "CLI",
621442
621442
  properties: {
621443
- version: "4.109.0",
621443
+ version: "5.0.0-6-gb0a2ec4ace2",
621444
621444
  ...event,
621445
621445
  ...event.properties,
621446
621446
  usingAccessToken: false,
@@ -798819,8 +798819,8 @@ async function collectFilesFromDocsConfig({ parsedDocsConfig }) {
798819
798819
  if (parsedDocsConfig.metadata?.["twitter:image"] != null && parsedDocsConfig.metadata["twitter:image"].type === "filepath") {
798820
798820
  filepaths.add(parsedDocsConfig.metadata["twitter:image"].value);
798821
798821
  }
798822
- if (parsedDocsConfig.metadata?.["og:background-image"] != null && parsedDocsConfig.metadata["og:background-image"].type === "filepath") {
798823
- filepaths.add(parsedDocsConfig.metadata["og:background-image"].value);
798822
+ if (parsedDocsConfig.metadata?.["og:dynamic:background-image"] != null && parsedDocsConfig.metadata["og:dynamic:background-image"].type === "filepath") {
798823
+ filepaths.add(parsedDocsConfig.metadata["og:dynamic:background-image"].value);
798824
798824
  }
798825
798825
  if (parsedDocsConfig.typography?.bodyFont != null) {
798826
798826
  parsedDocsConfig.typography.bodyFont.variants.forEach((variant) => {
@@ -800802,13 +800802,13 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
800802
800802
  if (this.parsedDocsConfig.metadata == null) {
800803
800803
  return;
800804
800804
  }
800805
- const { "og:image": ogImage, "og:logo": ogLogo, "twitter:image": twitterImage, "og:background-image": ogBackgroundImage, ...rest } = this.parsedDocsConfig.metadata;
800805
+ const { "og:image": ogImage, "og:logo": ogLogo, "twitter:image": twitterImage, "og:dynamic:background-image": ogDynamicBackgroundImage, ...rest } = this.parsedDocsConfig.metadata;
800806
800806
  return {
800807
800807
  ...rest,
800808
800808
  "og:image": this.convertFileIdOrUrl(ogImage),
800809
800809
  "og:logo": this.convertFileIdOrUrl(ogLogo),
800810
800810
  "twitter:image": this.convertFileIdOrUrl(twitterImage),
800811
- "og:background-image": this.convertFileIdOrUrl(ogBackgroundImage)
800811
+ "og:dynamic:background-image": this.convertFileIdOrUrl(ogDynamicBackgroundImage)
800812
800812
  };
800813
800813
  }
800814
800814
  convertFileIdOrUrl(filepathOrUrl) {
@@ -800991,7 +800991,7 @@ async function resolveThemeFileUrls(themeConfig, tmpDir) {
800991
800991
  cfg.footer = await maybeDownload(cfg.footer);
800992
800992
  if (cfg.metadata != null && typeof cfg.metadata === "object") {
800993
800993
  const meta5 = cfg.metadata;
800994
- for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
800994
+ for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
800995
800995
  meta5[imgKey] = await maybeDownload(meta5[imgKey]);
800996
800996
  }
800997
800997
  }
@@ -833175,7 +833175,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
833175
833175
  var LOGS_FOLDER_NAME = "logs";
833176
833176
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
833177
833177
  function getCliSource() {
833178
- const version7 = "4.109.0";
833178
+ const version7 = "5.0.0-6-gb0a2ec4ace2";
833179
833179
  return `cli@${version7}`;
833180
833180
  }
833181
833181
  var DebugLogger = class {
@@ -841615,7 +841615,7 @@ var definitions6 = {
841615
841615
  }
841616
841616
  ]
841617
841617
  },
841618
- "og:background-image": {
841618
+ "og:dynamic:background-image": {
841619
841619
  oneOf: [
841620
841620
  {
841621
841621
  type: "string"
@@ -845593,7 +845593,7 @@ var LegacyDocsPublisher = class {
845593
845593
  previewId,
845594
845594
  disableTemplates: void 0,
845595
845595
  skipUpload,
845596
- cliVersion: "4.109.0",
845596
+ cliVersion: "5.0.0-6-gb0a2ec4ace2",
845597
845597
  loginCommand: "fern auth login"
845598
845598
  });
845599
845599
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -866286,6 +866286,15 @@ var DynamicLiteralMapper = class extends WithGeneration {
866286
866286
  }));
866287
866287
  }
866288
866288
  convertObject({ object_, value: value2, fallbackToDefault }) {
866289
+ const classReference4 = this.csharp.classReference({
866290
+ origin: object_.declaration,
866291
+ namespace: this.context.getNamespace(object_.declaration.fernFilepath)
866292
+ });
866293
+ const propertyNameByWireValue = /* @__PURE__ */ new Map();
866294
+ for (const property23 of object_.properties) {
866295
+ const actualName = this.context.resolvePropertyName(classReference4, property23.name.name);
866296
+ propertyNameByWireValue.set(property23.name.wireValue, actualName);
866297
+ }
866289
866298
  const record22 = this.context.getRecord(value2) ?? {};
866290
866299
  const properties7 = this.context.associateByWireValue({
866291
866300
  parameters: object_.properties,
@@ -866295,7 +866304,7 @@ var DynamicLiteralMapper = class extends WithGeneration {
866295
866304
  this.context.errors.scope(property23.name.wireValue);
866296
866305
  try {
866297
866306
  return {
866298
- name: this.context.getClassName(property23.name.name),
866307
+ name: propertyNameByWireValue.get(property23.name.wireValue) ?? this.context.getClassName(property23.name.name),
866299
866308
  value: this.convert(property23)
866300
866309
  };
866301
866310
  } finally {
@@ -866304,7 +866313,7 @@ var DynamicLiteralMapper = class extends WithGeneration {
866304
866313
  });
866305
866314
  const providedWireValues = new Set(Object.keys(record22));
866306
866315
  for (const property23 of object_.properties) {
866307
- const fieldName = this.context.getClassName(property23.name.name);
866316
+ const fieldName = propertyNameByWireValue.get(property23.name.wireValue) ?? this.context.getClassName(property23.name.name);
866308
866317
  if (providedWireValues.has(property23.name.wireValue)) {
866309
866318
  if (this.isRequiredProperty(property23.typeReference)) {
866310
866319
  const existing = fields.find((f5) => f5.name === fieldName);
@@ -866328,10 +866337,7 @@ var DynamicLiteralMapper = class extends WithGeneration {
866328
866337
  }
866329
866338
  }
866330
866339
  return this.csharp.Literal.class_({
866331
- reference: this.csharp.classReference({
866332
- origin: object_.declaration,
866333
- namespace: this.context.getNamespace(object_.declaration.fernFilepath)
866334
- }),
866340
+ reference: classReference4,
866335
866341
  fields
866336
866342
  });
866337
866343
  }
@@ -866382,13 +866388,17 @@ var DynamicLiteralMapper = class extends WithGeneration {
866382
866388
  return void 0;
866383
866389
  }
866384
866390
  visited.add(typeId);
866391
+ const classReference4 = this.csharp.classReference({
866392
+ origin: object_.declaration,
866393
+ namespace: this.context.getNamespace(object_.declaration.fernFilepath)
866394
+ });
866385
866395
  const fields = [];
866386
866396
  for (const property23 of object_.properties) {
866387
866397
  if (this.isRequiredProperty(property23.typeReference)) {
866388
866398
  const defaultValue = this.getDefaultLiteralForType(property23.typeReference, visited);
866389
866399
  if (defaultValue != null) {
866390
866400
  fields.push({
866391
- name: this.context.getClassName(property23.name.name),
866401
+ name: this.context.resolvePropertyName(classReference4, property23.name.name),
866392
866402
  value: defaultValue
866393
866403
  });
866394
866404
  }
@@ -866396,10 +866406,7 @@ var DynamicLiteralMapper = class extends WithGeneration {
866396
866406
  }
866397
866407
  visited.delete(typeId);
866398
866408
  return this.csharp.Literal.class_({
866399
- reference: this.csharp.classReference({
866400
- origin: object_.declaration,
866401
- namespace: this.context.getNamespace(object_.declaration.fernFilepath)
866402
- }),
866409
+ reference: classReference4,
866403
866410
  fields
866404
866411
  });
866405
866412
  }
@@ -866953,6 +866960,22 @@ var DynamicSnippetsGeneratorContext = class _DynamicSnippetsGeneratorContext ext
866953
866960
  getPropertyName(name2) {
866954
866961
  return name2.pascalCase.safeName;
866955
866962
  }
866963
+ /**
866964
+ * Returns a property name that is safe within the given class reference's scope.
866965
+ * Detects collisions where PascalCase(property) == ClassName and returns the
866966
+ * renamed identifier (e.g., "CatalogV1Id_") to avoid CS0542 / CS0117.
866967
+ */
866968
+ resolvePropertyName(classReference4, name2) {
866969
+ const expectedName = name2.pascalCase.safeName;
866970
+ const redirected = classReference4.scope.getRedirectedFieldName(expectedName);
866971
+ if (redirected) {
866972
+ return redirected;
866973
+ }
866974
+ if (classReference4.scope.isField(expectedName)) {
866975
+ return expectedName;
866976
+ }
866977
+ return classReference4.registerField(expectedName);
866978
+ }
866956
866979
  getMethodName(name2) {
866957
866980
  return `${name2.pascalCase.safeName}Async`;
866958
866981
  }
@@ -867439,13 +867462,17 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
867439
867462
  });
867440
867463
  }
867441
867464
  getInlinedRequestArg({ request: request7, snippet: snippet2, pathParameterFields, filePropertyInfo }) {
867465
+ const classReference4 = this.csharp.classReference({
867466
+ origin: request7.declaration,
867467
+ namespace: this.context.getNamespace(request7.declaration.fernFilepath)
867468
+ });
867442
867469
  this.context.errors.scope(Scope4.QueryParameters);
867443
867470
  const queryParameters = this.context.associateQueryParametersByWireValue({
867444
867471
  parameters: request7.queryParameters ?? [],
867445
867472
  values: snippet2.queryParameters ?? {}
867446
867473
  });
867447
867474
  const queryParameterFields = queryParameters.map((queryParameter) => ({
867448
- name: this.context.getPropertyName(queryParameter.name.name),
867475
+ name: this.context.resolvePropertyName(classReference4, queryParameter.name.name),
867449
867476
  value: this.context.dynamicLiteralMapper.convert(queryParameter)
867450
867477
  }));
867451
867478
  this.context.errors.unscope();
@@ -867455,7 +867482,7 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
867455
867482
  values: snippet2.headers ?? {}
867456
867483
  });
867457
867484
  const headerFields = headers2.map((header) => ({
867458
- name: this.context.getPropertyName(header.name.name),
867485
+ name: this.context.resolvePropertyName(classReference4, header.name.name),
867459
867486
  value: this.context.dynamicLiteralMapper.convert({
867460
867487
  ...header,
867461
867488
  fallbackToDefault: header.name.wireValue
@@ -867466,30 +867493,32 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
867466
867493
  const requestBodyFields = request7.body != null ? this.getInlinedRequestBodyConstructorFields({
867467
867494
  body: request7.body,
867468
867495
  value: snippet2.requestBody,
867469
- filePropertyInfo
867496
+ filePropertyInfo,
867497
+ classReference: classReference4
867470
867498
  }) : [];
867471
867499
  this.context.errors.unscope();
867472
867500
  return this.csharp.Literal.class_({
867473
- reference: this.csharp.classReference({
867474
- origin: request7.declaration,
867475
- namespace: this.context.getNamespace(request7.declaration.fernFilepath)
867476
- }),
867501
+ reference: classReference4,
867477
867502
  fields: [...pathParameterFields, ...queryParameterFields, ...headerFields, ...requestBodyFields]
867478
867503
  });
867479
867504
  }
867480
- getInlinedRequestBodyConstructorFields({ body, value: value2, filePropertyInfo }) {
867505
+ getInlinedRequestBodyConstructorFields({ body, value: value2, filePropertyInfo, classReference: classReference4 }) {
867481
867506
  switch (body.type) {
867482
867507
  case "properties":
867483
- return this.getInlinedRequestBodyPropertyConstructorFields({ parameters: body.value, value: value2 });
867508
+ return this.getInlinedRequestBodyPropertyConstructorFields({
867509
+ parameters: body.value,
867510
+ value: value2,
867511
+ classReference: classReference4
867512
+ });
867484
867513
  case "referenced":
867485
- return [this.getReferencedRequestBodyPropertyConstructorField({ body, value: value2 })];
867514
+ return [this.getReferencedRequestBodyPropertyConstructorField({ body, value: value2, classReference: classReference4 })];
867486
867515
  case "fileUpload":
867487
867516
  return this.getFileUploadRequestBodyConstructorFields({ filePropertyInfo });
867488
867517
  default:
867489
867518
  assertNever(body);
867490
867519
  }
867491
867520
  }
867492
- getInlinedRequestBodyPropertyConstructorFields({ parameters: parameters2, value: value2 }) {
867521
+ getInlinedRequestBodyPropertyConstructorFields({ parameters: parameters2, value: value2, classReference: classReference4 }) {
867493
867522
  const fields = [];
867494
867523
  const bodyProperties = this.context.associateByWireValue({
867495
867524
  parameters: parameters2,
@@ -867497,7 +867526,7 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
867497
867526
  });
867498
867527
  for (const parameter6 of bodyProperties) {
867499
867528
  fields.push({
867500
- name: this.context.getPropertyName(parameter6.name.name),
867529
+ name: this.context.resolvePropertyName(classReference4, parameter6.name.name),
867501
867530
  value: this.context.dynamicLiteralMapper.convert({
867502
867531
  ...parameter6,
867503
867532
  fallbackToDefault: parameter6.name.wireValue
@@ -867509,9 +867538,9 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
867509
867538
  getFileUploadRequestBodyConstructorFields({ filePropertyInfo }) {
867510
867539
  return [...filePropertyInfo.fileFields, ...filePropertyInfo.bodyPropertyFields];
867511
867540
  }
867512
- getReferencedRequestBodyPropertyConstructorField({ body, value: value2 }) {
867541
+ getReferencedRequestBodyPropertyConstructorField({ body, value: value2, classReference: classReference4 }) {
867513
867542
  return {
867514
- name: this.context.getPropertyName(body.bodyKey),
867543
+ name: this.context.resolvePropertyName(classReference4, body.bodyKey),
867515
867544
  value: this.getReferencedRequestBodyPropertyLiteral({ body: body.bodyType, value: value2 })
867516
867545
  };
867517
867546
  }
@@ -874445,7 +874474,7 @@ var EndpointSnippetGenerator4 = class {
874445
874474
  args.push(...pathParameterFields.map((field5) => field5.value));
874446
874475
  }
874447
874476
  if (!inlineFileProperties) {
874448
- args.push(...filePropertyInfo.fileFields.map((field5) => field5.value));
874477
+ args.push(...filePropertyInfo.fileFields.map((field5) => java_exports.TypeLiteral.isNop(field5.value) ? java_exports.TypeLiteral.raw("null") : field5.value));
874449
874478
  }
874450
874479
  args.push(this.getInlinedRequestArg({
874451
874480
  request: request7,
@@ -890569,6 +890598,40 @@ init_lib4();
890569
890598
  function escapeSwiftStringLiteral(rawValue) {
890570
890599
  return rawValue.replace(/\\u([0-9a-fA-F]{4})/g, "\\u{$1}").replace(/(?<!\\)\\f/g, "\\u{000C}").replace(/(?<!\\)\\v/g, "\\u{000B}").replace(/(?<!\\)\\0/g, "\\u{0000}").replace(/(?<!\\)"/g, '\\"');
890571
890600
  }
890601
+ function escapeSwiftStringLiteralContent(value2) {
890602
+ let result = "";
890603
+ for (const ch of value2) {
890604
+ switch (ch) {
890605
+ case "\\":
890606
+ result += "\\\\";
890607
+ break;
890608
+ case '"':
890609
+ result += '\\"';
890610
+ break;
890611
+ case "\n":
890612
+ result += "\\n";
890613
+ break;
890614
+ case "\r":
890615
+ result += "\\r";
890616
+ break;
890617
+ case " ":
890618
+ result += "\\t";
890619
+ break;
890620
+ case "\0":
890621
+ result += "\\0";
890622
+ break;
890623
+ default: {
890624
+ const code5 = ch.charCodeAt(0);
890625
+ if (code5 < 32 || code5 === 127) {
890626
+ result += `\\u{${code5.toString(16).toUpperCase()}}`;
890627
+ } else {
890628
+ result += ch;
890629
+ }
890630
+ }
890631
+ }
890632
+ }
890633
+ return result;
890634
+ }
890572
890635
 
890573
890636
  // ../../../generators/swift/codegen/lib/syntax/reserved-keywords.js
890574
890637
  var reservedKeywords = [
@@ -890761,7 +890824,7 @@ var Expression2 = class extends AstNode8 {
890761
890824
  this.internalExpression.expression.write(writer2);
890762
890825
  break;
890763
890826
  case "string-literal":
890764
- writer2.write(`"${this.internalExpression.value}"`);
890827
+ writer2.write(this.internalExpression.escape ? `"${escapeSwiftStringLiteralContent(this.internalExpression.value)}"` : `"${this.internalExpression.value}"`);
890765
890828
  break;
890766
890829
  case "number-literal":
890767
890830
  writer2.write(this.internalExpression.value.toString());
@@ -890900,6 +890963,17 @@ var Expression2 = class extends AstNode8 {
890900
890963
  static stringLiteral(value2) {
890901
890964
  return new this({ type: "string-literal", value: value2 });
890902
890965
  }
890966
+ /**
890967
+ * Like {@link Expression.stringLiteral}, but escapes characters in `value`
890968
+ * that cannot appear unescaped inside a Swift `"..."` string literal
890969
+ * (control characters, real newlines, real backslashes, real double quotes).
890970
+ * Use this when `value` is raw user data (e.g. from JSON.parse), not a
890971
+ * pre-formed Swift string literal containing intentional backslash
890972
+ * sequences such as `\(...)` interpolation.
890973
+ */
890974
+ static escapedStringLiteral(value2) {
890975
+ return new this({ type: "string-literal", value: value2, escape: true });
890976
+ }
890903
890977
  static numberLiteral(value2) {
890904
890978
  return new this({ type: "number-literal", value: value2 });
890905
890979
  }
@@ -893071,7 +893145,7 @@ var DynamicTypeLiteralMapper6 = class {
893071
893145
  methodName: "string",
893072
893146
  arguments_: [
893073
893147
  swift_exports.functionArgument({
893074
- value: swift_exports.Expression.stringLiteral(value2)
893148
+ value: swift_exports.Expression.escapedStringLiteral(value2)
893075
893149
  })
893076
893150
  ]
893077
893151
  });
@@ -893109,7 +893183,7 @@ var DynamicTypeLiteralMapper6 = class {
893109
893183
  swift_exports.functionArgument({
893110
893184
  value: swift_exports.Expression.dictionaryLiteral({
893111
893185
  entries: Object.entries(value2).map(([key2, value3]) => [
893112
- swift_exports.Expression.stringLiteral(key2),
893186
+ swift_exports.Expression.escapedStringLiteral(key2),
893113
893187
  this.convertUnknown(value3)
893114
893188
  ]),
893115
893189
  multiline: true
@@ -893148,7 +893222,7 @@ var DynamicTypeLiteralMapper6 = class {
893148
893222
  if (str3 == null) {
893149
893223
  return swift_exports.Expression.nop();
893150
893224
  }
893151
- return swift_exports.Expression.stringLiteral(str3);
893225
+ return swift_exports.Expression.escapedStringLiteral(str3);
893152
893226
  }
893153
893227
  case "DATE": {
893154
893228
  const date25 = this.context.getValueAsString({ value: value2 });
@@ -893181,7 +893255,7 @@ var DynamicTypeLiteralMapper6 = class {
893181
893255
  if (base643 == null) {
893182
893256
  return swift_exports.Expression.nop();
893183
893257
  }
893184
- return swift_exports.Expression.stringLiteral(base643);
893258
+ return swift_exports.Expression.escapedStringLiteral(base643);
893185
893259
  }
893186
893260
  case "BIG_INTEGER": {
893187
893261
  const bigInt = this.context.getValueAsString({ value: value2 });
@@ -893724,7 +893798,7 @@ var EndpointSnippetGenerator9 = class {
893724
893798
  } else {
893725
893799
  return swift_exports.functionArgument({
893726
893800
  label: "baseURL",
893727
- value: swift_exports.Expression.stringLiteral(snippet2.baseURL)
893801
+ value: swift_exports.Expression.escapedStringLiteral(snippet2.baseURL)
893728
893802
  });
893729
893803
  }
893730
893804
  }
@@ -893748,10 +893822,10 @@ var EndpointSnippetGenerator9 = class {
893748
893822
  }
893749
893823
  args.push(swift_exports.functionArgument({
893750
893824
  label: auth8.username.camelCase.unsafeName,
893751
- value: swift_exports.Expression.stringLiteral(values2.username)
893825
+ value: swift_exports.Expression.escapedStringLiteral(values2.username)
893752
893826
  }), swift_exports.functionArgument({
893753
893827
  label: auth8.password.camelCase.unsafeName,
893754
- value: swift_exports.Expression.stringLiteral(values2.password)
893828
+ value: swift_exports.Expression.escapedStringLiteral(values2.password)
893755
893829
  }));
893756
893830
  break;
893757
893831
  case "bearer":
@@ -893764,7 +893838,7 @@ var EndpointSnippetGenerator9 = class {
893764
893838
  }
893765
893839
  args.push(swift_exports.functionArgument({
893766
893840
  label: auth8.token.camelCase.unsafeName,
893767
- value: swift_exports.Expression.stringLiteral(values2.token)
893841
+ value: swift_exports.Expression.escapedStringLiteral(values2.token)
893768
893842
  }));
893769
893843
  break;
893770
893844
  case "header":
@@ -919841,7 +919915,7 @@ var CliContext = class _CliContext {
919841
919915
  if (false) {
919842
919916
  this.logger.error("CLI_VERSION is not defined");
919843
919917
  }
919844
- return "4.109.0";
919918
+ return "5.0.0-6-gb0a2ec4ace2";
919845
919919
  }
919846
919920
  getCliName() {
919847
919921
  if (false) {
@@ -928829,7 +928903,7 @@ ${errors4.map((e8) => ` - ${e8}`).join("\n")}`,
928829
928903
  collect2(raw.footer);
928830
928904
  if (raw.metadata != null && typeof raw.metadata === "object") {
928831
928905
  const meta5 = raw.metadata;
928832
- for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
928906
+ for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
928833
928907
  if (typeof meta5[imgKey] === "string") {
928834
928908
  collect2(meta5[imgKey]);
928835
928909
  }
@@ -928917,7 +928991,7 @@ ${errors4.map((e8) => ` - ${e8}`).join("\n")}`,
928917
928991
  cfg.footer = await field5(cfg.footer);
928918
928992
  if (cfg.metadata != null && typeof cfg.metadata === "object") {
928919
928993
  const meta5 = { ...cfg.metadata };
928920
- for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
928994
+ for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
928921
928995
  if (typeof meta5[imgKey] === "string") {
928922
928996
  meta5[imgKey] = await field5(meta5[imgKey]);
928923
928997
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.109.0",
2
+ "version": "5.0.0-6-gb0a2ec4ace2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",