@cratis/chronicle.contracts 16.33.0 → 16.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/cjs/generated/compliance.d.ts +16 -0
  2. package/dist/cjs/generated/compliance.d.ts.map +1 -1
  3. package/dist/cjs/generated/events_constraints.d.ts +1 -1
  4. package/dist/cjs/generated/events_constraints.d.ts.map +1 -1
  5. package/dist/cjs/generated/events_constraints.js +9 -7
  6. package/dist/cjs/generated/events_constraints.js.map +1 -1
  7. package/dist/cjs/generated/eventsequences.d.ts +3 -0
  8. package/dist/cjs/generated/eventsequences.d.ts.map +1 -1
  9. package/dist/cjs/generated/eventsequences.js +54 -0
  10. package/dist/cjs/generated/eventsequences.js.map +1 -1
  11. package/dist/cjs/generated/eventstores.d.ts +90 -0
  12. package/dist/cjs/generated/eventstores.d.ts.map +1 -0
  13. package/dist/cjs/generated/eventstores.js +501 -0
  14. package/dist/cjs/generated/eventstores.js.map +1 -0
  15. package/dist/cjs/generated/index.d.ts +7 -5
  16. package/dist/cjs/generated/index.d.ts.map +1 -1
  17. package/dist/cjs/generated/jobs.d.ts +99 -103
  18. package/dist/cjs/generated/jobs.d.ts.map +1 -1
  19. package/dist/cjs/generated/jobs.js +767 -493
  20. package/dist/cjs/generated/jobs.js.map +1 -1
  21. package/dist/cjs/generated/namespaces.d.ts +94 -0
  22. package/dist/cjs/generated/namespaces.d.ts.map +1 -0
  23. package/dist/cjs/generated/namespaces.js +569 -0
  24. package/dist/cjs/generated/namespaces.js.map +1 -0
  25. package/dist/cjs/generated/protobuf-net/bcl.js +0 -87
  26. package/dist/cjs/generated/protobuf-net/bcl.js.map +1 -1
  27. package/dist/cjs/generated/security.d.ts +144 -122
  28. package/dist/cjs/generated/security.d.ts.map +1 -1
  29. package/dist/cjs/generated/security.js +792 -233
  30. package/dist/cjs/generated/security.js.map +1 -1
  31. package/dist/cjs/index.js +39 -37
  32. package/dist/cjs/index.js.map +1 -1
  33. package/dist/esm/generated/compliance.d.ts +16 -0
  34. package/dist/esm/generated/compliance.d.ts.map +1 -1
  35. package/dist/esm/generated/events_constraints.d.ts +1 -1
  36. package/dist/esm/generated/events_constraints.d.ts.map +1 -1
  37. package/dist/esm/generated/events_constraints.js +9 -7
  38. package/dist/esm/generated/events_constraints.js.map +1 -1
  39. package/dist/esm/generated/eventsequences.d.ts +3 -0
  40. package/dist/esm/generated/eventsequences.d.ts.map +1 -1
  41. package/dist/esm/generated/eventsequences.js +54 -0
  42. package/dist/esm/generated/eventsequences.js.map +1 -1
  43. package/dist/esm/generated/eventstores.d.ts +90 -0
  44. package/dist/esm/generated/eventstores.d.ts.map +1 -0
  45. package/dist/esm/generated/eventstores.js +493 -0
  46. package/dist/esm/generated/eventstores.js.map +1 -0
  47. package/dist/esm/generated/index.d.ts +7 -5
  48. package/dist/esm/generated/index.d.ts.map +1 -1
  49. package/dist/esm/generated/jobs.d.ts +99 -103
  50. package/dist/esm/generated/jobs.d.ts.map +1 -1
  51. package/dist/esm/generated/jobs.js +755 -482
  52. package/dist/esm/generated/jobs.js.map +1 -1
  53. package/dist/esm/generated/namespaces.d.ts +94 -0
  54. package/dist/esm/generated/namespaces.d.ts.map +1 -0
  55. package/dist/esm/generated/namespaces.js +560 -0
  56. package/dist/esm/generated/namespaces.js.map +1 -0
  57. package/dist/esm/generated/protobuf-net/bcl.js +1 -87
  58. package/dist/esm/generated/protobuf-net/bcl.js.map +1 -1
  59. package/dist/esm/generated/security.d.ts +144 -122
  60. package/dist/esm/generated/security.d.ts.map +1 -1
  61. package/dist/esm/generated/security.js +774 -220
  62. package/dist/esm/generated/security.js.map +1 -1
  63. package/dist/esm/index.js +5 -4
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/generated/compliance.d.ts +16 -0
  66. package/dist/generated/compliance.d.ts.map +1 -1
  67. package/dist/generated/compliance.js +91 -0
  68. package/dist/generated/compliance.js.map +1 -1
  69. package/dist/generated/events_constraints.d.ts +1 -1
  70. package/dist/generated/events_constraints.d.ts.map +1 -1
  71. package/dist/generated/events_constraints.js +9 -7
  72. package/dist/generated/events_constraints.js.map +1 -1
  73. package/dist/generated/eventsequences.d.ts +3 -0
  74. package/dist/generated/eventsequences.d.ts.map +1 -1
  75. package/dist/generated/eventsequences.js +54 -0
  76. package/dist/generated/eventsequences.js.map +1 -1
  77. package/dist/generated/eventstores.d.ts +90 -0
  78. package/dist/generated/eventstores.d.ts.map +1 -0
  79. package/dist/generated/eventstores.js +491 -0
  80. package/dist/generated/eventstores.js.map +1 -0
  81. package/dist/generated/index.d.ts +7 -5
  82. package/dist/generated/index.d.ts.map +1 -1
  83. package/dist/generated/index.js +5 -4
  84. package/dist/generated/index.js.map +1 -1
  85. package/dist/generated/jobs.d.ts +99 -103
  86. package/dist/generated/jobs.d.ts.map +1 -1
  87. package/dist/generated/jobs.js +756 -481
  88. package/dist/generated/jobs.js.map +1 -1
  89. package/dist/generated/namespaces.d.ts +94 -0
  90. package/dist/generated/namespaces.d.ts.map +1 -0
  91. package/dist/generated/namespaces.js +558 -0
  92. package/dist/generated/namespaces.js.map +1 -0
  93. package/dist/generated/security.d.ts +144 -122
  94. package/dist/generated/security.d.ts.map +1 -1
  95. package/dist/generated/security.js +775 -219
  96. package/dist/generated/security.js.map +1 -1
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/generated/compliance.ts +114 -0
  99. package/generated/events_constraints.ts +10 -8
  100. package/generated/eventsequences.ts +66 -1
  101. package/generated/eventstores.ts +622 -0
  102. package/generated/index.ts +9 -6
  103. package/generated/jobs.ts +963 -637
  104. package/generated/namespaces.ts +702 -0
  105. package/generated/security.ts +1051 -364
  106. package/package.json +1 -1
  107. package/dist/cjs/generated/cratis_chronicle_contracts.d.ts +0 -120
  108. package/dist/cjs/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  109. package/dist/cjs/generated/cratis_chronicle_contracts.js +0 -297
  110. package/dist/cjs/generated/cratis_chronicle_contracts.js.map +0 -1
  111. package/dist/esm/generated/cratis_chronicle_contracts.d.ts +0 -120
  112. package/dist/esm/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  113. package/dist/esm/generated/cratis_chronicle_contracts.js +0 -290
  114. package/dist/esm/generated/cratis_chronicle_contracts.js.map +0 -1
  115. package/dist/generated/cratis_chronicle_contracts.d.ts +0 -120
  116. package/dist/generated/cratis_chronicle_contracts.d.ts.map +0 -1
  117. package/dist/generated/cratis_chronicle_contracts.js +0 -288
  118. package/dist/generated/cratis_chronicle_contracts.js.map +0 -1
  119. package/generated/cratis_chronicle_contracts.ts +0 -408
@@ -12,93 +12,197 @@ import { Guid } from "./protobuf-net/bcl";
12
12
 
13
13
  export const protobufPackage = "Cratis.Chronicle.Contracts.Security";
14
14
 
15
- export interface AddApplication {
16
- Id: string;
15
+ export enum ValidationResultSeverity {
16
+ Unknown = 0,
17
+ Information = 1,
18
+ Warning = 2,
19
+ Error = 3,
20
+ UNRECOGNIZED = -1,
21
+ }
22
+
23
+ export function validationResultSeverityFromJSON(object: any): ValidationResultSeverity {
24
+ switch (object) {
25
+ case 0:
26
+ case "Unknown":
27
+ return ValidationResultSeverity.Unknown;
28
+ case 1:
29
+ case "Information":
30
+ return ValidationResultSeverity.Information;
31
+ case 2:
32
+ case "Warning":
33
+ return ValidationResultSeverity.Warning;
34
+ case 3:
35
+ case "Error":
36
+ return ValidationResultSeverity.Error;
37
+ case -1:
38
+ case "UNRECOGNIZED":
39
+ default:
40
+ return ValidationResultSeverity.UNRECOGNIZED;
41
+ }
42
+ }
43
+
44
+ export function validationResultSeverityToJSON(object: ValidationResultSeverity): string {
45
+ switch (object) {
46
+ case ValidationResultSeverity.Unknown:
47
+ return "Unknown";
48
+ case ValidationResultSeverity.Information:
49
+ return "Information";
50
+ case ValidationResultSeverity.Warning:
51
+ return "Warning";
52
+ case ValidationResultSeverity.Error:
53
+ return "Error";
54
+ case ValidationResultSeverity.UNRECOGNIZED:
55
+ default:
56
+ return "UNRECOGNIZED";
57
+ }
58
+ }
59
+
60
+ export interface AddApplicationRequest {
61
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
62
+ Id: Guid | undefined;
17
63
  ClientId: string;
18
64
  ClientSecret: string;
19
65
  }
20
66
 
21
- export interface AddUser {
67
+ export interface AddUserRequest {
68
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
22
69
  UserId: Guid | undefined;
23
70
  Username: string;
24
71
  Email: string;
25
72
  Password: string;
26
73
  }
27
74
 
28
- export interface Application {
75
+ export interface AdminPasswordStatusResponse {
76
+ IsRequired: boolean;
77
+ AdminUserId: Guid | undefined;
78
+ }
79
+
80
+ export interface ApplicationResponse {
81
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
29
82
  Id: Guid | undefined;
30
83
  ClientId: string;
31
84
  IsActive: boolean;
32
- CreatedAt: SerializableDateTimeOffset | undefined;
33
- LastModifiedAt: SerializableDateTimeOffset | undefined;
85
+ CreatedAt: DateTimeOffset | undefined;
86
+ LastModifiedAt: DateTimeOffset | undefined;
34
87
  }
35
88
 
36
- export interface ChangeApplicationSecret {
89
+ export interface ChangeApplicationSecretRequest {
90
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
37
91
  Id: Guid | undefined;
38
92
  ClientSecret: string;
39
93
  }
40
94
 
41
- export interface ChangeUserPassword {
95
+ export interface ChangeUserPasswordRequest {
96
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
42
97
  UserId: Guid | undefined;
43
98
  OldPassword: string;
44
99
  Password: string;
45
100
  ConfirmedPassword: string;
46
101
  }
47
102
 
48
- export interface IListApplication {
49
- items: Application[];
103
+ export interface CommandResult {
104
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
105
+ CorrelationId:
106
+ | Guid
107
+ | undefined;
108
+ /** default value could not be applied: True */
109
+ IsAuthorized: boolean;
110
+ ValidationResults: ValidationResult[];
111
+ ExceptionMessages: string[];
112
+ ExceptionStackTrace: string;
113
+ AuthorizationFailureReason: string;
50
114
  }
51
115
 
52
- export interface IListUser {
53
- items: User[];
116
+ export interface DateTimeOffset {
54
117
  }
55
118
 
56
- export interface InitialAdminPasswordSetupStatus {
57
- IsRequired: boolean;
58
- AdminUserId: Guid | undefined;
119
+ export interface QueryResultAdminPasswordStatusResponse {
120
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
121
+ CorrelationId:
122
+ | Guid
123
+ | undefined;
124
+ /** default value could not be applied: True */
125
+ IsAuthorized: boolean;
126
+ ValidationResults: ValidationResult[];
127
+ ExceptionMessages: string[];
128
+ ExceptionStackTrace: string;
129
+ Data: AdminPasswordStatusResponse | undefined;
59
130
  }
60
131
 
61
- export interface RemoveApplication {
62
- Id: Guid | undefined;
132
+ export interface QueryResultIEnumerableApplicationResponse {
133
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
134
+ CorrelationId:
135
+ | Guid
136
+ | undefined;
137
+ /** default value could not be applied: True */
138
+ IsAuthorized: boolean;
139
+ ValidationResults: ValidationResult[];
140
+ ExceptionMessages: string[];
141
+ ExceptionStackTrace: string;
142
+ Data: ApplicationResponse[];
63
143
  }
64
144
 
65
- export interface RemoveUser {
66
- UserId: Guid | undefined;
145
+ export interface QueryResultIEnumerableUserResponse {
146
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
147
+ CorrelationId:
148
+ | Guid
149
+ | undefined;
150
+ /** default value could not be applied: True */
151
+ IsAuthorized: boolean;
152
+ ValidationResults: ValidationResult[];
153
+ ExceptionMessages: string[];
154
+ ExceptionStackTrace: string;
155
+ Data: UserResponse[];
67
156
  }
68
157
 
69
- export interface RequirePasswordChange {
158
+ export interface RemoveApplicationRequest {
159
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
160
+ Id: Guid | undefined;
161
+ }
162
+
163
+ export interface RemoveUserRequest {
164
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
70
165
  UserId: Guid | undefined;
71
166
  }
72
167
 
73
- /** Represents a DateTimeOffset value as an ISO 8601 string (e.g., "2024-01-15T12:30:00.0000000+02:00"). */
74
- export interface SerializableDateTimeOffset {
75
- Value: string;
168
+ export interface RequirePasswordChangeRequest {
169
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
170
+ UserId: Guid | undefined;
76
171
  }
77
172
 
78
- export interface SetInitialAdminPassword {
173
+ export interface SetInitialAdminPasswordRequest {
174
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
79
175
  UserId: Guid | undefined;
80
176
  Password: string;
81
177
  ConfirmedPassword: string;
82
178
  }
83
179
 
84
- export interface User {
180
+ export interface UserResponse {
181
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
85
182
  Id: Guid | undefined;
86
183
  Username: string;
87
184
  Email: string;
88
185
  IsActive: boolean;
89
- CreatedAt: SerializableDateTimeOffset | undefined;
90
- LastModifiedAt: SerializableDateTimeOffset | undefined;
186
+ CreatedAt: DateTimeOffset | undefined;
187
+ LastModifiedAt: DateTimeOffset | undefined;
91
188
  HasLoggedIn: boolean;
92
189
  }
93
190
 
94
- function createBaseAddApplication(): AddApplication {
95
- return { Id: "", ClientId: "", ClientSecret: "" };
191
+ export interface ValidationResult {
192
+ /** default value could not be applied: Error */
193
+ Severity: ValidationResultSeverity;
194
+ Message: string;
195
+ Members: string[];
96
196
  }
97
197
 
98
- export const AddApplication: MessageFns<AddApplication> = {
99
- encode(message: AddApplication, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
100
- if (message.Id !== "") {
101
- writer.uint32(10).string(message.Id);
198
+ function createBaseAddApplicationRequest(): AddApplicationRequest {
199
+ return { Id: undefined, ClientId: "", ClientSecret: "" };
200
+ }
201
+
202
+ export const AddApplicationRequest: MessageFns<AddApplicationRequest> = {
203
+ encode(message: AddApplicationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
204
+ if (message.Id !== undefined) {
205
+ Guid.encode(message.Id, writer.uint32(10).fork()).join();
102
206
  }
103
207
  if (message.ClientId !== "") {
104
208
  writer.uint32(18).string(message.ClientId);
@@ -109,10 +213,10 @@ export const AddApplication: MessageFns<AddApplication> = {
109
213
  return writer;
110
214
  },
111
215
 
112
- decode(input: BinaryReader | Uint8Array, length?: number): AddApplication {
216
+ decode(input: BinaryReader | Uint8Array, length?: number): AddApplicationRequest {
113
217
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
114
218
  const end = length === undefined ? reader.len : reader.pos + length;
115
- const message = createBaseAddApplication();
219
+ const message = createBaseAddApplicationRequest();
116
220
  while (reader.pos < end) {
117
221
  const tag = reader.uint32();
118
222
  switch (tag >>> 3) {
@@ -121,7 +225,7 @@ export const AddApplication: MessageFns<AddApplication> = {
121
225
  break;
122
226
  }
123
227
 
124
- message.Id = reader.string();
228
+ message.Id = Guid.decode(reader, reader.uint32());
125
229
  continue;
126
230
  }
127
231
  case 2: {
@@ -149,18 +253,18 @@ export const AddApplication: MessageFns<AddApplication> = {
149
253
  return message;
150
254
  },
151
255
 
152
- fromJSON(object: any): AddApplication {
256
+ fromJSON(object: any): AddApplicationRequest {
153
257
  return {
154
- Id: isSet(object.Id) ? globalThis.String(object.Id) : "",
258
+ Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
155
259
  ClientId: isSet(object.ClientId) ? globalThis.String(object.ClientId) : "",
156
260
  ClientSecret: isSet(object.ClientSecret) ? globalThis.String(object.ClientSecret) : "",
157
261
  };
158
262
  },
159
263
 
160
- toJSON(message: AddApplication): unknown {
264
+ toJSON(message: AddApplicationRequest): unknown {
161
265
  const obj: any = {};
162
- if (message.Id !== "") {
163
- obj.Id = message.Id;
266
+ if (message.Id !== undefined) {
267
+ obj.Id = Guid.toJSON(message.Id);
164
268
  }
165
269
  if (message.ClientId !== "") {
166
270
  obj.ClientId = message.ClientId;
@@ -171,24 +275,24 @@ export const AddApplication: MessageFns<AddApplication> = {
171
275
  return obj;
172
276
  },
173
277
 
174
- create(base?: DeepPartial<AddApplication>): AddApplication {
175
- return AddApplication.fromPartial(base ?? {});
278
+ create(base?: DeepPartial<AddApplicationRequest>): AddApplicationRequest {
279
+ return AddApplicationRequest.fromPartial(base ?? {});
176
280
  },
177
- fromPartial(object: DeepPartial<AddApplication>): AddApplication {
178
- const message = createBaseAddApplication();
179
- message.Id = object.Id ?? "";
281
+ fromPartial(object: DeepPartial<AddApplicationRequest>): AddApplicationRequest {
282
+ const message = createBaseAddApplicationRequest();
283
+ message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
180
284
  message.ClientId = object.ClientId ?? "";
181
285
  message.ClientSecret = object.ClientSecret ?? "";
182
286
  return message;
183
287
  },
184
288
  };
185
289
 
186
- function createBaseAddUser(): AddUser {
290
+ function createBaseAddUserRequest(): AddUserRequest {
187
291
  return { UserId: undefined, Username: "", Email: "", Password: "" };
188
292
  }
189
293
 
190
- export const AddUser: MessageFns<AddUser> = {
191
- encode(message: AddUser, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
294
+ export const AddUserRequest: MessageFns<AddUserRequest> = {
295
+ encode(message: AddUserRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
192
296
  if (message.UserId !== undefined) {
193
297
  Guid.encode(message.UserId, writer.uint32(10).fork()).join();
194
298
  }
@@ -204,10 +308,10 @@ export const AddUser: MessageFns<AddUser> = {
204
308
  return writer;
205
309
  },
206
310
 
207
- decode(input: BinaryReader | Uint8Array, length?: number): AddUser {
311
+ decode(input: BinaryReader | Uint8Array, length?: number): AddUserRequest {
208
312
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
209
313
  const end = length === undefined ? reader.len : reader.pos + length;
210
- const message = createBaseAddUser();
314
+ const message = createBaseAddUserRequest();
211
315
  while (reader.pos < end) {
212
316
  const tag = reader.uint32();
213
317
  switch (tag >>> 3) {
@@ -252,7 +356,7 @@ export const AddUser: MessageFns<AddUser> = {
252
356
  return message;
253
357
  },
254
358
 
255
- fromJSON(object: any): AddUser {
359
+ fromJSON(object: any): AddUserRequest {
256
360
  return {
257
361
  UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined,
258
362
  Username: isSet(object.Username) ? globalThis.String(object.Username) : "",
@@ -261,7 +365,7 @@ export const AddUser: MessageFns<AddUser> = {
261
365
  };
262
366
  },
263
367
 
264
- toJSON(message: AddUser): unknown {
368
+ toJSON(message: AddUserRequest): unknown {
265
369
  const obj: any = {};
266
370
  if (message.UserId !== undefined) {
267
371
  obj.UserId = Guid.toJSON(message.UserId);
@@ -278,11 +382,11 @@ export const AddUser: MessageFns<AddUser> = {
278
382
  return obj;
279
383
  },
280
384
 
281
- create(base?: DeepPartial<AddUser>): AddUser {
282
- return AddUser.fromPartial(base ?? {});
385
+ create(base?: DeepPartial<AddUserRequest>): AddUserRequest {
386
+ return AddUserRequest.fromPartial(base ?? {});
283
387
  },
284
- fromPartial(object: DeepPartial<AddUser>): AddUser {
285
- const message = createBaseAddUser();
388
+ fromPartial(object: DeepPartial<AddUserRequest>): AddUserRequest {
389
+ const message = createBaseAddUserRequest();
286
390
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
287
391
  ? Guid.fromPartial(object.UserId)
288
392
  : undefined;
@@ -293,12 +397,90 @@ export const AddUser: MessageFns<AddUser> = {
293
397
  },
294
398
  };
295
399
 
296
- function createBaseApplication(): Application {
400
+ function createBaseAdminPasswordStatusResponse(): AdminPasswordStatusResponse {
401
+ return { IsRequired: false, AdminUserId: undefined };
402
+ }
403
+
404
+ export const AdminPasswordStatusResponse: MessageFns<AdminPasswordStatusResponse> = {
405
+ encode(message: AdminPasswordStatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
406
+ if (message.IsRequired !== false) {
407
+ writer.uint32(8).bool(message.IsRequired);
408
+ }
409
+ if (message.AdminUserId !== undefined) {
410
+ Guid.encode(message.AdminUserId, writer.uint32(18).fork()).join();
411
+ }
412
+ return writer;
413
+ },
414
+
415
+ decode(input: BinaryReader | Uint8Array, length?: number): AdminPasswordStatusResponse {
416
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
417
+ const end = length === undefined ? reader.len : reader.pos + length;
418
+ const message = createBaseAdminPasswordStatusResponse();
419
+ while (reader.pos < end) {
420
+ const tag = reader.uint32();
421
+ switch (tag >>> 3) {
422
+ case 1: {
423
+ if (tag !== 8) {
424
+ break;
425
+ }
426
+
427
+ message.IsRequired = reader.bool();
428
+ continue;
429
+ }
430
+ case 2: {
431
+ if (tag !== 18) {
432
+ break;
433
+ }
434
+
435
+ message.AdminUserId = Guid.decode(reader, reader.uint32());
436
+ continue;
437
+ }
438
+ }
439
+ if ((tag & 7) === 4 || tag === 0) {
440
+ break;
441
+ }
442
+ reader.skip(tag & 7);
443
+ }
444
+ return message;
445
+ },
446
+
447
+ fromJSON(object: any): AdminPasswordStatusResponse {
448
+ return {
449
+ IsRequired: isSet(object.IsRequired) ? globalThis.Boolean(object.IsRequired) : false,
450
+ AdminUserId: isSet(object.AdminUserId) ? Guid.fromJSON(object.AdminUserId) : undefined,
451
+ };
452
+ },
453
+
454
+ toJSON(message: AdminPasswordStatusResponse): unknown {
455
+ const obj: any = {};
456
+ if (message.IsRequired !== false) {
457
+ obj.IsRequired = message.IsRequired;
458
+ }
459
+ if (message.AdminUserId !== undefined) {
460
+ obj.AdminUserId = Guid.toJSON(message.AdminUserId);
461
+ }
462
+ return obj;
463
+ },
464
+
465
+ create(base?: DeepPartial<AdminPasswordStatusResponse>): AdminPasswordStatusResponse {
466
+ return AdminPasswordStatusResponse.fromPartial(base ?? {});
467
+ },
468
+ fromPartial(object: DeepPartial<AdminPasswordStatusResponse>): AdminPasswordStatusResponse {
469
+ const message = createBaseAdminPasswordStatusResponse();
470
+ message.IsRequired = object.IsRequired ?? false;
471
+ message.AdminUserId = (object.AdminUserId !== undefined && object.AdminUserId !== null)
472
+ ? Guid.fromPartial(object.AdminUserId)
473
+ : undefined;
474
+ return message;
475
+ },
476
+ };
477
+
478
+ function createBaseApplicationResponse(): ApplicationResponse {
297
479
  return { Id: undefined, ClientId: "", IsActive: false, CreatedAt: undefined, LastModifiedAt: undefined };
298
480
  }
299
481
 
300
- export const Application: MessageFns<Application> = {
301
- encode(message: Application, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
482
+ export const ApplicationResponse: MessageFns<ApplicationResponse> = {
483
+ encode(message: ApplicationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
302
484
  if (message.Id !== undefined) {
303
485
  Guid.encode(message.Id, writer.uint32(10).fork()).join();
304
486
  }
@@ -309,18 +491,18 @@ export const Application: MessageFns<Application> = {
309
491
  writer.uint32(24).bool(message.IsActive);
310
492
  }
311
493
  if (message.CreatedAt !== undefined) {
312
- SerializableDateTimeOffset.encode(message.CreatedAt, writer.uint32(34).fork()).join();
494
+ DateTimeOffset.encode(message.CreatedAt, writer.uint32(34).fork()).join();
313
495
  }
314
496
  if (message.LastModifiedAt !== undefined) {
315
- SerializableDateTimeOffset.encode(message.LastModifiedAt, writer.uint32(42).fork()).join();
497
+ DateTimeOffset.encode(message.LastModifiedAt, writer.uint32(42).fork()).join();
316
498
  }
317
499
  return writer;
318
500
  },
319
501
 
320
- decode(input: BinaryReader | Uint8Array, length?: number): Application {
502
+ decode(input: BinaryReader | Uint8Array, length?: number): ApplicationResponse {
321
503
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
322
504
  const end = length === undefined ? reader.len : reader.pos + length;
323
- const message = createBaseApplication();
505
+ const message = createBaseApplicationResponse();
324
506
  while (reader.pos < end) {
325
507
  const tag = reader.uint32();
326
508
  switch (tag >>> 3) {
@@ -353,7 +535,7 @@ export const Application: MessageFns<Application> = {
353
535
  break;
354
536
  }
355
537
 
356
- message.CreatedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
538
+ message.CreatedAt = DateTimeOffset.decode(reader, reader.uint32());
357
539
  continue;
358
540
  }
359
541
  case 5: {
@@ -361,7 +543,7 @@ export const Application: MessageFns<Application> = {
361
543
  break;
362
544
  }
363
545
 
364
- message.LastModifiedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
546
+ message.LastModifiedAt = DateTimeOffset.decode(reader, reader.uint32());
365
547
  continue;
366
548
  }
367
549
  }
@@ -373,19 +555,17 @@ export const Application: MessageFns<Application> = {
373
555
  return message;
374
556
  },
375
557
 
376
- fromJSON(object: any): Application {
558
+ fromJSON(object: any): ApplicationResponse {
377
559
  return {
378
560
  Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
379
561
  ClientId: isSet(object.ClientId) ? globalThis.String(object.ClientId) : "",
380
562
  IsActive: isSet(object.IsActive) ? globalThis.Boolean(object.IsActive) : false,
381
- CreatedAt: isSet(object.CreatedAt) ? SerializableDateTimeOffset.fromJSON(object.CreatedAt) : undefined,
382
- LastModifiedAt: isSet(object.LastModifiedAt)
383
- ? SerializableDateTimeOffset.fromJSON(object.LastModifiedAt)
384
- : undefined,
563
+ CreatedAt: isSet(object.CreatedAt) ? DateTimeOffset.fromJSON(object.CreatedAt) : undefined,
564
+ LastModifiedAt: isSet(object.LastModifiedAt) ? DateTimeOffset.fromJSON(object.LastModifiedAt) : undefined,
385
565
  };
386
566
  },
387
567
 
388
- toJSON(message: Application): unknown {
568
+ toJSON(message: ApplicationResponse): unknown {
389
569
  const obj: any = {};
390
570
  if (message.Id !== undefined) {
391
571
  obj.Id = Guid.toJSON(message.Id);
@@ -397,38 +577,38 @@ export const Application: MessageFns<Application> = {
397
577
  obj.IsActive = message.IsActive;
398
578
  }
399
579
  if (message.CreatedAt !== undefined) {
400
- obj.CreatedAt = SerializableDateTimeOffset.toJSON(message.CreatedAt);
580
+ obj.CreatedAt = DateTimeOffset.toJSON(message.CreatedAt);
401
581
  }
402
582
  if (message.LastModifiedAt !== undefined) {
403
- obj.LastModifiedAt = SerializableDateTimeOffset.toJSON(message.LastModifiedAt);
583
+ obj.LastModifiedAt = DateTimeOffset.toJSON(message.LastModifiedAt);
404
584
  }
405
585
  return obj;
406
586
  },
407
587
 
408
- create(base?: DeepPartial<Application>): Application {
409
- return Application.fromPartial(base ?? {});
588
+ create(base?: DeepPartial<ApplicationResponse>): ApplicationResponse {
589
+ return ApplicationResponse.fromPartial(base ?? {});
410
590
  },
411
- fromPartial(object: DeepPartial<Application>): Application {
412
- const message = createBaseApplication();
591
+ fromPartial(object: DeepPartial<ApplicationResponse>): ApplicationResponse {
592
+ const message = createBaseApplicationResponse();
413
593
  message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
414
594
  message.ClientId = object.ClientId ?? "";
415
595
  message.IsActive = object.IsActive ?? false;
416
596
  message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
417
- ? SerializableDateTimeOffset.fromPartial(object.CreatedAt)
597
+ ? DateTimeOffset.fromPartial(object.CreatedAt)
418
598
  : undefined;
419
599
  message.LastModifiedAt = (object.LastModifiedAt !== undefined && object.LastModifiedAt !== null)
420
- ? SerializableDateTimeOffset.fromPartial(object.LastModifiedAt)
600
+ ? DateTimeOffset.fromPartial(object.LastModifiedAt)
421
601
  : undefined;
422
602
  return message;
423
603
  },
424
604
  };
425
605
 
426
- function createBaseChangeApplicationSecret(): ChangeApplicationSecret {
606
+ function createBaseChangeApplicationSecretRequest(): ChangeApplicationSecretRequest {
427
607
  return { Id: undefined, ClientSecret: "" };
428
608
  }
429
609
 
430
- export const ChangeApplicationSecret: MessageFns<ChangeApplicationSecret> = {
431
- encode(message: ChangeApplicationSecret, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
610
+ export const ChangeApplicationSecretRequest: MessageFns<ChangeApplicationSecretRequest> = {
611
+ encode(message: ChangeApplicationSecretRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
432
612
  if (message.Id !== undefined) {
433
613
  Guid.encode(message.Id, writer.uint32(10).fork()).join();
434
614
  }
@@ -438,10 +618,10 @@ export const ChangeApplicationSecret: MessageFns<ChangeApplicationSecret> = {
438
618
  return writer;
439
619
  },
440
620
 
441
- decode(input: BinaryReader | Uint8Array, length?: number): ChangeApplicationSecret {
621
+ decode(input: BinaryReader | Uint8Array, length?: number): ChangeApplicationSecretRequest {
442
622
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
443
623
  const end = length === undefined ? reader.len : reader.pos + length;
444
- const message = createBaseChangeApplicationSecret();
624
+ const message = createBaseChangeApplicationSecretRequest();
445
625
  while (reader.pos < end) {
446
626
  const tag = reader.uint32();
447
627
  switch (tag >>> 3) {
@@ -470,14 +650,14 @@ export const ChangeApplicationSecret: MessageFns<ChangeApplicationSecret> = {
470
650
  return message;
471
651
  },
472
652
 
473
- fromJSON(object: any): ChangeApplicationSecret {
653
+ fromJSON(object: any): ChangeApplicationSecretRequest {
474
654
  return {
475
655
  Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
476
656
  ClientSecret: isSet(object.ClientSecret) ? globalThis.String(object.ClientSecret) : "",
477
657
  };
478
658
  },
479
659
 
480
- toJSON(message: ChangeApplicationSecret): unknown {
660
+ toJSON(message: ChangeApplicationSecretRequest): unknown {
481
661
  const obj: any = {};
482
662
  if (message.Id !== undefined) {
483
663
  obj.Id = Guid.toJSON(message.Id);
@@ -488,23 +668,23 @@ export const ChangeApplicationSecret: MessageFns<ChangeApplicationSecret> = {
488
668
  return obj;
489
669
  },
490
670
 
491
- create(base?: DeepPartial<ChangeApplicationSecret>): ChangeApplicationSecret {
492
- return ChangeApplicationSecret.fromPartial(base ?? {});
671
+ create(base?: DeepPartial<ChangeApplicationSecretRequest>): ChangeApplicationSecretRequest {
672
+ return ChangeApplicationSecretRequest.fromPartial(base ?? {});
493
673
  },
494
- fromPartial(object: DeepPartial<ChangeApplicationSecret>): ChangeApplicationSecret {
495
- const message = createBaseChangeApplicationSecret();
674
+ fromPartial(object: DeepPartial<ChangeApplicationSecretRequest>): ChangeApplicationSecretRequest {
675
+ const message = createBaseChangeApplicationSecretRequest();
496
676
  message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
497
677
  message.ClientSecret = object.ClientSecret ?? "";
498
678
  return message;
499
679
  },
500
680
  };
501
681
 
502
- function createBaseChangeUserPassword(): ChangeUserPassword {
682
+ function createBaseChangeUserPasswordRequest(): ChangeUserPasswordRequest {
503
683
  return { UserId: undefined, OldPassword: "", Password: "", ConfirmedPassword: "" };
504
684
  }
505
685
 
506
- export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
507
- encode(message: ChangeUserPassword, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
686
+ export const ChangeUserPasswordRequest: MessageFns<ChangeUserPasswordRequest> = {
687
+ encode(message: ChangeUserPasswordRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
508
688
  if (message.UserId !== undefined) {
509
689
  Guid.encode(message.UserId, writer.uint32(10).fork()).join();
510
690
  }
@@ -520,10 +700,10 @@ export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
520
700
  return writer;
521
701
  },
522
702
 
523
- decode(input: BinaryReader | Uint8Array, length?: number): ChangeUserPassword {
703
+ decode(input: BinaryReader | Uint8Array, length?: number): ChangeUserPasswordRequest {
524
704
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
525
705
  const end = length === undefined ? reader.len : reader.pos + length;
526
- const message = createBaseChangeUserPassword();
706
+ const message = createBaseChangeUserPasswordRequest();
527
707
  while (reader.pos < end) {
528
708
  const tag = reader.uint32();
529
709
  switch (tag >>> 3) {
@@ -568,7 +748,7 @@ export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
568
748
  return message;
569
749
  },
570
750
 
571
- fromJSON(object: any): ChangeUserPassword {
751
+ fromJSON(object: any): ChangeUserPasswordRequest {
572
752
  return {
573
753
  UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined,
574
754
  OldPassword: isSet(object.OldPassword) ? globalThis.String(object.OldPassword) : "",
@@ -577,7 +757,7 @@ export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
577
757
  };
578
758
  },
579
759
 
580
- toJSON(message: ChangeUserPassword): unknown {
760
+ toJSON(message: ChangeUserPasswordRequest): unknown {
581
761
  const obj: any = {};
582
762
  if (message.UserId !== undefined) {
583
763
  obj.UserId = Guid.toJSON(message.UserId);
@@ -594,11 +774,11 @@ export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
594
774
  return obj;
595
775
  },
596
776
 
597
- create(base?: DeepPartial<ChangeUserPassword>): ChangeUserPassword {
598
- return ChangeUserPassword.fromPartial(base ?? {});
777
+ create(base?: DeepPartial<ChangeUserPasswordRequest>): ChangeUserPasswordRequest {
778
+ return ChangeUserPasswordRequest.fromPartial(base ?? {});
599
779
  },
600
- fromPartial(object: DeepPartial<ChangeUserPassword>): ChangeUserPassword {
601
- const message = createBaseChangeUserPassword();
780
+ fromPartial(object: DeepPartial<ChangeUserPasswordRequest>): ChangeUserPasswordRequest {
781
+ const message = createBaseChangeUserPasswordRequest();
602
782
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
603
783
  ? Guid.fromPartial(object.UserId)
604
784
  : undefined;
@@ -609,22 +789,44 @@ export const ChangeUserPassword: MessageFns<ChangeUserPassword> = {
609
789
  },
610
790
  };
611
791
 
612
- function createBaseIListApplication(): IListApplication {
613
- return { items: [] };
792
+ function createBaseCommandResult(): CommandResult {
793
+ return {
794
+ CorrelationId: undefined,
795
+ IsAuthorized: false,
796
+ ValidationResults: [],
797
+ ExceptionMessages: [],
798
+ ExceptionStackTrace: "",
799
+ AuthorizationFailureReason: "",
800
+ };
614
801
  }
615
802
 
616
- export const IListApplication: MessageFns<IListApplication> = {
617
- encode(message: IListApplication, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
618
- for (const v of message.items) {
619
- Application.encode(v!, writer.uint32(10).fork()).join();
803
+ export const CommandResult: MessageFns<CommandResult> = {
804
+ encode(message: CommandResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
805
+ if (message.CorrelationId !== undefined) {
806
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
807
+ }
808
+ if (message.IsAuthorized !== false) {
809
+ writer.uint32(16).bool(message.IsAuthorized);
810
+ }
811
+ for (const v of message.ValidationResults) {
812
+ ValidationResult.encode(v!, writer.uint32(26).fork()).join();
813
+ }
814
+ for (const v of message.ExceptionMessages) {
815
+ writer.uint32(34).string(v!);
816
+ }
817
+ if (message.ExceptionStackTrace !== "") {
818
+ writer.uint32(42).string(message.ExceptionStackTrace);
819
+ }
820
+ if (message.AuthorizationFailureReason !== "") {
821
+ writer.uint32(50).string(message.AuthorizationFailureReason);
620
822
  }
621
823
  return writer;
622
824
  },
623
825
 
624
- decode(input: BinaryReader | Uint8Array, length?: number): IListApplication {
826
+ decode(input: BinaryReader | Uint8Array, length?: number): CommandResult {
625
827
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
626
828
  const end = length === undefined ? reader.len : reader.pos + length;
627
- const message = createBaseIListApplication();
829
+ const message = createBaseCommandResult();
628
830
  while (reader.pos < end) {
629
831
  const tag = reader.uint32();
630
832
  switch (tag >>> 3) {
@@ -633,7 +835,47 @@ export const IListApplication: MessageFns<IListApplication> = {
633
835
  break;
634
836
  }
635
837
 
636
- message.items.push(Application.decode(reader, reader.uint32()));
838
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
839
+ continue;
840
+ }
841
+ case 2: {
842
+ if (tag !== 16) {
843
+ break;
844
+ }
845
+
846
+ message.IsAuthorized = reader.bool();
847
+ continue;
848
+ }
849
+ case 3: {
850
+ if (tag !== 26) {
851
+ break;
852
+ }
853
+
854
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
855
+ continue;
856
+ }
857
+ case 4: {
858
+ if (tag !== 34) {
859
+ break;
860
+ }
861
+
862
+ message.ExceptionMessages.push(reader.string());
863
+ continue;
864
+ }
865
+ case 5: {
866
+ if (tag !== 42) {
867
+ break;
868
+ }
869
+
870
+ message.ExceptionStackTrace = reader.string();
871
+ continue;
872
+ }
873
+ case 6: {
874
+ if (tag !== 50) {
875
+ break;
876
+ }
877
+
878
+ message.AuthorizationFailureReason = reader.string();
637
879
  continue;
638
880
  }
639
881
  }
@@ -645,46 +887,144 @@ export const IListApplication: MessageFns<IListApplication> = {
645
887
  return message;
646
888
  },
647
889
 
648
- fromJSON(object: any): IListApplication {
890
+ fromJSON(object: any): CommandResult {
649
891
  return {
650
- items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => Application.fromJSON(e)) : [],
892
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
893
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
894
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
895
+ ? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
896
+ : [],
897
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
898
+ ? object.ExceptionMessages.map((e: any) => globalThis.String(e))
899
+ : [],
900
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
901
+ AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
902
+ ? globalThis.String(object.AuthorizationFailureReason)
903
+ : "",
651
904
  };
652
905
  },
653
906
 
654
- toJSON(message: IListApplication): unknown {
907
+ toJSON(message: CommandResult): unknown {
655
908
  const obj: any = {};
656
- if (message.items?.length) {
657
- obj.items = message.items.map((e) => Application.toJSON(e));
909
+ if (message.CorrelationId !== undefined) {
910
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
911
+ }
912
+ if (message.IsAuthorized !== false) {
913
+ obj.IsAuthorized = message.IsAuthorized;
914
+ }
915
+ if (message.ValidationResults?.length) {
916
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
917
+ }
918
+ if (message.ExceptionMessages?.length) {
919
+ obj.ExceptionMessages = message.ExceptionMessages;
920
+ }
921
+ if (message.ExceptionStackTrace !== "") {
922
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
923
+ }
924
+ if (message.AuthorizationFailureReason !== "") {
925
+ obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
658
926
  }
659
927
  return obj;
660
928
  },
661
929
 
662
- create(base?: DeepPartial<IListApplication>): IListApplication {
663
- return IListApplication.fromPartial(base ?? {});
930
+ create(base?: DeepPartial<CommandResult>): CommandResult {
931
+ return CommandResult.fromPartial(base ?? {});
664
932
  },
665
- fromPartial(object: DeepPartial<IListApplication>): IListApplication {
666
- const message = createBaseIListApplication();
667
- message.items = object.items?.map((e) => Application.fromPartial(e)) || [];
933
+ fromPartial(object: DeepPartial<CommandResult>): CommandResult {
934
+ const message = createBaseCommandResult();
935
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
936
+ ? Guid.fromPartial(object.CorrelationId)
937
+ : undefined;
938
+ message.IsAuthorized = object.IsAuthorized ?? false;
939
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
940
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
941
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
942
+ message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
668
943
  return message;
669
944
  },
670
945
  };
671
946
 
672
- function createBaseIListUser(): IListUser {
673
- return { items: [] };
947
+ function createBaseDateTimeOffset(): DateTimeOffset {
948
+ return {};
674
949
  }
675
950
 
676
- export const IListUser: MessageFns<IListUser> = {
677
- encode(message: IListUser, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
678
- for (const v of message.items) {
679
- User.encode(v!, writer.uint32(10).fork()).join();
951
+ export const DateTimeOffset: MessageFns<DateTimeOffset> = {
952
+ encode(_: DateTimeOffset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
953
+ return writer;
954
+ },
955
+
956
+ decode(input: BinaryReader | Uint8Array, length?: number): DateTimeOffset {
957
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
958
+ const end = length === undefined ? reader.len : reader.pos + length;
959
+ const message = createBaseDateTimeOffset();
960
+ while (reader.pos < end) {
961
+ const tag = reader.uint32();
962
+ switch (tag >>> 3) {
963
+ }
964
+ if ((tag & 7) === 4 || tag === 0) {
965
+ break;
966
+ }
967
+ reader.skip(tag & 7);
968
+ }
969
+ return message;
970
+ },
971
+
972
+ fromJSON(_: any): DateTimeOffset {
973
+ return {};
974
+ },
975
+
976
+ toJSON(_: DateTimeOffset): unknown {
977
+ const obj: any = {};
978
+ return obj;
979
+ },
980
+
981
+ create(base?: DeepPartial<DateTimeOffset>): DateTimeOffset {
982
+ return DateTimeOffset.fromPartial(base ?? {});
983
+ },
984
+ fromPartial(_: DeepPartial<DateTimeOffset>): DateTimeOffset {
985
+ const message = createBaseDateTimeOffset();
986
+ return message;
987
+ },
988
+ };
989
+
990
+ function createBaseQueryResultAdminPasswordStatusResponse(): QueryResultAdminPasswordStatusResponse {
991
+ return {
992
+ CorrelationId: undefined,
993
+ IsAuthorized: false,
994
+ ValidationResults: [],
995
+ ExceptionMessages: [],
996
+ ExceptionStackTrace: "",
997
+ Data: undefined,
998
+ };
999
+ }
1000
+
1001
+ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdminPasswordStatusResponse> = {
1002
+ encode(message: QueryResultAdminPasswordStatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1003
+ if (message.CorrelationId !== undefined) {
1004
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
1005
+ }
1006
+ if (message.IsAuthorized !== false) {
1007
+ writer.uint32(16).bool(message.IsAuthorized);
1008
+ }
1009
+ for (const v of message.ValidationResults) {
1010
+ ValidationResult.encode(v!, writer.uint32(26).fork()).join();
1011
+ }
1012
+ for (const v of message.ExceptionMessages) {
1013
+ writer.uint32(34).string(v!);
1014
+ }
1015
+ if (message.ExceptionStackTrace !== "") {
1016
+ writer.uint32(42).string(message.ExceptionStackTrace);
1017
+ }
1018
+ if (message.Data !== undefined) {
1019
+ AdminPasswordStatusResponse.encode(message.Data, writer.uint32(50).fork()).join();
680
1020
  }
681
1021
  return writer;
682
1022
  },
683
1023
 
684
- decode(input: BinaryReader | Uint8Array, length?: number): IListUser {
1024
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryResultAdminPasswordStatusResponse {
685
1025
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
686
1026
  const end = length === undefined ? reader.len : reader.pos + length;
687
- const message = createBaseIListUser();
1027
+ const message = createBaseQueryResultAdminPasswordStatusResponse();
688
1028
  while (reader.pos < end) {
689
1029
  const tag = reader.uint32();
690
1030
  switch (tag >>> 3) {
@@ -693,7 +1033,47 @@ export const IListUser: MessageFns<IListUser> = {
693
1033
  break;
694
1034
  }
695
1035
 
696
- message.items.push(User.decode(reader, reader.uint32()));
1036
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
1037
+ continue;
1038
+ }
1039
+ case 2: {
1040
+ if (tag !== 16) {
1041
+ break;
1042
+ }
1043
+
1044
+ message.IsAuthorized = reader.bool();
1045
+ continue;
1046
+ }
1047
+ case 3: {
1048
+ if (tag !== 26) {
1049
+ break;
1050
+ }
1051
+
1052
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
1053
+ continue;
1054
+ }
1055
+ case 4: {
1056
+ if (tag !== 34) {
1057
+ break;
1058
+ }
1059
+
1060
+ message.ExceptionMessages.push(reader.string());
1061
+ continue;
1062
+ }
1063
+ case 5: {
1064
+ if (tag !== 42) {
1065
+ break;
1066
+ }
1067
+
1068
+ message.ExceptionStackTrace = reader.string();
1069
+ continue;
1070
+ }
1071
+ case 6: {
1072
+ if (tag !== 50) {
1073
+ break;
1074
+ }
1075
+
1076
+ message.Data = AdminPasswordStatusResponse.decode(reader, reader.uint32());
697
1077
  continue;
698
1078
  }
699
1079
  }
@@ -705,64 +1085,150 @@ export const IListUser: MessageFns<IListUser> = {
705
1085
  return message;
706
1086
  },
707
1087
 
708
- fromJSON(object: any): IListUser {
709
- return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => User.fromJSON(e)) : [] };
1088
+ fromJSON(object: any): QueryResultAdminPasswordStatusResponse {
1089
+ return {
1090
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
1091
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1092
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1093
+ ? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
1094
+ : [],
1095
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1096
+ ? object.ExceptionMessages.map((e: any) => globalThis.String(e))
1097
+ : [],
1098
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1099
+ Data: isSet(object.Data) ? AdminPasswordStatusResponse.fromJSON(object.Data) : undefined,
1100
+ };
710
1101
  },
711
1102
 
712
- toJSON(message: IListUser): unknown {
1103
+ toJSON(message: QueryResultAdminPasswordStatusResponse): unknown {
713
1104
  const obj: any = {};
714
- if (message.items?.length) {
715
- obj.items = message.items.map((e) => User.toJSON(e));
1105
+ if (message.CorrelationId !== undefined) {
1106
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
1107
+ }
1108
+ if (message.IsAuthorized !== false) {
1109
+ obj.IsAuthorized = message.IsAuthorized;
1110
+ }
1111
+ if (message.ValidationResults?.length) {
1112
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1113
+ }
1114
+ if (message.ExceptionMessages?.length) {
1115
+ obj.ExceptionMessages = message.ExceptionMessages;
1116
+ }
1117
+ if (message.ExceptionStackTrace !== "") {
1118
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1119
+ }
1120
+ if (message.Data !== undefined) {
1121
+ obj.Data = AdminPasswordStatusResponse.toJSON(message.Data);
716
1122
  }
717
1123
  return obj;
718
1124
  },
719
1125
 
720
- create(base?: DeepPartial<IListUser>): IListUser {
721
- return IListUser.fromPartial(base ?? {});
1126
+ create(base?: DeepPartial<QueryResultAdminPasswordStatusResponse>): QueryResultAdminPasswordStatusResponse {
1127
+ return QueryResultAdminPasswordStatusResponse.fromPartial(base ?? {});
722
1128
  },
723
- fromPartial(object: DeepPartial<IListUser>): IListUser {
724
- const message = createBaseIListUser();
725
- message.items = object.items?.map((e) => User.fromPartial(e)) || [];
1129
+ fromPartial(object: DeepPartial<QueryResultAdminPasswordStatusResponse>): QueryResultAdminPasswordStatusResponse {
1130
+ const message = createBaseQueryResultAdminPasswordStatusResponse();
1131
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1132
+ ? Guid.fromPartial(object.CorrelationId)
1133
+ : undefined;
1134
+ message.IsAuthorized = object.IsAuthorized ?? false;
1135
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1136
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1137
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1138
+ message.Data = (object.Data !== undefined && object.Data !== null)
1139
+ ? AdminPasswordStatusResponse.fromPartial(object.Data)
1140
+ : undefined;
726
1141
  return message;
727
1142
  },
728
1143
  };
729
1144
 
730
- function createBaseInitialAdminPasswordSetupStatus(): InitialAdminPasswordSetupStatus {
731
- return { IsRequired: false, AdminUserId: undefined };
1145
+ function createBaseQueryResultIEnumerableApplicationResponse(): QueryResultIEnumerableApplicationResponse {
1146
+ return {
1147
+ CorrelationId: undefined,
1148
+ IsAuthorized: false,
1149
+ ValidationResults: [],
1150
+ ExceptionMessages: [],
1151
+ ExceptionStackTrace: "",
1152
+ Data: [],
1153
+ };
732
1154
  }
733
1155
 
734
- export const InitialAdminPasswordSetupStatus: MessageFns<InitialAdminPasswordSetupStatus> = {
735
- encode(message: InitialAdminPasswordSetupStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
736
- if (message.IsRequired !== false) {
737
- writer.uint32(8).bool(message.IsRequired);
1156
+ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIEnumerableApplicationResponse> = {
1157
+ encode(message: QueryResultIEnumerableApplicationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1158
+ if (message.CorrelationId !== undefined) {
1159
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
738
1160
  }
739
- if (message.AdminUserId !== undefined) {
740
- Guid.encode(message.AdminUserId, writer.uint32(18).fork()).join();
1161
+ if (message.IsAuthorized !== false) {
1162
+ writer.uint32(16).bool(message.IsAuthorized);
1163
+ }
1164
+ for (const v of message.ValidationResults) {
1165
+ ValidationResult.encode(v!, writer.uint32(26).fork()).join();
1166
+ }
1167
+ for (const v of message.ExceptionMessages) {
1168
+ writer.uint32(34).string(v!);
1169
+ }
1170
+ if (message.ExceptionStackTrace !== "") {
1171
+ writer.uint32(42).string(message.ExceptionStackTrace);
1172
+ }
1173
+ for (const v of message.Data) {
1174
+ ApplicationResponse.encode(v!, writer.uint32(50).fork()).join();
741
1175
  }
742
1176
  return writer;
743
1177
  },
744
1178
 
745
- decode(input: BinaryReader | Uint8Array, length?: number): InitialAdminPasswordSetupStatus {
1179
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableApplicationResponse {
746
1180
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
747
1181
  const end = length === undefined ? reader.len : reader.pos + length;
748
- const message = createBaseInitialAdminPasswordSetupStatus();
1182
+ const message = createBaseQueryResultIEnumerableApplicationResponse();
749
1183
  while (reader.pos < end) {
750
1184
  const tag = reader.uint32();
751
1185
  switch (tag >>> 3) {
752
1186
  case 1: {
753
- if (tag !== 8) {
1187
+ if (tag !== 10) {
754
1188
  break;
755
1189
  }
756
1190
 
757
- message.IsRequired = reader.bool();
1191
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
758
1192
  continue;
759
1193
  }
760
1194
  case 2: {
761
- if (tag !== 18) {
1195
+ if (tag !== 16) {
762
1196
  break;
763
1197
  }
764
1198
 
765
- message.AdminUserId = Guid.decode(reader, reader.uint32());
1199
+ message.IsAuthorized = reader.bool();
1200
+ continue;
1201
+ }
1202
+ case 3: {
1203
+ if (tag !== 26) {
1204
+ break;
1205
+ }
1206
+
1207
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
1208
+ continue;
1209
+ }
1210
+ case 4: {
1211
+ if (tag !== 34) {
1212
+ break;
1213
+ }
1214
+
1215
+ message.ExceptionMessages.push(reader.string());
1216
+ continue;
1217
+ }
1218
+ case 5: {
1219
+ if (tag !== 42) {
1220
+ break;
1221
+ }
1222
+
1223
+ message.ExceptionStackTrace = reader.string();
1224
+ continue;
1225
+ }
1226
+ case 6: {
1227
+ if (tag !== 50) {
1228
+ break;
1229
+ }
1230
+
1231
+ message.Data.push(ApplicationResponse.decode(reader, reader.uint32()));
766
1232
  continue;
767
1233
  }
768
1234
  }
@@ -774,53 +1240,101 @@ export const InitialAdminPasswordSetupStatus: MessageFns<InitialAdminPasswordSet
774
1240
  return message;
775
1241
  },
776
1242
 
777
- fromJSON(object: any): InitialAdminPasswordSetupStatus {
1243
+ fromJSON(object: any): QueryResultIEnumerableApplicationResponse {
778
1244
  return {
779
- IsRequired: isSet(object.IsRequired) ? globalThis.Boolean(object.IsRequired) : false,
780
- AdminUserId: isSet(object.AdminUserId) ? Guid.fromJSON(object.AdminUserId) : undefined,
1245
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
1246
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1247
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1248
+ ? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
1249
+ : [],
1250
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1251
+ ? object.ExceptionMessages.map((e: any) => globalThis.String(e))
1252
+ : [],
1253
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1254
+ Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e: any) => ApplicationResponse.fromJSON(e)) : [],
781
1255
  };
782
1256
  },
783
1257
 
784
- toJSON(message: InitialAdminPasswordSetupStatus): unknown {
1258
+ toJSON(message: QueryResultIEnumerableApplicationResponse): unknown {
785
1259
  const obj: any = {};
786
- if (message.IsRequired !== false) {
787
- obj.IsRequired = message.IsRequired;
1260
+ if (message.CorrelationId !== undefined) {
1261
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
788
1262
  }
789
- if (message.AdminUserId !== undefined) {
790
- obj.AdminUserId = Guid.toJSON(message.AdminUserId);
1263
+ if (message.IsAuthorized !== false) {
1264
+ obj.IsAuthorized = message.IsAuthorized;
1265
+ }
1266
+ if (message.ValidationResults?.length) {
1267
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1268
+ }
1269
+ if (message.ExceptionMessages?.length) {
1270
+ obj.ExceptionMessages = message.ExceptionMessages;
1271
+ }
1272
+ if (message.ExceptionStackTrace !== "") {
1273
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1274
+ }
1275
+ if (message.Data?.length) {
1276
+ obj.Data = message.Data.map((e) => ApplicationResponse.toJSON(e));
791
1277
  }
792
1278
  return obj;
793
1279
  },
794
1280
 
795
- create(base?: DeepPartial<InitialAdminPasswordSetupStatus>): InitialAdminPasswordSetupStatus {
796
- return InitialAdminPasswordSetupStatus.fromPartial(base ?? {});
1281
+ create(base?: DeepPartial<QueryResultIEnumerableApplicationResponse>): QueryResultIEnumerableApplicationResponse {
1282
+ return QueryResultIEnumerableApplicationResponse.fromPartial(base ?? {});
797
1283
  },
798
- fromPartial(object: DeepPartial<InitialAdminPasswordSetupStatus>): InitialAdminPasswordSetupStatus {
799
- const message = createBaseInitialAdminPasswordSetupStatus();
800
- message.IsRequired = object.IsRequired ?? false;
801
- message.AdminUserId = (object.AdminUserId !== undefined && object.AdminUserId !== null)
802
- ? Guid.fromPartial(object.AdminUserId)
1284
+ fromPartial(
1285
+ object: DeepPartial<QueryResultIEnumerableApplicationResponse>,
1286
+ ): QueryResultIEnumerableApplicationResponse {
1287
+ const message = createBaseQueryResultIEnumerableApplicationResponse();
1288
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1289
+ ? Guid.fromPartial(object.CorrelationId)
803
1290
  : undefined;
1291
+ message.IsAuthorized = object.IsAuthorized ?? false;
1292
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1293
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1294
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1295
+ message.Data = object.Data?.map((e) => ApplicationResponse.fromPartial(e)) || [];
804
1296
  return message;
805
1297
  },
806
1298
  };
807
1299
 
808
- function createBaseRemoveApplication(): RemoveApplication {
809
- return { Id: undefined };
1300
+ function createBaseQueryResultIEnumerableUserResponse(): QueryResultIEnumerableUserResponse {
1301
+ return {
1302
+ CorrelationId: undefined,
1303
+ IsAuthorized: false,
1304
+ ValidationResults: [],
1305
+ ExceptionMessages: [],
1306
+ ExceptionStackTrace: "",
1307
+ Data: [],
1308
+ };
810
1309
  }
811
1310
 
812
- export const RemoveApplication: MessageFns<RemoveApplication> = {
813
- encode(message: RemoveApplication, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
814
- if (message.Id !== undefined) {
815
- Guid.encode(message.Id, writer.uint32(10).fork()).join();
1311
+ export const QueryResultIEnumerableUserResponse: MessageFns<QueryResultIEnumerableUserResponse> = {
1312
+ encode(message: QueryResultIEnumerableUserResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1313
+ if (message.CorrelationId !== undefined) {
1314
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
1315
+ }
1316
+ if (message.IsAuthorized !== false) {
1317
+ writer.uint32(16).bool(message.IsAuthorized);
1318
+ }
1319
+ for (const v of message.ValidationResults) {
1320
+ ValidationResult.encode(v!, writer.uint32(26).fork()).join();
1321
+ }
1322
+ for (const v of message.ExceptionMessages) {
1323
+ writer.uint32(34).string(v!);
1324
+ }
1325
+ if (message.ExceptionStackTrace !== "") {
1326
+ writer.uint32(42).string(message.ExceptionStackTrace);
1327
+ }
1328
+ for (const v of message.Data) {
1329
+ UserResponse.encode(v!, writer.uint32(50).fork()).join();
816
1330
  }
817
1331
  return writer;
818
1332
  },
819
1333
 
820
- decode(input: BinaryReader | Uint8Array, length?: number): RemoveApplication {
1334
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableUserResponse {
821
1335
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
822
1336
  const end = length === undefined ? reader.len : reader.pos + length;
823
- const message = createBaseRemoveApplication();
1337
+ const message = createBaseQueryResultIEnumerableUserResponse();
824
1338
  while (reader.pos < end) {
825
1339
  const tag = reader.uint32();
826
1340
  switch (tag >>> 3) {
@@ -829,7 +1343,47 @@ export const RemoveApplication: MessageFns<RemoveApplication> = {
829
1343
  break;
830
1344
  }
831
1345
 
832
- message.Id = Guid.decode(reader, reader.uint32());
1346
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
1347
+ continue;
1348
+ }
1349
+ case 2: {
1350
+ if (tag !== 16) {
1351
+ break;
1352
+ }
1353
+
1354
+ message.IsAuthorized = reader.bool();
1355
+ continue;
1356
+ }
1357
+ case 3: {
1358
+ if (tag !== 26) {
1359
+ break;
1360
+ }
1361
+
1362
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
1363
+ continue;
1364
+ }
1365
+ case 4: {
1366
+ if (tag !== 34) {
1367
+ break;
1368
+ }
1369
+
1370
+ message.ExceptionMessages.push(reader.string());
1371
+ continue;
1372
+ }
1373
+ case 5: {
1374
+ if (tag !== 42) {
1375
+ break;
1376
+ }
1377
+
1378
+ message.ExceptionStackTrace = reader.string();
1379
+ continue;
1380
+ }
1381
+ case 6: {
1382
+ if (tag !== 50) {
1383
+ break;
1384
+ }
1385
+
1386
+ message.Data.push(UserResponse.decode(reader, reader.uint32()));
833
1387
  continue;
834
1388
  }
835
1389
  }
@@ -841,44 +1395,77 @@ export const RemoveApplication: MessageFns<RemoveApplication> = {
841
1395
  return message;
842
1396
  },
843
1397
 
844
- fromJSON(object: any): RemoveApplication {
845
- return { Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined };
1398
+ fromJSON(object: any): QueryResultIEnumerableUserResponse {
1399
+ return {
1400
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
1401
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
1402
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
1403
+ ? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
1404
+ : [],
1405
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
1406
+ ? object.ExceptionMessages.map((e: any) => globalThis.String(e))
1407
+ : [],
1408
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
1409
+ Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e: any) => UserResponse.fromJSON(e)) : [],
1410
+ };
846
1411
  },
847
1412
 
848
- toJSON(message: RemoveApplication): unknown {
1413
+ toJSON(message: QueryResultIEnumerableUserResponse): unknown {
849
1414
  const obj: any = {};
850
- if (message.Id !== undefined) {
851
- obj.Id = Guid.toJSON(message.Id);
1415
+ if (message.CorrelationId !== undefined) {
1416
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
1417
+ }
1418
+ if (message.IsAuthorized !== false) {
1419
+ obj.IsAuthorized = message.IsAuthorized;
1420
+ }
1421
+ if (message.ValidationResults?.length) {
1422
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
1423
+ }
1424
+ if (message.ExceptionMessages?.length) {
1425
+ obj.ExceptionMessages = message.ExceptionMessages;
1426
+ }
1427
+ if (message.ExceptionStackTrace !== "") {
1428
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
1429
+ }
1430
+ if (message.Data?.length) {
1431
+ obj.Data = message.Data.map((e) => UserResponse.toJSON(e));
852
1432
  }
853
1433
  return obj;
854
1434
  },
855
1435
 
856
- create(base?: DeepPartial<RemoveApplication>): RemoveApplication {
857
- return RemoveApplication.fromPartial(base ?? {});
1436
+ create(base?: DeepPartial<QueryResultIEnumerableUserResponse>): QueryResultIEnumerableUserResponse {
1437
+ return QueryResultIEnumerableUserResponse.fromPartial(base ?? {});
858
1438
  },
859
- fromPartial(object: DeepPartial<RemoveApplication>): RemoveApplication {
860
- const message = createBaseRemoveApplication();
861
- message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
1439
+ fromPartial(object: DeepPartial<QueryResultIEnumerableUserResponse>): QueryResultIEnumerableUserResponse {
1440
+ const message = createBaseQueryResultIEnumerableUserResponse();
1441
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
1442
+ ? Guid.fromPartial(object.CorrelationId)
1443
+ : undefined;
1444
+ message.IsAuthorized = object.IsAuthorized ?? false;
1445
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
1446
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
1447
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
1448
+ message.Data = object.Data?.map((e) => UserResponse.fromPartial(e)) || [];
862
1449
  return message;
863
1450
  },
864
1451
  };
865
1452
 
866
- function createBaseRemoveUser(): RemoveUser {
867
- return { UserId: undefined };
1453
+ function createBaseRemoveApplicationRequest(): RemoveApplicationRequest {
1454
+ return { Id: undefined };
868
1455
  }
869
1456
 
870
- export const RemoveUser: MessageFns<RemoveUser> = {
871
- encode(message: RemoveUser, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
872
- if (message.UserId !== undefined) {
873
- Guid.encode(message.UserId, writer.uint32(10).fork()).join();
1457
+ export const RemoveApplicationRequest: MessageFns<RemoveApplicationRequest> = {
1458
+ encode(message: RemoveApplicationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1459
+ if (message.Id !== undefined) {
1460
+ Guid.encode(message.Id, writer.uint32(10).fork()).join();
874
1461
  }
875
1462
  return writer;
876
1463
  },
877
1464
 
878
- decode(input: BinaryReader | Uint8Array, length?: number): RemoveUser {
1465
+ decode(input: BinaryReader | Uint8Array, length?: number): RemoveApplicationRequest {
879
1466
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
880
1467
  const end = length === undefined ? reader.len : reader.pos + length;
881
- const message = createBaseRemoveUser();
1468
+ const message = createBaseRemoveApplicationRequest();
882
1469
  while (reader.pos < end) {
883
1470
  const tag = reader.uint32();
884
1471
  switch (tag >>> 3) {
@@ -887,7 +1474,7 @@ export const RemoveUser: MessageFns<RemoveUser> = {
887
1474
  break;
888
1475
  }
889
1476
 
890
- message.UserId = Guid.decode(reader, reader.uint32());
1477
+ message.Id = Guid.decode(reader, reader.uint32());
891
1478
  continue;
892
1479
  }
893
1480
  }
@@ -899,46 +1486,44 @@ export const RemoveUser: MessageFns<RemoveUser> = {
899
1486
  return message;
900
1487
  },
901
1488
 
902
- fromJSON(object: any): RemoveUser {
903
- return { UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined };
1489
+ fromJSON(object: any): RemoveApplicationRequest {
1490
+ return { Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined };
904
1491
  },
905
1492
 
906
- toJSON(message: RemoveUser): unknown {
1493
+ toJSON(message: RemoveApplicationRequest): unknown {
907
1494
  const obj: any = {};
908
- if (message.UserId !== undefined) {
909
- obj.UserId = Guid.toJSON(message.UserId);
1495
+ if (message.Id !== undefined) {
1496
+ obj.Id = Guid.toJSON(message.Id);
910
1497
  }
911
1498
  return obj;
912
1499
  },
913
1500
 
914
- create(base?: DeepPartial<RemoveUser>): RemoveUser {
915
- return RemoveUser.fromPartial(base ?? {});
1501
+ create(base?: DeepPartial<RemoveApplicationRequest>): RemoveApplicationRequest {
1502
+ return RemoveApplicationRequest.fromPartial(base ?? {});
916
1503
  },
917
- fromPartial(object: DeepPartial<RemoveUser>): RemoveUser {
918
- const message = createBaseRemoveUser();
919
- message.UserId = (object.UserId !== undefined && object.UserId !== null)
920
- ? Guid.fromPartial(object.UserId)
921
- : undefined;
1504
+ fromPartial(object: DeepPartial<RemoveApplicationRequest>): RemoveApplicationRequest {
1505
+ const message = createBaseRemoveApplicationRequest();
1506
+ message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
922
1507
  return message;
923
1508
  },
924
1509
  };
925
1510
 
926
- function createBaseRequirePasswordChange(): RequirePasswordChange {
1511
+ function createBaseRemoveUserRequest(): RemoveUserRequest {
927
1512
  return { UserId: undefined };
928
1513
  }
929
1514
 
930
- export const RequirePasswordChange: MessageFns<RequirePasswordChange> = {
931
- encode(message: RequirePasswordChange, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1515
+ export const RemoveUserRequest: MessageFns<RemoveUserRequest> = {
1516
+ encode(message: RemoveUserRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
932
1517
  if (message.UserId !== undefined) {
933
1518
  Guid.encode(message.UserId, writer.uint32(10).fork()).join();
934
1519
  }
935
1520
  return writer;
936
1521
  },
937
1522
 
938
- decode(input: BinaryReader | Uint8Array, length?: number): RequirePasswordChange {
1523
+ decode(input: BinaryReader | Uint8Array, length?: number): RemoveUserRequest {
939
1524
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
940
1525
  const end = length === undefined ? reader.len : reader.pos + length;
941
- const message = createBaseRequirePasswordChange();
1526
+ const message = createBaseRemoveUserRequest();
942
1527
  while (reader.pos < end) {
943
1528
  const tag = reader.uint32();
944
1529
  switch (tag >>> 3) {
@@ -959,11 +1544,11 @@ export const RequirePasswordChange: MessageFns<RequirePasswordChange> = {
959
1544
  return message;
960
1545
  },
961
1546
 
962
- fromJSON(object: any): RequirePasswordChange {
1547
+ fromJSON(object: any): RemoveUserRequest {
963
1548
  return { UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined };
964
1549
  },
965
1550
 
966
- toJSON(message: RequirePasswordChange): unknown {
1551
+ toJSON(message: RemoveUserRequest): unknown {
967
1552
  const obj: any = {};
968
1553
  if (message.UserId !== undefined) {
969
1554
  obj.UserId = Guid.toJSON(message.UserId);
@@ -971,11 +1556,11 @@ export const RequirePasswordChange: MessageFns<RequirePasswordChange> = {
971
1556
  return obj;
972
1557
  },
973
1558
 
974
- create(base?: DeepPartial<RequirePasswordChange>): RequirePasswordChange {
975
- return RequirePasswordChange.fromPartial(base ?? {});
1559
+ create(base?: DeepPartial<RemoveUserRequest>): RemoveUserRequest {
1560
+ return RemoveUserRequest.fromPartial(base ?? {});
976
1561
  },
977
- fromPartial(object: DeepPartial<RequirePasswordChange>): RequirePasswordChange {
978
- const message = createBaseRequirePasswordChange();
1562
+ fromPartial(object: DeepPartial<RemoveUserRequest>): RemoveUserRequest {
1563
+ const message = createBaseRemoveUserRequest();
979
1564
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
980
1565
  ? Guid.fromPartial(object.UserId)
981
1566
  : undefined;
@@ -983,22 +1568,22 @@ export const RequirePasswordChange: MessageFns<RequirePasswordChange> = {
983
1568
  },
984
1569
  };
985
1570
 
986
- function createBaseSerializableDateTimeOffset(): SerializableDateTimeOffset {
987
- return { Value: "" };
1571
+ function createBaseRequirePasswordChangeRequest(): RequirePasswordChangeRequest {
1572
+ return { UserId: undefined };
988
1573
  }
989
1574
 
990
- export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset> = {
991
- encode(message: SerializableDateTimeOffset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
992
- if (message.Value !== "") {
993
- writer.uint32(10).string(message.Value);
1575
+ export const RequirePasswordChangeRequest: MessageFns<RequirePasswordChangeRequest> = {
1576
+ encode(message: RequirePasswordChangeRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1577
+ if (message.UserId !== undefined) {
1578
+ Guid.encode(message.UserId, writer.uint32(10).fork()).join();
994
1579
  }
995
1580
  return writer;
996
1581
  },
997
1582
 
998
- decode(input: BinaryReader | Uint8Array, length?: number): SerializableDateTimeOffset {
1583
+ decode(input: BinaryReader | Uint8Array, length?: number): RequirePasswordChangeRequest {
999
1584
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1000
1585
  const end = length === undefined ? reader.len : reader.pos + length;
1001
- const message = createBaseSerializableDateTimeOffset();
1586
+ const message = createBaseRequirePasswordChangeRequest();
1002
1587
  while (reader.pos < end) {
1003
1588
  const tag = reader.uint32();
1004
1589
  switch (tag >>> 3) {
@@ -1007,7 +1592,7 @@ export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset>
1007
1592
  break;
1008
1593
  }
1009
1594
 
1010
- message.Value = reader.string();
1595
+ message.UserId = Guid.decode(reader, reader.uint32());
1011
1596
  continue;
1012
1597
  }
1013
1598
  }
@@ -1019,34 +1604,36 @@ export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset>
1019
1604
  return message;
1020
1605
  },
1021
1606
 
1022
- fromJSON(object: any): SerializableDateTimeOffset {
1023
- return { Value: isSet(object.Value) ? globalThis.String(object.Value) : "" };
1607
+ fromJSON(object: any): RequirePasswordChangeRequest {
1608
+ return { UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined };
1024
1609
  },
1025
1610
 
1026
- toJSON(message: SerializableDateTimeOffset): unknown {
1611
+ toJSON(message: RequirePasswordChangeRequest): unknown {
1027
1612
  const obj: any = {};
1028
- if (message.Value !== "") {
1029
- obj.Value = message.Value;
1613
+ if (message.UserId !== undefined) {
1614
+ obj.UserId = Guid.toJSON(message.UserId);
1030
1615
  }
1031
1616
  return obj;
1032
1617
  },
1033
1618
 
1034
- create(base?: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
1035
- return SerializableDateTimeOffset.fromPartial(base ?? {});
1619
+ create(base?: DeepPartial<RequirePasswordChangeRequest>): RequirePasswordChangeRequest {
1620
+ return RequirePasswordChangeRequest.fromPartial(base ?? {});
1036
1621
  },
1037
- fromPartial(object: DeepPartial<SerializableDateTimeOffset>): SerializableDateTimeOffset {
1038
- const message = createBaseSerializableDateTimeOffset();
1039
- message.Value = object.Value ?? "";
1622
+ fromPartial(object: DeepPartial<RequirePasswordChangeRequest>): RequirePasswordChangeRequest {
1623
+ const message = createBaseRequirePasswordChangeRequest();
1624
+ message.UserId = (object.UserId !== undefined && object.UserId !== null)
1625
+ ? Guid.fromPartial(object.UserId)
1626
+ : undefined;
1040
1627
  return message;
1041
1628
  },
1042
1629
  };
1043
1630
 
1044
- function createBaseSetInitialAdminPassword(): SetInitialAdminPassword {
1631
+ function createBaseSetInitialAdminPasswordRequest(): SetInitialAdminPasswordRequest {
1045
1632
  return { UserId: undefined, Password: "", ConfirmedPassword: "" };
1046
1633
  }
1047
1634
 
1048
- export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1049
- encode(message: SetInitialAdminPassword, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1635
+ export const SetInitialAdminPasswordRequest: MessageFns<SetInitialAdminPasswordRequest> = {
1636
+ encode(message: SetInitialAdminPasswordRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1050
1637
  if (message.UserId !== undefined) {
1051
1638
  Guid.encode(message.UserId, writer.uint32(10).fork()).join();
1052
1639
  }
@@ -1059,10 +1646,10 @@ export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1059
1646
  return writer;
1060
1647
  },
1061
1648
 
1062
- decode(input: BinaryReader | Uint8Array, length?: number): SetInitialAdminPassword {
1649
+ decode(input: BinaryReader | Uint8Array, length?: number): SetInitialAdminPasswordRequest {
1063
1650
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1064
1651
  const end = length === undefined ? reader.len : reader.pos + length;
1065
- const message = createBaseSetInitialAdminPassword();
1652
+ const message = createBaseSetInitialAdminPasswordRequest();
1066
1653
  while (reader.pos < end) {
1067
1654
  const tag = reader.uint32();
1068
1655
  switch (tag >>> 3) {
@@ -1099,7 +1686,7 @@ export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1099
1686
  return message;
1100
1687
  },
1101
1688
 
1102
- fromJSON(object: any): SetInitialAdminPassword {
1689
+ fromJSON(object: any): SetInitialAdminPasswordRequest {
1103
1690
  return {
1104
1691
  UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined,
1105
1692
  Password: isSet(object.Password) ? globalThis.String(object.Password) : "",
@@ -1107,7 +1694,7 @@ export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1107
1694
  };
1108
1695
  },
1109
1696
 
1110
- toJSON(message: SetInitialAdminPassword): unknown {
1697
+ toJSON(message: SetInitialAdminPasswordRequest): unknown {
1111
1698
  const obj: any = {};
1112
1699
  if (message.UserId !== undefined) {
1113
1700
  obj.UserId = Guid.toJSON(message.UserId);
@@ -1121,11 +1708,11 @@ export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1121
1708
  return obj;
1122
1709
  },
1123
1710
 
1124
- create(base?: DeepPartial<SetInitialAdminPassword>): SetInitialAdminPassword {
1125
- return SetInitialAdminPassword.fromPartial(base ?? {});
1711
+ create(base?: DeepPartial<SetInitialAdminPasswordRequest>): SetInitialAdminPasswordRequest {
1712
+ return SetInitialAdminPasswordRequest.fromPartial(base ?? {});
1126
1713
  },
1127
- fromPartial(object: DeepPartial<SetInitialAdminPassword>): SetInitialAdminPassword {
1128
- const message = createBaseSetInitialAdminPassword();
1714
+ fromPartial(object: DeepPartial<SetInitialAdminPasswordRequest>): SetInitialAdminPasswordRequest {
1715
+ const message = createBaseSetInitialAdminPasswordRequest();
1129
1716
  message.UserId = (object.UserId !== undefined && object.UserId !== null)
1130
1717
  ? Guid.fromPartial(object.UserId)
1131
1718
  : undefined;
@@ -1135,7 +1722,7 @@ export const SetInitialAdminPassword: MessageFns<SetInitialAdminPassword> = {
1135
1722
  },
1136
1723
  };
1137
1724
 
1138
- function createBaseUser(): User {
1725
+ function createBaseUserResponse(): UserResponse {
1139
1726
  return {
1140
1727
  Id: undefined,
1141
1728
  Username: "",
@@ -1147,8 +1734,8 @@ function createBaseUser(): User {
1147
1734
  };
1148
1735
  }
1149
1736
 
1150
- export const User: MessageFns<User> = {
1151
- encode(message: User, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1737
+ export const UserResponse: MessageFns<UserResponse> = {
1738
+ encode(message: UserResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1152
1739
  if (message.Id !== undefined) {
1153
1740
  Guid.encode(message.Id, writer.uint32(10).fork()).join();
1154
1741
  }
@@ -1162,10 +1749,10 @@ export const User: MessageFns<User> = {
1162
1749
  writer.uint32(32).bool(message.IsActive);
1163
1750
  }
1164
1751
  if (message.CreatedAt !== undefined) {
1165
- SerializableDateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
1752
+ DateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
1166
1753
  }
1167
1754
  if (message.LastModifiedAt !== undefined) {
1168
- SerializableDateTimeOffset.encode(message.LastModifiedAt, writer.uint32(50).fork()).join();
1755
+ DateTimeOffset.encode(message.LastModifiedAt, writer.uint32(50).fork()).join();
1169
1756
  }
1170
1757
  if (message.HasLoggedIn !== false) {
1171
1758
  writer.uint32(56).bool(message.HasLoggedIn);
@@ -1173,10 +1760,10 @@ export const User: MessageFns<User> = {
1173
1760
  return writer;
1174
1761
  },
1175
1762
 
1176
- decode(input: BinaryReader | Uint8Array, length?: number): User {
1763
+ decode(input: BinaryReader | Uint8Array, length?: number): UserResponse {
1177
1764
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1178
1765
  const end = length === undefined ? reader.len : reader.pos + length;
1179
- const message = createBaseUser();
1766
+ const message = createBaseUserResponse();
1180
1767
  while (reader.pos < end) {
1181
1768
  const tag = reader.uint32();
1182
1769
  switch (tag >>> 3) {
@@ -1217,7 +1804,7 @@ export const User: MessageFns<User> = {
1217
1804
  break;
1218
1805
  }
1219
1806
 
1220
- message.CreatedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
1807
+ message.CreatedAt = DateTimeOffset.decode(reader, reader.uint32());
1221
1808
  continue;
1222
1809
  }
1223
1810
  case 6: {
@@ -1225,7 +1812,7 @@ export const User: MessageFns<User> = {
1225
1812
  break;
1226
1813
  }
1227
1814
 
1228
- message.LastModifiedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
1815
+ message.LastModifiedAt = DateTimeOffset.decode(reader, reader.uint32());
1229
1816
  continue;
1230
1817
  }
1231
1818
  case 7: {
@@ -1245,21 +1832,19 @@ export const User: MessageFns<User> = {
1245
1832
  return message;
1246
1833
  },
1247
1834
 
1248
- fromJSON(object: any): User {
1835
+ fromJSON(object: any): UserResponse {
1249
1836
  return {
1250
1837
  Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
1251
1838
  Username: isSet(object.Username) ? globalThis.String(object.Username) : "",
1252
1839
  Email: isSet(object.Email) ? globalThis.String(object.Email) : "",
1253
1840
  IsActive: isSet(object.IsActive) ? globalThis.Boolean(object.IsActive) : false,
1254
- CreatedAt: isSet(object.CreatedAt) ? SerializableDateTimeOffset.fromJSON(object.CreatedAt) : undefined,
1255
- LastModifiedAt: isSet(object.LastModifiedAt)
1256
- ? SerializableDateTimeOffset.fromJSON(object.LastModifiedAt)
1257
- : undefined,
1841
+ CreatedAt: isSet(object.CreatedAt) ? DateTimeOffset.fromJSON(object.CreatedAt) : undefined,
1842
+ LastModifiedAt: isSet(object.LastModifiedAt) ? DateTimeOffset.fromJSON(object.LastModifiedAt) : undefined,
1258
1843
  HasLoggedIn: isSet(object.HasLoggedIn) ? globalThis.Boolean(object.HasLoggedIn) : false,
1259
1844
  };
1260
1845
  },
1261
1846
 
1262
- toJSON(message: User): unknown {
1847
+ toJSON(message: UserResponse): unknown {
1263
1848
  const obj: any = {};
1264
1849
  if (message.Id !== undefined) {
1265
1850
  obj.Id = Guid.toJSON(message.Id);
@@ -1274,10 +1859,10 @@ export const User: MessageFns<User> = {
1274
1859
  obj.IsActive = message.IsActive;
1275
1860
  }
1276
1861
  if (message.CreatedAt !== undefined) {
1277
- obj.CreatedAt = SerializableDateTimeOffset.toJSON(message.CreatedAt);
1862
+ obj.CreatedAt = DateTimeOffset.toJSON(message.CreatedAt);
1278
1863
  }
1279
1864
  if (message.LastModifiedAt !== undefined) {
1280
- obj.LastModifiedAt = SerializableDateTimeOffset.toJSON(message.LastModifiedAt);
1865
+ obj.LastModifiedAt = DateTimeOffset.toJSON(message.LastModifiedAt);
1281
1866
  }
1282
1867
  if (message.HasLoggedIn !== false) {
1283
1868
  obj.HasLoggedIn = message.HasLoggedIn;
@@ -1285,68 +1870,152 @@ export const User: MessageFns<User> = {
1285
1870
  return obj;
1286
1871
  },
1287
1872
 
1288
- create(base?: DeepPartial<User>): User {
1289
- return User.fromPartial(base ?? {});
1873
+ create(base?: DeepPartial<UserResponse>): UserResponse {
1874
+ return UserResponse.fromPartial(base ?? {});
1290
1875
  },
1291
- fromPartial(object: DeepPartial<User>): User {
1292
- const message = createBaseUser();
1876
+ fromPartial(object: DeepPartial<UserResponse>): UserResponse {
1877
+ const message = createBaseUserResponse();
1293
1878
  message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
1294
1879
  message.Username = object.Username ?? "";
1295
1880
  message.Email = object.Email ?? "";
1296
1881
  message.IsActive = object.IsActive ?? false;
1297
1882
  message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
1298
- ? SerializableDateTimeOffset.fromPartial(object.CreatedAt)
1883
+ ? DateTimeOffset.fromPartial(object.CreatedAt)
1299
1884
  : undefined;
1300
1885
  message.LastModifiedAt = (object.LastModifiedAt !== undefined && object.LastModifiedAt !== null)
1301
- ? SerializableDateTimeOffset.fromPartial(object.LastModifiedAt)
1886
+ ? DateTimeOffset.fromPartial(object.LastModifiedAt)
1302
1887
  : undefined;
1303
1888
  message.HasLoggedIn = object.HasLoggedIn ?? false;
1304
1889
  return message;
1305
1890
  },
1306
1891
  };
1307
1892
 
1893
+ function createBaseValidationResult(): ValidationResult {
1894
+ return { Severity: 0, Message: "", Members: [] };
1895
+ }
1896
+
1897
+ export const ValidationResult: MessageFns<ValidationResult> = {
1898
+ encode(message: ValidationResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1899
+ if (message.Severity !== 0) {
1900
+ writer.uint32(8).int32(message.Severity);
1901
+ }
1902
+ if (message.Message !== "") {
1903
+ writer.uint32(18).string(message.Message);
1904
+ }
1905
+ for (const v of message.Members) {
1906
+ writer.uint32(26).string(v!);
1907
+ }
1908
+ return writer;
1909
+ },
1910
+
1911
+ decode(input: BinaryReader | Uint8Array, length?: number): ValidationResult {
1912
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1913
+ const end = length === undefined ? reader.len : reader.pos + length;
1914
+ const message = createBaseValidationResult();
1915
+ while (reader.pos < end) {
1916
+ const tag = reader.uint32();
1917
+ switch (tag >>> 3) {
1918
+ case 1: {
1919
+ if (tag !== 8) {
1920
+ break;
1921
+ }
1922
+
1923
+ message.Severity = reader.int32() as any;
1924
+ continue;
1925
+ }
1926
+ case 2: {
1927
+ if (tag !== 18) {
1928
+ break;
1929
+ }
1930
+
1931
+ message.Message = reader.string();
1932
+ continue;
1933
+ }
1934
+ case 3: {
1935
+ if (tag !== 26) {
1936
+ break;
1937
+ }
1938
+
1939
+ message.Members.push(reader.string());
1940
+ continue;
1941
+ }
1942
+ }
1943
+ if ((tag & 7) === 4 || tag === 0) {
1944
+ break;
1945
+ }
1946
+ reader.skip(tag & 7);
1947
+ }
1948
+ return message;
1949
+ },
1950
+
1951
+ fromJSON(object: any): ValidationResult {
1952
+ return {
1953
+ Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
1954
+ Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
1955
+ Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e: any) => globalThis.String(e)) : [],
1956
+ };
1957
+ },
1958
+
1959
+ toJSON(message: ValidationResult): unknown {
1960
+ const obj: any = {};
1961
+ if (message.Severity !== 0) {
1962
+ obj.Severity = validationResultSeverityToJSON(message.Severity);
1963
+ }
1964
+ if (message.Message !== "") {
1965
+ obj.Message = message.Message;
1966
+ }
1967
+ if (message.Members?.length) {
1968
+ obj.Members = message.Members;
1969
+ }
1970
+ return obj;
1971
+ },
1972
+
1973
+ create(base?: DeepPartial<ValidationResult>): ValidationResult {
1974
+ return ValidationResult.fromPartial(base ?? {});
1975
+ },
1976
+ fromPartial(object: DeepPartial<ValidationResult>): ValidationResult {
1977
+ const message = createBaseValidationResult();
1978
+ message.Severity = object.Severity ?? 0;
1979
+ message.Message = object.Message ?? "";
1980
+ message.Members = object.Members?.map((e) => e) || [];
1981
+ return message;
1982
+ },
1983
+ };
1984
+
1308
1985
  export type ApplicationsDefinition = typeof ApplicationsDefinition;
1309
1986
  export const ApplicationsDefinition = {
1310
1987
  name: "Applications",
1311
1988
  fullName: "Cratis.Chronicle.Contracts.Security.Applications",
1312
1989
  methods: {
1313
- add: {
1314
- name: "Add",
1315
- requestType: AddApplication as typeof AddApplication,
1316
- requestStream: false,
1317
- responseType: Empty as typeof Empty,
1318
- responseStream: false,
1319
- options: {},
1320
- },
1321
- changeSecret: {
1322
- name: "ChangeSecret",
1323
- requestType: ChangeApplicationSecret as typeof ChangeApplicationSecret,
1990
+ addApplication: {
1991
+ name: "AddApplication",
1992
+ requestType: AddApplicationRequest as typeof AddApplicationRequest,
1324
1993
  requestStream: false,
1325
- responseType: Empty as typeof Empty,
1994
+ responseType: CommandResult as typeof CommandResult,
1326
1995
  responseStream: false,
1327
1996
  options: {},
1328
1997
  },
1329
- getAll: {
1330
- name: "GetAll",
1998
+ allApplications: {
1999
+ name: "AllApplications",
1331
2000
  requestType: Empty as typeof Empty,
1332
2001
  requestStream: false,
1333
- responseType: IListApplication as typeof IListApplication,
1334
- responseStream: false,
2002
+ responseType: QueryResultIEnumerableApplicationResponse as typeof QueryResultIEnumerableApplicationResponse,
2003
+ responseStream: true,
1335
2004
  options: {},
1336
2005
  },
1337
- observeAll: {
1338
- name: "ObserveAll",
1339
- requestType: Empty as typeof Empty,
2006
+ changeApplicationSecret: {
2007
+ name: "ChangeApplicationSecret",
2008
+ requestType: ChangeApplicationSecretRequest as typeof ChangeApplicationSecretRequest,
1340
2009
  requestStream: false,
1341
- responseType: IListApplication as typeof IListApplication,
1342
- responseStream: true,
2010
+ responseType: CommandResult as typeof CommandResult,
2011
+ responseStream: false,
1343
2012
  options: {},
1344
2013
  },
1345
- remove: {
1346
- name: "Remove",
1347
- requestType: RemoveApplication as typeof RemoveApplication,
2014
+ removeApplication: {
2015
+ name: "RemoveApplication",
2016
+ requestType: RemoveApplicationRequest as typeof RemoveApplicationRequest,
1348
2017
  requestStream: false,
1349
- responseType: Empty as typeof Empty,
2018
+ responseType: CommandResult as typeof CommandResult,
1350
2019
  responseStream: false,
1351
2020
  options: {},
1352
2021
  },
@@ -1354,22 +2023,41 @@ export const ApplicationsDefinition = {
1354
2023
  } as const;
1355
2024
 
1356
2025
  export interface ApplicationsServiceImplementation<CallContextExt = {}> {
1357
- add(request: AddApplication, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
1358
- changeSecret(request: ChangeApplicationSecret, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
1359
- getAll(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<IListApplication>>;
1360
- observeAll(
2026
+ addApplication(
2027
+ request: AddApplicationRequest,
2028
+ context: CallContext & CallContextExt,
2029
+ ): Promise<DeepPartial<CommandResult>>;
2030
+ allApplications(
1361
2031
  request: Empty,
1362
2032
  context: CallContext & CallContextExt,
1363
- ): ServerStreamingMethodResult<DeepPartial<IListApplication>>;
1364
- remove(request: RemoveApplication, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
2033
+ ): ServerStreamingMethodResult<DeepPartial<QueryResultIEnumerableApplicationResponse>>;
2034
+ changeApplicationSecret(
2035
+ request: ChangeApplicationSecretRequest,
2036
+ context: CallContext & CallContextExt,
2037
+ ): Promise<DeepPartial<CommandResult>>;
2038
+ removeApplication(
2039
+ request: RemoveApplicationRequest,
2040
+ context: CallContext & CallContextExt,
2041
+ ): Promise<DeepPartial<CommandResult>>;
1365
2042
  }
1366
2043
 
1367
2044
  export interface ApplicationsClient<CallOptionsExt = {}> {
1368
- add(request: DeepPartial<AddApplication>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1369
- changeSecret(request: DeepPartial<ChangeApplicationSecret>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1370
- getAll(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<IListApplication>;
1371
- observeAll(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): AsyncIterable<IListApplication>;
1372
- remove(request: DeepPartial<RemoveApplication>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
2045
+ addApplication(
2046
+ request: DeepPartial<AddApplicationRequest>,
2047
+ options?: CallOptions & CallOptionsExt,
2048
+ ): Promise<CommandResult>;
2049
+ allApplications(
2050
+ request: DeepPartial<Empty>,
2051
+ options?: CallOptions & CallOptionsExt,
2052
+ ): AsyncIterable<QueryResultIEnumerableApplicationResponse>;
2053
+ changeApplicationSecret(
2054
+ request: DeepPartial<ChangeApplicationSecretRequest>,
2055
+ options?: CallOptions & CallOptionsExt,
2056
+ ): Promise<CommandResult>;
2057
+ removeApplication(
2058
+ request: DeepPartial<RemoveApplicationRequest>,
2059
+ options?: CallOptions & CallOptionsExt,
2060
+ ): Promise<CommandResult>;
1373
2061
  }
1374
2062
 
1375
2063
  export type UsersDefinition = typeof UsersDefinition;
@@ -1377,67 +2065,59 @@ export const UsersDefinition = {
1377
2065
  name: "Users",
1378
2066
  fullName: "Cratis.Chronicle.Contracts.Security.Users",
1379
2067
  methods: {
1380
- add: {
1381
- name: "Add",
1382
- requestType: AddUser as typeof AddUser,
2068
+ addUser: {
2069
+ name: "AddUser",
2070
+ requestType: AddUserRequest as typeof AddUserRequest,
1383
2071
  requestStream: false,
1384
- responseType: Empty as typeof Empty,
2072
+ responseType: CommandResult as typeof CommandResult,
1385
2073
  responseStream: false,
1386
2074
  options: {},
1387
2075
  },
1388
- changePassword: {
1389
- name: "ChangePassword",
1390
- requestType: ChangeUserPassword as typeof ChangeUserPassword,
1391
- requestStream: false,
1392
- responseType: Empty as typeof Empty,
1393
- responseStream: false,
1394
- options: {},
1395
- },
1396
- getAll: {
1397
- name: "GetAll",
2076
+ allUsers: {
2077
+ name: "AllUsers",
1398
2078
  requestType: Empty as typeof Empty,
1399
2079
  requestStream: false,
1400
- responseType: IListUser as typeof IListUser,
1401
- responseStream: false,
2080
+ responseType: QueryResultIEnumerableUserResponse as typeof QueryResultIEnumerableUserResponse,
2081
+ responseStream: true,
1402
2082
  options: {},
1403
2083
  },
1404
- getInitialAdminPasswordSetupStatus: {
1405
- name: "GetInitialAdminPasswordSetupStatus",
1406
- requestType: Empty as typeof Empty,
2084
+ changeUserPassword: {
2085
+ name: "ChangeUserPassword",
2086
+ requestType: ChangeUserPasswordRequest as typeof ChangeUserPasswordRequest,
1407
2087
  requestStream: false,
1408
- responseType: InitialAdminPasswordSetupStatus as typeof InitialAdminPasswordSetupStatus,
2088
+ responseType: CommandResult as typeof CommandResult,
1409
2089
  responseStream: false,
1410
2090
  options: {},
1411
2091
  },
1412
- observeAll: {
1413
- name: "ObserveAll",
2092
+ getStatus: {
2093
+ name: "GetStatus",
1414
2094
  requestType: Empty as typeof Empty,
1415
2095
  requestStream: false,
1416
- responseType: IListUser as typeof IListUser,
1417
- responseStream: true,
2096
+ responseType: QueryResultAdminPasswordStatusResponse as typeof QueryResultAdminPasswordStatusResponse,
2097
+ responseStream: false,
1418
2098
  options: {},
1419
2099
  },
1420
- remove: {
1421
- name: "Remove",
1422
- requestType: RemoveUser as typeof RemoveUser,
2100
+ removeUser: {
2101
+ name: "RemoveUser",
2102
+ requestType: RemoveUserRequest as typeof RemoveUserRequest,
1423
2103
  requestStream: false,
1424
- responseType: Empty as typeof Empty,
2104
+ responseType: CommandResult as typeof CommandResult,
1425
2105
  responseStream: false,
1426
2106
  options: {},
1427
2107
  },
1428
2108
  requirePasswordChange: {
1429
2109
  name: "RequirePasswordChange",
1430
- requestType: RequirePasswordChange as typeof RequirePasswordChange,
2110
+ requestType: RequirePasswordChangeRequest as typeof RequirePasswordChangeRequest,
1431
2111
  requestStream: false,
1432
- responseType: Empty as typeof Empty,
2112
+ responseType: CommandResult as typeof CommandResult,
1433
2113
  responseStream: false,
1434
2114
  options: {},
1435
2115
  },
1436
2116
  setInitialAdminPassword: {
1437
2117
  name: "SetInitialAdminPassword",
1438
- requestType: SetInitialAdminPassword as typeof SetInitialAdminPassword,
2118
+ requestType: SetInitialAdminPasswordRequest as typeof SetInitialAdminPasswordRequest,
1439
2119
  requestStream: false,
1440
- responseType: Empty as typeof Empty,
2120
+ responseType: CommandResult as typeof CommandResult,
1441
2121
  responseStream: false,
1442
2122
  options: {},
1443
2123
  },
@@ -1445,46 +2125,53 @@ export const UsersDefinition = {
1445
2125
  } as const;
1446
2126
 
1447
2127
  export interface UsersServiceImplementation<CallContextExt = {}> {
1448
- add(request: AddUser, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
1449
- changePassword(request: ChangeUserPassword, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
1450
- getAll(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<IListUser>>;
1451
- getInitialAdminPasswordSetupStatus(
2128
+ addUser(request: AddUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
2129
+ allUsers(
1452
2130
  request: Empty,
1453
2131
  context: CallContext & CallContextExt,
1454
- ): Promise<DeepPartial<InitialAdminPasswordSetupStatus>>;
1455
- observeAll(
2132
+ ): ServerStreamingMethodResult<DeepPartial<QueryResultIEnumerableUserResponse>>;
2133
+ changeUserPassword(
2134
+ request: ChangeUserPasswordRequest,
2135
+ context: CallContext & CallContextExt,
2136
+ ): Promise<DeepPartial<CommandResult>>;
2137
+ getStatus(
1456
2138
  request: Empty,
1457
2139
  context: CallContext & CallContextExt,
1458
- ): ServerStreamingMethodResult<DeepPartial<IListUser>>;
1459
- remove(request: RemoveUser, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
2140
+ ): Promise<DeepPartial<QueryResultAdminPasswordStatusResponse>>;
2141
+ removeUser(request: RemoveUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
1460
2142
  requirePasswordChange(
1461
- request: RequirePasswordChange,
2143
+ request: RequirePasswordChangeRequest,
1462
2144
  context: CallContext & CallContextExt,
1463
- ): Promise<DeepPartial<Empty>>;
2145
+ ): Promise<DeepPartial<CommandResult>>;
1464
2146
  setInitialAdminPassword(
1465
- request: SetInitialAdminPassword,
2147
+ request: SetInitialAdminPasswordRequest,
1466
2148
  context: CallContext & CallContextExt,
1467
- ): Promise<DeepPartial<Empty>>;
2149
+ ): Promise<DeepPartial<CommandResult>>;
1468
2150
  }
1469
2151
 
1470
2152
  export interface UsersClient<CallOptionsExt = {}> {
1471
- add(request: DeepPartial<AddUser>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1472
- changePassword(request: DeepPartial<ChangeUserPassword>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1473
- getAll(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<IListUser>;
1474
- getInitialAdminPasswordSetupStatus(
2153
+ addUser(request: DeepPartial<AddUserRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
2154
+ allUsers(
2155
+ request: DeepPartial<Empty>,
2156
+ options?: CallOptions & CallOptionsExt,
2157
+ ): AsyncIterable<QueryResultIEnumerableUserResponse>;
2158
+ changeUserPassword(
2159
+ request: DeepPartial<ChangeUserPasswordRequest>,
2160
+ options?: CallOptions & CallOptionsExt,
2161
+ ): Promise<CommandResult>;
2162
+ getStatus(
1475
2163
  request: DeepPartial<Empty>,
1476
2164
  options?: CallOptions & CallOptionsExt,
1477
- ): Promise<InitialAdminPasswordSetupStatus>;
1478
- observeAll(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): AsyncIterable<IListUser>;
1479
- remove(request: DeepPartial<RemoveUser>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
2165
+ ): Promise<QueryResultAdminPasswordStatusResponse>;
2166
+ removeUser(request: DeepPartial<RemoveUserRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
1480
2167
  requirePasswordChange(
1481
- request: DeepPartial<RequirePasswordChange>,
2168
+ request: DeepPartial<RequirePasswordChangeRequest>,
1482
2169
  options?: CallOptions & CallOptionsExt,
1483
- ): Promise<Empty>;
2170
+ ): Promise<CommandResult>;
1484
2171
  setInitialAdminPassword(
1485
- request: DeepPartial<SetInitialAdminPassword>,
2172
+ request: DeepPartial<SetInitialAdminPasswordRequest>,
1486
2173
  options?: CallOptions & CallOptionsExt,
1487
- ): Promise<Empty>;
2174
+ ): Promise<CommandResult>;
1488
2175
  }
1489
2176
 
1490
2177
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;