@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6 → 0.1.0-fe747c0278b08e54b16540b091d980d1b166f948

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 (113) hide show
  1. package/README.md +113 -0
  2. package/google/api/annotations_pb.ts +15 -9
  3. package/google/api/field_behavior_pb.ts +19 -19
  4. package/google/api/http_pb.ts +43 -108
  5. package/google/api/httpbody_pb.ts +23 -37
  6. package/package.json +6 -4
  7. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  8. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  9. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  10. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  11. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  12. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  13. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  14. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  15. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  16. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  17. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  18. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  19. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  20. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  21. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  22. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  23. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  24. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  25. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  26. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  27. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  28. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  29. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  30. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  31. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  32. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  33. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  34. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  35. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  36. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  37. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  38. package/raystack/common/index.ts +0 -1
  39. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  40. package/raystack/common/v1/service_pb.ts +57 -97
  41. package/raystack/compass/index.ts +0 -1
  42. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  43. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  44. package/raystack/entropy/index.ts +0 -2
  45. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  46. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  47. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  48. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  49. package/raystack/frontier/index.ts +0 -2
  50. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +60 -514
  51. package/raystack/frontier/v1beta1/admin.client.ts +17 -0
  52. package/raystack/frontier/v1beta1/admin.ts +111 -1
  53. package/raystack/frontier/v1beta1/admin_pb.ts +1774 -3791
  54. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
  55. package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
  56. package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
  57. package/raystack/guardian/index.ts +0 -1
  58. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  59. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  60. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  61. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  62. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  63. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  64. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  65. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  66. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  67. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  68. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  69. package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
  70. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  71. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  72. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  73. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  74. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  75. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  76. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  77. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  78. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  79. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  80. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  81. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  82. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  83. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  84. package/raystack/raccoon/index.ts +0 -1
  85. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  86. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  87. package/raystack/siren/index.ts +0 -1
  88. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  89. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  90. package/raystack/stencil/index.ts +0 -1
  91. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  92. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  93. package/validate/validate_pb.ts +401 -1038
  94. package/raystack/common/v1/service_connect.ts +0 -26
  95. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  96. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  97. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  98. package/raystack/frontier/v1beta1/admin_connect.ts +0 -573
  99. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  100. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  101. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  102. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  103. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  104. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  105. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  106. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  107. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  108. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  109. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  110. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  111. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  112. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  113. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
@@ -1,104 +1,18 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/raccoon/v1beta1/raccoon.proto (package raystack.raccoon.v1beta1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Message } from "@bufbuild/protobuf";
8
10
 
9
11
  /**
10
- * @generated from enum raystack.raccoon.v1beta1.Status
12
+ * Describes the file raystack/raccoon/v1beta1/raccoon.proto.
11
13
  */
12
- export enum Status {
13
- /**
14
- * @generated from enum value: STATUS_UNSPECIFIED = 0;
15
- */
16
- UNSPECIFIED = 0,
17
-
18
- /**
19
- * @generated from enum value: STATUS_SUCCESS = 1;
20
- */
21
- SUCCESS = 1,
22
-
23
- /**
24
- * @generated from enum value: STATUS_ERROR = 2;
25
- */
26
- ERROR = 2,
27
- }
28
- // Retrieve enum metadata with: proto3.getEnumType(Status)
29
- proto3.util.setEnumType(Status, "raystack.raccoon.v1beta1.Status", [
30
- { no: 0, name: "STATUS_UNSPECIFIED" },
31
- { no: 1, name: "STATUS_SUCCESS" },
32
- { no: 2, name: "STATUS_ERROR" },
33
- ]);
34
-
35
- /**
36
- * @generated from enum raystack.raccoon.v1beta1.Code
37
- */
38
- export enum Code {
39
- /**
40
- *
41
- * `CODE_UNSPECIFIED` indicates no appropriate/existing code can describe it.
42
- *
43
- * @generated from enum value: CODE_UNSPECIFIED = 0;
44
- */
45
- UNSPECIFIED = 0,
46
-
47
- /**
48
- *
49
- * `OK` indicates the request is processed successfully.
50
- *
51
- * @generated from enum value: CODE_OK = 1;
52
- */
53
- OK = 1,
54
-
55
- /**
56
- *
57
- * `BAD_REQUEST` indicates there is something wrong with the request.
58
- *
59
- * @generated from enum value: CODE_BAD_REQUEST = 2;
60
- */
61
- BAD_REQUEST = 2,
62
-
63
- /**
64
- *
65
- * `INTERNAL_ERROR` indicates that Raccoon encountered an unexpected condition that prevented it from fulfilling the request.
66
- *
67
- * @generated from enum value: CODE_INTERNAL_ERROR = 3;
68
- */
69
- INTERNAL_ERROR = 3,
70
-
71
- /**
72
- *
73
- * `MAX_CONNECTION_LIMIT_REACHED` indicates that Raccoon is unable to accepts new connection due to max connection is reached.
74
- *
75
- * To prevent Raccoon from eating up resources, connection limit needs to be set. The limit is configurable on Raccoon by setting `SERVER_WEBSOCKET_MAX_CONN`
76
- *
77
- * @generated from enum value: CODE_MAX_CONNECTION_LIMIT_REACHED = 4;
78
- */
79
- MAX_CONNECTION_LIMIT_REACHED = 4,
80
-
81
- /**
82
- *
83
- * `MAX_USER_LIMIT_REACHED` indicates that existing connection with the same ID.
84
- *
85
- * Raccoon ensures unique connection using unique identifier passed from the header
86
- * the first time Websocket connection is established. The header key that
87
- * contains unique identifier is configurable on Raccoon by setting `SERVER_WEBSOCKET_CONN_UNIQ_ID_HEADER`
88
- *
89
- * @generated from enum value: CODE_MAX_USER_LIMIT_REACHED = 5;
90
- */
91
- MAX_USER_LIMIT_REACHED = 5,
92
- }
93
- // Retrieve enum metadata with: proto3.getEnumType(Code)
94
- proto3.util.setEnumType(Code, "raystack.raccoon.v1beta1.Code", [
95
- { no: 0, name: "CODE_UNSPECIFIED" },
96
- { no: 1, name: "CODE_OK" },
97
- { no: 2, name: "CODE_BAD_REQUEST" },
98
- { no: 3, name: "CODE_INTERNAL_ERROR" },
99
- { no: 4, name: "CODE_MAX_CONNECTION_LIMIT_REACHED" },
100
- { no: 5, name: "CODE_MAX_USER_LIMIT_REACHED" },
101
- ]);
14
+ export const file_raystack_raccoon_v1beta1_raccoon: GenFile = /*@__PURE__*/
15
+ fileDesc("CiZyYXlzdGFjay9yYWNjb29uL3YxYmV0YTEvcmFjY29vbi5wcm90bxIYcmF5c3RhY2sucmFjY29vbi52MWJldGExIoQBChBTZW5kRXZlbnRSZXF1ZXN0EhAKCHJlcV9ndWlkGAEgASgJEi0KCXNlbnRfdGltZRgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoGZXZlbnRzGAMgAygLMh8ucmF5c3RhY2sucmFjY29vbi52MWJldGExLkV2ZW50IioKBUV2ZW50EhMKC2V2ZW50X2J5dGVzGAEgASgMEgwKBHR5cGUYAiABKAkiiAIKEVNlbmRFdmVudFJlc3BvbnNlEjAKBnN0YXR1cxgBIAEoDjIgLnJheXN0YWNrLnJhY2Nvb24udjFiZXRhMS5TdGF0dXMSLAoEY29kZRgCIAEoDjIeLnJheXN0YWNrLnJhY2Nvb24udjFiZXRhMS5Db2RlEhEKCXNlbnRfdGltZRgDIAEoAxIOCgZyZWFzb24YBCABKAkSQwoEZGF0YRgFIAMoCzI1LnJheXN0YWNrLnJhY2Nvb24udjFiZXRhMS5TZW5kRXZlbnRSZXNwb25zZS5EYXRhRW50cnkaKwoJRGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEqRgoGU3RhdHVzEhYKElNUQVRVU19VTlNQRUNJRklFRBAAEhIKDlNUQVRVU19TVUNDRVNTEAESEAoMU1RBVFVTX0VSUk9SEAIqoAEKBENvZGUSFAoQQ09ERV9VTlNQRUNJRklFRBAAEgsKB0NPREVfT0sQARIUChBDT0RFX0JBRF9SRVFVRVNUEAISFwoTQ09ERV9JTlRFUk5BTF9FUlJPUhADEiUKIUNPREVfTUFYX0NPTk5FQ1RJT05fTElNSVRfUkVBQ0hFRBAEEh8KG0NPREVfTUFYX1VTRVJfTElNSVRfUkVBQ0hFRBAFMnQKDEV2ZW50U2VydmljZRJkCglTZW5kRXZlbnQSKi5yYXlzdGFjay5yYWNjb29uLnYxYmV0YTEuU2VuZEV2ZW50UmVxdWVzdBorLnJheXN0YWNrLnJhY2Nvb24udjFiZXRhMS5TZW5kRXZlbnRSZXNwb25zZUJbChppby5yYXlzdGFjay5wcm90b24ucmFjY29vbkIKRXZlbnRQcm90b1ABWi9naXRodWIuY29tL3JheXN0YWNrL3Byb3Rvbi9yYWNjb29uL3YxO3JhY2Nvb252MWIGcHJvdG8z", [file_google_protobuf_timestamp]);
102
16
 
103
17
  /**
104
18
  *
@@ -110,7 +24,7 @@ proto3.util.setEnumType(Code, "raystack.raccoon.v1beta1.Code", [
110
24
  *
111
25
  * @generated from message raystack.raccoon.v1beta1.SendEventRequest
112
26
  */
113
- export class SendEventRequest extends Message<SendEventRequest> {
27
+ export type SendEventRequest = Message<"raystack.raccoon.v1beta1.SendEventRequest"> & {
114
28
  /**
115
29
  *
116
30
  * `req_guid` is unique identifier of the request the client is making.
@@ -128,7 +42,7 @@ export class SendEventRequest extends Message<SendEventRequest> {
128
42
  *
129
43
  * @generated from field: string req_guid = 1;
130
44
  */
131
- reqGuid = "";
45
+ reqGuid: string;
132
46
 
133
47
  /**
134
48
  *
@@ -150,49 +64,27 @@ export class SendEventRequest extends Message<SendEventRequest> {
150
64
  *
151
65
  * @generated from field: repeated raystack.raccoon.v1beta1.Event events = 3;
152
66
  */
153
- events: Event[] = [];
154
-
155
- constructor(data?: PartialMessage<SendEventRequest>) {
156
- super();
157
- proto3.util.initPartial(data, this);
158
- }
159
-
160
- static readonly runtime: typeof proto3 = proto3;
161
- static readonly typeName = "raystack.raccoon.v1beta1.SendEventRequest";
162
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
163
- { no: 1, name: "req_guid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
164
- { no: 2, name: "sent_time", kind: "message", T: Timestamp },
165
- { no: 3, name: "events", kind: "message", T: Event, repeated: true },
166
- ]);
67
+ events: Event[];
68
+ };
167
69
 
168
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendEventRequest {
169
- return new SendEventRequest().fromBinary(bytes, options);
170
- }
171
-
172
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendEventRequest {
173
- return new SendEventRequest().fromJson(jsonValue, options);
174
- }
175
-
176
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendEventRequest {
177
- return new SendEventRequest().fromJsonString(jsonString, options);
178
- }
179
-
180
- static equals(a: SendEventRequest | PlainMessage<SendEventRequest> | undefined, b: SendEventRequest | PlainMessage<SendEventRequest> | undefined): boolean {
181
- return proto3.util.equals(SendEventRequest, a, b);
182
- }
183
- }
70
+ /**
71
+ * Describes the message raystack.raccoon.v1beta1.SendEventRequest.
72
+ * Use `create(SendEventRequestSchema)` to create a new message.
73
+ */
74
+ export const SendEventRequestSchema: GenMessage<SendEventRequest> = /*@__PURE__*/
75
+ messageDesc(file_raystack_raccoon_v1beta1_raccoon, 0);
184
76
 
185
77
  /**
186
78
  * @generated from message raystack.raccoon.v1beta1.Event
187
79
  */
188
- export class Event extends Message<Event> {
80
+ export type Event = Message<"raystack.raccoon.v1beta1.Event"> & {
189
81
  /**
190
82
  *
191
83
  * `event_bytes` is where you put bytes serialized event.
192
84
  *
193
85
  * @generated from field: bytes event_bytes = 1;
194
86
  */
195
- eventBytes = new Uint8Array(0);
87
+ eventBytes: Uint8Array;
196
88
 
197
89
  /**
198
90
  *
@@ -204,41 +96,20 @@ export class Event extends Message<Event> {
204
96
  *
205
97
  * @generated from field: string type = 2;
206
98
  */
207
- type = "";
208
-
209
- constructor(data?: PartialMessage<Event>) {
210
- super();
211
- proto3.util.initPartial(data, this);
212
- }
213
-
214
- static readonly runtime: typeof proto3 = proto3;
215
- static readonly typeName = "raystack.raccoon.v1beta1.Event";
216
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
217
- { no: 1, name: "event_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
218
- { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
219
- ]);
220
-
221
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Event {
222
- return new Event().fromBinary(bytes, options);
223
- }
224
-
225
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Event {
226
- return new Event().fromJson(jsonValue, options);
227
- }
228
-
229
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Event {
230
- return new Event().fromJsonString(jsonString, options);
231
- }
99
+ type: string;
100
+ };
232
101
 
233
- static equals(a: Event | PlainMessage<Event> | undefined, b: Event | PlainMessage<Event> | undefined): boolean {
234
- return proto3.util.equals(Event, a, b);
235
- }
236
- }
102
+ /**
103
+ * Describes the message raystack.raccoon.v1beta1.Event.
104
+ * Use `create(EventSchema)` to create a new message.
105
+ */
106
+ export const EventSchema: GenMessage<Event> = /*@__PURE__*/
107
+ messageDesc(file_raystack_raccoon_v1beta1_raccoon, 1);
237
108
 
238
109
  /**
239
110
  * @generated from message raystack.raccoon.v1beta1.SendEventResponse
240
111
  */
241
- export class SendEventResponse extends Message<SendEventResponse> {
112
+ export type SendEventResponse = Message<"raystack.raccoon.v1beta1.SendEventResponse"> & {
242
113
  /**
243
114
  *
244
115
  * `status` denotes status of the request.
@@ -249,7 +120,7 @@ export class SendEventResponse extends Message<SendEventResponse> {
249
120
  *
250
121
  * @generated from field: raystack.raccoon.v1beta1.Status status = 1;
251
122
  */
252
- status = Status.UNSPECIFIED;
123
+ status: Status;
253
124
 
254
125
  /**
255
126
  *
@@ -259,7 +130,7 @@ export class SendEventResponse extends Message<SendEventResponse> {
259
130
  *
260
131
  * @generated from field: raystack.raccoon.v1beta1.Code code = 2;
261
132
  */
262
- code = Code.UNSPECIFIED;
133
+ code: Code;
263
134
 
264
135
  /**
265
136
  *
@@ -267,7 +138,7 @@ export class SendEventResponse extends Message<SendEventResponse> {
267
138
  *
268
139
  * @generated from field: int64 sent_time = 3;
269
140
  */
270
- sentTime = protoInt64.zero;
141
+ sentTime: bigint;
271
142
 
272
143
  /**
273
144
  *
@@ -277,7 +148,7 @@ export class SendEventResponse extends Message<SendEventResponse> {
277
148
  *
278
149
  * @generated from field: string reason = 4;
279
150
  */
280
- reason = "";
151
+ reason: string;
281
152
 
282
153
  /**
283
154
  *
@@ -288,37 +159,119 @@ export class SendEventResponse extends Message<SendEventResponse> {
288
159
  *
289
160
  * @generated from field: map<string, string> data = 5;
290
161
  */
291
- data: { [key: string]: string } = {};
162
+ data: { [key: string]: string };
163
+ };
292
164
 
293
- constructor(data?: PartialMessage<SendEventResponse>) {
294
- super();
295
- proto3.util.initPartial(data, this);
296
- }
165
+ /**
166
+ * Describes the message raystack.raccoon.v1beta1.SendEventResponse.
167
+ * Use `create(SendEventResponseSchema)` to create a new message.
168
+ */
169
+ export const SendEventResponseSchema: GenMessage<SendEventResponse> = /*@__PURE__*/
170
+ messageDesc(file_raystack_raccoon_v1beta1_raccoon, 2);
297
171
 
298
- static readonly runtime: typeof proto3 = proto3;
299
- static readonly typeName = "raystack.raccoon.v1beta1.SendEventResponse";
300
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
301
- { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(Status) },
302
- { no: 2, name: "code", kind: "enum", T: proto3.getEnumType(Code) },
303
- { no: 3, name: "sent_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
304
- { no: 4, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
305
- { no: 5, name: "data", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
306
- ]);
172
+ /**
173
+ * @generated from enum raystack.raccoon.v1beta1.Status
174
+ */
175
+ export enum Status {
176
+ /**
177
+ * @generated from enum value: STATUS_UNSPECIFIED = 0;
178
+ */
179
+ UNSPECIFIED = 0,
307
180
 
308
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendEventResponse {
309
- return new SendEventResponse().fromBinary(bytes, options);
310
- }
181
+ /**
182
+ * @generated from enum value: STATUS_SUCCESS = 1;
183
+ */
184
+ SUCCESS = 1,
311
185
 
312
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendEventResponse {
313
- return new SendEventResponse().fromJson(jsonValue, options);
314
- }
186
+ /**
187
+ * @generated from enum value: STATUS_ERROR = 2;
188
+ */
189
+ ERROR = 2,
190
+ }
315
191
 
316
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendEventResponse {
317
- return new SendEventResponse().fromJsonString(jsonString, options);
318
- }
192
+ /**
193
+ * Describes the enum raystack.raccoon.v1beta1.Status.
194
+ */
195
+ export const StatusSchema: GenEnum<Status> = /*@__PURE__*/
196
+ enumDesc(file_raystack_raccoon_v1beta1_raccoon, 0);
197
+
198
+ /**
199
+ * @generated from enum raystack.raccoon.v1beta1.Code
200
+ */
201
+ export enum Code {
202
+ /**
203
+ *
204
+ * `CODE_UNSPECIFIED` indicates no appropriate/existing code can describe it.
205
+ *
206
+ * @generated from enum value: CODE_UNSPECIFIED = 0;
207
+ */
208
+ UNSPECIFIED = 0,
319
209
 
320
- static equals(a: SendEventResponse | PlainMessage<SendEventResponse> | undefined, b: SendEventResponse | PlainMessage<SendEventResponse> | undefined): boolean {
321
- return proto3.util.equals(SendEventResponse, a, b);
322
- }
210
+ /**
211
+ *
212
+ * `OK` indicates the request is processed successfully.
213
+ *
214
+ * @generated from enum value: CODE_OK = 1;
215
+ */
216
+ OK = 1,
217
+
218
+ /**
219
+ *
220
+ * `BAD_REQUEST` indicates there is something wrong with the request.
221
+ *
222
+ * @generated from enum value: CODE_BAD_REQUEST = 2;
223
+ */
224
+ BAD_REQUEST = 2,
225
+
226
+ /**
227
+ *
228
+ * `INTERNAL_ERROR` indicates that Raccoon encountered an unexpected condition that prevented it from fulfilling the request.
229
+ *
230
+ * @generated from enum value: CODE_INTERNAL_ERROR = 3;
231
+ */
232
+ INTERNAL_ERROR = 3,
233
+
234
+ /**
235
+ *
236
+ * `MAX_CONNECTION_LIMIT_REACHED` indicates that Raccoon is unable to accepts new connection due to max connection is reached.
237
+ *
238
+ * To prevent Raccoon from eating up resources, connection limit needs to be set. The limit is configurable on Raccoon by setting `SERVER_WEBSOCKET_MAX_CONN`
239
+ *
240
+ * @generated from enum value: CODE_MAX_CONNECTION_LIMIT_REACHED = 4;
241
+ */
242
+ MAX_CONNECTION_LIMIT_REACHED = 4,
243
+
244
+ /**
245
+ *
246
+ * `MAX_USER_LIMIT_REACHED` indicates that existing connection with the same ID.
247
+ *
248
+ * Raccoon ensures unique connection using unique identifier passed from the header
249
+ * the first time Websocket connection is established. The header key that
250
+ * contains unique identifier is configurable on Raccoon by setting `SERVER_WEBSOCKET_CONN_UNIQ_ID_HEADER`
251
+ *
252
+ * @generated from enum value: CODE_MAX_USER_LIMIT_REACHED = 5;
253
+ */
254
+ MAX_USER_LIMIT_REACHED = 5,
323
255
  }
324
256
 
257
+ /**
258
+ * Describes the enum raystack.raccoon.v1beta1.Code.
259
+ */
260
+ export const CodeSchema: GenEnum<Code> = /*@__PURE__*/
261
+ enumDesc(file_raystack_raccoon_v1beta1_raccoon, 1);
262
+
263
+ /**
264
+ * @generated from service raystack.raccoon.v1beta1.EventService
265
+ */
266
+ export const EventService: GenService<{
267
+ /**
268
+ * @generated from rpc raystack.raccoon.v1beta1.EventService.SendEvent
269
+ */
270
+ sendEvent: {
271
+ methodKind: "unary";
272
+ input: typeof SendEventRequestSchema;
273
+ output: typeof SendEventResponseSchema;
274
+ },
275
+ }> = /*@__PURE__*/
276
+ serviceDesc(file_raystack_raccoon_v1beta1_raccoon, 0);
277
+
@@ -1,3 +1,2 @@
1
- export { SirenService } from "./v1beta1/siren_connect";
2
1
  export * as SirenServiceQueries from "./v1beta1/siren-SirenService_connectquery";
3
2
  export * from "./v1beta1/siren";