@@ -7,6 +7,7 @@ syntax = "proto3";
7
7
8
8
package dapr.proto.runtime.v1 ;
9
9
10
+ import "google/protobuf/any.proto" ;
10
11
import "google/protobuf/empty.proto" ;
11
12
import "dapr/proto/common/v1/common.proto" ;
12
13
@@ -44,12 +45,27 @@ service Dapr {
44
45
// Gets secrets from secret stores.
45
46
rpc GetSecret (GetSecretRequest ) returns (GetSecretResponse ) {}
46
47
48
+ // Gets a bulk of secrets
49
+ rpc GetBulkSecret (GetBulkSecretRequest ) returns (GetBulkSecretResponse ) {}
50
+
47
51
// Register an actor timer.
48
52
rpc RegisterActorTimer (RegisterActorTimerRequest ) returns (google .protobuf .Empty ) {}
49
53
50
54
// Unregister an actor timer.
51
55
rpc UnregisterActorTimer (UnregisterActorTimerRequest ) returns (google .protobuf .Empty ) {}
52
56
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
+
53
69
// InvokeActor calls a method on an actor.
54
70
rpc InvokeActor (InvokeActorRequest ) returns (InvokeActorResponse ) {}
55
71
}
@@ -114,6 +130,9 @@ message BulkStateItem {
114
130
115
131
// The error that was returned from the state store in case of a failed get operation.
116
132
string error = 4 ;
133
+
134
+ // The metadata which will be sent to app.
135
+ map <string ,string > metadata = 5 ;
117
136
}
118
137
119
138
// GetStateResponse is the response conveying the state value and etag.
@@ -124,6 +143,9 @@ message GetStateResponse {
124
143
// The entity tag which represents the specific version of data.
125
144
// ETag format is defined by the corresponding data store.
126
145
string etag = 2 ;
146
+
147
+ // The metadata which will be sent to app.
148
+ map <string ,string > metadata = 3 ;
127
149
}
128
150
129
151
// DeleteStateRequest is the message to delete key-value states in the specific state store.
@@ -165,6 +187,15 @@ message PublishEventRequest {
165
187
166
188
// The data which will be published to topic.
167
189
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 ;
168
199
}
169
200
170
201
// InvokeBindingRequest is the message to send data to output bindings
@@ -216,6 +247,22 @@ message GetSecretResponse {
216
247
map <string , string > data = 1 ;
217
248
}
218
249
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
+
219
266
// TransactionalStateOperation is the message to execute a specified operation with a key-value pair.
220
267
message TransactionalStateOperation {
221
268
// The type of operation to be executed
@@ -255,6 +302,49 @@ message UnregisterActorTimerRequest {
255
302
string name = 3 ;
256
303
}
257
304
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
+
258
348
// InvokeActorRequest is the message to call an actor.
259
349
message InvokeActorRequest {
260
350
string actor_type = 1 ;
0 commit comments