@cratis/chronicle.contracts 16.33.0 → 16.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/cjs/generated/eventstores.d.ts +90 -0
  2. package/dist/cjs/generated/eventstores.d.ts.map +1 -0
  3. package/dist/cjs/generated/eventstores.js +501 -0
  4. package/dist/cjs/generated/eventstores.js.map +1 -0
  5. package/dist/cjs/generated/index.d.ts +7 -5
  6. package/dist/cjs/generated/index.d.ts.map +1 -1
  7. package/dist/cjs/generated/jobs.d.ts +99 -103
  8. package/dist/cjs/generated/jobs.d.ts.map +1 -1
  9. package/dist/cjs/generated/jobs.js +767 -493
  10. package/dist/cjs/generated/jobs.js.map +1 -1
  11. package/dist/cjs/generated/namespaces.d.ts +94 -0
  12. package/dist/cjs/generated/namespaces.d.ts.map +1 -0
  13. package/dist/cjs/generated/namespaces.js +569 -0
  14. package/dist/cjs/generated/namespaces.js.map +1 -0
  15. package/dist/cjs/generated/protobuf-net/bcl.js +0 -87
  16. package/dist/cjs/generated/protobuf-net/bcl.js.map +1 -1
  17. package/dist/cjs/generated/security.d.ts +144 -122
  18. package/dist/cjs/generated/security.d.ts.map +1 -1
  19. package/dist/cjs/generated/security.js +792 -233
  20. package/dist/cjs/generated/security.js.map +1 -1
  21. package/dist/cjs/index.js +39 -37
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/esm/generated/eventstores.d.ts +90 -0
  24. package/dist/esm/generated/eventstores.d.ts.map +1 -0
  25. package/dist/esm/generated/eventstores.js +493 -0
  26. package/dist/esm/generated/eventstores.js.map +1 -0
  27. package/dist/esm/generated/index.d.ts +7 -5
  28. package/dist/esm/generated/index.d.ts.map +1 -1
  29. package/dist/esm/generated/jobs.d.ts +99 -103
  30. package/dist/esm/generated/jobs.d.ts.map +1 -1
  31. package/dist/esm/generated/jobs.js +755 -482
  32. package/dist/esm/generated/jobs.js.map +1 -1
  33. package/dist/esm/generated/namespaces.d.ts +94 -0
  34. package/dist/esm/generated/namespaces.d.ts.map +1 -0
  35. package/dist/esm/generated/namespaces.js +560 -0
  36. package/dist/esm/generated/namespaces.js.map +1 -0
  37. package/dist/esm/generated/protobuf-net/bcl.js +1 -87
  38. package/dist/esm/generated/protobuf-net/bcl.js.map +1 -1
  39. package/dist/esm/generated/security.d.ts +144 -122
  40. package/dist/esm/generated/security.d.ts.map +1 -1
  41. package/dist/esm/generated/security.js +774 -220
  42. package/dist/esm/generated/security.js.map +1 -1
  43. package/dist/esm/index.js +5 -4
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/generated/eventstores.d.ts +90 -0
  46. package/dist/generated/eventstores.d.ts.map +1 -0
  47. package/dist/generated/eventstores.js +491 -0
  48. package/dist/generated/eventstores.js.map +1 -0
  49. package/dist/generated/index.d.ts +7 -5
  50. package/dist/generated/index.d.ts.map +1 -1
  51. package/dist/generated/index.js +5 -4
  52. package/dist/generated/index.js.map +1 -1
  53. package/dist/generated/jobs.d.ts +99 -103
  54. package/dist/generated/jobs.d.ts.map +1 -1
  55. package/dist/generated/jobs.js +756 -481
  56. package/dist/generated/jobs.js.map +1 -1
  57. package/dist/generated/namespaces.d.ts +94 -0
  58. package/dist/generated/namespaces.d.ts.map +1 -0
  59. package/dist/generated/namespaces.js +558 -0
  60. package/dist/generated/namespaces.js.map +1 -0
  61. package/dist/generated/security.d.ts +144 -122
  62. package/dist/generated/security.d.ts.map +1 -1
  63. package/dist/generated/security.js +775 -219
  64. package/dist/generated/security.js.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/generated/eventstores.ts +622 -0
  67. package/generated/index.ts +9 -6
  68. package/generated/jobs.ts +963 -637
  69. package/generated/namespaces.ts +702 -0
  70. package/generated/security.ts +1051 -364
  71. package/package.json +1 -1
  72. package/dist/cjs/generated/cratis_chronicle_contracts.d.ts +0 -120
  73. package/dist/cjs/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  74. package/dist/cjs/generated/cratis_chronicle_contracts.js +0 -297
  75. package/dist/cjs/generated/cratis_chronicle_contracts.js.map +0 -1
  76. package/dist/esm/generated/cratis_chronicle_contracts.d.ts +0 -120
  77. package/dist/esm/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  78. package/dist/esm/generated/cratis_chronicle_contracts.js +0 -290
  79. package/dist/esm/generated/cratis_chronicle_contracts.js.map +0 -1
  80. package/dist/generated/cratis_chronicle_contracts.d.ts +0 -120
  81. package/dist/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  82. package/dist/generated/cratis_chronicle_contracts.js +0 -288
  83. package/dist/generated/cratis_chronicle_contracts.js.map +0 -1
  84. package/generated/cratis_chronicle_contracts.ts +0 -408
@@ -4,13 +4,56 @@ var wire = require('@bufbuild/protobuf/wire');
4
4
  var empty = require('./google/protobuf/empty.js');
5
5
  var bcl = require('./protobuf-net/bcl.js');
6
6
 
7
- function createBaseAddApplication() {
8
- return { Id: "", ClientId: "", ClientSecret: "" };
7
+ exports.ValidationResultSeverity = void 0;
8
+ (function (ValidationResultSeverity) {
9
+ ValidationResultSeverity[ValidationResultSeverity["Unknown"] = 0] = "Unknown";
10
+ ValidationResultSeverity[ValidationResultSeverity["Information"] = 1] = "Information";
11
+ ValidationResultSeverity[ValidationResultSeverity["Warning"] = 2] = "Warning";
12
+ ValidationResultSeverity[ValidationResultSeverity["Error"] = 3] = "Error";
13
+ ValidationResultSeverity[ValidationResultSeverity["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
14
+ })(exports.ValidationResultSeverity || (exports.ValidationResultSeverity = {}));
15
+ function validationResultSeverityFromJSON(object) {
16
+ switch (object) {
17
+ case 0:
18
+ case "Unknown":
19
+ return exports.ValidationResultSeverity.Unknown;
20
+ case 1:
21
+ case "Information":
22
+ return exports.ValidationResultSeverity.Information;
23
+ case 2:
24
+ case "Warning":
25
+ return exports.ValidationResultSeverity.Warning;
26
+ case 3:
27
+ case "Error":
28
+ return exports.ValidationResultSeverity.Error;
29
+ case -1:
30
+ case "UNRECOGNIZED":
31
+ default:
32
+ return exports.ValidationResultSeverity.UNRECOGNIZED;
33
+ }
9
34
  }
10
- const AddApplication = {
35
+ function validationResultSeverityToJSON(object) {
36
+ switch (object) {
37
+ case exports.ValidationResultSeverity.Unknown:
38
+ return "Unknown";
39
+ case exports.ValidationResultSeverity.Information:
40
+ return "Information";
41
+ case exports.ValidationResultSeverity.Warning:
42
+ return "Warning";
43
+ case exports.ValidationResultSeverity.Error:
44
+ return "Error";
45
+ case exports.ValidationResultSeverity.UNRECOGNIZED:
46
+ default:
47
+ return "UNRECOGNIZED";
48
+ }
49
+ }
50
+ function createBaseAddApplicationRequest() {
51
+ return { Id: undefined, ClientId: "", ClientSecret: "" };
52
+ }
53
+ const AddApplicationRequest = {
11
54
  encode(message, writer = new wire.BinaryWriter()) {
12
- if (message.Id !== "") {
13
- writer.uint32(10).string(message.Id);
55
+ if (message.Id !== undefined) {
56
+ bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
14
57
  }
15
58
  if (message.ClientId !== "") {
16
59
  writer.uint32(18).string(message.ClientId);
@@ -23,7 +66,7 @@ const AddApplication = {
23
66
  decode(input, length) {
24
67
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
25
68
  const end = length === undefined ? reader.len : reader.pos + length;
26
- const message = createBaseAddApplication();
69
+ const message = createBaseAddApplicationRequest();
27
70
  while (reader.pos < end) {
28
71
  const tag = reader.uint32();
29
72
  switch (tag >>> 3) {
@@ -31,7 +74,7 @@ const AddApplication = {
31
74
  if (tag !== 10) {
32
75
  break;
33
76
  }
34
- message.Id = reader.string();
77
+ message.Id = bcl.Guid.decode(reader, reader.uint32());
35
78
  continue;
36
79
  }
37
80
  case 2: {
@@ -58,15 +101,15 @@ const AddApplication = {
58
101
  },
59
102
  fromJSON(object) {
60
103
  return {
61
- Id: isSet(object.Id) ? globalThis.String(object.Id) : "",
104
+ Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined,
62
105
  ClientId: isSet(object.ClientId) ? globalThis.String(object.ClientId) : "",
63
106
  ClientSecret: isSet(object.ClientSecret) ? globalThis.String(object.ClientSecret) : "",
64
107
  };
65
108
  },
66
109
  toJSON(message) {
67
110
  const obj = {};
68
- if (message.Id !== "") {
69
- obj.Id = message.Id;
111
+ if (message.Id !== undefined) {
112
+ obj.Id = bcl.Guid.toJSON(message.Id);
70
113
  }
71
114
  if (message.ClientId !== "") {
72
115
  obj.ClientId = message.ClientId;
@@ -77,20 +120,20 @@ const AddApplication = {
77
120
  return obj;
78
121
  },
79
122
  create(base) {
80
- return AddApplication.fromPartial(base ?? {});
123
+ return AddApplicationRequest.fromPartial(base ?? {});
81
124
  },
82
125
  fromPartial(object) {
83
- const message = createBaseAddApplication();
84
- message.Id = object.Id ?? "";
126
+ const message = createBaseAddApplicationRequest();
127
+ message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
85
128
  message.ClientId = object.ClientId ?? "";
86
129
  message.ClientSecret = object.ClientSecret ?? "";
87
130
  return message;
88
131
  },
89
132
  };
90
- function createBaseAddUser() {
133
+ function createBaseAddUserRequest() {
91
134
  return { UserId: undefined, Username: "", Email: "", Password: "" };
92
135
  }
93
- const AddUser = {
136
+ const AddUserRequest = {
94
137
  encode(message, writer = new wire.BinaryWriter()) {
95
138
  if (message.UserId !== undefined) {
96
139
  bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
@@ -109,7 +152,7 @@ const AddUser = {
109
152
  decode(input, length) {
110
153
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
111
154
  const end = length === undefined ? reader.len : reader.pos + length;
112
- const message = createBaseAddUser();
155
+ const message = createBaseAddUserRequest();
113
156
  while (reader.pos < end) {
114
157
  const tag = reader.uint32();
115
158
  switch (tag >>> 3) {
@@ -174,10 +217,10 @@ const AddUser = {
174
217
  return obj;
175
218
  },
176
219
  create(base) {
177
- return AddUser.fromPartial(base ?? {});
220
+ return AddUserRequest.fromPartial(base ?? {});
178
221
  },
179
222
  fromPartial(object) {
180
- const message = createBaseAddUser();
223
+ const message = createBaseAddUserRequest();
181
224
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
182
225
  ? bcl.Guid.fromPartial(object.UserId)
183
226
  : undefined;
@@ -187,10 +230,80 @@ const AddUser = {
187
230
  return message;
188
231
  },
189
232
  };
190
- function createBaseApplication() {
233
+ function createBaseAdminPasswordStatusResponse() {
234
+ return { IsRequired: false, AdminUserId: undefined };
235
+ }
236
+ const AdminPasswordStatusResponse = {
237
+ encode(message, writer = new wire.BinaryWriter()) {
238
+ if (message.IsRequired !== false) {
239
+ writer.uint32(8).bool(message.IsRequired);
240
+ }
241
+ if (message.AdminUserId !== undefined) {
242
+ bcl.Guid.encode(message.AdminUserId, writer.uint32(18).fork()).join();
243
+ }
244
+ return writer;
245
+ },
246
+ decode(input, length) {
247
+ const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
248
+ const end = length === undefined ? reader.len : reader.pos + length;
249
+ const message = createBaseAdminPasswordStatusResponse();
250
+ while (reader.pos < end) {
251
+ const tag = reader.uint32();
252
+ switch (tag >>> 3) {
253
+ case 1: {
254
+ if (tag !== 8) {
255
+ break;
256
+ }
257
+ message.IsRequired = reader.bool();
258
+ continue;
259
+ }
260
+ case 2: {
261
+ if (tag !== 18) {
262
+ break;
263
+ }
264
+ message.AdminUserId = bcl.Guid.decode(reader, reader.uint32());
265
+ continue;
266
+ }
267
+ }
268
+ if ((tag & 7) === 4 || tag === 0) {
269
+ break;
270
+ }
271
+ reader.skip(tag & 7);
272
+ }
273
+ return message;
274
+ },
275
+ fromJSON(object) {
276
+ return {
277
+ IsRequired: isSet(object.IsRequired) ? globalThis.Boolean(object.IsRequired) : false,
278
+ AdminUserId: isSet(object.AdminUserId) ? bcl.Guid.fromJSON(object.AdminUserId) : undefined,
279
+ };
280
+ },
281
+ toJSON(message) {
282
+ const obj = {};
283
+ if (message.IsRequired !== false) {
284
+ obj.IsRequired = message.IsRequired;
285
+ }
286
+ if (message.AdminUserId !== undefined) {
287
+ obj.AdminUserId = bcl.Guid.toJSON(message.AdminUserId);
288
+ }
289
+ return obj;
290
+ },
291
+ create(base) {
292
+ return AdminPasswordStatusResponse.fromPartial(base ?? {});
293
+ },
294
+ fromPartial(object) {
295
+ const message = createBaseAdminPasswordStatusResponse();
296
+ message.IsRequired = object.IsRequired ?? false;
297
+ message.AdminUserId = (object.AdminUserId !== undefined && object.AdminUserId !== null)
298
+ ? bcl.Guid.fromPartial(object.AdminUserId)
299
+ : undefined;
300
+ return message;
301
+ },
302
+ };
303
+ function createBaseApplicationResponse() {
191
304
  return { Id: undefined, ClientId: "", IsActive: false, CreatedAt: undefined, LastModifiedAt: undefined };
192
305
  }
193
- const Application = {
306
+ const ApplicationResponse = {
194
307
  encode(message, writer = new wire.BinaryWriter()) {
195
308
  if (message.Id !== undefined) {
196
309
  bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
@@ -202,17 +315,17 @@ const Application = {
202
315
  writer.uint32(24).bool(message.IsActive);
203
316
  }
204
317
  if (message.CreatedAt !== undefined) {
205
- SerializableDateTimeOffset.encode(message.CreatedAt, writer.uint32(34).fork()).join();
318
+ DateTimeOffset.encode(message.CreatedAt, writer.uint32(34).fork()).join();
206
319
  }
207
320
  if (message.LastModifiedAt !== undefined) {
208
- SerializableDateTimeOffset.encode(message.LastModifiedAt, writer.uint32(42).fork()).join();
321
+ DateTimeOffset.encode(message.LastModifiedAt, writer.uint32(42).fork()).join();
209
322
  }
210
323
  return writer;
211
324
  },
212
325
  decode(input, length) {
213
326
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
214
327
  const end = length === undefined ? reader.len : reader.pos + length;
215
- const message = createBaseApplication();
328
+ const message = createBaseApplicationResponse();
216
329
  while (reader.pos < end) {
217
330
  const tag = reader.uint32();
218
331
  switch (tag >>> 3) {
@@ -241,14 +354,14 @@ const Application = {
241
354
  if (tag !== 34) {
242
355
  break;
243
356
  }
244
- message.CreatedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
357
+ message.CreatedAt = DateTimeOffset.decode(reader, reader.uint32());
245
358
  continue;
246
359
  }
247
360
  case 5: {
248
361
  if (tag !== 42) {
249
362
  break;
250
363
  }
251
- message.LastModifiedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
364
+ message.LastModifiedAt = DateTimeOffset.decode(reader, reader.uint32());
252
365
  continue;
253
366
  }
254
367
  }
@@ -264,10 +377,8 @@ const Application = {
264
377
  Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined,
265
378
  ClientId: isSet(object.ClientId) ? globalThis.String(object.ClientId) : "",
266
379
  IsActive: isSet(object.IsActive) ? globalThis.Boolean(object.IsActive) : false,
267
- CreatedAt: isSet(object.CreatedAt) ? SerializableDateTimeOffset.fromJSON(object.CreatedAt) : undefined,
268
- LastModifiedAt: isSet(object.LastModifiedAt)
269
- ? SerializableDateTimeOffset.fromJSON(object.LastModifiedAt)
270
- : undefined,
380
+ CreatedAt: isSet(object.CreatedAt) ? DateTimeOffset.fromJSON(object.CreatedAt) : undefined,
381
+ LastModifiedAt: isSet(object.LastModifiedAt) ? DateTimeOffset.fromJSON(object.LastModifiedAt) : undefined,
271
382
  };
272
383
  },
273
384
  toJSON(message) {
@@ -282,34 +393,34 @@ const Application = {
282
393
  obj.IsActive = message.IsActive;
283
394
  }
284
395
  if (message.CreatedAt !== undefined) {
285
- obj.CreatedAt = SerializableDateTimeOffset.toJSON(message.CreatedAt);
396
+ obj.CreatedAt = DateTimeOffset.toJSON(message.CreatedAt);
286
397
  }
287
398
  if (message.LastModifiedAt !== undefined) {
288
- obj.LastModifiedAt = SerializableDateTimeOffset.toJSON(message.LastModifiedAt);
399
+ obj.LastModifiedAt = DateTimeOffset.toJSON(message.LastModifiedAt);
289
400
  }
290
401
  return obj;
291
402
  },
292
403
  create(base) {
293
- return Application.fromPartial(base ?? {});
404
+ return ApplicationResponse.fromPartial(base ?? {});
294
405
  },
295
406
  fromPartial(object) {
296
- const message = createBaseApplication();
407
+ const message = createBaseApplicationResponse();
297
408
  message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
298
409
  message.ClientId = object.ClientId ?? "";
299
410
  message.IsActive = object.IsActive ?? false;
300
411
  message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
301
- ? SerializableDateTimeOffset.fromPartial(object.CreatedAt)
412
+ ? DateTimeOffset.fromPartial(object.CreatedAt)
302
413
  : undefined;
303
414
  message.LastModifiedAt = (object.LastModifiedAt !== undefined && object.LastModifiedAt !== null)
304
- ? SerializableDateTimeOffset.fromPartial(object.LastModifiedAt)
415
+ ? DateTimeOffset.fromPartial(object.LastModifiedAt)
305
416
  : undefined;
306
417
  return message;
307
418
  },
308
419
  };
309
- function createBaseChangeApplicationSecret() {
420
+ function createBaseChangeApplicationSecretRequest() {
310
421
  return { Id: undefined, ClientSecret: "" };
311
422
  }
312
- const ChangeApplicationSecret = {
423
+ const ChangeApplicationSecretRequest = {
313
424
  encode(message, writer = new wire.BinaryWriter()) {
314
425
  if (message.Id !== undefined) {
315
426
  bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
@@ -322,7 +433,7 @@ const ChangeApplicationSecret = {
322
433
  decode(input, length) {
323
434
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
324
435
  const end = length === undefined ? reader.len : reader.pos + length;
325
- const message = createBaseChangeApplicationSecret();
436
+ const message = createBaseChangeApplicationSecretRequest();
326
437
  while (reader.pos < end) {
327
438
  const tag = reader.uint32();
328
439
  switch (tag >>> 3) {
@@ -365,19 +476,19 @@ const ChangeApplicationSecret = {
365
476
  return obj;
366
477
  },
367
478
  create(base) {
368
- return ChangeApplicationSecret.fromPartial(base ?? {});
479
+ return ChangeApplicationSecretRequest.fromPartial(base ?? {});
369
480
  },
370
481
  fromPartial(object) {
371
- const message = createBaseChangeApplicationSecret();
482
+ const message = createBaseChangeApplicationSecretRequest();
372
483
  message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
373
484
  message.ClientSecret = object.ClientSecret ?? "";
374
485
  return message;
375
486
  },
376
487
  };
377
- function createBaseChangeUserPassword() {
488
+ function createBaseChangeUserPasswordRequest() {
378
489
  return { UserId: undefined, OldPassword: "", Password: "", ConfirmedPassword: "" };
379
490
  }
380
- const ChangeUserPassword = {
491
+ const ChangeUserPasswordRequest = {
381
492
  encode(message, writer = new wire.BinaryWriter()) {
382
493
  if (message.UserId !== undefined) {
383
494
  bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
@@ -396,7 +507,7 @@ const ChangeUserPassword = {
396
507
  decode(input, length) {
397
508
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
398
509
  const end = length === undefined ? reader.len : reader.pos + length;
399
- const message = createBaseChangeUserPassword();
510
+ const message = createBaseChangeUserPasswordRequest();
400
511
  while (reader.pos < end) {
401
512
  const tag = reader.uint32();
402
513
  switch (tag >>> 3) {
@@ -461,10 +572,10 @@ const ChangeUserPassword = {
461
572
  return obj;
462
573
  },
463
574
  create(base) {
464
- return ChangeUserPassword.fromPartial(base ?? {});
575
+ return ChangeUserPasswordRequest.fromPartial(base ?? {});
465
576
  },
466
577
  fromPartial(object) {
467
- const message = createBaseChangeUserPassword();
578
+ const message = createBaseChangeUserPasswordRequest();
468
579
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
469
580
  ? bcl.Guid.fromPartial(object.UserId)
470
581
  : undefined;
@@ -474,20 +585,42 @@ const ChangeUserPassword = {
474
585
  return message;
475
586
  },
476
587
  };
477
- function createBaseIListApplication() {
478
- return { items: [] };
588
+ function createBaseCommandResult() {
589
+ return {
590
+ CorrelationId: undefined,
591
+ IsAuthorized: false,
592
+ ValidationResults: [],
593
+ ExceptionMessages: [],
594
+ ExceptionStackTrace: "",
595
+ AuthorizationFailureReason: "",
596
+ };
479
597
  }
480
- const IListApplication = {
598
+ const CommandResult = {
481
599
  encode(message, writer = new wire.BinaryWriter()) {
482
- for (const v of message.items) {
483
- Application.encode(v, writer.uint32(10).fork()).join();
600
+ if (message.CorrelationId !== undefined) {
601
+ bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
602
+ }
603
+ if (message.IsAuthorized !== false) {
604
+ writer.uint32(16).bool(message.IsAuthorized);
605
+ }
606
+ for (const v of message.ValidationResults) {
607
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
608
+ }
609
+ for (const v of message.ExceptionMessages) {
610
+ writer.uint32(34).string(v);
611
+ }
612
+ if (message.ExceptionStackTrace !== "") {
613
+ writer.uint32(42).string(message.ExceptionStackTrace);
614
+ }
615
+ if (message.AuthorizationFailureReason !== "") {
616
+ writer.uint32(50).string(message.AuthorizationFailureReason);
484
617
  }
485
618
  return writer;
486
619
  },
487
620
  decode(input, length) {
488
621
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
489
622
  const end = length === undefined ? reader.len : reader.pos + length;
490
- const message = createBaseIListApplication();
623
+ const message = createBaseCommandResult();
491
624
  while (reader.pos < end) {
492
625
  const tag = reader.uint32();
493
626
  switch (tag >>> 3) {
@@ -495,7 +628,42 @@ const IListApplication = {
495
628
  if (tag !== 10) {
496
629
  break;
497
630
  }
498
- message.items.push(Application.decode(reader, reader.uint32()));
631
+ message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
632
+ continue;
633
+ }
634
+ case 2: {
635
+ if (tag !== 16) {
636
+ break;
637
+ }
638
+ message.IsAuthorized = reader.bool();
639
+ continue;
640
+ }
641
+ case 3: {
642
+ if (tag !== 26) {
643
+ break;
644
+ }
645
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
646
+ continue;
647
+ }
648
+ case 4: {
649
+ if (tag !== 34) {
650
+ break;
651
+ }
652
+ message.ExceptionMessages.push(reader.string());
653
+ continue;
654
+ }
655
+ case 5: {
656
+ if (tag !== 42) {
657
+ break;
658
+ }
659
+ message.ExceptionStackTrace = reader.string();
660
+ continue;
661
+ }
662
+ case 6: {
663
+ if (tag !== 50) {
664
+ break;
665
+ }
666
+ message.AuthorizationFailureReason = reader.string();
499
667
  continue;
500
668
  }
501
669
  }
@@ -508,39 +676,129 @@ const IListApplication = {
508
676
  },
509
677
  fromJSON(object) {
510
678
  return {
511
- items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Application.fromJSON(e)) : [],
679
+ CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
680
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
681
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
682
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
683
+ : [],
684
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
685
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
686
+ : [],
687
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
688
+ AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
689
+ ? globalThis.String(object.AuthorizationFailureReason)
690
+ : "",
512
691
  };
513
692
  },
514
693
  toJSON(message) {
515
694
  const obj = {};
516
- if (message.items?.length) {
517
- obj.items = message.items.map((e) => Application.toJSON(e));
695
+ if (message.CorrelationId !== undefined) {
696
+ obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
697
+ }
698
+ if (message.IsAuthorized !== false) {
699
+ obj.IsAuthorized = message.IsAuthorized;
700
+ }
701
+ if (message.ValidationResults?.length) {
702
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
703
+ }
704
+ if (message.ExceptionMessages?.length) {
705
+ obj.ExceptionMessages = message.ExceptionMessages;
706
+ }
707
+ if (message.ExceptionStackTrace !== "") {
708
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
709
+ }
710
+ if (message.AuthorizationFailureReason !== "") {
711
+ obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
518
712
  }
519
713
  return obj;
520
714
  },
521
715
  create(base) {
522
- return IListApplication.fromPartial(base ?? {});
716
+ return CommandResult.fromPartial(base ?? {});
523
717
  },
524
718
  fromPartial(object) {
525
- const message = createBaseIListApplication();
526
- message.items = object.items?.map((e) => Application.fromPartial(e)) || [];
719
+ const message = createBaseCommandResult();
720
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
721
+ ? bcl.Guid.fromPartial(object.CorrelationId)
722
+ : undefined;
723
+ message.IsAuthorized = object.IsAuthorized ?? false;
724
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
725
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
726
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
727
+ message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
527
728
  return message;
528
729
  },
529
730
  };
530
- function createBaseIListUser() {
531
- return { items: [] };
731
+ function createBaseDateTimeOffset() {
732
+ return {};
532
733
  }
533
- const IListUser = {
734
+ const DateTimeOffset = {
735
+ encode(_, writer = new wire.BinaryWriter()) {
736
+ return writer;
737
+ },
738
+ decode(input, length) {
739
+ const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
740
+ const end = length === undefined ? reader.len : reader.pos + length;
741
+ const message = createBaseDateTimeOffset();
742
+ while (reader.pos < end) {
743
+ const tag = reader.uint32();
744
+ if ((tag & 7) === 4 || tag === 0) {
745
+ break;
746
+ }
747
+ reader.skip(tag & 7);
748
+ }
749
+ return message;
750
+ },
751
+ fromJSON(_) {
752
+ return {};
753
+ },
754
+ toJSON(_) {
755
+ const obj = {};
756
+ return obj;
757
+ },
758
+ create(base) {
759
+ return DateTimeOffset.fromPartial(base ?? {});
760
+ },
761
+ fromPartial(_) {
762
+ const message = createBaseDateTimeOffset();
763
+ return message;
764
+ },
765
+ };
766
+ function createBaseQueryResultAdminPasswordStatusResponse() {
767
+ return {
768
+ CorrelationId: undefined,
769
+ IsAuthorized: false,
770
+ ValidationResults: [],
771
+ ExceptionMessages: [],
772
+ ExceptionStackTrace: "",
773
+ Data: undefined,
774
+ };
775
+ }
776
+ const QueryResultAdminPasswordStatusResponse = {
534
777
  encode(message, writer = new wire.BinaryWriter()) {
535
- for (const v of message.items) {
536
- User.encode(v, writer.uint32(10).fork()).join();
778
+ if (message.CorrelationId !== undefined) {
779
+ bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
780
+ }
781
+ if (message.IsAuthorized !== false) {
782
+ writer.uint32(16).bool(message.IsAuthorized);
783
+ }
784
+ for (const v of message.ValidationResults) {
785
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
786
+ }
787
+ for (const v of message.ExceptionMessages) {
788
+ writer.uint32(34).string(v);
789
+ }
790
+ if (message.ExceptionStackTrace !== "") {
791
+ writer.uint32(42).string(message.ExceptionStackTrace);
792
+ }
793
+ if (message.Data !== undefined) {
794
+ AdminPasswordStatusResponse.encode(message.Data, writer.uint32(50).fork()).join();
537
795
  }
538
796
  return writer;
539
797
  },
540
798
  decode(input, length) {
541
799
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
542
800
  const end = length === undefined ? reader.len : reader.pos + length;
543
- const message = createBaseIListUser();
801
+ const message = createBaseQueryResultAdminPasswordStatusResponse();
544
802
  while (reader.pos < end) {
545
803
  const tag = reader.uint32();
546
804
  switch (tag >>> 3) {
@@ -548,7 +806,42 @@ const IListUser = {
548
806
  if (tag !== 10) {
549
807
  break;
550
808
  }
551
- message.items.push(User.decode(reader, reader.uint32()));
809
+ message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
810
+ continue;
811
+ }
812
+ case 2: {
813
+ if (tag !== 16) {
814
+ break;
815
+ }
816
+ message.IsAuthorized = reader.bool();
817
+ continue;
818
+ }
819
+ case 3: {
820
+ if (tag !== 26) {
821
+ break;
822
+ }
823
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
824
+ continue;
825
+ }
826
+ case 4: {
827
+ if (tag !== 34) {
828
+ break;
829
+ }
830
+ message.ExceptionMessages.push(reader.string());
831
+ continue;
832
+ }
833
+ case 5: {
834
+ if (tag !== 42) {
835
+ break;
836
+ }
837
+ message.ExceptionStackTrace = reader.string();
838
+ continue;
839
+ }
840
+ case 6: {
841
+ if (tag !== 50) {
842
+ break;
843
+ }
844
+ message.Data = AdminPasswordStatusResponse.decode(reader, reader.uint32());
552
845
  continue;
553
846
  }
554
847
  }
@@ -560,56 +853,138 @@ const IListUser = {
560
853
  return message;
561
854
  },
562
855
  fromJSON(object) {
563
- return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => User.fromJSON(e)) : [] };
856
+ return {
857
+ CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
858
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
859
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
860
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
861
+ : [],
862
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
863
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
864
+ : [],
865
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
866
+ Data: isSet(object.Data) ? AdminPasswordStatusResponse.fromJSON(object.Data) : undefined,
867
+ };
564
868
  },
565
869
  toJSON(message) {
566
870
  const obj = {};
567
- if (message.items?.length) {
568
- obj.items = message.items.map((e) => User.toJSON(e));
871
+ if (message.CorrelationId !== undefined) {
872
+ obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
873
+ }
874
+ if (message.IsAuthorized !== false) {
875
+ obj.IsAuthorized = message.IsAuthorized;
876
+ }
877
+ if (message.ValidationResults?.length) {
878
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
879
+ }
880
+ if (message.ExceptionMessages?.length) {
881
+ obj.ExceptionMessages = message.ExceptionMessages;
882
+ }
883
+ if (message.ExceptionStackTrace !== "") {
884
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
885
+ }
886
+ if (message.Data !== undefined) {
887
+ obj.Data = AdminPasswordStatusResponse.toJSON(message.Data);
569
888
  }
570
889
  return obj;
571
890
  },
572
891
  create(base) {
573
- return IListUser.fromPartial(base ?? {});
892
+ return QueryResultAdminPasswordStatusResponse.fromPartial(base ?? {});
574
893
  },
575
894
  fromPartial(object) {
576
- const message = createBaseIListUser();
577
- message.items = object.items?.map((e) => User.fromPartial(e)) || [];
895
+ const message = createBaseQueryResultAdminPasswordStatusResponse();
896
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
897
+ ? bcl.Guid.fromPartial(object.CorrelationId)
898
+ : undefined;
899
+ message.IsAuthorized = object.IsAuthorized ?? false;
900
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
901
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
902
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
903
+ message.Data = (object.Data !== undefined && object.Data !== null)
904
+ ? AdminPasswordStatusResponse.fromPartial(object.Data)
905
+ : undefined;
578
906
  return message;
579
907
  },
580
908
  };
581
- function createBaseInitialAdminPasswordSetupStatus() {
582
- return { IsRequired: false, AdminUserId: undefined };
909
+ function createBaseQueryResultIEnumerableApplicationResponse() {
910
+ return {
911
+ CorrelationId: undefined,
912
+ IsAuthorized: false,
913
+ ValidationResults: [],
914
+ ExceptionMessages: [],
915
+ ExceptionStackTrace: "",
916
+ Data: [],
917
+ };
583
918
  }
584
- const InitialAdminPasswordSetupStatus = {
919
+ const QueryResultIEnumerableApplicationResponse = {
585
920
  encode(message, writer = new wire.BinaryWriter()) {
586
- if (message.IsRequired !== false) {
587
- writer.uint32(8).bool(message.IsRequired);
921
+ if (message.CorrelationId !== undefined) {
922
+ bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
588
923
  }
589
- if (message.AdminUserId !== undefined) {
590
- bcl.Guid.encode(message.AdminUserId, writer.uint32(18).fork()).join();
924
+ if (message.IsAuthorized !== false) {
925
+ writer.uint32(16).bool(message.IsAuthorized);
926
+ }
927
+ for (const v of message.ValidationResults) {
928
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
929
+ }
930
+ for (const v of message.ExceptionMessages) {
931
+ writer.uint32(34).string(v);
932
+ }
933
+ if (message.ExceptionStackTrace !== "") {
934
+ writer.uint32(42).string(message.ExceptionStackTrace);
935
+ }
936
+ for (const v of message.Data) {
937
+ ApplicationResponse.encode(v, writer.uint32(50).fork()).join();
591
938
  }
592
939
  return writer;
593
940
  },
594
941
  decode(input, length) {
595
942
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
596
943
  const end = length === undefined ? reader.len : reader.pos + length;
597
- const message = createBaseInitialAdminPasswordSetupStatus();
944
+ const message = createBaseQueryResultIEnumerableApplicationResponse();
598
945
  while (reader.pos < end) {
599
946
  const tag = reader.uint32();
600
947
  switch (tag >>> 3) {
601
948
  case 1: {
602
- if (tag !== 8) {
949
+ if (tag !== 10) {
603
950
  break;
604
951
  }
605
- message.IsRequired = reader.bool();
952
+ message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
606
953
  continue;
607
954
  }
608
955
  case 2: {
609
- if (tag !== 18) {
956
+ if (tag !== 16) {
610
957
  break;
611
958
  }
612
- message.AdminUserId = bcl.Guid.decode(reader, reader.uint32());
959
+ message.IsAuthorized = reader.bool();
960
+ continue;
961
+ }
962
+ case 3: {
963
+ if (tag !== 26) {
964
+ break;
965
+ }
966
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
967
+ continue;
968
+ }
969
+ case 4: {
970
+ if (tag !== 34) {
971
+ break;
972
+ }
973
+ message.ExceptionMessages.push(reader.string());
974
+ continue;
975
+ }
976
+ case 5: {
977
+ if (tag !== 42) {
978
+ break;
979
+ }
980
+ message.ExceptionStackTrace = reader.string();
981
+ continue;
982
+ }
983
+ case 6: {
984
+ if (tag !== 50) {
985
+ break;
986
+ }
987
+ message.Data.push(ApplicationResponse.decode(reader, reader.uint32()));
613
988
  continue;
614
989
  }
615
990
  }
@@ -622,46 +997,92 @@ const InitialAdminPasswordSetupStatus = {
622
997
  },
623
998
  fromJSON(object) {
624
999
  return {
625
- IsRequired: isSet(object.IsRequired) ? globalThis.Boolean(object.IsRequired) : false,
626
- AdminUserId: isSet(object.AdminUserId) ? bcl.Guid.fromJSON(object.AdminUserId) : undefined,
1000
+ CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
1001
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1002
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1003
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
1004
+ : [],
1005
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1006
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
1007
+ : [],
1008
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1009
+ Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e) => ApplicationResponse.fromJSON(e)) : [],
627
1010
  };
628
1011
  },
629
1012
  toJSON(message) {
630
1013
  const obj = {};
631
- if (message.IsRequired !== false) {
632
- obj.IsRequired = message.IsRequired;
1014
+ if (message.CorrelationId !== undefined) {
1015
+ obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
633
1016
  }
634
- if (message.AdminUserId !== undefined) {
635
- obj.AdminUserId = bcl.Guid.toJSON(message.AdminUserId);
1017
+ if (message.IsAuthorized !== false) {
1018
+ obj.IsAuthorized = message.IsAuthorized;
1019
+ }
1020
+ if (message.ValidationResults?.length) {
1021
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1022
+ }
1023
+ if (message.ExceptionMessages?.length) {
1024
+ obj.ExceptionMessages = message.ExceptionMessages;
1025
+ }
1026
+ if (message.ExceptionStackTrace !== "") {
1027
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1028
+ }
1029
+ if (message.Data?.length) {
1030
+ obj.Data = message.Data.map((e) => ApplicationResponse.toJSON(e));
636
1031
  }
637
1032
  return obj;
638
1033
  },
639
1034
  create(base) {
640
- return InitialAdminPasswordSetupStatus.fromPartial(base ?? {});
1035
+ return QueryResultIEnumerableApplicationResponse.fromPartial(base ?? {});
641
1036
  },
642
1037
  fromPartial(object) {
643
- const message = createBaseInitialAdminPasswordSetupStatus();
644
- message.IsRequired = object.IsRequired ?? false;
645
- message.AdminUserId = (object.AdminUserId !== undefined && object.AdminUserId !== null)
646
- ? bcl.Guid.fromPartial(object.AdminUserId)
1038
+ const message = createBaseQueryResultIEnumerableApplicationResponse();
1039
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1040
+ ? bcl.Guid.fromPartial(object.CorrelationId)
647
1041
  : undefined;
1042
+ message.IsAuthorized = object.IsAuthorized ?? false;
1043
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1044
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1045
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1046
+ message.Data = object.Data?.map((e) => ApplicationResponse.fromPartial(e)) || [];
648
1047
  return message;
649
1048
  },
650
1049
  };
651
- function createBaseRemoveApplication() {
652
- return { Id: undefined };
1050
+ function createBaseQueryResultIEnumerableUserResponse() {
1051
+ return {
1052
+ CorrelationId: undefined,
1053
+ IsAuthorized: false,
1054
+ ValidationResults: [],
1055
+ ExceptionMessages: [],
1056
+ ExceptionStackTrace: "",
1057
+ Data: [],
1058
+ };
653
1059
  }
654
- const RemoveApplication = {
1060
+ const QueryResultIEnumerableUserResponse = {
655
1061
  encode(message, writer = new wire.BinaryWriter()) {
656
- if (message.Id !== undefined) {
657
- bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
1062
+ if (message.CorrelationId !== undefined) {
1063
+ bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
1064
+ }
1065
+ if (message.IsAuthorized !== false) {
1066
+ writer.uint32(16).bool(message.IsAuthorized);
1067
+ }
1068
+ for (const v of message.ValidationResults) {
1069
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
1070
+ }
1071
+ for (const v of message.ExceptionMessages) {
1072
+ writer.uint32(34).string(v);
1073
+ }
1074
+ if (message.ExceptionStackTrace !== "") {
1075
+ writer.uint32(42).string(message.ExceptionStackTrace);
1076
+ }
1077
+ for (const v of message.Data) {
1078
+ UserResponse.encode(v, writer.uint32(50).fork()).join();
658
1079
  }
659
1080
  return writer;
660
1081
  },
661
1082
  decode(input, length) {
662
1083
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
663
1084
  const end = length === undefined ? reader.len : reader.pos + length;
664
- const message = createBaseRemoveApplication();
1085
+ const message = createBaseQueryResultIEnumerableUserResponse();
665
1086
  while (reader.pos < end) {
666
1087
  const tag = reader.uint32();
667
1088
  switch (tag >>> 3) {
@@ -669,7 +1090,42 @@ const RemoveApplication = {
669
1090
  if (tag !== 10) {
670
1091
  break;
671
1092
  }
672
- message.Id = bcl.Guid.decode(reader, reader.uint32());
1093
+ message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
1094
+ continue;
1095
+ }
1096
+ case 2: {
1097
+ if (tag !== 16) {
1098
+ break;
1099
+ }
1100
+ message.IsAuthorized = reader.bool();
1101
+ continue;
1102
+ }
1103
+ case 3: {
1104
+ if (tag !== 26) {
1105
+ break;
1106
+ }
1107
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
1108
+ continue;
1109
+ }
1110
+ case 4: {
1111
+ if (tag !== 34) {
1112
+ break;
1113
+ }
1114
+ message.ExceptionMessages.push(reader.string());
1115
+ continue;
1116
+ }
1117
+ case 5: {
1118
+ if (tag !== 42) {
1119
+ break;
1120
+ }
1121
+ message.ExceptionStackTrace = reader.string();
1122
+ continue;
1123
+ }
1124
+ case 6: {
1125
+ if (tag !== 50) {
1126
+ break;
1127
+ }
1128
+ message.Data.push(UserResponse.decode(reader, reader.uint32()));
673
1129
  continue;
674
1130
  }
675
1131
  }
@@ -681,38 +1137,71 @@ const RemoveApplication = {
681
1137
  return message;
682
1138
  },
683
1139
  fromJSON(object) {
684
- return { Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined };
1140
+ return {
1141
+ CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
1142
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1143
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1144
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
1145
+ : [],
1146
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1147
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
1148
+ : [],
1149
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1150
+ Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e) => UserResponse.fromJSON(e)) : [],
1151
+ };
685
1152
  },
686
1153
  toJSON(message) {
687
1154
  const obj = {};
688
- if (message.Id !== undefined) {
689
- obj.Id = bcl.Guid.toJSON(message.Id);
1155
+ if (message.CorrelationId !== undefined) {
1156
+ obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
1157
+ }
1158
+ if (message.IsAuthorized !== false) {
1159
+ obj.IsAuthorized = message.IsAuthorized;
1160
+ }
1161
+ if (message.ValidationResults?.length) {
1162
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1163
+ }
1164
+ if (message.ExceptionMessages?.length) {
1165
+ obj.ExceptionMessages = message.ExceptionMessages;
1166
+ }
1167
+ if (message.ExceptionStackTrace !== "") {
1168
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1169
+ }
1170
+ if (message.Data?.length) {
1171
+ obj.Data = message.Data.map((e) => UserResponse.toJSON(e));
690
1172
  }
691
1173
  return obj;
692
1174
  },
693
1175
  create(base) {
694
- return RemoveApplication.fromPartial(base ?? {});
1176
+ return QueryResultIEnumerableUserResponse.fromPartial(base ?? {});
695
1177
  },
696
1178
  fromPartial(object) {
697
- const message = createBaseRemoveApplication();
698
- message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
1179
+ const message = createBaseQueryResultIEnumerableUserResponse();
1180
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1181
+ ? bcl.Guid.fromPartial(object.CorrelationId)
1182
+ : undefined;
1183
+ message.IsAuthorized = object.IsAuthorized ?? false;
1184
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1185
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1186
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1187
+ message.Data = object.Data?.map((e) => UserResponse.fromPartial(e)) || [];
699
1188
  return message;
700
1189
  },
701
1190
  };
702
- function createBaseRemoveUser() {
703
- return { UserId: undefined };
1191
+ function createBaseRemoveApplicationRequest() {
1192
+ return { Id: undefined };
704
1193
  }
705
- const RemoveUser = {
1194
+ const RemoveApplicationRequest = {
706
1195
  encode(message, writer = new wire.BinaryWriter()) {
707
- if (message.UserId !== undefined) {
708
- bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
1196
+ if (message.Id !== undefined) {
1197
+ bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
709
1198
  }
710
1199
  return writer;
711
1200
  },
712
1201
  decode(input, length) {
713
1202
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
714
1203
  const end = length === undefined ? reader.len : reader.pos + length;
715
- const message = createBaseRemoveUser();
1204
+ const message = createBaseRemoveApplicationRequest();
716
1205
  while (reader.pos < end) {
717
1206
  const tag = reader.uint32();
718
1207
  switch (tag >>> 3) {
@@ -720,7 +1209,7 @@ const RemoveUser = {
720
1209
  if (tag !== 10) {
721
1210
  break;
722
1211
  }
723
- message.UserId = bcl.Guid.decode(reader, reader.uint32());
1212
+ message.Id = bcl.Guid.decode(reader, reader.uint32());
724
1213
  continue;
725
1214
  }
726
1215
  }
@@ -732,30 +1221,28 @@ const RemoveUser = {
732
1221
  return message;
733
1222
  },
734
1223
  fromJSON(object) {
735
- return { UserId: isSet(object.UserId) ? bcl.Guid.fromJSON(object.UserId) : undefined };
1224
+ return { Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined };
736
1225
  },
737
1226
  toJSON(message) {
738
1227
  const obj = {};
739
- if (message.UserId !== undefined) {
740
- obj.UserId = bcl.Guid.toJSON(message.UserId);
1228
+ if (message.Id !== undefined) {
1229
+ obj.Id = bcl.Guid.toJSON(message.Id);
741
1230
  }
742
1231
  return obj;
743
1232
  },
744
1233
  create(base) {
745
- return RemoveUser.fromPartial(base ?? {});
1234
+ return RemoveApplicationRequest.fromPartial(base ?? {});
746
1235
  },
747
1236
  fromPartial(object) {
748
- const message = createBaseRemoveUser();
749
- message.UserId = (object.UserId !== undefined && object.UserId !== null)
750
- ? bcl.Guid.fromPartial(object.UserId)
751
- : undefined;
1237
+ const message = createBaseRemoveApplicationRequest();
1238
+ message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
752
1239
  return message;
753
1240
  },
754
1241
  };
755
- function createBaseRequirePasswordChange() {
1242
+ function createBaseRemoveUserRequest() {
756
1243
  return { UserId: undefined };
757
1244
  }
758
- const RequirePasswordChange = {
1245
+ const RemoveUserRequest = {
759
1246
  encode(message, writer = new wire.BinaryWriter()) {
760
1247
  if (message.UserId !== undefined) {
761
1248
  bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
@@ -765,7 +1252,7 @@ const RequirePasswordChange = {
765
1252
  decode(input, length) {
766
1253
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
767
1254
  const end = length === undefined ? reader.len : reader.pos + length;
768
- const message = createBaseRequirePasswordChange();
1255
+ const message = createBaseRemoveUserRequest();
769
1256
  while (reader.pos < end) {
770
1257
  const tag = reader.uint32();
771
1258
  switch (tag >>> 3) {
@@ -795,30 +1282,30 @@ const RequirePasswordChange = {
795
1282
  return obj;
796
1283
  },
797
1284
  create(base) {
798
- return RequirePasswordChange.fromPartial(base ?? {});
1285
+ return RemoveUserRequest.fromPartial(base ?? {});
799
1286
  },
800
1287
  fromPartial(object) {
801
- const message = createBaseRequirePasswordChange();
1288
+ const message = createBaseRemoveUserRequest();
802
1289
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
803
1290
  ? bcl.Guid.fromPartial(object.UserId)
804
1291
  : undefined;
805
1292
  return message;
806
1293
  },
807
1294
  };
808
- function createBaseSerializableDateTimeOffset() {
809
- return { Value: "" };
1295
+ function createBaseRequirePasswordChangeRequest() {
1296
+ return { UserId: undefined };
810
1297
  }
811
- const SerializableDateTimeOffset = {
1298
+ const RequirePasswordChangeRequest = {
812
1299
  encode(message, writer = new wire.BinaryWriter()) {
813
- if (message.Value !== "") {
814
- writer.uint32(10).string(message.Value);
1300
+ if (message.UserId !== undefined) {
1301
+ bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
815
1302
  }
816
1303
  return writer;
817
1304
  },
818
1305
  decode(input, length) {
819
1306
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
820
1307
  const end = length === undefined ? reader.len : reader.pos + length;
821
- const message = createBaseSerializableDateTimeOffset();
1308
+ const message = createBaseRequirePasswordChangeRequest();
822
1309
  while (reader.pos < end) {
823
1310
  const tag = reader.uint32();
824
1311
  switch (tag >>> 3) {
@@ -826,7 +1313,7 @@ const SerializableDateTimeOffset = {
826
1313
  if (tag !== 10) {
827
1314
  break;
828
1315
  }
829
- message.Value = reader.string();
1316
+ message.UserId = bcl.Guid.decode(reader, reader.uint32());
830
1317
  continue;
831
1318
  }
832
1319
  }
@@ -838,28 +1325,30 @@ const SerializableDateTimeOffset = {
838
1325
  return message;
839
1326
  },
840
1327
  fromJSON(object) {
841
- return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
1328
+ return { UserId: isSet(object.UserId) ? bcl.Guid.fromJSON(object.UserId) : undefined };
842
1329
  },
843
1330
  toJSON(message) {
844
1331
  const obj = {};
845
- if (message.Value !== "") {
846
- obj.Value = message.Value;
1332
+ if (message.UserId !== undefined) {
1333
+ obj.UserId = bcl.Guid.toJSON(message.UserId);
847
1334
  }
848
1335
  return obj;
849
1336
  },
850
1337
  create(base) {
851
- return SerializableDateTimeOffset.fromPartial(base ?? {});
1338
+ return RequirePasswordChangeRequest.fromPartial(base ?? {});
852
1339
  },
853
1340
  fromPartial(object) {
854
- const message = createBaseSerializableDateTimeOffset();
855
- message.Value = object.Value ?? "";
1341
+ const message = createBaseRequirePasswordChangeRequest();
1342
+ message.UserId = (object.UserId !== undefined && object.UserId !== null)
1343
+ ? bcl.Guid.fromPartial(object.UserId)
1344
+ : undefined;
856
1345
  return message;
857
1346
  },
858
1347
  };
859
- function createBaseSetInitialAdminPassword() {
1348
+ function createBaseSetInitialAdminPasswordRequest() {
860
1349
  return { UserId: undefined, Password: "", ConfirmedPassword: "" };
861
1350
  }
862
- const SetInitialAdminPassword = {
1351
+ const SetInitialAdminPasswordRequest = {
863
1352
  encode(message, writer = new wire.BinaryWriter()) {
864
1353
  if (message.UserId !== undefined) {
865
1354
  bcl.Guid.encode(message.UserId, writer.uint32(10).fork()).join();
@@ -875,7 +1364,7 @@ const SetInitialAdminPassword = {
875
1364
  decode(input, length) {
876
1365
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
877
1366
  const end = length === undefined ? reader.len : reader.pos + length;
878
- const message = createBaseSetInitialAdminPassword();
1367
+ const message = createBaseSetInitialAdminPasswordRequest();
879
1368
  while (reader.pos < end) {
880
1369
  const tag = reader.uint32();
881
1370
  switch (tag >>> 3) {
@@ -929,10 +1418,10 @@ const SetInitialAdminPassword = {
929
1418
  return obj;
930
1419
  },
931
1420
  create(base) {
932
- return SetInitialAdminPassword.fromPartial(base ?? {});
1421
+ return SetInitialAdminPasswordRequest.fromPartial(base ?? {});
933
1422
  },
934
1423
  fromPartial(object) {
935
- const message = createBaseSetInitialAdminPassword();
1424
+ const message = createBaseSetInitialAdminPasswordRequest();
936
1425
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
937
1426
  ? bcl.Guid.fromPartial(object.UserId)
938
1427
  : undefined;
@@ -941,7 +1430,7 @@ const SetInitialAdminPassword = {
941
1430
  return message;
942
1431
  },
943
1432
  };
944
- function createBaseUser() {
1433
+ function createBaseUserResponse() {
945
1434
  return {
946
1435
  Id: undefined,
947
1436
  Username: "",
@@ -952,7 +1441,7 @@ function createBaseUser() {
952
1441
  HasLoggedIn: false,
953
1442
  };
954
1443
  }
955
- const User = {
1444
+ const UserResponse = {
956
1445
  encode(message, writer = new wire.BinaryWriter()) {
957
1446
  if (message.Id !== undefined) {
958
1447
  bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
@@ -967,10 +1456,10 @@ const User = {
967
1456
  writer.uint32(32).bool(message.IsActive);
968
1457
  }
969
1458
  if (message.CreatedAt !== undefined) {
970
- SerializableDateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
1459
+ DateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
971
1460
  }
972
1461
  if (message.LastModifiedAt !== undefined) {
973
- SerializableDateTimeOffset.encode(message.LastModifiedAt, writer.uint32(50).fork()).join();
1462
+ DateTimeOffset.encode(message.LastModifiedAt, writer.uint32(50).fork()).join();
974
1463
  }
975
1464
  if (message.HasLoggedIn !== false) {
976
1465
  writer.uint32(56).bool(message.HasLoggedIn);
@@ -980,7 +1469,7 @@ const User = {
980
1469
  decode(input, length) {
981
1470
  const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
982
1471
  const end = length === undefined ? reader.len : reader.pos + length;
983
- const message = createBaseUser();
1472
+ const message = createBaseUserResponse();
984
1473
  while (reader.pos < end) {
985
1474
  const tag = reader.uint32();
986
1475
  switch (tag >>> 3) {
@@ -1016,14 +1505,14 @@ const User = {
1016
1505
  if (tag !== 42) {
1017
1506
  break;
1018
1507
  }
1019
- message.CreatedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
1508
+ message.CreatedAt = DateTimeOffset.decode(reader, reader.uint32());
1020
1509
  continue;
1021
1510
  }
1022
1511
  case 6: {
1023
1512
  if (tag !== 50) {
1024
1513
  break;
1025
1514
  }
1026
- message.LastModifiedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
1515
+ message.LastModifiedAt = DateTimeOffset.decode(reader, reader.uint32());
1027
1516
  continue;
1028
1517
  }
1029
1518
  case 7: {
@@ -1047,10 +1536,8 @@ const User = {
1047
1536
  Username: isSet(object.Username) ? globalThis.String(object.Username) : "",
1048
1537
  Email: isSet(object.Email) ? globalThis.String(object.Email) : "",
1049
1538
  IsActive: isSet(object.IsActive) ? globalThis.Boolean(object.IsActive) : false,
1050
- CreatedAt: isSet(object.CreatedAt) ? SerializableDateTimeOffset.fromJSON(object.CreatedAt) : undefined,
1051
- LastModifiedAt: isSet(object.LastModifiedAt)
1052
- ? SerializableDateTimeOffset.fromJSON(object.LastModifiedAt)
1053
- : undefined,
1539
+ CreatedAt: isSet(object.CreatedAt) ? DateTimeOffset.fromJSON(object.CreatedAt) : undefined,
1540
+ LastModifiedAt: isSet(object.LastModifiedAt) ? DateTimeOffset.fromJSON(object.LastModifiedAt) : undefined,
1054
1541
  HasLoggedIn: isSet(object.HasLoggedIn) ? globalThis.Boolean(object.HasLoggedIn) : false,
1055
1542
  };
1056
1543
  },
@@ -1069,10 +1556,10 @@ const User = {
1069
1556
  obj.IsActive = message.IsActive;
1070
1557
  }
1071
1558
  if (message.CreatedAt !== undefined) {
1072
- obj.CreatedAt = SerializableDateTimeOffset.toJSON(message.CreatedAt);
1559
+ obj.CreatedAt = DateTimeOffset.toJSON(message.CreatedAt);
1073
1560
  }
1074
1561
  if (message.LastModifiedAt !== undefined) {
1075
- obj.LastModifiedAt = SerializableDateTimeOffset.toJSON(message.LastModifiedAt);
1562
+ obj.LastModifiedAt = DateTimeOffset.toJSON(message.LastModifiedAt);
1076
1563
  }
1077
1564
  if (message.HasLoggedIn !== false) {
1078
1565
  obj.HasLoggedIn = message.HasLoggedIn;
@@ -1080,65 +1567,140 @@ const User = {
1080
1567
  return obj;
1081
1568
  },
1082
1569
  create(base) {
1083
- return User.fromPartial(base ?? {});
1570
+ return UserResponse.fromPartial(base ?? {});
1084
1571
  },
1085
1572
  fromPartial(object) {
1086
- const message = createBaseUser();
1573
+ const message = createBaseUserResponse();
1087
1574
  message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
1088
1575
  message.Username = object.Username ?? "";
1089
1576
  message.Email = object.Email ?? "";
1090
1577
  message.IsActive = object.IsActive ?? false;
1091
1578
  message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
1092
- ? SerializableDateTimeOffset.fromPartial(object.CreatedAt)
1579
+ ? DateTimeOffset.fromPartial(object.CreatedAt)
1093
1580
  : undefined;
1094
1581
  message.LastModifiedAt = (object.LastModifiedAt !== undefined && object.LastModifiedAt !== null)
1095
- ? SerializableDateTimeOffset.fromPartial(object.LastModifiedAt)
1582
+ ? DateTimeOffset.fromPartial(object.LastModifiedAt)
1096
1583
  : undefined;
1097
1584
  message.HasLoggedIn = object.HasLoggedIn ?? false;
1098
1585
  return message;
1099
1586
  },
1100
1587
  };
1588
+ function createBaseValidationResult() {
1589
+ return { Severity: 0, Message: "", Members: [] };
1590
+ }
1591
+ const ValidationResult = {
1592
+ encode(message, writer = new wire.BinaryWriter()) {
1593
+ if (message.Severity !== 0) {
1594
+ writer.uint32(8).int32(message.Severity);
1595
+ }
1596
+ if (message.Message !== "") {
1597
+ writer.uint32(18).string(message.Message);
1598
+ }
1599
+ for (const v of message.Members) {
1600
+ writer.uint32(26).string(v);
1601
+ }
1602
+ return writer;
1603
+ },
1604
+ decode(input, length) {
1605
+ const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
1606
+ const end = length === undefined ? reader.len : reader.pos + length;
1607
+ const message = createBaseValidationResult();
1608
+ while (reader.pos < end) {
1609
+ const tag = reader.uint32();
1610
+ switch (tag >>> 3) {
1611
+ case 1: {
1612
+ if (tag !== 8) {
1613
+ break;
1614
+ }
1615
+ message.Severity = reader.int32();
1616
+ continue;
1617
+ }
1618
+ case 2: {
1619
+ if (tag !== 18) {
1620
+ break;
1621
+ }
1622
+ message.Message = reader.string();
1623
+ continue;
1624
+ }
1625
+ case 3: {
1626
+ if (tag !== 26) {
1627
+ break;
1628
+ }
1629
+ message.Members.push(reader.string());
1630
+ continue;
1631
+ }
1632
+ }
1633
+ if ((tag & 7) === 4 || tag === 0) {
1634
+ break;
1635
+ }
1636
+ reader.skip(tag & 7);
1637
+ }
1638
+ return message;
1639
+ },
1640
+ fromJSON(object) {
1641
+ return {
1642
+ Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
1643
+ Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
1644
+ Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e) => globalThis.String(e)) : [],
1645
+ };
1646
+ },
1647
+ toJSON(message) {
1648
+ const obj = {};
1649
+ if (message.Severity !== 0) {
1650
+ obj.Severity = validationResultSeverityToJSON(message.Severity);
1651
+ }
1652
+ if (message.Message !== "") {
1653
+ obj.Message = message.Message;
1654
+ }
1655
+ if (message.Members?.length) {
1656
+ obj.Members = message.Members;
1657
+ }
1658
+ return obj;
1659
+ },
1660
+ create(base) {
1661
+ return ValidationResult.fromPartial(base ?? {});
1662
+ },
1663
+ fromPartial(object) {
1664
+ const message = createBaseValidationResult();
1665
+ message.Severity = object.Severity ?? 0;
1666
+ message.Message = object.Message ?? "";
1667
+ message.Members = object.Members?.map((e) => e) || [];
1668
+ return message;
1669
+ },
1670
+ };
1101
1671
  const ApplicationsDefinition = {
1102
1672
  name: "Applications",
1103
1673
  fullName: "Cratis.Chronicle.Contracts.Security.Applications",
1104
1674
  methods: {
1105
- add: {
1106
- name: "Add",
1107
- requestType: AddApplication,
1675
+ addApplication: {
1676
+ name: "AddApplication",
1677
+ requestType: AddApplicationRequest,
1108
1678
  requestStream: false,
1109
- responseType: empty.Empty,
1679
+ responseType: CommandResult,
1110
1680
  responseStream: false,
1111
1681
  options: {},
1112
1682
  },
1113
- changeSecret: {
1114
- name: "ChangeSecret",
1115
- requestType: ChangeApplicationSecret,
1116
- requestStream: false,
1117
- responseType: empty.Empty,
1118
- responseStream: false,
1119
- options: {},
1120
- },
1121
- getAll: {
1122
- name: "GetAll",
1683
+ allApplications: {
1684
+ name: "AllApplications",
1123
1685
  requestType: empty.Empty,
1124
1686
  requestStream: false,
1125
- responseType: IListApplication,
1126
- responseStream: false,
1687
+ responseType: QueryResultIEnumerableApplicationResponse,
1688
+ responseStream: true,
1127
1689
  options: {},
1128
1690
  },
1129
- observeAll: {
1130
- name: "ObserveAll",
1131
- requestType: empty.Empty,
1691
+ changeApplicationSecret: {
1692
+ name: "ChangeApplicationSecret",
1693
+ requestType: ChangeApplicationSecretRequest,
1132
1694
  requestStream: false,
1133
- responseType: IListApplication,
1134
- responseStream: true,
1695
+ responseType: CommandResult,
1696
+ responseStream: false,
1135
1697
  options: {},
1136
1698
  },
1137
- remove: {
1138
- name: "Remove",
1139
- requestType: RemoveApplication,
1699
+ removeApplication: {
1700
+ name: "RemoveApplication",
1701
+ requestType: RemoveApplicationRequest,
1140
1702
  requestStream: false,
1141
- responseType: empty.Empty,
1703
+ responseType: CommandResult,
1142
1704
  responseStream: false,
1143
1705
  options: {},
1144
1706
  },
@@ -1148,67 +1710,59 @@ const UsersDefinition = {
1148
1710
  name: "Users",
1149
1711
  fullName: "Cratis.Chronicle.Contracts.Security.Users",
1150
1712
  methods: {
1151
- add: {
1152
- name: "Add",
1153
- requestType: AddUser,
1154
- requestStream: false,
1155
- responseType: empty.Empty,
1156
- responseStream: false,
1157
- options: {},
1158
- },
1159
- changePassword: {
1160
- name: "ChangePassword",
1161
- requestType: ChangeUserPassword,
1713
+ addUser: {
1714
+ name: "AddUser",
1715
+ requestType: AddUserRequest,
1162
1716
  requestStream: false,
1163
- responseType: empty.Empty,
1717
+ responseType: CommandResult,
1164
1718
  responseStream: false,
1165
1719
  options: {},
1166
1720
  },
1167
- getAll: {
1168
- name: "GetAll",
1721
+ allUsers: {
1722
+ name: "AllUsers",
1169
1723
  requestType: empty.Empty,
1170
1724
  requestStream: false,
1171
- responseType: IListUser,
1172
- responseStream: false,
1725
+ responseType: QueryResultIEnumerableUserResponse,
1726
+ responseStream: true,
1173
1727
  options: {},
1174
1728
  },
1175
- getInitialAdminPasswordSetupStatus: {
1176
- name: "GetInitialAdminPasswordSetupStatus",
1177
- requestType: empty.Empty,
1729
+ changeUserPassword: {
1730
+ name: "ChangeUserPassword",
1731
+ requestType: ChangeUserPasswordRequest,
1178
1732
  requestStream: false,
1179
- responseType: InitialAdminPasswordSetupStatus,
1733
+ responseType: CommandResult,
1180
1734
  responseStream: false,
1181
1735
  options: {},
1182
1736
  },
1183
- observeAll: {
1184
- name: "ObserveAll",
1737
+ getStatus: {
1738
+ name: "GetStatus",
1185
1739
  requestType: empty.Empty,
1186
1740
  requestStream: false,
1187
- responseType: IListUser,
1188
- responseStream: true,
1741
+ responseType: QueryResultAdminPasswordStatusResponse,
1742
+ responseStream: false,
1189
1743
  options: {},
1190
1744
  },
1191
- remove: {
1192
- name: "Remove",
1193
- requestType: RemoveUser,
1745
+ removeUser: {
1746
+ name: "RemoveUser",
1747
+ requestType: RemoveUserRequest,
1194
1748
  requestStream: false,
1195
- responseType: empty.Empty,
1749
+ responseType: CommandResult,
1196
1750
  responseStream: false,
1197
1751
  options: {},
1198
1752
  },
1199
1753
  requirePasswordChange: {
1200
1754
  name: "RequirePasswordChange",
1201
- requestType: RequirePasswordChange,
1755
+ requestType: RequirePasswordChangeRequest,
1202
1756
  requestStream: false,
1203
- responseType: empty.Empty,
1757
+ responseType: CommandResult,
1204
1758
  responseStream: false,
1205
1759
  options: {},
1206
1760
  },
1207
1761
  setInitialAdminPassword: {
1208
1762
  name: "SetInitialAdminPassword",
1209
- requestType: SetInitialAdminPassword,
1763
+ requestType: SetInitialAdminPasswordRequest,
1210
1764
  requestStream: false,
1211
- responseType: empty.Empty,
1765
+ responseType: CommandResult,
1212
1766
  responseStream: false,
1213
1767
  options: {},
1214
1768
  },
@@ -1218,20 +1772,25 @@ function isSet(value) {
1218
1772
  return value !== null && value !== undefined;
1219
1773
  }
1220
1774
 
1221
- exports.AddApplication = AddApplication;
1222
- exports.AddUser = AddUser;
1223
- exports.Application = Application;
1775
+ exports.AddApplicationRequest = AddApplicationRequest;
1776
+ exports.AddUserRequest = AddUserRequest;
1777
+ exports.AdminPasswordStatusResponse = AdminPasswordStatusResponse;
1778
+ exports.ApplicationResponse = ApplicationResponse;
1224
1779
  exports.ApplicationsDefinition = ApplicationsDefinition;
1225
- exports.ChangeApplicationSecret = ChangeApplicationSecret;
1226
- exports.ChangeUserPassword = ChangeUserPassword;
1227
- exports.IListApplication = IListApplication;
1228
- exports.IListUser = IListUser;
1229
- exports.InitialAdminPasswordSetupStatus = InitialAdminPasswordSetupStatus;
1230
- exports.RemoveApplication = RemoveApplication;
1231
- exports.RemoveUser = RemoveUser;
1232
- exports.RequirePasswordChange = RequirePasswordChange;
1233
- exports.SerializableDateTimeOffset = SerializableDateTimeOffset;
1234
- exports.SetInitialAdminPassword = SetInitialAdminPassword;
1235
- exports.User = User;
1780
+ exports.ChangeApplicationSecretRequest = ChangeApplicationSecretRequest;
1781
+ exports.ChangeUserPasswordRequest = ChangeUserPasswordRequest;
1782
+ exports.CommandResult = CommandResult;
1783
+ exports.DateTimeOffset = DateTimeOffset;
1784
+ exports.QueryResultAdminPasswordStatusResponse = QueryResultAdminPasswordStatusResponse;
1785
+ exports.QueryResultIEnumerableApplicationResponse = QueryResultIEnumerableApplicationResponse;
1786
+ exports.QueryResultIEnumerableUserResponse = QueryResultIEnumerableUserResponse;
1787
+ exports.RemoveApplicationRequest = RemoveApplicationRequest;
1788
+ exports.RemoveUserRequest = RemoveUserRequest;
1789
+ exports.RequirePasswordChangeRequest = RequirePasswordChangeRequest;
1790
+ exports.SetInitialAdminPasswordRequest = SetInitialAdminPasswordRequest;
1791
+ exports.UserResponse = UserResponse;
1236
1792
  exports.UsersDefinition = UsersDefinition;
1793
+ exports.ValidationResult = ValidationResult;
1794
+ exports.validationResultSeverityFromJSON = validationResultSeverityFromJSON;
1795
+ exports.validationResultSeverityToJSON = validationResultSeverityToJSON;
1237
1796
  //# sourceMappingURL=security.js.map