@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,181 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/assets/v1beta2/topic.proto (package raystack.assets.v1beta2, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * Topic is resource that represents a logical group of messages
11
+ * in message bus like kafka, pubsub, pulsar etc.
12
+ *
13
+ * @generated from message raystack.assets.v1beta2.Topic
14
+ */
15
+ export class Topic extends Message<Topic> {
16
+ /**
17
+ * The metrics of the topic.
18
+ * For an example check out topic profile schema.
19
+ *
20
+ * @generated from field: raystack.assets.v1beta2.TopicProfile profile = 1;
21
+ */
22
+ profile?: TopicProfile;
23
+
24
+ /**
25
+ * The schema of the topic.
26
+ * For an example check out topic schema.
27
+ *
28
+ * @generated from field: raystack.assets.v1beta2.TopicSchema schema = 2;
29
+ */
30
+ schema?: TopicSchema;
31
+
32
+ /**
33
+ * List of attributes the model has.
34
+ *
35
+ * @generated from field: google.protobuf.Struct attributes = 10;
36
+ */
37
+ attributes?: Struct;
38
+
39
+ /**
40
+ * The timestamp of the topic's creation.
41
+ *
42
+ * @generated from field: google.protobuf.Timestamp create_time = 101;
43
+ */
44
+ createTime?: Timestamp;
45
+
46
+ /**
47
+ * The timestamp when the topic was last modified.
48
+ *
49
+ * @generated from field: google.protobuf.Timestamp update_time = 102;
50
+ */
51
+ updateTime?: Timestamp;
52
+
53
+ constructor(data?: PartialMessage<Topic>) {
54
+ super();
55
+ proto3.util.initPartial(data, this);
56
+ }
57
+
58
+ static readonly runtime: typeof proto3 = proto3;
59
+ static readonly typeName = "raystack.assets.v1beta2.Topic";
60
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
61
+ { no: 1, name: "profile", kind: "message", T: TopicProfile },
62
+ { no: 2, name: "schema", kind: "message", T: TopicSchema },
63
+ { no: 10, name: "attributes", kind: "message", T: Struct },
64
+ { no: 101, name: "create_time", kind: "message", T: Timestamp },
65
+ { no: 102, name: "update_time", kind: "message", T: Timestamp },
66
+ ]);
67
+
68
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Topic {
69
+ return new Topic().fromBinary(bytes, options);
70
+ }
71
+
72
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Topic {
73
+ return new Topic().fromJson(jsonValue, options);
74
+ }
75
+
76
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Topic {
77
+ return new Topic().fromJsonString(jsonString, options);
78
+ }
79
+
80
+ static equals(a: Topic | PlainMessage<Topic> | undefined, b: Topic | PlainMessage<Topic> | undefined): boolean {
81
+ return proto3.util.equals(Topic, a, b);
82
+ }
83
+ }
84
+
85
+ /**
86
+ * TopicProfile is the profile of the topic.
87
+ *
88
+ * @generated from message raystack.assets.v1beta2.TopicProfile
89
+ */
90
+ export class TopicProfile extends Message<TopicProfile> {
91
+ /**
92
+ * The throughput of the topic.
93
+ * Example: `1m/minute`.
94
+ *
95
+ * @generated from field: string throughput = 1;
96
+ */
97
+ throughput = "";
98
+
99
+ /**
100
+ * The number of partitions in the topic.
101
+ * Example: `12`.
102
+ *
103
+ * @generated from field: int64 number_of_partitions = 2;
104
+ */
105
+ numberOfPartitions = protoInt64.zero;
106
+
107
+ constructor(data?: PartialMessage<TopicProfile>) {
108
+ super();
109
+ proto3.util.initPartial(data, this);
110
+ }
111
+
112
+ static readonly runtime: typeof proto3 = proto3;
113
+ static readonly typeName = "raystack.assets.v1beta2.TopicProfile";
114
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
115
+ { no: 1, name: "throughput", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
+ { no: 2, name: "number_of_partitions", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
117
+ ]);
118
+
119
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopicProfile {
120
+ return new TopicProfile().fromBinary(bytes, options);
121
+ }
122
+
123
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopicProfile {
124
+ return new TopicProfile().fromJson(jsonValue, options);
125
+ }
126
+
127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopicProfile {
128
+ return new TopicProfile().fromJsonString(jsonString, options);
129
+ }
130
+
131
+ static equals(a: TopicProfile | PlainMessage<TopicProfile> | undefined, b: TopicProfile | PlainMessage<TopicProfile> | undefined): boolean {
132
+ return proto3.util.equals(TopicProfile, a, b);
133
+ }
134
+ }
135
+
136
+ /**
137
+ * TopicSchema represents a schema for message bus.
138
+ * It is facet used to specify the schema of a message bus.
139
+ *
140
+ * @generated from message raystack.assets.v1beta2.TopicSchema
141
+ */
142
+ export class TopicSchema extends Message<TopicSchema> {
143
+ /**
144
+ * @generated from field: string schema_url = 1;
145
+ */
146
+ schemaUrl = "";
147
+
148
+ /**
149
+ * @generated from field: string format = 2;
150
+ */
151
+ format = "";
152
+
153
+ constructor(data?: PartialMessage<TopicSchema>) {
154
+ super();
155
+ proto3.util.initPartial(data, this);
156
+ }
157
+
158
+ static readonly runtime: typeof proto3 = proto3;
159
+ static readonly typeName = "raystack.assets.v1beta2.TopicSchema";
160
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
161
+ { no: 1, name: "schema_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
162
+ { no: 2, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ },
163
+ ]);
164
+
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TopicSchema {
166
+ return new TopicSchema().fromBinary(bytes, options);
167
+ }
168
+
169
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TopicSchema {
170
+ return new TopicSchema().fromJson(jsonValue, options);
171
+ }
172
+
173
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TopicSchema {
174
+ return new TopicSchema().fromJsonString(jsonString, options);
175
+ }
176
+
177
+ static equals(a: TopicSchema | PlainMessage<TopicSchema> | undefined, b: TopicSchema | PlainMessage<TopicSchema> | undefined): boolean {
178
+ return proto3.util.equals(TopicSchema, a, b);
179
+ }
180
+ }
181
+
@@ -0,0 +1,433 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/assets/v1beta2/user.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
+ * User is a person who uses or operates something.
17
+ * It can be a user of the system, or a user of a device.
18
+ * User is a resource that represents a user.
19
+ *
20
+ * @generated from protobuf message raystack.assets.v1beta2.User
21
+ */
22
+ export interface User {
23
+ /**
24
+ * The email address of the user.
25
+ * Example: `job.deo@gmail.com`
26
+ *
27
+ * @generated from protobuf field: string email = 3
28
+ */
29
+ email: string;
30
+ /**
31
+ * The username of the user.
32
+ * Example: `johndoe`
33
+ *
34
+ * @generated from protobuf field: string username = 4
35
+ */
36
+ username: string;
37
+ /**
38
+ * The first name of the user.
39
+ * Example: `john`
40
+ *
41
+ * @generated from protobuf field: string first_name = 5
42
+ */
43
+ firstName: string;
44
+ /**
45
+ * The last name of the user.
46
+ * Example: `doe`
47
+ *
48
+ * @generated from protobuf field: string last_name = 6
49
+ */
50
+ lastName: string;
51
+ /**
52
+ * The full name of the user.
53
+ * Example: `john mayer doe`
54
+ *
55
+ * @generated from protobuf field: string full_name = 7
56
+ */
57
+ fullName: string;
58
+ /**
59
+ * The display name of the user.
60
+ * Example: `John M. Doe`
61
+ *
62
+ * @generated from protobuf field: string display_name = 8
63
+ */
64
+ displayName: string;
65
+ /**
66
+ * The job title of the user.
67
+ * Example: `data engineer`
68
+ *
69
+ * @generated from protobuf field: string title = 9
70
+ */
71
+ title: string;
72
+ /**
73
+ * The status of the user.
74
+ * Example: `active`
75
+ *
76
+ * @generated from protobuf field: string status = 10
77
+ */
78
+ status: string;
79
+ /**
80
+ * The email of the manger of the user.
81
+ * Example: `rambo.ryan@gmail.com`
82
+ *
83
+ * @generated from protobuf field: string manager_email = 11
84
+ */
85
+ managerEmail: string;
86
+ /**
87
+ * List of the user social media accounts.
88
+ * For an example check out the profile schema.
89
+ *
90
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Profile profiles = 21
91
+ */
92
+ profiles: Profile[];
93
+ /**
94
+ * List of the groups user belongs to.
95
+ * A user can be part of multiple groups and have a different role in every group.
96
+ *
97
+ * @generated from protobuf field: repeated raystack.assets.v1beta2.Membership memberships = 22
98
+ */
99
+ memberships: Membership[];
100
+ /**
101
+ * List of attributes the model has.
102
+ *
103
+ * @generated from protobuf field: google.protobuf.Struct attributes = 30
104
+ */
105
+ attributes?: Struct;
106
+ /**
107
+ * The timestamp of the user's account creation.
108
+ *
109
+ * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
110
+ */
111
+ createTime?: Timestamp;
112
+ /**
113
+ * The timestamp when the user's account details were last modified.
114
+ *
115
+ * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
116
+ */
117
+ updateTime?: Timestamp;
118
+ }
119
+ /**
120
+ * Membership is a relationship between a user and a group.
121
+ *
122
+ * @generated from protobuf message raystack.assets.v1beta2.Membership
123
+ */
124
+ export interface Membership {
125
+ /**
126
+ * The unique identifier of the group.
127
+ * Example: `group:mygroup`
128
+ *
129
+ * @generated from protobuf field: string group_urn = 1
130
+ */
131
+ groupUrn: string;
132
+ /**
133
+ * The role user has in the group.
134
+ * Example: "owner"
135
+ *
136
+ * @generated from protobuf field: repeated string role = 2
137
+ */
138
+ role: string[];
139
+ }
140
+ /**
141
+ * Profile is a social media account of the user.
142
+ *
143
+ * @generated from protobuf message raystack.assets.v1beta2.Profile
144
+ */
145
+ export interface Profile {
146
+ /**
147
+ * The unique identifier of the profile.
148
+ * Example: `profile:jdoe`
149
+ *
150
+ * @generated from protobuf field: string id = 1
151
+ */
152
+ id: string;
153
+ /**
154
+ * The type of the profile.
155
+ * Example: `github`
156
+ *
157
+ * @generated from protobuf field: string platform = 2
158
+ */
159
+ platform: string;
160
+ /**
161
+ * The url of the profile.
162
+ * Example: `http://github.com/jdoe`
163
+ *
164
+ * @generated from protobuf field: string url = 3
165
+ */
166
+ url: string;
167
+ }
168
+ // @generated message type with reflection information, may provide speed optimized methods
169
+ class User$Type extends MessageType<User> {
170
+ constructor() {
171
+ super("raystack.assets.v1beta2.User", [
172
+ { no: 3, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
173
+ { no: 4, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
174
+ { no: 5, name: "first_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
175
+ { no: 6, name: "last_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
176
+ { no: 7, name: "full_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
177
+ { no: 8, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
178
+ { no: 9, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
179
+ { no: 10, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
180
+ { no: 11, name: "manager_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
181
+ { no: 21, name: "profiles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Profile },
182
+ { no: 22, name: "memberships", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Membership },
183
+ { no: 30, name: "attributes", kind: "message", T: () => Struct },
184
+ { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
185
+ { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
186
+ ]);
187
+ }
188
+ create(value?: PartialMessage<User>): User {
189
+ const message = globalThis.Object.create((this.messagePrototype!));
190
+ message.email = "";
191
+ message.username = "";
192
+ message.firstName = "";
193
+ message.lastName = "";
194
+ message.fullName = "";
195
+ message.displayName = "";
196
+ message.title = "";
197
+ message.status = "";
198
+ message.managerEmail = "";
199
+ message.profiles = [];
200
+ message.memberships = [];
201
+ if (value !== undefined)
202
+ reflectionMergePartial<User>(this, message, value);
203
+ return message;
204
+ }
205
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User): User {
206
+ let message = target ?? this.create(), end = reader.pos + length;
207
+ while (reader.pos < end) {
208
+ let [fieldNo, wireType] = reader.tag();
209
+ switch (fieldNo) {
210
+ case /* string email */ 3:
211
+ message.email = reader.string();
212
+ break;
213
+ case /* string username */ 4:
214
+ message.username = reader.string();
215
+ break;
216
+ case /* string first_name */ 5:
217
+ message.firstName = reader.string();
218
+ break;
219
+ case /* string last_name */ 6:
220
+ message.lastName = reader.string();
221
+ break;
222
+ case /* string full_name */ 7:
223
+ message.fullName = reader.string();
224
+ break;
225
+ case /* string display_name */ 8:
226
+ message.displayName = reader.string();
227
+ break;
228
+ case /* string title */ 9:
229
+ message.title = reader.string();
230
+ break;
231
+ case /* string status */ 10:
232
+ message.status = reader.string();
233
+ break;
234
+ case /* string manager_email */ 11:
235
+ message.managerEmail = reader.string();
236
+ break;
237
+ case /* repeated raystack.assets.v1beta2.Profile profiles */ 21:
238
+ message.profiles.push(Profile.internalBinaryRead(reader, reader.uint32(), options));
239
+ break;
240
+ case /* repeated raystack.assets.v1beta2.Membership memberships */ 22:
241
+ message.memberships.push(Membership.internalBinaryRead(reader, reader.uint32(), options));
242
+ break;
243
+ case /* google.protobuf.Struct attributes */ 30:
244
+ message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
245
+ break;
246
+ case /* google.protobuf.Timestamp create_time */ 101:
247
+ message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
248
+ break;
249
+ case /* google.protobuf.Timestamp update_time */ 102:
250
+ message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
251
+ break;
252
+ default:
253
+ let u = options.readUnknownField;
254
+ if (u === "throw")
255
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
256
+ let d = reader.skip(wireType);
257
+ if (u !== false)
258
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
259
+ }
260
+ }
261
+ return message;
262
+ }
263
+ internalBinaryWrite(message: User, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
264
+ /* string email = 3; */
265
+ if (message.email !== "")
266
+ writer.tag(3, WireType.LengthDelimited).string(message.email);
267
+ /* string username = 4; */
268
+ if (message.username !== "")
269
+ writer.tag(4, WireType.LengthDelimited).string(message.username);
270
+ /* string first_name = 5; */
271
+ if (message.firstName !== "")
272
+ writer.tag(5, WireType.LengthDelimited).string(message.firstName);
273
+ /* string last_name = 6; */
274
+ if (message.lastName !== "")
275
+ writer.tag(6, WireType.LengthDelimited).string(message.lastName);
276
+ /* string full_name = 7; */
277
+ if (message.fullName !== "")
278
+ writer.tag(7, WireType.LengthDelimited).string(message.fullName);
279
+ /* string display_name = 8; */
280
+ if (message.displayName !== "")
281
+ writer.tag(8, WireType.LengthDelimited).string(message.displayName);
282
+ /* string title = 9; */
283
+ if (message.title !== "")
284
+ writer.tag(9, WireType.LengthDelimited).string(message.title);
285
+ /* string status = 10; */
286
+ if (message.status !== "")
287
+ writer.tag(10, WireType.LengthDelimited).string(message.status);
288
+ /* string manager_email = 11; */
289
+ if (message.managerEmail !== "")
290
+ writer.tag(11, WireType.LengthDelimited).string(message.managerEmail);
291
+ /* repeated raystack.assets.v1beta2.Profile profiles = 21; */
292
+ for (let i = 0; i < message.profiles.length; i++)
293
+ Profile.internalBinaryWrite(message.profiles[i], writer.tag(21, WireType.LengthDelimited).fork(), options).join();
294
+ /* repeated raystack.assets.v1beta2.Membership memberships = 22; */
295
+ for (let i = 0; i < message.memberships.length; i++)
296
+ Membership.internalBinaryWrite(message.memberships[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
297
+ /* google.protobuf.Struct attributes = 30; */
298
+ if (message.attributes)
299
+ Struct.internalBinaryWrite(message.attributes, writer.tag(30, WireType.LengthDelimited).fork(), options).join();
300
+ /* google.protobuf.Timestamp create_time = 101; */
301
+ if (message.createTime)
302
+ Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
303
+ /* google.protobuf.Timestamp update_time = 102; */
304
+ if (message.updateTime)
305
+ Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
306
+ let u = options.writeUnknownFields;
307
+ if (u !== false)
308
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
309
+ return writer;
310
+ }
311
+ }
312
+ /**
313
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.User
314
+ */
315
+ export const User = new User$Type();
316
+ // @generated message type with reflection information, may provide speed optimized methods
317
+ class Membership$Type extends MessageType<Membership> {
318
+ constructor() {
319
+ super("raystack.assets.v1beta2.Membership", [
320
+ { no: 1, name: "group_urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
321
+ { no: 2, name: "role", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
322
+ ]);
323
+ }
324
+ create(value?: PartialMessage<Membership>): Membership {
325
+ const message = globalThis.Object.create((this.messagePrototype!));
326
+ message.groupUrn = "";
327
+ message.role = [];
328
+ if (value !== undefined)
329
+ reflectionMergePartial<Membership>(this, message, value);
330
+ return message;
331
+ }
332
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Membership): Membership {
333
+ let message = target ?? this.create(), end = reader.pos + length;
334
+ while (reader.pos < end) {
335
+ let [fieldNo, wireType] = reader.tag();
336
+ switch (fieldNo) {
337
+ case /* string group_urn */ 1:
338
+ message.groupUrn = reader.string();
339
+ break;
340
+ case /* repeated string role */ 2:
341
+ message.role.push(reader.string());
342
+ break;
343
+ default:
344
+ let u = options.readUnknownField;
345
+ if (u === "throw")
346
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
347
+ let d = reader.skip(wireType);
348
+ if (u !== false)
349
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
350
+ }
351
+ }
352
+ return message;
353
+ }
354
+ internalBinaryWrite(message: Membership, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
355
+ /* string group_urn = 1; */
356
+ if (message.groupUrn !== "")
357
+ writer.tag(1, WireType.LengthDelimited).string(message.groupUrn);
358
+ /* repeated string role = 2; */
359
+ for (let i = 0; i < message.role.length; i++)
360
+ writer.tag(2, WireType.LengthDelimited).string(message.role[i]);
361
+ let u = options.writeUnknownFields;
362
+ if (u !== false)
363
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
364
+ return writer;
365
+ }
366
+ }
367
+ /**
368
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Membership
369
+ */
370
+ export const Membership = new Membership$Type();
371
+ // @generated message type with reflection information, may provide speed optimized methods
372
+ class Profile$Type extends MessageType<Profile> {
373
+ constructor() {
374
+ super("raystack.assets.v1beta2.Profile", [
375
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
376
+ { no: 2, name: "platform", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
377
+ { no: 3, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
378
+ ]);
379
+ }
380
+ create(value?: PartialMessage<Profile>): Profile {
381
+ const message = globalThis.Object.create((this.messagePrototype!));
382
+ message.id = "";
383
+ message.platform = "";
384
+ message.url = "";
385
+ if (value !== undefined)
386
+ reflectionMergePartial<Profile>(this, message, value);
387
+ return message;
388
+ }
389
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Profile): Profile {
390
+ let message = target ?? this.create(), end = reader.pos + length;
391
+ while (reader.pos < end) {
392
+ let [fieldNo, wireType] = reader.tag();
393
+ switch (fieldNo) {
394
+ case /* string id */ 1:
395
+ message.id = reader.string();
396
+ break;
397
+ case /* string platform */ 2:
398
+ message.platform = reader.string();
399
+ break;
400
+ case /* string url */ 3:
401
+ message.url = reader.string();
402
+ break;
403
+ default:
404
+ let u = options.readUnknownField;
405
+ if (u === "throw")
406
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
407
+ let d = reader.skip(wireType);
408
+ if (u !== false)
409
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
410
+ }
411
+ }
412
+ return message;
413
+ }
414
+ internalBinaryWrite(message: Profile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
415
+ /* string id = 1; */
416
+ if (message.id !== "")
417
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
418
+ /* string platform = 2; */
419
+ if (message.platform !== "")
420
+ writer.tag(2, WireType.LengthDelimited).string(message.platform);
421
+ /* string url = 3; */
422
+ if (message.url !== "")
423
+ writer.tag(3, WireType.LengthDelimited).string(message.url);
424
+ let u = options.writeUnknownFields;
425
+ if (u !== false)
426
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
427
+ return writer;
428
+ }
429
+ }
430
+ /**
431
+ * @generated MessageType for protobuf message raystack.assets.v1beta2.Profile
432
+ */
433
+ export const Profile = new Profile$Type();