protobuf-platform 1.2.456 → 1.2.460

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.
@@ -30,6 +30,7 @@ service Notification {
30
30
  rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateTranslationResponse);
31
31
  //Users
32
32
  rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
33
+ rpc sendSms(SendSmsRequest) returns (SmsSendResponse);
33
34
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
34
35
  rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
35
36
  rpc markUserNotification(NotificationSearchRequest) returns (UserNotificationsCountResponse);
@@ -108,6 +109,26 @@ message SendNotificationRequest {
108
109
  int32 notification_id = 1;
109
110
  repeated int32 user_ids = 2;
110
111
  }
112
+ message SendSmsRequest {
113
+ string phone = 1;
114
+ string message = 2;
115
+ optional string sender = 3;
116
+ optional int32 user_id = 4;
117
+ optional string correlation_id = 5;
118
+ optional string idempotency_key = 6;
119
+ optional string metadata_json = 7;
120
+ }
121
+ message SmsSendResponse {
122
+ bool ok = 1;
123
+ string status = 2;
124
+ optional string provider = 3;
125
+ optional string provider_message_id = 4;
126
+ optional string audit_id = 5;
127
+ optional string error_code = 6;
128
+ optional string reason = 7;
129
+ optional bool retryable = 8;
130
+ optional bool permanent = 9;
131
+ }
111
132
  message NotificationStatusResponse {
112
133
  string status = 1;
113
134
  }
@@ -334,6 +334,28 @@ function deserialize_notification_SendNotificationRequest(buffer_arg) {
334
334
  return notification_pb.SendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
335
335
  }
336
336
 
337
+ function serialize_notification_SendSmsRequest(arg) {
338
+ if (!(arg instanceof notification_pb.SendSmsRequest)) {
339
+ throw new Error('Expected argument of type notification.SendSmsRequest');
340
+ }
341
+ return Buffer.from(arg.serializeBinary());
342
+ }
343
+
344
+ function deserialize_notification_SendSmsRequest(buffer_arg) {
345
+ return notification_pb.SendSmsRequest.deserializeBinary(new Uint8Array(buffer_arg));
346
+ }
347
+
348
+ function serialize_notification_SmsSendResponse(arg) {
349
+ if (!(arg instanceof notification_pb.SmsSendResponse)) {
350
+ throw new Error('Expected argument of type notification.SmsSendResponse');
351
+ }
352
+ return Buffer.from(arg.serializeBinary());
353
+ }
354
+
355
+ function deserialize_notification_SmsSendResponse(buffer_arg) {
356
+ return notification_pb.SmsSendResponse.deserializeBinary(new Uint8Array(buffer_arg));
357
+ }
358
+
337
359
  function serialize_notification_UserNotificationItemsResponse(arg) {
338
360
  if (!(arg instanceof notification_pb.UserNotificationItemsResponse)) {
339
361
  throw new Error('Expected argument of type notification.UserNotificationItemsResponse');
@@ -625,6 +647,17 @@ sendNotificationToUsers: {
625
647
  responseSerialize: serialize_notification_NotificationStatusResponse,
626
648
  responseDeserialize: deserialize_notification_NotificationStatusResponse,
627
649
  },
650
+ sendSms: {
651
+ path: '/notification.Notification/sendSms',
652
+ requestStream: false,
653
+ responseStream: false,
654
+ requestType: notification_pb.SendSmsRequest,
655
+ responseType: notification_pb.SmsSendResponse,
656
+ requestSerialize: serialize_notification_SendSmsRequest,
657
+ requestDeserialize: deserialize_notification_SendSmsRequest,
658
+ responseSerialize: serialize_notification_SmsSendResponse,
659
+ responseDeserialize: deserialize_notification_SmsSendResponse,
660
+ },
628
661
  getNotificationForParticularUser: {
629
662
  path: '/notification.Notification/getNotificationForParticularUser',
630
663
  requestStream: false,