@@ -7,6 +7,7 @@ syntax = "proto3";
77
88package dapr.proto.runtime.v1 ;
99
10+ import "google/protobuf/any.proto" ;
1011import "google/protobuf/empty.proto" ;
1112import "dapr/proto/common/v1/common.proto" ;
1213
@@ -44,12 +45,27 @@ service Dapr {
4445 // Gets secrets from secret stores.
4546 rpc GetSecret (GetSecretRequest ) returns (GetSecretResponse ) {}
4647
48+ // Gets a bulk of secrets
49+ rpc GetBulkSecret (GetBulkSecretRequest ) returns (GetBulkSecretResponse ) {}
50+
4751 // Register an actor timer.
4852 rpc RegisterActorTimer (RegisterActorTimerRequest ) returns (google.protobuf.Empty ) {}
4953
5054 // Unregister an actor timer.
5155 rpc UnregisterActorTimer (UnregisterActorTimerRequest ) returns (google.protobuf.Empty ) {}
5256
57+ // Register an actor reminder.
58+ rpc RegisterActorReminder (RegisterActorReminderRequest ) returns (google.protobuf.Empty ) {}
59+
60+ // Unregister an actor reminder.
61+ rpc UnregisterActorReminder (UnregisterActorReminderRequest ) returns (google.protobuf.Empty ) {}
62+
63+ // Gets the state for a specific actor.
64+ rpc GetActorState (GetActorStateRequest ) returns (GetActorStateResponse ) {}
65+
66+ // Executes state transactions for a specified actor
67+ rpc ExecuteActorStateTransaction (ExecuteActorStateTransactionRequest ) returns (google.protobuf.Empty ) {}
68+
5369 // InvokeActor calls a method on an actor.
5470 rpc InvokeActor (InvokeActorRequest ) returns (InvokeActorResponse ) {}
5571}
@@ -114,6 +130,9 @@ message BulkStateItem {
114130
115131 // The error that was returned from the state store in case of a failed get operation.
116132 string error = 4 ;
133+
134+ // The metadata which will be sent to app.
135+ map <string ,string > metadata = 5 ;
117136}
118137
119138// GetStateResponse is the response conveying the state value and etag.
@@ -124,6 +143,9 @@ message GetStateResponse {
124143 // The entity tag which represents the specific version of data.
125144 // ETag format is defined by the corresponding data store.
126145 string etag = 2 ;
146+
147+ // The metadata which will be sent to app.
148+ map <string ,string > metadata = 3 ;
127149}
128150
129151// DeleteStateRequest is the message to delete key-value states in the specific state store.
@@ -165,6 +187,15 @@ message PublishEventRequest {
165187
166188 // The data which will be published to topic.
167189 bytes data = 3 ;
190+
191+ // The content type for the data (optional).
192+ string data_content_type = 4 ;
193+
194+ // The metadata passing to pub components
195+ //
196+ // metadata property:
197+ // - key : the key of the message.
198+ map <string ,string > metadata = 5 ;
168199}
169200
170201// InvokeBindingRequest is the message to send data to output bindings
@@ -216,6 +247,22 @@ message GetSecretResponse {
216247 map <string , string > data = 1 ;
217248}
218249
250+ // GetBulkSecretRequest is the message to get the secrets from secret store.
251+ message GetBulkSecretRequest {
252+ // The name of secret store.
253+ string store_name = 1 ;
254+
255+ // The metadata which will be sent to secret store components.
256+ map <string ,string > metadata = 2 ;
257+ }
258+
259+ // GetBulkSecretResponse is the response message to convey the requested secret.
260+ message GetBulkSecretResponse {
261+ // data hold the secret values. Some secret store, such as kubernetes secret
262+ // store, can save multiple secrets for single secret key.
263+ map <string , string > data = 1 ;
264+ }
265+
219266// TransactionalStateOperation is the message to execute a specified operation with a key-value pair.
220267message TransactionalStateOperation {
221268 // The type of operation to be executed
@@ -255,6 +302,49 @@ message UnregisterActorTimerRequest {
255302 string name = 3 ;
256303}
257304
305+ // RegisterActorReminderRequest is the message to register a reminder for an actor of a given type and id.
306+ message RegisterActorReminderRequest {
307+ string actor_type = 1 ;
308+ string actor_id = 2 ;
309+ string name = 3 ;
310+ string due_time = 4 ;
311+ string period = 5 ;
312+ bytes data = 6 ;
313+ }
314+
315+ // UnregisterActorReminderRequest is the message to unregister an actor reminder.
316+ message UnregisterActorReminderRequest {
317+ string actor_type = 1 ;
318+ string actor_id = 2 ;
319+ string name = 3 ;
320+ }
321+
322+ // GetActorStateRequest is the message to get key-value states from specific actor.
323+ message GetActorStateRequest {
324+ string actor_type = 1 ;
325+ string actor_id = 2 ;
326+ string key = 3 ;
327+ }
328+
329+ // GetActorStateResponse is the response conveying the actor's state value.
330+ message GetActorStateResponse {
331+ bytes data = 1 ;
332+ }
333+
334+ // ExecuteActorStateTransactionRequest is the message to execute multiple operations on a specified actor.
335+ message ExecuteActorStateTransactionRequest {
336+ string actor_type = 1 ;
337+ string actor_id = 2 ;
338+ repeated TransactionalActorStateOperation operations = 3 ;
339+ }
340+
341+ // TransactionalAcorStateOperation is the message to execute a specified operation with a key-value pair.
342+ message TransactionalActorStateOperation {
343+ string operationType = 1 ;
344+ string key = 2 ;
345+ google.protobuf.Any value = 3 ;
346+ }
347+
258348// InvokeActorRequest is the message to call an actor.
259349message InvokeActorRequest {
260350 string actor_type = 1 ;
0 commit comments