@fern-api/java-dynamic-snippets 4.37.7 → 4.37.9

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.
package/dist/index.d.cts CHANGED
@@ -20,6 +20,8 @@ declare namespace DynamicTypeLiteralMapper {
20
20
  }
21
21
  declare class DynamicTypeLiteralMapper {
22
22
  private context;
23
+ /** Depth of alias resolution in progress; containers typed inside an alias follow the SDK's resolved types. */
24
+ private aliasDepth;
23
25
  constructor({ context }: {
24
26
  context: DynamicSnippetsGeneratorContext;
25
27
  });
@@ -33,6 +35,7 @@ declare class DynamicTypeLiteralMapper {
33
35
  private convertSet;
34
36
  private convertMap;
35
37
  private convertNamed;
38
+ private convertNamedType;
36
39
  private convertDiscriminatedUnion;
37
40
  private convertObject;
38
41
  /**
@@ -92,6 +95,11 @@ declare class DynamicTypeLiteralMapper {
92
95
  declare namespace DynamicTypeMapper {
93
96
  interface Args {
94
97
  typeReference: FernIr.dynamic.TypeReference;
98
+ /**
99
+ * Set while converting the target of an alias: the Java SDK resolves an alias through all nested
100
+ * aliases, so an alias of `unknown` reached this way is `Object`, not its wrapper class.
101
+ */
102
+ withinAlias?: boolean;
95
103
  }
96
104
  }
97
105
  declare class DynamicTypeMapper {
package/dist/index.d.ts CHANGED
@@ -20,6 +20,8 @@ declare namespace DynamicTypeLiteralMapper {
20
20
  }
21
21
  declare class DynamicTypeLiteralMapper {
22
22
  private context;
23
+ /** Depth of alias resolution in progress; containers typed inside an alias follow the SDK's resolved types. */
24
+ private aliasDepth;
23
25
  constructor({ context }: {
24
26
  context: DynamicSnippetsGeneratorContext;
25
27
  });
@@ -33,6 +35,7 @@ declare class DynamicTypeLiteralMapper {
33
35
  private convertSet;
34
36
  private convertMap;
35
37
  private convertNamed;
38
+ private convertNamedType;
36
39
  private convertDiscriminatedUnion;
37
40
  private convertObject;
38
41
  /**
@@ -92,6 +95,11 @@ declare class DynamicTypeLiteralMapper {
92
95
  declare namespace DynamicTypeMapper {
93
96
  interface Args {
94
97
  typeReference: FernIr.dynamic.TypeReference;
98
+ /**
99
+ * Set while converting the target of an alias: the Java SDK resolves an alias through all nested
100
+ * aliases, so an alias of `unknown` reached this way is `Object`, not its wrapper class.
101
+ */
102
+ withinAlias?: boolean;
95
103
  }
96
104
  }
97
105
  declare class DynamicTypeMapper {