@dxos/protocols 2.33.9-dev.bba8fc00 → 2.33.9-dev.c5024091
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/src/proto/gen/dxos/client.d.ts +97 -0
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js +21 -1
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +5 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +10 -0
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +11 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/proto/dxos/bot.proto +4 -0
- package/src/proto/dxos/client.proto +68 -1
- package/src/proto/dxos/config.proto +14 -11
- package/src/proto/dxos/echo/feed.proto +1 -0
- package/src/proto/dxos/echo/metadata.proto +3 -2
- package/src/proto/dxos/echo/service.proto +3 -3
- package/src/proto/dxos/echo/snapshot.proto +1 -1
- package/src/proto/dxos/halo/auth.proto +9 -9
- package/src/proto/dxos/halo/greet.proto +3 -2
- package/src/proto/dxos/halo/identity.proto +8 -7
- package/src/proto/dxos/halo/keys.proto +2 -1
- package/src/proto/dxos/halo/party.proto +3 -2
- package/src/proto/dxos/halo/signed.proto +9 -8
- package/src/proto/dxos/rpc.proto +12 -2
- package/src/proto/gen/dxos/client.ts +97 -0
- package/src/proto/gen/dxos/config.ts +5 -0
- package/src/proto/gen/dxos/rpc.ts +10 -0
- package/src/proto/gen/index.ts +12 -1
package/src/proto/dxos/rpc.proto
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
syntax = "proto3";
|
|
6
6
|
|
|
7
|
+
package dxos.rpc;
|
|
8
|
+
|
|
7
9
|
import "google/protobuf/any.proto";
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
option go_package = "github.com/dxos/kube/go/dxrpc/pb";
|
|
10
12
|
|
|
11
13
|
message RpcMessage {
|
|
12
14
|
oneof content {
|
|
@@ -34,8 +36,16 @@ message Response {
|
|
|
34
36
|
oneof content {
|
|
35
37
|
google.protobuf.Any payload = 2;
|
|
36
38
|
Error error = 3;
|
|
37
|
-
|
|
39
|
+
/// Sent when stream is closed without an error.
|
|
38
40
|
bool close = 4;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Sent when the server has processed a request with a streaming response.
|
|
44
|
+
*
|
|
45
|
+
* Can be skipped by the server.
|
|
46
|
+
* In this case the first payload should be treated as the server being ready.
|
|
47
|
+
*/
|
|
48
|
+
bool stream_ready = 5;
|
|
39
49
|
}
|
|
40
50
|
}
|
|
41
51
|
|
|
@@ -398,3 +398,100 @@ export interface PartyService {
|
|
|
398
398
|
subscribeMembers: (request: SubscribeMembersRequest) => Stream<SubscribeMembersResponse>;
|
|
399
399
|
createSnapshot: (request: CreateSnaspotRequest) => Promise<dxos_echo_snapshot.PartySnapshot>;
|
|
400
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* Defined in:
|
|
403
|
+
* {@link file://./../../dxos/client.proto}
|
|
404
|
+
*/
|
|
405
|
+
export interface SingletonMessage {
|
|
406
|
+
type: SingletonMessage.Type;
|
|
407
|
+
data?: Uint8Array;
|
|
408
|
+
reconnect?: SingletonMessage.Reconnect;
|
|
409
|
+
resend?: SingletonMessage.Resend;
|
|
410
|
+
setupClient?: SingletonMessage.SetupClient;
|
|
411
|
+
clientReady?: SingletonMessage.ClientReady;
|
|
412
|
+
setupPort?: SingletonMessage.SetupPort;
|
|
413
|
+
portReady?: SingletonMessage.PortReady;
|
|
414
|
+
portClosing?: SingletonMessage.PortClosing;
|
|
415
|
+
clientMessage?: SingletonMessage.ClientMessage;
|
|
416
|
+
proxyMessage?: SingletonMessage.ProxyMessage;
|
|
417
|
+
}
|
|
418
|
+
export namespace SingletonMessage {
|
|
419
|
+
/**
|
|
420
|
+
* Defined in:
|
|
421
|
+
* {@link file://./../../dxos/client.proto}
|
|
422
|
+
*/
|
|
423
|
+
export enum Type {
|
|
424
|
+
WINDOW_MESSAGE = 0,
|
|
425
|
+
RECONNECT = 1,
|
|
426
|
+
RESEND = 2,
|
|
427
|
+
SETUP_CLIENT = 3,
|
|
428
|
+
CLIENT_READY = 4,
|
|
429
|
+
SETUP_PORT = 5,
|
|
430
|
+
PORT_READY = 6,
|
|
431
|
+
PORT_CLOSING = 7,
|
|
432
|
+
CLIENT_MESSAGE = 8,
|
|
433
|
+
PROXY_MESSAGE = 9
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Defined in:
|
|
437
|
+
* {@link file://./../../dxos/client.proto}
|
|
438
|
+
*/
|
|
439
|
+
export interface Reconnect {
|
|
440
|
+
attempt: number;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Defined in:
|
|
444
|
+
* {@link file://./../../dxos/client.proto}
|
|
445
|
+
*/
|
|
446
|
+
export interface Resend {
|
|
447
|
+
message: SingletonMessage;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Defined in:
|
|
451
|
+
* {@link file://./../../dxos/client.proto}
|
|
452
|
+
*/
|
|
453
|
+
export interface SetupClient {
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Defined in:
|
|
457
|
+
* {@link file://./../../dxos/client.proto}
|
|
458
|
+
*/
|
|
459
|
+
export interface ClientReady {
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Defined in:
|
|
463
|
+
* {@link file://./../../dxos/client.proto}
|
|
464
|
+
*/
|
|
465
|
+
export interface SetupPort {
|
|
466
|
+
sourceId: number;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Defined in:
|
|
470
|
+
* {@link file://./../../dxos/client.proto}
|
|
471
|
+
*/
|
|
472
|
+
export interface PortReady {
|
|
473
|
+
sourceId: number;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Defined in:
|
|
477
|
+
* {@link file://./../../dxos/client.proto}
|
|
478
|
+
*/
|
|
479
|
+
export interface PortClosing {
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Defined in:
|
|
483
|
+
* {@link file://./../../dxos/client.proto}
|
|
484
|
+
*/
|
|
485
|
+
export interface ClientMessage {
|
|
486
|
+
sourceId: number;
|
|
487
|
+
data: Uint8Array;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Defined in:
|
|
491
|
+
* {@link file://./../../dxos/client.proto}
|
|
492
|
+
*/
|
|
493
|
+
export interface ProxyMessage {
|
|
494
|
+
sourceId: number;
|
|
495
|
+
data: Uint8Array;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
@@ -52,7 +52,17 @@ export interface Response {
|
|
|
52
52
|
id: number;
|
|
53
53
|
payload?: google_protobuf.Any;
|
|
54
54
|
error?: Error;
|
|
55
|
+
/**
|
|
56
|
+
* Sent when stream is closed without an error.
|
|
57
|
+
*/
|
|
55
58
|
close?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Sent when the server has processed a request with a streaming response.
|
|
61
|
+
*
|
|
62
|
+
* Can be skipped by the server.
|
|
63
|
+
* In this case the first payload should be treated as the server being ready.
|
|
64
|
+
*/
|
|
65
|
+
streamReady?: boolean;
|
|
56
66
|
}
|
|
57
67
|
/**
|
|
58
68
|
* Defined in:
|