@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,179 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta1/ownership.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
+ /**
14
+ * Ownership is a facet that describes the ownership of a resource.
15
+ *
16
+ * @generated from protobuf message raystack.assets.v1beta1.Ownership
17
+ */
18
+ export interface Ownership {
19
+ /**
20
+ * Required: The list of owners of the resource.
21
+ * For an example check the owner schema.
22
+ *
23
+ * @generated from protobuf field: repeated raystack.assets.v1beta1.Owner owners = 7
24
+ */
25
+ owners: Owner[];
26
+ }
27
+ /**
28
+ * Owner is a facet that describes the owner of a resource.
29
+ *
30
+ * The name of the owner.
31
+ * Example: `user:johndoe`.
32
+ *
33
+ * @generated from protobuf message raystack.assets.v1beta1.Owner
34
+ */
35
+ export interface Owner {
36
+ /**
37
+ * @generated from protobuf field: string urn = 1
38
+ */
39
+ urn: string;
40
+ /**
41
+ * The name of the owner.
42
+ * Example: `John Doe`.
43
+ *
44
+ * @generated from protobuf field: string name = 2
45
+ */
46
+ name: string;
47
+ /**
48
+ * The role of the owner.
49
+ * Example: `admin`, `steward`.
50
+ *
51
+ * @generated from protobuf field: string role = 3
52
+ */
53
+ role: string;
54
+ /**
55
+ * The email of the owner.
56
+ * Example: `abc@email.com`
57
+ *
58
+ * @generated from protobuf field: string email = 4
59
+ */
60
+ email: string;
61
+ }
62
+ // @generated message type with reflection information, may provide speed optimized methods
63
+ class Ownership$Type extends MessageType<Ownership> {
64
+ constructor() {
65
+ super("raystack.assets.v1beta1.Ownership", [
66
+ { no: 7, name: "owners", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Owner }
67
+ ]);
68
+ }
69
+ create(value?: PartialMessage<Ownership>): Ownership {
70
+ const message = globalThis.Object.create((this.messagePrototype!));
71
+ message.owners = [];
72
+ if (value !== undefined)
73
+ reflectionMergePartial<Ownership>(this, message, value);
74
+ return message;
75
+ }
76
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Ownership): Ownership {
77
+ let message = target ?? this.create(), end = reader.pos + length;
78
+ while (reader.pos < end) {
79
+ let [fieldNo, wireType] = reader.tag();
80
+ switch (fieldNo) {
81
+ case /* repeated raystack.assets.v1beta1.Owner owners */ 7:
82
+ message.owners.push(Owner.internalBinaryRead(reader, reader.uint32(), options));
83
+ break;
84
+ default:
85
+ let u = options.readUnknownField;
86
+ if (u === "throw")
87
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
88
+ let d = reader.skip(wireType);
89
+ if (u !== false)
90
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
91
+ }
92
+ }
93
+ return message;
94
+ }
95
+ internalBinaryWrite(message: Ownership, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
96
+ /* repeated raystack.assets.v1beta1.Owner owners = 7; */
97
+ for (let i = 0; i < message.owners.length; i++)
98
+ Owner.internalBinaryWrite(message.owners[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
99
+ let u = options.writeUnknownFields;
100
+ if (u !== false)
101
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
102
+ return writer;
103
+ }
104
+ }
105
+ /**
106
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Ownership
107
+ */
108
+ export const Ownership = new Ownership$Type();
109
+ // @generated message type with reflection information, may provide speed optimized methods
110
+ class Owner$Type extends MessageType<Owner> {
111
+ constructor() {
112
+ super("raystack.assets.v1beta1.Owner", [
113
+ { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
114
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
115
+ { no: 3, name: "role", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
116
+ { no: 4, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
117
+ ]);
118
+ }
119
+ create(value?: PartialMessage<Owner>): Owner {
120
+ const message = globalThis.Object.create((this.messagePrototype!));
121
+ message.urn = "";
122
+ message.name = "";
123
+ message.role = "";
124
+ message.email = "";
125
+ if (value !== undefined)
126
+ reflectionMergePartial<Owner>(this, message, value);
127
+ return message;
128
+ }
129
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Owner): Owner {
130
+ let message = target ?? this.create(), end = reader.pos + length;
131
+ while (reader.pos < end) {
132
+ let [fieldNo, wireType] = reader.tag();
133
+ switch (fieldNo) {
134
+ case /* string urn */ 1:
135
+ message.urn = reader.string();
136
+ break;
137
+ case /* string name */ 2:
138
+ message.name = reader.string();
139
+ break;
140
+ case /* string role */ 3:
141
+ message.role = reader.string();
142
+ break;
143
+ case /* string email */ 4:
144
+ message.email = reader.string();
145
+ break;
146
+ default:
147
+ let u = options.readUnknownField;
148
+ if (u === "throw")
149
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
150
+ let d = reader.skip(wireType);
151
+ if (u !== false)
152
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
153
+ }
154
+ }
155
+ return message;
156
+ }
157
+ internalBinaryWrite(message: Owner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
158
+ /* string urn = 1; */
159
+ if (message.urn !== "")
160
+ writer.tag(1, WireType.LengthDelimited).string(message.urn);
161
+ /* string name = 2; */
162
+ if (message.name !== "")
163
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
164
+ /* string role = 3; */
165
+ if (message.role !== "")
166
+ writer.tag(3, WireType.LengthDelimited).string(message.role);
167
+ /* string email = 4; */
168
+ if (message.email !== "")
169
+ writer.tag(4, WireType.LengthDelimited).string(message.email);
170
+ let u = options.writeUnknownFields;
171
+ if (u !== false)
172
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
173
+ return writer;
174
+ }
175
+ }
176
+ /**
177
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Owner
178
+ */
179
+ export const Owner = new Owner$Type();
@@ -0,0 +1,119 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/ownership.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 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * Ownership is a facet that describes the ownership of a resource.
11
+ *
12
+ * @generated from message raystack.assets.v1beta1.Ownership
13
+ */
14
+ export class Ownership extends Message<Ownership> {
15
+ /**
16
+ * Required: The list of owners of the resource.
17
+ * For an example check the owner schema.
18
+ *
19
+ * @generated from field: repeated raystack.assets.v1beta1.Owner owners = 7;
20
+ */
21
+ owners: Owner[] = [];
22
+
23
+ constructor(data?: PartialMessage<Ownership>) {
24
+ super();
25
+ proto3.util.initPartial(data, this);
26
+ }
27
+
28
+ static readonly runtime: typeof proto3 = proto3;
29
+ static readonly typeName = "raystack.assets.v1beta1.Ownership";
30
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
31
+ { no: 7, name: "owners", kind: "message", T: Owner, repeated: true },
32
+ ]);
33
+
34
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Ownership {
35
+ return new Ownership().fromBinary(bytes, options);
36
+ }
37
+
38
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Ownership {
39
+ return new Ownership().fromJson(jsonValue, options);
40
+ }
41
+
42
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Ownership {
43
+ return new Ownership().fromJsonString(jsonString, options);
44
+ }
45
+
46
+ static equals(a: Ownership | PlainMessage<Ownership> | undefined, b: Ownership | PlainMessage<Ownership> | undefined): boolean {
47
+ return proto3.util.equals(Ownership, a, b);
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Owner is a facet that describes the owner of a resource.
53
+ *
54
+ * The name of the owner.
55
+ * Example: `user:johndoe`.
56
+ *
57
+ * @generated from message raystack.assets.v1beta1.Owner
58
+ */
59
+ export class Owner extends Message<Owner> {
60
+ /**
61
+ * @generated from field: string urn = 1;
62
+ */
63
+ urn = "";
64
+
65
+ /**
66
+ * The name of the owner.
67
+ * Example: `John Doe`.
68
+ *
69
+ * @generated from field: string name = 2;
70
+ */
71
+ name = "";
72
+
73
+ /**
74
+ * The role of the owner.
75
+ * Example: `admin`, `steward`.
76
+ *
77
+ * @generated from field: string role = 3;
78
+ */
79
+ role = "";
80
+
81
+ /**
82
+ * The email of the owner.
83
+ * Example: `abc@email.com`
84
+ *
85
+ * @generated from field: string email = 4;
86
+ */
87
+ email = "";
88
+
89
+ constructor(data?: PartialMessage<Owner>) {
90
+ super();
91
+ proto3.util.initPartial(data, this);
92
+ }
93
+
94
+ static readonly runtime: typeof proto3 = proto3;
95
+ static readonly typeName = "raystack.assets.v1beta1.Owner";
96
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
97
+ { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
98
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
99
+ { no: 3, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
100
+ { no: 4, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
101
+ ]);
102
+
103
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Owner {
104
+ return new Owner().fromBinary(bytes, options);
105
+ }
106
+
107
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Owner {
108
+ return new Owner().fromJson(jsonValue, options);
109
+ }
110
+
111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Owner {
112
+ return new Owner().fromJsonString(jsonString, options);
113
+ }
114
+
115
+ static equals(a: Owner | PlainMessage<Owner> | undefined, b: Owner | PlainMessage<Owner> | undefined): boolean {
116
+ return proto3.util.equals(Owner, a, b);
117
+ }
118
+ }
119
+
@@ -0,0 +1,87 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta1/preview.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 { ListValue } from "../../../google/protobuf/struct";
14
+ /**
15
+ * Preview contains samples of the metadata.
16
+ *
17
+ * @generated from protobuf message raystack.assets.v1beta1.Preview
18
+ */
19
+ export interface Preview {
20
+ /**
21
+ * fields is a list of fields.
22
+ *
23
+ * @generated from protobuf field: repeated string fields = 1
24
+ */
25
+ fields: string[];
26
+ /**
27
+ * rows is a multidimensional array containing
28
+ * Optional: List of properties the user has.
29
+ *
30
+ * @generated from protobuf field: google.protobuf.ListValue rows = 2
31
+ */
32
+ rows?: ListValue;
33
+ }
34
+ // @generated message type with reflection information, may provide speed optimized methods
35
+ class Preview$Type extends MessageType<Preview> {
36
+ constructor() {
37
+ super("raystack.assets.v1beta1.Preview", [
38
+ { no: 1, name: "fields", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
39
+ { no: 2, name: "rows", kind: "message", T: () => ListValue }
40
+ ]);
41
+ }
42
+ create(value?: PartialMessage<Preview>): Preview {
43
+ const message = globalThis.Object.create((this.messagePrototype!));
44
+ message.fields = [];
45
+ if (value !== undefined)
46
+ reflectionMergePartial<Preview>(this, message, value);
47
+ return message;
48
+ }
49
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Preview): Preview {
50
+ let message = target ?? this.create(), end = reader.pos + length;
51
+ while (reader.pos < end) {
52
+ let [fieldNo, wireType] = reader.tag();
53
+ switch (fieldNo) {
54
+ case /* repeated string fields */ 1:
55
+ message.fields.push(reader.string());
56
+ break;
57
+ case /* google.protobuf.ListValue rows */ 2:
58
+ message.rows = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.rows);
59
+ break;
60
+ default:
61
+ let u = options.readUnknownField;
62
+ if (u === "throw")
63
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
64
+ let d = reader.skip(wireType);
65
+ if (u !== false)
66
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
67
+ }
68
+ }
69
+ return message;
70
+ }
71
+ internalBinaryWrite(message: Preview, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
72
+ /* repeated string fields = 1; */
73
+ for (let i = 0; i < message.fields.length; i++)
74
+ writer.tag(1, WireType.LengthDelimited).string(message.fields[i]);
75
+ /* google.protobuf.ListValue rows = 2; */
76
+ if (message.rows)
77
+ ListValue.internalBinaryWrite(message.rows, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
78
+ let u = options.writeUnknownFields;
79
+ if (u !== false)
80
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
81
+ return writer;
82
+ }
83
+ }
84
+ /**
85
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Preview
86
+ */
87
+ export const Preview = new Preview$Type();
@@ -0,0 +1,58 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/preview.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 { ListValue, Message, proto3 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * Preview contains samples of the metadata.
11
+ *
12
+ * @generated from message raystack.assets.v1beta1.Preview
13
+ */
14
+ export class Preview extends Message<Preview> {
15
+ /**
16
+ * fields is a list of fields.
17
+ *
18
+ * @generated from field: repeated string fields = 1;
19
+ */
20
+ fields: string[] = [];
21
+
22
+ /**
23
+ * rows is a multidimensional array containing
24
+ * Optional: List of properties the user has.
25
+ *
26
+ * @generated from field: google.protobuf.ListValue rows = 2;
27
+ */
28
+ rows?: ListValue;
29
+
30
+ constructor(data?: PartialMessage<Preview>) {
31
+ super();
32
+ proto3.util.initPartial(data, this);
33
+ }
34
+
35
+ static readonly runtime: typeof proto3 = proto3;
36
+ static readonly typeName = "raystack.assets.v1beta1.Preview";
37
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
38
+ { no: 1, name: "fields", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
39
+ { no: 2, name: "rows", kind: "message", T: ListValue },
40
+ ]);
41
+
42
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Preview {
43
+ return new Preview().fromBinary(bytes, options);
44
+ }
45
+
46
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Preview {
47
+ return new Preview().fromJson(jsonValue, options);
48
+ }
49
+
50
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Preview {
51
+ return new Preview().fromJsonString(jsonString, options);
52
+ }
53
+
54
+ static equals(a: Preview | PlainMessage<Preview> | undefined, b: Preview | PlainMessage<Preview> | undefined): boolean {
55
+ return proto3.util.equals(Preview, a, b);
56
+ }
57
+ }
58
+
@@ -0,0 +1,116 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta1/properties.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 { Struct } from "../../../google/protobuf/struct";
14
+ /**
15
+ * @generated from protobuf message raystack.assets.v1beta1.Properties
16
+ */
17
+ export interface Properties {
18
+ /**
19
+ * Optional: List of tags the user has.
20
+ *
21
+ * @generated from protobuf field: repeated string tags = 1
22
+ */
23
+ tags: string[];
24
+ /**
25
+ * Optional. List of labels the user has.
26
+ *
27
+ * @generated from protobuf field: map<string, string> labels = 2
28
+ */
29
+ labels: {
30
+ [key: string]: string;
31
+ };
32
+ /**
33
+ * Optional: List of properties the user has.
34
+ *
35
+ * @generated from protobuf field: google.protobuf.Struct attributes = 3
36
+ */
37
+ attributes?: Struct;
38
+ }
39
+ // @generated message type with reflection information, may provide speed optimized methods
40
+ class Properties$Type extends MessageType<Properties> {
41
+ constructor() {
42
+ super("raystack.assets.v1beta1.Properties", [
43
+ { no: 1, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
44
+ { no: 2, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
45
+ { no: 3, name: "attributes", kind: "message", T: () => Struct }
46
+ ]);
47
+ }
48
+ create(value?: PartialMessage<Properties>): Properties {
49
+ const message = globalThis.Object.create((this.messagePrototype!));
50
+ message.tags = [];
51
+ message.labels = {};
52
+ if (value !== undefined)
53
+ reflectionMergePartial<Properties>(this, message, value);
54
+ return message;
55
+ }
56
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Properties): Properties {
57
+ let message = target ?? this.create(), end = reader.pos + length;
58
+ while (reader.pos < end) {
59
+ let [fieldNo, wireType] = reader.tag();
60
+ switch (fieldNo) {
61
+ case /* repeated string tags */ 1:
62
+ message.tags.push(reader.string());
63
+ break;
64
+ case /* map<string, string> labels */ 2:
65
+ this.binaryReadMap2(message.labels, reader, options);
66
+ break;
67
+ case /* google.protobuf.Struct attributes */ 3:
68
+ message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
69
+ break;
70
+ default:
71
+ let u = options.readUnknownField;
72
+ if (u === "throw")
73
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
74
+ let d = reader.skip(wireType);
75
+ if (u !== false)
76
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
77
+ }
78
+ }
79
+ return message;
80
+ }
81
+ private binaryReadMap2(map: Properties["labels"], reader: IBinaryReader, options: BinaryReadOptions): void {
82
+ let len = reader.uint32(), end = reader.pos + len, key: keyof Properties["labels"] | undefined, val: Properties["labels"][any] | undefined;
83
+ while (reader.pos < end) {
84
+ let [fieldNo, wireType] = reader.tag();
85
+ switch (fieldNo) {
86
+ case 1:
87
+ key = reader.string();
88
+ break;
89
+ case 2:
90
+ val = reader.string();
91
+ break;
92
+ default: throw new globalThis.Error("unknown map entry field for raystack.assets.v1beta1.Properties.labels");
93
+ }
94
+ }
95
+ map[key ?? ""] = val ?? "";
96
+ }
97
+ internalBinaryWrite(message: Properties, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
98
+ /* repeated string tags = 1; */
99
+ for (let i = 0; i < message.tags.length; i++)
100
+ writer.tag(1, WireType.LengthDelimited).string(message.tags[i]);
101
+ /* map<string, string> labels = 2; */
102
+ for (let k of globalThis.Object.keys(message.labels))
103
+ writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.labels[k]).join();
104
+ /* google.protobuf.Struct attributes = 3; */
105
+ if (message.attributes)
106
+ Struct.internalBinaryWrite(message.attributes, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
107
+ let u = options.writeUnknownFields;
108
+ if (u !== false)
109
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
110
+ return writer;
111
+ }
112
+ }
113
+ /**
114
+ * @generated MessageType for protobuf message raystack.assets.v1beta1.Properties
115
+ */
116
+ export const Properties = new Properties$Type();
@@ -0,0 +1,63 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/properties.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, Struct } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message raystack.assets.v1beta1.Properties
11
+ */
12
+ export class Properties extends Message<Properties> {
13
+ /**
14
+ * Optional: List of tags the user has.
15
+ *
16
+ * @generated from field: repeated string tags = 1;
17
+ */
18
+ tags: string[] = [];
19
+
20
+ /**
21
+ * Optional. List of labels the user has.
22
+ *
23
+ * @generated from field: map<string, string> labels = 2;
24
+ */
25
+ labels: { [key: string]: string } = {};
26
+
27
+ /**
28
+ * Optional: List of properties the user has.
29
+ *
30
+ * @generated from field: google.protobuf.Struct attributes = 3;
31
+ */
32
+ attributes?: Struct;
33
+
34
+ constructor(data?: PartialMessage<Properties>) {
35
+ super();
36
+ proto3.util.initPartial(data, this);
37
+ }
38
+
39
+ static readonly runtime: typeof proto3 = proto3;
40
+ static readonly typeName = "raystack.assets.v1beta1.Properties";
41
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
42
+ { no: 1, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
43
+ { no: 2, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
44
+ { no: 3, name: "attributes", kind: "message", T: Struct },
45
+ ]);
46
+
47
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Properties {
48
+ return new Properties().fromBinary(bytes, options);
49
+ }
50
+
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Properties {
52
+ return new Properties().fromJson(jsonValue, options);
53
+ }
54
+
55
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Properties {
56
+ return new Properties().fromJsonString(jsonString, options);
57
+ }
58
+
59
+ static equals(a: Properties | PlainMessage<Properties> | undefined, b: Properties | PlainMessage<Properties> | undefined): boolean {
60
+ return proto3.util.equals(Properties, a, b);
61
+ }
62
+ }
63
+