@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,262 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/schema.proto (package raystack.assets.v1beta1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
8
+ import { Properties } from "./properties_pb";
9
+
10
+ /**
11
+ * Columns represents a list of columns.
12
+ * It is facet used to specify the schema of a table or a file.
13
+ *
14
+ * @generated from message raystack.assets.v1beta1.Columns
15
+ */
16
+ export class Columns extends Message<Columns> {
17
+ /**
18
+ * The list of columns.
19
+ *
20
+ * @generated from field: repeated raystack.assets.v1beta1.Column columns = 1;
21
+ */
22
+ columns: Column[] = [];
23
+
24
+ constructor(data?: PartialMessage<Columns>) {
25
+ super();
26
+ proto3.util.initPartial(data, this);
27
+ }
28
+
29
+ static readonly runtime: typeof proto3 = proto3;
30
+ static readonly typeName = "raystack.assets.v1beta1.Columns";
31
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
32
+ { no: 1, name: "columns", kind: "message", T: Column, repeated: true },
33
+ ]);
34
+
35
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Columns {
36
+ return new Columns().fromBinary(bytes, options);
37
+ }
38
+
39
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Columns {
40
+ return new Columns().fromJson(jsonValue, options);
41
+ }
42
+
43
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Columns {
44
+ return new Columns().fromJsonString(jsonString, options);
45
+ }
46
+
47
+ static equals(a: Columns | PlainMessage<Columns> | undefined, b: Columns | PlainMessage<Columns> | undefined): boolean {
48
+ return proto3.util.equals(Columns, a, b);
49
+ }
50
+ }
51
+
52
+ /**
53
+ * Column represents a column in a table or a file.
54
+ *
55
+ * @generated from message raystack.assets.v1beta1.Column
56
+ */
57
+ export class Column extends Message<Column> {
58
+ /**
59
+ * The name of the column.
60
+ * Example: `customer_id`.
61
+ *
62
+ * @generated from field: string name = 1;
63
+ */
64
+ name = "";
65
+
66
+ /**
67
+ * The description of the column.
68
+ * Example: `The unique id of the customer`
69
+ *
70
+ * @generated from field: string description = 2;
71
+ */
72
+ description = "";
73
+
74
+ /**
75
+ * @generated from field: string data_type = 3;
76
+ */
77
+ dataType = "";
78
+
79
+ /**
80
+ * The format of the column.
81
+ * Example: `true`.
82
+ *
83
+ * @generated from field: bool is_nullable = 4;
84
+ */
85
+ isNullable = false;
86
+
87
+ /**
88
+ * The length of the column.
89
+ * Example: `10`.
90
+ *
91
+ * @generated from field: int64 length = 5;
92
+ */
93
+ length = protoInt64.zero;
94
+
95
+ /**
96
+ * The profile of the column.
97
+ *
98
+ * @generated from field: raystack.assets.v1beta1.ColumnProfile profile = 6;
99
+ */
100
+ profile?: ColumnProfile;
101
+
102
+ /**
103
+ * Representation of the column properties.
104
+ * Properties facet can be used to set custom properties, tags and labels for a column.
105
+ *
106
+ * @generated from field: raystack.assets.v1beta1.Properties properties = 31;
107
+ */
108
+ properties?: Properties;
109
+
110
+ constructor(data?: PartialMessage<Column>) {
111
+ super();
112
+ proto3.util.initPartial(data, this);
113
+ }
114
+
115
+ static readonly runtime: typeof proto3 = proto3;
116
+ static readonly typeName = "raystack.assets.v1beta1.Column";
117
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
118
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
119
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
120
+ { no: 3, name: "data_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
121
+ { no: 4, name: "is_nullable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
122
+ { no: 5, name: "length", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
123
+ { no: 6, name: "profile", kind: "message", T: ColumnProfile },
124
+ { no: 31, name: "properties", kind: "message", T: Properties },
125
+ ]);
126
+
127
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Column {
128
+ return new Column().fromBinary(bytes, options);
129
+ }
130
+
131
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Column {
132
+ return new Column().fromJson(jsonValue, options);
133
+ }
134
+
135
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Column {
136
+ return new Column().fromJsonString(jsonString, options);
137
+ }
138
+
139
+ static equals(a: Column | PlainMessage<Column> | undefined, b: Column | PlainMessage<Column> | undefined): boolean {
140
+ return proto3.util.equals(Column, a, b);
141
+ }
142
+ }
143
+
144
+ /**
145
+ * @generated from message raystack.assets.v1beta1.ColumnProfile
146
+ */
147
+ export class ColumnProfile extends Message<ColumnProfile> {
148
+ /**
149
+ * @generated from field: string min = 1;
150
+ */
151
+ min = "";
152
+
153
+ /**
154
+ * @generated from field: string max = 2;
155
+ */
156
+ max = "";
157
+
158
+ /**
159
+ * @generated from field: double avg = 3;
160
+ */
161
+ avg = 0;
162
+
163
+ /**
164
+ * @generated from field: double med = 4;
165
+ */
166
+ med = 0;
167
+
168
+ /**
169
+ * @generated from field: int64 unique = 5;
170
+ */
171
+ unique = protoInt64.zero;
172
+
173
+ /**
174
+ * @generated from field: int64 count = 6;
175
+ */
176
+ count = protoInt64.zero;
177
+
178
+ /**
179
+ * @generated from field: string top = 7;
180
+ */
181
+ top = "";
182
+
183
+ constructor(data?: PartialMessage<ColumnProfile>) {
184
+ super();
185
+ proto3.util.initPartial(data, this);
186
+ }
187
+
188
+ static readonly runtime: typeof proto3 = proto3;
189
+ static readonly typeName = "raystack.assets.v1beta1.ColumnProfile";
190
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
191
+ { no: 1, name: "min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
192
+ { no: 2, name: "max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
+ { no: 3, name: "avg", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
194
+ { no: 4, name: "med", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
195
+ { no: 5, name: "unique", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
196
+ { no: 6, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
197
+ { no: 7, name: "top", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ ]);
199
+
200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ColumnProfile {
201
+ return new ColumnProfile().fromBinary(bytes, options);
202
+ }
203
+
204
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ColumnProfile {
205
+ return new ColumnProfile().fromJson(jsonValue, options);
206
+ }
207
+
208
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ColumnProfile {
209
+ return new ColumnProfile().fromJsonString(jsonString, options);
210
+ }
211
+
212
+ static equals(a: ColumnProfile | PlainMessage<ColumnProfile> | undefined, b: ColumnProfile | PlainMessage<ColumnProfile> | undefined): boolean {
213
+ return proto3.util.equals(ColumnProfile, a, b);
214
+ }
215
+ }
216
+
217
+ /**
218
+ * TopicSchema represents a schema for message bus.
219
+ * It is facet used to specify the schema of a message bus.
220
+ *
221
+ * @generated from message raystack.assets.v1beta1.TopicSchema
222
+ */
223
+ export class TopicSchema extends Message<TopicSchema> {
224
+ /**
225
+ * @generated from field: string schema_url = 1;
226
+ */
227
+ schemaUrl = "";
228
+
229
+ /**
230
+ * @generated from field: string format = 2;
231
+ */
232
+ format = "";
233
+
234
+ constructor(data?: PartialMessage<TopicSchema>) {
235
+ super();
236
+ proto3.util.initPartial(data, this);
237
+ }
238
+
239
+ static readonly runtime: typeof proto3 = proto3;
240
+ static readonly typeName = "raystack.assets.v1beta1.TopicSchema";
241
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
242
+ { no: 1, name: "schema_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
+ { no: 2, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
+ ]);
245
+
246
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopicSchema {
247
+ return new TopicSchema().fromBinary(bytes, options);
248
+ }
249
+
250
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopicSchema {
251
+ return new TopicSchema().fromJson(jsonValue, options);
252
+ }
253
+
254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopicSchema {
255
+ return new TopicSchema().fromJsonString(jsonString, options);
256
+ }
257
+
258
+ static equals(a: TopicSchema | PlainMessage<TopicSchema> | undefined, b: TopicSchema | PlainMessage<TopicSchema> | undefined): boolean {
259
+ return proto3.util.equals(TopicSchema, a, b);
260
+ }
261
+ }
262
+
@@ -0,0 +1,408 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta1/table.proto" (package "raystack.assets.v1beta1", 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 { Event } from "./event";
14
+ import { Timestamp } from "./timestamp";
15
+ import { Properties } from "./properties";
16
+ import { Lineage } from "./lineage";
17
+ import { Ownership } from "./ownership";
18
+ import { Preview } from "./preview";
19
+ import { Columns } from "./schema";
20
+ import { Resource } from "./resource";
21
+ /**
22
+ * Table is a table in a database.
23
+ * It can be a file, a table, a view, a materialized view, a temporary table, or a virtual table.
24
+ *
25
+ * @generated from protobuf message raystack.assets.v1beta1.Table
26
+ */
27
+ export interface Table {
28
+ /**
29
+ * Representation of the resource
30
+ *
31
+ * @generated from protobuf field: raystack.assets.v1beta1.Resource resource = 1
32
+ */
33
+ resource?: Resource;
34
+ /**
35
+ * The metrics about the table.
36
+ * For example check the profile schem.
37
+ *
38
+ * @generated from protobuf field: raystack.assets.v1beta1.TableProfile profile = 21
39
+ */
40
+ profile?: TableProfile;
41
+ /**
42
+ * The columns of the table.
43
+ * Example: 'id', `name`, `age'.
44
+ *
45
+ * @generated from protobuf field: raystack.assets.v1beta1.Columns schema = 22
46
+ */
47
+ schema?: Columns;
48
+ /**
49
+ * Previews of the table.
50
+ * For an example check out preview facet.
51
+ *
52
+ * @generated from protobuf field: raystack.assets.v1beta1.Preview preview = 23
53
+ */
54
+ preview?: Preview;
55
+ /**
56
+ * The ownership of the table.
57
+ * For an example check out ownership.
58
+ *
59
+ * @generated from protobuf field: raystack.assets.v1beta1.Ownership ownership = 31
60
+ */
61
+ ownership?: Ownership;
62
+ /**
63
+ * The lineage of the table.
64
+ * For an example check out lineage.
65
+ *
66
+ * @generated from protobuf field: raystack.assets.v1beta1.Lineage lineage = 32
67
+ */
68
+ lineage?: Lineage;
69
+ /**
70
+ * List of the user's custom properties.
71
+ * Properties facet can be used to set custom properties, tags and labels for a user.
72
+ *
73
+ * @generated from protobuf field: raystack.assets.v1beta1.Properties properties = 33
74
+ */
75
+ properties?: Properties;
76
+ /**
77
+ * The timestamp of the user's creation.
78
+ * Timstamp facet can be used to set the creation and updation timestamp of a user.
79
+ *
80
+ * @generated from protobuf field: raystack.assets.v1beta1.Timestamp timestamps = 34
81
+ */
82
+ timestamps?: Timestamp;
83
+ /**
84
+ * The timestamp of the generated event.
85
+ * Event schemas is defined in the common event schema.
86
+ *
87
+ * @generated from protobuf field: raystack.assets.v1beta1.Event event = 100
88
+ */
89
+ event?: Event;
90
+ }
91
+ /**
92
+ * TableProfile is the metrics about the table.
93
+ *
94
+ * @generated from protobuf message raystack.assets.v1beta1.TableProfile
95
+ */
96
+ export interface TableProfile {
97
+ /**
98
+ * The number of rows in the table.
99
+ * Example: `100`.
100
+ *
101
+ * @generated from protobuf field: int64 total_rows = 1
102
+ */
103
+ totalRows: bigint;
104
+ /**
105
+ * The number of rows in the table that are not deleted.
106
+ * Example: `event_timestamp`.
107
+ *
108
+ * @generated from protobuf field: string partition_key = 2
109
+ */
110
+ partitionKey: string;
111
+ /**
112
+ * @generated from protobuf field: string partition_value = 3
113
+ */
114
+ partitionValue: string;
115
+ /**
116
+ * The number of how many times table is being used
117
+ *
118
+ * @generated from protobuf field: int64 usage_count = 4
119
+ */
120
+ usageCount: bigint;
121
+ /**
122
+ * The information of `join` applied to the table
123
+ *
124
+ * @generated from protobuf field: repeated raystack.assets.v1beta1.Join joins = 5
125
+ */
126
+ joins: Join[];
127
+ /**
128
+ * The information of `filter` applied to the table
129
+ *
130
+ * @generated from protobuf field: repeated string filters = 6
131
+ */
132
+ filters: string[];
133
+ }
134
+ /**
135
+ * Join is the metric of which are other tables that are joined with this table
136
+ *
137
+ * @generated from protobuf message raystack.assets.v1beta1.Join
138
+ */
139
+ export interface Join {
140
+ /**
141
+ * @generated from protobuf field: string urn = 1
142
+ */
143
+ urn: string;
144
+ /**
145
+ * The number of how many times table is being joined with a certain table urn
146
+ *
147
+ * @generated from protobuf field: int64 count = 2
148
+ */
149
+ count: bigint;
150
+ /**
151
+ * The information of `join conditions` applied to the table
152
+ *
153
+ * @generated from protobuf field: repeated string conditions = 3
154
+ */
155
+ conditions: string[];
156
+ }
157
+ // @generated message type with reflection information, may provide speed optimized methods
158
+ class Table$Type extends MessageType<Table> {
159
+ constructor() {
160
+ super("raystack.assets.v1beta1.Table", [
161
+ { no: 1, name: "resource", kind: "message", T: () => Resource },
162
+ { no: 21, name: "profile", kind: "message", T: () => TableProfile },
163
+ { no: 22, name: "schema", kind: "message", T: () => Columns },
164
+ { no: 23, name: "preview", kind: "message", T: () => Preview },
165
+ { no: 31, name: "ownership", kind: "message", T: () => Ownership },
166
+ { no: 32, name: "lineage", kind: "message", T: () => Lineage },
167
+ { no: 33, name: "properties", kind: "message", T: () => Properties },
168
+ { no: 34, name: "timestamps", kind: "message", T: () => Timestamp },
169
+ { no: 100, name: "event", kind: "message", T: () => Event }
170
+ ]);
171
+ }
172
+ create(value?: PartialMessage<Table>): Table {
173
+ const message = globalThis.Object.create((this.messagePrototype!));
174
+ if (value !== undefined)
175
+ reflectionMergePartial<Table>(this, message, value);
176
+ return message;
177
+ }
178
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Table): Table {
179
+ let message = target ?? this.create(), end = reader.pos + length;
180
+ while (reader.pos < end) {
181
+ let [fieldNo, wireType] = reader.tag();
182
+ switch (fieldNo) {
183
+ case /* raystack.assets.v1beta1.Resource resource */ 1:
184
+ message.resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.resource);
185
+ break;
186
+ case /* raystack.assets.v1beta1.TableProfile profile */ 21:
187
+ message.profile = TableProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
188
+ break;
189
+ case /* raystack.assets.v1beta1.Columns schema */ 22:
190
+ message.schema = Columns.internalBinaryRead(reader, reader.uint32(), options, message.schema);
191
+ break;
192
+ case /* raystack.assets.v1beta1.Preview preview */ 23:
193
+ message.preview = Preview.internalBinaryRead(reader, reader.uint32(), options, message.preview);
194
+ break;
195
+ case /* raystack.assets.v1beta1.Ownership ownership */ 31:
196
+ message.ownership = Ownership.internalBinaryRead(reader, reader.uint32(), options, message.ownership);
197
+ break;
198
+ case /* raystack.assets.v1beta1.Lineage lineage */ 32:
199
+ message.lineage = Lineage.internalBinaryRead(reader, reader.uint32(), options, message.lineage);
200
+ break;
201
+ case /* raystack.assets.v1beta1.Properties properties */ 33:
202
+ message.properties = Properties.internalBinaryRead(reader, reader.uint32(), options, message.properties);
203
+ break;
204
+ case /* raystack.assets.v1beta1.Timestamp timestamps */ 34:
205
+ message.timestamps = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamps);
206
+ break;
207
+ case /* raystack.assets.v1beta1.Event event */ 100:
208
+ message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
209
+ break;
210
+ default:
211
+ let u = options.readUnknownField;
212
+ if (u === "throw")
213
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
214
+ let d = reader.skip(wireType);
215
+ if (u !== false)
216
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
217
+ }
218
+ }
219
+ return message;
220
+ }
221
+ internalBinaryWrite(message: Table, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
222
+ /* raystack.assets.v1beta1.Resource resource = 1; */
223
+ if (message.resource)
224
+ Resource.internalBinaryWrite(message.resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
225
+ /* raystack.assets.v1beta1.TableProfile profile = 21; */
226
+ if (message.profile)
227
+ TableProfile.internalBinaryWrite(message.profile, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
228
+ /* raystack.assets.v1beta1.Columns schema = 22; */
229
+ if (message.schema)
230
+ Columns.internalBinaryWrite(message.schema, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
231
+ /* raystack.assets.v1beta1.Preview preview = 23; */
232
+ if (message.preview)
233
+ Preview.internalBinaryWrite(message.preview, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
234
+ /* raystack.assets.v1beta1.Ownership ownership = 31; */
235
+ if (message.ownership)
236
+ Ownership.internalBinaryWrite(message.ownership, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
237
+ /* raystack.assets.v1beta1.Lineage lineage = 32; */
238
+ if (message.lineage)
239
+ Lineage.internalBinaryWrite(message.lineage, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
240
+ /* raystack.assets.v1beta1.Properties properties = 33; */
241
+ if (message.properties)
242
+ Properties.internalBinaryWrite(message.properties, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
243
+ /* raystack.assets.v1beta1.Timestamp timestamps = 34; */
244
+ if (message.timestamps)
245
+ Timestamp.internalBinaryWrite(message.timestamps, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
246
+ /* raystack.assets.v1beta1.Event event = 100; */
247
+ if (message.event)
248
+ Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
249
+ let u = options.writeUnknownFields;
250
+ if (u !== false)
251
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
252
+ return writer;
253
+ }
254
+ }
255
+ /**
256
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Table
257
+ */
258
+ export const Table = new Table$Type();
259
+ // @generated message type with reflection information, may provide speed optimized methods
260
+ class TableProfile$Type extends MessageType<TableProfile> {
261
+ constructor() {
262
+ super("raystack.assets.v1beta1.TableProfile", [
263
+ { no: 1, name: "total_rows", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
264
+ { no: 2, name: "partition_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
265
+ { no: 3, name: "partition_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
266
+ { no: 4, name: "usage_count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
267
+ { no: 5, name: "joins", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Join },
268
+ { no: 6, name: "filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
269
+ ]);
270
+ }
271
+ create(value?: PartialMessage<TableProfile>): TableProfile {
272
+ const message = globalThis.Object.create((this.messagePrototype!));
273
+ message.totalRows = 0n;
274
+ message.partitionKey = "";
275
+ message.partitionValue = "";
276
+ message.usageCount = 0n;
277
+ message.joins = [];
278
+ message.filters = [];
279
+ if (value !== undefined)
280
+ reflectionMergePartial<TableProfile>(this, message, value);
281
+ return message;
282
+ }
283
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TableProfile): TableProfile {
284
+ let message = target ?? this.create(), end = reader.pos + length;
285
+ while (reader.pos < end) {
286
+ let [fieldNo, wireType] = reader.tag();
287
+ switch (fieldNo) {
288
+ case /* int64 total_rows */ 1:
289
+ message.totalRows = reader.int64().toBigInt();
290
+ break;
291
+ case /* string partition_key */ 2:
292
+ message.partitionKey = reader.string();
293
+ break;
294
+ case /* string partition_value */ 3:
295
+ message.partitionValue = reader.string();
296
+ break;
297
+ case /* int64 usage_count */ 4:
298
+ message.usageCount = reader.int64().toBigInt();
299
+ break;
300
+ case /* repeated raystack.assets.v1beta1.Join joins */ 5:
301
+ message.joins.push(Join.internalBinaryRead(reader, reader.uint32(), options));
302
+ break;
303
+ case /* repeated string filters */ 6:
304
+ message.filters.push(reader.string());
305
+ break;
306
+ default:
307
+ let u = options.readUnknownField;
308
+ if (u === "throw")
309
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
310
+ let d = reader.skip(wireType);
311
+ if (u !== false)
312
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
313
+ }
314
+ }
315
+ return message;
316
+ }
317
+ internalBinaryWrite(message: TableProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
318
+ /* int64 total_rows = 1; */
319
+ if (message.totalRows !== 0n)
320
+ writer.tag(1, WireType.Varint).int64(message.totalRows);
321
+ /* string partition_key = 2; */
322
+ if (message.partitionKey !== "")
323
+ writer.tag(2, WireType.LengthDelimited).string(message.partitionKey);
324
+ /* string partition_value = 3; */
325
+ if (message.partitionValue !== "")
326
+ writer.tag(3, WireType.LengthDelimited).string(message.partitionValue);
327
+ /* int64 usage_count = 4; */
328
+ if (message.usageCount !== 0n)
329
+ writer.tag(4, WireType.Varint).int64(message.usageCount);
330
+ /* repeated raystack.assets.v1beta1.Join joins = 5; */
331
+ for (let i = 0; i < message.joins.length; i++)
332
+ Join.internalBinaryWrite(message.joins[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
333
+ /* repeated string filters = 6; */
334
+ for (let i = 0; i < message.filters.length; i++)
335
+ writer.tag(6, WireType.LengthDelimited).string(message.filters[i]);
336
+ let u = options.writeUnknownFields;
337
+ if (u !== false)
338
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
339
+ return writer;
340
+ }
341
+ }
342
+ /**
343
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.TableProfile
344
+ */
345
+ export const TableProfile = new TableProfile$Type();
346
+ // @generated message type with reflection information, may provide speed optimized methods
347
+ class Join$Type extends MessageType<Join> {
348
+ constructor() {
349
+ super("raystack.assets.v1beta1.Join", [
350
+ { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
351
+ { no: 2, name: "count", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
352
+ { no: 3, name: "conditions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
353
+ ]);
354
+ }
355
+ create(value?: PartialMessage<Join>): Join {
356
+ const message = globalThis.Object.create((this.messagePrototype!));
357
+ message.urn = "";
358
+ message.count = 0n;
359
+ message.conditions = [];
360
+ if (value !== undefined)
361
+ reflectionMergePartial<Join>(this, message, value);
362
+ return message;
363
+ }
364
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Join): Join {
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 /* string urn */ 1:
370
+ message.urn = reader.string();
371
+ break;
372
+ case /* int64 count */ 2:
373
+ message.count = reader.int64().toBigInt();
374
+ break;
375
+ case /* repeated string conditions */ 3:
376
+ message.conditions.push(reader.string());
377
+ break;
378
+ default:
379
+ let u = options.readUnknownField;
380
+ if (u === "throw")
381
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
382
+ let d = reader.skip(wireType);
383
+ if (u !== false)
384
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
385
+ }
386
+ }
387
+ return message;
388
+ }
389
+ internalBinaryWrite(message: Join, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
390
+ /* string urn = 1; */
391
+ if (message.urn !== "")
392
+ writer.tag(1, WireType.LengthDelimited).string(message.urn);
393
+ /* int64 count = 2; */
394
+ if (message.count !== 0n)
395
+ writer.tag(2, WireType.Varint).int64(message.count);
396
+ /* repeated string conditions = 3; */
397
+ for (let i = 0; i < message.conditions.length; i++)
398
+ writer.tag(3, WireType.LengthDelimited).string(message.conditions[i]);
399
+ let u = options.writeUnknownFields;
400
+ if (u !== false)
401
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
402
+ return writer;
403
+ }
404
+ }
405
+ /**
406
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Join
407
+ */
408
+ export const Join = new Join$Type();