@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,292 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta1/user.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
+ import { Resource } from "./resource_pb";
9
+ import { Properties } from "./properties_pb";
10
+ import { Timestamp } from "./timestamp_pb";
11
+ import { Event } from "./event_pb";
12
+
13
+ /**
14
+ * User is a person who uses or operates something.
15
+ * It can be a user of the system, or a user of a device.
16
+ * User is a resource that represents a user.
17
+ *
18
+ * @generated from message raystack.assets.v1beta1.User
19
+ */
20
+ export class User extends Message<User> {
21
+ /**
22
+ * Representation of the resource
23
+ *
24
+ * @generated from field: raystack.assets.v1beta1.Resource resource = 1;
25
+ */
26
+ resource?: Resource;
27
+
28
+ /**
29
+ * The emai address of the user.
30
+ * Example: `job.deo@gmail.com`
31
+ *
32
+ * @generated from field: string email = 3;
33
+ */
34
+ email = "";
35
+
36
+ /**
37
+ * The username of the user.
38
+ * Example: `johndoe`
39
+ *
40
+ * @generated from field: string username = 4;
41
+ */
42
+ username = "";
43
+
44
+ /**
45
+ * The first name of the user.
46
+ * Example: `john`
47
+ *
48
+ * @generated from field: string first_name = 5;
49
+ */
50
+ firstName = "";
51
+
52
+ /**
53
+ * The last name of the user.
54
+ * Example: `doe`
55
+ *
56
+ * @generated from field: string last_name = 6;
57
+ */
58
+ lastName = "";
59
+
60
+ /**
61
+ * The full name of the user.
62
+ * Example: `john mayer doe`
63
+ *
64
+ * @generated from field: string full_name = 7;
65
+ */
66
+ fullName = "";
67
+
68
+ /**
69
+ * The display name of the user.
70
+ * Example: `John M. Doe`
71
+ *
72
+ * @generated from field: string display_name = 8;
73
+ */
74
+ displayName = "";
75
+
76
+ /**
77
+ * The job title of the user,
78
+ * Example: `data engineer`
79
+ *
80
+ * @generated from field: string title = 9;
81
+ */
82
+ title = "";
83
+
84
+ /**
85
+ * The status of the user.
86
+ * Example: `active`
87
+ *
88
+ * @generated from field: string status = 10;
89
+ */
90
+ status = "";
91
+
92
+ /**
93
+ * The email of the manger of the user.
94
+ * Example: `rambo.ryan@gmail.com`
95
+ *
96
+ * @generated from field: string manager_email = 11;
97
+ */
98
+ managerEmail = "";
99
+
100
+ /**
101
+ * List of the user social media accounts.
102
+ * For an example check out the profile schema.
103
+ *
104
+ * @generated from field: repeated raystack.assets.v1beta1.Profile profiles = 21;
105
+ */
106
+ profiles: Profile[] = [];
107
+
108
+ /**
109
+ * List of the groups user belongs to.
110
+ * A user can be part of multiple groups and have a different role in every group.
111
+ *
112
+ * @generated from field: repeated raystack.assets.v1beta1.Membership memberships = 22;
113
+ */
114
+ memberships: Membership[] = [];
115
+
116
+ /**
117
+ * Representation of custom properties of user.
118
+ * Properties facet can be used to set custom properties, tags and labels for a user.
119
+ *
120
+ * @generated from field: raystack.assets.v1beta1.Properties properties = 31;
121
+ */
122
+ properties?: Properties;
123
+
124
+ /**
125
+ * The timestamp of the user's creation.
126
+ * Timstamp facet can be used to set the creation and updation timestamp of a user.
127
+ *
128
+ * @generated from field: raystack.assets.v1beta1.Timestamp timestamps = 32;
129
+ */
130
+ timestamps?: Timestamp;
131
+
132
+ /**
133
+ * The timestamp of the generated event.
134
+ * Event schemas is defined in the common event schema.
135
+ *
136
+ * @generated from field: raystack.assets.v1beta1.Event event = 100;
137
+ */
138
+ event?: Event;
139
+
140
+ constructor(data?: PartialMessage<User>) {
141
+ super();
142
+ proto3.util.initPartial(data, this);
143
+ }
144
+
145
+ static readonly runtime: typeof proto3 = proto3;
146
+ static readonly typeName = "raystack.assets.v1beta1.User";
147
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
148
+ { no: 1, name: "resource", kind: "message", T: Resource },
149
+ { no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
150
+ { no: 4, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
151
+ { no: 5, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 6, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
153
+ { no: 7, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
154
+ { no: 8, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
+ { no: 9, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
+ { no: 10, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
157
+ { no: 11, name: "manager_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
158
+ { no: 21, name: "profiles", kind: "message", T: Profile, repeated: true },
159
+ { no: 22, name: "memberships", kind: "message", T: Membership, repeated: true },
160
+ { no: 31, name: "properties", kind: "message", T: Properties },
161
+ { no: 32, name: "timestamps", kind: "message", T: Timestamp },
162
+ { no: 100, name: "event", kind: "message", T: Event },
163
+ ]);
164
+
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
166
+ return new User().fromBinary(bytes, options);
167
+ }
168
+
169
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
170
+ return new User().fromJson(jsonValue, options);
171
+ }
172
+
173
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
174
+ return new User().fromJsonString(jsonString, options);
175
+ }
176
+
177
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
178
+ return proto3.util.equals(User, a, b);
179
+ }
180
+ }
181
+
182
+ /**
183
+ * Membership is a relationship between a user and a group.
184
+ *
185
+ * @generated from message raystack.assets.v1beta1.Membership
186
+ */
187
+ export class Membership extends Message<Membership> {
188
+ /**
189
+ * The unique identifier of the group.
190
+ * Example: `group:mygroup`
191
+ *
192
+ * @generated from field: string group_urn = 1;
193
+ */
194
+ groupUrn = "";
195
+
196
+ /**
197
+ * The role user has in the group.
198
+ * Example: "owner"
199
+ *
200
+ * @generated from field: repeated string role = 2;
201
+ */
202
+ role: string[] = [];
203
+
204
+ constructor(data?: PartialMessage<Membership>) {
205
+ super();
206
+ proto3.util.initPartial(data, this);
207
+ }
208
+
209
+ static readonly runtime: typeof proto3 = proto3;
210
+ static readonly typeName = "raystack.assets.v1beta1.Membership";
211
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
212
+ { no: 1, name: "group_urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
213
+ { no: 2, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
214
+ ]);
215
+
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Membership {
217
+ return new Membership().fromBinary(bytes, options);
218
+ }
219
+
220
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Membership {
221
+ return new Membership().fromJson(jsonValue, options);
222
+ }
223
+
224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Membership {
225
+ return new Membership().fromJsonString(jsonString, options);
226
+ }
227
+
228
+ static equals(a: Membership | PlainMessage<Membership> | undefined, b: Membership | PlainMessage<Membership> | undefined): boolean {
229
+ return proto3.util.equals(Membership, a, b);
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Profile is a social media account of the user.
235
+ *
236
+ * @generated from message raystack.assets.v1beta1.Profile
237
+ */
238
+ export class Profile extends Message<Profile> {
239
+ /**
240
+ * The unique identifier of the profile.
241
+ * Example: `profile:jdoe`
242
+ *
243
+ * @generated from field: string id = 1;
244
+ */
245
+ id = "";
246
+
247
+ /**
248
+ * The type of the profile.
249
+ * Example: `github`
250
+ *
251
+ * @generated from field: string platform = 2;
252
+ */
253
+ platform = "";
254
+
255
+ /**
256
+ * The url of the profile.
257
+ * Example: `http://github.com/jdoe`
258
+ *
259
+ * @generated from field: string url = 3;
260
+ */
261
+ url = "";
262
+
263
+ constructor(data?: PartialMessage<Profile>) {
264
+ super();
265
+ proto3.util.initPartial(data, this);
266
+ }
267
+
268
+ static readonly runtime: typeof proto3 = proto3;
269
+ static readonly typeName = "raystack.assets.v1beta1.Profile";
270
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
271
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
272
+ { no: 2, name: "platform", kind: "scalar", T: 9 /* ScalarType.STRING */ },
273
+ { no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
274
+ ]);
275
+
276
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Profile {
277
+ return new Profile().fromBinary(bytes, options);
278
+ }
279
+
280
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Profile {
281
+ return new Profile().fromJson(jsonValue, options);
282
+ }
283
+
284
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Profile {
285
+ return new Profile().fromJsonString(jsonString, options);
286
+ }
287
+
288
+ static equals(a: Profile | PlainMessage<Profile> | undefined, b: Profile | PlainMessage<Profile> | undefined): boolean {
289
+ return proto3.util.equals(Profile, a, b);
290
+ }
291
+ }
292
+
@@ -0,0 +1,125 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta2/application.proto" (package "raystack.assets.v1beta2", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { Timestamp } from "../../../google/protobuf/timestamp";
14
+ import { Struct } from "../../../google/protobuf/struct";
15
+ /**
16
+ * @generated from protobuf message raystack.assets.v1beta2.Application
17
+ */
18
+ export interface Application {
19
+ /**
20
+ * The service/application's ID
21
+ *
22
+ * @generated from protobuf field: string id = 1
23
+ */
24
+ id: string;
25
+ /**
26
+ * Optional: The version of the service.
27
+ *
28
+ * @generated from protobuf field: string version = 2
29
+ */
30
+ version: string;
31
+ /**
32
+ * List of attributes the model has.
33
+ *
34
+ * @generated from protobuf field: google.protobuf.Struct attributes = 3
35
+ */
36
+ attributes?: Struct;
37
+ /**
38
+ * The timestamp of the service's creation.
39
+ *
40
+ * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
41
+ */
42
+ createTime?: Timestamp;
43
+ /**
44
+ * The timestamp when the service was last modified.
45
+ *
46
+ * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
47
+ */
48
+ updateTime?: Timestamp;
49
+ }
50
+ // @generated message type with reflection information, may provide speed optimized methods
51
+ class Application$Type extends MessageType<Application> {
52
+ constructor() {
53
+ super("raystack.assets.v1beta2.Application", [
54
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
55
+ { no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
56
+ { no: 3, name: "attributes", kind: "message", T: () => Struct },
57
+ { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
58
+ { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
59
+ ]);
60
+ }
61
+ create(value?: PartialMessage<Application>): Application {
62
+ const message = globalThis.Object.create((this.messagePrototype!));
63
+ message.id = "";
64
+ message.version = "";
65
+ if (value !== undefined)
66
+ reflectionMergePartial<Application>(this, message, value);
67
+ return message;
68
+ }
69
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Application): Application {
70
+ let message = target ?? this.create(), end = reader.pos + length;
71
+ while (reader.pos < end) {
72
+ let [fieldNo, wireType] = reader.tag();
73
+ switch (fieldNo) {
74
+ case /* string id */ 1:
75
+ message.id = reader.string();
76
+ break;
77
+ case /* string version */ 2:
78
+ message.version = reader.string();
79
+ break;
80
+ case /* google.protobuf.Struct attributes */ 3:
81
+ message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
82
+ break;
83
+ case /* google.protobuf.Timestamp create_time */ 101:
84
+ message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
85
+ break;
86
+ case /* google.protobuf.Timestamp update_time */ 102:
87
+ message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
88
+ break;
89
+ default:
90
+ let u = options.readUnknownField;
91
+ if (u === "throw")
92
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
93
+ let d = reader.skip(wireType);
94
+ if (u !== false)
95
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
96
+ }
97
+ }
98
+ return message;
99
+ }
100
+ internalBinaryWrite(message: Application, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
101
+ /* string id = 1; */
102
+ if (message.id !== "")
103
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
104
+ /* string version = 2; */
105
+ if (message.version !== "")
106
+ writer.tag(2, WireType.LengthDelimited).string(message.version);
107
+ /* google.protobuf.Struct attributes = 3; */
108
+ if (message.attributes)
109
+ Struct.internalBinaryWrite(message.attributes, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
110
+ /* google.protobuf.Timestamp create_time = 101; */
111
+ if (message.createTime)
112
+ Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
113
+ /* google.protobuf.Timestamp update_time = 102; */
114
+ if (message.updateTime)
115
+ Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
116
+ let u = options.writeUnknownFields;
117
+ if (u !== false)
118
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
119
+ return writer;
120
+ }
121
+ }
122
+ /**
123
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Application
124
+ */
125
+ export const Application = new Application$Type();
@@ -0,0 +1,79 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta2/application.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, Struct, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message raystack.assets.v1beta2.Application
11
+ */
12
+ export class Application extends Message<Application> {
13
+ /**
14
+ * The service/application's ID
15
+ *
16
+ * @generated from field: string id = 1;
17
+ */
18
+ id = "";
19
+
20
+ /**
21
+ * Optional: The version of the service.
22
+ *
23
+ * @generated from field: string version = 2;
24
+ */
25
+ version = "";
26
+
27
+ /**
28
+ * List of attributes the model has.
29
+ *
30
+ * @generated from field: google.protobuf.Struct attributes = 3;
31
+ */
32
+ attributes?: Struct;
33
+
34
+ /**
35
+ * The timestamp of the service's creation.
36
+ *
37
+ * @generated from field: google.protobuf.Timestamp create_time = 101;
38
+ */
39
+ createTime?: Timestamp;
40
+
41
+ /**
42
+ * The timestamp when the service was last modified.
43
+ *
44
+ * @generated from field: google.protobuf.Timestamp update_time = 102;
45
+ */
46
+ updateTime?: Timestamp;
47
+
48
+ constructor(data?: PartialMessage<Application>) {
49
+ super();
50
+ proto3.util.initPartial(data, this);
51
+ }
52
+
53
+ static readonly runtime: typeof proto3 = proto3;
54
+ static readonly typeName = "raystack.assets.v1beta2.Application";
55
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
56
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 3, name: "attributes", kind: "message", T: Struct },
59
+ { no: 101, name: "create_time", kind: "message", T: Timestamp },
60
+ { no: 102, name: "update_time", kind: "message", T: Timestamp },
61
+ ]);
62
+
63
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Application {
64
+ return new Application().fromBinary(bytes, options);
65
+ }
66
+
67
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Application {
68
+ return new Application().fromJson(jsonValue, options);
69
+ }
70
+
71
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Application {
72
+ return new Application().fromJsonString(jsonString, options);
73
+ }
74
+
75
+ static equals(a: Application | PlainMessage<Application> | undefined, b: Application | PlainMessage<Application> | undefined): boolean {
76
+ return proto3.util.equals(Application, a, b);
77
+ }
78
+ }
79
+