@cratis/chronicle.contracts 16.2.0 → 16.3.0
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
package/dist/cjs/index.js
CHANGED
|
@@ -22,9 +22,12 @@ var bcl = require('./generated/protobuf-net/bcl.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
exports.ConnectRequest = clients.ConnectRequest;
|
|
25
|
+
exports.ConnectedClient = clients.ConnectedClient;
|
|
25
26
|
exports.ConnectionKeepAlive = clients.ConnectionKeepAlive;
|
|
26
27
|
exports.ConnectionServiceDefinition = clients.ConnectionServiceDefinition;
|
|
27
28
|
exports.DescriptorSetResponse = clients.DescriptorSetResponse;
|
|
29
|
+
exports.IEnumerableConnectedClient = clients.IEnumerableConnectedClient;
|
|
30
|
+
exports.SerializableDateTimeOffset = clients.SerializableDateTimeOffset;
|
|
28
31
|
exports.protobufPackage = clients.protobufPackage;
|
|
29
32
|
exports.EnsureEventStore = cratis_chronicle_contracts.EnsureEventStore;
|
|
30
33
|
exports.EnsureNamespace = cratis_chronicle_contracts.EnsureNamespace;
|
|
@@ -98,7 +101,6 @@ exports.RedactForEventSourceRequest = eventsequences.RedactForEventSourceRequest
|
|
|
98
101
|
exports.RedactRequest = eventsequences.RedactRequest;
|
|
99
102
|
exports.RedactResponse = eventsequences.RedactResponse;
|
|
100
103
|
exports.ReviseRequest = eventsequences.ReviseRequest;
|
|
101
|
-
exports.SerializableDateTimeOffset = eventsequences.SerializableDateTimeOffset;
|
|
102
104
|
exports.completeStreamErrorFromJSON = eventsequences.completeStreamErrorFromJSON;
|
|
103
105
|
exports.completeStreamErrorToJSON = eventsequences.completeStreamErrorToJSON;
|
|
104
106
|
exports.eventObservationStateFromJSON = eventsequences.eventObservationStateFromJSON;
|
|
@@ -147,6 +149,7 @@ exports.ClearObserverQuarantine = observation.ClearObserverQuarantine;
|
|
|
147
149
|
exports.FailedPartition = observation.FailedPartition;
|
|
148
150
|
exports.FailedPartitionAttempt = observation.FailedPartitionAttempt;
|
|
149
151
|
exports.FailedPartitionsDefinition = observation.FailedPartitionsDefinition;
|
|
152
|
+
exports.GetConnectedClientsForObserverRequest = observation.GetConnectedClientsForObserverRequest;
|
|
150
153
|
exports.GetFailedPartitionsRequest = observation.GetFailedPartitionsRequest;
|
|
151
154
|
exports.GetObserverInformationRequest = observation.GetObserverInformationRequest;
|
|
152
155
|
exports.GetReplayableObserversForEventTypesRequest = observation.GetReplayableObserversForEventTypesRequest;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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,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;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EA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,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"}
|
|
@@ -3,7 +3,15 @@ import { Empty } from './google/protobuf/empty.js';
|
|
|
3
3
|
|
|
4
4
|
const protobufPackage = "Cratis.Chronicle.Contracts.Clients";
|
|
5
5
|
function createBaseConnectRequest() {
|
|
6
|
-
return {
|
|
6
|
+
return {
|
|
7
|
+
ConnectionId: "",
|
|
8
|
+
ClientVersion: "",
|
|
9
|
+
IsRunningWithDebugger: false,
|
|
10
|
+
ProcessId: 0,
|
|
11
|
+
ProcessPath: "",
|
|
12
|
+
MachineName: "",
|
|
13
|
+
ClientType: "",
|
|
14
|
+
};
|
|
7
15
|
}
|
|
8
16
|
const ConnectRequest = {
|
|
9
17
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -16,6 +24,18 @@ const ConnectRequest = {
|
|
|
16
24
|
if (message.IsRunningWithDebugger !== false) {
|
|
17
25
|
writer.uint32(24).bool(message.IsRunningWithDebugger);
|
|
18
26
|
}
|
|
27
|
+
if (message.ProcessId !== 0) {
|
|
28
|
+
writer.uint32(32).int32(message.ProcessId);
|
|
29
|
+
}
|
|
30
|
+
if (message.ProcessPath !== "") {
|
|
31
|
+
writer.uint32(42).string(message.ProcessPath);
|
|
32
|
+
}
|
|
33
|
+
if (message.MachineName !== "") {
|
|
34
|
+
writer.uint32(50).string(message.MachineName);
|
|
35
|
+
}
|
|
36
|
+
if (message.ClientType !== "") {
|
|
37
|
+
writer.uint32(58).string(message.ClientType);
|
|
38
|
+
}
|
|
19
39
|
return writer;
|
|
20
40
|
},
|
|
21
41
|
decode(input, length) {
|
|
@@ -46,6 +66,34 @@ const ConnectRequest = {
|
|
|
46
66
|
message.IsRunningWithDebugger = reader.bool();
|
|
47
67
|
continue;
|
|
48
68
|
}
|
|
69
|
+
case 4: {
|
|
70
|
+
if (tag !== 32) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.ProcessId = reader.int32();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
case 5: {
|
|
77
|
+
if (tag !== 42) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.ProcessPath = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
case 6: {
|
|
84
|
+
if (tag !== 50) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.MachineName = reader.string();
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
case 7: {
|
|
91
|
+
if (tag !== 58) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.ClientType = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
49
97
|
}
|
|
50
98
|
if ((tag & 7) === 4 || tag === 0) {
|
|
51
99
|
break;
|
|
@@ -61,6 +109,10 @@ const ConnectRequest = {
|
|
|
61
109
|
IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)
|
|
62
110
|
? globalThis.Boolean(object.IsRunningWithDebugger)
|
|
63
111
|
: false,
|
|
112
|
+
ProcessId: isSet(object.ProcessId) ? globalThis.Number(object.ProcessId) : 0,
|
|
113
|
+
ProcessPath: isSet(object.ProcessPath) ? globalThis.String(object.ProcessPath) : "",
|
|
114
|
+
MachineName: isSet(object.MachineName) ? globalThis.String(object.MachineName) : "",
|
|
115
|
+
ClientType: isSet(object.ClientType) ? globalThis.String(object.ClientType) : "",
|
|
64
116
|
};
|
|
65
117
|
},
|
|
66
118
|
toJSON(message) {
|
|
@@ -74,6 +126,18 @@ const ConnectRequest = {
|
|
|
74
126
|
if (message.IsRunningWithDebugger !== false) {
|
|
75
127
|
obj.IsRunningWithDebugger = message.IsRunningWithDebugger;
|
|
76
128
|
}
|
|
129
|
+
if (message.ProcessId !== 0) {
|
|
130
|
+
obj.ProcessId = Math.round(message.ProcessId);
|
|
131
|
+
}
|
|
132
|
+
if (message.ProcessPath !== "") {
|
|
133
|
+
obj.ProcessPath = message.ProcessPath;
|
|
134
|
+
}
|
|
135
|
+
if (message.MachineName !== "") {
|
|
136
|
+
obj.MachineName = message.MachineName;
|
|
137
|
+
}
|
|
138
|
+
if (message.ClientType !== "") {
|
|
139
|
+
obj.ClientType = message.ClientType;
|
|
140
|
+
}
|
|
77
141
|
return obj;
|
|
78
142
|
},
|
|
79
143
|
create(base) {
|
|
@@ -84,6 +148,197 @@ const ConnectRequest = {
|
|
|
84
148
|
message.ConnectionId = object.ConnectionId ?? "";
|
|
85
149
|
message.ClientVersion = object.ClientVersion ?? "";
|
|
86
150
|
message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;
|
|
151
|
+
message.ProcessId = object.ProcessId ?? 0;
|
|
152
|
+
message.ProcessPath = object.ProcessPath ?? "";
|
|
153
|
+
message.MachineName = object.MachineName ?? "";
|
|
154
|
+
message.ClientType = object.ClientType ?? "";
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
function createBaseConnectedClient() {
|
|
159
|
+
return {
|
|
160
|
+
ConnectionId: "",
|
|
161
|
+
Version: "",
|
|
162
|
+
LastSeen: undefined,
|
|
163
|
+
IsRunningWithDebugger: false,
|
|
164
|
+
SiloAddress: "",
|
|
165
|
+
ProcessId: 0,
|
|
166
|
+
ProcessPath: "",
|
|
167
|
+
MachineName: "",
|
|
168
|
+
ClientType: "",
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const ConnectedClient = {
|
|
172
|
+
encode(message, writer = new BinaryWriter()) {
|
|
173
|
+
if (message.ConnectionId !== "") {
|
|
174
|
+
writer.uint32(10).string(message.ConnectionId);
|
|
175
|
+
}
|
|
176
|
+
if (message.Version !== "") {
|
|
177
|
+
writer.uint32(18).string(message.Version);
|
|
178
|
+
}
|
|
179
|
+
if (message.LastSeen !== undefined) {
|
|
180
|
+
SerializableDateTimeOffset.encode(message.LastSeen, writer.uint32(26).fork()).join();
|
|
181
|
+
}
|
|
182
|
+
if (message.IsRunningWithDebugger !== false) {
|
|
183
|
+
writer.uint32(32).bool(message.IsRunningWithDebugger);
|
|
184
|
+
}
|
|
185
|
+
if (message.SiloAddress !== "") {
|
|
186
|
+
writer.uint32(42).string(message.SiloAddress);
|
|
187
|
+
}
|
|
188
|
+
if (message.ProcessId !== 0) {
|
|
189
|
+
writer.uint32(48).int32(message.ProcessId);
|
|
190
|
+
}
|
|
191
|
+
if (message.ProcessPath !== "") {
|
|
192
|
+
writer.uint32(58).string(message.ProcessPath);
|
|
193
|
+
}
|
|
194
|
+
if (message.MachineName !== "") {
|
|
195
|
+
writer.uint32(66).string(message.MachineName);
|
|
196
|
+
}
|
|
197
|
+
if (message.ClientType !== "") {
|
|
198
|
+
writer.uint32(74).string(message.ClientType);
|
|
199
|
+
}
|
|
200
|
+
return writer;
|
|
201
|
+
},
|
|
202
|
+
decode(input, length) {
|
|
203
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
204
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
+
const message = createBaseConnectedClient();
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
case 1: {
|
|
210
|
+
if (tag !== 10) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
message.ConnectionId = reader.string();
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
case 2: {
|
|
217
|
+
if (tag !== 18) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
message.Version = reader.string();
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
case 3: {
|
|
224
|
+
if (tag !== 26) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
message.LastSeen = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
case 4: {
|
|
231
|
+
if (tag !== 32) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
message.IsRunningWithDebugger = reader.bool();
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
case 5: {
|
|
238
|
+
if (tag !== 42) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
message.SiloAddress = reader.string();
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
case 6: {
|
|
245
|
+
if (tag !== 48) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.ProcessId = reader.int32();
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
case 7: {
|
|
252
|
+
if (tag !== 58) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
message.ProcessPath = reader.string();
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
case 8: {
|
|
259
|
+
if (tag !== 66) {
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
message.MachineName = reader.string();
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
case 9: {
|
|
266
|
+
if (tag !== 74) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
message.ClientType = reader.string();
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
reader.skip(tag & 7);
|
|
277
|
+
}
|
|
278
|
+
return message;
|
|
279
|
+
},
|
|
280
|
+
fromJSON(object) {
|
|
281
|
+
return {
|
|
282
|
+
ConnectionId: isSet(object.ConnectionId) ? globalThis.String(object.ConnectionId) : "",
|
|
283
|
+
Version: isSet(object.Version) ? globalThis.String(object.Version) : "",
|
|
284
|
+
LastSeen: isSet(object.LastSeen) ? SerializableDateTimeOffset.fromJSON(object.LastSeen) : undefined,
|
|
285
|
+
IsRunningWithDebugger: isSet(object.IsRunningWithDebugger)
|
|
286
|
+
? globalThis.Boolean(object.IsRunningWithDebugger)
|
|
287
|
+
: false,
|
|
288
|
+
SiloAddress: isSet(object.SiloAddress) ? globalThis.String(object.SiloAddress) : "",
|
|
289
|
+
ProcessId: isSet(object.ProcessId) ? globalThis.Number(object.ProcessId) : 0,
|
|
290
|
+
ProcessPath: isSet(object.ProcessPath) ? globalThis.String(object.ProcessPath) : "",
|
|
291
|
+
MachineName: isSet(object.MachineName) ? globalThis.String(object.MachineName) : "",
|
|
292
|
+
ClientType: isSet(object.ClientType) ? globalThis.String(object.ClientType) : "",
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
toJSON(message) {
|
|
296
|
+
const obj = {};
|
|
297
|
+
if (message.ConnectionId !== "") {
|
|
298
|
+
obj.ConnectionId = message.ConnectionId;
|
|
299
|
+
}
|
|
300
|
+
if (message.Version !== "") {
|
|
301
|
+
obj.Version = message.Version;
|
|
302
|
+
}
|
|
303
|
+
if (message.LastSeen !== undefined) {
|
|
304
|
+
obj.LastSeen = SerializableDateTimeOffset.toJSON(message.LastSeen);
|
|
305
|
+
}
|
|
306
|
+
if (message.IsRunningWithDebugger !== false) {
|
|
307
|
+
obj.IsRunningWithDebugger = message.IsRunningWithDebugger;
|
|
308
|
+
}
|
|
309
|
+
if (message.SiloAddress !== "") {
|
|
310
|
+
obj.SiloAddress = message.SiloAddress;
|
|
311
|
+
}
|
|
312
|
+
if (message.ProcessId !== 0) {
|
|
313
|
+
obj.ProcessId = Math.round(message.ProcessId);
|
|
314
|
+
}
|
|
315
|
+
if (message.ProcessPath !== "") {
|
|
316
|
+
obj.ProcessPath = message.ProcessPath;
|
|
317
|
+
}
|
|
318
|
+
if (message.MachineName !== "") {
|
|
319
|
+
obj.MachineName = message.MachineName;
|
|
320
|
+
}
|
|
321
|
+
if (message.ClientType !== "") {
|
|
322
|
+
obj.ClientType = message.ClientType;
|
|
323
|
+
}
|
|
324
|
+
return obj;
|
|
325
|
+
},
|
|
326
|
+
create(base) {
|
|
327
|
+
return ConnectedClient.fromPartial(base ?? {});
|
|
328
|
+
},
|
|
329
|
+
fromPartial(object) {
|
|
330
|
+
const message = createBaseConnectedClient();
|
|
331
|
+
message.ConnectionId = object.ConnectionId ?? "";
|
|
332
|
+
message.Version = object.Version ?? "";
|
|
333
|
+
message.LastSeen = (object.LastSeen !== undefined && object.LastSeen !== null)
|
|
334
|
+
? SerializableDateTimeOffset.fromPartial(object.LastSeen)
|
|
335
|
+
: undefined;
|
|
336
|
+
message.IsRunningWithDebugger = object.IsRunningWithDebugger ?? false;
|
|
337
|
+
message.SiloAddress = object.SiloAddress ?? "";
|
|
338
|
+
message.ProcessId = object.ProcessId ?? 0;
|
|
339
|
+
message.ProcessPath = object.ProcessPath ?? "";
|
|
340
|
+
message.MachineName = object.MachineName ?? "";
|
|
341
|
+
message.ClientType = object.ClientType ?? "";
|
|
87
342
|
return message;
|
|
88
343
|
},
|
|
89
344
|
};
|
|
@@ -189,6 +444,110 @@ const DescriptorSetResponse = {
|
|
|
189
444
|
return message;
|
|
190
445
|
},
|
|
191
446
|
};
|
|
447
|
+
function createBaseIEnumerableConnectedClient() {
|
|
448
|
+
return { items: [] };
|
|
449
|
+
}
|
|
450
|
+
const IEnumerableConnectedClient = {
|
|
451
|
+
encode(message, writer = new BinaryWriter()) {
|
|
452
|
+
for (const v of message.items) {
|
|
453
|
+
ConnectedClient.encode(v, writer.uint32(10).fork()).join();
|
|
454
|
+
}
|
|
455
|
+
return writer;
|
|
456
|
+
},
|
|
457
|
+
decode(input, length) {
|
|
458
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
459
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
460
|
+
const message = createBaseIEnumerableConnectedClient();
|
|
461
|
+
while (reader.pos < end) {
|
|
462
|
+
const tag = reader.uint32();
|
|
463
|
+
switch (tag >>> 3) {
|
|
464
|
+
case 1: {
|
|
465
|
+
if (tag !== 10) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.items.push(ConnectedClient.decode(reader, reader.uint32()));
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
reader.skip(tag & 7);
|
|
476
|
+
}
|
|
477
|
+
return message;
|
|
478
|
+
},
|
|
479
|
+
fromJSON(object) {
|
|
480
|
+
return {
|
|
481
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ConnectedClient.fromJSON(e)) : [],
|
|
482
|
+
};
|
|
483
|
+
},
|
|
484
|
+
toJSON(message) {
|
|
485
|
+
const obj = {};
|
|
486
|
+
if (message.items?.length) {
|
|
487
|
+
obj.items = message.items.map((e) => ConnectedClient.toJSON(e));
|
|
488
|
+
}
|
|
489
|
+
return obj;
|
|
490
|
+
},
|
|
491
|
+
create(base) {
|
|
492
|
+
return IEnumerableConnectedClient.fromPartial(base ?? {});
|
|
493
|
+
},
|
|
494
|
+
fromPartial(object) {
|
|
495
|
+
const message = createBaseIEnumerableConnectedClient();
|
|
496
|
+
message.items = object.items?.map((e) => ConnectedClient.fromPartial(e)) || [];
|
|
497
|
+
return message;
|
|
498
|
+
},
|
|
499
|
+
};
|
|
500
|
+
function createBaseSerializableDateTimeOffset() {
|
|
501
|
+
return { Value: "" };
|
|
502
|
+
}
|
|
503
|
+
const SerializableDateTimeOffset = {
|
|
504
|
+
encode(message, writer = new BinaryWriter()) {
|
|
505
|
+
if (message.Value !== "") {
|
|
506
|
+
writer.uint32(10).string(message.Value);
|
|
507
|
+
}
|
|
508
|
+
return writer;
|
|
509
|
+
},
|
|
510
|
+
decode(input, length) {
|
|
511
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
512
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
513
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
514
|
+
while (reader.pos < end) {
|
|
515
|
+
const tag = reader.uint32();
|
|
516
|
+
switch (tag >>> 3) {
|
|
517
|
+
case 1: {
|
|
518
|
+
if (tag !== 10) {
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
message.Value = reader.string();
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
reader.skip(tag & 7);
|
|
529
|
+
}
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
fromJSON(object) {
|
|
533
|
+
return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
|
|
534
|
+
},
|
|
535
|
+
toJSON(message) {
|
|
536
|
+
const obj = {};
|
|
537
|
+
if (message.Value !== "") {
|
|
538
|
+
obj.Value = message.Value;
|
|
539
|
+
}
|
|
540
|
+
return obj;
|
|
541
|
+
},
|
|
542
|
+
create(base) {
|
|
543
|
+
return SerializableDateTimeOffset.fromPartial(base ?? {});
|
|
544
|
+
},
|
|
545
|
+
fromPartial(object) {
|
|
546
|
+
const message = createBaseSerializableDateTimeOffset();
|
|
547
|
+
message.Value = object.Value ?? "";
|
|
548
|
+
return message;
|
|
549
|
+
},
|
|
550
|
+
};
|
|
192
551
|
const ConnectionServiceDefinition = {
|
|
193
552
|
name: "ConnectionService",
|
|
194
553
|
fullName: "Cratis.Chronicle.Contracts.Clients.ConnectionService",
|
|
@@ -209,6 +568,14 @@ const ConnectionServiceDefinition = {
|
|
|
209
568
|
responseStream: false,
|
|
210
569
|
options: {},
|
|
211
570
|
},
|
|
571
|
+
getConnectedClients: {
|
|
572
|
+
name: "GetConnectedClients",
|
|
573
|
+
requestType: Empty,
|
|
574
|
+
requestStream: false,
|
|
575
|
+
responseType: IEnumerableConnectedClient,
|
|
576
|
+
responseStream: false,
|
|
577
|
+
options: {},
|
|
578
|
+
},
|
|
212
579
|
getDescriptorSet: {
|
|
213
580
|
name: "GetDescriptorSet",
|
|
214
581
|
requestType: Empty,
|
|
@@ -217,11 +584,19 @@ const ConnectionServiceDefinition = {
|
|
|
217
584
|
responseStream: false,
|
|
218
585
|
options: {},
|
|
219
586
|
},
|
|
587
|
+
observeConnectedClients: {
|
|
588
|
+
name: "ObserveConnectedClients",
|
|
589
|
+
requestType: Empty,
|
|
590
|
+
requestStream: false,
|
|
591
|
+
responseType: IEnumerableConnectedClient,
|
|
592
|
+
responseStream: true,
|
|
593
|
+
options: {},
|
|
594
|
+
},
|
|
220
595
|
},
|
|
221
596
|
};
|
|
222
597
|
function isSet(value) {
|
|
223
598
|
return value !== null && value !== undefined;
|
|
224
599
|
}
|
|
225
600
|
|
|
226
|
-
export { ConnectRequest, ConnectionKeepAlive, ConnectionServiceDefinition, DescriptorSetResponse, protobufPackage };
|
|
601
|
+
export { ConnectRequest, ConnectedClient, ConnectionKeepAlive, ConnectionServiceDefinition, DescriptorSetResponse, IEnumerableConnectedClient, SerializableDateTimeOffset, protobufPackage };
|
|
227
602
|
//# sourceMappingURL=clients.js.map
|