@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,1048 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
3
+ // @generated from file scalekit/v1/users/users.proto (package scalekit.v1.users, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.UpdateUserProfile = exports.CreateUserProfile = exports.CreateUser = exports.SearchOrganizationUsersResponse = exports.SearchOrganizationUsersRequest = exports.UpdateMembershipResponse = exports.CreateMembership = exports.UpdateMembership = exports.UpdateMembershipRequest = exports.DeleteUserRequest = exports.SearchUsersResponse = exports.SearchUsersRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.CreateMembershipResponse = exports.CreateMembershipRequest = exports.DeleteMembershipRequest = exports.ListOrganizationUsersResponse = exports.ListOrganizationUsersRequest = exports.GetUserResponse = exports.GetUserRequest = exports.UpdateUserResponse = exports.UpdateUserRequest = exports.UpdateUser = exports.CreateUserAndMembershipResponse = exports.CreateUserAndMembershipRequest = exports.User = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ const commons_pb_js_1 = require("../commons/commons_pb.js");
10
+ /**
11
+ * @generated from message scalekit.v1.users.User
12
+ */
13
+ class User extends protobuf_1.Message {
14
+ constructor(data) {
15
+ super();
16
+ /**
17
+ * @generated from field: string id = 1;
18
+ */
19
+ this.id = "";
20
+ /**
21
+ * @generated from field: string environment_id = 2;
22
+ */
23
+ this.environmentId = "";
24
+ /**
25
+ * @generated from field: string email = 5;
26
+ */
27
+ this.email = "";
28
+ /**
29
+ * @generated from field: repeated scalekit.v1.commons.OrganizationMembership memberships = 7;
30
+ */
31
+ this.memberships = [];
32
+ /**
33
+ * @generated from field: map<string, string> metadata = 9;
34
+ */
35
+ this.metadata = {};
36
+ protobuf_1.proto3.util.initPartial(data, this);
37
+ }
38
+ static fromBinary(bytes, options) {
39
+ return new User().fromBinary(bytes, options);
40
+ }
41
+ static fromJson(jsonValue, options) {
42
+ return new User().fromJson(jsonValue, options);
43
+ }
44
+ static fromJsonString(jsonString, options) {
45
+ return new User().fromJsonString(jsonString, options);
46
+ }
47
+ static equals(a, b) {
48
+ return protobuf_1.proto3.util.equals(User, a, b);
49
+ }
50
+ }
51
+ exports.User = User;
52
+ User.runtime = protobuf_1.proto3;
53
+ User.typeName = "scalekit.v1.users.User";
54
+ User.fields = protobuf_1.proto3.util.newFieldList(() => [
55
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ { no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 3, name: "create_time", kind: "message", T: protobuf_1.Timestamp },
58
+ { no: 4, name: "update_time", kind: "message", T: protobuf_1.Timestamp },
59
+ { no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
61
+ { no: 7, name: "memberships", kind: "message", T: commons_pb_js_1.OrganizationMembership, repeated: true },
62
+ { no: 8, name: "user_profile", kind: "message", T: commons_pb_js_1.UserProfile },
63
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
64
+ { no: 10, name: "last_login", kind: "message", T: protobuf_1.Timestamp },
65
+ ]);
66
+ /**
67
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipRequest
68
+ */
69
+ class CreateUserAndMembershipRequest extends protobuf_1.Message {
70
+ constructor(data) {
71
+ super();
72
+ /**
73
+ * @generated from field: string organization_id = 1;
74
+ */
75
+ this.organizationId = "";
76
+ /**
77
+ * @generated from field: bool send_activation_email = 3;
78
+ */
79
+ this.sendActivationEmail = false;
80
+ protobuf_1.proto3.util.initPartial(data, this);
81
+ }
82
+ static fromBinary(bytes, options) {
83
+ return new CreateUserAndMembershipRequest().fromBinary(bytes, options);
84
+ }
85
+ static fromJson(jsonValue, options) {
86
+ return new CreateUserAndMembershipRequest().fromJson(jsonValue, options);
87
+ }
88
+ static fromJsonString(jsonString, options) {
89
+ return new CreateUserAndMembershipRequest().fromJsonString(jsonString, options);
90
+ }
91
+ static equals(a, b) {
92
+ return protobuf_1.proto3.util.equals(CreateUserAndMembershipRequest, a, b);
93
+ }
94
+ }
95
+ exports.CreateUserAndMembershipRequest = CreateUserAndMembershipRequest;
96
+ CreateUserAndMembershipRequest.runtime = protobuf_1.proto3;
97
+ CreateUserAndMembershipRequest.typeName = "scalekit.v1.users.CreateUserAndMembershipRequest";
98
+ CreateUserAndMembershipRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
99
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
100
+ { no: 2, name: "user", kind: "message", T: CreateUser },
101
+ { no: 3, name: "send_activation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
102
+ ]);
103
+ /**
104
+ * @generated from message scalekit.v1.users.CreateUserAndMembershipResponse
105
+ */
106
+ class CreateUserAndMembershipResponse extends protobuf_1.Message {
107
+ constructor(data) {
108
+ super();
109
+ protobuf_1.proto3.util.initPartial(data, this);
110
+ }
111
+ static fromBinary(bytes, options) {
112
+ return new CreateUserAndMembershipResponse().fromBinary(bytes, options);
113
+ }
114
+ static fromJson(jsonValue, options) {
115
+ return new CreateUserAndMembershipResponse().fromJson(jsonValue, options);
116
+ }
117
+ static fromJsonString(jsonString, options) {
118
+ return new CreateUserAndMembershipResponse().fromJsonString(jsonString, options);
119
+ }
120
+ static equals(a, b) {
121
+ return protobuf_1.proto3.util.equals(CreateUserAndMembershipResponse, a, b);
122
+ }
123
+ }
124
+ exports.CreateUserAndMembershipResponse = CreateUserAndMembershipResponse;
125
+ CreateUserAndMembershipResponse.runtime = protobuf_1.proto3;
126
+ CreateUserAndMembershipResponse.typeName = "scalekit.v1.users.CreateUserAndMembershipResponse";
127
+ CreateUserAndMembershipResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
128
+ { no: 1, name: "user", kind: "message", T: User },
129
+ ]);
130
+ /**
131
+ * @generated from message scalekit.v1.users.UpdateUser
132
+ */
133
+ class UpdateUser extends protobuf_1.Message {
134
+ constructor(data) {
135
+ super();
136
+ /**
137
+ * @generated from field: map<string, string> metadata = 9;
138
+ */
139
+ this.metadata = {};
140
+ protobuf_1.proto3.util.initPartial(data, this);
141
+ }
142
+ static fromBinary(bytes, options) {
143
+ return new UpdateUser().fromBinary(bytes, options);
144
+ }
145
+ static fromJson(jsonValue, options) {
146
+ return new UpdateUser().fromJson(jsonValue, options);
147
+ }
148
+ static fromJsonString(jsonString, options) {
149
+ return new UpdateUser().fromJsonString(jsonString, options);
150
+ }
151
+ static equals(a, b) {
152
+ return protobuf_1.proto3.util.equals(UpdateUser, a, b);
153
+ }
154
+ }
155
+ exports.UpdateUser = UpdateUser;
156
+ UpdateUser.runtime = protobuf_1.proto3;
157
+ UpdateUser.typeName = "scalekit.v1.users.UpdateUser";
158
+ UpdateUser.fields = protobuf_1.proto3.util.newFieldList(() => [
159
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
160
+ { no: 8, name: "user_profile", kind: "message", T: UpdateUserProfile },
161
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
162
+ ]);
163
+ /**
164
+ * @generated from message scalekit.v1.users.UpdateUserRequest
165
+ */
166
+ class UpdateUserRequest extends protobuf_1.Message {
167
+ constructor(data) {
168
+ super();
169
+ /**
170
+ * @generated from oneof scalekit.v1.users.UpdateUserRequest.identities
171
+ */
172
+ this.identities = { case: undefined };
173
+ protobuf_1.proto3.util.initPartial(data, this);
174
+ }
175
+ static fromBinary(bytes, options) {
176
+ return new UpdateUserRequest().fromBinary(bytes, options);
177
+ }
178
+ static fromJson(jsonValue, options) {
179
+ return new UpdateUserRequest().fromJson(jsonValue, options);
180
+ }
181
+ static fromJsonString(jsonString, options) {
182
+ return new UpdateUserRequest().fromJsonString(jsonString, options);
183
+ }
184
+ static equals(a, b) {
185
+ return protobuf_1.proto3.util.equals(UpdateUserRequest, a, b);
186
+ }
187
+ }
188
+ exports.UpdateUserRequest = UpdateUserRequest;
189
+ UpdateUserRequest.runtime = protobuf_1.proto3;
190
+ UpdateUserRequest.typeName = "scalekit.v1.users.UpdateUserRequest";
191
+ UpdateUserRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
192
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
193
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
194
+ { no: 3, name: "user", kind: "message", T: UpdateUser },
195
+ ]);
196
+ /**
197
+ * @generated from message scalekit.v1.users.UpdateUserResponse
198
+ */
199
+ class UpdateUserResponse extends protobuf_1.Message {
200
+ constructor(data) {
201
+ super();
202
+ protobuf_1.proto3.util.initPartial(data, this);
203
+ }
204
+ static fromBinary(bytes, options) {
205
+ return new UpdateUserResponse().fromBinary(bytes, options);
206
+ }
207
+ static fromJson(jsonValue, options) {
208
+ return new UpdateUserResponse().fromJson(jsonValue, options);
209
+ }
210
+ static fromJsonString(jsonString, options) {
211
+ return new UpdateUserResponse().fromJsonString(jsonString, options);
212
+ }
213
+ static equals(a, b) {
214
+ return protobuf_1.proto3.util.equals(UpdateUserResponse, a, b);
215
+ }
216
+ }
217
+ exports.UpdateUserResponse = UpdateUserResponse;
218
+ UpdateUserResponse.runtime = protobuf_1.proto3;
219
+ UpdateUserResponse.typeName = "scalekit.v1.users.UpdateUserResponse";
220
+ UpdateUserResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
221
+ { no: 1, name: "user", kind: "message", T: User },
222
+ ]);
223
+ /**
224
+ * @generated from message scalekit.v1.users.GetUserRequest
225
+ */
226
+ class GetUserRequest extends protobuf_1.Message {
227
+ constructor(data) {
228
+ super();
229
+ /**
230
+ * @generated from oneof scalekit.v1.users.GetUserRequest.identities
231
+ */
232
+ this.identities = { case: undefined };
233
+ protobuf_1.proto3.util.initPartial(data, this);
234
+ }
235
+ static fromBinary(bytes, options) {
236
+ return new GetUserRequest().fromBinary(bytes, options);
237
+ }
238
+ static fromJson(jsonValue, options) {
239
+ return new GetUserRequest().fromJson(jsonValue, options);
240
+ }
241
+ static fromJsonString(jsonString, options) {
242
+ return new GetUserRequest().fromJsonString(jsonString, options);
243
+ }
244
+ static equals(a, b) {
245
+ return protobuf_1.proto3.util.equals(GetUserRequest, a, b);
246
+ }
247
+ }
248
+ exports.GetUserRequest = GetUserRequest;
249
+ GetUserRequest.runtime = protobuf_1.proto3;
250
+ GetUserRequest.typeName = "scalekit.v1.users.GetUserRequest";
251
+ GetUserRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
252
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
253
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
254
+ ]);
255
+ /**
256
+ * @generated from message scalekit.v1.users.GetUserResponse
257
+ */
258
+ class GetUserResponse extends protobuf_1.Message {
259
+ constructor(data) {
260
+ super();
261
+ protobuf_1.proto3.util.initPartial(data, this);
262
+ }
263
+ static fromBinary(bytes, options) {
264
+ return new GetUserResponse().fromBinary(bytes, options);
265
+ }
266
+ static fromJson(jsonValue, options) {
267
+ return new GetUserResponse().fromJson(jsonValue, options);
268
+ }
269
+ static fromJsonString(jsonString, options) {
270
+ return new GetUserResponse().fromJsonString(jsonString, options);
271
+ }
272
+ static equals(a, b) {
273
+ return protobuf_1.proto3.util.equals(GetUserResponse, a, b);
274
+ }
275
+ }
276
+ exports.GetUserResponse = GetUserResponse;
277
+ GetUserResponse.runtime = protobuf_1.proto3;
278
+ GetUserResponse.typeName = "scalekit.v1.users.GetUserResponse";
279
+ GetUserResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
280
+ { no: 1, name: "user", kind: "message", T: User },
281
+ ]);
282
+ /**
283
+ * @generated from message scalekit.v1.users.ListOrganizationUsersRequest
284
+ */
285
+ class ListOrganizationUsersRequest extends protobuf_1.Message {
286
+ constructor(data) {
287
+ super();
288
+ /**
289
+ * @generated from field: string organization_id = 1;
290
+ */
291
+ this.organizationId = "";
292
+ /**
293
+ * @generated from field: uint32 page_size = 2;
294
+ */
295
+ this.pageSize = 0;
296
+ /**
297
+ * @generated from field: string page_token = 3;
298
+ */
299
+ this.pageToken = "";
300
+ protobuf_1.proto3.util.initPartial(data, this);
301
+ }
302
+ static fromBinary(bytes, options) {
303
+ return new ListOrganizationUsersRequest().fromBinary(bytes, options);
304
+ }
305
+ static fromJson(jsonValue, options) {
306
+ return new ListOrganizationUsersRequest().fromJson(jsonValue, options);
307
+ }
308
+ static fromJsonString(jsonString, options) {
309
+ return new ListOrganizationUsersRequest().fromJsonString(jsonString, options);
310
+ }
311
+ static equals(a, b) {
312
+ return protobuf_1.proto3.util.equals(ListOrganizationUsersRequest, a, b);
313
+ }
314
+ }
315
+ exports.ListOrganizationUsersRequest = ListOrganizationUsersRequest;
316
+ ListOrganizationUsersRequest.runtime = protobuf_1.proto3;
317
+ ListOrganizationUsersRequest.typeName = "scalekit.v1.users.ListOrganizationUsersRequest";
318
+ ListOrganizationUsersRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
319
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
320
+ { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
321
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
322
+ ]);
323
+ /**
324
+ * @generated from message scalekit.v1.users.ListOrganizationUsersResponse
325
+ */
326
+ class ListOrganizationUsersResponse extends protobuf_1.Message {
327
+ constructor(data) {
328
+ super();
329
+ /**
330
+ * @generated from field: string next_page_token = 1;
331
+ */
332
+ this.nextPageToken = "";
333
+ /**
334
+ * @generated from field: uint32 total_size = 2;
335
+ */
336
+ this.totalSize = 0;
337
+ /**
338
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
339
+ */
340
+ this.users = [];
341
+ /**
342
+ * @generated from field: string prev_page_token = 4;
343
+ */
344
+ this.prevPageToken = "";
345
+ protobuf_1.proto3.util.initPartial(data, this);
346
+ }
347
+ static fromBinary(bytes, options) {
348
+ return new ListOrganizationUsersResponse().fromBinary(bytes, options);
349
+ }
350
+ static fromJson(jsonValue, options) {
351
+ return new ListOrganizationUsersResponse().fromJson(jsonValue, options);
352
+ }
353
+ static fromJsonString(jsonString, options) {
354
+ return new ListOrganizationUsersResponse().fromJsonString(jsonString, options);
355
+ }
356
+ static equals(a, b) {
357
+ return protobuf_1.proto3.util.equals(ListOrganizationUsersResponse, a, b);
358
+ }
359
+ }
360
+ exports.ListOrganizationUsersResponse = ListOrganizationUsersResponse;
361
+ ListOrganizationUsersResponse.runtime = protobuf_1.proto3;
362
+ ListOrganizationUsersResponse.typeName = "scalekit.v1.users.ListOrganizationUsersResponse";
363
+ ListOrganizationUsersResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
364
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
365
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
366
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
367
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
368
+ ]);
369
+ /**
370
+ * @generated from message scalekit.v1.users.DeleteMembershipRequest
371
+ */
372
+ class DeleteMembershipRequest extends protobuf_1.Message {
373
+ constructor(data) {
374
+ super();
375
+ /**
376
+ * @generated from field: string organization_id = 1;
377
+ */
378
+ this.organizationId = "";
379
+ /**
380
+ * @generated from oneof scalekit.v1.users.DeleteMembershipRequest.identities
381
+ */
382
+ this.identities = { case: undefined };
383
+ protobuf_1.proto3.util.initPartial(data, this);
384
+ }
385
+ static fromBinary(bytes, options) {
386
+ return new DeleteMembershipRequest().fromBinary(bytes, options);
387
+ }
388
+ static fromJson(jsonValue, options) {
389
+ return new DeleteMembershipRequest().fromJson(jsonValue, options);
390
+ }
391
+ static fromJsonString(jsonString, options) {
392
+ return new DeleteMembershipRequest().fromJsonString(jsonString, options);
393
+ }
394
+ static equals(a, b) {
395
+ return protobuf_1.proto3.util.equals(DeleteMembershipRequest, a, b);
396
+ }
397
+ }
398
+ exports.DeleteMembershipRequest = DeleteMembershipRequest;
399
+ DeleteMembershipRequest.runtime = protobuf_1.proto3;
400
+ DeleteMembershipRequest.typeName = "scalekit.v1.users.DeleteMembershipRequest";
401
+ DeleteMembershipRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
402
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
404
+ { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
405
+ { no: 5, name: "cascade", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
406
+ ]);
407
+ /**
408
+ * @generated from message scalekit.v1.users.CreateMembershipRequest
409
+ */
410
+ class CreateMembershipRequest extends protobuf_1.Message {
411
+ constructor(data) {
412
+ super();
413
+ /**
414
+ * @generated from field: string organization_id = 1;
415
+ */
416
+ this.organizationId = "";
417
+ /**
418
+ * @generated from oneof scalekit.v1.users.CreateMembershipRequest.identities
419
+ */
420
+ this.identities = { case: undefined };
421
+ /**
422
+ * @generated from field: bool send_activation_email = 5;
423
+ */
424
+ this.sendActivationEmail = false;
425
+ protobuf_1.proto3.util.initPartial(data, this);
426
+ }
427
+ static fromBinary(bytes, options) {
428
+ return new CreateMembershipRequest().fromBinary(bytes, options);
429
+ }
430
+ static fromJson(jsonValue, options) {
431
+ return new CreateMembershipRequest().fromJson(jsonValue, options);
432
+ }
433
+ static fromJsonString(jsonString, options) {
434
+ return new CreateMembershipRequest().fromJsonString(jsonString, options);
435
+ }
436
+ static equals(a, b) {
437
+ return protobuf_1.proto3.util.equals(CreateMembershipRequest, a, b);
438
+ }
439
+ }
440
+ exports.CreateMembershipRequest = CreateMembershipRequest;
441
+ CreateMembershipRequest.runtime = protobuf_1.proto3;
442
+ CreateMembershipRequest.typeName = "scalekit.v1.users.CreateMembershipRequest";
443
+ CreateMembershipRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
444
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
445
+ { no: 2, name: "membership", kind: "message", T: CreateMembership },
446
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
447
+ { no: 4, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
448
+ { no: 5, name: "send_activation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
449
+ ]);
450
+ /**
451
+ * @generated from message scalekit.v1.users.CreateMembershipResponse
452
+ */
453
+ class CreateMembershipResponse extends protobuf_1.Message {
454
+ constructor(data) {
455
+ super();
456
+ protobuf_1.proto3.util.initPartial(data, this);
457
+ }
458
+ static fromBinary(bytes, options) {
459
+ return new CreateMembershipResponse().fromBinary(bytes, options);
460
+ }
461
+ static fromJson(jsonValue, options) {
462
+ return new CreateMembershipResponse().fromJson(jsonValue, options);
463
+ }
464
+ static fromJsonString(jsonString, options) {
465
+ return new CreateMembershipResponse().fromJsonString(jsonString, options);
466
+ }
467
+ static equals(a, b) {
468
+ return protobuf_1.proto3.util.equals(CreateMembershipResponse, a, b);
469
+ }
470
+ }
471
+ exports.CreateMembershipResponse = CreateMembershipResponse;
472
+ CreateMembershipResponse.runtime = protobuf_1.proto3;
473
+ CreateMembershipResponse.typeName = "scalekit.v1.users.CreateMembershipResponse";
474
+ CreateMembershipResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
475
+ { no: 1, name: "user", kind: "message", T: User },
476
+ ]);
477
+ /**
478
+ * @generated from message scalekit.v1.users.ListUsersRequest
479
+ */
480
+ class ListUsersRequest extends protobuf_1.Message {
481
+ constructor(data) {
482
+ super();
483
+ /**
484
+ * @generated from field: uint32 page_size = 1;
485
+ */
486
+ this.pageSize = 0;
487
+ /**
488
+ * @generated from field: string page_token = 2;
489
+ */
490
+ this.pageToken = "";
491
+ protobuf_1.proto3.util.initPartial(data, this);
492
+ }
493
+ static fromBinary(bytes, options) {
494
+ return new ListUsersRequest().fromBinary(bytes, options);
495
+ }
496
+ static fromJson(jsonValue, options) {
497
+ return new ListUsersRequest().fromJson(jsonValue, options);
498
+ }
499
+ static fromJsonString(jsonString, options) {
500
+ return new ListUsersRequest().fromJsonString(jsonString, options);
501
+ }
502
+ static equals(a, b) {
503
+ return protobuf_1.proto3.util.equals(ListUsersRequest, a, b);
504
+ }
505
+ }
506
+ exports.ListUsersRequest = ListUsersRequest;
507
+ ListUsersRequest.runtime = protobuf_1.proto3;
508
+ ListUsersRequest.typeName = "scalekit.v1.users.ListUsersRequest";
509
+ ListUsersRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
510
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
511
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
512
+ ]);
513
+ /**
514
+ * @generated from message scalekit.v1.users.ListUsersResponse
515
+ */
516
+ class ListUsersResponse extends protobuf_1.Message {
517
+ constructor(data) {
518
+ super();
519
+ /**
520
+ * @generated from field: repeated scalekit.v1.users.User users = 1;
521
+ */
522
+ this.users = [];
523
+ /**
524
+ * @generated from field: string next_page_token = 2;
525
+ */
526
+ this.nextPageToken = "";
527
+ /**
528
+ * @generated from field: uint32 total_size = 3;
529
+ */
530
+ this.totalSize = 0;
531
+ /**
532
+ * @generated from field: string prev_page_token = 4;
533
+ */
534
+ this.prevPageToken = "";
535
+ protobuf_1.proto3.util.initPartial(data, this);
536
+ }
537
+ static fromBinary(bytes, options) {
538
+ return new ListUsersResponse().fromBinary(bytes, options);
539
+ }
540
+ static fromJson(jsonValue, options) {
541
+ return new ListUsersResponse().fromJson(jsonValue, options);
542
+ }
543
+ static fromJsonString(jsonString, options) {
544
+ return new ListUsersResponse().fromJsonString(jsonString, options);
545
+ }
546
+ static equals(a, b) {
547
+ return protobuf_1.proto3.util.equals(ListUsersResponse, a, b);
548
+ }
549
+ }
550
+ exports.ListUsersResponse = ListUsersResponse;
551
+ ListUsersResponse.runtime = protobuf_1.proto3;
552
+ ListUsersResponse.typeName = "scalekit.v1.users.ListUsersResponse";
553
+ ListUsersResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
554
+ { no: 1, name: "users", kind: "message", T: User, repeated: true },
555
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
556
+ { no: 3, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
557
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
558
+ ]);
559
+ /**
560
+ * @generated from message scalekit.v1.users.SearchUsersRequest
561
+ */
562
+ class SearchUsersRequest extends protobuf_1.Message {
563
+ constructor(data) {
564
+ super();
565
+ /**
566
+ * @generated from field: string query = 1;
567
+ */
568
+ this.query = "";
569
+ /**
570
+ * @generated from field: uint32 page_size = 2;
571
+ */
572
+ this.pageSize = 0;
573
+ /**
574
+ * @generated from field: string page_token = 3;
575
+ */
576
+ this.pageToken = "";
577
+ protobuf_1.proto3.util.initPartial(data, this);
578
+ }
579
+ static fromBinary(bytes, options) {
580
+ return new SearchUsersRequest().fromBinary(bytes, options);
581
+ }
582
+ static fromJson(jsonValue, options) {
583
+ return new SearchUsersRequest().fromJson(jsonValue, options);
584
+ }
585
+ static fromJsonString(jsonString, options) {
586
+ return new SearchUsersRequest().fromJsonString(jsonString, options);
587
+ }
588
+ static equals(a, b) {
589
+ return protobuf_1.proto3.util.equals(SearchUsersRequest, a, b);
590
+ }
591
+ }
592
+ exports.SearchUsersRequest = SearchUsersRequest;
593
+ SearchUsersRequest.runtime = protobuf_1.proto3;
594
+ SearchUsersRequest.typeName = "scalekit.v1.users.SearchUsersRequest";
595
+ SearchUsersRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
596
+ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
597
+ { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
598
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
599
+ ]);
600
+ /**
601
+ * @generated from message scalekit.v1.users.SearchUsersResponse
602
+ */
603
+ class SearchUsersResponse extends protobuf_1.Message {
604
+ constructor(data) {
605
+ super();
606
+ /**
607
+ * @generated from field: string next_page_token = 1;
608
+ */
609
+ this.nextPageToken = "";
610
+ /**
611
+ * @generated from field: uint32 total_size = 2;
612
+ */
613
+ this.totalSize = 0;
614
+ /**
615
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
616
+ */
617
+ this.users = [];
618
+ /**
619
+ * @generated from field: string prev_page_token = 4;
620
+ */
621
+ this.prevPageToken = "";
622
+ protobuf_1.proto3.util.initPartial(data, this);
623
+ }
624
+ static fromBinary(bytes, options) {
625
+ return new SearchUsersResponse().fromBinary(bytes, options);
626
+ }
627
+ static fromJson(jsonValue, options) {
628
+ return new SearchUsersResponse().fromJson(jsonValue, options);
629
+ }
630
+ static fromJsonString(jsonString, options) {
631
+ return new SearchUsersResponse().fromJsonString(jsonString, options);
632
+ }
633
+ static equals(a, b) {
634
+ return protobuf_1.proto3.util.equals(SearchUsersResponse, a, b);
635
+ }
636
+ }
637
+ exports.SearchUsersResponse = SearchUsersResponse;
638
+ SearchUsersResponse.runtime = protobuf_1.proto3;
639
+ SearchUsersResponse.typeName = "scalekit.v1.users.SearchUsersResponse";
640
+ SearchUsersResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
641
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
642
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
643
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
644
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
645
+ ]);
646
+ /**
647
+ * @generated from message scalekit.v1.users.DeleteUserRequest
648
+ */
649
+ class DeleteUserRequest extends protobuf_1.Message {
650
+ constructor(data) {
651
+ super();
652
+ /**
653
+ * @generated from oneof scalekit.v1.users.DeleteUserRequest.identities
654
+ */
655
+ this.identities = { case: undefined };
656
+ protobuf_1.proto3.util.initPartial(data, this);
657
+ }
658
+ static fromBinary(bytes, options) {
659
+ return new DeleteUserRequest().fromBinary(bytes, options);
660
+ }
661
+ static fromJson(jsonValue, options) {
662
+ return new DeleteUserRequest().fromJson(jsonValue, options);
663
+ }
664
+ static fromJsonString(jsonString, options) {
665
+ return new DeleteUserRequest().fromJsonString(jsonString, options);
666
+ }
667
+ static equals(a, b) {
668
+ return protobuf_1.proto3.util.equals(DeleteUserRequest, a, b);
669
+ }
670
+ }
671
+ exports.DeleteUserRequest = DeleteUserRequest;
672
+ DeleteUserRequest.runtime = protobuf_1.proto3;
673
+ DeleteUserRequest.typeName = "scalekit.v1.users.DeleteUserRequest";
674
+ DeleteUserRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
675
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
676
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
677
+ ]);
678
+ /**
679
+ * @generated from message scalekit.v1.users.UpdateMembershipRequest
680
+ */
681
+ class UpdateMembershipRequest extends protobuf_1.Message {
682
+ constructor(data) {
683
+ super();
684
+ /**
685
+ * @generated from field: string organization_id = 1;
686
+ */
687
+ this.organizationId = "";
688
+ /**
689
+ * @generated from oneof scalekit.v1.users.UpdateMembershipRequest.identities
690
+ */
691
+ this.identities = { case: undefined };
692
+ protobuf_1.proto3.util.initPartial(data, this);
693
+ }
694
+ static fromBinary(bytes, options) {
695
+ return new UpdateMembershipRequest().fromBinary(bytes, options);
696
+ }
697
+ static fromJson(jsonValue, options) {
698
+ return new UpdateMembershipRequest().fromJson(jsonValue, options);
699
+ }
700
+ static fromJsonString(jsonString, options) {
701
+ return new UpdateMembershipRequest().fromJsonString(jsonString, options);
702
+ }
703
+ static equals(a, b) {
704
+ return protobuf_1.proto3.util.equals(UpdateMembershipRequest, a, b);
705
+ }
706
+ }
707
+ exports.UpdateMembershipRequest = UpdateMembershipRequest;
708
+ UpdateMembershipRequest.runtime = protobuf_1.proto3;
709
+ UpdateMembershipRequest.typeName = "scalekit.v1.users.UpdateMembershipRequest";
710
+ UpdateMembershipRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
711
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
712
+ { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
713
+ { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
714
+ { no: 5, name: "membership", kind: "message", T: UpdateMembership },
715
+ ]);
716
+ /**
717
+ * @generated from message scalekit.v1.users.UpdateMembership
718
+ */
719
+ class UpdateMembership extends protobuf_1.Message {
720
+ constructor(data) {
721
+ super();
722
+ /**
723
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
724
+ */
725
+ this.roles = [];
726
+ /**
727
+ * @generated from field: map<string, string> metadata = 7;
728
+ */
729
+ this.metadata = {};
730
+ protobuf_1.proto3.util.initPartial(data, this);
731
+ }
732
+ static fromBinary(bytes, options) {
733
+ return new UpdateMembership().fromBinary(bytes, options);
734
+ }
735
+ static fromJson(jsonValue, options) {
736
+ return new UpdateMembership().fromJson(jsonValue, options);
737
+ }
738
+ static fromJsonString(jsonString, options) {
739
+ return new UpdateMembership().fromJsonString(jsonString, options);
740
+ }
741
+ static equals(a, b) {
742
+ return protobuf_1.proto3.util.equals(UpdateMembership, a, b);
743
+ }
744
+ }
745
+ exports.UpdateMembership = UpdateMembership;
746
+ UpdateMembership.runtime = protobuf_1.proto3;
747
+ UpdateMembership.typeName = "scalekit.v1.users.UpdateMembership";
748
+ UpdateMembership.fields = protobuf_1.proto3.util.newFieldList(() => [
749
+ { no: 4, name: "roles", kind: "message", T: commons_pb_js_1.Role, repeated: true },
750
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
751
+ ]);
752
+ /**
753
+ * @generated from message scalekit.v1.users.CreateMembership
754
+ */
755
+ class CreateMembership extends protobuf_1.Message {
756
+ constructor(data) {
757
+ super();
758
+ /**
759
+ * @generated from field: repeated scalekit.v1.commons.Role roles = 4;
760
+ */
761
+ this.roles = [];
762
+ /**
763
+ * @generated from field: map<string, string> metadata = 7;
764
+ */
765
+ this.metadata = {};
766
+ protobuf_1.proto3.util.initPartial(data, this);
767
+ }
768
+ static fromBinary(bytes, options) {
769
+ return new CreateMembership().fromBinary(bytes, options);
770
+ }
771
+ static fromJson(jsonValue, options) {
772
+ return new CreateMembership().fromJson(jsonValue, options);
773
+ }
774
+ static fromJsonString(jsonString, options) {
775
+ return new CreateMembership().fromJsonString(jsonString, options);
776
+ }
777
+ static equals(a, b) {
778
+ return protobuf_1.proto3.util.equals(CreateMembership, a, b);
779
+ }
780
+ }
781
+ exports.CreateMembership = CreateMembership;
782
+ CreateMembership.runtime = protobuf_1.proto3;
783
+ CreateMembership.typeName = "scalekit.v1.users.CreateMembership";
784
+ CreateMembership.fields = protobuf_1.proto3.util.newFieldList(() => [
785
+ { no: 4, name: "roles", kind: "message", T: commons_pb_js_1.Role, repeated: true },
786
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
787
+ ]);
788
+ /**
789
+ * @generated from message scalekit.v1.users.UpdateMembershipResponse
790
+ */
791
+ class UpdateMembershipResponse extends protobuf_1.Message {
792
+ constructor(data) {
793
+ super();
794
+ protobuf_1.proto3.util.initPartial(data, this);
795
+ }
796
+ static fromBinary(bytes, options) {
797
+ return new UpdateMembershipResponse().fromBinary(bytes, options);
798
+ }
799
+ static fromJson(jsonValue, options) {
800
+ return new UpdateMembershipResponse().fromJson(jsonValue, options);
801
+ }
802
+ static fromJsonString(jsonString, options) {
803
+ return new UpdateMembershipResponse().fromJsonString(jsonString, options);
804
+ }
805
+ static equals(a, b) {
806
+ return protobuf_1.proto3.util.equals(UpdateMembershipResponse, a, b);
807
+ }
808
+ }
809
+ exports.UpdateMembershipResponse = UpdateMembershipResponse;
810
+ UpdateMembershipResponse.runtime = protobuf_1.proto3;
811
+ UpdateMembershipResponse.typeName = "scalekit.v1.users.UpdateMembershipResponse";
812
+ UpdateMembershipResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
813
+ { no: 1, name: "user", kind: "message", T: User },
814
+ ]);
815
+ /**
816
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersRequest
817
+ */
818
+ class SearchOrganizationUsersRequest extends protobuf_1.Message {
819
+ constructor(data) {
820
+ super();
821
+ /**
822
+ * @generated from field: string organization_id = 1;
823
+ */
824
+ this.organizationId = "";
825
+ /**
826
+ * @generated from field: string query = 2;
827
+ */
828
+ this.query = "";
829
+ /**
830
+ * @generated from field: uint32 page_size = 3;
831
+ */
832
+ this.pageSize = 0;
833
+ /**
834
+ * @generated from field: string page_token = 4;
835
+ */
836
+ this.pageToken = "";
837
+ protobuf_1.proto3.util.initPartial(data, this);
838
+ }
839
+ static fromBinary(bytes, options) {
840
+ return new SearchOrganizationUsersRequest().fromBinary(bytes, options);
841
+ }
842
+ static fromJson(jsonValue, options) {
843
+ return new SearchOrganizationUsersRequest().fromJson(jsonValue, options);
844
+ }
845
+ static fromJsonString(jsonString, options) {
846
+ return new SearchOrganizationUsersRequest().fromJsonString(jsonString, options);
847
+ }
848
+ static equals(a, b) {
849
+ return protobuf_1.proto3.util.equals(SearchOrganizationUsersRequest, a, b);
850
+ }
851
+ }
852
+ exports.SearchOrganizationUsersRequest = SearchOrganizationUsersRequest;
853
+ SearchOrganizationUsersRequest.runtime = protobuf_1.proto3;
854
+ SearchOrganizationUsersRequest.typeName = "scalekit.v1.users.SearchOrganizationUsersRequest";
855
+ SearchOrganizationUsersRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
856
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
857
+ { no: 2, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
858
+ { no: 3, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
859
+ { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
860
+ ]);
861
+ /**
862
+ * @generated from message scalekit.v1.users.SearchOrganizationUsersResponse
863
+ */
864
+ class SearchOrganizationUsersResponse extends protobuf_1.Message {
865
+ constructor(data) {
866
+ super();
867
+ /**
868
+ * @generated from field: string next_page_token = 1;
869
+ */
870
+ this.nextPageToken = "";
871
+ /**
872
+ * @generated from field: uint32 total_size = 2;
873
+ */
874
+ this.totalSize = 0;
875
+ /**
876
+ * @generated from field: repeated scalekit.v1.users.User users = 3;
877
+ */
878
+ this.users = [];
879
+ /**
880
+ * @generated from field: string prev_page_token = 4;
881
+ */
882
+ this.prevPageToken = "";
883
+ protobuf_1.proto3.util.initPartial(data, this);
884
+ }
885
+ static fromBinary(bytes, options) {
886
+ return new SearchOrganizationUsersResponse().fromBinary(bytes, options);
887
+ }
888
+ static fromJson(jsonValue, options) {
889
+ return new SearchOrganizationUsersResponse().fromJson(jsonValue, options);
890
+ }
891
+ static fromJsonString(jsonString, options) {
892
+ return new SearchOrganizationUsersResponse().fromJsonString(jsonString, options);
893
+ }
894
+ static equals(a, b) {
895
+ return protobuf_1.proto3.util.equals(SearchOrganizationUsersResponse, a, b);
896
+ }
897
+ }
898
+ exports.SearchOrganizationUsersResponse = SearchOrganizationUsersResponse;
899
+ SearchOrganizationUsersResponse.runtime = protobuf_1.proto3;
900
+ SearchOrganizationUsersResponse.typeName = "scalekit.v1.users.SearchOrganizationUsersResponse";
901
+ SearchOrganizationUsersResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
902
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
903
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
904
+ { no: 3, name: "users", kind: "message", T: User, repeated: true },
905
+ { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
906
+ ]);
907
+ /**
908
+ * @generated from message scalekit.v1.users.CreateUser
909
+ */
910
+ class CreateUser extends protobuf_1.Message {
911
+ constructor(data) {
912
+ super();
913
+ /**
914
+ * @generated from field: string email = 5;
915
+ */
916
+ this.email = "";
917
+ /**
918
+ * @generated from field: map<string, string> metadata = 9;
919
+ */
920
+ this.metadata = {};
921
+ protobuf_1.proto3.util.initPartial(data, this);
922
+ }
923
+ static fromBinary(bytes, options) {
924
+ return new CreateUser().fromBinary(bytes, options);
925
+ }
926
+ static fromJson(jsonValue, options) {
927
+ return new CreateUser().fromJson(jsonValue, options);
928
+ }
929
+ static fromJsonString(jsonString, options) {
930
+ return new CreateUser().fromJsonString(jsonString, options);
931
+ }
932
+ static equals(a, b) {
933
+ return protobuf_1.proto3.util.equals(CreateUser, a, b);
934
+ }
935
+ }
936
+ exports.CreateUser = CreateUser;
937
+ CreateUser.runtime = protobuf_1.proto3;
938
+ CreateUser.typeName = "scalekit.v1.users.CreateUser";
939
+ CreateUser.fields = protobuf_1.proto3.util.newFieldList(() => [
940
+ { no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
941
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
942
+ { no: 7, name: "membership", kind: "message", T: CreateMembership },
943
+ { no: 8, name: "user_profile", kind: "message", T: CreateUserProfile },
944
+ { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
945
+ ]);
946
+ /**
947
+ * @generated from message scalekit.v1.users.CreateUserProfile
948
+ */
949
+ class CreateUserProfile extends protobuf_1.Message {
950
+ constructor(data) {
951
+ super();
952
+ /**
953
+ * @generated from field: string first_name = 2;
954
+ */
955
+ this.firstName = "";
956
+ /**
957
+ * @generated from field: string last_name = 3;
958
+ */
959
+ this.lastName = "";
960
+ /**
961
+ * @generated from field: string name = 4;
962
+ */
963
+ this.name = "";
964
+ /**
965
+ * @generated from field: string locale = 5;
966
+ */
967
+ this.locale = "";
968
+ /**
969
+ * @generated from field: string phone_number = 7;
970
+ */
971
+ this.phoneNumber = "";
972
+ /**
973
+ * @generated from field: map<string, string> metadata = 8;
974
+ */
975
+ this.metadata = {};
976
+ /**
977
+ * @generated from field: map<string, string> custom_attributes = 9;
978
+ */
979
+ this.customAttributes = {};
980
+ protobuf_1.proto3.util.initPartial(data, this);
981
+ }
982
+ static fromBinary(bytes, options) {
983
+ return new CreateUserProfile().fromBinary(bytes, options);
984
+ }
985
+ static fromJson(jsonValue, options) {
986
+ return new CreateUserProfile().fromJson(jsonValue, options);
987
+ }
988
+ static fromJsonString(jsonString, options) {
989
+ return new CreateUserProfile().fromJsonString(jsonString, options);
990
+ }
991
+ static equals(a, b) {
992
+ return protobuf_1.proto3.util.equals(CreateUserProfile, a, b);
993
+ }
994
+ }
995
+ exports.CreateUserProfile = CreateUserProfile;
996
+ CreateUserProfile.runtime = protobuf_1.proto3;
997
+ CreateUserProfile.typeName = "scalekit.v1.users.CreateUserProfile";
998
+ CreateUserProfile.fields = protobuf_1.proto3.util.newFieldList(() => [
999
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1000
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1001
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1002
+ { no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1003
+ { no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1004
+ { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1005
+ { no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1006
+ ]);
1007
+ /**
1008
+ * @generated from message scalekit.v1.users.UpdateUserProfile
1009
+ */
1010
+ class UpdateUserProfile extends protobuf_1.Message {
1011
+ constructor(data) {
1012
+ super();
1013
+ /**
1014
+ * @generated from field: map<string, string> metadata = 8;
1015
+ */
1016
+ this.metadata = {};
1017
+ /**
1018
+ * @generated from field: map<string, string> custom_attributes = 9;
1019
+ */
1020
+ this.customAttributes = {};
1021
+ protobuf_1.proto3.util.initPartial(data, this);
1022
+ }
1023
+ static fromBinary(bytes, options) {
1024
+ return new UpdateUserProfile().fromBinary(bytes, options);
1025
+ }
1026
+ static fromJson(jsonValue, options) {
1027
+ return new UpdateUserProfile().fromJson(jsonValue, options);
1028
+ }
1029
+ static fromJsonString(jsonString, options) {
1030
+ return new UpdateUserProfile().fromJsonString(jsonString, options);
1031
+ }
1032
+ static equals(a, b) {
1033
+ return protobuf_1.proto3.util.equals(UpdateUserProfile, a, b);
1034
+ }
1035
+ }
1036
+ exports.UpdateUserProfile = UpdateUserProfile;
1037
+ UpdateUserProfile.runtime = protobuf_1.proto3;
1038
+ UpdateUserProfile.typeName = "scalekit.v1.users.UpdateUserProfile";
1039
+ UpdateUserProfile.fields = protobuf_1.proto3.util.newFieldList(() => [
1040
+ { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1041
+ { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1042
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1043
+ { no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1044
+ { no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1045
+ { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1046
+ { no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1047
+ ]);
1048
+ //# sourceMappingURL=users_pb.js.map