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