@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 { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
|
|
|
2
2
|
import { Empty } from './google/protobuf/empty.js';
|
|
3
3
|
import { Guid } from './protobuf-net/bcl.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
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
|
+
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
|
-
|
|
33
|
+
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
|
+
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 @@ 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 @@ 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 @@ 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 @@ 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
|
-
const
|
|
134
|
+
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 @@ 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 @@ 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 @@ const AddUser = {
|
|
|
185
228
|
return message;
|
|
186
229
|
},
|
|
187
230
|
};
|
|
188
|
-
function
|
|
231
|
+
function createBaseAdminPasswordStatusResponse() {
|
|
232
|
+
return { IsRequired: false, AdminUserId: undefined };
|
|
233
|
+
}
|
|
234
|
+
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
|
-
const
|
|
304
|
+
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 @@ 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 @@ 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 @@ 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 @@ 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
|
-
const
|
|
421
|
+
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 @@ 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 @@ 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
|
-
const
|
|
489
|
+
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 @@ 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 @@ 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 @@ 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
|
-
const
|
|
596
|
+
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 @@ 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,129 @@ 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
|
-
const
|
|
732
|
+
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
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
reader.skip(tag & 7);
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
748
|
+
},
|
|
749
|
+
fromJSON(_) {
|
|
750
|
+
return {};
|
|
751
|
+
},
|
|
752
|
+
toJSON(_) {
|
|
753
|
+
const obj = {};
|
|
754
|
+
return obj;
|
|
755
|
+
},
|
|
756
|
+
create(base) {
|
|
757
|
+
return DateTimeOffset.fromPartial(base ?? {});
|
|
758
|
+
},
|
|
759
|
+
fromPartial(_) {
|
|
760
|
+
const message = createBaseDateTimeOffset();
|
|
761
|
+
return message;
|
|
762
|
+
},
|
|
763
|
+
};
|
|
764
|
+
function createBaseQueryResultAdminPasswordStatusResponse() {
|
|
765
|
+
return {
|
|
766
|
+
CorrelationId: undefined,
|
|
767
|
+
IsAuthorized: false,
|
|
768
|
+
ValidationResults: [],
|
|
769
|
+
ExceptionMessages: [],
|
|
770
|
+
ExceptionStackTrace: "",
|
|
771
|
+
Data: undefined,
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
const QueryResultAdminPasswordStatusResponse = {
|
|
532
775
|
encode(message, writer = new BinaryWriter()) {
|
|
533
|
-
|
|
534
|
-
|
|
776
|
+
if (message.CorrelationId !== undefined) {
|
|
777
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
778
|
+
}
|
|
779
|
+
if (message.IsAuthorized !== false) {
|
|
780
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
781
|
+
}
|
|
782
|
+
for (const v of message.ValidationResults) {
|
|
783
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
784
|
+
}
|
|
785
|
+
for (const v of message.ExceptionMessages) {
|
|
786
|
+
writer.uint32(34).string(v);
|
|
787
|
+
}
|
|
788
|
+
if (message.ExceptionStackTrace !== "") {
|
|
789
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
790
|
+
}
|
|
791
|
+
if (message.Data !== undefined) {
|
|
792
|
+
AdminPasswordStatusResponse.encode(message.Data, writer.uint32(50).fork()).join();
|
|
535
793
|
}
|
|
536
794
|
return writer;
|
|
537
795
|
},
|
|
538
796
|
decode(input, length) {
|
|
539
797
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
540
798
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
541
|
-
const message =
|
|
799
|
+
const message = createBaseQueryResultAdminPasswordStatusResponse();
|
|
542
800
|
while (reader.pos < end) {
|
|
543
801
|
const tag = reader.uint32();
|
|
544
802
|
switch (tag >>> 3) {
|
|
@@ -546,7 +804,42 @@ const IListUser = {
|
|
|
546
804
|
if (tag !== 10) {
|
|
547
805
|
break;
|
|
548
806
|
}
|
|
549
|
-
message.
|
|
807
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
808
|
+
continue;
|
|
809
|
+
}
|
|
810
|
+
case 2: {
|
|
811
|
+
if (tag !== 16) {
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
message.IsAuthorized = reader.bool();
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
case 3: {
|
|
818
|
+
if (tag !== 26) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case 4: {
|
|
825
|
+
if (tag !== 34) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.ExceptionMessages.push(reader.string());
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
case 5: {
|
|
832
|
+
if (tag !== 42) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.ExceptionStackTrace = reader.string();
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
case 6: {
|
|
839
|
+
if (tag !== 50) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
message.Data = AdminPasswordStatusResponse.decode(reader, reader.uint32());
|
|
550
843
|
continue;
|
|
551
844
|
}
|
|
552
845
|
}
|
|
@@ -558,56 +851,138 @@ const IListUser = {
|
|
|
558
851
|
return message;
|
|
559
852
|
},
|
|
560
853
|
fromJSON(object) {
|
|
561
|
-
return {
|
|
854
|
+
return {
|
|
855
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
856
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
857
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
858
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
859
|
+
: [],
|
|
860
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
861
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
862
|
+
: [],
|
|
863
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
864
|
+
Data: isSet(object.Data) ? AdminPasswordStatusResponse.fromJSON(object.Data) : undefined,
|
|
865
|
+
};
|
|
562
866
|
},
|
|
563
867
|
toJSON(message) {
|
|
564
868
|
const obj = {};
|
|
565
|
-
if (message.
|
|
566
|
-
obj.
|
|
869
|
+
if (message.CorrelationId !== undefined) {
|
|
870
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
871
|
+
}
|
|
872
|
+
if (message.IsAuthorized !== false) {
|
|
873
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
874
|
+
}
|
|
875
|
+
if (message.ValidationResults?.length) {
|
|
876
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
877
|
+
}
|
|
878
|
+
if (message.ExceptionMessages?.length) {
|
|
879
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
880
|
+
}
|
|
881
|
+
if (message.ExceptionStackTrace !== "") {
|
|
882
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
883
|
+
}
|
|
884
|
+
if (message.Data !== undefined) {
|
|
885
|
+
obj.Data = AdminPasswordStatusResponse.toJSON(message.Data);
|
|
567
886
|
}
|
|
568
887
|
return obj;
|
|
569
888
|
},
|
|
570
889
|
create(base) {
|
|
571
|
-
return
|
|
890
|
+
return QueryResultAdminPasswordStatusResponse.fromPartial(base ?? {});
|
|
572
891
|
},
|
|
573
892
|
fromPartial(object) {
|
|
574
|
-
const message =
|
|
575
|
-
message.
|
|
893
|
+
const message = createBaseQueryResultAdminPasswordStatusResponse();
|
|
894
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
895
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
896
|
+
: undefined;
|
|
897
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
898
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
899
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
900
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
901
|
+
message.Data = (object.Data !== undefined && object.Data !== null)
|
|
902
|
+
? AdminPasswordStatusResponse.fromPartial(object.Data)
|
|
903
|
+
: undefined;
|
|
576
904
|
return message;
|
|
577
905
|
},
|
|
578
906
|
};
|
|
579
|
-
function
|
|
580
|
-
return {
|
|
907
|
+
function createBaseQueryResultIEnumerableApplicationResponse() {
|
|
908
|
+
return {
|
|
909
|
+
CorrelationId: undefined,
|
|
910
|
+
IsAuthorized: false,
|
|
911
|
+
ValidationResults: [],
|
|
912
|
+
ExceptionMessages: [],
|
|
913
|
+
ExceptionStackTrace: "",
|
|
914
|
+
Data: [],
|
|
915
|
+
};
|
|
581
916
|
}
|
|
582
|
-
const
|
|
917
|
+
const QueryResultIEnumerableApplicationResponse = {
|
|
583
918
|
encode(message, writer = new BinaryWriter()) {
|
|
584
|
-
if (message.
|
|
585
|
-
writer.uint32(
|
|
919
|
+
if (message.CorrelationId !== undefined) {
|
|
920
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
586
921
|
}
|
|
587
|
-
if (message.
|
|
588
|
-
|
|
922
|
+
if (message.IsAuthorized !== false) {
|
|
923
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
924
|
+
}
|
|
925
|
+
for (const v of message.ValidationResults) {
|
|
926
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
927
|
+
}
|
|
928
|
+
for (const v of message.ExceptionMessages) {
|
|
929
|
+
writer.uint32(34).string(v);
|
|
930
|
+
}
|
|
931
|
+
if (message.ExceptionStackTrace !== "") {
|
|
932
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
933
|
+
}
|
|
934
|
+
for (const v of message.Data) {
|
|
935
|
+
ApplicationResponse.encode(v, writer.uint32(50).fork()).join();
|
|
589
936
|
}
|
|
590
937
|
return writer;
|
|
591
938
|
},
|
|
592
939
|
decode(input, length) {
|
|
593
940
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
594
941
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
595
|
-
const message =
|
|
942
|
+
const message = createBaseQueryResultIEnumerableApplicationResponse();
|
|
596
943
|
while (reader.pos < end) {
|
|
597
944
|
const tag = reader.uint32();
|
|
598
945
|
switch (tag >>> 3) {
|
|
599
946
|
case 1: {
|
|
600
|
-
if (tag !==
|
|
947
|
+
if (tag !== 10) {
|
|
601
948
|
break;
|
|
602
949
|
}
|
|
603
|
-
message.
|
|
950
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
604
951
|
continue;
|
|
605
952
|
}
|
|
606
953
|
case 2: {
|
|
607
|
-
if (tag !==
|
|
954
|
+
if (tag !== 16) {
|
|
608
955
|
break;
|
|
609
956
|
}
|
|
610
|
-
message.
|
|
957
|
+
message.IsAuthorized = reader.bool();
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
case 3: {
|
|
961
|
+
if (tag !== 26) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
965
|
+
continue;
|
|
966
|
+
}
|
|
967
|
+
case 4: {
|
|
968
|
+
if (tag !== 34) {
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
971
|
+
message.ExceptionMessages.push(reader.string());
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
case 5: {
|
|
975
|
+
if (tag !== 42) {
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
message.ExceptionStackTrace = reader.string();
|
|
979
|
+
continue;
|
|
980
|
+
}
|
|
981
|
+
case 6: {
|
|
982
|
+
if (tag !== 50) {
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
message.Data.push(ApplicationResponse.decode(reader, reader.uint32()));
|
|
611
986
|
continue;
|
|
612
987
|
}
|
|
613
988
|
}
|
|
@@ -620,46 +995,92 @@ const InitialAdminPasswordSetupStatus = {
|
|
|
620
995
|
},
|
|
621
996
|
fromJSON(object) {
|
|
622
997
|
return {
|
|
623
|
-
|
|
624
|
-
|
|
998
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
999
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1000
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1001
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
1002
|
+
: [],
|
|
1003
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1004
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
1005
|
+
: [],
|
|
1006
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1007
|
+
Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e) => ApplicationResponse.fromJSON(e)) : [],
|
|
625
1008
|
};
|
|
626
1009
|
},
|
|
627
1010
|
toJSON(message) {
|
|
628
1011
|
const obj = {};
|
|
629
|
-
if (message.
|
|
630
|
-
obj.
|
|
1012
|
+
if (message.CorrelationId !== undefined) {
|
|
1013
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
631
1014
|
}
|
|
632
|
-
if (message.
|
|
633
|
-
obj.
|
|
1015
|
+
if (message.IsAuthorized !== false) {
|
|
1016
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1017
|
+
}
|
|
1018
|
+
if (message.ValidationResults?.length) {
|
|
1019
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1020
|
+
}
|
|
1021
|
+
if (message.ExceptionMessages?.length) {
|
|
1022
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1023
|
+
}
|
|
1024
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1025
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1026
|
+
}
|
|
1027
|
+
if (message.Data?.length) {
|
|
1028
|
+
obj.Data = message.Data.map((e) => ApplicationResponse.toJSON(e));
|
|
634
1029
|
}
|
|
635
1030
|
return obj;
|
|
636
1031
|
},
|
|
637
1032
|
create(base) {
|
|
638
|
-
return
|
|
1033
|
+
return QueryResultIEnumerableApplicationResponse.fromPartial(base ?? {});
|
|
639
1034
|
},
|
|
640
1035
|
fromPartial(object) {
|
|
641
|
-
const message =
|
|
642
|
-
message.
|
|
643
|
-
|
|
644
|
-
? Guid.fromPartial(object.AdminUserId)
|
|
1036
|
+
const message = createBaseQueryResultIEnumerableApplicationResponse();
|
|
1037
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1038
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
645
1039
|
: undefined;
|
|
1040
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1041
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1042
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1043
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1044
|
+
message.Data = object.Data?.map((e) => ApplicationResponse.fromPartial(e)) || [];
|
|
646
1045
|
return message;
|
|
647
1046
|
},
|
|
648
1047
|
};
|
|
649
|
-
function
|
|
650
|
-
return {
|
|
1048
|
+
function createBaseQueryResultIEnumerableUserResponse() {
|
|
1049
|
+
return {
|
|
1050
|
+
CorrelationId: undefined,
|
|
1051
|
+
IsAuthorized: false,
|
|
1052
|
+
ValidationResults: [],
|
|
1053
|
+
ExceptionMessages: [],
|
|
1054
|
+
ExceptionStackTrace: "",
|
|
1055
|
+
Data: [],
|
|
1056
|
+
};
|
|
651
1057
|
}
|
|
652
|
-
const
|
|
1058
|
+
const QueryResultIEnumerableUserResponse = {
|
|
653
1059
|
encode(message, writer = new BinaryWriter()) {
|
|
654
|
-
if (message.
|
|
655
|
-
Guid.encode(message.
|
|
1060
|
+
if (message.CorrelationId !== undefined) {
|
|
1061
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1062
|
+
}
|
|
1063
|
+
if (message.IsAuthorized !== false) {
|
|
1064
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1065
|
+
}
|
|
1066
|
+
for (const v of message.ValidationResults) {
|
|
1067
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
1068
|
+
}
|
|
1069
|
+
for (const v of message.ExceptionMessages) {
|
|
1070
|
+
writer.uint32(34).string(v);
|
|
1071
|
+
}
|
|
1072
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1073
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1074
|
+
}
|
|
1075
|
+
for (const v of message.Data) {
|
|
1076
|
+
UserResponse.encode(v, writer.uint32(50).fork()).join();
|
|
656
1077
|
}
|
|
657
1078
|
return writer;
|
|
658
1079
|
},
|
|
659
1080
|
decode(input, length) {
|
|
660
1081
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
661
1082
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
662
|
-
const message =
|
|
1083
|
+
const message = createBaseQueryResultIEnumerableUserResponse();
|
|
663
1084
|
while (reader.pos < end) {
|
|
664
1085
|
const tag = reader.uint32();
|
|
665
1086
|
switch (tag >>> 3) {
|
|
@@ -667,7 +1088,42 @@ const RemoveApplication = {
|
|
|
667
1088
|
if (tag !== 10) {
|
|
668
1089
|
break;
|
|
669
1090
|
}
|
|
670
|
-
message.
|
|
1091
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1092
|
+
continue;
|
|
1093
|
+
}
|
|
1094
|
+
case 2: {
|
|
1095
|
+
if (tag !== 16) {
|
|
1096
|
+
break;
|
|
1097
|
+
}
|
|
1098
|
+
message.IsAuthorized = reader.bool();
|
|
1099
|
+
continue;
|
|
1100
|
+
}
|
|
1101
|
+
case 3: {
|
|
1102
|
+
if (tag !== 26) {
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
case 4: {
|
|
1109
|
+
if (tag !== 34) {
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
message.ExceptionMessages.push(reader.string());
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
1115
|
+
case 5: {
|
|
1116
|
+
if (tag !== 42) {
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
message.ExceptionStackTrace = reader.string();
|
|
1120
|
+
continue;
|
|
1121
|
+
}
|
|
1122
|
+
case 6: {
|
|
1123
|
+
if (tag !== 50) {
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
1126
|
+
message.Data.push(UserResponse.decode(reader, reader.uint32()));
|
|
671
1127
|
continue;
|
|
672
1128
|
}
|
|
673
1129
|
}
|
|
@@ -679,38 +1135,71 @@ const RemoveApplication = {
|
|
|
679
1135
|
return message;
|
|
680
1136
|
},
|
|
681
1137
|
fromJSON(object) {
|
|
682
|
-
return {
|
|
1138
|
+
return {
|
|
1139
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1140
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1141
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1142
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
1143
|
+
: [],
|
|
1144
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1145
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
1146
|
+
: [],
|
|
1147
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1148
|
+
Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e) => UserResponse.fromJSON(e)) : [],
|
|
1149
|
+
};
|
|
683
1150
|
},
|
|
684
1151
|
toJSON(message) {
|
|
685
1152
|
const obj = {};
|
|
686
|
-
if (message.
|
|
687
|
-
obj.
|
|
1153
|
+
if (message.CorrelationId !== undefined) {
|
|
1154
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1155
|
+
}
|
|
1156
|
+
if (message.IsAuthorized !== false) {
|
|
1157
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1158
|
+
}
|
|
1159
|
+
if (message.ValidationResults?.length) {
|
|
1160
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1161
|
+
}
|
|
1162
|
+
if (message.ExceptionMessages?.length) {
|
|
1163
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1164
|
+
}
|
|
1165
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1166
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1167
|
+
}
|
|
1168
|
+
if (message.Data?.length) {
|
|
1169
|
+
obj.Data = message.Data.map((e) => UserResponse.toJSON(e));
|
|
688
1170
|
}
|
|
689
1171
|
return obj;
|
|
690
1172
|
},
|
|
691
1173
|
create(base) {
|
|
692
|
-
return
|
|
1174
|
+
return QueryResultIEnumerableUserResponse.fromPartial(base ?? {});
|
|
693
1175
|
},
|
|
694
1176
|
fromPartial(object) {
|
|
695
|
-
const message =
|
|
696
|
-
message.
|
|
1177
|
+
const message = createBaseQueryResultIEnumerableUserResponse();
|
|
1178
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1179
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1180
|
+
: undefined;
|
|
1181
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1182
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1183
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1184
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1185
|
+
message.Data = object.Data?.map((e) => UserResponse.fromPartial(e)) || [];
|
|
697
1186
|
return message;
|
|
698
1187
|
},
|
|
699
1188
|
};
|
|
700
|
-
function
|
|
701
|
-
return {
|
|
1189
|
+
function createBaseRemoveApplicationRequest() {
|
|
1190
|
+
return { Id: undefined };
|
|
702
1191
|
}
|
|
703
|
-
const
|
|
1192
|
+
const RemoveApplicationRequest = {
|
|
704
1193
|
encode(message, writer = new BinaryWriter()) {
|
|
705
|
-
if (message.
|
|
706
|
-
Guid.encode(message.
|
|
1194
|
+
if (message.Id !== undefined) {
|
|
1195
|
+
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
707
1196
|
}
|
|
708
1197
|
return writer;
|
|
709
1198
|
},
|
|
710
1199
|
decode(input, length) {
|
|
711
1200
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
712
1201
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
713
|
-
const message =
|
|
1202
|
+
const message = createBaseRemoveApplicationRequest();
|
|
714
1203
|
while (reader.pos < end) {
|
|
715
1204
|
const tag = reader.uint32();
|
|
716
1205
|
switch (tag >>> 3) {
|
|
@@ -718,7 +1207,7 @@ const RemoveUser = {
|
|
|
718
1207
|
if (tag !== 10) {
|
|
719
1208
|
break;
|
|
720
1209
|
}
|
|
721
|
-
message.
|
|
1210
|
+
message.Id = Guid.decode(reader, reader.uint32());
|
|
722
1211
|
continue;
|
|
723
1212
|
}
|
|
724
1213
|
}
|
|
@@ -730,30 +1219,28 @@ const RemoveUser = {
|
|
|
730
1219
|
return message;
|
|
731
1220
|
},
|
|
732
1221
|
fromJSON(object) {
|
|
733
|
-
return {
|
|
1222
|
+
return { Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined };
|
|
734
1223
|
},
|
|
735
1224
|
toJSON(message) {
|
|
736
1225
|
const obj = {};
|
|
737
|
-
if (message.
|
|
738
|
-
obj.
|
|
1226
|
+
if (message.Id !== undefined) {
|
|
1227
|
+
obj.Id = Guid.toJSON(message.Id);
|
|
739
1228
|
}
|
|
740
1229
|
return obj;
|
|
741
1230
|
},
|
|
742
1231
|
create(base) {
|
|
743
|
-
return
|
|
1232
|
+
return RemoveApplicationRequest.fromPartial(base ?? {});
|
|
744
1233
|
},
|
|
745
1234
|
fromPartial(object) {
|
|
746
|
-
const message =
|
|
747
|
-
message.
|
|
748
|
-
? Guid.fromPartial(object.UserId)
|
|
749
|
-
: undefined;
|
|
1235
|
+
const message = createBaseRemoveApplicationRequest();
|
|
1236
|
+
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
750
1237
|
return message;
|
|
751
1238
|
},
|
|
752
1239
|
};
|
|
753
|
-
function
|
|
1240
|
+
function createBaseRemoveUserRequest() {
|
|
754
1241
|
return { UserId: undefined };
|
|
755
1242
|
}
|
|
756
|
-
const
|
|
1243
|
+
const RemoveUserRequest = {
|
|
757
1244
|
encode(message, writer = new BinaryWriter()) {
|
|
758
1245
|
if (message.UserId !== undefined) {
|
|
759
1246
|
Guid.encode(message.UserId, writer.uint32(10).fork()).join();
|
|
@@ -763,7 +1250,7 @@ const RequirePasswordChange = {
|
|
|
763
1250
|
decode(input, length) {
|
|
764
1251
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
765
1252
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
766
|
-
const message =
|
|
1253
|
+
const message = createBaseRemoveUserRequest();
|
|
767
1254
|
while (reader.pos < end) {
|
|
768
1255
|
const tag = reader.uint32();
|
|
769
1256
|
switch (tag >>> 3) {
|
|
@@ -793,30 +1280,30 @@ const RequirePasswordChange = {
|
|
|
793
1280
|
return obj;
|
|
794
1281
|
},
|
|
795
1282
|
create(base) {
|
|
796
|
-
return
|
|
1283
|
+
return RemoveUserRequest.fromPartial(base ?? {});
|
|
797
1284
|
},
|
|
798
1285
|
fromPartial(object) {
|
|
799
|
-
const message =
|
|
1286
|
+
const message = createBaseRemoveUserRequest();
|
|
800
1287
|
message.UserId = (object.UserId !== undefined && object.UserId !== null)
|
|
801
1288
|
? Guid.fromPartial(object.UserId)
|
|
802
1289
|
: undefined;
|
|
803
1290
|
return message;
|
|
804
1291
|
},
|
|
805
1292
|
};
|
|
806
|
-
function
|
|
807
|
-
return {
|
|
1293
|
+
function createBaseRequirePasswordChangeRequest() {
|
|
1294
|
+
return { UserId: undefined };
|
|
808
1295
|
}
|
|
809
|
-
const
|
|
1296
|
+
const RequirePasswordChangeRequest = {
|
|
810
1297
|
encode(message, writer = new BinaryWriter()) {
|
|
811
|
-
if (message.
|
|
812
|
-
writer.uint32(10).
|
|
1298
|
+
if (message.UserId !== undefined) {
|
|
1299
|
+
Guid.encode(message.UserId, writer.uint32(10).fork()).join();
|
|
813
1300
|
}
|
|
814
1301
|
return writer;
|
|
815
1302
|
},
|
|
816
1303
|
decode(input, length) {
|
|
817
1304
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
818
1305
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
819
|
-
const message =
|
|
1306
|
+
const message = createBaseRequirePasswordChangeRequest();
|
|
820
1307
|
while (reader.pos < end) {
|
|
821
1308
|
const tag = reader.uint32();
|
|
822
1309
|
switch (tag >>> 3) {
|
|
@@ -824,7 +1311,7 @@ const SerializableDateTimeOffset = {
|
|
|
824
1311
|
if (tag !== 10) {
|
|
825
1312
|
break;
|
|
826
1313
|
}
|
|
827
|
-
message.
|
|
1314
|
+
message.UserId = Guid.decode(reader, reader.uint32());
|
|
828
1315
|
continue;
|
|
829
1316
|
}
|
|
830
1317
|
}
|
|
@@ -836,28 +1323,30 @@ const SerializableDateTimeOffset = {
|
|
|
836
1323
|
return message;
|
|
837
1324
|
},
|
|
838
1325
|
fromJSON(object) {
|
|
839
|
-
return {
|
|
1326
|
+
return { UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined };
|
|
840
1327
|
},
|
|
841
1328
|
toJSON(message) {
|
|
842
1329
|
const obj = {};
|
|
843
|
-
if (message.
|
|
844
|
-
obj.
|
|
1330
|
+
if (message.UserId !== undefined) {
|
|
1331
|
+
obj.UserId = Guid.toJSON(message.UserId);
|
|
845
1332
|
}
|
|
846
1333
|
return obj;
|
|
847
1334
|
},
|
|
848
1335
|
create(base) {
|
|
849
|
-
return
|
|
1336
|
+
return RequirePasswordChangeRequest.fromPartial(base ?? {});
|
|
850
1337
|
},
|
|
851
1338
|
fromPartial(object) {
|
|
852
|
-
const message =
|
|
853
|
-
message.
|
|
1339
|
+
const message = createBaseRequirePasswordChangeRequest();
|
|
1340
|
+
message.UserId = (object.UserId !== undefined && object.UserId !== null)
|
|
1341
|
+
? Guid.fromPartial(object.UserId)
|
|
1342
|
+
: undefined;
|
|
854
1343
|
return message;
|
|
855
1344
|
},
|
|
856
1345
|
};
|
|
857
|
-
function
|
|
1346
|
+
function createBaseSetInitialAdminPasswordRequest() {
|
|
858
1347
|
return { UserId: undefined, Password: "", ConfirmedPassword: "" };
|
|
859
1348
|
}
|
|
860
|
-
const
|
|
1349
|
+
const SetInitialAdminPasswordRequest = {
|
|
861
1350
|
encode(message, writer = new BinaryWriter()) {
|
|
862
1351
|
if (message.UserId !== undefined) {
|
|
863
1352
|
Guid.encode(message.UserId, writer.uint32(10).fork()).join();
|
|
@@ -873,7 +1362,7 @@ const SetInitialAdminPassword = {
|
|
|
873
1362
|
decode(input, length) {
|
|
874
1363
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
875
1364
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
876
|
-
const message =
|
|
1365
|
+
const message = createBaseSetInitialAdminPasswordRequest();
|
|
877
1366
|
while (reader.pos < end) {
|
|
878
1367
|
const tag = reader.uint32();
|
|
879
1368
|
switch (tag >>> 3) {
|
|
@@ -927,10 +1416,10 @@ const SetInitialAdminPassword = {
|
|
|
927
1416
|
return obj;
|
|
928
1417
|
},
|
|
929
1418
|
create(base) {
|
|
930
|
-
return
|
|
1419
|
+
return SetInitialAdminPasswordRequest.fromPartial(base ?? {});
|
|
931
1420
|
},
|
|
932
1421
|
fromPartial(object) {
|
|
933
|
-
const message =
|
|
1422
|
+
const message = createBaseSetInitialAdminPasswordRequest();
|
|
934
1423
|
message.UserId = (object.UserId !== undefined && object.UserId !== null)
|
|
935
1424
|
? Guid.fromPartial(object.UserId)
|
|
936
1425
|
: undefined;
|
|
@@ -939,7 +1428,7 @@ const SetInitialAdminPassword = {
|
|
|
939
1428
|
return message;
|
|
940
1429
|
},
|
|
941
1430
|
};
|
|
942
|
-
function
|
|
1431
|
+
function createBaseUserResponse() {
|
|
943
1432
|
return {
|
|
944
1433
|
Id: undefined,
|
|
945
1434
|
Username: "",
|
|
@@ -950,7 +1439,7 @@ function createBaseUser() {
|
|
|
950
1439
|
HasLoggedIn: false,
|
|
951
1440
|
};
|
|
952
1441
|
}
|
|
953
|
-
const
|
|
1442
|
+
const UserResponse = {
|
|
954
1443
|
encode(message, writer = new BinaryWriter()) {
|
|
955
1444
|
if (message.Id !== undefined) {
|
|
956
1445
|
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
@@ -965,10 +1454,10 @@ const User = {
|
|
|
965
1454
|
writer.uint32(32).bool(message.IsActive);
|
|
966
1455
|
}
|
|
967
1456
|
if (message.CreatedAt !== undefined) {
|
|
968
|
-
|
|
1457
|
+
DateTimeOffset.encode(message.CreatedAt, writer.uint32(42).fork()).join();
|
|
969
1458
|
}
|
|
970
1459
|
if (message.LastModifiedAt !== undefined) {
|
|
971
|
-
|
|
1460
|
+
DateTimeOffset.encode(message.LastModifiedAt, writer.uint32(50).fork()).join();
|
|
972
1461
|
}
|
|
973
1462
|
if (message.HasLoggedIn !== false) {
|
|
974
1463
|
writer.uint32(56).bool(message.HasLoggedIn);
|
|
@@ -978,7 +1467,7 @@ const User = {
|
|
|
978
1467
|
decode(input, length) {
|
|
979
1468
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
980
1469
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
981
|
-
const message =
|
|
1470
|
+
const message = createBaseUserResponse();
|
|
982
1471
|
while (reader.pos < end) {
|
|
983
1472
|
const tag = reader.uint32();
|
|
984
1473
|
switch (tag >>> 3) {
|
|
@@ -1014,14 +1503,14 @@ const User = {
|
|
|
1014
1503
|
if (tag !== 42) {
|
|
1015
1504
|
break;
|
|
1016
1505
|
}
|
|
1017
|
-
message.CreatedAt =
|
|
1506
|
+
message.CreatedAt = DateTimeOffset.decode(reader, reader.uint32());
|
|
1018
1507
|
continue;
|
|
1019
1508
|
}
|
|
1020
1509
|
case 6: {
|
|
1021
1510
|
if (tag !== 50) {
|
|
1022
1511
|
break;
|
|
1023
1512
|
}
|
|
1024
|
-
message.LastModifiedAt =
|
|
1513
|
+
message.LastModifiedAt = DateTimeOffset.decode(reader, reader.uint32());
|
|
1025
1514
|
continue;
|
|
1026
1515
|
}
|
|
1027
1516
|
case 7: {
|
|
@@ -1045,10 +1534,8 @@ const User = {
|
|
|
1045
1534
|
Username: isSet(object.Username) ? globalThis.String(object.Username) : "",
|
|
1046
1535
|
Email: isSet(object.Email) ? globalThis.String(object.Email) : "",
|
|
1047
1536
|
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,
|
|
1537
|
+
CreatedAt: isSet(object.CreatedAt) ? DateTimeOffset.fromJSON(object.CreatedAt) : undefined,
|
|
1538
|
+
LastModifiedAt: isSet(object.LastModifiedAt) ? DateTimeOffset.fromJSON(object.LastModifiedAt) : undefined,
|
|
1052
1539
|
HasLoggedIn: isSet(object.HasLoggedIn) ? globalThis.Boolean(object.HasLoggedIn) : false,
|
|
1053
1540
|
};
|
|
1054
1541
|
},
|
|
@@ -1067,10 +1554,10 @@ const User = {
|
|
|
1067
1554
|
obj.IsActive = message.IsActive;
|
|
1068
1555
|
}
|
|
1069
1556
|
if (message.CreatedAt !== undefined) {
|
|
1070
|
-
obj.CreatedAt =
|
|
1557
|
+
obj.CreatedAt = DateTimeOffset.toJSON(message.CreatedAt);
|
|
1071
1558
|
}
|
|
1072
1559
|
if (message.LastModifiedAt !== undefined) {
|
|
1073
|
-
obj.LastModifiedAt =
|
|
1560
|
+
obj.LastModifiedAt = DateTimeOffset.toJSON(message.LastModifiedAt);
|
|
1074
1561
|
}
|
|
1075
1562
|
if (message.HasLoggedIn !== false) {
|
|
1076
1563
|
obj.HasLoggedIn = message.HasLoggedIn;
|
|
@@ -1078,65 +1565,140 @@ const User = {
|
|
|
1078
1565
|
return obj;
|
|
1079
1566
|
},
|
|
1080
1567
|
create(base) {
|
|
1081
|
-
return
|
|
1568
|
+
return UserResponse.fromPartial(base ?? {});
|
|
1082
1569
|
},
|
|
1083
1570
|
fromPartial(object) {
|
|
1084
|
-
const message =
|
|
1571
|
+
const message = createBaseUserResponse();
|
|
1085
1572
|
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
1086
1573
|
message.Username = object.Username ?? "";
|
|
1087
1574
|
message.Email = object.Email ?? "";
|
|
1088
1575
|
message.IsActive = object.IsActive ?? false;
|
|
1089
1576
|
message.CreatedAt = (object.CreatedAt !== undefined && object.CreatedAt !== null)
|
|
1090
|
-
?
|
|
1577
|
+
? DateTimeOffset.fromPartial(object.CreatedAt)
|
|
1091
1578
|
: undefined;
|
|
1092
1579
|
message.LastModifiedAt = (object.LastModifiedAt !== undefined && object.LastModifiedAt !== null)
|
|
1093
|
-
?
|
|
1580
|
+
? DateTimeOffset.fromPartial(object.LastModifiedAt)
|
|
1094
1581
|
: undefined;
|
|
1095
1582
|
message.HasLoggedIn = object.HasLoggedIn ?? false;
|
|
1096
1583
|
return message;
|
|
1097
1584
|
},
|
|
1098
1585
|
};
|
|
1586
|
+
function createBaseValidationResult() {
|
|
1587
|
+
return { Severity: 0, Message: "", Members: [] };
|
|
1588
|
+
}
|
|
1589
|
+
const ValidationResult = {
|
|
1590
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1591
|
+
if (message.Severity !== 0) {
|
|
1592
|
+
writer.uint32(8).int32(message.Severity);
|
|
1593
|
+
}
|
|
1594
|
+
if (message.Message !== "") {
|
|
1595
|
+
writer.uint32(18).string(message.Message);
|
|
1596
|
+
}
|
|
1597
|
+
for (const v of message.Members) {
|
|
1598
|
+
writer.uint32(26).string(v);
|
|
1599
|
+
}
|
|
1600
|
+
return writer;
|
|
1601
|
+
},
|
|
1602
|
+
decode(input, length) {
|
|
1603
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1604
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1605
|
+
const message = createBaseValidationResult();
|
|
1606
|
+
while (reader.pos < end) {
|
|
1607
|
+
const tag = reader.uint32();
|
|
1608
|
+
switch (tag >>> 3) {
|
|
1609
|
+
case 1: {
|
|
1610
|
+
if (tag !== 8) {
|
|
1611
|
+
break;
|
|
1612
|
+
}
|
|
1613
|
+
message.Severity = reader.int32();
|
|
1614
|
+
continue;
|
|
1615
|
+
}
|
|
1616
|
+
case 2: {
|
|
1617
|
+
if (tag !== 18) {
|
|
1618
|
+
break;
|
|
1619
|
+
}
|
|
1620
|
+
message.Message = reader.string();
|
|
1621
|
+
continue;
|
|
1622
|
+
}
|
|
1623
|
+
case 3: {
|
|
1624
|
+
if (tag !== 26) {
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
message.Members.push(reader.string());
|
|
1628
|
+
continue;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1632
|
+
break;
|
|
1633
|
+
}
|
|
1634
|
+
reader.skip(tag & 7);
|
|
1635
|
+
}
|
|
1636
|
+
return message;
|
|
1637
|
+
},
|
|
1638
|
+
fromJSON(object) {
|
|
1639
|
+
return {
|
|
1640
|
+
Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
|
|
1641
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
1642
|
+
Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e) => globalThis.String(e)) : [],
|
|
1643
|
+
};
|
|
1644
|
+
},
|
|
1645
|
+
toJSON(message) {
|
|
1646
|
+
const obj = {};
|
|
1647
|
+
if (message.Severity !== 0) {
|
|
1648
|
+
obj.Severity = validationResultSeverityToJSON(message.Severity);
|
|
1649
|
+
}
|
|
1650
|
+
if (message.Message !== "") {
|
|
1651
|
+
obj.Message = message.Message;
|
|
1652
|
+
}
|
|
1653
|
+
if (message.Members?.length) {
|
|
1654
|
+
obj.Members = message.Members;
|
|
1655
|
+
}
|
|
1656
|
+
return obj;
|
|
1657
|
+
},
|
|
1658
|
+
create(base) {
|
|
1659
|
+
return ValidationResult.fromPartial(base ?? {});
|
|
1660
|
+
},
|
|
1661
|
+
fromPartial(object) {
|
|
1662
|
+
const message = createBaseValidationResult();
|
|
1663
|
+
message.Severity = object.Severity ?? 0;
|
|
1664
|
+
message.Message = object.Message ?? "";
|
|
1665
|
+
message.Members = object.Members?.map((e) => e) || [];
|
|
1666
|
+
return message;
|
|
1667
|
+
},
|
|
1668
|
+
};
|
|
1099
1669
|
const ApplicationsDefinition = {
|
|
1100
1670
|
name: "Applications",
|
|
1101
1671
|
fullName: "Cratis.Chronicle.Contracts.Security.Applications",
|
|
1102
1672
|
methods: {
|
|
1103
|
-
|
|
1104
|
-
name: "
|
|
1105
|
-
requestType:
|
|
1673
|
+
addApplication: {
|
|
1674
|
+
name: "AddApplication",
|
|
1675
|
+
requestType: AddApplicationRequest,
|
|
1106
1676
|
requestStream: false,
|
|
1107
|
-
responseType:
|
|
1677
|
+
responseType: CommandResult,
|
|
1108
1678
|
responseStream: false,
|
|
1109
1679
|
options: {},
|
|
1110
1680
|
},
|
|
1111
|
-
|
|
1112
|
-
name: "
|
|
1113
|
-
requestType: ChangeApplicationSecret,
|
|
1114
|
-
requestStream: false,
|
|
1115
|
-
responseType: Empty,
|
|
1116
|
-
responseStream: false,
|
|
1117
|
-
options: {},
|
|
1118
|
-
},
|
|
1119
|
-
getAll: {
|
|
1120
|
-
name: "GetAll",
|
|
1681
|
+
allApplications: {
|
|
1682
|
+
name: "AllApplications",
|
|
1121
1683
|
requestType: Empty,
|
|
1122
1684
|
requestStream: false,
|
|
1123
|
-
responseType:
|
|
1124
|
-
responseStream:
|
|
1685
|
+
responseType: QueryResultIEnumerableApplicationResponse,
|
|
1686
|
+
responseStream: true,
|
|
1125
1687
|
options: {},
|
|
1126
1688
|
},
|
|
1127
|
-
|
|
1128
|
-
name: "
|
|
1129
|
-
requestType:
|
|
1689
|
+
changeApplicationSecret: {
|
|
1690
|
+
name: "ChangeApplicationSecret",
|
|
1691
|
+
requestType: ChangeApplicationSecretRequest,
|
|
1130
1692
|
requestStream: false,
|
|
1131
|
-
responseType:
|
|
1132
|
-
responseStream:
|
|
1693
|
+
responseType: CommandResult,
|
|
1694
|
+
responseStream: false,
|
|
1133
1695
|
options: {},
|
|
1134
1696
|
},
|
|
1135
|
-
|
|
1136
|
-
name: "
|
|
1137
|
-
requestType:
|
|
1697
|
+
removeApplication: {
|
|
1698
|
+
name: "RemoveApplication",
|
|
1699
|
+
requestType: RemoveApplicationRequest,
|
|
1138
1700
|
requestStream: false,
|
|
1139
|
-
responseType:
|
|
1701
|
+
responseType: CommandResult,
|
|
1140
1702
|
responseStream: false,
|
|
1141
1703
|
options: {},
|
|
1142
1704
|
},
|
|
@@ -1146,67 +1708,59 @@ const UsersDefinition = {
|
|
|
1146
1708
|
name: "Users",
|
|
1147
1709
|
fullName: "Cratis.Chronicle.Contracts.Security.Users",
|
|
1148
1710
|
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,
|
|
1711
|
+
addUser: {
|
|
1712
|
+
name: "AddUser",
|
|
1713
|
+
requestType: AddUserRequest,
|
|
1160
1714
|
requestStream: false,
|
|
1161
|
-
responseType:
|
|
1715
|
+
responseType: CommandResult,
|
|
1162
1716
|
responseStream: false,
|
|
1163
1717
|
options: {},
|
|
1164
1718
|
},
|
|
1165
|
-
|
|
1166
|
-
name: "
|
|
1719
|
+
allUsers: {
|
|
1720
|
+
name: "AllUsers",
|
|
1167
1721
|
requestType: Empty,
|
|
1168
1722
|
requestStream: false,
|
|
1169
|
-
responseType:
|
|
1170
|
-
responseStream:
|
|
1723
|
+
responseType: QueryResultIEnumerableUserResponse,
|
|
1724
|
+
responseStream: true,
|
|
1171
1725
|
options: {},
|
|
1172
1726
|
},
|
|
1173
|
-
|
|
1174
|
-
name: "
|
|
1175
|
-
requestType:
|
|
1727
|
+
changeUserPassword: {
|
|
1728
|
+
name: "ChangeUserPassword",
|
|
1729
|
+
requestType: ChangeUserPasswordRequest,
|
|
1176
1730
|
requestStream: false,
|
|
1177
|
-
responseType:
|
|
1731
|
+
responseType: CommandResult,
|
|
1178
1732
|
responseStream: false,
|
|
1179
1733
|
options: {},
|
|
1180
1734
|
},
|
|
1181
|
-
|
|
1182
|
-
name: "
|
|
1735
|
+
getStatus: {
|
|
1736
|
+
name: "GetStatus",
|
|
1183
1737
|
requestType: Empty,
|
|
1184
1738
|
requestStream: false,
|
|
1185
|
-
responseType:
|
|
1186
|
-
responseStream:
|
|
1739
|
+
responseType: QueryResultAdminPasswordStatusResponse,
|
|
1740
|
+
responseStream: false,
|
|
1187
1741
|
options: {},
|
|
1188
1742
|
},
|
|
1189
|
-
|
|
1190
|
-
name: "
|
|
1191
|
-
requestType:
|
|
1743
|
+
removeUser: {
|
|
1744
|
+
name: "RemoveUser",
|
|
1745
|
+
requestType: RemoveUserRequest,
|
|
1192
1746
|
requestStream: false,
|
|
1193
|
-
responseType:
|
|
1747
|
+
responseType: CommandResult,
|
|
1194
1748
|
responseStream: false,
|
|
1195
1749
|
options: {},
|
|
1196
1750
|
},
|
|
1197
1751
|
requirePasswordChange: {
|
|
1198
1752
|
name: "RequirePasswordChange",
|
|
1199
|
-
requestType:
|
|
1753
|
+
requestType: RequirePasswordChangeRequest,
|
|
1200
1754
|
requestStream: false,
|
|
1201
|
-
responseType:
|
|
1755
|
+
responseType: CommandResult,
|
|
1202
1756
|
responseStream: false,
|
|
1203
1757
|
options: {},
|
|
1204
1758
|
},
|
|
1205
1759
|
setInitialAdminPassword: {
|
|
1206
1760
|
name: "SetInitialAdminPassword",
|
|
1207
|
-
requestType:
|
|
1761
|
+
requestType: SetInitialAdminPasswordRequest,
|
|
1208
1762
|
requestStream: false,
|
|
1209
|
-
responseType:
|
|
1763
|
+
responseType: CommandResult,
|
|
1210
1764
|
responseStream: false,
|
|
1211
1765
|
options: {},
|
|
1212
1766
|
},
|
|
@@ -1216,5 +1770,5 @@ function isSet(value) {
|
|
|
1216
1770
|
return value !== null && value !== undefined;
|
|
1217
1771
|
}
|
|
1218
1772
|
|
|
1219
|
-
export {
|
|
1773
|
+
export { AddApplicationRequest, AddUserRequest, AdminPasswordStatusResponse, ApplicationResponse, ApplicationsDefinition, ChangeApplicationSecretRequest, ChangeUserPasswordRequest, CommandResult, DateTimeOffset, QueryResultAdminPasswordStatusResponse, QueryResultIEnumerableApplicationResponse, QueryResultIEnumerableUserResponse, RemoveApplicationRequest, RemoveUserRequest, RequirePasswordChangeRequest, SetInitialAdminPasswordRequest, UserResponse, UsersDefinition, ValidationResult, ValidationResultSeverity, validationResultSeverityFromJSON, validationResultSeverityToJSON };
|
|
1220
1774
|
//# sourceMappingURL=security.js.map
|