@tsonic/efcore-sqlserver 10.0.40 → 10.0.42

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 (163) hide show
  1. package/Azure/internal/index.d.ts +68 -70
  2. package/Azure.Core/bindings.json +2859 -2859
  3. package/Azure.Core/internal/index.d.ts +100 -102
  4. package/Azure.Core.Cryptography/internal/index.d.ts +3 -2
  5. package/Azure.Core.Cryptography.d.ts +4 -0
  6. package/Azure.Core.Diagnostics/internal/index.d.ts +3 -2
  7. package/Azure.Core.Diagnostics.d.ts +4 -0
  8. package/Azure.Core.Extensions/internal/index.d.ts +12 -10
  9. package/Azure.Core.Extensions.d.ts +6 -2
  10. package/Azure.Core.GeoJson/internal/index.d.ts +20 -22
  11. package/Azure.Core.GeoJson.d.ts +4 -0
  12. package/Azure.Core.Pipeline/internal/index.d.ts +20 -19
  13. package/Azure.Core.Pipeline.d.ts +4 -0
  14. package/Azure.Core.Serialization/internal/index.d.ts +15 -14
  15. package/Azure.Core.Serialization.d.ts +4 -0
  16. package/Azure.Core.d.ts +7 -3
  17. package/Azure.Identity/internal/index.d.ts +3 -2
  18. package/Azure.Identity.d.ts +4 -0
  19. package/Azure.Messaging/internal/index.d.ts +16 -15
  20. package/Azure.Messaging.d.ts +4 -0
  21. package/Azure.d.ts +8 -4
  22. package/Microsoft.Data/internal/index.d.ts +3 -2
  23. package/Microsoft.Data.Sql/internal/index.d.ts +3 -2
  24. package/Microsoft.Data.Sql.d.ts +4 -0
  25. package/Microsoft.Data.SqlClient/internal/index.d.ts +7 -9
  26. package/Microsoft.Data.SqlClient.DataClassification/internal/index.d.ts +3 -2
  27. package/Microsoft.Data.SqlClient.DataClassification.d.ts +4 -0
  28. package/Microsoft.Data.SqlClient.Diagnostics/internal/index.d.ts +3 -2
  29. package/Microsoft.Data.SqlClient.Diagnostics.d.ts +4 -0
  30. package/Microsoft.Data.SqlClient.Server/internal/index.d.ts +3 -2
  31. package/Microsoft.Data.SqlClient.Server.d.ts +4 -0
  32. package/Microsoft.Data.SqlClient.d.ts +4 -0
  33. package/Microsoft.Data.SqlTypes/bindings.json +4 -1
  34. package/Microsoft.Data.SqlTypes/internal/index.d.ts +8 -7
  35. package/Microsoft.Data.SqlTypes.d.ts +4 -0
  36. package/Microsoft.Data.d.ts +4 -0
  37. package/Microsoft.EntityFrameworkCore/internal/index.d.ts +200 -202
  38. package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +3 -2
  39. package/Microsoft.EntityFrameworkCore.Diagnostics.d.ts +4 -0
  40. package/Microsoft.EntityFrameworkCore.Infrastructure/internal/index.d.ts +10 -9
  41. package/Microsoft.EntityFrameworkCore.Infrastructure.d.ts +4 -0
  42. package/Microsoft.EntityFrameworkCore.Metadata/internal/index.d.ts +3 -2
  43. package/Microsoft.EntityFrameworkCore.Metadata.Builders/internal/index.d.ts +23 -22
  44. package/Microsoft.EntityFrameworkCore.Metadata.Builders.d.ts +6 -2
  45. package/Microsoft.EntityFrameworkCore.Metadata.Conventions/internal/index.d.ts +20 -22
  46. package/Microsoft.EntityFrameworkCore.Metadata.Conventions.d.ts +4 -0
  47. package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +2 -4
  48. package/Microsoft.EntityFrameworkCore.Metadata.Internal.d.ts +4 -0
  49. package/Microsoft.EntityFrameworkCore.Metadata.d.ts +4 -0
  50. package/Microsoft.EntityFrameworkCore.Migrations/internal/index.d.ts +45 -44
  51. package/Microsoft.EntityFrameworkCore.Migrations.Operations/internal/index.d.ts +5 -4
  52. package/Microsoft.EntityFrameworkCore.Migrations.Operations.d.ts +4 -0
  53. package/Microsoft.EntityFrameworkCore.Migrations.d.ts +4 -0
  54. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal/internal/index.d.ts +5 -4
  55. package/Microsoft.EntityFrameworkCore.SqlServer.Design.Internal.d.ts +4 -0
  56. package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal/internal/index.d.ts +26 -25
  57. package/Microsoft.EntityFrameworkCore.SqlServer.Diagnostics.Internal.d.ts +4 -0
  58. package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal/internal/index.d.ts +27 -26
  59. package/Microsoft.EntityFrameworkCore.SqlServer.Extensions.Internal.d.ts +5 -1
  60. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal/internal/index.d.ts +16 -18
  61. package/Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.d.ts +5 -1
  62. package/Microsoft.EntityFrameworkCore.SqlServer.Internal/internal/index.d.ts +50 -49
  63. package/Microsoft.EntityFrameworkCore.SqlServer.Internal.d.ts +4 -0
  64. package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal/internal/index.d.ts +3 -2
  65. package/Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal.d.ts +4 -0
  66. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal/internal/index.d.ts +4 -3
  67. package/Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal.d.ts +4 -0
  68. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/bindings.json +418 -418
  69. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal/internal/index.d.ts +96 -98
  70. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions/internal/index.d.ts +4 -3
  71. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlExpressions.d.ts +4 -0
  72. package/Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.d.ts +8 -4
  73. package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal/internal/index.d.ts +9 -8
  74. package/Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal.d.ts +5 -1
  75. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal/internal/index.d.ts +18 -20
  76. package/Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.d.ts +6 -2
  77. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal/internal/index.d.ts +8 -10
  78. package/Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.d.ts +4 -0
  79. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal/internal/index.d.ts +10 -12
  80. package/Microsoft.EntityFrameworkCore.SqlServer.ValueGeneration.Internal.d.ts +4 -0
  81. package/Microsoft.EntityFrameworkCore.d.ts +4 -0
  82. package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +6 -5
  83. package/Microsoft.Extensions.DependencyInjection.d.ts +4 -0
  84. package/Microsoft.Identity.Client/bindings.json +100 -100
  85. package/Microsoft.Identity.Client/internal/index.d.ts +33 -35
  86. package/Microsoft.Identity.Client.Advanced/internal/index.d.ts +4 -3
  87. package/Microsoft.Identity.Client.Advanced.d.ts +4 -0
  88. package/Microsoft.Identity.Client.AppConfig/internal/index.d.ts +3 -2
  89. package/Microsoft.Identity.Client.AppConfig.d.ts +4 -0
  90. package/Microsoft.Identity.Client.AuthScheme/internal/index.d.ts +3 -2
  91. package/Microsoft.Identity.Client.AuthScheme.PoP/internal/index.d.ts +3 -2
  92. package/Microsoft.Identity.Client.AuthScheme.PoP.d.ts +4 -0
  93. package/Microsoft.Identity.Client.AuthScheme.d.ts +4 -0
  94. package/Microsoft.Identity.Client.Cache/internal/index.d.ts +3 -2
  95. package/Microsoft.Identity.Client.Cache.d.ts +4 -0
  96. package/Microsoft.Identity.Client.Extensibility/internal/index.d.ts +8 -7
  97. package/Microsoft.Identity.Client.Extensibility.d.ts +4 -0
  98. package/Microsoft.Identity.Client.Extensions.Msal/internal/index.d.ts +3 -2
  99. package/Microsoft.Identity.Client.Extensions.Msal.d.ts +4 -0
  100. package/Microsoft.Identity.Client.Kerberos/internal/index.d.ts +3 -2
  101. package/Microsoft.Identity.Client.Kerberos.d.ts +4 -0
  102. package/Microsoft.Identity.Client.ManagedIdentity/internal/index.d.ts +3 -2
  103. package/Microsoft.Identity.Client.ManagedIdentity.d.ts +4 -0
  104. package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos/internal/index.d.ts +3 -2
  105. package/Microsoft.Identity.Client.Platforms.Features.DesktopOs.Kerberos.d.ts +4 -0
  106. package/Microsoft.Identity.Client.RP/internal/index.d.ts +3 -2
  107. package/Microsoft.Identity.Client.RP.d.ts +4 -0
  108. package/Microsoft.Identity.Client.Region/internal/index.d.ts +3 -2
  109. package/Microsoft.Identity.Client.Region.d.ts +4 -0
  110. package/Microsoft.Identity.Client.SSHCertificates/internal/index.d.ts +3 -2
  111. package/Microsoft.Identity.Client.SSHCertificates.d.ts +4 -0
  112. package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient/internal/index.d.ts +3 -2
  113. package/Microsoft.Identity.Client.TelemetryCore.TelemetryClient.d.ts +4 -0
  114. package/Microsoft.Identity.Client.Utils/internal/index.d.ts +3 -2
  115. package/Microsoft.Identity.Client.Utils.Windows/internal/index.d.ts +3 -2
  116. package/Microsoft.Identity.Client.Utils.Windows.d.ts +4 -0
  117. package/Microsoft.Identity.Client.Utils.d.ts +4 -0
  118. package/Microsoft.Identity.Client.d.ts +5 -1
  119. package/Microsoft.IdentityModel.Abstractions/internal/index.d.ts +11 -10
  120. package/Microsoft.IdentityModel.Abstractions.d.ts +4 -0
  121. package/Microsoft.IdentityModel.JsonWebTokens/internal/index.d.ts +8 -10
  122. package/Microsoft.IdentityModel.JsonWebTokens.d.ts +4 -0
  123. package/Microsoft.IdentityModel.Logging/internal/index.d.ts +19 -18
  124. package/Microsoft.IdentityModel.Logging.d.ts +4 -0
  125. package/Microsoft.IdentityModel.Protocols/internal/index.d.ts +22 -21
  126. package/Microsoft.IdentityModel.Protocols.Configuration/internal/index.d.ts +3 -2
  127. package/Microsoft.IdentityModel.Protocols.Configuration.d.ts +4 -0
  128. package/Microsoft.IdentityModel.Protocols.OpenIdConnect/internal/index.d.ts +3 -2
  129. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration/internal/index.d.ts +3 -2
  130. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.Configuration.d.ts +4 -0
  131. package/Microsoft.IdentityModel.Protocols.OpenIdConnect.d.ts +4 -0
  132. package/Microsoft.IdentityModel.Protocols.d.ts +7 -3
  133. package/Microsoft.IdentityModel.Tokens/internal/index.d.ts +3 -5
  134. package/Microsoft.IdentityModel.Tokens.Configuration/internal/index.d.ts +3 -2
  135. package/Microsoft.IdentityModel.Tokens.Configuration.d.ts +4 -0
  136. package/Microsoft.IdentityModel.Tokens.d.ts +4 -0
  137. package/Microsoft.SqlServer.Server/internal/index.d.ts +3 -2
  138. package/Microsoft.SqlServer.Server.d.ts +4 -0
  139. package/README.md +36 -13
  140. package/System/internal/index.d.ts +20 -19
  141. package/System.ClientModel/internal/index.d.ts +23 -25
  142. package/System.ClientModel.Primitives/internal/index.d.ts +73 -75
  143. package/System.ClientModel.Primitives.d.ts +6 -2
  144. package/System.ClientModel.d.ts +6 -2
  145. package/System.Configuration/internal/index.d.ts +3 -2
  146. package/System.Configuration.Internal/internal/index.d.ts +2 -4
  147. package/System.Configuration.Internal.d.ts +4 -0
  148. package/System.Configuration.Provider/internal/index.d.ts +3 -2
  149. package/System.Configuration.Provider.d.ts +4 -0
  150. package/System.Configuration.d.ts +4 -0
  151. package/System.Diagnostics/internal/index.d.ts +3 -2
  152. package/System.Diagnostics.d.ts +4 -0
  153. package/System.Drawing.Configuration/internal/index.d.ts +3 -2
  154. package/System.Drawing.Configuration.d.ts +4 -0
  155. package/System.IdentityModel.Tokens.Jwt/internal/index.d.ts +3 -5
  156. package/System.IdentityModel.Tokens.Jwt.d.ts +4 -0
  157. package/System.Security.Cryptography/internal/index.d.ts +5 -4
  158. package/System.Security.Cryptography.d.ts +4 -0
  159. package/System.Text.Json.Serialization/internal/index.d.ts +3 -5
  160. package/System.Text.Json.Serialization.d.ts +4 -0
  161. package/System.d.ts +4 -0
  162. package/__internal/extensions/index.d.ts +222 -224
  163. package/package.json +5 -5
package/README.md CHANGED
@@ -1,40 +1,40 @@
1
1
  # @tsonic/efcore-sqlserver
2
2
 
3
- TypeScript type definitions for **EF Core SQL Server provider** (`Microsoft.EntityFrameworkCore.SqlServer` + dependencies) for **.NET 10**.
3
+ TypeScript declarations and CLR binding metadata for the EF Core SQL Server
4
+ provider (`Microsoft.EntityFrameworkCore.SqlServer`) on .NET 10.
4
5
 
5
- Generated by `tsbindgen` from NuGet assemblies and intended for use with the **Tsonic** compiler (TypeScript → .NET).
6
+ This is a generated binding package. It exposes provider APIs to TypeScript and
7
+ Tsonic while your workspace references the real NuGet assemblies.
6
8
 
7
- ## What this package is (and isn’t)
8
-
9
- - ✅ TypeScript bindings for the **SQL Server provider** (and its required dependency assemblies).
10
- - ❌ Not a JavaScript runtime module (the `.js` files are module stubs for type-only use).
11
- - ✅ You still need the real **.NET assemblies** via NuGet in your Tsonic workspace.
12
-
13
- ## Install (types)
9
+ ## Install
14
10
 
15
11
  ```bash
16
12
  npm install @tsonic/efcore-sqlserver @tsonic/efcore @tsonic/dotnet @tsonic/core
17
13
  ```
18
14
 
19
- ## Use with Tsonic (recommended)
15
+ ## Use with Tsonic
20
16
 
21
17
  ```bash
22
18
  tsonic add nuget Microsoft.EntityFrameworkCore.SqlServer <version> @tsonic/efcore-sqlserver
19
+ tsonic restore
23
20
  ```
24
21
 
25
22
  ## Imports
26
23
 
24
+ Provider APIs are exported from the generated `Microsoft.EntityFrameworkCore`
25
+ namespace facade:
26
+
27
27
  ```ts
28
28
  import { SqlServerDbContextOptionsExtensions } from "@tsonic/efcore-sqlserver/Microsoft.EntityFrameworkCore.js";
29
29
  ```
30
30
 
31
- You’ll typically also import EF Core base types from `@tsonic/efcore`:
31
+ Use EF Core base types from `@tsonic/efcore`:
32
32
 
33
33
  ```ts
34
34
  import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
35
35
  ```
36
36
 
37
- ## Example (UseSqlServer)
37
+ ## UseSqlServer example
38
38
 
39
39
  ```ts
40
40
  import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
@@ -45,12 +45,35 @@ SqlServerDbContextOptionsExtensions.UseSqlServer(builder, "Server=.;Database=app
45
45
  const options = builder.Options;
46
46
  ```
47
47
 
48
+ ## Package shape
49
+
50
+ The package contains generated namespace facades, ESM stubs, internal
51
+ declarations, extension buckets, and `bindings.json` compiler metadata. It uses
52
+ `@tsonic/efcore`, `@tsonic/microsoft-extensions`, `@tsonic/dotnet`, and
53
+ `@tsonic/core` as peer packages for shared CLR types.
54
+
55
+ Generated CLR object slots use TypeScript `unknown`; value-type constraints use
56
+ `NonNullable<unknown>`. Provider code that receives a broad CLR value should
57
+ narrow it through a proven API before member access.
58
+
48
59
  ## Versioning
49
60
 
50
- This repo is versioned by **.NET major**:
61
+ This repo is versioned by .NET major:
51
62
 
52
63
  - .NET 10 → npm: `@tsonic/efcore-sqlserver@10.x`
53
64
 
65
+ ## Development
66
+
67
+ Regenerate from sibling checkouts:
68
+
69
+ ```bash
70
+ npm install
71
+ ./__build/scripts/generate.sh
72
+ ```
73
+
74
+ The generation script requires .NET 10, `../tsbindgen`, `../dotnet`,
75
+ `../microsoft-extensions`, and `../efcore`.
76
+
54
77
  ## License
55
78
 
56
79
  MIT
@@ -2,8 +2,9 @@
2
2
  // Namespace: System
3
3
  // Assembly: System.ComponentModel, System.ComponentModel.TypeConverter, System.Configuration.ConfigurationManager, System.Console, System.Memory, System.Memory.Data, System.Private.CoreLib, System.Private.Uri
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import type { Stream } from "@tsonic/dotnet/System.IO/internal/index.js";
@@ -27,40 +28,40 @@ export interface BinaryData$instance {
27
28
 
28
29
  readonly IsEmpty: boolean;
29
30
  readonly Length: int;
30
- readonly MediaType: string | undefined;
31
- Equals(obj: unknown): boolean;
31
+ readonly MediaType: string | null;
32
+ Equals(obj: unknown | null): boolean;
32
33
  GetHashCode(): int;
33
34
  ToArray(): byte[];
34
35
  ToMemory(): ReadOnlyMemory_1<Byte>;
35
- ToObjectFromJson<T>(options?: JsonSerializerOptions): T | undefined;
36
- ToObjectFromJson<T>(jsonTypeInfo: JsonTypeInfo_1<T>): T | undefined;
36
+ ToObjectFromJson<T extends unknown>(options?: JsonSerializerOptions | null): T | null;
37
+ ToObjectFromJson<T extends unknown>(jsonTypeInfo: JsonTypeInfo_1<T>): T | null;
37
38
  ToStream(): Stream;
38
39
  ToString(): string;
39
- WithMediaType(mediaType: string): BinaryData;
40
+ WithMediaType(mediaType: string | null): BinaryData;
40
41
  }
41
42
 
42
43
 
43
44
  export const BinaryData: {
44
45
  new(data: byte[]): BinaryData;
45
- new(data: byte[], mediaType: string): BinaryData;
46
- new(jsonSerializable: unknown, options: JsonSerializerOptions, type: Type): BinaryData;
47
- new(jsonSerializable: unknown, context: JsonSerializerContext, type: Type): BinaryData;
46
+ new(data: byte[], mediaType: string | null): BinaryData;
47
+ new(jsonSerializable: unknown | null, options: JsonSerializerOptions | null, type: Type | null): BinaryData;
48
+ new(jsonSerializable: unknown | null, context: JsonSerializerContext, type: Type | null): BinaryData;
48
49
  new(data: ReadOnlyMemory_1<Byte>): BinaryData;
49
- new(data: ReadOnlyMemory_1<Byte>, mediaType: string): BinaryData;
50
+ new(data: ReadOnlyMemory_1<Byte>, mediaType: string | null): BinaryData;
50
51
  new(data: string): BinaryData;
51
- new(data: string, mediaType: string): BinaryData;
52
+ new(data: string, mediaType: string | null): BinaryData;
52
53
  readonly Empty: BinaryData;
53
- FromBytes(data: byte[], mediaType: string): BinaryData;
54
+ FromBytes(data: byte[], mediaType: string | null): BinaryData;
54
55
  FromBytes(data: byte[]): BinaryData;
55
- FromBytes(data: ReadOnlyMemory_1<Byte>, mediaType: string): BinaryData;
56
+ FromBytes(data: ReadOnlyMemory_1<Byte>, mediaType: string | null): BinaryData;
56
57
  FromBytes(data: ReadOnlyMemory_1<Byte>): BinaryData;
57
- FromObjectAsJson<T>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryData;
58
- FromObjectAsJson<T>(jsonSerializable: T, options?: JsonSerializerOptions): BinaryData;
59
- FromStream(stream: Stream, mediaType: string): BinaryData;
58
+ FromObjectAsJson<T extends unknown>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryData;
59
+ FromObjectAsJson<T extends unknown>(jsonSerializable: T, options?: JsonSerializerOptions | null): BinaryData;
60
+ FromStream(stream: Stream, mediaType: string | null): BinaryData;
60
61
  FromStream(stream: Stream): BinaryData;
61
- FromStreamAsync(stream: Stream, mediaType: string, cancellationToken?: CancellationToken): Task_1<BinaryData>;
62
+ FromStreamAsync(stream: Stream, mediaType: string | null, cancellationToken?: CancellationToken): Task_1<BinaryData>;
62
63
  FromStreamAsync(stream: Stream, cancellationToken?: CancellationToken): Task_1<BinaryData>;
63
- FromString(data: string, mediaType: string): BinaryData;
64
+ FromString(data: string, mediaType: string | null): BinaryData;
64
65
  FromString(data: string): BinaryData;
65
66
  };
66
67
 
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.ClientModel
3
3
  // Assembly: System.ClientModel
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as System_ClientModel_Primitives_Internal from "../../System.ClientModel.Primitives/internal/index.js";
@@ -41,7 +39,7 @@ export const ApiKeyCredential: {
41
39
 
42
40
  export type ApiKeyCredential = ApiKeyCredential$instance;
43
41
 
44
- export interface AsyncCollectionResult_1$instance<T> extends AsyncCollectionResult {
42
+ export interface AsyncCollectionResult_1$instance<T extends unknown> extends AsyncCollectionResult {
45
43
  readonly __tsonic_type_System_ClientModel_AsyncCollectionResult_1: never;
46
44
 
47
45
  readonly __tsonic_iface_System_Collections_Generic_IAsyncEnumerable_1: never;
@@ -51,16 +49,16 @@ export interface AsyncCollectionResult_1$instance<T> extends AsyncCollectionResu
51
49
  }
52
50
 
53
51
 
54
- export const AsyncCollectionResult_1: (abstract new<T>() => AsyncCollectionResult_1<T>) & {
52
+ export const AsyncCollectionResult_1: (abstract new<T extends unknown>() => AsyncCollectionResult_1<T>) & {
55
53
  };
56
54
 
57
55
 
58
- export type AsyncCollectionResult_1<T> = AsyncCollectionResult_1$instance<T>;
56
+ export type AsyncCollectionResult_1<T extends unknown> = AsyncCollectionResult_1$instance<T>;
59
57
 
60
58
  export interface AuthenticationTokenProvider$instance {
61
59
  readonly __tsonic_type_System_ClientModel_AuthenticationTokenProvider: never;
62
60
 
63
- CreateTokenOptions(properties: IReadOnlyDictionary_2<System_Internal.String, unknown>): GetTokenOptions | undefined;
61
+ CreateTokenOptions(properties: IReadOnlyDictionary_2<System_Internal.String, unknown>): GetTokenOptions | null;
64
62
  GetToken(options: GetTokenOptions, cancellationToken: CancellationToken): AuthenticationToken;
65
63
  GetTokenAsync(options: GetTokenOptions, cancellationToken: CancellationToken): ValueTask_1<AuthenticationToken>;
66
64
  }
@@ -77,8 +75,8 @@ export interface BinaryContent$instance {
77
75
 
78
76
  readonly __tsonic_iface_System_IDisposable: never;
79
77
 
80
- get MediaType(): string | undefined;
81
- set MediaType(value: string | undefined);
78
+ get MediaType(): string | null;
79
+ set MediaType(value: string | null);
82
80
  Dispose(): void;
83
81
  TryComputeLength(length: long): boolean;
84
82
  WriteTo(stream: Stream, cancellationToken?: CancellationToken): void;
@@ -89,10 +87,10 @@ export interface BinaryContent$instance {
89
87
  export const BinaryContent: (abstract new() => BinaryContent) & {
90
88
  Create(value: BinaryData): BinaryContent;
91
89
  Create(stream: Stream): BinaryContent;
92
- Create<T extends IPersistableModel_1<T>>(model: T, options?: ModelReaderWriterOptions): BinaryContent;
90
+ Create<T extends unknown & IPersistableModel_1<T>>(model: T, options?: ModelReaderWriterOptions | null): BinaryContent;
93
91
  CreateJson(jsonString: string, validate?: boolean): BinaryContent;
94
- CreateJson<T>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryContent;
95
- CreateJson<T>(jsonSerializable: T, options?: JsonSerializerOptions): BinaryContent;
92
+ CreateJson<T extends unknown>(jsonSerializable: T, jsonTypeInfo: JsonTypeInfo_1<T>): BinaryContent;
93
+ CreateJson<T extends unknown>(jsonSerializable: T, options?: JsonSerializerOptions | null): BinaryContent;
96
94
  };
97
95
 
98
96
 
@@ -106,26 +104,26 @@ export interface ClientResult$instance {
106
104
 
107
105
 
108
106
  export const ClientResult: (abstract new(response: PipelineResponse) => ClientResult) & {
109
- FromOptionalValue<T>(value: T, response: PipelineResponse): ClientResult_1<T | undefined>;
107
+ FromOptionalValue<T extends unknown>(value: T | null, response: PipelineResponse): ClientResult_1<T | null>;
110
108
  FromResponse(response: PipelineResponse): ClientResult;
111
- FromValue<T>(value: T, response: PipelineResponse): ClientResult_1<T>;
109
+ FromValue<T extends unknown>(value: T, response: PipelineResponse): ClientResult_1<T>;
112
110
  };
113
111
 
114
112
 
115
113
  export type ClientResult = ClientResult$instance;
116
114
 
117
- export interface ClientResult_1$instance<T> extends ClientResult {
115
+ export interface ClientResult_1$instance<T extends unknown> extends ClientResult {
118
116
  readonly __tsonic_type_System_ClientModel_ClientResult_1: never;
119
117
 
120
118
  readonly Value: T;
121
119
  }
122
120
 
123
121
 
124
- export const ClientResult_1: (abstract new<T>(value: T, response: PipelineResponse) => ClientResult_1<T>) & {
122
+ export const ClientResult_1: (abstract new<T extends unknown>(value: T, response: PipelineResponse) => ClientResult_1<T>) & {
125
123
  };
126
124
 
127
125
 
128
- export type ClientResult_1<T> = ClientResult_1$instance<T>;
126
+ export type ClientResult_1<T extends unknown> = ClientResult_1$instance<T>;
129
127
 
130
128
  export interface ClientResultException$instance extends Exception {
131
129
  readonly __tsonic_type_System_ClientModel_ClientResultException: never;
@@ -133,20 +131,20 @@ export interface ClientResultException$instance extends Exception {
133
131
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
134
132
 
135
133
  Status: int;
136
- GetRawResponse(): PipelineResponse | undefined;
134
+ GetRawResponse(): PipelineResponse | null;
137
135
  }
138
136
 
139
137
 
140
138
  export const ClientResultException: {
141
- new(response: PipelineResponse, innerException: Exception): ClientResultException;
142
- new(message: string, response: PipelineResponse, innerException: Exception): ClientResultException;
143
- CreateAsync(response: PipelineResponse, innerException?: Exception): Task_1<ClientResultException>;
139
+ new(response: PipelineResponse, innerException: Exception | null): ClientResultException;
140
+ new(message: string, response: PipelineResponse | null, innerException: Exception | null): ClientResultException;
141
+ CreateAsync(response: PipelineResponse, innerException?: Exception | null): Task_1<ClientResultException>;
144
142
  };
145
143
 
146
144
 
147
145
  export type ClientResultException = ClientResultException$instance;
148
146
 
149
- export interface CollectionResult_1$instance<T> extends CollectionResult {
147
+ export interface CollectionResult_1$instance<T extends unknown> extends CollectionResult {
150
148
  readonly __tsonic_type_System_ClientModel_CollectionResult_1: never;
151
149
 
152
150
  readonly __tsonic_iface_System_Collections_Generic_IEnumerable_1: never;
@@ -157,11 +155,11 @@ export interface CollectionResult_1$instance<T> extends CollectionResult {
157
155
  }
158
156
 
159
157
 
160
- export const CollectionResult_1: (abstract new<T>() => CollectionResult_1<T>) & {
158
+ export const CollectionResult_1: (abstract new<T extends unknown>() => CollectionResult_1<T>) & {
161
159
  };
162
160
 
163
161
 
164
- export type CollectionResult_1<T> = CollectionResult_1$instance<T>;
162
+ export type CollectionResult_1<T extends unknown> = CollectionResult_1$instance<T>;
165
163
 
166
164
  export interface ContinuationToken$instance {
167
165
  readonly __tsonic_type_System_ClientModel_ContinuationToken: never;