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