@tsonic/dotnet 10.0.39 → 10.0.41

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 (187) hide show
  1. package/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Net.NetworkInformation
3
3
  // Assembly: System.Net.NetworkInformation, System.Net.Ping, System.Net.Primitives
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 { JsValue, 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_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -168,13 +166,13 @@ export enum TcpState {
168
166
  }
169
167
 
170
168
 
171
- export type NetworkAddressChangedEventHandler = (sender: unknown, e: EventArgs) => void;
169
+ export type NetworkAddressChangedEventHandler = (sender: JsValue | null, e: EventArgs) => void;
172
170
 
173
171
 
174
- export type NetworkAvailabilityChangedEventHandler = (sender: unknown, e: NetworkAvailabilityEventArgs) => void;
172
+ export type NetworkAvailabilityChangedEventHandler = (sender: JsValue | null, e: NetworkAvailabilityEventArgs) => void;
175
173
 
176
174
 
177
- export type PingCompletedEventHandler = (sender: unknown, e: PingCompletedEventArgs) => void;
175
+ export type PingCompletedEventHandler = (sender: JsValue, e: PingCompletedEventArgs) => void;
178
176
 
179
177
 
180
178
  export interface GatewayIPAddressInformation$instance {
@@ -388,7 +386,7 @@ export interface IPGlobalProperties$instance {
388
386
  readonly HostName: string;
389
387
  readonly IsWinsProxy: boolean;
390
388
  readonly NodeType: NetBiosNodeType;
391
- BeginGetUnicastAddresses(callback: AsyncCallback, state: unknown): IAsyncResult;
389
+ BeginGetUnicastAddresses(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
392
390
  EndGetUnicastAddresses(asyncResult: IAsyncResult): UnicastIPAddressInformationCollection;
393
391
  GetActiveTcpConnections(): TcpConnectionInformation[];
394
392
  GetActiveTcpListeners(): IPEndPoint[];
@@ -683,7 +681,7 @@ export type NetworkInterface = NetworkInterface$instance;
683
681
  export interface PhysicalAddress$instance {
684
682
  readonly __tsonic_type_System_Net_NetworkInformation_PhysicalAddress: never;
685
683
 
686
- Equals(comparand: unknown): boolean;
684
+ Equals(comparand: JsValue | null): boolean;
687
685
  GetAddressBytes(): byte[];
688
686
  GetHashCode(): int;
689
687
  ToString(): string;
@@ -694,9 +692,9 @@ export const PhysicalAddress: {
694
692
  new(address: byte[]): PhysicalAddress;
695
693
  readonly None: PhysicalAddress;
696
694
  Parse(address: ReadOnlySpan_1<System_Internal.Char>): PhysicalAddress;
697
- Parse(address: string): PhysicalAddress;
698
- TryParse(address: ReadOnlySpan_1<System_Internal.Char>, value: PhysicalAddress): boolean;
699
- TryParse(address: string, value: PhysicalAddress): boolean;
695
+ Parse(address: string | null): PhysicalAddress;
696
+ TryParse(address: ReadOnlySpan_1<System_Internal.Char>, value: PhysicalAddress | null): boolean;
697
+ TryParse(address: string | null, value: PhysicalAddress | null): boolean;
700
698
  };
701
699
 
702
700
 
@@ -716,18 +714,18 @@ export interface Ping$instance extends Component {
716
714
  Send(address: IPAddress, timeout: int): PingReply;
717
715
  Send(hostNameOrAddress: string, timeout: int, buffer: byte[]): PingReply;
718
716
  Send(address: IPAddress, timeout: int, buffer: byte[]): PingReply;
719
- Send(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions): PingReply;
720
- Send(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions): PingReply;
721
- Send(address: IPAddress, timeout: TimeSpan, buffer?: byte[], options?: PingOptions): PingReply;
722
- Send(hostNameOrAddress: string, timeout: TimeSpan, buffer?: byte[], options?: PingOptions): PingReply;
723
- SendAsync(hostNameOrAddress: string, userToken: unknown): void;
724
- SendAsync(hostNameOrAddress: string, timeout: int, userToken: unknown): void;
725
- SendAsync(address: IPAddress, userToken: unknown): void;
726
- SendAsync(address: IPAddress, timeout: int, userToken: unknown): void;
727
- SendAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], userToken: unknown): void;
728
- SendAsync(address: IPAddress, timeout: int, buffer: byte[], userToken: unknown): void;
729
- SendAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions, userToken: unknown): void;
730
- SendAsync(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions, userToken: unknown): void;
717
+ Send(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions | null): PingReply;
718
+ Send(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions | null): PingReply;
719
+ Send(address: IPAddress, timeout: TimeSpan, buffer?: byte[] | null, options?: PingOptions | null): PingReply;
720
+ Send(hostNameOrAddress: string, timeout: TimeSpan, buffer?: byte[] | null, options?: PingOptions | null): PingReply;
721
+ SendAsync(hostNameOrAddress: string, userToken: JsValue | null): void;
722
+ SendAsync(hostNameOrAddress: string, timeout: int, userToken: JsValue | null): void;
723
+ SendAsync(address: IPAddress, userToken: JsValue | null): void;
724
+ SendAsync(address: IPAddress, timeout: int, userToken: JsValue | null): void;
725
+ SendAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], userToken: JsValue | null): void;
726
+ SendAsync(address: IPAddress, timeout: int, buffer: byte[], userToken: JsValue | null): void;
727
+ SendAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions | null, userToken: JsValue | null): void;
728
+ SendAsync(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions | null, userToken: JsValue | null): void;
731
729
  SendAsyncCancel(): void;
732
730
  SendPingAsync(address: IPAddress): Task_1<PingReply>;
733
731
  SendPingAsync(hostNameOrAddress: string): Task_1<PingReply>;
@@ -735,10 +733,10 @@ export interface Ping$instance extends Component {
735
733
  SendPingAsync(hostNameOrAddress: string, timeout: int): Task_1<PingReply>;
736
734
  SendPingAsync(address: IPAddress, timeout: int, buffer: byte[]): Task_1<PingReply>;
737
735
  SendPingAsync(hostNameOrAddress: string, timeout: int, buffer: byte[]): Task_1<PingReply>;
738
- SendPingAsync(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions): Task_1<PingReply>;
739
- SendPingAsync(address: IPAddress, timeout: TimeSpan, buffer?: byte[], options?: PingOptions, cancellationToken?: CancellationToken): Task_1<PingReply>;
740
- SendPingAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions): Task_1<PingReply>;
741
- SendPingAsync(hostNameOrAddress: string, timeout: TimeSpan, buffer?: byte[], options?: PingOptions, cancellationToken?: CancellationToken): Task_1<PingReply>;
736
+ SendPingAsync(address: IPAddress, timeout: int, buffer: byte[], options: PingOptions | null): Task_1<PingReply>;
737
+ SendPingAsync(address: IPAddress, timeout: TimeSpan, buffer?: byte[] | null, options?: PingOptions | null, cancellationToken?: CancellationToken): Task_1<PingReply>;
738
+ SendPingAsync(hostNameOrAddress: string, timeout: int, buffer: byte[], options: PingOptions | null): Task_1<PingReply>;
739
+ SendPingAsync(hostNameOrAddress: string, timeout: TimeSpan, buffer?: byte[] | null, options?: PingOptions | null, cancellationToken?: CancellationToken): Task_1<PingReply>;
742
740
  }
743
741
 
744
742
 
@@ -758,7 +756,7 @@ export type Ping = Ping$instance & __Ping$views;
758
756
  export interface PingCompletedEventArgs$instance extends AsyncCompletedEventArgs {
759
757
  readonly __tsonic_type_System_Net_NetworkInformation_PingCompletedEventArgs: never;
760
758
 
761
- readonly Reply: PingReply | undefined;
759
+ readonly Reply: PingReply | null;
762
760
  }
763
761
 
764
762
 
@@ -777,8 +775,8 @@ export interface PingException$instance extends InvalidOperationException, Syste
777
775
 
778
776
 
779
777
  export const PingException: {
780
- new(message: string): PingException;
781
- new(message: string, innerException: Exception): PingException;
778
+ new(message: string | null): PingException;
779
+ new(message: string | null, innerException: Exception | null): PingException;
782
780
  };
783
781
 
784
782
 
@@ -810,7 +808,7 @@ export interface PingReply$instance {
810
808
 
811
809
  readonly Address: IPAddress;
812
810
  readonly Buffer: byte[];
813
- readonly Options: PingOptions | undefined;
811
+ readonly Options: PingOptions | null;
814
812
  readonly RoundtripTime: long;
815
813
  readonly Status: IPStatus;
816
814
  }
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Net.Quic
3
3
  // Assembly: System.Net.Quic
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 { JsValue, 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 { List_1 } from "../../System.Collections.Generic/internal/index.js";
@@ -70,8 +71,8 @@ export interface QuicClientConnectionOptions$instance extends QuicConnectionOpti
70
71
  readonly __tsonic_type_System_Net_Quic_QuicClientConnectionOptions: never;
71
72
 
72
73
  ClientAuthenticationOptions: SslClientAuthenticationOptions;
73
- get LocalEndPoint(): IPEndPoint | undefined;
74
- set LocalEndPoint(value: IPEndPoint | undefined);
74
+ get LocalEndPoint(): IPEndPoint | null;
75
+ set LocalEndPoint(value: IPEndPoint | null);
75
76
  RemoteEndPoint: EndPoint;
76
77
  }
77
78
 
@@ -91,7 +92,7 @@ export interface QuicConnection$instance extends System_Internal.IAsyncDisposabl
91
92
  readonly LocalEndPoint: IPEndPoint;
92
93
  readonly NegotiatedApplicationProtocol: SslApplicationProtocol;
93
94
  readonly NegotiatedCipherSuite: TlsCipherSuite;
94
- readonly RemoteCertificate: X509Certificate | undefined;
95
+ readonly RemoteCertificate: X509Certificate | null;
95
96
  readonly RemoteEndPoint: IPEndPoint;
96
97
  readonly SslProtocol: SslProtocols;
97
98
  readonly TargetHostName: string;
@@ -127,8 +128,8 @@ export interface QuicConnectionOptions$instance {
127
128
  KeepAliveInterval: TimeSpan;
128
129
  MaxInboundBidirectionalStreams: int;
129
130
  MaxInboundUnidirectionalStreams: int;
130
- get StreamCapacityCallback(): Action_2<QuicConnection, QuicStreamCapacityChangedArgs> | undefined;
131
- set StreamCapacityCallback(value: Action_2<QuicConnection, QuicStreamCapacityChangedArgs> | undefined);
131
+ get StreamCapacityCallback(): Action_2<QuicConnection, QuicStreamCapacityChangedArgs> | null;
132
+ set StreamCapacityCallback(value: Action_2<QuicConnection, QuicStreamCapacityChangedArgs> | null);
132
133
  }
133
134
 
134
135
 
@@ -253,8 +254,8 @@ export interface QuicStream$instance extends Stream {
253
254
  readonly WritesClosed: Task;
254
255
  WriteTimeout: int;
255
256
  Abort(abortDirection: QuicAbortDirection, errorCode: long): void;
256
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
257
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
257
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
258
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
258
259
  CompleteWrites(): void;
259
260
  Dispose(disposing: boolean): void;
260
261
  Dispose(): void;
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Net.Security
3
3
  // Assembly: System.Net.Primitives, System.Net.Security
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 { JsValue, 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 type { IBufferWriter_1 } from "../../System.Buffers/internal/index.js";
@@ -417,16 +415,16 @@ export enum TlsCipherSuite {
417
415
  }
418
416
 
419
417
 
420
- export type LocalCertificateSelectionCallback = (sender: unknown, targetHost: string, localCertificates: X509CertificateCollection, remoteCertificate: X509Certificate, acceptableIssuers: string[]) => X509Certificate | undefined;
418
+ export type LocalCertificateSelectionCallback = (sender: JsValue, targetHost: string, localCertificates: X509CertificateCollection, remoteCertificate: X509Certificate | null, acceptableIssuers: string[]) => X509Certificate | null;
421
419
 
422
420
 
423
- export type RemoteCertificateValidationCallback = (sender: unknown, certificate: X509Certificate, chain: X509Chain, sslPolicyErrors: SslPolicyErrors) => boolean;
421
+ export type RemoteCertificateValidationCallback = (sender: JsValue, certificate: X509Certificate | null, chain: X509Chain | null, sslPolicyErrors: SslPolicyErrors) => boolean;
424
422
 
425
423
 
426
- export type ServerCertificateSelectionCallback = (sender: unknown, hostName: string) => X509Certificate;
424
+ export type ServerCertificateSelectionCallback = (sender: JsValue, hostName: string | null) => X509Certificate;
427
425
 
428
426
 
429
- export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: unknown, cancellationToken: CancellationToken) => ValueTask_1<SslServerAuthenticationOptions>;
427
+ export type ServerOptionsSelectionCallback = (stream: SslStream, clientHelloInfo: SslClientHelloInfo, state: JsValue | null, cancellationToken: CancellationToken) => ValueTask_1<SslServerAuthenticationOptions>;
430
428
 
431
429
 
432
430
  export interface SslApplicationProtocol$instance {
@@ -436,7 +434,7 @@ export interface SslApplicationProtocol$instance {
436
434
 
437
435
  readonly Protocol: ReadOnlyMemory_1<System_Internal.Byte>;
438
436
  Equals(other: SslApplicationProtocol): boolean;
439
- Equals(obj: unknown): boolean;
437
+ Equals(obj: JsValue | null): boolean;
440
438
  GetHashCode(): int;
441
439
  ToString(): string;
442
440
  }
@@ -534,11 +532,11 @@ export interface NegotiateAuthentication$instance extends System_Internal.IDispo
534
532
  readonly Package: string;
535
533
  readonly ProtectionLevel: ProtectionLevel;
536
534
  readonly RemoteIdentity: IIdentity;
537
- readonly TargetName: string | undefined;
535
+ readonly TargetName: string | null;
538
536
  ComputeIntegrityCheck(message: ReadOnlySpan_1<System_Internal.Byte>, signatureWriter: IBufferWriter_1<System_Internal.Byte>): void;
539
537
  Dispose(): void;
540
- GetOutgoingBlob(incomingBlob: ReadOnlySpan_1<System_Internal.Byte>, statusCode: NegotiateAuthenticationStatusCode): byte[] | undefined;
541
- GetOutgoingBlob(incomingBlob: string, statusCode: NegotiateAuthenticationStatusCode): string | undefined;
538
+ GetOutgoingBlob(incomingBlob: ReadOnlySpan_1<System_Internal.Byte>, statusCode: NegotiateAuthenticationStatusCode): byte[] | null;
539
+ GetOutgoingBlob(incomingBlob: string | null, statusCode: NegotiateAuthenticationStatusCode): string | null;
542
540
  Unwrap(input: ReadOnlySpan_1<System_Internal.Byte>, outputWriter: IBufferWriter_1<System_Internal.Byte>, wasEncrypted: boolean): NegotiateAuthenticationStatusCode;
543
541
  UnwrapInPlace(input: Span_1<System_Internal.Byte>, unwrappedOffset: int, unwrappedLength: int, wasEncrypted: boolean): NegotiateAuthenticationStatusCode;
544
542
  VerifyIntegrityCheck(message: ReadOnlySpan_1<System_Internal.Byte>, signature: ReadOnlySpan_1<System_Internal.Byte>): boolean;
@@ -563,14 +561,14 @@ export interface NegotiateAuthenticationClientOptions$instance {
563
561
  readonly __tsonic_type_System_Net_Security_NegotiateAuthenticationClientOptions: never;
564
562
 
565
563
  AllowedImpersonationLevel: TokenImpersonationLevel;
566
- get Binding(): ChannelBinding | undefined;
567
- set Binding(value: ChannelBinding | undefined);
564
+ get Binding(): ChannelBinding | null;
565
+ set Binding(value: ChannelBinding | null);
568
566
  Credential: NetworkCredential;
569
567
  Package: string;
570
568
  RequiredProtectionLevel: ProtectionLevel;
571
569
  RequireMutualAuthentication: boolean;
572
- get TargetName(): string | undefined;
573
- set TargetName(value: string | undefined);
570
+ get TargetName(): string | null;
571
+ set TargetName(value: string | null);
574
572
  }
575
573
 
576
574
 
@@ -584,12 +582,12 @@ export type NegotiateAuthenticationClientOptions = NegotiateAuthenticationClient
584
582
  export interface NegotiateAuthenticationServerOptions$instance {
585
583
  readonly __tsonic_type_System_Net_Security_NegotiateAuthenticationServerOptions: never;
586
584
 
587
- get Binding(): ChannelBinding | undefined;
588
- set Binding(value: ChannelBinding | undefined);
585
+ get Binding(): ChannelBinding | null;
586
+ set Binding(value: ChannelBinding | null);
589
587
  Credential: NetworkCredential;
590
588
  Package: string;
591
- get Policy(): ExtendedProtectionPolicy | undefined;
592
- set Policy(value: ExtendedProtectionPolicy | undefined);
589
+ get Policy(): ExtendedProtectionPolicy | null;
590
+ set Policy(value: ExtendedProtectionPolicy | null);
593
591
  RequiredImpersonationLevel: TokenImpersonationLevel;
594
592
  RequiredProtectionLevel: ProtectionLevel;
595
593
  }
@@ -625,33 +623,33 @@ export interface NegotiateStream$instance extends AuthenticatedStream$instance {
625
623
  WriteTimeout: int;
626
624
  AuthenticateAsClient(): void;
627
625
  AuthenticateAsClient(credential: NetworkCredential, targetName: string): void;
628
- AuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string): void;
626
+ AuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string): void;
629
627
  AuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
630
- AuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
628
+ AuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): void;
631
629
  AuthenticateAsClientAsync(): Task;
632
630
  AuthenticateAsClientAsync(credential: NetworkCredential, targetName: string): Task;
633
631
  AuthenticateAsClientAsync(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
634
- AuthenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string): Task;
635
- AuthenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
632
+ AuthenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string): Task;
633
+ AuthenticateAsClientAsync(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel): Task;
636
634
  AuthenticateAsServer(): void;
637
- AuthenticateAsServer(policy: ExtendedProtectionPolicy): void;
635
+ AuthenticateAsServer(policy: ExtendedProtectionPolicy | null): void;
638
636
  AuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
639
- AuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
637
+ AuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy | null, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): void;
640
638
  AuthenticateAsServerAsync(): Task;
641
- AuthenticateAsServerAsync(policy: ExtendedProtectionPolicy): Task;
639
+ AuthenticateAsServerAsync(policy: ExtendedProtectionPolicy | null): Task;
642
640
  AuthenticateAsServerAsync(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
643
- AuthenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
644
- BeginAuthenticateAsClient(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
645
- BeginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
646
- BeginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
647
- BeginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
648
- BeginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
649
- BeginAuthenticateAsServer(asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
650
- BeginAuthenticateAsServer(policy: ExtendedProtectionPolicy, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
651
- BeginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
652
- BeginAuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
653
- BeginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
654
- BeginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
641
+ AuthenticateAsServerAsync(credential: NetworkCredential, policy: ExtendedProtectionPolicy | null, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel): Task;
642
+ BeginAuthenticateAsClient(asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
643
+ BeginAuthenticateAsClient(credential: NetworkCredential, targetName: string, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
644
+ BeginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
645
+ BeginAuthenticateAsClient(credential: NetworkCredential, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
646
+ BeginAuthenticateAsClient(credential: NetworkCredential, binding: ChannelBinding | null, targetName: string, requiredProtectionLevel: ProtectionLevel, allowedImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
647
+ BeginAuthenticateAsServer(asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
648
+ BeginAuthenticateAsServer(policy: ExtendedProtectionPolicy | null, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
649
+ BeginAuthenticateAsServer(credential: NetworkCredential, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
650
+ BeginAuthenticateAsServer(credential: NetworkCredential, policy: ExtendedProtectionPolicy | null, requiredProtectionLevel: ProtectionLevel, requiredImpersonationLevel: TokenImpersonationLevel, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
651
+ BeginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
652
+ BeginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
655
653
  Dispose(disposing: boolean): void;
656
654
  Dispose(): void;
657
655
  DisposeAsync(): ValueTask;
@@ -712,25 +710,25 @@ export interface SslClientAuthenticationOptions$instance {
712
710
  AllowRsaPkcs1Padding: boolean;
713
711
  AllowRsaPssPadding: boolean;
714
712
  AllowTlsResume: boolean;
715
- get ApplicationProtocols(): List_1<SslApplicationProtocol> | undefined;
716
- set ApplicationProtocols(value: List_1<SslApplicationProtocol> | undefined);
717
- get CertificateChainPolicy(): X509ChainPolicy | undefined;
718
- set CertificateChainPolicy(value: X509ChainPolicy | undefined);
713
+ get ApplicationProtocols(): List_1<SslApplicationProtocol> | null;
714
+ set ApplicationProtocols(value: List_1<SslApplicationProtocol> | null);
715
+ get CertificateChainPolicy(): X509ChainPolicy | null;
716
+ set CertificateChainPolicy(value: X509ChainPolicy | null);
719
717
  CertificateRevocationCheckMode: X509RevocationMode;
720
- get CipherSuitesPolicy(): CipherSuitesPolicy | undefined;
721
- set CipherSuitesPolicy(value: CipherSuitesPolicy | undefined);
722
- get ClientCertificateContext(): SslStreamCertificateContext | undefined;
723
- set ClientCertificateContext(value: SslStreamCertificateContext | undefined);
724
- get ClientCertificates(): X509CertificateCollection | undefined;
725
- set ClientCertificates(value: X509CertificateCollection | undefined);
718
+ get CipherSuitesPolicy(): CipherSuitesPolicy | null;
719
+ set CipherSuitesPolicy(value: CipherSuitesPolicy | null);
720
+ get ClientCertificateContext(): SslStreamCertificateContext | null;
721
+ set ClientCertificateContext(value: SslStreamCertificateContext | null);
722
+ get ClientCertificates(): X509CertificateCollection | null;
723
+ set ClientCertificates(value: X509CertificateCollection | null);
726
724
  EnabledSslProtocols: SslProtocols;
727
725
  EncryptionPolicy: EncryptionPolicy;
728
- get LocalCertificateSelectionCallback(): LocalCertificateSelectionCallback | undefined;
729
- set LocalCertificateSelectionCallback(value: LocalCertificateSelectionCallback | undefined);
730
- get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
731
- set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | undefined);
732
- get TargetHost(): string | undefined;
733
- set TargetHost(value: string | undefined);
726
+ get LocalCertificateSelectionCallback(): LocalCertificateSelectionCallback | null;
727
+ set LocalCertificateSelectionCallback(value: LocalCertificateSelectionCallback | null);
728
+ get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | null;
729
+ set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | null);
730
+ get TargetHost(): string | null;
731
+ set TargetHost(value: string | null);
734
732
  }
735
733
 
736
734
 
@@ -748,24 +746,24 @@ export interface SslServerAuthenticationOptions$instance {
748
746
  AllowRsaPkcs1Padding: boolean;
749
747
  AllowRsaPssPadding: boolean;
750
748
  AllowTlsResume: boolean;
751
- get ApplicationProtocols(): List_1<SslApplicationProtocol> | undefined;
752
- set ApplicationProtocols(value: List_1<SslApplicationProtocol> | undefined);
753
- get CertificateChainPolicy(): X509ChainPolicy | undefined;
754
- set CertificateChainPolicy(value: X509ChainPolicy | undefined);
749
+ get ApplicationProtocols(): List_1<SslApplicationProtocol> | null;
750
+ set ApplicationProtocols(value: List_1<SslApplicationProtocol> | null);
751
+ get CertificateChainPolicy(): X509ChainPolicy | null;
752
+ set CertificateChainPolicy(value: X509ChainPolicy | null);
755
753
  CertificateRevocationCheckMode: X509RevocationMode;
756
- get CipherSuitesPolicy(): CipherSuitesPolicy | undefined;
757
- set CipherSuitesPolicy(value: CipherSuitesPolicy | undefined);
754
+ get CipherSuitesPolicy(): CipherSuitesPolicy | null;
755
+ set CipherSuitesPolicy(value: CipherSuitesPolicy | null);
758
756
  ClientCertificateRequired: boolean;
759
757
  EnabledSslProtocols: SslProtocols;
760
758
  EncryptionPolicy: EncryptionPolicy;
761
- get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
762
- set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | undefined);
763
- get ServerCertificate(): X509Certificate | undefined;
764
- set ServerCertificate(value: X509Certificate | undefined);
765
- get ServerCertificateContext(): SslStreamCertificateContext | undefined;
766
- set ServerCertificateContext(value: SslStreamCertificateContext | undefined);
767
- get ServerCertificateSelectionCallback(): ServerCertificateSelectionCallback | undefined;
768
- set ServerCertificateSelectionCallback(value: ServerCertificateSelectionCallback | undefined);
759
+ get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | null;
760
+ set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | null);
761
+ get ServerCertificate(): X509Certificate | null;
762
+ set ServerCertificate(value: X509Certificate | null);
763
+ get ServerCertificateContext(): SslStreamCertificateContext | null;
764
+ set ServerCertificateContext(value: SslStreamCertificateContext | null);
765
+ get ServerCertificateSelectionCallback(): ServerCertificateSelectionCallback | null;
766
+ set ServerCertificateSelectionCallback(value: ServerCertificateSelectionCallback | null);
769
767
  }
770
768
 
771
769
 
@@ -799,23 +797,23 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
799
797
  readonly KeyExchangeAlgorithm: ExchangeAlgorithmType;
800
798
  readonly KeyExchangeStrength: int;
801
799
  readonly Length: long;
802
- readonly LocalCertificate: X509Certificate | undefined;
800
+ readonly LocalCertificate: X509Certificate | null;
803
801
  readonly NegotiatedApplicationProtocol: SslApplicationProtocol;
804
802
  readonly NegotiatedCipherSuite: TlsCipherSuite;
805
803
  Position: long;
806
804
  ReadTimeout: int;
807
- readonly RemoteCertificate: X509Certificate | undefined;
805
+ readonly RemoteCertificate: X509Certificate | null;
808
806
  readonly SslProtocol: SslProtocols;
809
807
  readonly TargetHostName: string;
810
808
  readonly TransportContext: TransportContext;
811
809
  WriteTimeout: int;
812
810
  AuthenticateAsClient(targetHost: string): void;
813
- AuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): void;
814
- AuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): void;
811
+ AuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | null, checkCertificateRevocation: boolean): void;
812
+ AuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | null, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): void;
815
813
  AuthenticateAsClient(sslClientAuthenticationOptions: SslClientAuthenticationOptions): void;
816
814
  AuthenticateAsClientAsync(targetHost: string): Task;
817
- AuthenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean): Task;
818
- AuthenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
815
+ AuthenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection | null, checkCertificateRevocation: boolean): Task;
816
+ AuthenticateAsClientAsync(targetHost: string, clientCertificates: X509CertificateCollection | null, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
819
817
  AuthenticateAsClientAsync(sslClientAuthenticationOptions: SslClientAuthenticationOptions, cancellationToken?: CancellationToken): Task;
820
818
  AuthenticateAsServer(serverCertificate: X509Certificate): void;
821
819
  AuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): void;
@@ -825,15 +823,15 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
825
823
  AuthenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean): Task;
826
824
  AuthenticateAsServerAsync(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean): Task;
827
825
  AuthenticateAsServerAsync(sslServerAuthenticationOptions: SslServerAuthenticationOptions, cancellationToken?: CancellationToken): Task;
828
- AuthenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: unknown, cancellationToken?: CancellationToken): Task;
829
- BeginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
830
- BeginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
831
- BeginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
832
- BeginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
833
- BeginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
834
- BeginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
835
- BeginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
836
- BeginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback, asyncState: unknown): IAsyncResult;
826
+ AuthenticateAsServerAsync(optionsCallback: ServerOptionsSelectionCallback, state: JsValue | null, cancellationToken?: CancellationToken): Task;
827
+ BeginAuthenticateAsClient(targetHost: string, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
828
+ BeginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | null, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
829
+ BeginAuthenticateAsClient(targetHost: string, clientCertificates: X509CertificateCollection | null, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
830
+ BeginAuthenticateAsServer(serverCertificate: X509Certificate, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
831
+ BeginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
832
+ BeginAuthenticateAsServer(serverCertificate: X509Certificate, clientCertificateRequired: boolean, enabledSslProtocols: SslProtocols, checkCertificateRevocation: boolean, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
833
+ BeginRead(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
834
+ BeginWrite(buffer: byte[], offset: int, count: int, asyncCallback: AsyncCallback | null, asyncState: JsValue | null): IAsyncResult;
837
835
  Dispose(disposing: boolean): void;
838
836
  Dispose(): void;
839
837
  DisposeAsync(): ValueTask;
@@ -868,9 +866,9 @@ export interface SslStream$instance extends AuthenticatedStream$instance {
868
866
  export const SslStream: {
869
867
  new(innerStream: Stream): SslStream;
870
868
  new(innerStream: Stream, leaveInnerStreamOpen: boolean): SslStream;
871
- new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback): SslStream;
872
- new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback): SslStream;
873
- new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback, userCertificateSelectionCallback: LocalCertificateSelectionCallback, encryptionPolicy: EncryptionPolicy): SslStream;
869
+ new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback | null): SslStream;
870
+ new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback | null, userCertificateSelectionCallback: LocalCertificateSelectionCallback | null): SslStream;
871
+ new(innerStream: Stream, leaveInnerStreamOpen: boolean, userCertificateValidationCallback: RemoteCertificateValidationCallback | null, userCertificateSelectionCallback: LocalCertificateSelectionCallback | null, encryptionPolicy: EncryptionPolicy): SslStream;
874
872
  };
875
873
 
876
874
 
@@ -891,8 +889,8 @@ export interface SslStreamCertificateContext$instance {
891
889
 
892
890
 
893
891
  export const SslStreamCertificateContext: {
894
- Create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline?: boolean, trust?: SslCertificateTrust): SslStreamCertificateContext;
895
- Create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection, offline: boolean): SslStreamCertificateContext;
892
+ Create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection | null, offline?: boolean, trust?: SslCertificateTrust | null): SslStreamCertificateContext;
893
+ Create(target: X509Certificate2, additionalCertificates: X509Certificate2Collection | null, offline: boolean): SslStreamCertificateContext;
896
894
  };
897
895
 
898
896
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Net.ServerSentEvents
3
3
  // Assembly: System.Net.ServerSentEvents
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 { JsValue, 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 { IBufferWriter_1 } from "../../System.Buffers/internal/index.js";
@@ -24,8 +25,8 @@ export interface SseItem_1$instance<T> {
24
25
  readonly __tsonic_type_System_Net_ServerSentEvents_SseItem_1: never;
25
26
 
26
27
  readonly Data: T;
27
- get EventId(): string | undefined;
28
- set EventId(value: string | undefined);
28
+ get EventId(): string | null;
29
+ set EventId(value: string | null);
29
30
  readonly EventType: string;
30
31
  get ReconnectionInterval(): Nullable_1<TimeSpan>;
31
32
  set ReconnectionInterval(value: Nullable_1<TimeSpan> | TimeSpan);
@@ -33,7 +34,7 @@ export interface SseItem_1$instance<T> {
33
34
 
34
35
 
35
36
  export const SseItem_1: {
36
- new<T>(data: T, eventType: string): SseItem_1<T>;
37
+ new<T>(data: T, eventType: string | null): SseItem_1<T>;
37
38
  };
38
39
 
39
40