@cratis/chronicle.contracts 19.114.2 → 19.115.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.
Files changed (73) hide show
  1. package/dist/cjs/generated/compliance.d.ts +3 -0
  2. package/dist/cjs/generated/compliance.d.ts.map +1 -1
  3. package/dist/cjs/generated/compliance.js +49 -2
  4. package/dist/cjs/generated/compliance.js.map +1 -1
  5. package/dist/cjs/generated/descriptorSet.js +1 -1
  6. package/dist/cjs/generated/descriptorSet.js.map +1 -1
  7. package/dist/cjs/generated/eventstores.d.ts +44 -0
  8. package/dist/cjs/generated/eventstores.d.ts.map +1 -1
  9. package/dist/cjs/generated/eventstores.js +415 -0
  10. package/dist/cjs/generated/eventstores.js.map +1 -1
  11. package/dist/cjs/generated/index.d.ts +4 -4
  12. package/dist/cjs/generated/index.d.ts.map +1 -1
  13. package/dist/cjs/generated/security.d.ts +65 -0
  14. package/dist/cjs/generated/security.d.ts.map +1 -1
  15. package/dist/cjs/generated/security.js +427 -1
  16. package/dist/cjs/generated/security.js.map +1 -1
  17. package/dist/cjs/generated/sequences.d.ts +43 -0
  18. package/dist/cjs/generated/sequences.d.ts.map +1 -1
  19. package/dist/cjs/generated/sequences.js +573 -2
  20. package/dist/cjs/generated/sequences.js.map +1 -1
  21. package/dist/cjs/index.js +12 -0
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/esm/generated/compliance.d.ts +3 -0
  24. package/dist/esm/generated/compliance.d.ts.map +1 -1
  25. package/dist/esm/generated/compliance.js +49 -2
  26. package/dist/esm/generated/compliance.js.map +1 -1
  27. package/dist/esm/generated/descriptorSet.js +1 -1
  28. package/dist/esm/generated/descriptorSet.js.map +1 -1
  29. package/dist/esm/generated/eventstores.d.ts +44 -0
  30. package/dist/esm/generated/eventstores.d.ts.map +1 -1
  31. package/dist/esm/generated/eventstores.js +412 -1
  32. package/dist/esm/generated/eventstores.js.map +1 -1
  33. package/dist/esm/generated/index.d.ts +4 -4
  34. package/dist/esm/generated/index.d.ts.map +1 -1
  35. package/dist/esm/generated/security.d.ts +65 -0
  36. package/dist/esm/generated/security.d.ts.map +1 -1
  37. package/dist/esm/generated/security.js +423 -2
  38. package/dist/esm/generated/security.js.map +1 -1
  39. package/dist/esm/generated/sequences.d.ts +43 -0
  40. package/dist/esm/generated/sequences.d.ts.map +1 -1
  41. package/dist/esm/generated/sequences.js +571 -3
  42. package/dist/esm/generated/sequences.js.map +1 -1
  43. package/dist/esm/index.js +3 -3
  44. package/dist/generated/compliance.d.ts +3 -0
  45. package/dist/generated/compliance.d.ts.map +1 -1
  46. package/dist/generated/compliance.js +49 -2
  47. package/dist/generated/compliance.js.map +1 -1
  48. package/dist/generated/descriptorSet.js +1 -1
  49. package/dist/generated/descriptorSet.js.map +1 -1
  50. package/dist/generated/eventstores.d.ts +44 -0
  51. package/dist/generated/eventstores.d.ts.map +1 -1
  52. package/dist/generated/eventstores.js +411 -0
  53. package/dist/generated/eventstores.js.map +1 -1
  54. package/dist/generated/index.d.ts +4 -4
  55. package/dist/generated/index.d.ts.map +1 -1
  56. package/dist/generated/index.js +3 -3
  57. package/dist/generated/index.js.map +1 -1
  58. package/dist/generated/security.d.ts +65 -0
  59. package/dist/generated/security.d.ts.map +1 -1
  60. package/dist/generated/security.js +422 -1
  61. package/dist/generated/security.js.map +1 -1
  62. package/dist/generated/sequences.d.ts +43 -0
  63. package/dist/generated/sequences.d.ts.map +1 -1
  64. package/dist/generated/sequences.js +570 -2
  65. package/dist/generated/sequences.js.map +1 -1
  66. package/dist/tsconfig.tsbuildinfo +1 -1
  67. package/generated/compliance.ts +55 -2
  68. package/generated/descriptorSet.ts +1 -1
  69. package/generated/eventstores.ts +484 -0
  70. package/generated/index.ts +4 -4
  71. package/generated/security.ts +519 -1
  72. package/generated/sequences.ts +651 -2
  73. package/package.json +1 -1
@@ -73,11 +73,30 @@ export interface EnsureEventStoreRequest {
73
73
  Name: string;
74
74
  }
75
75
 
76
+ export interface EventStoreDeploymentResponse {
77
+ Generation: bigint;
78
+ Fingerprint: string;
79
+ }
80
+
76
81
  export interface EventStoreNamesResponse {
77
82
  Name: string;
78
83
  Id: string;
79
84
  }
80
85
 
86
+ export interface GetEventStoreDeploymentRequest {
87
+ EventStore: string;
88
+ }
89
+
90
+ export interface QueryResultEventStoreDeploymentResponse {
91
+ /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
92
+ CorrelationId: Guid | undefined;
93
+ IsAuthorized: boolean;
94
+ ValidationResults: ValidationResult[];
95
+ ExceptionMessages: string[];
96
+ ExceptionStackTrace: string;
97
+ Data: EventStoreDeploymentResponse | undefined;
98
+ }
99
+
81
100
  export interface QueryResultIEnumerableEventStoreNamesResponse {
82
101
  /** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
83
102
  CorrelationId: Guid | undefined;
@@ -88,6 +107,12 @@ export interface QueryResultIEnumerableEventStoreNamesResponse {
88
107
  Data: EventStoreNamesResponse[];
89
108
  }
90
109
 
110
+ export interface RegisterDeploymentRequest {
111
+ EventStore: string;
112
+ Generation: bigint;
113
+ Fingerprint: string;
114
+ }
115
+
91
116
  export interface ValidationResult {
92
117
  /** default value could not be applied: Error */
93
118
  Severity: ValidationResultSeverity;
@@ -326,6 +351,96 @@ export const EnsureEventStoreRequest: MessageFns<EnsureEventStoreRequest> = {
326
351
  },
327
352
  };
328
353
 
354
+ function createBaseEventStoreDeploymentResponse(): EventStoreDeploymentResponse {
355
+ return { Generation: 0n, Fingerprint: "" };
356
+ }
357
+
358
+ export const EventStoreDeploymentResponse: MessageFns<EventStoreDeploymentResponse> = {
359
+ encode(message: EventStoreDeploymentResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
360
+ if (message.Generation !== 0n) {
361
+ if (BigInt.asUintN(64, message.Generation) !== message.Generation) {
362
+ throw new globalThis.Error("value provided for field message.Generation of type uint64 too large");
363
+ }
364
+ writer.uint32(8).uint64(message.Generation);
365
+ }
366
+ if (message.Fingerprint !== "") {
367
+ writer.uint32(18).string(message.Fingerprint);
368
+ }
369
+ return writer;
370
+ },
371
+
372
+ decode(input: BinaryReader | Uint8Array, length?: number): EventStoreDeploymentResponse {
373
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
374
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
375
+ if (previousRecursionDepth >= 100) {
376
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
377
+ }
378
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
379
+ try {
380
+ const end = length === undefined ? reader.len : reader.pos + length;
381
+ const message = createBaseEventStoreDeploymentResponse();
382
+ while (reader.pos < end) {
383
+ const tag = reader.uint32();
384
+ switch (tag >>> 3) {
385
+ case 1: {
386
+ if (tag !== 8) {
387
+ break;
388
+ }
389
+
390
+ message.Generation = reader.uint64() as bigint;
391
+ continue;
392
+ }
393
+ case 2: {
394
+ if (tag !== 18) {
395
+ break;
396
+ }
397
+
398
+ message.Fingerprint = reader.string();
399
+ continue;
400
+ }
401
+ }
402
+ if ((tag & 7) === 4 || tag === 0) {
403
+ break;
404
+ }
405
+ reader.skip(tag & 7);
406
+ }
407
+ return message;
408
+ } finally {
409
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
410
+ }
411
+ },
412
+
413
+ fromJSON(object: any): EventStoreDeploymentResponse {
414
+ return {
415
+ Generation: isSet(object.Generation) ? BigInt(object.Generation) : 0n,
416
+ Fingerprint: isSet(object.Fingerprint) ? globalThis.String(object.Fingerprint) : "",
417
+ };
418
+ },
419
+
420
+ toJSON(message: EventStoreDeploymentResponse): unknown {
421
+ const obj: any = {};
422
+ if (message.Generation !== 0n) {
423
+ obj.Generation = message.Generation.toString();
424
+ }
425
+ if (message.Fingerprint !== "") {
426
+ obj.Fingerprint = message.Fingerprint;
427
+ }
428
+ return obj;
429
+ },
430
+
431
+ create(base?: DeepPartial<EventStoreDeploymentResponse>): EventStoreDeploymentResponse {
432
+ return EventStoreDeploymentResponse.fromPartial(base ?? {});
433
+ },
434
+ fromPartial(object: DeepPartial<EventStoreDeploymentResponse>): EventStoreDeploymentResponse {
435
+ const message = createBaseEventStoreDeploymentResponse();
436
+ message.Generation = (object.Generation !== undefined && object.Generation !== null)
437
+ ? BigInt(object.Generation)
438
+ : 0n;
439
+ message.Fingerprint = object.Fingerprint ?? "";
440
+ return message;
441
+ },
442
+ };
443
+
329
444
  function createBaseEventStoreNamesResponse(): EventStoreNamesResponse {
330
445
  return { Name: "", Id: "" };
331
446
  }
@@ -411,6 +526,237 @@ export const EventStoreNamesResponse: MessageFns<EventStoreNamesResponse> = {
411
526
  },
412
527
  };
413
528
 
529
+ function createBaseGetEventStoreDeploymentRequest(): GetEventStoreDeploymentRequest {
530
+ return { EventStore: "" };
531
+ }
532
+
533
+ export const GetEventStoreDeploymentRequest: MessageFns<GetEventStoreDeploymentRequest> = {
534
+ encode(message: GetEventStoreDeploymentRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
535
+ if (message.EventStore !== "") {
536
+ writer.uint32(10).string(message.EventStore);
537
+ }
538
+ return writer;
539
+ },
540
+
541
+ decode(input: BinaryReader | Uint8Array, length?: number): GetEventStoreDeploymentRequest {
542
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
543
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
544
+ if (previousRecursionDepth >= 100) {
545
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
546
+ }
547
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
548
+ try {
549
+ const end = length === undefined ? reader.len : reader.pos + length;
550
+ const message = createBaseGetEventStoreDeploymentRequest();
551
+ while (reader.pos < end) {
552
+ const tag = reader.uint32();
553
+ switch (tag >>> 3) {
554
+ case 1: {
555
+ if (tag !== 10) {
556
+ break;
557
+ }
558
+
559
+ message.EventStore = reader.string();
560
+ continue;
561
+ }
562
+ }
563
+ if ((tag & 7) === 4 || tag === 0) {
564
+ break;
565
+ }
566
+ reader.skip(tag & 7);
567
+ }
568
+ return message;
569
+ } finally {
570
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
571
+ }
572
+ },
573
+
574
+ fromJSON(object: any): GetEventStoreDeploymentRequest {
575
+ return { EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "" };
576
+ },
577
+
578
+ toJSON(message: GetEventStoreDeploymentRequest): unknown {
579
+ const obj: any = {};
580
+ if (message.EventStore !== "") {
581
+ obj.EventStore = message.EventStore;
582
+ }
583
+ return obj;
584
+ },
585
+
586
+ create(base?: DeepPartial<GetEventStoreDeploymentRequest>): GetEventStoreDeploymentRequest {
587
+ return GetEventStoreDeploymentRequest.fromPartial(base ?? {});
588
+ },
589
+ fromPartial(object: DeepPartial<GetEventStoreDeploymentRequest>): GetEventStoreDeploymentRequest {
590
+ const message = createBaseGetEventStoreDeploymentRequest();
591
+ message.EventStore = object.EventStore ?? "";
592
+ return message;
593
+ },
594
+ };
595
+
596
+ function createBaseQueryResultEventStoreDeploymentResponse(): QueryResultEventStoreDeploymentResponse {
597
+ return {
598
+ CorrelationId: undefined,
599
+ IsAuthorized: false,
600
+ ValidationResults: [],
601
+ ExceptionMessages: [],
602
+ ExceptionStackTrace: "",
603
+ Data: undefined,
604
+ };
605
+ }
606
+
607
+ export const QueryResultEventStoreDeploymentResponse: MessageFns<QueryResultEventStoreDeploymentResponse> = {
608
+ encode(message: QueryResultEventStoreDeploymentResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
609
+ if (message.CorrelationId !== undefined) {
610
+ Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
611
+ }
612
+ if (message.IsAuthorized !== false) {
613
+ writer.uint32(16).bool(message.IsAuthorized);
614
+ }
615
+ for (const v of message.ValidationResults) {
616
+ ValidationResult.encode(v!, writer.uint32(26).fork()).join();
617
+ }
618
+ for (const v of message.ExceptionMessages) {
619
+ writer.uint32(34).string(v!);
620
+ }
621
+ if (message.ExceptionStackTrace !== "") {
622
+ writer.uint32(42).string(message.ExceptionStackTrace);
623
+ }
624
+ if (message.Data !== undefined) {
625
+ EventStoreDeploymentResponse.encode(message.Data, writer.uint32(50).fork()).join();
626
+ }
627
+ return writer;
628
+ },
629
+
630
+ decode(input: BinaryReader | Uint8Array, length?: number): QueryResultEventStoreDeploymentResponse {
631
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
632
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
633
+ if (previousRecursionDepth >= 100) {
634
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
635
+ }
636
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
637
+ try {
638
+ const end = length === undefined ? reader.len : reader.pos + length;
639
+ const message = createBaseQueryResultEventStoreDeploymentResponse();
640
+ while (reader.pos < end) {
641
+ const tag = reader.uint32();
642
+ switch (tag >>> 3) {
643
+ case 1: {
644
+ if (tag !== 10) {
645
+ break;
646
+ }
647
+
648
+ message.CorrelationId = Guid.decode(reader, reader.uint32());
649
+ continue;
650
+ }
651
+ case 2: {
652
+ if (tag !== 16) {
653
+ break;
654
+ }
655
+
656
+ message.IsAuthorized = reader.bool();
657
+ continue;
658
+ }
659
+ case 3: {
660
+ if (tag !== 26) {
661
+ break;
662
+ }
663
+
664
+ message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
665
+ continue;
666
+ }
667
+ case 4: {
668
+ if (tag !== 34) {
669
+ break;
670
+ }
671
+
672
+ message.ExceptionMessages.push(reader.string());
673
+ continue;
674
+ }
675
+ case 5: {
676
+ if (tag !== 42) {
677
+ break;
678
+ }
679
+
680
+ message.ExceptionStackTrace = reader.string();
681
+ continue;
682
+ }
683
+ case 6: {
684
+ if (tag !== 50) {
685
+ break;
686
+ }
687
+
688
+ message.Data = EventStoreDeploymentResponse.decode(reader, reader.uint32());
689
+ continue;
690
+ }
691
+ }
692
+ if ((tag & 7) === 4 || tag === 0) {
693
+ break;
694
+ }
695
+ reader.skip(tag & 7);
696
+ }
697
+ return message;
698
+ } finally {
699
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
700
+ }
701
+ },
702
+
703
+ fromJSON(object: any): QueryResultEventStoreDeploymentResponse {
704
+ return {
705
+ CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
706
+ IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
707
+ ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
708
+ ? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
709
+ : [],
710
+ ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
711
+ ? object.ExceptionMessages.map((e: any) => globalThis.String(e))
712
+ : [],
713
+ ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
714
+ Data: isSet(object.Data) ? EventStoreDeploymentResponse.fromJSON(object.Data) : undefined,
715
+ };
716
+ },
717
+
718
+ toJSON(message: QueryResultEventStoreDeploymentResponse): unknown {
719
+ const obj: any = {};
720
+ if (message.CorrelationId !== undefined) {
721
+ obj.CorrelationId = Guid.toJSON(message.CorrelationId);
722
+ }
723
+ if (message.IsAuthorized !== false) {
724
+ obj.IsAuthorized = message.IsAuthorized;
725
+ }
726
+ if (message.ValidationResults?.length) {
727
+ obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
728
+ }
729
+ if (message.ExceptionMessages?.length) {
730
+ obj.ExceptionMessages = message.ExceptionMessages;
731
+ }
732
+ if (message.ExceptionStackTrace !== "") {
733
+ obj.ExceptionStackTrace = message.ExceptionStackTrace;
734
+ }
735
+ if (message.Data !== undefined) {
736
+ obj.Data = EventStoreDeploymentResponse.toJSON(message.Data);
737
+ }
738
+ return obj;
739
+ },
740
+
741
+ create(base?: DeepPartial<QueryResultEventStoreDeploymentResponse>): QueryResultEventStoreDeploymentResponse {
742
+ return QueryResultEventStoreDeploymentResponse.fromPartial(base ?? {});
743
+ },
744
+ fromPartial(object: DeepPartial<QueryResultEventStoreDeploymentResponse>): QueryResultEventStoreDeploymentResponse {
745
+ const message = createBaseQueryResultEventStoreDeploymentResponse();
746
+ message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
747
+ ? Guid.fromPartial(object.CorrelationId)
748
+ : undefined;
749
+ message.IsAuthorized = object.IsAuthorized ?? false;
750
+ message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
751
+ message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
752
+ message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
753
+ message.Data = (object.Data !== undefined && object.Data !== null)
754
+ ? EventStoreDeploymentResponse.fromPartial(object.Data)
755
+ : undefined;
756
+ return message;
757
+ },
758
+ };
759
+
414
760
  function createBaseQueryResultIEnumerableEventStoreNamesResponse(): QueryResultIEnumerableEventStoreNamesResponse {
415
761
  return {
416
762
  CorrelationId: undefined,
@@ -583,6 +929,112 @@ export const QueryResultIEnumerableEventStoreNamesResponse: MessageFns<QueryResu
583
929
  },
584
930
  };
585
931
 
932
+ function createBaseRegisterDeploymentRequest(): RegisterDeploymentRequest {
933
+ return { EventStore: "", Generation: 0n, Fingerprint: "" };
934
+ }
935
+
936
+ export const RegisterDeploymentRequest: MessageFns<RegisterDeploymentRequest> = {
937
+ encode(message: RegisterDeploymentRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
938
+ if (message.EventStore !== "") {
939
+ writer.uint32(10).string(message.EventStore);
940
+ }
941
+ if (message.Generation !== 0n) {
942
+ if (BigInt.asUintN(64, message.Generation) !== message.Generation) {
943
+ throw new globalThis.Error("value provided for field message.Generation of type uint64 too large");
944
+ }
945
+ writer.uint32(16).uint64(message.Generation);
946
+ }
947
+ if (message.Fingerprint !== "") {
948
+ writer.uint32(26).string(message.Fingerprint);
949
+ }
950
+ return writer;
951
+ },
952
+
953
+ decode(input: BinaryReader | Uint8Array, length?: number): RegisterDeploymentRequest {
954
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
955
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
956
+ if (previousRecursionDepth >= 100) {
957
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
958
+ }
959
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
960
+ try {
961
+ const end = length === undefined ? reader.len : reader.pos + length;
962
+ const message = createBaseRegisterDeploymentRequest();
963
+ while (reader.pos < end) {
964
+ const tag = reader.uint32();
965
+ switch (tag >>> 3) {
966
+ case 1: {
967
+ if (tag !== 10) {
968
+ break;
969
+ }
970
+
971
+ message.EventStore = reader.string();
972
+ continue;
973
+ }
974
+ case 2: {
975
+ if (tag !== 16) {
976
+ break;
977
+ }
978
+
979
+ message.Generation = reader.uint64() as bigint;
980
+ continue;
981
+ }
982
+ case 3: {
983
+ if (tag !== 26) {
984
+ break;
985
+ }
986
+
987
+ message.Fingerprint = reader.string();
988
+ continue;
989
+ }
990
+ }
991
+ if ((tag & 7) === 4 || tag === 0) {
992
+ break;
993
+ }
994
+ reader.skip(tag & 7);
995
+ }
996
+ return message;
997
+ } finally {
998
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
999
+ }
1000
+ },
1001
+
1002
+ fromJSON(object: any): RegisterDeploymentRequest {
1003
+ return {
1004
+ EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
1005
+ Generation: isSet(object.Generation) ? BigInt(object.Generation) : 0n,
1006
+ Fingerprint: isSet(object.Fingerprint) ? globalThis.String(object.Fingerprint) : "",
1007
+ };
1008
+ },
1009
+
1010
+ toJSON(message: RegisterDeploymentRequest): unknown {
1011
+ const obj: any = {};
1012
+ if (message.EventStore !== "") {
1013
+ obj.EventStore = message.EventStore;
1014
+ }
1015
+ if (message.Generation !== 0n) {
1016
+ obj.Generation = message.Generation.toString();
1017
+ }
1018
+ if (message.Fingerprint !== "") {
1019
+ obj.Fingerprint = message.Fingerprint;
1020
+ }
1021
+ return obj;
1022
+ },
1023
+
1024
+ create(base?: DeepPartial<RegisterDeploymentRequest>): RegisterDeploymentRequest {
1025
+ return RegisterDeploymentRequest.fromPartial(base ?? {});
1026
+ },
1027
+ fromPartial(object: DeepPartial<RegisterDeploymentRequest>): RegisterDeploymentRequest {
1028
+ const message = createBaseRegisterDeploymentRequest();
1029
+ message.EventStore = object.EventStore ?? "";
1030
+ message.Generation = (object.Generation !== undefined && object.Generation !== null)
1031
+ ? BigInt(object.Generation)
1032
+ : 0n;
1033
+ message.Fingerprint = object.Fingerprint ?? "";
1034
+ return message;
1035
+ },
1036
+ };
1037
+
586
1038
  function createBaseValidationResult(): ValidationResult {
587
1039
  return { Severity: 0, Message: "", Members: [] };
588
1040
  }
@@ -706,6 +1158,14 @@ export const EventStoresDefinition = {
706
1158
  responseStream: false,
707
1159
  options: {},
708
1160
  },
1161
+ getEventStoreDeployment: {
1162
+ name: "GetEventStoreDeployment",
1163
+ requestType: GetEventStoreDeploymentRequest as typeof GetEventStoreDeploymentRequest,
1164
+ requestStream: false,
1165
+ responseType: QueryResultEventStoreDeploymentResponse as typeof QueryResultEventStoreDeploymentResponse,
1166
+ responseStream: false,
1167
+ options: {},
1168
+ },
709
1169
  observeEventStores: {
710
1170
  name: "ObserveEventStores",
711
1171
  requestType: Empty as typeof Empty,
@@ -715,6 +1175,14 @@ export const EventStoresDefinition = {
715
1175
  responseStream: true,
716
1176
  options: {},
717
1177
  },
1178
+ registerDeployment: {
1179
+ name: "RegisterDeployment",
1180
+ requestType: RegisterDeploymentRequest as typeof RegisterDeploymentRequest,
1181
+ requestStream: false,
1182
+ responseType: CommandResult as typeof CommandResult,
1183
+ responseStream: false,
1184
+ options: {},
1185
+ },
718
1186
  },
719
1187
  } as const;
720
1188
 
@@ -727,10 +1195,18 @@ export interface EventStoresServiceImplementation<CallContextExt = {}> {
727
1195
  request: EnsureEventStoreRequest,
728
1196
  context: CallContext & CallContextExt,
729
1197
  ): Promise<DeepPartial<CommandResult>>;
1198
+ getEventStoreDeployment(
1199
+ request: GetEventStoreDeploymentRequest,
1200
+ context: CallContext & CallContextExt,
1201
+ ): Promise<DeepPartial<QueryResultEventStoreDeploymentResponse>>;
730
1202
  observeEventStores(
731
1203
  request: Empty,
732
1204
  context: CallContext & CallContextExt,
733
1205
  ): ServerStreamingMethodResult<DeepPartial<QueryResultIEnumerableEventStoreNamesResponse>>;
1206
+ registerDeployment(
1207
+ request: RegisterDeploymentRequest,
1208
+ context: CallContext & CallContextExt,
1209
+ ): Promise<DeepPartial<CommandResult>>;
734
1210
  }
735
1211
 
736
1212
  export interface EventStoresClient<CallOptionsExt = {}> {
@@ -742,10 +1218,18 @@ export interface EventStoresClient<CallOptionsExt = {}> {
742
1218
  request: DeepPartial<EnsureEventStoreRequest>,
743
1219
  options?: CallOptions & CallOptionsExt,
744
1220
  ): Promise<CommandResult>;
1221
+ getEventStoreDeployment(
1222
+ request: DeepPartial<GetEventStoreDeploymentRequest>,
1223
+ options?: CallOptions & CallOptionsExt,
1224
+ ): Promise<QueryResultEventStoreDeploymentResponse>;
745
1225
  observeEventStores(
746
1226
  request: DeepPartial<Empty>,
747
1227
  options?: CallOptions & CallOptionsExt,
748
1228
  ): AsyncIterable<QueryResultIEnumerableEventStoreNamesResponse>;
1229
+ registerDeployment(
1230
+ request: DeepPartial<RegisterDeploymentRequest>,
1231
+ options?: CallOptions & CallOptionsExt,
1232
+ ): Promise<CommandResult>;
749
1233
  }
750
1234
 
751
1235
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
@@ -24,7 +24,7 @@ export type { EventSequenceQueriesClient, EventSequenceQueriesServiceImplementat
24
24
  export { AllEventSourcesRequest, ConcurrencyDimensions, concurrencyDimensionsFromJSON, concurrencyDimensionsToJSON, EventSourceDefinition, EventSourceDetailsResponse, EventSourceOwner, eventSourceOwnerFromJSON, eventSourceOwnerToJSON, EventSourcesDefinition, EventStreamDefinition, ObserveEventSourcesRequest, QueryResultIEnumerableEventSourceDetailsResponse, RegisterEventSourcesRequest } from './eventsources';
25
25
  export type { EventSourcesClient, EventSourcesServiceImplementation } from './eventsources';
26
26
 
27
- export { EnsureEventStoreRequest, EventStoreNamesResponse, EventStoresDefinition, QueryResultIEnumerableEventStoreNamesResponse } from './eventstores';
27
+ export { EnsureEventStoreRequest, EventStoreDeploymentResponse, EventStoreNamesResponse, EventStoresDefinition, GetEventStoreDeploymentRequest, QueryResultEventStoreDeploymentResponse, QueryResultIEnumerableEventStoreNamesResponse, RegisterDeploymentRequest } from './eventstores';
28
28
  export type { EventStoresClient, EventStoresServiceImplementation } from './eventstores';
29
29
 
30
30
  export { AllEventTypeGenerationsRequest, AllEventTypesRequest, CreateEventTypeRequest, EventTypeDetailsResponse, EventTypeGenerationDefinition, EventTypeMigrationDefinition, EventTypeMigrationOperation, EventTypeOwner, eventTypeOwnerFromJSON, eventTypeOwnerToJSON, EventTypeRegistration, EventTypesDefinition, EventTypeSource, eventTypeSourceFromJSON, eventTypeSourceToJSON, EventTypeVisibility, eventTypeVisibilityFromJSON, eventTypeVisibilityToJSON, ObserveEventTypesRequest, QueryResultIEnumerableEventTypeDetailsResponse, RegisterEventTypesRequest, RegisterSingleEventTypeRequest } from './eventtypes';
@@ -84,13 +84,13 @@ export type { MaterializedReadModelsClient, MaterializedReadModelsServiceImpleme
84
84
  export { AllRecommendationsRequest, GetRecommendationsRequest, IgnoreRecommendationRequest, PerformRecommendationRequest, QueryResultIEnumerableRecommendationDetailsResponse, RecommendationDetailsResponse, RecommendationsDefinition } from './recommendations';
85
85
  export type { RecommendationsClient, RecommendationsServiceImplementation } from './recommendations';
86
86
 
87
- export { AddApplicationRequest, AddUserRequest, AdminPasswordStatusResponse, ApplicationResponse, ApplicationsDefinition, ChangeApplicationSecretRequest, ChangeUserPasswordRequest, QueryResultAdminPasswordStatusResponse, QueryResultIEnumerableApplicationResponse, QueryResultIEnumerableUserResponse, RemoveApplicationRequest, RemoveUserRequest, RequirePasswordChangeRequest, SetInitialAdminPasswordRequest, UserResponse, UsersDefinition } from './security';
88
- export type { ApplicationsClient, ApplicationsServiceImplementation, UsersClient, UsersServiceImplementation } from './security';
87
+ export { AddApplicationRequest, AddUserRequest, AdministratorResponse, AdministratorsDefinition, AdminPasswordStatusResponse, ApplicationResponse, ApplicationsDefinition, ChangeApplicationSecretRequest, ChangeUserPasswordRequest, GrantAdministratorRequest, QueryResultAdminPasswordStatusResponse, QueryResultIEnumerableAdministratorResponse, QueryResultIEnumerableApplicationResponse, QueryResultIEnumerableUserResponse, RemoveApplicationRequest, RemoveUserRequest, RequirePasswordChangeRequest, RevokeAdministratorRequest, SetInitialAdminPasswordRequest, UserResponse, UsersDefinition } from './security';
88
+ export type { AdministratorsClient, AdministratorsServiceImplementation, ApplicationsClient, ApplicationsServiceImplementation, UsersClient, UsersServiceImplementation } from './security';
89
89
 
90
90
  export { AddSeedEntryRequest, EventSeedingDefinition, EventSeedingSupportResponse, EventSourceSeedEntries, EventTypeSeedEntries, GetGlobalSeedDataRequest, GetNamespaceSeedDataRequest, NamespacedSeedEntries, QueryResultEventSeedingSupportResponse, QueryResultSeedDataResponse, SeedDataResponse, SeedEventsRequest, SeedingEntry } from './seeding';
91
91
  export type { EventSeedingClient, EventSeedingServiceImplementation } from './seeding';
92
92
 
93
- export { AllEventSequencesRequest, AppendedEventResponse, AppendedEventsRequest, AppendManyForEventSourcesRequest, AppendManyForEventSourcesWithNamedTagsRequest, AppendManyOnceRequest, AppendManyOnceResponse, AppendManyOnceWithNamedTagsRequest, AppendManyRequest, AppendManyResponse, AppendManyWithNamedTagsRequest, AppendOnceRequest, AppendOnceResponse, AppendOnceWithNamedTagsRequest, AppendOutcome, appendOutcomeFromJSON, appendOutcomeToJSON, AppendRequest, AppendResponse, AppendWithNamedTagsRequest, ClosedStreamOrigin, closedStreamOriginFromJSON, closedStreamOriginToJSON, ClosedStreamResponse, ClosedStreamsRequest, CommandResultAppendManyOnceResponse, CommandResultAppendManyResponse, CommandResultAppendOnceResponse, CommandResultAppendResponse, CommandResultCompleteStreamResponse, CommandResultReopenStreamScopeResponse, CommandResultVerifyContentResponse, CompleteStreamError, completeStreamErrorFromJSON, completeStreamErrorToJSON, CompleteStreamRequest, CompleteStreamResponse, CompleteStreamScopeRequest, ConcurrencyScope, ConcurrencyViolation, ConstraintViolation, ConstraintViolation_DetailsEntry, ContentVerificationResult, contentVerificationResultFromJSON, contentVerificationResultToJSON, EndOfRequest, EventForEventSourceId, EventForEventSourceIdWithNamedTags, EventMetadataResponse, EventSequenceNamesResponse, EventSequencesDefinition, EventSequenceTailResponse, EventSourceConcurrencyScope, EventSourceEventsResponse, EventToAppend, EventToAppendWithNamedTags, ExportedEventResponse, ExportEventsRequest, ForEventSourceIdAndEventTypesRequest, FromSequenceNumberRequest, HasEventsForEventSourceIdRequest, HistogramResolution, histogramResolutionFromJSON, histogramResolutionToJSON, IdempotencyConflictReason, idempotencyConflictReasonFromJSON, idempotencyConflictReasonToJSON, IdempotencyKeyConflict, IdentityResolution, identityResolutionFromJSON, identityResolutionToJSON, InitiatorType, initiatorTypeFromJSON, initiatorTypeToJSON, IsStreamScopeCompletedRequest, KeyedEventForEventSourceId, KeyedEventForEventSourceIdWithNamedTags, KeyValuePairInt32String, MetadataAtRequest, NamedTagQueryCriterion, ParseResolutionRequest, QueryEventsRequest, QueryEventsWithNamedTagsRequest, QueryResultEventSequenceTailResponse, QueryResultEventSourceEventsResponse, QueryResultHistogramResolution, QueryResultIEnumerableAppendedEventResponse, QueryResultIEnumerableClosedStreamResponse, QueryResultIEnumerableEventMetadataResponse, QueryResultIEnumerableEventSequenceNamesResponse, QueryResultIEnumerableExportedEventResponse, QueryResultIEnumerableSequenceHistogramBucketResponse, QueryResultSerializableDateTimeOffset, QueryResultStreamScopeCompletionResponse, RedactForEventSourceRequest, RedactRequest, ReopenStreamScopeError, reopenStreamScopeErrorFromJSON, reopenStreamScopeErrorToJSON, ReopenStreamScopeRequest, ReopenStreamScopeResponse, ResolvedIdentity, ReviseRequest, SequenceHistogramBucketResponse, SequenceHistogramRequest, SequenceHistogramWithNamedTagsRequest, StreamScopeCompletionResponse, TailSequenceNumberRequest, VerifyContentRequest, VerifyContentResponse } from './sequences';
93
+ export { AllEventSequencesRequest, AppendedEventResponse, AppendedEventsRequest, AppendManyForEventSourcesRequest, AppendManyForEventSourcesWithNamedTagsRequest, AppendManyOnceRequest, AppendManyOnceResponse, AppendManyOnceWithNamedTagsRequest, AppendManyRequest, AppendManyResponse, AppendManyWithNamedTagsRequest, AppendOnceRequest, AppendOnceResponse, AppendOnceWithNamedTagsRequest, AppendOutcome, appendOutcomeFromJSON, appendOutcomeToJSON, AppendRequest, AppendResponse, AppendWithNamedTagsRequest, ClosedStreamOrigin, closedStreamOriginFromJSON, closedStreamOriginToJSON, ClosedStreamResponse, ClosedStreamsRequest, CommandResultAppendManyOnceResponse, CommandResultAppendManyResponse, CommandResultAppendOnceResponse, CommandResultAppendResponse, CommandResultCompleteStreamResponse, CommandResultReopenStreamScopeResponse, CommandResultVerifyContentResponse, CompleteStreamError, completeStreamErrorFromJSON, completeStreamErrorToJSON, CompleteStreamRequest, CompleteStreamResponse, CompleteStreamScopeRequest, ConcurrencyScope, ConcurrencyViolation, ConstraintViolation, ConstraintViolation_DetailsEntry, ContentVerificationResult, contentVerificationResultFromJSON, contentVerificationResultToJSON, EndOfRequest, EventForEventSourceId, EventForEventSourceIdWithNamedTags, EventMetadataResponse, EventSequenceNamesResponse, EventSequencePageResponse, EventSequencesDefinition, EventSequenceTailResponse, EventSourceConcurrencyScope, EventSourceEventsResponse, EventToAppend, EventToAppendWithNamedTags, ExportedEventResponse, ExportEventsRequest, ForEventSourceIdAndEventTypesRequest, FromSequenceNumberRequest, HasEventsForEventSourceIdRequest, HistogramResolution, histogramResolutionFromJSON, histogramResolutionToJSON, IdempotencyConflictReason, idempotencyConflictReasonFromJSON, idempotencyConflictReasonToJSON, IdempotencyKeyConflict, IdentityResolution, identityResolutionFromJSON, identityResolutionToJSON, InitiatorType, initiatorTypeFromJSON, initiatorTypeToJSON, IsStreamScopeCompletedRequest, KeyedEventForEventSourceId, KeyedEventForEventSourceIdWithNamedTags, KeyValuePairInt32String, MetadataAtRequest, NamedTagQueryCriterion, PageRequest, ParseResolutionRequest, QueryEventsRequest, QueryEventsWithNamedTagsRequest, QueryResultEventSequencePageResponse, QueryResultEventSequenceTailResponse, QueryResultEventSourceEventsResponse, QueryResultHistogramResolution, QueryResultIEnumerableAppendedEventResponse, QueryResultIEnumerableClosedStreamResponse, QueryResultIEnumerableEventMetadataResponse, QueryResultIEnumerableEventSequenceNamesResponse, QueryResultIEnumerableExportedEventResponse, QueryResultIEnumerableSequenceHistogramBucketResponse, QueryResultSerializableDateTimeOffset, QueryResultStreamScopeCompletionResponse, RedactForEventSourceRequest, RedactRequest, ReopenStreamScopeError, reopenStreamScopeErrorFromJSON, reopenStreamScopeErrorToJSON, ReopenStreamScopeRequest, ReopenStreamScopeResponse, ResolvedIdentity, ReviseRequest, SequenceHistogramBucketResponse, SequenceHistogramRequest, SequenceHistogramWithNamedTagsRequest, StreamScopeCompletionResponse, TailSequenceNumberRequest, VerifyContentRequest, VerifyContentResponse } from './sequences';
94
94
  export type { EventSequencesClient, EventSequencesServiceImplementation } from './sequences';
95
95
 
96
96
  export { EventStatisticsResponse, EventTypeCount, QueryResultEventStatisticsResponse, StatisticsDefinition, StatisticsForEventStoreRequest, StatisticsForNamespaceRequest } from './statistics';