@kronos-ts/axon-server 0.1.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 (106) hide show
  1. package/dist/axon-server-event-store.d.ts +16 -0
  2. package/dist/axon-server-event-store.d.ts.map +1 -0
  3. package/dist/axon-server-event-store.js +282 -0
  4. package/dist/axon-server-event-store.js.map +1 -0
  5. package/dist/axon-server-snapshot-store.d.ts +12 -0
  6. package/dist/axon-server-snapshot-store.d.ts.map +1 -0
  7. package/dist/axon-server-snapshot-store.js +88 -0
  8. package/dist/axon-server-snapshot-store.js.map +1 -0
  9. package/dist/axon-server.d.ts +115 -0
  10. package/dist/axon-server.d.ts.map +1 -0
  11. package/dist/axon-server.js +986 -0
  12. package/dist/axon-server.js.map +1 -0
  13. package/dist/connection-manager.d.ts +49 -0
  14. package/dist/connection-manager.d.ts.map +1 -0
  15. package/dist/connection-manager.js +37 -0
  16. package/dist/connection-manager.js.map +1 -0
  17. package/dist/connection.d.ts +129 -0
  18. package/dist/connection.d.ts.map +1 -0
  19. package/dist/connection.js +130 -0
  20. package/dist/connection.js.map +1 -0
  21. package/dist/errors.d.ts +96 -0
  22. package/dist/errors.d.ts.map +1 -0
  23. package/dist/errors.js +189 -0
  24. package/dist/errors.js.map +1 -0
  25. package/dist/event-processor-info.d.ts +35 -0
  26. package/dist/event-processor-info.d.ts.map +1 -0
  27. package/dist/event-processor-info.js +28 -0
  28. package/dist/event-processor-info.js.map +1 -0
  29. package/dist/flow-controlled-sender.d.ts +30 -0
  30. package/dist/flow-controlled-sender.d.ts.map +1 -0
  31. package/dist/flow-controlled-sender.js +60 -0
  32. package/dist/flow-controlled-sender.js.map +1 -0
  33. package/dist/generated/command.d.ts +158 -0
  34. package/dist/generated/command.d.ts.map +1 -0
  35. package/dist/generated/command.js +970 -0
  36. package/dist/generated/command.js.map +1 -0
  37. package/dist/generated/common.d.ts +130 -0
  38. package/dist/generated/common.d.ts.map +1 -0
  39. package/dist/generated/common.js +908 -0
  40. package/dist/generated/common.js.map +1 -0
  41. package/dist/generated/control.d.ts +293 -0
  42. package/dist/generated/control.d.ts.map +1 -0
  43. package/dist/generated/control.js +1938 -0
  44. package/dist/generated/control.js.map +1 -0
  45. package/dist/generated/dcb.d.ts +650 -0
  46. package/dist/generated/dcb.d.ts.map +1 -0
  47. package/dist/generated/dcb.js +2943 -0
  48. package/dist/generated/dcb.js.map +1 -0
  49. package/dist/generated/event.d.ts +667 -0
  50. package/dist/generated/event.d.ts.map +1 -0
  51. package/dist/generated/event.js +3185 -0
  52. package/dist/generated/event.js.map +1 -0
  53. package/dist/generated/google/protobuf/empty.d.ts +30 -0
  54. package/dist/generated/google/protobuf/empty.d.ts.map +1 -0
  55. package/dist/generated/google/protobuf/empty.js +46 -0
  56. package/dist/generated/google/protobuf/empty.js.map +1 -0
  57. package/dist/generated/query.d.ts +300 -0
  58. package/dist/generated/query.d.ts.map +1 -0
  59. package/dist/generated/query.js +2183 -0
  60. package/dist/generated/query.js.map +1 -0
  61. package/dist/index.d.ts +12 -0
  62. package/dist/index.d.ts.map +1 -0
  63. package/dist/index.js +12 -0
  64. package/dist/index.js.map +1 -0
  65. package/dist/message-size.d.ts +38 -0
  66. package/dist/message-size.d.ts.map +1 -0
  67. package/dist/message-size.js +57 -0
  68. package/dist/message-size.js.map +1 -0
  69. package/dist/metadata-conversion.d.ts +11 -0
  70. package/dist/metadata-conversion.d.ts.map +1 -0
  71. package/dist/metadata-conversion.js +51 -0
  72. package/dist/metadata-conversion.js.map +1 -0
  73. package/dist/outbound-stream.d.ts +15 -0
  74. package/dist/outbound-stream.d.ts.map +1 -0
  75. package/dist/outbound-stream.js +39 -0
  76. package/dist/outbound-stream.js.map +1 -0
  77. package/dist/platform-service.d.ts +119 -0
  78. package/dist/platform-service.d.ts.map +1 -0
  79. package/dist/platform-service.js +250 -0
  80. package/dist/platform-service.js.map +1 -0
  81. package/dist/shutdown-latch.d.ts +38 -0
  82. package/dist/shutdown-latch.d.ts.map +1 -0
  83. package/dist/shutdown-latch.js +51 -0
  84. package/dist/shutdown-latch.js.map +1 -0
  85. package/package.json +69 -0
  86. package/src/axon-server-event-store.ts +358 -0
  87. package/src/axon-server-snapshot-store.ts +118 -0
  88. package/src/axon-server.ts +1202 -0
  89. package/src/connection-manager.ts +88 -0
  90. package/src/connection.ts +272 -0
  91. package/src/errors.ts +223 -0
  92. package/src/event-processor-info.ts +62 -0
  93. package/src/flow-controlled-sender.ts +91 -0
  94. package/src/generated/command.ts +1231 -0
  95. package/src/generated/common.ts +1097 -0
  96. package/src/generated/control.ts +2419 -0
  97. package/src/generated/dcb.ts +3826 -0
  98. package/src/generated/event.ts +4076 -0
  99. package/src/generated/google/protobuf/empty.ts +84 -0
  100. package/src/generated/query.ts +2723 -0
  101. package/src/index.ts +75 -0
  102. package/src/message-size.ts +75 -0
  103. package/src/metadata-conversion.ts +46 -0
  104. package/src/outbound-stream.ts +52 -0
  105. package/src/platform-service.ts +361 -0
  106. package/src/shutdown-latch.ts +97 -0
package/dist/errors.js ADDED
@@ -0,0 +1,189 @@
1
+ /**
2
+ * Axon Server error codes — mapped from the Java framework's ErrorCode enum.
3
+ *
4
+ * Error codes follow the AXONIQ-XXXX pattern where the first digit
5
+ * indicates the category:
6
+ * - 1xxx: Authentication/instruction errors
7
+ * - 2xxx: Event publishing errors
8
+ * - 3xxx: Communication errors
9
+ * - 4xxx: Command errors
10
+ * - 5xxx: Query errors
11
+ * - 9xxx: Internal/storage errors
12
+ */
13
+ export const AxonServerErrorCode = {
14
+ // Authentication & instructions
15
+ AUTHENTICATION_TOKEN_MISSING: "AXONIQ-1000",
16
+ AUTHENTICATION_INVALID_TOKEN: "AXONIQ-1001",
17
+ UNSUPPORTED_INSTRUCTION: "AXONIQ-1002",
18
+ INSTRUCTION_ACK_ERROR: "AXONIQ-1003",
19
+ INSTRUCTION_EXECUTION_ERROR: "AXONIQ-1004",
20
+ // Event publishing
21
+ EVENT_PAYLOAD_TOO_LARGE: "AXONIQ-2001",
22
+ NO_EVENT_STORE_MASTER_AVAILABLE: "AXONIQ-2100",
23
+ CONCURRENCY_EXCEPTION: "AXONIQ-2000",
24
+ // Communication
25
+ CONNECTION_FAILED: "AXONIQ-3001",
26
+ GRPC_MESSAGE_TOO_LARGE: "AXONIQ-3002",
27
+ // Commands
28
+ NO_HANDLER_FOR_COMMAND: "AXONIQ-4000",
29
+ COMMAND_EXECUTION_ERROR: "AXONIQ-4002",
30
+ COMMAND_DISPATCH_ERROR: "AXONIQ-4003",
31
+ COMMAND_CONCURRENCY_ERROR: "AXONIQ-4004",
32
+ COMMAND_EXECUTION_NON_TRANSIENT_ERROR: "AXONIQ-4005",
33
+ // Queries
34
+ NO_HANDLER_FOR_QUERY: "AXONIQ-5000",
35
+ QUERY_EXECUTION_ERROR: "AXONIQ-5001",
36
+ QUERY_DISPATCH_ERROR: "AXONIQ-5002",
37
+ QUERY_EXECUTION_NON_TRANSIENT_ERROR: "AXONIQ-5003",
38
+ // Internal/storage
39
+ DATAFILE_READ_ERROR: "AXONIQ-9000",
40
+ INDEX_READ_ERROR: "AXONIQ-9001",
41
+ DATAFILE_WRITE_ERROR: "AXONIQ-9100",
42
+ INDEX_WRITE_ERROR: "AXONIQ-9101",
43
+ DIRECTORY_CREATION_FAILED: "AXONIQ-9102",
44
+ VALIDATION_FAILED: "AXONIQ-9200",
45
+ TRANSACTION_ROLLED_BACK: "AXONIQ-9900",
46
+ // Default
47
+ OTHER: "AXONIQ-0001",
48
+ };
49
+ // ---------------------------------------------------------------------------
50
+ // Exception hierarchy
51
+ // ---------------------------------------------------------------------------
52
+ /**
53
+ * Base error for all Axon Server errors. Carries the error code
54
+ * and whether the error is transient (retryable).
55
+ */
56
+ export class AxonServerError extends Error {
57
+ errorCode;
58
+ transient;
59
+ constructor(message, errorCode, transient) {
60
+ super(message);
61
+ this.name = "AxonServerError";
62
+ this.errorCode = errorCode;
63
+ this.transient = transient;
64
+ }
65
+ }
66
+ /** No handler registered for the dispatched command. */
67
+ export class NoHandlerForCommandError extends AxonServerError {
68
+ constructor(message) {
69
+ super(message, AxonServerErrorCode.NO_HANDLER_FOR_COMMAND, false);
70
+ this.name = "NoHandlerForCommandError";
71
+ }
72
+ }
73
+ /** No handler registered for the dispatched query. */
74
+ export class NoHandlerForQueryError extends AxonServerError {
75
+ constructor(message) {
76
+ super(message, AxonServerErrorCode.NO_HANDLER_FOR_QUERY, false);
77
+ this.name = "NoHandlerForQueryError";
78
+ }
79
+ }
80
+ /** Command handler execution failed (transient — may succeed on retry). */
81
+ export class CommandExecutionError extends AxonServerError {
82
+ constructor(message, transient = true) {
83
+ super(message, transient
84
+ ? AxonServerErrorCode.COMMAND_EXECUTION_ERROR
85
+ : AxonServerErrorCode.COMMAND_EXECUTION_NON_TRANSIENT_ERROR, transient);
86
+ this.name = "CommandExecutionError";
87
+ }
88
+ }
89
+ /** Query handler execution failed (transient — may succeed on retry). */
90
+ export class QueryExecutionError extends AxonServerError {
91
+ constructor(message, transient = true) {
92
+ super(message, transient
93
+ ? AxonServerErrorCode.QUERY_EXECUTION_ERROR
94
+ : AxonServerErrorCode.QUERY_EXECUTION_NON_TRANSIENT_ERROR, transient);
95
+ this.name = "QueryExecutionError";
96
+ }
97
+ }
98
+ /** Command dispatch failed (infrastructure error). */
99
+ export class CommandDispatchError extends AxonServerError {
100
+ constructor(message) {
101
+ super(message, AxonServerErrorCode.COMMAND_DISPATCH_ERROR, true);
102
+ this.name = "CommandDispatchError";
103
+ }
104
+ }
105
+ /** Query dispatch failed (infrastructure error). */
106
+ export class QueryDispatchError extends AxonServerError {
107
+ constructor(message) {
108
+ super(message, AxonServerErrorCode.QUERY_DISPATCH_ERROR, true);
109
+ this.name = "QueryDispatchError";
110
+ }
111
+ }
112
+ /** Optimistic concurrency violation (transient — retry with fresh state). */
113
+ export class ConcurrencyError extends AxonServerError {
114
+ constructor(message) {
115
+ super(message, AxonServerErrorCode.CONCURRENCY_EXCEPTION, true);
116
+ this.name = "ConcurrencyError";
117
+ }
118
+ }
119
+ /** Connection to Axon Server failed. */
120
+ export class ConnectionFailedError extends AxonServerError {
121
+ constructor(message) {
122
+ super(message, AxonServerErrorCode.CONNECTION_FAILED, true);
123
+ this.name = "ConnectionFailedError";
124
+ }
125
+ }
126
+ /** Authentication/authorization failed. */
127
+ export class AuthenticationError extends AxonServerError {
128
+ constructor(message, code) {
129
+ super(message, code, false);
130
+ this.name = "AuthenticationError";
131
+ }
132
+ }
133
+ // ---------------------------------------------------------------------------
134
+ // Error code → exception mapping
135
+ // ---------------------------------------------------------------------------
136
+ const TRANSIENT_CODES = new Set([
137
+ AxonServerErrorCode.COMMAND_EXECUTION_ERROR,
138
+ AxonServerErrorCode.QUERY_EXECUTION_ERROR,
139
+ AxonServerErrorCode.COMMAND_DISPATCH_ERROR,
140
+ AxonServerErrorCode.QUERY_DISPATCH_ERROR,
141
+ AxonServerErrorCode.CONNECTION_FAILED,
142
+ AxonServerErrorCode.GRPC_MESSAGE_TOO_LARGE,
143
+ AxonServerErrorCode.CONCURRENCY_EXCEPTION,
144
+ AxonServerErrorCode.COMMAND_CONCURRENCY_ERROR,
145
+ AxonServerErrorCode.NO_EVENT_STORE_MASTER_AVAILABLE,
146
+ ]);
147
+ /**
148
+ * Convert an Axon Server error code + message into a typed exception.
149
+ */
150
+ export function mapErrorCode(errorCode, message) {
151
+ switch (errorCode) {
152
+ case AxonServerErrorCode.NO_HANDLER_FOR_COMMAND:
153
+ return new NoHandlerForCommandError(message);
154
+ case AxonServerErrorCode.NO_HANDLER_FOR_QUERY:
155
+ return new NoHandlerForQueryError(message);
156
+ case AxonServerErrorCode.COMMAND_EXECUTION_ERROR:
157
+ return new CommandExecutionError(message, true);
158
+ case AxonServerErrorCode.COMMAND_EXECUTION_NON_TRANSIENT_ERROR:
159
+ return new CommandExecutionError(message, false);
160
+ case AxonServerErrorCode.QUERY_EXECUTION_ERROR:
161
+ return new QueryExecutionError(message, true);
162
+ case AxonServerErrorCode.QUERY_EXECUTION_NON_TRANSIENT_ERROR:
163
+ return new QueryExecutionError(message, false);
164
+ case AxonServerErrorCode.COMMAND_DISPATCH_ERROR:
165
+ return new CommandDispatchError(message);
166
+ case AxonServerErrorCode.QUERY_DISPATCH_ERROR:
167
+ return new QueryDispatchError(message);
168
+ case AxonServerErrorCode.CONCURRENCY_EXCEPTION:
169
+ case AxonServerErrorCode.COMMAND_CONCURRENCY_ERROR:
170
+ return new ConcurrencyError(message);
171
+ case AxonServerErrorCode.CONNECTION_FAILED:
172
+ case AxonServerErrorCode.GRPC_MESSAGE_TOO_LARGE:
173
+ return new ConnectionFailedError(message);
174
+ case AxonServerErrorCode.AUTHENTICATION_TOKEN_MISSING:
175
+ case AxonServerErrorCode.AUTHENTICATION_INVALID_TOKEN:
176
+ return new AuthenticationError(message, errorCode);
177
+ default:
178
+ return new AxonServerError(message, errorCode, TRANSIENT_CODES.has(errorCode));
179
+ }
180
+ }
181
+ /**
182
+ * Check if an error is transient (retryable).
183
+ */
184
+ export function isTransientError(error) {
185
+ if (error instanceof AxonServerError)
186
+ return error.transient;
187
+ return false;
188
+ }
189
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,gCAAgC;IAChC,4BAA4B,EAAE,aAAa;IAC3C,4BAA4B,EAAE,aAAa;IAC3C,uBAAuB,EAAE,aAAa;IACtC,qBAAqB,EAAE,aAAa;IACpC,2BAA2B,EAAE,aAAa;IAE1C,mBAAmB;IACnB,uBAAuB,EAAE,aAAa;IACtC,+BAA+B,EAAE,aAAa;IAC9C,qBAAqB,EAAE,aAAa;IAEpC,gBAAgB;IAChB,iBAAiB,EAAE,aAAa;IAChC,sBAAsB,EAAE,aAAa;IAErC,WAAW;IACX,sBAAsB,EAAE,aAAa;IACrC,uBAAuB,EAAE,aAAa;IACtC,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ClD,KAAK,mBAAmB,CAAC,qBAAqB;YAC5C,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAC/C,KAAK,mBAAmB,CAAC,mCAAmC;YAC1D,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAChD,KAAK,mBAAmB,CAAC,sBAAsB;YAC7C,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAA;QAC1C,KAAK,mBAAmB,CAAC,oBAAoB;YAC3C,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;QACxC,KAAK,mBAAmB,CAAC,qBAAqB,CAAC;QAC/C,KAAK,mBAAmB,CAAC,yBAAyB;YAChD,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAA;QACtC,KAAK,mBAAmB,CAAC,iBAAiB,CAAC;QAC3C,KAAK,mBAAmB,CAAC,sBAAsB;YAC7C,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAA;QAC3C,KAAK,mBAAmB,CAAC,4BAA4B,CAAC;QACtD,KAAK,mBAAmB,CAAC,4BAA4B;YACnD,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QACpD;YACE,OAAO,IAAI,eAAe,CACxB,OAAO,EACP,SAAS,EACT,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAC/B,CAAA;IACL,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,IAAI,KAAK,YAAY,eAAe;QAAE,OAAO,KAAK,CAAC,SAAS,CAAA;IAC5D,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { EventProcessorInfo } from "./generated/control.js";
2
+ /**
3
+ * Status of a single event processor, reported to Axon Server.
4
+ * Aligned with Java's EventProcessorInfo proto message.
5
+ */
6
+ export interface ProcessorStatus {
7
+ readonly name: string;
8
+ readonly running: boolean;
9
+ readonly mode: "Tracking" | "Subscribing";
10
+ readonly isStreamingProcessor: boolean;
11
+ readonly activeThreads: number;
12
+ readonly availableThreads: number;
13
+ readonly error: boolean;
14
+ readonly errorMessage?: string;
15
+ readonly tokenStoreIdentifier: string;
16
+ readonly segments: SegmentStatus[];
17
+ }
18
+ export interface SegmentStatus {
19
+ readonly segmentId: number;
20
+ readonly caughtUp: boolean;
21
+ readonly replaying: boolean;
22
+ readonly onePartOf: number;
23
+ readonly tokenPosition: bigint;
24
+ readonly errorState: string;
25
+ }
26
+ /**
27
+ * Converts a ProcessorStatus to the proto EventProcessorInfo format.
28
+ */
29
+ export declare function toEventProcessorInfo(status: ProcessorStatus): EventProcessorInfo;
30
+ /**
31
+ * Supplier function that returns the current status of all event processors.
32
+ * Registered with the platform connection for periodic reporting.
33
+ */
34
+ export type ProcessorStatusSupplier = () => ProcessorStatus[];
35
+ //# sourceMappingURL=event-processor-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-processor-info.d.ts","sourceRoot":"","sources":["../src/event-processor-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoC,MAAM,wBAAwB,CAAA;AAElG;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,CAAA;IACzC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAA;IACtC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,kBAAkB,CAahF;AAaD;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,eAAe,EAAE,CAAA"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Converts a ProcessorStatus to the proto EventProcessorInfo format.
3
+ */
4
+ export function toEventProcessorInfo(status) {
5
+ return {
6
+ processorName: status.name,
7
+ mode: status.mode,
8
+ activeThreads: status.activeThreads,
9
+ running: status.running,
10
+ error: status.error,
11
+ segmentStatus: status.segments.map(toSegmentStatus),
12
+ availableThreads: status.availableThreads,
13
+ tokenStoreIdentifier: status.tokenStoreIdentifier,
14
+ isStreamingProcessor: status.isStreamingProcessor,
15
+ loadBalancingStrategyName: "",
16
+ };
17
+ }
18
+ function toSegmentStatus(seg) {
19
+ return {
20
+ segmentId: seg.segmentId,
21
+ caughtUp: seg.caughtUp,
22
+ replaying: seg.replaying,
23
+ onePartOf: seg.onePartOf,
24
+ tokenPosition: seg.tokenPosition,
25
+ errorState: seg.errorState,
26
+ };
27
+ }
28
+ //# sourceMappingURL=event-processor-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-processor-info.js","sourceRoot":"","sources":["../src/event-processor-info.ts"],"names":[],"mappings":"AA4BA;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAuB;IAC1D,OAAO;QACL,aAAa,EAAE,MAAM,CAAC,IAAI;QAC1B,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC;QACnD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,yBAAyB,EAAE,EAAE;KAC9B,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,GAAkB;IACzC,OAAO;QACL,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,UAAU,EAAE,GAAG,CAAC,UAAU;KAC3B,CAAA;AACH,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Flow-controlled sender for subscription query updates.
3
+ *
4
+ * Implements request-based backpressure: the receiver requests N updates,
5
+ * and the sender only sends when permits are available. When permits are
6
+ * exhausted, updates are buffered until more permits arrive.
7
+ *
8
+ * Aligned with Java's `FlowControlledResponseSender`.
9
+ */
10
+ export interface FlowControlledSender<T> {
11
+ /** Send an update. Buffers if no permits available. */
12
+ offer(value: T): boolean;
13
+ /** Grant additional permits to the sender. */
14
+ addPermits(count: number): void;
15
+ /** Complete the stream normally. */
16
+ complete(): void;
17
+ /** Complete the stream with an error. */
18
+ completeExceptionally(error: Error): void;
19
+ /** Whether the stream is still active. */
20
+ readonly active: boolean;
21
+ }
22
+ /**
23
+ * Creates a flow-controlled sender that buffers updates when permits are
24
+ * exhausted and drains the buffer when new permits arrive.
25
+ *
26
+ * @param send Function called to actually send an update downstream.
27
+ * @param maxBufferSize Maximum number of updates to buffer. Default: 256.
28
+ */
29
+ export declare function createFlowControlledSender<T>(send: (value: T) => void, onComplete?: () => void, onError?: (error: Error) => void, maxBufferSize?: number): FlowControlledSender<T>;
30
+ //# sourceMappingURL=flow-controlled-sender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-controlled-sender.d.ts","sourceRoot":"","sources":["../src/flow-controlled-sender.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,uDAAuD;IACvD,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAA;IACxB,8CAA8C;IAC9C,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,oCAAoC;IACpC,QAAQ,IAAI,IAAI,CAAA;IAChB,yCAAyC;IACzC,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACzC,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EACxB,UAAU,CAAC,EAAE,MAAM,IAAI,EACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EAChC,aAAa,GAAE,MAAY,GAC1B,oBAAoB,CAAC,CAAC,CAAC,CAwDzB"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Creates a flow-controlled sender that buffers updates when permits are
3
+ * exhausted and drains the buffer when new permits arrive.
4
+ *
5
+ * @param send Function called to actually send an update downstream.
6
+ * @param maxBufferSize Maximum number of updates to buffer. Default: 256.
7
+ */
8
+ export function createFlowControlledSender(send, onComplete, onError, maxBufferSize = 256) {
9
+ const buffer = [];
10
+ let permits = 0;
11
+ let isActive = true;
12
+ function drain() {
13
+ while (permits > 0 && buffer.length > 0 && isActive) {
14
+ const value = buffer.shift();
15
+ permits--;
16
+ try {
17
+ send(value);
18
+ }
19
+ catch (err) {
20
+ console.warn("FlowControlledSender: send error", err);
21
+ }
22
+ }
23
+ }
24
+ return {
25
+ offer(value) {
26
+ if (!isActive)
27
+ return false;
28
+ if (permits > 0) {
29
+ permits--;
30
+ send(value);
31
+ return true;
32
+ }
33
+ if (buffer.length >= maxBufferSize) {
34
+ return false;
35
+ }
36
+ buffer.push(value);
37
+ return true;
38
+ },
39
+ addPermits(count) {
40
+ permits += count;
41
+ drain();
42
+ },
43
+ complete() {
44
+ isActive = false;
45
+ buffer.length = 0;
46
+ if (onComplete)
47
+ onComplete();
48
+ },
49
+ completeExceptionally(error) {
50
+ isActive = false;
51
+ buffer.length = 0;
52
+ if (onError)
53
+ onError(error);
54
+ },
55
+ get active() {
56
+ return isActive;
57
+ },
58
+ };
59
+ }
60
+ //# sourceMappingURL=flow-controlled-sender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-controlled-sender.js","sourceRoot":"","sources":["../src/flow-controlled-sender.ts"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CACxC,IAAwB,EACxB,UAAuB,EACvB,OAAgC,EAChC,gBAAwB,GAAG;IAE3B,MAAM,MAAM,GAAQ,EAAE,CAAA;IACtB,IAAI,OAAO,GAAG,CAAC,CAAA;IACf,IAAI,QAAQ,GAAG,IAAI,CAAA;IAEnB,SAAS,KAAK;QACZ,OAAO,OAAO,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,QAAQ,EAAE,CAAC;YACpD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,EAAG,CAAA;YAC7B,OAAO,EAAE,CAAA;YACT,IAAI,CAAC;gBACH,IAAI,CAAC,KAAK,CAAC,CAAA;YACb,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,GAAG,CAAC,CAAA;YACvD,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO;QACL,KAAK,CAAC,KAAQ;YACZ,IAAI,CAAC,QAAQ;gBAAE,OAAO,KAAK,CAAA;YAE3B,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;gBAChB,OAAO,EAAE,CAAA;gBACT,IAAI,CAAC,KAAK,CAAC,CAAA;gBACX,OAAO,IAAI,CAAA;YACb,CAAC;YAED,IAAI,MAAM,CAAC,MAAM,IAAI,aAAa,EAAE,CAAC;gBACnC,OAAO,KAAK,CAAA;YACd,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAClB,OAAO,IAAI,CAAA;QACb,CAAC;QAED,UAAU,CAAC,KAAa;YACtB,OAAO,IAAI,KAAK,CAAA;YAChB,KAAK,EAAE,CAAA;QACT,CAAC;QAED,QAAQ;YACN,QAAQ,GAAG,KAAK,CAAA;YAChB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;YACjB,IAAI,UAAU;gBAAE,UAAU,EAAE,CAAA;QAC9B,CAAC;QAED,qBAAqB,CAAC,KAAY;YAChC,QAAQ,GAAG,KAAK,CAAA;YAChB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;YACjB,IAAI,OAAO;gBAAE,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,IAAI,MAAM;YACR,OAAO,QAAQ,CAAA;QACjB,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,158 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
3
+ import { ErrorMessage, FlowControl, InstructionAck, MetaDataValue, ProcessingInstruction, SerializedObject } from "./common.js";
4
+ export declare const protobufPackage = "io.axoniq.axonserver.grpc.command";
5
+ /** An instruction from the components that provides the Command Handler towards AxonServer. */
6
+ export interface CommandProviderOutbound {
7
+ /** Instruction to subscribe this component as handler of a specific type of command */
8
+ subscribe?: CommandSubscription | undefined;
9
+ /** Instruction to unsubscribe this component as handler of a specific type of command */
10
+ unsubscribe?: CommandSubscription | undefined;
11
+ /** Instruction to increase the number of instructions AxonServer may send to this component */
12
+ flowControl?: FlowControl | undefined;
13
+ /** Sends a result of Command processing */
14
+ commandResponse?: CommandResponse | undefined;
15
+ /** Acknowledgement of previously sent instruction via inbound stream */
16
+ ack?: InstructionAck | undefined;
17
+ /** Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream */
18
+ instructionId: string;
19
+ }
20
+ /** An instruction or confirmation from AxonServer towards the component that provides the Command Handler */
21
+ export interface CommandProviderInbound {
22
+ /** Acknowledgement of previously sent instruction via outbound stream */
23
+ ack?: InstructionAck | undefined;
24
+ /** A command for this component to process */
25
+ command?: Command | undefined;
26
+ /** Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream */
27
+ instructionId: string;
28
+ }
29
+ /** A message representing a Command that needs to be routed to a component capable of handling it */
30
+ export interface Command {
31
+ /** The unique identifier of the Command Message */
32
+ messageIdentifier: string;
33
+ /** The name of the command, used for routing it to a destination capable of handling it */
34
+ name: string;
35
+ /** The time at which the command was dispatched */
36
+ timestamp: bigint;
37
+ /** The payload of the Command, providing details on the instructions for the recipient */
38
+ payload: SerializedObject | undefined;
39
+ /** Meta Data entries of the Command Message, providing contextual information to the recipient */
40
+ metaData: {
41
+ [key: string]: MetaDataValue;
42
+ };
43
+ /** Instructions for AxonServer when routing this Command Message */
44
+ processingInstructions: ProcessingInstruction[];
45
+ /** The unique identifier of the component dispatching this message */
46
+ clientId: string;
47
+ /** The name/type of the component dispatching this message */
48
+ componentName: string;
49
+ }
50
+ export interface Command_MetaDataEntry {
51
+ key: string;
52
+ value: MetaDataValue | undefined;
53
+ }
54
+ /** Message representing the result of Command Handler execution */
55
+ export interface CommandResponse {
56
+ /** The unique identifier of the response message */
57
+ messageIdentifier: string;
58
+ /** An error code describing the error, if any */
59
+ errorCode: string;
60
+ /** A detailed description of the error */
61
+ errorMessage: ErrorMessage | undefined;
62
+ /** The payload to provide as a result to the dispatcher */
63
+ payload: SerializedObject | undefined;
64
+ /** Any meta data entries providing contextual information back to the dispatcher */
65
+ metaData: {
66
+ [key: string]: MetaDataValue;
67
+ };
68
+ /** Instructions for AxonServer when routing this Command Response Message */
69
+ processingInstructions: ProcessingInstruction[];
70
+ /** The unique identifier of the Command Message for which this is the response */
71
+ requestIdentifier: string;
72
+ }
73
+ export interface CommandResponse_MetaDataEntry {
74
+ key: string;
75
+ value: MetaDataValue | undefined;
76
+ }
77
+ /** Message describing a component's capability of handling a command type */
78
+ export interface CommandSubscription {
79
+ /**
80
+ * A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow
81
+ * pipelining of subscription messages
82
+ */
83
+ messageId: string;
84
+ /** The name of the command the component can handle */
85
+ command: string;
86
+ /** The name/type of the component handling the command */
87
+ componentName: string;
88
+ /** The unique identifier of the component instance subscribing */
89
+ clientId: string;
90
+ /**
91
+ * A number that represents the client's relative load capacity compared to other clients.
92
+ * This information is interpreted by Axon Server in relation to the other connected nodes' values.
93
+ * Used to balance the dispatching of commands. If set to 0, Axon Server consider 100 as default value.
94
+ */
95
+ loadFactor: number;
96
+ }
97
+ export declare const CommandProviderOutbound: MessageFns<CommandProviderOutbound>;
98
+ export declare const CommandProviderInbound: MessageFns<CommandProviderInbound>;
99
+ export declare const Command: MessageFns<Command>;
100
+ export declare const Command_MetaDataEntry: MessageFns<Command_MetaDataEntry>;
101
+ export declare const CommandResponse: MessageFns<CommandResponse>;
102
+ export declare const CommandResponse_MetaDataEntry: MessageFns<CommandResponse_MetaDataEntry>;
103
+ export declare const CommandSubscription: MessageFns<CommandSubscription>;
104
+ /** The CommandService defines the gRPC requests necessary for subscribing command handlers, and dispatching commands. */
105
+ export type CommandServiceDefinition = typeof CommandServiceDefinition;
106
+ export declare const CommandServiceDefinition: {
107
+ readonly name: "CommandService";
108
+ readonly fullName: "io.axoniq.axonserver.grpc.command.CommandService";
109
+ readonly methods: {
110
+ /** Opens a stream allowing clients to register command handlers and receive commands. */
111
+ readonly openStream: {
112
+ readonly name: "OpenStream";
113
+ readonly requestType: typeof CommandProviderOutbound;
114
+ readonly requestStream: true;
115
+ readonly responseType: typeof CommandProviderInbound;
116
+ readonly responseStream: true;
117
+ readonly options: {};
118
+ };
119
+ /** Dispatches the given command, returning the result of command execution */
120
+ readonly dispatch: {
121
+ readonly name: "Dispatch";
122
+ readonly requestType: typeof Command;
123
+ readonly requestStream: false;
124
+ readonly responseType: typeof CommandResponse;
125
+ readonly responseStream: false;
126
+ readonly options: {};
127
+ };
128
+ };
129
+ };
130
+ export interface CommandServiceImplementation<CallContextExt = {}> {
131
+ /** Opens a stream allowing clients to register command handlers and receive commands. */
132
+ openStream(request: AsyncIterable<CommandProviderOutbound>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<CommandProviderInbound>>;
133
+ /** Dispatches the given command, returning the result of command execution */
134
+ dispatch(request: Command, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResponse>>;
135
+ }
136
+ export interface CommandServiceClient<CallOptionsExt = {}> {
137
+ /** Opens a stream allowing clients to register command handlers and receive commands. */
138
+ openStream(request: AsyncIterable<DeepPartial<CommandProviderOutbound>>, options?: CallOptions & CallOptionsExt): AsyncIterable<CommandProviderInbound>;
139
+ /** Dispatches the given command, returning the result of command execution */
140
+ dispatch(request: DeepPartial<Command>, options?: CallOptions & CallOptionsExt): Promise<CommandResponse>;
141
+ }
142
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
143
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
144
+ [K in keyof T]?: DeepPartial<T[K]>;
145
+ } : Partial<T>;
146
+ export type ServerStreamingMethodResult<Response> = {
147
+ [Symbol.asyncIterator](): AsyncIterator<Response, void>;
148
+ };
149
+ export interface MessageFns<T> {
150
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
151
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
152
+ fromJSON(object: any): T;
153
+ toJSON(message: T): unknown;
154
+ create(base?: DeepPartial<T>): T;
155
+ fromPartial(object: DeepPartial<T>): T;
156
+ }
157
+ export {};
158
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/generated/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,eAAe,sCAAsC,CAAC;AAEnE,+FAA+F;AAC/F,MAAM,WAAW,uBAAuB;IACtC,uFAAuF;IACvF,SAAS,CAAC,EACN,mBAAmB,GACnB,SAAS,CAAC;IACd,yFAAyF;IACzF,WAAW,CAAC,EACR,mBAAmB,GACnB,SAAS,CAAC;IACd,+FAA+F;IAC/F,WAAW,CAAC,EACR,WAAW,GACX,SAAS,CAAC;IACd,2CAA2C;IAC3C,eAAe,CAAC,EACZ,eAAe,GACf,SAAS,CAAC;IACd,wEAAwE;IACxE,GAAG,CAAC,EACA,cAAc,GACd,SAAS,CAAC;IACd,kHAAkH;IAClH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,6GAA6G;AAC7G,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,GAAG,CAAC,EACA,cAAc,GACd,SAAS,CAAC;IACd,8CAA8C;IAC9C,OAAO,CAAC,EACJ,OAAO,GACP,SAAS,CAAC;IACd,mHAAmH;IACnH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qGAAqG;AACrG,MAAM,WAAW,OAAO;IACtB,mDAA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