@dxos/protocols 0.6.2-next.5b5129c → 0.6.3-main.0308ae2

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 (76) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +442 -432
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +94 -91
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  6. package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
  7. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +25 -0
  8. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
  10. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
  12. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
  14. package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
  16. package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
  18. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +9 -4
  19. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  20. package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
  21. package/dist/cjs/src/proto/gen/index.d.ts +6 -4
  22. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  23. package/dist/cjs/src/proto/gen/index.js +1 -1
  24. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  25. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  26. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +442 -432
  27. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/client/services.js +93 -90
  29. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  31. package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
  32. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +25 -0
  33. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
  35. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
  37. package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
  39. package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  40. package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
  41. package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  42. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
  43. package/dist/esm/src/proto/gen/google/protobuf.d.ts +9 -4
  44. package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
  45. package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
  46. package/dist/esm/src/proto/gen/index.d.ts +6 -4
  47. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  48. package/dist/esm/src/proto/gen/index.js +1 -1
  49. package/dist/esm/src/proto/gen/index.js.map +1 -1
  50. package/package.json +16 -7
  51. package/src/proto/dxos/agent/dashboard.proto +3 -2
  52. package/src/proto/dxos/bot.proto +2 -1
  53. package/src/proto/dxos/client/invitation.proto +171 -0
  54. package/src/proto/dxos/client/logging.proto +3 -0
  55. package/src/proto/dxos/client/services.proto +12 -144
  56. package/src/proto/dxos/config.proto +10 -10
  57. package/src/proto/dxos/echo/metadata.proto +10 -14
  58. package/src/proto/dxos/echo/object.proto +4 -2
  59. package/src/proto/dxos/echo/service.proto +16 -0
  60. package/src/proto/dxos/field_options.proto +11 -0
  61. package/src/proto/dxos/halo/credentials.proto +2 -0
  62. package/src/proto/dxos/halo/invitations.proto +3 -3
  63. package/src/proto/dxos/halo/keys.proto +0 -12
  64. package/src/proto/dxos/halo/signed.proto +10 -6
  65. package/src/proto/dxos/mesh/presence.proto +3 -1
  66. package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
  67. package/src/proto/gen/dxos/client/services.ts +442 -432
  68. package/src/proto/gen/dxos/echo/metadata.ts +3 -3
  69. package/src/proto/gen/dxos/echo/object.ts +2 -2
  70. package/src/proto/gen/dxos/echo/service.ts +25 -0
  71. package/src/proto/gen/dxos/halo/invitations.ts +4 -4
  72. package/src/proto/gen/dxos/halo/keys.ts +0 -9
  73. package/src/proto/gen/dxos/halo/signed.ts +5 -3
  74. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
  75. package/src/proto/gen/google/protobuf.ts +9 -4
  76. package/src/proto/gen/index.ts +7 -5
@@ -62,6 +62,368 @@ import * as dxos_value from "../value";
62
62
  import * as example_testing_data from "../../example/testing/data";
63
63
  import * as example_testing_rpc from "../../example/testing/rpc";
64
64
  import * as google_protobuf from "../../google/protobuf";
65
+ /**
66
+ * Defined in:
67
+ * {@link file://./../../../dxos/client/invitation.proto}
68
+ */
69
+ export interface AdmissionKeypair {
70
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
71
+ /**
72
+ * Options:
73
+ * - proto3_optional = true
74
+ */
75
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
76
+ }
77
+ /**
78
+ * Runtime state of the space object.
79
+ *
80
+ * Defined in:
81
+ * {@link file://./../../../dxos/client/invitation.proto}
82
+ */
83
+ export enum SpaceState {
84
+ INVALID = 0,
85
+ SPACE_INACTIVE = 2,
86
+ SPACE_ACTIVE = 6,
87
+ SPACE_CLOSED = 1,
88
+ SPACE_CONTROL_ONLY = 7,
89
+ SPACE_INITIALIZING = 4,
90
+ SPACE_READY = 3,
91
+ SPACE_ERROR = 5,
92
+ SPACE_REQUIRES_MIGRATION = 8
93
+ }
94
+ /**
95
+ * Represents the invitation state passed between client and service.
96
+ *
97
+ * Defined in:
98
+ * {@link file://./../../../dxos/client/invitation.proto}
99
+ */
100
+ export interface Invitation {
101
+ /**
102
+ * Local identifier (random).
103
+ */
104
+ invitationId: string;
105
+ /**
106
+ * Determines the behavior of the invitation.
107
+ */
108
+ type: Invitation.Type;
109
+ /**
110
+ * Kind of access the invitation will grant.
111
+ */
112
+ kind: Invitation.Kind;
113
+ /**
114
+ * How the invitation is authenticated.
115
+ */
116
+ authMethod: Invitation.AuthMethod;
117
+ /**
118
+ * Swarm rendezvous (random).
119
+ */
120
+ swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
121
+ /**
122
+ * Local state.
123
+ */
124
+ state: Invitation.State;
125
+ /**
126
+ * Timeout for guest to complete invitation once connected (ms).
127
+ *
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ timeout?: number;
132
+ /**
133
+ * Guest's identity.
134
+ *
135
+ * Options:
136
+ * - proto3_optional = true
137
+ */
138
+ identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
139
+ /**
140
+ * Space to join (only present if kind is SPACE).
141
+ *
142
+ * Options:
143
+ * - proto3_optional = true
144
+ */
145
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
146
+ /**
147
+ * Authentication code created by host (only present if auth_method is SHARED_SECRET).
148
+ *
149
+ * Options:
150
+ * - proto3_optional = true
151
+ */
152
+ authCode?: string;
153
+ /**
154
+ * Path or identifier to navigate to after successful authentication.
155
+ *
156
+ * Options:
157
+ * - proto3_optional = true
158
+ */
159
+ target?: string;
160
+ /**
161
+ * Host should resume invitation on startup until timeout.
162
+ *
163
+ * Options:
164
+ * - proto3_optional = true
165
+ */
166
+ persistent?: boolean;
167
+ /**
168
+ * Options:
169
+ * - proto3_optional = true
170
+ */
171
+ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
172
+ /**
173
+ * Options:
174
+ * - proto3_optional = true
175
+ */
176
+ lifetime?: number;
177
+ /**
178
+ * Whether an invitation can be used multiple times.
179
+ *
180
+ * Options:
181
+ * - proto3_optional = true
182
+ */
183
+ multiUse?: boolean;
184
+ /**
185
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
186
+ *
187
+ * Options:
188
+ * - proto3_optional = true
189
+ */
190
+ guestKeypair?: AdmissionKeypair;
191
+ /**
192
+ * Present on Type.DELEGATED invitations.
193
+ *
194
+ * Options:
195
+ * - proto3_optional = true
196
+ */
197
+ delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
198
+ /**
199
+ * Role of the admitted member, defaults to ADMIN.
200
+ *
201
+ * Options:
202
+ * - proto3_optional = true
203
+ */
204
+ role?: dxos_halo_credentials.SpaceMember.Role;
205
+ }
206
+ export namespace Invitation {
207
+ /**
208
+ * Defined in:
209
+ * {@link file://./../../../dxos/client/invitation.proto}
210
+ */
211
+ export enum Type {
212
+ INTERACTIVE = 0,
213
+ DELEGATED = 1,
214
+ MULTIUSE = 2
215
+ }
216
+ /**
217
+ * Defined in:
218
+ * {@link file://./../../../dxos/client/invitation.proto}
219
+ */
220
+ export enum Kind {
221
+ DEVICE = 0,
222
+ SPACE = 1
223
+ }
224
+ /**
225
+ * Defined in:
226
+ * {@link file://./../../../dxos/client/invitation.proto}
227
+ */
228
+ export enum AuthMethod {
229
+ NONE = 0,
230
+ SHARED_SECRET = 1,
231
+ KNOWN_PUBLIC_KEY = 2
232
+ }
233
+ /**
234
+ * Defined in:
235
+ * {@link file://./../../../dxos/client/invitation.proto}
236
+ */
237
+ export enum State {
238
+ INIT = 0,
239
+ CONNECTING = 1,
240
+ CONNECTED = 2,
241
+ READY_FOR_AUTHENTICATION = 3,
242
+ AUTHENTICATING = 4,
243
+ SUCCESS = 5,
244
+ CANCELLED = 6,
245
+ TIMEOUT = 7,
246
+ ERROR = 8,
247
+ EXPIRED = 9
248
+ }
249
+ }
250
+ /**
251
+ * Defined in:
252
+ * {@link file://./../../../dxos/client/logging.proto}
253
+ */
254
+ export interface Metrics {
255
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
256
+ values?: Metrics.KeyPair[];
257
+ }
258
+ export namespace Metrics {
259
+ /**
260
+ * Defined in:
261
+ * {@link file://./../../../dxos/client/logging.proto}
262
+ */
263
+ export interface KeyPair {
264
+ /**
265
+ * Options:
266
+ * - proto3_optional = true
267
+ */
268
+ key?: string;
269
+ /**
270
+ * Options:
271
+ * - proto3_optional = true
272
+ */
273
+ value?: dxos_value.Value;
274
+ /**
275
+ * Options:
276
+ * - proto3_optional = true
277
+ */
278
+ stats?: dxos_value.Stats;
279
+ }
280
+ }
281
+ /**
282
+ * Defined in:
283
+ * {@link file://./../../../dxos/client/logging.proto}
284
+ */
285
+ export interface ControlMetricsRequest {
286
+ /**
287
+ * Options:
288
+ * - proto3_optional = true
289
+ */
290
+ reset?: boolean;
291
+ /**
292
+ * Options:
293
+ * - proto3_optional = true
294
+ */
295
+ record?: boolean;
296
+ }
297
+ /**
298
+ * Defined in:
299
+ * {@link file://./../../../dxos/client/logging.proto}
300
+ */
301
+ export interface ControlMetricsResponse {
302
+ /**
303
+ * Options:
304
+ * - proto3_optional = true
305
+ */
306
+ recording?: boolean;
307
+ }
308
+ /**
309
+ * Defined in:
310
+ * {@link file://./../../../dxos/client/logging.proto}
311
+ */
312
+ export interface QueryMetricsRequest {
313
+ /**
314
+ * Options:
315
+ * - proto3_optional = true
316
+ */
317
+ interval?: number;
318
+ }
319
+ /**
320
+ * Defined in:
321
+ * {@link file://./../../../dxos/client/logging.proto}
322
+ */
323
+ export interface QueryMetricsResponse {
324
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
325
+ metrics: Metrics;
326
+ }
327
+ /**
328
+ * Defined in:
329
+ * {@link file://./../../../dxos/client/logging.proto}
330
+ */
331
+ export enum LogLevel {
332
+ NONE = 0,
333
+ TRACE = 5,
334
+ DEBUG = 10,
335
+ INFO = 11,
336
+ WARN = 12,
337
+ ERROR = 13
338
+ }
339
+ /**
340
+ * Defined in:
341
+ * {@link file://./../../../dxos/client/logging.proto}
342
+ */
343
+ export interface QueryLogsRequest {
344
+ filters?: QueryLogsRequest.Filter[];
345
+ /**
346
+ * Options:
347
+ * - proto3_optional = true
348
+ */
349
+ options?: QueryLogsRequest.MatchingOptions;
350
+ }
351
+ export namespace QueryLogsRequest {
352
+ /**
353
+ * Defined in:
354
+ * {@link file://./../../../dxos/client/logging.proto}
355
+ */
356
+ export enum MatchingOptions {
357
+ NONE = 0,
358
+ INCLUSIVE = 1,
359
+ EXPLICIT = 2
360
+ }
361
+ /**
362
+ * Defined in:
363
+ * {@link file://./../../../dxos/client/logging.proto}
364
+ */
365
+ export interface Filter {
366
+ level: LogLevel;
367
+ /**
368
+ * Options:
369
+ * - proto3_optional = true
370
+ */
371
+ pattern?: string;
372
+ }
373
+ }
374
+ /**
375
+ * Defined in:
376
+ * {@link file://./../../../dxos/client/logging.proto}
377
+ */
378
+ export interface LogEntry {
379
+ level: LogLevel;
380
+ message: string;
381
+ /**
382
+ * Options:
383
+ * - proto3_optional = true
384
+ */
385
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
386
+ /**
387
+ * Options:
388
+ * - proto3_optional = true
389
+ */
390
+ meta?: LogEntry.Meta;
391
+ /**
392
+ * Options:
393
+ * - proto3_optional = true
394
+ */
395
+ error?: dxos_error.Error;
396
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
397
+ }
398
+ export namespace LogEntry {
399
+ /**
400
+ * Defined in:
401
+ * {@link file://./../../../dxos/client/logging.proto}
402
+ */
403
+ export interface Meta {
404
+ file: string;
405
+ line: number;
406
+ /**
407
+ * Options:
408
+ * - proto3_optional = true
409
+ */
410
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
411
+ /**
412
+ * Options:
413
+ * - proto3_optional = true
414
+ */
415
+ resourceId?: number;
416
+ }
417
+ }
418
+ /**
419
+ * Defined in:
420
+ * {@link file://./../../../dxos/client/logging.proto}
421
+ */
422
+ export interface LoggingService {
423
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
424
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
425
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
426
+ }
65
427
  /**
66
428
  * Defined in:
67
429
  * {@link file://./../../../dxos/client/services.proto}
@@ -385,22 +747,6 @@ export namespace SpaceMember {
385
747
  ONLINE = 1
386
748
  }
387
749
  }
388
- /**
389
- * Runtime state of the space object.
390
- *
391
- * Defined in:
392
- * {@link file://./../../../dxos/client/services.proto}
393
- */
394
- export enum SpaceState {
395
- INACTIVE = 2,
396
- ACTIVE = 6,
397
- CLOSED = 1,
398
- CONTROL_ONLY = 7,
399
- INITIALIZING = 4,
400
- READY = 3,
401
- ERROR = 5,
402
- REQUIRES_MIGRATION = 8
403
- }
404
750
  /**
405
751
  * Defined in:
406
752
  * {@link file://./../../../dxos/client/services.proto}
@@ -663,257 +1009,96 @@ export namespace CreateEpochRequest {
663
1009
  PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
664
1010
  FRAGMENT_AUTOMERGE_ROOT = 3,
665
1011
  REPLACE_AUTOMERGE_ROOT = 4,
666
- MIGRATE_REFERENCES_TO_DXN = 5
667
- }
668
- }
669
- /**
670
- * Defined in:
671
- * {@link file://./../../../dxos/client/services.proto}
672
- */
673
- export interface CreateEpochResponse {
674
- /**
675
- * Credential of the new epoch.
676
- *
677
- * Options:
678
- * - proto3_optional = true
679
- */
680
- epochCredential?: dxos_halo_credentials.Credential;
681
- }
682
- /**
683
- * Defined in:
684
- * {@link file://./../../../dxos/client/services.proto}
685
- */
686
- export interface UpdateMemberRoleRequest {
687
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
688
- memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
689
- newRole: dxos_halo_credentials.SpaceMember.Role;
690
- }
691
- /**
692
- * Defined in:
693
- * {@link file://./../../../dxos/client/services.proto}
694
- */
695
- export interface AdmitContactRequest {
696
- contact: Contact;
697
- role: dxos_halo_credentials.SpaceMember.Role;
698
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
699
- }
700
- /**
701
- * Defined in:
702
- * {@link file://./../../../dxos/client/services.proto}
703
- */
704
- export interface ContactAdmission {
705
- credential: dxos_halo_credentials.Credential;
706
- }
707
- /**
708
- * Defined in:
709
- * {@link file://./../../../dxos/client/services.proto}
710
- */
711
- export interface JoinSpaceResponse {
712
- space: Space;
713
- }
714
- /**
715
- * Defined in:
716
- * {@link file://./../../../dxos/client/services.proto}
717
- */
718
- export interface JoinBySpaceKeyRequest {
719
- spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
720
- }
721
- /**
722
- * Defined in:
723
- * {@link file://./../../../dxos/client/services.proto}
724
- */
725
- export interface SpacesService {
726
- createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
727
- updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
728
- querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
729
- updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
730
- admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
731
- joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
732
- /**
733
- * Broadcast an ephemeral message to the space swarm.
734
- */
735
- postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
736
- /**
737
- * Subscribe to messages from the space swarm.
738
- */
739
- subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
740
- /**
741
- * Write credentials to the space control feed.
742
- */
743
- writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
744
- /**
745
- * Query credentials from the space control feed.
746
- */
747
- queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
748
- createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
749
- }
750
- /**
751
- * Represents the invitation state passed between client and service.
752
- *
753
- * Defined in:
754
- * {@link file://./../../../dxos/client/services.proto}
755
- */
756
- export interface Invitation {
757
- /**
758
- * Local identifier (random).
759
- */
760
- invitationId: string;
761
- /**
762
- * Determines the behavior of the invitation.
763
- */
764
- type: Invitation.Type;
765
- /**
766
- * Kind of access the invitation will grant.
767
- */
768
- kind: Invitation.Kind;
769
- /**
770
- * How the invitation is authenticated.
771
- */
772
- authMethod: Invitation.AuthMethod;
773
- /**
774
- * Swarm rendezvous (random).
775
- */
776
- swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
777
- /**
778
- * Local state.
779
- */
780
- state: Invitation.State;
781
- /**
782
- * Timeout for guest to complete invitation once connected (ms).
783
- *
784
- * Options:
785
- * - proto3_optional = true
786
- */
787
- timeout?: number;
788
- /**
789
- * Guest's identity.
790
- *
791
- * Options:
792
- * - proto3_optional = true
793
- */
794
- identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
795
- /**
796
- * Space to join (only present if kind is SPACE).
797
- *
798
- * Options:
799
- * - proto3_optional = true
800
- */
801
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
802
- /**
803
- * Authentication code created by host (only present if auth_method is SHARED_SECRET).
804
- *
805
- * Options:
806
- * - proto3_optional = true
807
- */
808
- authCode?: string;
809
- /**
810
- * Path or identifier to navigate to after successful authentication.
811
- *
812
- * Options:
813
- * - proto3_optional = true
814
- */
815
- target?: string;
816
- /**
817
- * Host should resume invitation on startup until timeout.
818
- *
819
- * Options:
820
- * - proto3_optional = true
821
- */
822
- persistent?: boolean;
823
- /**
824
- * Options:
825
- * - proto3_optional = true
826
- */
827
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
828
- /**
829
- * Options:
830
- * - proto3_optional = true
831
- */
832
- lifetime?: number;
833
- /**
834
- * Whether an invitation can be used multiple times.
835
- *
836
- * Options:
837
- * - proto3_optional = true
838
- */
839
- multiUse?: boolean;
840
- /**
841
- * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
842
- *
843
- * Options:
844
- * - proto3_optional = true
845
- */
846
- guestKeypair?: AdmissionKeypair;
847
- /**
848
- * Present on Type.DELEGATED invitations.
849
- *
850
- * Options:
851
- * - proto3_optional = true
852
- */
853
- delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
854
- /**
855
- * Role of the admitted member, defaults to ADMIN.
856
- *
857
- * Options:
858
- * - proto3_optional = true
859
- */
860
- role?: dxos_halo_credentials.SpaceMember.Role;
861
- }
862
- export namespace Invitation {
863
- /**
864
- * Defined in:
865
- * {@link file://./../../../dxos/client/services.proto}
866
- */
867
- export enum Type {
868
- INTERACTIVE = 0,
869
- DELEGATED = 1,
870
- MULTIUSE = 2
871
- }
872
- /**
873
- * Defined in:
874
- * {@link file://./../../../dxos/client/services.proto}
875
- */
876
- export enum Kind {
877
- DEVICE = 0,
878
- SPACE = 1
879
- }
880
- /**
881
- * Defined in:
882
- * {@link file://./../../../dxos/client/services.proto}
883
- */
884
- export enum AuthMethod {
885
- NONE = 0,
886
- SHARED_SECRET = 1,
887
- KNOWN_PUBLIC_KEY = 2
888
- }
889
- /**
890
- * Defined in:
891
- * {@link file://./../../../dxos/client/services.proto}
892
- */
893
- export enum State {
894
- INIT = 0,
895
- CONNECTING = 1,
896
- CONNECTED = 2,
897
- READY_FOR_AUTHENTICATION = 3,
898
- AUTHENTICATING = 4,
899
- SUCCESS = 5,
900
- CANCELLED = 6,
901
- TIMEOUT = 7,
902
- ERROR = 8,
903
- EXPIRED = 9
1012
+ MIGRATE_REFERENCES_TO_DXN = 5
904
1013
  }
905
1014
  }
906
1015
  /**
907
1016
  * Defined in:
908
1017
  * {@link file://./../../../dxos/client/services.proto}
909
1018
  */
910
- export interface AdmissionKeypair {
911
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1019
+ export interface CreateEpochResponse {
912
1020
  /**
1021
+ * Credential of the new epoch.
1022
+ *
913
1023
  * Options:
914
1024
  * - proto3_optional = true
915
1025
  */
916
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1026
+ epochCredential?: dxos_halo_credentials.Credential;
1027
+ /**
1028
+ * Control pipeline timeframe.
1029
+ *
1030
+ * Options:
1031
+ * - proto3_optional = true
1032
+ */
1033
+ controlTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
1034
+ }
1035
+ /**
1036
+ * Defined in:
1037
+ * {@link file://./../../../dxos/client/services.proto}
1038
+ */
1039
+ export interface UpdateMemberRoleRequest {
1040
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1041
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1042
+ newRole: dxos_halo_credentials.SpaceMember.Role;
1043
+ }
1044
+ /**
1045
+ * Defined in:
1046
+ * {@link file://./../../../dxos/client/services.proto}
1047
+ */
1048
+ export interface AdmitContactRequest {
1049
+ contact: Contact;
1050
+ role: dxos_halo_credentials.SpaceMember.Role;
1051
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1052
+ }
1053
+ /**
1054
+ * Defined in:
1055
+ * {@link file://./../../../dxos/client/services.proto}
1056
+ */
1057
+ export interface ContactAdmission {
1058
+ credential: dxos_halo_credentials.Credential;
1059
+ }
1060
+ /**
1061
+ * Defined in:
1062
+ * {@link file://./../../../dxos/client/services.proto}
1063
+ */
1064
+ export interface JoinSpaceResponse {
1065
+ space: Space;
1066
+ }
1067
+ /**
1068
+ * Defined in:
1069
+ * {@link file://./../../../dxos/client/services.proto}
1070
+ */
1071
+ export interface JoinBySpaceKeyRequest {
1072
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1073
+ }
1074
+ /**
1075
+ * Defined in:
1076
+ * {@link file://./../../../dxos/client/services.proto}
1077
+ */
1078
+ export interface SpacesService {
1079
+ createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
1080
+ updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
1081
+ querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
1082
+ updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
1083
+ admitContact: (request: AdmitContactRequest, options?: RequestOptions) => Promise<void>;
1084
+ joinBySpaceKey: (request: JoinBySpaceKeyRequest, options?: RequestOptions) => Promise<JoinSpaceResponse>;
1085
+ /**
1086
+ * Broadcast an ephemeral message to the space swarm.
1087
+ */
1088
+ postMessage: (request: PostMessageRequest, options?: RequestOptions) => Promise<void>;
1089
+ /**
1090
+ * Subscribe to messages from the space swarm.
1091
+ */
1092
+ subscribeMessages: (request: SubscribeMessagesRequest, options?: RequestOptions) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
1093
+ /**
1094
+ * Write credentials to the space control feed.
1095
+ */
1096
+ writeCredentials: (request: WriteCredentialsRequest, options?: RequestOptions) => Promise<void>;
1097
+ /**
1098
+ * Query credentials from the space control feed.
1099
+ */
1100
+ queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
1101
+ createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
917
1102
  }
918
1103
  /**
919
1104
  * Defined in:
@@ -1044,178 +1229,3 @@ export interface NetworkService {
1044
1229
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1045
1230
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1046
1231
  }
1047
- /**
1048
- * Defined in:
1049
- * {@link file://./../../../dxos/client/logging.proto}
1050
- */
1051
- export interface Metrics {
1052
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1053
- values?: Metrics.KeyPair[];
1054
- }
1055
- export namespace Metrics {
1056
- /**
1057
- * Defined in:
1058
- * {@link file://./../../../dxos/client/logging.proto}
1059
- */
1060
- export interface KeyPair {
1061
- /**
1062
- * Options:
1063
- * - proto3_optional = true
1064
- */
1065
- key?: string;
1066
- /**
1067
- * Options:
1068
- * - proto3_optional = true
1069
- */
1070
- value?: dxos_value.Value;
1071
- /**
1072
- * Options:
1073
- * - proto3_optional = true
1074
- */
1075
- stats?: dxos_value.Stats;
1076
- }
1077
- }
1078
- /**
1079
- * Defined in:
1080
- * {@link file://./../../../dxos/client/logging.proto}
1081
- */
1082
- export interface ControlMetricsRequest {
1083
- /**
1084
- * Options:
1085
- * - proto3_optional = true
1086
- */
1087
- reset?: boolean;
1088
- /**
1089
- * Options:
1090
- * - proto3_optional = true
1091
- */
1092
- record?: boolean;
1093
- }
1094
- /**
1095
- * Defined in:
1096
- * {@link file://./../../../dxos/client/logging.proto}
1097
- */
1098
- export interface ControlMetricsResponse {
1099
- /**
1100
- * Options:
1101
- * - proto3_optional = true
1102
- */
1103
- recording?: boolean;
1104
- }
1105
- /**
1106
- * Defined in:
1107
- * {@link file://./../../../dxos/client/logging.proto}
1108
- */
1109
- export interface QueryMetricsRequest {
1110
- /**
1111
- * Options:
1112
- * - proto3_optional = true
1113
- */
1114
- interval?: number;
1115
- }
1116
- /**
1117
- * Defined in:
1118
- * {@link file://./../../../dxos/client/logging.proto}
1119
- */
1120
- export interface QueryMetricsResponse {
1121
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1122
- metrics: Metrics;
1123
- }
1124
- /**
1125
- * Defined in:
1126
- * {@link file://./../../../dxos/client/logging.proto}
1127
- */
1128
- export enum LogLevel {
1129
- TRACE = 5,
1130
- DEBUG = 10,
1131
- INFO = 11,
1132
- WARN = 12,
1133
- ERROR = 13
1134
- }
1135
- /**
1136
- * Defined in:
1137
- * {@link file://./../../../dxos/client/logging.proto}
1138
- */
1139
- export interface QueryLogsRequest {
1140
- filters?: QueryLogsRequest.Filter[];
1141
- /**
1142
- * Options:
1143
- * - proto3_optional = true
1144
- */
1145
- options?: QueryLogsRequest.MatchingOptions;
1146
- }
1147
- export namespace QueryLogsRequest {
1148
- /**
1149
- * Defined in:
1150
- * {@link file://./../../../dxos/client/logging.proto}
1151
- */
1152
- export enum MatchingOptions {
1153
- INCLUSIVE = 1,
1154
- EXPLICIT = 2
1155
- }
1156
- /**
1157
- * Defined in:
1158
- * {@link file://./../../../dxos/client/logging.proto}
1159
- */
1160
- export interface Filter {
1161
- level: LogLevel;
1162
- /**
1163
- * Options:
1164
- * - proto3_optional = true
1165
- */
1166
- pattern?: string;
1167
- }
1168
- }
1169
- /**
1170
- * Defined in:
1171
- * {@link file://./../../../dxos/client/logging.proto}
1172
- */
1173
- export interface LogEntry {
1174
- level: LogLevel;
1175
- message: string;
1176
- /**
1177
- * Options:
1178
- * - proto3_optional = true
1179
- */
1180
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1181
- /**
1182
- * Options:
1183
- * - proto3_optional = true
1184
- */
1185
- meta?: LogEntry.Meta;
1186
- /**
1187
- * Options:
1188
- * - proto3_optional = true
1189
- */
1190
- error?: dxos_error.Error;
1191
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1192
- }
1193
- export namespace LogEntry {
1194
- /**
1195
- * Defined in:
1196
- * {@link file://./../../../dxos/client/logging.proto}
1197
- */
1198
- export interface Meta {
1199
- file: string;
1200
- line: number;
1201
- /**
1202
- * Options:
1203
- * - proto3_optional = true
1204
- */
1205
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1206
- /**
1207
- * Options:
1208
- * - proto3_optional = true
1209
- */
1210
- resourceId?: number;
1211
- }
1212
- }
1213
- /**
1214
- * Defined in:
1215
- * {@link file://./../../../dxos/client/logging.proto}
1216
- */
1217
- export interface LoggingService {
1218
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1219
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1220
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1221
- }