@acequants/aegis-contracts 0.1.45 → 0.1.47

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.
@@ -8,6 +8,38 @@ import _m0 from "protobufjs/minimal";
8
8
  import { Timestamp } from "../../google/protobuf/timestamp";
9
9
  export const protobufPackage = "aegis.auth.v1";
10
10
  export const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
11
+ function createBaseGrpcDtoMessage() {
12
+ return { message: "" };
13
+ }
14
+ export const GrpcDtoMessage = {
15
+ encode(message, writer = _m0.Writer.create()) {
16
+ if (message.message !== "") {
17
+ writer.uint32(10).string(message.message);
18
+ }
19
+ return writer;
20
+ },
21
+ decode(input, length) {
22
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23
+ let end = length === undefined ? reader.len : reader.pos + length;
24
+ const message = createBaseGrpcDtoMessage();
25
+ while (reader.pos < end) {
26
+ const tag = reader.uint32();
27
+ switch (tag >>> 3) {
28
+ case 1:
29
+ if (tag !== 10) {
30
+ break;
31
+ }
32
+ message.message = reader.string();
33
+ continue;
34
+ }
35
+ if ((tag & 7) === 4 || tag === 0) {
36
+ break;
37
+ }
38
+ reader.skipType(tag & 7);
39
+ }
40
+ return message;
41
+ },
42
+ };
11
43
  function createBaseGrpcDtoPagination() {
12
44
  return { totalItems: 0, totalPages: 0, currentPage: 0, pageSize: 0 };
13
45
  }
@@ -67,38 +99,6 @@ export const GrpcDtoPagination = {
67
99
  return message;
68
100
  },
69
101
  };
70
- function createBaseGrpcDtoMessage() {
71
- return { message: "" };
72
- }
73
- export const GrpcDtoMessage = {
74
- encode(message, writer = _m0.Writer.create()) {
75
- if (message.message !== "") {
76
- writer.uint32(10).string(message.message);
77
- }
78
- return writer;
79
- },
80
- decode(input, length) {
81
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
82
- let end = length === undefined ? reader.len : reader.pos + length;
83
- const message = createBaseGrpcDtoMessage();
84
- while (reader.pos < end) {
85
- const tag = reader.uint32();
86
- switch (tag >>> 3) {
87
- case 1:
88
- if (tag !== 10) {
89
- break;
90
- }
91
- message.message = reader.string();
92
- continue;
93
- }
94
- if ((tag & 7) === 4 || tag === 0) {
95
- break;
96
- }
97
- reader.skipType(tag & 7);
98
- }
99
- return message;
100
- },
101
- };
102
102
  function createBaseGrpcDtoPermission() {
103
103
  return { publicId: "", name: "", description: "" };
104
104
  }
@@ -119,9 +119,6 @@ export const GrpcDtoPermission = {
119
119
  if (message.updatedAt !== undefined) {
120
120
  Timestamp.encode(message.updatedAt, writer.uint32(42).fork()).ldelim();
121
121
  }
122
- if (message.deletedAt !== undefined) {
123
- Timestamp.encode(message.deletedAt, writer.uint32(50).fork()).ldelim();
124
- }
125
122
  return writer;
126
123
  },
127
124
  decode(input, length) {
@@ -161,12 +158,6 @@ export const GrpcDtoPermission = {
161
158
  }
162
159
  message.updatedAt = Timestamp.decode(reader, reader.uint32());
163
160
  continue;
164
- case 6:
165
- if (tag !== 50) {
166
- break;
167
- }
168
- message.deletedAt = Timestamp.decode(reader, reader.uint32());
169
- continue;
170
161
  }
171
162
  if ((tag & 7) === 4 || tag === 0) {
172
163
  break;
@@ -176,20 +167,26 @@ export const GrpcDtoPermission = {
176
167
  return message;
177
168
  },
178
169
  };
179
- function createBaseGrpcDtoPermissionsAdd() {
180
- return { permissions: [] };
170
+ function createBaseGrpcInputSeedPermission() {
171
+ return { name: "", description: "", scopes: [] };
181
172
  }
182
- export const GrpcDtoPermissionsAdd = {
173
+ export const GrpcInputSeedPermission = {
183
174
  encode(message, writer = _m0.Writer.create()) {
184
- for (const v of message.permissions) {
185
- GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
175
+ if (message.name !== "") {
176
+ writer.uint32(10).string(message.name);
177
+ }
178
+ if (message.description !== "") {
179
+ writer.uint32(18).string(message.description);
180
+ }
181
+ for (const v of message.scopes) {
182
+ writer.uint32(26).string(v);
186
183
  }
187
184
  return writer;
188
185
  },
189
186
  decode(input, length) {
190
187
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
191
188
  let end = length === undefined ? reader.len : reader.pos + length;
192
- const message = createBaseGrpcDtoPermissionsAdd();
189
+ const message = createBaseGrpcInputSeedPermission();
193
190
  while (reader.pos < end) {
194
191
  const tag = reader.uint32();
195
192
  switch (tag >>> 3) {
@@ -197,7 +194,19 @@ export const GrpcDtoPermissionsAdd = {
197
194
  if (tag !== 10) {
198
195
  break;
199
196
  }
200
- message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
197
+ message.name = reader.string();
198
+ continue;
199
+ case 2:
200
+ if (tag !== 18) {
201
+ break;
202
+ }
203
+ message.description = reader.string();
204
+ continue;
205
+ case 3:
206
+ if (tag !== 26) {
207
+ break;
208
+ }
209
+ message.scopes.push(reader.string());
201
210
  continue;
202
211
  }
203
212
  if ((tag & 7) === 4 || tag === 0) {
@@ -208,32 +217,20 @@ export const GrpcDtoPermissionsAdd = {
208
217
  return message;
209
218
  },
210
219
  };
211
- function createBaseGrpcDtoClientType() {
212
- return { publicId: "", name: "" };
220
+ function createBaseGrpcInputSeedPermissions() {
221
+ return { permissions: [] };
213
222
  }
214
- export const GrpcDtoClientType = {
223
+ export const GrpcInputSeedPermissions = {
215
224
  encode(message, writer = _m0.Writer.create()) {
216
- if (message.publicId !== "") {
217
- writer.uint32(10).string(message.publicId);
218
- }
219
- if (message.name !== "") {
220
- writer.uint32(18).string(message.name);
221
- }
222
- if (message.createdAt !== undefined) {
223
- Timestamp.encode(message.createdAt, writer.uint32(26).fork()).ldelim();
224
- }
225
- if (message.updatedAt !== undefined) {
226
- Timestamp.encode(message.updatedAt, writer.uint32(34).fork()).ldelim();
227
- }
228
- if (message.deletedAt !== undefined) {
229
- Timestamp.encode(message.deletedAt, writer.uint32(42).fork()).ldelim();
225
+ for (const v of message.permissions) {
226
+ GrpcInputSeedPermission.encode(v, writer.uint32(10).fork()).ldelim();
230
227
  }
231
228
  return writer;
232
229
  },
233
230
  decode(input, length) {
234
231
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
235
232
  let end = length === undefined ? reader.len : reader.pos + length;
236
- const message = createBaseGrpcDtoClientType();
233
+ const message = createBaseGrpcInputSeedPermissions();
237
234
  while (reader.pos < end) {
238
235
  const tag = reader.uint32();
239
236
  switch (tag >>> 3) {
@@ -241,31 +238,7 @@ export const GrpcDtoClientType = {
241
238
  if (tag !== 10) {
242
239
  break;
243
240
  }
244
- message.publicId = reader.string();
245
- continue;
246
- case 2:
247
- if (tag !== 18) {
248
- break;
249
- }
250
- message.name = reader.string();
251
- continue;
252
- case 3:
253
- if (tag !== 26) {
254
- break;
255
- }
256
- message.createdAt = Timestamp.decode(reader, reader.uint32());
257
- continue;
258
- case 4:
259
- if (tag !== 34) {
260
- break;
261
- }
262
- message.updatedAt = Timestamp.decode(reader, reader.uint32());
263
- continue;
264
- case 5:
265
- if (tag !== 42) {
266
- break;
267
- }
268
- message.deletedAt = Timestamp.decode(reader, reader.uint32());
241
+ message.permissions.push(GrpcInputSeedPermission.decode(reader, reader.uint32()));
269
242
  continue;
270
243
  }
271
244
  if ((tag & 7) === 4 || tag === 0) {
@@ -276,38 +249,32 @@ export const GrpcDtoClientType = {
276
249
  return message;
277
250
  },
278
251
  };
279
- function createBaseGrpcDtoClient() {
280
- return { publicId: "", name: "" };
252
+ function createBaseGrpcInputPermissions() {
253
+ return {};
281
254
  }
282
- export const GrpcDtoClient = {
255
+ export const GrpcInputPermissions = {
283
256
  encode(message, writer = _m0.Writer.create()) {
284
- if (message.publicId !== "") {
285
- writer.uint32(10).string(message.publicId);
286
- }
287
- if (message.name !== "") {
288
- writer.uint32(18).string(message.name);
289
- }
290
- if (message.description !== undefined) {
291
- writer.uint32(26).string(message.description);
257
+ if (message.search !== undefined) {
258
+ writer.uint32(10).string(message.search);
292
259
  }
293
- if (message.clientType !== undefined) {
294
- GrpcDtoClientType.encode(message.clientType, writer.uint32(34).fork()).ldelim();
260
+ if (message.page !== undefined) {
261
+ writer.uint32(16).int32(message.page);
295
262
  }
296
- if (message.createdAt !== undefined) {
297
- Timestamp.encode(message.createdAt, writer.uint32(42).fork()).ldelim();
263
+ if (message.pageSize !== undefined) {
264
+ writer.uint32(24).int32(message.pageSize);
298
265
  }
299
- if (message.updatedAt !== undefined) {
300
- Timestamp.encode(message.updatedAt, writer.uint32(50).fork()).ldelim();
266
+ if (message.sortBy !== undefined) {
267
+ writer.uint32(34).string(message.sortBy);
301
268
  }
302
- if (message.deletedAt !== undefined) {
303
- Timestamp.encode(message.deletedAt, writer.uint32(58).fork()).ldelim();
269
+ if (message.sortOrder !== undefined) {
270
+ writer.uint32(42).string(message.sortOrder);
304
271
  }
305
272
  return writer;
306
273
  },
307
274
  decode(input, length) {
308
275
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
309
276
  let end = length === undefined ? reader.len : reader.pos + length;
310
- const message = createBaseGrpcDtoClient();
277
+ const message = createBaseGrpcInputPermissions();
311
278
  while (reader.pos < end) {
312
279
  const tag = reader.uint32();
313
280
  switch (tag >>> 3) {
@@ -315,43 +282,31 @@ export const GrpcDtoClient = {
315
282
  if (tag !== 10) {
316
283
  break;
317
284
  }
318
- message.publicId = reader.string();
285
+ message.search = reader.string();
319
286
  continue;
320
287
  case 2:
321
- if (tag !== 18) {
288
+ if (tag !== 16) {
322
289
  break;
323
290
  }
324
- message.name = reader.string();
291
+ message.page = reader.int32();
325
292
  continue;
326
293
  case 3:
327
- if (tag !== 26) {
294
+ if (tag !== 24) {
328
295
  break;
329
296
  }
330
- message.description = reader.string();
297
+ message.pageSize = reader.int32();
331
298
  continue;
332
299
  case 4:
333
300
  if (tag !== 34) {
334
301
  break;
335
302
  }
336
- message.clientType = GrpcDtoClientType.decode(reader, reader.uint32());
303
+ message.sortBy = reader.string();
337
304
  continue;
338
305
  case 5:
339
306
  if (tag !== 42) {
340
307
  break;
341
308
  }
342
- message.createdAt = Timestamp.decode(reader, reader.uint32());
343
- continue;
344
- case 6:
345
- if (tag !== 50) {
346
- break;
347
- }
348
- message.updatedAt = Timestamp.decode(reader, reader.uint32());
349
- continue;
350
- case 7:
351
- if (tag !== 58) {
352
- break;
353
- }
354
- message.deletedAt = Timestamp.decode(reader, reader.uint32());
309
+ message.sortOrder = reader.string();
355
310
  continue;
356
311
  }
357
312
  if ((tag & 7) === 4 || tag === 0) {
@@ -362,23 +317,20 @@ export const GrpcDtoClient = {
362
317
  return message;
363
318
  },
364
319
  };
365
- function createBaseGrpcDtoService() {
366
- return { publicId: "", namespace: "" };
320
+ function createBaseGrpcDtoPermissions() {
321
+ return { permissions: [] };
367
322
  }
368
- export const GrpcDtoService = {
323
+ export const GrpcDtoPermissions = {
369
324
  encode(message, writer = _m0.Writer.create()) {
370
- if (message.publicId !== "") {
371
- writer.uint32(10).string(message.publicId);
372
- }
373
- if (message.namespace !== "") {
374
- writer.uint32(18).string(message.namespace);
325
+ for (const v of message.permissions) {
326
+ GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
375
327
  }
376
328
  return writer;
377
329
  },
378
330
  decode(input, length) {
379
331
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
380
332
  let end = length === undefined ? reader.len : reader.pos + length;
381
- const message = createBaseGrpcDtoService();
333
+ const message = createBaseGrpcDtoPermissions();
382
334
  while (reader.pos < end) {
383
335
  const tag = reader.uint32();
384
336
  switch (tag >>> 3) {
@@ -386,13 +338,7 @@ export const GrpcDtoService = {
386
338
  if (tag !== 10) {
387
339
  break;
388
340
  }
389
- message.publicId = reader.string();
390
- continue;
391
- case 2:
392
- if (tag !== 18) {
393
- break;
394
- }
395
- message.namespace = reader.string();
341
+ message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
396
342
  continue;
397
343
  }
398
344
  if ((tag & 7) === 4 || tag === 0) {
@@ -403,26 +349,23 @@ export const GrpcDtoService = {
403
349
  return message;
404
350
  },
405
351
  };
406
- function createBaseGrpcDtoSession() {
407
- return { publicId: "" };
352
+ function createBaseGrpcDtoPermissionsPaginated() {
353
+ return { items: [] };
408
354
  }
409
- export const GrpcDtoSession = {
355
+ export const GrpcDtoPermissionsPaginated = {
410
356
  encode(message, writer = _m0.Writer.create()) {
411
- if (message.publicId !== "") {
412
- writer.uint32(10).string(message.publicId);
413
- }
414
- if (message.service !== undefined) {
415
- GrpcDtoService.encode(message.service, writer.uint32(18).fork()).ldelim();
357
+ if (message.meta !== undefined) {
358
+ GrpcDtoPagination.encode(message.meta, writer.uint32(10).fork()).ldelim();
416
359
  }
417
- if (message.user !== undefined) {
418
- GrpcDtoUser.encode(message.user, writer.uint32(26).fork()).ldelim();
360
+ for (const v of message.items) {
361
+ GrpcDtoPermission.encode(v, writer.uint32(18).fork()).ldelim();
419
362
  }
420
363
  return writer;
421
364
  },
422
365
  decode(input, length) {
423
366
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
424
367
  let end = length === undefined ? reader.len : reader.pos + length;
425
- const message = createBaseGrpcDtoSession();
368
+ const message = createBaseGrpcDtoPermissionsPaginated();
426
369
  while (reader.pos < end) {
427
370
  const tag = reader.uint32();
428
371
  switch (tag >>> 3) {
@@ -430,19 +373,13 @@ export const GrpcDtoSession = {
430
373
  if (tag !== 10) {
431
374
  break;
432
375
  }
433
- message.publicId = reader.string();
376
+ message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
434
377
  continue;
435
378
  case 2:
436
379
  if (tag !== 18) {
437
380
  break;
438
381
  }
439
- message.service = GrpcDtoService.decode(reader, reader.uint32());
440
- continue;
441
- case 3:
442
- if (tag !== 26) {
443
- break;
444
- }
445
- message.user = GrpcDtoUser.decode(reader, reader.uint32());
382
+ message.items.push(GrpcDtoPermission.decode(reader, reader.uint32()));
446
383
  continue;
447
384
  }
448
385
  if ((tag & 7) === 4 || tag === 0) {
@@ -453,46 +390,109 @@ export const GrpcDtoSession = {
453
390
  return message;
454
391
  },
455
392
  };
456
- function createBaseGrpcDtoAuthenticate() {
457
- return {};
393
+ function createBaseGrpcDtoGeoCurrency() {
394
+ return { publicId: "", code: "", name: "", symbol: "", isBase: "", isActive: "", exchangeRate: "" };
458
395
  }
459
- export const GrpcDtoAuthenticate = {
396
+ export const GrpcDtoGeoCurrency = {
460
397
  encode(message, writer = _m0.Writer.create()) {
461
- if (message.valid !== undefined) {
462
- writer.uint32(8).bool(message.valid);
398
+ if (message.publicId !== "") {
399
+ writer.uint32(10).string(message.publicId);
463
400
  }
464
- if (message.reason !== undefined) {
465
- writer.uint32(18).string(message.reason);
401
+ if (message.code !== "") {
402
+ writer.uint32(18).string(message.code);
466
403
  }
467
- if (message.session !== undefined) {
468
- GrpcDtoSession.encode(message.session, writer.uint32(26).fork()).ldelim();
404
+ if (message.name !== "") {
405
+ writer.uint32(26).string(message.name);
406
+ }
407
+ if (message.symbol !== "") {
408
+ writer.uint32(34).string(message.symbol);
409
+ }
410
+ if (message.isBase !== "") {
411
+ writer.uint32(42).string(message.isBase);
412
+ }
413
+ if (message.isActive !== "") {
414
+ writer.uint32(50).string(message.isActive);
415
+ }
416
+ if (message.exchangeRate !== "") {
417
+ writer.uint32(58).string(message.exchangeRate);
418
+ }
419
+ if (message.createdAt !== undefined) {
420
+ Timestamp.encode(message.createdAt, writer.uint32(66).fork()).ldelim();
421
+ }
422
+ if (message.updatedAt !== undefined) {
423
+ Timestamp.encode(message.updatedAt, writer.uint32(74).fork()).ldelim();
424
+ }
425
+ if (message.deletedAt !== undefined) {
426
+ Timestamp.encode(message.deletedAt, writer.uint32(82).fork()).ldelim();
469
427
  }
470
428
  return writer;
471
429
  },
472
430
  decode(input, length) {
473
431
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
474
432
  let end = length === undefined ? reader.len : reader.pos + length;
475
- const message = createBaseGrpcDtoAuthenticate();
433
+ const message = createBaseGrpcDtoGeoCurrency();
476
434
  while (reader.pos < end) {
477
435
  const tag = reader.uint32();
478
436
  switch (tag >>> 3) {
479
437
  case 1:
480
- if (tag !== 8) {
438
+ if (tag !== 10) {
481
439
  break;
482
440
  }
483
- message.valid = reader.bool();
441
+ message.publicId = reader.string();
484
442
  continue;
485
443
  case 2:
486
444
  if (tag !== 18) {
487
445
  break;
488
446
  }
489
- message.reason = reader.string();
447
+ message.code = reader.string();
490
448
  continue;
491
449
  case 3:
492
450
  if (tag !== 26) {
493
451
  break;
494
452
  }
495
- message.session = GrpcDtoSession.decode(reader, reader.uint32());
453
+ message.name = reader.string();
454
+ continue;
455
+ case 4:
456
+ if (tag !== 34) {
457
+ break;
458
+ }
459
+ message.symbol = reader.string();
460
+ continue;
461
+ case 5:
462
+ if (tag !== 42) {
463
+ break;
464
+ }
465
+ message.isBase = reader.string();
466
+ continue;
467
+ case 6:
468
+ if (tag !== 50) {
469
+ break;
470
+ }
471
+ message.isActive = reader.string();
472
+ continue;
473
+ case 7:
474
+ if (tag !== 58) {
475
+ break;
476
+ }
477
+ message.exchangeRate = reader.string();
478
+ continue;
479
+ case 8:
480
+ if (tag !== 66) {
481
+ break;
482
+ }
483
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
484
+ continue;
485
+ case 9:
486
+ if (tag !== 74) {
487
+ break;
488
+ }
489
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
490
+ continue;
491
+ case 10:
492
+ if (tag !== 82) {
493
+ break;
494
+ }
495
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
496
496
  continue;
497
497
  }
498
498
  if ((tag & 7) === 4 || tag === 0) {
@@ -503,37 +503,91 @@ export const GrpcDtoAuthenticate = {
503
503
  return message;
504
504
  },
505
505
  };
506
- function createBaseGrpcDtoAuthorize() {
507
- return { allowed: false, reason: "" };
506
+ function createBaseGrpcDtoGeoLanguage() {
507
+ return { publicId: "", iso6391: "", iso6392: "", name: "", isActive: "" };
508
508
  }
509
- export const GrpcDtoAuthorize = {
509
+ export const GrpcDtoGeoLanguage = {
510
510
  encode(message, writer = _m0.Writer.create()) {
511
- if (message.allowed !== false) {
512
- writer.uint32(8).bool(message.allowed);
511
+ if (message.publicId !== "") {
512
+ writer.uint32(10).string(message.publicId);
513
513
  }
514
- if (message.reason !== "") {
515
- writer.uint32(18).string(message.reason);
514
+ if (message.iso6391 !== "") {
515
+ writer.uint32(18).string(message.iso6391);
516
+ }
517
+ if (message.iso6392 !== "") {
518
+ writer.uint32(26).string(message.iso6392);
519
+ }
520
+ if (message.name !== "") {
521
+ writer.uint32(34).string(message.name);
522
+ }
523
+ if (message.isActive !== "") {
524
+ writer.uint32(42).string(message.isActive);
525
+ }
526
+ if (message.createdAt !== undefined) {
527
+ Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim();
528
+ }
529
+ if (message.updatedAt !== undefined) {
530
+ Timestamp.encode(message.updatedAt, writer.uint32(58).fork()).ldelim();
531
+ }
532
+ if (message.deletedAt !== undefined) {
533
+ Timestamp.encode(message.deletedAt, writer.uint32(66).fork()).ldelim();
516
534
  }
517
535
  return writer;
518
536
  },
519
537
  decode(input, length) {
520
538
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
521
539
  let end = length === undefined ? reader.len : reader.pos + length;
522
- const message = createBaseGrpcDtoAuthorize();
540
+ const message = createBaseGrpcDtoGeoLanguage();
523
541
  while (reader.pos < end) {
524
542
  const tag = reader.uint32();
525
543
  switch (tag >>> 3) {
526
544
  case 1:
527
- if (tag !== 8) {
545
+ if (tag !== 10) {
528
546
  break;
529
547
  }
530
- message.allowed = reader.bool();
548
+ message.publicId = reader.string();
531
549
  continue;
532
550
  case 2:
533
551
  if (tag !== 18) {
534
552
  break;
535
553
  }
536
- message.reason = reader.string();
554
+ message.iso6391 = reader.string();
555
+ continue;
556
+ case 3:
557
+ if (tag !== 26) {
558
+ break;
559
+ }
560
+ message.iso6392 = reader.string();
561
+ continue;
562
+ case 4:
563
+ if (tag !== 34) {
564
+ break;
565
+ }
566
+ message.name = reader.string();
567
+ continue;
568
+ case 5:
569
+ if (tag !== 42) {
570
+ break;
571
+ }
572
+ message.isActive = reader.string();
573
+ continue;
574
+ case 6:
575
+ if (tag !== 50) {
576
+ break;
577
+ }
578
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
579
+ continue;
580
+ case 7:
581
+ if (tag !== 58) {
582
+ break;
583
+ }
584
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
585
+ continue;
586
+ case 8:
587
+ if (tag !== 66) {
588
+ break;
589
+ }
590
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
537
591
  continue;
538
592
  }
539
593
  if ((tag & 7) === 4 || tag === 0) {
@@ -544,26 +598,32 @@ export const GrpcDtoAuthorize = {
544
598
  return message;
545
599
  },
546
600
  };
547
- function createBaseGrpcInputAuthenticate() {
548
- return { accessToken: "", userAgent: "", ip: "" };
601
+ function createBaseGrpcDtoGeoTimezone() {
602
+ return { publicId: "", iana: "" };
549
603
  }
550
- export const GrpcInputAuthenticate = {
604
+ export const GrpcDtoGeoTimezone = {
551
605
  encode(message, writer = _m0.Writer.create()) {
552
- if (message.accessToken !== "") {
553
- writer.uint32(10).string(message.accessToken);
606
+ if (message.publicId !== "") {
607
+ writer.uint32(10).string(message.publicId);
554
608
  }
555
- if (message.userAgent !== "") {
556
- writer.uint32(18).string(message.userAgent);
609
+ if (message.iana !== "") {
610
+ writer.uint32(18).string(message.iana);
557
611
  }
558
- if (message.ip !== "") {
559
- writer.uint32(26).string(message.ip);
612
+ if (message.createdAt !== undefined) {
613
+ Timestamp.encode(message.createdAt, writer.uint32(26).fork()).ldelim();
614
+ }
615
+ if (message.updatedAt !== undefined) {
616
+ Timestamp.encode(message.updatedAt, writer.uint32(34).fork()).ldelim();
617
+ }
618
+ if (message.deletedAt !== undefined) {
619
+ Timestamp.encode(message.deletedAt, writer.uint32(42).fork()).ldelim();
560
620
  }
561
621
  return writer;
562
622
  },
563
623
  decode(input, length) {
564
624
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
565
625
  let end = length === undefined ? reader.len : reader.pos + length;
566
- const message = createBaseGrpcInputAuthenticate();
626
+ const message = createBaseGrpcDtoGeoTimezone();
567
627
  while (reader.pos < end) {
568
628
  const tag = reader.uint32();
569
629
  switch (tag >>> 3) {
@@ -571,19 +631,31 @@ export const GrpcInputAuthenticate = {
571
631
  if (tag !== 10) {
572
632
  break;
573
633
  }
574
- message.accessToken = reader.string();
634
+ message.publicId = reader.string();
575
635
  continue;
576
636
  case 2:
577
637
  if (tag !== 18) {
578
638
  break;
579
639
  }
580
- message.userAgent = reader.string();
640
+ message.iana = reader.string();
581
641
  continue;
582
642
  case 3:
583
643
  if (tag !== 26) {
584
644
  break;
585
645
  }
586
- message.ip = reader.string();
646
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
647
+ continue;
648
+ case 4:
649
+ if (tag !== 34) {
650
+ break;
651
+ }
652
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
653
+ continue;
654
+ case 5:
655
+ if (tag !== 42) {
656
+ break;
657
+ }
658
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
587
659
  continue;
588
660
  }
589
661
  if ((tag & 7) === 4 || tag === 0) {
@@ -594,43 +666,32 @@ export const GrpcInputAuthenticate = {
594
666
  return message;
595
667
  },
596
668
  };
597
- function createBaseGrpcInputAuthorize() {
598
- return {};
599
- }
600
- export const GrpcInputAuthorize = {
601
- encode(_, writer = _m0.Writer.create()) {
602
- return writer;
603
- },
604
- decode(input, length) {
605
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
606
- let end = length === undefined ? reader.len : reader.pos + length;
607
- const message = createBaseGrpcInputAuthorize();
608
- while (reader.pos < end) {
609
- const tag = reader.uint32();
610
- switch (tag >>> 3) {
611
- }
612
- if ((tag & 7) === 4 || tag === 0) {
613
- break;
614
- }
615
- reader.skipType(tag & 7);
616
- }
617
- return message;
618
- },
619
- };
620
- function createBaseGrpcInputPermission() {
621
- return { publicId: "" };
669
+ function createBaseGrpcDtoClientType() {
670
+ return { publicId: "", name: "" };
622
671
  }
623
- export const GrpcInputPermission = {
672
+ export const GrpcDtoClientType = {
624
673
  encode(message, writer = _m0.Writer.create()) {
625
674
  if (message.publicId !== "") {
626
675
  writer.uint32(10).string(message.publicId);
627
676
  }
677
+ if (message.name !== "") {
678
+ writer.uint32(18).string(message.name);
679
+ }
680
+ if (message.createdAt !== undefined) {
681
+ Timestamp.encode(message.createdAt, writer.uint32(26).fork()).ldelim();
682
+ }
683
+ if (message.updatedAt !== undefined) {
684
+ Timestamp.encode(message.updatedAt, writer.uint32(34).fork()).ldelim();
685
+ }
686
+ if (message.deletedAt !== undefined) {
687
+ Timestamp.encode(message.deletedAt, writer.uint32(42).fork()).ldelim();
688
+ }
628
689
  return writer;
629
690
  },
630
691
  decode(input, length) {
631
692
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
632
693
  let end = length === undefined ? reader.len : reader.pos + length;
633
- const message = createBaseGrpcInputPermission();
694
+ const message = createBaseGrpcDtoClientType();
634
695
  while (reader.pos < end) {
635
696
  const tag = reader.uint32();
636
697
  switch (tag >>> 3) {
@@ -640,6 +701,30 @@ export const GrpcInputPermission = {
640
701
  }
641
702
  message.publicId = reader.string();
642
703
  continue;
704
+ case 2:
705
+ if (tag !== 18) {
706
+ break;
707
+ }
708
+ message.name = reader.string();
709
+ continue;
710
+ case 3:
711
+ if (tag !== 26) {
712
+ break;
713
+ }
714
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
715
+ continue;
716
+ case 4:
717
+ if (tag !== 34) {
718
+ break;
719
+ }
720
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
721
+ continue;
722
+ case 5:
723
+ if (tag !== 42) {
724
+ break;
725
+ }
726
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
727
+ continue;
643
728
  }
644
729
  if ((tag & 7) === 4 || tag === 0) {
645
730
  break;
@@ -649,32 +734,38 @@ export const GrpcInputPermission = {
649
734
  return message;
650
735
  },
651
736
  };
652
- function createBaseGrpcInputPermissions() {
653
- return {};
737
+ function createBaseGrpcDtoClient() {
738
+ return { publicId: "", name: "" };
654
739
  }
655
- export const GrpcInputPermissions = {
740
+ export const GrpcDtoClient = {
656
741
  encode(message, writer = _m0.Writer.create()) {
657
- if (message.search !== undefined) {
658
- writer.uint32(10).string(message.search);
742
+ if (message.publicId !== "") {
743
+ writer.uint32(10).string(message.publicId);
659
744
  }
660
- if (message.page !== undefined) {
661
- writer.uint32(16).int32(message.page);
745
+ if (message.name !== "") {
746
+ writer.uint32(18).string(message.name);
662
747
  }
663
- if (message.pageSize !== undefined) {
664
- writer.uint32(24).int32(message.pageSize);
748
+ if (message.description !== undefined) {
749
+ writer.uint32(26).string(message.description);
665
750
  }
666
- if (message.sortBy !== undefined) {
667
- writer.uint32(34).string(message.sortBy);
751
+ if (message.clientType !== undefined) {
752
+ GrpcDtoClientType.encode(message.clientType, writer.uint32(34).fork()).ldelim();
668
753
  }
669
- if (message.sortOrder !== undefined) {
670
- writer.uint32(42).string(message.sortOrder);
754
+ if (message.createdAt !== undefined) {
755
+ Timestamp.encode(message.createdAt, writer.uint32(42).fork()).ldelim();
756
+ }
757
+ if (message.updatedAt !== undefined) {
758
+ Timestamp.encode(message.updatedAt, writer.uint32(50).fork()).ldelim();
759
+ }
760
+ if (message.deletedAt !== undefined) {
761
+ Timestamp.encode(message.deletedAt, writer.uint32(58).fork()).ldelim();
671
762
  }
672
763
  return writer;
673
764
  },
674
765
  decode(input, length) {
675
766
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
676
767
  let end = length === undefined ? reader.len : reader.pos + length;
677
- const message = createBaseGrpcInputPermissions();
768
+ const message = createBaseGrpcDtoClient();
678
769
  while (reader.pos < end) {
679
770
  const tag = reader.uint32();
680
771
  switch (tag >>> 3) {
@@ -682,31 +773,634 @@ export const GrpcInputPermissions = {
682
773
  if (tag !== 10) {
683
774
  break;
684
775
  }
685
- message.search = reader.string();
776
+ message.publicId = reader.string();
686
777
  continue;
687
778
  case 2:
688
- if (tag !== 16) {
779
+ if (tag !== 18) {
689
780
  break;
690
781
  }
691
- message.page = reader.int32();
782
+ message.name = reader.string();
692
783
  continue;
693
784
  case 3:
694
- if (tag !== 24) {
785
+ if (tag !== 26) {
695
786
  break;
696
787
  }
697
- message.pageSize = reader.int32();
788
+ message.description = reader.string();
698
789
  continue;
699
790
  case 4:
700
791
  if (tag !== 34) {
701
792
  break;
702
793
  }
703
- message.sortBy = reader.string();
794
+ message.clientType = GrpcDtoClientType.decode(reader, reader.uint32());
704
795
  continue;
705
796
  case 5:
706
797
  if (tag !== 42) {
707
798
  break;
708
799
  }
709
- message.sortOrder = reader.string();
800
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
801
+ continue;
802
+ case 6:
803
+ if (tag !== 50) {
804
+ break;
805
+ }
806
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
807
+ continue;
808
+ case 7:
809
+ if (tag !== 58) {
810
+ break;
811
+ }
812
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
813
+ continue;
814
+ }
815
+ if ((tag & 7) === 4 || tag === 0) {
816
+ break;
817
+ }
818
+ reader.skipType(tag & 7);
819
+ }
820
+ return message;
821
+ },
822
+ };
823
+ function createBaseGrpcDtoApiKey() {
824
+ return { publicId: "", key: "", revoked: "" };
825
+ }
826
+ export const GrpcDtoApiKey = {
827
+ encode(message, writer = _m0.Writer.create()) {
828
+ if (message.publicId !== "") {
829
+ writer.uint32(10).string(message.publicId);
830
+ }
831
+ if (message.key !== "") {
832
+ writer.uint32(18).string(message.key);
833
+ }
834
+ if (message.scopes !== undefined) {
835
+ writer.uint32(26).string(message.scopes);
836
+ }
837
+ if (message.revoked !== "") {
838
+ writer.uint32(34).string(message.revoked);
839
+ }
840
+ if (message.expiresAt !== undefined) {
841
+ writer.uint32(42).string(message.expiresAt);
842
+ }
843
+ if (message.expireStatus !== undefined) {
844
+ writer.uint32(50).string(message.expireStatus);
845
+ }
846
+ if (message.lastUsedAt !== undefined) {
847
+ writer.uint32(58).string(message.lastUsedAt);
848
+ }
849
+ if (message.lastUsedIp !== undefined) {
850
+ writer.uint32(66).string(message.lastUsedIp);
851
+ }
852
+ if (message.createdAt !== undefined) {
853
+ Timestamp.encode(message.createdAt, writer.uint32(74).fork()).ldelim();
854
+ }
855
+ if (message.updatedAt !== undefined) {
856
+ Timestamp.encode(message.updatedAt, writer.uint32(82).fork()).ldelim();
857
+ }
858
+ if (message.deletedAt !== undefined) {
859
+ Timestamp.encode(message.deletedAt, writer.uint32(90).fork()).ldelim();
860
+ }
861
+ if (message.service !== undefined) {
862
+ GrpcDtoService.encode(message.service, writer.uint32(98).fork()).ldelim();
863
+ }
864
+ return writer;
865
+ },
866
+ decode(input, length) {
867
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
868
+ let end = length === undefined ? reader.len : reader.pos + length;
869
+ const message = createBaseGrpcDtoApiKey();
870
+ while (reader.pos < end) {
871
+ const tag = reader.uint32();
872
+ switch (tag >>> 3) {
873
+ case 1:
874
+ if (tag !== 10) {
875
+ break;
876
+ }
877
+ message.publicId = reader.string();
878
+ continue;
879
+ case 2:
880
+ if (tag !== 18) {
881
+ break;
882
+ }
883
+ message.key = reader.string();
884
+ continue;
885
+ case 3:
886
+ if (tag !== 26) {
887
+ break;
888
+ }
889
+ message.scopes = reader.string();
890
+ continue;
891
+ case 4:
892
+ if (tag !== 34) {
893
+ break;
894
+ }
895
+ message.revoked = reader.string();
896
+ continue;
897
+ case 5:
898
+ if (tag !== 42) {
899
+ break;
900
+ }
901
+ message.expiresAt = reader.string();
902
+ continue;
903
+ case 6:
904
+ if (tag !== 50) {
905
+ break;
906
+ }
907
+ message.expireStatus = reader.string();
908
+ continue;
909
+ case 7:
910
+ if (tag !== 58) {
911
+ break;
912
+ }
913
+ message.lastUsedAt = reader.string();
914
+ continue;
915
+ case 8:
916
+ if (tag !== 66) {
917
+ break;
918
+ }
919
+ message.lastUsedIp = reader.string();
920
+ continue;
921
+ case 9:
922
+ if (tag !== 74) {
923
+ break;
924
+ }
925
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
926
+ continue;
927
+ case 10:
928
+ if (tag !== 82) {
929
+ break;
930
+ }
931
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
932
+ continue;
933
+ case 11:
934
+ if (tag !== 90) {
935
+ break;
936
+ }
937
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
938
+ continue;
939
+ case 12:
940
+ if (tag !== 98) {
941
+ break;
942
+ }
943
+ message.service = GrpcDtoService.decode(reader, reader.uint32());
944
+ continue;
945
+ }
946
+ if ((tag & 7) === 4 || tag === 0) {
947
+ break;
948
+ }
949
+ reader.skipType(tag & 7);
950
+ }
951
+ return message;
952
+ },
953
+ };
954
+ function createBaseGrpcDtoService() {
955
+ return {
956
+ publicId: "",
957
+ namespace: "",
958
+ origin: "",
959
+ resetPath: "",
960
+ captchaScoreThreshold: "",
961
+ captchaProvider: "",
962
+ apiKeys: [],
963
+ };
964
+ }
965
+ export const GrpcDtoService = {
966
+ encode(message, writer = _m0.Writer.create()) {
967
+ if (message.publicId !== "") {
968
+ writer.uint32(10).string(message.publicId);
969
+ }
970
+ if (message.namespace !== "") {
971
+ writer.uint32(18).string(message.namespace);
972
+ }
973
+ if (message.origin !== "") {
974
+ writer.uint32(26).string(message.origin);
975
+ }
976
+ if (message.resetPath !== "") {
977
+ writer.uint32(34).string(message.resetPath);
978
+ }
979
+ if (message.captchaScoreThreshold !== "") {
980
+ writer.uint32(42).string(message.captchaScoreThreshold);
981
+ }
982
+ if (message.captchaProvider !== "") {
983
+ writer.uint32(50).string(message.captchaProvider);
984
+ }
985
+ if (message.description !== undefined) {
986
+ writer.uint32(58).string(message.description);
987
+ }
988
+ if (message.defaultCurrency !== undefined) {
989
+ GrpcDtoGeoCurrency.encode(message.defaultCurrency, writer.uint32(66).fork()).ldelim();
990
+ }
991
+ if (message.defaultLanguage !== undefined) {
992
+ GrpcDtoGeoLanguage.encode(message.defaultLanguage, writer.uint32(74).fork()).ldelim();
993
+ }
994
+ if (message.defaultTimezone !== undefined) {
995
+ GrpcDtoGeoTimezone.encode(message.defaultTimezone, writer.uint32(82).fork()).ldelim();
996
+ }
997
+ for (const v of message.apiKeys) {
998
+ GrpcDtoApiKey.encode(v, writer.uint32(90).fork()).ldelim();
999
+ }
1000
+ if (message.createdAt !== undefined) {
1001
+ Timestamp.encode(message.createdAt, writer.uint32(98).fork()).ldelim();
1002
+ }
1003
+ if (message.updatedAt !== undefined) {
1004
+ Timestamp.encode(message.updatedAt, writer.uint32(106).fork()).ldelim();
1005
+ }
1006
+ if (message.deletedAt !== undefined) {
1007
+ Timestamp.encode(message.deletedAt, writer.uint32(114).fork()).ldelim();
1008
+ }
1009
+ return writer;
1010
+ },
1011
+ decode(input, length) {
1012
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1013
+ let end = length === undefined ? reader.len : reader.pos + length;
1014
+ const message = createBaseGrpcDtoService();
1015
+ while (reader.pos < end) {
1016
+ const tag = reader.uint32();
1017
+ switch (tag >>> 3) {
1018
+ case 1:
1019
+ if (tag !== 10) {
1020
+ break;
1021
+ }
1022
+ message.publicId = reader.string();
1023
+ continue;
1024
+ case 2:
1025
+ if (tag !== 18) {
1026
+ break;
1027
+ }
1028
+ message.namespace = reader.string();
1029
+ continue;
1030
+ case 3:
1031
+ if (tag !== 26) {
1032
+ break;
1033
+ }
1034
+ message.origin = reader.string();
1035
+ continue;
1036
+ case 4:
1037
+ if (tag !== 34) {
1038
+ break;
1039
+ }
1040
+ message.resetPath = reader.string();
1041
+ continue;
1042
+ case 5:
1043
+ if (tag !== 42) {
1044
+ break;
1045
+ }
1046
+ message.captchaScoreThreshold = reader.string();
1047
+ continue;
1048
+ case 6:
1049
+ if (tag !== 50) {
1050
+ break;
1051
+ }
1052
+ message.captchaProvider = reader.string();
1053
+ continue;
1054
+ case 7:
1055
+ if (tag !== 58) {
1056
+ break;
1057
+ }
1058
+ message.description = reader.string();
1059
+ continue;
1060
+ case 8:
1061
+ if (tag !== 66) {
1062
+ break;
1063
+ }
1064
+ message.defaultCurrency = GrpcDtoGeoCurrency.decode(reader, reader.uint32());
1065
+ continue;
1066
+ case 9:
1067
+ if (tag !== 74) {
1068
+ break;
1069
+ }
1070
+ message.defaultLanguage = GrpcDtoGeoLanguage.decode(reader, reader.uint32());
1071
+ continue;
1072
+ case 10:
1073
+ if (tag !== 82) {
1074
+ break;
1075
+ }
1076
+ message.defaultTimezone = GrpcDtoGeoTimezone.decode(reader, reader.uint32());
1077
+ continue;
1078
+ case 11:
1079
+ if (tag !== 90) {
1080
+ break;
1081
+ }
1082
+ message.apiKeys.push(GrpcDtoApiKey.decode(reader, reader.uint32()));
1083
+ continue;
1084
+ case 12:
1085
+ if (tag !== 98) {
1086
+ break;
1087
+ }
1088
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1089
+ continue;
1090
+ case 13:
1091
+ if (tag !== 106) {
1092
+ break;
1093
+ }
1094
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
1095
+ continue;
1096
+ case 14:
1097
+ if (tag !== 114) {
1098
+ break;
1099
+ }
1100
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
1101
+ continue;
1102
+ }
1103
+ if ((tag & 7) === 4 || tag === 0) {
1104
+ break;
1105
+ }
1106
+ reader.skipType(tag & 7);
1107
+ }
1108
+ return message;
1109
+ },
1110
+ };
1111
+ function createBaseGrpcDtoRole() {
1112
+ return { publicId: "", isAgent: false, name: "", permissions: [], users: [] };
1113
+ }
1114
+ export const GrpcDtoRole = {
1115
+ encode(message, writer = _m0.Writer.create()) {
1116
+ if (message.publicId !== "") {
1117
+ writer.uint32(10).string(message.publicId);
1118
+ }
1119
+ if (message.isAgent !== false) {
1120
+ writer.uint32(16).bool(message.isAgent);
1121
+ }
1122
+ if (message.name !== "") {
1123
+ writer.uint32(26).string(message.name);
1124
+ }
1125
+ if (message.description !== undefined) {
1126
+ writer.uint32(34).string(message.description);
1127
+ }
1128
+ if (message.createdAt !== undefined) {
1129
+ Timestamp.encode(message.createdAt, writer.uint32(42).fork()).ldelim();
1130
+ }
1131
+ if (message.updatedAt !== undefined) {
1132
+ Timestamp.encode(message.updatedAt, writer.uint32(50).fork()).ldelim();
1133
+ }
1134
+ if (message.deletedAt !== undefined) {
1135
+ Timestamp.encode(message.deletedAt, writer.uint32(58).fork()).ldelim();
1136
+ }
1137
+ if (message.service !== undefined) {
1138
+ GrpcDtoService.encode(message.service, writer.uint32(66).fork()).ldelim();
1139
+ }
1140
+ if (message.client !== undefined) {
1141
+ GrpcDtoClient.encode(message.client, writer.uint32(74).fork()).ldelim();
1142
+ }
1143
+ for (const v of message.permissions) {
1144
+ GrpcDtoPermission.encode(v, writer.uint32(82).fork()).ldelim();
1145
+ }
1146
+ for (const v of message.users) {
1147
+ GrpcDtoUser.encode(v, writer.uint32(90).fork()).ldelim();
1148
+ }
1149
+ return writer;
1150
+ },
1151
+ decode(input, length) {
1152
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1153
+ let end = length === undefined ? reader.len : reader.pos + length;
1154
+ const message = createBaseGrpcDtoRole();
1155
+ while (reader.pos < end) {
1156
+ const tag = reader.uint32();
1157
+ switch (tag >>> 3) {
1158
+ case 1:
1159
+ if (tag !== 10) {
1160
+ break;
1161
+ }
1162
+ message.publicId = reader.string();
1163
+ continue;
1164
+ case 2:
1165
+ if (tag !== 16) {
1166
+ break;
1167
+ }
1168
+ message.isAgent = reader.bool();
1169
+ continue;
1170
+ case 3:
1171
+ if (tag !== 26) {
1172
+ break;
1173
+ }
1174
+ message.name = reader.string();
1175
+ continue;
1176
+ case 4:
1177
+ if (tag !== 34) {
1178
+ break;
1179
+ }
1180
+ message.description = reader.string();
1181
+ continue;
1182
+ case 5:
1183
+ if (tag !== 42) {
1184
+ break;
1185
+ }
1186
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1187
+ continue;
1188
+ case 6:
1189
+ if (tag !== 50) {
1190
+ break;
1191
+ }
1192
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
1193
+ continue;
1194
+ case 7:
1195
+ if (tag !== 58) {
1196
+ break;
1197
+ }
1198
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
1199
+ continue;
1200
+ case 8:
1201
+ if (tag !== 66) {
1202
+ break;
1203
+ }
1204
+ message.service = GrpcDtoService.decode(reader, reader.uint32());
1205
+ continue;
1206
+ case 9:
1207
+ if (tag !== 74) {
1208
+ break;
1209
+ }
1210
+ message.client = GrpcDtoClient.decode(reader, reader.uint32());
1211
+ continue;
1212
+ case 10:
1213
+ if (tag !== 82) {
1214
+ break;
1215
+ }
1216
+ message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
1217
+ continue;
1218
+ case 11:
1219
+ if (tag !== 90) {
1220
+ break;
1221
+ }
1222
+ message.users.push(GrpcDtoUser.decode(reader, reader.uint32()));
1223
+ continue;
1224
+ }
1225
+ if ((tag & 7) === 4 || tag === 0) {
1226
+ break;
1227
+ }
1228
+ reader.skipType(tag & 7);
1229
+ }
1230
+ return message;
1231
+ },
1232
+ };
1233
+ function createBaseGrpcDtoRolePermission() {
1234
+ return { publicId: "", source: "" };
1235
+ }
1236
+ export const GrpcDtoRolePermission = {
1237
+ encode(message, writer = _m0.Writer.create()) {
1238
+ if (message.publicId !== "") {
1239
+ writer.uint32(10).string(message.publicId);
1240
+ }
1241
+ if (message.source !== "") {
1242
+ writer.uint32(18).string(message.source);
1243
+ }
1244
+ if (message.sourceFeaturePublicId !== undefined) {
1245
+ writer.uint32(26).string(message.sourceFeaturePublicId);
1246
+ }
1247
+ if (message.sourceFeaturePermissionPublicId !== undefined) {
1248
+ writer.uint32(34).string(message.sourceFeaturePermissionPublicId);
1249
+ }
1250
+ if (message.sourceSubscriptionPublicId !== undefined) {
1251
+ writer.uint32(42).string(message.sourceSubscriptionPublicId);
1252
+ }
1253
+ if (message.createdAt !== undefined) {
1254
+ Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim();
1255
+ }
1256
+ if (message.updatedAt !== undefined) {
1257
+ Timestamp.encode(message.updatedAt, writer.uint32(58).fork()).ldelim();
1258
+ }
1259
+ if (message.deletedAt !== undefined) {
1260
+ Timestamp.encode(message.deletedAt, writer.uint32(66).fork()).ldelim();
1261
+ }
1262
+ if (message.role !== undefined) {
1263
+ GrpcDtoRole.encode(message.role, writer.uint32(74).fork()).ldelim();
1264
+ }
1265
+ if (message.permission !== undefined) {
1266
+ GrpcDtoPermission.encode(message.permission, writer.uint32(82).fork()).ldelim();
1267
+ }
1268
+ return writer;
1269
+ },
1270
+ decode(input, length) {
1271
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1272
+ let end = length === undefined ? reader.len : reader.pos + length;
1273
+ const message = createBaseGrpcDtoRolePermission();
1274
+ while (reader.pos < end) {
1275
+ const tag = reader.uint32();
1276
+ switch (tag >>> 3) {
1277
+ case 1:
1278
+ if (tag !== 10) {
1279
+ break;
1280
+ }
1281
+ message.publicId = reader.string();
1282
+ continue;
1283
+ case 2:
1284
+ if (tag !== 18) {
1285
+ break;
1286
+ }
1287
+ message.source = reader.string();
1288
+ continue;
1289
+ case 3:
1290
+ if (tag !== 26) {
1291
+ break;
1292
+ }
1293
+ message.sourceFeaturePublicId = reader.string();
1294
+ continue;
1295
+ case 4:
1296
+ if (tag !== 34) {
1297
+ break;
1298
+ }
1299
+ message.sourceFeaturePermissionPublicId = reader.string();
1300
+ continue;
1301
+ case 5:
1302
+ if (tag !== 42) {
1303
+ break;
1304
+ }
1305
+ message.sourceSubscriptionPublicId = reader.string();
1306
+ continue;
1307
+ case 6:
1308
+ if (tag !== 50) {
1309
+ break;
1310
+ }
1311
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1312
+ continue;
1313
+ case 7:
1314
+ if (tag !== 58) {
1315
+ break;
1316
+ }
1317
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
1318
+ continue;
1319
+ case 8:
1320
+ if (tag !== 66) {
1321
+ break;
1322
+ }
1323
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
1324
+ continue;
1325
+ case 9:
1326
+ if (tag !== 74) {
1327
+ break;
1328
+ }
1329
+ message.role = GrpcDtoRole.decode(reader, reader.uint32());
1330
+ continue;
1331
+ case 10:
1332
+ if (tag !== 82) {
1333
+ break;
1334
+ }
1335
+ message.permission = GrpcDtoPermission.decode(reader, reader.uint32());
1336
+ continue;
1337
+ }
1338
+ if ((tag & 7) === 4 || tag === 0) {
1339
+ break;
1340
+ }
1341
+ reader.skipType(tag & 7);
1342
+ }
1343
+ return message;
1344
+ },
1345
+ };
1346
+ function createBaseGrpcDtoUserRole() {
1347
+ return { publicId: "" };
1348
+ }
1349
+ export const GrpcDtoUserRole = {
1350
+ encode(message, writer = _m0.Writer.create()) {
1351
+ if (message.publicId !== "") {
1352
+ writer.uint32(10).string(message.publicId);
1353
+ }
1354
+ if (message.user !== undefined) {
1355
+ GrpcDtoUser.encode(message.user, writer.uint32(18).fork()).ldelim();
1356
+ }
1357
+ if (message.role !== undefined) {
1358
+ GrpcDtoRole.encode(message.role, writer.uint32(26).fork()).ldelim();
1359
+ }
1360
+ if (message.createdAt !== undefined) {
1361
+ Timestamp.encode(message.createdAt, writer.uint32(34).fork()).ldelim();
1362
+ }
1363
+ if (message.updatedAt !== undefined) {
1364
+ Timestamp.encode(message.updatedAt, writer.uint32(42).fork()).ldelim();
1365
+ }
1366
+ return writer;
1367
+ },
1368
+ decode(input, length) {
1369
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1370
+ let end = length === undefined ? reader.len : reader.pos + length;
1371
+ const message = createBaseGrpcDtoUserRole();
1372
+ while (reader.pos < end) {
1373
+ const tag = reader.uint32();
1374
+ switch (tag >>> 3) {
1375
+ case 1:
1376
+ if (tag !== 10) {
1377
+ break;
1378
+ }
1379
+ message.publicId = reader.string();
1380
+ continue;
1381
+ case 2:
1382
+ if (tag !== 18) {
1383
+ break;
1384
+ }
1385
+ message.user = GrpcDtoUser.decode(reader, reader.uint32());
1386
+ continue;
1387
+ case 3:
1388
+ if (tag !== 26) {
1389
+ break;
1390
+ }
1391
+ message.role = GrpcDtoRole.decode(reader, reader.uint32());
1392
+ continue;
1393
+ case 4:
1394
+ if (tag !== 34) {
1395
+ break;
1396
+ }
1397
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1398
+ continue;
1399
+ case 5:
1400
+ if (tag !== 42) {
1401
+ break;
1402
+ }
1403
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
710
1404
  continue;
711
1405
  }
712
1406
  if ((tag & 7) === 4 || tag === 0) {
@@ -717,20 +1411,32 @@ export const GrpcInputPermissions = {
717
1411
  return message;
718
1412
  },
719
1413
  };
720
- function createBaseGrpcInputRolePermissions() {
721
- return { rolePublicId: "" };
1414
+ function createBaseGrpcDtoUserAccountType() {
1415
+ return { publicId: "", name: "" };
722
1416
  }
723
- export const GrpcInputRolePermissions = {
1417
+ export const GrpcDtoUserAccountType = {
724
1418
  encode(message, writer = _m0.Writer.create()) {
725
- if (message.rolePublicId !== "") {
726
- writer.uint32(10).string(message.rolePublicId);
1419
+ if (message.publicId !== "") {
1420
+ writer.uint32(10).string(message.publicId);
1421
+ }
1422
+ if (message.name !== "") {
1423
+ writer.uint32(18).string(message.name);
1424
+ }
1425
+ if (message.createdAt !== undefined) {
1426
+ Timestamp.encode(message.createdAt, writer.uint32(26).fork()).ldelim();
1427
+ }
1428
+ if (message.updatedAt !== undefined) {
1429
+ Timestamp.encode(message.updatedAt, writer.uint32(34).fork()).ldelim();
1430
+ }
1431
+ if (message.deletedAt !== undefined) {
1432
+ Timestamp.encode(message.deletedAt, writer.uint32(42).fork()).ldelim();
727
1433
  }
728
1434
  return writer;
729
1435
  },
730
1436
  decode(input, length) {
731
1437
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
732
1438
  let end = length === undefined ? reader.len : reader.pos + length;
733
- const message = createBaseGrpcInputRolePermissions();
1439
+ const message = createBaseGrpcDtoUserAccountType();
734
1440
  while (reader.pos < end) {
735
1441
  const tag = reader.uint32();
736
1442
  switch (tag >>> 3) {
@@ -738,7 +1444,31 @@ export const GrpcInputRolePermissions = {
738
1444
  if (tag !== 10) {
739
1445
  break;
740
1446
  }
741
- message.rolePublicId = reader.string();
1447
+ message.publicId = reader.string();
1448
+ continue;
1449
+ case 2:
1450
+ if (tag !== 18) {
1451
+ break;
1452
+ }
1453
+ message.name = reader.string();
1454
+ continue;
1455
+ case 3:
1456
+ if (tag !== 26) {
1457
+ break;
1458
+ }
1459
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1460
+ continue;
1461
+ case 4:
1462
+ if (tag !== 34) {
1463
+ break;
1464
+ }
1465
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
1466
+ continue;
1467
+ case 5:
1468
+ if (tag !== 42) {
1469
+ break;
1470
+ }
1471
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
742
1472
  continue;
743
1473
  }
744
1474
  if ((tag & 7) === 4 || tag === 0) {
@@ -749,20 +1479,254 @@ export const GrpcInputRolePermissions = {
749
1479
  return message;
750
1480
  },
751
1481
  };
752
- function createBaseGrpcInputSeedPermission() {
753
- return { name: "" };
1482
+ function createBaseGrpcDtoUser() {
1483
+ return {
1484
+ publicId: "",
1485
+ email: "",
1486
+ phone: "",
1487
+ name: "",
1488
+ status: "",
1489
+ isEmailVerified: false,
1490
+ isPhoneVerified: false,
1491
+ mfaEnabled: false,
1492
+ roles: [],
1493
+ };
754
1494
  }
755
- export const GrpcInputSeedPermission = {
1495
+ export const GrpcDtoUser = {
756
1496
  encode(message, writer = _m0.Writer.create()) {
1497
+ if (message.publicId !== "") {
1498
+ writer.uint32(10).string(message.publicId);
1499
+ }
1500
+ if (message.email !== "") {
1501
+ writer.uint32(18).string(message.email);
1502
+ }
1503
+ if (message.phone !== "") {
1504
+ writer.uint32(26).string(message.phone);
1505
+ }
757
1506
  if (message.name !== "") {
758
- writer.uint32(10).string(message.name);
1507
+ writer.uint32(34).string(message.name);
1508
+ }
1509
+ if (message.status !== "") {
1510
+ writer.uint32(42).string(message.status);
1511
+ }
1512
+ if (message.lockedAt !== undefined) {
1513
+ writer.uint32(50).string(message.lockedAt);
1514
+ }
1515
+ if (message.lockReason !== undefined) {
1516
+ writer.uint32(58).string(message.lockReason);
1517
+ }
1518
+ if (message.lastLoginAt !== undefined) {
1519
+ writer.uint32(66).string(message.lastLoginAt);
1520
+ }
1521
+ if (message.lastPasswordChangeAt !== undefined) {
1522
+ writer.uint32(74).string(message.lastPasswordChangeAt);
1523
+ }
1524
+ if (message.isEmailVerified !== false) {
1525
+ writer.uint32(80).bool(message.isEmailVerified);
1526
+ }
1527
+ if (message.isPhoneVerified !== false) {
1528
+ writer.uint32(88).bool(message.isPhoneVerified);
1529
+ }
1530
+ if (message.mfaEnabled !== false) {
1531
+ writer.uint32(96).bool(message.mfaEnabled);
1532
+ }
1533
+ if (message.userCanEdit !== undefined) {
1534
+ writer.uint32(104).bool(message.userCanEdit);
1535
+ }
1536
+ if (message.createdAt !== undefined) {
1537
+ Timestamp.encode(message.createdAt, writer.uint32(114).fork()).ldelim();
1538
+ }
1539
+ if (message.updatedAt !== undefined) {
1540
+ Timestamp.encode(message.updatedAt, writer.uint32(122).fork()).ldelim();
1541
+ }
1542
+ if (message.deletedAt !== undefined) {
1543
+ Timestamp.encode(message.deletedAt, writer.uint32(130).fork()).ldelim();
1544
+ }
1545
+ if (message.service !== undefined) {
1546
+ GrpcDtoService.encode(message.service, writer.uint32(138).fork()).ldelim();
1547
+ }
1548
+ if (message.userAccountType !== undefined) {
1549
+ GrpcDtoUserAccountType.encode(message.userAccountType, writer.uint32(146).fork()).ldelim();
1550
+ }
1551
+ if (message.language !== undefined) {
1552
+ GrpcDtoGeoLanguage.encode(message.language, writer.uint32(154).fork()).ldelim();
1553
+ }
1554
+ if (message.timezone !== undefined) {
1555
+ GrpcDtoGeoTimezone.encode(message.timezone, writer.uint32(162).fork()).ldelim();
1556
+ }
1557
+ if (message.client !== undefined) {
1558
+ GrpcDtoClient.encode(message.client, writer.uint32(170).fork()).ldelim();
1559
+ }
1560
+ for (const v of message.roles) {
1561
+ GrpcDtoUserRole.encode(v, writer.uint32(178).fork()).ldelim();
759
1562
  }
760
1563
  return writer;
761
1564
  },
762
1565
  decode(input, length) {
763
1566
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
764
1567
  let end = length === undefined ? reader.len : reader.pos + length;
765
- const message = createBaseGrpcInputSeedPermission();
1568
+ const message = createBaseGrpcDtoUser();
1569
+ while (reader.pos < end) {
1570
+ const tag = reader.uint32();
1571
+ switch (tag >>> 3) {
1572
+ case 1:
1573
+ if (tag !== 10) {
1574
+ break;
1575
+ }
1576
+ message.publicId = reader.string();
1577
+ continue;
1578
+ case 2:
1579
+ if (tag !== 18) {
1580
+ break;
1581
+ }
1582
+ message.email = reader.string();
1583
+ continue;
1584
+ case 3:
1585
+ if (tag !== 26) {
1586
+ break;
1587
+ }
1588
+ message.phone = reader.string();
1589
+ continue;
1590
+ case 4:
1591
+ if (tag !== 34) {
1592
+ break;
1593
+ }
1594
+ message.name = reader.string();
1595
+ continue;
1596
+ case 5:
1597
+ if (tag !== 42) {
1598
+ break;
1599
+ }
1600
+ message.status = reader.string();
1601
+ continue;
1602
+ case 6:
1603
+ if (tag !== 50) {
1604
+ break;
1605
+ }
1606
+ message.lockedAt = reader.string();
1607
+ continue;
1608
+ case 7:
1609
+ if (tag !== 58) {
1610
+ break;
1611
+ }
1612
+ message.lockReason = reader.string();
1613
+ continue;
1614
+ case 8:
1615
+ if (tag !== 66) {
1616
+ break;
1617
+ }
1618
+ message.lastLoginAt = reader.string();
1619
+ continue;
1620
+ case 9:
1621
+ if (tag !== 74) {
1622
+ break;
1623
+ }
1624
+ message.lastPasswordChangeAt = reader.string();
1625
+ continue;
1626
+ case 10:
1627
+ if (tag !== 80) {
1628
+ break;
1629
+ }
1630
+ message.isEmailVerified = reader.bool();
1631
+ continue;
1632
+ case 11:
1633
+ if (tag !== 88) {
1634
+ break;
1635
+ }
1636
+ message.isPhoneVerified = reader.bool();
1637
+ continue;
1638
+ case 12:
1639
+ if (tag !== 96) {
1640
+ break;
1641
+ }
1642
+ message.mfaEnabled = reader.bool();
1643
+ continue;
1644
+ case 13:
1645
+ if (tag !== 104) {
1646
+ break;
1647
+ }
1648
+ message.userCanEdit = reader.bool();
1649
+ continue;
1650
+ case 14:
1651
+ if (tag !== 114) {
1652
+ break;
1653
+ }
1654
+ message.createdAt = Timestamp.decode(reader, reader.uint32());
1655
+ continue;
1656
+ case 15:
1657
+ if (tag !== 122) {
1658
+ break;
1659
+ }
1660
+ message.updatedAt = Timestamp.decode(reader, reader.uint32());
1661
+ continue;
1662
+ case 16:
1663
+ if (tag !== 130) {
1664
+ break;
1665
+ }
1666
+ message.deletedAt = Timestamp.decode(reader, reader.uint32());
1667
+ continue;
1668
+ case 17:
1669
+ if (tag !== 138) {
1670
+ break;
1671
+ }
1672
+ message.service = GrpcDtoService.decode(reader, reader.uint32());
1673
+ continue;
1674
+ case 18:
1675
+ if (tag !== 146) {
1676
+ break;
1677
+ }
1678
+ message.userAccountType = GrpcDtoUserAccountType.decode(reader, reader.uint32());
1679
+ continue;
1680
+ case 19:
1681
+ if (tag !== 154) {
1682
+ break;
1683
+ }
1684
+ message.language = GrpcDtoGeoLanguage.decode(reader, reader.uint32());
1685
+ continue;
1686
+ case 20:
1687
+ if (tag !== 162) {
1688
+ break;
1689
+ }
1690
+ message.timezone = GrpcDtoGeoTimezone.decode(reader, reader.uint32());
1691
+ continue;
1692
+ case 21:
1693
+ if (tag !== 170) {
1694
+ break;
1695
+ }
1696
+ message.client = GrpcDtoClient.decode(reader, reader.uint32());
1697
+ continue;
1698
+ case 22:
1699
+ if (tag !== 178) {
1700
+ break;
1701
+ }
1702
+ message.roles.push(GrpcDtoUserRole.decode(reader, reader.uint32()));
1703
+ continue;
1704
+ }
1705
+ if ((tag & 7) === 4 || tag === 0) {
1706
+ break;
1707
+ }
1708
+ reader.skipType(tag & 7);
1709
+ }
1710
+ return message;
1711
+ },
1712
+ };
1713
+ function createBaseGrpcDtoRoles() {
1714
+ return { items: [] };
1715
+ }
1716
+ export const GrpcDtoRoles = {
1717
+ encode(message, writer = _m0.Writer.create()) {
1718
+ if (message.meta !== undefined) {
1719
+ GrpcDtoPagination.encode(message.meta, writer.uint32(10).fork()).ldelim();
1720
+ }
1721
+ for (const v of message.items) {
1722
+ GrpcDtoRole.encode(v, writer.uint32(18).fork()).ldelim();
1723
+ }
1724
+ return writer;
1725
+ },
1726
+ decode(input, length) {
1727
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1728
+ let end = length === undefined ? reader.len : reader.pos + length;
1729
+ const message = createBaseGrpcDtoRoles();
766
1730
  while (reader.pos < end) {
767
1731
  const tag = reader.uint32();
768
1732
  switch (tag >>> 3) {
@@ -770,7 +1734,13 @@ export const GrpcInputSeedPermission = {
770
1734
  if (tag !== 10) {
771
1735
  break;
772
1736
  }
773
- message.name = reader.string();
1737
+ message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
1738
+ continue;
1739
+ case 2:
1740
+ if (tag !== 18) {
1741
+ break;
1742
+ }
1743
+ message.items.push(GrpcDtoRole.decode(reader, reader.uint32()));
774
1744
  continue;
775
1745
  }
776
1746
  if ((tag & 7) === 4 || tag === 0) {
@@ -781,20 +1751,20 @@ export const GrpcInputSeedPermission = {
781
1751
  return message;
782
1752
  },
783
1753
  };
784
- function createBaseGrpcInputSeedPermissions() {
785
- return { permissions: [] };
1754
+ function createBaseGrpcInputRole() {
1755
+ return { publicId: "" };
786
1756
  }
787
- export const GrpcInputSeedPermissions = {
1757
+ export const GrpcInputRole = {
788
1758
  encode(message, writer = _m0.Writer.create()) {
789
- for (const v of message.permissions) {
790
- GrpcInputSeedPermission.encode(v, writer.uint32(10).fork()).ldelim();
1759
+ if (message.publicId !== "") {
1760
+ writer.uint32(10).string(message.publicId);
791
1761
  }
792
1762
  return writer;
793
1763
  },
794
1764
  decode(input, length) {
795
1765
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
796
1766
  let end = length === undefined ? reader.len : reader.pos + length;
797
- const message = createBaseGrpcInputSeedPermissions();
1767
+ const message = createBaseGrpcInputRole();
798
1768
  while (reader.pos < end) {
799
1769
  const tag = reader.uint32();
800
1770
  switch (tag >>> 3) {
@@ -802,7 +1772,7 @@ export const GrpcInputSeedPermissions = {
802
1772
  if (tag !== 10) {
803
1773
  break;
804
1774
  }
805
- message.permissions.push(GrpcInputSeedPermission.decode(reader, reader.uint32()));
1775
+ message.publicId = reader.string();
806
1776
  continue;
807
1777
  }
808
1778
  if ((tag & 7) === 4 || tag === 0) {
@@ -813,13 +1783,13 @@ export const GrpcInputSeedPermissions = {
813
1783
  return message;
814
1784
  },
815
1785
  };
816
- function createBaseGrpcInputVendorFeatures() {
817
- return { vendorPublicId: "" };
1786
+ function createBaseGrpcInputRoles() {
1787
+ return {};
818
1788
  }
819
- export const GrpcInputVendorFeatures = {
1789
+ export const GrpcInputRoles = {
820
1790
  encode(message, writer = _m0.Writer.create()) {
821
- if (message.vendorPublicId !== "") {
822
- writer.uint32(10).string(message.vendorPublicId);
1791
+ if (message.clientPublicId !== undefined) {
1792
+ writer.uint32(10).string(message.clientPublicId);
823
1793
  }
824
1794
  if (message.search !== undefined) {
825
1795
  writer.uint32(18).string(message.search);
@@ -841,7 +1811,7 @@ export const GrpcInputVendorFeatures = {
841
1811
  decode(input, length) {
842
1812
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
843
1813
  let end = length === undefined ? reader.len : reader.pos + length;
844
- const message = createBaseGrpcInputVendorFeatures();
1814
+ const message = createBaseGrpcInputRoles();
845
1815
  while (reader.pos < end) {
846
1816
  const tag = reader.uint32();
847
1817
  switch (tag >>> 3) {
@@ -849,7 +1819,7 @@ export const GrpcInputVendorFeatures = {
849
1819
  if (tag !== 10) {
850
1820
  break;
851
1821
  }
852
- message.vendorPublicId = reader.string();
1822
+ message.clientPublicId = reader.string();
853
1823
  continue;
854
1824
  case 2:
855
1825
  if (tag !== 18) {
@@ -890,35 +1860,20 @@ export const GrpcInputVendorFeatures = {
890
1860
  return message;
891
1861
  },
892
1862
  };
893
- function createBaseGrpcInputGetFeaturePermissions() {
894
- return { featurePublicId: "" };
1863
+ function createBaseGrpcInputPermission() {
1864
+ return { publicId: "" };
895
1865
  }
896
- export const GrpcInputGetFeaturePermissions = {
1866
+ export const GrpcInputPermission = {
897
1867
  encode(message, writer = _m0.Writer.create()) {
898
- if (message.featurePublicId !== "") {
899
- writer.uint32(10).string(message.featurePublicId);
900
- }
901
- if (message.search !== undefined) {
902
- writer.uint32(18).string(message.search);
903
- }
904
- if (message.page !== undefined) {
905
- writer.uint32(24).int32(message.page);
906
- }
907
- if (message.pageSize !== undefined) {
908
- writer.uint32(32).int32(message.pageSize);
909
- }
910
- if (message.sortBy !== undefined) {
911
- writer.uint32(42).string(message.sortBy);
912
- }
913
- if (message.sortOrder !== undefined) {
914
- writer.uint32(50).string(message.sortOrder);
1868
+ if (message.publicId !== "") {
1869
+ writer.uint32(10).string(message.publicId);
915
1870
  }
916
1871
  return writer;
917
1872
  },
918
1873
  decode(input, length) {
919
1874
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
920
1875
  let end = length === undefined ? reader.len : reader.pos + length;
921
- const message = createBaseGrpcInputGetFeaturePermissions();
1876
+ const message = createBaseGrpcInputPermission();
922
1877
  while (reader.pos < end) {
923
1878
  const tag = reader.uint32();
924
1879
  switch (tag >>> 3) {
@@ -926,37 +1881,71 @@ export const GrpcInputGetFeaturePermissions = {
926
1881
  if (tag !== 10) {
927
1882
  break;
928
1883
  }
929
- message.featurePublicId = reader.string();
930
- continue;
931
- case 2:
932
- if (tag !== 18) {
933
- break;
934
- }
935
- message.search = reader.string();
936
- continue;
937
- case 3:
938
- if (tag !== 24) {
939
- break;
940
- }
941
- message.page = reader.int32();
942
- continue;
943
- case 4:
944
- if (tag !== 32) {
945
- break;
946
- }
947
- message.pageSize = reader.int32();
1884
+ message.publicId = reader.string();
948
1885
  continue;
949
- case 5:
950
- if (tag !== 42) {
1886
+ }
1887
+ if ((tag & 7) === 4 || tag === 0) {
1888
+ break;
1889
+ }
1890
+ reader.skipType(tag & 7);
1891
+ }
1892
+ return message;
1893
+ },
1894
+ };
1895
+ function createBaseGrpcInputRolePermissions() {
1896
+ return { rolePublicId: "" };
1897
+ }
1898
+ export const GrpcInputRolePermissions = {
1899
+ encode(message, writer = _m0.Writer.create()) {
1900
+ if (message.rolePublicId !== "") {
1901
+ writer.uint32(10).string(message.rolePublicId);
1902
+ }
1903
+ return writer;
1904
+ },
1905
+ decode(input, length) {
1906
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1907
+ let end = length === undefined ? reader.len : reader.pos + length;
1908
+ const message = createBaseGrpcInputRolePermissions();
1909
+ while (reader.pos < end) {
1910
+ const tag = reader.uint32();
1911
+ switch (tag >>> 3) {
1912
+ case 1:
1913
+ if (tag !== 10) {
951
1914
  break;
952
1915
  }
953
- message.sortBy = reader.string();
1916
+ message.rolePublicId = reader.string();
954
1917
  continue;
955
- case 6:
956
- if (tag !== 50) {
1918
+ }
1919
+ if ((tag & 7) === 4 || tag === 0) {
1920
+ break;
1921
+ }
1922
+ reader.skipType(tag & 7);
1923
+ }
1924
+ return message;
1925
+ },
1926
+ };
1927
+ function createBaseGrpcDtoRolePermissions() {
1928
+ return { rolePermissions: [] };
1929
+ }
1930
+ export const GrpcDtoRolePermissions = {
1931
+ encode(message, writer = _m0.Writer.create()) {
1932
+ for (const v of message.rolePermissions) {
1933
+ GrpcDtoRolePermission.encode(v, writer.uint32(10).fork()).ldelim();
1934
+ }
1935
+ return writer;
1936
+ },
1937
+ decode(input, length) {
1938
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1939
+ let end = length === undefined ? reader.len : reader.pos + length;
1940
+ const message = createBaseGrpcDtoRolePermissions();
1941
+ while (reader.pos < end) {
1942
+ const tag = reader.uint32();
1943
+ switch (tag >>> 3) {
1944
+ case 1:
1945
+ if (tag !== 10) {
957
1946
  break;
958
1947
  }
959
- message.sortOrder = reader.string();
1948
+ message.rolePermissions.push(GrpcDtoRolePermission.decode(reader, reader.uint32()));
960
1949
  continue;
961
1950
  }
962
1951
  if ((tag & 7) === 4 || tag === 0) {
@@ -967,20 +1956,29 @@ export const GrpcInputGetFeaturePermissions = {
967
1956
  return message;
968
1957
  },
969
1958
  };
970
- function createBaseGrpcDtoPermissions() {
971
- return { permissions: [] };
1959
+ function createBaseGrpcInputRoleCreate() {
1960
+ return { name: "" };
972
1961
  }
973
- export const GrpcDtoPermissions = {
1962
+ export const GrpcInputRoleCreate = {
974
1963
  encode(message, writer = _m0.Writer.create()) {
975
- for (const v of message.permissions) {
976
- GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
1964
+ if (message.name !== "") {
1965
+ writer.uint32(10).string(message.name);
1966
+ }
1967
+ if (message.description !== undefined) {
1968
+ writer.uint32(18).string(message.description);
1969
+ }
1970
+ if (message.isAgent !== undefined) {
1971
+ writer.uint32(24).bool(message.isAgent);
1972
+ }
1973
+ if (message.clientPublicId !== undefined) {
1974
+ writer.uint32(34).string(message.clientPublicId);
977
1975
  }
978
1976
  return writer;
979
1977
  },
980
1978
  decode(input, length) {
981
1979
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
982
1980
  let end = length === undefined ? reader.len : reader.pos + length;
983
- const message = createBaseGrpcDtoPermissions();
1981
+ const message = createBaseGrpcInputRoleCreate();
984
1982
  while (reader.pos < end) {
985
1983
  const tag = reader.uint32();
986
1984
  switch (tag >>> 3) {
@@ -988,7 +1986,25 @@ export const GrpcDtoPermissions = {
988
1986
  if (tag !== 10) {
989
1987
  break;
990
1988
  }
991
- message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
1989
+ message.name = reader.string();
1990
+ continue;
1991
+ case 2:
1992
+ if (tag !== 18) {
1993
+ break;
1994
+ }
1995
+ message.description = reader.string();
1996
+ continue;
1997
+ case 3:
1998
+ if (tag !== 24) {
1999
+ break;
2000
+ }
2001
+ message.isAgent = reader.bool();
2002
+ continue;
2003
+ case 4:
2004
+ if (tag !== 34) {
2005
+ break;
2006
+ }
2007
+ message.clientPublicId = reader.string();
992
2008
  continue;
993
2009
  }
994
2010
  if ((tag & 7) === 4 || tag === 0) {
@@ -999,26 +2015,29 @@ export const GrpcDtoPermissions = {
999
2015
  return message;
1000
2016
  },
1001
2017
  };
1002
- function createBaseGrpcDtoRolePermission() {
2018
+ function createBaseGrpcInputRoleUpdate() {
1003
2019
  return { publicId: "" };
1004
2020
  }
1005
- export const GrpcDtoRolePermission = {
2021
+ export const GrpcInputRoleUpdate = {
1006
2022
  encode(message, writer = _m0.Writer.create()) {
1007
2023
  if (message.publicId !== "") {
1008
2024
  writer.uint32(10).string(message.publicId);
1009
2025
  }
1010
- if (message.permission !== undefined) {
1011
- GrpcDtoPermission.encode(message.permission, writer.uint32(18).fork()).ldelim();
2026
+ if (message.name !== undefined) {
2027
+ writer.uint32(18).string(message.name);
1012
2028
  }
1013
- if (message.role !== undefined) {
1014
- GrpcDtoRole.encode(message.role, writer.uint32(26).fork()).ldelim();
2029
+ if (message.description !== undefined) {
2030
+ writer.uint32(26).string(message.description);
2031
+ }
2032
+ if (message.isAgent !== undefined) {
2033
+ writer.uint32(32).bool(message.isAgent);
1015
2034
  }
1016
2035
  return writer;
1017
2036
  },
1018
2037
  decode(input, length) {
1019
2038
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1020
2039
  let end = length === undefined ? reader.len : reader.pos + length;
1021
- const message = createBaseGrpcDtoRolePermission();
2040
+ const message = createBaseGrpcInputRoleUpdate();
1022
2041
  while (reader.pos < end) {
1023
2042
  const tag = reader.uint32();
1024
2043
  switch (tag >>> 3) {
@@ -1032,13 +2051,19 @@ export const GrpcDtoRolePermission = {
1032
2051
  if (tag !== 18) {
1033
2052
  break;
1034
2053
  }
1035
- message.permission = GrpcDtoPermission.decode(reader, reader.uint32());
2054
+ message.name = reader.string();
1036
2055
  continue;
1037
2056
  case 3:
1038
2057
  if (tag !== 26) {
1039
2058
  break;
1040
2059
  }
1041
- message.role = GrpcDtoRole.decode(reader, reader.uint32());
2060
+ message.description = reader.string();
2061
+ continue;
2062
+ case 4:
2063
+ if (tag !== 32) {
2064
+ break;
2065
+ }
2066
+ message.isAgent = reader.bool();
1042
2067
  continue;
1043
2068
  }
1044
2069
  if ((tag & 7) === 4 || tag === 0) {
@@ -1049,20 +2074,20 @@ export const GrpcDtoRolePermission = {
1049
2074
  return message;
1050
2075
  },
1051
2076
  };
1052
- function createBaseGrpcDtoRolePermissions() {
1053
- return { rolePermissions: [] };
2077
+ function createBaseGrpcInputRoleRecycle() {
2078
+ return { publicIds: [] };
1054
2079
  }
1055
- export const GrpcDtoRolePermissions = {
2080
+ export const GrpcInputRoleRecycle = {
1056
2081
  encode(message, writer = _m0.Writer.create()) {
1057
- for (const v of message.rolePermissions) {
1058
- GrpcDtoRolePermission.encode(v, writer.uint32(10).fork()).ldelim();
2082
+ for (const v of message.publicIds) {
2083
+ writer.uint32(10).string(v);
1059
2084
  }
1060
2085
  return writer;
1061
2086
  },
1062
2087
  decode(input, length) {
1063
2088
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1064
2089
  let end = length === undefined ? reader.len : reader.pos + length;
1065
- const message = createBaseGrpcDtoRolePermissions();
2090
+ const message = createBaseGrpcInputRoleRecycle();
1066
2091
  while (reader.pos < end) {
1067
2092
  const tag = reader.uint32();
1068
2093
  switch (tag >>> 3) {
@@ -1070,7 +2095,7 @@ export const GrpcDtoRolePermissions = {
1070
2095
  if (tag !== 10) {
1071
2096
  break;
1072
2097
  }
1073
- message.rolePermissions.push(GrpcDtoRolePermission.decode(reader, reader.uint32()));
2098
+ message.publicIds.push(reader.string());
1074
2099
  continue;
1075
2100
  }
1076
2101
  if ((tag & 7) === 4 || tag === 0) {
@@ -1081,23 +2106,20 @@ export const GrpcDtoRolePermissions = {
1081
2106
  return message;
1082
2107
  },
1083
2108
  };
1084
- function createBaseGrpcDtoPermissionsPaginated() {
1085
- return { items: [] };
2109
+ function createBaseGrpcInputRoleRestore() {
2110
+ return { publicIds: [] };
1086
2111
  }
1087
- export const GrpcDtoPermissionsPaginated = {
2112
+ export const GrpcInputRoleRestore = {
1088
2113
  encode(message, writer = _m0.Writer.create()) {
1089
- for (const v of message.items) {
1090
- GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
1091
- }
1092
- if (message.meta !== undefined) {
1093
- GrpcDtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
2114
+ for (const v of message.publicIds) {
2115
+ writer.uint32(10).string(v);
1094
2116
  }
1095
2117
  return writer;
1096
2118
  },
1097
2119
  decode(input, length) {
1098
2120
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1099
2121
  let end = length === undefined ? reader.len : reader.pos + length;
1100
- const message = createBaseGrpcDtoPermissionsPaginated();
2122
+ const message = createBaseGrpcInputRoleRestore();
1101
2123
  while (reader.pos < end) {
1102
2124
  const tag = reader.uint32();
1103
2125
  switch (tag >>> 3) {
@@ -1105,13 +2127,7 @@ export const GrpcDtoPermissionsPaginated = {
1105
2127
  if (tag !== 10) {
1106
2128
  break;
1107
2129
  }
1108
- message.items.push(GrpcDtoPermission.decode(reader, reader.uint32()));
1109
- continue;
1110
- case 2:
1111
- if (tag !== 18) {
1112
- break;
1113
- }
1114
- message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
2130
+ message.publicIds.push(reader.string());
1115
2131
  continue;
1116
2132
  }
1117
2133
  if ((tag & 7) === 4 || tag === 0) {
@@ -1122,29 +2138,32 @@ export const GrpcDtoPermissionsPaginated = {
1122
2138
  return message;
1123
2139
  },
1124
2140
  };
1125
- function createBaseGrpcDtoVendorFeature() {
1126
- return { publicId: "", name: "" };
2141
+ function createBaseGrpcInputRolePermissionsAdd() {
2142
+ return { publicId: "", permissionIds: [], sourceFeaturePermissionPublicIds: [] };
1127
2143
  }
1128
- export const GrpcDtoVendorFeature = {
2144
+ export const GrpcInputRolePermissionsAdd = {
1129
2145
  encode(message, writer = _m0.Writer.create()) {
1130
2146
  if (message.publicId !== "") {
1131
2147
  writer.uint32(10).string(message.publicId);
1132
2148
  }
1133
- if (message.name !== "") {
1134
- writer.uint32(18).string(message.name);
2149
+ if (message.source !== undefined) {
2150
+ writer.uint32(18).string(message.source);
1135
2151
  }
1136
- if (message.description !== undefined) {
1137
- writer.uint32(26).string(message.description);
2152
+ if (message.sourceFeaturePublicId !== undefined) {
2153
+ writer.uint32(26).string(message.sourceFeaturePublicId);
1138
2154
  }
1139
- if (message.permissionsCount !== undefined) {
1140
- writer.uint32(32).int32(message.permissionsCount);
2155
+ for (const v of message.permissionIds) {
2156
+ writer.uint32(34).string(v);
2157
+ }
2158
+ for (const v of message.sourceFeaturePermissionPublicIds) {
2159
+ writer.uint32(42).string(v);
1141
2160
  }
1142
2161
  return writer;
1143
2162
  },
1144
2163
  decode(input, length) {
1145
2164
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1146
2165
  let end = length === undefined ? reader.len : reader.pos + length;
1147
- const message = createBaseGrpcDtoVendorFeature();
2166
+ const message = createBaseGrpcInputRolePermissionsAdd();
1148
2167
  while (reader.pos < end) {
1149
2168
  const tag = reader.uint32();
1150
2169
  switch (tag >>> 3) {
@@ -1158,19 +2177,25 @@ export const GrpcDtoVendorFeature = {
1158
2177
  if (tag !== 18) {
1159
2178
  break;
1160
2179
  }
1161
- message.name = reader.string();
2180
+ message.source = reader.string();
1162
2181
  continue;
1163
2182
  case 3:
1164
2183
  if (tag !== 26) {
1165
2184
  break;
1166
2185
  }
1167
- message.description = reader.string();
2186
+ message.sourceFeaturePublicId = reader.string();
1168
2187
  continue;
1169
2188
  case 4:
1170
- if (tag !== 32) {
2189
+ if (tag !== 34) {
2190
+ break;
2191
+ }
2192
+ message.permissionIds.push(reader.string());
2193
+ continue;
2194
+ case 5:
2195
+ if (tag !== 42) {
1171
2196
  break;
1172
2197
  }
1173
- message.permissionsCount = reader.int32();
2198
+ message.sourceFeaturePermissionPublicIds.push(reader.string());
1174
2199
  continue;
1175
2200
  }
1176
2201
  if ((tag & 7) === 4 || tag === 0) {
@@ -1181,23 +2206,20 @@ export const GrpcDtoVendorFeature = {
1181
2206
  return message;
1182
2207
  },
1183
2208
  };
1184
- function createBaseGrpcDtoVendorFeatures() {
1185
- return { items: [] };
2209
+ function createBaseGrpcDtoPermissionsAdd() {
2210
+ return { permissions: [] };
1186
2211
  }
1187
- export const GrpcDtoVendorFeatures = {
2212
+ export const GrpcDtoPermissionsAdd = {
1188
2213
  encode(message, writer = _m0.Writer.create()) {
1189
- for (const v of message.items) {
1190
- GrpcDtoVendorFeature.encode(v, writer.uint32(10).fork()).ldelim();
1191
- }
1192
- if (message.meta !== undefined) {
1193
- GrpcDtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
2214
+ for (const v of message.permissions) {
2215
+ GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
1194
2216
  }
1195
2217
  return writer;
1196
2218
  },
1197
2219
  decode(input, length) {
1198
2220
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1199
2221
  let end = length === undefined ? reader.len : reader.pos + length;
1200
- const message = createBaseGrpcDtoVendorFeatures();
2222
+ const message = createBaseGrpcDtoPermissionsAdd();
1201
2223
  while (reader.pos < end) {
1202
2224
  const tag = reader.uint32();
1203
2225
  switch (tag >>> 3) {
@@ -1205,13 +2227,7 @@ export const GrpcDtoVendorFeatures = {
1205
2227
  if (tag !== 10) {
1206
2228
  break;
1207
2229
  }
1208
- message.items.push(GrpcDtoVendorFeature.decode(reader, reader.uint32()));
1209
- continue;
1210
- case 2:
1211
- if (tag !== 18) {
1212
- break;
1213
- }
1214
- message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
2230
+ message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
1215
2231
  continue;
1216
2232
  }
1217
2233
  if ((tag & 7) === 4 || tag === 0) {
@@ -1222,23 +2238,23 @@ export const GrpcDtoVendorFeatures = {
1222
2238
  return message;
1223
2239
  },
1224
2240
  };
1225
- function createBaseGrpcDtoFeaturePermissions() {
1226
- return { items: [] };
2241
+ function createBaseGrpcInputRolePermissionsRemove() {
2242
+ return { publicRolePermissionIds: [], reason: "" };
1227
2243
  }
1228
- export const GrpcDtoFeaturePermissions = {
2244
+ export const GrpcInputRolePermissionsRemove = {
1229
2245
  encode(message, writer = _m0.Writer.create()) {
1230
- for (const v of message.items) {
1231
- GrpcDtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
2246
+ for (const v of message.publicRolePermissionIds) {
2247
+ writer.uint32(10).string(v);
1232
2248
  }
1233
- if (message.meta !== undefined) {
1234
- GrpcDtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
2249
+ if (message.reason !== "") {
2250
+ writer.uint32(18).string(message.reason);
1235
2251
  }
1236
2252
  return writer;
1237
2253
  },
1238
2254
  decode(input, length) {
1239
2255
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1240
2256
  let end = length === undefined ? reader.len : reader.pos + length;
1241
- const message = createBaseGrpcDtoFeaturePermissions();
2257
+ const message = createBaseGrpcInputRolePermissionsRemove();
1242
2258
  while (reader.pos < end) {
1243
2259
  const tag = reader.uint32();
1244
2260
  switch (tag >>> 3) {
@@ -1246,13 +2262,13 @@ export const GrpcDtoFeaturePermissions = {
1246
2262
  if (tag !== 10) {
1247
2263
  break;
1248
2264
  }
1249
- message.items.push(GrpcDtoPermission.decode(reader, reader.uint32()));
2265
+ message.publicRolePermissionIds.push(reader.string());
1250
2266
  continue;
1251
2267
  case 2:
1252
2268
  if (tag !== 18) {
1253
2269
  break;
1254
2270
  }
1255
- message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
2271
+ message.reason = reader.string();
1256
2272
  continue;
1257
2273
  }
1258
2274
  if ((tag & 7) === 4 || tag === 0) {
@@ -1263,35 +2279,29 @@ export const GrpcDtoFeaturePermissions = {
1263
2279
  return message;
1264
2280
  },
1265
2281
  };
1266
- function createBaseGrpcInputRoles() {
1267
- return { page: 0, pageSize: 0 };
2282
+ function createBaseGrpcInputAuthNZ() {
2283
+ return { userAgent: "", ip: "", permissionName: "", permissionScopes: [] };
1268
2284
  }
1269
- export const GrpcInputRoles = {
2285
+ export const GrpcInputAuthNZ = {
1270
2286
  encode(message, writer = _m0.Writer.create()) {
1271
- if (message.clientPublicId !== undefined) {
1272
- writer.uint32(10).string(message.clientPublicId);
1273
- }
1274
- if (message.search !== undefined) {
1275
- writer.uint32(18).string(message.search);
1276
- }
1277
- if (message.page !== 0) {
1278
- writer.uint32(24).int32(message.page);
2287
+ if (message.userAgent !== "") {
2288
+ writer.uint32(10).string(message.userAgent);
1279
2289
  }
1280
- if (message.pageSize !== 0) {
1281
- writer.uint32(32).int32(message.pageSize);
2290
+ if (message.ip !== "") {
2291
+ writer.uint32(18).string(message.ip);
1282
2292
  }
1283
- if (message.sortBy !== undefined) {
1284
- writer.uint32(42).string(message.sortBy);
2293
+ if (message.permissionName !== "") {
2294
+ writer.uint32(26).string(message.permissionName);
1285
2295
  }
1286
- if (message.sortOrder !== undefined) {
1287
- writer.uint32(50).string(message.sortOrder);
2296
+ for (const v of message.permissionScopes) {
2297
+ writer.uint32(34).string(v);
1288
2298
  }
1289
2299
  return writer;
1290
2300
  },
1291
2301
  decode(input, length) {
1292
2302
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1293
2303
  let end = length === undefined ? reader.len : reader.pos + length;
1294
- const message = createBaseGrpcInputRoles();
2304
+ const message = createBaseGrpcInputAuthNZ();
1295
2305
  while (reader.pos < end) {
1296
2306
  const tag = reader.uint32();
1297
2307
  switch (tag >>> 3) {
@@ -1299,37 +2309,25 @@ export const GrpcInputRoles = {
1299
2309
  if (tag !== 10) {
1300
2310
  break;
1301
2311
  }
1302
- message.clientPublicId = reader.string();
2312
+ message.userAgent = reader.string();
1303
2313
  continue;
1304
2314
  case 2:
1305
2315
  if (tag !== 18) {
1306
2316
  break;
1307
2317
  }
1308
- message.search = reader.string();
2318
+ message.ip = reader.string();
1309
2319
  continue;
1310
2320
  case 3:
1311
- if (tag !== 24) {
2321
+ if (tag !== 26) {
1312
2322
  break;
1313
2323
  }
1314
- message.page = reader.int32();
2324
+ message.permissionName = reader.string();
1315
2325
  continue;
1316
2326
  case 4:
1317
- if (tag !== 32) {
1318
- break;
1319
- }
1320
- message.pageSize = reader.int32();
1321
- continue;
1322
- case 5:
1323
- if (tag !== 42) {
1324
- break;
1325
- }
1326
- message.sortBy = reader.string();
1327
- continue;
1328
- case 6:
1329
- if (tag !== 50) {
2327
+ if (tag !== 34) {
1330
2328
  break;
1331
2329
  }
1332
- message.sortOrder = reader.string();
2330
+ message.permissionScopes.push(reader.string());
1333
2331
  continue;
1334
2332
  }
1335
2333
  if ((tag & 7) === 4 || tag === 0) {
@@ -1340,28 +2338,46 @@ export const GrpcInputRoles = {
1340
2338
  return message;
1341
2339
  },
1342
2340
  };
1343
- function createBaseGrpcInputRole() {
1344
- return { publicId: "" };
2341
+ function createBaseGrpcDtoAuthNZ() {
2342
+ return {};
1345
2343
  }
1346
- export const GrpcInputRole = {
2344
+ export const GrpcDtoAuthNZ = {
1347
2345
  encode(message, writer = _m0.Writer.create()) {
1348
- if (message.publicId !== "") {
1349
- writer.uint32(10).string(message.publicId);
2346
+ if (message.valid !== undefined) {
2347
+ writer.uint32(8).bool(message.valid);
2348
+ }
2349
+ if (message.reason !== undefined) {
2350
+ writer.uint32(18).string(message.reason);
2351
+ }
2352
+ if (message.identity !== undefined) {
2353
+ GrpcDtoIdentity.encode(message.identity, writer.uint32(26).fork()).ldelim();
1350
2354
  }
1351
2355
  return writer;
1352
2356
  },
1353
2357
  decode(input, length) {
1354
2358
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1355
2359
  let end = length === undefined ? reader.len : reader.pos + length;
1356
- const message = createBaseGrpcInputRole();
2360
+ const message = createBaseGrpcDtoAuthNZ();
1357
2361
  while (reader.pos < end) {
1358
2362
  const tag = reader.uint32();
1359
2363
  switch (tag >>> 3) {
1360
2364
  case 1:
1361
- if (tag !== 10) {
2365
+ if (tag !== 8) {
1362
2366
  break;
1363
2367
  }
1364
- message.publicId = reader.string();
2368
+ message.valid = reader.bool();
2369
+ continue;
2370
+ case 2:
2371
+ if (tag !== 18) {
2372
+ break;
2373
+ }
2374
+ message.reason = reader.string();
2375
+ continue;
2376
+ case 3:
2377
+ if (tag !== 26) {
2378
+ break;
2379
+ }
2380
+ message.identity = GrpcDtoIdentity.decode(reader, reader.uint32());
1365
2381
  continue;
1366
2382
  }
1367
2383
  if ((tag & 7) === 4 || tag === 0) {
@@ -1372,29 +2388,35 @@ export const GrpcInputRole = {
1372
2388
  return message;
1373
2389
  },
1374
2390
  };
1375
- function createBaseGrpcInputRoleCreate() {
1376
- return { name: "" };
2391
+ function createBaseGrpcDtoIdentity() {
2392
+ return { roles: [] };
1377
2393
  }
1378
- export const GrpcInputRoleCreate = {
2394
+ export const GrpcDtoIdentity = {
1379
2395
  encode(message, writer = _m0.Writer.create()) {
1380
- if (message.name !== "") {
1381
- writer.uint32(10).string(message.name);
2396
+ if (message.session !== undefined) {
2397
+ GrpcDtoIdentitySession.encode(message.session, writer.uint32(10).fork()).ldelim();
1382
2398
  }
1383
- if (message.description !== undefined) {
1384
- writer.uint32(18).string(message.description);
2399
+ if (message.service !== undefined) {
2400
+ GrpcDtoIdentityService.encode(message.service, writer.uint32(18).fork()).ldelim();
1385
2401
  }
1386
- if (message.isAgent !== undefined) {
1387
- writer.uint32(24).bool(message.isAgent);
2402
+ if (message.user !== undefined) {
2403
+ GrpcDtoIdentityUser.encode(message.user, writer.uint32(26).fork()).ldelim();
1388
2404
  }
1389
- if (message.clientPublicId !== undefined) {
1390
- writer.uint32(34).string(message.clientPublicId);
2405
+ if (message.agent !== undefined) {
2406
+ GrpcDtoIdentityAgent.encode(message.agent, writer.uint32(34).fork()).ldelim();
2407
+ }
2408
+ if (message.client !== undefined) {
2409
+ GrpcDtoIdentityClient.encode(message.client, writer.uint32(42).fork()).ldelim();
2410
+ }
2411
+ for (const v of message.roles) {
2412
+ GrpcDtoIdentityRole.encode(v, writer.uint32(50).fork()).ldelim();
1391
2413
  }
1392
2414
  return writer;
1393
2415
  },
1394
2416
  decode(input, length) {
1395
2417
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1396
2418
  let end = length === undefined ? reader.len : reader.pos + length;
1397
- const message = createBaseGrpcInputRoleCreate();
2419
+ const message = createBaseGrpcDtoIdentity();
1398
2420
  while (reader.pos < end) {
1399
2421
  const tag = reader.uint32();
1400
2422
  switch (tag >>> 3) {
@@ -1402,25 +2424,37 @@ export const GrpcInputRoleCreate = {
1402
2424
  if (tag !== 10) {
1403
2425
  break;
1404
2426
  }
1405
- message.name = reader.string();
2427
+ message.session = GrpcDtoIdentitySession.decode(reader, reader.uint32());
1406
2428
  continue;
1407
2429
  case 2:
1408
2430
  if (tag !== 18) {
1409
2431
  break;
1410
2432
  }
1411
- message.description = reader.string();
2433
+ message.service = GrpcDtoIdentityService.decode(reader, reader.uint32());
1412
2434
  continue;
1413
2435
  case 3:
1414
- if (tag !== 24) {
2436
+ if (tag !== 26) {
1415
2437
  break;
1416
2438
  }
1417
- message.isAgent = reader.bool();
2439
+ message.user = GrpcDtoIdentityUser.decode(reader, reader.uint32());
1418
2440
  continue;
1419
2441
  case 4:
1420
2442
  if (tag !== 34) {
1421
2443
  break;
1422
2444
  }
1423
- message.clientPublicId = reader.string();
2445
+ message.agent = GrpcDtoIdentityAgent.decode(reader, reader.uint32());
2446
+ continue;
2447
+ case 5:
2448
+ if (tag !== 42) {
2449
+ break;
2450
+ }
2451
+ message.client = GrpcDtoIdentityClient.decode(reader, reader.uint32());
2452
+ continue;
2453
+ case 6:
2454
+ if (tag !== 50) {
2455
+ break;
2456
+ }
2457
+ message.roles.push(GrpcDtoIdentityRole.decode(reader, reader.uint32()));
1424
2458
  continue;
1425
2459
  }
1426
2460
  if ((tag & 7) === 4 || tag === 0) {
@@ -1431,29 +2465,23 @@ export const GrpcInputRoleCreate = {
1431
2465
  return message;
1432
2466
  },
1433
2467
  };
1434
- function createBaseGrpcInputRoleUpdate() {
2468
+ function createBaseGrpcDtoIdentitySession() {
1435
2469
  return { publicId: "" };
1436
2470
  }
1437
- export const GrpcInputRoleUpdate = {
2471
+ export const GrpcDtoIdentitySession = {
1438
2472
  encode(message, writer = _m0.Writer.create()) {
1439
2473
  if (message.publicId !== "") {
1440
2474
  writer.uint32(10).string(message.publicId);
1441
2475
  }
1442
- if (message.name !== undefined) {
1443
- writer.uint32(18).string(message.name);
1444
- }
1445
- if (message.description !== undefined) {
1446
- writer.uint32(26).string(message.description);
1447
- }
1448
- if (message.isAgent !== undefined) {
1449
- writer.uint32(32).bool(message.isAgent);
2476
+ if (message.expiresAt !== undefined) {
2477
+ Timestamp.encode(message.expiresAt, writer.uint32(18).fork()).ldelim();
1450
2478
  }
1451
2479
  return writer;
1452
2480
  },
1453
2481
  decode(input, length) {
1454
2482
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1455
2483
  let end = length === undefined ? reader.len : reader.pos + length;
1456
- const message = createBaseGrpcInputRoleUpdate();
2484
+ const message = createBaseGrpcDtoIdentitySession();
1457
2485
  while (reader.pos < end) {
1458
2486
  const tag = reader.uint32();
1459
2487
  switch (tag >>> 3) {
@@ -1467,19 +2495,7 @@ export const GrpcInputRoleUpdate = {
1467
2495
  if (tag !== 18) {
1468
2496
  break;
1469
2497
  }
1470
- message.name = reader.string();
1471
- continue;
1472
- case 3:
1473
- if (tag !== 26) {
1474
- break;
1475
- }
1476
- message.description = reader.string();
1477
- continue;
1478
- case 4:
1479
- if (tag !== 32) {
1480
- break;
1481
- }
1482
- message.isAgent = reader.bool();
2498
+ message.expiresAt = Timestamp.decode(reader, reader.uint32());
1483
2499
  continue;
1484
2500
  }
1485
2501
  if ((tag & 7) === 4 || tag === 0) {
@@ -1490,20 +2506,32 @@ export const GrpcInputRoleUpdate = {
1490
2506
  return message;
1491
2507
  },
1492
2508
  };
1493
- function createBaseGrpcInputRoleRecycle() {
1494
- return { publicIds: [] };
2509
+ function createBaseGrpcDtoIdentityService() {
2510
+ return { publicId: "", namespace: "" };
1495
2511
  }
1496
- export const GrpcInputRoleRecycle = {
2512
+ export const GrpcDtoIdentityService = {
1497
2513
  encode(message, writer = _m0.Writer.create()) {
1498
- for (const v of message.publicIds) {
1499
- writer.uint32(10).string(v);
2514
+ if (message.publicId !== "") {
2515
+ writer.uint32(10).string(message.publicId);
2516
+ }
2517
+ if (message.namespace !== "") {
2518
+ writer.uint32(18).string(message.namespace);
2519
+ }
2520
+ if (message.defaultLanguage !== undefined) {
2521
+ GrpcDtoIdentityGeoLanguage.encode(message.defaultLanguage, writer.uint32(26).fork()).ldelim();
2522
+ }
2523
+ if (message.defaultTimezone !== undefined) {
2524
+ GrpcDtoIdentityGeoTimezone.encode(message.defaultTimezone, writer.uint32(34).fork()).ldelim();
2525
+ }
2526
+ if (message.defaultCurrency !== undefined) {
2527
+ GrpcDtoIdentityGeoCurrency.encode(message.defaultCurrency, writer.uint32(42).fork()).ldelim();
1500
2528
  }
1501
2529
  return writer;
1502
2530
  },
1503
2531
  decode(input, length) {
1504
2532
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1505
2533
  let end = length === undefined ? reader.len : reader.pos + length;
1506
- const message = createBaseGrpcInputRoleRecycle();
2534
+ const message = createBaseGrpcDtoIdentityService();
1507
2535
  while (reader.pos < end) {
1508
2536
  const tag = reader.uint32();
1509
2537
  switch (tag >>> 3) {
@@ -1511,7 +2539,31 @@ export const GrpcInputRoleRecycle = {
1511
2539
  if (tag !== 10) {
1512
2540
  break;
1513
2541
  }
1514
- message.publicIds.push(reader.string());
2542
+ message.publicId = reader.string();
2543
+ continue;
2544
+ case 2:
2545
+ if (tag !== 18) {
2546
+ break;
2547
+ }
2548
+ message.namespace = reader.string();
2549
+ continue;
2550
+ case 3:
2551
+ if (tag !== 26) {
2552
+ break;
2553
+ }
2554
+ message.defaultLanguage = GrpcDtoIdentityGeoLanguage.decode(reader, reader.uint32());
2555
+ continue;
2556
+ case 4:
2557
+ if (tag !== 34) {
2558
+ break;
2559
+ }
2560
+ message.defaultTimezone = GrpcDtoIdentityGeoTimezone.decode(reader, reader.uint32());
2561
+ continue;
2562
+ case 5:
2563
+ if (tag !== 42) {
2564
+ break;
2565
+ }
2566
+ message.defaultCurrency = GrpcDtoIdentityGeoCurrency.decode(reader, reader.uint32());
1515
2567
  continue;
1516
2568
  }
1517
2569
  if ((tag & 7) === 4 || tag === 0) {
@@ -1522,20 +2574,26 @@ export const GrpcInputRoleRecycle = {
1522
2574
  return message;
1523
2575
  },
1524
2576
  };
1525
- function createBaseGrpcInputRoleRestore() {
1526
- return { publicIds: [] };
2577
+ function createBaseGrpcDtoIdentityGeoLanguage() {
2578
+ return { publicId: "", iso6391: "", name: "" };
1527
2579
  }
1528
- export const GrpcInputRoleRestore = {
2580
+ export const GrpcDtoIdentityGeoLanguage = {
1529
2581
  encode(message, writer = _m0.Writer.create()) {
1530
- for (const v of message.publicIds) {
1531
- writer.uint32(10).string(v);
2582
+ if (message.publicId !== "") {
2583
+ writer.uint32(10).string(message.publicId);
2584
+ }
2585
+ if (message.iso6391 !== "") {
2586
+ writer.uint32(18).string(message.iso6391);
2587
+ }
2588
+ if (message.name !== "") {
2589
+ writer.uint32(26).string(message.name);
1532
2590
  }
1533
2591
  return writer;
1534
2592
  },
1535
2593
  decode(input, length) {
1536
2594
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1537
2595
  let end = length === undefined ? reader.len : reader.pos + length;
1538
- const message = createBaseGrpcInputRoleRestore();
2596
+ const message = createBaseGrpcDtoIdentityGeoLanguage();
1539
2597
  while (reader.pos < end) {
1540
2598
  const tag = reader.uint32();
1541
2599
  switch (tag >>> 3) {
@@ -1543,7 +2601,19 @@ export const GrpcInputRoleRestore = {
1543
2601
  if (tag !== 10) {
1544
2602
  break;
1545
2603
  }
1546
- message.publicIds.push(reader.string());
2604
+ message.publicId = reader.string();
2605
+ continue;
2606
+ case 2:
2607
+ if (tag !== 18) {
2608
+ break;
2609
+ }
2610
+ message.iso6391 = reader.string();
2611
+ continue;
2612
+ case 3:
2613
+ if (tag !== 26) {
2614
+ break;
2615
+ }
2616
+ message.name = reader.string();
1547
2617
  continue;
1548
2618
  }
1549
2619
  if ((tag & 7) === 4 || tag === 0) {
@@ -1554,32 +2624,23 @@ export const GrpcInputRoleRestore = {
1554
2624
  return message;
1555
2625
  },
1556
2626
  };
1557
- function createBaseGrpcInputRolePermissionsAdd() {
1558
- return { publicId: "", permissionIds: [], sourceFeaturePermissionPublicIds: [] };
2627
+ function createBaseGrpcDtoIdentityGeoTimezone() {
2628
+ return { publicId: "", iana: "" };
1559
2629
  }
1560
- export const GrpcInputRolePermissionsAdd = {
2630
+ export const GrpcDtoIdentityGeoTimezone = {
1561
2631
  encode(message, writer = _m0.Writer.create()) {
1562
2632
  if (message.publicId !== "") {
1563
2633
  writer.uint32(10).string(message.publicId);
1564
2634
  }
1565
- for (const v of message.permissionIds) {
1566
- writer.uint32(18).string(v);
1567
- }
1568
- if (message.source !== undefined) {
1569
- writer.uint32(26).string(message.source);
1570
- }
1571
- if (message.sourceFeaturePublicId !== undefined) {
1572
- writer.uint32(34).string(message.sourceFeaturePublicId);
1573
- }
1574
- for (const v of message.sourceFeaturePermissionPublicIds) {
1575
- writer.uint32(42).string(v);
2635
+ if (message.iana !== "") {
2636
+ writer.uint32(18).string(message.iana);
1576
2637
  }
1577
2638
  return writer;
1578
2639
  },
1579
2640
  decode(input, length) {
1580
2641
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1581
2642
  let end = length === undefined ? reader.len : reader.pos + length;
1582
- const message = createBaseGrpcInputRolePermissionsAdd();
2643
+ const message = createBaseGrpcDtoIdentityGeoTimezone();
1583
2644
  while (reader.pos < end) {
1584
2645
  const tag = reader.uint32();
1585
2646
  switch (tag >>> 3) {
@@ -1593,25 +2654,7 @@ export const GrpcInputRolePermissionsAdd = {
1593
2654
  if (tag !== 18) {
1594
2655
  break;
1595
2656
  }
1596
- message.permissionIds.push(reader.string());
1597
- continue;
1598
- case 3:
1599
- if (tag !== 26) {
1600
- break;
1601
- }
1602
- message.source = reader.string();
1603
- continue;
1604
- case 4:
1605
- if (tag !== 34) {
1606
- break;
1607
- }
1608
- message.sourceFeaturePublicId = reader.string();
1609
- continue;
1610
- case 5:
1611
- if (tag !== 42) {
1612
- break;
1613
- }
1614
- message.sourceFeaturePermissionPublicIds.push(reader.string());
2657
+ message.iana = reader.string();
1615
2658
  continue;
1616
2659
  }
1617
2660
  if ((tag & 7) === 4 || tag === 0) {
@@ -1622,20 +2665,29 @@ export const GrpcInputRolePermissionsAdd = {
1622
2665
  return message;
1623
2666
  },
1624
2667
  };
1625
- function createBaseGrpcInputRolePermissionsRemove() {
1626
- return { publicRolePermissionIds: [] };
2668
+ function createBaseGrpcDtoIdentityGeoCurrency() {
2669
+ return { publicId: "", code: "", name: "" };
1627
2670
  }
1628
- export const GrpcInputRolePermissionsRemove = {
2671
+ export const GrpcDtoIdentityGeoCurrency = {
1629
2672
  encode(message, writer = _m0.Writer.create()) {
1630
- for (const v of message.publicRolePermissionIds) {
1631
- writer.uint32(10).string(v);
2673
+ if (message.publicId !== "") {
2674
+ writer.uint32(10).string(message.publicId);
2675
+ }
2676
+ if (message.code !== "") {
2677
+ writer.uint32(18).string(message.code);
2678
+ }
2679
+ if (message.name !== "") {
2680
+ writer.uint32(26).string(message.name);
2681
+ }
2682
+ if (message.symbol !== undefined) {
2683
+ writer.uint32(34).string(message.symbol);
1632
2684
  }
1633
2685
  return writer;
1634
2686
  },
1635
2687
  decode(input, length) {
1636
2688
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1637
2689
  let end = length === undefined ? reader.len : reader.pos + length;
1638
- const message = createBaseGrpcInputRolePermissionsRemove();
2690
+ const message = createBaseGrpcDtoIdentityGeoCurrency();
1639
2691
  while (reader.pos < end) {
1640
2692
  const tag = reader.uint32();
1641
2693
  switch (tag >>> 3) {
@@ -1643,7 +2695,25 @@ export const GrpcInputRolePermissionsRemove = {
1643
2695
  if (tag !== 10) {
1644
2696
  break;
1645
2697
  }
1646
- message.publicRolePermissionIds.push(reader.string());
2698
+ message.publicId = reader.string();
2699
+ continue;
2700
+ case 2:
2701
+ if (tag !== 18) {
2702
+ break;
2703
+ }
2704
+ message.code = reader.string();
2705
+ continue;
2706
+ case 3:
2707
+ if (tag !== 26) {
2708
+ break;
2709
+ }
2710
+ message.name = reader.string();
2711
+ continue;
2712
+ case 4:
2713
+ if (tag !== 34) {
2714
+ break;
2715
+ }
2716
+ message.symbol = reader.string();
1647
2717
  continue;
1648
2718
  }
1649
2719
  if ((tag & 7) === 4 || tag === 0) {
@@ -1654,10 +2724,10 @@ export const GrpcInputRolePermissionsRemove = {
1654
2724
  return message;
1655
2725
  },
1656
2726
  };
1657
- function createBaseGrpcDtoRole() {
1658
- return { publicId: "", name: "", isAgent: false, permissions: [], users: [] };
2727
+ function createBaseGrpcDtoIdentityUser() {
2728
+ return { publicId: "", name: "", status: "" };
1659
2729
  }
1660
- export const GrpcDtoRole = {
2730
+ export const GrpcDtoIdentityUser = {
1661
2731
  encode(message, writer = _m0.Writer.create()) {
1662
2732
  if (message.publicId !== "") {
1663
2733
  writer.uint32(10).string(message.publicId);
@@ -1665,39 +2735,24 @@ export const GrpcDtoRole = {
1665
2735
  if (message.name !== "") {
1666
2736
  writer.uint32(18).string(message.name);
1667
2737
  }
1668
- if (message.isAgent !== false) {
1669
- writer.uint32(24).bool(message.isAgent);
1670
- }
1671
- if (message.description !== undefined) {
1672
- writer.uint32(34).string(message.description);
1673
- }
1674
- if (message.createdAt !== undefined) {
1675
- Timestamp.encode(message.createdAt, writer.uint32(42).fork()).ldelim();
1676
- }
1677
- if (message.updatedAt !== undefined) {
1678
- Timestamp.encode(message.updatedAt, writer.uint32(50).fork()).ldelim();
2738
+ if (message.status !== "") {
2739
+ writer.uint32(26).string(message.status);
1679
2740
  }
1680
- if (message.deletedAt !== undefined) {
1681
- Timestamp.encode(message.deletedAt, writer.uint32(58).fork()).ldelim();
1682
- }
1683
- if (message.service !== undefined) {
1684
- GrpcDtoService.encode(message.service, writer.uint32(66).fork()).ldelim();
1685
- }
1686
- if (message.client !== undefined) {
1687
- GrpcDtoClient.encode(message.client, writer.uint32(74).fork()).ldelim();
2741
+ if (message.language !== undefined) {
2742
+ GrpcDtoIdentityGeoLanguage.encode(message.language, writer.uint32(34).fork()).ldelim();
1688
2743
  }
1689
- for (const v of message.permissions) {
1690
- GrpcDtoPermission.encode(v, writer.uint32(82).fork()).ldelim();
2744
+ if (message.timezone !== undefined) {
2745
+ GrpcDtoIdentityGeoTimezone.encode(message.timezone, writer.uint32(42).fork()).ldelim();
1691
2746
  }
1692
- for (const v of message.users) {
1693
- GrpcDtoUser.encode(v, writer.uint32(90).fork()).ldelim();
2747
+ if (message.accountType !== undefined) {
2748
+ GrpcDtoIdentityAccountType.encode(message.accountType, writer.uint32(50).fork()).ldelim();
1694
2749
  }
1695
2750
  return writer;
1696
2751
  },
1697
2752
  decode(input, length) {
1698
2753
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1699
2754
  let end = length === undefined ? reader.len : reader.pos + length;
1700
- const message = createBaseGrpcDtoRole();
2755
+ const message = createBaseGrpcDtoIdentityUser();
1701
2756
  while (reader.pos < end) {
1702
2757
  const tag = reader.uint32();
1703
2758
  switch (tag >>> 3) {
@@ -1714,58 +2769,69 @@ export const GrpcDtoRole = {
1714
2769
  message.name = reader.string();
1715
2770
  continue;
1716
2771
  case 3:
1717
- if (tag !== 24) {
2772
+ if (tag !== 26) {
1718
2773
  break;
1719
2774
  }
1720
- message.isAgent = reader.bool();
2775
+ message.status = reader.string();
1721
2776
  continue;
1722
2777
  case 4:
1723
2778
  if (tag !== 34) {
1724
2779
  break;
1725
2780
  }
1726
- message.description = reader.string();
2781
+ message.language = GrpcDtoIdentityGeoLanguage.decode(reader, reader.uint32());
1727
2782
  continue;
1728
2783
  case 5:
1729
2784
  if (tag !== 42) {
1730
2785
  break;
1731
2786
  }
1732
- message.createdAt = Timestamp.decode(reader, reader.uint32());
2787
+ message.timezone = GrpcDtoIdentityGeoTimezone.decode(reader, reader.uint32());
1733
2788
  continue;
1734
2789
  case 6:
1735
2790
  if (tag !== 50) {
1736
2791
  break;
1737
2792
  }
1738
- message.updatedAt = Timestamp.decode(reader, reader.uint32());
1739
- continue;
1740
- case 7:
1741
- if (tag !== 58) {
1742
- break;
1743
- }
1744
- message.deletedAt = Timestamp.decode(reader, reader.uint32());
1745
- continue;
1746
- case 8:
1747
- if (tag !== 66) {
1748
- break;
1749
- }
1750
- message.service = GrpcDtoService.decode(reader, reader.uint32());
1751
- continue;
1752
- case 9:
1753
- if (tag !== 74) {
1754
- break;
1755
- }
1756
- message.client = GrpcDtoClient.decode(reader, reader.uint32());
2793
+ message.accountType = GrpcDtoIdentityAccountType.decode(reader, reader.uint32());
1757
2794
  continue;
1758
- case 10:
1759
- if (tag !== 82) {
2795
+ }
2796
+ if ((tag & 7) === 4 || tag === 0) {
2797
+ break;
2798
+ }
2799
+ reader.skipType(tag & 7);
2800
+ }
2801
+ return message;
2802
+ },
2803
+ };
2804
+ function createBaseGrpcDtoIdentityAccountType() {
2805
+ return { publicId: "", name: "" };
2806
+ }
2807
+ export const GrpcDtoIdentityAccountType = {
2808
+ encode(message, writer = _m0.Writer.create()) {
2809
+ if (message.publicId !== "") {
2810
+ writer.uint32(10).string(message.publicId);
2811
+ }
2812
+ if (message.name !== "") {
2813
+ writer.uint32(18).string(message.name);
2814
+ }
2815
+ return writer;
2816
+ },
2817
+ decode(input, length) {
2818
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
2819
+ let end = length === undefined ? reader.len : reader.pos + length;
2820
+ const message = createBaseGrpcDtoIdentityAccountType();
2821
+ while (reader.pos < end) {
2822
+ const tag = reader.uint32();
2823
+ switch (tag >>> 3) {
2824
+ case 1:
2825
+ if (tag !== 10) {
1760
2826
  break;
1761
2827
  }
1762
- message.permissions.push(GrpcDtoPermission.decode(reader, reader.uint32()));
2828
+ message.publicId = reader.string();
1763
2829
  continue;
1764
- case 11:
1765
- if (tag !== 90) {
2830
+ case 2:
2831
+ if (tag !== 18) {
1766
2832
  break;
1767
2833
  }
1768
- message.users.push(GrpcDtoUser.decode(reader, reader.uint32()));
2834
+ message.name = reader.string();
1769
2835
  continue;
1770
2836
  }
1771
2837
  if ((tag & 7) === 4 || tag === 0) {
@@ -1776,23 +2842,23 @@ export const GrpcDtoRole = {
1776
2842
  return message;
1777
2843
  },
1778
2844
  };
1779
- function createBaseGrpcDtoRoles() {
1780
- return { items: [] };
2845
+ function createBaseGrpcDtoIdentityRole() {
2846
+ return { publicId: "", name: "" };
1781
2847
  }
1782
- export const GrpcDtoRoles = {
2848
+ export const GrpcDtoIdentityRole = {
1783
2849
  encode(message, writer = _m0.Writer.create()) {
1784
- for (const v of message.items) {
1785
- GrpcDtoRole.encode(v, writer.uint32(10).fork()).ldelim();
2850
+ if (message.publicId !== "") {
2851
+ writer.uint32(10).string(message.publicId);
1786
2852
  }
1787
- if (message.meta !== undefined) {
1788
- GrpcDtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
2853
+ if (message.name !== "") {
2854
+ writer.uint32(18).string(message.name);
1789
2855
  }
1790
2856
  return writer;
1791
2857
  },
1792
2858
  decode(input, length) {
1793
2859
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1794
2860
  let end = length === undefined ? reader.len : reader.pos + length;
1795
- const message = createBaseGrpcDtoRoles();
2861
+ const message = createBaseGrpcDtoIdentityRole();
1796
2862
  while (reader.pos < end) {
1797
2863
  const tag = reader.uint32();
1798
2864
  switch (tag >>> 3) {
@@ -1800,13 +2866,13 @@ export const GrpcDtoRoles = {
1800
2866
  if (tag !== 10) {
1801
2867
  break;
1802
2868
  }
1803
- message.items.push(GrpcDtoRole.decode(reader, reader.uint32()));
2869
+ message.publicId = reader.string();
1804
2870
  continue;
1805
2871
  case 2:
1806
2872
  if (tag !== 18) {
1807
2873
  break;
1808
2874
  }
1809
- message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
2875
+ message.name = reader.string();
1810
2876
  continue;
1811
2877
  }
1812
2878
  if ((tag & 7) === 4 || tag === 0) {
@@ -1817,20 +2883,20 @@ export const GrpcDtoRoles = {
1817
2883
  return message;
1818
2884
  },
1819
2885
  };
1820
- function createBaseGrpcDtoUserRole() {
1821
- return {};
2886
+ function createBaseGrpcDtoIdentityAgent() {
2887
+ return { userPublicId: "" };
1822
2888
  }
1823
- export const GrpcDtoUserRole = {
2889
+ export const GrpcDtoIdentityAgent = {
1824
2890
  encode(message, writer = _m0.Writer.create()) {
1825
- if (message.role !== undefined) {
1826
- GrpcDtoRole.encode(message.role, writer.uint32(10).fork()).ldelim();
2891
+ if (message.userPublicId !== "") {
2892
+ writer.uint32(10).string(message.userPublicId);
1827
2893
  }
1828
2894
  return writer;
1829
2895
  },
1830
2896
  decode(input, length) {
1831
2897
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1832
2898
  let end = length === undefined ? reader.len : reader.pos + length;
1833
- const message = createBaseGrpcDtoUserRole();
2899
+ const message = createBaseGrpcDtoIdentityAgent();
1834
2900
  while (reader.pos < end) {
1835
2901
  const tag = reader.uint32();
1836
2902
  switch (tag >>> 3) {
@@ -1838,7 +2904,7 @@ export const GrpcDtoUserRole = {
1838
2904
  if (tag !== 10) {
1839
2905
  break;
1840
2906
  }
1841
- message.role = GrpcDtoRole.decode(reader, reader.uint32());
2907
+ message.userPublicId = reader.string();
1842
2908
  continue;
1843
2909
  }
1844
2910
  if ((tag & 7) === 4 || tag === 0) {
@@ -1849,44 +2915,35 @@ export const GrpcDtoUserRole = {
1849
2915
  return message;
1850
2916
  },
1851
2917
  };
1852
- function createBaseGrpcDtoUser() {
1853
- return { publicId: "", email: "", phone: "", isEmailVerified: false, roles: [] };
2918
+ function createBaseGrpcDtoIdentityClient() {
2919
+ return { publicId: "", name: "", type: "", managingVendors: [] };
1854
2920
  }
1855
- export const GrpcDtoUser = {
2921
+ export const GrpcDtoIdentityClient = {
1856
2922
  encode(message, writer = _m0.Writer.create()) {
1857
2923
  if (message.publicId !== "") {
1858
2924
  writer.uint32(10).string(message.publicId);
1859
2925
  }
1860
- if (message.email !== "") {
1861
- writer.uint32(18).string(message.email);
1862
- }
1863
- if (message.phone !== "") {
1864
- writer.uint32(26).string(message.phone);
1865
- }
1866
- if (message.isEmailVerified !== false) {
1867
- writer.uint32(32).bool(message.isEmailVerified);
1868
- }
1869
- if (message.displayName !== undefined) {
1870
- writer.uint32(42).string(message.displayName);
2926
+ if (message.name !== "") {
2927
+ writer.uint32(18).string(message.name);
1871
2928
  }
1872
- if (message.createdAt !== undefined) {
1873
- Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim();
2929
+ if (message.type !== "") {
2930
+ writer.uint32(26).string(message.type);
1874
2931
  }
1875
- if (message.updatedAt !== undefined) {
1876
- Timestamp.encode(message.updatedAt, writer.uint32(58).fork()).ldelim();
2932
+ if (message.isIndependentVendor !== undefined) {
2933
+ writer.uint32(34).string(message.isIndependentVendor);
1877
2934
  }
1878
- if (message.deletedAt !== undefined) {
1879
- Timestamp.encode(message.deletedAt, writer.uint32(66).fork()).ldelim();
2935
+ if (message.managedBy !== undefined) {
2936
+ GrpcDtoIdentityManagedBy.encode(message.managedBy, writer.uint32(42).fork()).ldelim();
1880
2937
  }
1881
- for (const v of message.roles) {
1882
- GrpcDtoUserRole.encode(v, writer.uint32(74).fork()).ldelim();
2938
+ for (const v of message.managingVendors) {
2939
+ GrpcDtoIdentityManagingVendor.encode(v, writer.uint32(50).fork()).ldelim();
1883
2940
  }
1884
2941
  return writer;
1885
2942
  },
1886
2943
  decode(input, length) {
1887
2944
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1888
2945
  let end = length === undefined ? reader.len : reader.pos + length;
1889
- const message = createBaseGrpcDtoUser();
2946
+ const message = createBaseGrpcDtoIdentityClient();
1890
2947
  while (reader.pos < end) {
1891
2948
  const tag = reader.uint32();
1892
2949
  switch (tag >>> 3) {
@@ -1900,49 +2957,95 @@ export const GrpcDtoUser = {
1900
2957
  if (tag !== 18) {
1901
2958
  break;
1902
2959
  }
1903
- message.email = reader.string();
2960
+ message.name = reader.string();
1904
2961
  continue;
1905
2962
  case 3:
1906
2963
  if (tag !== 26) {
1907
2964
  break;
1908
2965
  }
1909
- message.phone = reader.string();
2966
+ message.type = reader.string();
1910
2967
  continue;
1911
2968
  case 4:
1912
- if (tag !== 32) {
2969
+ if (tag !== 34) {
1913
2970
  break;
1914
2971
  }
1915
- message.isEmailVerified = reader.bool();
2972
+ message.isIndependentVendor = reader.string();
1916
2973
  continue;
1917
2974
  case 5:
1918
2975
  if (tag !== 42) {
1919
2976
  break;
1920
2977
  }
1921
- message.displayName = reader.string();
2978
+ message.managedBy = GrpcDtoIdentityManagedBy.decode(reader, reader.uint32());
1922
2979
  continue;
1923
2980
  case 6:
1924
2981
  if (tag !== 50) {
1925
2982
  break;
1926
2983
  }
1927
- message.createdAt = Timestamp.decode(reader, reader.uint32());
1928
- continue;
1929
- case 7:
1930
- if (tag !== 58) {
1931
- break;
1932
- }
1933
- message.updatedAt = Timestamp.decode(reader, reader.uint32());
2984
+ message.managingVendors.push(GrpcDtoIdentityManagingVendor.decode(reader, reader.uint32()));
1934
2985
  continue;
1935
- case 8:
1936
- if (tag !== 66) {
2986
+ }
2987
+ if ((tag & 7) === 4 || tag === 0) {
2988
+ break;
2989
+ }
2990
+ reader.skipType(tag & 7);
2991
+ }
2992
+ return message;
2993
+ },
2994
+ };
2995
+ function createBaseGrpcDtoIdentityManagedBy() {
2996
+ return { clientPublicId: "" };
2997
+ }
2998
+ export const GrpcDtoIdentityManagedBy = {
2999
+ encode(message, writer = _m0.Writer.create()) {
3000
+ if (message.clientPublicId !== "") {
3001
+ writer.uint32(10).string(message.clientPublicId);
3002
+ }
3003
+ return writer;
3004
+ },
3005
+ decode(input, length) {
3006
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3007
+ let end = length === undefined ? reader.len : reader.pos + length;
3008
+ const message = createBaseGrpcDtoIdentityManagedBy();
3009
+ while (reader.pos < end) {
3010
+ const tag = reader.uint32();
3011
+ switch (tag >>> 3) {
3012
+ case 1:
3013
+ if (tag !== 10) {
1937
3014
  break;
1938
3015
  }
1939
- message.deletedAt = Timestamp.decode(reader, reader.uint32());
3016
+ message.clientPublicId = reader.string();
1940
3017
  continue;
1941
- case 9:
1942
- if (tag !== 74) {
3018
+ }
3019
+ if ((tag & 7) === 4 || tag === 0) {
3020
+ break;
3021
+ }
3022
+ reader.skipType(tag & 7);
3023
+ }
3024
+ return message;
3025
+ },
3026
+ };
3027
+ function createBaseGrpcDtoIdentityManagingVendor() {
3028
+ return { userPublicId: "" };
3029
+ }
3030
+ export const GrpcDtoIdentityManagingVendor = {
3031
+ encode(message, writer = _m0.Writer.create()) {
3032
+ if (message.userPublicId !== "") {
3033
+ writer.uint32(10).string(message.userPublicId);
3034
+ }
3035
+ return writer;
3036
+ },
3037
+ decode(input, length) {
3038
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3039
+ let end = length === undefined ? reader.len : reader.pos + length;
3040
+ const message = createBaseGrpcDtoIdentityManagingVendor();
3041
+ while (reader.pos < end) {
3042
+ const tag = reader.uint32();
3043
+ switch (tag >>> 3) {
3044
+ case 1:
3045
+ if (tag !== 10) {
1943
3046
  break;
1944
3047
  }
1945
- message.roles.push(GrpcDtoUserRole.decode(reader, reader.uint32()));
3048
+ message.userPublicId = reader.string();
1946
3049
  continue;
1947
3050
  }
1948
3051
  if ((tag & 7) === 4 || tag === 0) {
@@ -1956,22 +3059,19 @@ export const GrpcDtoUser = {
1956
3059
  export function AuthServiceControllerMethods() {
1957
3060
  return function (constructor) {
1958
3061
  const grpcMethods = [
1959
- "authenticate",
1960
- "authorize",
1961
3062
  "permissionsSeed",
1962
3063
  "permissions",
1963
3064
  "permission",
1964
- "getVendorFeatures",
1965
- "getFeaturePermissions",
1966
3065
  "roles",
1967
3066
  "role",
3067
+ "rolePermissions",
1968
3068
  "roleCreate",
1969
3069
  "roleUpdate",
1970
3070
  "rolesRecycle",
1971
3071
  "rolesRestore",
1972
- "rolePermissions",
1973
3072
  "rolePermissionsAdd",
1974
3073
  "rolePermissionsRemove",
3074
+ "authNz",
1975
3075
  ];
1976
3076
  for (const method of grpcMethods) {
1977
3077
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
@@ -1986,26 +3086,7 @@ export function AuthServiceControllerMethods() {
1986
3086
  }
1987
3087
  export const AUTH_SERVICE_NAME = "AuthService";
1988
3088
  export const AuthServiceService = {
1989
- /** --- authz --- */
1990
- authenticate: {
1991
- path: "/aegis.auth.v1.AuthService/Authenticate",
1992
- requestStream: false,
1993
- responseStream: false,
1994
- requestSerialize: (value) => Buffer.from(GrpcInputAuthenticate.encode(value).finish()),
1995
- requestDeserialize: (value) => GrpcInputAuthenticate.decode(value),
1996
- responseSerialize: (value) => Buffer.from(GrpcDtoAuthenticate.encode(value).finish()),
1997
- responseDeserialize: (value) => GrpcDtoAuthenticate.decode(value),
1998
- },
1999
- authorize: {
2000
- path: "/aegis.auth.v1.AuthService/Authorize",
2001
- requestStream: false,
2002
- responseStream: false,
2003
- requestSerialize: (value) => Buffer.from(GrpcInputAuthorize.encode(value).finish()),
2004
- requestDeserialize: (value) => GrpcInputAuthorize.decode(value),
2005
- responseSerialize: (value) => Buffer.from(GrpcDtoAuthorize.encode(value).finish()),
2006
- responseDeserialize: (value) => GrpcDtoAuthorize.decode(value),
2007
- },
2008
- /** --- permission --- */
3089
+ /** PERMISSION */
2009
3090
  permissionsSeed: {
2010
3091
  path: "/aegis.auth.v1.AuthService/PermissionsSeed",
2011
3092
  requestStream: false,
@@ -2033,25 +3114,7 @@ export const AuthServiceService = {
2033
3114
  responseSerialize: (value) => Buffer.from(GrpcDtoPermission.encode(value).finish()),
2034
3115
  responseDeserialize: (value) => GrpcDtoPermission.decode(value),
2035
3116
  },
2036
- getVendorFeatures: {
2037
- path: "/aegis.auth.v1.AuthService/GetVendorFeatures",
2038
- requestStream: false,
2039
- responseStream: false,
2040
- requestSerialize: (value) => Buffer.from(GrpcInputVendorFeatures.encode(value).finish()),
2041
- requestDeserialize: (value) => GrpcInputVendorFeatures.decode(value),
2042
- responseSerialize: (value) => Buffer.from(GrpcDtoVendorFeatures.encode(value).finish()),
2043
- responseDeserialize: (value) => GrpcDtoVendorFeatures.decode(value),
2044
- },
2045
- getFeaturePermissions: {
2046
- path: "/aegis.auth.v1.AuthService/GetFeaturePermissions",
2047
- requestStream: false,
2048
- responseStream: false,
2049
- requestSerialize: (value) => Buffer.from(GrpcInputGetFeaturePermissions.encode(value).finish()),
2050
- requestDeserialize: (value) => GrpcInputGetFeaturePermissions.decode(value),
2051
- responseSerialize: (value) => Buffer.from(GrpcDtoFeaturePermissions.encode(value).finish()),
2052
- responseDeserialize: (value) => GrpcDtoFeaturePermissions.decode(value),
2053
- },
2054
- /** --- role --- */
3117
+ /** ROLE */
2055
3118
  roles: {
2056
3119
  path: "/aegis.auth.v1.AuthService/Roles",
2057
3120
  requestStream: false,
@@ -2070,6 +3133,15 @@ export const AuthServiceService = {
2070
3133
  responseSerialize: (value) => Buffer.from(GrpcDtoRole.encode(value).finish()),
2071
3134
  responseDeserialize: (value) => GrpcDtoRole.decode(value),
2072
3135
  },
3136
+ rolePermissions: {
3137
+ path: "/aegis.auth.v1.AuthService/RolePermissions",
3138
+ requestStream: false,
3139
+ responseStream: false,
3140
+ requestSerialize: (value) => Buffer.from(GrpcInputRolePermissions.encode(value).finish()),
3141
+ requestDeserialize: (value) => GrpcInputRolePermissions.decode(value),
3142
+ responseSerialize: (value) => Buffer.from(GrpcDtoRolePermissions.encode(value).finish()),
3143
+ responseDeserialize: (value) => GrpcDtoRolePermissions.decode(value),
3144
+ },
2073
3145
  roleCreate: {
2074
3146
  path: "/aegis.auth.v1.AuthService/RoleCreate",
2075
3147
  requestStream: false,
@@ -2106,15 +3178,6 @@ export const AuthServiceService = {
2106
3178
  responseSerialize: (value) => Buffer.from(GrpcDtoMessage.encode(value).finish()),
2107
3179
  responseDeserialize: (value) => GrpcDtoMessage.decode(value),
2108
3180
  },
2109
- rolePermissions: {
2110
- path: "/aegis.auth.v1.AuthService/RolePermissions",
2111
- requestStream: false,
2112
- responseStream: false,
2113
- requestSerialize: (value) => Buffer.from(GrpcInputRolePermissions.encode(value).finish()),
2114
- requestDeserialize: (value) => GrpcInputRolePermissions.decode(value),
2115
- responseSerialize: (value) => Buffer.from(GrpcDtoRolePermissions.encode(value).finish()),
2116
- responseDeserialize: (value) => GrpcDtoRolePermissions.decode(value),
2117
- },
2118
3181
  rolePermissionsAdd: {
2119
3182
  path: "/aegis.auth.v1.AuthService/RolePermissionsAdd",
2120
3183
  requestStream: false,
@@ -2133,4 +3196,14 @@ export const AuthServiceService = {
2133
3196
  responseSerialize: (value) => Buffer.from(GrpcDtoMessage.encode(value).finish()),
2134
3197
  responseDeserialize: (value) => GrpcDtoMessage.decode(value),
2135
3198
  },
3199
+ /** AUTH-Z */
3200
+ authNz: {
3201
+ path: "/aegis.auth.v1.AuthService/AuthNZ",
3202
+ requestStream: false,
3203
+ responseStream: false,
3204
+ requestSerialize: (value) => Buffer.from(GrpcInputAuthNZ.encode(value).finish()),
3205
+ requestDeserialize: (value) => GrpcInputAuthNZ.decode(value),
3206
+ responseSerialize: (value) => Buffer.from(GrpcDtoAuthNZ.encode(value).finish()),
3207
+ responseDeserialize: (value) => GrpcDtoAuthNZ.decode(value),
3208
+ },
2136
3209
  };