@restorecommerce/protos 6.8.11 → 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 CHANGED
@@ -3,6 +3,28 @@
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
+
17
+ ## [6.8.12](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.11...@restorecommerce/protos@6.8.12) (2024-11-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **protos:** rename Packing --> Fulfillment ([9f87591](https://github.com/restorecommerce/libs/commit/9f87591bd8549028ab57cf3aaf5bc1c26bd12f9b))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [6.8.11](https://github.com/restorecommerce/libs/compare/@restorecommerce/protos@6.8.10...@restorecommerce/protos@6.8.11) (2024-09-23)
7
29
 
8
30
 
@@ -24,7 +24,7 @@ service FulfillmentProductService {
24
24
  rpc Read (io.restorecommerce.resourcebase.ReadRequest) returns (FulfillmentProductListResponse) {
25
25
  option (io.restorecommerce.options.is_query) = true;
26
26
  };
27
- rpc Find (PackingSolutionQueryList) returns (PackingSolutionListResponse) {
27
+ rpc Find (FulfillmentSolutionQueryList) returns (FulfillmentSolutionListResponse) {
28
28
  option (io.restorecommerce.options.is_query) = true;
29
29
  };
30
30
  rpc Create (FulfillmentProductList) returns (FulfillmentProductListResponse);
@@ -34,11 +34,12 @@ service FulfillmentProductService {
34
34
  }
35
35
 
36
36
  message Preferences {
37
- repeated io.restorecommerce.attribute.Attribute couriers = 1; // ID, name or type
38
- repeated io.restorecommerce.attribute.Attribute options = 2;
37
+ optional bool partial_filfillment_allowed = 1;
38
+ repeated string couriers = 2; // ID of courier
39
+ repeated io.restorecommerce.attribute.Attribute options = 3; // Courier specific options such as C02 neutral delivery etc.
39
40
  }
40
41
 
41
- message PackingSolutionQuery {
42
+ message FulfillmentSolutionQuery {
42
43
  optional string customer_id = 1 [
43
44
  (io.restorecommerce.options.resolver) = {
44
45
  target_type: ".io.restorecommerce.customer.Customer",
@@ -64,8 +65,8 @@ message PackingSolutionQuery {
64
65
  optional io.restorecommerce.reference.Reference reference = 7;
65
66
  }
66
67
 
67
- message PackingSolutionQueryList {
68
- repeated PackingSolutionQuery items = 1;
68
+ message FulfillmentSolutionQueryList {
69
+ repeated FulfillmentSolutionQuery items = 1;
69
70
  optional uint32 total_count = 2;
70
71
  optional io.restorecommerce.auth.Subject subject = 3;
71
72
  }
@@ -126,7 +127,7 @@ message FulfillmentProductListResponse {
126
127
  optional io.restorecommerce.status.OperationStatus operation_status = 3;
127
128
  }
128
129
 
129
- message PackingSolution {
130
+ message FulfillmentSolution {
130
131
  repeated io.restorecommerce.amount.Amount amounts = 1;
131
132
  optional double compactness = 2;
132
133
  optional double homogeneity = 3;
@@ -134,14 +135,14 @@ message PackingSolution {
134
135
  repeated io.restorecommerce.fulfillment.Parcel parcels = 5;
135
136
  }
136
137
 
137
- message PackingSolutionResponse {
138
+ message FulfillmentSolutionResponse {
138
139
  optional io.restorecommerce.reference.Reference reference = 1;
139
- repeated PackingSolution solutions = 2;
140
+ repeated FulfillmentSolution solutions = 2;
140
141
  optional io.restorecommerce.status.Status status = 3;
141
142
  }
142
143
 
143
- message PackingSolutionListResponse {
144
- repeated PackingSolutionResponse items = 1;
144
+ message FulfillmentSolutionListResponse {
145
+ repeated FulfillmentSolutionResponse items = 1;
145
146
  optional uint32 total_count = 2;
146
147
  optional io.restorecommerce.status.OperationStatus operation_status = 3;
147
148
  }
@@ -40,7 +40,7 @@ service OrderService {
40
40
  rpc Delete (io.restorecommerce.resourcebase.DeleteRequest) returns (io.restorecommerce.resourcebase.DeleteResponse);
41
41
 
42
42
  // Requires Fulfillment Service
43
- rpc QueryPackingSolution (FulfillmentRequestList) returns (io.restorecommerce.fulfillment_product.PackingSolutionListResponse);
43
+ rpc QueryFulfillmentSolution (FulfillmentRequestList) returns (io.restorecommerce.fulfillment_product.FulfillmentSolutionListResponse);
44
44
  // Requires Fulfillment Service
45
45
  rpc CreateFulfillment (FulfillmentRequestList) returns (io.restorecommerce.fulfillment.FulfillmentListResponse);
46
46
  // Requires Fulfillment Service
@@ -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 (UserResponse);
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.8.11",
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": "2dc8edfc5c7828a1ffe536ca0bf3426adcf1a57b"
18
+ "gitHead": "a8e0e2e2417dd3cb4045286494fb1f58115a41ba"
19
19
  }