@dxos/protocols 2.33.9-dev.7d11f506 → 2.33.9-dev.9bbef4e2
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/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts +139 -4
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js +4 -0
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +216 -18
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js +4 -0
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +457 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +10 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools.d.ts +266 -30
- package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
- package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +26 -4
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +58 -8
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js +4 -0
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/test/echo.d.ts +15 -3
- package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +91 -91
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- 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/src/proto/index.d.ts +0 -1
- package/dist/src/proto/index.d.ts.map +1 -1
- package/dist/src/proto/index.js +0 -16
- package/dist/src/proto/index.js.map +1 -1
- package/dist/src/public-key.d.ts +2 -2
- package/dist/src/public-key.d.ts.map +1 -1
- package/dist/src/public-key.js +31 -7
- package/dist/src/public-key.js.map +1 -1
- package/dist/src/timeframe.d.ts +1 -1
- package/dist/src/timeframe.d.ts.map +1 -1
- package/dist/src/timeframe.js +2 -2
- package/dist/src/timeframe.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -4
- package/src/index.ts +0 -1
- package/src/proto/dxos/bot.proto +25 -21
- package/src/proto/dxos/client.proto +19 -18
- package/src/proto/dxos/config.proto +101 -101
- package/src/proto/dxos/devtools.proto +15 -15
- package/src/proto/dxos/echo/feed.proto +10 -9
- package/src/proto/dxos/echo/invitation.proto +2 -2
- package/src/proto/dxos/echo/metadata.proto +7 -6
- package/src/proto/dxos/echo/service.proto +3 -3
- package/src/proto/dxos/echo/snapshot.proto +6 -5
- package/src/proto/dxos/halo/auth.proto +10 -10
- package/src/proto/dxos/halo/greet.proto +4 -3
- package/src/proto/dxos/halo/identity.proto +8 -7
- package/src/proto/dxos/halo/keys.proto +8 -7
- package/src/proto/dxos/halo/party.proto +3 -2
- package/src/proto/dxos/halo/signed.proto +16 -8
- package/src/proto/dxos/rpc.proto +15 -5
- package/src/proto/gen/dxos/bot.ts +139 -4
- package/src/proto/gen/dxos/client.ts +216 -18
- package/src/proto/gen/dxos/config.ts +457 -0
- package/src/proto/gen/dxos/credentials/auth.ts +12 -3
- package/src/proto/gen/dxos/credentials/greet.ts +39 -8
- package/src/proto/gen/dxos/credentials/identity.ts +12 -4
- package/src/proto/gen/dxos/credentials/party.ts +50 -18
- package/src/proto/gen/dxos/credentials.ts +39 -0
- package/src/proto/gen/dxos/devtools.ts +266 -30
- package/src/proto/gen/dxos/echo/feed.ts +65 -6
- package/src/proto/gen/dxos/echo/invitation.ts +19 -3
- package/src/proto/gen/dxos/echo/metadata.ts +26 -4
- package/src/proto/gen/dxos/echo/service.ts +49 -13
- package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
- package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
- package/src/proto/gen/dxos/halo/keys.ts +44 -2
- package/src/proto/gen/dxos/rpc.ts +58 -8
- package/src/proto/gen/dxos/test/echo.ts +15 -3
- package/src/proto/gen/google/protobuf.ts +91 -91
- package/src/proto/gen/index.ts +1 -1
- package/src/proto/index.ts +0 -2
- package/src/public-key.ts +32 -4
- package/src/timeframe.ts +1 -1
|
@@ -6,8 +6,8 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.echo.snapshot;
|
|
8
8
|
|
|
9
|
-
import "./feed.proto";
|
|
10
9
|
import "../halo/keys.proto";
|
|
10
|
+
import "./feed.proto";
|
|
11
11
|
|
|
12
12
|
//
|
|
13
13
|
// Snapshots define full party state at a given point in time.
|
|
@@ -20,10 +20,11 @@ import "../halo/keys.proto";
|
|
|
20
20
|
|
|
21
21
|
message PartySnapshot {
|
|
22
22
|
bytes partyKey = 1;
|
|
23
|
-
TimeframeVector timeframe = 2;
|
|
23
|
+
optional TimeframeVector timeframe = 2;
|
|
24
24
|
|
|
25
25
|
// Unix timestamp of the snapshot creation time. For information purposes only.
|
|
26
|
-
|
|
26
|
+
// TODO(dmaretskyi): Convert to google.protobuf.Timestamp.
|
|
27
|
+
optional int32 timestamp = 3;
|
|
27
28
|
|
|
28
29
|
HaloStateSnapshot halo = 11;
|
|
29
30
|
// TODO(dmaretskyi): Rename to EchoSnapshot.
|
|
@@ -48,7 +49,7 @@ message DatabaseSnapshot {
|
|
|
48
49
|
message ItemSnapshot {
|
|
49
50
|
optional string itemId = 1;
|
|
50
51
|
optional string itemType = 2;
|
|
51
|
-
|
|
52
|
+
string modelType = 3;
|
|
52
53
|
optional string modelVersion = 4;
|
|
53
54
|
optional string parentId = 5;
|
|
54
55
|
optional ModelSnapshot model = 6;
|
|
@@ -57,7 +58,7 @@ message ItemSnapshot {
|
|
|
57
58
|
message LinkSnapshot {
|
|
58
59
|
optional string linkId = 1;
|
|
59
60
|
optional string linkType = 2;
|
|
60
|
-
|
|
61
|
+
string modelType = 3;
|
|
61
62
|
optional string modelVersion = 4;
|
|
62
63
|
required string source = 5;
|
|
63
64
|
required string target = 6;
|
|
@@ -6,25 +6,25 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.credentials.auth;
|
|
8
8
|
|
|
9
|
-
import "keys.proto";
|
|
10
|
-
import "signed.proto";
|
|
9
|
+
import "./keys.proto";
|
|
10
|
+
import "./signed.proto";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The payload for a SignedMessage sent during handshake for replication authentication.
|
|
14
14
|
*/
|
|
15
15
|
message Auth {
|
|
16
16
|
/// The publicKey of the target Party for these credentials.
|
|
17
|
-
PubKey partyKey = 1;
|
|
18
|
-
|
|
17
|
+
PubKey partyKey = 1;
|
|
18
|
+
|
|
19
19
|
/// The publicKey of the authenticating Device.
|
|
20
|
-
PubKey deviceKey = 2;
|
|
21
|
-
|
|
20
|
+
PubKey deviceKey = 2;
|
|
21
|
+
|
|
22
22
|
/// The publicKey of the authenticating Identity.
|
|
23
|
-
PubKey identityKey = 3;
|
|
24
|
-
|
|
23
|
+
PubKey identityKey = 3;
|
|
24
|
+
|
|
25
25
|
/// The publicKey of the authenticating Identity.
|
|
26
|
-
PubKey feedKey = 4;
|
|
26
|
+
optional PubKey feedKey = 4;
|
|
27
27
|
|
|
28
28
|
/// FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
|
|
29
|
-
google.protobuf.Any feed_admit = 5;
|
|
29
|
+
optional google.protobuf.Any feed_admit = 5;
|
|
30
30
|
}
|
|
@@ -6,11 +6,12 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.credentials.greet;
|
|
8
8
|
|
|
9
|
-
import "keys.proto";
|
|
10
|
-
import "party.proto";
|
|
11
9
|
import "google/protobuf/any.proto";
|
|
12
10
|
import "google/protobuf/wrappers.proto";
|
|
13
11
|
|
|
12
|
+
import "./keys.proto";
|
|
13
|
+
import "./party.proto";
|
|
14
|
+
|
|
14
15
|
//
|
|
15
16
|
// Greeting protocol:
|
|
16
17
|
//
|
|
@@ -57,7 +58,7 @@ message Command {
|
|
|
57
58
|
Type command = 1;
|
|
58
59
|
|
|
59
60
|
// Auth secret (PIN, hash, AuthMessage, etc.).
|
|
60
|
-
bytes secret = 2;
|
|
61
|
+
optional bytes secret = 2;
|
|
61
62
|
|
|
62
63
|
// TODO(burdon): These seem to be signed messages? In which case we already know the type.
|
|
63
64
|
// TODO(dboreham): static typing of contained messages is not yet supported, change from any when it is.
|
|
@@ -7,18 +7,19 @@ syntax = "proto3";
|
|
|
7
7
|
package dxos.credentials.identity;
|
|
8
8
|
|
|
9
9
|
import "google/protobuf/any.proto";
|
|
10
|
-
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
10
|
+
|
|
11
|
+
import "./greet.proto";
|
|
12
|
+
import "./keys.proto";
|
|
13
|
+
import "./signed.proto";
|
|
13
14
|
|
|
14
15
|
// Additional, descriptive information about an Identity. Must be signed by the Identity's key.
|
|
15
16
|
message IdentityInfo {
|
|
16
|
-
PubKey publicKey = 1;
|
|
17
|
-
string displayName = 2;
|
|
17
|
+
PubKey publicKey = 1; // The publicKey of the Identity (must be signed by this key).
|
|
18
|
+
string displayName = 2; // The display name to use for this key.
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
// Additional, descriptive information about a Device. Must be signed by the Device's key.
|
|
21
22
|
message DeviceInfo {
|
|
22
|
-
PubKey publicKey = 1;
|
|
23
|
-
string displayName = 2;
|
|
23
|
+
PubKey publicKey = 1; // The publicKey of the Device (must be signed by this key).
|
|
24
|
+
string displayName = 2; // The display name to use for this key.
|
|
24
25
|
}
|
|
@@ -6,9 +6,10 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.halo.keys;
|
|
8
8
|
|
|
9
|
-
import "signed.proto";
|
|
10
9
|
import "google/protobuf/any.proto";
|
|
11
10
|
|
|
11
|
+
import "./signed.proto";
|
|
12
|
+
|
|
12
13
|
//
|
|
13
14
|
// The type/use of a public key.
|
|
14
15
|
//
|
|
@@ -43,33 +44,33 @@ message KeyRecord {
|
|
|
43
44
|
/**
|
|
44
45
|
* The secret key as a Buffer (this will never be visible outside the Keyring).
|
|
45
46
|
*/
|
|
46
|
-
PrivKey secretKey = 3;
|
|
47
|
+
optional PrivKey secretKey = 3;
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* Is this key from a Greeting "hint"?
|
|
50
51
|
*/
|
|
51
|
-
bool hint = 4;
|
|
52
|
+
optional bool hint = 4;
|
|
52
53
|
|
|
53
54
|
/**
|
|
54
55
|
* Determines if this is our key?
|
|
55
56
|
* Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
|
|
56
57
|
*/
|
|
57
|
-
bool own = 5; // TODO(burdon): Rename "local" or "private".
|
|
58
|
+
optional bool own = 5; // TODO(burdon): Rename "local" or "private".
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
61
|
* Is this key to be trusted?
|
|
61
62
|
*/
|
|
62
|
-
bool trusted = 6; // TODO(burdon): Rename "trust". How is this determined?
|
|
63
|
+
optional bool trusted = 6; // TODO(burdon): Rename "trust". How is this determined?
|
|
63
64
|
|
|
64
65
|
/**
|
|
65
66
|
* An RFC-3339 date/time string for when the key was added to the Keyring.
|
|
66
67
|
*/
|
|
67
|
-
string added = 7;
|
|
68
|
+
optional string added = 7;
|
|
68
69
|
|
|
69
70
|
/**
|
|
70
71
|
* An RFC-3339 date/time string for when the key was created.
|
|
71
72
|
*/
|
|
72
|
-
string created = 8;
|
|
73
|
+
optional string created = 8;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
message KeyRecordList {
|
|
@@ -6,10 +6,11 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
package dxos.credentials.party;
|
|
8
8
|
|
|
9
|
-
import "keys.proto";
|
|
10
|
-
import "signed.proto";
|
|
11
9
|
import "google/protobuf/any.proto";
|
|
12
10
|
|
|
11
|
+
import "./keys.proto";
|
|
12
|
+
import "./signed.proto";
|
|
13
|
+
|
|
13
14
|
//
|
|
14
15
|
// Party Credentials are messages that, by virtue of their being signed by a key that is a
|
|
15
16
|
// recognized authority, convey to the recipient that something should be allowed or done.
|
|
@@ -7,9 +7,10 @@ syntax = "proto3";
|
|
|
7
7
|
// TODO(burdon): Rename dxos.halo?
|
|
8
8
|
package dxos.credentials;
|
|
9
9
|
|
|
10
|
-
import "keys.proto";
|
|
11
10
|
import "google/protobuf/any.proto";
|
|
12
11
|
|
|
12
|
+
import "./keys.proto";
|
|
13
|
+
|
|
13
14
|
// TODO(burdon): Use default from codec-protobuf.
|
|
14
15
|
message Message {
|
|
15
16
|
required google.protobuf.Any payload = 1;
|
|
@@ -23,20 +24,27 @@ message SignedMessage {
|
|
|
23
24
|
// Provides the common metadata needed for all signed objects.
|
|
24
25
|
//
|
|
25
26
|
message Signed {
|
|
26
|
-
|
|
27
|
+
/// RFC-3339 datetime string.
|
|
28
|
+
required string created = 1;
|
|
27
29
|
required bytes nonce = 2;
|
|
28
|
-
|
|
30
|
+
/// The payload to be signed.
|
|
31
|
+
required google.protobuf.Any payload = 10;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
//
|
|
32
35
|
// The signature data itself.
|
|
33
36
|
//
|
|
34
37
|
message Signature {
|
|
35
|
-
|
|
36
|
-
required
|
|
37
|
-
|
|
38
|
+
/// The publicKey of the keypair that made this signature.
|
|
39
|
+
required PubKey key = 1;
|
|
40
|
+
/// The bytes of the signature.
|
|
41
|
+
required bytes signature = 2;
|
|
42
|
+
/// The certification chain of SignedMessages for this key.
|
|
43
|
+
optional KeyChain keyChain = 3;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
/// The signed message contents.
|
|
47
|
+
required Signed signed = 1;
|
|
48
|
+
/// An array of Signatures, one for each key that signed the message.
|
|
49
|
+
repeated Signature signatures = 2;
|
|
42
50
|
}
|
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
|
|
|
@@ -45,9 +55,9 @@ message StreamClose {
|
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
message Error {
|
|
48
|
-
string name = 1;
|
|
49
|
-
string message = 2;
|
|
50
|
-
string stack = 3;
|
|
58
|
+
optional string name = 1;
|
|
59
|
+
optional string message = 2;
|
|
60
|
+
optional string stack = 3;
|
|
51
61
|
}
|
|
52
62
|
|
|
53
63
|
message MessageTrace {
|
|
@@ -17,6 +17,10 @@ import * as dxos_halo_keys from "./halo/keys";
|
|
|
17
17
|
import * as dxos_rpc from "./rpc";
|
|
18
18
|
import * as dxos_test_echo from "./test/echo";
|
|
19
19
|
import * as google_protobuf from "../google/protobuf";
|
|
20
|
+
/**
|
|
21
|
+
* Defined in:
|
|
22
|
+
* {@link file://./../../dxos/bot.proto}
|
|
23
|
+
*/
|
|
20
24
|
export interface BotPackageSpecifier {
|
|
21
25
|
/**
|
|
22
26
|
* DXN of the bot in the DXNS registry.
|
|
@@ -25,21 +29,60 @@ export interface BotPackageSpecifier {
|
|
|
25
29
|
ipfsCid?: string;
|
|
26
30
|
localPath?: string;
|
|
27
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Defined in:
|
|
34
|
+
* {@link file://./../../dxos/bot.proto}
|
|
35
|
+
*/
|
|
28
36
|
export interface Bot {
|
|
29
|
-
id
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Options:
|
|
40
|
+
* - proto3_optional = true
|
|
41
|
+
*/
|
|
30
42
|
status?: Bot.Status;
|
|
31
43
|
/**
|
|
32
44
|
* The state that the bot aims to be in. Can be only either RUNNING or STOPPED.
|
|
45
|
+
*
|
|
46
|
+
* Options:
|
|
47
|
+
* - proto3_optional = true
|
|
33
48
|
*/
|
|
34
49
|
desiredState?: Bot.Status;
|
|
50
|
+
/**
|
|
51
|
+
* Options:
|
|
52
|
+
* - proto3_optional = true
|
|
53
|
+
*/
|
|
35
54
|
attemptsToAchieveDesiredState?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Options:
|
|
57
|
+
* - proto3_optional = true
|
|
58
|
+
*/
|
|
36
59
|
packageSpecifier?: BotPackageSpecifier;
|
|
60
|
+
/**
|
|
61
|
+
* Options:
|
|
62
|
+
* - proto3_optional = true
|
|
63
|
+
*/
|
|
37
64
|
lastStart?: google_protobuf.Timestamp;
|
|
65
|
+
/**
|
|
66
|
+
* Options:
|
|
67
|
+
* - proto3_optional = true
|
|
68
|
+
*/
|
|
38
69
|
partyKey?: dxos_halo_keys.PubKey;
|
|
70
|
+
/**
|
|
71
|
+
* Options:
|
|
72
|
+
* - proto3_optional = true
|
|
73
|
+
*/
|
|
39
74
|
runtime?: Bot.Runtime;
|
|
75
|
+
/**
|
|
76
|
+
* Options:
|
|
77
|
+
* - proto3_optional = true
|
|
78
|
+
*/
|
|
40
79
|
report?: BotReport;
|
|
41
80
|
}
|
|
42
81
|
export namespace Bot {
|
|
82
|
+
/**
|
|
83
|
+
* Defined in:
|
|
84
|
+
* {@link file://./../../dxos/bot.proto}
|
|
85
|
+
*/
|
|
43
86
|
export enum Status {
|
|
44
87
|
STOPPED = 0,
|
|
45
88
|
STARTING = 1,
|
|
@@ -47,47 +90,119 @@ export namespace Bot {
|
|
|
47
90
|
STOPPING = 3,
|
|
48
91
|
SPAWNING = 4
|
|
49
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Defined in:
|
|
95
|
+
* {@link file://./../../dxos/bot.proto}
|
|
96
|
+
*/
|
|
50
97
|
export interface Runtime {
|
|
98
|
+
/**
|
|
99
|
+
* Options:
|
|
100
|
+
* - proto3_optional = true
|
|
101
|
+
*/
|
|
51
102
|
exitCode?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Options:
|
|
105
|
+
* - proto3_optional = true
|
|
106
|
+
*/
|
|
52
107
|
exitSignal?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Options:
|
|
110
|
+
* - proto3_optional = true
|
|
111
|
+
*/
|
|
53
112
|
error?: string;
|
|
54
113
|
}
|
|
55
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Defined in:
|
|
117
|
+
* {@link file://./../../dxos/bot.proto}
|
|
118
|
+
*/
|
|
56
119
|
export interface GetBotsResponse {
|
|
57
120
|
bots?: Bot[];
|
|
58
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Defined in:
|
|
124
|
+
* {@link file://./../../dxos/bot.proto}
|
|
125
|
+
*/
|
|
59
126
|
export interface SpawnBotRequest {
|
|
127
|
+
/**
|
|
128
|
+
* Options:
|
|
129
|
+
* - proto3_optional = true
|
|
130
|
+
*/
|
|
60
131
|
package?: BotPackageSpecifier;
|
|
61
132
|
/**
|
|
62
133
|
* Invitation for the bot to join the target party.
|
|
134
|
+
*
|
|
135
|
+
* Options:
|
|
136
|
+
* - proto3_optional = true
|
|
63
137
|
*/
|
|
64
138
|
invitation?: dxos_echo_invitation.InvitationDescriptor;
|
|
65
139
|
/**
|
|
66
140
|
* Key of the party bot is invited to.
|
|
141
|
+
*
|
|
142
|
+
* Options:
|
|
143
|
+
* - proto3_optional = true
|
|
67
144
|
*/
|
|
68
145
|
partyKey?: dxos_halo_keys.PubKey;
|
|
69
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Defined in:
|
|
149
|
+
* {@link file://./../../dxos/bot.proto}
|
|
150
|
+
*/
|
|
70
151
|
export interface SendCommandRequest {
|
|
152
|
+
/**
|
|
153
|
+
* Options:
|
|
154
|
+
* - proto3_optional = true
|
|
155
|
+
*/
|
|
71
156
|
botId?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Options:
|
|
159
|
+
* - proto3_optional = true
|
|
160
|
+
*/
|
|
72
161
|
command?: Uint8Array;
|
|
73
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Defined in:
|
|
165
|
+
* {@link file://./../../dxos/bot.proto}
|
|
166
|
+
*/
|
|
74
167
|
export interface SendCommandResponse {
|
|
168
|
+
/**
|
|
169
|
+
* Options:
|
|
170
|
+
* - proto3_optional = true
|
|
171
|
+
*/
|
|
75
172
|
response?: Uint8Array;
|
|
76
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Defined in:
|
|
176
|
+
* {@link file://./../../dxos/bot.proto}
|
|
177
|
+
*/
|
|
77
178
|
export interface GetLogsResponse {
|
|
78
|
-
chunk
|
|
179
|
+
chunk: Uint8Array;
|
|
79
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Defined in:
|
|
183
|
+
* {@link file://./../../dxos/bot.proto}
|
|
184
|
+
*/
|
|
80
185
|
export interface GetLogsRequest {
|
|
81
|
-
botId
|
|
186
|
+
botId: string;
|
|
82
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Defined in:
|
|
190
|
+
* {@link file://./../../dxos/bot.proto}
|
|
191
|
+
*/
|
|
83
192
|
export interface BotReport {
|
|
84
193
|
/**
|
|
85
194
|
* Details of the party the bot was spawned for.
|
|
195
|
+
*
|
|
196
|
+
* Options:
|
|
197
|
+
* - proto3_optional = true
|
|
86
198
|
*/
|
|
87
199
|
partyDetails?: dxos_client.PartyDetails;
|
|
88
200
|
}
|
|
89
201
|
/**
|
|
90
202
|
* Service that is used by clients to communicate with bot factory.
|
|
203
|
+
*
|
|
204
|
+
* Defined in:
|
|
205
|
+
* {@link file://./../../dxos/bot.proto}
|
|
91
206
|
*/
|
|
92
207
|
export interface BotFactoryService {
|
|
93
208
|
getBots: (request: void) => Promise<GetBotsResponse>;
|
|
@@ -99,28 +214,48 @@ export interface BotFactoryService {
|
|
|
99
214
|
sendCommand: (request: SendCommandRequest) => Promise<SendCommandResponse>;
|
|
100
215
|
removeAll: (request: void) => Promise<void>;
|
|
101
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Defined in:
|
|
219
|
+
* {@link file://./../../dxos/bot.proto}
|
|
220
|
+
*/
|
|
102
221
|
export interface InitializeRequest {
|
|
103
222
|
/**
|
|
104
223
|
* Bot runtime configuration.
|
|
224
|
+
*
|
|
225
|
+
* Options:
|
|
226
|
+
* - proto3_optional = true
|
|
105
227
|
*/
|
|
106
228
|
config?: dxos_config.Config;
|
|
107
229
|
/**
|
|
108
230
|
* Invitation for the bot to join the target party.
|
|
231
|
+
*
|
|
232
|
+
* Options:
|
|
233
|
+
* - proto3_optional = true
|
|
109
234
|
*/
|
|
110
235
|
invitation?: dxos_echo_invitation.InvitationDescriptor;
|
|
111
236
|
/**
|
|
112
237
|
* ID of the bot.
|
|
238
|
+
*
|
|
239
|
+
* Options:
|
|
240
|
+
* - proto3_optional = true
|
|
113
241
|
*/
|
|
114
242
|
id?: string;
|
|
115
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Defined in:
|
|
246
|
+
* {@link file://./../../dxos/bot.proto}
|
|
247
|
+
*/
|
|
116
248
|
export interface StartRequest {
|
|
117
249
|
/**
|
|
118
250
|
* Bot runtime configuration.
|
|
119
251
|
*/
|
|
120
|
-
config
|
|
252
|
+
config: dxos_config.Config;
|
|
121
253
|
}
|
|
122
254
|
/**
|
|
123
255
|
* Service that is used by bots communicating with bot factory.
|
|
256
|
+
*
|
|
257
|
+
* Defined in:
|
|
258
|
+
* {@link file://./../../dxos/bot.proto}
|
|
124
259
|
*/
|
|
125
260
|
export interface BotService {
|
|
126
261
|
/**
|