@raystack/proton 0.1.0-35dd68d487bfa7e7339c40e9b103ee7377aac6e6 → 0.1.0-881c92a4cab2490e6c680462a94660b551b1040f

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 (111) hide show
  1. package/google/api/annotations_pb.ts +15 -9
  2. package/google/api/field_behavior_pb.ts +19 -19
  3. package/google/api/http_pb.ts +43 -108
  4. package/google/api/httpbody_pb.ts +23 -37
  5. package/index.ts +10 -0
  6. package/package.json +61 -17
  7. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  8. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  9. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  10. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  11. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  12. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  13. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  14. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  15. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  16. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  17. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  18. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  19. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  20. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  21. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  22. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  23. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  24. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  25. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  26. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  27. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  28. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  29. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  30. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  31. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  32. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  33. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  34. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  35. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  36. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  37. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  38. package/raystack/common/index.ts +0 -1
  39. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  40. package/raystack/common/v1/service_pb.ts +57 -97
  41. package/raystack/compass/index.ts +0 -1
  42. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  43. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  44. package/raystack/entropy/index.ts +0 -2
  45. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  46. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  47. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  48. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  49. package/raystack/frontier/index.ts +0 -2
  50. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +54 -524
  51. package/raystack/frontier/v1beta1/admin_pb.ts +1755 -3846
  52. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
  53. package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
  54. package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
  55. package/raystack/guardian/index.ts +0 -1
  56. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  57. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  58. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  59. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  60. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  61. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  62. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  63. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  64. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  65. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  66. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  67. package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
  68. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  69. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  70. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  71. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  72. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  73. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  74. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  75. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  76. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  77. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  78. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  79. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  80. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  81. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  82. package/raystack/raccoon/index.ts +0 -1
  83. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  84. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  85. package/raystack/siren/index.ts +0 -1
  86. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  87. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  88. package/raystack/stencil/index.ts +0 -1
  89. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  90. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  91. package/validate/validate_pb.ts +401 -1038
  92. package/raystack/common/v1/service_connect.ts +0 -26
  93. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  94. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  95. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  96. package/raystack/frontier/v1beta1/admin_connect.ts +0 -584
  97. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  98. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  99. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  100. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  101. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  102. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  103. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  104. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  105. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  106. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  107. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  108. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  109. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  110. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  111. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
@@ -1,14 +1,24 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta1/user.proto (package raystack.assets.v1beta1, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
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";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Event } from "./event_pb";
8
+ import { file_raystack_assets_v1beta1_event } from "./event_pb";
9
+ import type { Properties } from "./properties_pb";
10
+ import { file_raystack_assets_v1beta1_properties } from "./properties_pb";
11
+ import type { Resource } from "./resource_pb";
12
+ import { file_raystack_assets_v1beta1_resource } from "./resource_pb";
13
+ import type { Timestamp } from "./timestamp_pb";
14
+ import { file_raystack_assets_v1beta1_timestamp } from "./timestamp_pb";
15
+ import type { Message } from "@bufbuild/protobuf";
16
+
17
+ /**
18
+ * Describes the file raystack/assets/v1beta1/user.proto.
19
+ */
20
+ export const file_raystack_assets_v1beta1_user: GenFile = /*@__PURE__*/
21
+ fileDesc("CiJyYXlzdGFjay9hc3NldHMvdjFiZXRhMS91c2VyLnByb3RvEhdyYXlzdGFjay5hc3NldHMudjFiZXRhMSLwAwoEVXNlchIzCghyZXNvdXJjZRgBIAEoCzIhLnJheXN0YWNrLmFzc2V0cy52MWJldGExLlJlc291cmNlEg0KBWVtYWlsGAMgASgJEhAKCHVzZXJuYW1lGAQgASgJEhIKCmZpcnN0X25hbWUYBSABKAkSEQoJbGFzdF9uYW1lGAYgASgJEhEKCWZ1bGxfbmFtZRgHIAEoCRIUCgxkaXNwbGF5X25hbWUYCCABKAkSDQoFdGl0bGUYCSABKAkSDgoGc3RhdHVzGAogASgJEhUKDW1hbmFnZXJfZW1haWwYCyABKAkSMgoIcHJvZmlsZXMYFSADKAsyIC5yYXlzdGFjay5hc3NldHMudjFiZXRhMS5Qcm9maWxlEjgKC21lbWJlcnNoaXBzGBYgAygLMiMucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuTWVtYmVyc2hpcBI3Cgpwcm9wZXJ0aWVzGB8gASgLMiMucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuUHJvcGVydGllcxI2Cgp0aW1lc3RhbXBzGCAgASgLMiIucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuVGltZXN0YW1wEi0KBWV2ZW50GGQgASgLMh4ucmF5c3RhY2suYXNzZXRzLnYxYmV0YTEuRXZlbnQiLQoKTWVtYmVyc2hpcBIRCglncm91cF91cm4YASABKAkSDAoEcm9sZRgCIAMoCSI0CgdQcm9maWxlEgoKAmlkGAEgASgJEhAKCHBsYXRmb3JtGAIgASgJEgsKA3VybBgDIAEoCUJYChJpby5yYXlzdGFjay5hc3NldHNCCVVzZXJQcm90b1o3Z2l0aHViLmNvbS9yYXlzdGFjay9wcm90b24vYXNzZXRzL3YxYmV0YTE7YXNzZXRzdjFiZXRhMWIGcHJvdG8z", [file_raystack_assets_v1beta1_event, file_raystack_assets_v1beta1_properties, file_raystack_assets_v1beta1_resource, file_raystack_assets_v1beta1_timestamp]);
12
22
 
13
23
  /**
14
24
  * User is a person who uses or operates something.
@@ -17,7 +27,7 @@ import { Event } from "./event_pb";
17
27
  *
18
28
  * @generated from message raystack.assets.v1beta1.User
19
29
  */
20
- export class User extends Message<User> {
30
+ export type User = Message<"raystack.assets.v1beta1.User"> & {
21
31
  /**
22
32
  * Representation of the resource
23
33
  *
@@ -31,7 +41,7 @@ export class User extends Message<User> {
31
41
  *
32
42
  * @generated from field: string email = 3;
33
43
  */
34
- email = "";
44
+ email: string;
35
45
 
36
46
  /**
37
47
  * The username of the user.
@@ -39,7 +49,7 @@ export class User extends Message<User> {
39
49
  *
40
50
  * @generated from field: string username = 4;
41
51
  */
42
- username = "";
52
+ username: string;
43
53
 
44
54
  /**
45
55
  * The first name of the user.
@@ -47,7 +57,7 @@ export class User extends Message<User> {
47
57
  *
48
58
  * @generated from field: string first_name = 5;
49
59
  */
50
- firstName = "";
60
+ firstName: string;
51
61
 
52
62
  /**
53
63
  * The last name of the user.
@@ -55,7 +65,7 @@ export class User extends Message<User> {
55
65
  *
56
66
  * @generated from field: string last_name = 6;
57
67
  */
58
- lastName = "";
68
+ lastName: string;
59
69
 
60
70
  /**
61
71
  * The full name of the user.
@@ -63,7 +73,7 @@ export class User extends Message<User> {
63
73
  *
64
74
  * @generated from field: string full_name = 7;
65
75
  */
66
- fullName = "";
76
+ fullName: string;
67
77
 
68
78
  /**
69
79
  * The display name of the user.
@@ -71,7 +81,7 @@ export class User extends Message<User> {
71
81
  *
72
82
  * @generated from field: string display_name = 8;
73
83
  */
74
- displayName = "";
84
+ displayName: string;
75
85
 
76
86
  /**
77
87
  * The job title of the user,
@@ -79,7 +89,7 @@ export class User extends Message<User> {
79
89
  *
80
90
  * @generated from field: string title = 9;
81
91
  */
82
- title = "";
92
+ title: string;
83
93
 
84
94
  /**
85
95
  * The status of the user.
@@ -87,7 +97,7 @@ export class User extends Message<User> {
87
97
  *
88
98
  * @generated from field: string status = 10;
89
99
  */
90
- status = "";
100
+ status: string;
91
101
 
92
102
  /**
93
103
  * The email of the manger of the user.
@@ -95,7 +105,7 @@ export class User extends Message<User> {
95
105
  *
96
106
  * @generated from field: string manager_email = 11;
97
107
  */
98
- managerEmail = "";
108
+ managerEmail: string;
99
109
 
100
110
  /**
101
111
  * List of the user social media accounts.
@@ -103,7 +113,7 @@ export class User extends Message<User> {
103
113
  *
104
114
  * @generated from field: repeated raystack.assets.v1beta1.Profile profiles = 21;
105
115
  */
106
- profiles: Profile[] = [];
116
+ profiles: Profile[];
107
117
 
108
118
  /**
109
119
  * List of the groups user belongs to.
@@ -111,7 +121,7 @@ export class User extends Message<User> {
111
121
  *
112
122
  * @generated from field: repeated raystack.assets.v1beta1.Membership memberships = 22;
113
123
  */
114
- memberships: Membership[] = [];
124
+ memberships: Membership[];
115
125
 
116
126
  /**
117
127
  * Representation of custom properties of user.
@@ -136,62 +146,28 @@ export class User extends Message<User> {
136
146
  * @generated from field: raystack.assets.v1beta1.Event event = 100;
137
147
  */
138
148
  event?: Event;
149
+ };
139
150
 
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
- }
151
+ /**
152
+ * Describes the message raystack.assets.v1beta1.User.
153
+ * Use `create(UserSchema)` to create a new message.
154
+ */
155
+ export const UserSchema: GenMessage<User> = /*@__PURE__*/
156
+ messageDesc(file_raystack_assets_v1beta1_user, 0);
181
157
 
182
158
  /**
183
159
  * Membership is a relationship between a user and a group.
184
160
  *
185
161
  * @generated from message raystack.assets.v1beta1.Membership
186
162
  */
187
- export class Membership extends Message<Membership> {
163
+ export type Membership = Message<"raystack.assets.v1beta1.Membership"> & {
188
164
  /**
189
165
  * The unique identifier of the group.
190
166
  * Example: `group:mygroup`
191
167
  *
192
168
  * @generated from field: string group_urn = 1;
193
169
  */
194
- groupUrn = "";
170
+ groupUrn: string;
195
171
 
196
172
  /**
197
173
  * The role user has in the group.
@@ -199,50 +175,29 @@ export class Membership extends Message<Membership> {
199
175
  *
200
176
  * @generated from field: repeated string role = 2;
201
177
  */
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
- ]);
178
+ role: string[];
179
+ };
215
180
 
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
- }
181
+ /**
182
+ * Describes the message raystack.assets.v1beta1.Membership.
183
+ * Use `create(MembershipSchema)` to create a new message.
184
+ */
185
+ export const MembershipSchema: GenMessage<Membership> = /*@__PURE__*/
186
+ messageDesc(file_raystack_assets_v1beta1_user, 1);
232
187
 
233
188
  /**
234
189
  * Profile is a social media account of the user.
235
190
  *
236
191
  * @generated from message raystack.assets.v1beta1.Profile
237
192
  */
238
- export class Profile extends Message<Profile> {
193
+ export type Profile = Message<"raystack.assets.v1beta1.Profile"> & {
239
194
  /**
240
195
  * The unique identifier of the profile.
241
196
  * Example: `profile:jdoe`
242
197
  *
243
198
  * @generated from field: string id = 1;
244
199
  */
245
- id = "";
200
+ id: string;
246
201
 
247
202
  /**
248
203
  * The type of the profile.
@@ -250,7 +205,7 @@ export class Profile extends Message<Profile> {
250
205
  *
251
206
  * @generated from field: string platform = 2;
252
207
  */
253
- platform = "";
208
+ platform: string;
254
209
 
255
210
  /**
256
211
  * The url of the profile.
@@ -258,35 +213,13 @@ export class Profile extends Message<Profile> {
258
213
  *
259
214
  * @generated from field: string url = 3;
260
215
  */
261
- url = "";
262
-
263
- constructor(data?: PartialMessage<Profile>) {
264
- super();
265
- proto3.util.initPartial(data, this);
266
- }
216
+ url: string;
217
+ };
267
218
 
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
- }
219
+ /**
220
+ * Describes the message raystack.assets.v1beta1.Profile.
221
+ * Use `create(ProfileSchema)` to create a new message.
222
+ */
223
+ export const ProfileSchema: GenMessage<Profile> = /*@__PURE__*/
224
+ messageDesc(file_raystack_assets_v1beta1_user, 2);
292
225
 
@@ -1,35 +1,43 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta2/application.proto (package raystack.assets.v1beta2, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file raystack/assets/v1beta2/application.proto.
13
+ */
14
+ export const file_raystack_assets_v1beta2_application: GenFile = /*@__PURE__*/
15
+ fileDesc("CilyYXlzdGFjay9hc3NldHMvdjFiZXRhMi9hcHBsaWNhdGlvbi5wcm90bxIXcmF5c3RhY2suYXNzZXRzLnYxYmV0YTIiuQEKC0FwcGxpY2F0aW9uEgoKAmlkGAEgASgJEg8KB3ZlcnNpb24YAiABKAkSKwoKYXR0cmlidXRlcxgDIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSLwoLY3JlYXRlX3RpbWUYZSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3VwZGF0ZV90aW1lGGYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEJfChJpby5yYXlzdGFjay5hc3NldHNCEEFwcGxpY2F0aW9uUHJvdG9aN2dpdGh1Yi5jb20vcmF5c3RhY2svcHJvdG9uL2Fzc2V0cy92MWJldGEyO2Fzc2V0c3YxYmV0YTJiBnByb3RvMw", [file_google_protobuf_struct, file_google_protobuf_timestamp]);
8
16
 
9
17
  /**
10
18
  * @generated from message raystack.assets.v1beta2.Application
11
19
  */
12
- export class Application extends Message<Application> {
20
+ export type Application = Message<"raystack.assets.v1beta2.Application"> & {
13
21
  /**
14
22
  * The service/application's ID
15
23
  *
16
24
  * @generated from field: string id = 1;
17
25
  */
18
- id = "";
26
+ id: string;
19
27
 
20
28
  /**
21
29
  * Optional: The version of the service.
22
30
  *
23
31
  * @generated from field: string version = 2;
24
32
  */
25
- version = "";
33
+ version: string;
26
34
 
27
35
  /**
28
36
  * List of attributes the model has.
29
37
  *
30
38
  * @generated from field: google.protobuf.Struct attributes = 3;
31
39
  */
32
- attributes?: Struct;
40
+ attributes?: JsonObject;
33
41
 
34
42
  /**
35
43
  * The timestamp of the service's creation.
@@ -44,36 +52,12 @@ export class Application extends Message<Application> {
44
52
  * @generated from field: google.protobuf.Timestamp update_time = 102;
45
53
  */
46
54
  updateTime?: Timestamp;
55
+ };
47
56
 
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
- }
57
+ /**
58
+ * Describes the message raystack.assets.v1beta2.Application.
59
+ * Use `create(ApplicationSchema)` to create a new message.
60
+ */
61
+ export const ApplicationSchema: GenMessage<Application> = /*@__PURE__*/
62
+ messageDesc(file_raystack_assets_v1beta2_application, 0);
79
63
 
@@ -1,25 +1,34 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=none"
2
2
  // @generated from file raystack/assets/v1beta2/asset.proto (package raystack.assets.v1beta2, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
4
 
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Any, Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
- import { Event, Lineage, Owner } from "./common_pb";
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Any, Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_any, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { Event, Lineage, Owner } from "./common_pb";
10
+ import { file_raystack_assets_v1beta2_common } from "./common_pb";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+
13
+ /**
14
+ * Describes the file raystack/assets/v1beta2/asset.proto.
15
+ */
16
+ export const file_raystack_assets_v1beta2_asset: GenFile = /*@__PURE__*/
17
+ fileDesc("CiNyYXlzdGFjay9hc3NldHMvdjFiZXRhMi9hc3NldC5wcm90bxIXcmF5c3RhY2suYXNzZXRzLnYxYmV0YTIi5gMKBUFzc2V0EgsKA3VybhgBIAEoCRIMCgRuYW1lGAIgASgJEg8KB3NlcnZpY2UYAyABKAkSDAoEdHlwZRgEIAEoCRILCgN1cmwYBSABKAkSEwoLZGVzY3JpcHRpb24YBiABKAkSIgoEZGF0YRgHIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnkSLgoGb3duZXJzGB8gAygLMh4ucmF5c3RhY2suYXNzZXRzLnYxYmV0YTIuT3duZXISMQoHbGluZWFnZRggIAEoCzIgLnJheXN0YWNrLmFzc2V0cy52MWJldGEyLkxpbmVhZ2USOgoGbGFiZWxzGCEgAygLMioucmF5c3RhY2suYXNzZXRzLnYxYmV0YTIuQXNzZXQuTGFiZWxzRW50cnkSLQoFZXZlbnQYZCABKAsyHi5yYXlzdGFjay5hc3NldHMudjFiZXRhMi5FdmVudBIvCgtjcmVhdGVfdGltZRhlIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLdXBkYXRlX3RpbWUYZiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGi0KC0xhYmVsc0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAFCWgoSaW8ucmF5c3RhY2suYXNzZXRzQgtBc3NldHNQcm90b1o3Z2l0aHViLmNvbS9yYXlzdGFjay9wcm90b24vYXNzZXRzL3YxYmV0YTI7YXNzZXRzdjFiZXRhMmIGcHJvdG8z", [file_google_protobuf_any, file_google_protobuf_timestamp, file_raystack_assets_v1beta2_common]);
9
18
 
10
19
  /**
11
20
  * Asset is a resource that represents any type of asset.
12
21
  *
13
22
  * @generated from message raystack.assets.v1beta2.Asset
14
23
  */
15
- export class Asset extends Message<Asset> {
24
+ export type Asset = Message<"raystack.assets.v1beta2.Asset"> & {
16
25
  /**
17
26
  * The unique identifier of the asset.
18
27
  * Example: `user:jdoe` or `group:accounting`.
19
28
  *
20
29
  * @generated from field: string urn = 1;
21
30
  */
22
- urn = "";
31
+ urn: string;
23
32
 
24
33
  /**
25
34
  * The name of the asset.
@@ -27,7 +36,7 @@ export class Asset extends Message<Asset> {
27
36
  *
28
37
  * @generated from field: string name = 2;
29
38
  */
30
- name = "";
39
+ name: string;
31
40
 
32
41
  /**
33
42
  * The source of the asset.
@@ -35,7 +44,7 @@ export class Asset extends Message<Asset> {
35
44
  *
36
45
  * @generated from field: string service = 3;
37
46
  */
38
- service = "";
47
+ service: string;
39
48
 
40
49
  /**
41
50
  * The type of the asset.
@@ -43,7 +52,7 @@ export class Asset extends Message<Asset> {
43
52
  *
44
53
  * @generated from field: string type = 4;
45
54
  */
46
- type = "";
55
+ type: string;
47
56
 
48
57
  /**
49
58
  * The REST URL for accessing the resource. URL returns the resource itself.
@@ -51,7 +60,7 @@ export class Asset extends Message<Asset> {
51
60
  *
52
61
  * @generated from field: string url = 5;
53
62
  */
54
- url = "";
63
+ url: string;
55
64
 
56
65
  /**
57
66
  * The description of the resource.
@@ -59,7 +68,7 @@ export class Asset extends Message<Asset> {
59
68
  *
60
69
  * @generated from field: string description = 6;
61
70
  */
62
- description = "";
71
+ description: string;
63
72
 
64
73
  /**
65
74
  * Represents Data in asset, can be of type bucket, dashboard, group ... user
@@ -74,7 +83,7 @@ export class Asset extends Message<Asset> {
74
83
  *
75
84
  * @generated from field: repeated raystack.assets.v1beta2.Owner owners = 31;
76
85
  */
77
- owners: Owner[] = [];
86
+ owners: Owner[];
78
87
 
79
88
  /**
80
89
  * The lineage of the job.
@@ -89,7 +98,7 @@ export class Asset extends Message<Asset> {
89
98
  *
90
99
  * @generated from field: map<string, string> labels = 33;
91
100
  */
92
- labels: { [key: string]: string } = {};
101
+ labels: { [key: string]: string };
93
102
 
94
103
  /**
95
104
  * The timestamp of the generated event.
@@ -114,44 +123,12 @@ export class Asset extends Message<Asset> {
114
123
  * @generated from field: google.protobuf.Timestamp update_time = 102;
115
124
  */
116
125
  updateTime?: Timestamp;
126
+ };
117
127
 
118
- constructor(data?: PartialMessage<Asset>) {
119
- super();
120
- proto3.util.initPartial(data, this);
121
- }
122
-
123
- static readonly runtime: typeof proto3 = proto3;
124
- static readonly typeName = "raystack.assets.v1beta2.Asset";
125
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
126
- { no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
128
- { no: 3, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
- { no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
- { no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
131
- { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
132
- { no: 7, name: "data", kind: "message", T: Any },
133
- { no: 31, name: "owners", kind: "message", T: Owner, repeated: true },
134
- { no: 32, name: "lineage", kind: "message", T: Lineage },
135
- { no: 33, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
136
- { no: 100, name: "event", kind: "message", T: Event },
137
- { no: 101, name: "create_time", kind: "message", T: Timestamp },
138
- { no: 102, name: "update_time", kind: "message", T: Timestamp },
139
- ]);
140
-
141
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Asset {
142
- return new Asset().fromBinary(bytes, options);
143
- }
144
-
145
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Asset {
146
- return new Asset().fromJson(jsonValue, options);
147
- }
148
-
149
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Asset {
150
- return new Asset().fromJsonString(jsonString, options);
151
- }
152
-
153
- static equals(a: Asset | PlainMessage<Asset> | undefined, b: Asset | PlainMessage<Asset> | undefined): boolean {
154
- return proto3.util.equals(Asset, a, b);
155
- }
156
- }
128
+ /**
129
+ * Describes the message raystack.assets.v1beta2.Asset.
130
+ * Use `create(AssetSchema)` to create a new message.
131
+ */
132
+ export const AssetSchema: GenMessage<Asset> = /*@__PURE__*/
133
+ messageDesc(file_raystack_assets_v1beta2_asset, 0);
157
134