@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.
- package/google/api/annotations_pb.ts +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/raccoon/v1beta1/raccoon.proto" (package "raystack.raccoon.v1beta1", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* `EventRequest` defines the contract to push events to Raccoon
|
|
18
|
+
*
|
|
19
|
+
* An `EventRequest` allows you to push more than one events(batch). The events
|
|
20
|
+
* are wrapped inside `events` repeated field. All of the fields on `EventRequest`
|
|
21
|
+
* are required.
|
|
22
|
+
*
|
|
23
|
+
* @generated from protobuf message raystack.raccoon.v1beta1.SendEventRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface SendEventRequest {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* `req_guid` is unique identifier of the request the client is making.
|
|
29
|
+
*
|
|
30
|
+
* Raccoon uses the identifier to send response of the request. The client can handle the
|
|
31
|
+
* response accordingly. For example, the client can retry the request in case the response is
|
|
32
|
+
* giving `INTERNAL_ERROR` code with "publisher failed" reason.
|
|
33
|
+
*
|
|
34
|
+
* This identifier is necessary because on event-based protocols like WebSocket the response is
|
|
35
|
+
* returned asynchronously. If there is no identifier, no way the client can tell which response
|
|
36
|
+
* belongs to which request.
|
|
37
|
+
*
|
|
38
|
+
* Apart from sending response, `req_guid` is used to log some informations on 'debug' level. You can search the
|
|
39
|
+
* debug logs with `ReqGUID` keyword.
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf field: string req_guid = 1
|
|
42
|
+
*/
|
|
43
|
+
reqGuid: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* `sent_time` defines the time the request is sent.
|
|
47
|
+
*
|
|
48
|
+
* `sent_time` is used to calculate various metrics. The main metric uses `sent_time` is duration from the
|
|
49
|
+
* request is sent until the events are published.
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf field: google.protobuf.Timestamp sent_time = 2
|
|
52
|
+
*/
|
|
53
|
+
sentTime?: Timestamp;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* `events` is where the client put all the events wrapped in `Event`.
|
|
57
|
+
*
|
|
58
|
+
* As mentioned above, the request allows the client to push more than one event. Normally you want to batch
|
|
59
|
+
* the events to optimize the network call.
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf field: repeated raystack.raccoon.v1beta1.Event events = 3
|
|
62
|
+
*/
|
|
63
|
+
events: Event[];
|
|
64
|
+
}
|
|
65
|
+
//
|
|
66
|
+
// `Event` defines wrapper of the event you want to push to Raccoon
|
|
67
|
+
//
|
|
68
|
+
// The event populated here is in form of bytes. It means you can use any data format or schema
|
|
69
|
+
// you want for your event. You can structure your event on protobuf as you like. The data then
|
|
70
|
+
// needs to be serialized to bytes and populate it in `event_bytes` field. Single `Event` contains one event.
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf message raystack.raccoon.v1beta1.Event
|
|
74
|
+
*/
|
|
75
|
+
export interface Event {
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* `event_bytes` is where you put bytes serialized event.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf field: bytes event_bytes = 1
|
|
81
|
+
*/
|
|
82
|
+
eventBytes: Uint8Array;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* `type` denotes an event type that the producer of this proto message may set.
|
|
86
|
+
*
|
|
87
|
+
* It is currently used by raccoon to distribute events to respective Kafka topics. However the
|
|
88
|
+
* users of this proto can use this type to set strings which can be processed in their
|
|
89
|
+
* ingestion systems to distribute or perform other functions.
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf field: string type = 2
|
|
92
|
+
*/
|
|
93
|
+
type: string;
|
|
94
|
+
}
|
|
95
|
+
//
|
|
96
|
+
// `EventResponse` defines the response contract from Raccoon
|
|
97
|
+
//
|
|
98
|
+
// Raccoon sends `EventResponse` for each `EventRequest` received. For WebSocket,
|
|
99
|
+
// `EventResponse` is also used to send the final message in case connection is failed to
|
|
100
|
+
// established.
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated from protobuf message raystack.raccoon.v1beta1.SendEventResponse
|
|
104
|
+
*/
|
|
105
|
+
export interface SendEventResponse {
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* `status` denotes status of the request.
|
|
109
|
+
*
|
|
110
|
+
* Only 3 values are valid. `SUCCESS` means the the request is processed
|
|
111
|
+
* successfully. `ERROR` means the request failed to be processed. `UNKNOWN_STATUS`
|
|
112
|
+
* means Raccoon unable to determine whether the request is success or not.
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf field: raystack.raccoon.v1beta1.Status status = 1
|
|
115
|
+
*/
|
|
116
|
+
status: Status;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* `code` gives more detail of what happened to the request.
|
|
120
|
+
*
|
|
121
|
+
* Details of available `code` can be seen below.
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf field: raystack.raccoon.v1beta1.Code code = 2
|
|
124
|
+
*/
|
|
125
|
+
code: Code;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* `sent_time` is UNIX timestamp populated by Raccoon by the time the response is sent.
|
|
129
|
+
*
|
|
130
|
+
* @generated from protobuf field: int64 sent_time = 3
|
|
131
|
+
*/
|
|
132
|
+
sentTime: bigint;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* `reason` is additional-human readable information to provide more context to `status` and `code`.
|
|
136
|
+
*
|
|
137
|
+
* There is no predefined structure for this. The value is arbitrary.
|
|
138
|
+
*
|
|
139
|
+
* @generated from protobuf field: string reason = 4
|
|
140
|
+
*/
|
|
141
|
+
reason: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* `data` is arbitrary extra metadata.
|
|
145
|
+
*
|
|
146
|
+
* Arbitrary key-value makes the field flexible for future changes. `req_guid` is also sent as part
|
|
147
|
+
* of `data`. The client may fetch req_guid as key to get the `req_guid` value.
|
|
148
|
+
*
|
|
149
|
+
* @generated from protobuf field: map<string, string> data = 5
|
|
150
|
+
*/
|
|
151
|
+
data: {
|
|
152
|
+
[key: string]: string;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf enum raystack.raccoon.v1beta1.Status
|
|
157
|
+
*/
|
|
158
|
+
export enum Status {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from protobuf enum value: STATUS_UNSPECIFIED = 0;
|
|
161
|
+
*/
|
|
162
|
+
UNSPECIFIED = 0,
|
|
163
|
+
/**
|
|
164
|
+
* @generated from protobuf enum value: STATUS_SUCCESS = 1;
|
|
165
|
+
*/
|
|
166
|
+
SUCCESS = 1,
|
|
167
|
+
/**
|
|
168
|
+
* @generated from protobuf enum value: STATUS_ERROR = 2;
|
|
169
|
+
*/
|
|
170
|
+
ERROR = 2
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf enum raystack.raccoon.v1beta1.Code
|
|
174
|
+
*/
|
|
175
|
+
export enum Code {
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* `CODE_UNSPECIFIED` indicates no appropriate/existing code can describe it.
|
|
179
|
+
*
|
|
180
|
+
* @generated from protobuf enum value: CODE_UNSPECIFIED = 0;
|
|
181
|
+
*/
|
|
182
|
+
UNSPECIFIED = 0,
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* `OK` indicates the request is processed successfully.
|
|
186
|
+
*
|
|
187
|
+
* @generated from protobuf enum value: CODE_OK = 1;
|
|
188
|
+
*/
|
|
189
|
+
OK = 1,
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* `BAD_REQUEST` indicates there is something wrong with the request.
|
|
193
|
+
*
|
|
194
|
+
* @generated from protobuf enum value: CODE_BAD_REQUEST = 2;
|
|
195
|
+
*/
|
|
196
|
+
BAD_REQUEST = 2,
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* `INTERNAL_ERROR` indicates that Raccoon encountered an unexpected condition that prevented it from fulfilling the request.
|
|
200
|
+
*
|
|
201
|
+
* @generated from protobuf enum value: CODE_INTERNAL_ERROR = 3;
|
|
202
|
+
*/
|
|
203
|
+
INTERNAL_ERROR = 3,
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* `MAX_CONNECTION_LIMIT_REACHED` indicates that Raccoon is unable to accepts new connection due to max connection is reached.
|
|
207
|
+
*
|
|
208
|
+
* 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`
|
|
209
|
+
*
|
|
210
|
+
* @generated from protobuf enum value: CODE_MAX_CONNECTION_LIMIT_REACHED = 4;
|
|
211
|
+
*/
|
|
212
|
+
MAX_CONNECTION_LIMIT_REACHED = 4,
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* `MAX_USER_LIMIT_REACHED` indicates that existing connection with the same ID.
|
|
216
|
+
*
|
|
217
|
+
* Raccoon ensures unique connection using unique identifier passed from the header
|
|
218
|
+
* the first time Websocket connection is established. The header key that
|
|
219
|
+
* contains unique identifier is configurable on Raccoon by setting `SERVER_WEBSOCKET_CONN_UNIQ_ID_HEADER`
|
|
220
|
+
*
|
|
221
|
+
* @generated from protobuf enum value: CODE_MAX_USER_LIMIT_REACHED = 5;
|
|
222
|
+
*/
|
|
223
|
+
MAX_USER_LIMIT_REACHED = 5
|
|
224
|
+
}
|
|
225
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
226
|
+
class SendEventRequest$Type extends MessageType<SendEventRequest> {
|
|
227
|
+
constructor() {
|
|
228
|
+
super("raystack.raccoon.v1beta1.SendEventRequest", [
|
|
229
|
+
{ no: 1, name: "req_guid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
230
|
+
{ no: 2, name: "sent_time", kind: "message", T: () => Timestamp },
|
|
231
|
+
{ no: 3, name: "events", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Event }
|
|
232
|
+
]);
|
|
233
|
+
}
|
|
234
|
+
create(value?: PartialMessage<SendEventRequest>): SendEventRequest {
|
|
235
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
236
|
+
message.reqGuid = "";
|
|
237
|
+
message.events = [];
|
|
238
|
+
if (value !== undefined)
|
|
239
|
+
reflectionMergePartial<SendEventRequest>(this, message, value);
|
|
240
|
+
return message;
|
|
241
|
+
}
|
|
242
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SendEventRequest): SendEventRequest {
|
|
243
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
244
|
+
while (reader.pos < end) {
|
|
245
|
+
let [fieldNo, wireType] = reader.tag();
|
|
246
|
+
switch (fieldNo) {
|
|
247
|
+
case /* string req_guid */ 1:
|
|
248
|
+
message.reqGuid = reader.string();
|
|
249
|
+
break;
|
|
250
|
+
case /* google.protobuf.Timestamp sent_time */ 2:
|
|
251
|
+
message.sentTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.sentTime);
|
|
252
|
+
break;
|
|
253
|
+
case /* repeated raystack.raccoon.v1beta1.Event events */ 3:
|
|
254
|
+
message.events.push(Event.internalBinaryRead(reader, reader.uint32(), options));
|
|
255
|
+
break;
|
|
256
|
+
default:
|
|
257
|
+
let u = options.readUnknownField;
|
|
258
|
+
if (u === "throw")
|
|
259
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
260
|
+
let d = reader.skip(wireType);
|
|
261
|
+
if (u !== false)
|
|
262
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return message;
|
|
266
|
+
}
|
|
267
|
+
internalBinaryWrite(message: SendEventRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
268
|
+
/* string req_guid = 1; */
|
|
269
|
+
if (message.reqGuid !== "")
|
|
270
|
+
writer.tag(1, WireType.LengthDelimited).string(message.reqGuid);
|
|
271
|
+
/* google.protobuf.Timestamp sent_time = 2; */
|
|
272
|
+
if (message.sentTime)
|
|
273
|
+
Timestamp.internalBinaryWrite(message.sentTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
274
|
+
/* repeated raystack.raccoon.v1beta1.Event events = 3; */
|
|
275
|
+
for (let i = 0; i < message.events.length; i++)
|
|
276
|
+
Event.internalBinaryWrite(message.events[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
277
|
+
let u = options.writeUnknownFields;
|
|
278
|
+
if (u !== false)
|
|
279
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
280
|
+
return writer;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @generated MessageType for protobuf message raystack.raccoon.v1beta1.SendEventRequest
|
|
285
|
+
*/
|
|
286
|
+
export const SendEventRequest = new SendEventRequest$Type();
|
|
287
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
288
|
+
class Event$Type extends MessageType<Event> {
|
|
289
|
+
constructor() {
|
|
290
|
+
super("raystack.raccoon.v1beta1.Event", [
|
|
291
|
+
{ no: 1, name: "event_bytes", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
292
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
293
|
+
]);
|
|
294
|
+
}
|
|
295
|
+
create(value?: PartialMessage<Event>): Event {
|
|
296
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
297
|
+
message.eventBytes = new Uint8Array(0);
|
|
298
|
+
message.type = "";
|
|
299
|
+
if (value !== undefined)
|
|
300
|
+
reflectionMergePartial<Event>(this, message, value);
|
|
301
|
+
return message;
|
|
302
|
+
}
|
|
303
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event {
|
|
304
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
305
|
+
while (reader.pos < end) {
|
|
306
|
+
let [fieldNo, wireType] = reader.tag();
|
|
307
|
+
switch (fieldNo) {
|
|
308
|
+
case /* bytes event_bytes */ 1:
|
|
309
|
+
message.eventBytes = reader.bytes();
|
|
310
|
+
break;
|
|
311
|
+
case /* string type */ 2:
|
|
312
|
+
message.type = reader.string();
|
|
313
|
+
break;
|
|
314
|
+
default:
|
|
315
|
+
let u = options.readUnknownField;
|
|
316
|
+
if (u === "throw")
|
|
317
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
318
|
+
let d = reader.skip(wireType);
|
|
319
|
+
if (u !== false)
|
|
320
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return message;
|
|
324
|
+
}
|
|
325
|
+
internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
326
|
+
/* bytes event_bytes = 1; */
|
|
327
|
+
if (message.eventBytes.length)
|
|
328
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.eventBytes);
|
|
329
|
+
/* string type = 2; */
|
|
330
|
+
if (message.type !== "")
|
|
331
|
+
writer.tag(2, WireType.LengthDelimited).string(message.type);
|
|
332
|
+
let u = options.writeUnknownFields;
|
|
333
|
+
if (u !== false)
|
|
334
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
335
|
+
return writer;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @generated MessageType for protobuf message raystack.raccoon.v1beta1.Event
|
|
340
|
+
*/
|
|
341
|
+
export const Event = new Event$Type();
|
|
342
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
343
|
+
class SendEventResponse$Type extends MessageType<SendEventResponse> {
|
|
344
|
+
constructor() {
|
|
345
|
+
super("raystack.raccoon.v1beta1.SendEventResponse", [
|
|
346
|
+
{ no: 1, name: "status", kind: "enum", T: () => ["raystack.raccoon.v1beta1.Status", Status, "STATUS_"] },
|
|
347
|
+
{ no: 2, name: "code", kind: "enum", T: () => ["raystack.raccoon.v1beta1.Code", Code, "CODE_"] },
|
|
348
|
+
{ no: 3, name: "sent_time", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
349
|
+
{ no: 4, name: "reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
350
|
+
{ no: 5, name: "data", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
351
|
+
]);
|
|
352
|
+
}
|
|
353
|
+
create(value?: PartialMessage<SendEventResponse>): SendEventResponse {
|
|
354
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
355
|
+
message.status = 0;
|
|
356
|
+
message.code = 0;
|
|
357
|
+
message.sentTime = 0n;
|
|
358
|
+
message.reason = "";
|
|
359
|
+
message.data = {};
|
|
360
|
+
if (value !== undefined)
|
|
361
|
+
reflectionMergePartial<SendEventResponse>(this, message, value);
|
|
362
|
+
return message;
|
|
363
|
+
}
|
|
364
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SendEventResponse): SendEventResponse {
|
|
365
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
366
|
+
while (reader.pos < end) {
|
|
367
|
+
let [fieldNo, wireType] = reader.tag();
|
|
368
|
+
switch (fieldNo) {
|
|
369
|
+
case /* raystack.raccoon.v1beta1.Status status */ 1:
|
|
370
|
+
message.status = reader.int32();
|
|
371
|
+
break;
|
|
372
|
+
case /* raystack.raccoon.v1beta1.Code code */ 2:
|
|
373
|
+
message.code = reader.int32();
|
|
374
|
+
break;
|
|
375
|
+
case /* int64 sent_time */ 3:
|
|
376
|
+
message.sentTime = reader.int64().toBigInt();
|
|
377
|
+
break;
|
|
378
|
+
case /* string reason */ 4:
|
|
379
|
+
message.reason = reader.string();
|
|
380
|
+
break;
|
|
381
|
+
case /* map<string, string> data */ 5:
|
|
382
|
+
this.binaryReadMap5(message.data, reader, options);
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
let u = options.readUnknownField;
|
|
386
|
+
if (u === "throw")
|
|
387
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
388
|
+
let d = reader.skip(wireType);
|
|
389
|
+
if (u !== false)
|
|
390
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return message;
|
|
394
|
+
}
|
|
395
|
+
private binaryReadMap5(map: SendEventResponse["data"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
396
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof SendEventResponse["data"] | undefined, val: SendEventResponse["data"][any] | undefined;
|
|
397
|
+
while (reader.pos < end) {
|
|
398
|
+
let [fieldNo, wireType] = reader.tag();
|
|
399
|
+
switch (fieldNo) {
|
|
400
|
+
case 1:
|
|
401
|
+
key = reader.string();
|
|
402
|
+
break;
|
|
403
|
+
case 2:
|
|
404
|
+
val = reader.string();
|
|
405
|
+
break;
|
|
406
|
+
default: throw new globalThis.Error("unknown map entry field for raystack.raccoon.v1beta1.SendEventResponse.data");
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
map[key ?? ""] = val ?? "";
|
|
410
|
+
}
|
|
411
|
+
internalBinaryWrite(message: SendEventResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
412
|
+
/* raystack.raccoon.v1beta1.Status status = 1; */
|
|
413
|
+
if (message.status !== 0)
|
|
414
|
+
writer.tag(1, WireType.Varint).int32(message.status);
|
|
415
|
+
/* raystack.raccoon.v1beta1.Code code = 2; */
|
|
416
|
+
if (message.code !== 0)
|
|
417
|
+
writer.tag(2, WireType.Varint).int32(message.code);
|
|
418
|
+
/* int64 sent_time = 3; */
|
|
419
|
+
if (message.sentTime !== 0n)
|
|
420
|
+
writer.tag(3, WireType.Varint).int64(message.sentTime);
|
|
421
|
+
/* string reason = 4; */
|
|
422
|
+
if (message.reason !== "")
|
|
423
|
+
writer.tag(4, WireType.LengthDelimited).string(message.reason);
|
|
424
|
+
/* map<string, string> data = 5; */
|
|
425
|
+
for (let k of globalThis.Object.keys(message.data))
|
|
426
|
+
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.data[k]).join();
|
|
427
|
+
let u = options.writeUnknownFields;
|
|
428
|
+
if (u !== false)
|
|
429
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
430
|
+
return writer;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* @generated MessageType for protobuf message raystack.raccoon.v1beta1.SendEventResponse
|
|
435
|
+
*/
|
|
436
|
+
export const SendEventResponse = new SendEventResponse$Type();
|
|
437
|
+
/**
|
|
438
|
+
* @generated ServiceType for protobuf service raystack.raccoon.v1beta1.EventService
|
|
439
|
+
*/
|
|
440
|
+
export const EventService = new ServiceType("raystack.raccoon.v1beta1.EventService", [
|
|
441
|
+
{ name: "SendEvent", options: {}, I: SendEventRequest, O: SendEventResponse }
|
|
442
|
+
]);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file raystack/raccoon/v1beta1/raccoon.proto (package raystack.raccoon.v1beta1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { SendEventRequest, SendEventResponse } from "./raccoon_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service raystack.raccoon.v1beta1.EventService
|
|
11
|
+
*/
|
|
12
|
+
export const EventService = {
|
|
13
|
+
typeName: "raystack.raccoon.v1beta1.EventService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc raystack.raccoon.v1beta1.EventService.SendEvent
|
|
17
|
+
*/
|
|
18
|
+
sendEvent: {
|
|
19
|
+
name: "SendEvent",
|
|
20
|
+
I: SendEventRequest,
|
|
21
|
+
O: SendEventResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
} as const;
|
|
26
|
+
|