@cratis/chronicle.contracts 16.2.1 → 16.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/clients.d.ts +44 -0
- package/dist/cjs/generated/clients.d.ts.map +1 -1
- package/dist/cjs/generated/clients.js +379 -1
- package/dist/cjs/generated/clients.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +3 -3
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/observation.d.ts +33 -0
- package/dist/cjs/generated/observation.d.ts.map +1 -1
- package/dist/cjs/generated/observation.js +349 -0
- package/dist/cjs/generated/observation.js.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/clients.d.ts +44 -0
- package/dist/esm/generated/clients.d.ts.map +1 -1
- package/dist/esm/generated/clients.js +377 -2
- package/dist/esm/generated/clients.js.map +1 -1
- package/dist/esm/generated/index.d.ts +3 -3
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/observation.d.ts +33 -0
- package/dist/esm/generated/observation.d.ts.map +1 -1
- package/dist/esm/generated/observation.js +347 -1
- package/dist/esm/generated/observation.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/generated/clients.d.ts +44 -0
- package/dist/generated/clients.d.ts.map +1 -1
- package/dist/generated/clients.js +376 -1
- package/dist/generated/clients.js.map +1 -1
- package/dist/generated/index.d.ts +3 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +3 -3
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/observation.d.ts +33 -0
- package/dist/generated/observation.d.ts.map +1 -1
- package/dist/generated/observation.js +346 -0
- package/dist/generated/observation.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/clients.ts +450 -1
- package/generated/index.ts +3 -3
- package/generated/observation.ts +409 -0
- package/package.json +1 -1
|
@@ -6,6 +6,21 @@ export interface ConnectRequest {
|
|
|
6
6
|
ConnectionId: string;
|
|
7
7
|
ClientVersion: string;
|
|
8
8
|
IsRunningWithDebugger: boolean;
|
|
9
|
+
ProcessId: number;
|
|
10
|
+
ProcessPath: string;
|
|
11
|
+
MachineName: string;
|
|
12
|
+
ClientType: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ConnectedClient {
|
|
15
|
+
ConnectionId: string;
|
|
16
|
+
Version: string;
|
|
17
|
+
LastSeen: SerializableDateTimeOffset | undefined;
|
|
18
|
+
IsRunningWithDebugger: boolean;
|
|
19
|
+
SiloAddress: string;
|
|
20
|
+
ProcessId: number;
|
|
21
|
+
ProcessPath: string;
|
|
22
|
+
MachineName: string;
|
|
23
|
+
ClientType: string;
|
|
9
24
|
}
|
|
10
25
|
export interface ConnectionKeepAlive {
|
|
11
26
|
ConnectionId: string;
|
|
@@ -13,9 +28,18 @@ export interface ConnectionKeepAlive {
|
|
|
13
28
|
export interface DescriptorSetResponse {
|
|
14
29
|
SchemaDefinition: string;
|
|
15
30
|
}
|
|
31
|
+
export interface IEnumerableConnectedClient {
|
|
32
|
+
items: ConnectedClient[];
|
|
33
|
+
}
|
|
34
|
+
export interface SerializableDateTimeOffset {
|
|
35
|
+
Value: string;
|
|
36
|
+
}
|
|
16
37
|
export declare const ConnectRequest: MessageFns<ConnectRequest>;
|
|
38
|
+
export declare const ConnectedClient: MessageFns<ConnectedClient>;
|
|
17
39
|
export declare const ConnectionKeepAlive: MessageFns<ConnectionKeepAlive>;
|
|
18
40
|
export declare const DescriptorSetResponse: MessageFns<DescriptorSetResponse>;
|
|
41
|
+
export declare const IEnumerableConnectedClient: MessageFns<IEnumerableConnectedClient>;
|
|
42
|
+
export declare const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset>;
|
|
19
43
|
export type ConnectionServiceDefinition = typeof ConnectionServiceDefinition;
|
|
20
44
|
export declare const ConnectionServiceDefinition: {
|
|
21
45
|
readonly name: "ConnectionService";
|
|
@@ -37,6 +61,14 @@ export declare const ConnectionServiceDefinition: {
|
|
|
37
61
|
readonly responseStream: false;
|
|
38
62
|
readonly options: {};
|
|
39
63
|
};
|
|
64
|
+
readonly getConnectedClients: {
|
|
65
|
+
readonly name: "GetConnectedClients";
|
|
66
|
+
readonly requestType: typeof Empty;
|
|
67
|
+
readonly requestStream: false;
|
|
68
|
+
readonly responseType: typeof IEnumerableConnectedClient;
|
|
69
|
+
readonly responseStream: false;
|
|
70
|
+
readonly options: {};
|
|
71
|
+
};
|
|
40
72
|
readonly getDescriptorSet: {
|
|
41
73
|
readonly name: "GetDescriptorSet";
|
|
42
74
|
readonly requestType: typeof Empty;
|
|
@@ -45,17 +77,29 @@ export declare const ConnectionServiceDefinition: {
|
|
|
45
77
|
readonly responseStream: false;
|
|
46
78
|
readonly options: {};
|
|
47
79
|
};
|
|
80
|
+
readonly observeConnectedClients: {
|
|
81
|
+
readonly name: "ObserveConnectedClients";
|
|
82
|
+
readonly requestType: typeof Empty;
|
|
83
|
+
readonly requestStream: false;
|
|
84
|
+
readonly responseType: typeof IEnumerableConnectedClient;
|
|
85
|
+
readonly responseStream: true;
|
|
86
|
+
readonly options: {};
|
|
87
|
+
};
|
|
48
88
|
};
|
|
49
89
|
};
|
|
50
90
|
export interface ConnectionServiceImplementation<CallContextExt = {}> {
|
|
51
91
|
connect(request: ConnectRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ConnectionKeepAlive>>;
|
|
52
92
|
connectionKeepAlive(request: ConnectionKeepAlive, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
93
|
+
getConnectedClients(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<IEnumerableConnectedClient>>;
|
|
53
94
|
getDescriptorSet(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<DescriptorSetResponse>>;
|
|
95
|
+
observeConnectedClients(request: Empty, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<IEnumerableConnectedClient>>;
|
|
54
96
|
}
|
|
55
97
|
export interface ConnectionServiceClient<CallOptionsExt = {}> {
|
|
56
98
|
connect(request: DeepPartial<ConnectRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<ConnectionKeepAlive>;
|
|
57
99
|
connectionKeepAlive(request: DeepPartial<ConnectionKeepAlive>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
100
|
+
getConnectedClients(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<IEnumerableConnectedClient>;
|
|
58
101
|
getDescriptorSet(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<DescriptorSetResponse>;
|
|
102
|
+
observeConnectedClients(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): AsyncIterable<IEnumerableConnectedClient>;
|
|
59
103
|
}
|
|
60
104
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
61
105
|
export type DeepPartial<T> = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../generated/clients.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAO,MAAM,eAAe,uCAAuC,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../generated/clients.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAA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AC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,MAAM,2BAA2B,CAAC,QAAQ,IAAI;IAAE,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;CAAE,CAAC;AAEhH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -5,7 +5,15 @@ var empty = require('./google/protobuf/empty.js');
|
|
|
5
5
|
|
|
6
6
|
const protobufPackage = "Cratis.Chronicle.Contracts.Clients";
|
|
7
7
|
function createBaseConnectRequest() {
|
|
8
|
-
return {
|
|
8
|
+
return {
|
|
9
|
+
ConnectionId: "",
|
|
10
|
+
ClientVersion: "",
|
|
11
|
+
IsRunningWithDebugger: false,
|
|
12
|
+
ProcessId: 0,
|
|
13
|
+
ProcessPath: "",
|
|
14
|
+
MachineName: "",
|
|
15
|
+
ClientType: "",
|
|
16
|
+
};
|
|
9
17
|
}
|
|
10
18
|
const ConnectRequest = {
|
|
11
19
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
@@ -18,6 +26,18 @@ const ConnectRequest = {
|
|
|
18
26
|
if (message.IsRunningWithDebugger !== false) {
|
|
19
27
|
writer.uint32(24).bool(message.IsRunningWithDebugger);
|
|
20
28
|
}
|
|
29
|
+
if (message.ProcessId !== 0) {
|
|
30
|
+
writer.uint32(32).int32(message.ProcessId);
|
|
31
|
+
}
|
|
32
|
+
if (message.ProcessPath !== "") {
|
|
33
|
+
writer.uint32(42).string(message.ProcessPath);
|
|
34
|
+
}
|
|
35
|
+
if (message.MachineName !== "") {
|
|
36
|
+
writer.uint32(50).string(message.MachineName);
|
|
37
|
+
}
|
|
38
|
+
if (message.ClientType !== "") {
|
|
39
|
+
writer.uint32(58).string(message.ClientType);
|
|
40
|
+
}
|
|
21
41
|
return writer;
|
|
22
42
|
},
|
|
23
43
|
decode(input, length) {
|
|
@@ -48,6 +68,34 @@ const ConnectRequest = {
|
|
|
48
68
|
message.IsRunningWithDebugger = reader.bool();
|
|
49
69
|
continue;
|
|
50
70
|
}
|
|
71
|
+
case 4: {
|
|
72
|
+
if (tag !== 32) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.ProcessId = reader.int32();
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
case 5: {
|
|
79
|
+
if (tag !== 42) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.ProcessPath = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
case 6: {
|
|
86
|
+
if (tag !== 50) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.MachineName = reader.string();
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
case 7: {
|
|
93
|
+
if (tag !== 58) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.ClientType = reader.string();
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
51
99
|
}
|
|
52
100
|
if ((tag & 7) === 4 || tag === 0) {
|
|
53
101
|
break;
|
|
@@ -63,6 +111,10 @@ const ConnectRequest = {
|
|
|
63
111
|
IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)
|
|
64
112
|
? globalThis.Boolean(object.IsRunningWithDebugger)
|
|
65
113
|
: false,
|
|
114
|
+
ProcessId: isSet(object.ProcessId) ? globalThis.Number(object.ProcessId) : 0,
|
|
115
|
+
ProcessPath: isSet(object.ProcessPath) ? globalThis.String(object.ProcessPath) : "",
|
|
116
|
+
MachineName: isSet(object.MachineName) ? globalThis.String(object.MachineName) : "",
|
|
117
|
+
ClientType: isSet(object.ClientType) ? globalThis.String(object.ClientType) : "",
|
|
66
118
|
};
|
|
67
119
|
},
|
|
68
120
|
toJSON(message) {
|
|
@@ -76,6 +128,18 @@ const ConnectRequest = {
|
|
|
76
128
|
if (message.IsRunningWithDebugger !== false) {
|
|
77
129
|
obj.IsRunningWithDebugger = message.IsRunningWithDebugger;
|
|
78
130
|
}
|
|
131
|
+
if (message.ProcessId !== 0) {
|
|
132
|
+
obj.ProcessId = Math.round(message.ProcessId);
|
|
133
|
+
}
|
|
134
|
+
if (message.ProcessPath !== "") {
|
|
135
|
+
obj.ProcessPath = message.ProcessPath;
|
|
136
|
+
}
|
|
137
|
+
if (message.MachineName !== "") {
|
|
138
|
+
obj.MachineName = message.MachineName;
|
|
139
|
+
}
|
|
140
|
+
if (message.ClientType !== "") {
|
|
141
|
+
obj.ClientType = message.ClientType;
|
|
142
|
+
}
|
|
79
143
|
return obj;
|
|
80
144
|
},
|
|
81
145
|
create(base) {
|
|
@@ -86,6 +150,197 @@ const ConnectRequest = {
|
|
|
86
150
|
message.ConnectionId = object.ConnectionId ?? "";
|
|
87
151
|
message.ClientVersion = object.ClientVersion ?? "";
|
|
88
152
|
message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;
|
|
153
|
+
message.ProcessId = object.ProcessId ?? 0;
|
|
154
|
+
message.ProcessPath = object.ProcessPath ?? "";
|
|
155
|
+
message.MachineName = object.MachineName ?? "";
|
|
156
|
+
message.ClientType = object.ClientType ?? "";
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
function createBaseConnectedClient() {
|
|
161
|
+
return {
|
|
162
|
+
ConnectionId: "",
|
|
163
|
+
Version: "",
|
|
164
|
+
LastSeen: undefined,
|
|
165
|
+
IsRunningWithDebugger: false,
|
|
166
|
+
SiloAddress: "",
|
|
167
|
+
ProcessId: 0,
|
|
168
|
+
ProcessPath: "",
|
|
169
|
+
MachineName: "",
|
|
170
|
+
ClientType: "",
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const ConnectedClient = {
|
|
174
|
+
encode(message, writer = new wire.BinaryWriter()) {
|
|
175
|
+
if (message.ConnectionId !== "") {
|
|
176
|
+
writer.uint32(10).string(message.ConnectionId);
|
|
177
|
+
}
|
|
178
|
+
if (message.Version !== "") {
|
|
179
|
+
writer.uint32(18).string(message.Version);
|
|
180
|
+
}
|
|
181
|
+
if (message.LastSeen !== undefined) {
|
|
182
|
+
SerializableDateTimeOffset.encode(message.LastSeen, writer.uint32(26).fork()).join();
|
|
183
|
+
}
|
|
184
|
+
if (message.IsRunningWithDebugger !== false) {
|
|
185
|
+
writer.uint32(32).bool(message.IsRunningWithDebugger);
|
|
186
|
+
}
|
|
187
|
+
if (message.SiloAddress !== "") {
|
|
188
|
+
writer.uint32(42).string(message.SiloAddress);
|
|
189
|
+
}
|
|
190
|
+
if (message.ProcessId !== 0) {
|
|
191
|
+
writer.uint32(48).int32(message.ProcessId);
|
|
192
|
+
}
|
|
193
|
+
if (message.ProcessPath !== "") {
|
|
194
|
+
writer.uint32(58).string(message.ProcessPath);
|
|
195
|
+
}
|
|
196
|
+
if (message.MachineName !== "") {
|
|
197
|
+
writer.uint32(66).string(message.MachineName);
|
|
198
|
+
}
|
|
199
|
+
if (message.ClientType !== "") {
|
|
200
|
+
writer.uint32(74).string(message.ClientType);
|
|
201
|
+
}
|
|
202
|
+
return writer;
|
|
203
|
+
},
|
|
204
|
+
decode(input, length) {
|
|
205
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
206
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
207
|
+
const message = createBaseConnectedClient();
|
|
208
|
+
while (reader.pos < end) {
|
|
209
|
+
const tag = reader.uint32();
|
|
210
|
+
switch (tag >>> 3) {
|
|
211
|
+
case 1: {
|
|
212
|
+
if (tag !== 10) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.ConnectionId = reader.string();
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
case 2: {
|
|
219
|
+
if (tag !== 18) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
message.Version = reader.string();
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
case 3: {
|
|
226
|
+
if (tag !== 26) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.LastSeen = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 4: {
|
|
233
|
+
if (tag !== 32) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.IsRunningWithDebugger = reader.bool();
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 5: {
|
|
240
|
+
if (tag !== 42) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.SiloAddress = reader.string();
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
case 6: {
|
|
247
|
+
if (tag !== 48) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.ProcessId = reader.int32();
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
case 7: {
|
|
254
|
+
if (tag !== 58) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.ProcessPath = reader.string();
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
case 8: {
|
|
261
|
+
if (tag !== 66) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.MachineName = reader.string();
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
case 9: {
|
|
268
|
+
if (tag !== 74) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.ClientType = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
reader.skip(tag & 7);
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromJSON(object) {
|
|
283
|
+
return {
|
|
284
|
+
ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : "",
|
|
285
|
+
Version: isSet(object.Version) ? globalThis.String(object.Version) : "",
|
|
286
|
+
LastSeen: isSet(object.LastSeen) ? SerializableDateTimeOffset.fromJSON(object.LastSeen) : undefined,
|
|
287
|
+
IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)
|
|
288
|
+
? globalThis.Boolean(object.IsRunningWithDebugger)
|
|
289
|
+
: false,
|
|
290
|
+
SiloAddress: isSet(object.SiloAddress) ? globalThis.String(object.SiloAddress) : "",
|
|
291
|
+
ProcessId: isSet(object.ProcessId) ? globalThis.Number(object.ProcessId) : 0,
|
|
292
|
+
ProcessPath: isSet(object.ProcessPath) ? globalThis.String(object.ProcessPath) : "",
|
|
293
|
+
MachineName: isSet(object.MachineName) ? globalThis.String(object.MachineName) : "",
|
|
294
|
+
ClientType: isSet(object.ClientType) ? globalThis.String(object.ClientType) : "",
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
toJSON(message) {
|
|
298
|
+
const obj = {};
|
|
299
|
+
if (message.ConnectionId !== "") {
|
|
300
|
+
obj.ConnectionId = message.ConnectionId;
|
|
301
|
+
}
|
|
302
|
+
if (message.Version !== "") {
|
|
303
|
+
obj.Version = message.Version;
|
|
304
|
+
}
|
|
305
|
+
if (message.LastSeen !== undefined) {
|
|
306
|
+
obj.LastSeen = SerializableDateTimeOffset.toJSON(message.LastSeen);
|
|
307
|
+
}
|
|
308
|
+
if (message.IsRunningWithDebugger !== false) {
|
|
309
|
+
obj.IsRunningWithDebugger = message.IsRunningWithDebugger;
|
|
310
|
+
}
|
|
311
|
+
if (message.SiloAddress !== "") {
|
|
312
|
+
obj.SiloAddress = message.SiloAddress;
|
|
313
|
+
}
|
|
314
|
+
if (message.ProcessId !== 0) {
|
|
315
|
+
obj.ProcessId = Math.round(message.ProcessId);
|
|
316
|
+
}
|
|
317
|
+
if (message.ProcessPath !== "") {
|
|
318
|
+
obj.ProcessPath = message.ProcessPath;
|
|
319
|
+
}
|
|
320
|
+
if (message.MachineName !== "") {
|
|
321
|
+
obj.MachineName = message.MachineName;
|
|
322
|
+
}
|
|
323
|
+
if (message.ClientType !== "") {
|
|
324
|
+
obj.ClientType = message.ClientType;
|
|
325
|
+
}
|
|
326
|
+
return obj;
|
|
327
|
+
},
|
|
328
|
+
create(base) {
|
|
329
|
+
return ConnectedClient.fromPartial(base ?? {});
|
|
330
|
+
},
|
|
331
|
+
fromPartial(object) {
|
|
332
|
+
const message = createBaseConnectedClient();
|
|
333
|
+
message.ConnectionId = object.ConnectionId ?? "";
|
|
334
|
+
message.Version = object.Version ?? "";
|
|
335
|
+
message.LastSeen = (object.LastSeen !== undefined && object.LastSeen !== null)
|
|
336
|
+
? SerializableDateTimeOffset.fromPartial(object.LastSeen)
|
|
337
|
+
: undefined;
|
|
338
|
+
message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;
|
|
339
|
+
message.SiloAddress = object.SiloAddress ?? "";
|
|
340
|
+
message.ProcessId = object.ProcessId ?? 0;
|
|
341
|
+
message.ProcessPath = object.ProcessPath ?? "";
|
|
342
|
+
message.MachineName = object.MachineName ?? "";
|
|
343
|
+
message.ClientType = object.ClientType ?? "";
|
|
89
344
|
return message;
|
|
90
345
|
},
|
|
91
346
|
};
|
|
@@ -191,6 +446,110 @@ const DescriptorSetResponse = {
|
|
|
191
446
|
return message;
|
|
192
447
|
},
|
|
193
448
|
};
|
|
449
|
+
function createBaseIEnumerableConnectedClient() {
|
|
450
|
+
return { items: [] };
|
|
451
|
+
}
|
|
452
|
+
const IEnumerableConnectedClient = {
|
|
453
|
+
encode(message, writer = new wire.BinaryWriter()) {
|
|
454
|
+
for (const v of message.items) {
|
|
455
|
+
ConnectedClient.encode(v, writer.uint32(10).fork()).join();
|
|
456
|
+
}
|
|
457
|
+
return writer;
|
|
458
|
+
},
|
|
459
|
+
decode(input, length) {
|
|
460
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
461
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
462
|
+
const message = createBaseIEnumerableConnectedClient();
|
|
463
|
+
while (reader.pos < end) {
|
|
464
|
+
const tag = reader.uint32();
|
|
465
|
+
switch (tag >>> 3) {
|
|
466
|
+
case 1: {
|
|
467
|
+
if (tag !== 10) {
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
message.items.push(ConnectedClient.decode(reader, reader.uint32()));
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
reader.skip(tag & 7);
|
|
478
|
+
}
|
|
479
|
+
return message;
|
|
480
|
+
},
|
|
481
|
+
fromJSON(object) {
|
|
482
|
+
return {
|
|
483
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ConnectedClient.fromJSON(e)) : [],
|
|
484
|
+
};
|
|
485
|
+
},
|
|
486
|
+
toJSON(message) {
|
|
487
|
+
const obj = {};
|
|
488
|
+
if (message.items?.length) {
|
|
489
|
+
obj.items = message.items.map((e) => ConnectedClient.toJSON(e));
|
|
490
|
+
}
|
|
491
|
+
return obj;
|
|
492
|
+
},
|
|
493
|
+
create(base) {
|
|
494
|
+
return IEnumerableConnectedClient.fromPartial(base ?? {});
|
|
495
|
+
},
|
|
496
|
+
fromPartial(object) {
|
|
497
|
+
const message = createBaseIEnumerableConnectedClient();
|
|
498
|
+
message.items = object.items?.map((e) => ConnectedClient.fromPartial(e)) || [];
|
|
499
|
+
return message;
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
function createBaseSerializableDateTimeOffset() {
|
|
503
|
+
return { Value: "" };
|
|
504
|
+
}
|
|
505
|
+
const SerializableDateTimeOffset = {
|
|
506
|
+
encode(message, writer = new wire.BinaryWriter()) {
|
|
507
|
+
if (message.Value !== "") {
|
|
508
|
+
writer.uint32(10).string(message.Value);
|
|
509
|
+
}
|
|
510
|
+
return writer;
|
|
511
|
+
},
|
|
512
|
+
decode(input, length) {
|
|
513
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
514
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
515
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
516
|
+
while (reader.pos < end) {
|
|
517
|
+
const tag = reader.uint32();
|
|
518
|
+
switch (tag >>> 3) {
|
|
519
|
+
case 1: {
|
|
520
|
+
if (tag !== 10) {
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
message.Value = reader.string();
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
reader.skip(tag & 7);
|
|
531
|
+
}
|
|
532
|
+
return message;
|
|
533
|
+
},
|
|
534
|
+
fromJSON(object) {
|
|
535
|
+
return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
|
|
536
|
+
},
|
|
537
|
+
toJSON(message) {
|
|
538
|
+
const obj = {};
|
|
539
|
+
if (message.Value !== "") {
|
|
540
|
+
obj.Value = message.Value;
|
|
541
|
+
}
|
|
542
|
+
return obj;
|
|
543
|
+
},
|
|
544
|
+
create(base) {
|
|
545
|
+
return SerializableDateTimeOffset.fromPartial(base ?? {});
|
|
546
|
+
},
|
|
547
|
+
fromPartial(object) {
|
|
548
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
549
|
+
message.Value = object.Value ?? "";
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
};
|
|
194
553
|
const ConnectionServiceDefinition = {
|
|
195
554
|
name: "ConnectionService",
|
|
196
555
|
fullName: "Cratis.Chronicle.Contracts.Clients.ConnectionService",
|
|
@@ -211,6 +570,14 @@ const ConnectionServiceDefinition = {
|
|
|
211
570
|
responseStream: false,
|
|
212
571
|
options: {},
|
|
213
572
|
},
|
|
573
|
+
getConnectedClients: {
|
|
574
|
+
name: "GetConnectedClients",
|
|
575
|
+
requestType: empty.Empty,
|
|
576
|
+
requestStream: false,
|
|
577
|
+
responseType: IEnumerableConnectedClient,
|
|
578
|
+
responseStream: false,
|
|
579
|
+
options: {},
|
|
580
|
+
},
|
|
214
581
|
getDescriptorSet: {
|
|
215
582
|
name: "GetDescriptorSet",
|
|
216
583
|
requestType: empty.Empty,
|
|
@@ -219,6 +586,14 @@ const ConnectionServiceDefinition = {
|
|
|
219
586
|
responseStream: false,
|
|
220
587
|
options: {},
|
|
221
588
|
},
|
|
589
|
+
observeConnectedClients: {
|
|
590
|
+
name: "ObserveConnectedClients",
|
|
591
|
+
requestType: empty.Empty,
|
|
592
|
+
requestStream: false,
|
|
593
|
+
responseType: IEnumerableConnectedClient,
|
|
594
|
+
responseStream: true,
|
|
595
|
+
options: {},
|
|
596
|
+
},
|
|
222
597
|
},
|
|
223
598
|
};
|
|
224
599
|
function isSet(value) {
|
|
@@ -226,8 +601,11 @@ function isSet(value) {
|
|
|
226
601
|
}
|
|
227
602
|
|
|
228
603
|
exports.ConnectRequest = ConnectRequest;
|
|
604
|
+
exports.ConnectedClient = ConnectedClient;
|
|
229
605
|
exports.ConnectionKeepAlive = ConnectionKeepAlive;
|
|
230
606
|
exports.ConnectionServiceDefinition = ConnectionServiceDefinition;
|
|
231
607
|
exports.DescriptorSetResponse = DescriptorSetResponse;
|
|
608
|
+
exports.IEnumerableConnectedClient = IEnumerableConnectedClient;
|
|
609
|
+
exports.SerializableDateTimeOffset = SerializableDateTimeOffset;
|
|
232
610
|
exports.protobufPackage = protobufPackage;
|
|
233
611
|
//# sourceMappingURL=clients.js.map
|