@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,806 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ import { OrganizationMembership, Role, UserProfile } from "../commons/commons_pb.js";
4
+ /**
5
+ * @generated from message scalekit.v1.users.User
6
+ */
7
+ export declare class User extends Message<User> {
8
+ /**
9
+ * @generated from field: string id = 1;
10
+ */
11
+ id: string;
12
+ /**
13
+ * @generated from field: string environment_id = 2;
14
+ */
15
+ environmentId: string;
16
+ /**
17
+ * @generated from field: google.protobuf.Timestamp create_time = 3;
18
+ */
19
+ createTime?: Timestamp;
20
+ /**
21
+ * @generated from field: google.protobuf.Timestamp update_time = 4;
22
+ */
23
+ updateTime?: Timestamp;
24
+ /**
25
+ * @generated from field: string email = 5;
26
+ */
27
+ email: string;
28
+ /**
29
+ * @generated from field: optional string external_id = 6;
30
+ */
31
+ externalId?: string;
32
+ /**
33
+ * @generated from field: repeated scalekit.v1.commons.OrganizationMembership memberships = 7;
34
+ */
35
+ memberships: OrganizationMembership[];
36
+ /**
37
+ * @generated from field: scalekit.v1.commons.UserProfile user_profile = 8;
38
+ */
39
+ userProfile?: UserProfile;
40
+ /**
41
+ * @generated from field: map<string, string> metadata = 9;
42
+ */
43
+ metadata: {
44
+ [key: string]: string;
45
+ };
46
+ /**
47
+ * @generated from field: google.protobuf.Timestamp last_login = 10;
48
+ */
49
+ lastLogin?: Timestamp;
50
+ constructor(data?: PartialMessage<User>);
51
+ static readonly runtime: typeof proto3;
52
+ static readonly typeName = "scalekit.v1.users.User";
53
+ static readonly fields: FieldList;
54
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
55
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
56
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
57
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
58
+ }
59
+ /**
60
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipRequest
61
+ */
62
+ export declare class CreateUserAndMembershipRequest extends Message<CreateUserAndMembershipRequest> {
63
+ /**
64
+ * @generated from field: string organization_id = 1;
65
+ */
66
+ organizationId: string;
67
+ /**
68
+ * @generated from field: scalekit.v1.users.CreateUser user = 2;
69
+ */
70
+ user?: CreateUser;
71
+ /**
72
+ * @generated from field: bool send_activation_email = 3;
73
+ */
74
+ sendActivationEmail: boolean;
75
+ constructor(data?: PartialMessage<CreateUserAndMembershipRequest>);
76
+ static readonly runtime: typeof proto3;
77
+ static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipRequest";
78
+ static readonly fields: FieldList;
79
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipRequest;
80
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest;
81
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest;
82
+ static equals(a: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined, b: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined): boolean;
83
+ }
84
+ /**
85
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipResponse
86
+ */
87
+ export declare class CreateUserAndMembershipResponse extends Message<CreateUserAndMembershipResponse> {
88
+ /**
89
+ * @generated from field: scalekit.v1.users.User user = 1;
90
+ */
91
+ user?: User;
92
+ constructor(data?: PartialMessage<CreateUserAndMembershipResponse>);
93
+ static readonly runtime: typeof proto3;
94
+ static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipResponse";
95
+ static readonly fields: FieldList;
96
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipResponse;
97
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse;
98
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse;
99
+ static equals(a: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined, b: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined): boolean;
100
+ }
101
+ /**
102
+ * @generated from message scalekit.v1.users.UpdateUser
103
+ */
104
+ export declare class UpdateUser extends Message<UpdateUser> {
105
+ /**
106
+ * @generated from field: optional string external_id = 6;
107
+ */
108
+ externalId?: string;
109
+ /**
110
+ * @generated from field: scalekit.v1.users.UpdateUserProfile user_profile = 8;
111
+ */
112
+ userProfile?: UpdateUserProfile;
113
+ /**
114
+ * @generated from field: map<string, string> metadata = 9;
115
+ */
116
+ metadata: {
117
+ [key: string]: string;
118
+ };
119
+ constructor(data?: PartialMessage<UpdateUser>);
120
+ static readonly runtime: typeof proto3;
121
+ static readonly typeName = "scalekit.v1.users.UpdateUser";
122
+ static readonly fields: FieldList;
123
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUser;
124
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUser;
125
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUser;
126
+ static equals(a: UpdateUser | PlainMessage<UpdateUser> | undefined, b: UpdateUser | PlainMessage<UpdateUser> | undefined): boolean;
127
+ }
128
+ /**
129
+ * @generated from message scalekit.v1.users.UpdateUserRequest
130
+ */
131
+ export declare class UpdateUserRequest extends Message<UpdateUserRequest> {
132
+ /**
133
+ * @generated from oneof scalekit.v1.users.UpdateUserRequest.identities
134
+ */
135
+ identities: {
136
+ /**
137
+ * @generated from field: string id = 1;
138
+ */
139
+ value: string;
140
+ case: "id";
141
+ } | {
142
+ /**
143
+ * @generated from field: string external_id = 2;
144
+ */
145
+ value: string;
146
+ case: "externalId";
147
+ } | {
148
+ case: undefined;
149
+ value?: undefined;
150
+ };
151
+ /**
152
+ * @generated from field: scalekit.v1.users.UpdateUser user = 3;
153
+ */
154
+ user?: UpdateUser;
155
+ constructor(data?: PartialMessage<UpdateUserRequest>);
156
+ static readonly runtime: typeof proto3;
157
+ static readonly typeName = "scalekit.v1.users.UpdateUserRequest";
158
+ static readonly fields: FieldList;
159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest;
160
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest;
161
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest;
162
+ static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean;
163
+ }
164
+ /**
165
+ * @generated from message scalekit.v1.users.UpdateUserResponse
166
+ */
167
+ export declare class UpdateUserResponse extends Message<UpdateUserResponse> {
168
+ /**
169
+ * @generated from field: scalekit.v1.users.User user = 1;
170
+ */
171
+ user?: User;
172
+ constructor(data?: PartialMessage<UpdateUserResponse>);
173
+ static readonly runtime: typeof proto3;
174
+ static readonly typeName = "scalekit.v1.users.UpdateUserResponse";
175
+ static readonly fields: FieldList;
176
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse;
177
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse;
178
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse;
179
+ static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean;
180
+ }
181
+ /**
182
+ * @generated from message scalekit.v1.users.GetUserRequest
183
+ */
184
+ export declare class GetUserRequest extends Message<GetUserRequest> {
185
+ /**
186
+ * @generated from oneof scalekit.v1.users.GetUserRequest.identities
187
+ */
188
+ identities: {
189
+ /**
190
+ * @generated from field: string id = 1;
191
+ */
192
+ value: string;
193
+ case: "id";
194
+ } | {
195
+ /**
196
+ * @generated from field: string external_id = 2;
197
+ */
198
+ value: string;
199
+ case: "externalId";
200
+ } | {
201
+ case: undefined;
202
+ value?: undefined;
203
+ };
204
+ constructor(data?: PartialMessage<GetUserRequest>);
205
+ static readonly runtime: typeof proto3;
206
+ static readonly typeName = "scalekit.v1.users.GetUserRequest";
207
+ static readonly fields: FieldList;
208
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest;
209
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest;
210
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest;
211
+ static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean;
212
+ }
213
+ /**
214
+ * @generated from message scalekit.v1.users.GetUserResponse
215
+ */
216
+ export declare class GetUserResponse extends Message<GetUserResponse> {
217
+ /**
218
+ * @generated from field: scalekit.v1.users.User user = 1;
219
+ */
220
+ user?: User;
221
+ constructor(data?: PartialMessage<GetUserResponse>);
222
+ static readonly runtime: typeof proto3;
223
+ static readonly typeName = "scalekit.v1.users.GetUserResponse";
224
+ static readonly fields: FieldList;
225
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse;
226
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse;
227
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse;
228
+ static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean;
229
+ }
230
+ /**
231
+ * @generated from message scalekit.v1.users.ListOrganizationUsersRequest
232
+ */
233
+ export declare class ListOrganizationUsersRequest extends Message<ListOrganizationUsersRequest> {
234
+ /**
235
+ * @generated from field: string organization_id = 1;
236
+ */
237
+ organizationId: string;
238
+ /**
239
+ * @generated from field: uint32 page_size = 2;
240
+ */
241
+ pageSize: number;
242
+ /**
243
+ * @generated from field: string page_token = 3;
244
+ */
245
+ pageToken: string;
246
+ constructor(data?: PartialMessage<ListOrganizationUsersRequest>);
247
+ static readonly runtime: typeof proto3;
248
+ static readonly typeName = "scalekit.v1.users.ListOrganizationUsersRequest";
249
+ static readonly fields: FieldList;
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersRequest;
251
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest;
252
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest;
253
+ static equals(a: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined, b: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined): boolean;
254
+ }
255
+ /**
256
+ * @generated from message scalekit.v1.users.ListOrganizationUsersResponse
257
+ */
258
+ export declare class ListOrganizationUsersResponse extends Message<ListOrganizationUsersResponse> {
259
+ /**
260
+ * @generated from field: string next_page_token = 1;
261
+ */
262
+ nextPageToken: string;
263
+ /**
264
+ * @generated from field: uint32 total_size = 2;
265
+ */
266
+ totalSize: number;
267
+ /**
268
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
269
+ */
270
+ users: User[];
271
+ /**
272
+ * @generated from field: string prev_page_token = 4;
273
+ */
274
+ prevPageToken: string;
275
+ constructor(data?: PartialMessage<ListOrganizationUsersResponse>);
276
+ static readonly runtime: typeof proto3;
277
+ static readonly typeName = "scalekit.v1.users.ListOrganizationUsersResponse";
278
+ static readonly fields: FieldList;
279
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersResponse;
280
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse;
281
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse;
282
+ static equals(a: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined, b: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined): boolean;
283
+ }
284
+ /**
285
+ * @generated from message scalekit.v1.users.DeleteMembershipRequest
286
+ */
287
+ export declare class DeleteMembershipRequest extends Message<DeleteMembershipRequest> {
288
+ /**
289
+ * @generated from field: string organization_id = 1;
290
+ */
291
+ organizationId: string;
292
+ /**
293
+ * @generated from oneof scalekit.v1.users.DeleteMembershipRequest.identities
294
+ */
295
+ identities: {
296
+ /**
297
+ * @generated from field: string id = 2;
298
+ */
299
+ value: string;
300
+ case: "id";
301
+ } | {
302
+ /**
303
+ * @generated from field: string external_id = 3;
304
+ */
305
+ value: string;
306
+ case: "externalId";
307
+ } | {
308
+ case: undefined;
309
+ value?: undefined;
310
+ };
311
+ /**
312
+ * @generated from field: optional bool cascade = 5;
313
+ */
314
+ cascade?: boolean;
315
+ constructor(data?: PartialMessage<DeleteMembershipRequest>);
316
+ static readonly runtime: typeof proto3;
317
+ static readonly typeName = "scalekit.v1.users.DeleteMembershipRequest";
318
+ static readonly fields: FieldList;
319
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMembershipRequest;
320
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMembershipRequest;
321
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMembershipRequest;
322
+ static equals(a: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined, b: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined): boolean;
323
+ }
324
+ /**
325
+ * @generated from message scalekit.v1.users.CreateMembershipRequest
326
+ */
327
+ export declare class CreateMembershipRequest extends Message<CreateMembershipRequest> {
328
+ /**
329
+ * @generated from field: string organization_id = 1;
330
+ */
331
+ organizationId: string;
332
+ /**
333
+ * @generated from field: scalekit.v1.users.CreateMembership membership = 2;
334
+ */
335
+ membership?: CreateMembership;
336
+ /**
337
+ * @generated from oneof scalekit.v1.users.CreateMembershipRequest.identities
338
+ */
339
+ identities: {
340
+ /**
341
+ * @generated from field: string id = 3;
342
+ */
343
+ value: string;
344
+ case: "id";
345
+ } | {
346
+ /**
347
+ * @generated from field: string external_id = 4;
348
+ */
349
+ value: string;
350
+ case: "externalId";
351
+ } | {
352
+ case: undefined;
353
+ value?: undefined;
354
+ };
355
+ /**
356
+ * @generated from field: bool send_activation_email = 5;
357
+ */
358
+ sendActivationEmail: boolean;
359
+ constructor(data?: PartialMessage<CreateMembershipRequest>);
360
+ static readonly runtime: typeof proto3;
361
+ static readonly typeName = "scalekit.v1.users.CreateMembershipRequest";
362
+ static readonly fields: FieldList;
363
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipRequest;
364
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipRequest;
365
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipRequest;
366
+ static equals(a: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined, b: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined): boolean;
367
+ }
368
+ /**
369
+ * @generated from message scalekit.v1.users.CreateMembershipResponse
370
+ */
371
+ export declare class CreateMembershipResponse extends Message<CreateMembershipResponse> {
372
+ /**
373
+ * @generated from field: scalekit.v1.users.User user = 1;
374
+ */
375
+ user?: User;
376
+ constructor(data?: PartialMessage<CreateMembershipResponse>);
377
+ static readonly runtime: typeof proto3;
378
+ static readonly typeName = "scalekit.v1.users.CreateMembershipResponse";
379
+ static readonly fields: FieldList;
380
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipResponse;
381
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipResponse;
382
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipResponse;
383
+ static equals(a: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined, b: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined): boolean;
384
+ }
385
+ /**
386
+ * @generated from message scalekit.v1.users.ListUsersRequest
387
+ */
388
+ export declare class ListUsersRequest extends Message<ListUsersRequest> {
389
+ /**
390
+ * @generated from field: uint32 page_size = 1;
391
+ */
392
+ pageSize: number;
393
+ /**
394
+ * @generated from field: string page_token = 2;
395
+ */
396
+ pageToken: string;
397
+ constructor(data?: PartialMessage<ListUsersRequest>);
398
+ static readonly runtime: typeof proto3;
399
+ static readonly typeName = "scalekit.v1.users.ListUsersRequest";
400
+ static readonly fields: FieldList;
401
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest;
402
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest;
403
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest;
404
+ static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean;
405
+ }
406
+ /**
407
+ * @generated from message scalekit.v1.users.ListUsersResponse
408
+ */
409
+ export declare class ListUsersResponse extends Message<ListUsersResponse> {
410
+ /**
411
+ * @generated from field: repeated scalekit.v1.users.User users = 1;
412
+ */
413
+ users: User[];
414
+ /**
415
+ * @generated from field: string next_page_token = 2;
416
+ */
417
+ nextPageToken: string;
418
+ /**
419
+ * @generated from field: uint32 total_size = 3;
420
+ */
421
+ totalSize: number;
422
+ /**
423
+ * @generated from field: string prev_page_token = 4;
424
+ */
425
+ prevPageToken: string;
426
+ constructor(data?: PartialMessage<ListUsersResponse>);
427
+ static readonly runtime: typeof proto3;
428
+ static readonly typeName = "scalekit.v1.users.ListUsersResponse";
429
+ static readonly fields: FieldList;
430
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse;
431
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse;
432
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse;
433
+ static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean;
434
+ }
435
+ /**
436
+ * @generated from message scalekit.v1.users.SearchUsersRequest
437
+ */
438
+ export declare class SearchUsersRequest extends Message<SearchUsersRequest> {
439
+ /**
440
+ * @generated from field: string query = 1;
441
+ */
442
+ query: string;
443
+ /**
444
+ * @generated from field: uint32 page_size = 2;
445
+ */
446
+ pageSize: number;
447
+ /**
448
+ * @generated from field: string page_token = 3;
449
+ */
450
+ pageToken: string;
451
+ constructor(data?: PartialMessage<SearchUsersRequest>);
452
+ static readonly runtime: typeof proto3;
453
+ static readonly typeName = "scalekit.v1.users.SearchUsersRequest";
454
+ static readonly fields: FieldList;
455
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersRequest;
456
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersRequest;
457
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersRequest;
458
+ static equals(a: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined, b: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined): boolean;
459
+ }
460
+ /**
461
+ * @generated from message scalekit.v1.users.SearchUsersResponse
462
+ */
463
+ export declare class SearchUsersResponse extends Message<SearchUsersResponse> {
464
+ /**
465
+ * @generated from field: string next_page_token = 1;
466
+ */
467
+ nextPageToken: string;
468
+ /**
469
+ * @generated from field: uint32 total_size = 2;
470
+ */
471
+ totalSize: number;
472
+ /**
473
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
474
+ */
475
+ users: User[];
476
+ /**
477
+ * @generated from field: string prev_page_token = 4;
478
+ */
479
+ prevPageToken: string;
480
+ constructor(data?: PartialMessage<SearchUsersResponse>);
481
+ static readonly runtime: typeof proto3;
482
+ static readonly typeName = "scalekit.v1.users.SearchUsersResponse";
483
+ static readonly fields: FieldList;
484
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersResponse;
485
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersResponse;
486
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersResponse;
487
+ static equals(a: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined, b: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined): boolean;
488
+ }
489
+ /**
490
+ * @generated from message scalekit.v1.users.DeleteUserRequest
491
+ */
492
+ export declare class DeleteUserRequest extends Message<DeleteUserRequest> {
493
+ /**
494
+ * @generated from oneof scalekit.v1.users.DeleteUserRequest.identities
495
+ */
496
+ identities: {
497
+ /**
498
+ * @generated from field: string id = 1;
499
+ */
500
+ value: string;
501
+ case: "id";
502
+ } | {
503
+ /**
504
+ * @generated from field: string external_id = 2;
505
+ */
506
+ value: string;
507
+ case: "externalId";
508
+ } | {
509
+ case: undefined;
510
+ value?: undefined;
511
+ };
512
+ constructor(data?: PartialMessage<DeleteUserRequest>);
513
+ static readonly runtime: typeof proto3;
514
+ static readonly typeName = "scalekit.v1.users.DeleteUserRequest";
515
+ static readonly fields: FieldList;
516
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
517
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
518
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
519
+ static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
520
+ }
521
+ /**
522
+ * @generated from message scalekit.v1.users.UpdateMembershipRequest
523
+ */
524
+ export declare class UpdateMembershipRequest extends Message<UpdateMembershipRequest> {
525
+ /**
526
+ * @generated from field: string organization_id = 1;
527
+ */
528
+ organizationId: string;
529
+ /**
530
+ * @generated from oneof scalekit.v1.users.UpdateMembershipRequest.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
+ } | {
545
+ case: undefined;
546
+ value?: undefined;
547
+ };
548
+ /**
549
+ * @generated from field: scalekit.v1.users.UpdateMembership membership = 5;
550
+ */
551
+ membership?: UpdateMembership;
552
+ constructor(data?: PartialMessage<UpdateMembershipRequest>);
553
+ static readonly runtime: typeof proto3;
554
+ static readonly typeName = "scalekit.v1.users.UpdateMembershipRequest";
555
+ static readonly fields: FieldList;
556
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipRequest;
557
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipRequest;
558
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipRequest;
559
+ static equals(a: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined, b: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined): boolean;
560
+ }
561
+ /**
562
+ * @generated from message scalekit.v1.users.UpdateMembership
563
+ */
564
+ export declare class UpdateMembership extends Message<UpdateMembership> {
565
+ /**
566
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
567
+ */
568
+ roles: Role[];
569
+ /**
570
+ * @generated from field: map<string, string> metadata = 7;
571
+ */
572
+ metadata: {
573
+ [key: string]: string;
574
+ };
575
+ constructor(data?: PartialMessage<UpdateMembership>);
576
+ static readonly runtime: typeof proto3;
577
+ static readonly typeName = "scalekit.v1.users.UpdateMembership";
578
+ static readonly fields: FieldList;
579
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembership;
580
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembership;
581
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembership;
582
+ static equals(a: UpdateMembership | PlainMessage<UpdateMembership> | undefined, b: UpdateMembership | PlainMessage<UpdateMembership> | undefined): boolean;
583
+ }
584
+ /**
585
+ * @generated from message scalekit.v1.users.CreateMembership
586
+ */
587
+ export declare class CreateMembership extends Message<CreateMembership> {
588
+ /**
589
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
590
+ */
591
+ roles: Role[];
592
+ /**
593
+ * @generated from field: map<string, string> metadata = 7;
594
+ */
595
+ metadata: {
596
+ [key: string]: string;
597
+ };
598
+ constructor(data?: PartialMessage<CreateMembership>);
599
+ static readonly runtime: typeof proto3;
600
+ static readonly typeName = "scalekit.v1.users.CreateMembership";
601
+ static readonly fields: FieldList;
602
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembership;
603
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembership;
604
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembership;
605
+ static equals(a: CreateMembership | PlainMessage<CreateMembership> | undefined, b: CreateMembership | PlainMessage<CreateMembership> | undefined): boolean;
606
+ }
607
+ /**
608
+ * @generated from message scalekit.v1.users.UpdateMembershipResponse
609
+ */
610
+ export declare class UpdateMembershipResponse extends Message<UpdateMembershipResponse> {
611
+ /**
612
+ * @generated from field: scalekit.v1.users.User user = 1;
613
+ */
614
+ user?: User;
615
+ constructor(data?: PartialMessage<UpdateMembershipResponse>);
616
+ static readonly runtime: typeof proto3;
617
+ static readonly typeName = "scalekit.v1.users.UpdateMembershipResponse";
618
+ static readonly fields: FieldList;
619
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipResponse;
620
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipResponse;
621
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipResponse;
622
+ static equals(a: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined, b: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined): boolean;
623
+ }
624
+ /**
625
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersRequest
626
+ */
627
+ export declare class SearchOrganizationUsersRequest extends Message<SearchOrganizationUsersRequest> {
628
+ /**
629
+ * @generated from field: string organization_id = 1;
630
+ */
631
+ organizationId: string;
632
+ /**
633
+ * @generated from field: string query = 2;
634
+ */
635
+ query: string;
636
+ /**
637
+ * @generated from field: uint32 page_size = 3;
638
+ */
639
+ pageSize: number;
640
+ /**
641
+ * @generated from field: string page_token = 4;
642
+ */
643
+ pageToken: string;
644
+ constructor(data?: PartialMessage<SearchOrganizationUsersRequest>);
645
+ static readonly runtime: typeof proto3;
646
+ static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersRequest";
647
+ static readonly fields: FieldList;
648
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersRequest;
649
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest;
650
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest;
651
+ static equals(a: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined, b: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined): boolean;
652
+ }
653
+ /**
654
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersResponse
655
+ */
656
+ export declare class SearchOrganizationUsersResponse extends Message<SearchOrganizationUsersResponse> {
657
+ /**
658
+ * @generated from field: string next_page_token = 1;
659
+ */
660
+ nextPageToken: string;
661
+ /**
662
+ * @generated from field: uint32 total_size = 2;
663
+ */
664
+ totalSize: number;
665
+ /**
666
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
667
+ */
668
+ users: User[];
669
+ /**
670
+ * @generated from field: string prev_page_token = 4;
671
+ */
672
+ prevPageToken: string;
673
+ constructor(data?: PartialMessage<SearchOrganizationUsersResponse>);
674
+ static readonly runtime: typeof proto3;
675
+ static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersResponse";
676
+ static readonly fields: FieldList;
677
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersResponse;
678
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse;
679
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse;
680
+ static equals(a: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined, b: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined): boolean;
681
+ }
682
+ /**
683
+ * @generated from message scalekit.v1.users.CreateUser
684
+ */
685
+ export declare class CreateUser extends Message<CreateUser> {
686
+ /**
687
+ * @generated from field: string email = 5;
688
+ */
689
+ email: string;
690
+ /**
691
+ * @generated from field: optional string external_id = 6;
692
+ */
693
+ externalId?: string;
694
+ /**
695
+ * @generated from field: scalekit.v1.users.CreateMembership membership = 7;
696
+ */
697
+ membership?: CreateMembership;
698
+ /**
699
+ * @generated from field: scalekit.v1.users.CreateUserProfile user_profile = 8;
700
+ */
701
+ userProfile?: CreateUserProfile;
702
+ /**
703
+ * @generated from field: map<string, string> metadata = 9;
704
+ */
705
+ metadata: {
706
+ [key: string]: string;
707
+ };
708
+ constructor(data?: PartialMessage<CreateUser>);
709
+ static readonly runtime: typeof proto3;
710
+ static readonly typeName = "scalekit.v1.users.CreateUser";
711
+ static readonly fields: FieldList;
712
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUser;
713
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUser;
714
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUser;
715
+ static equals(a: CreateUser | PlainMessage<CreateUser> | undefined, b: CreateUser | PlainMessage<CreateUser> | undefined): boolean;
716
+ }
717
+ /**
718
+ * @generated from message scalekit.v1.users.CreateUserProfile
719
+ */
720
+ export declare class CreateUserProfile extends Message<CreateUserProfile> {
721
+ /**
722
+ * @generated from field: string first_name = 2;
723
+ */
724
+ firstName: string;
725
+ /**
726
+ * @generated from field: string last_name = 3;
727
+ */
728
+ lastName: string;
729
+ /**
730
+ * @generated from field: string name = 4;
731
+ */
732
+ name: string;
733
+ /**
734
+ * @generated from field: string locale = 5;
735
+ */
736
+ locale: string;
737
+ /**
738
+ * @generated from field: string phone_number = 7;
739
+ */
740
+ phoneNumber: string;
741
+ /**
742
+ * @generated from field: map<string, string> metadata = 8;
743
+ */
744
+ metadata: {
745
+ [key: string]: string;
746
+ };
747
+ /**
748
+ * @generated from field: map<string, string> custom_attributes = 9;
749
+ */
750
+ customAttributes: {
751
+ [key: string]: string;
752
+ };
753
+ constructor(data?: PartialMessage<CreateUserProfile>);
754
+ static readonly runtime: typeof proto3;
755
+ static readonly typeName = "scalekit.v1.users.CreateUserProfile";
756
+ static readonly fields: FieldList;
757
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserProfile;
758
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserProfile;
759
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserProfile;
760
+ static equals(a: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined, b: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined): boolean;
761
+ }
762
+ /**
763
+ * @generated from message scalekit.v1.users.UpdateUserProfile
764
+ */
765
+ export declare class UpdateUserProfile extends Message<UpdateUserProfile> {
766
+ /**
767
+ * @generated from field: optional string first_name = 2;
768
+ */
769
+ firstName?: string;
770
+ /**
771
+ * @generated from field: optional string last_name = 3;
772
+ */
773
+ lastName?: string;
774
+ /**
775
+ * @generated from field: optional string name = 4;
776
+ */
777
+ name?: string;
778
+ /**
779
+ * @generated from field: optional string locale = 5;
780
+ */
781
+ locale?: string;
782
+ /**
783
+ * @generated from field: optional string phone_number = 7;
784
+ */
785
+ phoneNumber?: string;
786
+ /**
787
+ * @generated from field: map<string, string> metadata = 8;
788
+ */
789
+ metadata: {
790
+ [key: string]: string;
791
+ };
792
+ /**
793
+ * @generated from field: map<string, string> custom_attributes = 9;
794
+ */
795
+ customAttributes: {
796
+ [key: string]: string;
797
+ };
798
+ constructor(data?: PartialMessage<UpdateUserProfile>);
799
+ static readonly runtime: typeof proto3;
800
+ static readonly typeName = "scalekit.v1.users.UpdateUserProfile";
801
+ static readonly fields: FieldList;
802
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserProfile;
803
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserProfile;
804
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserProfile;
805
+ static equals(a: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined, b: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined): boolean;
806
+ }