@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6

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 (197) hide show
  1. package/google/api/annotations_pb.ts +33 -0
  2. package/google/api/field_behavior.ts +95 -0
  3. package/google/api/field_behavior_pb.ts +139 -0
  4. package/google/api/http.ts +695 -0
  5. package/google/api/http_pb.ts +547 -0
  6. package/google/api/httpbody.ts +159 -0
  7. package/google/api/httpbody_pb.ts +122 -0
  8. package/google/protobuf/any.ts +322 -0
  9. package/google/protobuf/descriptor.ts +3475 -0
  10. package/google/protobuf/duration.ts +231 -0
  11. package/google/protobuf/struct.ts +484 -0
  12. package/google/protobuf/timestamp.ts +290 -0
  13. package/google/protobuf/wrappers.ts +752 -0
  14. package/package.json +47 -0
  15. package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
  16. package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
  17. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
  18. package/raystack/assets/index.ts +29 -0
  19. package/raystack/assets/v1beta1/bucket.ts +362 -0
  20. package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
  21. package/raystack/assets/v1beta1/dashboard.ts +426 -0
  22. package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
  23. package/raystack/assets/v1beta1/event.ts +105 -0
  24. package/raystack/assets/v1beta1/event_pb.ts +70 -0
  25. package/raystack/assets/v1beta1/group.ts +223 -0
  26. package/raystack/assets/v1beta1/group_pb.ts +149 -0
  27. package/raystack/assets/v1beta1/job.ts +147 -0
  28. package/raystack/assets/v1beta1/job_pb.ts +100 -0
  29. package/raystack/assets/v1beta1/lineage.ts +90 -0
  30. package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
  31. package/raystack/assets/v1beta1/ownership.ts +179 -0
  32. package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
  33. package/raystack/assets/v1beta1/preview.ts +87 -0
  34. package/raystack/assets/v1beta1/preview_pb.ts +58 -0
  35. package/raystack/assets/v1beta1/properties.ts +116 -0
  36. package/raystack/assets/v1beta1/properties_pb.ts +63 -0
  37. package/raystack/assets/v1beta1/resource.ts +149 -0
  38. package/raystack/assets/v1beta1/resource_pb.ts +96 -0
  39. package/raystack/assets/v1beta1/schema.ts +421 -0
  40. package/raystack/assets/v1beta1/schema_pb.ts +262 -0
  41. package/raystack/assets/v1beta1/table.ts +408 -0
  42. package/raystack/assets/v1beta1/table_pb.ts +266 -0
  43. package/raystack/assets/v1beta1/timestamp.ts +158 -0
  44. package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
  45. package/raystack/assets/v1beta1/topic.ts +253 -0
  46. package/raystack/assets/v1beta1/topic_pb.ts +171 -0
  47. package/raystack/assets/v1beta1/user.ts +451 -0
  48. package/raystack/assets/v1beta1/user_pb.ts +292 -0
  49. package/raystack/assets/v1beta2/application.ts +125 -0
  50. package/raystack/assets/v1beta2/application_pb.ts +79 -0
  51. package/raystack/assets/v1beta2/asset.ts +269 -0
  52. package/raystack/assets/v1beta2/asset_pb.ts +157 -0
  53. package/raystack/assets/v1beta2/bucket.ts +341 -0
  54. package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
  55. package/raystack/assets/v1beta2/common.ts +392 -0
  56. package/raystack/assets/v1beta2/common_pb.ts +258 -0
  57. package/raystack/assets/v1beta2/dashboard.ts +393 -0
  58. package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
  59. package/raystack/assets/v1beta2/experiment.ts +274 -0
  60. package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
  61. package/raystack/assets/v1beta2/feature_table.ts +387 -0
  62. package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
  63. package/raystack/assets/v1beta2/group.ts +178 -0
  64. package/raystack/assets/v1beta2/group_pb.ts +118 -0
  65. package/raystack/assets/v1beta2/job.ts +99 -0
  66. package/raystack/assets/v1beta2/job_pb.ts +65 -0
  67. package/raystack/assets/v1beta2/metric.ts +163 -0
  68. package/raystack/assets/v1beta2/metric_pb.ts +105 -0
  69. package/raystack/assets/v1beta2/model.ts +519 -0
  70. package/raystack/assets/v1beta2/model_pb.ts +322 -0
  71. package/raystack/assets/v1beta2/table.ts +663 -0
  72. package/raystack/assets/v1beta2/table_pb.ts +409 -0
  73. package/raystack/assets/v1beta2/topic.ts +275 -0
  74. package/raystack/assets/v1beta2/topic_pb.ts +181 -0
  75. package/raystack/assets/v1beta2/user.ts +433 -0
  76. package/raystack/assets/v1beta2/user_pb.ts +277 -0
  77. package/raystack/common/index.ts +3 -0
  78. package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
  79. package/raystack/common/v1/service.client.ts +37 -0
  80. package/raystack/common/v1/service.ts +245 -0
  81. package/raystack/common/v1/service_connect.ts +26 -0
  82. package/raystack/common/v1/service_pb.ts +149 -0
  83. package/raystack/compass/index.ts +3 -0
  84. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
  85. package/raystack/compass/v1beta1/service.client.ts +594 -0
  86. package/raystack/compass/v1beta1/service.ts +8169 -0
  87. package/raystack/compass/v1beta1/service_connect.ts +407 -0
  88. package/raystack/compass/v1beta1/service_pb.ts +4975 -0
  89. package/raystack/entropy/index.ts +6 -0
  90. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
  91. package/raystack/entropy/v1beta1/module.client.ts +89 -0
  92. package/raystack/entropy/v1beta1/module.ts +692 -0
  93. package/raystack/entropy/v1beta1/module_connect.ts +62 -0
  94. package/raystack/entropy/v1beta1/module_pb.ts +445 -0
  95. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
  96. package/raystack/entropy/v1beta1/resource.client.ts +129 -0
  97. package/raystack/entropy/v1beta1/resource.ts +1817 -0
  98. package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
  99. package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
  100. package/raystack/frontier/index.ts +7 -0
  101. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
  102. package/raystack/frontier/v1beta1/admin.client.ts +849 -0
  103. package/raystack/frontier/v1beta1/admin.ts +9007 -0
  104. package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
  105. package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
  106. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
  107. package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
  108. package/raystack/frontier/v1beta1/frontier.ts +23706 -0
  109. package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
  110. package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
  111. package/raystack/frontier/v1beta1/models.ts +7433 -0
  112. package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
  113. package/raystack/guardian/index.ts +3 -0
  114. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
  115. package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
  116. package/raystack/guardian/v1beta1/guardian.ts +9688 -0
  117. package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
  118. package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
  119. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
  120. package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
  121. package/raystack/optimus/core/v1beta1/backup.ts +708 -0
  122. package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
  123. package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
  124. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
  125. package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
  126. package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
  127. package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
  128. package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
  129. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
  130. package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
  131. package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
  132. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
  133. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
  134. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
  135. package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
  136. package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
  137. package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
  138. package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
  139. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
  140. package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
  141. package/raystack/optimus/core/v1beta1/project.ts +520 -0
  142. package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
  143. package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
  144. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
  145. package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
  146. package/raystack/optimus/core/v1beta1/replay.ts +881 -0
  147. package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
  148. package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
  149. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
  150. package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
  151. package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
  152. package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
  153. package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
  154. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
  155. package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
  156. package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
  157. package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
  158. package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
  159. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
  160. package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
  161. package/raystack/optimus/core/v1beta1/secret.ts +619 -0
  162. package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
  163. package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
  164. package/raystack/optimus/core/v1beta1/status.ts +113 -0
  165. package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
  166. package/raystack/optimus/integration/v1beta1/event.ts +531 -0
  167. package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
  168. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
  169. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
  170. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
  171. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
  172. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
  173. package/raystack/predator/index.ts +2 -0
  174. package/raystack/predator/v1beta1/metrics_log.ts +457 -0
  175. package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
  176. package/raystack/predator/v1beta1/result_log.ts +390 -0
  177. package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
  178. package/raystack/raccoon/index.ts +3 -0
  179. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
  180. package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
  181. package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
  182. package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
  183. package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
  184. package/raystack/siren/index.ts +3 -0
  185. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
  186. package/raystack/siren/v1beta1/siren.client.ts +479 -0
  187. package/raystack/siren/v1beta1/siren.ts +6507 -0
  188. package/raystack/siren/v1beta1/siren_connect.ts +332 -0
  189. package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
  190. package/raystack/stencil/index.ts +3 -0
  191. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
  192. package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
  193. package/raystack/stencil/v1beta1/stencil.ts +2716 -0
  194. package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
  195. package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
  196. package/validate/validate.ts +4130 -0
  197. package/validate/validate_pb.ts +2621 -0
@@ -0,0 +1,3853 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/siren/v1beta1/siren.proto (package raystack.siren.v1beta1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message raystack.siren.v1beta1.Provider
11
+ */
12
+ export class Provider extends Message<Provider> {
13
+ /**
14
+ * @generated from field: uint64 id = 1;
15
+ */
16
+ id = protoInt64.zero;
17
+
18
+ /**
19
+ * @generated from field: string host = 2;
20
+ */
21
+ host = "";
22
+
23
+ /**
24
+ * @generated from field: string urn = 3;
25
+ */
26
+ urn = "";
27
+
28
+ /**
29
+ * @generated from field: string name = 4;
30
+ */
31
+ name = "";
32
+
33
+ /**
34
+ * @generated from field: string type = 5;
35
+ */
36
+ type = "";
37
+
38
+ /**
39
+ * @generated from field: google.protobuf.Struct credentials = 6;
40
+ */
41
+ credentials?: Struct;
42
+
43
+ /**
44
+ * @generated from field: map<string, string> labels = 7;
45
+ */
46
+ labels: { [key: string]: string } = {};
47
+
48
+ /**
49
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
50
+ */
51
+ createdAt?: Timestamp;
52
+
53
+ /**
54
+ * @generated from field: google.protobuf.Timestamp updated_at = 9;
55
+ */
56
+ updatedAt?: Timestamp;
57
+
58
+ constructor(data?: PartialMessage<Provider>) {
59
+ super();
60
+ proto3.util.initPartial(data, this);
61
+ }
62
+
63
+ static readonly runtime: typeof proto3 = proto3;
64
+ static readonly typeName = "raystack.siren.v1beta1.Provider";
65
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
66
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
67
+ { no: 2, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
68
+ { no: 3, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
69
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
70
+ { no: 5, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ { no: 6, name: "credentials", kind: "message", T: Struct },
72
+ { no: 7, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
73
+ { no: 8, name: "created_at", kind: "message", T: Timestamp },
74
+ { no: 9, name: "updated_at", kind: "message", T: Timestamp },
75
+ ]);
76
+
77
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Provider {
78
+ return new Provider().fromBinary(bytes, options);
79
+ }
80
+
81
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Provider {
82
+ return new Provider().fromJson(jsonValue, options);
83
+ }
84
+
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Provider {
86
+ return new Provider().fromJsonString(jsonString, options);
87
+ }
88
+
89
+ static equals(a: Provider | PlainMessage<Provider> | undefined, b: Provider | PlainMessage<Provider> | undefined): boolean {
90
+ return proto3.util.equals(Provider, a, b);
91
+ }
92
+ }
93
+
94
+ /**
95
+ * @generated from message raystack.siren.v1beta1.ListProvidersRequest
96
+ */
97
+ export class ListProvidersRequest extends Message<ListProvidersRequest> {
98
+ /**
99
+ * @generated from field: string urn = 1;
100
+ */
101
+ urn = "";
102
+
103
+ /**
104
+ * @generated from field: string type = 2;
105
+ */
106
+ type = "";
107
+
108
+ constructor(data?: PartialMessage<ListProvidersRequest>) {
109
+ super();
110
+ proto3.util.initPartial(data, this);
111
+ }
112
+
113
+ static readonly runtime: typeof proto3 = proto3;
114
+ static readonly typeName = "raystack.siren.v1beta1.ListProvidersRequest";
115
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
116
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
117
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
118
+ ]);
119
+
120
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListProvidersRequest {
121
+ return new ListProvidersRequest().fromBinary(bytes, options);
122
+ }
123
+
124
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListProvidersRequest {
125
+ return new ListProvidersRequest().fromJson(jsonValue, options);
126
+ }
127
+
128
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListProvidersRequest {
129
+ return new ListProvidersRequest().fromJsonString(jsonString, options);
130
+ }
131
+
132
+ static equals(a: ListProvidersRequest | PlainMessage<ListProvidersRequest> | undefined, b: ListProvidersRequest | PlainMessage<ListProvidersRequest> | undefined): boolean {
133
+ return proto3.util.equals(ListProvidersRequest, a, b);
134
+ }
135
+ }
136
+
137
+ /**
138
+ * @generated from message raystack.siren.v1beta1.ListProvidersResponse
139
+ */
140
+ export class ListProvidersResponse extends Message<ListProvidersResponse> {
141
+ /**
142
+ * @generated from field: repeated raystack.siren.v1beta1.Provider providers = 1;
143
+ */
144
+ providers: Provider[] = [];
145
+
146
+ constructor(data?: PartialMessage<ListProvidersResponse>) {
147
+ super();
148
+ proto3.util.initPartial(data, this);
149
+ }
150
+
151
+ static readonly runtime: typeof proto3 = proto3;
152
+ static readonly typeName = "raystack.siren.v1beta1.ListProvidersResponse";
153
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
154
+ { no: 1, name: "providers", kind: "message", T: Provider, repeated: true },
155
+ ]);
156
+
157
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListProvidersResponse {
158
+ return new ListProvidersResponse().fromBinary(bytes, options);
159
+ }
160
+
161
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListProvidersResponse {
162
+ return new ListProvidersResponse().fromJson(jsonValue, options);
163
+ }
164
+
165
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListProvidersResponse {
166
+ return new ListProvidersResponse().fromJsonString(jsonString, options);
167
+ }
168
+
169
+ static equals(a: ListProvidersResponse | PlainMessage<ListProvidersResponse> | undefined, b: ListProvidersResponse | PlainMessage<ListProvidersResponse> | undefined): boolean {
170
+ return proto3.util.equals(ListProvidersResponse, a, b);
171
+ }
172
+ }
173
+
174
+ /**
175
+ * @generated from message raystack.siren.v1beta1.CreateProviderRequest
176
+ */
177
+ export class CreateProviderRequest extends Message<CreateProviderRequest> {
178
+ /**
179
+ * @generated from field: string host = 1;
180
+ */
181
+ host = "";
182
+
183
+ /**
184
+ * @generated from field: string urn = 2;
185
+ */
186
+ urn = "";
187
+
188
+ /**
189
+ * @generated from field: string name = 3;
190
+ */
191
+ name = "";
192
+
193
+ /**
194
+ * @generated from field: string type = 4;
195
+ */
196
+ type = "";
197
+
198
+ /**
199
+ * @generated from field: google.protobuf.Struct credentials = 5;
200
+ */
201
+ credentials?: Struct;
202
+
203
+ /**
204
+ * @generated from field: map<string, string> labels = 6;
205
+ */
206
+ labels: { [key: string]: string } = {};
207
+
208
+ constructor(data?: PartialMessage<CreateProviderRequest>) {
209
+ super();
210
+ proto3.util.initPartial(data, this);
211
+ }
212
+
213
+ static readonly runtime: typeof proto3 = proto3;
214
+ static readonly typeName = "raystack.siren.v1beta1.CreateProviderRequest";
215
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
216
+ { no: 1, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
217
+ { no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
218
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
219
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
220
+ { no: 5, name: "credentials", kind: "message", T: Struct },
221
+ { no: 6, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
222
+ ]);
223
+
224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProviderRequest {
225
+ return new CreateProviderRequest().fromBinary(bytes, options);
226
+ }
227
+
228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateProviderRequest {
229
+ return new CreateProviderRequest().fromJson(jsonValue, options);
230
+ }
231
+
232
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateProviderRequest {
233
+ return new CreateProviderRequest().fromJsonString(jsonString, options);
234
+ }
235
+
236
+ static equals(a: CreateProviderRequest | PlainMessage<CreateProviderRequest> | undefined, b: CreateProviderRequest | PlainMessage<CreateProviderRequest> | undefined): boolean {
237
+ return proto3.util.equals(CreateProviderRequest, a, b);
238
+ }
239
+ }
240
+
241
+ /**
242
+ * @generated from message raystack.siren.v1beta1.CreateProviderResponse
243
+ */
244
+ export class CreateProviderResponse extends Message<CreateProviderResponse> {
245
+ /**
246
+ * @generated from field: uint64 id = 1;
247
+ */
248
+ id = protoInt64.zero;
249
+
250
+ constructor(data?: PartialMessage<CreateProviderResponse>) {
251
+ super();
252
+ proto3.util.initPartial(data, this);
253
+ }
254
+
255
+ static readonly runtime: typeof proto3 = proto3;
256
+ static readonly typeName = "raystack.siren.v1beta1.CreateProviderResponse";
257
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
258
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
259
+ ]);
260
+
261
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProviderResponse {
262
+ return new CreateProviderResponse().fromBinary(bytes, options);
263
+ }
264
+
265
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateProviderResponse {
266
+ return new CreateProviderResponse().fromJson(jsonValue, options);
267
+ }
268
+
269
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateProviderResponse {
270
+ return new CreateProviderResponse().fromJsonString(jsonString, options);
271
+ }
272
+
273
+ static equals(a: CreateProviderResponse | PlainMessage<CreateProviderResponse> | undefined, b: CreateProviderResponse | PlainMessage<CreateProviderResponse> | undefined): boolean {
274
+ return proto3.util.equals(CreateProviderResponse, a, b);
275
+ }
276
+ }
277
+
278
+ /**
279
+ * @generated from message raystack.siren.v1beta1.GetProviderRequest
280
+ */
281
+ export class GetProviderRequest extends Message<GetProviderRequest> {
282
+ /**
283
+ * @generated from field: uint64 id = 1;
284
+ */
285
+ id = protoInt64.zero;
286
+
287
+ constructor(data?: PartialMessage<GetProviderRequest>) {
288
+ super();
289
+ proto3.util.initPartial(data, this);
290
+ }
291
+
292
+ static readonly runtime: typeof proto3 = proto3;
293
+ static readonly typeName = "raystack.siren.v1beta1.GetProviderRequest";
294
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
295
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
296
+ ]);
297
+
298
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProviderRequest {
299
+ return new GetProviderRequest().fromBinary(bytes, options);
300
+ }
301
+
302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProviderRequest {
303
+ return new GetProviderRequest().fromJson(jsonValue, options);
304
+ }
305
+
306
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProviderRequest {
307
+ return new GetProviderRequest().fromJsonString(jsonString, options);
308
+ }
309
+
310
+ static equals(a: GetProviderRequest | PlainMessage<GetProviderRequest> | undefined, b: GetProviderRequest | PlainMessage<GetProviderRequest> | undefined): boolean {
311
+ return proto3.util.equals(GetProviderRequest, a, b);
312
+ }
313
+ }
314
+
315
+ /**
316
+ * @generated from message raystack.siren.v1beta1.GetProviderResponse
317
+ */
318
+ export class GetProviderResponse extends Message<GetProviderResponse> {
319
+ /**
320
+ * @generated from field: raystack.siren.v1beta1.Provider provider = 1;
321
+ */
322
+ provider?: Provider;
323
+
324
+ constructor(data?: PartialMessage<GetProviderResponse>) {
325
+ super();
326
+ proto3.util.initPartial(data, this);
327
+ }
328
+
329
+ static readonly runtime: typeof proto3 = proto3;
330
+ static readonly typeName = "raystack.siren.v1beta1.GetProviderResponse";
331
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
332
+ { no: 1, name: "provider", kind: "message", T: Provider },
333
+ ]);
334
+
335
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProviderResponse {
336
+ return new GetProviderResponse().fromBinary(bytes, options);
337
+ }
338
+
339
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProviderResponse {
340
+ return new GetProviderResponse().fromJson(jsonValue, options);
341
+ }
342
+
343
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProviderResponse {
344
+ return new GetProviderResponse().fromJsonString(jsonString, options);
345
+ }
346
+
347
+ static equals(a: GetProviderResponse | PlainMessage<GetProviderResponse> | undefined, b: GetProviderResponse | PlainMessage<GetProviderResponse> | undefined): boolean {
348
+ return proto3.util.equals(GetProviderResponse, a, b);
349
+ }
350
+ }
351
+
352
+ /**
353
+ * @generated from message raystack.siren.v1beta1.UpdateProviderRequest
354
+ */
355
+ export class UpdateProviderRequest extends Message<UpdateProviderRequest> {
356
+ /**
357
+ * @generated from field: uint64 id = 1;
358
+ */
359
+ id = protoInt64.zero;
360
+
361
+ /**
362
+ * @generated from field: string host = 2;
363
+ */
364
+ host = "";
365
+
366
+ /**
367
+ * @generated from field: string name = 3;
368
+ */
369
+ name = "";
370
+
371
+ /**
372
+ * @generated from field: string type = 4;
373
+ */
374
+ type = "";
375
+
376
+ /**
377
+ * @generated from field: google.protobuf.Struct credentials = 5;
378
+ */
379
+ credentials?: Struct;
380
+
381
+ /**
382
+ * @generated from field: map<string, string> labels = 6;
383
+ */
384
+ labels: { [key: string]: string } = {};
385
+
386
+ constructor(data?: PartialMessage<UpdateProviderRequest>) {
387
+ super();
388
+ proto3.util.initPartial(data, this);
389
+ }
390
+
391
+ static readonly runtime: typeof proto3 = proto3;
392
+ static readonly typeName = "raystack.siren.v1beta1.UpdateProviderRequest";
393
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
394
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
395
+ { no: 2, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
396
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
397
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
398
+ { no: 5, name: "credentials", kind: "message", T: Struct },
399
+ { no: 6, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
400
+ ]);
401
+
402
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateProviderRequest {
403
+ return new UpdateProviderRequest().fromBinary(bytes, options);
404
+ }
405
+
406
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateProviderRequest {
407
+ return new UpdateProviderRequest().fromJson(jsonValue, options);
408
+ }
409
+
410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateProviderRequest {
411
+ return new UpdateProviderRequest().fromJsonString(jsonString, options);
412
+ }
413
+
414
+ static equals(a: UpdateProviderRequest | PlainMessage<UpdateProviderRequest> | undefined, b: UpdateProviderRequest | PlainMessage<UpdateProviderRequest> | undefined): boolean {
415
+ return proto3.util.equals(UpdateProviderRequest, a, b);
416
+ }
417
+ }
418
+
419
+ /**
420
+ * @generated from message raystack.siren.v1beta1.UpdateProviderResponse
421
+ */
422
+ export class UpdateProviderResponse extends Message<UpdateProviderResponse> {
423
+ /**
424
+ * @generated from field: uint64 id = 1;
425
+ */
426
+ id = protoInt64.zero;
427
+
428
+ constructor(data?: PartialMessage<UpdateProviderResponse>) {
429
+ super();
430
+ proto3.util.initPartial(data, this);
431
+ }
432
+
433
+ static readonly runtime: typeof proto3 = proto3;
434
+ static readonly typeName = "raystack.siren.v1beta1.UpdateProviderResponse";
435
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
436
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
437
+ ]);
438
+
439
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateProviderResponse {
440
+ return new UpdateProviderResponse().fromBinary(bytes, options);
441
+ }
442
+
443
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateProviderResponse {
444
+ return new UpdateProviderResponse().fromJson(jsonValue, options);
445
+ }
446
+
447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateProviderResponse {
448
+ return new UpdateProviderResponse().fromJsonString(jsonString, options);
449
+ }
450
+
451
+ static equals(a: UpdateProviderResponse | PlainMessage<UpdateProviderResponse> | undefined, b: UpdateProviderResponse | PlainMessage<UpdateProviderResponse> | undefined): boolean {
452
+ return proto3.util.equals(UpdateProviderResponse, a, b);
453
+ }
454
+ }
455
+
456
+ /**
457
+ * @generated from message raystack.siren.v1beta1.DeleteProviderRequest
458
+ */
459
+ export class DeleteProviderRequest extends Message<DeleteProviderRequest> {
460
+ /**
461
+ * @generated from field: uint64 id = 1;
462
+ */
463
+ id = protoInt64.zero;
464
+
465
+ constructor(data?: PartialMessage<DeleteProviderRequest>) {
466
+ super();
467
+ proto3.util.initPartial(data, this);
468
+ }
469
+
470
+ static readonly runtime: typeof proto3 = proto3;
471
+ static readonly typeName = "raystack.siren.v1beta1.DeleteProviderRequest";
472
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
473
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
474
+ ]);
475
+
476
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteProviderRequest {
477
+ return new DeleteProviderRequest().fromBinary(bytes, options);
478
+ }
479
+
480
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteProviderRequest {
481
+ return new DeleteProviderRequest().fromJson(jsonValue, options);
482
+ }
483
+
484
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteProviderRequest {
485
+ return new DeleteProviderRequest().fromJsonString(jsonString, options);
486
+ }
487
+
488
+ static equals(a: DeleteProviderRequest | PlainMessage<DeleteProviderRequest> | undefined, b: DeleteProviderRequest | PlainMessage<DeleteProviderRequest> | undefined): boolean {
489
+ return proto3.util.equals(DeleteProviderRequest, a, b);
490
+ }
491
+ }
492
+
493
+ /**
494
+ * @generated from message raystack.siren.v1beta1.DeleteProviderResponse
495
+ */
496
+ export class DeleteProviderResponse extends Message<DeleteProviderResponse> {
497
+ constructor(data?: PartialMessage<DeleteProviderResponse>) {
498
+ super();
499
+ proto3.util.initPartial(data, this);
500
+ }
501
+
502
+ static readonly runtime: typeof proto3 = proto3;
503
+ static readonly typeName = "raystack.siren.v1beta1.DeleteProviderResponse";
504
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
505
+ ]);
506
+
507
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteProviderResponse {
508
+ return new DeleteProviderResponse().fromBinary(bytes, options);
509
+ }
510
+
511
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteProviderResponse {
512
+ return new DeleteProviderResponse().fromJson(jsonValue, options);
513
+ }
514
+
515
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteProviderResponse {
516
+ return new DeleteProviderResponse().fromJsonString(jsonString, options);
517
+ }
518
+
519
+ static equals(a: DeleteProviderResponse | PlainMessage<DeleteProviderResponse> | undefined, b: DeleteProviderResponse | PlainMessage<DeleteProviderResponse> | undefined): boolean {
520
+ return proto3.util.equals(DeleteProviderResponse, a, b);
521
+ }
522
+ }
523
+
524
+ /**
525
+ * @generated from message raystack.siren.v1beta1.Namespace
526
+ */
527
+ export class Namespace extends Message<Namespace> {
528
+ /**
529
+ * @generated from field: uint64 id = 1;
530
+ */
531
+ id = protoInt64.zero;
532
+
533
+ /**
534
+ * @generated from field: string urn = 2;
535
+ */
536
+ urn = "";
537
+
538
+ /**
539
+ * @generated from field: string name = 3;
540
+ */
541
+ name = "";
542
+
543
+ /**
544
+ * @generated from field: uint64 provider = 4;
545
+ */
546
+ provider = protoInt64.zero;
547
+
548
+ /**
549
+ * @generated from field: google.protobuf.Struct credentials = 5;
550
+ */
551
+ credentials?: Struct;
552
+
553
+ /**
554
+ * @generated from field: map<string, string> labels = 6;
555
+ */
556
+ labels: { [key: string]: string } = {};
557
+
558
+ /**
559
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
560
+ */
561
+ createdAt?: Timestamp;
562
+
563
+ /**
564
+ * @generated from field: google.protobuf.Timestamp updated_at = 8;
565
+ */
566
+ updatedAt?: Timestamp;
567
+
568
+ constructor(data?: PartialMessage<Namespace>) {
569
+ super();
570
+ proto3.util.initPartial(data, this);
571
+ }
572
+
573
+ static readonly runtime: typeof proto3 = proto3;
574
+ static readonly typeName = "raystack.siren.v1beta1.Namespace";
575
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
576
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
577
+ { no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
578
+ { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
579
+ { no: 4, name: "provider", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
580
+ { no: 5, name: "credentials", kind: "message", T: Struct },
581
+ { no: 6, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
582
+ { no: 7, name: "created_at", kind: "message", T: Timestamp },
583
+ { no: 8, name: "updated_at", kind: "message", T: Timestamp },
584
+ ]);
585
+
586
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Namespace {
587
+ return new Namespace().fromBinary(bytes, options);
588
+ }
589
+
590
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Namespace {
591
+ return new Namespace().fromJson(jsonValue, options);
592
+ }
593
+
594
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Namespace {
595
+ return new Namespace().fromJsonString(jsonString, options);
596
+ }
597
+
598
+ static equals(a: Namespace | PlainMessage<Namespace> | undefined, b: Namespace | PlainMessage<Namespace> | undefined): boolean {
599
+ return proto3.util.equals(Namespace, a, b);
600
+ }
601
+ }
602
+
603
+ /**
604
+ * @generated from message raystack.siren.v1beta1.ListNamespacesRequest
605
+ */
606
+ export class ListNamespacesRequest extends Message<ListNamespacesRequest> {
607
+ constructor(data?: PartialMessage<ListNamespacesRequest>) {
608
+ super();
609
+ proto3.util.initPartial(data, this);
610
+ }
611
+
612
+ static readonly runtime: typeof proto3 = proto3;
613
+ static readonly typeName = "raystack.siren.v1beta1.ListNamespacesRequest";
614
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
615
+ ]);
616
+
617
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListNamespacesRequest {
618
+ return new ListNamespacesRequest().fromBinary(bytes, options);
619
+ }
620
+
621
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListNamespacesRequest {
622
+ return new ListNamespacesRequest().fromJson(jsonValue, options);
623
+ }
624
+
625
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListNamespacesRequest {
626
+ return new ListNamespacesRequest().fromJsonString(jsonString, options);
627
+ }
628
+
629
+ static equals(a: ListNamespacesRequest | PlainMessage<ListNamespacesRequest> | undefined, b: ListNamespacesRequest | PlainMessage<ListNamespacesRequest> | undefined): boolean {
630
+ return proto3.util.equals(ListNamespacesRequest, a, b);
631
+ }
632
+ }
633
+
634
+ /**
635
+ * @generated from message raystack.siren.v1beta1.ListNamespacesResponse
636
+ */
637
+ export class ListNamespacesResponse extends Message<ListNamespacesResponse> {
638
+ /**
639
+ * @generated from field: repeated raystack.siren.v1beta1.Namespace namespaces = 1;
640
+ */
641
+ namespaces: Namespace[] = [];
642
+
643
+ constructor(data?: PartialMessage<ListNamespacesResponse>) {
644
+ super();
645
+ proto3.util.initPartial(data, this);
646
+ }
647
+
648
+ static readonly runtime: typeof proto3 = proto3;
649
+ static readonly typeName = "raystack.siren.v1beta1.ListNamespacesResponse";
650
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
651
+ { no: 1, name: "namespaces", kind: "message", T: Namespace, repeated: true },
652
+ ]);
653
+
654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListNamespacesResponse {
655
+ return new ListNamespacesResponse().fromBinary(bytes, options);
656
+ }
657
+
658
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListNamespacesResponse {
659
+ return new ListNamespacesResponse().fromJson(jsonValue, options);
660
+ }
661
+
662
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListNamespacesResponse {
663
+ return new ListNamespacesResponse().fromJsonString(jsonString, options);
664
+ }
665
+
666
+ static equals(a: ListNamespacesResponse | PlainMessage<ListNamespacesResponse> | undefined, b: ListNamespacesResponse | PlainMessage<ListNamespacesResponse> | undefined): boolean {
667
+ return proto3.util.equals(ListNamespacesResponse, a, b);
668
+ }
669
+ }
670
+
671
+ /**
672
+ * @generated from message raystack.siren.v1beta1.CreateNamespaceRequest
673
+ */
674
+ export class CreateNamespaceRequest extends Message<CreateNamespaceRequest> {
675
+ /**
676
+ * @generated from field: string name = 1;
677
+ */
678
+ name = "";
679
+
680
+ /**
681
+ * @generated from field: string urn = 2;
682
+ */
683
+ urn = "";
684
+
685
+ /**
686
+ * @generated from field: uint64 provider = 3;
687
+ */
688
+ provider = protoInt64.zero;
689
+
690
+ /**
691
+ * @generated from field: google.protobuf.Struct credentials = 4;
692
+ */
693
+ credentials?: Struct;
694
+
695
+ /**
696
+ * @generated from field: map<string, string> labels = 5;
697
+ */
698
+ labels: { [key: string]: string } = {};
699
+
700
+ /**
701
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
702
+ */
703
+ createdAt?: Timestamp;
704
+
705
+ /**
706
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
707
+ */
708
+ updatedAt?: Timestamp;
709
+
710
+ constructor(data?: PartialMessage<CreateNamespaceRequest>) {
711
+ super();
712
+ proto3.util.initPartial(data, this);
713
+ }
714
+
715
+ static readonly runtime: typeof proto3 = proto3;
716
+ static readonly typeName = "raystack.siren.v1beta1.CreateNamespaceRequest";
717
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
718
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
719
+ { no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
720
+ { no: 3, name: "provider", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
721
+ { no: 4, name: "credentials", kind: "message", T: Struct },
722
+ { no: 5, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
723
+ { no: 6, name: "created_at", kind: "message", T: Timestamp },
724
+ { no: 7, name: "updated_at", kind: "message", T: Timestamp },
725
+ ]);
726
+
727
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateNamespaceRequest {
728
+ return new CreateNamespaceRequest().fromBinary(bytes, options);
729
+ }
730
+
731
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateNamespaceRequest {
732
+ return new CreateNamespaceRequest().fromJson(jsonValue, options);
733
+ }
734
+
735
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateNamespaceRequest {
736
+ return new CreateNamespaceRequest().fromJsonString(jsonString, options);
737
+ }
738
+
739
+ static equals(a: CreateNamespaceRequest | PlainMessage<CreateNamespaceRequest> | undefined, b: CreateNamespaceRequest | PlainMessage<CreateNamespaceRequest> | undefined): boolean {
740
+ return proto3.util.equals(CreateNamespaceRequest, a, b);
741
+ }
742
+ }
743
+
744
+ /**
745
+ * @generated from message raystack.siren.v1beta1.CreateNamespaceResponse
746
+ */
747
+ export class CreateNamespaceResponse extends Message<CreateNamespaceResponse> {
748
+ /**
749
+ * @generated from field: uint64 id = 1;
750
+ */
751
+ id = protoInt64.zero;
752
+
753
+ constructor(data?: PartialMessage<CreateNamespaceResponse>) {
754
+ super();
755
+ proto3.util.initPartial(data, this);
756
+ }
757
+
758
+ static readonly runtime: typeof proto3 = proto3;
759
+ static readonly typeName = "raystack.siren.v1beta1.CreateNamespaceResponse";
760
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
761
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
762
+ ]);
763
+
764
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateNamespaceResponse {
765
+ return new CreateNamespaceResponse().fromBinary(bytes, options);
766
+ }
767
+
768
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateNamespaceResponse {
769
+ return new CreateNamespaceResponse().fromJson(jsonValue, options);
770
+ }
771
+
772
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateNamespaceResponse {
773
+ return new CreateNamespaceResponse().fromJsonString(jsonString, options);
774
+ }
775
+
776
+ static equals(a: CreateNamespaceResponse | PlainMessage<CreateNamespaceResponse> | undefined, b: CreateNamespaceResponse | PlainMessage<CreateNamespaceResponse> | undefined): boolean {
777
+ return proto3.util.equals(CreateNamespaceResponse, a, b);
778
+ }
779
+ }
780
+
781
+ /**
782
+ * @generated from message raystack.siren.v1beta1.GetNamespaceRequest
783
+ */
784
+ export class GetNamespaceRequest extends Message<GetNamespaceRequest> {
785
+ /**
786
+ * @generated from field: uint64 id = 1;
787
+ */
788
+ id = protoInt64.zero;
789
+
790
+ constructor(data?: PartialMessage<GetNamespaceRequest>) {
791
+ super();
792
+ proto3.util.initPartial(data, this);
793
+ }
794
+
795
+ static readonly runtime: typeof proto3 = proto3;
796
+ static readonly typeName = "raystack.siren.v1beta1.GetNamespaceRequest";
797
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
798
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
799
+ ]);
800
+
801
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNamespaceRequest {
802
+ return new GetNamespaceRequest().fromBinary(bytes, options);
803
+ }
804
+
805
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNamespaceRequest {
806
+ return new GetNamespaceRequest().fromJson(jsonValue, options);
807
+ }
808
+
809
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNamespaceRequest {
810
+ return new GetNamespaceRequest().fromJsonString(jsonString, options);
811
+ }
812
+
813
+ static equals(a: GetNamespaceRequest | PlainMessage<GetNamespaceRequest> | undefined, b: GetNamespaceRequest | PlainMessage<GetNamespaceRequest> | undefined): boolean {
814
+ return proto3.util.equals(GetNamespaceRequest, a, b);
815
+ }
816
+ }
817
+
818
+ /**
819
+ * @generated from message raystack.siren.v1beta1.GetNamespaceResponse
820
+ */
821
+ export class GetNamespaceResponse extends Message<GetNamespaceResponse> {
822
+ /**
823
+ * @generated from field: raystack.siren.v1beta1.Namespace namespace = 1;
824
+ */
825
+ namespace?: Namespace;
826
+
827
+ constructor(data?: PartialMessage<GetNamespaceResponse>) {
828
+ super();
829
+ proto3.util.initPartial(data, this);
830
+ }
831
+
832
+ static readonly runtime: typeof proto3 = proto3;
833
+ static readonly typeName = "raystack.siren.v1beta1.GetNamespaceResponse";
834
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
835
+ { no: 1, name: "namespace", kind: "message", T: Namespace },
836
+ ]);
837
+
838
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNamespaceResponse {
839
+ return new GetNamespaceResponse().fromBinary(bytes, options);
840
+ }
841
+
842
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNamespaceResponse {
843
+ return new GetNamespaceResponse().fromJson(jsonValue, options);
844
+ }
845
+
846
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNamespaceResponse {
847
+ return new GetNamespaceResponse().fromJsonString(jsonString, options);
848
+ }
849
+
850
+ static equals(a: GetNamespaceResponse | PlainMessage<GetNamespaceResponse> | undefined, b: GetNamespaceResponse | PlainMessage<GetNamespaceResponse> | undefined): boolean {
851
+ return proto3.util.equals(GetNamespaceResponse, a, b);
852
+ }
853
+ }
854
+
855
+ /**
856
+ * @generated from message raystack.siren.v1beta1.UpdateNamespaceRequest
857
+ */
858
+ export class UpdateNamespaceRequest extends Message<UpdateNamespaceRequest> {
859
+ /**
860
+ * @generated from field: uint64 id = 1;
861
+ */
862
+ id = protoInt64.zero;
863
+
864
+ /**
865
+ * @generated from field: string name = 2;
866
+ */
867
+ name = "";
868
+
869
+ /**
870
+ * @generated from field: uint64 provider = 3;
871
+ */
872
+ provider = protoInt64.zero;
873
+
874
+ /**
875
+ * @generated from field: google.protobuf.Struct credentials = 4;
876
+ */
877
+ credentials?: Struct;
878
+
879
+ /**
880
+ * @generated from field: map<string, string> labels = 5;
881
+ */
882
+ labels: { [key: string]: string } = {};
883
+
884
+ constructor(data?: PartialMessage<UpdateNamespaceRequest>) {
885
+ super();
886
+ proto3.util.initPartial(data, this);
887
+ }
888
+
889
+ static readonly runtime: typeof proto3 = proto3;
890
+ static readonly typeName = "raystack.siren.v1beta1.UpdateNamespaceRequest";
891
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
892
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
893
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
894
+ { no: 3, name: "provider", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
895
+ { no: 4, name: "credentials", kind: "message", T: Struct },
896
+ { no: 5, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
897
+ ]);
898
+
899
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateNamespaceRequest {
900
+ return new UpdateNamespaceRequest().fromBinary(bytes, options);
901
+ }
902
+
903
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateNamespaceRequest {
904
+ return new UpdateNamespaceRequest().fromJson(jsonValue, options);
905
+ }
906
+
907
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateNamespaceRequest {
908
+ return new UpdateNamespaceRequest().fromJsonString(jsonString, options);
909
+ }
910
+
911
+ static equals(a: UpdateNamespaceRequest | PlainMessage<UpdateNamespaceRequest> | undefined, b: UpdateNamespaceRequest | PlainMessage<UpdateNamespaceRequest> | undefined): boolean {
912
+ return proto3.util.equals(UpdateNamespaceRequest, a, b);
913
+ }
914
+ }
915
+
916
+ /**
917
+ * @generated from message raystack.siren.v1beta1.UpdateNamespaceResponse
918
+ */
919
+ export class UpdateNamespaceResponse extends Message<UpdateNamespaceResponse> {
920
+ /**
921
+ * @generated from field: uint64 id = 1;
922
+ */
923
+ id = protoInt64.zero;
924
+
925
+ constructor(data?: PartialMessage<UpdateNamespaceResponse>) {
926
+ super();
927
+ proto3.util.initPartial(data, this);
928
+ }
929
+
930
+ static readonly runtime: typeof proto3 = proto3;
931
+ static readonly typeName = "raystack.siren.v1beta1.UpdateNamespaceResponse";
932
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
933
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
934
+ ]);
935
+
936
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateNamespaceResponse {
937
+ return new UpdateNamespaceResponse().fromBinary(bytes, options);
938
+ }
939
+
940
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateNamespaceResponse {
941
+ return new UpdateNamespaceResponse().fromJson(jsonValue, options);
942
+ }
943
+
944
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateNamespaceResponse {
945
+ return new UpdateNamespaceResponse().fromJsonString(jsonString, options);
946
+ }
947
+
948
+ static equals(a: UpdateNamespaceResponse | PlainMessage<UpdateNamespaceResponse> | undefined, b: UpdateNamespaceResponse | PlainMessage<UpdateNamespaceResponse> | undefined): boolean {
949
+ return proto3.util.equals(UpdateNamespaceResponse, a, b);
950
+ }
951
+ }
952
+
953
+ /**
954
+ * @generated from message raystack.siren.v1beta1.DeleteNamespaceRequest
955
+ */
956
+ export class DeleteNamespaceRequest extends Message<DeleteNamespaceRequest> {
957
+ /**
958
+ * @generated from field: uint64 id = 1;
959
+ */
960
+ id = protoInt64.zero;
961
+
962
+ constructor(data?: PartialMessage<DeleteNamespaceRequest>) {
963
+ super();
964
+ proto3.util.initPartial(data, this);
965
+ }
966
+
967
+ static readonly runtime: typeof proto3 = proto3;
968
+ static readonly typeName = "raystack.siren.v1beta1.DeleteNamespaceRequest";
969
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
970
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
971
+ ]);
972
+
973
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteNamespaceRequest {
974
+ return new DeleteNamespaceRequest().fromBinary(bytes, options);
975
+ }
976
+
977
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteNamespaceRequest {
978
+ return new DeleteNamespaceRequest().fromJson(jsonValue, options);
979
+ }
980
+
981
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteNamespaceRequest {
982
+ return new DeleteNamespaceRequest().fromJsonString(jsonString, options);
983
+ }
984
+
985
+ static equals(a: DeleteNamespaceRequest | PlainMessage<DeleteNamespaceRequest> | undefined, b: DeleteNamespaceRequest | PlainMessage<DeleteNamespaceRequest> | undefined): boolean {
986
+ return proto3.util.equals(DeleteNamespaceRequest, a, b);
987
+ }
988
+ }
989
+
990
+ /**
991
+ * @generated from message raystack.siren.v1beta1.DeleteNamespaceResponse
992
+ */
993
+ export class DeleteNamespaceResponse extends Message<DeleteNamespaceResponse> {
994
+ constructor(data?: PartialMessage<DeleteNamespaceResponse>) {
995
+ super();
996
+ proto3.util.initPartial(data, this);
997
+ }
998
+
999
+ static readonly runtime: typeof proto3 = proto3;
1000
+ static readonly typeName = "raystack.siren.v1beta1.DeleteNamespaceResponse";
1001
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1002
+ ]);
1003
+
1004
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteNamespaceResponse {
1005
+ return new DeleteNamespaceResponse().fromBinary(bytes, options);
1006
+ }
1007
+
1008
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteNamespaceResponse {
1009
+ return new DeleteNamespaceResponse().fromJson(jsonValue, options);
1010
+ }
1011
+
1012
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteNamespaceResponse {
1013
+ return new DeleteNamespaceResponse().fromJsonString(jsonString, options);
1014
+ }
1015
+
1016
+ static equals(a: DeleteNamespaceResponse | PlainMessage<DeleteNamespaceResponse> | undefined, b: DeleteNamespaceResponse | PlainMessage<DeleteNamespaceResponse> | undefined): boolean {
1017
+ return proto3.util.equals(DeleteNamespaceResponse, a, b);
1018
+ }
1019
+ }
1020
+
1021
+ /**
1022
+ * @generated from message raystack.siren.v1beta1.ReceiverMetadata
1023
+ */
1024
+ export class ReceiverMetadata extends Message<ReceiverMetadata> {
1025
+ /**
1026
+ * @generated from field: uint64 id = 1;
1027
+ */
1028
+ id = protoInt64.zero;
1029
+
1030
+ /**
1031
+ * @generated from field: google.protobuf.Struct configuration = 4;
1032
+ */
1033
+ configuration?: Struct;
1034
+
1035
+ constructor(data?: PartialMessage<ReceiverMetadata>) {
1036
+ super();
1037
+ proto3.util.initPartial(data, this);
1038
+ }
1039
+
1040
+ static readonly runtime: typeof proto3 = proto3;
1041
+ static readonly typeName = "raystack.siren.v1beta1.ReceiverMetadata";
1042
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1043
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1044
+ { no: 4, name: "configuration", kind: "message", T: Struct },
1045
+ ]);
1046
+
1047
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReceiverMetadata {
1048
+ return new ReceiverMetadata().fromBinary(bytes, options);
1049
+ }
1050
+
1051
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReceiverMetadata {
1052
+ return new ReceiverMetadata().fromJson(jsonValue, options);
1053
+ }
1054
+
1055
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReceiverMetadata {
1056
+ return new ReceiverMetadata().fromJsonString(jsonString, options);
1057
+ }
1058
+
1059
+ static equals(a: ReceiverMetadata | PlainMessage<ReceiverMetadata> | undefined, b: ReceiverMetadata | PlainMessage<ReceiverMetadata> | undefined): boolean {
1060
+ return proto3.util.equals(ReceiverMetadata, a, b);
1061
+ }
1062
+ }
1063
+
1064
+ /**
1065
+ * @generated from message raystack.siren.v1beta1.Subscription
1066
+ */
1067
+ export class Subscription extends Message<Subscription> {
1068
+ /**
1069
+ * @generated from field: uint64 id = 1;
1070
+ */
1071
+ id = protoInt64.zero;
1072
+
1073
+ /**
1074
+ * @generated from field: string urn = 2;
1075
+ */
1076
+ urn = "";
1077
+
1078
+ /**
1079
+ * @generated from field: uint64 namespace = 3;
1080
+ */
1081
+ namespace = protoInt64.zero;
1082
+
1083
+ /**
1084
+ * @generated from field: repeated raystack.siren.v1beta1.ReceiverMetadata receivers = 4;
1085
+ */
1086
+ receivers: ReceiverMetadata[] = [];
1087
+
1088
+ /**
1089
+ * @generated from field: map<string, string> match = 5;
1090
+ */
1091
+ match: { [key: string]: string } = {};
1092
+
1093
+ /**
1094
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
1095
+ */
1096
+ createdAt?: Timestamp;
1097
+
1098
+ /**
1099
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
1100
+ */
1101
+ updatedAt?: Timestamp;
1102
+
1103
+ constructor(data?: PartialMessage<Subscription>) {
1104
+ super();
1105
+ proto3.util.initPartial(data, this);
1106
+ }
1107
+
1108
+ static readonly runtime: typeof proto3 = proto3;
1109
+ static readonly typeName = "raystack.siren.v1beta1.Subscription";
1110
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1111
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1112
+ { no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1113
+ { no: 3, name: "namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1114
+ { no: 4, name: "receivers", kind: "message", T: ReceiverMetadata, repeated: true },
1115
+ { no: 5, name: "match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1116
+ { no: 6, name: "created_at", kind: "message", T: Timestamp },
1117
+ { no: 7, name: "updated_at", kind: "message", T: Timestamp },
1118
+ ]);
1119
+
1120
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Subscription {
1121
+ return new Subscription().fromBinary(bytes, options);
1122
+ }
1123
+
1124
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Subscription {
1125
+ return new Subscription().fromJson(jsonValue, options);
1126
+ }
1127
+
1128
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Subscription {
1129
+ return new Subscription().fromJsonString(jsonString, options);
1130
+ }
1131
+
1132
+ static equals(a: Subscription | PlainMessage<Subscription> | undefined, b: Subscription | PlainMessage<Subscription> | undefined): boolean {
1133
+ return proto3.util.equals(Subscription, a, b);
1134
+ }
1135
+ }
1136
+
1137
+ /**
1138
+ * @generated from message raystack.siren.v1beta1.ListSubscriptionsRequest
1139
+ */
1140
+ export class ListSubscriptionsRequest extends Message<ListSubscriptionsRequest> {
1141
+ /**
1142
+ * @generated from field: uint64 namespace_id = 1;
1143
+ */
1144
+ namespaceId = protoInt64.zero;
1145
+
1146
+ /**
1147
+ * @generated from field: map<string, string> match = 2;
1148
+ */
1149
+ match: { [key: string]: string } = {};
1150
+
1151
+ /**
1152
+ * @generated from field: map<string, string> notification_match = 3;
1153
+ */
1154
+ notificationMatch: { [key: string]: string } = {};
1155
+
1156
+ /**
1157
+ * @generated from field: string silence_id = 4;
1158
+ */
1159
+ silenceId = "";
1160
+
1161
+ constructor(data?: PartialMessage<ListSubscriptionsRequest>) {
1162
+ super();
1163
+ proto3.util.initPartial(data, this);
1164
+ }
1165
+
1166
+ static readonly runtime: typeof proto3 = proto3;
1167
+ static readonly typeName = "raystack.siren.v1beta1.ListSubscriptionsRequest";
1168
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1169
+ { no: 1, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1170
+ { no: 2, name: "match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1171
+ { no: 3, name: "notification_match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1172
+ { no: 4, name: "silence_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1173
+ ]);
1174
+
1175
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSubscriptionsRequest {
1176
+ return new ListSubscriptionsRequest().fromBinary(bytes, options);
1177
+ }
1178
+
1179
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSubscriptionsRequest {
1180
+ return new ListSubscriptionsRequest().fromJson(jsonValue, options);
1181
+ }
1182
+
1183
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSubscriptionsRequest {
1184
+ return new ListSubscriptionsRequest().fromJsonString(jsonString, options);
1185
+ }
1186
+
1187
+ static equals(a: ListSubscriptionsRequest | PlainMessage<ListSubscriptionsRequest> | undefined, b: ListSubscriptionsRequest | PlainMessage<ListSubscriptionsRequest> | undefined): boolean {
1188
+ return proto3.util.equals(ListSubscriptionsRequest, a, b);
1189
+ }
1190
+ }
1191
+
1192
+ /**
1193
+ * @generated from message raystack.siren.v1beta1.ListSubscriptionsResponse
1194
+ */
1195
+ export class ListSubscriptionsResponse extends Message<ListSubscriptionsResponse> {
1196
+ /**
1197
+ * @generated from field: repeated raystack.siren.v1beta1.Subscription subscriptions = 1;
1198
+ */
1199
+ subscriptions: Subscription[] = [];
1200
+
1201
+ constructor(data?: PartialMessage<ListSubscriptionsResponse>) {
1202
+ super();
1203
+ proto3.util.initPartial(data, this);
1204
+ }
1205
+
1206
+ static readonly runtime: typeof proto3 = proto3;
1207
+ static readonly typeName = "raystack.siren.v1beta1.ListSubscriptionsResponse";
1208
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1209
+ { no: 1, name: "subscriptions", kind: "message", T: Subscription, repeated: true },
1210
+ ]);
1211
+
1212
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSubscriptionsResponse {
1213
+ return new ListSubscriptionsResponse().fromBinary(bytes, options);
1214
+ }
1215
+
1216
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSubscriptionsResponse {
1217
+ return new ListSubscriptionsResponse().fromJson(jsonValue, options);
1218
+ }
1219
+
1220
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSubscriptionsResponse {
1221
+ return new ListSubscriptionsResponse().fromJsonString(jsonString, options);
1222
+ }
1223
+
1224
+ static equals(a: ListSubscriptionsResponse | PlainMessage<ListSubscriptionsResponse> | undefined, b: ListSubscriptionsResponse | PlainMessage<ListSubscriptionsResponse> | undefined): boolean {
1225
+ return proto3.util.equals(ListSubscriptionsResponse, a, b);
1226
+ }
1227
+ }
1228
+
1229
+ /**
1230
+ * @generated from message raystack.siren.v1beta1.CreateSubscriptionRequest
1231
+ */
1232
+ export class CreateSubscriptionRequest extends Message<CreateSubscriptionRequest> {
1233
+ /**
1234
+ * @generated from field: string urn = 1;
1235
+ */
1236
+ urn = "";
1237
+
1238
+ /**
1239
+ * @generated from field: uint64 namespace = 2;
1240
+ */
1241
+ namespace = protoInt64.zero;
1242
+
1243
+ /**
1244
+ * @generated from field: repeated raystack.siren.v1beta1.ReceiverMetadata receivers = 3;
1245
+ */
1246
+ receivers: ReceiverMetadata[] = [];
1247
+
1248
+ /**
1249
+ * @generated from field: map<string, string> match = 4;
1250
+ */
1251
+ match: { [key: string]: string } = {};
1252
+
1253
+ constructor(data?: PartialMessage<CreateSubscriptionRequest>) {
1254
+ super();
1255
+ proto3.util.initPartial(data, this);
1256
+ }
1257
+
1258
+ static readonly runtime: typeof proto3 = proto3;
1259
+ static readonly typeName = "raystack.siren.v1beta1.CreateSubscriptionRequest";
1260
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1261
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1262
+ { no: 2, name: "namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1263
+ { no: 3, name: "receivers", kind: "message", T: ReceiverMetadata, repeated: true },
1264
+ { no: 4, name: "match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1265
+ ]);
1266
+
1267
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSubscriptionRequest {
1268
+ return new CreateSubscriptionRequest().fromBinary(bytes, options);
1269
+ }
1270
+
1271
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSubscriptionRequest {
1272
+ return new CreateSubscriptionRequest().fromJson(jsonValue, options);
1273
+ }
1274
+
1275
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSubscriptionRequest {
1276
+ return new CreateSubscriptionRequest().fromJsonString(jsonString, options);
1277
+ }
1278
+
1279
+ static equals(a: CreateSubscriptionRequest | PlainMessage<CreateSubscriptionRequest> | undefined, b: CreateSubscriptionRequest | PlainMessage<CreateSubscriptionRequest> | undefined): boolean {
1280
+ return proto3.util.equals(CreateSubscriptionRequest, a, b);
1281
+ }
1282
+ }
1283
+
1284
+ /**
1285
+ * @generated from message raystack.siren.v1beta1.CreateSubscriptionResponse
1286
+ */
1287
+ export class CreateSubscriptionResponse extends Message<CreateSubscriptionResponse> {
1288
+ /**
1289
+ * @generated from field: uint64 id = 1;
1290
+ */
1291
+ id = protoInt64.zero;
1292
+
1293
+ constructor(data?: PartialMessage<CreateSubscriptionResponse>) {
1294
+ super();
1295
+ proto3.util.initPartial(data, this);
1296
+ }
1297
+
1298
+ static readonly runtime: typeof proto3 = proto3;
1299
+ static readonly typeName = "raystack.siren.v1beta1.CreateSubscriptionResponse";
1300
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1301
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1302
+ ]);
1303
+
1304
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSubscriptionResponse {
1305
+ return new CreateSubscriptionResponse().fromBinary(bytes, options);
1306
+ }
1307
+
1308
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSubscriptionResponse {
1309
+ return new CreateSubscriptionResponse().fromJson(jsonValue, options);
1310
+ }
1311
+
1312
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSubscriptionResponse {
1313
+ return new CreateSubscriptionResponse().fromJsonString(jsonString, options);
1314
+ }
1315
+
1316
+ static equals(a: CreateSubscriptionResponse | PlainMessage<CreateSubscriptionResponse> | undefined, b: CreateSubscriptionResponse | PlainMessage<CreateSubscriptionResponse> | undefined): boolean {
1317
+ return proto3.util.equals(CreateSubscriptionResponse, a, b);
1318
+ }
1319
+ }
1320
+
1321
+ /**
1322
+ * @generated from message raystack.siren.v1beta1.GetSubscriptionRequest
1323
+ */
1324
+ export class GetSubscriptionRequest extends Message<GetSubscriptionRequest> {
1325
+ /**
1326
+ * @generated from field: uint64 id = 1;
1327
+ */
1328
+ id = protoInt64.zero;
1329
+
1330
+ constructor(data?: PartialMessage<GetSubscriptionRequest>) {
1331
+ super();
1332
+ proto3.util.initPartial(data, this);
1333
+ }
1334
+
1335
+ static readonly runtime: typeof proto3 = proto3;
1336
+ static readonly typeName = "raystack.siren.v1beta1.GetSubscriptionRequest";
1337
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1338
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1339
+ ]);
1340
+
1341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSubscriptionRequest {
1342
+ return new GetSubscriptionRequest().fromBinary(bytes, options);
1343
+ }
1344
+
1345
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSubscriptionRequest {
1346
+ return new GetSubscriptionRequest().fromJson(jsonValue, options);
1347
+ }
1348
+
1349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSubscriptionRequest {
1350
+ return new GetSubscriptionRequest().fromJsonString(jsonString, options);
1351
+ }
1352
+
1353
+ static equals(a: GetSubscriptionRequest | PlainMessage<GetSubscriptionRequest> | undefined, b: GetSubscriptionRequest | PlainMessage<GetSubscriptionRequest> | undefined): boolean {
1354
+ return proto3.util.equals(GetSubscriptionRequest, a, b);
1355
+ }
1356
+ }
1357
+
1358
+ /**
1359
+ * @generated from message raystack.siren.v1beta1.GetSubscriptionResponse
1360
+ */
1361
+ export class GetSubscriptionResponse extends Message<GetSubscriptionResponse> {
1362
+ /**
1363
+ * @generated from field: raystack.siren.v1beta1.Subscription subscription = 1;
1364
+ */
1365
+ subscription?: Subscription;
1366
+
1367
+ constructor(data?: PartialMessage<GetSubscriptionResponse>) {
1368
+ super();
1369
+ proto3.util.initPartial(data, this);
1370
+ }
1371
+
1372
+ static readonly runtime: typeof proto3 = proto3;
1373
+ static readonly typeName = "raystack.siren.v1beta1.GetSubscriptionResponse";
1374
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1375
+ { no: 1, name: "subscription", kind: "message", T: Subscription },
1376
+ ]);
1377
+
1378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSubscriptionResponse {
1379
+ return new GetSubscriptionResponse().fromBinary(bytes, options);
1380
+ }
1381
+
1382
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSubscriptionResponse {
1383
+ return new GetSubscriptionResponse().fromJson(jsonValue, options);
1384
+ }
1385
+
1386
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSubscriptionResponse {
1387
+ return new GetSubscriptionResponse().fromJsonString(jsonString, options);
1388
+ }
1389
+
1390
+ static equals(a: GetSubscriptionResponse | PlainMessage<GetSubscriptionResponse> | undefined, b: GetSubscriptionResponse | PlainMessage<GetSubscriptionResponse> | undefined): boolean {
1391
+ return proto3.util.equals(GetSubscriptionResponse, a, b);
1392
+ }
1393
+ }
1394
+
1395
+ /**
1396
+ * @generated from message raystack.siren.v1beta1.UpdateSubscriptionRequest
1397
+ */
1398
+ export class UpdateSubscriptionRequest extends Message<UpdateSubscriptionRequest> {
1399
+ /**
1400
+ * @generated from field: uint64 id = 1;
1401
+ */
1402
+ id = protoInt64.zero;
1403
+
1404
+ /**
1405
+ * @generated from field: string urn = 2;
1406
+ */
1407
+ urn = "";
1408
+
1409
+ /**
1410
+ * @generated from field: uint64 namespace = 3;
1411
+ */
1412
+ namespace = protoInt64.zero;
1413
+
1414
+ /**
1415
+ * @generated from field: repeated raystack.siren.v1beta1.ReceiverMetadata receivers = 4;
1416
+ */
1417
+ receivers: ReceiverMetadata[] = [];
1418
+
1419
+ /**
1420
+ * @generated from field: map<string, string> match = 5;
1421
+ */
1422
+ match: { [key: string]: string } = {};
1423
+
1424
+ constructor(data?: PartialMessage<UpdateSubscriptionRequest>) {
1425
+ super();
1426
+ proto3.util.initPartial(data, this);
1427
+ }
1428
+
1429
+ static readonly runtime: typeof proto3 = proto3;
1430
+ static readonly typeName = "raystack.siren.v1beta1.UpdateSubscriptionRequest";
1431
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1432
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1433
+ { no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1434
+ { no: 3, name: "namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1435
+ { no: 4, name: "receivers", kind: "message", T: ReceiverMetadata, repeated: true },
1436
+ { no: 5, name: "match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1437
+ ]);
1438
+
1439
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscriptionRequest {
1440
+ return new UpdateSubscriptionRequest().fromBinary(bytes, options);
1441
+ }
1442
+
1443
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscriptionRequest {
1444
+ return new UpdateSubscriptionRequest().fromJson(jsonValue, options);
1445
+ }
1446
+
1447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscriptionRequest {
1448
+ return new UpdateSubscriptionRequest().fromJsonString(jsonString, options);
1449
+ }
1450
+
1451
+ static equals(a: UpdateSubscriptionRequest | PlainMessage<UpdateSubscriptionRequest> | undefined, b: UpdateSubscriptionRequest | PlainMessage<UpdateSubscriptionRequest> | undefined): boolean {
1452
+ return proto3.util.equals(UpdateSubscriptionRequest, a, b);
1453
+ }
1454
+ }
1455
+
1456
+ /**
1457
+ * @generated from message raystack.siren.v1beta1.UpdateSubscriptionResponse
1458
+ */
1459
+ export class UpdateSubscriptionResponse extends Message<UpdateSubscriptionResponse> {
1460
+ /**
1461
+ * @generated from field: uint64 id = 1;
1462
+ */
1463
+ id = protoInt64.zero;
1464
+
1465
+ constructor(data?: PartialMessage<UpdateSubscriptionResponse>) {
1466
+ super();
1467
+ proto3.util.initPartial(data, this);
1468
+ }
1469
+
1470
+ static readonly runtime: typeof proto3 = proto3;
1471
+ static readonly typeName = "raystack.siren.v1beta1.UpdateSubscriptionResponse";
1472
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1473
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1474
+ ]);
1475
+
1476
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscriptionResponse {
1477
+ return new UpdateSubscriptionResponse().fromBinary(bytes, options);
1478
+ }
1479
+
1480
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscriptionResponse {
1481
+ return new UpdateSubscriptionResponse().fromJson(jsonValue, options);
1482
+ }
1483
+
1484
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscriptionResponse {
1485
+ return new UpdateSubscriptionResponse().fromJsonString(jsonString, options);
1486
+ }
1487
+
1488
+ static equals(a: UpdateSubscriptionResponse | PlainMessage<UpdateSubscriptionResponse> | undefined, b: UpdateSubscriptionResponse | PlainMessage<UpdateSubscriptionResponse> | undefined): boolean {
1489
+ return proto3.util.equals(UpdateSubscriptionResponse, a, b);
1490
+ }
1491
+ }
1492
+
1493
+ /**
1494
+ * @generated from message raystack.siren.v1beta1.DeleteSubscriptionRequest
1495
+ */
1496
+ export class DeleteSubscriptionRequest extends Message<DeleteSubscriptionRequest> {
1497
+ /**
1498
+ * @generated from field: uint64 id = 1;
1499
+ */
1500
+ id = protoInt64.zero;
1501
+
1502
+ constructor(data?: PartialMessage<DeleteSubscriptionRequest>) {
1503
+ super();
1504
+ proto3.util.initPartial(data, this);
1505
+ }
1506
+
1507
+ static readonly runtime: typeof proto3 = proto3;
1508
+ static readonly typeName = "raystack.siren.v1beta1.DeleteSubscriptionRequest";
1509
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1510
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1511
+ ]);
1512
+
1513
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSubscriptionRequest {
1514
+ return new DeleteSubscriptionRequest().fromBinary(bytes, options);
1515
+ }
1516
+
1517
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSubscriptionRequest {
1518
+ return new DeleteSubscriptionRequest().fromJson(jsonValue, options);
1519
+ }
1520
+
1521
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSubscriptionRequest {
1522
+ return new DeleteSubscriptionRequest().fromJsonString(jsonString, options);
1523
+ }
1524
+
1525
+ static equals(a: DeleteSubscriptionRequest | PlainMessage<DeleteSubscriptionRequest> | undefined, b: DeleteSubscriptionRequest | PlainMessage<DeleteSubscriptionRequest> | undefined): boolean {
1526
+ return proto3.util.equals(DeleteSubscriptionRequest, a, b);
1527
+ }
1528
+ }
1529
+
1530
+ /**
1531
+ * @generated from message raystack.siren.v1beta1.DeleteSubscriptionResponse
1532
+ */
1533
+ export class DeleteSubscriptionResponse extends Message<DeleteSubscriptionResponse> {
1534
+ constructor(data?: PartialMessage<DeleteSubscriptionResponse>) {
1535
+ super();
1536
+ proto3.util.initPartial(data, this);
1537
+ }
1538
+
1539
+ static readonly runtime: typeof proto3 = proto3;
1540
+ static readonly typeName = "raystack.siren.v1beta1.DeleteSubscriptionResponse";
1541
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1542
+ ]);
1543
+
1544
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSubscriptionResponse {
1545
+ return new DeleteSubscriptionResponse().fromBinary(bytes, options);
1546
+ }
1547
+
1548
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSubscriptionResponse {
1549
+ return new DeleteSubscriptionResponse().fromJson(jsonValue, options);
1550
+ }
1551
+
1552
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSubscriptionResponse {
1553
+ return new DeleteSubscriptionResponse().fromJsonString(jsonString, options);
1554
+ }
1555
+
1556
+ static equals(a: DeleteSubscriptionResponse | PlainMessage<DeleteSubscriptionResponse> | undefined, b: DeleteSubscriptionResponse | PlainMessage<DeleteSubscriptionResponse> | undefined): boolean {
1557
+ return proto3.util.equals(DeleteSubscriptionResponse, a, b);
1558
+ }
1559
+ }
1560
+
1561
+ /**
1562
+ * @generated from message raystack.siren.v1beta1.Receiver
1563
+ */
1564
+ export class Receiver extends Message<Receiver> {
1565
+ /**
1566
+ * @generated from field: uint64 id = 1;
1567
+ */
1568
+ id = protoInt64.zero;
1569
+
1570
+ /**
1571
+ * @generated from field: string name = 2;
1572
+ */
1573
+ name = "";
1574
+
1575
+ /**
1576
+ * @generated from field: string type = 3;
1577
+ */
1578
+ type = "";
1579
+
1580
+ /**
1581
+ * @generated from field: map<string, string> labels = 4;
1582
+ */
1583
+ labels: { [key: string]: string } = {};
1584
+
1585
+ /**
1586
+ * @generated from field: google.protobuf.Struct configurations = 5;
1587
+ */
1588
+ configurations?: Struct;
1589
+
1590
+ /**
1591
+ * @generated from field: google.protobuf.Struct data = 6;
1592
+ */
1593
+ data?: Struct;
1594
+
1595
+ /**
1596
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
1597
+ */
1598
+ createdAt?: Timestamp;
1599
+
1600
+ /**
1601
+ * @generated from field: google.protobuf.Timestamp updated_at = 8;
1602
+ */
1603
+ updatedAt?: Timestamp;
1604
+
1605
+ constructor(data?: PartialMessage<Receiver>) {
1606
+ super();
1607
+ proto3.util.initPartial(data, this);
1608
+ }
1609
+
1610
+ static readonly runtime: typeof proto3 = proto3;
1611
+ static readonly typeName = "raystack.siren.v1beta1.Receiver";
1612
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1613
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1614
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1615
+ { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1616
+ { no: 4, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1617
+ { no: 5, name: "configurations", kind: "message", T: Struct },
1618
+ { no: 6, name: "data", kind: "message", T: Struct },
1619
+ { no: 7, name: "created_at", kind: "message", T: Timestamp },
1620
+ { no: 8, name: "updated_at", kind: "message", T: Timestamp },
1621
+ ]);
1622
+
1623
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Receiver {
1624
+ return new Receiver().fromBinary(bytes, options);
1625
+ }
1626
+
1627
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Receiver {
1628
+ return new Receiver().fromJson(jsonValue, options);
1629
+ }
1630
+
1631
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Receiver {
1632
+ return new Receiver().fromJsonString(jsonString, options);
1633
+ }
1634
+
1635
+ static equals(a: Receiver | PlainMessage<Receiver> | undefined, b: Receiver | PlainMessage<Receiver> | undefined): boolean {
1636
+ return proto3.util.equals(Receiver, a, b);
1637
+ }
1638
+ }
1639
+
1640
+ /**
1641
+ * @generated from message raystack.siren.v1beta1.ListReceiversRequest
1642
+ */
1643
+ export class ListReceiversRequest extends Message<ListReceiversRequest> {
1644
+ constructor(data?: PartialMessage<ListReceiversRequest>) {
1645
+ super();
1646
+ proto3.util.initPartial(data, this);
1647
+ }
1648
+
1649
+ static readonly runtime: typeof proto3 = proto3;
1650
+ static readonly typeName = "raystack.siren.v1beta1.ListReceiversRequest";
1651
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1652
+ ]);
1653
+
1654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListReceiversRequest {
1655
+ return new ListReceiversRequest().fromBinary(bytes, options);
1656
+ }
1657
+
1658
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListReceiversRequest {
1659
+ return new ListReceiversRequest().fromJson(jsonValue, options);
1660
+ }
1661
+
1662
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListReceiversRequest {
1663
+ return new ListReceiversRequest().fromJsonString(jsonString, options);
1664
+ }
1665
+
1666
+ static equals(a: ListReceiversRequest | PlainMessage<ListReceiversRequest> | undefined, b: ListReceiversRequest | PlainMessage<ListReceiversRequest> | undefined): boolean {
1667
+ return proto3.util.equals(ListReceiversRequest, a, b);
1668
+ }
1669
+ }
1670
+
1671
+ /**
1672
+ * @generated from message raystack.siren.v1beta1.ListReceiversResponse
1673
+ */
1674
+ export class ListReceiversResponse extends Message<ListReceiversResponse> {
1675
+ /**
1676
+ * @generated from field: repeated raystack.siren.v1beta1.Receiver receivers = 1;
1677
+ */
1678
+ receivers: Receiver[] = [];
1679
+
1680
+ constructor(data?: PartialMessage<ListReceiversResponse>) {
1681
+ super();
1682
+ proto3.util.initPartial(data, this);
1683
+ }
1684
+
1685
+ static readonly runtime: typeof proto3 = proto3;
1686
+ static readonly typeName = "raystack.siren.v1beta1.ListReceiversResponse";
1687
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1688
+ { no: 1, name: "receivers", kind: "message", T: Receiver, repeated: true },
1689
+ ]);
1690
+
1691
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListReceiversResponse {
1692
+ return new ListReceiversResponse().fromBinary(bytes, options);
1693
+ }
1694
+
1695
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListReceiversResponse {
1696
+ return new ListReceiversResponse().fromJson(jsonValue, options);
1697
+ }
1698
+
1699
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListReceiversResponse {
1700
+ return new ListReceiversResponse().fromJsonString(jsonString, options);
1701
+ }
1702
+
1703
+ static equals(a: ListReceiversResponse | PlainMessage<ListReceiversResponse> | undefined, b: ListReceiversResponse | PlainMessage<ListReceiversResponse> | undefined): boolean {
1704
+ return proto3.util.equals(ListReceiversResponse, a, b);
1705
+ }
1706
+ }
1707
+
1708
+ /**
1709
+ * @generated from message raystack.siren.v1beta1.CreateReceiverRequest
1710
+ */
1711
+ export class CreateReceiverRequest extends Message<CreateReceiverRequest> {
1712
+ /**
1713
+ * @generated from field: string name = 1;
1714
+ */
1715
+ name = "";
1716
+
1717
+ /**
1718
+ * @generated from field: string type = 2;
1719
+ */
1720
+ type = "";
1721
+
1722
+ /**
1723
+ * @generated from field: map<string, string> labels = 3;
1724
+ */
1725
+ labels: { [key: string]: string } = {};
1726
+
1727
+ /**
1728
+ * @generated from field: google.protobuf.Struct configurations = 4;
1729
+ */
1730
+ configurations?: Struct;
1731
+
1732
+ constructor(data?: PartialMessage<CreateReceiverRequest>) {
1733
+ super();
1734
+ proto3.util.initPartial(data, this);
1735
+ }
1736
+
1737
+ static readonly runtime: typeof proto3 = proto3;
1738
+ static readonly typeName = "raystack.siren.v1beta1.CreateReceiverRequest";
1739
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1740
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1741
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1742
+ { no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1743
+ { no: 4, name: "configurations", kind: "message", T: Struct },
1744
+ ]);
1745
+
1746
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateReceiverRequest {
1747
+ return new CreateReceiverRequest().fromBinary(bytes, options);
1748
+ }
1749
+
1750
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateReceiverRequest {
1751
+ return new CreateReceiverRequest().fromJson(jsonValue, options);
1752
+ }
1753
+
1754
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateReceiverRequest {
1755
+ return new CreateReceiverRequest().fromJsonString(jsonString, options);
1756
+ }
1757
+
1758
+ static equals(a: CreateReceiverRequest | PlainMessage<CreateReceiverRequest> | undefined, b: CreateReceiverRequest | PlainMessage<CreateReceiverRequest> | undefined): boolean {
1759
+ return proto3.util.equals(CreateReceiverRequest, a, b);
1760
+ }
1761
+ }
1762
+
1763
+ /**
1764
+ * @generated from message raystack.siren.v1beta1.CreateReceiverResponse
1765
+ */
1766
+ export class CreateReceiverResponse extends Message<CreateReceiverResponse> {
1767
+ /**
1768
+ * @generated from field: uint64 id = 1;
1769
+ */
1770
+ id = protoInt64.zero;
1771
+
1772
+ constructor(data?: PartialMessage<CreateReceiverResponse>) {
1773
+ super();
1774
+ proto3.util.initPartial(data, this);
1775
+ }
1776
+
1777
+ static readonly runtime: typeof proto3 = proto3;
1778
+ static readonly typeName = "raystack.siren.v1beta1.CreateReceiverResponse";
1779
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1780
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1781
+ ]);
1782
+
1783
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateReceiverResponse {
1784
+ return new CreateReceiverResponse().fromBinary(bytes, options);
1785
+ }
1786
+
1787
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateReceiverResponse {
1788
+ return new CreateReceiverResponse().fromJson(jsonValue, options);
1789
+ }
1790
+
1791
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateReceiverResponse {
1792
+ return new CreateReceiverResponse().fromJsonString(jsonString, options);
1793
+ }
1794
+
1795
+ static equals(a: CreateReceiverResponse | PlainMessage<CreateReceiverResponse> | undefined, b: CreateReceiverResponse | PlainMessage<CreateReceiverResponse> | undefined): boolean {
1796
+ return proto3.util.equals(CreateReceiverResponse, a, b);
1797
+ }
1798
+ }
1799
+
1800
+ /**
1801
+ * @generated from message raystack.siren.v1beta1.GetReceiverRequest
1802
+ */
1803
+ export class GetReceiverRequest extends Message<GetReceiverRequest> {
1804
+ /**
1805
+ * @generated from field: uint64 id = 1;
1806
+ */
1807
+ id = protoInt64.zero;
1808
+
1809
+ constructor(data?: PartialMessage<GetReceiverRequest>) {
1810
+ super();
1811
+ proto3.util.initPartial(data, this);
1812
+ }
1813
+
1814
+ static readonly runtime: typeof proto3 = proto3;
1815
+ static readonly typeName = "raystack.siren.v1beta1.GetReceiverRequest";
1816
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1817
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1818
+ ]);
1819
+
1820
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetReceiverRequest {
1821
+ return new GetReceiverRequest().fromBinary(bytes, options);
1822
+ }
1823
+
1824
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetReceiverRequest {
1825
+ return new GetReceiverRequest().fromJson(jsonValue, options);
1826
+ }
1827
+
1828
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetReceiverRequest {
1829
+ return new GetReceiverRequest().fromJsonString(jsonString, options);
1830
+ }
1831
+
1832
+ static equals(a: GetReceiverRequest | PlainMessage<GetReceiverRequest> | undefined, b: GetReceiverRequest | PlainMessage<GetReceiverRequest> | undefined): boolean {
1833
+ return proto3.util.equals(GetReceiverRequest, a, b);
1834
+ }
1835
+ }
1836
+
1837
+ /**
1838
+ * @generated from message raystack.siren.v1beta1.GetReceiverResponse
1839
+ */
1840
+ export class GetReceiverResponse extends Message<GetReceiverResponse> {
1841
+ /**
1842
+ * @generated from field: raystack.siren.v1beta1.Receiver receiver = 1;
1843
+ */
1844
+ receiver?: Receiver;
1845
+
1846
+ constructor(data?: PartialMessage<GetReceiverResponse>) {
1847
+ super();
1848
+ proto3.util.initPartial(data, this);
1849
+ }
1850
+
1851
+ static readonly runtime: typeof proto3 = proto3;
1852
+ static readonly typeName = "raystack.siren.v1beta1.GetReceiverResponse";
1853
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1854
+ { no: 1, name: "receiver", kind: "message", T: Receiver },
1855
+ ]);
1856
+
1857
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetReceiverResponse {
1858
+ return new GetReceiverResponse().fromBinary(bytes, options);
1859
+ }
1860
+
1861
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetReceiverResponse {
1862
+ return new GetReceiverResponse().fromJson(jsonValue, options);
1863
+ }
1864
+
1865
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetReceiverResponse {
1866
+ return new GetReceiverResponse().fromJsonString(jsonString, options);
1867
+ }
1868
+
1869
+ static equals(a: GetReceiverResponse | PlainMessage<GetReceiverResponse> | undefined, b: GetReceiverResponse | PlainMessage<GetReceiverResponse> | undefined): boolean {
1870
+ return proto3.util.equals(GetReceiverResponse, a, b);
1871
+ }
1872
+ }
1873
+
1874
+ /**
1875
+ * @generated from message raystack.siren.v1beta1.UpdateReceiverRequest
1876
+ */
1877
+ export class UpdateReceiverRequest extends Message<UpdateReceiverRequest> {
1878
+ /**
1879
+ * @generated from field: uint64 id = 1;
1880
+ */
1881
+ id = protoInt64.zero;
1882
+
1883
+ /**
1884
+ * @generated from field: string name = 2;
1885
+ */
1886
+ name = "";
1887
+
1888
+ /**
1889
+ * @generated from field: map<string, string> labels = 3;
1890
+ */
1891
+ labels: { [key: string]: string } = {};
1892
+
1893
+ /**
1894
+ * @generated from field: google.protobuf.Struct configurations = 4;
1895
+ */
1896
+ configurations?: Struct;
1897
+
1898
+ constructor(data?: PartialMessage<UpdateReceiverRequest>) {
1899
+ super();
1900
+ proto3.util.initPartial(data, this);
1901
+ }
1902
+
1903
+ static readonly runtime: typeof proto3 = proto3;
1904
+ static readonly typeName = "raystack.siren.v1beta1.UpdateReceiverRequest";
1905
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1906
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1907
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1908
+ { no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1909
+ { no: 4, name: "configurations", kind: "message", T: Struct },
1910
+ ]);
1911
+
1912
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateReceiverRequest {
1913
+ return new UpdateReceiverRequest().fromBinary(bytes, options);
1914
+ }
1915
+
1916
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateReceiverRequest {
1917
+ return new UpdateReceiverRequest().fromJson(jsonValue, options);
1918
+ }
1919
+
1920
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateReceiverRequest {
1921
+ return new UpdateReceiverRequest().fromJsonString(jsonString, options);
1922
+ }
1923
+
1924
+ static equals(a: UpdateReceiverRequest | PlainMessage<UpdateReceiverRequest> | undefined, b: UpdateReceiverRequest | PlainMessage<UpdateReceiverRequest> | undefined): boolean {
1925
+ return proto3.util.equals(UpdateReceiverRequest, a, b);
1926
+ }
1927
+ }
1928
+
1929
+ /**
1930
+ * @generated from message raystack.siren.v1beta1.UpdateReceiverResponse
1931
+ */
1932
+ export class UpdateReceiverResponse extends Message<UpdateReceiverResponse> {
1933
+ /**
1934
+ * @generated from field: uint64 id = 1;
1935
+ */
1936
+ id = protoInt64.zero;
1937
+
1938
+ constructor(data?: PartialMessage<UpdateReceiverResponse>) {
1939
+ super();
1940
+ proto3.util.initPartial(data, this);
1941
+ }
1942
+
1943
+ static readonly runtime: typeof proto3 = proto3;
1944
+ static readonly typeName = "raystack.siren.v1beta1.UpdateReceiverResponse";
1945
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1946
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1947
+ ]);
1948
+
1949
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateReceiverResponse {
1950
+ return new UpdateReceiverResponse().fromBinary(bytes, options);
1951
+ }
1952
+
1953
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateReceiverResponse {
1954
+ return new UpdateReceiverResponse().fromJson(jsonValue, options);
1955
+ }
1956
+
1957
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateReceiverResponse {
1958
+ return new UpdateReceiverResponse().fromJsonString(jsonString, options);
1959
+ }
1960
+
1961
+ static equals(a: UpdateReceiverResponse | PlainMessage<UpdateReceiverResponse> | undefined, b: UpdateReceiverResponse | PlainMessage<UpdateReceiverResponse> | undefined): boolean {
1962
+ return proto3.util.equals(UpdateReceiverResponse, a, b);
1963
+ }
1964
+ }
1965
+
1966
+ /**
1967
+ * @generated from message raystack.siren.v1beta1.DeleteReceiverRequest
1968
+ */
1969
+ export class DeleteReceiverRequest extends Message<DeleteReceiverRequest> {
1970
+ /**
1971
+ * @generated from field: uint64 id = 1;
1972
+ */
1973
+ id = protoInt64.zero;
1974
+
1975
+ constructor(data?: PartialMessage<DeleteReceiverRequest>) {
1976
+ super();
1977
+ proto3.util.initPartial(data, this);
1978
+ }
1979
+
1980
+ static readonly runtime: typeof proto3 = proto3;
1981
+ static readonly typeName = "raystack.siren.v1beta1.DeleteReceiverRequest";
1982
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1983
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1984
+ ]);
1985
+
1986
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteReceiverRequest {
1987
+ return new DeleteReceiverRequest().fromBinary(bytes, options);
1988
+ }
1989
+
1990
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteReceiverRequest {
1991
+ return new DeleteReceiverRequest().fromJson(jsonValue, options);
1992
+ }
1993
+
1994
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteReceiverRequest {
1995
+ return new DeleteReceiverRequest().fromJsonString(jsonString, options);
1996
+ }
1997
+
1998
+ static equals(a: DeleteReceiverRequest | PlainMessage<DeleteReceiverRequest> | undefined, b: DeleteReceiverRequest | PlainMessage<DeleteReceiverRequest> | undefined): boolean {
1999
+ return proto3.util.equals(DeleteReceiverRequest, a, b);
2000
+ }
2001
+ }
2002
+
2003
+ /**
2004
+ * @generated from message raystack.siren.v1beta1.DeleteReceiverResponse
2005
+ */
2006
+ export class DeleteReceiverResponse extends Message<DeleteReceiverResponse> {
2007
+ constructor(data?: PartialMessage<DeleteReceiverResponse>) {
2008
+ super();
2009
+ proto3.util.initPartial(data, this);
2010
+ }
2011
+
2012
+ static readonly runtime: typeof proto3 = proto3;
2013
+ static readonly typeName = "raystack.siren.v1beta1.DeleteReceiverResponse";
2014
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2015
+ ]);
2016
+
2017
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteReceiverResponse {
2018
+ return new DeleteReceiverResponse().fromBinary(bytes, options);
2019
+ }
2020
+
2021
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteReceiverResponse {
2022
+ return new DeleteReceiverResponse().fromJson(jsonValue, options);
2023
+ }
2024
+
2025
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteReceiverResponse {
2026
+ return new DeleteReceiverResponse().fromJsonString(jsonString, options);
2027
+ }
2028
+
2029
+ static equals(a: DeleteReceiverResponse | PlainMessage<DeleteReceiverResponse> | undefined, b: DeleteReceiverResponse | PlainMessage<DeleteReceiverResponse> | undefined): boolean {
2030
+ return proto3.util.equals(DeleteReceiverResponse, a, b);
2031
+ }
2032
+ }
2033
+
2034
+ /**
2035
+ * @generated from message raystack.siren.v1beta1.NotifyReceiverRequest
2036
+ */
2037
+ export class NotifyReceiverRequest extends Message<NotifyReceiverRequest> {
2038
+ /**
2039
+ * @generated from field: uint64 id = 1;
2040
+ */
2041
+ id = protoInt64.zero;
2042
+
2043
+ /**
2044
+ * @generated from field: google.protobuf.Struct payload = 2;
2045
+ */
2046
+ payload?: Struct;
2047
+
2048
+ constructor(data?: PartialMessage<NotifyReceiverRequest>) {
2049
+ super();
2050
+ proto3.util.initPartial(data, this);
2051
+ }
2052
+
2053
+ static readonly runtime: typeof proto3 = proto3;
2054
+ static readonly typeName = "raystack.siren.v1beta1.NotifyReceiverRequest";
2055
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2056
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2057
+ { no: 2, name: "payload", kind: "message", T: Struct },
2058
+ ]);
2059
+
2060
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NotifyReceiverRequest {
2061
+ return new NotifyReceiverRequest().fromBinary(bytes, options);
2062
+ }
2063
+
2064
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NotifyReceiverRequest {
2065
+ return new NotifyReceiverRequest().fromJson(jsonValue, options);
2066
+ }
2067
+
2068
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NotifyReceiverRequest {
2069
+ return new NotifyReceiverRequest().fromJsonString(jsonString, options);
2070
+ }
2071
+
2072
+ static equals(a: NotifyReceiverRequest | PlainMessage<NotifyReceiverRequest> | undefined, b: NotifyReceiverRequest | PlainMessage<NotifyReceiverRequest> | undefined): boolean {
2073
+ return proto3.util.equals(NotifyReceiverRequest, a, b);
2074
+ }
2075
+ }
2076
+
2077
+ /**
2078
+ * @generated from message raystack.siren.v1beta1.NotifyReceiverResponse
2079
+ */
2080
+ export class NotifyReceiverResponse extends Message<NotifyReceiverResponse> {
2081
+ constructor(data?: PartialMessage<NotifyReceiverResponse>) {
2082
+ super();
2083
+ proto3.util.initPartial(data, this);
2084
+ }
2085
+
2086
+ static readonly runtime: typeof proto3 = proto3;
2087
+ static readonly typeName = "raystack.siren.v1beta1.NotifyReceiverResponse";
2088
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2089
+ ]);
2090
+
2091
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NotifyReceiverResponse {
2092
+ return new NotifyReceiverResponse().fromBinary(bytes, options);
2093
+ }
2094
+
2095
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NotifyReceiverResponse {
2096
+ return new NotifyReceiverResponse().fromJson(jsonValue, options);
2097
+ }
2098
+
2099
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NotifyReceiverResponse {
2100
+ return new NotifyReceiverResponse().fromJsonString(jsonString, options);
2101
+ }
2102
+
2103
+ static equals(a: NotifyReceiverResponse | PlainMessage<NotifyReceiverResponse> | undefined, b: NotifyReceiverResponse | PlainMessage<NotifyReceiverResponse> | undefined): boolean {
2104
+ return proto3.util.equals(NotifyReceiverResponse, a, b);
2105
+ }
2106
+ }
2107
+
2108
+ /**
2109
+ * @generated from message raystack.siren.v1beta1.Alert
2110
+ */
2111
+ export class Alert extends Message<Alert> {
2112
+ /**
2113
+ * @generated from field: uint64 id = 1;
2114
+ */
2115
+ id = protoInt64.zero;
2116
+
2117
+ /**
2118
+ * @generated from field: uint64 provider_id = 2;
2119
+ */
2120
+ providerId = protoInt64.zero;
2121
+
2122
+ /**
2123
+ * @generated from field: string resource_name = 3;
2124
+ */
2125
+ resourceName = "";
2126
+
2127
+ /**
2128
+ * @generated from field: string metric_name = 4;
2129
+ */
2130
+ metricName = "";
2131
+
2132
+ /**
2133
+ * @generated from field: string metric_value = 5;
2134
+ */
2135
+ metricValue = "";
2136
+
2137
+ /**
2138
+ * @generated from field: string severity = 6;
2139
+ */
2140
+ severity = "";
2141
+
2142
+ /**
2143
+ * @generated from field: string rule = 7;
2144
+ */
2145
+ rule = "";
2146
+
2147
+ /**
2148
+ * @generated from field: google.protobuf.Timestamp triggered_at = 8;
2149
+ */
2150
+ triggeredAt?: Timestamp;
2151
+
2152
+ /**
2153
+ * @generated from field: uint64 namespace_id = 9;
2154
+ */
2155
+ namespaceId = protoInt64.zero;
2156
+
2157
+ /**
2158
+ * @generated from field: string silence_status = 10;
2159
+ */
2160
+ silenceStatus = "";
2161
+
2162
+ constructor(data?: PartialMessage<Alert>) {
2163
+ super();
2164
+ proto3.util.initPartial(data, this);
2165
+ }
2166
+
2167
+ static readonly runtime: typeof proto3 = proto3;
2168
+ static readonly typeName = "raystack.siren.v1beta1.Alert";
2169
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2170
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2171
+ { no: 2, name: "provider_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2172
+ { no: 3, name: "resource_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2173
+ { no: 4, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2174
+ { no: 5, name: "metric_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2175
+ { no: 6, name: "severity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2176
+ { no: 7, name: "rule", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2177
+ { no: 8, name: "triggered_at", kind: "message", T: Timestamp },
2178
+ { no: 9, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2179
+ { no: 10, name: "silence_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2180
+ ]);
2181
+
2182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Alert {
2183
+ return new Alert().fromBinary(bytes, options);
2184
+ }
2185
+
2186
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Alert {
2187
+ return new Alert().fromJson(jsonValue, options);
2188
+ }
2189
+
2190
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Alert {
2191
+ return new Alert().fromJsonString(jsonString, options);
2192
+ }
2193
+
2194
+ static equals(a: Alert | PlainMessage<Alert> | undefined, b: Alert | PlainMessage<Alert> | undefined): boolean {
2195
+ return proto3.util.equals(Alert, a, b);
2196
+ }
2197
+ }
2198
+
2199
+ /**
2200
+ * @generated from message raystack.siren.v1beta1.ListAlertsRequest
2201
+ */
2202
+ export class ListAlertsRequest extends Message<ListAlertsRequest> {
2203
+ /**
2204
+ * @generated from field: string provider_type = 1;
2205
+ */
2206
+ providerType = "";
2207
+
2208
+ /**
2209
+ * @generated from field: uint64 provider_id = 2;
2210
+ */
2211
+ providerId = protoInt64.zero;
2212
+
2213
+ /**
2214
+ * @generated from field: string resource_name = 3;
2215
+ */
2216
+ resourceName = "";
2217
+
2218
+ /**
2219
+ * @generated from field: uint64 start_time = 4;
2220
+ */
2221
+ startTime = protoInt64.zero;
2222
+
2223
+ /**
2224
+ * @generated from field: uint64 end_time = 5;
2225
+ */
2226
+ endTime = protoInt64.zero;
2227
+
2228
+ /**
2229
+ * @generated from field: uint64 namespace_id = 6;
2230
+ */
2231
+ namespaceId = protoInt64.zero;
2232
+
2233
+ /**
2234
+ * @generated from field: string silence_id = 7;
2235
+ */
2236
+ silenceId = "";
2237
+
2238
+ constructor(data?: PartialMessage<ListAlertsRequest>) {
2239
+ super();
2240
+ proto3.util.initPartial(data, this);
2241
+ }
2242
+
2243
+ static readonly runtime: typeof proto3 = proto3;
2244
+ static readonly typeName = "raystack.siren.v1beta1.ListAlertsRequest";
2245
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2246
+ { no: 1, name: "provider_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2247
+ { no: 2, name: "provider_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2248
+ { no: 3, name: "resource_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2249
+ { no: 4, name: "start_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2250
+ { no: 5, name: "end_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2251
+ { no: 6, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2252
+ { no: 7, name: "silence_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2253
+ ]);
2254
+
2255
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAlertsRequest {
2256
+ return new ListAlertsRequest().fromBinary(bytes, options);
2257
+ }
2258
+
2259
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAlertsRequest {
2260
+ return new ListAlertsRequest().fromJson(jsonValue, options);
2261
+ }
2262
+
2263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAlertsRequest {
2264
+ return new ListAlertsRequest().fromJsonString(jsonString, options);
2265
+ }
2266
+
2267
+ static equals(a: ListAlertsRequest | PlainMessage<ListAlertsRequest> | undefined, b: ListAlertsRequest | PlainMessage<ListAlertsRequest> | undefined): boolean {
2268
+ return proto3.util.equals(ListAlertsRequest, a, b);
2269
+ }
2270
+ }
2271
+
2272
+ /**
2273
+ * @generated from message raystack.siren.v1beta1.ListAlertsResponse
2274
+ */
2275
+ export class ListAlertsResponse extends Message<ListAlertsResponse> {
2276
+ /**
2277
+ * @generated from field: repeated raystack.siren.v1beta1.Alert alerts = 1;
2278
+ */
2279
+ alerts: Alert[] = [];
2280
+
2281
+ constructor(data?: PartialMessage<ListAlertsResponse>) {
2282
+ super();
2283
+ proto3.util.initPartial(data, this);
2284
+ }
2285
+
2286
+ static readonly runtime: typeof proto3 = proto3;
2287
+ static readonly typeName = "raystack.siren.v1beta1.ListAlertsResponse";
2288
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2289
+ { no: 1, name: "alerts", kind: "message", T: Alert, repeated: true },
2290
+ ]);
2291
+
2292
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAlertsResponse {
2293
+ return new ListAlertsResponse().fromBinary(bytes, options);
2294
+ }
2295
+
2296
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAlertsResponse {
2297
+ return new ListAlertsResponse().fromJson(jsonValue, options);
2298
+ }
2299
+
2300
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAlertsResponse {
2301
+ return new ListAlertsResponse().fromJsonString(jsonString, options);
2302
+ }
2303
+
2304
+ static equals(a: ListAlertsResponse | PlainMessage<ListAlertsResponse> | undefined, b: ListAlertsResponse | PlainMessage<ListAlertsResponse> | undefined): boolean {
2305
+ return proto3.util.equals(ListAlertsResponse, a, b);
2306
+ }
2307
+ }
2308
+
2309
+ /**
2310
+ * @generated from message raystack.siren.v1beta1.CreateAlertsRequest
2311
+ */
2312
+ export class CreateAlertsRequest extends Message<CreateAlertsRequest> {
2313
+ /**
2314
+ * @generated from field: string provider_type = 1;
2315
+ */
2316
+ providerType = "";
2317
+
2318
+ /**
2319
+ * @generated from field: uint64 provider_id = 2;
2320
+ */
2321
+ providerId = protoInt64.zero;
2322
+
2323
+ /**
2324
+ * @generated from field: google.protobuf.Struct body = 3;
2325
+ */
2326
+ body?: Struct;
2327
+
2328
+ constructor(data?: PartialMessage<CreateAlertsRequest>) {
2329
+ super();
2330
+ proto3.util.initPartial(data, this);
2331
+ }
2332
+
2333
+ static readonly runtime: typeof proto3 = proto3;
2334
+ static readonly typeName = "raystack.siren.v1beta1.CreateAlertsRequest";
2335
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2336
+ { no: 1, name: "provider_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2337
+ { no: 2, name: "provider_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2338
+ { no: 3, name: "body", kind: "message", T: Struct },
2339
+ ]);
2340
+
2341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAlertsRequest {
2342
+ return new CreateAlertsRequest().fromBinary(bytes, options);
2343
+ }
2344
+
2345
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAlertsRequest {
2346
+ return new CreateAlertsRequest().fromJson(jsonValue, options);
2347
+ }
2348
+
2349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAlertsRequest {
2350
+ return new CreateAlertsRequest().fromJsonString(jsonString, options);
2351
+ }
2352
+
2353
+ static equals(a: CreateAlertsRequest | PlainMessage<CreateAlertsRequest> | undefined, b: CreateAlertsRequest | PlainMessage<CreateAlertsRequest> | undefined): boolean {
2354
+ return proto3.util.equals(CreateAlertsRequest, a, b);
2355
+ }
2356
+ }
2357
+
2358
+ /**
2359
+ * @generated from message raystack.siren.v1beta1.CreateAlertsResponse
2360
+ */
2361
+ export class CreateAlertsResponse extends Message<CreateAlertsResponse> {
2362
+ /**
2363
+ * @generated from field: repeated raystack.siren.v1beta1.Alert alerts = 1;
2364
+ */
2365
+ alerts: Alert[] = [];
2366
+
2367
+ constructor(data?: PartialMessage<CreateAlertsResponse>) {
2368
+ super();
2369
+ proto3.util.initPartial(data, this);
2370
+ }
2371
+
2372
+ static readonly runtime: typeof proto3 = proto3;
2373
+ static readonly typeName = "raystack.siren.v1beta1.CreateAlertsResponse";
2374
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2375
+ { no: 1, name: "alerts", kind: "message", T: Alert, repeated: true },
2376
+ ]);
2377
+
2378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAlertsResponse {
2379
+ return new CreateAlertsResponse().fromBinary(bytes, options);
2380
+ }
2381
+
2382
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAlertsResponse {
2383
+ return new CreateAlertsResponse().fromJson(jsonValue, options);
2384
+ }
2385
+
2386
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAlertsResponse {
2387
+ return new CreateAlertsResponse().fromJsonString(jsonString, options);
2388
+ }
2389
+
2390
+ static equals(a: CreateAlertsResponse | PlainMessage<CreateAlertsResponse> | undefined, b: CreateAlertsResponse | PlainMessage<CreateAlertsResponse> | undefined): boolean {
2391
+ return proto3.util.equals(CreateAlertsResponse, a, b);
2392
+ }
2393
+ }
2394
+
2395
+ /**
2396
+ * @generated from message raystack.siren.v1beta1.CreateAlertsWithNamespaceRequest
2397
+ */
2398
+ export class CreateAlertsWithNamespaceRequest extends Message<CreateAlertsWithNamespaceRequest> {
2399
+ /**
2400
+ * @generated from field: string provider_type = 1;
2401
+ */
2402
+ providerType = "";
2403
+
2404
+ /**
2405
+ * @generated from field: uint64 provider_id = 2;
2406
+ */
2407
+ providerId = protoInt64.zero;
2408
+
2409
+ /**
2410
+ * @generated from field: google.protobuf.Struct body = 3;
2411
+ */
2412
+ body?: Struct;
2413
+
2414
+ /**
2415
+ * @generated from field: uint64 namespace_id = 4;
2416
+ */
2417
+ namespaceId = protoInt64.zero;
2418
+
2419
+ constructor(data?: PartialMessage<CreateAlertsWithNamespaceRequest>) {
2420
+ super();
2421
+ proto3.util.initPartial(data, this);
2422
+ }
2423
+
2424
+ static readonly runtime: typeof proto3 = proto3;
2425
+ static readonly typeName = "raystack.siren.v1beta1.CreateAlertsWithNamespaceRequest";
2426
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2427
+ { no: 1, name: "provider_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2428
+ { no: 2, name: "provider_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2429
+ { no: 3, name: "body", kind: "message", T: Struct },
2430
+ { no: 4, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2431
+ ]);
2432
+
2433
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAlertsWithNamespaceRequest {
2434
+ return new CreateAlertsWithNamespaceRequest().fromBinary(bytes, options);
2435
+ }
2436
+
2437
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAlertsWithNamespaceRequest {
2438
+ return new CreateAlertsWithNamespaceRequest().fromJson(jsonValue, options);
2439
+ }
2440
+
2441
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAlertsWithNamespaceRequest {
2442
+ return new CreateAlertsWithNamespaceRequest().fromJsonString(jsonString, options);
2443
+ }
2444
+
2445
+ static equals(a: CreateAlertsWithNamespaceRequest | PlainMessage<CreateAlertsWithNamespaceRequest> | undefined, b: CreateAlertsWithNamespaceRequest | PlainMessage<CreateAlertsWithNamespaceRequest> | undefined): boolean {
2446
+ return proto3.util.equals(CreateAlertsWithNamespaceRequest, a, b);
2447
+ }
2448
+ }
2449
+
2450
+ /**
2451
+ * @generated from message raystack.siren.v1beta1.CreateAlertsWithNamespaceResponse
2452
+ */
2453
+ export class CreateAlertsWithNamespaceResponse extends Message<CreateAlertsWithNamespaceResponse> {
2454
+ /**
2455
+ * @generated from field: repeated raystack.siren.v1beta1.Alert alerts = 1;
2456
+ */
2457
+ alerts: Alert[] = [];
2458
+
2459
+ constructor(data?: PartialMessage<CreateAlertsWithNamespaceResponse>) {
2460
+ super();
2461
+ proto3.util.initPartial(data, this);
2462
+ }
2463
+
2464
+ static readonly runtime: typeof proto3 = proto3;
2465
+ static readonly typeName = "raystack.siren.v1beta1.CreateAlertsWithNamespaceResponse";
2466
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2467
+ { no: 1, name: "alerts", kind: "message", T: Alert, repeated: true },
2468
+ ]);
2469
+
2470
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAlertsWithNamespaceResponse {
2471
+ return new CreateAlertsWithNamespaceResponse().fromBinary(bytes, options);
2472
+ }
2473
+
2474
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAlertsWithNamespaceResponse {
2475
+ return new CreateAlertsWithNamespaceResponse().fromJson(jsonValue, options);
2476
+ }
2477
+
2478
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAlertsWithNamespaceResponse {
2479
+ return new CreateAlertsWithNamespaceResponse().fromJsonString(jsonString, options);
2480
+ }
2481
+
2482
+ static equals(a: CreateAlertsWithNamespaceResponse | PlainMessage<CreateAlertsWithNamespaceResponse> | undefined, b: CreateAlertsWithNamespaceResponse | PlainMessage<CreateAlertsWithNamespaceResponse> | undefined): boolean {
2483
+ return proto3.util.equals(CreateAlertsWithNamespaceResponse, a, b);
2484
+ }
2485
+ }
2486
+
2487
+ /**
2488
+ * @generated from message raystack.siren.v1beta1.Annotations
2489
+ */
2490
+ export class Annotations extends Message<Annotations> {
2491
+ /**
2492
+ * @generated from field: string metric_name = 1;
2493
+ */
2494
+ metricName = "";
2495
+
2496
+ /**
2497
+ * @generated from field: string metric_value = 2;
2498
+ */
2499
+ metricValue = "";
2500
+
2501
+ /**
2502
+ * @generated from field: string resource = 3;
2503
+ */
2504
+ resource = "";
2505
+
2506
+ /**
2507
+ * @generated from field: string template = 4;
2508
+ */
2509
+ template = "";
2510
+
2511
+ constructor(data?: PartialMessage<Annotations>) {
2512
+ super();
2513
+ proto3.util.initPartial(data, this);
2514
+ }
2515
+
2516
+ static readonly runtime: typeof proto3 = proto3;
2517
+ static readonly typeName = "raystack.siren.v1beta1.Annotations";
2518
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2519
+ { no: 1, name: "metric_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2520
+ { no: 2, name: "metric_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2521
+ { no: 3, name: "resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2522
+ { no: 4, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2523
+ ]);
2524
+
2525
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Annotations {
2526
+ return new Annotations().fromBinary(bytes, options);
2527
+ }
2528
+
2529
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Annotations {
2530
+ return new Annotations().fromJson(jsonValue, options);
2531
+ }
2532
+
2533
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Annotations {
2534
+ return new Annotations().fromJsonString(jsonString, options);
2535
+ }
2536
+
2537
+ static equals(a: Annotations | PlainMessage<Annotations> | undefined, b: Annotations | PlainMessage<Annotations> | undefined): boolean {
2538
+ return proto3.util.equals(Annotations, a, b);
2539
+ }
2540
+ }
2541
+
2542
+ /**
2543
+ * @generated from message raystack.siren.v1beta1.Labels
2544
+ */
2545
+ export class Labels extends Message<Labels> {
2546
+ /**
2547
+ * @generated from field: string severity = 1;
2548
+ */
2549
+ severity = "";
2550
+
2551
+ constructor(data?: PartialMessage<Labels>) {
2552
+ super();
2553
+ proto3.util.initPartial(data, this);
2554
+ }
2555
+
2556
+ static readonly runtime: typeof proto3 = proto3;
2557
+ static readonly typeName = "raystack.siren.v1beta1.Labels";
2558
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2559
+ { no: 1, name: "severity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2560
+ ]);
2561
+
2562
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Labels {
2563
+ return new Labels().fromBinary(bytes, options);
2564
+ }
2565
+
2566
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Labels {
2567
+ return new Labels().fromJson(jsonValue, options);
2568
+ }
2569
+
2570
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Labels {
2571
+ return new Labels().fromJsonString(jsonString, options);
2572
+ }
2573
+
2574
+ static equals(a: Labels | PlainMessage<Labels> | undefined, b: Labels | PlainMessage<Labels> | undefined): boolean {
2575
+ return proto3.util.equals(Labels, a, b);
2576
+ }
2577
+ }
2578
+
2579
+ /**
2580
+ * @generated from message raystack.siren.v1beta1.Rule
2581
+ */
2582
+ export class Rule extends Message<Rule> {
2583
+ /**
2584
+ * @generated from field: uint64 id = 1;
2585
+ */
2586
+ id = protoInt64.zero;
2587
+
2588
+ /**
2589
+ * @generated from field: string name = 2;
2590
+ */
2591
+ name = "";
2592
+
2593
+ /**
2594
+ * @generated from field: bool enabled = 3;
2595
+ */
2596
+ enabled = false;
2597
+
2598
+ /**
2599
+ * @generated from field: string group_name = 4;
2600
+ */
2601
+ groupName = "";
2602
+
2603
+ /**
2604
+ * @generated from field: string namespace = 5;
2605
+ */
2606
+ namespace = "";
2607
+
2608
+ /**
2609
+ * @generated from field: string template = 6;
2610
+ */
2611
+ template = "";
2612
+
2613
+ /**
2614
+ * @generated from field: repeated raystack.siren.v1beta1.Variables variables = 7;
2615
+ */
2616
+ variables: Variables[] = [];
2617
+
2618
+ /**
2619
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
2620
+ */
2621
+ createdAt?: Timestamp;
2622
+
2623
+ /**
2624
+ * @generated from field: google.protobuf.Timestamp updated_at = 9;
2625
+ */
2626
+ updatedAt?: Timestamp;
2627
+
2628
+ /**
2629
+ * @generated from field: uint64 provider_namespace = 10;
2630
+ */
2631
+ providerNamespace = protoInt64.zero;
2632
+
2633
+ constructor(data?: PartialMessage<Rule>) {
2634
+ super();
2635
+ proto3.util.initPartial(data, this);
2636
+ }
2637
+
2638
+ static readonly runtime: typeof proto3 = proto3;
2639
+ static readonly typeName = "raystack.siren.v1beta1.Rule";
2640
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2641
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2642
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2643
+ { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2644
+ { no: 4, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2645
+ { no: 5, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2646
+ { no: 6, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2647
+ { no: 7, name: "variables", kind: "message", T: Variables, repeated: true },
2648
+ { no: 8, name: "created_at", kind: "message", T: Timestamp },
2649
+ { no: 9, name: "updated_at", kind: "message", T: Timestamp },
2650
+ { no: 10, name: "provider_namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2651
+ ]);
2652
+
2653
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Rule {
2654
+ return new Rule().fromBinary(bytes, options);
2655
+ }
2656
+
2657
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Rule {
2658
+ return new Rule().fromJson(jsonValue, options);
2659
+ }
2660
+
2661
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Rule {
2662
+ return new Rule().fromJsonString(jsonString, options);
2663
+ }
2664
+
2665
+ static equals(a: Rule | PlainMessage<Rule> | undefined, b: Rule | PlainMessage<Rule> | undefined): boolean {
2666
+ return proto3.util.equals(Rule, a, b);
2667
+ }
2668
+ }
2669
+
2670
+ /**
2671
+ * @generated from message raystack.siren.v1beta1.Variables
2672
+ */
2673
+ export class Variables extends Message<Variables> {
2674
+ /**
2675
+ * @generated from field: string name = 1;
2676
+ */
2677
+ name = "";
2678
+
2679
+ /**
2680
+ * @generated from field: string value = 2;
2681
+ */
2682
+ value = "";
2683
+
2684
+ /**
2685
+ * @generated from field: string type = 3;
2686
+ */
2687
+ type = "";
2688
+
2689
+ /**
2690
+ * @generated from field: string description = 4;
2691
+ */
2692
+ description = "";
2693
+
2694
+ constructor(data?: PartialMessage<Variables>) {
2695
+ super();
2696
+ proto3.util.initPartial(data, this);
2697
+ }
2698
+
2699
+ static readonly runtime: typeof proto3 = proto3;
2700
+ static readonly typeName = "raystack.siren.v1beta1.Variables";
2701
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2702
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2703
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2704
+ { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2705
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2706
+ ]);
2707
+
2708
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Variables {
2709
+ return new Variables().fromBinary(bytes, options);
2710
+ }
2711
+
2712
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Variables {
2713
+ return new Variables().fromJson(jsonValue, options);
2714
+ }
2715
+
2716
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Variables {
2717
+ return new Variables().fromJsonString(jsonString, options);
2718
+ }
2719
+
2720
+ static equals(a: Variables | PlainMessage<Variables> | undefined, b: Variables | PlainMessage<Variables> | undefined): boolean {
2721
+ return proto3.util.equals(Variables, a, b);
2722
+ }
2723
+ }
2724
+
2725
+ /**
2726
+ * @generated from message raystack.siren.v1beta1.ListRulesRequest
2727
+ */
2728
+ export class ListRulesRequest extends Message<ListRulesRequest> {
2729
+ /**
2730
+ * @generated from field: string name = 1;
2731
+ */
2732
+ name = "";
2733
+
2734
+ /**
2735
+ * @generated from field: string namespace = 2;
2736
+ */
2737
+ namespace = "";
2738
+
2739
+ /**
2740
+ * @generated from field: string group_name = 3;
2741
+ */
2742
+ groupName = "";
2743
+
2744
+ /**
2745
+ * @generated from field: string template = 4;
2746
+ */
2747
+ template = "";
2748
+
2749
+ /**
2750
+ * @generated from field: uint64 provider_namespace = 5;
2751
+ */
2752
+ providerNamespace = protoInt64.zero;
2753
+
2754
+ constructor(data?: PartialMessage<ListRulesRequest>) {
2755
+ super();
2756
+ proto3.util.initPartial(data, this);
2757
+ }
2758
+
2759
+ static readonly runtime: typeof proto3 = proto3;
2760
+ static readonly typeName = "raystack.siren.v1beta1.ListRulesRequest";
2761
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2762
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2763
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2764
+ { no: 3, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2765
+ { no: 4, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2766
+ { no: 5, name: "provider_namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2767
+ ]);
2768
+
2769
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRulesRequest {
2770
+ return new ListRulesRequest().fromBinary(bytes, options);
2771
+ }
2772
+
2773
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRulesRequest {
2774
+ return new ListRulesRequest().fromJson(jsonValue, options);
2775
+ }
2776
+
2777
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRulesRequest {
2778
+ return new ListRulesRequest().fromJsonString(jsonString, options);
2779
+ }
2780
+
2781
+ static equals(a: ListRulesRequest | PlainMessage<ListRulesRequest> | undefined, b: ListRulesRequest | PlainMessage<ListRulesRequest> | undefined): boolean {
2782
+ return proto3.util.equals(ListRulesRequest, a, b);
2783
+ }
2784
+ }
2785
+
2786
+ /**
2787
+ * @generated from message raystack.siren.v1beta1.ListRulesResponse
2788
+ */
2789
+ export class ListRulesResponse extends Message<ListRulesResponse> {
2790
+ /**
2791
+ * @generated from field: repeated raystack.siren.v1beta1.Rule rules = 1;
2792
+ */
2793
+ rules: Rule[] = [];
2794
+
2795
+ constructor(data?: PartialMessage<ListRulesResponse>) {
2796
+ super();
2797
+ proto3.util.initPartial(data, this);
2798
+ }
2799
+
2800
+ static readonly runtime: typeof proto3 = proto3;
2801
+ static readonly typeName = "raystack.siren.v1beta1.ListRulesResponse";
2802
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2803
+ { no: 1, name: "rules", kind: "message", T: Rule, repeated: true },
2804
+ ]);
2805
+
2806
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRulesResponse {
2807
+ return new ListRulesResponse().fromBinary(bytes, options);
2808
+ }
2809
+
2810
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRulesResponse {
2811
+ return new ListRulesResponse().fromJson(jsonValue, options);
2812
+ }
2813
+
2814
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRulesResponse {
2815
+ return new ListRulesResponse().fromJsonString(jsonString, options);
2816
+ }
2817
+
2818
+ static equals(a: ListRulesResponse | PlainMessage<ListRulesResponse> | undefined, b: ListRulesResponse | PlainMessage<ListRulesResponse> | undefined): boolean {
2819
+ return proto3.util.equals(ListRulesResponse, a, b);
2820
+ }
2821
+ }
2822
+
2823
+ /**
2824
+ * @generated from message raystack.siren.v1beta1.UpdateRuleRequest
2825
+ */
2826
+ export class UpdateRuleRequest extends Message<UpdateRuleRequest> {
2827
+ /**
2828
+ * @generated from field: bool enabled = 1;
2829
+ */
2830
+ enabled = false;
2831
+
2832
+ /**
2833
+ * @generated from field: string group_name = 2;
2834
+ */
2835
+ groupName = "";
2836
+
2837
+ /**
2838
+ * @generated from field: string namespace = 3;
2839
+ */
2840
+ namespace = "";
2841
+
2842
+ /**
2843
+ * @generated from field: string template = 4;
2844
+ */
2845
+ template = "";
2846
+
2847
+ /**
2848
+ * @generated from field: repeated raystack.siren.v1beta1.Variables variables = 5;
2849
+ */
2850
+ variables: Variables[] = [];
2851
+
2852
+ /**
2853
+ * @generated from field: uint64 provider_namespace = 6;
2854
+ */
2855
+ providerNamespace = protoInt64.zero;
2856
+
2857
+ constructor(data?: PartialMessage<UpdateRuleRequest>) {
2858
+ super();
2859
+ proto3.util.initPartial(data, this);
2860
+ }
2861
+
2862
+ static readonly runtime: typeof proto3 = proto3;
2863
+ static readonly typeName = "raystack.siren.v1beta1.UpdateRuleRequest";
2864
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2865
+ { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2866
+ { no: 2, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2867
+ { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2868
+ { no: 4, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2869
+ { no: 5, name: "variables", kind: "message", T: Variables, repeated: true },
2870
+ { no: 6, name: "provider_namespace", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2871
+ ]);
2872
+
2873
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRuleRequest {
2874
+ return new UpdateRuleRequest().fromBinary(bytes, options);
2875
+ }
2876
+
2877
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRuleRequest {
2878
+ return new UpdateRuleRequest().fromJson(jsonValue, options);
2879
+ }
2880
+
2881
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRuleRequest {
2882
+ return new UpdateRuleRequest().fromJsonString(jsonString, options);
2883
+ }
2884
+
2885
+ static equals(a: UpdateRuleRequest | PlainMessage<UpdateRuleRequest> | undefined, b: UpdateRuleRequest | PlainMessage<UpdateRuleRequest> | undefined): boolean {
2886
+ return proto3.util.equals(UpdateRuleRequest, a, b);
2887
+ }
2888
+ }
2889
+
2890
+ /**
2891
+ * @generated from message raystack.siren.v1beta1.UpdateRuleResponse
2892
+ */
2893
+ export class UpdateRuleResponse extends Message<UpdateRuleResponse> {
2894
+ /**
2895
+ * @generated from field: raystack.siren.v1beta1.Rule rule = 1;
2896
+ */
2897
+ rule?: Rule;
2898
+
2899
+ constructor(data?: PartialMessage<UpdateRuleResponse>) {
2900
+ super();
2901
+ proto3.util.initPartial(data, this);
2902
+ }
2903
+
2904
+ static readonly runtime: typeof proto3 = proto3;
2905
+ static readonly typeName = "raystack.siren.v1beta1.UpdateRuleResponse";
2906
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2907
+ { no: 1, name: "rule", kind: "message", T: Rule },
2908
+ ]);
2909
+
2910
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRuleResponse {
2911
+ return new UpdateRuleResponse().fromBinary(bytes, options);
2912
+ }
2913
+
2914
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRuleResponse {
2915
+ return new UpdateRuleResponse().fromJson(jsonValue, options);
2916
+ }
2917
+
2918
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRuleResponse {
2919
+ return new UpdateRuleResponse().fromJsonString(jsonString, options);
2920
+ }
2921
+
2922
+ static equals(a: UpdateRuleResponse | PlainMessage<UpdateRuleResponse> | undefined, b: UpdateRuleResponse | PlainMessage<UpdateRuleResponse> | undefined): boolean {
2923
+ return proto3.util.equals(UpdateRuleResponse, a, b);
2924
+ }
2925
+ }
2926
+
2927
+ /**
2928
+ * @generated from message raystack.siren.v1beta1.TemplateVariables
2929
+ */
2930
+ export class TemplateVariables extends Message<TemplateVariables> {
2931
+ /**
2932
+ * @generated from field: string name = 1;
2933
+ */
2934
+ name = "";
2935
+
2936
+ /**
2937
+ * @generated from field: string type = 2;
2938
+ */
2939
+ type = "";
2940
+
2941
+ /**
2942
+ * @generated from field: string default = 3;
2943
+ */
2944
+ default = "";
2945
+
2946
+ /**
2947
+ * @generated from field: string description = 4;
2948
+ */
2949
+ description = "";
2950
+
2951
+ constructor(data?: PartialMessage<TemplateVariables>) {
2952
+ super();
2953
+ proto3.util.initPartial(data, this);
2954
+ }
2955
+
2956
+ static readonly runtime: typeof proto3 = proto3;
2957
+ static readonly typeName = "raystack.siren.v1beta1.TemplateVariables";
2958
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2959
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2960
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2961
+ { no: 3, name: "default", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2962
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2963
+ ]);
2964
+
2965
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TemplateVariables {
2966
+ return new TemplateVariables().fromBinary(bytes, options);
2967
+ }
2968
+
2969
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TemplateVariables {
2970
+ return new TemplateVariables().fromJson(jsonValue, options);
2971
+ }
2972
+
2973
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TemplateVariables {
2974
+ return new TemplateVariables().fromJsonString(jsonString, options);
2975
+ }
2976
+
2977
+ static equals(a: TemplateVariables | PlainMessage<TemplateVariables> | undefined, b: TemplateVariables | PlainMessage<TemplateVariables> | undefined): boolean {
2978
+ return proto3.util.equals(TemplateVariables, a, b);
2979
+ }
2980
+ }
2981
+
2982
+ /**
2983
+ * @generated from message raystack.siren.v1beta1.Template
2984
+ */
2985
+ export class Template extends Message<Template> {
2986
+ /**
2987
+ * @generated from field: uint64 id = 1;
2988
+ */
2989
+ id = protoInt64.zero;
2990
+
2991
+ /**
2992
+ * @generated from field: string name = 2;
2993
+ */
2994
+ name = "";
2995
+
2996
+ /**
2997
+ * @generated from field: string body = 3;
2998
+ */
2999
+ body = "";
3000
+
3001
+ /**
3002
+ * @generated from field: repeated string tags = 4;
3003
+ */
3004
+ tags: string[] = [];
3005
+
3006
+ /**
3007
+ * @generated from field: google.protobuf.Timestamp created_at = 5;
3008
+ */
3009
+ createdAt?: Timestamp;
3010
+
3011
+ /**
3012
+ * @generated from field: google.protobuf.Timestamp updated_at = 6;
3013
+ */
3014
+ updatedAt?: Timestamp;
3015
+
3016
+ /**
3017
+ * @generated from field: repeated raystack.siren.v1beta1.TemplateVariables variables = 7;
3018
+ */
3019
+ variables: TemplateVariables[] = [];
3020
+
3021
+ constructor(data?: PartialMessage<Template>) {
3022
+ super();
3023
+ proto3.util.initPartial(data, this);
3024
+ }
3025
+
3026
+ static readonly runtime: typeof proto3 = proto3;
3027
+ static readonly typeName = "raystack.siren.v1beta1.Template";
3028
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3029
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3030
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3031
+ { no: 3, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3032
+ { no: 4, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3033
+ { no: 5, name: "created_at", kind: "message", T: Timestamp },
3034
+ { no: 6, name: "updated_at", kind: "message", T: Timestamp },
3035
+ { no: 7, name: "variables", kind: "message", T: TemplateVariables, repeated: true },
3036
+ ]);
3037
+
3038
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Template {
3039
+ return new Template().fromBinary(bytes, options);
3040
+ }
3041
+
3042
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Template {
3043
+ return new Template().fromJson(jsonValue, options);
3044
+ }
3045
+
3046
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Template {
3047
+ return new Template().fromJsonString(jsonString, options);
3048
+ }
3049
+
3050
+ static equals(a: Template | PlainMessage<Template> | undefined, b: Template | PlainMessage<Template> | undefined): boolean {
3051
+ return proto3.util.equals(Template, a, b);
3052
+ }
3053
+ }
3054
+
3055
+ /**
3056
+ * @generated from message raystack.siren.v1beta1.ListTemplatesRequest
3057
+ */
3058
+ export class ListTemplatesRequest extends Message<ListTemplatesRequest> {
3059
+ /**
3060
+ * @generated from field: string tag = 1;
3061
+ */
3062
+ tag = "";
3063
+
3064
+ constructor(data?: PartialMessage<ListTemplatesRequest>) {
3065
+ super();
3066
+ proto3.util.initPartial(data, this);
3067
+ }
3068
+
3069
+ static readonly runtime: typeof proto3 = proto3;
3070
+ static readonly typeName = "raystack.siren.v1beta1.ListTemplatesRequest";
3071
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3072
+ { no: 1, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3073
+ ]);
3074
+
3075
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTemplatesRequest {
3076
+ return new ListTemplatesRequest().fromBinary(bytes, options);
3077
+ }
3078
+
3079
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTemplatesRequest {
3080
+ return new ListTemplatesRequest().fromJson(jsonValue, options);
3081
+ }
3082
+
3083
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTemplatesRequest {
3084
+ return new ListTemplatesRequest().fromJsonString(jsonString, options);
3085
+ }
3086
+
3087
+ static equals(a: ListTemplatesRequest | PlainMessage<ListTemplatesRequest> | undefined, b: ListTemplatesRequest | PlainMessage<ListTemplatesRequest> | undefined): boolean {
3088
+ return proto3.util.equals(ListTemplatesRequest, a, b);
3089
+ }
3090
+ }
3091
+
3092
+ /**
3093
+ * @generated from message raystack.siren.v1beta1.ListTemplatesResponse
3094
+ */
3095
+ export class ListTemplatesResponse extends Message<ListTemplatesResponse> {
3096
+ /**
3097
+ * @generated from field: repeated raystack.siren.v1beta1.Template templates = 1;
3098
+ */
3099
+ templates: Template[] = [];
3100
+
3101
+ constructor(data?: PartialMessage<ListTemplatesResponse>) {
3102
+ super();
3103
+ proto3.util.initPartial(data, this);
3104
+ }
3105
+
3106
+ static readonly runtime: typeof proto3 = proto3;
3107
+ static readonly typeName = "raystack.siren.v1beta1.ListTemplatesResponse";
3108
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3109
+ { no: 1, name: "templates", kind: "message", T: Template, repeated: true },
3110
+ ]);
3111
+
3112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTemplatesResponse {
3113
+ return new ListTemplatesResponse().fromBinary(bytes, options);
3114
+ }
3115
+
3116
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTemplatesResponse {
3117
+ return new ListTemplatesResponse().fromJson(jsonValue, options);
3118
+ }
3119
+
3120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTemplatesResponse {
3121
+ return new ListTemplatesResponse().fromJsonString(jsonString, options);
3122
+ }
3123
+
3124
+ static equals(a: ListTemplatesResponse | PlainMessage<ListTemplatesResponse> | undefined, b: ListTemplatesResponse | PlainMessage<ListTemplatesResponse> | undefined): boolean {
3125
+ return proto3.util.equals(ListTemplatesResponse, a, b);
3126
+ }
3127
+ }
3128
+
3129
+ /**
3130
+ * @generated from message raystack.siren.v1beta1.UpsertTemplateRequest
3131
+ */
3132
+ export class UpsertTemplateRequest extends Message<UpsertTemplateRequest> {
3133
+ /**
3134
+ * @generated from field: uint64 id = 1;
3135
+ */
3136
+ id = protoInt64.zero;
3137
+
3138
+ /**
3139
+ * @generated from field: string name = 2;
3140
+ */
3141
+ name = "";
3142
+
3143
+ /**
3144
+ * @generated from field: string body = 3;
3145
+ */
3146
+ body = "";
3147
+
3148
+ /**
3149
+ * @generated from field: repeated string tags = 4;
3150
+ */
3151
+ tags: string[] = [];
3152
+
3153
+ /**
3154
+ * @generated from field: repeated raystack.siren.v1beta1.TemplateVariables variables = 5;
3155
+ */
3156
+ variables: TemplateVariables[] = [];
3157
+
3158
+ constructor(data?: PartialMessage<UpsertTemplateRequest>) {
3159
+ super();
3160
+ proto3.util.initPartial(data, this);
3161
+ }
3162
+
3163
+ static readonly runtime: typeof proto3 = proto3;
3164
+ static readonly typeName = "raystack.siren.v1beta1.UpsertTemplateRequest";
3165
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3166
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3167
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3168
+ { no: 3, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3169
+ { no: 4, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3170
+ { no: 5, name: "variables", kind: "message", T: TemplateVariables, repeated: true },
3171
+ ]);
3172
+
3173
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpsertTemplateRequest {
3174
+ return new UpsertTemplateRequest().fromBinary(bytes, options);
3175
+ }
3176
+
3177
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpsertTemplateRequest {
3178
+ return new UpsertTemplateRequest().fromJson(jsonValue, options);
3179
+ }
3180
+
3181
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpsertTemplateRequest {
3182
+ return new UpsertTemplateRequest().fromJsonString(jsonString, options);
3183
+ }
3184
+
3185
+ static equals(a: UpsertTemplateRequest | PlainMessage<UpsertTemplateRequest> | undefined, b: UpsertTemplateRequest | PlainMessage<UpsertTemplateRequest> | undefined): boolean {
3186
+ return proto3.util.equals(UpsertTemplateRequest, a, b);
3187
+ }
3188
+ }
3189
+
3190
+ /**
3191
+ * @generated from message raystack.siren.v1beta1.UpsertTemplateResponse
3192
+ */
3193
+ export class UpsertTemplateResponse extends Message<UpsertTemplateResponse> {
3194
+ /**
3195
+ * @generated from field: uint64 id = 1;
3196
+ */
3197
+ id = protoInt64.zero;
3198
+
3199
+ constructor(data?: PartialMessage<UpsertTemplateResponse>) {
3200
+ super();
3201
+ proto3.util.initPartial(data, this);
3202
+ }
3203
+
3204
+ static readonly runtime: typeof proto3 = proto3;
3205
+ static readonly typeName = "raystack.siren.v1beta1.UpsertTemplateResponse";
3206
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3207
+ { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3208
+ ]);
3209
+
3210
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpsertTemplateResponse {
3211
+ return new UpsertTemplateResponse().fromBinary(bytes, options);
3212
+ }
3213
+
3214
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpsertTemplateResponse {
3215
+ return new UpsertTemplateResponse().fromJson(jsonValue, options);
3216
+ }
3217
+
3218
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpsertTemplateResponse {
3219
+ return new UpsertTemplateResponse().fromJsonString(jsonString, options);
3220
+ }
3221
+
3222
+ static equals(a: UpsertTemplateResponse | PlainMessage<UpsertTemplateResponse> | undefined, b: UpsertTemplateResponse | PlainMessage<UpsertTemplateResponse> | undefined): boolean {
3223
+ return proto3.util.equals(UpsertTemplateResponse, a, b);
3224
+ }
3225
+ }
3226
+
3227
+ /**
3228
+ * @generated from message raystack.siren.v1beta1.GetTemplateRequest
3229
+ */
3230
+ export class GetTemplateRequest extends Message<GetTemplateRequest> {
3231
+ /**
3232
+ * @generated from field: string name = 1;
3233
+ */
3234
+ name = "";
3235
+
3236
+ constructor(data?: PartialMessage<GetTemplateRequest>) {
3237
+ super();
3238
+ proto3.util.initPartial(data, this);
3239
+ }
3240
+
3241
+ static readonly runtime: typeof proto3 = proto3;
3242
+ static readonly typeName = "raystack.siren.v1beta1.GetTemplateRequest";
3243
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3244
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3245
+ ]);
3246
+
3247
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTemplateRequest {
3248
+ return new GetTemplateRequest().fromBinary(bytes, options);
3249
+ }
3250
+
3251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTemplateRequest {
3252
+ return new GetTemplateRequest().fromJson(jsonValue, options);
3253
+ }
3254
+
3255
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTemplateRequest {
3256
+ return new GetTemplateRequest().fromJsonString(jsonString, options);
3257
+ }
3258
+
3259
+ static equals(a: GetTemplateRequest | PlainMessage<GetTemplateRequest> | undefined, b: GetTemplateRequest | PlainMessage<GetTemplateRequest> | undefined): boolean {
3260
+ return proto3.util.equals(GetTemplateRequest, a, b);
3261
+ }
3262
+ }
3263
+
3264
+ /**
3265
+ * @generated from message raystack.siren.v1beta1.GetTemplateResponse
3266
+ */
3267
+ export class GetTemplateResponse extends Message<GetTemplateResponse> {
3268
+ /**
3269
+ * @generated from field: raystack.siren.v1beta1.Template template = 1;
3270
+ */
3271
+ template?: Template;
3272
+
3273
+ constructor(data?: PartialMessage<GetTemplateResponse>) {
3274
+ super();
3275
+ proto3.util.initPartial(data, this);
3276
+ }
3277
+
3278
+ static readonly runtime: typeof proto3 = proto3;
3279
+ static readonly typeName = "raystack.siren.v1beta1.GetTemplateResponse";
3280
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3281
+ { no: 1, name: "template", kind: "message", T: Template },
3282
+ ]);
3283
+
3284
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTemplateResponse {
3285
+ return new GetTemplateResponse().fromBinary(bytes, options);
3286
+ }
3287
+
3288
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTemplateResponse {
3289
+ return new GetTemplateResponse().fromJson(jsonValue, options);
3290
+ }
3291
+
3292
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTemplateResponse {
3293
+ return new GetTemplateResponse().fromJsonString(jsonString, options);
3294
+ }
3295
+
3296
+ static equals(a: GetTemplateResponse | PlainMessage<GetTemplateResponse> | undefined, b: GetTemplateResponse | PlainMessage<GetTemplateResponse> | undefined): boolean {
3297
+ return proto3.util.equals(GetTemplateResponse, a, b);
3298
+ }
3299
+ }
3300
+
3301
+ /**
3302
+ * @generated from message raystack.siren.v1beta1.DeleteTemplateRequest
3303
+ */
3304
+ export class DeleteTemplateRequest extends Message<DeleteTemplateRequest> {
3305
+ /**
3306
+ * @generated from field: string name = 1;
3307
+ */
3308
+ name = "";
3309
+
3310
+ constructor(data?: PartialMessage<DeleteTemplateRequest>) {
3311
+ super();
3312
+ proto3.util.initPartial(data, this);
3313
+ }
3314
+
3315
+ static readonly runtime: typeof proto3 = proto3;
3316
+ static readonly typeName = "raystack.siren.v1beta1.DeleteTemplateRequest";
3317
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3318
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3319
+ ]);
3320
+
3321
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteTemplateRequest {
3322
+ return new DeleteTemplateRequest().fromBinary(bytes, options);
3323
+ }
3324
+
3325
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteTemplateRequest {
3326
+ return new DeleteTemplateRequest().fromJson(jsonValue, options);
3327
+ }
3328
+
3329
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteTemplateRequest {
3330
+ return new DeleteTemplateRequest().fromJsonString(jsonString, options);
3331
+ }
3332
+
3333
+ static equals(a: DeleteTemplateRequest | PlainMessage<DeleteTemplateRequest> | undefined, b: DeleteTemplateRequest | PlainMessage<DeleteTemplateRequest> | undefined): boolean {
3334
+ return proto3.util.equals(DeleteTemplateRequest, a, b);
3335
+ }
3336
+ }
3337
+
3338
+ /**
3339
+ * @generated from message raystack.siren.v1beta1.DeleteTemplateResponse
3340
+ */
3341
+ export class DeleteTemplateResponse extends Message<DeleteTemplateResponse> {
3342
+ constructor(data?: PartialMessage<DeleteTemplateResponse>) {
3343
+ super();
3344
+ proto3.util.initPartial(data, this);
3345
+ }
3346
+
3347
+ static readonly runtime: typeof proto3 = proto3;
3348
+ static readonly typeName = "raystack.siren.v1beta1.DeleteTemplateResponse";
3349
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3350
+ ]);
3351
+
3352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteTemplateResponse {
3353
+ return new DeleteTemplateResponse().fromBinary(bytes, options);
3354
+ }
3355
+
3356
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteTemplateResponse {
3357
+ return new DeleteTemplateResponse().fromJson(jsonValue, options);
3358
+ }
3359
+
3360
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteTemplateResponse {
3361
+ return new DeleteTemplateResponse().fromJsonString(jsonString, options);
3362
+ }
3363
+
3364
+ static equals(a: DeleteTemplateResponse | PlainMessage<DeleteTemplateResponse> | undefined, b: DeleteTemplateResponse | PlainMessage<DeleteTemplateResponse> | undefined): boolean {
3365
+ return proto3.util.equals(DeleteTemplateResponse, a, b);
3366
+ }
3367
+ }
3368
+
3369
+ /**
3370
+ * @generated from message raystack.siren.v1beta1.RenderTemplateRequest
3371
+ */
3372
+ export class RenderTemplateRequest extends Message<RenderTemplateRequest> {
3373
+ /**
3374
+ * @generated from field: string name = 1;
3375
+ */
3376
+ name = "";
3377
+
3378
+ /**
3379
+ * @generated from field: map<string, string> variables = 2;
3380
+ */
3381
+ variables: { [key: string]: string } = {};
3382
+
3383
+ constructor(data?: PartialMessage<RenderTemplateRequest>) {
3384
+ super();
3385
+ proto3.util.initPartial(data, this);
3386
+ }
3387
+
3388
+ static readonly runtime: typeof proto3 = proto3;
3389
+ static readonly typeName = "raystack.siren.v1beta1.RenderTemplateRequest";
3390
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3391
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3392
+ { no: 2, name: "variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3393
+ ]);
3394
+
3395
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenderTemplateRequest {
3396
+ return new RenderTemplateRequest().fromBinary(bytes, options);
3397
+ }
3398
+
3399
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenderTemplateRequest {
3400
+ return new RenderTemplateRequest().fromJson(jsonValue, options);
3401
+ }
3402
+
3403
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenderTemplateRequest {
3404
+ return new RenderTemplateRequest().fromJsonString(jsonString, options);
3405
+ }
3406
+
3407
+ static equals(a: RenderTemplateRequest | PlainMessage<RenderTemplateRequest> | undefined, b: RenderTemplateRequest | PlainMessage<RenderTemplateRequest> | undefined): boolean {
3408
+ return proto3.util.equals(RenderTemplateRequest, a, b);
3409
+ }
3410
+ }
3411
+
3412
+ /**
3413
+ * @generated from message raystack.siren.v1beta1.RenderTemplateResponse
3414
+ */
3415
+ export class RenderTemplateResponse extends Message<RenderTemplateResponse> {
3416
+ /**
3417
+ * @generated from field: string body = 1;
3418
+ */
3419
+ body = "";
3420
+
3421
+ constructor(data?: PartialMessage<RenderTemplateResponse>) {
3422
+ super();
3423
+ proto3.util.initPartial(data, this);
3424
+ }
3425
+
3426
+ static readonly runtime: typeof proto3 = proto3;
3427
+ static readonly typeName = "raystack.siren.v1beta1.RenderTemplateResponse";
3428
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3429
+ { no: 1, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3430
+ ]);
3431
+
3432
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RenderTemplateResponse {
3433
+ return new RenderTemplateResponse().fromBinary(bytes, options);
3434
+ }
3435
+
3436
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RenderTemplateResponse {
3437
+ return new RenderTemplateResponse().fromJson(jsonValue, options);
3438
+ }
3439
+
3440
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RenderTemplateResponse {
3441
+ return new RenderTemplateResponse().fromJsonString(jsonString, options);
3442
+ }
3443
+
3444
+ static equals(a: RenderTemplateResponse | PlainMessage<RenderTemplateResponse> | undefined, b: RenderTemplateResponse | PlainMessage<RenderTemplateResponse> | undefined): boolean {
3445
+ return proto3.util.equals(RenderTemplateResponse, a, b);
3446
+ }
3447
+ }
3448
+
3449
+ /**
3450
+ * @generated from message raystack.siren.v1beta1.Silence
3451
+ */
3452
+ export class Silence extends Message<Silence> {
3453
+ /**
3454
+ * @generated from field: string id = 1;
3455
+ */
3456
+ id = "";
3457
+
3458
+ /**
3459
+ * @generated from field: uint64 namespace_id = 2;
3460
+ */
3461
+ namespaceId = protoInt64.zero;
3462
+
3463
+ /**
3464
+ * @generated from field: string type = 3;
3465
+ */
3466
+ type = "";
3467
+
3468
+ /**
3469
+ * @generated from field: uint64 target_id = 4;
3470
+ */
3471
+ targetId = protoInt64.zero;
3472
+
3473
+ /**
3474
+ * @generated from field: google.protobuf.Struct target_expression = 5;
3475
+ */
3476
+ targetExpression?: Struct;
3477
+
3478
+ /**
3479
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
3480
+ */
3481
+ createdAt?: Timestamp;
3482
+
3483
+ /**
3484
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
3485
+ */
3486
+ updatedAt?: Timestamp;
3487
+
3488
+ /**
3489
+ * @generated from field: google.protobuf.Timestamp deleted_at = 8;
3490
+ */
3491
+ deletedAt?: Timestamp;
3492
+
3493
+ constructor(data?: PartialMessage<Silence>) {
3494
+ super();
3495
+ proto3.util.initPartial(data, this);
3496
+ }
3497
+
3498
+ static readonly runtime: typeof proto3 = proto3;
3499
+ static readonly typeName = "raystack.siren.v1beta1.Silence";
3500
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3501
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3502
+ { no: 2, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3503
+ { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3504
+ { no: 4, name: "target_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3505
+ { no: 5, name: "target_expression", kind: "message", T: Struct },
3506
+ { no: 6, name: "created_at", kind: "message", T: Timestamp },
3507
+ { no: 7, name: "updated_at", kind: "message", T: Timestamp },
3508
+ { no: 8, name: "deleted_at", kind: "message", T: Timestamp },
3509
+ ]);
3510
+
3511
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Silence {
3512
+ return new Silence().fromBinary(bytes, options);
3513
+ }
3514
+
3515
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Silence {
3516
+ return new Silence().fromJson(jsonValue, options);
3517
+ }
3518
+
3519
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Silence {
3520
+ return new Silence().fromJsonString(jsonString, options);
3521
+ }
3522
+
3523
+ static equals(a: Silence | PlainMessage<Silence> | undefined, b: Silence | PlainMessage<Silence> | undefined): boolean {
3524
+ return proto3.util.equals(Silence, a, b);
3525
+ }
3526
+ }
3527
+
3528
+ /**
3529
+ * @generated from message raystack.siren.v1beta1.CreateSilenceRequest
3530
+ */
3531
+ export class CreateSilenceRequest extends Message<CreateSilenceRequest> {
3532
+ /**
3533
+ * @generated from field: uint64 namespace_id = 1;
3534
+ */
3535
+ namespaceId = protoInt64.zero;
3536
+
3537
+ /**
3538
+ * @generated from field: string type = 2;
3539
+ */
3540
+ type = "";
3541
+
3542
+ /**
3543
+ * @generated from field: uint64 target_id = 3;
3544
+ */
3545
+ targetId = protoInt64.zero;
3546
+
3547
+ /**
3548
+ * @generated from field: google.protobuf.Struct target_expression = 4;
3549
+ */
3550
+ targetExpression?: Struct;
3551
+
3552
+ constructor(data?: PartialMessage<CreateSilenceRequest>) {
3553
+ super();
3554
+ proto3.util.initPartial(data, this);
3555
+ }
3556
+
3557
+ static readonly runtime: typeof proto3 = proto3;
3558
+ static readonly typeName = "raystack.siren.v1beta1.CreateSilenceRequest";
3559
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3560
+ { no: 1, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3561
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3562
+ { no: 3, name: "target_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3563
+ { no: 4, name: "target_expression", kind: "message", T: Struct },
3564
+ ]);
3565
+
3566
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSilenceRequest {
3567
+ return new CreateSilenceRequest().fromBinary(bytes, options);
3568
+ }
3569
+
3570
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSilenceRequest {
3571
+ return new CreateSilenceRequest().fromJson(jsonValue, options);
3572
+ }
3573
+
3574
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSilenceRequest {
3575
+ return new CreateSilenceRequest().fromJsonString(jsonString, options);
3576
+ }
3577
+
3578
+ static equals(a: CreateSilenceRequest | PlainMessage<CreateSilenceRequest> | undefined, b: CreateSilenceRequest | PlainMessage<CreateSilenceRequest> | undefined): boolean {
3579
+ return proto3.util.equals(CreateSilenceRequest, a, b);
3580
+ }
3581
+ }
3582
+
3583
+ /**
3584
+ * @generated from message raystack.siren.v1beta1.CreateSilenceResponse
3585
+ */
3586
+ export class CreateSilenceResponse extends Message<CreateSilenceResponse> {
3587
+ /**
3588
+ * @generated from field: string id = 1;
3589
+ */
3590
+ id = "";
3591
+
3592
+ constructor(data?: PartialMessage<CreateSilenceResponse>) {
3593
+ super();
3594
+ proto3.util.initPartial(data, this);
3595
+ }
3596
+
3597
+ static readonly runtime: typeof proto3 = proto3;
3598
+ static readonly typeName = "raystack.siren.v1beta1.CreateSilenceResponse";
3599
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3600
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3601
+ ]);
3602
+
3603
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateSilenceResponse {
3604
+ return new CreateSilenceResponse().fromBinary(bytes, options);
3605
+ }
3606
+
3607
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateSilenceResponse {
3608
+ return new CreateSilenceResponse().fromJson(jsonValue, options);
3609
+ }
3610
+
3611
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateSilenceResponse {
3612
+ return new CreateSilenceResponse().fromJsonString(jsonString, options);
3613
+ }
3614
+
3615
+ static equals(a: CreateSilenceResponse | PlainMessage<CreateSilenceResponse> | undefined, b: CreateSilenceResponse | PlainMessage<CreateSilenceResponse> | undefined): boolean {
3616
+ return proto3.util.equals(CreateSilenceResponse, a, b);
3617
+ }
3618
+ }
3619
+
3620
+ /**
3621
+ * @generated from message raystack.siren.v1beta1.ListSilencesRequest
3622
+ */
3623
+ export class ListSilencesRequest extends Message<ListSilencesRequest> {
3624
+ /**
3625
+ * @generated from field: uint64 subscription_id = 1;
3626
+ */
3627
+ subscriptionId = protoInt64.zero;
3628
+
3629
+ /**
3630
+ * @generated from field: uint64 namespace_id = 2;
3631
+ */
3632
+ namespaceId = protoInt64.zero;
3633
+
3634
+ /**
3635
+ * @generated from field: map<string, string> match = 3;
3636
+ */
3637
+ match: { [key: string]: string } = {};
3638
+
3639
+ /**
3640
+ * @generated from field: map<string, string> subscription_match = 4;
3641
+ */
3642
+ subscriptionMatch: { [key: string]: string } = {};
3643
+
3644
+ constructor(data?: PartialMessage<ListSilencesRequest>) {
3645
+ super();
3646
+ proto3.util.initPartial(data, this);
3647
+ }
3648
+
3649
+ static readonly runtime: typeof proto3 = proto3;
3650
+ static readonly typeName = "raystack.siren.v1beta1.ListSilencesRequest";
3651
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3652
+ { no: 1, name: "subscription_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3653
+ { no: 2, name: "namespace_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
3654
+ { no: 3, name: "match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3655
+ { no: 4, name: "subscription_match", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
3656
+ ]);
3657
+
3658
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSilencesRequest {
3659
+ return new ListSilencesRequest().fromBinary(bytes, options);
3660
+ }
3661
+
3662
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSilencesRequest {
3663
+ return new ListSilencesRequest().fromJson(jsonValue, options);
3664
+ }
3665
+
3666
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSilencesRequest {
3667
+ return new ListSilencesRequest().fromJsonString(jsonString, options);
3668
+ }
3669
+
3670
+ static equals(a: ListSilencesRequest | PlainMessage<ListSilencesRequest> | undefined, b: ListSilencesRequest | PlainMessage<ListSilencesRequest> | undefined): boolean {
3671
+ return proto3.util.equals(ListSilencesRequest, a, b);
3672
+ }
3673
+ }
3674
+
3675
+ /**
3676
+ * @generated from message raystack.siren.v1beta1.ListSilencesResponse
3677
+ */
3678
+ export class ListSilencesResponse extends Message<ListSilencesResponse> {
3679
+ /**
3680
+ * @generated from field: repeated raystack.siren.v1beta1.Silence silences = 1;
3681
+ */
3682
+ silences: Silence[] = [];
3683
+
3684
+ constructor(data?: PartialMessage<ListSilencesResponse>) {
3685
+ super();
3686
+ proto3.util.initPartial(data, this);
3687
+ }
3688
+
3689
+ static readonly runtime: typeof proto3 = proto3;
3690
+ static readonly typeName = "raystack.siren.v1beta1.ListSilencesResponse";
3691
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3692
+ { no: 1, name: "silences", kind: "message", T: Silence, repeated: true },
3693
+ ]);
3694
+
3695
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSilencesResponse {
3696
+ return new ListSilencesResponse().fromBinary(bytes, options);
3697
+ }
3698
+
3699
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSilencesResponse {
3700
+ return new ListSilencesResponse().fromJson(jsonValue, options);
3701
+ }
3702
+
3703
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSilencesResponse {
3704
+ return new ListSilencesResponse().fromJsonString(jsonString, options);
3705
+ }
3706
+
3707
+ static equals(a: ListSilencesResponse | PlainMessage<ListSilencesResponse> | undefined, b: ListSilencesResponse | PlainMessage<ListSilencesResponse> | undefined): boolean {
3708
+ return proto3.util.equals(ListSilencesResponse, a, b);
3709
+ }
3710
+ }
3711
+
3712
+ /**
3713
+ * @generated from message raystack.siren.v1beta1.GetSilenceRequest
3714
+ */
3715
+ export class GetSilenceRequest extends Message<GetSilenceRequest> {
3716
+ /**
3717
+ * @generated from field: string id = 1;
3718
+ */
3719
+ id = "";
3720
+
3721
+ constructor(data?: PartialMessage<GetSilenceRequest>) {
3722
+ super();
3723
+ proto3.util.initPartial(data, this);
3724
+ }
3725
+
3726
+ static readonly runtime: typeof proto3 = proto3;
3727
+ static readonly typeName = "raystack.siren.v1beta1.GetSilenceRequest";
3728
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3729
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3730
+ ]);
3731
+
3732
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSilenceRequest {
3733
+ return new GetSilenceRequest().fromBinary(bytes, options);
3734
+ }
3735
+
3736
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSilenceRequest {
3737
+ return new GetSilenceRequest().fromJson(jsonValue, options);
3738
+ }
3739
+
3740
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSilenceRequest {
3741
+ return new GetSilenceRequest().fromJsonString(jsonString, options);
3742
+ }
3743
+
3744
+ static equals(a: GetSilenceRequest | PlainMessage<GetSilenceRequest> | undefined, b: GetSilenceRequest | PlainMessage<GetSilenceRequest> | undefined): boolean {
3745
+ return proto3.util.equals(GetSilenceRequest, a, b);
3746
+ }
3747
+ }
3748
+
3749
+ /**
3750
+ * @generated from message raystack.siren.v1beta1.GetSilenceResponse
3751
+ */
3752
+ export class GetSilenceResponse extends Message<GetSilenceResponse> {
3753
+ /**
3754
+ * @generated from field: raystack.siren.v1beta1.Silence silence = 1;
3755
+ */
3756
+ silence?: Silence;
3757
+
3758
+ constructor(data?: PartialMessage<GetSilenceResponse>) {
3759
+ super();
3760
+ proto3.util.initPartial(data, this);
3761
+ }
3762
+
3763
+ static readonly runtime: typeof proto3 = proto3;
3764
+ static readonly typeName = "raystack.siren.v1beta1.GetSilenceResponse";
3765
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3766
+ { no: 1, name: "silence", kind: "message", T: Silence },
3767
+ ]);
3768
+
3769
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSilenceResponse {
3770
+ return new GetSilenceResponse().fromBinary(bytes, options);
3771
+ }
3772
+
3773
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSilenceResponse {
3774
+ return new GetSilenceResponse().fromJson(jsonValue, options);
3775
+ }
3776
+
3777
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSilenceResponse {
3778
+ return new GetSilenceResponse().fromJsonString(jsonString, options);
3779
+ }
3780
+
3781
+ static equals(a: GetSilenceResponse | PlainMessage<GetSilenceResponse> | undefined, b: GetSilenceResponse | PlainMessage<GetSilenceResponse> | undefined): boolean {
3782
+ return proto3.util.equals(GetSilenceResponse, a, b);
3783
+ }
3784
+ }
3785
+
3786
+ /**
3787
+ * @generated from message raystack.siren.v1beta1.ExpireSilenceRequest
3788
+ */
3789
+ export class ExpireSilenceRequest extends Message<ExpireSilenceRequest> {
3790
+ /**
3791
+ * @generated from field: string id = 1;
3792
+ */
3793
+ id = "";
3794
+
3795
+ constructor(data?: PartialMessage<ExpireSilenceRequest>) {
3796
+ super();
3797
+ proto3.util.initPartial(data, this);
3798
+ }
3799
+
3800
+ static readonly runtime: typeof proto3 = proto3;
3801
+ static readonly typeName = "raystack.siren.v1beta1.ExpireSilenceRequest";
3802
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3803
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3804
+ ]);
3805
+
3806
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExpireSilenceRequest {
3807
+ return new ExpireSilenceRequest().fromBinary(bytes, options);
3808
+ }
3809
+
3810
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExpireSilenceRequest {
3811
+ return new ExpireSilenceRequest().fromJson(jsonValue, options);
3812
+ }
3813
+
3814
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExpireSilenceRequest {
3815
+ return new ExpireSilenceRequest().fromJsonString(jsonString, options);
3816
+ }
3817
+
3818
+ static equals(a: ExpireSilenceRequest | PlainMessage<ExpireSilenceRequest> | undefined, b: ExpireSilenceRequest | PlainMessage<ExpireSilenceRequest> | undefined): boolean {
3819
+ return proto3.util.equals(ExpireSilenceRequest, a, b);
3820
+ }
3821
+ }
3822
+
3823
+ /**
3824
+ * @generated from message raystack.siren.v1beta1.ExpireSilenceResponse
3825
+ */
3826
+ export class ExpireSilenceResponse extends Message<ExpireSilenceResponse> {
3827
+ constructor(data?: PartialMessage<ExpireSilenceResponse>) {
3828
+ super();
3829
+ proto3.util.initPartial(data, this);
3830
+ }
3831
+
3832
+ static readonly runtime: typeof proto3 = proto3;
3833
+ static readonly typeName = "raystack.siren.v1beta1.ExpireSilenceResponse";
3834
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
3835
+ ]);
3836
+
3837
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExpireSilenceResponse {
3838
+ return new ExpireSilenceResponse().fromBinary(bytes, options);
3839
+ }
3840
+
3841
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExpireSilenceResponse {
3842
+ return new ExpireSilenceResponse().fromJson(jsonValue, options);
3843
+ }
3844
+
3845
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExpireSilenceResponse {
3846
+ return new ExpireSilenceResponse().fromJsonString(jsonString, options);
3847
+ }
3848
+
3849
+ static equals(a: ExpireSilenceResponse | PlainMessage<ExpireSilenceResponse> | undefined, b: ExpireSilenceResponse | PlainMessage<ExpireSilenceResponse> | undefined): boolean {
3850
+ return proto3.util.equals(ExpireSilenceResponse, a, b);
3851
+ }
3852
+ }
3853
+