@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,392 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta2/common.proto" (package "raystack.assets.v1beta2", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { Timestamp } from "../../../google/protobuf/timestamp";
14
+ /**
15
+ * Event represents an event in the system.
16
+ * Event is majorly used to represent the state of the system in the form of events.
17
+ * It can be used in any schema which intend to produce events to message bus.
18
+ *
19
+ * @generated from protobuf message raystack.assets.v1beta2.Event
20
+ */
21
+ export interface Event {
22
+ /**
23
+ * The timestamp of the event.
24
+ * Example: `2018-01-01T00:00:00Z`.
25
+ *
26
+ * @generated from protobuf field: google.protobuf.Timestamp timestamp = 1
27
+ */
28
+ timestamp?: Timestamp;
29
+ /**
30
+ * The activity that created the event.
31
+ * Example: `create`, `update`.
32
+ *
33
+ * @generated from protobuf field: string action = 2
34
+ */
35
+ action: string;
36
+ /**
37
+ * The description of the event.
38
+ * Example: `user is created from signup form`.
39
+ *
40
+ * @generated from protobuf field: string description = 3
41
+ */
42
+ description: string;
43
+ }
44
+ /**
45
+ * Linage represents the relationship of resource to other resources.
46
+ * Relation is way of describing the relationship between two resources.
47
+ *
48
+ * @generated from protobuf message raystack.assets.v1beta2.Lineage
49
+ */
50
+ export interface Lineage {
51
+ /**
52
+ * The resource that is the source of the relationship.
53
+ * Example: a resource that is the parent of another resource.
54
+ *
55
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Resource upstreams = 1
56
+ */
57
+ upstreams: Resource[];
58
+ /**
59
+ * The resource that is the destination of the relationship.
60
+ * Example: a resource that is the child of another resource.
61
+ *
62
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Resource downstreams = 2
63
+ */
64
+ downstreams: Resource[];
65
+ }
66
+ /**
67
+ * @generated from protobuf message raystack.assets.v1beta2.Resource
68
+ */
69
+ export interface Resource {
70
+ /**
71
+ * The unique identifier of the resource.
72
+ * Example: `user:jdoe` or `group:accounting`.
73
+ *
74
+ * @generated from protobuf field: string urn = 1
75
+ */
76
+ urn: string;
77
+ /**
78
+ * The name of the resource.
79
+ * Example: `John Doe` or `Accounting`.
80
+ *
81
+ * @generated from protobuf field: string name = 2
82
+ */
83
+ name: string;
84
+ /**
85
+ * The source of the resource.
86
+ * Example: `github` or `bigquery`.
87
+ *
88
+ * @generated from protobuf field: string service = 3
89
+ */
90
+ service: string;
91
+ /**
92
+ * The type of the asset.
93
+ * Example: `user` or `group`.
94
+ *
95
+ * @generated from protobuf field: string type = 4
96
+ */
97
+ type: string;
98
+ }
99
+ /**
100
+ * Owner is a facet that describes the owner of a resource.
101
+ *
102
+ * The name of the owner.
103
+ * Example: `user:johndoe`.
104
+ *
105
+ * @generated from protobuf message raystack.assets.v1beta2.Owner
106
+ */
107
+ export interface Owner {
108
+ /**
109
+ * @generated from protobuf field: string urn = 1
110
+ */
111
+ urn: string;
112
+ /**
113
+ * The name of the owner.
114
+ * Example: `John Doe`.
115
+ *
116
+ * @generated from protobuf field: string name = 2
117
+ */
118
+ name: string;
119
+ /**
120
+ * The role of the owner.
121
+ * Example: `admin`, `steward`.
122
+ *
123
+ * @generated from protobuf field: string role = 3
124
+ */
125
+ role: string;
126
+ /**
127
+ * The email of the owner.
128
+ * Example: `abc@email.com`
129
+ *
130
+ * @generated from protobuf field: string email = 4
131
+ */
132
+ email: string;
133
+ }
134
+ // @generated message type with reflection information, may provide speed optimized methods
135
+ class Event$Type extends MessageType<Event> {
136
+ constructor() {
137
+ super("raystack.assets.v1beta2.Event", [
138
+ { no: 1, name: "timestamp", kind: "message", T: () => Timestamp },
139
+ { no: 2, name: "action", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
140
+ { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
141
+ ]);
142
+ }
143
+ create(value?: PartialMessage<Event>): Event {
144
+ const message = globalThis.Object.create((this.messagePrototype!));
145
+ message.action = "";
146
+ message.description = "";
147
+ if (value !== undefined)
148
+ reflectionMergePartial<Event>(this, message, value);
149
+ return message;
150
+ }
151
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Event): Event {
152
+ let message = target ?? this.create(), end = reader.pos + length;
153
+ while (reader.pos < end) {
154
+ let [fieldNo, wireType] = reader.tag();
155
+ switch (fieldNo) {
156
+ case /* google.protobuf.Timestamp timestamp */ 1:
157
+ message.timestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamp);
158
+ break;
159
+ case /* string action */ 2:
160
+ message.action = reader.string();
161
+ break;
162
+ case /* string description */ 3:
163
+ message.description = reader.string();
164
+ break;
165
+ default:
166
+ let u = options.readUnknownField;
167
+ if (u === "throw")
168
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
169
+ let d = reader.skip(wireType);
170
+ if (u !== false)
171
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
172
+ }
173
+ }
174
+ return message;
175
+ }
176
+ internalBinaryWrite(message: Event, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
177
+ /* google.protobuf.Timestamp timestamp = 1; */
178
+ if (message.timestamp)
179
+ Timestamp.internalBinaryWrite(message.timestamp, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
180
+ /* string action = 2; */
181
+ if (message.action !== "")
182
+ writer.tag(2, WireType.LengthDelimited).string(message.action);
183
+ /* string description = 3; */
184
+ if (message.description !== "")
185
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
186
+ let u = options.writeUnknownFields;
187
+ if (u !== false)
188
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
189
+ return writer;
190
+ }
191
+ }
192
+ /**
193
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Event
194
+ */
195
+ export const Event = new Event$Type();
196
+ // @generated message type with reflection information, may provide speed optimized methods
197
+ class Lineage$Type extends MessageType<Lineage> {
198
+ constructor() {
199
+ super("raystack.assets.v1beta2.Lineage", [
200
+ { no: 1, name: "upstreams", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Resource },
201
+ { no: 2, name: "downstreams", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Resource }
202
+ ]);
203
+ }
204
+ create(value?: PartialMessage<Lineage>): Lineage {
205
+ const message = globalThis.Object.create((this.messagePrototype!));
206
+ message.upstreams = [];
207
+ message.downstreams = [];
208
+ if (value !== undefined)
209
+ reflectionMergePartial<Lineage>(this, message, value);
210
+ return message;
211
+ }
212
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Lineage): Lineage {
213
+ let message = target ?? this.create(), end = reader.pos + length;
214
+ while (reader.pos < end) {
215
+ let [fieldNo, wireType] = reader.tag();
216
+ switch (fieldNo) {
217
+ case /* repeated raystack.assets.v1beta2.Resource upstreams */ 1:
218
+ message.upstreams.push(Resource.internalBinaryRead(reader, reader.uint32(), options));
219
+ break;
220
+ case /* repeated raystack.assets.v1beta2.Resource downstreams */ 2:
221
+ message.downstreams.push(Resource.internalBinaryRead(reader, reader.uint32(), options));
222
+ break;
223
+ default:
224
+ let u = options.readUnknownField;
225
+ if (u === "throw")
226
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
227
+ let d = reader.skip(wireType);
228
+ if (u !== false)
229
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
230
+ }
231
+ }
232
+ return message;
233
+ }
234
+ internalBinaryWrite(message: Lineage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
235
+ /* repeated raystack.assets.v1beta2.Resource upstreams = 1; */
236
+ for (let i = 0; i < message.upstreams.length; i++)
237
+ Resource.internalBinaryWrite(message.upstreams[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
238
+ /* repeated raystack.assets.v1beta2.Resource downstreams = 2; */
239
+ for (let i = 0; i < message.downstreams.length; i++)
240
+ Resource.internalBinaryWrite(message.downstreams[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
241
+ let u = options.writeUnknownFields;
242
+ if (u !== false)
243
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
244
+ return writer;
245
+ }
246
+ }
247
+ /**
248
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Lineage
249
+ */
250
+ export const Lineage = new Lineage$Type();
251
+ // @generated message type with reflection information, may provide speed optimized methods
252
+ class Resource$Type extends MessageType<Resource> {
253
+ constructor() {
254
+ super("raystack.assets.v1beta2.Resource", [
255
+ { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
256
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
257
+ { no: 3, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
258
+ { no: 4, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
259
+ ]);
260
+ }
261
+ create(value?: PartialMessage<Resource>): Resource {
262
+ const message = globalThis.Object.create((this.messagePrototype!));
263
+ message.urn = "";
264
+ message.name = "";
265
+ message.service = "";
266
+ message.type = "";
267
+ if (value !== undefined)
268
+ reflectionMergePartial<Resource>(this, message, value);
269
+ return message;
270
+ }
271
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
272
+ let message = target ?? this.create(), end = reader.pos + length;
273
+ while (reader.pos < end) {
274
+ let [fieldNo, wireType] = reader.tag();
275
+ switch (fieldNo) {
276
+ case /* string urn */ 1:
277
+ message.urn = reader.string();
278
+ break;
279
+ case /* string name */ 2:
280
+ message.name = reader.string();
281
+ break;
282
+ case /* string service */ 3:
283
+ message.service = reader.string();
284
+ break;
285
+ case /* string type */ 4:
286
+ message.type = reader.string();
287
+ break;
288
+ default:
289
+ let u = options.readUnknownField;
290
+ if (u === "throw")
291
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
292
+ let d = reader.skip(wireType);
293
+ if (u !== false)
294
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
295
+ }
296
+ }
297
+ return message;
298
+ }
299
+ internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
300
+ /* string urn = 1; */
301
+ if (message.urn !== "")
302
+ writer.tag(1, WireType.LengthDelimited).string(message.urn);
303
+ /* string name = 2; */
304
+ if (message.name !== "")
305
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
306
+ /* string service = 3; */
307
+ if (message.service !== "")
308
+ writer.tag(3, WireType.LengthDelimited).string(message.service);
309
+ /* string type = 4; */
310
+ if (message.type !== "")
311
+ writer.tag(4, WireType.LengthDelimited).string(message.type);
312
+ let u = options.writeUnknownFields;
313
+ if (u !== false)
314
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
315
+ return writer;
316
+ }
317
+ }
318
+ /**
319
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Resource
320
+ */
321
+ export const Resource = new Resource$Type();
322
+ // @generated message type with reflection information, may provide speed optimized methods
323
+ class Owner$Type extends MessageType<Owner> {
324
+ constructor() {
325
+ super("raystack.assets.v1beta2.Owner", [
326
+ { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
327
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
328
+ { no: 3, name: "role", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
329
+ { no: 4, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
330
+ ]);
331
+ }
332
+ create(value?: PartialMessage<Owner>): Owner {
333
+ const message = globalThis.Object.create((this.messagePrototype!));
334
+ message.urn = "";
335
+ message.name = "";
336
+ message.role = "";
337
+ message.email = "";
338
+ if (value !== undefined)
339
+ reflectionMergePartial<Owner>(this, message, value);
340
+ return message;
341
+ }
342
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Owner): Owner {
343
+ let message = target ?? this.create(), end = reader.pos + length;
344
+ while (reader.pos < end) {
345
+ let [fieldNo, wireType] = reader.tag();
346
+ switch (fieldNo) {
347
+ case /* string urn */ 1:
348
+ message.urn = reader.string();
349
+ break;
350
+ case /* string name */ 2:
351
+ message.name = reader.string();
352
+ break;
353
+ case /* string role */ 3:
354
+ message.role = reader.string();
355
+ break;
356
+ case /* string email */ 4:
357
+ message.email = reader.string();
358
+ break;
359
+ default:
360
+ let u = options.readUnknownField;
361
+ if (u === "throw")
362
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
363
+ let d = reader.skip(wireType);
364
+ if (u !== false)
365
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
366
+ }
367
+ }
368
+ return message;
369
+ }
370
+ internalBinaryWrite(message: Owner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
371
+ /* string urn = 1; */
372
+ if (message.urn !== "")
373
+ writer.tag(1, WireType.LengthDelimited).string(message.urn);
374
+ /* string name = 2; */
375
+ if (message.name !== "")
376
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
377
+ /* string role = 3; */
378
+ if (message.role !== "")
379
+ writer.tag(3, WireType.LengthDelimited).string(message.role);
380
+ /* string email = 4; */
381
+ if (message.email !== "")
382
+ writer.tag(4, WireType.LengthDelimited).string(message.email);
383
+ let u = options.writeUnknownFields;
384
+ if (u !== false)
385
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
386
+ return writer;
387
+ }
388
+ }
389
+ /**
390
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Owner
391
+ */
392
+ export const Owner = new Owner$Type();
@@ -0,0 +1,258 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta2/common.proto (package raystack.assets.v1beta2, 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, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * Event represents an event in the system.
11
+ * Event is majorly used to represent the state of the system in the form of events.
12
+ * It can be used in any schema which intend to produce events to message bus.
13
+ *
14
+ * @generated from message raystack.assets.v1beta2.Event
15
+ */
16
+ export class Event extends Message<Event> {
17
+ /**
18
+ * The timestamp of the event.
19
+ * Example: `2018-01-01T00:00:00Z`.
20
+ *
21
+ * @generated from field: google.protobuf.Timestamp timestamp = 1;
22
+ */
23
+ timestamp?: Timestamp;
24
+
25
+ /**
26
+ * The activity that created the event.
27
+ * Example: `create`, `update`.
28
+ *
29
+ * @generated from field: string action = 2;
30
+ */
31
+ action = "";
32
+
33
+ /**
34
+ * The description of the event.
35
+ * Example: `user is created from signup form`.
36
+ *
37
+ * @generated from field: string description = 3;
38
+ */
39
+ description = "";
40
+
41
+ constructor(data?: PartialMessage<Event>) {
42
+ super();
43
+ proto3.util.initPartial(data, this);
44
+ }
45
+
46
+ static readonly runtime: typeof proto3 = proto3;
47
+ static readonly typeName = "raystack.assets.v1beta2.Event";
48
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
49
+ { no: 1, name: "timestamp", kind: "message", T: Timestamp },
50
+ { no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
51
+ { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
+ ]);
53
+
54
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Event {
55
+ return new Event().fromBinary(bytes, options);
56
+ }
57
+
58
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Event {
59
+ return new Event().fromJson(jsonValue, options);
60
+ }
61
+
62
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Event {
63
+ return new Event().fromJsonString(jsonString, options);
64
+ }
65
+
66
+ static equals(a: Event | PlainMessage<Event> | undefined, b: Event | PlainMessage<Event> | undefined): boolean {
67
+ return proto3.util.equals(Event, a, b);
68
+ }
69
+ }
70
+
71
+ /**
72
+ * Linage represents the relationship of resource to other resources.
73
+ * Relation is way of describing the relationship between two resources.
74
+ *
75
+ * @generated from message raystack.assets.v1beta2.Lineage
76
+ */
77
+ export class Lineage extends Message<Lineage> {
78
+ /**
79
+ * The resource that is the source of the relationship.
80
+ * Example: a resource that is the parent of another resource.
81
+ *
82
+ * @generated from field: repeated raystack.assets.v1beta2.Resource upstreams = 1;
83
+ */
84
+ upstreams: Resource[] = [];
85
+
86
+ /**
87
+ * The resource that is the destination of the relationship.
88
+ * Example: a resource that is the child of another resource.
89
+ *
90
+ * @generated from field: repeated raystack.assets.v1beta2.Resource downstreams = 2;
91
+ */
92
+ downstreams: Resource[] = [];
93
+
94
+ constructor(data?: PartialMessage<Lineage>) {
95
+ super();
96
+ proto3.util.initPartial(data, this);
97
+ }
98
+
99
+ static readonly runtime: typeof proto3 = proto3;
100
+ static readonly typeName = "raystack.assets.v1beta2.Lineage";
101
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
102
+ { no: 1, name: "upstreams", kind: "message", T: Resource, repeated: true },
103
+ { no: 2, name: "downstreams", kind: "message", T: Resource, repeated: true },
104
+ ]);
105
+
106
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Lineage {
107
+ return new Lineage().fromBinary(bytes, options);
108
+ }
109
+
110
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Lineage {
111
+ return new Lineage().fromJson(jsonValue, options);
112
+ }
113
+
114
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Lineage {
115
+ return new Lineage().fromJsonString(jsonString, options);
116
+ }
117
+
118
+ static equals(a: Lineage | PlainMessage<Lineage> | undefined, b: Lineage | PlainMessage<Lineage> | undefined): boolean {
119
+ return proto3.util.equals(Lineage, a, b);
120
+ }
121
+ }
122
+
123
+ /**
124
+ * @generated from message raystack.assets.v1beta2.Resource
125
+ */
126
+ export class Resource extends Message<Resource> {
127
+ /**
128
+ * The unique identifier of the resource.
129
+ * Example: `user:jdoe` or `group:accounting`.
130
+ *
131
+ * @generated from field: string urn = 1;
132
+ */
133
+ urn = "";
134
+
135
+ /**
136
+ * The name of the resource.
137
+ * Example: `John Doe` or `Accounting`.
138
+ *
139
+ * @generated from field: string name = 2;
140
+ */
141
+ name = "";
142
+
143
+ /**
144
+ * The source of the resource.
145
+ * Example: `github` or `bigquery`.
146
+ *
147
+ * @generated from field: string service = 3;
148
+ */
149
+ service = "";
150
+
151
+ /**
152
+ * The type of the asset.
153
+ * Example: `user` or `group`.
154
+ *
155
+ * @generated from field: string type = 4;
156
+ */
157
+ type = "";
158
+
159
+ constructor(data?: PartialMessage<Resource>) {
160
+ super();
161
+ proto3.util.initPartial(data, this);
162
+ }
163
+
164
+ static readonly runtime: typeof proto3 = proto3;
165
+ static readonly typeName = "raystack.assets.v1beta2.Resource";
166
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
167
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
168
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
+ { no: 3, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
170
+ { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
171
+ ]);
172
+
173
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Resource {
174
+ return new Resource().fromBinary(bytes, options);
175
+ }
176
+
177
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Resource {
178
+ return new Resource().fromJson(jsonValue, options);
179
+ }
180
+
181
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Resource {
182
+ return new Resource().fromJsonString(jsonString, options);
183
+ }
184
+
185
+ static equals(a: Resource | PlainMessage<Resource> | undefined, b: Resource | PlainMessage<Resource> | undefined): boolean {
186
+ return proto3.util.equals(Resource, a, b);
187
+ }
188
+ }
189
+
190
+ /**
191
+ * Owner is a facet that describes the owner of a resource.
192
+ *
193
+ * The name of the owner.
194
+ * Example: `user:johndoe`.
195
+ *
196
+ * @generated from message raystack.assets.v1beta2.Owner
197
+ */
198
+ export class Owner extends Message<Owner> {
199
+ /**
200
+ * @generated from field: string urn = 1;
201
+ */
202
+ urn = "";
203
+
204
+ /**
205
+ * The name of the owner.
206
+ * Example: `John Doe`.
207
+ *
208
+ * @generated from field: string name = 2;
209
+ */
210
+ name = "";
211
+
212
+ /**
213
+ * The role of the owner.
214
+ * Example: `admin`, `steward`.
215
+ *
216
+ * @generated from field: string role = 3;
217
+ */
218
+ role = "";
219
+
220
+ /**
221
+ * The email of the owner.
222
+ * Example: `abc@email.com`
223
+ *
224
+ * @generated from field: string email = 4;
225
+ */
226
+ email = "";
227
+
228
+ constructor(data?: PartialMessage<Owner>) {
229
+ super();
230
+ proto3.util.initPartial(data, this);
231
+ }
232
+
233
+ static readonly runtime: typeof proto3 = proto3;
234
+ static readonly typeName = "raystack.assets.v1beta2.Owner";
235
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
236
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
237
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
238
+ { no: 3, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
+ { no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
+ ]);
241
+
242
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Owner {
243
+ return new Owner().fromBinary(bytes, options);
244
+ }
245
+
246
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Owner {
247
+ return new Owner().fromJson(jsonValue, options);
248
+ }
249
+
250
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Owner {
251
+ return new Owner().fromJsonString(jsonString, options);
252
+ }
253
+
254
+ static equals(a: Owner | PlainMessage<Owner> | undefined, b: Owner | PlainMessage<Owner> | undefined): boolean {
255
+ return proto3.util.equals(Owner, a, b);
256
+ }
257
+ }
258
+