@kronos-ts/kronosdb 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.
- package/dist/connection.d.ts +86 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +133 -0
- package/dist/connection.js.map +1 -0
- package/dist/errors.d.ts +72 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +149 -0
- package/dist/errors.js.map +1 -0
- package/dist/event-processor-info.d.ts +32 -0
- package/dist/event-processor-info.d.ts.map +1 -0
- package/dist/event-processor-info.js +24 -0
- package/dist/event-processor-info.js.map +1 -0
- package/dist/flow-controlled-sender.d.ts +12 -0
- package/dist/flow-controlled-sender.d.ts.map +1 -0
- package/dist/flow-controlled-sender.js +53 -0
- package/dist/flow-controlled-sender.js.map +1 -0
- package/dist/generated/command.d.ts +169 -0
- package/dist/generated/command.d.ts.map +1 -0
- package/dist/generated/command.js +964 -0
- package/dist/generated/command.js.map +1 -0
- package/dist/generated/common.d.ts +76 -0
- package/dist/generated/common.d.ts.map +1 -0
- package/dist/generated/common.js +648 -0
- package/dist/generated/common.js.map +1 -0
- package/dist/generated/eventstore.d.ts +337 -0
- package/dist/generated/eventstore.d.ts.map +1 -0
- package/dist/generated/eventstore.js +1757 -0
- package/dist/generated/eventstore.js.map +1 -0
- package/dist/generated/platform.d.ts +242 -0
- package/dist/generated/platform.d.ts.map +1 -0
- package/dist/generated/platform.js +1525 -0
- package/dist/generated/platform.js.map +1 -0
- package/dist/generated/query.d.ts +265 -0
- package/dist/generated/query.d.ts.map +1 -0
- package/dist/generated/query.js +2114 -0
- package/dist/generated/query.js.map +1 -0
- package/dist/generated/snapshot.d.ts +180 -0
- package/dist/generated/snapshot.d.ts.map +1 -0
- package/dist/generated/snapshot.js +861 -0
- package/dist/generated/snapshot.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/kronosdb-event-store.d.ts +17 -0
- package/dist/kronosdb-event-store.d.ts.map +1 -0
- package/dist/kronosdb-event-store.js +328 -0
- package/dist/kronosdb-event-store.js.map +1 -0
- package/dist/kronosdb-snapshot-store.d.ts +10 -0
- package/dist/kronosdb-snapshot-store.d.ts.map +1 -0
- package/dist/kronosdb-snapshot-store.js +79 -0
- package/dist/kronosdb-snapshot-store.js.map +1 -0
- package/dist/kronosdb.d.ts +53 -0
- package/dist/kronosdb.d.ts.map +1 -0
- package/dist/kronosdb.js +852 -0
- package/dist/kronosdb.js.map +1 -0
- package/dist/metadata-conversion.d.ts +37 -0
- package/dist/metadata-conversion.d.ts.map +1 -0
- package/dist/metadata-conversion.js +75 -0
- package/dist/metadata-conversion.js.map +1 -0
- package/dist/outbound-stream.d.ts +15 -0
- package/dist/outbound-stream.d.ts.map +1 -0
- package/dist/outbound-stream.js +39 -0
- package/dist/outbound-stream.js.map +1 -0
- package/dist/platform-service.d.ts +87 -0
- package/dist/platform-service.d.ts.map +1 -0
- package/dist/platform-service.js +218 -0
- package/dist/platform-service.js.map +1 -0
- package/dist/service-definitions.d.ts +187 -0
- package/dist/service-definitions.d.ts.map +1 -0
- package/dist/service-definitions.js +18 -0
- package/dist/service-definitions.js.map +1 -0
- package/dist/shutdown-latch.d.ts +18 -0
- package/dist/shutdown-latch.d.ts.map +1 -0
- package/dist/shutdown-latch.js +51 -0
- package/dist/shutdown-latch.js.map +1 -0
- package/package.json +69 -0
- package/src/connection.ts +235 -0
- package/src/errors.ts +173 -0
- package/src/event-processor-info.ts +53 -0
- package/src/flow-controlled-sender.ts +73 -0
- package/src/generated/command.ts +1226 -0
- package/src/generated/common.ts +770 -0
- package/src/generated/eventstore.ts +2241 -0
- package/src/generated/platform.ts +1914 -0
- package/src/generated/query.ts +2571 -0
- package/src/generated/snapshot.ts +1110 -0
- package/src/index.ts +87 -0
- package/src/kronosdb-event-store.ts +401 -0
- package/src/kronosdb-snapshot-store.ts +104 -0
- package/src/kronosdb.ts +1000 -0
- package/src/metadata-conversion.ts +85 -0
- package/src/outbound-stream.ts +52 -0
- package/src/platform-service.ts +297 -0
- package/src/service-definitions.ts +25 -0
- package/src/shutdown-latch.ts +74 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
+
export declare const protobufPackage = "kronosdb.eventstore";
|
|
4
|
+
/** An event as provided by the client. */
|
|
5
|
+
export interface Event {
|
|
6
|
+
/** Client-provided unique identifier. */
|
|
7
|
+
identifier: string;
|
|
8
|
+
/** Timestamp in milliseconds since epoch. Client-provided. */
|
|
9
|
+
timestamp: bigint;
|
|
10
|
+
/** The event type name (e.g., "OrderPlaced"). */
|
|
11
|
+
name: string;
|
|
12
|
+
/** The schema version of the event payload. */
|
|
13
|
+
version: string;
|
|
14
|
+
/** The opaque event payload. */
|
|
15
|
+
payload: Uint8Array;
|
|
16
|
+
/** Arbitrary key-value metadata. */
|
|
17
|
+
metadata: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface Event_MetadataEntry {
|
|
22
|
+
key: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
/** A tag describing an event. Key-value pair using domain concepts. */
|
|
26
|
+
export interface Tag {
|
|
27
|
+
key: Uint8Array;
|
|
28
|
+
value: Uint8Array;
|
|
29
|
+
}
|
|
30
|
+
/** An event with its tags, used for appending. */
|
|
31
|
+
export interface TaggedEvent {
|
|
32
|
+
event: Event | undefined;
|
|
33
|
+
tags: Tag[];
|
|
34
|
+
}
|
|
35
|
+
/** An event with its assigned sequence position, returned on reads. */
|
|
36
|
+
export interface SequencedEvent {
|
|
37
|
+
sequence: bigint;
|
|
38
|
+
event: Event | undefined;
|
|
39
|
+
}
|
|
40
|
+
/** Request to append events. Sent as a stream to allow batching. */
|
|
41
|
+
export interface AppendRequest {
|
|
42
|
+
/** Optional consistency condition. If omitted, events are appended unconditionally. */
|
|
43
|
+
condition: ConsistencyCondition | undefined;
|
|
44
|
+
/** Events to append. All-or-nothing transaction. */
|
|
45
|
+
events: TaggedEvent[];
|
|
46
|
+
}
|
|
47
|
+
/** Response to a successful append. */
|
|
48
|
+
export interface AppendResponse {
|
|
49
|
+
/** Sequence of the first event appended. */
|
|
50
|
+
firstSequence: bigint;
|
|
51
|
+
/** Number of events appended. */
|
|
52
|
+
count: number;
|
|
53
|
+
/** Consistency marker for subsequent appends. */
|
|
54
|
+
consistencyMarker: bigint;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The consistency condition for conditional appends.
|
|
58
|
+
* "Reject if any event matching the criteria exists after the consistency marker."
|
|
59
|
+
*/
|
|
60
|
+
export interface ConsistencyCondition {
|
|
61
|
+
/** Position after which to check for conflicts. Events with sequence > this are checked. */
|
|
62
|
+
consistencyMarker: bigint;
|
|
63
|
+
/** Criteria defining which events would conflict. */
|
|
64
|
+
criteria: Criterion[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A single criterion. Matches an event if ALL tags are present AND the event name
|
|
68
|
+
* is in the names list (if names is non-empty).
|
|
69
|
+
*/
|
|
70
|
+
export interface Criterion {
|
|
71
|
+
/** Event type names. If non-empty, the event name must match one of these. */
|
|
72
|
+
names: string[];
|
|
73
|
+
/** Tags that must ALL be present on the event. */
|
|
74
|
+
tags: Tag[];
|
|
75
|
+
}
|
|
76
|
+
/** Request to source (finite read) events matching criteria. */
|
|
77
|
+
export interface SourceRequest {
|
|
78
|
+
/** Inclusive starting sequence position. */
|
|
79
|
+
fromSequence: bigint;
|
|
80
|
+
/** Criteria to filter events. If empty, all events are returned. */
|
|
81
|
+
criteria: Criterion[];
|
|
82
|
+
}
|
|
83
|
+
/** Response containing either a matching event or the final consistency marker. */
|
|
84
|
+
export interface SourceResponse {
|
|
85
|
+
/** A matching event with its sequence. */
|
|
86
|
+
event?: SequencedEvent | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The consistency marker at the end of the stream.
|
|
89
|
+
* Use this for subsequent appends related to the same criteria.
|
|
90
|
+
*/
|
|
91
|
+
consistencyMarker?: bigint | undefined;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Client-to-server messages on the Stream RPC.
|
|
95
|
+
* The first message MUST be a Subscribe; subsequent messages grant permits.
|
|
96
|
+
*/
|
|
97
|
+
export interface StreamControl {
|
|
98
|
+
/** Initial subscription — sent once to start the stream. */
|
|
99
|
+
subscribe?: StreamSubscribe | undefined;
|
|
100
|
+
/** Grant additional permits — server may send one event per permit. */
|
|
101
|
+
permits?: StreamPermits | undefined;
|
|
102
|
+
}
|
|
103
|
+
/** Opens the event stream with criteria and initial permits. */
|
|
104
|
+
export interface StreamSubscribe {
|
|
105
|
+
/** Inclusive starting sequence position. */
|
|
106
|
+
fromSequence: bigint;
|
|
107
|
+
/** Criteria to filter events. If empty, all events are streamed. */
|
|
108
|
+
criteria: Criterion[];
|
|
109
|
+
/**
|
|
110
|
+
* Initial number of permits. The server will send at most this many events
|
|
111
|
+
* before waiting for more permits. Must be > 0.
|
|
112
|
+
*/
|
|
113
|
+
initialPermits: bigint;
|
|
114
|
+
/**
|
|
115
|
+
* Optional: event type names to exclude from the stream.
|
|
116
|
+
* Events matching any of these names are silently skipped (payload blacklisting).
|
|
117
|
+
*/
|
|
118
|
+
blacklistedNames: string[];
|
|
119
|
+
}
|
|
120
|
+
/** Grants additional permits on an active stream. */
|
|
121
|
+
export interface StreamPermits {
|
|
122
|
+
/** Number of additional permits to grant. */
|
|
123
|
+
permits: bigint;
|
|
124
|
+
}
|
|
125
|
+
/** A message on the event stream — either a matching event or a keep-alive heartbeat. */
|
|
126
|
+
export interface StreamResponse {
|
|
127
|
+
/** A matching event with its sequence. */
|
|
128
|
+
event?: SequencedEvent | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Server heartbeat — sent periodically to detect slow/dead consumers.
|
|
131
|
+
* Clients should ignore this (no response needed).
|
|
132
|
+
*/
|
|
133
|
+
heartbeat?: StreamHeartbeat | undefined;
|
|
134
|
+
}
|
|
135
|
+
/** Keep-alive heartbeat on event streams. */
|
|
136
|
+
export interface StreamHeartbeat {
|
|
137
|
+
}
|
|
138
|
+
export interface GetHeadRequest {
|
|
139
|
+
}
|
|
140
|
+
export interface GetHeadResponse {
|
|
141
|
+
/** The sequence of the next event to be appended. 0 for an empty store. */
|
|
142
|
+
sequence: bigint;
|
|
143
|
+
}
|
|
144
|
+
export interface GetTailRequest {
|
|
145
|
+
}
|
|
146
|
+
export interface GetTailResponse {
|
|
147
|
+
/** The sequence of the first event in the store. 0 for an empty or non-truncated store. */
|
|
148
|
+
sequence: bigint;
|
|
149
|
+
}
|
|
150
|
+
export interface GetTagsRequest {
|
|
151
|
+
sequence: bigint;
|
|
152
|
+
}
|
|
153
|
+
export interface GetTagsResponse {
|
|
154
|
+
tags: Tag[];
|
|
155
|
+
}
|
|
156
|
+
export interface GetSequenceAtRequest {
|
|
157
|
+
/** Timestamp in milliseconds since epoch. */
|
|
158
|
+
timestamp: bigint;
|
|
159
|
+
}
|
|
160
|
+
export interface GetSequenceAtResponse {
|
|
161
|
+
/**
|
|
162
|
+
* Sequence of the first event at or after the given timestamp.
|
|
163
|
+
* -1 if no such event exists.
|
|
164
|
+
*/
|
|
165
|
+
sequence: bigint;
|
|
166
|
+
}
|
|
167
|
+
export declare const Event: MessageFns<Event>;
|
|
168
|
+
export declare const Event_MetadataEntry: MessageFns<Event_MetadataEntry>;
|
|
169
|
+
export declare const Tag: MessageFns<Tag>;
|
|
170
|
+
export declare const TaggedEvent: MessageFns<TaggedEvent>;
|
|
171
|
+
export declare const SequencedEvent: MessageFns<SequencedEvent>;
|
|
172
|
+
export declare const AppendRequest: MessageFns<AppendRequest>;
|
|
173
|
+
export declare const AppendResponse: MessageFns<AppendResponse>;
|
|
174
|
+
export declare const ConsistencyCondition: MessageFns<ConsistencyCondition>;
|
|
175
|
+
export declare const Criterion: MessageFns<Criterion>;
|
|
176
|
+
export declare const SourceRequest: MessageFns<SourceRequest>;
|
|
177
|
+
export declare const SourceResponse: MessageFns<SourceResponse>;
|
|
178
|
+
export declare const StreamControl: MessageFns<StreamControl>;
|
|
179
|
+
export declare const StreamSubscribe: MessageFns<StreamSubscribe>;
|
|
180
|
+
export declare const StreamPermits: MessageFns<StreamPermits>;
|
|
181
|
+
export declare const StreamResponse: MessageFns<StreamResponse>;
|
|
182
|
+
export declare const StreamHeartbeat: MessageFns<StreamHeartbeat>;
|
|
183
|
+
export declare const GetHeadRequest: MessageFns<GetHeadRequest>;
|
|
184
|
+
export declare const GetHeadResponse: MessageFns<GetHeadResponse>;
|
|
185
|
+
export declare const GetTailRequest: MessageFns<GetTailRequest>;
|
|
186
|
+
export declare const GetTailResponse: MessageFns<GetTailResponse>;
|
|
187
|
+
export declare const GetTagsRequest: MessageFns<GetTagsRequest>;
|
|
188
|
+
export declare const GetTagsResponse: MessageFns<GetTagsResponse>;
|
|
189
|
+
export declare const GetSequenceAtRequest: MessageFns<GetSequenceAtRequest>;
|
|
190
|
+
export declare const GetSequenceAtResponse: MessageFns<GetSequenceAtResponse>;
|
|
191
|
+
/** The Event Store service. */
|
|
192
|
+
export type EventStoreDefinition = typeof EventStoreDefinition;
|
|
193
|
+
export declare const EventStoreDefinition: {
|
|
194
|
+
readonly name: "EventStore";
|
|
195
|
+
readonly fullName: "kronosdb.eventstore.EventStore";
|
|
196
|
+
readonly methods: {
|
|
197
|
+
/** Appends new events to the store. */
|
|
198
|
+
readonly append: {
|
|
199
|
+
readonly name: "Append";
|
|
200
|
+
readonly requestType: typeof AppendRequest;
|
|
201
|
+
readonly requestStream: true;
|
|
202
|
+
readonly responseType: typeof AppendResponse;
|
|
203
|
+
readonly responseStream: false;
|
|
204
|
+
readonly options: {};
|
|
205
|
+
};
|
|
206
|
+
/** Provides a finite stream of events matching the given criteria. */
|
|
207
|
+
readonly source: {
|
|
208
|
+
readonly name: "Source";
|
|
209
|
+
readonly requestType: typeof SourceRequest;
|
|
210
|
+
readonly requestStream: false;
|
|
211
|
+
readonly responseType: typeof SourceResponse;
|
|
212
|
+
readonly responseStream: true;
|
|
213
|
+
readonly options: {};
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Provides an infinite stream of events matching the given criteria.
|
|
217
|
+
* Stays open and pushes new events as they are appended.
|
|
218
|
+
* Bidirectional with permit-based flow control: the first client message
|
|
219
|
+
* carries the criteria and initial permits. Subsequent messages grant
|
|
220
|
+
* additional permits. The server only sends events when permits > 0.
|
|
221
|
+
*/
|
|
222
|
+
readonly stream: {
|
|
223
|
+
readonly name: "Stream";
|
|
224
|
+
readonly requestType: typeof StreamControl;
|
|
225
|
+
readonly requestStream: true;
|
|
226
|
+
readonly responseType: typeof StreamResponse;
|
|
227
|
+
readonly responseStream: true;
|
|
228
|
+
readonly options: {};
|
|
229
|
+
};
|
|
230
|
+
/** Gets the current head of the event store (next position to be assigned). */
|
|
231
|
+
readonly getHead: {
|
|
232
|
+
readonly name: "GetHead";
|
|
233
|
+
readonly requestType: typeof GetHeadRequest;
|
|
234
|
+
readonly requestStream: false;
|
|
235
|
+
readonly responseType: typeof GetHeadResponse;
|
|
236
|
+
readonly responseStream: false;
|
|
237
|
+
readonly options: {};
|
|
238
|
+
};
|
|
239
|
+
/** Gets the current tail of the event store (first event position). */
|
|
240
|
+
readonly getTail: {
|
|
241
|
+
readonly name: "GetTail";
|
|
242
|
+
readonly requestType: typeof GetTailRequest;
|
|
243
|
+
readonly requestStream: false;
|
|
244
|
+
readonly responseType: typeof GetTailResponse;
|
|
245
|
+
readonly responseStream: false;
|
|
246
|
+
readonly options: {};
|
|
247
|
+
};
|
|
248
|
+
/** Gets tags for an event by its sequence position. */
|
|
249
|
+
readonly getTags: {
|
|
250
|
+
readonly name: "GetTags";
|
|
251
|
+
readonly requestType: typeof GetTagsRequest;
|
|
252
|
+
readonly requestStream: false;
|
|
253
|
+
readonly responseType: typeof GetTagsResponse;
|
|
254
|
+
readonly responseStream: false;
|
|
255
|
+
readonly options: {};
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Gets the sequence number of the first event at or after the given timestamp.
|
|
259
|
+
* Used by event processors to support time-based replay (e.g., Axon's tokenAt).
|
|
260
|
+
*/
|
|
261
|
+
readonly getSequenceAt: {
|
|
262
|
+
readonly name: "GetSequenceAt";
|
|
263
|
+
readonly requestType: typeof GetSequenceAtRequest;
|
|
264
|
+
readonly requestStream: false;
|
|
265
|
+
readonly responseType: typeof GetSequenceAtResponse;
|
|
266
|
+
readonly responseStream: false;
|
|
267
|
+
readonly options: {};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
export interface EventStoreServiceImplementation<CallContextExt = {}> {
|
|
272
|
+
/** Appends new events to the store. */
|
|
273
|
+
append(request: AsyncIterable<AppendRequest>, context: CallContext & CallContextExt): Promise<DeepPartial<AppendResponse>>;
|
|
274
|
+
/** Provides a finite stream of events matching the given criteria. */
|
|
275
|
+
source(request: SourceRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<SourceResponse>>;
|
|
276
|
+
/**
|
|
277
|
+
* Provides an infinite stream of events matching the given criteria.
|
|
278
|
+
* Stays open and pushes new events as they are appended.
|
|
279
|
+
* Bidirectional with permit-based flow control: the first client message
|
|
280
|
+
* carries the criteria and initial permits. Subsequent messages grant
|
|
281
|
+
* additional permits. The server only sends events when permits > 0.
|
|
282
|
+
*/
|
|
283
|
+
stream(request: AsyncIterable<StreamControl>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<StreamResponse>>;
|
|
284
|
+
/** Gets the current head of the event store (next position to be assigned). */
|
|
285
|
+
getHead(request: GetHeadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetHeadResponse>>;
|
|
286
|
+
/** Gets the current tail of the event store (first event position). */
|
|
287
|
+
getTail(request: GetTailRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTailResponse>>;
|
|
288
|
+
/** Gets tags for an event by its sequence position. */
|
|
289
|
+
getTags(request: GetTagsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetTagsResponse>>;
|
|
290
|
+
/**
|
|
291
|
+
* Gets the sequence number of the first event at or after the given timestamp.
|
|
292
|
+
* Used by event processors to support time-based replay (e.g., Axon's tokenAt).
|
|
293
|
+
*/
|
|
294
|
+
getSequenceAt(request: GetSequenceAtRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetSequenceAtResponse>>;
|
|
295
|
+
}
|
|
296
|
+
export interface EventStoreClient<CallOptionsExt = {}> {
|
|
297
|
+
/** Appends new events to the store. */
|
|
298
|
+
append(request: AsyncIterable<DeepPartial<AppendRequest>>, options?: CallOptions & CallOptionsExt): Promise<AppendResponse>;
|
|
299
|
+
/** Provides a finite stream of events matching the given criteria. */
|
|
300
|
+
source(request: DeepPartial<SourceRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<SourceResponse>;
|
|
301
|
+
/**
|
|
302
|
+
* Provides an infinite stream of events matching the given criteria.
|
|
303
|
+
* Stays open and pushes new events as they are appended.
|
|
304
|
+
* Bidirectional with permit-based flow control: the first client message
|
|
305
|
+
* carries the criteria and initial permits. Subsequent messages grant
|
|
306
|
+
* additional permits. The server only sends events when permits > 0.
|
|
307
|
+
*/
|
|
308
|
+
stream(request: AsyncIterable<DeepPartial<StreamControl>>, options?: CallOptions & CallOptionsExt): AsyncIterable<StreamResponse>;
|
|
309
|
+
/** Gets the current head of the event store (next position to be assigned). */
|
|
310
|
+
getHead(request: DeepPartial<GetHeadRequest>, options?: CallOptions & CallOptionsExt): Promise<GetHeadResponse>;
|
|
311
|
+
/** Gets the current tail of the event store (first event position). */
|
|
312
|
+
getTail(request: DeepPartial<GetTailRequest>, options?: CallOptions & CallOptionsExt): Promise<GetTailResponse>;
|
|
313
|
+
/** Gets tags for an event by its sequence position. */
|
|
314
|
+
getTags(request: DeepPartial<GetTagsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetTagsResponse>;
|
|
315
|
+
/**
|
|
316
|
+
* Gets the sequence number of the first event at or after the given timestamp.
|
|
317
|
+
* Used by event processors to support time-based replay (e.g., Axon's tokenAt).
|
|
318
|
+
*/
|
|
319
|
+
getSequenceAt(request: DeepPartial<GetSequenceAtRequest>, options?: CallOptions & CallOptionsExt): Promise<GetSequenceAtResponse>;
|
|
320
|
+
}
|
|
321
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
322
|
+
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 {} ? {
|
|
323
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
324
|
+
} : Partial<T>;
|
|
325
|
+
export type ServerStreamingMethodResult<Response> = {
|
|
326
|
+
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
327
|
+
};
|
|
328
|
+
export interface MessageFns<T> {
|
|
329
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
330
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
331
|
+
fromJSON(object: any): T;
|
|
332
|
+
toJSON(message: T): unknown;
|
|
333
|
+
create(base?: DeepPartial<T>): T;
|
|
334
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
335
|
+
}
|
|
336
|
+
export {};
|
|
337
|
+
//# sourceMappingURL=eventstore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventstore.d.ts","sourceRoot":"","sources":["../../src/generated/eventstore.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,0CAA0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