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