@dxos/protocols 0.7.5-labs.f5080a1 → 0.7.5-labs.ff2ff30

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.
Files changed (46) hide show
  1. package/dist/cjs/src/buf/proto/gen/dxos/client/services_pb.d.ts +2 -0
  2. package/dist/cjs/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  3. package/dist/cjs/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  4. package/dist/cjs/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +39 -35
  5. package/dist/cjs/src/buf/proto/gen/dxos/edge/calls_pb.d.ts.map +1 -1
  6. package/dist/cjs/src/buf/proto/gen/dxos/edge/calls_pb.js +9 -9
  7. package/dist/cjs/src/buf/proto/gen/dxos/edge/calls_pb.js.map +1 -1
  8. package/dist/cjs/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +1 -1
  9. package/dist/cjs/src/edge.d.ts +8 -0
  10. package/dist/cjs/src/edge.d.ts.map +1 -1
  11. package/dist/cjs/src/edge.js.map +1 -1
  12. package/dist/cjs/src/proto/gen/dxos/edge/calls.d.ts +25 -20
  13. package/dist/cjs/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
  14. package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +1 -1
  15. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/index.js +1 -1
  17. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  18. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  19. package/dist/esm/src/buf/proto/gen/dxos/client/services_pb.d.ts +2 -0
  20. package/dist/esm/src/buf/proto/gen/dxos/client/services_pb.d.ts.map +1 -1
  21. package/dist/esm/src/buf/proto/gen/dxos/client/services_pb.js.map +1 -1
  22. package/dist/esm/src/buf/proto/gen/dxos/edge/calls_pb.d.ts +39 -35
  23. package/dist/esm/src/buf/proto/gen/dxos/edge/calls_pb.d.ts.map +1 -1
  24. package/dist/esm/src/buf/proto/gen/dxos/edge/calls_pb.js +8 -8
  25. package/dist/esm/src/buf/proto/gen/dxos/edge/calls_pb.js.map +1 -1
  26. package/dist/esm/src/buf/proto/gen/dxos/halo/credentials_pb.d.ts +1 -1
  27. package/dist/esm/src/edge.d.ts +8 -0
  28. package/dist/esm/src/edge.d.ts.map +1 -1
  29. package/dist/esm/src/edge.js.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/edge/calls.d.ts +25 -20
  31. package/dist/esm/src/proto/gen/dxos/edge/calls.d.ts.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +1 -1
  33. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/index.js +1 -1
  35. package/dist/esm/src/proto/gen/index.js.map +1 -1
  36. package/package.json +7 -7
  37. package/src/buf/proto/gen/dxos/client/services_pb.ts +2 -0
  38. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +47 -42
  39. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +1 -1
  40. package/src/edge.ts +9 -0
  41. package/src/proto/dxos/client/services.proto +1 -0
  42. package/src/proto/dxos/edge/calls.proto +20 -19
  43. package/src/proto/dxos/halo/credentials.proto +1 -1
  44. package/src/proto/gen/dxos/edge/calls.ts +25 -20
  45. package/src/proto/gen/dxos/halo/credentials.ts +1 -1
  46. package/src/proto/gen/index.ts +1 -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;AAmEhE,OAAO,aAAa,MAAM,qBAAqB,CAAC;AA0lBhD,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4jtHAA4jtH,CAAC,CAAC,CAAC;AACrntH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,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;AAmEhE,OAAO,aAAa,MAAM,qBAAqB,CAAC;AA0lBhD,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,mrtHAAmrtH,CAAC,CAAC,CAAC;AAC5utH,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.7.5-labs.f5080a1",
3
+ "version": "0.7.5-labs.ff2ff30",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -72,12 +72,12 @@
72
72
  ],
73
73
  "dependencies": {
74
74
  "@bufbuild/protobuf": "^2.1.0",
75
- "@dxos/codec-protobuf": "0.7.5-labs.f5080a1",
76
- "@dxos/effect": "0.7.5-labs.f5080a1",
77
- "@dxos/keys": "0.7.5-labs.f5080a1",
78
- "@dxos/invariant": "0.7.5-labs.f5080a1",
79
- "@dxos/timeframe": "0.7.5-labs.f5080a1",
80
- "@dxos/util": "0.7.5-labs.f5080a1"
75
+ "@dxos/codec-protobuf": "0.7.5-labs.ff2ff30",
76
+ "@dxos/keys": "0.7.5-labs.ff2ff30",
77
+ "@dxos/effect": "0.7.5-labs.ff2ff30",
78
+ "@dxos/timeframe": "0.7.5-labs.ff2ff30",
79
+ "@dxos/invariant": "0.7.5-labs.ff2ff30",
80
+ "@dxos/util": "0.7.5-labs.ff2ff30"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@bufbuild/buf": "^1.43.0",
@@ -362,6 +362,8 @@ export type RecoverIdentityRequest_ExternalSignature = Message<"dxos.client.serv
362
362
  signature: Uint8Array;
363
363
 
364
364
  /**
365
+ * These are required to verify the signature from the WebAuthn authenticator.
366
+ *
365
367
  * @generated from field: optional bytes client_data_json = 5;
366
368
  */
367
369
  clientDataJson?: Uint8Array;
@@ -15,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf";
15
15
  * Describes the file dxos/edge/calls.proto.
16
16
  */
17
17
  export const file_dxos_edge_calls: GenFile = /*@__PURE__*/
18
- fileDesc("ChVkeG9zL2VkZ2UvY2FsbHMucHJvdG8SD2R4b3MuZWRnZS5jYWxscyKGAgoGVHJhY2tzEhIKBWF1ZGlvGAEgASgJSACIAQESGgoNYXVkaW9fZW5hYmxlZBgCIAEoCEgBiAEBEhIKBXZpZGVvGAMgASgJSAKIAQESGgoNdmlkZW9fZW5hYmxlZBgEIAEoCEgDiAEBEhgKC3NjcmVlbnNoYXJlGAUgASgJSASIAQESIQoUc2NyZWVuX3NoYXJlX2VuYWJsZWQYBiABKAhIBYgBAUIICgZfYXVkaW9CEAoOX2F1ZGlvX2VuYWJsZWRCCAoGX3ZpZGVvQhAKDl92aWRlb19lbmFibGVkQg4KDF9zY3JlZW5zaGFyZUIXChVfc2NyZWVuX3NoYXJlX2VuYWJsZWQiTgoNVHJhbnNjcmlwdGlvbhIPCgdlbmFibGVkGAEgASgIEhkKEWxhbXBvcnRfdGltZXN0YW1wGAIgASgFEhEKCW9iamVjdF9pZBgDIAEoCSKTAgoJVXNlclN0YXRlEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSIwoWdHJhbnNjZWl2ZXJfc2Vzc2lvbl9pZBgDIAEoCUgAiAEBEhMKC3JhaXNlZF9oYW5kGAQgASgIEhAKCHNwZWFraW5nGAUgASgIEg4KBmpvaW5lZBgGIAEoCBInCgZ0cmFja3MYByABKAsyFy5keG9zLmVkZ2UuY2FsbHMuVHJhY2tzEjoKDXRyY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UcmFuc2NyaXB0aW9uSAGIAQESEQoEc2VsZhgJIAEoCEgCiAEBQhkKF190cmFuc2NlaXZlcl9zZXNzaW9uX2lkQhAKDl90cmFuc2NyaXB0aW9uQgcKBV9zZWxmIpcBCglSb29tU3RhdGUSEQoJbWVldGluZ0lkGAEgASgJEikKBXVzZXJzGAIgAygLMhouZHhvcy5lZGdlLmNhbGxzLlVzZXJTdGF0ZRI6Cg10cmFuc2NyaXB0aW9uGAMgASgLMh4uZHhvcy5lZGdlLmNhbGxzLlRyYW5zY3JpcHRpb25IAIgBAUIQCg5fdHJhbnNjcmlwdGlvbiJPCg1UcmFuc2NyaXB0aW9uEg8KB2VuYWJsZWQYASABKAgSGQoRbGFtcG9ydF90aW1lc3RhbXAYAiABKAUSEgoKb2JqZWN0X2R4bhgDIAEoCWIGcHJvdG8z", [file_dxos_keys]);
19
19
 
20
20
  /**
21
21
  * @generated from message dxos.edge.calls.Tracks
@@ -47,9 +47,9 @@ export type Tracks = Message<"dxos.edge.calls.Tracks"> & {
47
47
  screenshare?: string;
48
48
 
49
49
  /**
50
- * @generated from field: optional bool screen_share_enabled = 6;
50
+ * @generated from field: optional bool screenshare_enabled = 6;
51
51
  */
52
- screenShareEnabled?: boolean;
52
+ screenshareEnabled?: boolean;
53
53
  };
54
54
 
55
55
  /**
@@ -59,44 +59,6 @@ export type Tracks = Message<"dxos.edge.calls.Tracks"> & {
59
59
  export const TracksSchema: GenMessage<Tracks> = /*@__PURE__*/
60
60
  messageDesc(file_dxos_edge_calls, 0);
61
61
 
62
- /**
63
- * *
64
- * Transcription settings.
65
- * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
66
- *
67
- * @generated from message dxos.edge.calls.Transcription
68
- */
69
- export type Transcription = Message<"dxos.edge.calls.Transcription"> & {
70
- /**
71
- * @generated from field: bool enabled = 1;
72
- */
73
- enabled: boolean;
74
-
75
- /**
76
- * *
77
- * Lamport timestamp of when the state was set.
78
- * @see https://en.wikipedia.org/wiki/Lamport_timestamp
79
- *
80
- * @generated from field: int32 lamport_timestamp = 2;
81
- */
82
- lamportTimestamp: number;
83
-
84
- /**
85
- * *
86
- * Object ID of where the transcription should be stored.
87
- *
88
- * @generated from field: string object_id = 3;
89
- */
90
- objectId: string;
91
- };
92
-
93
- /**
94
- * Describes the message dxos.edge.calls.Transcription.
95
- * Use `create(TranscriptionSchema)` to create a new message.
96
- */
97
- export const TranscriptionSchema: GenMessage<Transcription> = /*@__PURE__*/
98
- messageDesc(file_dxos_edge_calls, 1);
99
-
100
62
  /**
101
63
  * @generated from message dxos.edge.calls.UserState
102
64
  */
@@ -140,6 +102,11 @@ export type UserState = Message<"dxos.edge.calls.UserState"> & {
140
102
  * @generated from field: optional dxos.edge.calls.Transcription transcription = 8;
141
103
  */
142
104
  transcription?: Transcription;
105
+
106
+ /**
107
+ * @generated from field: optional bool self = 9;
108
+ */
109
+ self?: boolean;
143
110
  };
144
111
 
145
112
  /**
@@ -147,7 +114,7 @@ export type UserState = Message<"dxos.edge.calls.UserState"> & {
147
114
  * Use `create(UserStateSchema)` to create a new message.
148
115
  */
149
116
  export const UserStateSchema: GenMessage<UserState> = /*@__PURE__*/
150
- messageDesc(file_dxos_edge_calls, 2);
117
+ messageDesc(file_dxos_edge_calls, 1);
151
118
 
152
119
  /**
153
120
  * @generated from message dxos.edge.calls.RoomState
@@ -174,5 +141,43 @@ export type RoomState = Message<"dxos.edge.calls.RoomState"> & {
174
141
  * Use `create(RoomStateSchema)` to create a new message.
175
142
  */
176
143
  export const RoomStateSchema: GenMessage<RoomState> = /*@__PURE__*/
144
+ messageDesc(file_dxos_edge_calls, 2);
145
+
146
+ /**
147
+ * *
148
+ * Transcription settings.
149
+ * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
150
+ *
151
+ * @generated from message dxos.edge.calls.Transcription
152
+ */
153
+ export type Transcription = Message<"dxos.edge.calls.Transcription"> & {
154
+ /**
155
+ * @generated from field: bool enabled = 1;
156
+ */
157
+ enabled: boolean;
158
+
159
+ /**
160
+ * *
161
+ * Lamport timestamp of when the state was set.
162
+ * @see https://en.wikipedia.org/wiki/Lamport_timestamp
163
+ *
164
+ * @generated from field: int32 lamport_timestamp = 2;
165
+ */
166
+ lamportTimestamp: number;
167
+
168
+ /**
169
+ * *
170
+ * Object DXN of where the transcription should be stored.
171
+ *
172
+ * @generated from field: string object_dxn = 3;
173
+ */
174
+ objectDxn: string;
175
+ };
176
+
177
+ /**
178
+ * Describes the message dxos.edge.calls.Transcription.
179
+ * Use `create(TranscriptionSchema)` to create a new message.
180
+ */
181
+ export const TranscriptionSchema: GenMessage<Transcription> = /*@__PURE__*/
177
182
  messageDesc(file_dxos_edge_calls, 3);
178
183
 
@@ -359,7 +359,7 @@ export type IdentityRecovery = Message<"dxos.halo.credentials.IdentityRecovery">
359
359
  recoveryKey?: PublicKey;
360
360
 
361
361
  /**
362
- * / Algorithm used to derive the recovery key.
362
+ * / Algorithm used to derive the recovery key (e.g., ED25519, ES256, etc.).
363
363
  *
364
364
  * @generated from field: string algorithm = 3;
365
365
  */
package/src/edge.ts CHANGED
@@ -82,6 +82,7 @@ export type RecoverIdentityRequest = {
82
82
  controlFeedKey: string;
83
83
  signature?:
84
84
  | string
85
+ // This is the format of the signature from the WebAuthn authenticator.
85
86
  | {
86
87
  signature: string;
87
88
  clientDataJson: string;
@@ -124,7 +125,15 @@ export type UploadFunctionResponseBody = {
124
125
  functionId: string;
125
126
  version: string;
126
127
  meta: {
128
+ description?: string;
129
+ /**
130
+ * JSON Schema for the input of the function.
131
+ */
127
132
  inputSchema?: object;
133
+ /**
134
+ * JSON Schema for the output of the function.
135
+ */
136
+ outputSchema?: object;
128
137
  };
129
138
  };
130
139
 
@@ -136,6 +136,7 @@ message RecoverIdentityRequest {
136
136
  dxos.keys.PublicKey device_key = 2;
137
137
  dxos.keys.PublicKey control_feed_key = 3;
138
138
  bytes signature = 4;
139
+ // These are required to verify the signature from the WebAuthn authenticator.
139
140
  optional bytes client_data_json = 5;
140
141
  optional bytes authenticator_data = 6;
141
142
  }
@@ -14,25 +14,7 @@ message Tracks {
14
14
  optional string video = 3;
15
15
  optional bool video_enabled = 4;
16
16
  optional string screenshare = 5;
17
- optional bool screen_share_enabled = 6;
18
- }
19
-
20
- /**
21
- * Transcription settings.
22
- * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
23
- */
24
- message Transcription {
25
- bool enabled = 1;
26
- /**
27
- * Lamport timestamp of when the state was set.
28
- * @see https://en.wikipedia.org/wiki/Lamport_timestamp
29
- */
30
- int32 lamport_timestamp = 2;
31
-
32
- /**
33
- * Object ID of where the transcription should be stored.
34
- */
35
- string object_id = 3;
17
+ optional bool screenshare_enabled = 6;
36
18
  }
37
19
 
38
20
  message UserState {
@@ -44,6 +26,7 @@ message UserState {
44
26
  bool joined = 6;
45
27
  Tracks tracks = 7;
46
28
  optional Transcription transcription = 8;
29
+ optional bool self = 9;
47
30
  }
48
31
 
49
32
  message RoomState {
@@ -51,3 +34,21 @@ message RoomState {
51
34
  repeated UserState users = 2;
52
35
  optional Transcription transcription = 3;
53
36
  }
37
+
38
+ /**
39
+ * Transcription settings.
40
+ * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
41
+ */
42
+ message Transcription {
43
+ bool enabled = 1;
44
+ /**
45
+ * Lamport timestamp of when the state was set.
46
+ * @see https://en.wikipedia.org/wiki/Lamport_timestamp
47
+ */
48
+ int32 lamport_timestamp = 2;
49
+
50
+ /**
51
+ * Object DXN of where the transcription should be stored.
52
+ */
53
+ string object_dxn = 3;
54
+ }
@@ -139,7 +139,7 @@ message IdentityRecovery {
139
139
  dxos.keys.PublicKey identity_key = 1;
140
140
  /// Public key derived from the recovery seedphrase.
141
141
  dxos.keys.PublicKey recovery_key = 2;
142
- /// Algorithm used to derive the recovery key.
142
+ /// Algorithm used to derive the recovery key (e.g., ED25519, ES256, etc.).
143
143
  string algorithm = 3;
144
144
  }
145
145
 
@@ -99,26 +99,7 @@ export interface Tracks {
99
99
  * Options:
100
100
  * - proto3_optional = true
101
101
  */
102
- screenShareEnabled?: boolean;
103
- }
104
- /**
105
- * Transcription settings.
106
- * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
107
- *
108
- * Defined in:
109
- * {@link file://./../../../dxos/edge/calls.proto}
110
- */
111
- export interface Transcription {
112
- enabled: boolean;
113
- /**
114
- * Lamport timestamp of when the state was set.
115
- * @see https://en.wikipedia.org/wiki/Lamport_timestamp
116
- */
117
- lamportTimestamp: number;
118
- /**
119
- * Object ID of where the transcription should be stored.
120
- */
121
- objectId: string;
102
+ screenshareEnabled?: boolean;
122
103
  }
123
104
  /**
124
105
  * Defined in:
@@ -141,6 +122,11 @@ export interface UserState {
141
122
  * - proto3_optional = true
142
123
  */
143
124
  transcription?: Transcription;
125
+ /**
126
+ * Options:
127
+ * - proto3_optional = true
128
+ */
129
+ self?: boolean;
144
130
  }
145
131
  /**
146
132
  * Defined in:
@@ -155,3 +141,22 @@ export interface RoomState {
155
141
  */
156
142
  transcription?: Transcription;
157
143
  }
144
+ /**
145
+ * Transcription settings.
146
+ * It will be merged across all users in the room based on the Lamport timestamp (last one wins).
147
+ *
148
+ * Defined in:
149
+ * {@link file://./../../../dxos/edge/calls.proto}
150
+ */
151
+ export interface Transcription {
152
+ enabled: boolean;
153
+ /**
154
+ * Lamport timestamp of when the state was set.
155
+ * @see https://en.wikipedia.org/wiki/Lamport_timestamp
156
+ */
157
+ lamportTimestamp: number;
158
+ /**
159
+ * Object DXN of where the transcription should be stored.
160
+ */
161
+ objectDxn: string;
162
+ }
@@ -220,7 +220,7 @@ export interface IdentityRecovery {
220
220
  */
221
221
  recoveryKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
222
222
  /**
223
- * Algorithm used to derive the recovery key.
223
+ * Algorithm used to derive the recovery key (e.g., ED25519, ES256, etc.).
224
224
  */
225
225
  algorithm: string;
226
226
  }