@scalekit-sdk/node 1.0.13 → 2.0.0

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.
@@ -0,0 +1,1440 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/users/users.proto (package scalekit.v1.users, 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, Timestamp } from "@bufbuild/protobuf";
8
+ import { OrganizationMembership, Role, UserProfile } from "../commons/commons_pb.js";
9
+
10
+ /**
11
+ * @generated from message scalekit.v1.users.User
12
+ */
13
+ export class User extends Message<User> {
14
+ /**
15
+ * @generated from field: string id = 1;
16
+ */
17
+ id = "";
18
+
19
+ /**
20
+ * @generated from field: string environment_id = 2;
21
+ */
22
+ environmentId = "";
23
+
24
+ /**
25
+ * @generated from field: google.protobuf.Timestamp create_time = 3;
26
+ */
27
+ createTime?: Timestamp;
28
+
29
+ /**
30
+ * @generated from field: google.protobuf.Timestamp update_time = 4;
31
+ */
32
+ updateTime?: Timestamp;
33
+
34
+ /**
35
+ * @generated from field: string email = 5;
36
+ */
37
+ email = "";
38
+
39
+ /**
40
+ * @generated from field: optional string external_id = 6;
41
+ */
42
+ externalId?: string;
43
+
44
+ /**
45
+ * @generated from field: repeated scalekit.v1.commons.OrganizationMembership memberships = 7;
46
+ */
47
+ memberships: OrganizationMembership[] = [];
48
+
49
+ /**
50
+ * @generated from field: scalekit.v1.commons.UserProfile user_profile = 8;
51
+ */
52
+ userProfile?: UserProfile;
53
+
54
+ /**
55
+ * @generated from field: map<string, string> metadata = 9;
56
+ */
57
+ metadata: { [key: string]: string } = {};
58
+
59
+ /**
60
+ * @generated from field: google.protobuf.Timestamp last_login = 10;
61
+ */
62
+ lastLogin?: Timestamp;
63
+
64
+ constructor(data?: PartialMessage<User>) {
65
+ super();
66
+ proto3.util.initPartial(data, this);
67
+ }
68
+
69
+ static readonly runtime: typeof proto3 = proto3;
70
+ static readonly typeName = "scalekit.v1.users.User";
71
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
72
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
73
+ { no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 3, name: "create_time", kind: "message", T: Timestamp },
75
+ { no: 4, name: "update_time", kind: "message", T: Timestamp },
76
+ { no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
78
+ { no: 7, name: "memberships", kind: "message", T: OrganizationMembership, repeated: true },
79
+ { no: 8, name: "user_profile", kind: "message", T: UserProfile },
80
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
81
+ { no: 10, name: "last_login", kind: "message", T: Timestamp },
82
+ ]);
83
+
84
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
85
+ return new User().fromBinary(bytes, options);
86
+ }
87
+
88
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
89
+ return new User().fromJson(jsonValue, options);
90
+ }
91
+
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
93
+ return new User().fromJsonString(jsonString, options);
94
+ }
95
+
96
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
97
+ return proto3.util.equals(User, a, b);
98
+ }
99
+ }
100
+
101
+ /**
102
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipRequest
103
+ */
104
+ export class CreateUserAndMembershipRequest extends Message<CreateUserAndMembershipRequest> {
105
+ /**
106
+ * @generated from field: string organization_id = 1;
107
+ */
108
+ organizationId = "";
109
+
110
+ /**
111
+ * @generated from field: scalekit.v1.users.CreateUser user = 2;
112
+ */
113
+ user?: CreateUser;
114
+
115
+ /**
116
+ * @generated from field: bool send_activation_email = 3;
117
+ */
118
+ sendActivationEmail = false;
119
+
120
+ constructor(data?: PartialMessage<CreateUserAndMembershipRequest>) {
121
+ super();
122
+ proto3.util.initPartial(data, this);
123
+ }
124
+
125
+ static readonly runtime: typeof proto3 = proto3;
126
+ static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipRequest";
127
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
128
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 2, name: "user", kind: "message", T: CreateUser },
130
+ { no: 3, name: "send_activation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
131
+ ]);
132
+
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipRequest {
134
+ return new CreateUserAndMembershipRequest().fromBinary(bytes, options);
135
+ }
136
+
137
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest {
138
+ return new CreateUserAndMembershipRequest().fromJson(jsonValue, options);
139
+ }
140
+
141
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest {
142
+ return new CreateUserAndMembershipRequest().fromJsonString(jsonString, options);
143
+ }
144
+
145
+ static equals(a: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined, b: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined): boolean {
146
+ return proto3.util.equals(CreateUserAndMembershipRequest, a, b);
147
+ }
148
+ }
149
+
150
+ /**
151
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipResponse
152
+ */
153
+ export class CreateUserAndMembershipResponse extends Message<CreateUserAndMembershipResponse> {
154
+ /**
155
+ * @generated from field: scalekit.v1.users.User user = 1;
156
+ */
157
+ user?: User;
158
+
159
+ constructor(data?: PartialMessage<CreateUserAndMembershipResponse>) {
160
+ super();
161
+ proto3.util.initPartial(data, this);
162
+ }
163
+
164
+ static readonly runtime: typeof proto3 = proto3;
165
+ static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipResponse";
166
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
167
+ { no: 1, name: "user", kind: "message", T: User },
168
+ ]);
169
+
170
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipResponse {
171
+ return new CreateUserAndMembershipResponse().fromBinary(bytes, options);
172
+ }
173
+
174
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse {
175
+ return new CreateUserAndMembershipResponse().fromJson(jsonValue, options);
176
+ }
177
+
178
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse {
179
+ return new CreateUserAndMembershipResponse().fromJsonString(jsonString, options);
180
+ }
181
+
182
+ static equals(a: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined, b: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined): boolean {
183
+ return proto3.util.equals(CreateUserAndMembershipResponse, a, b);
184
+ }
185
+ }
186
+
187
+ /**
188
+ * @generated from message scalekit.v1.users.UpdateUser
189
+ */
190
+ export class UpdateUser extends Message<UpdateUser> {
191
+ /**
192
+ * @generated from field: optional string external_id = 6;
193
+ */
194
+ externalId?: string;
195
+
196
+ /**
197
+ * @generated from field: scalekit.v1.users.UpdateUserProfile user_profile = 8;
198
+ */
199
+ userProfile?: UpdateUserProfile;
200
+
201
+ /**
202
+ * @generated from field: map<string, string> metadata = 9;
203
+ */
204
+ metadata: { [key: string]: string } = {};
205
+
206
+ constructor(data?: PartialMessage<UpdateUser>) {
207
+ super();
208
+ proto3.util.initPartial(data, this);
209
+ }
210
+
211
+ static readonly runtime: typeof proto3 = proto3;
212
+ static readonly typeName = "scalekit.v1.users.UpdateUser";
213
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
214
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
215
+ { no: 8, name: "user_profile", kind: "message", T: UpdateUserProfile },
216
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
217
+ ]);
218
+
219
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUser {
220
+ return new UpdateUser().fromBinary(bytes, options);
221
+ }
222
+
223
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUser {
224
+ return new UpdateUser().fromJson(jsonValue, options);
225
+ }
226
+
227
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUser {
228
+ return new UpdateUser().fromJsonString(jsonString, options);
229
+ }
230
+
231
+ static equals(a: UpdateUser | PlainMessage<UpdateUser> | undefined, b: UpdateUser | PlainMessage<UpdateUser> | undefined): boolean {
232
+ return proto3.util.equals(UpdateUser, a, b);
233
+ }
234
+ }
235
+
236
+ /**
237
+ * @generated from message scalekit.v1.users.UpdateUserRequest
238
+ */
239
+ export class UpdateUserRequest extends Message<UpdateUserRequest> {
240
+ /**
241
+ * @generated from oneof scalekit.v1.users.UpdateUserRequest.identities
242
+ */
243
+ identities: {
244
+ /**
245
+ * @generated from field: string id = 1;
246
+ */
247
+ value: string;
248
+ case: "id";
249
+ } | {
250
+ /**
251
+ * @generated from field: string external_id = 2;
252
+ */
253
+ value: string;
254
+ case: "externalId";
255
+ } | { case: undefined; value?: undefined } = { case: undefined };
256
+
257
+ /**
258
+ * @generated from field: scalekit.v1.users.UpdateUser user = 3;
259
+ */
260
+ user?: UpdateUser;
261
+
262
+ constructor(data?: PartialMessage<UpdateUserRequest>) {
263
+ super();
264
+ proto3.util.initPartial(data, this);
265
+ }
266
+
267
+ static readonly runtime: typeof proto3 = proto3;
268
+ static readonly typeName = "scalekit.v1.users.UpdateUserRequest";
269
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
270
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
271
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
272
+ { no: 3, name: "user", kind: "message", T: UpdateUser },
273
+ ]);
274
+
275
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest {
276
+ return new UpdateUserRequest().fromBinary(bytes, options);
277
+ }
278
+
279
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest {
280
+ return new UpdateUserRequest().fromJson(jsonValue, options);
281
+ }
282
+
283
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest {
284
+ return new UpdateUserRequest().fromJsonString(jsonString, options);
285
+ }
286
+
287
+ static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean {
288
+ return proto3.util.equals(UpdateUserRequest, a, b);
289
+ }
290
+ }
291
+
292
+ /**
293
+ * @generated from message scalekit.v1.users.UpdateUserResponse
294
+ */
295
+ export class UpdateUserResponse extends Message<UpdateUserResponse> {
296
+ /**
297
+ * @generated from field: scalekit.v1.users.User user = 1;
298
+ */
299
+ user?: User;
300
+
301
+ constructor(data?: PartialMessage<UpdateUserResponse>) {
302
+ super();
303
+ proto3.util.initPartial(data, this);
304
+ }
305
+
306
+ static readonly runtime: typeof proto3 = proto3;
307
+ static readonly typeName = "scalekit.v1.users.UpdateUserResponse";
308
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
309
+ { no: 1, name: "user", kind: "message", T: User },
310
+ ]);
311
+
312
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse {
313
+ return new UpdateUserResponse().fromBinary(bytes, options);
314
+ }
315
+
316
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse {
317
+ return new UpdateUserResponse().fromJson(jsonValue, options);
318
+ }
319
+
320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse {
321
+ return new UpdateUserResponse().fromJsonString(jsonString, options);
322
+ }
323
+
324
+ static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean {
325
+ return proto3.util.equals(UpdateUserResponse, a, b);
326
+ }
327
+ }
328
+
329
+ /**
330
+ * @generated from message scalekit.v1.users.GetUserRequest
331
+ */
332
+ export class GetUserRequest extends Message<GetUserRequest> {
333
+ /**
334
+ * @generated from oneof scalekit.v1.users.GetUserRequest.identities
335
+ */
336
+ identities: {
337
+ /**
338
+ * @generated from field: string id = 1;
339
+ */
340
+ value: string;
341
+ case: "id";
342
+ } | {
343
+ /**
344
+ * @generated from field: string external_id = 2;
345
+ */
346
+ value: string;
347
+ case: "externalId";
348
+ } | { case: undefined; value?: undefined } = { case: undefined };
349
+
350
+ constructor(data?: PartialMessage<GetUserRequest>) {
351
+ super();
352
+ proto3.util.initPartial(data, this);
353
+ }
354
+
355
+ static readonly runtime: typeof proto3 = proto3;
356
+ static readonly typeName = "scalekit.v1.users.GetUserRequest";
357
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
358
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
359
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
360
+ ]);
361
+
362
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest {
363
+ return new GetUserRequest().fromBinary(bytes, options);
364
+ }
365
+
366
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest {
367
+ return new GetUserRequest().fromJson(jsonValue, options);
368
+ }
369
+
370
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest {
371
+ return new GetUserRequest().fromJsonString(jsonString, options);
372
+ }
373
+
374
+ static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean {
375
+ return proto3.util.equals(GetUserRequest, a, b);
376
+ }
377
+ }
378
+
379
+ /**
380
+ * @generated from message scalekit.v1.users.GetUserResponse
381
+ */
382
+ export class GetUserResponse extends Message<GetUserResponse> {
383
+ /**
384
+ * @generated from field: scalekit.v1.users.User user = 1;
385
+ */
386
+ user?: User;
387
+
388
+ constructor(data?: PartialMessage<GetUserResponse>) {
389
+ super();
390
+ proto3.util.initPartial(data, this);
391
+ }
392
+
393
+ static readonly runtime: typeof proto3 = proto3;
394
+ static readonly typeName = "scalekit.v1.users.GetUserResponse";
395
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
396
+ { no: 1, name: "user", kind: "message", T: User },
397
+ ]);
398
+
399
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse {
400
+ return new GetUserResponse().fromBinary(bytes, options);
401
+ }
402
+
403
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse {
404
+ return new GetUserResponse().fromJson(jsonValue, options);
405
+ }
406
+
407
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse {
408
+ return new GetUserResponse().fromJsonString(jsonString, options);
409
+ }
410
+
411
+ static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean {
412
+ return proto3.util.equals(GetUserResponse, a, b);
413
+ }
414
+ }
415
+
416
+ /**
417
+ * @generated from message scalekit.v1.users.ListOrganizationUsersRequest
418
+ */
419
+ export class ListOrganizationUsersRequest extends Message<ListOrganizationUsersRequest> {
420
+ /**
421
+ * @generated from field: string organization_id = 1;
422
+ */
423
+ organizationId = "";
424
+
425
+ /**
426
+ * @generated from field: uint32 page_size = 2;
427
+ */
428
+ pageSize = 0;
429
+
430
+ /**
431
+ * @generated from field: string page_token = 3;
432
+ */
433
+ pageToken = "";
434
+
435
+ constructor(data?: PartialMessage<ListOrganizationUsersRequest>) {
436
+ super();
437
+ proto3.util.initPartial(data, this);
438
+ }
439
+
440
+ static readonly runtime: typeof proto3 = proto3;
441
+ static readonly typeName = "scalekit.v1.users.ListOrganizationUsersRequest";
442
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
443
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
444
+ { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
445
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
446
+ ]);
447
+
448
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersRequest {
449
+ return new ListOrganizationUsersRequest().fromBinary(bytes, options);
450
+ }
451
+
452
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
453
+ return new ListOrganizationUsersRequest().fromJson(jsonValue, options);
454
+ }
455
+
456
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
457
+ return new ListOrganizationUsersRequest().fromJsonString(jsonString, options);
458
+ }
459
+
460
+ static equals(a: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined, b: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined): boolean {
461
+ return proto3.util.equals(ListOrganizationUsersRequest, a, b);
462
+ }
463
+ }
464
+
465
+ /**
466
+ * @generated from message scalekit.v1.users.ListOrganizationUsersResponse
467
+ */
468
+ export class ListOrganizationUsersResponse extends Message<ListOrganizationUsersResponse> {
469
+ /**
470
+ * @generated from field: string next_page_token = 1;
471
+ */
472
+ nextPageToken = "";
473
+
474
+ /**
475
+ * @generated from field: uint32 total_size = 2;
476
+ */
477
+ totalSize = 0;
478
+
479
+ /**
480
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
481
+ */
482
+ users: User[] = [];
483
+
484
+ /**
485
+ * @generated from field: string prev_page_token = 4;
486
+ */
487
+ prevPageToken = "";
488
+
489
+ constructor(data?: PartialMessage<ListOrganizationUsersResponse>) {
490
+ super();
491
+ proto3.util.initPartial(data, this);
492
+ }
493
+
494
+ static readonly runtime: typeof proto3 = proto3;
495
+ static readonly typeName = "scalekit.v1.users.ListOrganizationUsersResponse";
496
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
497
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
498
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
499
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
500
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
501
+ ]);
502
+
503
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersResponse {
504
+ return new ListOrganizationUsersResponse().fromBinary(bytes, options);
505
+ }
506
+
507
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
508
+ return new ListOrganizationUsersResponse().fromJson(jsonValue, options);
509
+ }
510
+
511
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
512
+ return new ListOrganizationUsersResponse().fromJsonString(jsonString, options);
513
+ }
514
+
515
+ static equals(a: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined, b: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined): boolean {
516
+ return proto3.util.equals(ListOrganizationUsersResponse, a, b);
517
+ }
518
+ }
519
+
520
+ /**
521
+ * @generated from message scalekit.v1.users.DeleteMembershipRequest
522
+ */
523
+ export class DeleteMembershipRequest extends Message<DeleteMembershipRequest> {
524
+ /**
525
+ * @generated from field: string organization_id = 1;
526
+ */
527
+ organizationId = "";
528
+
529
+ /**
530
+ * @generated from oneof scalekit.v1.users.DeleteMembershipRequest.identities
531
+ */
532
+ identities: {
533
+ /**
534
+ * @generated from field: string id = 2;
535
+ */
536
+ value: string;
537
+ case: "id";
538
+ } | {
539
+ /**
540
+ * @generated from field: string external_id = 3;
541
+ */
542
+ value: string;
543
+ case: "externalId";
544
+ } | { case: undefined; value?: undefined } = { case: undefined };
545
+
546
+ /**
547
+ * @generated from field: optional bool cascade = 5;
548
+ */
549
+ cascade?: boolean;
550
+
551
+ constructor(data?: PartialMessage<DeleteMembershipRequest>) {
552
+ super();
553
+ proto3.util.initPartial(data, this);
554
+ }
555
+
556
+ static readonly runtime: typeof proto3 = proto3;
557
+ static readonly typeName = "scalekit.v1.users.DeleteMembershipRequest";
558
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
559
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
560
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
561
+ { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
562
+ { no: 5, name: "cascade", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
563
+ ]);
564
+
565
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMembershipRequest {
566
+ return new DeleteMembershipRequest().fromBinary(bytes, options);
567
+ }
568
+
569
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMembershipRequest {
570
+ return new DeleteMembershipRequest().fromJson(jsonValue, options);
571
+ }
572
+
573
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMembershipRequest {
574
+ return new DeleteMembershipRequest().fromJsonString(jsonString, options);
575
+ }
576
+
577
+ static equals(a: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined, b: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined): boolean {
578
+ return proto3.util.equals(DeleteMembershipRequest, a, b);
579
+ }
580
+ }
581
+
582
+ /**
583
+ * @generated from message scalekit.v1.users.CreateMembershipRequest
584
+ */
585
+ export class CreateMembershipRequest extends Message<CreateMembershipRequest> {
586
+ /**
587
+ * @generated from field: string organization_id = 1;
588
+ */
589
+ organizationId = "";
590
+
591
+ /**
592
+ * @generated from field: scalekit.v1.users.CreateMembership membership = 2;
593
+ */
594
+ membership?: CreateMembership;
595
+
596
+ /**
597
+ * @generated from oneof scalekit.v1.users.CreateMembershipRequest.identities
598
+ */
599
+ identities: {
600
+ /**
601
+ * @generated from field: string id = 3;
602
+ */
603
+ value: string;
604
+ case: "id";
605
+ } | {
606
+ /**
607
+ * @generated from field: string external_id = 4;
608
+ */
609
+ value: string;
610
+ case: "externalId";
611
+ } | { case: undefined; value?: undefined } = { case: undefined };
612
+
613
+ /**
614
+ * @generated from field: bool send_activation_email = 5;
615
+ */
616
+ sendActivationEmail = false;
617
+
618
+ constructor(data?: PartialMessage<CreateMembershipRequest>) {
619
+ super();
620
+ proto3.util.initPartial(data, this);
621
+ }
622
+
623
+ static readonly runtime: typeof proto3 = proto3;
624
+ static readonly typeName = "scalekit.v1.users.CreateMembershipRequest";
625
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
626
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
627
+ { no: 2, name: "membership", kind: "message", T: CreateMembership },
628
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
629
+ { no: 4, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
630
+ { no: 5, name: "send_activation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
631
+ ]);
632
+
633
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipRequest {
634
+ return new CreateMembershipRequest().fromBinary(bytes, options);
635
+ }
636
+
637
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipRequest {
638
+ return new CreateMembershipRequest().fromJson(jsonValue, options);
639
+ }
640
+
641
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipRequest {
642
+ return new CreateMembershipRequest().fromJsonString(jsonString, options);
643
+ }
644
+
645
+ static equals(a: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined, b: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined): boolean {
646
+ return proto3.util.equals(CreateMembershipRequest, a, b);
647
+ }
648
+ }
649
+
650
+ /**
651
+ * @generated from message scalekit.v1.users.CreateMembershipResponse
652
+ */
653
+ export class CreateMembershipResponse extends Message<CreateMembershipResponse> {
654
+ /**
655
+ * @generated from field: scalekit.v1.users.User user = 1;
656
+ */
657
+ user?: User;
658
+
659
+ constructor(data?: PartialMessage<CreateMembershipResponse>) {
660
+ super();
661
+ proto3.util.initPartial(data, this);
662
+ }
663
+
664
+ static readonly runtime: typeof proto3 = proto3;
665
+ static readonly typeName = "scalekit.v1.users.CreateMembershipResponse";
666
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
667
+ { no: 1, name: "user", kind: "message", T: User },
668
+ ]);
669
+
670
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipResponse {
671
+ return new CreateMembershipResponse().fromBinary(bytes, options);
672
+ }
673
+
674
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipResponse {
675
+ return new CreateMembershipResponse().fromJson(jsonValue, options);
676
+ }
677
+
678
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipResponse {
679
+ return new CreateMembershipResponse().fromJsonString(jsonString, options);
680
+ }
681
+
682
+ static equals(a: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined, b: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined): boolean {
683
+ return proto3.util.equals(CreateMembershipResponse, a, b);
684
+ }
685
+ }
686
+
687
+ /**
688
+ * @generated from message scalekit.v1.users.ListUsersRequest
689
+ */
690
+ export class ListUsersRequest extends Message<ListUsersRequest> {
691
+ /**
692
+ * @generated from field: uint32 page_size = 1;
693
+ */
694
+ pageSize = 0;
695
+
696
+ /**
697
+ * @generated from field: string page_token = 2;
698
+ */
699
+ pageToken = "";
700
+
701
+ constructor(data?: PartialMessage<ListUsersRequest>) {
702
+ super();
703
+ proto3.util.initPartial(data, this);
704
+ }
705
+
706
+ static readonly runtime: typeof proto3 = proto3;
707
+ static readonly typeName = "scalekit.v1.users.ListUsersRequest";
708
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
709
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
710
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
711
+ ]);
712
+
713
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest {
714
+ return new ListUsersRequest().fromBinary(bytes, options);
715
+ }
716
+
717
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest {
718
+ return new ListUsersRequest().fromJson(jsonValue, options);
719
+ }
720
+
721
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest {
722
+ return new ListUsersRequest().fromJsonString(jsonString, options);
723
+ }
724
+
725
+ static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean {
726
+ return proto3.util.equals(ListUsersRequest, a, b);
727
+ }
728
+ }
729
+
730
+ /**
731
+ * @generated from message scalekit.v1.users.ListUsersResponse
732
+ */
733
+ export class ListUsersResponse extends Message<ListUsersResponse> {
734
+ /**
735
+ * @generated from field: repeated scalekit.v1.users.User users = 1;
736
+ */
737
+ users: User[] = [];
738
+
739
+ /**
740
+ * @generated from field: string next_page_token = 2;
741
+ */
742
+ nextPageToken = "";
743
+
744
+ /**
745
+ * @generated from field: uint32 total_size = 3;
746
+ */
747
+ totalSize = 0;
748
+
749
+ /**
750
+ * @generated from field: string prev_page_token = 4;
751
+ */
752
+ prevPageToken = "";
753
+
754
+ constructor(data?: PartialMessage<ListUsersResponse>) {
755
+ super();
756
+ proto3.util.initPartial(data, this);
757
+ }
758
+
759
+ static readonly runtime: typeof proto3 = proto3;
760
+ static readonly typeName = "scalekit.v1.users.ListUsersResponse";
761
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
762
+ { no: 1, name: "users", kind: "message", T: User, repeated: true },
763
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
764
+ { no: 3, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
765
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
766
+ ]);
767
+
768
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse {
769
+ return new ListUsersResponse().fromBinary(bytes, options);
770
+ }
771
+
772
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse {
773
+ return new ListUsersResponse().fromJson(jsonValue, options);
774
+ }
775
+
776
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse {
777
+ return new ListUsersResponse().fromJsonString(jsonString, options);
778
+ }
779
+
780
+ static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean {
781
+ return proto3.util.equals(ListUsersResponse, a, b);
782
+ }
783
+ }
784
+
785
+ /**
786
+ * @generated from message scalekit.v1.users.SearchUsersRequest
787
+ */
788
+ export class SearchUsersRequest extends Message<SearchUsersRequest> {
789
+ /**
790
+ * @generated from field: string query = 1;
791
+ */
792
+ query = "";
793
+
794
+ /**
795
+ * @generated from field: uint32 page_size = 2;
796
+ */
797
+ pageSize = 0;
798
+
799
+ /**
800
+ * @generated from field: string page_token = 3;
801
+ */
802
+ pageToken = "";
803
+
804
+ constructor(data?: PartialMessage<SearchUsersRequest>) {
805
+ super();
806
+ proto3.util.initPartial(data, this);
807
+ }
808
+
809
+ static readonly runtime: typeof proto3 = proto3;
810
+ static readonly typeName = "scalekit.v1.users.SearchUsersRequest";
811
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
812
+ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
813
+ { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
814
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
815
+ ]);
816
+
817
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersRequest {
818
+ return new SearchUsersRequest().fromBinary(bytes, options);
819
+ }
820
+
821
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersRequest {
822
+ return new SearchUsersRequest().fromJson(jsonValue, options);
823
+ }
824
+
825
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersRequest {
826
+ return new SearchUsersRequest().fromJsonString(jsonString, options);
827
+ }
828
+
829
+ static equals(a: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined, b: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined): boolean {
830
+ return proto3.util.equals(SearchUsersRequest, a, b);
831
+ }
832
+ }
833
+
834
+ /**
835
+ * @generated from message scalekit.v1.users.SearchUsersResponse
836
+ */
837
+ export class SearchUsersResponse extends Message<SearchUsersResponse> {
838
+ /**
839
+ * @generated from field: string next_page_token = 1;
840
+ */
841
+ nextPageToken = "";
842
+
843
+ /**
844
+ * @generated from field: uint32 total_size = 2;
845
+ */
846
+ totalSize = 0;
847
+
848
+ /**
849
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
850
+ */
851
+ users: User[] = [];
852
+
853
+ /**
854
+ * @generated from field: string prev_page_token = 4;
855
+ */
856
+ prevPageToken = "";
857
+
858
+ constructor(data?: PartialMessage<SearchUsersResponse>) {
859
+ super();
860
+ proto3.util.initPartial(data, this);
861
+ }
862
+
863
+ static readonly runtime: typeof proto3 = proto3;
864
+ static readonly typeName = "scalekit.v1.users.SearchUsersResponse";
865
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
866
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
867
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
868
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
869
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
870
+ ]);
871
+
872
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersResponse {
873
+ return new SearchUsersResponse().fromBinary(bytes, options);
874
+ }
875
+
876
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersResponse {
877
+ return new SearchUsersResponse().fromJson(jsonValue, options);
878
+ }
879
+
880
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersResponse {
881
+ return new SearchUsersResponse().fromJsonString(jsonString, options);
882
+ }
883
+
884
+ static equals(a: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined, b: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined): boolean {
885
+ return proto3.util.equals(SearchUsersResponse, a, b);
886
+ }
887
+ }
888
+
889
+ /**
890
+ * @generated from message scalekit.v1.users.DeleteUserRequest
891
+ */
892
+ export class DeleteUserRequest extends Message<DeleteUserRequest> {
893
+ /**
894
+ * @generated from oneof scalekit.v1.users.DeleteUserRequest.identities
895
+ */
896
+ identities: {
897
+ /**
898
+ * @generated from field: string id = 1;
899
+ */
900
+ value: string;
901
+ case: "id";
902
+ } | {
903
+ /**
904
+ * @generated from field: string external_id = 2;
905
+ */
906
+ value: string;
907
+ case: "externalId";
908
+ } | { case: undefined; value?: undefined } = { case: undefined };
909
+
910
+ constructor(data?: PartialMessage<DeleteUserRequest>) {
911
+ super();
912
+ proto3.util.initPartial(data, this);
913
+ }
914
+
915
+ static readonly runtime: typeof proto3 = proto3;
916
+ static readonly typeName = "scalekit.v1.users.DeleteUserRequest";
917
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
918
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
919
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
920
+ ]);
921
+
922
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest {
923
+ return new DeleteUserRequest().fromBinary(bytes, options);
924
+ }
925
+
926
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest {
927
+ return new DeleteUserRequest().fromJson(jsonValue, options);
928
+ }
929
+
930
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest {
931
+ return new DeleteUserRequest().fromJsonString(jsonString, options);
932
+ }
933
+
934
+ static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean {
935
+ return proto3.util.equals(DeleteUserRequest, a, b);
936
+ }
937
+ }
938
+
939
+ /**
940
+ * @generated from message scalekit.v1.users.UpdateMembershipRequest
941
+ */
942
+ export class UpdateMembershipRequest extends Message<UpdateMembershipRequest> {
943
+ /**
944
+ * @generated from field: string organization_id = 1;
945
+ */
946
+ organizationId = "";
947
+
948
+ /**
949
+ * @generated from oneof scalekit.v1.users.UpdateMembershipRequest.identities
950
+ */
951
+ identities: {
952
+ /**
953
+ * @generated from field: string id = 2;
954
+ */
955
+ value: string;
956
+ case: "id";
957
+ } | {
958
+ /**
959
+ * @generated from field: string external_id = 3;
960
+ */
961
+ value: string;
962
+ case: "externalId";
963
+ } | { case: undefined; value?: undefined } = { case: undefined };
964
+
965
+ /**
966
+ * @generated from field: scalekit.v1.users.UpdateMembership membership = 5;
967
+ */
968
+ membership?: UpdateMembership;
969
+
970
+ constructor(data?: PartialMessage<UpdateMembershipRequest>) {
971
+ super();
972
+ proto3.util.initPartial(data, this);
973
+ }
974
+
975
+ static readonly runtime: typeof proto3 = proto3;
976
+ static readonly typeName = "scalekit.v1.users.UpdateMembershipRequest";
977
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
978
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
979
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
980
+ { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
981
+ { no: 5, name: "membership", kind: "message", T: UpdateMembership },
982
+ ]);
983
+
984
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipRequest {
985
+ return new UpdateMembershipRequest().fromBinary(bytes, options);
986
+ }
987
+
988
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipRequest {
989
+ return new UpdateMembershipRequest().fromJson(jsonValue, options);
990
+ }
991
+
992
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipRequest {
993
+ return new UpdateMembershipRequest().fromJsonString(jsonString, options);
994
+ }
995
+
996
+ static equals(a: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined, b: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined): boolean {
997
+ return proto3.util.equals(UpdateMembershipRequest, a, b);
998
+ }
999
+ }
1000
+
1001
+ /**
1002
+ * @generated from message scalekit.v1.users.UpdateMembership
1003
+ */
1004
+ export class UpdateMembership extends Message<UpdateMembership> {
1005
+ /**
1006
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
1007
+ */
1008
+ roles: Role[] = [];
1009
+
1010
+ /**
1011
+ * @generated from field: map<string, string> metadata = 7;
1012
+ */
1013
+ metadata: { [key: string]: string } = {};
1014
+
1015
+ constructor(data?: PartialMessage<UpdateMembership>) {
1016
+ super();
1017
+ proto3.util.initPartial(data, this);
1018
+ }
1019
+
1020
+ static readonly runtime: typeof proto3 = proto3;
1021
+ static readonly typeName = "scalekit.v1.users.UpdateMembership";
1022
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1023
+ { no: 4, name: "roles", kind: "message", T: Role, repeated: true },
1024
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1025
+ ]);
1026
+
1027
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembership {
1028
+ return new UpdateMembership().fromBinary(bytes, options);
1029
+ }
1030
+
1031
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembership {
1032
+ return new UpdateMembership().fromJson(jsonValue, options);
1033
+ }
1034
+
1035
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembership {
1036
+ return new UpdateMembership().fromJsonString(jsonString, options);
1037
+ }
1038
+
1039
+ static equals(a: UpdateMembership | PlainMessage<UpdateMembership> | undefined, b: UpdateMembership | PlainMessage<UpdateMembership> | undefined): boolean {
1040
+ return proto3.util.equals(UpdateMembership, a, b);
1041
+ }
1042
+ }
1043
+
1044
+ /**
1045
+ * @generated from message scalekit.v1.users.CreateMembership
1046
+ */
1047
+ export class CreateMembership extends Message<CreateMembership> {
1048
+ /**
1049
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
1050
+ */
1051
+ roles: Role[] = [];
1052
+
1053
+ /**
1054
+ * @generated from field: map<string, string> metadata = 7;
1055
+ */
1056
+ metadata: { [key: string]: string } = {};
1057
+
1058
+ constructor(data?: PartialMessage<CreateMembership>) {
1059
+ super();
1060
+ proto3.util.initPartial(data, this);
1061
+ }
1062
+
1063
+ static readonly runtime: typeof proto3 = proto3;
1064
+ static readonly typeName = "scalekit.v1.users.CreateMembership";
1065
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1066
+ { no: 4, name: "roles", kind: "message", T: Role, repeated: true },
1067
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1068
+ ]);
1069
+
1070
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembership {
1071
+ return new CreateMembership().fromBinary(bytes, options);
1072
+ }
1073
+
1074
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembership {
1075
+ return new CreateMembership().fromJson(jsonValue, options);
1076
+ }
1077
+
1078
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembership {
1079
+ return new CreateMembership().fromJsonString(jsonString, options);
1080
+ }
1081
+
1082
+ static equals(a: CreateMembership | PlainMessage<CreateMembership> | undefined, b: CreateMembership | PlainMessage<CreateMembership> | undefined): boolean {
1083
+ return proto3.util.equals(CreateMembership, a, b);
1084
+ }
1085
+ }
1086
+
1087
+ /**
1088
+ * @generated from message scalekit.v1.users.UpdateMembershipResponse
1089
+ */
1090
+ export class UpdateMembershipResponse extends Message<UpdateMembershipResponse> {
1091
+ /**
1092
+ * @generated from field: scalekit.v1.users.User user = 1;
1093
+ */
1094
+ user?: User;
1095
+
1096
+ constructor(data?: PartialMessage<UpdateMembershipResponse>) {
1097
+ super();
1098
+ proto3.util.initPartial(data, this);
1099
+ }
1100
+
1101
+ static readonly runtime: typeof proto3 = proto3;
1102
+ static readonly typeName = "scalekit.v1.users.UpdateMembershipResponse";
1103
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1104
+ { no: 1, name: "user", kind: "message", T: User },
1105
+ ]);
1106
+
1107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipResponse {
1108
+ return new UpdateMembershipResponse().fromBinary(bytes, options);
1109
+ }
1110
+
1111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipResponse {
1112
+ return new UpdateMembershipResponse().fromJson(jsonValue, options);
1113
+ }
1114
+
1115
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipResponse {
1116
+ return new UpdateMembershipResponse().fromJsonString(jsonString, options);
1117
+ }
1118
+
1119
+ static equals(a: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined, b: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined): boolean {
1120
+ return proto3.util.equals(UpdateMembershipResponse, a, b);
1121
+ }
1122
+ }
1123
+
1124
+ /**
1125
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersRequest
1126
+ */
1127
+ export class SearchOrganizationUsersRequest extends Message<SearchOrganizationUsersRequest> {
1128
+ /**
1129
+ * @generated from field: string organization_id = 1;
1130
+ */
1131
+ organizationId = "";
1132
+
1133
+ /**
1134
+ * @generated from field: string query = 2;
1135
+ */
1136
+ query = "";
1137
+
1138
+ /**
1139
+ * @generated from field: uint32 page_size = 3;
1140
+ */
1141
+ pageSize = 0;
1142
+
1143
+ /**
1144
+ * @generated from field: string page_token = 4;
1145
+ */
1146
+ pageToken = "";
1147
+
1148
+ constructor(data?: PartialMessage<SearchOrganizationUsersRequest>) {
1149
+ super();
1150
+ proto3.util.initPartial(data, this);
1151
+ }
1152
+
1153
+ static readonly runtime: typeof proto3 = proto3;
1154
+ static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersRequest";
1155
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1156
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1157
+ { no: 2, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1158
+ { no: 3, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1159
+ { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1160
+ ]);
1161
+
1162
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersRequest {
1163
+ return new SearchOrganizationUsersRequest().fromBinary(bytes, options);
1164
+ }
1165
+
1166
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest {
1167
+ return new SearchOrganizationUsersRequest().fromJson(jsonValue, options);
1168
+ }
1169
+
1170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest {
1171
+ return new SearchOrganizationUsersRequest().fromJsonString(jsonString, options);
1172
+ }
1173
+
1174
+ static equals(a: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined, b: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined): boolean {
1175
+ return proto3.util.equals(SearchOrganizationUsersRequest, a, b);
1176
+ }
1177
+ }
1178
+
1179
+ /**
1180
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersResponse
1181
+ */
1182
+ export class SearchOrganizationUsersResponse extends Message<SearchOrganizationUsersResponse> {
1183
+ /**
1184
+ * @generated from field: string next_page_token = 1;
1185
+ */
1186
+ nextPageToken = "";
1187
+
1188
+ /**
1189
+ * @generated from field: uint32 total_size = 2;
1190
+ */
1191
+ totalSize = 0;
1192
+
1193
+ /**
1194
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
1195
+ */
1196
+ users: User[] = [];
1197
+
1198
+ /**
1199
+ * @generated from field: string prev_page_token = 4;
1200
+ */
1201
+ prevPageToken = "";
1202
+
1203
+ constructor(data?: PartialMessage<SearchOrganizationUsersResponse>) {
1204
+ super();
1205
+ proto3.util.initPartial(data, this);
1206
+ }
1207
+
1208
+ static readonly runtime: typeof proto3 = proto3;
1209
+ static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersResponse";
1210
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1211
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1212
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1213
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
1214
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1215
+ ]);
1216
+
1217
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersResponse {
1218
+ return new SearchOrganizationUsersResponse().fromBinary(bytes, options);
1219
+ }
1220
+
1221
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse {
1222
+ return new SearchOrganizationUsersResponse().fromJson(jsonValue, options);
1223
+ }
1224
+
1225
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse {
1226
+ return new SearchOrganizationUsersResponse().fromJsonString(jsonString, options);
1227
+ }
1228
+
1229
+ static equals(a: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined, b: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined): boolean {
1230
+ return proto3.util.equals(SearchOrganizationUsersResponse, a, b);
1231
+ }
1232
+ }
1233
+
1234
+ /**
1235
+ * @generated from message scalekit.v1.users.CreateUser
1236
+ */
1237
+ export class CreateUser extends Message<CreateUser> {
1238
+ /**
1239
+ * @generated from field: string email = 5;
1240
+ */
1241
+ email = "";
1242
+
1243
+ /**
1244
+ * @generated from field: optional string external_id = 6;
1245
+ */
1246
+ externalId?: string;
1247
+
1248
+ /**
1249
+ * @generated from field: scalekit.v1.users.CreateMembership membership = 7;
1250
+ */
1251
+ membership?: CreateMembership;
1252
+
1253
+ /**
1254
+ * @generated from field: scalekit.v1.users.CreateUserProfile user_profile = 8;
1255
+ */
1256
+ userProfile?: CreateUserProfile;
1257
+
1258
+ /**
1259
+ * @generated from field: map<string, string> metadata = 9;
1260
+ */
1261
+ metadata: { [key: string]: string } = {};
1262
+
1263
+ constructor(data?: PartialMessage<CreateUser>) {
1264
+ super();
1265
+ proto3.util.initPartial(data, this);
1266
+ }
1267
+
1268
+ static readonly runtime: typeof proto3 = proto3;
1269
+ static readonly typeName = "scalekit.v1.users.CreateUser";
1270
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1271
+ { no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1272
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1273
+ { no: 7, name: "membership", kind: "message", T: CreateMembership },
1274
+ { no: 8, name: "user_profile", kind: "message", T: CreateUserProfile },
1275
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1276
+ ]);
1277
+
1278
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUser {
1279
+ return new CreateUser().fromBinary(bytes, options);
1280
+ }
1281
+
1282
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUser {
1283
+ return new CreateUser().fromJson(jsonValue, options);
1284
+ }
1285
+
1286
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUser {
1287
+ return new CreateUser().fromJsonString(jsonString, options);
1288
+ }
1289
+
1290
+ static equals(a: CreateUser | PlainMessage<CreateUser> | undefined, b: CreateUser | PlainMessage<CreateUser> | undefined): boolean {
1291
+ return proto3.util.equals(CreateUser, a, b);
1292
+ }
1293
+ }
1294
+
1295
+ /**
1296
+ * @generated from message scalekit.v1.users.CreateUserProfile
1297
+ */
1298
+ export class CreateUserProfile extends Message<CreateUserProfile> {
1299
+ /**
1300
+ * @generated from field: string first_name = 2;
1301
+ */
1302
+ firstName = "";
1303
+
1304
+ /**
1305
+ * @generated from field: string last_name = 3;
1306
+ */
1307
+ lastName = "";
1308
+
1309
+ /**
1310
+ * @generated from field: string name = 4;
1311
+ */
1312
+ name = "";
1313
+
1314
+ /**
1315
+ * @generated from field: string locale = 5;
1316
+ */
1317
+ locale = "";
1318
+
1319
+ /**
1320
+ * @generated from field: string phone_number = 7;
1321
+ */
1322
+ phoneNumber = "";
1323
+
1324
+ /**
1325
+ * @generated from field: map<string, string> metadata = 8;
1326
+ */
1327
+ metadata: { [key: string]: string } = {};
1328
+
1329
+ /**
1330
+ * @generated from field: map<string, string> custom_attributes = 9;
1331
+ */
1332
+ customAttributes: { [key: string]: string } = {};
1333
+
1334
+ constructor(data?: PartialMessage<CreateUserProfile>) {
1335
+ super();
1336
+ proto3.util.initPartial(data, this);
1337
+ }
1338
+
1339
+ static readonly runtime: typeof proto3 = proto3;
1340
+ static readonly typeName = "scalekit.v1.users.CreateUserProfile";
1341
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1342
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1343
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1344
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1345
+ { no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1346
+ { no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1347
+ { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1348
+ { no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1349
+ ]);
1350
+
1351
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserProfile {
1352
+ return new CreateUserProfile().fromBinary(bytes, options);
1353
+ }
1354
+
1355
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserProfile {
1356
+ return new CreateUserProfile().fromJson(jsonValue, options);
1357
+ }
1358
+
1359
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserProfile {
1360
+ return new CreateUserProfile().fromJsonString(jsonString, options);
1361
+ }
1362
+
1363
+ static equals(a: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined, b: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined): boolean {
1364
+ return proto3.util.equals(CreateUserProfile, a, b);
1365
+ }
1366
+ }
1367
+
1368
+ /**
1369
+ * @generated from message scalekit.v1.users.UpdateUserProfile
1370
+ */
1371
+ export class UpdateUserProfile extends Message<UpdateUserProfile> {
1372
+ /**
1373
+ * @generated from field: optional string first_name = 2;
1374
+ */
1375
+ firstName?: string;
1376
+
1377
+ /**
1378
+ * @generated from field: optional string last_name = 3;
1379
+ */
1380
+ lastName?: string;
1381
+
1382
+ /**
1383
+ * @generated from field: optional string name = 4;
1384
+ */
1385
+ name?: string;
1386
+
1387
+ /**
1388
+ * @generated from field: optional string locale = 5;
1389
+ */
1390
+ locale?: string;
1391
+
1392
+ /**
1393
+ * @generated from field: optional string phone_number = 7;
1394
+ */
1395
+ phoneNumber?: string;
1396
+
1397
+ /**
1398
+ * @generated from field: map<string, string> metadata = 8;
1399
+ */
1400
+ metadata: { [key: string]: string } = {};
1401
+
1402
+ /**
1403
+ * @generated from field: map<string, string> custom_attributes = 9;
1404
+ */
1405
+ customAttributes: { [key: string]: string } = {};
1406
+
1407
+ constructor(data?: PartialMessage<UpdateUserProfile>) {
1408
+ super();
1409
+ proto3.util.initPartial(data, this);
1410
+ }
1411
+
1412
+ static readonly runtime: typeof proto3 = proto3;
1413
+ static readonly typeName = "scalekit.v1.users.UpdateUserProfile";
1414
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1415
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1416
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1417
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1418
+ { no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1419
+ { no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1420
+ { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1421
+ { no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
1422
+ ]);
1423
+
1424
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserProfile {
1425
+ return new UpdateUserProfile().fromBinary(bytes, options);
1426
+ }
1427
+
1428
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserProfile {
1429
+ return new UpdateUserProfile().fromJson(jsonValue, options);
1430
+ }
1431
+
1432
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserProfile {
1433
+ return new UpdateUserProfile().fromJsonString(jsonString, options);
1434
+ }
1435
+
1436
+ static equals(a: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined, b: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined): boolean {
1437
+ return proto3.util.equals(UpdateUserProfile, a, b);
1438
+ }
1439
+ }
1440
+