@raystack/proton 0.1.0-35dd68d487bfa7e7339c40e9b103ee7377aac6e6 → 0.1.0-881c92a4cab2490e6c680462a94660b551b1040f

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 (111) hide show
  1. package/google/api/annotations_pb.ts +15 -9
  2. package/google/api/field_behavior_pb.ts +19 -19
  3. package/google/api/http_pb.ts +43 -108
  4. package/google/api/httpbody_pb.ts +23 -37
  5. package/index.ts +10 -0
  6. package/package.json +61 -17
  7. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  8. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  9. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  10. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  11. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  12. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  13. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  14. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  15. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  16. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  17. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  18. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  19. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  20. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  21. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  22. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  23. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  24. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  25. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  26. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  27. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  28. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  29. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  30. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  31. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  32. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  33. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  34. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  35. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  36. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  37. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  38. package/raystack/common/index.ts +0 -1
  39. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  40. package/raystack/common/v1/service_pb.ts +57 -97
  41. package/raystack/compass/index.ts +0 -1
  42. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  43. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  44. package/raystack/entropy/index.ts +0 -2
  45. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  46. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  47. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  48. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  49. package/raystack/frontier/index.ts +0 -2
  50. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +54 -524
  51. package/raystack/frontier/v1beta1/admin_pb.ts +1755 -3846
  52. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
  53. package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
  54. package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
  55. package/raystack/guardian/index.ts +0 -1
  56. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  57. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  58. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  59. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  60. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  61. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  62. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  63. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  64. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  65. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  66. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  67. package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
  68. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  69. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  70. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  71. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  72. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  73. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  74. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  75. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  76. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  77. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  78. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  79. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  80. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  81. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  82. package/raystack/raccoon/index.ts +0 -1
  83. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  84. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  85. package/raystack/siren/index.ts +0 -1
  86. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  87. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  88. package/raystack/stencil/index.ts +0 -1
  89. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  90. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  91. package/validate/validate_pb.ts +401 -1038
  92. package/raystack/common/v1/service_connect.ts +0 -26
  93. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  94. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  95. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  96. package/raystack/frontier/v1beta1/admin_connect.ts +0 -584
  97. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  98. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  99. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  100. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  101. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  102. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  103. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  104. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  105. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  106. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  107. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  108. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  109. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  110. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  111. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
@@ -1,18 +1,32 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta1/table.proto (package raystack.assets.v1beta1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
8
- import { Resource } from "./resource_pb";
9
- import { Columns } from "./schema_pb";
10
- import { Preview } from "./preview_pb";
11
- import { Ownership } from "./ownership_pb";
12
- import { Lineage } from "./lineage_pb";
13
- import { Properties } from "./properties_pb";
14
- import { Timestamp } from "./timestamp_pb";
15
- import { Event } from "./event_pb";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Event } from "./event_pb";
8
+ import { file_raystack_assets_v1beta1_event } from "./event_pb";
9
+ import type { Lineage } from "./lineage_pb";
10
+ import { file_raystack_assets_v1beta1_lineage } from "./lineage_pb";
11
+ import type { Ownership } from "./ownership_pb";
12
+ import { file_raystack_assets_v1beta1_ownership } from "./ownership_pb";
13
+ import type { Preview } from "./preview_pb";
14
+ import { file_raystack_assets_v1beta1_preview } from "./preview_pb";
15
+ import type { Properties } from "./properties_pb";
16
+ import { file_raystack_assets_v1beta1_properties } from "./properties_pb";
17
+ import type { Resource } from "./resource_pb";
18
+ import { file_raystack_assets_v1beta1_resource } from "./resource_pb";
19
+ import type { Columns } from "./schema_pb";
20
+ import { file_raystack_assets_v1beta1_schema } from "./schema_pb";
21
+ import type { Timestamp } from "./timestamp_pb";
22
+ import { file_raystack_assets_v1beta1_timestamp } from "./timestamp_pb";
23
+ import type { Message } from "@bufbuild/protobuf";
24
+
25
+ /**
26
+ * Describes the file raystack/assets/v1beta1/table.proto.
27
+ */
28
+ export const file_raystack_assets_v1beta1_table: GenFile = /*@__PURE__*/
29
+ fileDesc("CiNyYXlzdGFjay9hc3NldHMvdjFiZXRhMS90YWJsZS5wcm90bxIXcmF5c3RhY2suYXNzZXRzLnYxYmV0YTEi4wMKBVRhYmxlEjMKCHJlc291cmNlGAEgASgLMiEucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuUmVzb3VyY2USNgoHcHJvZmlsZRgVIAEoCzIlLnJheXN0YWNrLmFzc2V0cy52MWJldGExLlRhYmxlUHJvZmlsZRIwCgZzY2hlbWEYFiABKAsyIC5yYXlzdGFjay5hc3NldHMudjFiZXRhMS5Db2x1bW5zEjEKB3ByZXZpZXcYFyABKAsyIC5yYXlzdGFjay5hc3NldHMudjFiZXRhMS5QcmV2aWV3EjUKCW93bmVyc2hpcBgfIAEoCzIiLnJheXN0YWNrLmFzc2V0cy52MWJldGExLk93bmVyc2hpcBIxCgdsaW5lYWdlGCAgASgLMiAucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuTGluZWFnZRI3Cgpwcm9wZXJ0aWVzGCEgASgLMiMucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuUHJvcGVydGllcxI2Cgp0aW1lc3RhbXBzGCIgASgLMiIucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuVGltZXN0YW1wEi0KBWV2ZW50GGQgASgLMh4ucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuRXZlbnQipgEKDFRhYmxlUHJvZmlsZRISCgp0b3RhbF9yb3dzGAEgASgDEhUKDXBhcnRpdGlvbl9rZXkYAiABKAkSFwoPcGFydGl0aW9uX3ZhbHVlGAMgASgJEhMKC3VzYWdlX2NvdW50GAQgASgDEiwKBWpvaW5zGAUgAygLMh0ucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuSm9pbhIPCgdmaWx0ZXJzGAYgAygJIjYKBEpvaW4SCwoDdXJuGAEgASgJEg0KBWNvdW50GAIgASgDEhIKCmNvbmRpdGlvbnMYAyADKAlCWQoSaW8ucmF5c3RhY2suYXNzZXRzQgpUYWJsZVByb3RvWjdnaXRodWIuY29tL3JheXN0YWNrL3Byb3Rvbi9hc3NldHMvdjFiZXRhMTthc3NldHN2MWJldGExYgZwcm90bzM", [file_raystack_assets_v1beta1_event, file_raystack_assets_v1beta1_lineage, file_raystack_assets_v1beta1_ownership, file_raystack_assets_v1beta1_preview, file_raystack_assets_v1beta1_properties, file_raystack_assets_v1beta1_resource, file_raystack_assets_v1beta1_schema, file_raystack_assets_v1beta1_timestamp]);
16
30
 
17
31
  /**
18
32
  * Table is a table in a database.
@@ -20,7 +34,7 @@ import { Event } from "./event_pb";
20
34
  *
21
35
  * @generated from message raystack.assets.v1beta1.Table
22
36
  */
23
- export class Table extends Message<Table> {
37
+ export type Table = Message<"raystack.assets.v1beta1.Table"> & {
24
38
  /**
25
39
  * Representation of the resource
26
40
  *
@@ -91,56 +105,28 @@ export class Table extends Message<Table> {
91
105
  * @generated from field: raystack.assets.v1beta1.Event event = 100;
92
106
  */
93
107
  event?: Event;
108
+ };
94
109
 
95
- constructor(data?: PartialMessage<Table>) {
96
- super();
97
- proto3.util.initPartial(data, this);
98
- }
99
-
100
- static readonly runtime: typeof proto3 = proto3;
101
- static readonly typeName = "raystack.assets.v1beta1.Table";
102
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
103
- { no: 1, name: "resource", kind: "message", T: Resource },
104
- { no: 21, name: "profile", kind: "message", T: TableProfile },
105
- { no: 22, name: "schema", kind: "message", T: Columns },
106
- { no: 23, name: "preview", kind: "message", T: Preview },
107
- { no: 31, name: "ownership", kind: "message", T: Ownership },
108
- { no: 32, name: "lineage", kind: "message", T: Lineage },
109
- { no: 33, name: "properties", kind: "message", T: Properties },
110
- { no: 34, name: "timestamps", kind: "message", T: Timestamp },
111
- { no: 100, name: "event", kind: "message", T: Event },
112
- ]);
113
-
114
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Table {
115
- return new Table().fromBinary(bytes, options);
116
- }
117
-
118
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Table {
119
- return new Table().fromJson(jsonValue, options);
120
- }
121
-
122
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Table {
123
- return new Table().fromJsonString(jsonString, options);
124
- }
125
-
126
- static equals(a: Table | PlainMessage<Table> | undefined, b: Table | PlainMessage<Table> | undefined): boolean {
127
- return proto3.util.equals(Table, a, b);
128
- }
129
- }
110
+ /**
111
+ * Describes the message raystack.assets.v1beta1.Table.
112
+ * Use `create(TableSchema)` to create a new message.
113
+ */
114
+ export const TableSchema: GenMessage<Table> = /*@__PURE__*/
115
+ messageDesc(file_raystack_assets_v1beta1_table, 0);
130
116
 
131
117
  /**
132
118
  * TableProfile is the metrics about the table.
133
119
  *
134
120
  * @generated from message raystack.assets.v1beta1.TableProfile
135
121
  */
136
- export class TableProfile extends Message<TableProfile> {
122
+ export type TableProfile = Message<"raystack.assets.v1beta1.TableProfile"> & {
137
123
  /**
138
124
  * The number of rows in the table.
139
125
  * Example: `100`.
140
126
  *
141
127
  * @generated from field: int64 total_rows = 1;
142
128
  */
143
- totalRows = protoInt64.zero;
129
+ totalRows: bigint;
144
130
 
145
131
  /**
146
132
  * The number of rows in the table that are not deleted.
@@ -148,119 +134,72 @@ export class TableProfile extends Message<TableProfile> {
148
134
  *
149
135
  * @generated from field: string partition_key = 2;
150
136
  */
151
- partitionKey = "";
137
+ partitionKey: string;
152
138
 
153
139
  /**
154
140
  * @generated from field: string partition_value = 3;
155
141
  */
156
- partitionValue = "";
142
+ partitionValue: string;
157
143
 
158
144
  /**
159
145
  * The number of how many times table is being used
160
146
  *
161
147
  * @generated from field: int64 usage_count = 4;
162
148
  */
163
- usageCount = protoInt64.zero;
149
+ usageCount: bigint;
164
150
 
165
151
  /**
166
152
  * The information of `join` applied to the table
167
153
  *
168
154
  * @generated from field: repeated raystack.assets.v1beta1.Join joins = 5;
169
155
  */
170
- joins: Join[] = [];
156
+ joins: Join[];
171
157
 
172
158
  /**
173
159
  * The information of `filter` applied to the table
174
160
  *
175
161
  * @generated from field: repeated string filters = 6;
176
162
  */
177
- filters: string[] = [];
178
-
179
- constructor(data?: PartialMessage<TableProfile>) {
180
- super();
181
- proto3.util.initPartial(data, this);
182
- }
183
-
184
- static readonly runtime: typeof proto3 = proto3;
185
- static readonly typeName = "raystack.assets.v1beta1.TableProfile";
186
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
187
- { no: 1, name: "total_rows", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
188
- { no: 2, name: "partition_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
- { no: 3, name: "partition_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
- { no: 4, name: "usage_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
191
- { no: 5, name: "joins", kind: "message", T: Join, repeated: true },
192
- { no: 6, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
193
- ]);
163
+ filters: string[];
164
+ };
194
165
 
195
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TableProfile {
196
- return new TableProfile().fromBinary(bytes, options);
197
- }
198
-
199
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TableProfile {
200
- return new TableProfile().fromJson(jsonValue, options);
201
- }
202
-
203
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TableProfile {
204
- return new TableProfile().fromJsonString(jsonString, options);
205
- }
206
-
207
- static equals(a: TableProfile | PlainMessage<TableProfile> | undefined, b: TableProfile | PlainMessage<TableProfile> | undefined): boolean {
208
- return proto3.util.equals(TableProfile, a, b);
209
- }
210
- }
166
+ /**
167
+ * Describes the message raystack.assets.v1beta1.TableProfile.
168
+ * Use `create(TableProfileSchema)` to create a new message.
169
+ */
170
+ export const TableProfileSchema: GenMessage<TableProfile> = /*@__PURE__*/
171
+ messageDesc(file_raystack_assets_v1beta1_table, 1);
211
172
 
212
173
  /**
213
174
  * Join is the metric of which are other tables that are joined with this table
214
175
  *
215
176
  * @generated from message raystack.assets.v1beta1.Join
216
177
  */
217
- export class Join extends Message<Join> {
178
+ export type Join = Message<"raystack.assets.v1beta1.Join"> & {
218
179
  /**
219
180
  * @generated from field: string urn = 1;
220
181
  */
221
- urn = "";
182
+ urn: string;
222
183
 
223
184
  /**
224
185
  * The number of how many times table is being joined with a certain table urn
225
186
  *
226
187
  * @generated from field: int64 count = 2;
227
188
  */
228
- count = protoInt64.zero;
189
+ count: bigint;
229
190
 
230
191
  /**
231
192
  * The information of `join conditions` applied to the table
232
193
  *
233
194
  * @generated from field: repeated string conditions = 3;
234
195
  */
235
- conditions: string[] = [];
236
-
237
- constructor(data?: PartialMessage<Join>) {
238
- super();
239
- proto3.util.initPartial(data, this);
240
- }
196
+ conditions: string[];
197
+ };
241
198
 
242
- static readonly runtime: typeof proto3 = proto3;
243
- static readonly typeName = "raystack.assets.v1beta1.Join";
244
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
245
- { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
- { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
247
- { no: 3, name: "conditions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
248
- ]);
249
-
250
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Join {
251
- return new Join().fromBinary(bytes, options);
252
- }
253
-
254
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Join {
255
- return new Join().fromJson(jsonValue, options);
256
- }
257
-
258
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Join {
259
- return new Join().fromJsonString(jsonString, options);
260
- }
261
-
262
- static equals(a: Join | PlainMessage<Join> | undefined, b: Join | PlainMessage<Join> | undefined): boolean {
263
- return proto3.util.equals(Join, a, b);
264
- }
265
- }
199
+ /**
200
+ * Describes the message raystack.assets.v1beta1.Join.
201
+ * Use `create(JoinSchema)` to create a new message.
202
+ */
203
+ export const JoinSchema: GenMessage<Join> = /*@__PURE__*/
204
+ messageDesc(file_raystack_assets_v1beta1_table, 2);
266
205
 
@@ -1,17 +1,25 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta1/timestamp.proto (package raystack.assets.v1beta1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, Timestamp as Timestamp$1 } from "@bufbuild/protobuf";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp as Timestamp$1 } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file raystack/assets/v1beta1/timestamp.proto.
13
+ */
14
+ export const file_raystack_assets_v1beta1_timestamp: GenFile = /*@__PURE__*/
15
+ fileDesc("CidyYXlzdGFjay9hc3NldHMvdjFiZXRhMS90aW1lc3RhbXAucHJvdG8SF3JheXN0YWNrLmFzc2V0cy52MWJldGExIm0KCVRpbWVzdGFtcBIvCgtjcmVhdGVfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRlX3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wImoKClRpbWVXaW5kb3cSLgoKc3RhcnRfdGltZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQl0KEmlvLnJheXN0YWNrLmFzc2V0c0IOVGltZXN0YW1wUHJvdG9aN2dpdGh1Yi5jb20vcmF5c3RhY2svcHJvdG9uL2Fzc2V0cy92MWJldGExO2Fzc2V0c3YxYmV0YTFiBnByb3RvMw", [file_google_protobuf_timestamp]);
8
16
 
9
17
  /**
10
18
  * Timestamp represents created and modified timestamps.
11
19
  *
12
20
  * @generated from message raystack.assets.v1beta1.Timestamp
13
21
  */
14
- export class Timestamp extends Message<Timestamp> {
22
+ export type Timestamp = Message<"raystack.assets.v1beta1.Timestamp"> & {
15
23
  /**
16
24
  * The timestamp when the object was created.
17
25
  *
@@ -25,42 +33,21 @@ export class Timestamp extends Message<Timestamp> {
25
33
  * @generated from field: google.protobuf.Timestamp update_time = 2;
26
34
  */
27
35
  updateTime?: Timestamp$1;
36
+ };
28
37
 
29
- constructor(data?: PartialMessage<Timestamp>) {
30
- super();
31
- proto3.util.initPartial(data, this);
32
- }
33
-
34
- static readonly runtime: typeof proto3 = proto3;
35
- static readonly typeName = "raystack.assets.v1beta1.Timestamp";
36
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
37
- { no: 1, name: "create_time", kind: "message", T: Timestamp$1 },
38
- { no: 2, name: "update_time", kind: "message", T: Timestamp$1 },
39
- ]);
40
-
41
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Timestamp {
42
- return new Timestamp().fromBinary(bytes, options);
43
- }
44
-
45
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Timestamp {
46
- return new Timestamp().fromJson(jsonValue, options);
47
- }
48
-
49
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Timestamp {
50
- return new Timestamp().fromJsonString(jsonString, options);
51
- }
52
-
53
- static equals(a: Timestamp | PlainMessage<Timestamp> | undefined, b: Timestamp | PlainMessage<Timestamp> | undefined): boolean {
54
- return proto3.util.equals(Timestamp, a, b);
55
- }
56
- }
38
+ /**
39
+ * Describes the message raystack.assets.v1beta1.Timestamp.
40
+ * Use `create(TimestampSchema)` to create a new message.
41
+ */
42
+ export const TimestampSchema: GenMessage<Timestamp> = /*@__PURE__*/
43
+ messageDesc(file_raystack_assets_v1beta1_timestamp, 0);
57
44
 
58
45
  /**
59
46
  * A time window specified by its `start_time` and `end_time`.
60
47
  *
61
48
  * @generated from message raystack.assets.v1beta1.TimeWindow
62
49
  */
63
- export class TimeWindow extends Message<TimeWindow> {
50
+ export type TimeWindow = Message<"raystack.assets.v1beta1.TimeWindow"> & {
64
51
  /**
65
52
  * Start time of the time window (exclusive).
66
53
  *
@@ -75,33 +62,12 @@ export class TimeWindow extends Message<TimeWindow> {
75
62
  * @generated from field: google.protobuf.Timestamp end_time = 2;
76
63
  */
77
64
  endTime?: Timestamp$1;
65
+ };
78
66
 
79
- constructor(data?: PartialMessage<TimeWindow>) {
80
- super();
81
- proto3.util.initPartial(data, this);
82
- }
83
-
84
- static readonly runtime: typeof proto3 = proto3;
85
- static readonly typeName = "raystack.assets.v1beta1.TimeWindow";
86
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
87
- { no: 1, name: "start_time", kind: "message", T: Timestamp$1 },
88
- { no: 2, name: "end_time", kind: "message", T: Timestamp$1 },
89
- ]);
90
-
91
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimeWindow {
92
- return new TimeWindow().fromBinary(bytes, options);
93
- }
94
-
95
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimeWindow {
96
- return new TimeWindow().fromJson(jsonValue, options);
97
- }
98
-
99
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimeWindow {
100
- return new TimeWindow().fromJsonString(jsonString, options);
101
- }
102
-
103
- static equals(a: TimeWindow | PlainMessage<TimeWindow> | undefined, b: TimeWindow | PlainMessage<TimeWindow> | undefined): boolean {
104
- return proto3.util.equals(TimeWindow, a, b);
105
- }
106
- }
67
+ /**
68
+ * Describes the message raystack.assets.v1beta1.TimeWindow.
69
+ * Use `create(TimeWindowSchema)` to create a new message.
70
+ */
71
+ export const TimeWindowSchema: GenMessage<TimeWindow> = /*@__PURE__*/
72
+ messageDesc(file_raystack_assets_v1beta1_timestamp, 1);
107
73
 
@@ -1,17 +1,30 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta1/topic.proto (package raystack.assets.v1beta1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
8
- import { Resource } from "./resource_pb";
9
- import { TopicSchema } from "./schema_pb";
10
- import { Ownership } from "./ownership_pb";
11
- import { Lineage } from "./lineage_pb";
12
- import { Properties } from "./properties_pb";
13
- import { Timestamp } from "./timestamp_pb";
14
- import { Event } from "./event_pb";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Event } from "./event_pb";
8
+ import { file_raystack_assets_v1beta1_event } from "./event_pb";
9
+ import type { Lineage } from "./lineage_pb";
10
+ import { file_raystack_assets_v1beta1_lineage } from "./lineage_pb";
11
+ import type { Ownership } from "./ownership_pb";
12
+ import { file_raystack_assets_v1beta1_ownership } from "./ownership_pb";
13
+ import type { Properties } from "./properties_pb";
14
+ import { file_raystack_assets_v1beta1_properties } from "./properties_pb";
15
+ import type { Resource } from "./resource_pb";
16
+ import { file_raystack_assets_v1beta1_resource } from "./resource_pb";
17
+ import type { TopicSchema as TopicSchema$1 } from "./schema_pb";
18
+ import { file_raystack_assets_v1beta1_schema } from "./schema_pb";
19
+ import type { Timestamp } from "./timestamp_pb";
20
+ import { file_raystack_assets_v1beta1_timestamp } from "./timestamp_pb";
21
+ import type { Message } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Describes the file raystack/assets/v1beta1/topic.proto.
25
+ */
26
+ export const file_raystack_assets_v1beta1_topic: GenFile = /*@__PURE__*/
27
+ fileDesc("CiNyYXlzdGFjay9hc3NldHMvdjFiZXRhMS90b3BpYy5wcm90bxIXcmF5c3RhY2suYXNzZXRzLnYxYmV0YTEitAMKBVRvcGljEjMKCHJlc291cmNlGAEgASgLMiEucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuUmVzb3VyY2USNgoHcHJvZmlsZRgVIAEoCzIlLnJheXN0YWNrLmFzc2V0cy52MWJldGExLlRvcGljUHJvZmlsZRI0CgZzY2hlbWEYHyABKAsyJC5yYXlzdGFjay5hc3NldHMudjFiZXRhMS5Ub3BpY1NjaGVtYRI1Cglvd25lcnNoaXAYICABKAsyIi5yYXlzdGFjay5hc3NldHMudjFiZXRhMS5Pd25lcnNoaXASMQoHbGluZWFnZRghIAEoCzIgLnJheXN0YWNrLmFzc2V0cy52MWJldGExLkxpbmVhZ2USNwoKcHJvcGVydGllcxgiIAEoCzIjLnJheXN0YWNrLmFzc2V0cy52MWJldGExLlByb3BlcnRpZXMSNgoKdGltZXN0YW1wcxgjIAEoCzIiLnJheXN0YWNrLmFzc2V0cy52MWJldGExLlRpbWVzdGFtcBItCgVldmVudBhkIAEoCzIeLnJheXN0YWNrLmFzc2V0cy52MWJldGExLkV2ZW50IkAKDFRvcGljUHJvZmlsZRISCgp0aHJvdWdocHV0GAEgASgJEhwKFG51bWJlcl9vZl9wYXJ0aXRpb25zGAIgASgDQlkKEmlvLnJheXN0YWNrLmFzc2V0c0IKVG9waWNQcm90b1o3Z2l0aHViLmNvbS9yYXlzdGFjay9wcm90b24vYXNzZXRzL3YxYmV0YTE7YXNzZXRzdjFiZXRhMWIGcHJvdG8z", [file_raystack_assets_v1beta1_event, file_raystack_assets_v1beta1_lineage, file_raystack_assets_v1beta1_ownership, file_raystack_assets_v1beta1_properties, file_raystack_assets_v1beta1_resource, file_raystack_assets_v1beta1_schema, file_raystack_assets_v1beta1_timestamp]);
15
28
 
16
29
  /**
17
30
  * Topic is resource that represents a logical group of messages
@@ -19,7 +32,7 @@ import { Event } from "./event_pb";
19
32
  *
20
33
  * @generated from message raystack.assets.v1beta1.Topic
21
34
  */
22
- export class Topic extends Message<Topic> {
35
+ export type Topic = Message<"raystack.assets.v1beta1.Topic"> & {
23
36
  /**
24
37
  * Representation of the resource
25
38
  *
@@ -41,7 +54,7 @@ export class Topic extends Message<Topic> {
41
54
  *
42
55
  * @generated from field: raystack.assets.v1beta1.TopicSchema schema = 31;
43
56
  */
44
- schema?: TopicSchema;
57
+ schema?: TopicSchema$1;
45
58
 
46
59
  /**
47
60
  * The ownership of the topic.
@@ -82,55 +95,28 @@ export class Topic extends Message<Topic> {
82
95
  * @generated from field: raystack.assets.v1beta1.Event event = 100;
83
96
  */
84
97
  event?: Event;
98
+ };
85
99
 
86
- constructor(data?: PartialMessage<Topic>) {
87
- super();
88
- proto3.util.initPartial(data, this);
89
- }
90
-
91
- static readonly runtime: typeof proto3 = proto3;
92
- static readonly typeName = "raystack.assets.v1beta1.Topic";
93
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
94
- { no: 1, name: "resource", kind: "message", T: Resource },
95
- { no: 21, name: "profile", kind: "message", T: TopicProfile },
96
- { no: 31, name: "schema", kind: "message", T: TopicSchema },
97
- { no: 32, name: "ownership", kind: "message", T: Ownership },
98
- { no: 33, name: "lineage", kind: "message", T: Lineage },
99
- { no: 34, name: "properties", kind: "message", T: Properties },
100
- { no: 35, name: "timestamps", kind: "message", T: Timestamp },
101
- { no: 100, name: "event", kind: "message", T: Event },
102
- ]);
103
-
104
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Topic {
105
- return new Topic().fromBinary(bytes, options);
106
- }
107
-
108
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Topic {
109
- return new Topic().fromJson(jsonValue, options);
110
- }
111
-
112
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Topic {
113
- return new Topic().fromJsonString(jsonString, options);
114
- }
115
-
116
- static equals(a: Topic | PlainMessage<Topic> | undefined, b: Topic | PlainMessage<Topic> | undefined): boolean {
117
- return proto3.util.equals(Topic, a, b);
118
- }
119
- }
100
+ /**
101
+ * Describes the message raystack.assets.v1beta1.Topic.
102
+ * Use `create(TopicSchema)` to create a new message.
103
+ */
104
+ export const TopicSchema: GenMessage<Topic> = /*@__PURE__*/
105
+ messageDesc(file_raystack_assets_v1beta1_topic, 0);
120
106
 
121
107
  /**
122
108
  * TopicProfile is the profile of the topic.
123
109
  *
124
110
  * @generated from message raystack.assets.v1beta1.TopicProfile
125
111
  */
126
- export class TopicProfile extends Message<TopicProfile> {
112
+ export type TopicProfile = Message<"raystack.assets.v1beta1.TopicProfile"> & {
127
113
  /**
128
114
  * The thrroughput of the topic.
129
115
  * Example: `1m/minute`.
130
116
  *
131
117
  * @generated from field: string throughput = 1;
132
118
  */
133
- throughput = "";
119
+ throughput: string;
134
120
 
135
121
  /**
136
122
  * The number of partitions in the topic.
@@ -138,34 +124,13 @@ export class TopicProfile extends Message<TopicProfile> {
138
124
  *
139
125
  * @generated from field: int64 number_of_partitions = 2;
140
126
  */
141
- numberOfPartitions = protoInt64.zero;
142
-
143
- constructor(data?: PartialMessage<TopicProfile>) {
144
- super();
145
- proto3.util.initPartial(data, this);
146
- }
147
-
148
- static readonly runtime: typeof proto3 = proto3;
149
- static readonly typeName = "raystack.assets.v1beta1.TopicProfile";
150
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
151
- { no: 1, name: "throughput", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
- { no: 2, name: "number_of_partitions", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
153
- ]);
154
-
155
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopicProfile {
156
- return new TopicProfile().fromBinary(bytes, options);
157
- }
127
+ numberOfPartitions: bigint;
128
+ };
158
129
 
159
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopicProfile {
160
- return new TopicProfile().fromJson(jsonValue, options);
161
- }
162
-
163
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopicProfile {
164
- return new TopicProfile().fromJsonString(jsonString, options);
165
- }
166
-
167
- static equals(a: TopicProfile | PlainMessage<TopicProfile> | undefined, b: TopicProfile | PlainMessage<TopicProfile> | undefined): boolean {
168
- return proto3.util.equals(TopicProfile, a, b);
169
- }
170
- }
130
+ /**
131
+ * Describes the message raystack.assets.v1beta1.TopicProfile.
132
+ * Use `create(TopicProfileSchema)` to create a new message.
133
+ */
134
+ export const TopicProfileSchema: GenMessage<TopicProfile> = /*@__PURE__*/
135
+ messageDesc(file_raystack_assets_v1beta1_topic, 1);
171
136