@dxos/protocols 0.4.5 → 0.4.6-main.20d1ec4
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/src/proto/gen/dxos/client/services.d.ts +18 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +17 -0
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.js +14 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +5 -0
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +2 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +18 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +17 -0
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.js +13 -0
- package/dist/esm/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +5 -0
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +2 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/proto/dxos/client/services.proto +7 -1
- package/src/proto/dxos/halo/credentials.proto +10 -0
- package/src/proto/dxos/halo/invitations.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +18 -1
- package/src/proto/gen/dxos/halo/credentials.ts +17 -0
- package/src/proto/gen/dxos/halo/invitations.ts +5 -0
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAshB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+tnGAA+tnG,CAAC,CAAC,CAAC;AACxxnG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6-main.20d1ec4",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/codec-protobuf": "0.4.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/timeframe": "0.4.
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/codec-protobuf": "0.4.6-main.20d1ec4",
|
|
37
|
+
"@dxos/keys": "0.4.6-main.20d1ec4",
|
|
38
|
+
"@dxos/timeframe": "0.4.6-main.20d1ec4",
|
|
39
|
+
"@dxos/invariant": "0.4.6-main.20d1ec4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -137,6 +137,7 @@ message CreateIdentityRequest {
|
|
|
137
137
|
optional halo.credentials.ProfileDocument profile = 1;
|
|
138
138
|
|
|
139
139
|
reserved 2; // Removed use_automerge flag.
|
|
140
|
+
optional halo.credentials.DeviceProfileDocument device_profile = 3;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
// TODO(wittjosiah): Align pluralization with other services.
|
|
@@ -444,6 +445,11 @@ message Invitation {
|
|
|
444
445
|
optional string target = 11;
|
|
445
446
|
}
|
|
446
447
|
|
|
448
|
+
message AcceptInvitationRequest {
|
|
449
|
+
Invitation invitation = 1;
|
|
450
|
+
optional dxos.credentials.DeviceProfileDocument device_profile = 2;
|
|
451
|
+
}
|
|
452
|
+
|
|
447
453
|
message AuthenticationRequest {
|
|
448
454
|
string invitation_id = 1;
|
|
449
455
|
string auth_code = 2;
|
|
@@ -478,7 +484,7 @@ message QueryInvitationsResponse {
|
|
|
478
484
|
|
|
479
485
|
service InvitationsService {
|
|
480
486
|
rpc CreateInvitation(Invitation) returns (stream Invitation);
|
|
481
|
-
rpc AcceptInvitation(
|
|
487
|
+
rpc AcceptInvitation(AcceptInvitationRequest) returns (stream Invitation);
|
|
482
488
|
rpc Authenticate(AuthenticationRequest) returns (google.protobuf.Empty);
|
|
483
489
|
rpc CancelInvitation(CancelInvitationRequest) returns (google.protobuf.Empty);
|
|
484
490
|
rpc QueryInvitations(google.protobuf.Empty) returns (stream QueryInvitationsResponse);
|
|
@@ -152,6 +152,15 @@ message IdentityProfile {
|
|
|
152
152
|
ProfileDocument profile = 1;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
enum DeviceType {
|
|
156
|
+
UNKNOWN = 0;
|
|
157
|
+
BROWSER = 1;
|
|
158
|
+
NATIVE = 2;
|
|
159
|
+
AGENT = 3;
|
|
160
|
+
AGENT_MANAGED = 4;
|
|
161
|
+
MOBILE = 5;
|
|
162
|
+
}
|
|
163
|
+
|
|
155
164
|
message DeviceProfileDocument {
|
|
156
165
|
// TODO(mykola): Use for user defined label.
|
|
157
166
|
optional string label = 1;
|
|
@@ -161,6 +170,7 @@ message DeviceProfileDocument {
|
|
|
161
170
|
optional string architecture = 4;
|
|
162
171
|
optional string os = 5;
|
|
163
172
|
optional string os_version = 6;
|
|
173
|
+
optional DeviceType type = 7;
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
/// [ASSERTION]: Sets device profile information.
|
|
@@ -56,6 +56,7 @@ message DeviceAdmissionRequest {
|
|
|
56
56
|
dxos.keys.PublicKey device_key = 1;
|
|
57
57
|
dxos.keys.PublicKey control_feed_key = 2;
|
|
58
58
|
dxos.keys.PublicKey data_feed_key = 3;
|
|
59
|
+
optional dxos.halo.credentials.DeviceProfileDocument profile = 4;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
message SpaceAdmissionRequest {
|
|
@@ -444,6 +444,11 @@ export interface CreateIdentityRequest {
|
|
|
444
444
|
* - proto3_optional = true
|
|
445
445
|
*/
|
|
446
446
|
profile?: dxos_halo_credentials.ProfileDocument;
|
|
447
|
+
/**
|
|
448
|
+
* Options:
|
|
449
|
+
* - proto3_optional = true
|
|
450
|
+
*/
|
|
451
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
447
452
|
}
|
|
448
453
|
/**
|
|
449
454
|
* Defined in:
|
|
@@ -923,6 +928,18 @@ export namespace Invitation {
|
|
|
923
928
|
ERROR = 8
|
|
924
929
|
}
|
|
925
930
|
}
|
|
931
|
+
/**
|
|
932
|
+
* Defined in:
|
|
933
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
934
|
+
*/
|
|
935
|
+
export interface AcceptInvitationRequest {
|
|
936
|
+
invitation: Invitation;
|
|
937
|
+
/**
|
|
938
|
+
* Options:
|
|
939
|
+
* - proto3_optional = true
|
|
940
|
+
*/
|
|
941
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
942
|
+
}
|
|
926
943
|
/**
|
|
927
944
|
* Defined in:
|
|
928
945
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -979,7 +996,7 @@ export namespace QueryInvitationsResponse {
|
|
|
979
996
|
*/
|
|
980
997
|
export interface InvitationsService {
|
|
981
998
|
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
982
|
-
acceptInvitation: (request:
|
|
999
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
983
1000
|
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
984
1001
|
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
985
1002
|
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
@@ -239,6 +239,18 @@ export interface ProfileDocument {
|
|
|
239
239
|
export interface IdentityProfile {
|
|
240
240
|
profile: ProfileDocument;
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Defined in:
|
|
244
|
+
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
245
|
+
*/
|
|
246
|
+
export enum DeviceType {
|
|
247
|
+
UNKNOWN = 0,
|
|
248
|
+
BROWSER = 1,
|
|
249
|
+
NATIVE = 2,
|
|
250
|
+
AGENT = 3,
|
|
251
|
+
AGENT_MANAGED = 4,
|
|
252
|
+
MOBILE = 5
|
|
253
|
+
}
|
|
242
254
|
/**
|
|
243
255
|
* Defined in:
|
|
244
256
|
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
@@ -274,6 +286,11 @@ export interface DeviceProfileDocument {
|
|
|
274
286
|
* - proto3_optional = true
|
|
275
287
|
*/
|
|
276
288
|
osVersion?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Options:
|
|
291
|
+
* - proto3_optional = true
|
|
292
|
+
*/
|
|
293
|
+
type?: DeviceType;
|
|
277
294
|
}
|
|
278
295
|
/**
|
|
279
296
|
* [ASSERTION]: Sets device profile information.
|
|
@@ -149,6 +149,11 @@ export interface DeviceAdmissionRequest {
|
|
|
149
149
|
deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
150
150
|
controlFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
151
151
|
dataFeedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
152
|
+
/**
|
|
153
|
+
* Options:
|
|
154
|
+
* - proto3_optional = true
|
|
155
|
+
*/
|
|
156
|
+
profile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
152
157
|
}
|
|
153
158
|
/**
|
|
154
159
|
* Defined in:
|
|
@@ -78,14 +78,14 @@ export enum NullValue {
|
|
|
78
78
|
export interface ListValue {
|
|
79
79
|
values?: Value[];
|
|
80
80
|
}
|
|
81
|
-
export interface Timestamp {
|
|
82
|
-
seconds: string;
|
|
83
|
-
nanos: number;
|
|
84
|
-
}
|
|
85
81
|
export interface Any {
|
|
86
82
|
type_url: string;
|
|
87
83
|
value: Uint8Array;
|
|
88
84
|
}
|
|
85
|
+
export interface Timestamp {
|
|
86
|
+
seconds: string;
|
|
87
|
+
nanos: number;
|
|
88
|
+
}
|
|
89
89
|
export interface FileDescriptorSet {
|
|
90
90
|
file?: FileDescriptorProto[];
|
|
91
91
|
}
|