@cratis/chronicle.contracts 19.136.1 → 19.137.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 +28 -0
- package/dist/cjs/generated/compliance.d.ts.map +1 -1
- package/dist/cjs/generated/compliance.js +148 -0
- package/dist/cjs/generated/compliance.js.map +1 -1
- package/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/security.d.ts +123 -0
- package/dist/cjs/generated/security.d.ts.map +1 -1
- package/dist/cjs/generated/security.js +1336 -120
- package/dist/cjs/generated/security.js.map +1 -1
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/compliance.d.ts +28 -0
- package/dist/esm/generated/compliance.d.ts.map +1 -1
- package/dist/esm/generated/compliance.js +147 -1
- package/dist/esm/generated/compliance.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/security.d.ts +123 -0
- package/dist/esm/generated/security.d.ts.map +1 -1
- package/dist/esm/generated/security.js +1325 -121
- package/dist/esm/generated/security.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/generated/compliance.d.ts +28 -0
- package/dist/generated/compliance.d.ts.map +1 -1
- package/dist/generated/compliance.js +146 -0
- package/dist/generated/compliance.js.map +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/security.d.ts +123 -0
- package/dist/generated/security.d.ts.map +1 -1
- package/dist/generated/security.js +1324 -120
- package/dist/generated/security.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/compliance.ts +182 -0
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +2 -2
- package/generated/security.ts +1488 -75
- package/package.json +1 -1
package/generated/security.ts
CHANGED
|
@@ -14,6 +14,84 @@ export const protobufPackage = "Cratis.Chronicle.Contracts.Security";
|
|
|
14
14
|
|
|
15
15
|
export const protobufFileName = "security.proto";
|
|
16
16
|
|
|
17
|
+
export enum EventStoreAccessGrantSource {
|
|
18
|
+
Configuration = 0,
|
|
19
|
+
Command = 1,
|
|
20
|
+
UNRECOGNIZED = -1,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function eventStoreAccessGrantSourceFromJSON(object: any): EventStoreAccessGrantSource {
|
|
24
|
+
switch (object) {
|
|
25
|
+
case 0:
|
|
26
|
+
case "Configuration":
|
|
27
|
+
return EventStoreAccessGrantSource.Configuration;
|
|
28
|
+
case 1:
|
|
29
|
+
case "Command":
|
|
30
|
+
return EventStoreAccessGrantSource.Command;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return EventStoreAccessGrantSource.UNRECOGNIZED;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function eventStoreAccessGrantSourceToJSON(object: EventStoreAccessGrantSource): string {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case EventStoreAccessGrantSource.Configuration:
|
|
41
|
+
return "Configuration";
|
|
42
|
+
case EventStoreAccessGrantSource.Command:
|
|
43
|
+
return "Command";
|
|
44
|
+
case EventStoreAccessGrantSource.UNRECOGNIZED:
|
|
45
|
+
default:
|
|
46
|
+
return "UNRECOGNIZED";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum StoreAccess {
|
|
51
|
+
None = 0,
|
|
52
|
+
Read = 1,
|
|
53
|
+
Append = 2,
|
|
54
|
+
Manage = 4,
|
|
55
|
+
UNRECOGNIZED = -1,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function storeAccessFromJSON(object: any): StoreAccess {
|
|
59
|
+
switch (object) {
|
|
60
|
+
case 0:
|
|
61
|
+
case "None":
|
|
62
|
+
return StoreAccess.None;
|
|
63
|
+
case 1:
|
|
64
|
+
case "Read":
|
|
65
|
+
return StoreAccess.Read;
|
|
66
|
+
case 2:
|
|
67
|
+
case "Append":
|
|
68
|
+
return StoreAccess.Append;
|
|
69
|
+
case 4:
|
|
70
|
+
case "Manage":
|
|
71
|
+
return StoreAccess.Manage;
|
|
72
|
+
case -1:
|
|
73
|
+
case "UNRECOGNIZED":
|
|
74
|
+
default:
|
|
75
|
+
return StoreAccess.UNRECOGNIZED;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function storeAccessToJSON(object: StoreAccess): string {
|
|
80
|
+
switch (object) {
|
|
81
|
+
case StoreAccess.None:
|
|
82
|
+
return "None";
|
|
83
|
+
case StoreAccess.Read:
|
|
84
|
+
return "Read";
|
|
85
|
+
case StoreAccess.Append:
|
|
86
|
+
return "Append";
|
|
87
|
+
case StoreAccess.Manage:
|
|
88
|
+
return "Manage";
|
|
89
|
+
case StoreAccess.UNRECOGNIZED:
|
|
90
|
+
default:
|
|
91
|
+
return "UNRECOGNIZED";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
17
95
|
export enum ValidationResultSeverity {
|
|
18
96
|
Unknown = 0,
|
|
19
97
|
Information = 1,
|
|
@@ -119,11 +197,54 @@ export interface CommandResult {
|
|
|
119
197
|
AuthorizationFailureReason: string;
|
|
120
198
|
}
|
|
121
199
|
|
|
200
|
+
export interface CommandResultBoolean {
|
|
201
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
202
|
+
CorrelationId: Guid | undefined;
|
|
203
|
+
IsAuthorized: boolean;
|
|
204
|
+
ValidationResults: ValidationResult[];
|
|
205
|
+
ExceptionMessages: string[];
|
|
206
|
+
ExceptionStackTrace: string;
|
|
207
|
+
AuthorizationFailureReason: string;
|
|
208
|
+
Response: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface EventStoreAccessGrantsResponse {
|
|
212
|
+
EventStore: string;
|
|
213
|
+
Namespace: string;
|
|
214
|
+
Access: StoreAccess;
|
|
215
|
+
Source: EventStoreAccessGrantSource;
|
|
216
|
+
Holder: EventStoreAccessHolder | undefined;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface EventStoreAccessHolder {
|
|
220
|
+
Issuer: string;
|
|
221
|
+
Subject: string;
|
|
222
|
+
IsClient: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface EventStoreAccessPreflightResponse {
|
|
226
|
+
EventStore: string;
|
|
227
|
+
Namespace: string;
|
|
228
|
+
Access: StoreAccess;
|
|
229
|
+
FirstSeen: SerializableDateTimeOffset | undefined;
|
|
230
|
+
LastSeen: SerializableDateTimeOffset | undefined;
|
|
231
|
+
Count: bigint;
|
|
232
|
+
Holder: EventStoreAccessHolder | undefined;
|
|
233
|
+
}
|
|
234
|
+
|
|
122
235
|
export interface GrantAdministratorRequest {
|
|
123
236
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
124
237
|
UserId: Guid | undefined;
|
|
125
238
|
}
|
|
126
239
|
|
|
240
|
+
export interface GrantEventStoreAccessRequest {
|
|
241
|
+
EventStore: string;
|
|
242
|
+
Namespace: string;
|
|
243
|
+
Access: StoreAccess;
|
|
244
|
+
Holder: EventStoreAccessHolder | undefined;
|
|
245
|
+
AllEventStores: boolean;
|
|
246
|
+
}
|
|
247
|
+
|
|
127
248
|
export interface QueryResultAdminPasswordStatusResponse {
|
|
128
249
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
129
250
|
CorrelationId: Guid | undefined;
|
|
@@ -154,6 +275,26 @@ export interface QueryResultIEnumerableApplicationResponse {
|
|
|
154
275
|
Data: ApplicationResponse[];
|
|
155
276
|
}
|
|
156
277
|
|
|
278
|
+
export interface QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
279
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
280
|
+
CorrelationId: Guid | undefined;
|
|
281
|
+
IsAuthorized: boolean;
|
|
282
|
+
ValidationResults: ValidationResult[];
|
|
283
|
+
ExceptionMessages: string[];
|
|
284
|
+
ExceptionStackTrace: string;
|
|
285
|
+
Data: EventStoreAccessGrantsResponse[];
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
289
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
290
|
+
CorrelationId: Guid | undefined;
|
|
291
|
+
IsAuthorized: boolean;
|
|
292
|
+
ValidationResults: ValidationResult[];
|
|
293
|
+
ExceptionMessages: string[];
|
|
294
|
+
ExceptionStackTrace: string;
|
|
295
|
+
Data: EventStoreAccessPreflightResponse[];
|
|
296
|
+
}
|
|
297
|
+
|
|
157
298
|
export interface QueryResultIEnumerableUserResponse {
|
|
158
299
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
159
300
|
CorrelationId: Guid | undefined;
|
|
@@ -185,6 +326,13 @@ export interface RevokeAdministratorRequest {
|
|
|
185
326
|
Reason: string;
|
|
186
327
|
}
|
|
187
328
|
|
|
329
|
+
export interface RevokeEventStoreAccessRequest {
|
|
330
|
+
EventStore: string;
|
|
331
|
+
Namespace: string;
|
|
332
|
+
Holder: EventStoreAccessHolder | undefined;
|
|
333
|
+
AllEventStores: boolean;
|
|
334
|
+
}
|
|
335
|
+
|
|
188
336
|
/** Represents a DateTimeOffset value as an ISO 8601 string (e.g., "2024-01-15T12:30:00.0000000+02:00"). */
|
|
189
337
|
export interface SerializableDateTimeOffset {
|
|
190
338
|
Value: string;
|
|
@@ -1133,19 +1281,45 @@ export const CommandResult: MessageFns<CommandResult> = {
|
|
|
1133
1281
|
},
|
|
1134
1282
|
};
|
|
1135
1283
|
|
|
1136
|
-
function
|
|
1137
|
-
return {
|
|
1284
|
+
function createBaseCommandResultBoolean(): CommandResultBoolean {
|
|
1285
|
+
return {
|
|
1286
|
+
CorrelationId: undefined,
|
|
1287
|
+
IsAuthorized: false,
|
|
1288
|
+
ValidationResults: [],
|
|
1289
|
+
ExceptionMessages: [],
|
|
1290
|
+
ExceptionStackTrace: "",
|
|
1291
|
+
AuthorizationFailureReason: "",
|
|
1292
|
+
Response: false,
|
|
1293
|
+
};
|
|
1138
1294
|
}
|
|
1139
1295
|
|
|
1140
|
-
export const
|
|
1141
|
-
encode(message:
|
|
1142
|
-
if (message.
|
|
1143
|
-
Guid.encode(message.
|
|
1296
|
+
export const CommandResultBoolean: MessageFns<CommandResultBoolean> = {
|
|
1297
|
+
encode(message: CommandResultBoolean, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1298
|
+
if (message.CorrelationId !== undefined) {
|
|
1299
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1300
|
+
}
|
|
1301
|
+
if (message.IsAuthorized !== false) {
|
|
1302
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1303
|
+
}
|
|
1304
|
+
for (const v of message.ValidationResults) {
|
|
1305
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1306
|
+
}
|
|
1307
|
+
for (const v of message.ExceptionMessages) {
|
|
1308
|
+
writer.uint32(34).string(v!);
|
|
1309
|
+
}
|
|
1310
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1311
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1312
|
+
}
|
|
1313
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
1314
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
1315
|
+
}
|
|
1316
|
+
if (message.Response !== false) {
|
|
1317
|
+
writer.uint32(56).bool(message.Response);
|
|
1144
1318
|
}
|
|
1145
1319
|
return writer;
|
|
1146
1320
|
},
|
|
1147
1321
|
|
|
1148
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1322
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResultBoolean {
|
|
1149
1323
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1150
1324
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1151
1325
|
if (previousRecursionDepth >= 100) {
|
|
@@ -1154,7 +1328,7 @@ export const GrantAdministratorRequest: MessageFns<GrantAdministratorRequest> =
|
|
|
1154
1328
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1155
1329
|
try {
|
|
1156
1330
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1157
|
-
const message =
|
|
1331
|
+
const message = createBaseCommandResultBoolean();
|
|
1158
1332
|
while (reader.pos < end) {
|
|
1159
1333
|
const tag = reader.uint32();
|
|
1160
1334
|
switch (tag >>> 3) {
|
|
@@ -1163,7 +1337,1013 @@ export const GrantAdministratorRequest: MessageFns<GrantAdministratorRequest> =
|
|
|
1163
1337
|
break;
|
|
1164
1338
|
}
|
|
1165
1339
|
|
|
1166
|
-
message.
|
|
1340
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1341
|
+
continue;
|
|
1342
|
+
}
|
|
1343
|
+
case 2: {
|
|
1344
|
+
if (tag !== 16) {
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
message.IsAuthorized = reader.bool();
|
|
1349
|
+
continue;
|
|
1350
|
+
}
|
|
1351
|
+
case 3: {
|
|
1352
|
+
if (tag !== 26) {
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1357
|
+
continue;
|
|
1358
|
+
}
|
|
1359
|
+
case 4: {
|
|
1360
|
+
if (tag !== 34) {
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
message.ExceptionMessages.push(reader.string());
|
|
1365
|
+
continue;
|
|
1366
|
+
}
|
|
1367
|
+
case 5: {
|
|
1368
|
+
if (tag !== 42) {
|
|
1369
|
+
break;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
message.ExceptionStackTrace = reader.string();
|
|
1373
|
+
continue;
|
|
1374
|
+
}
|
|
1375
|
+
case 6: {
|
|
1376
|
+
if (tag !== 50) {
|
|
1377
|
+
break;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
message.AuthorizationFailureReason = reader.string();
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
case 7: {
|
|
1384
|
+
if (tag !== 56) {
|
|
1385
|
+
break;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
message.Response = reader.bool();
|
|
1389
|
+
continue;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1393
|
+
break;
|
|
1394
|
+
}
|
|
1395
|
+
reader.skip(tag & 7);
|
|
1396
|
+
}
|
|
1397
|
+
return message;
|
|
1398
|
+
} finally {
|
|
1399
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
|
|
1403
|
+
fromJSON(object: any): CommandResultBoolean {
|
|
1404
|
+
return {
|
|
1405
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1406
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1407
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1408
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1409
|
+
: [],
|
|
1410
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1411
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1412
|
+
: [],
|
|
1413
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1414
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
1415
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
1416
|
+
: "",
|
|
1417
|
+
Response: isSet(object.Response) ? globalThis.Boolean(object.Response) : false,
|
|
1418
|
+
};
|
|
1419
|
+
},
|
|
1420
|
+
|
|
1421
|
+
toJSON(message: CommandResultBoolean): unknown {
|
|
1422
|
+
const obj: any = {};
|
|
1423
|
+
if (message.CorrelationId !== undefined) {
|
|
1424
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1425
|
+
}
|
|
1426
|
+
if (message.IsAuthorized !== false) {
|
|
1427
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1428
|
+
}
|
|
1429
|
+
if (message.ValidationResults?.length) {
|
|
1430
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1431
|
+
}
|
|
1432
|
+
if (message.ExceptionMessages?.length) {
|
|
1433
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1434
|
+
}
|
|
1435
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1436
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1437
|
+
}
|
|
1438
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
1439
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
1440
|
+
}
|
|
1441
|
+
if (message.Response !== false) {
|
|
1442
|
+
obj.Response = message.Response;
|
|
1443
|
+
}
|
|
1444
|
+
return obj;
|
|
1445
|
+
},
|
|
1446
|
+
|
|
1447
|
+
create(base?: DeepPartial<CommandResultBoolean>): CommandResultBoolean {
|
|
1448
|
+
return CommandResultBoolean.fromPartial(base ?? {});
|
|
1449
|
+
},
|
|
1450
|
+
fromPartial(object: DeepPartial<CommandResultBoolean>): CommandResultBoolean {
|
|
1451
|
+
const message = createBaseCommandResultBoolean();
|
|
1452
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1453
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1454
|
+
: undefined;
|
|
1455
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1456
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1457
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1458
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1459
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
1460
|
+
message.Response = object.Response ?? false;
|
|
1461
|
+
return message;
|
|
1462
|
+
},
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
function createBaseEventStoreAccessGrantsResponse(): EventStoreAccessGrantsResponse {
|
|
1466
|
+
return { EventStore: "", Namespace: "", Access: 0, Source: 0, Holder: undefined };
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
export const EventStoreAccessGrantsResponse: MessageFns<EventStoreAccessGrantsResponse> = {
|
|
1470
|
+
encode(message: EventStoreAccessGrantsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1471
|
+
if (message.EventStore !== "") {
|
|
1472
|
+
writer.uint32(34).string(message.EventStore);
|
|
1473
|
+
}
|
|
1474
|
+
if (message.Namespace !== "") {
|
|
1475
|
+
writer.uint32(42).string(message.Namespace);
|
|
1476
|
+
}
|
|
1477
|
+
if (message.Access !== 0) {
|
|
1478
|
+
writer.uint32(48).int32(message.Access);
|
|
1479
|
+
}
|
|
1480
|
+
if (message.Source !== 0) {
|
|
1481
|
+
writer.uint32(56).int32(message.Source);
|
|
1482
|
+
}
|
|
1483
|
+
if (message.Holder !== undefined) {
|
|
1484
|
+
EventStoreAccessHolder.encode(message.Holder, writer.uint32(66).fork()).join();
|
|
1485
|
+
}
|
|
1486
|
+
return writer;
|
|
1487
|
+
},
|
|
1488
|
+
|
|
1489
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventStoreAccessGrantsResponse {
|
|
1490
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1491
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1492
|
+
if (previousRecursionDepth >= 100) {
|
|
1493
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1494
|
+
}
|
|
1495
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1496
|
+
try {
|
|
1497
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1498
|
+
const message = createBaseEventStoreAccessGrantsResponse();
|
|
1499
|
+
while (reader.pos < end) {
|
|
1500
|
+
const tag = reader.uint32();
|
|
1501
|
+
switch (tag >>> 3) {
|
|
1502
|
+
case 4: {
|
|
1503
|
+
if (tag !== 34) {
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
message.EventStore = reader.string();
|
|
1508
|
+
continue;
|
|
1509
|
+
}
|
|
1510
|
+
case 5: {
|
|
1511
|
+
if (tag !== 42) {
|
|
1512
|
+
break;
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
message.Namespace = reader.string();
|
|
1516
|
+
continue;
|
|
1517
|
+
}
|
|
1518
|
+
case 6: {
|
|
1519
|
+
if (tag !== 48) {
|
|
1520
|
+
break;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
message.Access = reader.int32() as any;
|
|
1524
|
+
continue;
|
|
1525
|
+
}
|
|
1526
|
+
case 7: {
|
|
1527
|
+
if (tag !== 56) {
|
|
1528
|
+
break;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
message.Source = reader.int32() as any;
|
|
1532
|
+
continue;
|
|
1533
|
+
}
|
|
1534
|
+
case 8: {
|
|
1535
|
+
if (tag !== 66) {
|
|
1536
|
+
break;
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
message.Holder = EventStoreAccessHolder.decode(reader, reader.uint32());
|
|
1540
|
+
continue;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1544
|
+
break;
|
|
1545
|
+
}
|
|
1546
|
+
reader.skip(tag & 7);
|
|
1547
|
+
}
|
|
1548
|
+
return message;
|
|
1549
|
+
} finally {
|
|
1550
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1551
|
+
}
|
|
1552
|
+
},
|
|
1553
|
+
|
|
1554
|
+
fromJSON(object: any): EventStoreAccessGrantsResponse {
|
|
1555
|
+
return {
|
|
1556
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1557
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1558
|
+
Access: isSet(object.Access) ? storeAccessFromJSON(object.Access) : 0,
|
|
1559
|
+
Source: isSet(object.Source) ? eventStoreAccessGrantSourceFromJSON(object.Source) : 0,
|
|
1560
|
+
Holder: isSet(object.Holder) ? EventStoreAccessHolder.fromJSON(object.Holder) : undefined,
|
|
1561
|
+
};
|
|
1562
|
+
},
|
|
1563
|
+
|
|
1564
|
+
toJSON(message: EventStoreAccessGrantsResponse): unknown {
|
|
1565
|
+
const obj: any = {};
|
|
1566
|
+
if (message.EventStore !== "") {
|
|
1567
|
+
obj.EventStore = message.EventStore;
|
|
1568
|
+
}
|
|
1569
|
+
if (message.Namespace !== "") {
|
|
1570
|
+
obj.Namespace = message.Namespace;
|
|
1571
|
+
}
|
|
1572
|
+
if (message.Access !== 0) {
|
|
1573
|
+
obj.Access = storeAccessToJSON(message.Access);
|
|
1574
|
+
}
|
|
1575
|
+
if (message.Source !== 0) {
|
|
1576
|
+
obj.Source = eventStoreAccessGrantSourceToJSON(message.Source);
|
|
1577
|
+
}
|
|
1578
|
+
if (message.Holder !== undefined) {
|
|
1579
|
+
obj.Holder = EventStoreAccessHolder.toJSON(message.Holder);
|
|
1580
|
+
}
|
|
1581
|
+
return obj;
|
|
1582
|
+
},
|
|
1583
|
+
|
|
1584
|
+
create(base?: DeepPartial<EventStoreAccessGrantsResponse>): EventStoreAccessGrantsResponse {
|
|
1585
|
+
return EventStoreAccessGrantsResponse.fromPartial(base ?? {});
|
|
1586
|
+
},
|
|
1587
|
+
fromPartial(object: DeepPartial<EventStoreAccessGrantsResponse>): EventStoreAccessGrantsResponse {
|
|
1588
|
+
const message = createBaseEventStoreAccessGrantsResponse();
|
|
1589
|
+
message.EventStore = object.EventStore ?? "";
|
|
1590
|
+
message.Namespace = object.Namespace ?? "";
|
|
1591
|
+
message.Access = object.Access ?? 0;
|
|
1592
|
+
message.Source = object.Source ?? 0;
|
|
1593
|
+
message.Holder = (object.Holder !== undefined && object.Holder !== null)
|
|
1594
|
+
? EventStoreAccessHolder.fromPartial(object.Holder)
|
|
1595
|
+
: undefined;
|
|
1596
|
+
return message;
|
|
1597
|
+
},
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
function createBaseEventStoreAccessHolder(): EventStoreAccessHolder {
|
|
1601
|
+
return { Issuer: "", Subject: "", IsClient: false };
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
export const EventStoreAccessHolder: MessageFns<EventStoreAccessHolder> = {
|
|
1605
|
+
encode(message: EventStoreAccessHolder, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1606
|
+
if (message.Issuer !== "") {
|
|
1607
|
+
writer.uint32(10).string(message.Issuer);
|
|
1608
|
+
}
|
|
1609
|
+
if (message.Subject !== "") {
|
|
1610
|
+
writer.uint32(18).string(message.Subject);
|
|
1611
|
+
}
|
|
1612
|
+
if (message.IsClient !== false) {
|
|
1613
|
+
writer.uint32(24).bool(message.IsClient);
|
|
1614
|
+
}
|
|
1615
|
+
return writer;
|
|
1616
|
+
},
|
|
1617
|
+
|
|
1618
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventStoreAccessHolder {
|
|
1619
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1620
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1621
|
+
if (previousRecursionDepth >= 100) {
|
|
1622
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1623
|
+
}
|
|
1624
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1625
|
+
try {
|
|
1626
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1627
|
+
const message = createBaseEventStoreAccessHolder();
|
|
1628
|
+
while (reader.pos < end) {
|
|
1629
|
+
const tag = reader.uint32();
|
|
1630
|
+
switch (tag >>> 3) {
|
|
1631
|
+
case 1: {
|
|
1632
|
+
if (tag !== 10) {
|
|
1633
|
+
break;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
message.Issuer = reader.string();
|
|
1637
|
+
continue;
|
|
1638
|
+
}
|
|
1639
|
+
case 2: {
|
|
1640
|
+
if (tag !== 18) {
|
|
1641
|
+
break;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
message.Subject = reader.string();
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
case 3: {
|
|
1648
|
+
if (tag !== 24) {
|
|
1649
|
+
break;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
message.IsClient = reader.bool();
|
|
1653
|
+
continue;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1657
|
+
break;
|
|
1658
|
+
}
|
|
1659
|
+
reader.skip(tag & 7);
|
|
1660
|
+
}
|
|
1661
|
+
return message;
|
|
1662
|
+
} finally {
|
|
1663
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
|
|
1667
|
+
fromJSON(object: any): EventStoreAccessHolder {
|
|
1668
|
+
return {
|
|
1669
|
+
Issuer: isSet(object.Issuer) ? globalThis.String(object.Issuer) : "",
|
|
1670
|
+
Subject: isSet(object.Subject) ? globalThis.String(object.Subject) : "",
|
|
1671
|
+
IsClient: isSet(object.IsClient) ? globalThis.Boolean(object.IsClient) : false,
|
|
1672
|
+
};
|
|
1673
|
+
},
|
|
1674
|
+
|
|
1675
|
+
toJSON(message: EventStoreAccessHolder): unknown {
|
|
1676
|
+
const obj: any = {};
|
|
1677
|
+
if (message.Issuer !== "") {
|
|
1678
|
+
obj.Issuer = message.Issuer;
|
|
1679
|
+
}
|
|
1680
|
+
if (message.Subject !== "") {
|
|
1681
|
+
obj.Subject = message.Subject;
|
|
1682
|
+
}
|
|
1683
|
+
if (message.IsClient !== false) {
|
|
1684
|
+
obj.IsClient = message.IsClient;
|
|
1685
|
+
}
|
|
1686
|
+
return obj;
|
|
1687
|
+
},
|
|
1688
|
+
|
|
1689
|
+
create(base?: DeepPartial<EventStoreAccessHolder>): EventStoreAccessHolder {
|
|
1690
|
+
return EventStoreAccessHolder.fromPartial(base ?? {});
|
|
1691
|
+
},
|
|
1692
|
+
fromPartial(object: DeepPartial<EventStoreAccessHolder>): EventStoreAccessHolder {
|
|
1693
|
+
const message = createBaseEventStoreAccessHolder();
|
|
1694
|
+
message.Issuer = object.Issuer ?? "";
|
|
1695
|
+
message.Subject = object.Subject ?? "";
|
|
1696
|
+
message.IsClient = object.IsClient ?? false;
|
|
1697
|
+
return message;
|
|
1698
|
+
},
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
function createBaseEventStoreAccessPreflightResponse(): EventStoreAccessPreflightResponse {
|
|
1702
|
+
return {
|
|
1703
|
+
EventStore: "",
|
|
1704
|
+
Namespace: "",
|
|
1705
|
+
Access: 0,
|
|
1706
|
+
FirstSeen: undefined,
|
|
1707
|
+
LastSeen: undefined,
|
|
1708
|
+
Count: 0n,
|
|
1709
|
+
Holder: undefined,
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
export const EventStoreAccessPreflightResponse: MessageFns<EventStoreAccessPreflightResponse> = {
|
|
1714
|
+
encode(message: EventStoreAccessPreflightResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1715
|
+
if (message.EventStore !== "") {
|
|
1716
|
+
writer.uint32(34).string(message.EventStore);
|
|
1717
|
+
}
|
|
1718
|
+
if (message.Namespace !== "") {
|
|
1719
|
+
writer.uint32(42).string(message.Namespace);
|
|
1720
|
+
}
|
|
1721
|
+
if (message.Access !== 0) {
|
|
1722
|
+
writer.uint32(48).int32(message.Access);
|
|
1723
|
+
}
|
|
1724
|
+
if (message.FirstSeen !== undefined) {
|
|
1725
|
+
SerializableDateTimeOffset.encode(message.FirstSeen, writer.uint32(58).fork()).join();
|
|
1726
|
+
}
|
|
1727
|
+
if (message.LastSeen !== undefined) {
|
|
1728
|
+
SerializableDateTimeOffset.encode(message.LastSeen, writer.uint32(66).fork()).join();
|
|
1729
|
+
}
|
|
1730
|
+
if (message.Count !== 0n) {
|
|
1731
|
+
if (BigInt.asIntN(64, message.Count) !== message.Count) {
|
|
1732
|
+
throw new globalThis.Error("value provided for field message.Count of type int64 too large");
|
|
1733
|
+
}
|
|
1734
|
+
writer.uint32(72).int64(message.Count);
|
|
1735
|
+
}
|
|
1736
|
+
if (message.Holder !== undefined) {
|
|
1737
|
+
EventStoreAccessHolder.encode(message.Holder, writer.uint32(82).fork()).join();
|
|
1738
|
+
}
|
|
1739
|
+
return writer;
|
|
1740
|
+
},
|
|
1741
|
+
|
|
1742
|
+
decode(input: BinaryReader | Uint8Array, length?: number): EventStoreAccessPreflightResponse {
|
|
1743
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1744
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1745
|
+
if (previousRecursionDepth >= 100) {
|
|
1746
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1747
|
+
}
|
|
1748
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1749
|
+
try {
|
|
1750
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1751
|
+
const message = createBaseEventStoreAccessPreflightResponse();
|
|
1752
|
+
while (reader.pos < end) {
|
|
1753
|
+
const tag = reader.uint32();
|
|
1754
|
+
switch (tag >>> 3) {
|
|
1755
|
+
case 4: {
|
|
1756
|
+
if (tag !== 34) {
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
message.EventStore = reader.string();
|
|
1761
|
+
continue;
|
|
1762
|
+
}
|
|
1763
|
+
case 5: {
|
|
1764
|
+
if (tag !== 42) {
|
|
1765
|
+
break;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
message.Namespace = reader.string();
|
|
1769
|
+
continue;
|
|
1770
|
+
}
|
|
1771
|
+
case 6: {
|
|
1772
|
+
if (tag !== 48) {
|
|
1773
|
+
break;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
message.Access = reader.int32() as any;
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
case 7: {
|
|
1780
|
+
if (tag !== 58) {
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
message.FirstSeen = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
1785
|
+
continue;
|
|
1786
|
+
}
|
|
1787
|
+
case 8: {
|
|
1788
|
+
if (tag !== 66) {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
message.LastSeen = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
1793
|
+
continue;
|
|
1794
|
+
}
|
|
1795
|
+
case 9: {
|
|
1796
|
+
if (tag !== 72) {
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
message.Count = reader.int64() as bigint;
|
|
1801
|
+
continue;
|
|
1802
|
+
}
|
|
1803
|
+
case 10: {
|
|
1804
|
+
if (tag !== 82) {
|
|
1805
|
+
break;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
message.Holder = EventStoreAccessHolder.decode(reader, reader.uint32());
|
|
1809
|
+
continue;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1813
|
+
break;
|
|
1814
|
+
}
|
|
1815
|
+
reader.skip(tag & 7);
|
|
1816
|
+
}
|
|
1817
|
+
return message;
|
|
1818
|
+
} finally {
|
|
1819
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
|
|
1823
|
+
fromJSON(object: any): EventStoreAccessPreflightResponse {
|
|
1824
|
+
return {
|
|
1825
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1826
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1827
|
+
Access: isSet(object.Access) ? storeAccessFromJSON(object.Access) : 0,
|
|
1828
|
+
FirstSeen: isSet(object.FirstSeen) ? SerializableDateTimeOffset.fromJSON(object.FirstSeen) : undefined,
|
|
1829
|
+
LastSeen: isSet(object.LastSeen) ? SerializableDateTimeOffset.fromJSON(object.LastSeen) : undefined,
|
|
1830
|
+
Count: isSet(object.Count) ? BigInt(object.Count) : 0n,
|
|
1831
|
+
Holder: isSet(object.Holder) ? EventStoreAccessHolder.fromJSON(object.Holder) : undefined,
|
|
1832
|
+
};
|
|
1833
|
+
},
|
|
1834
|
+
|
|
1835
|
+
toJSON(message: EventStoreAccessPreflightResponse): unknown {
|
|
1836
|
+
const obj: any = {};
|
|
1837
|
+
if (message.EventStore !== "") {
|
|
1838
|
+
obj.EventStore = message.EventStore;
|
|
1839
|
+
}
|
|
1840
|
+
if (message.Namespace !== "") {
|
|
1841
|
+
obj.Namespace = message.Namespace;
|
|
1842
|
+
}
|
|
1843
|
+
if (message.Access !== 0) {
|
|
1844
|
+
obj.Access = storeAccessToJSON(message.Access);
|
|
1845
|
+
}
|
|
1846
|
+
if (message.FirstSeen !== undefined) {
|
|
1847
|
+
obj.FirstSeen = SerializableDateTimeOffset.toJSON(message.FirstSeen);
|
|
1848
|
+
}
|
|
1849
|
+
if (message.LastSeen !== undefined) {
|
|
1850
|
+
obj.LastSeen = SerializableDateTimeOffset.toJSON(message.LastSeen);
|
|
1851
|
+
}
|
|
1852
|
+
if (message.Count !== 0n) {
|
|
1853
|
+
obj.Count = message.Count.toString();
|
|
1854
|
+
}
|
|
1855
|
+
if (message.Holder !== undefined) {
|
|
1856
|
+
obj.Holder = EventStoreAccessHolder.toJSON(message.Holder);
|
|
1857
|
+
}
|
|
1858
|
+
return obj;
|
|
1859
|
+
},
|
|
1860
|
+
|
|
1861
|
+
create(base?: DeepPartial<EventStoreAccessPreflightResponse>): EventStoreAccessPreflightResponse {
|
|
1862
|
+
return EventStoreAccessPreflightResponse.fromPartial(base ?? {});
|
|
1863
|
+
},
|
|
1864
|
+
fromPartial(object: DeepPartial<EventStoreAccessPreflightResponse>): EventStoreAccessPreflightResponse {
|
|
1865
|
+
const message = createBaseEventStoreAccessPreflightResponse();
|
|
1866
|
+
message.EventStore = object.EventStore ?? "";
|
|
1867
|
+
message.Namespace = object.Namespace ?? "";
|
|
1868
|
+
message.Access = object.Access ?? 0;
|
|
1869
|
+
message.FirstSeen = (object.FirstSeen !== undefined && object.FirstSeen !== null)
|
|
1870
|
+
? SerializableDateTimeOffset.fromPartial(object.FirstSeen)
|
|
1871
|
+
: undefined;
|
|
1872
|
+
message.LastSeen = (object.LastSeen !== undefined && object.LastSeen !== null)
|
|
1873
|
+
? SerializableDateTimeOffset.fromPartial(object.LastSeen)
|
|
1874
|
+
: undefined;
|
|
1875
|
+
message.Count = (object.Count !== undefined && object.Count !== null) ? BigInt(object.Count) : 0n;
|
|
1876
|
+
message.Holder = (object.Holder !== undefined && object.Holder !== null)
|
|
1877
|
+
? EventStoreAccessHolder.fromPartial(object.Holder)
|
|
1878
|
+
: undefined;
|
|
1879
|
+
return message;
|
|
1880
|
+
},
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
function createBaseGrantAdministratorRequest(): GrantAdministratorRequest {
|
|
1884
|
+
return { UserId: undefined };
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export const GrantAdministratorRequest: MessageFns<GrantAdministratorRequest> = {
|
|
1888
|
+
encode(message: GrantAdministratorRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1889
|
+
if (message.UserId !== undefined) {
|
|
1890
|
+
Guid.encode(message.UserId, writer.uint32(10).fork()).join();
|
|
1891
|
+
}
|
|
1892
|
+
return writer;
|
|
1893
|
+
},
|
|
1894
|
+
|
|
1895
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GrantAdministratorRequest {
|
|
1896
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1897
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1898
|
+
if (previousRecursionDepth >= 100) {
|
|
1899
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1900
|
+
}
|
|
1901
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1902
|
+
try {
|
|
1903
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1904
|
+
const message = createBaseGrantAdministratorRequest();
|
|
1905
|
+
while (reader.pos < end) {
|
|
1906
|
+
const tag = reader.uint32();
|
|
1907
|
+
switch (tag >>> 3) {
|
|
1908
|
+
case 1: {
|
|
1909
|
+
if (tag !== 10) {
|
|
1910
|
+
break;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
message.UserId = Guid.decode(reader, reader.uint32());
|
|
1914
|
+
continue;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1918
|
+
break;
|
|
1919
|
+
}
|
|
1920
|
+
reader.skip(tag & 7);
|
|
1921
|
+
}
|
|
1922
|
+
return message;
|
|
1923
|
+
} finally {
|
|
1924
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
|
|
1928
|
+
fromJSON(object: any): GrantAdministratorRequest {
|
|
1929
|
+
return { UserId: isSet(object.UserId) ? Guid.fromJSON(object.UserId) : undefined };
|
|
1930
|
+
},
|
|
1931
|
+
|
|
1932
|
+
toJSON(message: GrantAdministratorRequest): unknown {
|
|
1933
|
+
const obj: any = {};
|
|
1934
|
+
if (message.UserId !== undefined) {
|
|
1935
|
+
obj.UserId = Guid.toJSON(message.UserId);
|
|
1936
|
+
}
|
|
1937
|
+
return obj;
|
|
1938
|
+
},
|
|
1939
|
+
|
|
1940
|
+
create(base?: DeepPartial<GrantAdministratorRequest>): GrantAdministratorRequest {
|
|
1941
|
+
return GrantAdministratorRequest.fromPartial(base ?? {});
|
|
1942
|
+
},
|
|
1943
|
+
fromPartial(object: DeepPartial<GrantAdministratorRequest>): GrantAdministratorRequest {
|
|
1944
|
+
const message = createBaseGrantAdministratorRequest();
|
|
1945
|
+
message.UserId = (object.UserId !== undefined && object.UserId !== null)
|
|
1946
|
+
? Guid.fromPartial(object.UserId)
|
|
1947
|
+
: undefined;
|
|
1948
|
+
return message;
|
|
1949
|
+
},
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
function createBaseGrantEventStoreAccessRequest(): GrantEventStoreAccessRequest {
|
|
1953
|
+
return { EventStore: "", Namespace: "", Access: 0, Holder: undefined, AllEventStores: false };
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
export const GrantEventStoreAccessRequest: MessageFns<GrantEventStoreAccessRequest> = {
|
|
1957
|
+
encode(message: GrantEventStoreAccessRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1958
|
+
if (message.EventStore !== "") {
|
|
1959
|
+
writer.uint32(34).string(message.EventStore);
|
|
1960
|
+
}
|
|
1961
|
+
if (message.Namespace !== "") {
|
|
1962
|
+
writer.uint32(42).string(message.Namespace);
|
|
1963
|
+
}
|
|
1964
|
+
if (message.Access !== 0) {
|
|
1965
|
+
writer.uint32(48).int32(message.Access);
|
|
1966
|
+
}
|
|
1967
|
+
if (message.Holder !== undefined) {
|
|
1968
|
+
EventStoreAccessHolder.encode(message.Holder, writer.uint32(58).fork()).join();
|
|
1969
|
+
}
|
|
1970
|
+
if (message.AllEventStores !== false) {
|
|
1971
|
+
writer.uint32(64).bool(message.AllEventStores);
|
|
1972
|
+
}
|
|
1973
|
+
return writer;
|
|
1974
|
+
},
|
|
1975
|
+
|
|
1976
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GrantEventStoreAccessRequest {
|
|
1977
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1978
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1979
|
+
if (previousRecursionDepth >= 100) {
|
|
1980
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1981
|
+
}
|
|
1982
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1983
|
+
try {
|
|
1984
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1985
|
+
const message = createBaseGrantEventStoreAccessRequest();
|
|
1986
|
+
while (reader.pos < end) {
|
|
1987
|
+
const tag = reader.uint32();
|
|
1988
|
+
switch (tag >>> 3) {
|
|
1989
|
+
case 4: {
|
|
1990
|
+
if (tag !== 34) {
|
|
1991
|
+
break;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
message.EventStore = reader.string();
|
|
1995
|
+
continue;
|
|
1996
|
+
}
|
|
1997
|
+
case 5: {
|
|
1998
|
+
if (tag !== 42) {
|
|
1999
|
+
break;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
message.Namespace = reader.string();
|
|
2003
|
+
continue;
|
|
2004
|
+
}
|
|
2005
|
+
case 6: {
|
|
2006
|
+
if (tag !== 48) {
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
message.Access = reader.int32() as any;
|
|
2011
|
+
continue;
|
|
2012
|
+
}
|
|
2013
|
+
case 7: {
|
|
2014
|
+
if (tag !== 58) {
|
|
2015
|
+
break;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
message.Holder = EventStoreAccessHolder.decode(reader, reader.uint32());
|
|
2019
|
+
continue;
|
|
2020
|
+
}
|
|
2021
|
+
case 8: {
|
|
2022
|
+
if (tag !== 64) {
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
message.AllEventStores = reader.bool();
|
|
2027
|
+
continue;
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
reader.skip(tag & 7);
|
|
2034
|
+
}
|
|
2035
|
+
return message;
|
|
2036
|
+
} finally {
|
|
2037
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
|
|
2041
|
+
fromJSON(object: any): GrantEventStoreAccessRequest {
|
|
2042
|
+
return {
|
|
2043
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
2044
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
2045
|
+
Access: isSet(object.Access) ? storeAccessFromJSON(object.Access) : 0,
|
|
2046
|
+
Holder: isSet(object.Holder) ? EventStoreAccessHolder.fromJSON(object.Holder) : undefined,
|
|
2047
|
+
AllEventStores: isSet(object.AllEventStores) ? globalThis.Boolean(object.AllEventStores) : false,
|
|
2048
|
+
};
|
|
2049
|
+
},
|
|
2050
|
+
|
|
2051
|
+
toJSON(message: GrantEventStoreAccessRequest): unknown {
|
|
2052
|
+
const obj: any = {};
|
|
2053
|
+
if (message.EventStore !== "") {
|
|
2054
|
+
obj.EventStore = message.EventStore;
|
|
2055
|
+
}
|
|
2056
|
+
if (message.Namespace !== "") {
|
|
2057
|
+
obj.Namespace = message.Namespace;
|
|
2058
|
+
}
|
|
2059
|
+
if (message.Access !== 0) {
|
|
2060
|
+
obj.Access = storeAccessToJSON(message.Access);
|
|
2061
|
+
}
|
|
2062
|
+
if (message.Holder !== undefined) {
|
|
2063
|
+
obj.Holder = EventStoreAccessHolder.toJSON(message.Holder);
|
|
2064
|
+
}
|
|
2065
|
+
if (message.AllEventStores !== false) {
|
|
2066
|
+
obj.AllEventStores = message.AllEventStores;
|
|
2067
|
+
}
|
|
2068
|
+
return obj;
|
|
2069
|
+
},
|
|
2070
|
+
|
|
2071
|
+
create(base?: DeepPartial<GrantEventStoreAccessRequest>): GrantEventStoreAccessRequest {
|
|
2072
|
+
return GrantEventStoreAccessRequest.fromPartial(base ?? {});
|
|
2073
|
+
},
|
|
2074
|
+
fromPartial(object: DeepPartial<GrantEventStoreAccessRequest>): GrantEventStoreAccessRequest {
|
|
2075
|
+
const message = createBaseGrantEventStoreAccessRequest();
|
|
2076
|
+
message.EventStore = object.EventStore ?? "";
|
|
2077
|
+
message.Namespace = object.Namespace ?? "";
|
|
2078
|
+
message.Access = object.Access ?? 0;
|
|
2079
|
+
message.Holder = (object.Holder !== undefined && object.Holder !== null)
|
|
2080
|
+
? EventStoreAccessHolder.fromPartial(object.Holder)
|
|
2081
|
+
: undefined;
|
|
2082
|
+
message.AllEventStores = object.AllEventStores ?? false;
|
|
2083
|
+
return message;
|
|
2084
|
+
},
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
function createBaseQueryResultAdminPasswordStatusResponse(): QueryResultAdminPasswordStatusResponse {
|
|
2088
|
+
return {
|
|
2089
|
+
CorrelationId: undefined,
|
|
2090
|
+
IsAuthorized: false,
|
|
2091
|
+
ValidationResults: [],
|
|
2092
|
+
ExceptionMessages: [],
|
|
2093
|
+
ExceptionStackTrace: "",
|
|
2094
|
+
Data: undefined,
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdminPasswordStatusResponse> = {
|
|
2099
|
+
encode(message: QueryResultAdminPasswordStatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2100
|
+
if (message.CorrelationId !== undefined) {
|
|
2101
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
2102
|
+
}
|
|
2103
|
+
if (message.IsAuthorized !== false) {
|
|
2104
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
2105
|
+
}
|
|
2106
|
+
for (const v of message.ValidationResults) {
|
|
2107
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
2108
|
+
}
|
|
2109
|
+
for (const v of message.ExceptionMessages) {
|
|
2110
|
+
writer.uint32(34).string(v!);
|
|
2111
|
+
}
|
|
2112
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2113
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
2114
|
+
}
|
|
2115
|
+
if (message.Data !== undefined) {
|
|
2116
|
+
AdminPasswordStatusResponse.encode(message.Data, writer.uint32(50).fork()).join();
|
|
2117
|
+
}
|
|
2118
|
+
return writer;
|
|
2119
|
+
},
|
|
2120
|
+
|
|
2121
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultAdminPasswordStatusResponse {
|
|
2122
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2123
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2124
|
+
if (previousRecursionDepth >= 100) {
|
|
2125
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2126
|
+
}
|
|
2127
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2128
|
+
try {
|
|
2129
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2130
|
+
const message = createBaseQueryResultAdminPasswordStatusResponse();
|
|
2131
|
+
while (reader.pos < end) {
|
|
2132
|
+
const tag = reader.uint32();
|
|
2133
|
+
switch (tag >>> 3) {
|
|
2134
|
+
case 1: {
|
|
2135
|
+
if (tag !== 10) {
|
|
2136
|
+
break;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
2140
|
+
continue;
|
|
2141
|
+
}
|
|
2142
|
+
case 2: {
|
|
2143
|
+
if (tag !== 16) {
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
message.IsAuthorized = reader.bool();
|
|
2148
|
+
continue;
|
|
2149
|
+
}
|
|
2150
|
+
case 3: {
|
|
2151
|
+
if (tag !== 26) {
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
2156
|
+
continue;
|
|
2157
|
+
}
|
|
2158
|
+
case 4: {
|
|
2159
|
+
if (tag !== 34) {
|
|
2160
|
+
break;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
message.ExceptionMessages.push(reader.string());
|
|
2164
|
+
continue;
|
|
2165
|
+
}
|
|
2166
|
+
case 5: {
|
|
2167
|
+
if (tag !== 42) {
|
|
2168
|
+
break;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
message.ExceptionStackTrace = reader.string();
|
|
2172
|
+
continue;
|
|
2173
|
+
}
|
|
2174
|
+
case 6: {
|
|
2175
|
+
if (tag !== 50) {
|
|
2176
|
+
break;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
message.Data = AdminPasswordStatusResponse.decode(reader, reader.uint32());
|
|
2180
|
+
continue;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2184
|
+
break;
|
|
2185
|
+
}
|
|
2186
|
+
reader.skip(tag & 7);
|
|
2187
|
+
}
|
|
2188
|
+
return message;
|
|
2189
|
+
} finally {
|
|
2190
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2191
|
+
}
|
|
2192
|
+
},
|
|
2193
|
+
|
|
2194
|
+
fromJSON(object: any): QueryResultAdminPasswordStatusResponse {
|
|
2195
|
+
return {
|
|
2196
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
2197
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
2198
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
2199
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
2200
|
+
: [],
|
|
2201
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
2202
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
2203
|
+
: [],
|
|
2204
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
2205
|
+
Data: isSet(object.Data) ? AdminPasswordStatusResponse.fromJSON(object.Data) : undefined,
|
|
2206
|
+
};
|
|
2207
|
+
},
|
|
2208
|
+
|
|
2209
|
+
toJSON(message: QueryResultAdminPasswordStatusResponse): unknown {
|
|
2210
|
+
const obj: any = {};
|
|
2211
|
+
if (message.CorrelationId !== undefined) {
|
|
2212
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
2213
|
+
}
|
|
2214
|
+
if (message.IsAuthorized !== false) {
|
|
2215
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
2216
|
+
}
|
|
2217
|
+
if (message.ValidationResults?.length) {
|
|
2218
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
2219
|
+
}
|
|
2220
|
+
if (message.ExceptionMessages?.length) {
|
|
2221
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
2222
|
+
}
|
|
2223
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2224
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
2225
|
+
}
|
|
2226
|
+
if (message.Data !== undefined) {
|
|
2227
|
+
obj.Data = AdminPasswordStatusResponse.toJSON(message.Data);
|
|
2228
|
+
}
|
|
2229
|
+
return obj;
|
|
2230
|
+
},
|
|
2231
|
+
|
|
2232
|
+
create(base?: DeepPartial<QueryResultAdminPasswordStatusResponse>): QueryResultAdminPasswordStatusResponse {
|
|
2233
|
+
return QueryResultAdminPasswordStatusResponse.fromPartial(base ?? {});
|
|
2234
|
+
},
|
|
2235
|
+
fromPartial(object: DeepPartial<QueryResultAdminPasswordStatusResponse>): QueryResultAdminPasswordStatusResponse {
|
|
2236
|
+
const message = createBaseQueryResultAdminPasswordStatusResponse();
|
|
2237
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
2238
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
2239
|
+
: undefined;
|
|
2240
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2241
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2242
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2243
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2244
|
+
message.Data = (object.Data !== undefined && object.Data !== null)
|
|
2245
|
+
? AdminPasswordStatusResponse.fromPartial(object.Data)
|
|
2246
|
+
: undefined;
|
|
2247
|
+
return message;
|
|
2248
|
+
},
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
function createBaseQueryResultIEnumerableAdministratorResponse(): QueryResultIEnumerableAdministratorResponse {
|
|
2252
|
+
return {
|
|
2253
|
+
CorrelationId: undefined,
|
|
2254
|
+
IsAuthorized: false,
|
|
2255
|
+
ValidationResults: [],
|
|
2256
|
+
ExceptionMessages: [],
|
|
2257
|
+
ExceptionStackTrace: "",
|
|
2258
|
+
Data: [],
|
|
2259
|
+
};
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResultIEnumerableAdministratorResponse> = {
|
|
2263
|
+
encode(
|
|
2264
|
+
message: QueryResultIEnumerableAdministratorResponse,
|
|
2265
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
2266
|
+
): BinaryWriter {
|
|
2267
|
+
if (message.CorrelationId !== undefined) {
|
|
2268
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
2269
|
+
}
|
|
2270
|
+
if (message.IsAuthorized !== false) {
|
|
2271
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
2272
|
+
}
|
|
2273
|
+
for (const v of message.ValidationResults) {
|
|
2274
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
2275
|
+
}
|
|
2276
|
+
for (const v of message.ExceptionMessages) {
|
|
2277
|
+
writer.uint32(34).string(v!);
|
|
2278
|
+
}
|
|
2279
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2280
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
2281
|
+
}
|
|
2282
|
+
for (const v of message.Data) {
|
|
2283
|
+
AdministratorResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
2284
|
+
}
|
|
2285
|
+
return writer;
|
|
2286
|
+
},
|
|
2287
|
+
|
|
2288
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableAdministratorResponse {
|
|
2289
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2290
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2291
|
+
if (previousRecursionDepth >= 100) {
|
|
2292
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2293
|
+
}
|
|
2294
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2295
|
+
try {
|
|
2296
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2297
|
+
const message = createBaseQueryResultIEnumerableAdministratorResponse();
|
|
2298
|
+
while (reader.pos < end) {
|
|
2299
|
+
const tag = reader.uint32();
|
|
2300
|
+
switch (tag >>> 3) {
|
|
2301
|
+
case 1: {
|
|
2302
|
+
if (tag !== 10) {
|
|
2303
|
+
break;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
2307
|
+
continue;
|
|
2308
|
+
}
|
|
2309
|
+
case 2: {
|
|
2310
|
+
if (tag !== 16) {
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
message.IsAuthorized = reader.bool();
|
|
2315
|
+
continue;
|
|
2316
|
+
}
|
|
2317
|
+
case 3: {
|
|
2318
|
+
if (tag !== 26) {
|
|
2319
|
+
break;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
2323
|
+
continue;
|
|
2324
|
+
}
|
|
2325
|
+
case 4: {
|
|
2326
|
+
if (tag !== 34) {
|
|
2327
|
+
break;
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
message.ExceptionMessages.push(reader.string());
|
|
2331
|
+
continue;
|
|
2332
|
+
}
|
|
2333
|
+
case 5: {
|
|
2334
|
+
if (tag !== 42) {
|
|
2335
|
+
break;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
message.ExceptionStackTrace = reader.string();
|
|
2339
|
+
continue;
|
|
2340
|
+
}
|
|
2341
|
+
case 6: {
|
|
2342
|
+
if (tag !== 50) {
|
|
2343
|
+
break;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
message.Data.push(AdministratorResponse.decode(reader, reader.uint32()));
|
|
1167
2347
|
continue;
|
|
1168
2348
|
}
|
|
1169
2349
|
}
|
|
@@ -1178,43 +2358,78 @@ export const GrantAdministratorRequest: MessageFns<GrantAdministratorRequest> =
|
|
|
1178
2358
|
}
|
|
1179
2359
|
},
|
|
1180
2360
|
|
|
1181
|
-
fromJSON(object: any):
|
|
1182
|
-
return {
|
|
2361
|
+
fromJSON(object: any): QueryResultIEnumerableAdministratorResponse {
|
|
2362
|
+
return {
|
|
2363
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
2364
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
2365
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
2366
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
2367
|
+
: [],
|
|
2368
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
2369
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
2370
|
+
: [],
|
|
2371
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
2372
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
2373
|
+
? object.Data.map((e: any) => AdministratorResponse.fromJSON(e))
|
|
2374
|
+
: [],
|
|
2375
|
+
};
|
|
1183
2376
|
},
|
|
1184
2377
|
|
|
1185
|
-
toJSON(message:
|
|
2378
|
+
toJSON(message: QueryResultIEnumerableAdministratorResponse): unknown {
|
|
1186
2379
|
const obj: any = {};
|
|
1187
|
-
if (message.
|
|
1188
|
-
obj.
|
|
2380
|
+
if (message.CorrelationId !== undefined) {
|
|
2381
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
2382
|
+
}
|
|
2383
|
+
if (message.IsAuthorized !== false) {
|
|
2384
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
2385
|
+
}
|
|
2386
|
+
if (message.ValidationResults?.length) {
|
|
2387
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
2388
|
+
}
|
|
2389
|
+
if (message.ExceptionMessages?.length) {
|
|
2390
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
2391
|
+
}
|
|
2392
|
+
if (message.ExceptionStackTrace !== "") {
|
|
2393
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
2394
|
+
}
|
|
2395
|
+
if (message.Data?.length) {
|
|
2396
|
+
obj.Data = message.Data.map((e) => AdministratorResponse.toJSON(e));
|
|
1189
2397
|
}
|
|
1190
2398
|
return obj;
|
|
1191
2399
|
},
|
|
1192
2400
|
|
|
1193
|
-
create(base?: DeepPartial<
|
|
1194
|
-
return
|
|
2401
|
+
create(base?: DeepPartial<QueryResultIEnumerableAdministratorResponse>): QueryResultIEnumerableAdministratorResponse {
|
|
2402
|
+
return QueryResultIEnumerableAdministratorResponse.fromPartial(base ?? {});
|
|
1195
2403
|
},
|
|
1196
|
-
fromPartial(
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
2404
|
+
fromPartial(
|
|
2405
|
+
object: DeepPartial<QueryResultIEnumerableAdministratorResponse>,
|
|
2406
|
+
): QueryResultIEnumerableAdministratorResponse {
|
|
2407
|
+
const message = createBaseQueryResultIEnumerableAdministratorResponse();
|
|
2408
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
2409
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1200
2410
|
: undefined;
|
|
2411
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2412
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2413
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2414
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2415
|
+
message.Data = object.Data?.map((e) => AdministratorResponse.fromPartial(e)) || [];
|
|
1201
2416
|
return message;
|
|
1202
2417
|
},
|
|
1203
2418
|
};
|
|
1204
2419
|
|
|
1205
|
-
function
|
|
2420
|
+
function createBaseQueryResultIEnumerableApplicationResponse(): QueryResultIEnumerableApplicationResponse {
|
|
1206
2421
|
return {
|
|
1207
2422
|
CorrelationId: undefined,
|
|
1208
2423
|
IsAuthorized: false,
|
|
1209
2424
|
ValidationResults: [],
|
|
1210
2425
|
ExceptionMessages: [],
|
|
1211
2426
|
ExceptionStackTrace: "",
|
|
1212
|
-
Data:
|
|
2427
|
+
Data: [],
|
|
1213
2428
|
};
|
|
1214
2429
|
}
|
|
1215
2430
|
|
|
1216
|
-
export const
|
|
1217
|
-
encode(message:
|
|
2431
|
+
export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIEnumerableApplicationResponse> = {
|
|
2432
|
+
encode(message: QueryResultIEnumerableApplicationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1218
2433
|
if (message.CorrelationId !== undefined) {
|
|
1219
2434
|
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1220
2435
|
}
|
|
@@ -1230,13 +2445,13 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1230
2445
|
if (message.ExceptionStackTrace !== "") {
|
|
1231
2446
|
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1232
2447
|
}
|
|
1233
|
-
|
|
1234
|
-
|
|
2448
|
+
for (const v of message.Data) {
|
|
2449
|
+
ApplicationResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1235
2450
|
}
|
|
1236
2451
|
return writer;
|
|
1237
2452
|
},
|
|
1238
2453
|
|
|
1239
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2454
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableApplicationResponse {
|
|
1240
2455
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1241
2456
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1242
2457
|
if (previousRecursionDepth >= 100) {
|
|
@@ -1245,7 +2460,7 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1245
2460
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1246
2461
|
try {
|
|
1247
2462
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1248
|
-
const message =
|
|
2463
|
+
const message = createBaseQueryResultIEnumerableApplicationResponse();
|
|
1249
2464
|
while (reader.pos < end) {
|
|
1250
2465
|
const tag = reader.uint32();
|
|
1251
2466
|
switch (tag >>> 3) {
|
|
@@ -1294,7 +2509,7 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1294
2509
|
break;
|
|
1295
2510
|
}
|
|
1296
2511
|
|
|
1297
|
-
message.Data
|
|
2512
|
+
message.Data.push(ApplicationResponse.decode(reader, reader.uint32()));
|
|
1298
2513
|
continue;
|
|
1299
2514
|
}
|
|
1300
2515
|
}
|
|
@@ -1309,7 +2524,7 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1309
2524
|
}
|
|
1310
2525
|
},
|
|
1311
2526
|
|
|
1312
|
-
fromJSON(object: any):
|
|
2527
|
+
fromJSON(object: any): QueryResultIEnumerableApplicationResponse {
|
|
1313
2528
|
return {
|
|
1314
2529
|
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1315
2530
|
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
@@ -1320,11 +2535,11 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1320
2535
|
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1321
2536
|
: [],
|
|
1322
2537
|
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1323
|
-
Data:
|
|
2538
|
+
Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e: any) => ApplicationResponse.fromJSON(e)) : [],
|
|
1324
2539
|
};
|
|
1325
2540
|
},
|
|
1326
2541
|
|
|
1327
|
-
toJSON(message:
|
|
2542
|
+
toJSON(message: QueryResultIEnumerableApplicationResponse): unknown {
|
|
1328
2543
|
const obj: any = {};
|
|
1329
2544
|
if (message.CorrelationId !== undefined) {
|
|
1330
2545
|
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
@@ -1341,17 +2556,19 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1341
2556
|
if (message.ExceptionStackTrace !== "") {
|
|
1342
2557
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1343
2558
|
}
|
|
1344
|
-
if (message.Data
|
|
1345
|
-
obj.Data =
|
|
2559
|
+
if (message.Data?.length) {
|
|
2560
|
+
obj.Data = message.Data.map((e) => ApplicationResponse.toJSON(e));
|
|
1346
2561
|
}
|
|
1347
2562
|
return obj;
|
|
1348
2563
|
},
|
|
1349
2564
|
|
|
1350
|
-
create(base?: DeepPartial<
|
|
1351
|
-
return
|
|
2565
|
+
create(base?: DeepPartial<QueryResultIEnumerableApplicationResponse>): QueryResultIEnumerableApplicationResponse {
|
|
2566
|
+
return QueryResultIEnumerableApplicationResponse.fromPartial(base ?? {});
|
|
1352
2567
|
},
|
|
1353
|
-
fromPartial(
|
|
1354
|
-
|
|
2568
|
+
fromPartial(
|
|
2569
|
+
object: DeepPartial<QueryResultIEnumerableApplicationResponse>,
|
|
2570
|
+
): QueryResultIEnumerableApplicationResponse {
|
|
2571
|
+
const message = createBaseQueryResultIEnumerableApplicationResponse();
|
|
1355
2572
|
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1356
2573
|
? Guid.fromPartial(object.CorrelationId)
|
|
1357
2574
|
: undefined;
|
|
@@ -1359,14 +2576,12 @@ export const QueryResultAdminPasswordStatusResponse: MessageFns<QueryResultAdmin
|
|
|
1359
2576
|
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1360
2577
|
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1361
2578
|
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1362
|
-
message.Data =
|
|
1363
|
-
? AdminPasswordStatusResponse.fromPartial(object.Data)
|
|
1364
|
-
: undefined;
|
|
2579
|
+
message.Data = object.Data?.map((e) => ApplicationResponse.fromPartial(e)) || [];
|
|
1365
2580
|
return message;
|
|
1366
2581
|
},
|
|
1367
2582
|
};
|
|
1368
2583
|
|
|
1369
|
-
function
|
|
2584
|
+
function createBaseQueryResultIEnumerableEventStoreAccessGrantsResponse(): QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
1370
2585
|
return {
|
|
1371
2586
|
CorrelationId: undefined,
|
|
1372
2587
|
IsAuthorized: false,
|
|
@@ -1377,9 +2592,11 @@ function createBaseQueryResultIEnumerableAdministratorResponse(): QueryResultIEn
|
|
|
1377
2592
|
};
|
|
1378
2593
|
}
|
|
1379
2594
|
|
|
1380
|
-
export const
|
|
2595
|
+
export const QueryResultIEnumerableEventStoreAccessGrantsResponse: MessageFns<
|
|
2596
|
+
QueryResultIEnumerableEventStoreAccessGrantsResponse
|
|
2597
|
+
> = {
|
|
1381
2598
|
encode(
|
|
1382
|
-
message:
|
|
2599
|
+
message: QueryResultIEnumerableEventStoreAccessGrantsResponse,
|
|
1383
2600
|
writer: BinaryWriter = new BinaryWriter(),
|
|
1384
2601
|
): BinaryWriter {
|
|
1385
2602
|
if (message.CorrelationId !== undefined) {
|
|
@@ -1398,12 +2615,12 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1398
2615
|
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1399
2616
|
}
|
|
1400
2617
|
for (const v of message.Data) {
|
|
1401
|
-
|
|
2618
|
+
EventStoreAccessGrantsResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1402
2619
|
}
|
|
1403
2620
|
return writer;
|
|
1404
2621
|
},
|
|
1405
2622
|
|
|
1406
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2623
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
1407
2624
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1408
2625
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1409
2626
|
if (previousRecursionDepth >= 100) {
|
|
@@ -1412,7 +2629,7 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1412
2629
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1413
2630
|
try {
|
|
1414
2631
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1415
|
-
const message =
|
|
2632
|
+
const message = createBaseQueryResultIEnumerableEventStoreAccessGrantsResponse();
|
|
1416
2633
|
while (reader.pos < end) {
|
|
1417
2634
|
const tag = reader.uint32();
|
|
1418
2635
|
switch (tag >>> 3) {
|
|
@@ -1461,7 +2678,7 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1461
2678
|
break;
|
|
1462
2679
|
}
|
|
1463
2680
|
|
|
1464
|
-
message.Data.push(
|
|
2681
|
+
message.Data.push(EventStoreAccessGrantsResponse.decode(reader, reader.uint32()));
|
|
1465
2682
|
continue;
|
|
1466
2683
|
}
|
|
1467
2684
|
}
|
|
@@ -1476,7 +2693,7 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1476
2693
|
}
|
|
1477
2694
|
},
|
|
1478
2695
|
|
|
1479
|
-
fromJSON(object: any):
|
|
2696
|
+
fromJSON(object: any): QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
1480
2697
|
return {
|
|
1481
2698
|
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1482
2699
|
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
@@ -1488,12 +2705,12 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1488
2705
|
: [],
|
|
1489
2706
|
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1490
2707
|
Data: globalThis.Array.isArray(object?.Data)
|
|
1491
|
-
? object.Data.map((e: any) =>
|
|
2708
|
+
? object.Data.map((e: any) => EventStoreAccessGrantsResponse.fromJSON(e))
|
|
1492
2709
|
: [],
|
|
1493
2710
|
};
|
|
1494
2711
|
},
|
|
1495
2712
|
|
|
1496
|
-
toJSON(message:
|
|
2713
|
+
toJSON(message: QueryResultIEnumerableEventStoreAccessGrantsResponse): unknown {
|
|
1497
2714
|
const obj: any = {};
|
|
1498
2715
|
if (message.CorrelationId !== undefined) {
|
|
1499
2716
|
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
@@ -1511,18 +2728,20 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1511
2728
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1512
2729
|
}
|
|
1513
2730
|
if (message.Data?.length) {
|
|
1514
|
-
obj.Data = message.Data.map((e) =>
|
|
2731
|
+
obj.Data = message.Data.map((e) => EventStoreAccessGrantsResponse.toJSON(e));
|
|
1515
2732
|
}
|
|
1516
2733
|
return obj;
|
|
1517
2734
|
},
|
|
1518
2735
|
|
|
1519
|
-
create(
|
|
1520
|
-
|
|
2736
|
+
create(
|
|
2737
|
+
base?: DeepPartial<QueryResultIEnumerableEventStoreAccessGrantsResponse>,
|
|
2738
|
+
): QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
2739
|
+
return QueryResultIEnumerableEventStoreAccessGrantsResponse.fromPartial(base ?? {});
|
|
1521
2740
|
},
|
|
1522
2741
|
fromPartial(
|
|
1523
|
-
object: DeepPartial<
|
|
1524
|
-
):
|
|
1525
|
-
const message =
|
|
2742
|
+
object: DeepPartial<QueryResultIEnumerableEventStoreAccessGrantsResponse>,
|
|
2743
|
+
): QueryResultIEnumerableEventStoreAccessGrantsResponse {
|
|
2744
|
+
const message = createBaseQueryResultIEnumerableEventStoreAccessGrantsResponse();
|
|
1526
2745
|
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1527
2746
|
? Guid.fromPartial(object.CorrelationId)
|
|
1528
2747
|
: undefined;
|
|
@@ -1530,12 +2749,12 @@ export const QueryResultIEnumerableAdministratorResponse: MessageFns<QueryResult
|
|
|
1530
2749
|
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1531
2750
|
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1532
2751
|
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1533
|
-
message.Data = object.Data?.map((e) =>
|
|
2752
|
+
message.Data = object.Data?.map((e) => EventStoreAccessGrantsResponse.fromPartial(e)) || [];
|
|
1534
2753
|
return message;
|
|
1535
2754
|
},
|
|
1536
2755
|
};
|
|
1537
2756
|
|
|
1538
|
-
function
|
|
2757
|
+
function createBaseQueryResultIEnumerableEventStoreAccessPreflightResponse(): QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
1539
2758
|
return {
|
|
1540
2759
|
CorrelationId: undefined,
|
|
1541
2760
|
IsAuthorized: false,
|
|
@@ -1546,8 +2765,13 @@ function createBaseQueryResultIEnumerableApplicationResponse(): QueryResultIEnum
|
|
|
1546
2765
|
};
|
|
1547
2766
|
}
|
|
1548
2767
|
|
|
1549
|
-
export const
|
|
1550
|
-
|
|
2768
|
+
export const QueryResultIEnumerableEventStoreAccessPreflightResponse: MessageFns<
|
|
2769
|
+
QueryResultIEnumerableEventStoreAccessPreflightResponse
|
|
2770
|
+
> = {
|
|
2771
|
+
encode(
|
|
2772
|
+
message: QueryResultIEnumerableEventStoreAccessPreflightResponse,
|
|
2773
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
2774
|
+
): BinaryWriter {
|
|
1551
2775
|
if (message.CorrelationId !== undefined) {
|
|
1552
2776
|
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1553
2777
|
}
|
|
@@ -1564,12 +2788,12 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1564
2788
|
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1565
2789
|
}
|
|
1566
2790
|
for (const v of message.Data) {
|
|
1567
|
-
|
|
2791
|
+
EventStoreAccessPreflightResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1568
2792
|
}
|
|
1569
2793
|
return writer;
|
|
1570
2794
|
},
|
|
1571
2795
|
|
|
1572
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2796
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
1573
2797
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1574
2798
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1575
2799
|
if (previousRecursionDepth >= 100) {
|
|
@@ -1578,7 +2802,7 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1578
2802
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1579
2803
|
try {
|
|
1580
2804
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1581
|
-
const message =
|
|
2805
|
+
const message = createBaseQueryResultIEnumerableEventStoreAccessPreflightResponse();
|
|
1582
2806
|
while (reader.pos < end) {
|
|
1583
2807
|
const tag = reader.uint32();
|
|
1584
2808
|
switch (tag >>> 3) {
|
|
@@ -1627,7 +2851,7 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1627
2851
|
break;
|
|
1628
2852
|
}
|
|
1629
2853
|
|
|
1630
|
-
message.Data.push(
|
|
2854
|
+
message.Data.push(EventStoreAccessPreflightResponse.decode(reader, reader.uint32()));
|
|
1631
2855
|
continue;
|
|
1632
2856
|
}
|
|
1633
2857
|
}
|
|
@@ -1642,7 +2866,7 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1642
2866
|
}
|
|
1643
2867
|
},
|
|
1644
2868
|
|
|
1645
|
-
fromJSON(object: any):
|
|
2869
|
+
fromJSON(object: any): QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
1646
2870
|
return {
|
|
1647
2871
|
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1648
2872
|
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
@@ -1653,11 +2877,13 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1653
2877
|
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1654
2878
|
: [],
|
|
1655
2879
|
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1656
|
-
Data: globalThis.Array.isArray(object?.Data)
|
|
2880
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
2881
|
+
? object.Data.map((e: any) => EventStoreAccessPreflightResponse.fromJSON(e))
|
|
2882
|
+
: [],
|
|
1657
2883
|
};
|
|
1658
2884
|
},
|
|
1659
2885
|
|
|
1660
|
-
toJSON(message:
|
|
2886
|
+
toJSON(message: QueryResultIEnumerableEventStoreAccessPreflightResponse): unknown {
|
|
1661
2887
|
const obj: any = {};
|
|
1662
2888
|
if (message.CorrelationId !== undefined) {
|
|
1663
2889
|
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
@@ -1675,18 +2901,20 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1675
2901
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1676
2902
|
}
|
|
1677
2903
|
if (message.Data?.length) {
|
|
1678
|
-
obj.Data = message.Data.map((e) =>
|
|
2904
|
+
obj.Data = message.Data.map((e) => EventStoreAccessPreflightResponse.toJSON(e));
|
|
1679
2905
|
}
|
|
1680
2906
|
return obj;
|
|
1681
2907
|
},
|
|
1682
2908
|
|
|
1683
|
-
create(
|
|
1684
|
-
|
|
2909
|
+
create(
|
|
2910
|
+
base?: DeepPartial<QueryResultIEnumerableEventStoreAccessPreflightResponse>,
|
|
2911
|
+
): QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
2912
|
+
return QueryResultIEnumerableEventStoreAccessPreflightResponse.fromPartial(base ?? {});
|
|
1685
2913
|
},
|
|
1686
2914
|
fromPartial(
|
|
1687
|
-
object: DeepPartial<
|
|
1688
|
-
):
|
|
1689
|
-
const message =
|
|
2915
|
+
object: DeepPartial<QueryResultIEnumerableEventStoreAccessPreflightResponse>,
|
|
2916
|
+
): QueryResultIEnumerableEventStoreAccessPreflightResponse {
|
|
2917
|
+
const message = createBaseQueryResultIEnumerableEventStoreAccessPreflightResponse();
|
|
1690
2918
|
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1691
2919
|
? Guid.fromPartial(object.CorrelationId)
|
|
1692
2920
|
: undefined;
|
|
@@ -1694,7 +2922,7 @@ export const QueryResultIEnumerableApplicationResponse: MessageFns<QueryResultIE
|
|
|
1694
2922
|
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1695
2923
|
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1696
2924
|
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1697
|
-
message.Data = object.Data?.map((e) =>
|
|
2925
|
+
message.Data = object.Data?.map((e) => EventStoreAccessPreflightResponse.fromPartial(e)) || [];
|
|
1698
2926
|
return message;
|
|
1699
2927
|
},
|
|
1700
2928
|
};
|
|
@@ -2153,6 +3381,125 @@ export const RevokeAdministratorRequest: MessageFns<RevokeAdministratorRequest>
|
|
|
2153
3381
|
},
|
|
2154
3382
|
};
|
|
2155
3383
|
|
|
3384
|
+
function createBaseRevokeEventStoreAccessRequest(): RevokeEventStoreAccessRequest {
|
|
3385
|
+
return { EventStore: "", Namespace: "", Holder: undefined, AllEventStores: false };
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
export const RevokeEventStoreAccessRequest: MessageFns<RevokeEventStoreAccessRequest> = {
|
|
3389
|
+
encode(message: RevokeEventStoreAccessRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3390
|
+
if (message.EventStore !== "") {
|
|
3391
|
+
writer.uint32(34).string(message.EventStore);
|
|
3392
|
+
}
|
|
3393
|
+
if (message.Namespace !== "") {
|
|
3394
|
+
writer.uint32(42).string(message.Namespace);
|
|
3395
|
+
}
|
|
3396
|
+
if (message.Holder !== undefined) {
|
|
3397
|
+
EventStoreAccessHolder.encode(message.Holder, writer.uint32(50).fork()).join();
|
|
3398
|
+
}
|
|
3399
|
+
if (message.AllEventStores !== false) {
|
|
3400
|
+
writer.uint32(56).bool(message.AllEventStores);
|
|
3401
|
+
}
|
|
3402
|
+
return writer;
|
|
3403
|
+
},
|
|
3404
|
+
|
|
3405
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RevokeEventStoreAccessRequest {
|
|
3406
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3407
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3408
|
+
if (previousRecursionDepth >= 100) {
|
|
3409
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3410
|
+
}
|
|
3411
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3412
|
+
try {
|
|
3413
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3414
|
+
const message = createBaseRevokeEventStoreAccessRequest();
|
|
3415
|
+
while (reader.pos < end) {
|
|
3416
|
+
const tag = reader.uint32();
|
|
3417
|
+
switch (tag >>> 3) {
|
|
3418
|
+
case 4: {
|
|
3419
|
+
if (tag !== 34) {
|
|
3420
|
+
break;
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
message.EventStore = reader.string();
|
|
3424
|
+
continue;
|
|
3425
|
+
}
|
|
3426
|
+
case 5: {
|
|
3427
|
+
if (tag !== 42) {
|
|
3428
|
+
break;
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
message.Namespace = reader.string();
|
|
3432
|
+
continue;
|
|
3433
|
+
}
|
|
3434
|
+
case 6: {
|
|
3435
|
+
if (tag !== 50) {
|
|
3436
|
+
break;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
message.Holder = EventStoreAccessHolder.decode(reader, reader.uint32());
|
|
3440
|
+
continue;
|
|
3441
|
+
}
|
|
3442
|
+
case 7: {
|
|
3443
|
+
if (tag !== 56) {
|
|
3444
|
+
break;
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
message.AllEventStores = reader.bool();
|
|
3448
|
+
continue;
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3452
|
+
break;
|
|
3453
|
+
}
|
|
3454
|
+
reader.skip(tag & 7);
|
|
3455
|
+
}
|
|
3456
|
+
return message;
|
|
3457
|
+
} finally {
|
|
3458
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3459
|
+
}
|
|
3460
|
+
},
|
|
3461
|
+
|
|
3462
|
+
fromJSON(object: any): RevokeEventStoreAccessRequest {
|
|
3463
|
+
return {
|
|
3464
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
3465
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
3466
|
+
Holder: isSet(object.Holder) ? EventStoreAccessHolder.fromJSON(object.Holder) : undefined,
|
|
3467
|
+
AllEventStores: isSet(object.AllEventStores) ? globalThis.Boolean(object.AllEventStores) : false,
|
|
3468
|
+
};
|
|
3469
|
+
},
|
|
3470
|
+
|
|
3471
|
+
toJSON(message: RevokeEventStoreAccessRequest): unknown {
|
|
3472
|
+
const obj: any = {};
|
|
3473
|
+
if (message.EventStore !== "") {
|
|
3474
|
+
obj.EventStore = message.EventStore;
|
|
3475
|
+
}
|
|
3476
|
+
if (message.Namespace !== "") {
|
|
3477
|
+
obj.Namespace = message.Namespace;
|
|
3478
|
+
}
|
|
3479
|
+
if (message.Holder !== undefined) {
|
|
3480
|
+
obj.Holder = EventStoreAccessHolder.toJSON(message.Holder);
|
|
3481
|
+
}
|
|
3482
|
+
if (message.AllEventStores !== false) {
|
|
3483
|
+
obj.AllEventStores = message.AllEventStores;
|
|
3484
|
+
}
|
|
3485
|
+
return obj;
|
|
3486
|
+
},
|
|
3487
|
+
|
|
3488
|
+
create(base?: DeepPartial<RevokeEventStoreAccessRequest>): RevokeEventStoreAccessRequest {
|
|
3489
|
+
return RevokeEventStoreAccessRequest.fromPartial(base ?? {});
|
|
3490
|
+
},
|
|
3491
|
+
fromPartial(object: DeepPartial<RevokeEventStoreAccessRequest>): RevokeEventStoreAccessRequest {
|
|
3492
|
+
const message = createBaseRevokeEventStoreAccessRequest();
|
|
3493
|
+
message.EventStore = object.EventStore ?? "";
|
|
3494
|
+
message.Namespace = object.Namespace ?? "";
|
|
3495
|
+
message.Holder = (object.Holder !== undefined && object.Holder !== null)
|
|
3496
|
+
? EventStoreAccessHolder.fromPartial(object.Holder)
|
|
3497
|
+
: undefined;
|
|
3498
|
+
message.AllEventStores = object.AllEventStores ?? false;
|
|
3499
|
+
return message;
|
|
3500
|
+
},
|
|
3501
|
+
};
|
|
3502
|
+
|
|
2156
3503
|
function createBaseSerializableDateTimeOffset(): SerializableDateTimeOffset {
|
|
2157
3504
|
return { Value: "" };
|
|
2158
3505
|
}
|
|
@@ -2624,6 +3971,15 @@ export const AdministratorsDefinition = {
|
|
|
2624
3971
|
name: "Administrators",
|
|
2625
3972
|
fullName: "Cratis.Chronicle.Contracts.Security.Administrators",
|
|
2626
3973
|
methods: {
|
|
3974
|
+
all: {
|
|
3975
|
+
name: "All",
|
|
3976
|
+
requestType: Empty as typeof Empty,
|
|
3977
|
+
requestStream: false,
|
|
3978
|
+
responseType:
|
|
3979
|
+
QueryResultIEnumerableEventStoreAccessGrantsResponse as typeof QueryResultIEnumerableEventStoreAccessGrantsResponse,
|
|
3980
|
+
responseStream: false,
|
|
3981
|
+
options: {},
|
|
3982
|
+
},
|
|
2627
3983
|
allAdministrators: {
|
|
2628
3984
|
name: "AllAdministrators",
|
|
2629
3985
|
requestType: Empty as typeof Empty,
|
|
@@ -2640,6 +3996,14 @@ export const AdministratorsDefinition = {
|
|
|
2640
3996
|
responseStream: false,
|
|
2641
3997
|
options: {},
|
|
2642
3998
|
},
|
|
3999
|
+
grantEventStoreAccess: {
|
|
4000
|
+
name: "GrantEventStoreAccess",
|
|
4001
|
+
requestType: GrantEventStoreAccessRequest as typeof GrantEventStoreAccessRequest,
|
|
4002
|
+
requestStream: false,
|
|
4003
|
+
responseType: CommandResult as typeof CommandResult,
|
|
4004
|
+
responseStream: false,
|
|
4005
|
+
options: {},
|
|
4006
|
+
},
|
|
2643
4007
|
revokeAdministrator: {
|
|
2644
4008
|
name: "RevokeAdministrator",
|
|
2645
4009
|
requestType: RevokeAdministratorRequest as typeof RevokeAdministratorRequest,
|
|
@@ -2648,10 +4012,31 @@ export const AdministratorsDefinition = {
|
|
|
2648
4012
|
responseStream: false,
|
|
2649
4013
|
options: {},
|
|
2650
4014
|
},
|
|
4015
|
+
revokeEventStoreAccess: {
|
|
4016
|
+
name: "RevokeEventStoreAccess",
|
|
4017
|
+
requestType: RevokeEventStoreAccessRequest as typeof RevokeEventStoreAccessRequest,
|
|
4018
|
+
requestStream: false,
|
|
4019
|
+
responseType: CommandResultBoolean as typeof CommandResultBoolean,
|
|
4020
|
+
responseStream: false,
|
|
4021
|
+
options: {},
|
|
4022
|
+
},
|
|
4023
|
+
uncovered: {
|
|
4024
|
+
name: "Uncovered",
|
|
4025
|
+
requestType: Empty as typeof Empty,
|
|
4026
|
+
requestStream: false,
|
|
4027
|
+
responseType:
|
|
4028
|
+
QueryResultIEnumerableEventStoreAccessPreflightResponse as typeof QueryResultIEnumerableEventStoreAccessPreflightResponse,
|
|
4029
|
+
responseStream: false,
|
|
4030
|
+
options: {},
|
|
4031
|
+
},
|
|
2651
4032
|
},
|
|
2652
4033
|
} as const;
|
|
2653
4034
|
|
|
2654
4035
|
export interface AdministratorsServiceImplementation<CallContextExt = {}> {
|
|
4036
|
+
all(
|
|
4037
|
+
request: Empty,
|
|
4038
|
+
context: CallContext & CallContextExt,
|
|
4039
|
+
): Promise<DeepPartial<QueryResultIEnumerableEventStoreAccessGrantsResponse>>;
|
|
2655
4040
|
allAdministrators(
|
|
2656
4041
|
request: Empty,
|
|
2657
4042
|
context: CallContext & CallContextExt,
|
|
@@ -2660,13 +4045,29 @@ export interface AdministratorsServiceImplementation<CallContextExt = {}> {
|
|
|
2660
4045
|
request: GrantAdministratorRequest,
|
|
2661
4046
|
context: CallContext & CallContextExt,
|
|
2662
4047
|
): Promise<DeepPartial<CommandResult>>;
|
|
4048
|
+
grantEventStoreAccess(
|
|
4049
|
+
request: GrantEventStoreAccessRequest,
|
|
4050
|
+
context: CallContext & CallContextExt,
|
|
4051
|
+
): Promise<DeepPartial<CommandResult>>;
|
|
2663
4052
|
revokeAdministrator(
|
|
2664
4053
|
request: RevokeAdministratorRequest,
|
|
2665
4054
|
context: CallContext & CallContextExt,
|
|
2666
4055
|
): Promise<DeepPartial<CommandResult>>;
|
|
4056
|
+
revokeEventStoreAccess(
|
|
4057
|
+
request: RevokeEventStoreAccessRequest,
|
|
4058
|
+
context: CallContext & CallContextExt,
|
|
4059
|
+
): Promise<DeepPartial<CommandResultBoolean>>;
|
|
4060
|
+
uncovered(
|
|
4061
|
+
request: Empty,
|
|
4062
|
+
context: CallContext & CallContextExt,
|
|
4063
|
+
): Promise<DeepPartial<QueryResultIEnumerableEventStoreAccessPreflightResponse>>;
|
|
2667
4064
|
}
|
|
2668
4065
|
|
|
2669
4066
|
export interface AdministratorsClient<CallOptionsExt = {}> {
|
|
4067
|
+
all(
|
|
4068
|
+
request: DeepPartial<Empty>,
|
|
4069
|
+
options?: CallOptions & CallOptionsExt,
|
|
4070
|
+
): Promise<QueryResultIEnumerableEventStoreAccessGrantsResponse>;
|
|
2670
4071
|
allAdministrators(
|
|
2671
4072
|
request: DeepPartial<Empty>,
|
|
2672
4073
|
options?: CallOptions & CallOptionsExt,
|
|
@@ -2675,10 +4076,22 @@ export interface AdministratorsClient<CallOptionsExt = {}> {
|
|
|
2675
4076
|
request: DeepPartial<GrantAdministratorRequest>,
|
|
2676
4077
|
options?: CallOptions & CallOptionsExt,
|
|
2677
4078
|
): Promise<CommandResult>;
|
|
4079
|
+
grantEventStoreAccess(
|
|
4080
|
+
request: DeepPartial<GrantEventStoreAccessRequest>,
|
|
4081
|
+
options?: CallOptions & CallOptionsExt,
|
|
4082
|
+
): Promise<CommandResult>;
|
|
2678
4083
|
revokeAdministrator(
|
|
2679
4084
|
request: DeepPartial<RevokeAdministratorRequest>,
|
|
2680
4085
|
options?: CallOptions & CallOptionsExt,
|
|
2681
4086
|
): Promise<CommandResult>;
|
|
4087
|
+
revokeEventStoreAccess(
|
|
4088
|
+
request: DeepPartial<RevokeEventStoreAccessRequest>,
|
|
4089
|
+
options?: CallOptions & CallOptionsExt,
|
|
4090
|
+
): Promise<CommandResultBoolean>;
|
|
4091
|
+
uncovered(
|
|
4092
|
+
request: DeepPartial<Empty>,
|
|
4093
|
+
options?: CallOptions & CallOptionsExt,
|
|
4094
|
+
): Promise<QueryResultIEnumerableEventStoreAccessPreflightResponse>;
|
|
2682
4095
|
}
|
|
2683
4096
|
|
|
2684
4097
|
export type ApplicationsDefinition = typeof ApplicationsDefinition;
|