@dxos/protocols 0.4.10-main.3e35a2f → 0.4.10-main.403e461

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 (31) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +20 -1
  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 +1 -1
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
  6. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +1 -0
  8. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  9. package/dist/cjs/src/proto/gen/index.d.ts +1 -0
  10. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/index.js +1 -1
  12. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  13. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  14. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +20 -1
  15. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  16. package/dist/esm/src/proto/gen/dxos/client/services.js +1 -1
  17. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  18. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
  19. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  20. package/dist/esm/src/proto/gen/dxos/halo/invitations.js +1 -0
  21. package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  22. package/dist/esm/src/proto/gen/index.d.ts +1 -0
  23. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  24. package/dist/esm/src/proto/gen/index.js +1 -1
  25. package/dist/esm/src/proto/gen/index.js.map +1 -1
  26. package/package.json +5 -5
  27. package/src/proto/dxos/client/services.proto +9 -1
  28. package/src/proto/dxos/halo/invitations.proto +9 -1
  29. package/src/proto/gen/dxos/client/services.ts +20 -1
  30. package/src/proto/gen/dxos/halo/invitations.ts +23 -2
  31. package/src/proto/gen/index.ts +2 -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;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,21sGAA21sG,CAAC,CAAC,CAAC;AACp5sG,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;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,g7tGAAg7tG,CAAC,CAAC,CAAC;AACz+tG,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.10-main.3e35a2f",
3
+ "version": "0.4.10-main.403e461",
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.10-main.3e35a2f",
37
- "@dxos/keys": "0.4.10-main.3e35a2f",
38
- "@dxos/invariant": "0.4.10-main.3e35a2f",
39
- "@dxos/timeframe": "0.4.10-main.3e35a2f"
36
+ "@dxos/codec-protobuf": "0.4.10-main.403e461",
37
+ "@dxos/keys": "0.4.10-main.403e461",
38
+ "@dxos/timeframe": "0.4.10-main.403e461",
39
+ "@dxos/invariant": "0.4.10-main.403e461"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -406,7 +406,7 @@ message Invitation {
406
406
  /// Requires both to be online to complete key exchange.
407
407
  INTERACTIVE = 0;
408
408
  /// Invitation can be accepted by any valid peer.
409
- OFFLINE = 1;
409
+ DELEGATED = 1;
410
410
  /**
411
411
  * Multi-use interactive invitations.
412
412
  * @deprecated use multiUse flag with type=interactive instead.
@@ -489,6 +489,14 @@ message Invitation {
489
489
 
490
490
  /// Whether an invitation can be used multiple times.
491
491
  optional bool multi_use = 15;
492
+
493
+ /// Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
494
+ optional AdmissionKeypair guest_keypair = 16;
495
+ }
496
+
497
+ message AdmissionKeypair {
498
+ dxos.keys.PublicKey public_key = 1;
499
+ optional dxos.keys.PrivateKey private_key = 2;
492
500
  }
493
501
 
494
502
  message AcceptInvitationRequest {
@@ -33,12 +33,19 @@ message IntroductionRequest {
33
33
  message IntroductionResponse {
34
34
  dxos.client.services.Invitation.AuthMethod auth_method = 1;
35
35
 
36
+ /// Present when auth_method is KNOWN_PUBLIC_KEY.
37
+ optional bytes challenge = 2;
38
+
36
39
  /// Only present for testing invitation types.
37
40
  optional dxos.keys.PublicKey space_key = 100;
38
41
  }
39
42
 
40
43
  message AuthenticationRequest {
41
- string auth_code = 1;
44
+ /// Present when auth_method is SHARED_SECRET.
45
+ optional string auth_code = 1;
46
+
47
+ /// Present when auth_method is KNOWN_PUBLIC_KEY.
48
+ optional bytes signed_challenge = 2;
42
49
  }
43
50
 
44
51
  message AuthenticationResponse {
@@ -47,6 +54,7 @@ message AuthenticationResponse {
47
54
  INVALID_OTP = 1;
48
55
  INVALID_OPT_ATTEMPTS = 2;
49
56
  INTERNAL_ERROR = 3;
57
+ INVALID_SIGNATURE = 4;
50
58
  }
51
59
 
52
60
  optional Status status = 1;
@@ -932,6 +932,13 @@ export interface Invitation {
932
932
  * - proto3_optional = true
933
933
  */
934
934
  multiUse?: boolean;
935
+ /**
936
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
937
+ *
938
+ * Options:
939
+ * - proto3_optional = true
940
+ */
941
+ guestKeypair?: AdmissionKeypair;
935
942
  }
936
943
  export namespace Invitation {
937
944
  /**
@@ -940,7 +947,7 @@ export namespace Invitation {
940
947
  */
941
948
  export enum Type {
942
949
  INTERACTIVE = 0,
943
- OFFLINE = 1,
950
+ DELEGATED = 1,
944
951
  MULTIUSE = 2
945
952
  }
946
953
  /**
@@ -977,6 +984,18 @@ export namespace Invitation {
977
984
  EXPIRED = 9
978
985
  }
979
986
  }
987
+ /**
988
+ * Defined in:
989
+ * {@link file://./../../../dxos/client/services.proto}
990
+ */
991
+ export interface AdmissionKeypair {
992
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
993
+ /**
994
+ * Options:
995
+ * - proto3_optional = true
996
+ */
997
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
998
+ }
980
999
  /**
981
1000
  * Defined in:
982
1001
  * {@link file://./../../../dxos/client/services.proto}
@@ -104,6 +104,13 @@ export interface IntroductionRequest {
104
104
  */
105
105
  export interface IntroductionResponse {
106
106
  authMethod: dxos_client_services.Invitation.AuthMethod;
107
+ /**
108
+ * Present when auth_method is KNOWN_PUBLIC_KEY.
109
+ *
110
+ * Options:
111
+ * - proto3_optional = true
112
+ */
113
+ challenge?: Uint8Array;
107
114
  /**
108
115
  * Only present for testing invitation types.
109
116
  *
@@ -117,7 +124,20 @@ export interface IntroductionResponse {
117
124
  * {@link file://./../../../dxos/halo/invitations.proto}
118
125
  */
119
126
  export interface AuthenticationRequest {
120
- authCode: string;
127
+ /**
128
+ * Present when auth_method is SHARED_SECRET.
129
+ *
130
+ * Options:
131
+ * - proto3_optional = true
132
+ */
133
+ authCode?: string;
134
+ /**
135
+ * Present when auth_method is KNOWN_PUBLIC_KEY.
136
+ *
137
+ * Options:
138
+ * - proto3_optional = true
139
+ */
140
+ signedChallenge?: Uint8Array;
121
141
  }
122
142
  /**
123
143
  * Defined in:
@@ -139,7 +159,8 @@ export namespace AuthenticationResponse {
139
159
  OK = 0,
140
160
  INVALID_OTP = 1,
141
161
  INVALID_OPT_ATTEMPTS = 2,
142
- INTERNAL_ERROR = 3
162
+ INTERNAL_ERROR = 3,
163
+ INVALID_SIGNATURE = 4
143
164
  }
144
165
  }
145
166
  /**