@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,341 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta2/bucket.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 { Owner } from "./common";
14
+ import { Timestamp } from "../../../google/protobuf/timestamp";
15
+ import { Struct } from "../../../google/protobuf/struct";
16
+ /**
17
+ * @generated from protobuf message raystack.assets.v1beta2.Bucket
18
+ */
19
+ export interface Bucket {
20
+ /**
21
+ * The description of the bucket.
22
+ * Example: `This bucket was created by the product team.`
23
+ *
24
+ * @generated from protobuf field: string description = 1
25
+ */
26
+ description: string;
27
+ /**
28
+ * The location of the bucket. Can differ based on cloud storage used. (e.g. GCS, S3, etc)
29
+ * Example: `ASIA`
30
+ *
31
+ * @generated from protobuf field: string location = 2
32
+ */
33
+ location: string;
34
+ /**
35
+ * The type of the storage. Can differ based on cloud storage used. (e.g. GCS, S3, etc)
36
+ * Example: `STANDARD`
37
+ *
38
+ * @generated from protobuf field: string storage_type = 3
39
+ */
40
+ storageType: string;
41
+ /**
42
+ * List of blobs in the bucket.
43
+ *
44
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Blob blobs = 4
45
+ */
46
+ blobs: Blob[];
47
+ /**
48
+ * List of attributes the model has.
49
+ *
50
+ * @generated from protobuf field: google.protobuf.Struct attributes = 10
51
+ */
52
+ attributes?: Struct;
53
+ /**
54
+ * The timestamp of the bucket's creation.
55
+ *
56
+ * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
57
+ */
58
+ createTime?: Timestamp;
59
+ /**
60
+ * The timestamp when the bucket was last modified.
61
+ *
62
+ * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
63
+ */
64
+ updateTime?: Timestamp;
65
+ }
66
+ /**
67
+ * @generated from protobuf message raystack.assets.v1beta2.Blob
68
+ */
69
+ export interface Blob {
70
+ /**
71
+ * The URN of the blob.
72
+ * Example: `location/bucket-name/file-name`.
73
+ *
74
+ * @generated from protobuf field: string urn = 1
75
+ */
76
+ urn: string;
77
+ /**
78
+ * The name of the blob.
79
+ * Example: `file-name`.
80
+ *
81
+ * @generated from protobuf field: string name = 2
82
+ */
83
+ name: string;
84
+ /**
85
+ * The source of the blob.
86
+ * Example: `gcs`.
87
+ *
88
+ * @generated from protobuf field: string source = 3
89
+ */
90
+ source: string;
91
+ /**
92
+ * The length of the object content.
93
+ * Example: `300`
94
+ *
95
+ * @generated from protobuf field: int64 size = 4
96
+ */
97
+ size: bigint;
98
+ /**
99
+ * Delete time of the blob object.
100
+ *
101
+ * @generated from protobuf field: google.protobuf.Timestamp delete_time = 5
102
+ */
103
+ deleteTime?: Timestamp;
104
+ /**
105
+ * Expire time of the blob object.
106
+ *
107
+ * @generated from protobuf field: google.protobuf.Timestamp expire_time = 6
108
+ */
109
+ expireTime?: Timestamp;
110
+ /**
111
+ * List of attributes the model has.
112
+ *
113
+ * @generated from protobuf field: google.protobuf.Struct attributes = 7
114
+ */
115
+ attributes?: Struct;
116
+ /**
117
+ * The ownership of the blob.
118
+ * For an example check out ownership.
119
+ *
120
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Owner ownership = 31
121
+ */
122
+ ownership: Owner[];
123
+ /**
124
+ * The timestamp of the blob's creation.
125
+ *
126
+ * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
127
+ */
128
+ createTime?: Timestamp;
129
+ /**
130
+ * The timestamp when the blob was last modified.
131
+ *
132
+ * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
133
+ */
134
+ updateTime?: Timestamp;
135
+ }
136
+ // @generated message type with reflection information, may provide speed optimized methods
137
+ class Bucket$Type extends MessageType<Bucket> {
138
+ constructor() {
139
+ super("raystack.assets.v1beta2.Bucket", [
140
+ { no: 1, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
141
+ { no: 2, name: "location", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
142
+ { no: 3, name: "storage_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
143
+ { no: 4, name: "blobs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Blob },
144
+ { no: 10, name: "attributes", kind: "message", T: () => Struct },
145
+ { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
146
+ { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
147
+ ]);
148
+ }
149
+ create(value?: PartialMessage<Bucket>): Bucket {
150
+ const message = globalThis.Object.create((this.messagePrototype!));
151
+ message.description = "";
152
+ message.location = "";
153
+ message.storageType = "";
154
+ message.blobs = [];
155
+ if (value !== undefined)
156
+ reflectionMergePartial<Bucket>(this, message, value);
157
+ return message;
158
+ }
159
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Bucket): Bucket {
160
+ let message = target ?? this.create(), end = reader.pos + length;
161
+ while (reader.pos < end) {
162
+ let [fieldNo, wireType] = reader.tag();
163
+ switch (fieldNo) {
164
+ case /* string description */ 1:
165
+ message.description = reader.string();
166
+ break;
167
+ case /* string location */ 2:
168
+ message.location = reader.string();
169
+ break;
170
+ case /* string storage_type */ 3:
171
+ message.storageType = reader.string();
172
+ break;
173
+ case /* repeated raystack.assets.v1beta2.Blob blobs */ 4:
174
+ message.blobs.push(Blob.internalBinaryRead(reader, reader.uint32(), options));
175
+ break;
176
+ case /* google.protobuf.Struct attributes */ 10:
177
+ message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
178
+ break;
179
+ case /* google.protobuf.Timestamp create_time */ 101:
180
+ message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
181
+ break;
182
+ case /* google.protobuf.Timestamp update_time */ 102:
183
+ message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
184
+ break;
185
+ default:
186
+ let u = options.readUnknownField;
187
+ if (u === "throw")
188
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
189
+ let d = reader.skip(wireType);
190
+ if (u !== false)
191
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
192
+ }
193
+ }
194
+ return message;
195
+ }
196
+ internalBinaryWrite(message: Bucket, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
197
+ /* string description = 1; */
198
+ if (message.description !== "")
199
+ writer.tag(1, WireType.LengthDelimited).string(message.description);
200
+ /* string location = 2; */
201
+ if (message.location !== "")
202
+ writer.tag(2, WireType.LengthDelimited).string(message.location);
203
+ /* string storage_type = 3; */
204
+ if (message.storageType !== "")
205
+ writer.tag(3, WireType.LengthDelimited).string(message.storageType);
206
+ /* repeated raystack.assets.v1beta2.Blob blobs = 4; */
207
+ for (let i = 0; i < message.blobs.length; i++)
208
+ Blob.internalBinaryWrite(message.blobs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
209
+ /* google.protobuf.Struct attributes = 10; */
210
+ if (message.attributes)
211
+ Struct.internalBinaryWrite(message.attributes, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
212
+ /* google.protobuf.Timestamp create_time = 101; */
213
+ if (message.createTime)
214
+ Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
215
+ /* google.protobuf.Timestamp update_time = 102; */
216
+ if (message.updateTime)
217
+ Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
218
+ let u = options.writeUnknownFields;
219
+ if (u !== false)
220
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
221
+ return writer;
222
+ }
223
+ }
224
+ /**
225
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Bucket
226
+ */
227
+ export const Bucket = new Bucket$Type();
228
+ // @generated message type with reflection information, may provide speed optimized methods
229
+ class Blob$Type extends MessageType<Blob> {
230
+ constructor() {
231
+ super("raystack.assets.v1beta2.Blob", [
232
+ { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
233
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
234
+ { no: 3, name: "source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
235
+ { no: 4, name: "size", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
236
+ { no: 5, name: "delete_time", kind: "message", T: () => Timestamp },
237
+ { no: 6, name: "expire_time", kind: "message", T: () => Timestamp },
238
+ { no: 7, name: "attributes", kind: "message", T: () => Struct },
239
+ { no: 31, name: "ownership", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Owner },
240
+ { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
241
+ { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
242
+ ]);
243
+ }
244
+ create(value?: PartialMessage<Blob>): Blob {
245
+ const message = globalThis.Object.create((this.messagePrototype!));
246
+ message.urn = "";
247
+ message.name = "";
248
+ message.source = "";
249
+ message.size = 0n;
250
+ message.ownership = [];
251
+ if (value !== undefined)
252
+ reflectionMergePartial<Blob>(this, message, value);
253
+ return message;
254
+ }
255
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Blob): Blob {
256
+ let message = target ?? this.create(), end = reader.pos + length;
257
+ while (reader.pos < end) {
258
+ let [fieldNo, wireType] = reader.tag();
259
+ switch (fieldNo) {
260
+ case /* string urn */ 1:
261
+ message.urn = reader.string();
262
+ break;
263
+ case /* string name */ 2:
264
+ message.name = reader.string();
265
+ break;
266
+ case /* string source */ 3:
267
+ message.source = reader.string();
268
+ break;
269
+ case /* int64 size */ 4:
270
+ message.size = reader.int64().toBigInt();
271
+ break;
272
+ case /* google.protobuf.Timestamp delete_time */ 5:
273
+ message.deleteTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.deleteTime);
274
+ break;
275
+ case /* google.protobuf.Timestamp expire_time */ 6:
276
+ message.expireTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expireTime);
277
+ break;
278
+ case /* google.protobuf.Struct attributes */ 7:
279
+ message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
280
+ break;
281
+ case /* repeated raystack.assets.v1beta2.Owner ownership */ 31:
282
+ message.ownership.push(Owner.internalBinaryRead(reader, reader.uint32(), options));
283
+ break;
284
+ case /* google.protobuf.Timestamp create_time */ 101:
285
+ message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
286
+ break;
287
+ case /* google.protobuf.Timestamp update_time */ 102:
288
+ message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
289
+ break;
290
+ default:
291
+ let u = options.readUnknownField;
292
+ if (u === "throw")
293
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
294
+ let d = reader.skip(wireType);
295
+ if (u !== false)
296
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
297
+ }
298
+ }
299
+ return message;
300
+ }
301
+ internalBinaryWrite(message: Blob, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
302
+ /* string urn = 1; */
303
+ if (message.urn !== "")
304
+ writer.tag(1, WireType.LengthDelimited).string(message.urn);
305
+ /* string name = 2; */
306
+ if (message.name !== "")
307
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
308
+ /* string source = 3; */
309
+ if (message.source !== "")
310
+ writer.tag(3, WireType.LengthDelimited).string(message.source);
311
+ /* int64 size = 4; */
312
+ if (message.size !== 0n)
313
+ writer.tag(4, WireType.Varint).int64(message.size);
314
+ /* google.protobuf.Timestamp delete_time = 5; */
315
+ if (message.deleteTime)
316
+ Timestamp.internalBinaryWrite(message.deleteTime, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
317
+ /* google.protobuf.Timestamp expire_time = 6; */
318
+ if (message.expireTime)
319
+ Timestamp.internalBinaryWrite(message.expireTime, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
320
+ /* google.protobuf.Struct attributes = 7; */
321
+ if (message.attributes)
322
+ Struct.internalBinaryWrite(message.attributes, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
323
+ /* repeated raystack.assets.v1beta2.Owner ownership = 31; */
324
+ for (let i = 0; i < message.ownership.length; i++)
325
+ Owner.internalBinaryWrite(message.ownership[i], writer.tag(31, WireType.LengthDelimited).fork(), options).join();
326
+ /* google.protobuf.Timestamp create_time = 101; */
327
+ if (message.createTime)
328
+ Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
329
+ /* google.protobuf.Timestamp update_time = 102; */
330
+ if (message.updateTime)
331
+ Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
332
+ let u = options.writeUnknownFields;
333
+ if (u !== false)
334
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
335
+ return writer;
336
+ }
337
+ }
338
+ /**
339
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Blob
340
+ */
341
+ export const Blob = new Blob$Type();
@@ -0,0 +1,215 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta2/bucket.proto (package raystack.assets.v1beta2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
8
+ import { Owner } from "./common_pb";
9
+
10
+ /**
11
+ * @generated from message raystack.assets.v1beta2.Bucket
12
+ */
13
+ export class Bucket extends Message<Bucket> {
14
+ /**
15
+ * The description of the bucket.
16
+ * Example: `This bucket was created by the product team.`
17
+ *
18
+ * @generated from field: string description = 1;
19
+ */
20
+ description = "";
21
+
22
+ /**
23
+ * The location of the bucket. Can differ based on cloud storage used. (e.g. GCS, S3, etc)
24
+ * Example: `ASIA`
25
+ *
26
+ * @generated from field: string location = 2;
27
+ */
28
+ location = "";
29
+
30
+ /**
31
+ * The type of the storage. Can differ based on cloud storage used. (e.g. GCS, S3, etc)
32
+ * Example: `STANDARD`
33
+ *
34
+ * @generated from field: string storage_type = 3;
35
+ */
36
+ storageType = "";
37
+
38
+ /**
39
+ * List of blobs in the bucket.
40
+ *
41
+ * @generated from field: repeated raystack.assets.v1beta2.Blob blobs = 4;
42
+ */
43
+ blobs: Blob[] = [];
44
+
45
+ /**
46
+ * List of attributes the model has.
47
+ *
48
+ * @generated from field: google.protobuf.Struct attributes = 10;
49
+ */
50
+ attributes?: Struct;
51
+
52
+ /**
53
+ * The timestamp of the bucket's creation.
54
+ *
55
+ * @generated from field: google.protobuf.Timestamp create_time = 101;
56
+ */
57
+ createTime?: Timestamp;
58
+
59
+ /**
60
+ * The timestamp when the bucket was last modified.
61
+ *
62
+ * @generated from field: google.protobuf.Timestamp update_time = 102;
63
+ */
64
+ updateTime?: Timestamp;
65
+
66
+ constructor(data?: PartialMessage<Bucket>) {
67
+ super();
68
+ proto3.util.initPartial(data, this);
69
+ }
70
+
71
+ static readonly runtime: typeof proto3 = proto3;
72
+ static readonly typeName = "raystack.assets.v1beta2.Bucket";
73
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
74
+ { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
75
+ { no: 2, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 3, name: "storage_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ { no: 4, name: "blobs", kind: "message", T: Blob, repeated: true },
78
+ { no: 10, name: "attributes", kind: "message", T: Struct },
79
+ { no: 101, name: "create_time", kind: "message", T: Timestamp },
80
+ { no: 102, name: "update_time", kind: "message", T: Timestamp },
81
+ ]);
82
+
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Bucket {
84
+ return new Bucket().fromBinary(bytes, options);
85
+ }
86
+
87
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Bucket {
88
+ return new Bucket().fromJson(jsonValue, options);
89
+ }
90
+
91
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Bucket {
92
+ return new Bucket().fromJsonString(jsonString, options);
93
+ }
94
+
95
+ static equals(a: Bucket | PlainMessage<Bucket> | undefined, b: Bucket | PlainMessage<Bucket> | undefined): boolean {
96
+ return proto3.util.equals(Bucket, a, b);
97
+ }
98
+ }
99
+
100
+ /**
101
+ * @generated from message raystack.assets.v1beta2.Blob
102
+ */
103
+ export class Blob extends Message<Blob> {
104
+ /**
105
+ * The URN of the blob.
106
+ * Example: `location/bucket-name/file-name`.
107
+ *
108
+ * @generated from field: string urn = 1;
109
+ */
110
+ urn = "";
111
+
112
+ /**
113
+ * The name of the blob.
114
+ * Example: `file-name`.
115
+ *
116
+ * @generated from field: string name = 2;
117
+ */
118
+ name = "";
119
+
120
+ /**
121
+ * The source of the blob.
122
+ * Example: `gcs`.
123
+ *
124
+ * @generated from field: string source = 3;
125
+ */
126
+ source = "";
127
+
128
+ /**
129
+ * The length of the object content.
130
+ * Example: `300`
131
+ *
132
+ * @generated from field: int64 size = 4;
133
+ */
134
+ size = protoInt64.zero;
135
+
136
+ /**
137
+ * Delete time of the blob object.
138
+ *
139
+ * @generated from field: google.protobuf.Timestamp delete_time = 5;
140
+ */
141
+ deleteTime?: Timestamp;
142
+
143
+ /**
144
+ * Expire time of the blob object.
145
+ *
146
+ * @generated from field: google.protobuf.Timestamp expire_time = 6;
147
+ */
148
+ expireTime?: Timestamp;
149
+
150
+ /**
151
+ * List of attributes the model has.
152
+ *
153
+ * @generated from field: google.protobuf.Struct attributes = 7;
154
+ */
155
+ attributes?: Struct;
156
+
157
+ /**
158
+ * The ownership of the blob.
159
+ * For an example check out ownership.
160
+ *
161
+ * @generated from field: repeated raystack.assets.v1beta2.Owner ownership = 31;
162
+ */
163
+ ownership: Owner[] = [];
164
+
165
+ /**
166
+ * The timestamp of the blob's creation.
167
+ *
168
+ * @generated from field: google.protobuf.Timestamp create_time = 101;
169
+ */
170
+ createTime?: Timestamp;
171
+
172
+ /**
173
+ * The timestamp when the blob was last modified.
174
+ *
175
+ * @generated from field: google.protobuf.Timestamp update_time = 102;
176
+ */
177
+ updateTime?: Timestamp;
178
+
179
+ constructor(data?: PartialMessage<Blob>) {
180
+ super();
181
+ proto3.util.initPartial(data, this);
182
+ }
183
+
184
+ static readonly runtime: typeof proto3 = proto3;
185
+ static readonly typeName = "raystack.assets.v1beta2.Blob";
186
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
187
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 3, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ { no: 4, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
191
+ { no: 5, name: "delete_time", kind: "message", T: Timestamp },
192
+ { no: 6, name: "expire_time", kind: "message", T: Timestamp },
193
+ { no: 7, name: "attributes", kind: "message", T: Struct },
194
+ { no: 31, name: "ownership", kind: "message", T: Owner, repeated: true },
195
+ { no: 101, name: "create_time", kind: "message", T: Timestamp },
196
+ { no: 102, name: "update_time", kind: "message", T: Timestamp },
197
+ ]);
198
+
199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Blob {
200
+ return new Blob().fromBinary(bytes, options);
201
+ }
202
+
203
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Blob {
204
+ return new Blob().fromJson(jsonValue, options);
205
+ }
206
+
207
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Blob {
208
+ return new Blob().fromJsonString(jsonString, options);
209
+ }
210
+
211
+ static equals(a: Blob | PlainMessage<Blob> | undefined, b: Blob | PlainMessage<Blob> | undefined): boolean {
212
+ return proto3.util.equals(Blob, a, b);
213
+ }
214
+ }
215
+