@restorecommerce/protos 6.10.3 → 6.10.5

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 CHANGED
@@ -3,6 +3,29 @@
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.10.5](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.10.4...@restorecommerce/protos@6.10.5) (2025-01-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add mfa status endpoint for users ([5583877](https://github.com/restorecommerce/libs/commit/5583877eac9150b0768ca00f8978bf2a13c1b074))
12
+
13
+
14
+
15
+
16
+
17
+ ## [6.10.4](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.10.3...@restorecommerce/protos@6.10.4) (2025-01-10)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **protos:** add backup and reset for totp ([5a680c9](https://github.com/restorecommerce/libs/commit/5a680c930140e4f06f57038848f512844f3e2603))
23
+ * **proto:** template more use-cases ([e17251f](https://github.com/restorecommerce/libs/commit/e17251fcbe21d04842e0638721683ee90c2ecfff))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [6.10.3](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.10.2...@restorecommerce/protos@6.10.3) (2024-11-20)
7
30
 
8
31
 
@@ -63,9 +63,9 @@ message ContactPoint {
63
63
  (io.restorecommerce.options.resolver) = {
64
64
  target_type: ".io.restorecommerce.contact_point_type.ContactPointType",
65
65
  target_service: "master_data",
66
- target_sub_service: "contact_point_type",
66
+ target_sub_service: "contact_point_types",
67
67
  target_method: "Read",
68
- field_name: "contactPointType",
68
+ field_name: "contactPointTypes",
69
69
  }
70
70
  ];
71
71
  optional string telephone = 8;
@@ -27,10 +27,14 @@ service TemplateService {
27
27
  enum TemplateUseCase {
28
28
  MISCELLANEOUS = 0;
29
29
  INVOICE_PDF = 1;
30
- INVOICE_EMAIL = 2;
31
- INVITATION_EMAIL = 3;
32
- REGISTRATION_EMAIL = 4;
33
- CHANGE_PASSWORD_EMAIL = 5;
30
+ INVOICE_EMAIL_BODY = 2;
31
+ INVOICE_EMAIL_SUBJECT = 3;
32
+ INVITATION_EMAIL_BODY = 4;
33
+ INVITATION_EMAIL_SUBJECT = 5;
34
+ REGISTRATION_EMAIL_BODY = 6;
35
+ REGISTRATION_EMAIL_SUBJECT = 7;
36
+ CHANGE_PASSWORD_EMAIL_BODY = 8;
37
+ CHANGE_PASSWORD_EMAIL_SUBJECT = 9;
34
38
  }
35
39
 
36
40
  message Deleted {
@@ -55,8 +59,8 @@ message TemplateResponse {
55
59
  }
56
60
 
57
61
  message Localization {
58
- repeated string local_codes = 1; // e.g. en, en_US, en_UK, ...
59
- optional io.restorecommerce.file.File l10n = 2; // JSON expected
62
+ repeated string locales = 1; // locales suported by this file e.g. en, en_US, en_UK, ...
63
+ optional io.restorecommerce.file.File l10n = 2; // JSON or CSV
60
64
  }
61
65
 
62
66
  message Template {
@@ -67,10 +71,10 @@ message Template {
67
71
  optional TemplateUseCase use_case = 5;
68
72
  optional uint32 ordinal = 6; // sort number
69
73
  optional string section = 7; // e.g. header, body, footer
70
- optional io.restorecommerce.file.File body = 8; // e.g. text/html
71
- optional io.restorecommerce.file.File layout = 9;
74
+ repeated io.restorecommerce.file.File bodies = 8; // e.g. text/html
75
+ repeated io.restorecommerce.file.File layouts = 9;
72
76
  repeated io.restorecommerce.file.File styles = 10; // e.g. application/css
73
77
  repeated io.restorecommerce.image.Image images = 11;
74
- repeated Localization localization = 12;
78
+ repeated Localization localizations = 12;
75
79
  repeated io.restorecommerce.attribute.Attribute attributes = 14;
76
80
  }
@@ -54,6 +54,9 @@ service UserService {
54
54
  rpc SetupTOTP (SetupTOTPRequest) returns (SetupTOTPResponse);
55
55
  rpc CompleteTOTPSetup (CompleteTOTPSetupRequest) returns (io.restorecommerce.status.OperationStatusObj);
56
56
  rpc ExchangeTOTP (ExchangeTOTPRequest) returns (UserResponse);
57
+ rpc CreateBackupTOTPCodes (CreateBackupTOTPCodesRequest) returns (CreateBackupTOTPCodesResponse);
58
+ rpc ResetTOTP (ResetTOTPRequest) returns (io.restorecommerce.status.OperationStatusObj);
59
+ rpc MfaStatus (MfaStatusRequest) returns (MfaStatusResponse);
57
60
  rpc GetUnauthenticatedSubjectTokenForTenant(TenantRequest) returns (TenantResponse);
58
61
  }
59
62
 
@@ -94,6 +97,32 @@ message ExchangeTOTPRequest {
94
97
  optional string totp_session_token = 3;
95
98
  }
96
99
 
100
+ message CreateBackupTOTPCodesRequest {
101
+ optional string identifier = 1;
102
+ optional io.restorecommerce.auth.Subject subject = 2;
103
+ }
104
+
105
+ message CreateBackupTOTPCodesResponse {
106
+ repeated string backup_codes = 1;
107
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
108
+ }
109
+
110
+ message ResetTOTPRequest {
111
+ optional string identifier = 1;
112
+ optional io.restorecommerce.auth.Subject subject = 2;
113
+ }
114
+
115
+ message MfaStatusRequest {
116
+ optional string identifier = 1;
117
+ optional io.restorecommerce.auth.Subject subject = 2;
118
+ }
119
+
120
+ message MfaStatusResponse {
121
+ optional bool has_totp = 1;
122
+ optional bool has_backup_codes = 2;
123
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
124
+ }
125
+
97
126
  message TenantRequest {
98
127
  optional string domain = 1;
99
128
  }
@@ -350,6 +379,7 @@ message User {
350
379
  optional string totp_secret_processing = 28; /// TOTP Secret before being confirmed
351
380
  repeated string totp_session_tokens = 29; /// TOTP Login session tokens
352
381
  repeated string password_hash_history = 30; // List of historical password hashes
382
+ repeated string totp_recovery_codes = 31; // List of TOTP recovery codes
353
383
  }
354
384
 
355
385
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/protos",
3
- "version": "6.10.3",
3
+ "version": "6.10.5",
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": "07b0c45a94df93d89cdb04db2b0c893d6160adfa"
18
+ "gitHead": "c2f8a284289d5b1d5ec0eef82e0986192329a8cb"
19
19
  }