@dxos/protocols 0.6.3-main.40d1cec → 0.6.3-main.4203f37

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 (75) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +349 -346
  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 +81 -78
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  6. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  8. package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
  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 +3 -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 +349 -346
  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 +80 -77
  29. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  31. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  33. package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
  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 +3 -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 +10 -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/field_options.proto +11 -0
  60. package/src/proto/dxos/halo/credentials.proto +2 -0
  61. package/src/proto/dxos/halo/invitations.proto +3 -3
  62. package/src/proto/dxos/halo/keys.proto +0 -12
  63. package/src/proto/dxos/halo/signed.proto +10 -6
  64. package/src/proto/dxos/mesh/presence.proto +3 -1
  65. package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
  66. package/src/proto/gen/dxos/client/services.ts +349 -346
  67. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  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/halo/invitations.ts +4 -4
  71. package/src/proto/gen/dxos/halo/keys.ts +0 -9
  72. package/src/proto/gen/dxos/halo/signed.ts +5 -3
  73. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
  74. package/src/proto/gen/google/protobuf.ts +9 -4
  75. package/src/proto/gen/index.ts +4 -5
@@ -62,6 +62,183 @@ 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/logging.proto}
68
+ */
69
+ export interface Metrics {
70
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
71
+ values?: Metrics.KeyPair[];
72
+ }
73
+ export namespace Metrics {
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../dxos/client/logging.proto}
77
+ */
78
+ export interface KeyPair {
79
+ /**
80
+ * Options:
81
+ * - proto3_optional = true
82
+ */
83
+ key?: string;
84
+ /**
85
+ * Options:
86
+ * - proto3_optional = true
87
+ */
88
+ value?: dxos_value.Value;
89
+ /**
90
+ * Options:
91
+ * - proto3_optional = true
92
+ */
93
+ stats?: dxos_value.Stats;
94
+ }
95
+ }
96
+ /**
97
+ * Defined in:
98
+ * {@link file://./../../../dxos/client/logging.proto}
99
+ */
100
+ export interface ControlMetricsRequest {
101
+ /**
102
+ * Options:
103
+ * - proto3_optional = true
104
+ */
105
+ reset?: boolean;
106
+ /**
107
+ * Options:
108
+ * - proto3_optional = true
109
+ */
110
+ record?: boolean;
111
+ }
112
+ /**
113
+ * Defined in:
114
+ * {@link file://./../../../dxos/client/logging.proto}
115
+ */
116
+ export interface ControlMetricsResponse {
117
+ /**
118
+ * Options:
119
+ * - proto3_optional = true
120
+ */
121
+ recording?: boolean;
122
+ }
123
+ /**
124
+ * Defined in:
125
+ * {@link file://./../../../dxos/client/logging.proto}
126
+ */
127
+ export interface QueryMetricsRequest {
128
+ /**
129
+ * Options:
130
+ * - proto3_optional = true
131
+ */
132
+ interval?: number;
133
+ }
134
+ /**
135
+ * Defined in:
136
+ * {@link file://./../../../dxos/client/logging.proto}
137
+ */
138
+ export interface QueryMetricsResponse {
139
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
140
+ metrics: Metrics;
141
+ }
142
+ /**
143
+ * Defined in:
144
+ * {@link file://./../../../dxos/client/logging.proto}
145
+ */
146
+ export enum LogLevel {
147
+ NONE = 0,
148
+ TRACE = 5,
149
+ DEBUG = 10,
150
+ INFO = 11,
151
+ WARN = 12,
152
+ ERROR = 13
153
+ }
154
+ /**
155
+ * Defined in:
156
+ * {@link file://./../../../dxos/client/logging.proto}
157
+ */
158
+ export interface QueryLogsRequest {
159
+ filters?: QueryLogsRequest.Filter[];
160
+ /**
161
+ * Options:
162
+ * - proto3_optional = true
163
+ */
164
+ options?: QueryLogsRequest.MatchingOptions;
165
+ }
166
+ export namespace QueryLogsRequest {
167
+ /**
168
+ * Defined in:
169
+ * {@link file://./../../../dxos/client/logging.proto}
170
+ */
171
+ export enum MatchingOptions {
172
+ NONE = 0,
173
+ INCLUSIVE = 1,
174
+ EXPLICIT = 2
175
+ }
176
+ /**
177
+ * Defined in:
178
+ * {@link file://./../../../dxos/client/logging.proto}
179
+ */
180
+ export interface Filter {
181
+ level: LogLevel;
182
+ /**
183
+ * Options:
184
+ * - proto3_optional = true
185
+ */
186
+ pattern?: string;
187
+ }
188
+ }
189
+ /**
190
+ * Defined in:
191
+ * {@link file://./../../../dxos/client/logging.proto}
192
+ */
193
+ export interface LogEntry {
194
+ level: LogLevel;
195
+ message: string;
196
+ /**
197
+ * Options:
198
+ * - proto3_optional = true
199
+ */
200
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
201
+ /**
202
+ * Options:
203
+ * - proto3_optional = true
204
+ */
205
+ meta?: LogEntry.Meta;
206
+ /**
207
+ * Options:
208
+ * - proto3_optional = true
209
+ */
210
+ error?: dxos_error.Error;
211
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
212
+ }
213
+ export namespace LogEntry {
214
+ /**
215
+ * Defined in:
216
+ * {@link file://./../../../dxos/client/logging.proto}
217
+ */
218
+ export interface Meta {
219
+ file: string;
220
+ line: number;
221
+ /**
222
+ * Options:
223
+ * - proto3_optional = true
224
+ */
225
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
226
+ /**
227
+ * Options:
228
+ * - proto3_optional = true
229
+ */
230
+ resourceId?: number;
231
+ }
232
+ }
233
+ /**
234
+ * Defined in:
235
+ * {@link file://./../../../dxos/client/logging.proto}
236
+ */
237
+ export interface LoggingService {
238
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
239
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
240
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
241
+ }
65
242
  /**
66
243
  * Defined in:
67
244
  * {@link file://./../../../dxos/client/services.proto}
@@ -385,22 +562,6 @@ export namespace SpaceMember {
385
562
  ONLINE = 1
386
563
  }
387
564
  }
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
565
  /**
405
566
  * Defined in:
406
567
  * {@link file://./../../../dxos/client/services.proto}
@@ -755,223 +916,55 @@ export interface SpacesService {
755
916
  createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
756
917
  }
757
918
  /**
758
- * Represents the invitation state passed between client and service.
759
- *
760
919
  * Defined in:
761
920
  * {@link file://./../../../dxos/client/services.proto}
762
921
  */
763
- export interface Invitation {
764
- /**
765
- * Local identifier (random).
766
- */
767
- invitationId: string;
768
- /**
769
- * Determines the behavior of the invitation.
770
- */
771
- type: Invitation.Type;
772
- /**
773
- * Kind of access the invitation will grant.
774
- */
775
- kind: Invitation.Kind;
776
- /**
777
- * How the invitation is authenticated.
778
- */
779
- authMethod: Invitation.AuthMethod;
780
- /**
781
- * Swarm rendezvous (random).
782
- */
783
- swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
784
- /**
785
- * Local state.
786
- */
787
- state: Invitation.State;
922
+ export interface AcceptInvitationRequest {
923
+ invitation: Invitation;
788
924
  /**
789
- * Timeout for guest to complete invitation once connected (ms).
790
- *
791
925
  * Options:
792
926
  * - proto3_optional = true
793
927
  */
794
- timeout?: number;
928
+ deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
929
+ }
930
+ /**
931
+ * Defined in:
932
+ * {@link file://./../../../dxos/client/services.proto}
933
+ */
934
+ export interface AuthenticationRequest {
935
+ invitationId: string;
936
+ authCode: string;
937
+ }
938
+ /**
939
+ * Defined in:
940
+ * {@link file://./../../../dxos/client/services.proto}
941
+ */
942
+ export interface CancelInvitationRequest {
943
+ invitationId: string;
944
+ }
945
+ /**
946
+ * Defined in:
947
+ * {@link file://./../../../dxos/client/services.proto}
948
+ */
949
+ export interface InvitationMethod {
950
+ created?: Invitation;
951
+ accepted?: Invitation;
952
+ }
953
+ /**
954
+ * Defined in:
955
+ * {@link file://./../../../dxos/client/services.proto}
956
+ */
957
+ export interface QueryInvitationsResponse {
958
+ action: QueryInvitationsResponse.Action;
959
+ type: QueryInvitationsResponse.Type;
960
+ invitations?: Invitation[];
795
961
  /**
796
- * Guest's identity.
797
- *
798
962
  * Options:
799
963
  * - proto3_optional = true
800
964
  */
801
- identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
802
- /**
803
- * Space to join (only present if kind is SPACE).
804
- *
805
- * Options:
806
- * - proto3_optional = true
807
- */
808
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
809
- /**
810
- * Authentication code created by host (only present if auth_method is SHARED_SECRET).
811
- *
812
- * Options:
813
- * - proto3_optional = true
814
- */
815
- authCode?: string;
816
- /**
817
- * Path or identifier to navigate to after successful authentication.
818
- *
819
- * Options:
820
- * - proto3_optional = true
821
- */
822
- target?: string;
823
- /**
824
- * Host should resume invitation on startup until timeout.
825
- *
826
- * Options:
827
- * - proto3_optional = true
828
- */
829
- persistent?: boolean;
830
- /**
831
- * Options:
832
- * - proto3_optional = true
833
- */
834
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
835
- /**
836
- * Options:
837
- * - proto3_optional = true
838
- */
839
- lifetime?: number;
840
- /**
841
- * Whether an invitation can be used multiple times.
842
- *
843
- * Options:
844
- * - proto3_optional = true
845
- */
846
- multiUse?: boolean;
847
- /**
848
- * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
849
- *
850
- * Options:
851
- * - proto3_optional = true
852
- */
853
- guestKeypair?: AdmissionKeypair;
854
- /**
855
- * Present on Type.DELEGATED invitations.
856
- *
857
- * Options:
858
- * - proto3_optional = true
859
- */
860
- delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
861
- /**
862
- * Role of the admitted member, defaults to ADMIN.
863
- *
864
- * Options:
865
- * - proto3_optional = true
866
- */
867
- role?: dxos_halo_credentials.SpaceMember.Role;
868
- }
869
- export namespace Invitation {
870
- /**
871
- * Defined in:
872
- * {@link file://./../../../dxos/client/services.proto}
873
- */
874
- export enum Type {
875
- INTERACTIVE = 0,
876
- DELEGATED = 1,
877
- MULTIUSE = 2
878
- }
879
- /**
880
- * Defined in:
881
- * {@link file://./../../../dxos/client/services.proto}
882
- */
883
- export enum Kind {
884
- DEVICE = 0,
885
- SPACE = 1
886
- }
887
- /**
888
- * Defined in:
889
- * {@link file://./../../../dxos/client/services.proto}
890
- */
891
- export enum AuthMethod {
892
- NONE = 0,
893
- SHARED_SECRET = 1,
894
- KNOWN_PUBLIC_KEY = 2
895
- }
896
- /**
897
- * Defined in:
898
- * {@link file://./../../../dxos/client/services.proto}
899
- */
900
- export enum State {
901
- INIT = 0,
902
- CONNECTING = 1,
903
- CONNECTED = 2,
904
- READY_FOR_AUTHENTICATION = 3,
905
- AUTHENTICATING = 4,
906
- SUCCESS = 5,
907
- CANCELLED = 6,
908
- TIMEOUT = 7,
909
- ERROR = 8,
910
- EXPIRED = 9
911
- }
912
- }
913
- /**
914
- * Defined in:
915
- * {@link file://./../../../dxos/client/services.proto}
916
- */
917
- export interface AdmissionKeypair {
918
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
919
- /**
920
- * Options:
921
- * - proto3_optional = true
922
- */
923
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
924
- }
925
- /**
926
- * Defined in:
927
- * {@link file://./../../../dxos/client/services.proto}
928
- */
929
- export interface AcceptInvitationRequest {
930
- invitation: Invitation;
931
- /**
932
- * Options:
933
- * - proto3_optional = true
934
- */
935
- deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
936
- }
937
- /**
938
- * Defined in:
939
- * {@link file://./../../../dxos/client/services.proto}
940
- */
941
- export interface AuthenticationRequest {
942
- invitationId: string;
943
- authCode: string;
944
- }
945
- /**
946
- * Defined in:
947
- * {@link file://./../../../dxos/client/services.proto}
948
- */
949
- export interface CancelInvitationRequest {
950
- invitationId: string;
951
- }
952
- /**
953
- * Defined in:
954
- * {@link file://./../../../dxos/client/services.proto}
955
- */
956
- export interface InvitationMethod {
957
- created?: Invitation;
958
- accepted?: Invitation;
959
- }
960
- /**
961
- * Defined in:
962
- * {@link file://./../../../dxos/client/services.proto}
963
- */
964
- export interface QueryInvitationsResponse {
965
- action: QueryInvitationsResponse.Action;
966
- type: QueryInvitationsResponse.Type;
967
- invitations?: Invitation[];
968
- /**
969
- * Options:
970
- * - proto3_optional = true
971
- */
972
- existing?: boolean;
973
- }
974
- export namespace QueryInvitationsResponse {
965
+ existing?: boolean;
966
+ }
967
+ export namespace QueryInvitationsResponse {
975
968
  /**
976
969
  * Defined in:
977
970
  * {@link file://./../../../dxos/client/services.proto}
@@ -1053,176 +1046,186 @@ export interface NetworkService {
1053
1046
  }
1054
1047
  /**
1055
1048
  * Defined in:
1056
- * {@link file://./../../../dxos/client/logging.proto}
1049
+ * {@link file://./../../../dxos/client/invitation.proto}
1057
1050
  */
1058
- export interface Metrics {
1059
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1060
- values?: Metrics.KeyPair[];
1061
- }
1062
- export namespace Metrics {
1051
+ export interface AdmissionKeypair {
1052
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1063
1053
  /**
1064
- * Defined in:
1065
- * {@link file://./../../../dxos/client/logging.proto}
1054
+ * Options:
1055
+ * - proto3_optional = true
1066
1056
  */
1067
- export interface KeyPair {
1068
- /**
1069
- * Options:
1070
- * - proto3_optional = true
1071
- */
1072
- key?: string;
1073
- /**
1074
- * Options:
1075
- * - proto3_optional = true
1076
- */
1077
- value?: dxos_value.Value;
1078
- /**
1079
- * Options:
1080
- * - proto3_optional = true
1081
- */
1082
- stats?: dxos_value.Stats;
1083
- }
1057
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1084
1058
  }
1085
1059
  /**
1060
+ * Runtime state of the space object.
1061
+ *
1086
1062
  * Defined in:
1087
- * {@link file://./../../../dxos/client/logging.proto}
1063
+ * {@link file://./../../../dxos/client/invitation.proto}
1088
1064
  */
1089
- export interface ControlMetricsRequest {
1065
+ export enum SpaceState {
1066
+ INVALID = 0,
1067
+ SPACE_INACTIVE = 2,
1068
+ SPACE_ACTIVE = 6,
1069
+ SPACE_CLOSED = 1,
1070
+ SPACE_CONTROL_ONLY = 7,
1071
+ SPACE_INITIALIZING = 4,
1072
+ SPACE_READY = 3,
1073
+ SPACE_ERROR = 5,
1074
+ SPACE_REQUIRES_MIGRATION = 8
1075
+ }
1076
+ /**
1077
+ * Represents the invitation state passed between client and service.
1078
+ *
1079
+ * Defined in:
1080
+ * {@link file://./../../../dxos/client/invitation.proto}
1081
+ */
1082
+ export interface Invitation {
1083
+ /**
1084
+ * Local identifier (random).
1085
+ */
1086
+ invitationId: string;
1087
+ /**
1088
+ * Determines the behavior of the invitation.
1089
+ */
1090
+ type: Invitation.Type;
1091
+ /**
1092
+ * Kind of access the invitation will grant.
1093
+ */
1094
+ kind: Invitation.Kind;
1095
+ /**
1096
+ * How the invitation is authenticated.
1097
+ */
1098
+ authMethod: Invitation.AuthMethod;
1099
+ /**
1100
+ * Swarm rendezvous (random).
1101
+ */
1102
+ swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1090
1103
  /**
1104
+ * Local state.
1105
+ */
1106
+ state: Invitation.State;
1107
+ /**
1108
+ * Timeout for guest to complete invitation once connected (ms).
1109
+ *
1091
1110
  * Options:
1092
1111
  * - proto3_optional = true
1093
1112
  */
1094
- reset?: boolean;
1113
+ timeout?: number;
1095
1114
  /**
1115
+ * Guest's identity.
1116
+ *
1096
1117
  * Options:
1097
1118
  * - proto3_optional = true
1098
1119
  */
1099
- record?: boolean;
1100
- }
1101
- /**
1102
- * Defined in:
1103
- * {@link file://./../../../dxos/client/logging.proto}
1104
- */
1105
- export interface ControlMetricsResponse {
1120
+ identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1106
1121
  /**
1122
+ * Space to join (only present if kind is SPACE).
1123
+ *
1107
1124
  * Options:
1108
1125
  * - proto3_optional = true
1109
1126
  */
1110
- recording?: boolean;
1111
- }
1112
- /**
1113
- * Defined in:
1114
- * {@link file://./../../../dxos/client/logging.proto}
1115
- */
1116
- export interface QueryMetricsRequest {
1127
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1117
1128
  /**
1129
+ * Authentication code created by host (only present if auth_method is SHARED_SECRET).
1130
+ *
1118
1131
  * Options:
1119
1132
  * - proto3_optional = true
1120
1133
  */
1121
- interval?: number;
1122
- }
1123
- /**
1124
- * Defined in:
1125
- * {@link file://./../../../dxos/client/logging.proto}
1126
- */
1127
- export interface QueryMetricsResponse {
1128
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1129
- metrics: Metrics;
1130
- }
1131
- /**
1132
- * Defined in:
1133
- * {@link file://./../../../dxos/client/logging.proto}
1134
- */
1135
- export enum LogLevel {
1136
- TRACE = 5,
1137
- DEBUG = 10,
1138
- INFO = 11,
1139
- WARN = 12,
1140
- ERROR = 13
1141
- }
1142
- /**
1143
- * Defined in:
1144
- * {@link file://./../../../dxos/client/logging.proto}
1145
- */
1146
- export interface QueryLogsRequest {
1147
- filters?: QueryLogsRequest.Filter[];
1134
+ authCode?: string;
1148
1135
  /**
1136
+ * Path or identifier to navigate to after successful authentication.
1137
+ *
1149
1138
  * Options:
1150
1139
  * - proto3_optional = true
1151
1140
  */
1152
- options?: QueryLogsRequest.MatchingOptions;
1153
- }
1154
- export namespace QueryLogsRequest {
1141
+ target?: string;
1155
1142
  /**
1156
- * Defined in:
1157
- * {@link file://./../../../dxos/client/logging.proto}
1143
+ * Host should resume invitation on startup until timeout.
1144
+ *
1145
+ * Options:
1146
+ * - proto3_optional = true
1158
1147
  */
1159
- export enum MatchingOptions {
1160
- INCLUSIVE = 1,
1161
- EXPLICIT = 2
1162
- }
1148
+ persistent?: boolean;
1163
1149
  /**
1164
- * Defined in:
1165
- * {@link file://./../../../dxos/client/logging.proto}
1150
+ * Options:
1151
+ * - proto3_optional = true
1166
1152
  */
1167
- export interface Filter {
1168
- level: LogLevel;
1169
- /**
1170
- * Options:
1171
- * - proto3_optional = true
1172
- */
1173
- pattern?: string;
1174
- }
1175
- }
1176
- /**
1177
- * Defined in:
1178
- * {@link file://./../../../dxos/client/logging.proto}
1179
- */
1180
- export interface LogEntry {
1181
- level: LogLevel;
1182
- message: string;
1153
+ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1183
1154
  /**
1184
1155
  * Options:
1185
1156
  * - proto3_optional = true
1186
1157
  */
1187
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1158
+ lifetime?: number;
1188
1159
  /**
1160
+ * Whether an invitation can be used multiple times.
1161
+ *
1189
1162
  * Options:
1190
1163
  * - proto3_optional = true
1191
1164
  */
1192
- meta?: LogEntry.Meta;
1165
+ multiUse?: boolean;
1166
+ /**
1167
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
1168
+ *
1169
+ * Options:
1170
+ * - proto3_optional = true
1171
+ */
1172
+ guestKeypair?: AdmissionKeypair;
1193
1173
  /**
1174
+ * Present on Type.DELEGATED invitations.
1175
+ *
1194
1176
  * Options:
1195
1177
  * - proto3_optional = true
1196
1178
  */
1197
- error?: dxos_error.Error;
1198
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1179
+ delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1180
+ /**
1181
+ * Role of the admitted member, defaults to ADMIN.
1182
+ *
1183
+ * Options:
1184
+ * - proto3_optional = true
1185
+ */
1186
+ role?: dxos_halo_credentials.SpaceMember.Role;
1199
1187
  }
1200
- export namespace LogEntry {
1188
+ export namespace Invitation {
1201
1189
  /**
1202
1190
  * Defined in:
1203
- * {@link file://./../../../dxos/client/logging.proto}
1191
+ * {@link file://./../../../dxos/client/invitation.proto}
1204
1192
  */
1205
- export interface Meta {
1206
- file: string;
1207
- line: number;
1208
- /**
1209
- * Options:
1210
- * - proto3_optional = true
1211
- */
1212
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1213
- /**
1214
- * Options:
1215
- * - proto3_optional = true
1216
- */
1217
- resourceId?: number;
1193
+ export enum Type {
1194
+ INTERACTIVE = 0,
1195
+ DELEGATED = 1,
1196
+ MULTIUSE = 2
1197
+ }
1198
+ /**
1199
+ * Defined in:
1200
+ * {@link file://./../../../dxos/client/invitation.proto}
1201
+ */
1202
+ export enum Kind {
1203
+ DEVICE = 0,
1204
+ SPACE = 1
1205
+ }
1206
+ /**
1207
+ * Defined in:
1208
+ * {@link file://./../../../dxos/client/invitation.proto}
1209
+ */
1210
+ export enum AuthMethod {
1211
+ NONE = 0,
1212
+ SHARED_SECRET = 1,
1213
+ KNOWN_PUBLIC_KEY = 2
1214
+ }
1215
+ /**
1216
+ * Defined in:
1217
+ * {@link file://./../../../dxos/client/invitation.proto}
1218
+ */
1219
+ export enum State {
1220
+ INIT = 0,
1221
+ CONNECTING = 1,
1222
+ CONNECTED = 2,
1223
+ READY_FOR_AUTHENTICATION = 3,
1224
+ AUTHENTICATING = 4,
1225
+ SUCCESS = 5,
1226
+ CANCELLED = 6,
1227
+ TIMEOUT = 7,
1228
+ ERROR = 8,
1229
+ EXPIRED = 9
1218
1230
  }
1219
- }
1220
- /**
1221
- * Defined in:
1222
- * {@link file://./../../../dxos/client/logging.proto}
1223
- */
1224
- export interface LoggingService {
1225
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1226
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1227
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1228
1231
  }