@restorecommerce/protos 6.0.0 → 6.1.1

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 (55) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/echo/echo.proto +4 -4
  3. package/io/restorecommerce/access_control.proto +8 -8
  4. package/io/restorecommerce/address.proto +6 -6
  5. package/io/restorecommerce/auth.proto +3 -3
  6. package/io/restorecommerce/authentication_log.proto +6 -6
  7. package/io/restorecommerce/code.proto +5 -5
  8. package/io/restorecommerce/command.proto +5 -5
  9. package/io/restorecommerce/commandinterface.proto +2 -2
  10. package/io/restorecommerce/contact_point.proto +6 -6
  11. package/io/restorecommerce/contact_point_type.proto +6 -6
  12. package/io/restorecommerce/country.proto +6 -6
  13. package/io/restorecommerce/credential.proto +6 -6
  14. package/io/restorecommerce/currency.proto +10 -10
  15. package/io/restorecommerce/customer.proto +5 -5
  16. package/io/restorecommerce/file.proto +1 -1
  17. package/io/restorecommerce/filter.proto +5 -5
  18. package/io/restorecommerce/fulfillment.proto +14 -15
  19. package/io/restorecommerce/fulfillment_courier.proto +7 -7
  20. package/io/restorecommerce/fulfillment_product.proto +13 -12
  21. package/io/restorecommerce/graph.proto +9 -9
  22. package/io/restorecommerce/image.proto +1 -1
  23. package/io/restorecommerce/invoice.proto +10 -10
  24. package/io/restorecommerce/job.proto +7 -7
  25. package/io/restorecommerce/locale.proto +6 -6
  26. package/io/restorecommerce/location.proto +6 -6
  27. package/io/restorecommerce/manufacturer.proto +6 -6
  28. package/io/restorecommerce/notification.proto +6 -6
  29. package/io/restorecommerce/notification_channel.proto +6 -6
  30. package/io/restorecommerce/oauth.proto +9 -9
  31. package/io/restorecommerce/order.proto +18 -18
  32. package/io/restorecommerce/organization.proto +7 -7
  33. package/io/restorecommerce/ostorage.proto +57 -57
  34. package/io/restorecommerce/payment.proto +15 -15
  35. package/io/restorecommerce/payment_method.proto +6 -6
  36. package/io/restorecommerce/policy.proto +5 -5
  37. package/io/restorecommerce/policy_set.proto +5 -5
  38. package/io/restorecommerce/price_group.proto +6 -6
  39. package/io/restorecommerce/product.proto +8 -8
  40. package/io/restorecommerce/product_category.proto +6 -6
  41. package/io/restorecommerce/product_prototype.proto +6 -6
  42. package/io/restorecommerce/rendering.proto +8 -8
  43. package/io/restorecommerce/resource_base.proto +12 -12
  44. package/io/restorecommerce/role.proto +6 -6
  45. package/io/restorecommerce/rule.proto +5 -5
  46. package/io/restorecommerce/search.proto +1 -1
  47. package/io/restorecommerce/shop.proto +5 -5
  48. package/io/restorecommerce/status.proto +7 -7
  49. package/io/restorecommerce/tax.proto +6 -6
  50. package/io/restorecommerce/tax_type.proto +5 -5
  51. package/io/restorecommerce/timezone.proto +6 -6
  52. package/io/restorecommerce/user.proto +81 -81
  53. package/package.json +2 -2
  54. package/test/test.proto +30 -30
  55. package/google/protobuf/struct.proto +0 -96
@@ -19,19 +19,19 @@ message TraversalRequest {
19
19
  }
20
20
  optional Options opts = 3;
21
21
  optional bool path = 4;
22
- io.restorecommerce.auth.Subject subject = 5;
22
+ optional io.restorecommerce.auth.Subject subject = 5;
23
23
  repeated Filters filters = 6;
24
24
  }
25
25
 
26
26
  message Vertices {
27
- string collection_name = 1;
27
+ optional string collection_name = 1;
28
28
  repeated string start_vertex_ids = 2;
29
29
  }
30
30
 
31
31
  message Collection {
32
- string collection_name = 1;
33
- uint32 limit = 2;
34
- uint32 offset = 3;
32
+ optional string collection_name = 1;
33
+ optional uint32 limit = 2;
34
+ optional uint32 offset = 3;
35
35
  repeated io.restorecommerce.resourcebase.Sort sorts = 4;
36
36
  }
37
37
 
@@ -40,7 +40,7 @@ message Options {
40
40
  repeated string exclude_vertexs = 2; // to exclude vertices
41
41
  repeated string include_edges = 3; // to include vertices
42
42
  repeated string exclude_edges = 4; // to exclude vertices
43
- Direction direction = 5; // either inbound or outbound, defaults to outbound direction
43
+ optional Direction direction = 5; // either inbound or outbound, defaults to outbound direction
44
44
  enum Direction {
45
45
  OUTBOUND = 0;
46
46
  INBOUND = 1;
@@ -86,7 +86,7 @@ message Filter {
86
86
  }
87
87
 
88
88
  message TraversalResponse {
89
- google.protobuf.Any data = 1; // vertices
90
- google.protobuf.Any paths = 2; // traversed vertices paths
91
- io.restorecommerce.status.OperationStatus operation_status = 3;
89
+ optional google.protobuf.Any data = 1; // vertices
90
+ optional google.protobuf.Any paths = 2; // traversed vertices paths
91
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
92
92
  }
@@ -21,5 +21,5 @@ message ImageList {
21
21
  }
22
22
 
23
23
  message Deleted {
24
- string id = 1;
24
+ optional string id = 1;
25
25
  }
@@ -64,33 +64,33 @@ enum PaymentState {
64
64
 
65
65
  message RequestInvoiceNumber {
66
66
  optional string shop_id = 1;
67
- google.protobuf.Any context = 2;
68
- io.restorecommerce.auth.Subject subject = 3;
67
+ optional google.protobuf.Any context = 2;
68
+ optional io.restorecommerce.auth.Subject subject = 3;
69
69
  }
70
70
 
71
71
  message InvoiceNumberResponse {
72
- string invoice_number = 1;
72
+ optional string invoice_number = 1;
73
73
  }
74
74
 
75
75
  message Deleted {
76
- string id = 1;
76
+ optional string id = 1;
77
77
  }
78
78
 
79
79
  message InvoiceList {
80
80
  repeated Invoice items = 1;
81
81
  optional uint32 total_count = 2;
82
- io.restorecommerce.auth.Subject subject = 3;
82
+ optional io.restorecommerce.auth.Subject subject = 3;
83
83
  }
84
84
 
85
85
  message InvoiceListResponse {
86
86
  repeated InvoiceResponse items = 1;
87
- uint32 total_count = 2;
88
- io.restorecommerce.status.OperationStatus operation_status = 3;
87
+ optional uint32 total_count = 2;
88
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
89
89
  }
90
90
 
91
91
  message InvoiceResponse {
92
- Invoice payload = 1;
93
- io.restorecommerce.status.Status status = 2;
92
+ optional Invoice payload = 1;
93
+ optional io.restorecommerce.status.Status status = 2;
94
94
  }
95
95
 
96
96
  message InvoiceId {
@@ -103,7 +103,7 @@ message InvoiceId {
103
103
  message InvoiceIdList {
104
104
  repeated InvoiceId items = 1;
105
105
  optional uint32 total_count = 2;
106
- io.restorecommerce.auth.Subject subject = 3;
106
+ optional io.restorecommerce.auth.Subject subject = 3;
107
107
  }
108
108
 
109
109
  /*
@@ -28,7 +28,7 @@ service JobService {
28
28
  * Send when a job resource got deleted.
29
29
  */
30
30
  message Deleted {
31
- string id = 1;
31
+ optional string id = 1;
32
32
  }
33
33
 
34
34
  /**
@@ -37,18 +37,18 @@ message Deleted {
37
37
  message JobList {
38
38
  repeated Job items = 1;
39
39
  optional uint32 total_count = 2;
40
- io.restorecommerce.auth.Subject subject = 3;
40
+ optional io.restorecommerce.auth.Subject subject = 3;
41
41
  }
42
42
 
43
43
  message JobListResponse {
44
44
  repeated JobResponse items = 1;
45
- uint32 total_count = 2;
46
- io.restorecommerce.status.OperationStatus operation_status = 3;
45
+ optional uint32 total_count = 2;
46
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
47
47
  }
48
48
 
49
49
  message JobResponse {
50
- Job payload = 1;
51
- io.restorecommerce.status.Status status = 2;
50
+ optional Job payload = 1;
51
+ optional io.restorecommerce.status.Status status = 2;
52
52
  }
53
53
 
54
54
  /**
@@ -166,7 +166,7 @@ message JobReadRequest {
166
166
 
167
167
  // Fields selector
168
168
  repeated io.restorecommerce.resourcebase.FieldFilter fields = 3;
169
- io.restorecommerce.auth.Subject subject = 5;
169
+ optional io.restorecommerce.auth.Subject subject = 5;
170
170
  }
171
171
 
172
172
  // filter
@@ -22,24 +22,24 @@ service LocaleService {
22
22
  }
23
23
 
24
24
  message Deleted {
25
- string id = 1;
25
+ optional string id = 1;
26
26
  }
27
27
 
28
28
  message LocaleList {
29
29
  repeated Locale items = 1;
30
30
  optional uint32 total_count = 2;
31
- io.restorecommerce.auth.Subject subject = 3;
31
+ optional io.restorecommerce.auth.Subject subject = 3;
32
32
  }
33
33
 
34
34
  message LocaleListResponse {
35
35
  repeated LocaleResponse items = 1;
36
- uint32 total_count = 2;
37
- io.restorecommerce.status.OperationStatus operation_status = 3;
36
+ optional uint32 total_count = 2;
37
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
38
38
  }
39
39
 
40
40
  message LocaleResponse {
41
- Locale payload = 1;
42
- io.restorecommerce.status.Status status = 2;
41
+ optional Locale payload = 1;
42
+ optional io.restorecommerce.status.Status status = 2;
43
43
  }
44
44
 
45
45
  message Locale {
@@ -27,24 +27,24 @@ service LocationService {
27
27
  }
28
28
 
29
29
  message Deleted {
30
- string id = 1;
30
+ optional string id = 1;
31
31
  }
32
32
 
33
33
  message LocationList {
34
34
  repeated Location items = 1;
35
35
  optional uint32 total_count = 2;
36
- io.restorecommerce.auth.Subject subject = 3;
36
+ optional io.restorecommerce.auth.Subject subject = 3;
37
37
  }
38
38
 
39
39
  message LocationListResponse {
40
40
  repeated LocationResponse items = 1;
41
- uint32 total_count = 2;
42
- io.restorecommerce.status.OperationStatus operation_status = 3;
41
+ optional uint32 total_count = 2;
42
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
43
43
  }
44
44
 
45
45
  message LocationResponse {
46
- Location payload = 1;
47
- io.restorecommerce.status.Status status = 2;
46
+ optional Location payload = 1;
47
+ optional io.restorecommerce.status.Status status = 2;
48
48
  }
49
49
 
50
50
  message Location {
@@ -19,22 +19,22 @@ message Manufacturer {
19
19
  message ManufacturerList {
20
20
  repeated Manufacturer items = 1;
21
21
  optional uint32 total_count = 2;
22
- io.restorecommerce.auth.Subject subject = 3;
22
+ optional io.restorecommerce.auth.Subject subject = 3;
23
23
  }
24
24
 
25
25
  message ManufacturerListResponse {
26
26
  repeated ManufacturerResponse items = 1;
27
- uint32 total_count = 2;
28
- io.restorecommerce.status.OperationStatus operation_status = 3;
27
+ optional uint32 total_count = 2;
28
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
29
29
  }
30
30
 
31
31
  message ManufacturerResponse {
32
- Manufacturer payload = 1;
33
- io.restorecommerce.status.Status status = 2;
32
+ optional Manufacturer payload = 1;
33
+ optional io.restorecommerce.status.Status status = 2;
34
34
  }
35
35
 
36
36
  message Deleted {
37
- string id = 1;
37
+ optional string id = 1;
38
38
  }
39
39
 
40
40
  service ManufacturerService {
@@ -20,24 +20,24 @@ service NotificationService {
20
20
  }
21
21
 
22
22
  message Deleted {
23
- string id = 1;
23
+ optional string id = 1;
24
24
  }
25
25
 
26
26
  message NotificationList {
27
27
  repeated Notification items = 1;
28
28
  optional uint32 total_count = 2;
29
- io.restorecommerce.auth.Subject subject = 3;
29
+ optional io.restorecommerce.auth.Subject subject = 3;
30
30
  }
31
31
 
32
32
  message NotificationListResponse {
33
33
  repeated NotificationResponse items = 1;
34
- uint32 total_count = 2;
35
- io.restorecommerce.status.OperationStatus operation_status = 3;
34
+ optional uint32 total_count = 2;
35
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
36
36
  }
37
37
 
38
38
  message NotificationResponse {
39
- Notification items = 1;
40
- io.restorecommerce.status.Status status = 2;
39
+ optional Notification items = 1;
40
+ optional io.restorecommerce.status.Status status = 2;
41
41
  }
42
42
 
43
43
  message Notification {
@@ -17,24 +17,24 @@ service NotificationChannelService {
17
17
  }
18
18
 
19
19
  message Deleted {
20
- string id = 1;
20
+ optional string id = 1;
21
21
  }
22
22
 
23
23
  message NotificationChannelList {
24
24
  repeated NotificationChannel items = 1;
25
25
  optional uint32 total_count = 2;
26
- io.restorecommerce.auth.Subject subject = 3;
26
+ optional io.restorecommerce.auth.Subject subject = 3;
27
27
  }
28
28
 
29
29
  message NotificationChannelListResponse {
30
30
  repeated NotificationChannelResponse items = 1;
31
- uint32 total_count = 2;
32
- io.restorecommerce.status.OperationStatus operation_status = 3;
31
+ optional uint32 total_count = 2;
32
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
33
33
  }
34
34
 
35
35
  message NotificationChannelResponse {
36
- NotificationChannel items = 1;
37
- io.restorecommerce.status.Status status = 2;
36
+ optional NotificationChannel items = 1;
37
+ optional io.restorecommerce.status.Status status = 2;
38
38
  }
39
39
 
40
40
  message NotificationChannel {
@@ -23,23 +23,23 @@ message GenerateLinksResponse {
23
23
  }
24
24
 
25
25
  message ExchangeCodeRequest {
26
- string service = 1;
27
- string code = 2;
28
- string state = 3;
26
+ optional string service = 1;
27
+ optional string code = 2;
28
+ optional string state = 3;
29
29
  }
30
30
 
31
31
  message ExchangeCodeResponse {
32
- io.restorecommerce.user.UserResponse user = 1;
33
- string email = 2;
34
- io.restorecommerce.auth.Tokens token = 3;
32
+ optional io.restorecommerce.user.UserResponse user = 1;
33
+ optional string email = 2;
34
+ optional io.restorecommerce.auth.Tokens token = 3;
35
35
  }
36
36
 
37
37
  message GetTokenRequest {
38
- io.restorecommerce.auth.Subject subject = 1;
39
- string service = 2;
38
+ optional io.restorecommerce.auth.Subject subject = 1;
39
+ optional string service = 2;
40
40
  }
41
41
 
42
42
  message GetTokenResponse {
43
- io.restorecommerce.status.Status status = 1;
43
+ optional io.restorecommerce.status.Status status = 1;
44
44
  optional string token = 2;
45
45
  }
@@ -44,9 +44,9 @@ service OrderService {
44
44
  rpc TriggerFulfillment (FulfillmentRequestList) returns (io.restorecommerce.status.StatusListResponse);
45
45
 
46
46
  // Requires Invoice Service
47
- rpc CreateInvoice (InvoiceRequestList) returns (io.restorecommerce.invoice.InvoiceListResponse);
47
+ rpc CreateInvoice (OrderingInvoiceRequestList) returns (io.restorecommerce.invoice.InvoiceListResponse);
48
48
  // Requires Invoice Service
49
- rpc TriggerInvoice (InvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
49
+ rpc TriggerInvoice (OrderingInvoiceRequestList) returns (io.restorecommerce.status.StatusListResponse);
50
50
  }
51
51
 
52
52
  enum OrderState {
@@ -138,28 +138,28 @@ message Order {
138
138
 
139
139
  message OrderIdList {
140
140
  repeated string ids = 1;
141
- io.restorecommerce.auth.Subject subject = 2;
141
+ optional io.restorecommerce.auth.Subject subject = 2;
142
142
  }
143
143
 
144
144
  message OrderList {
145
145
  repeated Order items = 1;
146
146
  optional uint32 total_count = 2;
147
- io.restorecommerce.auth.Subject subject = 3;
147
+ optional io.restorecommerce.auth.Subject subject = 3;
148
148
  }
149
149
 
150
150
  message OrderListResponse {
151
151
  repeated OrderResponse items = 1;
152
- uint32 total_count = 2;
153
- io.restorecommerce.status.OperationStatus operation_status = 3;
152
+ optional uint32 total_count = 2;
153
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
154
154
  }
155
155
 
156
156
  message OrderResponse {
157
- Order payload = 1;
158
- io.restorecommerce.status.Status status = 2;
157
+ optional Order payload = 1;
158
+ optional io.restorecommerce.status.Status status = 2;
159
159
  }
160
160
 
161
161
  message Deleted {
162
- string id = 1;
162
+ optional string id = 1;
163
163
  }
164
164
 
165
165
  message FulfillmentRequest {
@@ -169,30 +169,30 @@ message FulfillmentRequest {
169
169
  optional string invoice_number = 4; // @TODO: not used!
170
170
  optional io.restorecommerce.address.ShippingAddress sender_address = 5;
171
171
  repeated string selected_items = 6; // select all on empty
172
- google.protobuf.Any data = 7;
172
+ optional google.protobuf.Any data = 7;
173
173
  }
174
174
 
175
175
  message FulfillmentRequestList {
176
176
  repeated FulfillmentRequest items = 1;
177
177
  optional uint32 total_count = 2;
178
- io.restorecommerce.auth.Subject subject = 3;
178
+ optional io.restorecommerce.auth.Subject subject = 3;
179
179
  }
180
180
 
181
- message InvoiceSection {
181
+ message OrderingInvoiceSection {
182
182
  optional string order_id = 1;
183
183
  repeated string selected_items = 2; // select all on empty
184
184
  optional FulfillmentInvoiceMode fulfillment_mode = 3;
185
- repeated io.restorecommerce.fulfillment.InvoiceSection selected_fulfillments = 4; // includes all on empty
185
+ repeated io.restorecommerce.fulfillment.FulfillmentInvoiceSection selected_fulfillments = 4; // includes all on empty
186
186
  }
187
187
 
188
- message InvoiceRequest {
188
+ message OrderingInvoiceRequest {
189
189
  optional string invoice_number = 1; // if given
190
190
  repeated string payment_hints = 2;
191
- repeated InvoiceSection sections = 3;
191
+ repeated OrderingInvoiceSection sections = 3;
192
192
  }
193
193
 
194
- message InvoiceRequestList {
195
- repeated InvoiceRequest items = 1;
194
+ message OrderingInvoiceRequestList {
195
+ repeated OrderingInvoiceRequest items = 1;
196
196
  optional uint32 total_count = 2;
197
- io.restorecommerce.auth.Subject subject = 3;
197
+ optional io.restorecommerce.auth.Subject subject = 3;
198
198
  }
@@ -27,30 +27,30 @@ service OrganizationService {
27
27
  }
28
28
 
29
29
  message Deleted {
30
- string id = 1;
30
+ optional string id = 1;
31
31
  }
32
32
 
33
33
  message DeleteOrgData {
34
34
  repeated string org_ids = 1;
35
35
  repeated string user_ids = 2;
36
- io.restorecommerce.auth.Subject subject = 3;
36
+ optional io.restorecommerce.auth.Subject subject = 3;
37
37
  }
38
38
 
39
39
  message OrganizationList {
40
40
  repeated Organization items = 1;
41
41
  optional uint32 total_count = 2;
42
- io.restorecommerce.auth.Subject subject = 3;
42
+ optional io.restorecommerce.auth.Subject subject = 3;
43
43
  }
44
44
 
45
45
  message OrganizationListResponse {
46
46
  repeated OrganizationResponse items = 1;
47
- uint32 total_count = 2;
48
- io.restorecommerce.status.OperationStatus operation_status = 3;
47
+ optional uint32 total_count = 2;
48
+ optional io.restorecommerce.status.OperationStatus operation_status = 3;
49
49
  }
50
50
 
51
51
  message OrganizationResponse {
52
- Organization payload = 1;
53
- io.restorecommerce.status.Status status = 2;
52
+ optional Organization payload = 1;
53
+ optional io.restorecommerce.status.Status status = 2;
54
54
  }
55
55
 
56
56
  message Organization {
@@ -26,33 +26,33 @@ service ObjectService {
26
26
 
27
27
  message CopyRequestList {
28
28
  repeated CopyRequestItem items = 1;
29
- io.restorecommerce.auth.Subject subject = 2;
29
+ optional io.restorecommerce.auth.Subject subject = 2;
30
30
  }
31
31
 
32
32
  message CopyResponseList {
33
33
  repeated copyResponsePayloadWithStatus responses = 1;
34
- io.restorecommerce.status.OperationStatus operation_status = 2;
34
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
35
35
  }
36
36
 
37
37
  message copyResponsePayloadWithStatus {
38
- CopyResponseItem payload = 1;
39
- io.restorecommerce.status.Status status = 2;
38
+ optional CopyResponseItem payload = 1;
39
+ optional io.restorecommerce.status.Status status = 2;
40
40
  }
41
41
 
42
42
  message CopyRequestItem {
43
- string bucket = 1;
44
- string copySource = 2;
45
- string key = 3;
43
+ optional string bucket = 1;
44
+ optional string copySource = 2;
45
+ optional string key = 3;
46
46
  optional io.restorecommerce.meta.Meta meta = 4;
47
47
  optional Options options = 5;
48
48
  }
49
49
 
50
50
  message CopyResponseItem {
51
- string bucket = 1;
52
- string copySource = 2;
53
- string key = 3;
54
- io.restorecommerce.meta.Meta meta = 4;
55
- Options options = 5;
51
+ optional string bucket = 1;
52
+ optional string copySource = 2;
53
+ optional string key = 3;
54
+ optional io.restorecommerce.meta.Meta meta = 4;
55
+ optional Options options = 5;
56
56
  }
57
57
 
58
58
  message Options {
@@ -68,86 +68,86 @@ message Options {
68
68
  }
69
69
 
70
70
  message Object {
71
- string key = 1;
72
- string bucket = 2;
71
+ optional string key = 1;
72
+ optional string bucket = 2;
73
73
  optional bytes object = 3;
74
74
  optional io.restorecommerce.meta.Meta meta = 4;
75
75
  optional string url = 5;
76
76
  optional Options options = 6;
77
- io.restorecommerce.auth.Subject subject = 7;
77
+ optional io.restorecommerce.auth.Subject subject = 7;
78
78
  }
79
79
 
80
80
  message ObjectResponse {
81
- ObjectResponsePayloadWithStatus response = 1;
82
- io.restorecommerce.status.OperationStatus operation_status = 2;
81
+ optional ObjectResponsePayloadWithStatus response = 1;
82
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
83
83
  }
84
84
 
85
85
  message ObjectResponsePayloadWithStatus {
86
- ObjectResponsePayload payload = 1;
87
- io.restorecommerce.status.Status status = 3;
86
+ optional ObjectResponsePayload payload = 1;
87
+ optional io.restorecommerce.status.Status status = 3;
88
88
  }
89
89
 
90
90
  message ObjectResponsePayload {
91
- string key = 1;
92
- string bucket = 2;
93
- bytes object = 3;
94
- io.restorecommerce.meta.Meta meta = 4;
95
- string url = 5;
96
- Options options = 6;
91
+ optional string key = 1;
92
+ optional string bucket = 2;
93
+ optional bytes object = 3;
94
+ optional io.restorecommerce.meta.Meta meta = 4;
95
+ optional string url = 5;
96
+ optional Options options = 6;
97
97
  }
98
98
 
99
99
  message GetRequest {
100
- string key = 1;
101
- string bucket = 2;
100
+ optional string key = 1;
101
+ optional string bucket = 2;
102
102
  optional bool download = 3;
103
- io.restorecommerce.auth.Subject subject = 4;
103
+ optional io.restorecommerce.auth.Subject subject = 4;
104
104
  }
105
105
 
106
106
  message ListResponse {
107
107
  repeated ObjectsDataWithPayloadStatus responses = 1;
108
- io.restorecommerce.status.OperationStatus operation_status = 2;
108
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
109
109
  }
110
110
 
111
111
  message ObjectsDataWithPayloadStatus {
112
- ObjectData payload = 1;
113
- io.restorecommerce.status.Status status = 2;
112
+ optional ObjectData payload = 1;
113
+ optional io.restorecommerce.status.Status status = 2;
114
114
  }
115
115
 
116
116
  message ObjectData {
117
- string object_name = 1;
118
- string url = 2;
119
- io.restorecommerce.meta.Meta meta = 3;
117
+ optional string object_name = 1;
118
+ optional string url = 2;
119
+ optional io.restorecommerce.meta.Meta meta = 3;
120
120
  }
121
121
 
122
122
  message DeleteRequest {
123
- string key = 1;
124
- string bucket = 2;
125
- io.restorecommerce.auth.Subject subject = 3;
123
+ optional string key = 1;
124
+ optional string bucket = 2;
125
+ optional io.restorecommerce.auth.Subject subject = 3;
126
126
  }
127
127
 
128
128
  message PutResponse {
129
- PutResponseWithPayloadStatus response = 1;
130
- io.restorecommerce.status.OperationStatus operation_status = 2;
129
+ optional PutResponseWithPayloadStatus response = 1;
130
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
131
131
  }
132
132
 
133
133
  message PutResponseWithPayloadStatus {
134
- Response payload = 1;
135
- io.restorecommerce.status.Status status = 2;
134
+ optional Response payload = 1;
135
+ optional io.restorecommerce.status.Status status = 2;
136
136
  }
137
137
 
138
138
  message Response {
139
- string url = 1;
140
- string bucket = 2 ;
141
- string key = 3;
142
- io.restorecommerce.meta.Meta meta = 4;
139
+ optional string url = 1;
140
+ optional string bucket = 2 ;
141
+ optional string key = 3;
142
+ optional io.restorecommerce.meta.Meta meta = 4;
143
143
  repeated io.restorecommerce.attribute.Attribute tags = 5;
144
- int32 length = 6; // file size of uploaded object
144
+ optional int32 length = 6; // file size of uploaded object
145
145
  }
146
146
 
147
147
  message ListRequest {
148
- string bucket = 1;
148
+ optional string bucket = 1;
149
149
  optional io.restorecommerce.filter.FilterOp filters = 2; /// Filter based on fieldName|operation, value|list
150
- io.restorecommerce.auth.Subject subject = 3;
150
+ optional io.restorecommerce.auth.Subject subject = 3;
151
151
  optional int32 max_keys = 4;
152
152
  optional string prefix = 5;
153
153
  }
@@ -163,7 +163,7 @@ message OstorageMessage {
163
163
 
164
164
  message MoveRequestList {
165
165
  repeated MoveRequestItem items = 1;
166
- io.restorecommerce.auth.Subject subject = 2;
166
+ optional io.restorecommerce.auth.Subject subject = 2;
167
167
  }
168
168
 
169
169
  message MoveRequestItem {
@@ -176,18 +176,18 @@ message MoveRequestItem {
176
176
 
177
177
  message MoveResponseList {
178
178
  repeated MoveResponsePayloadWithStatus responses = 1;
179
- io.restorecommerce.status.OperationStatus operation_status = 2;
179
+ optional io.restorecommerce.status.OperationStatus operation_status = 2;
180
180
  }
181
181
 
182
182
  message MoveResponsePayloadWithStatus {
183
- MoveResponseItem payload = 1;
184
- io.restorecommerce.status.Status status = 2;
183
+ optional MoveResponseItem payload = 1;
184
+ optional io.restorecommerce.status.Status status = 2;
185
185
  }
186
186
 
187
187
  message MoveResponseItem {
188
- string bucket = 1;
189
- string sourceObject = 2;
190
- string key = 3;
191
- io.restorecommerce.meta.Meta meta = 4;
192
- Options options = 5;
188
+ optional string bucket = 1;
189
+ optional string sourceObject = 2;
190
+ optional string key = 3;
191
+ optional io.restorecommerce.meta.Meta meta = 4;
192
+ optional Options options = 5;
193
193
  }