@cratis/chronicle.contracts 19.163.0 → 19.164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/cjs/generated/descriptorSet.js +1 -1
  2. package/dist/cjs/generated/descriptorSet.js.map +1 -1
  3. package/dist/cjs/generated/federation.d.ts +38 -0
  4. package/dist/cjs/generated/federation.d.ts.map +1 -1
  5. package/dist/cjs/generated/federation.js +510 -0
  6. package/dist/cjs/generated/federation.js.map +1 -1
  7. package/dist/cjs/generated/index.d.ts +1 -1
  8. package/dist/cjs/generated/index.d.ts.map +1 -1
  9. package/dist/cjs/index.js +2 -0
  10. package/dist/cjs/index.js.map +1 -1
  11. package/dist/esm/generated/descriptorSet.js +1 -1
  12. package/dist/esm/generated/descriptorSet.js.map +1 -1
  13. package/dist/esm/generated/federation.d.ts +38 -0
  14. package/dist/esm/generated/federation.d.ts.map +1 -1
  15. package/dist/esm/generated/federation.js +509 -1
  16. package/dist/esm/generated/federation.js.map +1 -1
  17. package/dist/esm/generated/index.d.ts +1 -1
  18. package/dist/esm/generated/index.d.ts.map +1 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/generated/descriptorSet.js +1 -1
  21. package/dist/generated/descriptorSet.js.map +1 -1
  22. package/dist/generated/federation.d.ts +38 -0
  23. package/dist/generated/federation.d.ts.map +1 -1
  24. package/dist/generated/federation.js +508 -0
  25. package/dist/generated/federation.js.map +1 -1
  26. package/dist/generated/index.d.ts +1 -1
  27. package/dist/generated/index.d.ts.map +1 -1
  28. package/dist/generated/index.js +1 -1
  29. package/dist/generated/index.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/generated/descriptorSet.ts +1 -1
  32. package/generated/federation.ts +587 -0
  33. package/generated/index.ts +1 -1
  34. package/package.json +1 -1
@@ -1846,6 +1846,9 @@ function createBaseFederationEnrollmentStatusResponse() {
1846
1846
  Endpoint: "",
1847
1847
  AuthorityFingerprint: "",
1848
1848
  Expired: false,
1849
+ Connected: false,
1850
+ LastExchange: undefined,
1851
+ LastError: "",
1849
1852
  };
1850
1853
  }
1851
1854
  const FederationEnrollmentStatusResponse = {
@@ -1874,6 +1877,15 @@ const FederationEnrollmentStatusResponse = {
1874
1877
  if (message.Expired !== false) {
1875
1878
  writer.uint32(64).bool(message.Expired);
1876
1879
  }
1880
+ if (message.Connected !== false) {
1881
+ writer.uint32(72).bool(message.Connected);
1882
+ }
1883
+ if (message.LastExchange !== undefined) {
1884
+ SerializableDateTimeOffset.encode(message.LastExchange, writer.uint32(82).fork()).join();
1885
+ }
1886
+ if (message.LastError !== "") {
1887
+ writer.uint32(90).string(message.LastError);
1888
+ }
1877
1889
  return writer;
1878
1890
  },
1879
1891
  decode(input, length) {
@@ -1945,6 +1957,27 @@ const FederationEnrollmentStatusResponse = {
1945
1957
  message.Expired = reader.bool();
1946
1958
  continue;
1947
1959
  }
1960
+ case 9: {
1961
+ if (tag !== 72) {
1962
+ break;
1963
+ }
1964
+ message.Connected = reader.bool();
1965
+ continue;
1966
+ }
1967
+ case 10: {
1968
+ if (tag !== 82) {
1969
+ break;
1970
+ }
1971
+ message.LastExchange = SerializableDateTimeOffset.decode(reader, reader.uint32());
1972
+ continue;
1973
+ }
1974
+ case 11: {
1975
+ if (tag !== 90) {
1976
+ break;
1977
+ }
1978
+ message.LastError = reader.string();
1979
+ continue;
1980
+ }
1948
1981
  }
1949
1982
  if ((tag & 7) === 4 || tag === 0) {
1950
1983
  break;
@@ -1967,6 +2000,9 @@ const FederationEnrollmentStatusResponse = {
1967
2000
  Endpoint: isSet(object.Endpoint) ? globalThis.String(object.Endpoint) : "",
1968
2001
  AuthorityFingerprint: isSet(object.AuthorityFingerprint) ? globalThis.String(object.AuthorityFingerprint) : "",
1969
2002
  Expired: isSet(object.Expired) ? globalThis.Boolean(object.Expired) : false,
2003
+ Connected: isSet(object.Connected) ? globalThis.Boolean(object.Connected) : false,
2004
+ LastExchange: isSet(object.LastExchange) ? SerializableDateTimeOffset.fromJSON(object.LastExchange) : undefined,
2005
+ LastError: isSet(object.LastError) ? globalThis.String(object.LastError) : "",
1970
2006
  };
1971
2007
  },
1972
2008
  toJSON(message) {
@@ -1995,6 +2031,15 @@ const FederationEnrollmentStatusResponse = {
1995
2031
  if (message.Expired !== false) {
1996
2032
  obj.Expired = message.Expired;
1997
2033
  }
2034
+ if (message.Connected !== false) {
2035
+ obj.Connected = message.Connected;
2036
+ }
2037
+ if (message.LastExchange !== undefined) {
2038
+ obj.LastExchange = SerializableDateTimeOffset.toJSON(message.LastExchange);
2039
+ }
2040
+ if (message.LastError !== "") {
2041
+ obj.LastError = message.LastError;
2042
+ }
1998
2043
  return obj;
1999
2044
  },
2000
2045
  create(base) {
@@ -2014,6 +2059,11 @@ const FederationEnrollmentStatusResponse = {
2014
2059
  message.Endpoint = object.Endpoint ?? "";
2015
2060
  message.AuthorityFingerprint = object.AuthorityFingerprint ?? "";
2016
2061
  message.Expired = object.Expired ?? false;
2062
+ message.Connected = object.Connected ?? false;
2063
+ message.LastExchange = (object.LastExchange !== undefined && object.LastExchange !== null)
2064
+ ? SerializableDateTimeOffset.fromPartial(object.LastExchange)
2065
+ : undefined;
2066
+ message.LastError = object.LastError ?? "";
2017
2067
  return message;
2018
2068
  },
2019
2069
  };
@@ -2709,6 +2759,303 @@ const FederationPolicyResponse = {
2709
2759
  return message;
2710
2760
  },
2711
2761
  };
2762
+ function createBaseFederationSubjectLinkResponse() {
2763
+ return {
2764
+ Subject: "",
2765
+ Connected: false,
2766
+ LastActivity: undefined,
2767
+ OutboundLastPull: undefined,
2768
+ OutboundEvents: 0n,
2769
+ OutboundBytes: 0n,
2770
+ OutboundThrottled: 0n,
2771
+ InboundState: "",
2772
+ InboundLastReceived: undefined,
2773
+ InboundEvents: 0n,
2774
+ InboundBytes: 0n,
2775
+ InboundLag: 0n,
2776
+ LastError: "",
2777
+ };
2778
+ }
2779
+ const FederationSubjectLinkResponse = {
2780
+ encode(message, writer = new wire.BinaryWriter()) {
2781
+ if (message.Subject !== "") {
2782
+ writer.uint32(10).string(message.Subject);
2783
+ }
2784
+ if (message.Connected !== false) {
2785
+ writer.uint32(16).bool(message.Connected);
2786
+ }
2787
+ if (message.LastActivity !== undefined) {
2788
+ SerializableDateTimeOffset.encode(message.LastActivity, writer.uint32(26).fork()).join();
2789
+ }
2790
+ if (message.OutboundLastPull !== undefined) {
2791
+ SerializableDateTimeOffset.encode(message.OutboundLastPull, writer.uint32(34).fork()).join();
2792
+ }
2793
+ if (message.OutboundEvents !== 0n) {
2794
+ if (BigInt.asUintN(64, message.OutboundEvents) !== message.OutboundEvents) {
2795
+ throw new globalThis.Error("value provided for field message.OutboundEvents of type uint64 too large");
2796
+ }
2797
+ writer.uint32(40).uint64(message.OutboundEvents);
2798
+ }
2799
+ if (message.OutboundBytes !== 0n) {
2800
+ if (BigInt.asUintN(64, message.OutboundBytes) !== message.OutboundBytes) {
2801
+ throw new globalThis.Error("value provided for field message.OutboundBytes of type uint64 too large");
2802
+ }
2803
+ writer.uint32(48).uint64(message.OutboundBytes);
2804
+ }
2805
+ if (message.OutboundThrottled !== 0n) {
2806
+ if (BigInt.asUintN(64, message.OutboundThrottled) !== message.OutboundThrottled) {
2807
+ throw new globalThis.Error("value provided for field message.OutboundThrottled of type uint64 too large");
2808
+ }
2809
+ writer.uint32(56).uint64(message.OutboundThrottled);
2810
+ }
2811
+ if (message.InboundState !== "") {
2812
+ writer.uint32(66).string(message.InboundState);
2813
+ }
2814
+ if (message.InboundLastReceived !== undefined) {
2815
+ SerializableDateTimeOffset.encode(message.InboundLastReceived, writer.uint32(74).fork()).join();
2816
+ }
2817
+ if (message.InboundEvents !== 0n) {
2818
+ if (BigInt.asUintN(64, message.InboundEvents) !== message.InboundEvents) {
2819
+ throw new globalThis.Error("value provided for field message.InboundEvents of type uint64 too large");
2820
+ }
2821
+ writer.uint32(80).uint64(message.InboundEvents);
2822
+ }
2823
+ if (message.InboundBytes !== 0n) {
2824
+ if (BigInt.asUintN(64, message.InboundBytes) !== message.InboundBytes) {
2825
+ throw new globalThis.Error("value provided for field message.InboundBytes of type uint64 too large");
2826
+ }
2827
+ writer.uint32(88).uint64(message.InboundBytes);
2828
+ }
2829
+ if (message.InboundLag !== 0n) {
2830
+ if (BigInt.asUintN(64, message.InboundLag) !== message.InboundLag) {
2831
+ throw new globalThis.Error("value provided for field message.InboundLag of type uint64 too large");
2832
+ }
2833
+ writer.uint32(96).uint64(message.InboundLag);
2834
+ }
2835
+ if (message.LastError !== "") {
2836
+ writer.uint32(106).string(message.LastError);
2837
+ }
2838
+ return writer;
2839
+ },
2840
+ decode(input, length) {
2841
+ const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
2842
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2843
+ if (previousRecursionDepth >= 100) {
2844
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2845
+ }
2846
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2847
+ try {
2848
+ const end = length === undefined ? reader.len : reader.pos + length;
2849
+ const message = createBaseFederationSubjectLinkResponse();
2850
+ while (reader.pos < end) {
2851
+ const tag = reader.uint32();
2852
+ switch (tag >>> 3) {
2853
+ case 1: {
2854
+ if (tag !== 10) {
2855
+ break;
2856
+ }
2857
+ message.Subject = reader.string();
2858
+ continue;
2859
+ }
2860
+ case 2: {
2861
+ if (tag !== 16) {
2862
+ break;
2863
+ }
2864
+ message.Connected = reader.bool();
2865
+ continue;
2866
+ }
2867
+ case 3: {
2868
+ if (tag !== 26) {
2869
+ break;
2870
+ }
2871
+ message.LastActivity = SerializableDateTimeOffset.decode(reader, reader.uint32());
2872
+ continue;
2873
+ }
2874
+ case 4: {
2875
+ if (tag !== 34) {
2876
+ break;
2877
+ }
2878
+ message.OutboundLastPull = SerializableDateTimeOffset.decode(reader, reader.uint32());
2879
+ continue;
2880
+ }
2881
+ case 5: {
2882
+ if (tag !== 40) {
2883
+ break;
2884
+ }
2885
+ message.OutboundEvents = reader.uint64();
2886
+ continue;
2887
+ }
2888
+ case 6: {
2889
+ if (tag !== 48) {
2890
+ break;
2891
+ }
2892
+ message.OutboundBytes = reader.uint64();
2893
+ continue;
2894
+ }
2895
+ case 7: {
2896
+ if (tag !== 56) {
2897
+ break;
2898
+ }
2899
+ message.OutboundThrottled = reader.uint64();
2900
+ continue;
2901
+ }
2902
+ case 8: {
2903
+ if (tag !== 66) {
2904
+ break;
2905
+ }
2906
+ message.InboundState = reader.string();
2907
+ continue;
2908
+ }
2909
+ case 9: {
2910
+ if (tag !== 74) {
2911
+ break;
2912
+ }
2913
+ message.InboundLastReceived = SerializableDateTimeOffset.decode(reader, reader.uint32());
2914
+ continue;
2915
+ }
2916
+ case 10: {
2917
+ if (tag !== 80) {
2918
+ break;
2919
+ }
2920
+ message.InboundEvents = reader.uint64();
2921
+ continue;
2922
+ }
2923
+ case 11: {
2924
+ if (tag !== 88) {
2925
+ break;
2926
+ }
2927
+ message.InboundBytes = reader.uint64();
2928
+ continue;
2929
+ }
2930
+ case 12: {
2931
+ if (tag !== 96) {
2932
+ break;
2933
+ }
2934
+ message.InboundLag = reader.uint64();
2935
+ continue;
2936
+ }
2937
+ case 13: {
2938
+ if (tag !== 106) {
2939
+ break;
2940
+ }
2941
+ message.LastError = reader.string();
2942
+ continue;
2943
+ }
2944
+ }
2945
+ if ((tag & 7) === 4 || tag === 0) {
2946
+ break;
2947
+ }
2948
+ reader.skip(tag & 7);
2949
+ }
2950
+ return message;
2951
+ }
2952
+ finally {
2953
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2954
+ }
2955
+ },
2956
+ fromJSON(object) {
2957
+ return {
2958
+ Subject: isSet(object.Subject) ? globalThis.String(object.Subject) : "",
2959
+ Connected: isSet(object.Connected) ? globalThis.Boolean(object.Connected) : false,
2960
+ LastActivity: isSet(object.LastActivity) ? SerializableDateTimeOffset.fromJSON(object.LastActivity) : undefined,
2961
+ OutboundLastPull: isSet(object.OutboundLastPull)
2962
+ ? SerializableDateTimeOffset.fromJSON(object.OutboundLastPull)
2963
+ : undefined,
2964
+ OutboundEvents: isSet(object.OutboundEvents) ? BigInt(object.OutboundEvents) : 0n,
2965
+ OutboundBytes: isSet(object.OutboundBytes) ? BigInt(object.OutboundBytes) : 0n,
2966
+ OutboundThrottled: isSet(object.OutboundThrottled) ? BigInt(object.OutboundThrottled) : 0n,
2967
+ InboundState: isSet(object.InboundState) ? globalThis.String(object.InboundState) : "",
2968
+ InboundLastReceived: isSet(object.InboundLastReceived)
2969
+ ? SerializableDateTimeOffset.fromJSON(object.InboundLastReceived)
2970
+ : undefined,
2971
+ InboundEvents: isSet(object.InboundEvents) ? BigInt(object.InboundEvents) : 0n,
2972
+ InboundBytes: isSet(object.InboundBytes) ? BigInt(object.InboundBytes) : 0n,
2973
+ InboundLag: isSet(object.InboundLag) ? BigInt(object.InboundLag) : 0n,
2974
+ LastError: isSet(object.LastError) ? globalThis.String(object.LastError) : "",
2975
+ };
2976
+ },
2977
+ toJSON(message) {
2978
+ const obj = {};
2979
+ if (message.Subject !== "") {
2980
+ obj.Subject = message.Subject;
2981
+ }
2982
+ if (message.Connected !== false) {
2983
+ obj.Connected = message.Connected;
2984
+ }
2985
+ if (message.LastActivity !== undefined) {
2986
+ obj.LastActivity = SerializableDateTimeOffset.toJSON(message.LastActivity);
2987
+ }
2988
+ if (message.OutboundLastPull !== undefined) {
2989
+ obj.OutboundLastPull = SerializableDateTimeOffset.toJSON(message.OutboundLastPull);
2990
+ }
2991
+ if (message.OutboundEvents !== 0n) {
2992
+ obj.OutboundEvents = message.OutboundEvents.toString();
2993
+ }
2994
+ if (message.OutboundBytes !== 0n) {
2995
+ obj.OutboundBytes = message.OutboundBytes.toString();
2996
+ }
2997
+ if (message.OutboundThrottled !== 0n) {
2998
+ obj.OutboundThrottled = message.OutboundThrottled.toString();
2999
+ }
3000
+ if (message.InboundState !== "") {
3001
+ obj.InboundState = message.InboundState;
3002
+ }
3003
+ if (message.InboundLastReceived !== undefined) {
3004
+ obj.InboundLastReceived = SerializableDateTimeOffset.toJSON(message.InboundLastReceived);
3005
+ }
3006
+ if (message.InboundEvents !== 0n) {
3007
+ obj.InboundEvents = message.InboundEvents.toString();
3008
+ }
3009
+ if (message.InboundBytes !== 0n) {
3010
+ obj.InboundBytes = message.InboundBytes.toString();
3011
+ }
3012
+ if (message.InboundLag !== 0n) {
3013
+ obj.InboundLag = message.InboundLag.toString();
3014
+ }
3015
+ if (message.LastError !== "") {
3016
+ obj.LastError = message.LastError;
3017
+ }
3018
+ return obj;
3019
+ },
3020
+ create(base) {
3021
+ return FederationSubjectLinkResponse.fromPartial(base ?? {});
3022
+ },
3023
+ fromPartial(object) {
3024
+ const message = createBaseFederationSubjectLinkResponse();
3025
+ message.Subject = object.Subject ?? "";
3026
+ message.Connected = object.Connected ?? false;
3027
+ message.LastActivity = (object.LastActivity !== undefined && object.LastActivity !== null)
3028
+ ? SerializableDateTimeOffset.fromPartial(object.LastActivity)
3029
+ : undefined;
3030
+ message.OutboundLastPull = (object.OutboundLastPull !== undefined && object.OutboundLastPull !== null)
3031
+ ? SerializableDateTimeOffset.fromPartial(object.OutboundLastPull)
3032
+ : undefined;
3033
+ message.OutboundEvents = (object.OutboundEvents !== undefined && object.OutboundEvents !== null)
3034
+ ? BigInt(object.OutboundEvents)
3035
+ : 0n;
3036
+ message.OutboundBytes = (object.OutboundBytes !== undefined && object.OutboundBytes !== null)
3037
+ ? BigInt(object.OutboundBytes)
3038
+ : 0n;
3039
+ message.OutboundThrottled = (object.OutboundThrottled !== undefined && object.OutboundThrottled !== null)
3040
+ ? BigInt(object.OutboundThrottled)
3041
+ : 0n;
3042
+ message.InboundState = object.InboundState ?? "";
3043
+ message.InboundLastReceived = (object.InboundLastReceived !== undefined && object.InboundLastReceived !== null)
3044
+ ? SerializableDateTimeOffset.fromPartial(object.InboundLastReceived)
3045
+ : undefined;
3046
+ message.InboundEvents = (object.InboundEvents !== undefined && object.InboundEvents !== null)
3047
+ ? BigInt(object.InboundEvents)
3048
+ : 0n;
3049
+ message.InboundBytes = (object.InboundBytes !== undefined && object.InboundBytes !== null)
3050
+ ? BigInt(object.InboundBytes)
3051
+ : 0n;
3052
+ message.InboundLag = (object.InboundLag !== undefined && object.InboundLag !== null)
3053
+ ? BigInt(object.InboundLag)
3054
+ : 0n;
3055
+ message.LastError = object.LastError ?? "";
3056
+ return message;
3057
+ },
3058
+ };
2712
3059
  function createBasePullRequest() {
2713
3060
  return { EventStore: "", Namespace: "", FromSequenceNumber: 0n, Limit: 0, EventTypes: [] };
2714
3061
  }
@@ -3910,6 +4257,159 @@ const QueryResultIEnumerableFederationPolicyResponse = {
3910
4257
  return message;
3911
4258
  },
3912
4259
  };
4260
+ function createBaseQueryResultIEnumerableFederationSubjectLinkResponse() {
4261
+ return {
4262
+ CorrelationId: undefined,
4263
+ IsAuthorized: false,
4264
+ ValidationResults: [],
4265
+ ExceptionMessages: [],
4266
+ ExceptionStackTrace: "",
4267
+ Data: [],
4268
+ };
4269
+ }
4270
+ const QueryResultIEnumerableFederationSubjectLinkResponse = {
4271
+ encode(message, writer = new wire.BinaryWriter()) {
4272
+ if (message.CorrelationId !== undefined) {
4273
+ bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
4274
+ }
4275
+ if (message.IsAuthorized !== false) {
4276
+ writer.uint32(16).bool(message.IsAuthorized);
4277
+ }
4278
+ for (const v of message.ValidationResults) {
4279
+ ValidationResult.encode(v, writer.uint32(26).fork()).join();
4280
+ }
4281
+ for (const v of message.ExceptionMessages) {
4282
+ writer.uint32(34).string(v);
4283
+ }
4284
+ if (message.ExceptionStackTrace !== "") {
4285
+ writer.uint32(42).string(message.ExceptionStackTrace);
4286
+ }
4287
+ for (const v of message.Data) {
4288
+ FederationSubjectLinkResponse.encode(v, writer.uint32(50).fork()).join();
4289
+ }
4290
+ return writer;
4291
+ },
4292
+ decode(input, length) {
4293
+ const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
4294
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
4295
+ if (previousRecursionDepth >= 100) {
4296
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4297
+ }
4298
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
4299
+ try {
4300
+ const end = length === undefined ? reader.len : reader.pos + length;
4301
+ const message = createBaseQueryResultIEnumerableFederationSubjectLinkResponse();
4302
+ while (reader.pos < end) {
4303
+ const tag = reader.uint32();
4304
+ switch (tag >>> 3) {
4305
+ case 1: {
4306
+ if (tag !== 10) {
4307
+ break;
4308
+ }
4309
+ message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
4310
+ continue;
4311
+ }
4312
+ case 2: {
4313
+ if (tag !== 16) {
4314
+ break;
4315
+ }
4316
+ message.IsAuthorized = reader.bool();
4317
+ continue;
4318
+ }
4319
+ case 3: {
4320
+ if (tag !== 26) {
4321
+ break;
4322
+ }
4323
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
4324
+ continue;
4325
+ }
4326
+ case 4: {
4327
+ if (tag !== 34) {
4328
+ break;
4329
+ }
4330
+ message.ExceptionMessages.push(reader.string());
4331
+ continue;
4332
+ }
4333
+ case 5: {
4334
+ if (tag !== 42) {
4335
+ break;
4336
+ }
4337
+ message.ExceptionStackTrace = reader.string();
4338
+ continue;
4339
+ }
4340
+ case 6: {
4341
+ if (tag !== 50) {
4342
+ break;
4343
+ }
4344
+ message.Data.push(FederationSubjectLinkResponse.decode(reader, reader.uint32()));
4345
+ continue;
4346
+ }
4347
+ }
4348
+ if ((tag & 7) === 4 || tag === 0) {
4349
+ break;
4350
+ }
4351
+ reader.skip(tag & 7);
4352
+ }
4353
+ return message;
4354
+ }
4355
+ finally {
4356
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
4357
+ }
4358
+ },
4359
+ fromJSON(object) {
4360
+ return {
4361
+ CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
4362
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
4363
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
4364
+ ? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
4365
+ : [],
4366
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
4367
+ ? object.ExceptionMessages.map((e) => globalThis.String(e))
4368
+ : [],
4369
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
4370
+ Data: globalThis.Array.isArray(object?.Data)
4371
+ ? object.Data.map((e) => FederationSubjectLinkResponse.fromJSON(e))
4372
+ : [],
4373
+ };
4374
+ },
4375
+ toJSON(message) {
4376
+ const obj = {};
4377
+ if (message.CorrelationId !== undefined) {
4378
+ obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
4379
+ }
4380
+ if (message.IsAuthorized !== false) {
4381
+ obj.IsAuthorized = message.IsAuthorized;
4382
+ }
4383
+ if (message.ValidationResults?.length) {
4384
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
4385
+ }
4386
+ if (message.ExceptionMessages?.length) {
4387
+ obj.ExceptionMessages = message.ExceptionMessages;
4388
+ }
4389
+ if (message.ExceptionStackTrace !== "") {
4390
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
4391
+ }
4392
+ if (message.Data?.length) {
4393
+ obj.Data = message.Data.map((e) => FederationSubjectLinkResponse.toJSON(e));
4394
+ }
4395
+ return obj;
4396
+ },
4397
+ create(base) {
4398
+ return QueryResultIEnumerableFederationSubjectLinkResponse.fromPartial(base ?? {});
4399
+ },
4400
+ fromPartial(object) {
4401
+ const message = createBaseQueryResultIEnumerableFederationSubjectLinkResponse();
4402
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
4403
+ ? bcl.Guid.fromPartial(object.CorrelationId)
4404
+ : undefined;
4405
+ message.IsAuthorized = object.IsAuthorized ?? false;
4406
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
4407
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
4408
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
4409
+ message.Data = object.Data?.map((e) => FederationSubjectLinkResponse.fromPartial(e)) || [];
4410
+ return message;
4411
+ },
4412
+ };
3913
4413
  function createBaseRedeemFederationEnrollmentRequest() {
3914
4414
  return { Code: "" };
3915
4415
  }
@@ -5236,6 +5736,14 @@ const FederationDefinition = {
5236
5736
  responseStream: false,
5237
5737
  options: {},
5238
5738
  },
5739
+ allSubjectLinks: {
5740
+ name: "AllSubjectLinks",
5741
+ requestType: empty.Empty,
5742
+ requestStream: false,
5743
+ responseType: QueryResultIEnumerableFederationSubjectLinkResponse,
5744
+ responseStream: false,
5745
+ options: {},
5746
+ },
5239
5747
  bindFederationPeer: {
5240
5748
  name: "BindFederationPeer",
5241
5749
  requestType: BindFederationPeerRequest,
@@ -5392,6 +5900,7 @@ exports.FederationPolicyEntry = FederationPolicyEntry;
5392
5900
  exports.FederationPolicyResponse = FederationPolicyResponse;
5393
5901
  exports.FederationPullDefinition = FederationPullDefinition;
5394
5902
  exports.FederationServeDefinition = FederationServeDefinition;
5903
+ exports.FederationSubjectLinkResponse = FederationSubjectLinkResponse;
5395
5904
  exports.PullRequest = PullRequest;
5396
5905
  exports.QueryResultFederatedEventBatchResponse = QueryResultFederatedEventBatchResponse;
5397
5906
  exports.QueryResultFederationEnrollmentStatusResponse = QueryResultFederationEnrollmentStatusResponse;
@@ -5400,6 +5909,7 @@ exports.QueryResultIEnumerableFederationEnrollmentResponse = QueryResultIEnumera
5400
5909
  exports.QueryResultIEnumerableFederationGrantInformationResponse = QueryResultIEnumerableFederationGrantInformationResponse;
5401
5910
  exports.QueryResultIEnumerableFederationIssuedCertificateResponse = QueryResultIEnumerableFederationIssuedCertificateResponse;
5402
5911
  exports.QueryResultIEnumerableFederationPolicyResponse = QueryResultIEnumerableFederationPolicyResponse;
5912
+ exports.QueryResultIEnumerableFederationSubjectLinkResponse = QueryResultIEnumerableFederationSubjectLinkResponse;
5403
5913
  exports.RedeemFederationEnrollmentRequest = RedeemFederationEnrollmentRequest;
5404
5914
  exports.RedeemFederationEnrollmentResponse = RedeemFederationEnrollmentResponse;
5405
5915
  exports.ResumeFederationPolicyRequest = ResumeFederationPolicyRequest;