@cratis/chronicle.contracts 19.163.0 → 19.164.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/federation.d.ts +38 -0
- package/dist/cjs/generated/federation.d.ts.map +1 -1
- package/dist/cjs/generated/federation.js +510 -0
- package/dist/cjs/generated/federation.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +1 -1
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.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/federation.d.ts +38 -0
- package/dist/esm/generated/federation.d.ts.map +1 -1
- package/dist/esm/generated/federation.js +509 -1
- package/dist/esm/generated/federation.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/federation.d.ts +38 -0
- package/dist/generated/federation.d.ts.map +1 -1
- package/dist/generated/federation.js +508 -0
- package/dist/generated/federation.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/federation.ts +587 -0
- package/generated/index.ts +1 -1
- package/package.json +1 -1
package/generated/federation.ts
CHANGED
|
@@ -247,6 +247,9 @@ export interface FederationEnrollmentStatusResponse {
|
|
|
247
247
|
Endpoint: string;
|
|
248
248
|
AuthorityFingerprint: string;
|
|
249
249
|
Expired: boolean;
|
|
250
|
+
Connected: boolean;
|
|
251
|
+
LastExchange: SerializableDateTimeOffset | undefined;
|
|
252
|
+
LastError: string;
|
|
250
253
|
}
|
|
251
254
|
|
|
252
255
|
export interface FederationGrantInformationResponse {
|
|
@@ -291,6 +294,22 @@ export interface FederationPolicyResponse {
|
|
|
291
294
|
ChangedBy: string;
|
|
292
295
|
}
|
|
293
296
|
|
|
297
|
+
export interface FederationSubjectLinkResponse {
|
|
298
|
+
Subject: string;
|
|
299
|
+
Connected: boolean;
|
|
300
|
+
LastActivity: SerializableDateTimeOffset | undefined;
|
|
301
|
+
OutboundLastPull: SerializableDateTimeOffset | undefined;
|
|
302
|
+
OutboundEvents: bigint;
|
|
303
|
+
OutboundBytes: bigint;
|
|
304
|
+
OutboundThrottled: bigint;
|
|
305
|
+
InboundState: string;
|
|
306
|
+
InboundLastReceived: SerializableDateTimeOffset | undefined;
|
|
307
|
+
InboundEvents: bigint;
|
|
308
|
+
InboundBytes: bigint;
|
|
309
|
+
InboundLag: bigint;
|
|
310
|
+
LastError: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
294
313
|
export interface PullRequest {
|
|
295
314
|
EventStore: string;
|
|
296
315
|
Namespace: string;
|
|
@@ -369,6 +388,16 @@ export interface QueryResultIEnumerableFederationPolicyResponse {
|
|
|
369
388
|
Data: FederationPolicyResponse[];
|
|
370
389
|
}
|
|
371
390
|
|
|
391
|
+
export interface QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
392
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
393
|
+
CorrelationId: Guid | undefined;
|
|
394
|
+
IsAuthorized: boolean;
|
|
395
|
+
ValidationResults: ValidationResult[];
|
|
396
|
+
ExceptionMessages: string[];
|
|
397
|
+
ExceptionStackTrace: string;
|
|
398
|
+
Data: FederationSubjectLinkResponse[];
|
|
399
|
+
}
|
|
400
|
+
|
|
372
401
|
export interface RedeemFederationEnrollmentRequest {
|
|
373
402
|
Code: string;
|
|
374
403
|
}
|
|
@@ -2330,6 +2359,9 @@ function createBaseFederationEnrollmentStatusResponse(): FederationEnrollmentSta
|
|
|
2330
2359
|
Endpoint: "",
|
|
2331
2360
|
AuthorityFingerprint: "",
|
|
2332
2361
|
Expired: false,
|
|
2362
|
+
Connected: false,
|
|
2363
|
+
LastExchange: undefined,
|
|
2364
|
+
LastError: "",
|
|
2333
2365
|
};
|
|
2334
2366
|
}
|
|
2335
2367
|
|
|
@@ -2359,6 +2391,15 @@ export const FederationEnrollmentStatusResponse: MessageFns<FederationEnrollment
|
|
|
2359
2391
|
if (message.Expired !== false) {
|
|
2360
2392
|
writer.uint32(64).bool(message.Expired);
|
|
2361
2393
|
}
|
|
2394
|
+
if (message.Connected !== false) {
|
|
2395
|
+
writer.uint32(72).bool(message.Connected);
|
|
2396
|
+
}
|
|
2397
|
+
if (message.LastExchange !== undefined) {
|
|
2398
|
+
SerializableDateTimeOffset.encode(message.LastExchange, writer.uint32(82).fork()).join();
|
|
2399
|
+
}
|
|
2400
|
+
if (message.LastError !== "") {
|
|
2401
|
+
writer.uint32(90).string(message.LastError);
|
|
2402
|
+
}
|
|
2362
2403
|
return writer;
|
|
2363
2404
|
},
|
|
2364
2405
|
|
|
@@ -2439,6 +2480,30 @@ export const FederationEnrollmentStatusResponse: MessageFns<FederationEnrollment
|
|
|
2439
2480
|
message.Expired = reader.bool();
|
|
2440
2481
|
continue;
|
|
2441
2482
|
}
|
|
2483
|
+
case 9: {
|
|
2484
|
+
if (tag !== 72) {
|
|
2485
|
+
break;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
message.Connected = reader.bool();
|
|
2489
|
+
continue;
|
|
2490
|
+
}
|
|
2491
|
+
case 10: {
|
|
2492
|
+
if (tag !== 82) {
|
|
2493
|
+
break;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
message.LastExchange = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
2497
|
+
continue;
|
|
2498
|
+
}
|
|
2499
|
+
case 11: {
|
|
2500
|
+
if (tag !== 90) {
|
|
2501
|
+
break;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
message.LastError = reader.string();
|
|
2505
|
+
continue;
|
|
2506
|
+
}
|
|
2442
2507
|
}
|
|
2443
2508
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2444
2509
|
break;
|
|
@@ -2461,6 +2526,9 @@ export const FederationEnrollmentStatusResponse: MessageFns<FederationEnrollment
|
|
|
2461
2526
|
Endpoint: isSet(object.Endpoint) ? globalThis.String(object.Endpoint) : "",
|
|
2462
2527
|
AuthorityFingerprint: isSet(object.AuthorityFingerprint) ? globalThis.String(object.AuthorityFingerprint) : "",
|
|
2463
2528
|
Expired: isSet(object.Expired) ? globalThis.Boolean(object.Expired) : false,
|
|
2529
|
+
Connected: isSet(object.Connected) ? globalThis.Boolean(object.Connected) : false,
|
|
2530
|
+
LastExchange: isSet(object.LastExchange) ? SerializableDateTimeOffset.fromJSON(object.LastExchange) : undefined,
|
|
2531
|
+
LastError: isSet(object.LastError) ? globalThis.String(object.LastError) : "",
|
|
2464
2532
|
};
|
|
2465
2533
|
},
|
|
2466
2534
|
|
|
@@ -2490,6 +2558,15 @@ export const FederationEnrollmentStatusResponse: MessageFns<FederationEnrollment
|
|
|
2490
2558
|
if (message.Expired !== false) {
|
|
2491
2559
|
obj.Expired = message.Expired;
|
|
2492
2560
|
}
|
|
2561
|
+
if (message.Connected !== false) {
|
|
2562
|
+
obj.Connected = message.Connected;
|
|
2563
|
+
}
|
|
2564
|
+
if (message.LastExchange !== undefined) {
|
|
2565
|
+
obj.LastExchange = SerializableDateTimeOffset.toJSON(message.LastExchange);
|
|
2566
|
+
}
|
|
2567
|
+
if (message.LastError !== "") {
|
|
2568
|
+
obj.LastError = message.LastError;
|
|
2569
|
+
}
|
|
2493
2570
|
return obj;
|
|
2494
2571
|
},
|
|
2495
2572
|
|
|
@@ -2510,6 +2587,11 @@ export const FederationEnrollmentStatusResponse: MessageFns<FederationEnrollment
|
|
|
2510
2587
|
message.Endpoint = object.Endpoint ?? "";
|
|
2511
2588
|
message.AuthorityFingerprint = object.AuthorityFingerprint ?? "";
|
|
2512
2589
|
message.Expired = object.Expired ?? false;
|
|
2590
|
+
message.Connected = object.Connected ?? false;
|
|
2591
|
+
message.LastExchange = (object.LastExchange !== undefined && object.LastExchange !== null)
|
|
2592
|
+
? SerializableDateTimeOffset.fromPartial(object.LastExchange)
|
|
2593
|
+
: undefined;
|
|
2594
|
+
message.LastError = object.LastError ?? "";
|
|
2513
2595
|
return message;
|
|
2514
2596
|
},
|
|
2515
2597
|
};
|
|
@@ -3256,6 +3338,321 @@ export const FederationPolicyResponse: MessageFns<FederationPolicyResponse> = {
|
|
|
3256
3338
|
},
|
|
3257
3339
|
};
|
|
3258
3340
|
|
|
3341
|
+
function createBaseFederationSubjectLinkResponse(): FederationSubjectLinkResponse {
|
|
3342
|
+
return {
|
|
3343
|
+
Subject: "",
|
|
3344
|
+
Connected: false,
|
|
3345
|
+
LastActivity: undefined,
|
|
3346
|
+
OutboundLastPull: undefined,
|
|
3347
|
+
OutboundEvents: 0n,
|
|
3348
|
+
OutboundBytes: 0n,
|
|
3349
|
+
OutboundThrottled: 0n,
|
|
3350
|
+
InboundState: "",
|
|
3351
|
+
InboundLastReceived: undefined,
|
|
3352
|
+
InboundEvents: 0n,
|
|
3353
|
+
InboundBytes: 0n,
|
|
3354
|
+
InboundLag: 0n,
|
|
3355
|
+
LastError: "",
|
|
3356
|
+
};
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
export const FederationSubjectLinkResponse: MessageFns<FederationSubjectLinkResponse> = {
|
|
3360
|
+
encode(message: FederationSubjectLinkResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3361
|
+
if (message.Subject !== "") {
|
|
3362
|
+
writer.uint32(10).string(message.Subject);
|
|
3363
|
+
}
|
|
3364
|
+
if (message.Connected !== false) {
|
|
3365
|
+
writer.uint32(16).bool(message.Connected);
|
|
3366
|
+
}
|
|
3367
|
+
if (message.LastActivity !== undefined) {
|
|
3368
|
+
SerializableDateTimeOffset.encode(message.LastActivity, writer.uint32(26).fork()).join();
|
|
3369
|
+
}
|
|
3370
|
+
if (message.OutboundLastPull !== undefined) {
|
|
3371
|
+
SerializableDateTimeOffset.encode(message.OutboundLastPull, writer.uint32(34).fork()).join();
|
|
3372
|
+
}
|
|
3373
|
+
if (message.OutboundEvents !== 0n) {
|
|
3374
|
+
if (BigInt.asUintN(64, message.OutboundEvents) !== message.OutboundEvents) {
|
|
3375
|
+
throw new globalThis.Error("value provided for field message.OutboundEvents of type uint64 too large");
|
|
3376
|
+
}
|
|
3377
|
+
writer.uint32(40).uint64(message.OutboundEvents);
|
|
3378
|
+
}
|
|
3379
|
+
if (message.OutboundBytes !== 0n) {
|
|
3380
|
+
if (BigInt.asUintN(64, message.OutboundBytes) !== message.OutboundBytes) {
|
|
3381
|
+
throw new globalThis.Error("value provided for field message.OutboundBytes of type uint64 too large");
|
|
3382
|
+
}
|
|
3383
|
+
writer.uint32(48).uint64(message.OutboundBytes);
|
|
3384
|
+
}
|
|
3385
|
+
if (message.OutboundThrottled !== 0n) {
|
|
3386
|
+
if (BigInt.asUintN(64, message.OutboundThrottled) !== message.OutboundThrottled) {
|
|
3387
|
+
throw new globalThis.Error("value provided for field message.OutboundThrottled of type uint64 too large");
|
|
3388
|
+
}
|
|
3389
|
+
writer.uint32(56).uint64(message.OutboundThrottled);
|
|
3390
|
+
}
|
|
3391
|
+
if (message.InboundState !== "") {
|
|
3392
|
+
writer.uint32(66).string(message.InboundState);
|
|
3393
|
+
}
|
|
3394
|
+
if (message.InboundLastReceived !== undefined) {
|
|
3395
|
+
SerializableDateTimeOffset.encode(message.InboundLastReceived, writer.uint32(74).fork()).join();
|
|
3396
|
+
}
|
|
3397
|
+
if (message.InboundEvents !== 0n) {
|
|
3398
|
+
if (BigInt.asUintN(64, message.InboundEvents) !== message.InboundEvents) {
|
|
3399
|
+
throw new globalThis.Error("value provided for field message.InboundEvents of type uint64 too large");
|
|
3400
|
+
}
|
|
3401
|
+
writer.uint32(80).uint64(message.InboundEvents);
|
|
3402
|
+
}
|
|
3403
|
+
if (message.InboundBytes !== 0n) {
|
|
3404
|
+
if (BigInt.asUintN(64, message.InboundBytes) !== message.InboundBytes) {
|
|
3405
|
+
throw new globalThis.Error("value provided for field message.InboundBytes of type uint64 too large");
|
|
3406
|
+
}
|
|
3407
|
+
writer.uint32(88).uint64(message.InboundBytes);
|
|
3408
|
+
}
|
|
3409
|
+
if (message.InboundLag !== 0n) {
|
|
3410
|
+
if (BigInt.asUintN(64, message.InboundLag) !== message.InboundLag) {
|
|
3411
|
+
throw new globalThis.Error("value provided for field message.InboundLag of type uint64 too large");
|
|
3412
|
+
}
|
|
3413
|
+
writer.uint32(96).uint64(message.InboundLag);
|
|
3414
|
+
}
|
|
3415
|
+
if (message.LastError !== "") {
|
|
3416
|
+
writer.uint32(106).string(message.LastError);
|
|
3417
|
+
}
|
|
3418
|
+
return writer;
|
|
3419
|
+
},
|
|
3420
|
+
|
|
3421
|
+
decode(input: BinaryReader | Uint8Array, length?: number): FederationSubjectLinkResponse {
|
|
3422
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3423
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3424
|
+
if (previousRecursionDepth >= 100) {
|
|
3425
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3426
|
+
}
|
|
3427
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3428
|
+
try {
|
|
3429
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3430
|
+
const message = createBaseFederationSubjectLinkResponse();
|
|
3431
|
+
while (reader.pos < end) {
|
|
3432
|
+
const tag = reader.uint32();
|
|
3433
|
+
switch (tag >>> 3) {
|
|
3434
|
+
case 1: {
|
|
3435
|
+
if (tag !== 10) {
|
|
3436
|
+
break;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
message.Subject = reader.string();
|
|
3440
|
+
continue;
|
|
3441
|
+
}
|
|
3442
|
+
case 2: {
|
|
3443
|
+
if (tag !== 16) {
|
|
3444
|
+
break;
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
message.Connected = reader.bool();
|
|
3448
|
+
continue;
|
|
3449
|
+
}
|
|
3450
|
+
case 3: {
|
|
3451
|
+
if (tag !== 26) {
|
|
3452
|
+
break;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
message.LastActivity = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
3456
|
+
continue;
|
|
3457
|
+
}
|
|
3458
|
+
case 4: {
|
|
3459
|
+
if (tag !== 34) {
|
|
3460
|
+
break;
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
message.OutboundLastPull = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
3464
|
+
continue;
|
|
3465
|
+
}
|
|
3466
|
+
case 5: {
|
|
3467
|
+
if (tag !== 40) {
|
|
3468
|
+
break;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
message.OutboundEvents = reader.uint64() as bigint;
|
|
3472
|
+
continue;
|
|
3473
|
+
}
|
|
3474
|
+
case 6: {
|
|
3475
|
+
if (tag !== 48) {
|
|
3476
|
+
break;
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
message.OutboundBytes = reader.uint64() as bigint;
|
|
3480
|
+
continue;
|
|
3481
|
+
}
|
|
3482
|
+
case 7: {
|
|
3483
|
+
if (tag !== 56) {
|
|
3484
|
+
break;
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
message.OutboundThrottled = reader.uint64() as bigint;
|
|
3488
|
+
continue;
|
|
3489
|
+
}
|
|
3490
|
+
case 8: {
|
|
3491
|
+
if (tag !== 66) {
|
|
3492
|
+
break;
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
message.InboundState = reader.string();
|
|
3496
|
+
continue;
|
|
3497
|
+
}
|
|
3498
|
+
case 9: {
|
|
3499
|
+
if (tag !== 74) {
|
|
3500
|
+
break;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
message.InboundLastReceived = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
3504
|
+
continue;
|
|
3505
|
+
}
|
|
3506
|
+
case 10: {
|
|
3507
|
+
if (tag !== 80) {
|
|
3508
|
+
break;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
message.InboundEvents = reader.uint64() as bigint;
|
|
3512
|
+
continue;
|
|
3513
|
+
}
|
|
3514
|
+
case 11: {
|
|
3515
|
+
if (tag !== 88) {
|
|
3516
|
+
break;
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3519
|
+
message.InboundBytes = reader.uint64() as bigint;
|
|
3520
|
+
continue;
|
|
3521
|
+
}
|
|
3522
|
+
case 12: {
|
|
3523
|
+
if (tag !== 96) {
|
|
3524
|
+
break;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
message.InboundLag = reader.uint64() as bigint;
|
|
3528
|
+
continue;
|
|
3529
|
+
}
|
|
3530
|
+
case 13: {
|
|
3531
|
+
if (tag !== 106) {
|
|
3532
|
+
break;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
message.LastError = reader.string();
|
|
3536
|
+
continue;
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3540
|
+
break;
|
|
3541
|
+
}
|
|
3542
|
+
reader.skip(tag & 7);
|
|
3543
|
+
}
|
|
3544
|
+
return message;
|
|
3545
|
+
} finally {
|
|
3546
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3547
|
+
}
|
|
3548
|
+
},
|
|
3549
|
+
|
|
3550
|
+
fromJSON(object: any): FederationSubjectLinkResponse {
|
|
3551
|
+
return {
|
|
3552
|
+
Subject: isSet(object.Subject) ? globalThis.String(object.Subject) : "",
|
|
3553
|
+
Connected: isSet(object.Connected) ? globalThis.Boolean(object.Connected) : false,
|
|
3554
|
+
LastActivity: isSet(object.LastActivity) ? SerializableDateTimeOffset.fromJSON(object.LastActivity) : undefined,
|
|
3555
|
+
OutboundLastPull: isSet(object.OutboundLastPull)
|
|
3556
|
+
? SerializableDateTimeOffset.fromJSON(object.OutboundLastPull)
|
|
3557
|
+
: undefined,
|
|
3558
|
+
OutboundEvents: isSet(object.OutboundEvents) ? BigInt(object.OutboundEvents) : 0n,
|
|
3559
|
+
OutboundBytes: isSet(object.OutboundBytes) ? BigInt(object.OutboundBytes) : 0n,
|
|
3560
|
+
OutboundThrottled: isSet(object.OutboundThrottled) ? BigInt(object.OutboundThrottled) : 0n,
|
|
3561
|
+
InboundState: isSet(object.InboundState) ? globalThis.String(object.InboundState) : "",
|
|
3562
|
+
InboundLastReceived: isSet(object.InboundLastReceived)
|
|
3563
|
+
? SerializableDateTimeOffset.fromJSON(object.InboundLastReceived)
|
|
3564
|
+
: undefined,
|
|
3565
|
+
InboundEvents: isSet(object.InboundEvents) ? BigInt(object.InboundEvents) : 0n,
|
|
3566
|
+
InboundBytes: isSet(object.InboundBytes) ? BigInt(object.InboundBytes) : 0n,
|
|
3567
|
+
InboundLag: isSet(object.InboundLag) ? BigInt(object.InboundLag) : 0n,
|
|
3568
|
+
LastError: isSet(object.LastError) ? globalThis.String(object.LastError) : "",
|
|
3569
|
+
};
|
|
3570
|
+
},
|
|
3571
|
+
|
|
3572
|
+
toJSON(message: FederationSubjectLinkResponse): unknown {
|
|
3573
|
+
const obj: any = {};
|
|
3574
|
+
if (message.Subject !== "") {
|
|
3575
|
+
obj.Subject = message.Subject;
|
|
3576
|
+
}
|
|
3577
|
+
if (message.Connected !== false) {
|
|
3578
|
+
obj.Connected = message.Connected;
|
|
3579
|
+
}
|
|
3580
|
+
if (message.LastActivity !== undefined) {
|
|
3581
|
+
obj.LastActivity = SerializableDateTimeOffset.toJSON(message.LastActivity);
|
|
3582
|
+
}
|
|
3583
|
+
if (message.OutboundLastPull !== undefined) {
|
|
3584
|
+
obj.OutboundLastPull = SerializableDateTimeOffset.toJSON(message.OutboundLastPull);
|
|
3585
|
+
}
|
|
3586
|
+
if (message.OutboundEvents !== 0n) {
|
|
3587
|
+
obj.OutboundEvents = message.OutboundEvents.toString();
|
|
3588
|
+
}
|
|
3589
|
+
if (message.OutboundBytes !== 0n) {
|
|
3590
|
+
obj.OutboundBytes = message.OutboundBytes.toString();
|
|
3591
|
+
}
|
|
3592
|
+
if (message.OutboundThrottled !== 0n) {
|
|
3593
|
+
obj.OutboundThrottled = message.OutboundThrottled.toString();
|
|
3594
|
+
}
|
|
3595
|
+
if (message.InboundState !== "") {
|
|
3596
|
+
obj.InboundState = message.InboundState;
|
|
3597
|
+
}
|
|
3598
|
+
if (message.InboundLastReceived !== undefined) {
|
|
3599
|
+
obj.InboundLastReceived = SerializableDateTimeOffset.toJSON(message.InboundLastReceived);
|
|
3600
|
+
}
|
|
3601
|
+
if (message.InboundEvents !== 0n) {
|
|
3602
|
+
obj.InboundEvents = message.InboundEvents.toString();
|
|
3603
|
+
}
|
|
3604
|
+
if (message.InboundBytes !== 0n) {
|
|
3605
|
+
obj.InboundBytes = message.InboundBytes.toString();
|
|
3606
|
+
}
|
|
3607
|
+
if (message.InboundLag !== 0n) {
|
|
3608
|
+
obj.InboundLag = message.InboundLag.toString();
|
|
3609
|
+
}
|
|
3610
|
+
if (message.LastError !== "") {
|
|
3611
|
+
obj.LastError = message.LastError;
|
|
3612
|
+
}
|
|
3613
|
+
return obj;
|
|
3614
|
+
},
|
|
3615
|
+
|
|
3616
|
+
create(base?: DeepPartial<FederationSubjectLinkResponse>): FederationSubjectLinkResponse {
|
|
3617
|
+
return FederationSubjectLinkResponse.fromPartial(base ?? {});
|
|
3618
|
+
},
|
|
3619
|
+
fromPartial(object: DeepPartial<FederationSubjectLinkResponse>): FederationSubjectLinkResponse {
|
|
3620
|
+
const message = createBaseFederationSubjectLinkResponse();
|
|
3621
|
+
message.Subject = object.Subject ?? "";
|
|
3622
|
+
message.Connected = object.Connected ?? false;
|
|
3623
|
+
message.LastActivity = (object.LastActivity !== undefined && object.LastActivity !== null)
|
|
3624
|
+
? SerializableDateTimeOffset.fromPartial(object.LastActivity)
|
|
3625
|
+
: undefined;
|
|
3626
|
+
message.OutboundLastPull = (object.OutboundLastPull !== undefined && object.OutboundLastPull !== null)
|
|
3627
|
+
? SerializableDateTimeOffset.fromPartial(object.OutboundLastPull)
|
|
3628
|
+
: undefined;
|
|
3629
|
+
message.OutboundEvents = (object.OutboundEvents !== undefined && object.OutboundEvents !== null)
|
|
3630
|
+
? BigInt(object.OutboundEvents)
|
|
3631
|
+
: 0n;
|
|
3632
|
+
message.OutboundBytes = (object.OutboundBytes !== undefined && object.OutboundBytes !== null)
|
|
3633
|
+
? BigInt(object.OutboundBytes)
|
|
3634
|
+
: 0n;
|
|
3635
|
+
message.OutboundThrottled = (object.OutboundThrottled !== undefined && object.OutboundThrottled !== null)
|
|
3636
|
+
? BigInt(object.OutboundThrottled)
|
|
3637
|
+
: 0n;
|
|
3638
|
+
message.InboundState = object.InboundState ?? "";
|
|
3639
|
+
message.InboundLastReceived = (object.InboundLastReceived !== undefined && object.InboundLastReceived !== null)
|
|
3640
|
+
? SerializableDateTimeOffset.fromPartial(object.InboundLastReceived)
|
|
3641
|
+
: undefined;
|
|
3642
|
+
message.InboundEvents = (object.InboundEvents !== undefined && object.InboundEvents !== null)
|
|
3643
|
+
? BigInt(object.InboundEvents)
|
|
3644
|
+
: 0n;
|
|
3645
|
+
message.InboundBytes = (object.InboundBytes !== undefined && object.InboundBytes !== null)
|
|
3646
|
+
? BigInt(object.InboundBytes)
|
|
3647
|
+
: 0n;
|
|
3648
|
+
message.InboundLag = (object.InboundLag !== undefined && object.InboundLag !== null)
|
|
3649
|
+
? BigInt(object.InboundLag)
|
|
3650
|
+
: 0n;
|
|
3651
|
+
message.LastError = object.LastError ?? "";
|
|
3652
|
+
return message;
|
|
3653
|
+
},
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3259
3656
|
function createBasePullRequest(): PullRequest {
|
|
3260
3657
|
return { EventStore: "", Namespace: "", FromSequenceNumber: 0n, Limit: 0, EventTypes: [] };
|
|
3261
3658
|
}
|
|
@@ -4597,6 +4994,179 @@ export const QueryResultIEnumerableFederationPolicyResponse: MessageFns<
|
|
|
4597
4994
|
},
|
|
4598
4995
|
};
|
|
4599
4996
|
|
|
4997
|
+
function createBaseQueryResultIEnumerableFederationSubjectLinkResponse(): QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
4998
|
+
return {
|
|
4999
|
+
CorrelationId: undefined,
|
|
5000
|
+
IsAuthorized: false,
|
|
5001
|
+
ValidationResults: [],
|
|
5002
|
+
ExceptionMessages: [],
|
|
5003
|
+
ExceptionStackTrace: "",
|
|
5004
|
+
Data: [],
|
|
5005
|
+
};
|
|
5006
|
+
}
|
|
5007
|
+
|
|
5008
|
+
export const QueryResultIEnumerableFederationSubjectLinkResponse: MessageFns<
|
|
5009
|
+
QueryResultIEnumerableFederationSubjectLinkResponse
|
|
5010
|
+
> = {
|
|
5011
|
+
encode(
|
|
5012
|
+
message: QueryResultIEnumerableFederationSubjectLinkResponse,
|
|
5013
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
5014
|
+
): BinaryWriter {
|
|
5015
|
+
if (message.CorrelationId !== undefined) {
|
|
5016
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
5017
|
+
}
|
|
5018
|
+
if (message.IsAuthorized !== false) {
|
|
5019
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
5020
|
+
}
|
|
5021
|
+
for (const v of message.ValidationResults) {
|
|
5022
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
5023
|
+
}
|
|
5024
|
+
for (const v of message.ExceptionMessages) {
|
|
5025
|
+
writer.uint32(34).string(v!);
|
|
5026
|
+
}
|
|
5027
|
+
if (message.ExceptionStackTrace !== "") {
|
|
5028
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
5029
|
+
}
|
|
5030
|
+
for (const v of message.Data) {
|
|
5031
|
+
FederationSubjectLinkResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
5032
|
+
}
|
|
5033
|
+
return writer;
|
|
5034
|
+
},
|
|
5035
|
+
|
|
5036
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
5037
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5038
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5039
|
+
if (previousRecursionDepth >= 100) {
|
|
5040
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5041
|
+
}
|
|
5042
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5043
|
+
try {
|
|
5044
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5045
|
+
const message = createBaseQueryResultIEnumerableFederationSubjectLinkResponse();
|
|
5046
|
+
while (reader.pos < end) {
|
|
5047
|
+
const tag = reader.uint32();
|
|
5048
|
+
switch (tag >>> 3) {
|
|
5049
|
+
case 1: {
|
|
5050
|
+
if (tag !== 10) {
|
|
5051
|
+
break;
|
|
5052
|
+
}
|
|
5053
|
+
|
|
5054
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
5055
|
+
continue;
|
|
5056
|
+
}
|
|
5057
|
+
case 2: {
|
|
5058
|
+
if (tag !== 16) {
|
|
5059
|
+
break;
|
|
5060
|
+
}
|
|
5061
|
+
|
|
5062
|
+
message.IsAuthorized = reader.bool();
|
|
5063
|
+
continue;
|
|
5064
|
+
}
|
|
5065
|
+
case 3: {
|
|
5066
|
+
if (tag !== 26) {
|
|
5067
|
+
break;
|
|
5068
|
+
}
|
|
5069
|
+
|
|
5070
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
5071
|
+
continue;
|
|
5072
|
+
}
|
|
5073
|
+
case 4: {
|
|
5074
|
+
if (tag !== 34) {
|
|
5075
|
+
break;
|
|
5076
|
+
}
|
|
5077
|
+
|
|
5078
|
+
message.ExceptionMessages.push(reader.string());
|
|
5079
|
+
continue;
|
|
5080
|
+
}
|
|
5081
|
+
case 5: {
|
|
5082
|
+
if (tag !== 42) {
|
|
5083
|
+
break;
|
|
5084
|
+
}
|
|
5085
|
+
|
|
5086
|
+
message.ExceptionStackTrace = reader.string();
|
|
5087
|
+
continue;
|
|
5088
|
+
}
|
|
5089
|
+
case 6: {
|
|
5090
|
+
if (tag !== 50) {
|
|
5091
|
+
break;
|
|
5092
|
+
}
|
|
5093
|
+
|
|
5094
|
+
message.Data.push(FederationSubjectLinkResponse.decode(reader, reader.uint32()));
|
|
5095
|
+
continue;
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5099
|
+
break;
|
|
5100
|
+
}
|
|
5101
|
+
reader.skip(tag & 7);
|
|
5102
|
+
}
|
|
5103
|
+
return message;
|
|
5104
|
+
} finally {
|
|
5105
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5106
|
+
}
|
|
5107
|
+
},
|
|
5108
|
+
|
|
5109
|
+
fromJSON(object: any): QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
5110
|
+
return {
|
|
5111
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
5112
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
5113
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
5114
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
5115
|
+
: [],
|
|
5116
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
5117
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
5118
|
+
: [],
|
|
5119
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
5120
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
5121
|
+
? object.Data.map((e: any) => FederationSubjectLinkResponse.fromJSON(e))
|
|
5122
|
+
: [],
|
|
5123
|
+
};
|
|
5124
|
+
},
|
|
5125
|
+
|
|
5126
|
+
toJSON(message: QueryResultIEnumerableFederationSubjectLinkResponse): unknown {
|
|
5127
|
+
const obj: any = {};
|
|
5128
|
+
if (message.CorrelationId !== undefined) {
|
|
5129
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
5130
|
+
}
|
|
5131
|
+
if (message.IsAuthorized !== false) {
|
|
5132
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
5133
|
+
}
|
|
5134
|
+
if (message.ValidationResults?.length) {
|
|
5135
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
5136
|
+
}
|
|
5137
|
+
if (message.ExceptionMessages?.length) {
|
|
5138
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
5139
|
+
}
|
|
5140
|
+
if (message.ExceptionStackTrace !== "") {
|
|
5141
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
5142
|
+
}
|
|
5143
|
+
if (message.Data?.length) {
|
|
5144
|
+
obj.Data = message.Data.map((e) => FederationSubjectLinkResponse.toJSON(e));
|
|
5145
|
+
}
|
|
5146
|
+
return obj;
|
|
5147
|
+
},
|
|
5148
|
+
|
|
5149
|
+
create(
|
|
5150
|
+
base?: DeepPartial<QueryResultIEnumerableFederationSubjectLinkResponse>,
|
|
5151
|
+
): QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
5152
|
+
return QueryResultIEnumerableFederationSubjectLinkResponse.fromPartial(base ?? {});
|
|
5153
|
+
},
|
|
5154
|
+
fromPartial(
|
|
5155
|
+
object: DeepPartial<QueryResultIEnumerableFederationSubjectLinkResponse>,
|
|
5156
|
+
): QueryResultIEnumerableFederationSubjectLinkResponse {
|
|
5157
|
+
const message = createBaseQueryResultIEnumerableFederationSubjectLinkResponse();
|
|
5158
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
5159
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
5160
|
+
: undefined;
|
|
5161
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
5162
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
5163
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
5164
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
5165
|
+
message.Data = object.Data?.map((e) => FederationSubjectLinkResponse.fromPartial(e)) || [];
|
|
5166
|
+
return message;
|
|
5167
|
+
},
|
|
5168
|
+
};
|
|
5169
|
+
|
|
4600
5170
|
function createBaseRedeemFederationEnrollmentRequest(): RedeemFederationEnrollmentRequest {
|
|
4601
5171
|
return { Code: "" };
|
|
4602
5172
|
}
|
|
@@ -6041,6 +6611,15 @@ export const FederationDefinition = {
|
|
|
6041
6611
|
responseStream: false,
|
|
6042
6612
|
options: {},
|
|
6043
6613
|
},
|
|
6614
|
+
allSubjectLinks: {
|
|
6615
|
+
name: "AllSubjectLinks",
|
|
6616
|
+
requestType: Empty as typeof Empty,
|
|
6617
|
+
requestStream: false,
|
|
6618
|
+
responseType:
|
|
6619
|
+
QueryResultIEnumerableFederationSubjectLinkResponse as typeof QueryResultIEnumerableFederationSubjectLinkResponse,
|
|
6620
|
+
responseStream: false,
|
|
6621
|
+
options: {},
|
|
6622
|
+
},
|
|
6044
6623
|
bindFederationPeer: {
|
|
6045
6624
|
name: "BindFederationPeer",
|
|
6046
6625
|
requestType: BindFederationPeerRequest as typeof BindFederationPeerRequest,
|
|
@@ -6172,6 +6751,10 @@ export interface FederationServiceImplementation<CallContextExt = {}> {
|
|
|
6172
6751
|
request: Empty,
|
|
6173
6752
|
context: CallContext & CallContextExt,
|
|
6174
6753
|
): Promise<DeepPartial<QueryResultIEnumerableFederationPolicyResponse>>;
|
|
6754
|
+
allSubjectLinks(
|
|
6755
|
+
request: Empty,
|
|
6756
|
+
context: CallContext & CallContextExt,
|
|
6757
|
+
): Promise<DeepPartial<QueryResultIEnumerableFederationSubjectLinkResponse>>;
|
|
6175
6758
|
bindFederationPeer(
|
|
6176
6759
|
request: BindFederationPeerRequest,
|
|
6177
6760
|
context: CallContext & CallContextExt,
|
|
@@ -6247,6 +6830,10 @@ export interface FederationClient<CallOptionsExt = {}> {
|
|
|
6247
6830
|
request: DeepPartial<Empty>,
|
|
6248
6831
|
options?: CallOptions & CallOptionsExt,
|
|
6249
6832
|
): Promise<QueryResultIEnumerableFederationPolicyResponse>;
|
|
6833
|
+
allSubjectLinks(
|
|
6834
|
+
request: DeepPartial<Empty>,
|
|
6835
|
+
options?: CallOptions & CallOptionsExt,
|
|
6836
|
+
): Promise<QueryResultIEnumerableFederationSubjectLinkResponse>;
|
|
6250
6837
|
bindFederationPeer(
|
|
6251
6838
|
request: DeepPartial<BindFederationPeerRequest>,
|
|
6252
6839
|
options?: CallOptions & CallOptionsExt,
|
package/generated/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type { EventTypesClient, EventTypesServiceImplementation } from './eventt
|
|
|
36
36
|
export { AddExternalServiceRequest, AddExternalServiceRequest_HeadersEntry, AddExternalServiceRequest_OptionsEntry, AddExternalServicesRequest, AuthorizationType, authorizationTypeFromJSON, authorizationTypeToJSON, BasicAuthorization, BearerTokenAuthorization, DatabaseEndpointConfiguration, DatabaseEndpointConfiguration_OptionsEntry, ExternalServiceDefinition, ExternalServiceEndpoint, ExternalServiceEndpointType, externalServiceEndpointTypeFromJSON, externalServiceEndpointTypeToJSON, ExternalServiceResponse, ExternalServiceResponse_HeadersEntry, ExternalServiceResponse_OptionsEntry, ExternalServicesDefinition, GetExternalServicesRequest, HttpEndpointConfiguration, HttpEndpointConfiguration_HeadersEntry, OAuthAuthorization, ObserveExternalServicesRequest, OneOfBasicAuthorizationBearerTokenAuthorizationOAuthAuthorization, QueryResultIEnumerableExternalServiceResponse, RemoveExternalServiceRequest, RemoveExternalServicesRequest } from './externalservices';
|
|
37
37
|
export type { ExternalServicesClient, ExternalServicesServiceImplementation } from './externalservices';
|
|
38
38
|
|
|
39
|
-
export { BindFederationPeerRequest, CommandResultCreateFederationEnrollmentResponse, CommandResultRedeemFederationEnrollmentResponse, CreateFederationEnrollmentRequest, CreateFederationEnrollmentResponse, FederatedEvent, FederatedEventBatchResponse, FederationBindingResponse, FederationDefinition, FederationDirection, federationDirectionFromJSON, federationDirectionToJSON, FederationEnrollmentResponse, FederationEnrollmentStatusResponse, FederationGrantInformationResponse, FederationIssuedCertificateResponse, FederationPolicyEntry, FederationPolicyResponse, FederationPolicyStatus, federationPolicyStatusFromJSON, federationPolicyStatusToJSON, FederationPullDefinition, FederationServeDefinition, PullRequest, QueryResultFederatedEventBatchResponse, QueryResultFederationEnrollmentStatusResponse, QueryResultIEnumerableFederationBindingResponse, QueryResultIEnumerableFederationEnrollmentResponse, QueryResultIEnumerableFederationGrantInformationResponse, QueryResultIEnumerableFederationIssuedCertificateResponse, QueryResultIEnumerableFederationPolicyResponse, RedeemFederationEnrollmentRequest, RedeemFederationEnrollmentResponse, ResumeFederationPolicyRequest, RevokeFederationEnrollmentRequest, RevokeFederationLinkRequest, RevokeFederationPolicyDirectionRequest, RevokeFederationPolicyRequest, ServeBatch, ServePullRequest, SetFederationGrantRequest, SetFederationPolicyRequest, SuspendFederationPolicyRequest, UnbindFederationPeerRequest } from './federation';
|
|
39
|
+
export { BindFederationPeerRequest, CommandResultCreateFederationEnrollmentResponse, CommandResultRedeemFederationEnrollmentResponse, CreateFederationEnrollmentRequest, CreateFederationEnrollmentResponse, FederatedEvent, FederatedEventBatchResponse, FederationBindingResponse, FederationDefinition, FederationDirection, federationDirectionFromJSON, federationDirectionToJSON, FederationEnrollmentResponse, FederationEnrollmentStatusResponse, FederationGrantInformationResponse, FederationIssuedCertificateResponse, FederationPolicyEntry, FederationPolicyResponse, FederationPolicyStatus, federationPolicyStatusFromJSON, federationPolicyStatusToJSON, FederationPullDefinition, FederationServeDefinition, FederationSubjectLinkResponse, PullRequest, QueryResultFederatedEventBatchResponse, QueryResultFederationEnrollmentStatusResponse, QueryResultIEnumerableFederationBindingResponse, QueryResultIEnumerableFederationEnrollmentResponse, QueryResultIEnumerableFederationGrantInformationResponse, QueryResultIEnumerableFederationIssuedCertificateResponse, QueryResultIEnumerableFederationPolicyResponse, QueryResultIEnumerableFederationSubjectLinkResponse, RedeemFederationEnrollmentRequest, RedeemFederationEnrollmentResponse, ResumeFederationPolicyRequest, RevokeFederationEnrollmentRequest, RevokeFederationLinkRequest, RevokeFederationPolicyDirectionRequest, RevokeFederationPolicyRequest, ServeBatch, ServePullRequest, SetFederationGrantRequest, SetFederationPolicyRequest, SuspendFederationPolicyRequest, UnbindFederationPeerRequest } from './federation';
|
|
40
40
|
export type { FederationClient, FederationPullClient, FederationPullServiceImplementation, FederationServeClient, FederationServeServiceImplementation, FederationServiceImplementation } from './federation';
|
|
41
41
|
|
|
42
42
|
export { ServerDefinition, ServerVersionInfo } from './host';
|
package/package.json
CHANGED