@restorecommerce/protos 6.8.12 → 6.9.0
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/CHANGELOG.md +11 -0
- package/io/restorecommerce/user.proto +35 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.9.0](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.12...@restorecommerce/protos@6.9.0) (2024-11-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **protos:** add totp to users ([ce20a36](https://github.com/restorecommerce/libs/commit/ce20a36775b0a82aaa14e5762c97fe3c19d09ab3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.8.12](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.11...@restorecommerce/protos@6.8.12) (2024-11-04)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -40,7 +40,7 @@ service UserService {
|
|
|
40
40
|
rpc ConfirmPasswordChange (ConfirmPasswordChangeRequest) returns (io.restorecommerce.status.OperationStatusObj);
|
|
41
41
|
rpc ConfirmEmailChange (ConfirmEmailChangeRequest) returns (io.restorecommerce.status.OperationStatusObj);
|
|
42
42
|
rpc Unregister (UnregisterRequest) returns (io.restorecommerce.status.OperationStatusObj);
|
|
43
|
-
rpc Login (LoginRequest) returns (
|
|
43
|
+
rpc Login (LoginRequest) returns (LoginResponse);
|
|
44
44
|
rpc FindByRole (FindByRoleRequest) returns (UserListResponse) {
|
|
45
45
|
option (io.restorecommerce.options.is_query) = true;
|
|
46
46
|
};
|
|
@@ -51,6 +51,9 @@ service UserService {
|
|
|
51
51
|
option (io.restorecommerce.options.is_query) = true;
|
|
52
52
|
};
|
|
53
53
|
rpc SendActivationEmail (SendActivationEmailRequest) returns (io.restorecommerce.status.OperationStatusObj);
|
|
54
|
+
rpc SetupTOTP (SetupTOTPRequest) returns (SetupTOTPResponse);
|
|
55
|
+
rpc CompleteTOTPSetup (CompleteTOTPSetupRequest) returns (io.restorecommerce.status.OperationStatusObj);
|
|
56
|
+
rpc ExchangeTOTP (ExchangeTOTPRequest) returns (UserResponse);
|
|
54
57
|
rpc GetUnauthenticatedSubjectTokenForTenant(TenantRequest) returns (TenantResponse);
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -64,6 +67,33 @@ message LoginRequest {
|
|
|
64
67
|
optional string token = 3;
|
|
65
68
|
}
|
|
66
69
|
|
|
70
|
+
message LoginResponse {
|
|
71
|
+
optional User payload = 1;
|
|
72
|
+
optional io.restorecommerce.status.Status status = 2;
|
|
73
|
+
optional string totp_session_token = 3;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message SetupTOTPRequest {
|
|
77
|
+
optional string identifier = 1;
|
|
78
|
+
optional io.restorecommerce.auth.Subject subject = 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message SetupTOTPResponse {
|
|
82
|
+
optional string totp_secret = 1;
|
|
83
|
+
optional io.restorecommerce.status.OperationStatus operation_status = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message CompleteTOTPSetupRequest {
|
|
87
|
+
optional string code = 1;
|
|
88
|
+
optional io.restorecommerce.auth.Subject subject = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message ExchangeTOTPRequest {
|
|
92
|
+
optional string code = 1;
|
|
93
|
+
optional io.restorecommerce.auth.Subject subject = 2;
|
|
94
|
+
optional string totp_session_token = 3;
|
|
95
|
+
}
|
|
96
|
+
|
|
67
97
|
message TenantRequest {
|
|
68
98
|
optional string domain = 1;
|
|
69
99
|
}
|
|
@@ -116,7 +146,7 @@ message RegisterRequest {
|
|
|
116
146
|
optional UserType user_type = 12;
|
|
117
147
|
optional string captcha_code = 13;
|
|
118
148
|
optional google.protobuf.Any data = 14; // data
|
|
119
|
-
|
|
149
|
+
}
|
|
120
150
|
|
|
121
151
|
message ActivateRequest {
|
|
122
152
|
optional string identifier = 1; // user name or email
|
|
@@ -316,6 +346,9 @@ message User {
|
|
|
316
346
|
optional google.protobuf.Timestamp last_access = 24; // When the user has last been used
|
|
317
347
|
repeated io.restorecommerce.attribute.Attribute properties = 25; // additional properties
|
|
318
348
|
optional google.protobuf.Any data = 26; // additional data
|
|
349
|
+
optional string totp_secret = 27; /// TOTP Secret
|
|
350
|
+
optional string totp_secret_processing = 28; /// TOTP Secret before being confirmed
|
|
351
|
+
repeated string totp_session_tokens = 29; /// TOTP Login session tokens
|
|
319
352
|
}
|
|
320
353
|
|
|
321
354
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/protos",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"description": "Protobuf descriptors for Restorecommerce services",
|
|
5
5
|
"author": "n-fuse GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"protobufs"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "a8e0e2e2417dd3cb4045286494fb1f58115a41ba"
|
|
19
19
|
}
|