@latticexyz/services 0.16.4 → 1.1.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/bin/ecs-relay +0 -0
- package/bin/ecs-snapshot +0 -0
- package/bin/ecs-stream +0 -0
- package/bin/faucet +0 -0
- package/package.json +2 -2
- package/protobuf/go/ecs-relay/ecs-relay.pb.go +685 -0
- package/protobuf/go/ecs-relay/ecs-relay_grpc.pb.go +421 -0
- package/protobuf/go/faucet/faucet.pb.go +821 -0
- package/protobuf/go/faucet/faucet_grpc.pb.go +213 -0
- package/protobuf/ts/ecs-relay/ecs-relay.client.ts +169 -0
- package/protobuf/ts/ecs-relay/ecs-relay.ts +510 -0
- package/protobuf/ts/ecs-snapshot/ecs-snapshot.client.ts +1 -1
- package/protobuf/ts/ecs-snapshot/ecs-snapshot.ts +1 -1
- package/protobuf/ts/ecs-stream/ecs-stream.client.ts +1 -1
- package/protobuf/ts/ecs-stream/ecs-stream.ts +1 -1
- package/protobuf/ts/faucet/faucet.client.ts +120 -0
- package/protobuf/ts/faucet/faucet.ts +786 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
|
+
// @generated from protobuf file "ecs-relay.proto" (package "ecsrelay", syntax proto3)
|
|
4
|
+
// tslint:disable
|
|
5
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
+
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
|
15
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
16
|
+
/**
|
|
17
|
+
* Identifies a client connecting to Relay Service.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message ecsrelay.Identity
|
|
20
|
+
*/
|
|
21
|
+
export interface Identity {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: string name = 1;
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf message ecsrelay.Message
|
|
29
|
+
*/
|
|
30
|
+
export interface Message {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: uint32 version = 1;
|
|
33
|
+
*/
|
|
34
|
+
version: number;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: bytes data = 2;
|
|
37
|
+
*/
|
|
38
|
+
data: Uint8Array;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: int64 timestamp = 3;
|
|
41
|
+
*/
|
|
42
|
+
timestamp: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: string id = 4;
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf message ecsrelay.SubscriptionRequest
|
|
50
|
+
*/
|
|
51
|
+
export interface SubscriptionRequest {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: ecsrelay.Identity identity = 1;
|
|
54
|
+
*/
|
|
55
|
+
identity?: Identity;
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: ecsrelay.Subscription subscription = 2;
|
|
58
|
+
*/
|
|
59
|
+
subscription?: Subscription;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf message ecsrelay.Subscription
|
|
63
|
+
*/
|
|
64
|
+
export interface Subscription {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: string label = 1;
|
|
67
|
+
*/
|
|
68
|
+
label: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf message ecsrelay.PushRequest
|
|
72
|
+
*/
|
|
73
|
+
export interface PushRequest {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf field: ecsrelay.Identity identity = 1;
|
|
76
|
+
*/
|
|
77
|
+
identity?: Identity;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: string label = 2;
|
|
80
|
+
*/
|
|
81
|
+
label: string;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf field: repeated ecsrelay.Message messages = 3;
|
|
84
|
+
*/
|
|
85
|
+
messages: Message[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf message ecsrelay.PushResponse
|
|
89
|
+
*/
|
|
90
|
+
export interface PushResponse {}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message ecsrelay.CountIdentitiesRequest
|
|
93
|
+
*/
|
|
94
|
+
export interface CountIdentitiesRequest {}
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf message ecsrelay.CountIdentitiesResponse
|
|
97
|
+
*/
|
|
98
|
+
export interface CountIdentitiesResponse {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: uint32 count = 1;
|
|
101
|
+
*/
|
|
102
|
+
count: number;
|
|
103
|
+
}
|
|
104
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
105
|
+
class Identity$Type extends MessageType<Identity> {
|
|
106
|
+
constructor() {
|
|
107
|
+
super("ecsrelay.Identity", [{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }]);
|
|
108
|
+
}
|
|
109
|
+
create(value?: PartialMessage<Identity>): Identity {
|
|
110
|
+
const message = { name: "" };
|
|
111
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
112
|
+
if (value !== undefined) reflectionMergePartial<Identity>(this, message, value);
|
|
113
|
+
return message;
|
|
114
|
+
}
|
|
115
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Identity): Identity {
|
|
116
|
+
let message = target ?? this.create(),
|
|
117
|
+
end = reader.pos + length;
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
let [fieldNo, wireType] = reader.tag();
|
|
120
|
+
switch (fieldNo) {
|
|
121
|
+
case /* string name */ 1:
|
|
122
|
+
message.name = reader.string();
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
let u = options.readUnknownField;
|
|
126
|
+
if (u === "throw")
|
|
127
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
128
|
+
let d = reader.skip(wireType);
|
|
129
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return message;
|
|
133
|
+
}
|
|
134
|
+
internalBinaryWrite(message: Identity, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
135
|
+
/* string name = 1; */
|
|
136
|
+
if (message.name !== "") writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
137
|
+
let u = options.writeUnknownFields;
|
|
138
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
139
|
+
return writer;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @generated MessageType for protobuf message ecsrelay.Identity
|
|
144
|
+
*/
|
|
145
|
+
export const Identity = new Identity$Type();
|
|
146
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
147
|
+
class Message$Type extends MessageType<Message> {
|
|
148
|
+
constructor() {
|
|
149
|
+
super("ecsrelay.Message", [
|
|
150
|
+
{ no: 1, name: "version", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
151
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
152
|
+
{ no: 3, name: "timestamp", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
153
|
+
{ no: 4, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
154
|
+
]);
|
|
155
|
+
}
|
|
156
|
+
create(value?: PartialMessage<Message>): Message {
|
|
157
|
+
const message = { version: 0, data: new Uint8Array(0), timestamp: 0n, id: "" };
|
|
158
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
159
|
+
if (value !== undefined) reflectionMergePartial<Message>(this, message, value);
|
|
160
|
+
return message;
|
|
161
|
+
}
|
|
162
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Message): Message {
|
|
163
|
+
let message = target ?? this.create(),
|
|
164
|
+
end = reader.pos + length;
|
|
165
|
+
while (reader.pos < end) {
|
|
166
|
+
let [fieldNo, wireType] = reader.tag();
|
|
167
|
+
switch (fieldNo) {
|
|
168
|
+
case /* uint32 version */ 1:
|
|
169
|
+
message.version = reader.uint32();
|
|
170
|
+
break;
|
|
171
|
+
case /* bytes data */ 2:
|
|
172
|
+
message.data = reader.bytes();
|
|
173
|
+
break;
|
|
174
|
+
case /* int64 timestamp */ 3:
|
|
175
|
+
message.timestamp = reader.int64().toBigInt();
|
|
176
|
+
break;
|
|
177
|
+
case /* string id */ 4:
|
|
178
|
+
message.id = reader.string();
|
|
179
|
+
break;
|
|
180
|
+
default:
|
|
181
|
+
let u = options.readUnknownField;
|
|
182
|
+
if (u === "throw")
|
|
183
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
184
|
+
let d = reader.skip(wireType);
|
|
185
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return message;
|
|
189
|
+
}
|
|
190
|
+
internalBinaryWrite(message: Message, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
191
|
+
/* uint32 version = 1; */
|
|
192
|
+
if (message.version !== 0) writer.tag(1, WireType.Varint).uint32(message.version);
|
|
193
|
+
/* bytes data = 2; */
|
|
194
|
+
if (message.data.length) writer.tag(2, WireType.LengthDelimited).bytes(message.data);
|
|
195
|
+
/* int64 timestamp = 3; */
|
|
196
|
+
if (message.timestamp !== 0n) writer.tag(3, WireType.Varint).int64(message.timestamp);
|
|
197
|
+
/* string id = 4; */
|
|
198
|
+
if (message.id !== "") writer.tag(4, WireType.LengthDelimited).string(message.id);
|
|
199
|
+
let u = options.writeUnknownFields;
|
|
200
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
201
|
+
return writer;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @generated MessageType for protobuf message ecsrelay.Message
|
|
206
|
+
*/
|
|
207
|
+
export const Message = new Message$Type();
|
|
208
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
209
|
+
class SubscriptionRequest$Type extends MessageType<SubscriptionRequest> {
|
|
210
|
+
constructor() {
|
|
211
|
+
super("ecsrelay.SubscriptionRequest", [
|
|
212
|
+
{ no: 1, name: "identity", kind: "message", T: () => Identity },
|
|
213
|
+
{ no: 2, name: "subscription", kind: "message", T: () => Subscription },
|
|
214
|
+
]);
|
|
215
|
+
}
|
|
216
|
+
create(value?: PartialMessage<SubscriptionRequest>): SubscriptionRequest {
|
|
217
|
+
const message = {};
|
|
218
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
219
|
+
if (value !== undefined) reflectionMergePartial<SubscriptionRequest>(this, message, value);
|
|
220
|
+
return message;
|
|
221
|
+
}
|
|
222
|
+
internalBinaryRead(
|
|
223
|
+
reader: IBinaryReader,
|
|
224
|
+
length: number,
|
|
225
|
+
options: BinaryReadOptions,
|
|
226
|
+
target?: SubscriptionRequest
|
|
227
|
+
): SubscriptionRequest {
|
|
228
|
+
let message = target ?? this.create(),
|
|
229
|
+
end = reader.pos + length;
|
|
230
|
+
while (reader.pos < end) {
|
|
231
|
+
let [fieldNo, wireType] = reader.tag();
|
|
232
|
+
switch (fieldNo) {
|
|
233
|
+
case /* ecsrelay.Identity identity */ 1:
|
|
234
|
+
message.identity = Identity.internalBinaryRead(reader, reader.uint32(), options, message.identity);
|
|
235
|
+
break;
|
|
236
|
+
case /* ecsrelay.Subscription subscription */ 2:
|
|
237
|
+
message.subscription = Subscription.internalBinaryRead(
|
|
238
|
+
reader,
|
|
239
|
+
reader.uint32(),
|
|
240
|
+
options,
|
|
241
|
+
message.subscription
|
|
242
|
+
);
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
let u = options.readUnknownField;
|
|
246
|
+
if (u === "throw")
|
|
247
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
248
|
+
let d = reader.skip(wireType);
|
|
249
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return message;
|
|
253
|
+
}
|
|
254
|
+
internalBinaryWrite(message: SubscriptionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
255
|
+
/* ecsrelay.Identity identity = 1; */
|
|
256
|
+
if (message.identity)
|
|
257
|
+
Identity.internalBinaryWrite(message.identity, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
258
|
+
/* ecsrelay.Subscription subscription = 2; */
|
|
259
|
+
if (message.subscription)
|
|
260
|
+
Subscription.internalBinaryWrite(
|
|
261
|
+
message.subscription,
|
|
262
|
+
writer.tag(2, WireType.LengthDelimited).fork(),
|
|
263
|
+
options
|
|
264
|
+
).join();
|
|
265
|
+
let u = options.writeUnknownFields;
|
|
266
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
267
|
+
return writer;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @generated MessageType for protobuf message ecsrelay.SubscriptionRequest
|
|
272
|
+
*/
|
|
273
|
+
export const SubscriptionRequest = new SubscriptionRequest$Type();
|
|
274
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
275
|
+
class Subscription$Type extends MessageType<Subscription> {
|
|
276
|
+
constructor() {
|
|
277
|
+
super("ecsrelay.Subscription", [{ no: 1, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ }]);
|
|
278
|
+
}
|
|
279
|
+
create(value?: PartialMessage<Subscription>): Subscription {
|
|
280
|
+
const message = { label: "" };
|
|
281
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
282
|
+
if (value !== undefined) reflectionMergePartial<Subscription>(this, message, value);
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
internalBinaryRead(
|
|
286
|
+
reader: IBinaryReader,
|
|
287
|
+
length: number,
|
|
288
|
+
options: BinaryReadOptions,
|
|
289
|
+
target?: Subscription
|
|
290
|
+
): Subscription {
|
|
291
|
+
let message = target ?? this.create(),
|
|
292
|
+
end = reader.pos + length;
|
|
293
|
+
while (reader.pos < end) {
|
|
294
|
+
let [fieldNo, wireType] = reader.tag();
|
|
295
|
+
switch (fieldNo) {
|
|
296
|
+
case /* string label */ 1:
|
|
297
|
+
message.label = reader.string();
|
|
298
|
+
break;
|
|
299
|
+
default:
|
|
300
|
+
let u = options.readUnknownField;
|
|
301
|
+
if (u === "throw")
|
|
302
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
303
|
+
let d = reader.skip(wireType);
|
|
304
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return message;
|
|
308
|
+
}
|
|
309
|
+
internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
310
|
+
/* string label = 1; */
|
|
311
|
+
if (message.label !== "") writer.tag(1, WireType.LengthDelimited).string(message.label);
|
|
312
|
+
let u = options.writeUnknownFields;
|
|
313
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
314
|
+
return writer;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @generated MessageType for protobuf message ecsrelay.Subscription
|
|
319
|
+
*/
|
|
320
|
+
export const Subscription = new Subscription$Type();
|
|
321
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
322
|
+
class PushRequest$Type extends MessageType<PushRequest> {
|
|
323
|
+
constructor() {
|
|
324
|
+
super("ecsrelay.PushRequest", [
|
|
325
|
+
{ no: 1, name: "identity", kind: "message", T: () => Identity },
|
|
326
|
+
{ no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
327
|
+
{ no: 3, name: "messages", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Message },
|
|
328
|
+
]);
|
|
329
|
+
}
|
|
330
|
+
create(value?: PartialMessage<PushRequest>): PushRequest {
|
|
331
|
+
const message = { label: "", messages: [] };
|
|
332
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
333
|
+
if (value !== undefined) reflectionMergePartial<PushRequest>(this, message, value);
|
|
334
|
+
return message;
|
|
335
|
+
}
|
|
336
|
+
internalBinaryRead(
|
|
337
|
+
reader: IBinaryReader,
|
|
338
|
+
length: number,
|
|
339
|
+
options: BinaryReadOptions,
|
|
340
|
+
target?: PushRequest
|
|
341
|
+
): PushRequest {
|
|
342
|
+
let message = target ?? this.create(),
|
|
343
|
+
end = reader.pos + length;
|
|
344
|
+
while (reader.pos < end) {
|
|
345
|
+
let [fieldNo, wireType] = reader.tag();
|
|
346
|
+
switch (fieldNo) {
|
|
347
|
+
case /* ecsrelay.Identity identity */ 1:
|
|
348
|
+
message.identity = Identity.internalBinaryRead(reader, reader.uint32(), options, message.identity);
|
|
349
|
+
break;
|
|
350
|
+
case /* string label */ 2:
|
|
351
|
+
message.label = reader.string();
|
|
352
|
+
break;
|
|
353
|
+
case /* repeated ecsrelay.Message messages */ 3:
|
|
354
|
+
message.messages.push(Message.internalBinaryRead(reader, reader.uint32(), options));
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
let u = options.readUnknownField;
|
|
358
|
+
if (u === "throw")
|
|
359
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
360
|
+
let d = reader.skip(wireType);
|
|
361
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return message;
|
|
365
|
+
}
|
|
366
|
+
internalBinaryWrite(message: PushRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
367
|
+
/* ecsrelay.Identity identity = 1; */
|
|
368
|
+
if (message.identity)
|
|
369
|
+
Identity.internalBinaryWrite(message.identity, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
370
|
+
/* string label = 2; */
|
|
371
|
+
if (message.label !== "") writer.tag(2, WireType.LengthDelimited).string(message.label);
|
|
372
|
+
/* repeated ecsrelay.Message messages = 3; */
|
|
373
|
+
for (let i = 0; i < message.messages.length; i++)
|
|
374
|
+
Message.internalBinaryWrite(message.messages[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
375
|
+
let u = options.writeUnknownFields;
|
|
376
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
377
|
+
return writer;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @generated MessageType for protobuf message ecsrelay.PushRequest
|
|
382
|
+
*/
|
|
383
|
+
export const PushRequest = new PushRequest$Type();
|
|
384
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
385
|
+
class PushResponse$Type extends MessageType<PushResponse> {
|
|
386
|
+
constructor() {
|
|
387
|
+
super("ecsrelay.PushResponse", []);
|
|
388
|
+
}
|
|
389
|
+
create(value?: PartialMessage<PushResponse>): PushResponse {
|
|
390
|
+
const message = {};
|
|
391
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
392
|
+
if (value !== undefined) reflectionMergePartial<PushResponse>(this, message, value);
|
|
393
|
+
return message;
|
|
394
|
+
}
|
|
395
|
+
internalBinaryRead(
|
|
396
|
+
reader: IBinaryReader,
|
|
397
|
+
length: number,
|
|
398
|
+
options: BinaryReadOptions,
|
|
399
|
+
target?: PushResponse
|
|
400
|
+
): PushResponse {
|
|
401
|
+
return target ?? this.create();
|
|
402
|
+
}
|
|
403
|
+
internalBinaryWrite(message: PushResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
404
|
+
let u = options.writeUnknownFields;
|
|
405
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
406
|
+
return writer;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @generated MessageType for protobuf message ecsrelay.PushResponse
|
|
411
|
+
*/
|
|
412
|
+
export const PushResponse = new PushResponse$Type();
|
|
413
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
414
|
+
class CountIdentitiesRequest$Type extends MessageType<CountIdentitiesRequest> {
|
|
415
|
+
constructor() {
|
|
416
|
+
super("ecsrelay.CountIdentitiesRequest", []);
|
|
417
|
+
}
|
|
418
|
+
create(value?: PartialMessage<CountIdentitiesRequest>): CountIdentitiesRequest {
|
|
419
|
+
const message = {};
|
|
420
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
421
|
+
if (value !== undefined) reflectionMergePartial<CountIdentitiesRequest>(this, message, value);
|
|
422
|
+
return message;
|
|
423
|
+
}
|
|
424
|
+
internalBinaryRead(
|
|
425
|
+
reader: IBinaryReader,
|
|
426
|
+
length: number,
|
|
427
|
+
options: BinaryReadOptions,
|
|
428
|
+
target?: CountIdentitiesRequest
|
|
429
|
+
): CountIdentitiesRequest {
|
|
430
|
+
return target ?? this.create();
|
|
431
|
+
}
|
|
432
|
+
internalBinaryWrite(
|
|
433
|
+
message: CountIdentitiesRequest,
|
|
434
|
+
writer: IBinaryWriter,
|
|
435
|
+
options: BinaryWriteOptions
|
|
436
|
+
): IBinaryWriter {
|
|
437
|
+
let u = options.writeUnknownFields;
|
|
438
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
439
|
+
return writer;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* @generated MessageType for protobuf message ecsrelay.CountIdentitiesRequest
|
|
444
|
+
*/
|
|
445
|
+
export const CountIdentitiesRequest = new CountIdentitiesRequest$Type();
|
|
446
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
447
|
+
class CountIdentitiesResponse$Type extends MessageType<CountIdentitiesResponse> {
|
|
448
|
+
constructor() {
|
|
449
|
+
super("ecsrelay.CountIdentitiesResponse", [{ no: 1, name: "count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }]);
|
|
450
|
+
}
|
|
451
|
+
create(value?: PartialMessage<CountIdentitiesResponse>): CountIdentitiesResponse {
|
|
452
|
+
const message = { count: 0 };
|
|
453
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
454
|
+
if (value !== undefined) reflectionMergePartial<CountIdentitiesResponse>(this, message, value);
|
|
455
|
+
return message;
|
|
456
|
+
}
|
|
457
|
+
internalBinaryRead(
|
|
458
|
+
reader: IBinaryReader,
|
|
459
|
+
length: number,
|
|
460
|
+
options: BinaryReadOptions,
|
|
461
|
+
target?: CountIdentitiesResponse
|
|
462
|
+
): CountIdentitiesResponse {
|
|
463
|
+
let message = target ?? this.create(),
|
|
464
|
+
end = reader.pos + length;
|
|
465
|
+
while (reader.pos < end) {
|
|
466
|
+
let [fieldNo, wireType] = reader.tag();
|
|
467
|
+
switch (fieldNo) {
|
|
468
|
+
case /* uint32 count */ 1:
|
|
469
|
+
message.count = reader.uint32();
|
|
470
|
+
break;
|
|
471
|
+
default:
|
|
472
|
+
let u = options.readUnknownField;
|
|
473
|
+
if (u === "throw")
|
|
474
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
475
|
+
let d = reader.skip(wireType);
|
|
476
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
return message;
|
|
480
|
+
}
|
|
481
|
+
internalBinaryWrite(
|
|
482
|
+
message: CountIdentitiesResponse,
|
|
483
|
+
writer: IBinaryWriter,
|
|
484
|
+
options: BinaryWriteOptions
|
|
485
|
+
): IBinaryWriter {
|
|
486
|
+
/* uint32 count = 1; */
|
|
487
|
+
if (message.count !== 0) writer.tag(1, WireType.Varint).uint32(message.count);
|
|
488
|
+
let u = options.writeUnknownFields;
|
|
489
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
490
|
+
return writer;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @generated MessageType for protobuf message ecsrelay.CountIdentitiesResponse
|
|
495
|
+
*/
|
|
496
|
+
export const CountIdentitiesResponse = new CountIdentitiesResponse$Type();
|
|
497
|
+
/**
|
|
498
|
+
* @generated ServiceType for protobuf service ecsrelay.ECSRelayService
|
|
499
|
+
*/
|
|
500
|
+
export const ECSRelayService = new ServiceType("ecsrelay.ECSRelayService", [
|
|
501
|
+
{ name: "Authenticate", options: {}, I: Identity, O: Identity },
|
|
502
|
+
{ name: "Revoke", options: {}, I: Identity, O: Identity },
|
|
503
|
+
{ name: "Ping", options: {}, I: Identity, O: Identity },
|
|
504
|
+
{ name: "CountAuthenticated", options: {}, I: CountIdentitiesRequest, O: CountIdentitiesResponse },
|
|
505
|
+
{ name: "CountConnected", options: {}, I: CountIdentitiesRequest, O: CountIdentitiesResponse },
|
|
506
|
+
{ name: "Subscribe", options: {}, I: SubscriptionRequest, O: Subscription },
|
|
507
|
+
{ name: "Unsubscribe", options: {}, I: SubscriptionRequest, O: Subscription },
|
|
508
|
+
{ name: "OpenStream", serverStreaming: true, options: {}, I: Identity, O: Message },
|
|
509
|
+
{ name: "Push", options: {}, I: PushRequest, O: PushResponse },
|
|
510
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "ecs-snapshot.proto" (package "ecssnapshot", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "ecs-snapshot.proto" (package "ecssnapshot", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "ecs-stream.proto" (package "ecsstream", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "ecs-stream.proto" (package "ecsstream", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @generated by protobuf-ts 2.8.1 with parameter eslint_disable
|
|
3
|
+
// @generated from protobuf file "faucet.proto" (package "faucet", syntax proto3)
|
|
4
|
+
// tslint:disable
|
|
5
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
7
|
+
import { FaucetService } from "./faucet";
|
|
8
|
+
import type { LinkedAddressForTwitterResponse } from "./faucet";
|
|
9
|
+
import type { LinkedAddressForTwitterRequest } from "./faucet";
|
|
10
|
+
import type { LinkedTwitterForAddressResponse } from "./faucet";
|
|
11
|
+
import type { LinkedTwitterForAddressRequest } from "./faucet";
|
|
12
|
+
import type { GetLinkedTwittersResponse } from "./faucet";
|
|
13
|
+
import type { GetLinkedTwittersRequest } from "./faucet";
|
|
14
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
15
|
+
import type { VerifyTweetResponse } from "./faucet";
|
|
16
|
+
import type { VerifyTweetRequest } from "./faucet";
|
|
17
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
18
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
19
|
+
/**
|
|
20
|
+
* The Faucet Service definition.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf service faucet.FaucetService
|
|
23
|
+
*/
|
|
24
|
+
export interface IFaucetServiceClient {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from protobuf rpc: VerifyTweet(faucet.VerifyTweetRequest) returns (faucet.VerifyTweetResponse);
|
|
27
|
+
*/
|
|
28
|
+
verifyTweet(input: VerifyTweetRequest, options?: RpcOptions): UnaryCall<VerifyTweetRequest, VerifyTweetResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* @generated from protobuf rpc: GetLinkedTwitters(faucet.GetLinkedTwittersRequest) returns (faucet.GetLinkedTwittersResponse);
|
|
31
|
+
*/
|
|
32
|
+
getLinkedTwitters(
|
|
33
|
+
input: GetLinkedTwittersRequest,
|
|
34
|
+
options?: RpcOptions
|
|
35
|
+
): UnaryCall<GetLinkedTwittersRequest, GetLinkedTwittersResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf rpc: GetLinkedTwitterForAddress(faucet.LinkedTwitterForAddressRequest) returns (faucet.LinkedTwitterForAddressResponse);
|
|
38
|
+
*/
|
|
39
|
+
getLinkedTwitterForAddress(
|
|
40
|
+
input: LinkedTwitterForAddressRequest,
|
|
41
|
+
options?: RpcOptions
|
|
42
|
+
): UnaryCall<LinkedTwitterForAddressRequest, LinkedTwitterForAddressResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf rpc: GetLinkedAddressForTwitter(faucet.LinkedAddressForTwitterRequest) returns (faucet.LinkedAddressForTwitterResponse);
|
|
45
|
+
*/
|
|
46
|
+
getLinkedAddressForTwitter(
|
|
47
|
+
input: LinkedAddressForTwitterRequest,
|
|
48
|
+
options?: RpcOptions
|
|
49
|
+
): UnaryCall<LinkedAddressForTwitterRequest, LinkedAddressForTwitterResponse>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The Faucet Service definition.
|
|
53
|
+
*
|
|
54
|
+
* @generated from protobuf service faucet.FaucetService
|
|
55
|
+
*/
|
|
56
|
+
export class FaucetServiceClient implements IFaucetServiceClient, ServiceInfo {
|
|
57
|
+
typeName = FaucetService.typeName;
|
|
58
|
+
methods = FaucetService.methods;
|
|
59
|
+
options = FaucetService.options;
|
|
60
|
+
constructor(private readonly _transport: RpcTransport) {}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf rpc: VerifyTweet(faucet.VerifyTweetRequest) returns (faucet.VerifyTweetResponse);
|
|
63
|
+
*/
|
|
64
|
+
verifyTweet(input: VerifyTweetRequest, options?: RpcOptions): UnaryCall<VerifyTweetRequest, VerifyTweetResponse> {
|
|
65
|
+
const method = this.methods[0],
|
|
66
|
+
opt = this._transport.mergeOptions(options);
|
|
67
|
+
return stackIntercept<VerifyTweetRequest, VerifyTweetResponse>("unary", this._transport, method, opt, input);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf rpc: GetLinkedTwitters(faucet.GetLinkedTwittersRequest) returns (faucet.GetLinkedTwittersResponse);
|
|
71
|
+
*/
|
|
72
|
+
getLinkedTwitters(
|
|
73
|
+
input: GetLinkedTwittersRequest,
|
|
74
|
+
options?: RpcOptions
|
|
75
|
+
): UnaryCall<GetLinkedTwittersRequest, GetLinkedTwittersResponse> {
|
|
76
|
+
const method = this.methods[1],
|
|
77
|
+
opt = this._transport.mergeOptions(options);
|
|
78
|
+
return stackIntercept<GetLinkedTwittersRequest, GetLinkedTwittersResponse>(
|
|
79
|
+
"unary",
|
|
80
|
+
this._transport,
|
|
81
|
+
method,
|
|
82
|
+
opt,
|
|
83
|
+
input
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @generated from protobuf rpc: GetLinkedTwitterForAddress(faucet.LinkedTwitterForAddressRequest) returns (faucet.LinkedTwitterForAddressResponse);
|
|
88
|
+
*/
|
|
89
|
+
getLinkedTwitterForAddress(
|
|
90
|
+
input: LinkedTwitterForAddressRequest,
|
|
91
|
+
options?: RpcOptions
|
|
92
|
+
): UnaryCall<LinkedTwitterForAddressRequest, LinkedTwitterForAddressResponse> {
|
|
93
|
+
const method = this.methods[2],
|
|
94
|
+
opt = this._transport.mergeOptions(options);
|
|
95
|
+
return stackIntercept<LinkedTwitterForAddressRequest, LinkedTwitterForAddressResponse>(
|
|
96
|
+
"unary",
|
|
97
|
+
this._transport,
|
|
98
|
+
method,
|
|
99
|
+
opt,
|
|
100
|
+
input
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @generated from protobuf rpc: GetLinkedAddressForTwitter(faucet.LinkedAddressForTwitterRequest) returns (faucet.LinkedAddressForTwitterResponse);
|
|
105
|
+
*/
|
|
106
|
+
getLinkedAddressForTwitter(
|
|
107
|
+
input: LinkedAddressForTwitterRequest,
|
|
108
|
+
options?: RpcOptions
|
|
109
|
+
): UnaryCall<LinkedAddressForTwitterRequest, LinkedAddressForTwitterResponse> {
|
|
110
|
+
const method = this.methods[3],
|
|
111
|
+
opt = this._transport.mergeOptions(options);
|
|
112
|
+
return stackIntercept<LinkedAddressForTwitterRequest, LinkedAddressForTwitterResponse>(
|
|
113
|
+
"unary",
|
|
114
|
+
this._transport,
|
|
115
|
+
method,
|
|
116
|
+
opt,
|
|
117
|
+
input
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
}
|