@kronos-ts/axon-server 0.4.0 → 0.5.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.
- package/dist/axon-server-event-store.d.ts +0 -16
- package/dist/axon-server-event-store.d.ts.map +1 -1
- package/dist/axon-server-event-store.js +47 -14
- package/dist/axon-server-event-store.js.map +1 -1
- package/dist/axon-server-snapshotting-event-store.d.ts +30 -0
- package/dist/axon-server-snapshotting-event-store.d.ts.map +1 -0
- package/dist/axon-server-snapshotting-event-store.js +153 -0
- package/dist/axon-server-snapshotting-event-store.js.map +1 -0
- package/dist/axon-server.d.ts +33 -60
- package/dist/axon-server.d.ts.map +1 -1
- package/dist/axon-server.js +58 -59
- package/dist/axon-server.js.map +1 -1
- package/dist/connection-manager.d.ts +2 -2
- package/dist/connection-manager.d.ts.map +1 -1
- package/dist/connection.d.ts +23 -21
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +6 -5
- package/dist/connection.js.map +1 -1
- package/dist/context-view.d.ts +2 -2
- package/dist/context-view.d.ts.map +1 -1
- package/dist/control-plane.d.ts +5 -5
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/event-processor-info.d.ts +4 -4
- package/dist/event-processor-info.d.ts.map +1 -1
- package/dist/flow-controlled-sender.d.ts +2 -2
- package/dist/flow-controlled-sender.d.ts.map +1 -1
- package/dist/generated/command.d.ts +20 -20
- package/dist/generated/command.d.ts.map +1 -1
- package/dist/generated/common.d.ts +20 -20
- package/dist/generated/common.d.ts.map +1 -1
- package/dist/generated/control.d.ts +36 -40
- package/dist/generated/control.d.ts.map +1 -1
- package/dist/generated/dcb.d.ts +88 -94
- package/dist/generated/dcb.d.ts.map +1 -1
- package/dist/generated/event.d.ts +81 -84
- package/dist/generated/event.d.ts.map +1 -1
- package/dist/generated/google/protobuf/empty.d.ts +3 -4
- package/dist/generated/google/protobuf/empty.d.ts.map +1 -1
- package/dist/generated/query.d.ts +40 -40
- package/dist/generated/query.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/message-size.d.ts +2 -2
- package/dist/message-size.d.ts.map +1 -1
- package/dist/outbound-stream.d.ts +2 -2
- package/dist/outbound-stream.d.ts.map +1 -1
- package/dist/platform-service.d.ts +4 -4
- package/dist/platform-service.d.ts.map +1 -1
- package/dist/resilience.d.ts +62 -0
- package/dist/resilience.d.ts.map +1 -0
- package/dist/resilience.js +103 -0
- package/dist/resilience.js.map +1 -0
- package/dist/shutdown-latch.d.ts +4 -4
- package/dist/shutdown-latch.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/axon-server-event-store.ts +46 -14
- package/src/axon-server-snapshotting-event-store.ts +191 -0
- package/src/axon-server.ts +72 -77
- package/src/connection-manager.ts +1 -1
- package/src/connection.ts +16 -14
- package/src/context-view.ts +1 -1
- package/src/control-plane.ts +3 -3
- package/src/event-processor-info.ts +2 -2
- package/src/flow-controlled-sender.ts +1 -1
- package/src/generated/command.ts +10 -10
- package/src/generated/common.ts +10 -10
- package/src/generated/control.ts +20 -20
- package/src/generated/dcb.ts +47 -47
- package/src/generated/event.ts +42 -42
- package/src/generated/google/protobuf/empty.ts +2 -2
- package/src/generated/query.ts +20 -20
- package/src/index.ts +1 -1
- package/src/message-size.ts +1 -1
- package/src/outbound-stream.ts +1 -1
- package/src/platform-service.ts +2 -2
- package/src/resilience.ts +149 -0
- package/src/shutdown-latch.ts +2 -2
- package/dist/axon-server-snapshot-store.d.ts +0 -12
- package/dist/axon-server-snapshot-store.d.ts.map +0 -1
- package/dist/axon-server-snapshot-store.js +0 -82
- package/dist/axon-server-snapshot-store.js.map +0 -1
- package/src/axon-server-snapshot-store.ts +0 -110
package/dist/connection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAA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AG;KACrB,CAAC,CAAA;IAEF,4EAA4E;IAC5E,2EAA2E;IAC3E,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAA;IAEhC,+EAA+E;IAC/E,4EAA4E;IAC5E,8EAA8E;IAC9E,4EAA4E;IAC5E,uBAAuB;IACvB,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAA;IAEhE,OAAO;QACL,UAAU;QACV,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,UAAU;QACV,UAAU;QACV,QAAQ;QACR,QAAQ;QAER,KAAK,CAAC,KAAK;YACT,yEAAyE;YACzE,0EAA0E;YAC1E,yEAAyE;YACzE,uEAAuE;YACvE,2EAA2E;YAC3E,2EAA2E;YAC3E,6DAA6D;YAC7D,EAAE;YACF,yEAAyE;YACzE,0EAA0E;YAC1E,0EAA0E;YAC1E,yCAAyC;YACzC,MAAM,QAAQ,CAAC,uBAAuB,EAAE,CAAA;YAExC,8DAA8D;YAC9D,wEAAwE;YACxE,0EAA0E;YAC1E,sEAAsE;YACtE,wEAAwE;YACxE,qEAAqE;YACrE,sEAAsE;YACtE,2EAA2E;YAC3E,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,yBAAyB,IAAI,IAAI,CAAC,CAAC,CAAA;QAC5E,CAAC;QAED,KAAK,CAAC,KAAK;YACT,MAAM,QAAQ,CAAC,gBAAgB,EAAE,CAAA;YACjC,2EAA2E;YAC3E,yEAAyE;YACzE,QAAQ,CAAC,IAAI,EAAE,CAAA;YACf,UAAU,CAAC,KAAK,EAAE,CAAA;QACpB,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/dist/context-view.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { AxonServerStoreSource } from "./connection.js";
|
|
|
11
11
|
* channel, the codec or the drain latch differs between them; only this header
|
|
12
12
|
* does, which is why the whole difference fits in one small record.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export type AxonServerContextView = AxonServerStoreSource & {
|
|
15
15
|
/** The Axon Server context every call through this view addresses. */
|
|
16
16
|
readonly context: string;
|
|
17
17
|
/**
|
|
@@ -24,7 +24,7 @@ export interface AxonServerContextView extends AxonServerStoreSource {
|
|
|
24
24
|
* can hoist it, and one that makes many unary calls can hand each its own.
|
|
25
25
|
*/
|
|
26
26
|
metadata(): Metadata;
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
/** Scope a connection to one Axon Server context. */
|
|
29
29
|
export declare function contextView(source: AxonServerStoreSource, context: string): AxonServerContextView;
|
|
30
30
|
//# sourceMappingURL=context-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-view.d.ts","sourceRoot":"","sources":["../src/context-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"context-view.d.ts","sourceRoot":"","sources":["../src/context-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG;IAC1D,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB;;;;;;;;OAQG;IACH,QAAQ,IAAI,QAAQ,CAAA;CACrB,CAAA;AAED,qDAAqD;AACrD,wBAAgB,WAAW,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,GAAG,qBAAqB,CAejG"}
|
package/dist/control-plane.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
21
21
|
* const axon = await axonServerConnection({ ... })
|
|
22
|
-
* const app = kronos({
|
|
22
|
+
* const app = kronos({ commandHandlers, queryHandlers, eventHandlers })
|
|
23
23
|
* await axon.start() // data path only
|
|
24
24
|
*
|
|
25
25
|
* // opt in to remote administration
|
|
@@ -51,7 +51,7 @@ import type { AxonServerPlatformSource } from "./connection.js";
|
|
|
51
51
|
* may not implement (a subscribing processor has no segments), and the
|
|
52
52
|
* instruction handler simply skips what is absent.
|
|
53
53
|
*/
|
|
54
|
-
export
|
|
54
|
+
export type ManagedEventProcessor = {
|
|
55
55
|
readonly name: string;
|
|
56
56
|
readonly running?: boolean;
|
|
57
57
|
readonly replaying?: boolean;
|
|
@@ -68,12 +68,12 @@ export interface ManagedEventProcessor {
|
|
|
68
68
|
releaseSegment?(segmentId: number): Promise<unknown> | unknown;
|
|
69
69
|
splitSegment?(segmentId: number): Promise<unknown> | unknown;
|
|
70
70
|
mergeSegment?(segmentId: number): Promise<unknown> | unknown;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
72
|
/**
|
|
73
73
|
* A running control plane. The platform stream is live; instructions are being
|
|
74
74
|
* routed and status is being reported until `close()`.
|
|
75
75
|
*/
|
|
76
|
-
export
|
|
76
|
+
export type AxonServerControlPlane = {
|
|
77
77
|
/**
|
|
78
78
|
* The processors this control plane addresses, keyed by name — the snapshot
|
|
79
79
|
* taken at construction. Exposed for introspection and tests.
|
|
@@ -81,7 +81,7 @@ export interface AxonServerControlPlane {
|
|
|
81
81
|
readonly processors: ReadonlyMap<string, ManagedEventProcessor>;
|
|
82
82
|
/** Stop the platform stream. Idempotent, and safe to call before `axon.close()`. */
|
|
83
83
|
close(): Promise<void>;
|
|
84
|
-
}
|
|
84
|
+
};
|
|
85
85
|
/**
|
|
86
86
|
* Wire remote administration onto an Axon Server platform stream and start it.
|
|
87
87
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../src/control-plane.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C,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IAC/D,oFAAoF;IACpF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB,CAAA;AAwCD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,wBAAwB,EAC9B,UAAU,GAAE,QAAQ,CAAC,qBAAqB,CAAM,GAC/C,OAAO,CAAC,sBAAsB,CAAC,CAuCjC"}
|
|
@@ -3,7 +3,7 @@ import type { EventProcessorInfo } from "./generated/control.js";
|
|
|
3
3
|
* Status of a single event processor, reported to Axon Server.
|
|
4
4
|
* Aligned with Java's EventProcessorInfo proto message.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type ProcessorStatus = {
|
|
7
7
|
readonly name: string;
|
|
8
8
|
readonly running: boolean;
|
|
9
9
|
readonly mode: "Tracking" | "Subscribing";
|
|
@@ -14,15 +14,15 @@ export interface ProcessorStatus {
|
|
|
14
14
|
readonly errorMessage?: string;
|
|
15
15
|
readonly tokenStoreIdentifier: string;
|
|
16
16
|
readonly segments: SegmentStatus[];
|
|
17
|
-
}
|
|
18
|
-
export
|
|
17
|
+
};
|
|
18
|
+
export type SegmentStatus = {
|
|
19
19
|
readonly segmentId: number;
|
|
20
20
|
readonly caughtUp: boolean;
|
|
21
21
|
readonly replaying: boolean;
|
|
22
22
|
readonly onePartOf: number;
|
|
23
23
|
readonly tokenPosition: bigint;
|
|
24
24
|
readonly errorState: string;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
/**
|
|
27
27
|
* Converts a ProcessorStatus to the proto EventProcessorInfo format.
|
|
28
28
|
*/
|
|
@@ -1 +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,
|
|
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,MAAM,eAAe,GAAG;IAC5B,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,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,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,CAAA;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,kBAAkB,CAahF;AAaD;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,eAAe,EAAE,CAAA"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Aligned with Java's `FlowControlledResponseSender`.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type FlowControlledSender<T> = {
|
|
11
11
|
/** Send an update. Buffers if no permits available. */
|
|
12
12
|
offer(value: T): boolean;
|
|
13
13
|
/** Grant additional permits to the sender. */
|
|
@@ -18,7 +18,7 @@ export interface FlowControlledSender<T> {
|
|
|
18
18
|
completeExceptionally(error: Error): void;
|
|
19
19
|
/** Whether the stream is still active. */
|
|
20
20
|
readonly active: boolean;
|
|
21
|
-
}
|
|
21
|
+
};
|
|
22
22
|
/**
|
|
23
23
|
* Creates a flow-controlled sender that buffers updates when permits are
|
|
24
24
|
* exhausted and drains the buffer when new permits arrive.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-controlled-sender.d.ts","sourceRoot":"","sources":["../src/flow-controlled-sender.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"flow-controlled-sender.d.ts","sourceRoot":"","sources":["../src/flow-controlled-sender.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,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,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,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"}
|
|
@@ -3,7 +3,7 @@ import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
|
3
3
|
import { ErrorMessage, FlowControl, InstructionAck, MetaDataValue, ProcessingInstruction, SerializedObject } from "./common.js";
|
|
4
4
|
export declare const protobufPackage = "io.axoniq.axonserver.grpc.command";
|
|
5
5
|
/** An instruction from the components that provides the Command Handler towards AxonServer. */
|
|
6
|
-
export
|
|
6
|
+
export type CommandProviderOutbound = {
|
|
7
7
|
/** Instruction to subscribe this component as handler of a specific type of command */
|
|
8
8
|
subscribe?: CommandSubscription | undefined;
|
|
9
9
|
/** Instruction to unsubscribe this component as handler of a specific type of command */
|
|
@@ -16,18 +16,18 @@ export interface CommandProviderOutbound {
|
|
|
16
16
|
ack?: InstructionAck | undefined;
|
|
17
17
|
/** Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream */
|
|
18
18
|
instructionId: string;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
/** An instruction or confirmation from AxonServer towards the component that provides the Command Handler */
|
|
21
|
-
export
|
|
21
|
+
export type CommandProviderInbound = {
|
|
22
22
|
/** Acknowledgement of previously sent instruction via outbound stream */
|
|
23
23
|
ack?: InstructionAck | undefined;
|
|
24
24
|
/** A command for this component to process */
|
|
25
25
|
command?: Command | undefined;
|
|
26
26
|
/** Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream */
|
|
27
27
|
instructionId: string;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
/** A message representing a Command that needs to be routed to a component capable of handling it */
|
|
30
|
-
export
|
|
30
|
+
export type Command = {
|
|
31
31
|
/** The unique identifier of the Command Message */
|
|
32
32
|
messageIdentifier: string;
|
|
33
33
|
/** The name of the command, used for routing it to a destination capable of handling it */
|
|
@@ -46,13 +46,13 @@ export interface Command {
|
|
|
46
46
|
clientId: string;
|
|
47
47
|
/** The name/type of the component dispatching this message */
|
|
48
48
|
componentName: string;
|
|
49
|
-
}
|
|
50
|
-
export
|
|
49
|
+
};
|
|
50
|
+
export type Command_MetaDataEntry = {
|
|
51
51
|
key: string;
|
|
52
52
|
value: MetaDataValue | undefined;
|
|
53
|
-
}
|
|
53
|
+
};
|
|
54
54
|
/** Message representing the result of Command Handler execution */
|
|
55
|
-
export
|
|
55
|
+
export type CommandResponse = {
|
|
56
56
|
/** The unique identifier of the response message */
|
|
57
57
|
messageIdentifier: string;
|
|
58
58
|
/** An error code describing the error, if any */
|
|
@@ -69,13 +69,13 @@ export interface CommandResponse {
|
|
|
69
69
|
processingInstructions: ProcessingInstruction[];
|
|
70
70
|
/** The unique identifier of the Command Message for which this is the response */
|
|
71
71
|
requestIdentifier: string;
|
|
72
|
-
}
|
|
73
|
-
export
|
|
72
|
+
};
|
|
73
|
+
export type CommandResponse_MetaDataEntry = {
|
|
74
74
|
key: string;
|
|
75
75
|
value: MetaDataValue | undefined;
|
|
76
|
-
}
|
|
76
|
+
};
|
|
77
77
|
/** Message describing a component's capability of handling a command type */
|
|
78
|
-
export
|
|
78
|
+
export type CommandSubscription = {
|
|
79
79
|
/**
|
|
80
80
|
* A unique identifier for this subscription. This identifier is returned in Acknowledgements to allow
|
|
81
81
|
* pipelining of subscription messages
|
|
@@ -93,7 +93,7 @@ export interface CommandSubscription {
|
|
|
93
93
|
* Used to balance the dispatching of commands. If set to 0, Axon Server consider 100 as default value.
|
|
94
94
|
*/
|
|
95
95
|
loadFactor: number;
|
|
96
|
-
}
|
|
96
|
+
};
|
|
97
97
|
export declare const CommandProviderOutbound: MessageFns<CommandProviderOutbound>;
|
|
98
98
|
export declare const CommandProviderInbound: MessageFns<CommandProviderInbound>;
|
|
99
99
|
export declare const Command: MessageFns<Command>;
|
|
@@ -127,18 +127,18 @@ export declare const CommandServiceDefinition: {
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
-
export
|
|
130
|
+
export type CommandServiceImplementation<CallContextExt = {}> = {
|
|
131
131
|
/** Opens a stream allowing clients to register command handlers and receive commands. */
|
|
132
132
|
openStream(request: AsyncIterable<CommandProviderOutbound>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<CommandProviderInbound>>;
|
|
133
133
|
/** Dispatches the given command, returning the result of command execution */
|
|
134
134
|
dispatch(request: Command, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResponse>>;
|
|
135
|
-
}
|
|
136
|
-
export
|
|
135
|
+
};
|
|
136
|
+
export type CommandServiceClient<CallOptionsExt = {}> = {
|
|
137
137
|
/** Opens a stream allowing clients to register command handlers and receive commands. */
|
|
138
138
|
openStream(request: AsyncIterable<DeepPartial<CommandProviderOutbound>>, options?: CallOptions & CallOptionsExt): AsyncIterable<CommandProviderInbound>;
|
|
139
139
|
/** Dispatches the given command, returning the result of command execution */
|
|
140
140
|
dispatch(request: DeepPartial<Command>, options?: CallOptions & CallOptionsExt): Promise<CommandResponse>;
|
|
141
|
-
}
|
|
141
|
+
};
|
|
142
142
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
143
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
144
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -146,13 +146,13 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<
|
|
|
146
146
|
export type ServerStreamingMethodResult<Response> = {
|
|
147
147
|
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
148
148
|
};
|
|
149
|
-
export
|
|
149
|
+
export type MessageFns<T> = {
|
|
150
150
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
151
151
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
152
152
|
fromJSON(object: any): T;
|
|
153
153
|
toJSON(message: T): unknown;
|
|
154
154
|
create(base?: DeepPartial<T>): T;
|
|
155
155
|
fromPartial(object: DeepPartial<T>): T;
|
|
156
|
-
}
|
|
156
|
+
};
|
|
157
157
|
export {};
|
|
158
158
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +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,
|
|
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,MAAM,uBAAuB,GAAG;IACpC,uFAAuF;IACvF,SAAS,CAAC,EACN,mBAAmB,GACnB,SAAS,CAAC;IACd,yFAAyF;IACzF,WAAW,CAAC,EACR,mBAAmB,GACnB,SA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
export declare function taskStatusFromJSON(object: any): TaskStatus;
|
|
36
36
|
export declare function taskStatusToJSON(object: TaskStatus): string;
|
|
37
37
|
/** Describes a serialized object */
|
|
38
|
-
export
|
|
38
|
+
export type SerializedObject = {
|
|
39
39
|
/** The type identifier of the serialized object. */
|
|
40
40
|
type: string;
|
|
41
41
|
/** The revision of the serialized form of the given type. */
|
|
42
42
|
revision: string;
|
|
43
43
|
/** The actual data representing the object in serialized form. */
|
|
44
44
|
data: Uint8Array;
|
|
45
|
-
}
|
|
45
|
+
};
|
|
46
46
|
/** The value of a MetaData entry. */
|
|
47
|
-
export
|
|
47
|
+
export type MetaDataValue = {
|
|
48
48
|
/** The text value of the Meta Data entry. */
|
|
49
49
|
textValue?: string | undefined;
|
|
50
50
|
/** The numeric value of the Meta Data entry. */
|
|
@@ -55,16 +55,16 @@ export interface MetaDataValue {
|
|
|
55
55
|
doubleValue?: number | undefined;
|
|
56
56
|
/** The binary value of the Meta Data entry. */
|
|
57
57
|
bytesValue?: SerializedObject | undefined;
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
/** An instruction for routing components when routing or processing a message. */
|
|
60
|
-
export
|
|
60
|
+
export type ProcessingInstruction = {
|
|
61
61
|
/** The type of processing message. */
|
|
62
62
|
key: ProcessingKey;
|
|
63
63
|
/** The value associated with the processing key. */
|
|
64
64
|
value: MetaDataValue | undefined;
|
|
65
|
-
}
|
|
65
|
+
};
|
|
66
66
|
/** Message containing details of an error */
|
|
67
|
-
export
|
|
67
|
+
export type ErrorMessage = {
|
|
68
68
|
/** A human readable message explaining the error */
|
|
69
69
|
message: string;
|
|
70
70
|
/** A description of the location (client component, server) where the error occurred */
|
|
@@ -73,38 +73,38 @@ export interface ErrorMessage {
|
|
|
73
73
|
details: string[];
|
|
74
74
|
/** An Error Code identifying the type of error */
|
|
75
75
|
errorCode: string;
|
|
76
|
-
}
|
|
76
|
+
};
|
|
77
77
|
/** Message used for Flow Control instruction, providing the counterpart with additional permits for sending messages */
|
|
78
|
-
export
|
|
78
|
+
export type FlowControl = {
|
|
79
79
|
/** The ClientID of the component providing additional permits */
|
|
80
80
|
clientId: string;
|
|
81
81
|
/** The number of permits to provide */
|
|
82
82
|
permits: bigint;
|
|
83
|
-
}
|
|
83
|
+
};
|
|
84
84
|
/** Message describing instruction acknowledgement */
|
|
85
|
-
export
|
|
85
|
+
export type InstructionAck = {
|
|
86
86
|
/** The identifier of the instruction */
|
|
87
87
|
instructionId: string;
|
|
88
88
|
/** Indicator whether the instruction was acknowledged successfully */
|
|
89
89
|
success: boolean;
|
|
90
90
|
/** Set if instruction acknowledgement failed. */
|
|
91
91
|
error: ErrorMessage | undefined;
|
|
92
|
-
}
|
|
92
|
+
};
|
|
93
93
|
/** Message describing the result of the execution of an instruction */
|
|
94
|
-
export
|
|
94
|
+
export type InstructionResult = {
|
|
95
95
|
/** The identifier of the instruction */
|
|
96
96
|
instructionId: string;
|
|
97
97
|
/** Indicator whether the instruction was processed successfully */
|
|
98
98
|
success: boolean;
|
|
99
99
|
/** Cause of instruction handling failure. */
|
|
100
100
|
error: ErrorMessage | undefined;
|
|
101
|
-
}
|
|
102
|
-
export
|
|
101
|
+
};
|
|
102
|
+
export type Component = {
|
|
103
103
|
component: string;
|
|
104
|
-
}
|
|
105
|
-
export
|
|
104
|
+
};
|
|
105
|
+
export type Principal = {
|
|
106
106
|
user: string;
|
|
107
|
-
}
|
|
107
|
+
};
|
|
108
108
|
export declare const SerializedObject: MessageFns<SerializedObject>;
|
|
109
109
|
export declare const MetaDataValue: MessageFns<MetaDataValue>;
|
|
110
110
|
export declare const ProcessingInstruction: MessageFns<ProcessingInstruction>;
|
|
@@ -118,13 +118,13 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint
|
|
|
118
118
|
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 {} ? {
|
|
119
119
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
120
120
|
} : Partial<T>;
|
|
121
|
-
export
|
|
121
|
+
export type MessageFns<T> = {
|
|
122
122
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
123
123
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
124
124
|
fromJSON(object: any): T;
|
|
125
125
|
toJSON(message: T): unknown;
|
|
126
126
|
create(base?: DeepPartial<T>): T;
|
|
127
127
|
fromPartial(object: DeepPartial<T>): T;
|
|
128
|
-
}
|
|
128
|
+
};
|
|
129
129
|
export {};
|
|
130
130
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/generated/common.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,mEAAmE;AACnE,oBAAY,aAAa;IACvB,kGAAkG;IAClG,WAAW,IAAI;IACf,qGAAqG;IACrG,QAAQ,IAAI;IACZ,2IAA2I;IAC3I,OAAO,IAAI;IACX,6IAA6I;IAC7I,aAAa,IAAI;IACjB,yFAAyF;IACzF,yBAAyB,IAAI;IAC7B,oFAAoF;IACpF,yBAAyB,IAAI;IAC7B,YAAY,KAAK;CAClB;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,GAAG,aAAa,CAyBhE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAkBjE;AAED,iDAAiD;AACjD,oBAAY,UAAU;IACpB,kDAAkD;IAClD,SAAS,IAAI;IACb,wDAAwD;IACxD,SAAS,IAAI;IACb,kEAAkE;IAClE,MAAM,IAAI;IACV,8CAA8C;IAC9C,OAAO,IAAI;IACX,gDAAgD;IAChD,SAAS,IAAI;IACb,YAAY,KAAK;CAClB;AAED,wBAAgB,kBAAkB,CAAC,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CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC,CAAA"}
|
|
@@ -18,7 +18,7 @@ export declare enum UpdateType {
|
|
|
18
18
|
export declare function updateTypeFromJSON(object: any): UpdateType;
|
|
19
19
|
export declare function updateTypeToJSON(object: UpdateType): string;
|
|
20
20
|
/** An instruction from Application Node to the AxonServer platform */
|
|
21
|
-
export
|
|
21
|
+
export type PlatformInboundInstruction = {
|
|
22
22
|
/**
|
|
23
23
|
* Information about the client being connected.
|
|
24
24
|
* This information is used by AxonServer to monitor the topology of connected applications.
|
|
@@ -44,15 +44,13 @@ export interface PlatformInboundInstruction {
|
|
|
44
44
|
unsubscribeTopologyChanges?: UnsubscribeTopologyChanges | undefined;
|
|
45
45
|
/** Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream */
|
|
46
46
|
instructionId: string;
|
|
47
|
-
}
|
|
47
|
+
};
|
|
48
48
|
/** Message to subscribe to topology changes within the control channel's context */
|
|
49
|
-
export
|
|
50
|
-
}
|
|
49
|
+
export type SubscribeTopologyChanges = {};
|
|
51
50
|
/** Message to unsubscribe from topology changes within the control channel's context */
|
|
52
|
-
export
|
|
53
|
-
}
|
|
51
|
+
export type UnsubscribeTopologyChanges = {};
|
|
54
52
|
/** An instruction or information from the AxonServer Platform to the Application Node */
|
|
55
|
-
export
|
|
53
|
+
export type PlatformOutboundInstruction = {
|
|
56
54
|
/** Information provided by AxonServer which provides information about the AxonServer node the application is connected with */
|
|
57
55
|
nodeNotification?: NodeInfo | undefined;
|
|
58
56
|
/**
|
|
@@ -84,12 +82,11 @@ export interface PlatformOutboundInstruction {
|
|
|
84
82
|
topologyChange?: TopologyChange | undefined;
|
|
85
83
|
/** Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream */
|
|
86
84
|
instructionId: string;
|
|
87
|
-
}
|
|
85
|
+
};
|
|
88
86
|
/** Message send when AxonServer requests the client to re-establish its connection with the Platform */
|
|
89
|
-
export
|
|
90
|
-
}
|
|
87
|
+
export type RequestReconnect = {};
|
|
91
88
|
/** Message containing connection information of the node to Connect with */
|
|
92
|
-
export
|
|
89
|
+
export type PlatformInfo = {
|
|
93
90
|
/** The connection details of the node the client should connect with */
|
|
94
91
|
primary: NodeInfo | undefined;
|
|
95
92
|
/**
|
|
@@ -97,9 +94,9 @@ export interface PlatformInfo {
|
|
|
97
94
|
* established for the GetPlatformServer request for subsequent requests.
|
|
98
95
|
*/
|
|
99
96
|
sameConnection: boolean;
|
|
100
|
-
}
|
|
97
|
+
};
|
|
101
98
|
/** Message containing connection information for an AxonServer Node */
|
|
102
|
-
export
|
|
99
|
+
export type NodeInfo = {
|
|
103
100
|
/** The host name to use when connecting to this node */
|
|
104
101
|
hostName: string;
|
|
105
102
|
/** The port number for gRPC connections */
|
|
@@ -110,9 +107,9 @@ export interface NodeInfo {
|
|
|
110
107
|
version: number;
|
|
111
108
|
/** The unique name of the node to connect with, for purpose of debugging */
|
|
112
109
|
nodeName: string;
|
|
113
|
-
}
|
|
110
|
+
};
|
|
114
111
|
/** Message containing details about the Client Application */
|
|
115
|
-
export
|
|
112
|
+
export type ClientIdentification = {
|
|
116
113
|
/** A unique identifier for this client instance. Is used to distinguish different instances of the same component */
|
|
117
114
|
clientId: string;
|
|
118
115
|
/** The name of the component. Several instances of the same component should share this name */
|
|
@@ -123,13 +120,13 @@ export interface ClientIdentification {
|
|
|
123
120
|
};
|
|
124
121
|
/** Axon framework version used by the client application instance */
|
|
125
122
|
version: string;
|
|
126
|
-
}
|
|
127
|
-
export
|
|
123
|
+
};
|
|
124
|
+
export type ClientIdentification_TagsEntry = {
|
|
128
125
|
key: string;
|
|
129
126
|
value: string;
|
|
130
|
-
}
|
|
127
|
+
};
|
|
131
128
|
/** Message containing information about the status of an Event Processor */
|
|
132
|
-
export
|
|
129
|
+
export type EventProcessorInfo = {
|
|
133
130
|
/** The logical name of this processor. */
|
|
134
131
|
processorName: string;
|
|
135
132
|
/** The mode in which this processor is reading Events, for example: 'Tracking' or 'Subscribing' */
|
|
@@ -159,9 +156,9 @@ export interface EventProcessorInfo {
|
|
|
159
156
|
isStreamingProcessor: boolean;
|
|
160
157
|
/** current load balancing strategy name for the event processor */
|
|
161
158
|
loadBalancingStrategyName: string;
|
|
162
|
-
}
|
|
159
|
+
};
|
|
163
160
|
/** Message containing information about the status of a Segment of a Streaming Event Processor */
|
|
164
|
-
export
|
|
161
|
+
export type EventProcessorInfo_SegmentStatus = {
|
|
165
162
|
/** The ID of the Segment for which the status is reported */
|
|
166
163
|
segmentId: number;
|
|
167
164
|
/** Indicates whether the Segment has "Caught Up" with the Head of the Event Stream */
|
|
@@ -174,22 +171,21 @@ export interface EventProcessorInfo_SegmentStatus {
|
|
|
174
171
|
tokenPosition: bigint;
|
|
175
172
|
/** Information about the error state of the Segment, if applicable. */
|
|
176
173
|
errorState: string;
|
|
177
|
-
}
|
|
174
|
+
};
|
|
178
175
|
/** Message providing reference to an Event Processor */
|
|
179
|
-
export
|
|
176
|
+
export type EventProcessorReference = {
|
|
180
177
|
/** The name of the Event Processor */
|
|
181
178
|
processorName: string;
|
|
182
|
-
}
|
|
179
|
+
};
|
|
183
180
|
/** Message providing reference to a Segment of an Event Processor */
|
|
184
|
-
export
|
|
181
|
+
export type EventProcessorSegmentReference = {
|
|
185
182
|
/** The name of the Event Processor */
|
|
186
183
|
processorName: string;
|
|
187
184
|
/** The identifier of the Segment */
|
|
188
185
|
segmentIdentifier: number;
|
|
189
|
-
}
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
export interface TopologyChange {
|
|
186
|
+
};
|
|
187
|
+
export type Heartbeat = {};
|
|
188
|
+
export type TopologyChange = {
|
|
193
189
|
updateType: UpdateType;
|
|
194
190
|
context: string;
|
|
195
191
|
/** The client ID of the component requesting the update */
|
|
@@ -202,17 +198,17 @@ export interface TopologyChange {
|
|
|
202
198
|
command?: CommandSubscription | undefined;
|
|
203
199
|
/** The processor name to add or remove */
|
|
204
200
|
query?: QuerySubscription | undefined;
|
|
205
|
-
}
|
|
206
|
-
export
|
|
201
|
+
};
|
|
202
|
+
export type CommandSubscription = {
|
|
207
203
|
/** The subscription ID to add or remove */
|
|
208
204
|
name: string;
|
|
209
205
|
/** The load factor for the subscription */
|
|
210
206
|
loadFactor: number;
|
|
211
|
-
}
|
|
212
|
-
export
|
|
207
|
+
};
|
|
208
|
+
export type QuerySubscription = {
|
|
213
209
|
/** The subscription ID to add or remove */
|
|
214
210
|
name: string;
|
|
215
|
-
}
|
|
211
|
+
};
|
|
216
212
|
export declare const PlatformInboundInstruction: MessageFns<PlatformInboundInstruction>;
|
|
217
213
|
export declare const SubscribeTopologyChanges: MessageFns<SubscribeTopologyChanges>;
|
|
218
214
|
export declare const UnsubscribeTopologyChanges: MessageFns<UnsubscribeTopologyChanges>;
|
|
@@ -262,18 +258,18 @@ export declare const PlatformServiceDefinition: {
|
|
|
262
258
|
};
|
|
263
259
|
};
|
|
264
260
|
};
|
|
265
|
-
export
|
|
261
|
+
export type PlatformServiceImplementation<CallContextExt = {}> = {
|
|
266
262
|
/** Obtains connection information for the Server that a Client should use for its connections. */
|
|
267
263
|
getPlatformServer(request: ClientIdentification, context: CallContext & CallContextExt): Promise<DeepPartial<PlatformInfo>>;
|
|
268
264
|
/** Opens an instruction stream to the Platform, allowing AxonServer to provide management instructions to the application */
|
|
269
265
|
openStream(request: AsyncIterable<PlatformInboundInstruction>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<PlatformOutboundInstruction>>;
|
|
270
|
-
}
|
|
271
|
-
export
|
|
266
|
+
};
|
|
267
|
+
export type PlatformServiceClient<CallOptionsExt = {}> = {
|
|
272
268
|
/** Obtains connection information for the Server that a Client should use for its connections. */
|
|
273
269
|
getPlatformServer(request: DeepPartial<ClientIdentification>, options?: CallOptions & CallOptionsExt): Promise<PlatformInfo>;
|
|
274
270
|
/** Opens an instruction stream to the Platform, allowing AxonServer to provide management instructions to the application */
|
|
275
271
|
openStream(request: AsyncIterable<DeepPartial<PlatformInboundInstruction>>, options?: CallOptions & CallOptionsExt): AsyncIterable<PlatformOutboundInstruction>;
|
|
276
|
-
}
|
|
272
|
+
};
|
|
277
273
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
278
274
|
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 {} ? {
|
|
279
275
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -281,13 +277,13 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<
|
|
|
281
277
|
export type ServerStreamingMethodResult<Response> = {
|
|
282
278
|
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
283
279
|
};
|
|
284
|
-
export
|
|
280
|
+
export type MessageFns<T> = {
|
|
285
281
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
286
282
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
287
283
|
fromJSON(object: any): T;
|
|
288
284
|
toJSON(message: T): unknown;
|
|
289
285
|
create(base?: DeepPartial<T>): T;
|
|
290
286
|
fromPartial(object: DeepPartial<T>): T;
|
|
291
|
-
}
|
|
287
|
+
};
|
|
292
288
|
export {};
|
|
293
289
|
//# sourceMappingURL=control.d.ts.map
|