corba.js 0.1.11 → 0.1.12

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 (139) hide show
  1. package/lib/idl/idl.cjs +3818 -0
  2. package/lib/idl/idl.cjs.map +1 -0
  3. package/lib/idl/src/idl/cc/typeIDLtoCC.d.ts +6 -0
  4. package/lib/idl/src/idl/cc/typeIDLtoGIOPCC.d.ts +3 -0
  5. package/lib/idl/src/idl/cc/write-code.d.ts +2 -0
  6. package/lib/idl/src/idl/cc/write-interface.d.ts +5 -0
  7. package/lib/idl/src/idl/cc/write-skeleton.d.ts +2 -0
  8. package/lib/idl/src/idl/cc/write-stub.d.ts +2 -0
  9. package/lib/idl/src/idl/idl-lexer.d.ts +19 -0
  10. package/lib/idl/src/idl/idl-node.d.ts +102 -0
  11. package/lib/idl/src/idl/idl-parser.d.ts +3 -0
  12. package/lib/idl/src/idl/idl.d.ts +1 -0
  13. package/lib/idl/src/idl/ts/typeIDLtoGIOPTS.d.ts +3 -0
  14. package/lib/idl/src/idl/ts/typeIDLtoTS.d.ts +3 -0
  15. package/lib/idl/src/idl/ts/write-interface.d.ts +2 -0
  16. package/lib/idl/src/idl/ts/write-skeleton.d.ts +2 -0
  17. package/lib/idl/src/idl/ts/write-stub.d.ts +2 -0
  18. package/lib/idl/src/idl/ts/write-value.d.ts +2 -0
  19. package/lib/idl/src/idl/ts/write-valueimpl.d.ts +2 -0
  20. package/lib/idl/src/idl/ts/write-valuetype.d.ts +2 -0
  21. package/lib/idl/src/idl/util.d.ts +23 -0
  22. package/lib/idl/src/index.d.ts +5 -0
  23. package/lib/idl/src/net/browser.d.ts +27 -0
  24. package/lib/idl/src/net/index.d.ts +3 -0
  25. package/lib/idl/src/net/tcp.d.ts +11 -0
  26. package/lib/idl/src/net/tls.d.ts +25 -0
  27. package/lib/idl/src/net/ws.d.ts +45 -0
  28. package/lib/idl/src/orb/asn1.d.ts +48 -0
  29. package/lib/idl/src/orb/connection.d.ts +25 -0
  30. package/lib/idl/src/orb/giop.d.ts +283 -0
  31. package/lib/idl/src/orb/index.d.ts +3 -0
  32. package/lib/idl/src/orb/ior.d.ts +89 -0
  33. package/lib/idl/src/orb/orb.d.ts +147 -0
  34. package/lib/idl/src/orb/protocol.d.ts +6 -0
  35. package/lib/idl/src/orb/uint8map.d.ts +14 -0
  36. package/lib/idl/src/orb/url.d.ts +55 -0
  37. package/lib/src/idl/cc/typeIDLtoCC.d.ts +6 -0
  38. package/lib/src/idl/cc/typeIDLtoCC.js +127 -0
  39. package/lib/src/idl/cc/typeIDLtoCC.js.map +1 -0
  40. package/lib/src/idl/cc/typeIDLtoGIOPCC.d.ts +3 -0
  41. package/lib/src/idl/cc/typeIDLtoGIOPCC.js +127 -0
  42. package/lib/src/idl/cc/typeIDLtoGIOPCC.js.map +1 -0
  43. package/lib/src/idl/cc/write-code.d.ts +2 -0
  44. package/lib/src/idl/cc/write-code.js +213 -0
  45. package/lib/src/idl/cc/write-code.js.map +1 -0
  46. package/lib/src/idl/cc/write-interface.d.ts +5 -0
  47. package/lib/src/idl/cc/write-interface.js +228 -0
  48. package/lib/src/idl/cc/write-interface.js.map +1 -0
  49. package/lib/src/idl/cc/write-skeleton.d.ts +2 -0
  50. package/lib/src/idl/cc/write-skeleton.js +43 -0
  51. package/lib/src/idl/cc/write-skeleton.js.map +1 -0
  52. package/lib/src/idl/cc/write-stub.d.ts +2 -0
  53. package/lib/src/idl/cc/write-stub.js +91 -0
  54. package/lib/src/idl/cc/write-stub.js.map +1 -0
  55. package/lib/src/idl/idl-lexer.d.ts +19 -0
  56. package/lib/src/idl/idl-lexer.js +234 -0
  57. package/lib/src/idl/idl-lexer.js.map +1 -0
  58. package/lib/src/idl/idl-node.d.ts +102 -0
  59. package/lib/src/idl/idl-node.js +214 -0
  60. package/lib/src/idl/idl-node.js.map +1 -0
  61. package/lib/src/idl/idl-parser.d.ts +3 -0
  62. package/lib/src/idl/idl-parser.js +1210 -0
  63. package/lib/src/idl/idl-parser.js.map +1 -0
  64. package/lib/src/idl/idl.d.ts +1 -0
  65. package/lib/src/idl/idl.js +219 -0
  66. package/lib/src/idl/idl.js.map +1 -0
  67. package/lib/src/idl/ts/typeIDLtoGIOPTS.d.ts +3 -0
  68. package/lib/src/idl/ts/typeIDLtoGIOPTS.js +101 -0
  69. package/lib/src/idl/ts/typeIDLtoGIOPTS.js.map +1 -0
  70. package/lib/src/idl/ts/typeIDLtoTS.d.ts +3 -0
  71. package/lib/src/idl/ts/typeIDLtoTS.js +92 -0
  72. package/lib/src/idl/ts/typeIDLtoTS.js.map +1 -0
  73. package/lib/src/idl/ts/write-interface.d.ts +2 -0
  74. package/lib/src/idl/ts/write-interface.js +214 -0
  75. package/lib/src/idl/ts/write-interface.js.map +1 -0
  76. package/lib/src/idl/ts/write-skeleton.d.ts +2 -0
  77. package/lib/src/idl/ts/write-skeleton.js +118 -0
  78. package/lib/src/idl/ts/write-skeleton.js.map +1 -0
  79. package/lib/src/idl/ts/write-stub.d.ts +2 -0
  80. package/lib/src/idl/ts/write-stub.js +118 -0
  81. package/lib/src/idl/ts/write-stub.js.map +1 -0
  82. package/lib/src/idl/ts/write-value.d.ts +2 -0
  83. package/lib/src/idl/ts/write-value.js +208 -0
  84. package/lib/src/idl/ts/write-value.js.map +1 -0
  85. package/lib/src/idl/ts/write-valueimpl.d.ts +2 -0
  86. package/lib/src/idl/ts/write-valueimpl.js +159 -0
  87. package/lib/src/idl/ts/write-valueimpl.js.map +1 -0
  88. package/lib/src/idl/ts/write-valuetype.d.ts +2 -0
  89. package/lib/src/idl/ts/write-valuetype.js +99 -0
  90. package/lib/src/idl/ts/write-valuetype.js.map +1 -0
  91. package/lib/src/idl/util.d.ts +23 -0
  92. package/lib/src/idl/util.js +84 -0
  93. package/lib/src/idl/util.js.map +1 -0
  94. package/lib/src/index.d.ts +5 -0
  95. package/lib/src/index.js +6 -0
  96. package/lib/src/index.js.map +1 -0
  97. package/lib/src/net/browser.d.ts +27 -0
  98. package/lib/src/net/browser.js +100 -0
  99. package/lib/src/net/browser.js.map +1 -0
  100. package/lib/src/net/index.d.ts +3 -0
  101. package/lib/src/net/index.js +4 -0
  102. package/lib/src/net/index.js.map +1 -0
  103. package/lib/src/net/tcp.d.ts +11 -0
  104. package/lib/src/net/tcp.js +67 -0
  105. package/lib/src/net/tcp.js.map +1 -0
  106. package/lib/src/net/tls.d.ts +25 -0
  107. package/lib/src/net/tls.js +70 -0
  108. package/lib/src/net/tls.js.map +1 -0
  109. package/lib/src/net/ws.d.ts +45 -0
  110. package/lib/src/net/ws.js +159 -0
  111. package/lib/src/net/ws.js.map +1 -0
  112. package/lib/src/orb/asn1.d.ts +48 -0
  113. package/lib/src/orb/asn1.js +60 -0
  114. package/lib/src/orb/asn1.js.map +1 -0
  115. package/lib/src/orb/connection.d.ts +25 -0
  116. package/lib/src/orb/connection.js +19 -0
  117. package/lib/src/orb/connection.js.map +1 -0
  118. package/lib/src/orb/giop.d.ts +283 -0
  119. package/lib/src/orb/giop.js +1301 -0
  120. package/lib/src/orb/giop.js.map +1 -0
  121. package/lib/src/orb/index.d.ts +3 -0
  122. package/lib/src/orb/index.js +4 -0
  123. package/lib/src/orb/index.js.map +1 -0
  124. package/lib/src/orb/ior.d.ts +89 -0
  125. package/lib/src/orb/ior.js +113 -0
  126. package/lib/src/orb/ior.js.map +1 -0
  127. package/lib/src/orb/orb.d.ts +147 -0
  128. package/lib/src/orb/orb.js +712 -0
  129. package/lib/src/orb/orb.js.map +1 -0
  130. package/lib/src/orb/protocol.d.ts +6 -0
  131. package/lib/src/orb/protocol.js +2 -0
  132. package/lib/src/orb/protocol.js.map +1 -0
  133. package/lib/src/orb/uint8map.d.ts +14 -0
  134. package/lib/src/orb/uint8map.js +48 -0
  135. package/lib/src/orb/uint8map.js.map +1 -0
  136. package/lib/src/orb/url.d.ts +55 -0
  137. package/lib/src/orb/url.js +255 -0
  138. package/lib/src/orb/url.js.map +1 -0
  139. package/package.json +1 -1
@@ -0,0 +1,283 @@
1
+ import { CORBAObject } from "./orb";
2
+ import { Connection } from "./connection";
3
+ import { ASN1Tag, ASN1Encoding, ASN1Class, ASN1UniversalTag } from "./asn1";
4
+ export declare enum MessageType {
5
+ REQUEST = 0,
6
+ REPLY = 1,
7
+ CANCEL_REQUEST = 2,
8
+ LOCATE_REQUEST = 3,
9
+ LOCATE_REPLY = 4,
10
+ CLOSE_CONNECTION = 5,
11
+ MESSAGE_ERROR = 6,
12
+ FRAGMENT = 7
13
+ }
14
+ export declare enum TagType {
15
+ ORB_TYPE = 0,
16
+ CODE_SETS = 1,
17
+ POLICIES = 2,
18
+ ALTERNATE_IIOP_ADDRESS = 3,
19
+ ASSOCIATION_OPTIONS = 13,
20
+ SEC_NAME = 14,
21
+ SPKM_1_SEC_MECH = 15,
22
+ SPKM_2_SEC_MECH = 16,
23
+ KerberosV5_SEC_MECH = 17,
24
+ CSI_ECMA_Secret_SEC_MECH = 18,
25
+ CSI_ECMA_Hybrid_SEC_MECH = 19,
26
+ CSI_ECMA_Public_SEC_MECH = 21,
27
+ GENERIC_SEC_MECH = 22,
28
+ CSI_SEC_MECH_LIST = 33,
29
+ SSL_SEC_TRANS = 10,
30
+ TLS_SEC_TRANS = 36,
31
+ IIOP_SEC_TRANS = 43,
32
+ INET_SEC_TRANS = 123,
33
+ SECIOP_SEC_TRANS = 35,
34
+ FIREWALL_TRANS = 13,
35
+ PASSTHRU_TRANS = 41,
36
+ FIREWALL_PATH = 42,
37
+ SCCP_CONTACT_INFO = 14,
38
+ JAVA_CODEBASE = 15,
39
+ TRANSACTION_POLICY = 16,
40
+ MESSAGE_ROUTERS = 30,
41
+ OTS_POLICY = 31,
42
+ INV_POLICY = 32,
43
+ TAG_NULL_TAG = 34,
44
+ ACTIVITY_POLICY = 37,
45
+ RMI_CUSTOM_MAX_STREAM_FORMAT = 38,
46
+ GROUP = 39,
47
+ GROUP_IIOP = 40
48
+ }
49
+ export declare enum ServiceId {
50
+ TransactionService = 0,
51
+ CodeSets = 1,
52
+ ChainBypassCheck = 2,
53
+ ChainBypassInfo = 3,
54
+ LogicalThreadId = 4,
55
+ BI_DIR_IIOP = 5,
56
+ SendingContextRunTime = 6,
57
+ INVOCATION_POLICIES = 7,
58
+ FORWARDED_IDENTITY = 8,
59
+ UnknownExceptionInfo = 9,
60
+ RTCorbaPriority = 10,
61
+ RTCorbaPriorityRange = 11,
62
+ FT_GROUP_VERSION = 12,
63
+ FT_REQUEST = 13,
64
+ ExceptionDetailMessage = 14,
65
+ SecurityAttributeService = 15,
66
+ ActivityService = 16,
67
+ RMICustomMaxStreamFormat = 17,
68
+ ACCESS_SESSION_ID = 18,
69
+ SERVICE_SESSION_ID = 19,
70
+ FIREWALL_PATH = 20,
71
+ FIREWALL_PATH_RESP = 21,
72
+ SERVICE_PADDING_CONTEXT = 1245790977
73
+ }
74
+ export declare class AuthorizationToken {
75
+ type: number;
76
+ content: Uint8Array;
77
+ constructor(type: number, content: Uint8Array);
78
+ }
79
+ export declare class GSSUPInitialContextToken {
80
+ user: string;
81
+ password: string;
82
+ target_name: string;
83
+ constructor(user: string, password: string, target_name: string);
84
+ }
85
+ export declare class SecurityContext {
86
+ }
87
+ export declare class EstablishContext extends SecurityContext {
88
+ clientContextId: bigint;
89
+ authorizationToken: any[];
90
+ identityToken: any;
91
+ clientAuthenticationToken: any;
92
+ decode(decoder: GIOPDecoder): void;
93
+ }
94
+ export declare class ContextError extends SecurityContext {
95
+ clientContextId: bigint;
96
+ majorStatus: number;
97
+ minorStatus: number;
98
+ errorToken: any;
99
+ }
100
+ export declare class CompleteEstablishContext extends SecurityContext {
101
+ clientContextId: bigint;
102
+ contextStateful: boolean;
103
+ finalContextToken: any;
104
+ }
105
+ export declare enum AuthenticationStatus {
106
+ SUCCESS = 0,
107
+ ERROR_UNSPECIFIED = 1,
108
+ ERROR_BADPASSWORD = 2,
109
+ ERROR_NOUSER = 3,
110
+ ERROR_BAD_TARGET = 4
111
+ }
112
+ export declare enum AddressingDisposition {
113
+ KeyAddr = 0,
114
+ ProfileAddr = 1,
115
+ ReferenceAddr = 2
116
+ }
117
+ export declare enum ReplyStatus {
118
+ NO_EXCEPTION = 0,
119
+ USER_EXCEPTION = 1,
120
+ SYSTEM_EXCEPTION = 2,
121
+ LOCATION_FORWARD = 3,
122
+ LOCATION_FORWARD_PERM = 4,
123
+ NEEDS_ADDRESSING_MODE = 5
124
+ }
125
+ export declare class BidirectionalIIOPServiceContext {
126
+ host: string;
127
+ port: number;
128
+ }
129
+ export declare class RequestData {
130
+ requestId: number;
131
+ responseExpected: boolean;
132
+ objectKey: Uint8Array;
133
+ method: string;
134
+ error?: Error;
135
+ serviceContext: any[];
136
+ }
137
+ declare class ReplyData {
138
+ requestId: number;
139
+ replyStatus: ReplyStatus;
140
+ }
141
+ declare class LocateRequest {
142
+ requestId: number;
143
+ objectKey: Uint8Array;
144
+ }
145
+ export declare enum LocateStatusType {
146
+ UNKNOWN_OBJECT = 0,
147
+ OBJECT_HERE = 1,
148
+ OBJECT_FORWARD = 2,
149
+ OBJECT_FORWARD_PERM = 3,
150
+ LOC_SYSTEM_EXCEPTION = 4,
151
+ LOC_NEEDS_ADDRESSING_MODE = 5
152
+ }
153
+ declare class LocateReply {
154
+ requestId: number;
155
+ status: LocateStatusType;
156
+ }
157
+ export declare class ObjectReference {
158
+ oid: string;
159
+ host: string;
160
+ port: number;
161
+ objectKey: Uint8Array;
162
+ toString(): string;
163
+ }
164
+ export declare class GIOPBase {
165
+ offset: number;
166
+ majorVersion: number;
167
+ minorVersion: number;
168
+ static ENDIAN_BIG: number;
169
+ static ENDIAN_LITTLE: number;
170
+ static FLOAT64_MAX: number;
171
+ static FLOAT64_MIN: number;
172
+ static TWO_TO_20: number;
173
+ static TWO_TO_32: number;
174
+ static TWO_TO_52: number;
175
+ connection?: Connection;
176
+ constructor(connection?: Connection);
177
+ }
178
+ export declare class GIOPEncoder extends GIOPBase {
179
+ buffer: ArrayBuffer;
180
+ data: DataView;
181
+ bytes: Uint8Array;
182
+ static textEncoder: TextEncoder;
183
+ static littleEndian?: boolean;
184
+ protected repositoryIds: Map<string, number>;
185
+ protected objectPosition: Map<Object, number>;
186
+ constructor(connection?: Connection);
187
+ get buf(): ArrayBuffer;
188
+ sizeStack: number[];
189
+ reserveSize(): void;
190
+ fillinSize(): void;
191
+ beginEncapsulation(type: number): void;
192
+ endEncapsulation(): void;
193
+ skipGIOPHeader(): void;
194
+ setGIOPHeader(type: MessageType): void;
195
+ encodeRequest(objectKey: Uint8Array, operation: string, requestId: number | undefined, responseExpected: boolean): void;
196
+ encodeReply(requestId: number, replyStatus?: number): void;
197
+ encodeLocateReply(requestId: number, status: LocateStatusType): void;
198
+ serviceContext(): void;
199
+ establishSecurityContext(initialToken: GSSUPInitialContextToken): void;
200
+ setReplyHeader(requestId: number, replyStatus?: number): void;
201
+ skipReplyHeader(): void;
202
+ repositoryId(name: string): void;
203
+ reference(object: CORBAObject): void;
204
+ value(object: Object | undefined): void;
205
+ object(object: Object | undefined): void;
206
+ endian(): void;
207
+ reserveOne(): void;
208
+ alignAndReserve(align: number): void;
209
+ alignAndReserveVarying(align: number, nbytes: number): void;
210
+ blob(value: Uint8Array): void;
211
+ string(value: string): void;
212
+ sequence<T>(array: T[], encodeItem: (a: T) => void): void;
213
+ sequenceOctet(value: Uint8Array): void;
214
+ sequenceFloat(value: Float32Array): void;
215
+ sequenceDouble(value: Float64Array): void;
216
+ bool(value: boolean): void;
217
+ char(value: string): void;
218
+ octet(value: number): void;
219
+ short(value: number): void;
220
+ ushort(value: number): void;
221
+ long(value: number): void;
222
+ ulong(value: number): void;
223
+ longlong(value: bigint): void;
224
+ ulonglong(value: bigint): void;
225
+ float(value: number): void;
226
+ double(value: number): void;
227
+ asn1number(n: number): void;
228
+ asn1numberE(n: number): void;
229
+ asn1tag(tagClass: number, tag: number, encoding: number, sub: ((encoder: GIOPEncoder) => void) | undefined): void;
230
+ asn1oid(oid: number[]): void;
231
+ }
232
+ export declare class GIOPDecoder extends GIOPBase {
233
+ buffer: ArrayBuffer;
234
+ data: DataView;
235
+ bytes: Uint8Array;
236
+ type: MessageType;
237
+ length: number;
238
+ littleEndian: boolean;
239
+ objects: Map<number, Object>;
240
+ protected static textDecoder: TextDecoder;
241
+ constructor(buffer: ArrayBuffer, connection?: Connection);
242
+ encapStack: {
243
+ nextOffset: number;
244
+ endian: boolean;
245
+ }[];
246
+ beginEncapsulation(): number;
247
+ endEncapsulation(): void;
248
+ scanGIOPHeader(): MessageType;
249
+ scanLocateRequest(): LocateRequest;
250
+ scanLocateReply(): LocateReply;
251
+ scanRequestHeader(): RequestData;
252
+ scanReplyHeader(): ReplyData;
253
+ serviceContext(): any[];
254
+ reference(length?: number | undefined): ObjectReference;
255
+ value(typeInfo?: string | undefined): any;
256
+ object(typeInfo?: string | undefined, isValue?: boolean): any;
257
+ endian(): void;
258
+ blob(length?: number): Uint8Array;
259
+ string(length?: number): string;
260
+ sequence<T>(decodeItem: () => T): T[];
261
+ isPlatformLittleEndian(): boolean;
262
+ sequenceOctet(): Uint8Array;
263
+ sequenceFloat(): Float32Array;
264
+ sequenceDouble(): Float64Array;
265
+ bool(): boolean;
266
+ char(): string;
267
+ octet(): number;
268
+ short(): number;
269
+ ushort(): number;
270
+ long(): number;
271
+ ulong(): number;
272
+ longlong(): bigint;
273
+ ulonglong(): bigint;
274
+ float(): number;
275
+ double(): number;
276
+ asn1number(): number;
277
+ asn1tag(): ASN1Tag;
278
+ asn1oid(len: number): number[];
279
+ asn1expect(cls: ASN1Class, tag: ASN1UniversalTag, encoding: ASN1Encoding): ASN1Tag | undefined;
280
+ asn1expectOID(oid: number[]): boolean;
281
+ align(alignment: number): void;
282
+ }
283
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './orb';
2
+ export * from './ior';
3
+ export * from './giop';
@@ -0,0 +1,89 @@
1
+ export declare class IOR {
2
+ host: string;
3
+ port: number;
4
+ oid: string;
5
+ objectKey: Uint8Array;
6
+ constructor(ior: string);
7
+ }
8
+ export declare namespace IOR {
9
+ namespace TAG {
10
+ enum IOR {
11
+ INTERNET_IOP = 0,
12
+ MULTIPLE_COMPONENTS = 1,
13
+ SCCP_IOP = 2,
14
+ UIPMC = 3,
15
+ MOBILE_TERMINAL_IOP = 4
16
+ }
17
+ enum ComponentId {
18
+ ORB_TYPE = 0,
19
+ CODE_SETS = 1,
20
+ POLICIES = 2,
21
+ ALTERNATE_IIOP_ADDRESS = 3,
22
+ ASSOCIATION_OPTIONS = 13,
23
+ SEC_NAME = 14,
24
+ SPKM_1_SEC_MECH = 15,
25
+ SPKM_2_SEC_MECH = 16,
26
+ KerberosV5_SEC_MECH = 17,
27
+ CSI_ECMA_Secret_SEC_MECH = 18,
28
+ CSI_ECMA_Hybrid_SEC_MECH = 19,
29
+ SSL_SEC_TRANS = 20,
30
+ CSI_ECMA_Public_SEC_MECH = 21,
31
+ GENERIC_SEC_MECH = 22,
32
+ FIREWALL_TRANS = 23,
33
+ SCCP_CONTACT_INFO = 24,
34
+ JAVA_CODEBASE = 25,
35
+ TRANSACTION_POLICY = 26,
36
+ MESSAGE_ROUTERS = 30,
37
+ OTS_POLICY = 31,
38
+ INV_POLICY = 32,
39
+ CSI_SEC_MECH_LIST = 33,
40
+ NULL_TAG = 34,
41
+ SECIOP_SEC_TRANS = 35,
42
+ TLS_SEC_TRANS = 36,
43
+ ACTIVITY_POLICY = 37,
44
+ RMI_CUSTOM_MAX_STREAM_FORMAT = 38,
45
+ GROUP = 39,
46
+ GROUP_IIOP = 40,
47
+ PASSTHRU_TRANS = 41,
48
+ FIREWALL_PATH = 42,
49
+ IIOP_SEC_TRANS = 43,
50
+ INET_SEC_TRANS = 123
51
+ }
52
+ enum IIOP {
53
+ ORB_TYPE = 0,
54
+ CODE_SETS = 1,
55
+ SEC_NAME = 2,
56
+ ASSOCIATION_OPTIONS = 3,
57
+ TAG_GENERIC_SEC_MECH = 4,
58
+ TAG_SSL_SEC_TRANS = 5,
59
+ TAG_SPKM_1_SEC_MECH = 6,
60
+ TAG_SPKM_2_SEC_MECH = 7,
61
+ TAG_KerberosV5_SEC_MECH = 8,
62
+ TAG_CSI_ECMA_Secret_SEC_MECH = 9,
63
+ TAG_CSI_ECMA_Hybrid_SEC_MECH = 10,
64
+ TAG_SSL_SEC_TRANS_AGAIN = 11,
65
+ TAG_CSI_ECMA_Public_SEC_MECH = 12,
66
+ TAG_FIREWALL_TRANS = 13,
67
+ TAG_JAVA_CODEBASE = 14,
68
+ TAG_TRANSACTION_POLICY = 15,
69
+ TAG_MESSAGE_ROUTERS = 16,
70
+ TAG_INET_SEC_TRANS = 17,
71
+ TAG_ALTERNATE_IIOP_ADDRESS = 18,
72
+ TAG_POLICIES = 19,
73
+ TAG_DCE_STRING_BINDING = 20,
74
+ TAG_DCE_BINDING_NAME = 21,
75
+ TAG_DCE_NO_PIPES = 22,
76
+ TAG_DCE_MECH = 23,
77
+ TAG_COMPLETE_OBJECT_KEY = 24,
78
+ TAG_ENDPOINT_ID_POSITION = 25,
79
+ TAG_LOCATION_POLICY = 26,
80
+ TAG_OTS_POLICY = 27,
81
+ TAG_INV_POLICY = 28,
82
+ TAG_CSI_SEC_MECH_LIST = 29,
83
+ TAG_NULL_TAG = 30,
84
+ TAG_SECIOP_SEC_TRANS = 31,
85
+ TAG_TLS_SEC_TRANS = 32,
86
+ TAG_ACTIVITY_POLICY = 33
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,147 @@
1
+ import { Protocol } from "./protocol";
2
+ import { Connection } from "./connection";
3
+ import { GIOPDecoder, GIOPEncoder, EstablishContext, AuthenticationStatus, GSSUPInitialContextToken } from "./giop";
4
+ import { IOR } from "./ior";
5
+ import { Uint8Map } from "./uint8map";
6
+ export declare class Exception extends Error {
7
+ }
8
+ export declare class UserException extends Exception {
9
+ }
10
+ export declare enum CompletionStatus {
11
+ YES = 0,
12
+ NO = 1,
13
+ MAYBE = 2
14
+ }
15
+ export declare abstract class SystemException extends Exception {
16
+ minor: number;
17
+ completed: CompletionStatus;
18
+ constructor(minor: number, completed: CompletionStatus);
19
+ abstract get major(): string;
20
+ }
21
+ export declare class MARSHAL extends SystemException {
22
+ constructor(minor: number, completed: CompletionStatus);
23
+ get major(): string;
24
+ }
25
+ export declare class NO_PERMISSION extends SystemException {
26
+ constructor(minor: number, completed: CompletionStatus);
27
+ toString(): string;
28
+ get major(): string;
29
+ }
30
+ export declare class BAD_PARAM extends SystemException {
31
+ constructor(minor: number, completed: CompletionStatus);
32
+ get major(): string;
33
+ }
34
+ export declare class BAD_OPERATION extends SystemException {
35
+ constructor(minor: number, completed: CompletionStatus);
36
+ toString(): string;
37
+ get major(): string;
38
+ }
39
+ export declare class OBJECT_NOT_EXIST extends SystemException {
40
+ constructor(minor: number, completed: CompletionStatus);
41
+ toString(): string;
42
+ get major(): string;
43
+ }
44
+ export declare class TRANSIENT extends SystemException {
45
+ constructor(minor: number, completed: CompletionStatus);
46
+ get major(): string;
47
+ }
48
+ export declare class OBJECT_ADAPTER extends SystemException {
49
+ constructor(minor: number, completed: CompletionStatus);
50
+ get major(): string;
51
+ }
52
+ export interface ValueTypeInformation {
53
+ attributes: Array<string>;
54
+ encode: (encoder: GIOPEncoder, obj: any) => void;
55
+ name?: string;
56
+ construct?: Function;
57
+ }
58
+ export declare class PromiseHandler {
59
+ constructor(decode: (decoder: GIOPDecoder) => void, reject: (reason?: any) => void);
60
+ decode: (decoder: GIOPDecoder) => void;
61
+ reject: (reason?: any) => void;
62
+ }
63
+ type IncomingAuthenticator = (connection: Connection, context: EstablishContext) => AuthenticationStatus;
64
+ type OutgoingAuthenticator = (connection: Connection) => GSSUPInitialContextToken | undefined;
65
+ export declare class ORB implements EventTarget {
66
+ private static exceptionHandler;
67
+ static installSystemExceptionHandler(object: CORBAObject, handler: () => void): void;
68
+ static connectionClose(conn: Connection): void;
69
+ private static nameServiceKey;
70
+ static valueTypeByName: Map<string, ValueTypeInformation>;
71
+ static valueTypeByPrototype: Map<any, ValueTypeInformation>;
72
+ debug: number;
73
+ name: string;
74
+ stubsByName: Map<string, any>;
75
+ servants: Uint8Map<Skeleton>;
76
+ servantIdCounter: bigint;
77
+ accesibleServants: Set<Skeleton>;
78
+ namingService: NamingContextExtImpl;
79
+ initialReferences: Map<string, Skeleton>;
80
+ listeners: Map<string, Set<EventListenerOrEventListenerObject>>;
81
+ constructor();
82
+ private protocols;
83
+ private connections;
84
+ addProtocol(protocol: Protocol): void;
85
+ addConnection(connection: Connection): void;
86
+ removeConnection(connection: Connection): void;
87
+ logConnection(): void;
88
+ shutdown(): Promise<void>;
89
+ replaceAllConnections(): Promise<void>;
90
+ getConnection(host: string, port: number): Promise<Connection>;
91
+ stringToObject(iorString: string): Promise<CORBAObject | undefined>;
92
+ iorToObject(ior: IOR): Promise<CORBAObject>;
93
+ onewayCall(stub: Stub, method: string, encode: (encoder: GIOPEncoder) => void): void;
94
+ twowayCall<T>(stub: Stub, method: string, encode: (encoder: GIOPEncoder) => void, decode: (decoder: GIOPDecoder) => T): Promise<T>;
95
+ protected callCore(connection: Connection, requestId: number, responseExpected: boolean, objectId: Uint8Array, method: string, encode: (encoder: GIOPEncoder) => void): void;
96
+ socketRcvd(connection: Connection, buffer: ArrayBuffer): void;
97
+ socketError(connection: Connection, error: Error): void;
98
+ socketClosed(connection: Connection): void;
99
+ addEventListener(type: "close", listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
100
+ removeEventListener(type: "close", listener?: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
101
+ dispatchEvent(event: Event): boolean;
102
+ set onclose(listener: EventListenerOrEventListenerObject | null);
103
+ registerServant(servant: Skeleton): Uint8Array;
104
+ unregisterServant(servant: Skeleton): void;
105
+ registerStubClass(aStubClass: any): void;
106
+ releaseObject(object: CORBAObject): void;
107
+ releaseStub(stub: Stub): void;
108
+ static registerValueType(name: string, valuetypeConstructor: Function): void;
109
+ static lookupValueType(name: string): any;
110
+ bind(id: string, obj: Skeleton): void;
111
+ list(): Promise<Array<string>>;
112
+ resolve(id: string): Promise<Stub>;
113
+ serialize(value: any): ArrayBuffer;
114
+ deserialize(buffer: ArrayBuffer): any;
115
+ incomingAuthenticator?: IncomingAuthenticator;
116
+ setIncomingAuthenticator(authenticator: IncomingAuthenticator): void;
117
+ outgoingAuthenticator?: OutgoingAuthenticator;
118
+ setOutgoingAuthenticator(authenticator: OutgoingAuthenticator): void;
119
+ release(): void;
120
+ aclAdd(servant: Skeleton): void;
121
+ aclDeleteAll(): void;
122
+ }
123
+ export declare abstract class CORBAObject {
124
+ orb: ORB;
125
+ id: Uint8Array;
126
+ constructor(orb: ORB, id: Uint8Array);
127
+ release(): void;
128
+ }
129
+ export declare abstract class Skeleton extends CORBAObject {
130
+ acl: Set<ORB>;
131
+ constructor(orb: ORB);
132
+ }
133
+ export declare abstract class Stub extends CORBAObject {
134
+ connection: Connection;
135
+ constructor(orb: ORB, remoteID: Uint8Array, connection: Connection);
136
+ release(): void;
137
+ }
138
+ declare class NamingContextExtImpl extends Skeleton {
139
+ map: Map<string, CORBAObject>;
140
+ constructor(orb: ORB);
141
+ static _idlClassName(): string;
142
+ bind(name: string, servant: CORBAObject): void;
143
+ resolve(name: string): Promise<CORBAObject>;
144
+ private _orb_resolve;
145
+ private _orb_resolve_str;
146
+ }
147
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ORB } from "./orb";
2
+ import { Connection } from "./connection";
3
+ export interface Protocol {
4
+ connect(orb: ORB, hostname: string, port: number): Promise<Connection>;
5
+ close(): Promise<void>;
6
+ }
@@ -0,0 +1,14 @@
1
+ export declare class Uint8Map<V> {
2
+ private static byteToHex;
3
+ private map;
4
+ set(key: Uint8Array, value: V): Uint8Map<V>;
5
+ delete(key: Uint8Array): boolean;
6
+ get(key: Uint8Array): V | undefined;
7
+ has(key: Uint8Array): boolean;
8
+ get size(): number;
9
+ forEach(callbackfn: (value: V, key: Uint8Array, map: Uint8Map<V>) => void, thisArg?: any): void;
10
+ clear(): void;
11
+ static hex(buffer: Uint8Array): string;
12
+ static unhex(key: string): Uint8Array;
13
+ private static init;
14
+ }
@@ -0,0 +1,55 @@
1
+ import { IOR } from "./ior";
2
+ export declare class CorbaLocation extends Object {
3
+ addr: ObjectAddress[];
4
+ objectKey?: string;
5
+ toString(): string;
6
+ toStringCore(): string;
7
+ }
8
+ export declare class CorbaName extends CorbaLocation {
9
+ name: string;
10
+ constructor();
11
+ toString(): string;
12
+ }
13
+ export declare class ObjectAddress {
14
+ proto: string;
15
+ major: number;
16
+ minor: number;
17
+ host: string;
18
+ port: number;
19
+ }
20
+ export declare class UrlParser {
21
+ url: UrlLexer;
22
+ loc: CorbaLocation;
23
+ addr: ObjectAddress;
24
+ constructor(url: string);
25
+ parse(): IOR | CorbaLocation;
26
+ corbaname(): CorbaName;
27
+ corbaloc(): CorbaLocation;
28
+ obj_addr_list(): void;
29
+ obj_addr(): void;
30
+ prot_addr(): true | undefined;
31
+ rir_prot_addr(): boolean;
32
+ iiop_prot_addr(): boolean;
33
+ iiop_id(): boolean;
34
+ iiop_addr(): void;
35
+ version(): undefined;
36
+ host(): string | undefined;
37
+ label(): boolean;
38
+ port(): number | undefined;
39
+ key_string(): string | undefined;
40
+ }
41
+ export declare class UrlLexer {
42
+ data: string;
43
+ pos: number;
44
+ state: number;
45
+ constructor(url: string);
46
+ match(s: string): string | undefined;
47
+ number(): number | undefined;
48
+ uri(): string | undefined;
49
+ eof(): boolean;
50
+ getc(): string;
51
+ ungetc(): void;
52
+ static isAlpha(c: string): boolean;
53
+ static isDigit(c: string): boolean;
54
+ static isAlphaNumeric(c: string): boolean;
55
+ }
@@ -0,0 +1,6 @@
1
+ import { Node } from "../idl-node";
2
+ export declare enum Direction {
3
+ IN = 0,
4
+ OUT = 1
5
+ }
6
+ export declare function typeIDLtoCC(type: Node | undefined, direction: Direction): string;