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