@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,253 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta1/topic.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 { TopicSchema } from "./schema";
19
+ import { Resource } from "./resource";
20
+ /**
21
+ * Topic is resource that represents a logical group of messages
22
+ * in message bus like kafka, pubsub, pulsar etc.
23
+ *
24
+ * @generated from protobuf message raystack.assets.v1beta1.Topic
25
+ */
26
+ export interface Topic {
27
+ /**
28
+ * Representation of the resource
29
+ *
30
+ * @generated from protobuf field: raystack.assets.v1beta1.Resource resource = 1
31
+ */
32
+ resource?: Resource;
33
+ /**
34
+ * The metrics of the topic.
35
+ * For an example check out topic profile schema.
36
+ *
37
+ * @generated from protobuf field: raystack.assets.v1beta1.TopicProfile profile = 21
38
+ */
39
+ profile?: TopicProfile;
40
+ /**
41
+ * The schama of the topic.
42
+ * For an example check out topic schema.
43
+ *
44
+ * @generated from protobuf field: raystack.assets.v1beta1.TopicSchema schema = 31
45
+ */
46
+ schema?: TopicSchema;
47
+ /**
48
+ * The ownership of the topic.
49
+ * For an example check out ownership.
50
+ *
51
+ * @generated from protobuf field: raystack.assets.v1beta1.Ownership ownership = 32
52
+ */
53
+ ownership?: Ownership;
54
+ /**
55
+ * The lineage of the topic.
56
+ * For an example check out lineage schema.
57
+ *
58
+ * @generated from protobuf field: raystack.assets.v1beta1.Lineage lineage = 33
59
+ */
60
+ lineage?: Lineage;
61
+ /**
62
+ * List of the user's custom properties.
63
+ * Properties facet can be used to set custom properties, tags and labels for a user.
64
+ *
65
+ * @generated from protobuf field: raystack.assets.v1beta1.Properties properties = 34
66
+ */
67
+ properties?: Properties;
68
+ /**
69
+ * The timestamp of the user's creation.
70
+ * Timstamp facet can be used to set the creation and updation timestamp of a user.
71
+ *
72
+ * @generated from protobuf field: raystack.assets.v1beta1.Timestamp timestamps = 35
73
+ */
74
+ timestamps?: Timestamp;
75
+ /**
76
+ * The timestamp of the generated event.
77
+ * Event schemas is defined in the common event schema.
78
+ *
79
+ * @generated from protobuf field: raystack.assets.v1beta1.Event event = 100
80
+ */
81
+ event?: Event;
82
+ }
83
+ /**
84
+ * TopicProfile is the profile of the topic.
85
+ *
86
+ * @generated from protobuf message raystack.assets.v1beta1.TopicProfile
87
+ */
88
+ export interface TopicProfile {
89
+ /**
90
+ * The thrroughput of the topic.
91
+ * Example: `1m/minute`.
92
+ *
93
+ * @generated from protobuf field: string throughput = 1
94
+ */
95
+ throughput: string;
96
+ /**
97
+ * The number of partitions in the topic.
98
+ * Example: `12`.
99
+ *
100
+ * @generated from protobuf field: int64 number_of_partitions = 2
101
+ */
102
+ numberOfPartitions: bigint;
103
+ }
104
+ // @generated message type with reflection information, may provide speed optimized methods
105
+ class Topic$Type extends MessageType<Topic> {
106
+ constructor() {
107
+ super("raystack.assets.v1beta1.Topic", [
108
+ { no: 1, name: "resource", kind: "message", T: () => Resource },
109
+ { no: 21, name: "profile", kind: "message", T: () => TopicProfile },
110
+ { no: 31, name: "schema", kind: "message", T: () => TopicSchema },
111
+ { no: 32, name: "ownership", kind: "message", T: () => Ownership },
112
+ { no: 33, name: "lineage", kind: "message", T: () => Lineage },
113
+ { no: 34, name: "properties", kind: "message", T: () => Properties },
114
+ { no: 35, name: "timestamps", kind: "message", T: () => Timestamp },
115
+ { no: 100, name: "event", kind: "message", T: () => Event }
116
+ ]);
117
+ }
118
+ create(value?: PartialMessage<Topic>): Topic {
119
+ const message = globalThis.Object.create((this.messagePrototype!));
120
+ if (value !== undefined)
121
+ reflectionMergePartial<Topic>(this, message, value);
122
+ return message;
123
+ }
124
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Topic): Topic {
125
+ let message = target ?? this.create(), end = reader.pos + length;
126
+ while (reader.pos < end) {
127
+ let [fieldNo, wireType] = reader.tag();
128
+ switch (fieldNo) {
129
+ case /* raystack.assets.v1beta1.Resource resource */ 1:
130
+ message.resource = Resource.internalBinaryRead(reader, reader.uint32(), options, message.resource);
131
+ break;
132
+ case /* raystack.assets.v1beta1.TopicProfile profile */ 21:
133
+ message.profile = TopicProfile.internalBinaryRead(reader, reader.uint32(), options, message.profile);
134
+ break;
135
+ case /* raystack.assets.v1beta1.TopicSchema schema */ 31:
136
+ message.schema = TopicSchema.internalBinaryRead(reader, reader.uint32(), options, message.schema);
137
+ break;
138
+ case /* raystack.assets.v1beta1.Ownership ownership */ 32:
139
+ message.ownership = Ownership.internalBinaryRead(reader, reader.uint32(), options, message.ownership);
140
+ break;
141
+ case /* raystack.assets.v1beta1.Lineage lineage */ 33:
142
+ message.lineage = Lineage.internalBinaryRead(reader, reader.uint32(), options, message.lineage);
143
+ break;
144
+ case /* raystack.assets.v1beta1.Properties properties */ 34:
145
+ message.properties = Properties.internalBinaryRead(reader, reader.uint32(), options, message.properties);
146
+ break;
147
+ case /* raystack.assets.v1beta1.Timestamp timestamps */ 35:
148
+ message.timestamps = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.timestamps);
149
+ break;
150
+ case /* raystack.assets.v1beta1.Event event */ 100:
151
+ message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
152
+ break;
153
+ default:
154
+ let u = options.readUnknownField;
155
+ if (u === "throw")
156
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
157
+ let d = reader.skip(wireType);
158
+ if (u !== false)
159
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
160
+ }
161
+ }
162
+ return message;
163
+ }
164
+ internalBinaryWrite(message: Topic, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
165
+ /* raystack.assets.v1beta1.Resource resource = 1; */
166
+ if (message.resource)
167
+ Resource.internalBinaryWrite(message.resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
168
+ /* raystack.assets.v1beta1.TopicProfile profile = 21; */
169
+ if (message.profile)
170
+ TopicProfile.internalBinaryWrite(message.profile, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
171
+ /* raystack.assets.v1beta1.TopicSchema schema = 31; */
172
+ if (message.schema)
173
+ TopicSchema.internalBinaryWrite(message.schema, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
174
+ /* raystack.assets.v1beta1.Ownership ownership = 32; */
175
+ if (message.ownership)
176
+ Ownership.internalBinaryWrite(message.ownership, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
177
+ /* raystack.assets.v1beta1.Lineage lineage = 33; */
178
+ if (message.lineage)
179
+ Lineage.internalBinaryWrite(message.lineage, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
180
+ /* raystack.assets.v1beta1.Properties properties = 34; */
181
+ if (message.properties)
182
+ Properties.internalBinaryWrite(message.properties, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
183
+ /* raystack.assets.v1beta1.Timestamp timestamps = 35; */
184
+ if (message.timestamps)
185
+ Timestamp.internalBinaryWrite(message.timestamps, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
186
+ /* raystack.assets.v1beta1.Event event = 100; */
187
+ if (message.event)
188
+ Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
189
+ let u = options.writeUnknownFields;
190
+ if (u !== false)
191
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
192
+ return writer;
193
+ }
194
+ }
195
+ /**
196
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Topic
197
+ */
198
+ export const Topic = new Topic$Type();
199
+ // @generated message type with reflection information, may provide speed optimized methods
200
+ class TopicProfile$Type extends MessageType<TopicProfile> {
201
+ constructor() {
202
+ super("raystack.assets.v1beta1.TopicProfile", [
203
+ { no: 1, name: "throughput", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
204
+ { no: 2, name: "number_of_partitions", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
205
+ ]);
206
+ }
207
+ create(value?: PartialMessage<TopicProfile>): TopicProfile {
208
+ const message = globalThis.Object.create((this.messagePrototype!));
209
+ message.throughput = "";
210
+ message.numberOfPartitions = 0n;
211
+ if (value !== undefined)
212
+ reflectionMergePartial<TopicProfile>(this, message, value);
213
+ return message;
214
+ }
215
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TopicProfile): TopicProfile {
216
+ let message = target ?? this.create(), end = reader.pos + length;
217
+ while (reader.pos < end) {
218
+ let [fieldNo, wireType] = reader.tag();
219
+ switch (fieldNo) {
220
+ case /* string throughput */ 1:
221
+ message.throughput = reader.string();
222
+ break;
223
+ case /* int64 number_of_partitions */ 2:
224
+ message.numberOfPartitions = reader.int64().toBigInt();
225
+ break;
226
+ default:
227
+ let u = options.readUnknownField;
228
+ if (u === "throw")
229
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
230
+ let d = reader.skip(wireType);
231
+ if (u !== false)
232
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
233
+ }
234
+ }
235
+ return message;
236
+ }
237
+ internalBinaryWrite(message: TopicProfile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
238
+ /* string throughput = 1; */
239
+ if (message.throughput !== "")
240
+ writer.tag(1, WireType.LengthDelimited).string(message.throughput);
241
+ /* int64 number_of_partitions = 2; */
242
+ if (message.numberOfPartitions !== 0n)
243
+ writer.tag(2, WireType.Varint).int64(message.numberOfPartitions);
244
+ let u = options.writeUnknownFields;
245
+ if (u !== false)
246
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
247
+ return writer;
248
+ }
249
+ }
250
+ /**
251
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.TopicProfile
252
+ */
253
+ export const TopicProfile = new TopicProfile$Type();
@@ -0,0 +1,171 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/topic.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 { 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";
15
+
16
+ /**
17
+ * Topic is resource that represents a logical group of messages
18
+ * in message bus like kafka, pubsub, pulsar etc.
19
+ *
20
+ * @generated from message raystack.assets.v1beta1.Topic
21
+ */
22
+ export class Topic extends Message<Topic> {
23
+ /**
24
+ * Representation of the resource
25
+ *
26
+ * @generated from field: raystack.assets.v1beta1.Resource resource = 1;
27
+ */
28
+ resource?: Resource;
29
+
30
+ /**
31
+ * The metrics of the topic.
32
+ * For an example check out topic profile schema.
33
+ *
34
+ * @generated from field: raystack.assets.v1beta1.TopicProfile profile = 21;
35
+ */
36
+ profile?: TopicProfile;
37
+
38
+ /**
39
+ * The schama of the topic.
40
+ * For an example check out topic schema.
41
+ *
42
+ * @generated from field: raystack.assets.v1beta1.TopicSchema schema = 31;
43
+ */
44
+ schema?: TopicSchema;
45
+
46
+ /**
47
+ * The ownership of the topic.
48
+ * For an example check out ownership.
49
+ *
50
+ * @generated from field: raystack.assets.v1beta1.Ownership ownership = 32;
51
+ */
52
+ ownership?: Ownership;
53
+
54
+ /**
55
+ * The lineage of the topic.
56
+ * For an example check out lineage schema.
57
+ *
58
+ * @generated from field: raystack.assets.v1beta1.Lineage lineage = 33;
59
+ */
60
+ lineage?: Lineage;
61
+
62
+ /**
63
+ * List of the user's custom properties.
64
+ * Properties facet can be used to set custom properties, tags and labels for a user.
65
+ *
66
+ * @generated from field: raystack.assets.v1beta1.Properties properties = 34;
67
+ */
68
+ properties?: Properties;
69
+
70
+ /**
71
+ * The timestamp of the user's creation.
72
+ * Timstamp facet can be used to set the creation and updation timestamp of a user.
73
+ *
74
+ * @generated from field: raystack.assets.v1beta1.Timestamp timestamps = 35;
75
+ */
76
+ timestamps?: Timestamp;
77
+
78
+ /**
79
+ * The timestamp of the generated event.
80
+ * Event schemas is defined in the common event schema.
81
+ *
82
+ * @generated from field: raystack.assets.v1beta1.Event event = 100;
83
+ */
84
+ event?: Event;
85
+
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
+ }
120
+
121
+ /**
122
+ * TopicProfile is the profile of the topic.
123
+ *
124
+ * @generated from message raystack.assets.v1beta1.TopicProfile
125
+ */
126
+ export class TopicProfile extends Message<TopicProfile> {
127
+ /**
128
+ * The thrroughput of the topic.
129
+ * Example: `1m/minute`.
130
+ *
131
+ * @generated from field: string throughput = 1;
132
+ */
133
+ throughput = "";
134
+
135
+ /**
136
+ * The number of partitions in the topic.
137
+ * Example: `12`.
138
+ *
139
+ * @generated from field: int64 number_of_partitions = 2;
140
+ */
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
+ }
158
+
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
+ }
171
+