@delta-base/core 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +558 -0
- package/dist/index.js +1 -1
- package/dist/openapi.json +495 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,22 @@ declare namespace EventBusAPI {
|
|
|
81
81
|
earliest: "earliest";
|
|
82
82
|
}>>>;
|
|
83
83
|
}, z.core.$strip>;
|
|
84
|
+
const ReplayRequestSchema: z.ZodObject<{
|
|
85
|
+
fromGlobalPosition: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
fromCreatedAt: z.ZodOptional<z.ZodString>;
|
|
87
|
+
toGlobalPosition: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
toCreatedAt: z.ZodOptional<z.ZodString>;
|
|
89
|
+
eventTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
const ReplayStatusResponseSchema: z.ZodObject<{
|
|
92
|
+
inProgress: z.ZodBoolean;
|
|
93
|
+
startPosition: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
targetPosition: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
currentPosition: z.ZodNumber;
|
|
96
|
+
processedCount: z.ZodNumber;
|
|
97
|
+
estimatedEvents: z.ZodNumber;
|
|
98
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
84
100
|
const UpdateSubscriptionRequestSchema: z.ZodObject<{
|
|
85
101
|
eventFilter: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodString, z.ZodString, z.ZodString]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodString, z.ZodString, z.ZodString]>>]>>;
|
|
86
102
|
subscriberConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1008,6 +1024,222 @@ declare namespace EventBusAPI {
|
|
|
1008
1024
|
status: 409;
|
|
1009
1025
|
};
|
|
1010
1026
|
};
|
|
1027
|
+
} & {
|
|
1028
|
+
"/event-stores/:eventStoreName/subscriptions/:subscriberId/replay": {
|
|
1029
|
+
$post: {
|
|
1030
|
+
input: {
|
|
1031
|
+
param: {
|
|
1032
|
+
eventStoreName: string;
|
|
1033
|
+
subscriberId: string;
|
|
1034
|
+
};
|
|
1035
|
+
} & {
|
|
1036
|
+
json: {
|
|
1037
|
+
fromGlobalPosition?: number | undefined;
|
|
1038
|
+
fromCreatedAt?: string | undefined;
|
|
1039
|
+
toGlobalPosition?: number | undefined;
|
|
1040
|
+
toCreatedAt?: string | undefined;
|
|
1041
|
+
eventTypes?: string[] | undefined;
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
output: {
|
|
1045
|
+
error: string;
|
|
1046
|
+
message: string;
|
|
1047
|
+
details?: {
|
|
1048
|
+
[x: string]: any;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
};
|
|
1051
|
+
outputFormat: "json";
|
|
1052
|
+
status: 400;
|
|
1053
|
+
} | {
|
|
1054
|
+
input: {
|
|
1055
|
+
param: {
|
|
1056
|
+
eventStoreName: string;
|
|
1057
|
+
subscriberId: string;
|
|
1058
|
+
};
|
|
1059
|
+
} & {
|
|
1060
|
+
json: {
|
|
1061
|
+
fromGlobalPosition?: number | undefined;
|
|
1062
|
+
fromCreatedAt?: string | undefined;
|
|
1063
|
+
toGlobalPosition?: number | undefined;
|
|
1064
|
+
toCreatedAt?: string | undefined;
|
|
1065
|
+
eventTypes?: string[] | undefined;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
output: {
|
|
1069
|
+
error: string;
|
|
1070
|
+
message: string;
|
|
1071
|
+
details?: {
|
|
1072
|
+
[x: string]: any;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
outputFormat: "json";
|
|
1076
|
+
status: 401;
|
|
1077
|
+
} | {
|
|
1078
|
+
input: {
|
|
1079
|
+
param: {
|
|
1080
|
+
eventStoreName: string;
|
|
1081
|
+
subscriberId: string;
|
|
1082
|
+
};
|
|
1083
|
+
} & {
|
|
1084
|
+
json: {
|
|
1085
|
+
fromGlobalPosition?: number | undefined;
|
|
1086
|
+
fromCreatedAt?: string | undefined;
|
|
1087
|
+
toGlobalPosition?: number | undefined;
|
|
1088
|
+
toCreatedAt?: string | undefined;
|
|
1089
|
+
eventTypes?: string[] | undefined;
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
output: {
|
|
1093
|
+
error: string;
|
|
1094
|
+
message: string;
|
|
1095
|
+
details?: {
|
|
1096
|
+
[x: string]: any;
|
|
1097
|
+
} | undefined;
|
|
1098
|
+
};
|
|
1099
|
+
outputFormat: "json";
|
|
1100
|
+
status: 404;
|
|
1101
|
+
} | {
|
|
1102
|
+
input: {
|
|
1103
|
+
param: {
|
|
1104
|
+
eventStoreName: string;
|
|
1105
|
+
subscriberId: string;
|
|
1106
|
+
};
|
|
1107
|
+
} & {
|
|
1108
|
+
json: {
|
|
1109
|
+
fromGlobalPosition?: number | undefined;
|
|
1110
|
+
fromCreatedAt?: string | undefined;
|
|
1111
|
+
toGlobalPosition?: number | undefined;
|
|
1112
|
+
toCreatedAt?: string | undefined;
|
|
1113
|
+
eventTypes?: string[] | undefined;
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
output: {
|
|
1117
|
+
error: string;
|
|
1118
|
+
message: string;
|
|
1119
|
+
details?: {
|
|
1120
|
+
[x: string]: any;
|
|
1121
|
+
} | undefined;
|
|
1122
|
+
};
|
|
1123
|
+
outputFormat: "json";
|
|
1124
|
+
status: 500;
|
|
1125
|
+
} | {
|
|
1126
|
+
input: {
|
|
1127
|
+
param: {
|
|
1128
|
+
eventStoreName: string;
|
|
1129
|
+
subscriberId: string;
|
|
1130
|
+
};
|
|
1131
|
+
} & {
|
|
1132
|
+
json: {
|
|
1133
|
+
fromGlobalPosition?: number | undefined;
|
|
1134
|
+
fromCreatedAt?: string | undefined;
|
|
1135
|
+
toGlobalPosition?: number | undefined;
|
|
1136
|
+
toCreatedAt?: string | undefined;
|
|
1137
|
+
eventTypes?: string[] | undefined;
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
output: {
|
|
1141
|
+
error: string;
|
|
1142
|
+
message: string;
|
|
1143
|
+
details?: {
|
|
1144
|
+
[x: string]: any;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
};
|
|
1147
|
+
outputFormat: "json";
|
|
1148
|
+
status: 409;
|
|
1149
|
+
} | {
|
|
1150
|
+
input: {
|
|
1151
|
+
param: {
|
|
1152
|
+
eventStoreName: string;
|
|
1153
|
+
subscriberId: string;
|
|
1154
|
+
};
|
|
1155
|
+
} & {
|
|
1156
|
+
json: {
|
|
1157
|
+
fromGlobalPosition?: number | undefined;
|
|
1158
|
+
fromCreatedAt?: string | undefined;
|
|
1159
|
+
toGlobalPosition?: number | undefined;
|
|
1160
|
+
toCreatedAt?: string | undefined;
|
|
1161
|
+
eventTypes?: string[] | undefined;
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
output: {
|
|
1165
|
+
message: string;
|
|
1166
|
+
fromPosition: number;
|
|
1167
|
+
estimatedEvents: number;
|
|
1168
|
+
};
|
|
1169
|
+
outputFormat: "json";
|
|
1170
|
+
status: 202;
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
} & {
|
|
1174
|
+
"/event-stores/:eventStoreName/subscriptions/:subscriberId/replay": {
|
|
1175
|
+
$get: {
|
|
1176
|
+
input: {
|
|
1177
|
+
param: {
|
|
1178
|
+
eventStoreName: string;
|
|
1179
|
+
subscriberId: string;
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
output: {
|
|
1183
|
+
error: string;
|
|
1184
|
+
message: string;
|
|
1185
|
+
details?: {
|
|
1186
|
+
[x: string]: any;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
};
|
|
1189
|
+
outputFormat: "json";
|
|
1190
|
+
status: 401;
|
|
1191
|
+
} | {
|
|
1192
|
+
input: {
|
|
1193
|
+
param: {
|
|
1194
|
+
eventStoreName: string;
|
|
1195
|
+
subscriberId: string;
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
output: {
|
|
1199
|
+
error: string;
|
|
1200
|
+
message: string;
|
|
1201
|
+
details?: {
|
|
1202
|
+
[x: string]: any;
|
|
1203
|
+
} | undefined;
|
|
1204
|
+
};
|
|
1205
|
+
outputFormat: "json";
|
|
1206
|
+
status: 404;
|
|
1207
|
+
} | {
|
|
1208
|
+
input: {
|
|
1209
|
+
param: {
|
|
1210
|
+
eventStoreName: string;
|
|
1211
|
+
subscriberId: string;
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
output: {
|
|
1215
|
+
error: string;
|
|
1216
|
+
message: string;
|
|
1217
|
+
details?: {
|
|
1218
|
+
[x: string]: any;
|
|
1219
|
+
} | undefined;
|
|
1220
|
+
};
|
|
1221
|
+
outputFormat: "json";
|
|
1222
|
+
status: 500;
|
|
1223
|
+
} | {
|
|
1224
|
+
input: {
|
|
1225
|
+
param: {
|
|
1226
|
+
eventStoreName: string;
|
|
1227
|
+
subscriberId: string;
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
output: {
|
|
1231
|
+
inProgress: boolean;
|
|
1232
|
+
startPosition: number | null;
|
|
1233
|
+
targetPosition: number | null;
|
|
1234
|
+
currentPosition: number;
|
|
1235
|
+
processedCount: number;
|
|
1236
|
+
estimatedEvents: number;
|
|
1237
|
+
startedAt: string | null;
|
|
1238
|
+
};
|
|
1239
|
+
outputFormat: "json";
|
|
1240
|
+
status: 200;
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1011
1243
|
}, "/">;
|
|
1012
1244
|
}
|
|
1013
1245
|
|
|
@@ -2997,6 +3229,14 @@ declare class EventBusDurableObject extends DurableObject<Env> {
|
|
|
2997
3229
|
transaction_id: string;
|
|
2998
3230
|
created: string;
|
|
2999
3231
|
}[]): Promise<void>;
|
|
3232
|
+
/**
|
|
3233
|
+
* Coordinates fetching events for replay from EventStoreDO
|
|
3234
|
+
* @param fromGlobalPosition - The global position to start fetching from
|
|
3235
|
+
* @param limit - Maximum number of events to fetch
|
|
3236
|
+
* @param eventFilter - Optional event type filter (supports wildcards)
|
|
3237
|
+
* @returns Array of events for replay
|
|
3238
|
+
*/
|
|
3239
|
+
getEventsForReplay(fromGlobalPosition: number, limit: number, eventFilter?: string): Promise<EventMessage[]>;
|
|
3000
3240
|
private getMatchingSubscriptions;
|
|
3001
3241
|
private requestDelivery;
|
|
3002
3242
|
private processOutboxBatch;
|
|
@@ -3084,6 +3324,25 @@ declare class EventBusDurableObject extends DurableObject<Env> {
|
|
|
3084
3324
|
legacyCount: number;
|
|
3085
3325
|
legacyOutboxCount: number;
|
|
3086
3326
|
}>;
|
|
3327
|
+
/**
|
|
3328
|
+
* Checks how many SubscriberDOs still need event_store_id backfilled.
|
|
3329
|
+
* Queries each SubscriberDO's config to check if event_store_id is set.
|
|
3330
|
+
*/
|
|
3331
|
+
getBackfillStatus(): Promise<{
|
|
3332
|
+
total: number;
|
|
3333
|
+
backfilled: number;
|
|
3334
|
+
pending: number;
|
|
3335
|
+
complete: boolean;
|
|
3336
|
+
}>;
|
|
3337
|
+
/**
|
|
3338
|
+
* Backfills event_store_id on all SubscriberDOs for this EventBusDO.
|
|
3339
|
+
* Idempotent — safe to run multiple times. Calls setEventStoreId()
|
|
3340
|
+
* on each SubscriberDO that has a subscriber_do_id.
|
|
3341
|
+
*/
|
|
3342
|
+
backfillEventStoreIds(): Promise<{
|
|
3343
|
+
updated: number;
|
|
3344
|
+
failed: number;
|
|
3345
|
+
}>;
|
|
3087
3346
|
/**
|
|
3088
3347
|
* Reconstructs an EventMessage from a subscriptions_outbox row
|
|
3089
3348
|
*/
|
|
@@ -3276,6 +3535,24 @@ declare class EventStoreDurableObject extends DurableObject<Env> {
|
|
|
3276
3535
|
* @returns Promise resolving to filtered events and optional count
|
|
3277
3536
|
*/
|
|
3278
3537
|
queryEvents(params?: EventsQueryParams): Promise<QueryEventsResult>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Gets events for replay starting from a specific global position
|
|
3540
|
+
* @param fromGlobalPosition - The global position to start fetching from
|
|
3541
|
+
* @param limit - Maximum number of events to fetch
|
|
3542
|
+
* @param eventFilter - Optional event type filter (supports wildcards like "orders.*")
|
|
3543
|
+
* @returns Array of events for replay
|
|
3544
|
+
*/
|
|
3545
|
+
getEventsForReplay(fromGlobalPosition: number, limit: number, eventFilter?: string): Promise<EventMessage[]>;
|
|
3546
|
+
/**
|
|
3547
|
+
* Resolves an ISO datetime to the nearest global position at or after that time.
|
|
3548
|
+
* Returns 0 if no events exist at or after the given datetime.
|
|
3549
|
+
*/
|
|
3550
|
+
resolveCreatedAtToPosition(createdAt: string): number;
|
|
3551
|
+
/**
|
|
3552
|
+
* Returns the maximum global position across all non-archived events.
|
|
3553
|
+
* Returns 0 if no events exist.
|
|
3554
|
+
*/
|
|
3555
|
+
getHeadPosition(): number;
|
|
3279
3556
|
/**
|
|
3280
3557
|
* Queries streams based on filtering parameters
|
|
3281
3558
|
* @param params - Query parameters for filtering streams
|
|
@@ -3634,23 +3911,80 @@ declare class EventStoreManagerDurableObject extends DurableObject<Env> {
|
|
|
3634
3911
|
|
|
3635
3912
|
interface SubscriberInitConfig {
|
|
3636
3913
|
subscriberId: string;
|
|
3914
|
+
eventStoreId: string;
|
|
3637
3915
|
subscriberType: SubscriberType;
|
|
3638
3916
|
subscriberConfig: SubscriberTypeConfig['config'];
|
|
3639
3917
|
eventFilter: string;
|
|
3640
3918
|
retryPolicy: RetryPolicy;
|
|
3641
3919
|
}
|
|
3920
|
+
interface ReplayOptions {
|
|
3921
|
+
fromGlobalPosition?: number;
|
|
3922
|
+
fromCreatedAt?: string;
|
|
3923
|
+
toGlobalPosition?: number;
|
|
3924
|
+
toCreatedAt?: string;
|
|
3925
|
+
eventTypes?: string[];
|
|
3926
|
+
}
|
|
3927
|
+
interface ReplayStatus {
|
|
3928
|
+
inProgress: boolean;
|
|
3929
|
+
startPosition: number | null;
|
|
3930
|
+
targetPosition: number | null;
|
|
3931
|
+
currentPosition: number;
|
|
3932
|
+
processedCount: number;
|
|
3933
|
+
estimatedEvents: number;
|
|
3934
|
+
startedAt: string | null;
|
|
3935
|
+
}
|
|
3642
3936
|
type SubscriberStatus = 'ACTIVE' | 'PAUSED' | 'ERROR';
|
|
3643
3937
|
declare class SubscriberDurableObject extends DurableObject<Env> {
|
|
3644
3938
|
private readonly BATCH_SIZE;
|
|
3645
3939
|
private readonly MAX_BATCHES_PER_ALARM;
|
|
3940
|
+
private readonly REPLAY_BATCH_SIZE;
|
|
3941
|
+
private readonly REPLAY_DELAY_MS;
|
|
3942
|
+
private readonly REPLAY_STALE_TIMEOUT_MS;
|
|
3646
3943
|
private isAlarmActive;
|
|
3647
3944
|
private isSchedulingAlarm;
|
|
3648
3945
|
sql: SqlStorage;
|
|
3649
3946
|
constructor(state: DurableObjectState, env: Env);
|
|
3650
3947
|
private initializeTables;
|
|
3948
|
+
/**
|
|
3949
|
+
* Handles schema migrations for existing SubscriberDOs.
|
|
3950
|
+
* Uses PRAGMA table_info to detect missing columns and adds them.
|
|
3951
|
+
* This runs in blockConcurrencyWhile so it's safe on every wake.
|
|
3952
|
+
*/
|
|
3953
|
+
private migrateSchema;
|
|
3954
|
+
private ensureConfigColumn;
|
|
3955
|
+
private ensureCursorColumn;
|
|
3651
3956
|
initialize(config: SubscriberInitConfig): void;
|
|
3957
|
+
/**
|
|
3958
|
+
* Returns whether this subscriber has event_store_id set in its config.
|
|
3959
|
+
* Used by the backfill status check.
|
|
3960
|
+
*/
|
|
3961
|
+
hasEventStoreId(): boolean;
|
|
3962
|
+
/**
|
|
3963
|
+
* Sets the event store ID for this subscriber.
|
|
3964
|
+
* Used by backfill migration for existing DOs that were created
|
|
3965
|
+
* before event_store_id was added to the config table.
|
|
3966
|
+
*/
|
|
3967
|
+
setEventStoreId(eventStoreId: string): void;
|
|
3652
3968
|
setCursor(position: number): void;
|
|
3969
|
+
replay(options: ReplayOptions): Promise<void>;
|
|
3970
|
+
/**
|
|
3971
|
+
* Resolves an ISO datetime to the nearest global position at or after that time.
|
|
3972
|
+
*/
|
|
3973
|
+
private resolveCreatedAtToPosition;
|
|
3974
|
+
/**
|
|
3975
|
+
* Fetches the current head (max) global position from EventStoreDO.
|
|
3976
|
+
*/
|
|
3977
|
+
private fetchHeadPosition;
|
|
3978
|
+
getReplayStatus(): ReplayStatus;
|
|
3979
|
+
private getSubscriberId;
|
|
3980
|
+
private completeReplay;
|
|
3653
3981
|
enqueue(events: EventMessage[]): Promise<void>;
|
|
3982
|
+
/**
|
|
3983
|
+
* Internal enqueue that inserts events without replay guard logic.
|
|
3984
|
+
* Used by both public enqueue() and processReplayBatch().
|
|
3985
|
+
*/
|
|
3986
|
+
private enqueueInternal;
|
|
3987
|
+
private isReplayInProgress;
|
|
3654
3988
|
private requestAlarm;
|
|
3655
3989
|
private getConfigRow;
|
|
3656
3990
|
private getSubscriberStatus;
|
|
@@ -3666,6 +4000,14 @@ declare class SubscriberDurableObject extends DurableObject<Env> {
|
|
|
3666
4000
|
private updateRetryState;
|
|
3667
4001
|
private deliverEvent;
|
|
3668
4002
|
alarm(): Promise<void>;
|
|
4003
|
+
/**
|
|
4004
|
+
* Fetches and enqueues the next batch of replay events.
|
|
4005
|
+
* @returns The number of events fetched in this batch (0 means replay fetching is done).
|
|
4006
|
+
*/
|
|
4007
|
+
private processReplayBatch;
|
|
4008
|
+
private getEventStoreId;
|
|
4009
|
+
private getEventFilter;
|
|
4010
|
+
private scheduleReplayAlarm;
|
|
3669
4011
|
}
|
|
3670
4012
|
|
|
3671
4013
|
interface ConnectionListOptions {
|
|
@@ -5788,6 +6130,222 @@ declare const routes: hono_hono_base.HonoBase<{
|
|
|
5788
6130
|
status: 409;
|
|
5789
6131
|
};
|
|
5790
6132
|
};
|
|
6133
|
+
} & {
|
|
6134
|
+
"/event-stores/:eventStoreName/subscriptions/:subscriberId/replay": {
|
|
6135
|
+
$post: {
|
|
6136
|
+
input: {
|
|
6137
|
+
param: {
|
|
6138
|
+
eventStoreName: string;
|
|
6139
|
+
subscriberId: string;
|
|
6140
|
+
};
|
|
6141
|
+
} & {
|
|
6142
|
+
json: {
|
|
6143
|
+
fromGlobalPosition?: number | undefined;
|
|
6144
|
+
fromCreatedAt?: string | undefined;
|
|
6145
|
+
toGlobalPosition?: number | undefined;
|
|
6146
|
+
toCreatedAt?: string | undefined;
|
|
6147
|
+
eventTypes?: string[] | undefined;
|
|
6148
|
+
};
|
|
6149
|
+
};
|
|
6150
|
+
output: {
|
|
6151
|
+
error: string;
|
|
6152
|
+
message: string;
|
|
6153
|
+
details?: {
|
|
6154
|
+
[x: string]: any;
|
|
6155
|
+
} | undefined;
|
|
6156
|
+
};
|
|
6157
|
+
outputFormat: "json";
|
|
6158
|
+
status: 400;
|
|
6159
|
+
} | {
|
|
6160
|
+
input: {
|
|
6161
|
+
param: {
|
|
6162
|
+
eventStoreName: string;
|
|
6163
|
+
subscriberId: string;
|
|
6164
|
+
};
|
|
6165
|
+
} & {
|
|
6166
|
+
json: {
|
|
6167
|
+
fromGlobalPosition?: number | undefined;
|
|
6168
|
+
fromCreatedAt?: string | undefined;
|
|
6169
|
+
toGlobalPosition?: number | undefined;
|
|
6170
|
+
toCreatedAt?: string | undefined;
|
|
6171
|
+
eventTypes?: string[] | undefined;
|
|
6172
|
+
};
|
|
6173
|
+
};
|
|
6174
|
+
output: {
|
|
6175
|
+
error: string;
|
|
6176
|
+
message: string;
|
|
6177
|
+
details?: {
|
|
6178
|
+
[x: string]: any;
|
|
6179
|
+
} | undefined;
|
|
6180
|
+
};
|
|
6181
|
+
outputFormat: "json";
|
|
6182
|
+
status: 401;
|
|
6183
|
+
} | {
|
|
6184
|
+
input: {
|
|
6185
|
+
param: {
|
|
6186
|
+
eventStoreName: string;
|
|
6187
|
+
subscriberId: string;
|
|
6188
|
+
};
|
|
6189
|
+
} & {
|
|
6190
|
+
json: {
|
|
6191
|
+
fromGlobalPosition?: number | undefined;
|
|
6192
|
+
fromCreatedAt?: string | undefined;
|
|
6193
|
+
toGlobalPosition?: number | undefined;
|
|
6194
|
+
toCreatedAt?: string | undefined;
|
|
6195
|
+
eventTypes?: string[] | undefined;
|
|
6196
|
+
};
|
|
6197
|
+
};
|
|
6198
|
+
output: {
|
|
6199
|
+
error: string;
|
|
6200
|
+
message: string;
|
|
6201
|
+
details?: {
|
|
6202
|
+
[x: string]: any;
|
|
6203
|
+
} | undefined;
|
|
6204
|
+
};
|
|
6205
|
+
outputFormat: "json";
|
|
6206
|
+
status: 404;
|
|
6207
|
+
} | {
|
|
6208
|
+
input: {
|
|
6209
|
+
param: {
|
|
6210
|
+
eventStoreName: string;
|
|
6211
|
+
subscriberId: string;
|
|
6212
|
+
};
|
|
6213
|
+
} & {
|
|
6214
|
+
json: {
|
|
6215
|
+
fromGlobalPosition?: number | undefined;
|
|
6216
|
+
fromCreatedAt?: string | undefined;
|
|
6217
|
+
toGlobalPosition?: number | undefined;
|
|
6218
|
+
toCreatedAt?: string | undefined;
|
|
6219
|
+
eventTypes?: string[] | undefined;
|
|
6220
|
+
};
|
|
6221
|
+
};
|
|
6222
|
+
output: {
|
|
6223
|
+
error: string;
|
|
6224
|
+
message: string;
|
|
6225
|
+
details?: {
|
|
6226
|
+
[x: string]: any;
|
|
6227
|
+
} | undefined;
|
|
6228
|
+
};
|
|
6229
|
+
outputFormat: "json";
|
|
6230
|
+
status: 500;
|
|
6231
|
+
} | {
|
|
6232
|
+
input: {
|
|
6233
|
+
param: {
|
|
6234
|
+
eventStoreName: string;
|
|
6235
|
+
subscriberId: string;
|
|
6236
|
+
};
|
|
6237
|
+
} & {
|
|
6238
|
+
json: {
|
|
6239
|
+
fromGlobalPosition?: number | undefined;
|
|
6240
|
+
fromCreatedAt?: string | undefined;
|
|
6241
|
+
toGlobalPosition?: number | undefined;
|
|
6242
|
+
toCreatedAt?: string | undefined;
|
|
6243
|
+
eventTypes?: string[] | undefined;
|
|
6244
|
+
};
|
|
6245
|
+
};
|
|
6246
|
+
output: {
|
|
6247
|
+
error: string;
|
|
6248
|
+
message: string;
|
|
6249
|
+
details?: {
|
|
6250
|
+
[x: string]: any;
|
|
6251
|
+
} | undefined;
|
|
6252
|
+
};
|
|
6253
|
+
outputFormat: "json";
|
|
6254
|
+
status: 409;
|
|
6255
|
+
} | {
|
|
6256
|
+
input: {
|
|
6257
|
+
param: {
|
|
6258
|
+
eventStoreName: string;
|
|
6259
|
+
subscriberId: string;
|
|
6260
|
+
};
|
|
6261
|
+
} & {
|
|
6262
|
+
json: {
|
|
6263
|
+
fromGlobalPosition?: number | undefined;
|
|
6264
|
+
fromCreatedAt?: string | undefined;
|
|
6265
|
+
toGlobalPosition?: number | undefined;
|
|
6266
|
+
toCreatedAt?: string | undefined;
|
|
6267
|
+
eventTypes?: string[] | undefined;
|
|
6268
|
+
};
|
|
6269
|
+
};
|
|
6270
|
+
output: {
|
|
6271
|
+
message: string;
|
|
6272
|
+
fromPosition: number;
|
|
6273
|
+
estimatedEvents: number;
|
|
6274
|
+
};
|
|
6275
|
+
outputFormat: "json";
|
|
6276
|
+
status: 202;
|
|
6277
|
+
};
|
|
6278
|
+
};
|
|
6279
|
+
} & {
|
|
6280
|
+
"/event-stores/:eventStoreName/subscriptions/:subscriberId/replay": {
|
|
6281
|
+
$get: {
|
|
6282
|
+
input: {
|
|
6283
|
+
param: {
|
|
6284
|
+
eventStoreName: string;
|
|
6285
|
+
subscriberId: string;
|
|
6286
|
+
};
|
|
6287
|
+
};
|
|
6288
|
+
output: {
|
|
6289
|
+
error: string;
|
|
6290
|
+
message: string;
|
|
6291
|
+
details?: {
|
|
6292
|
+
[x: string]: any;
|
|
6293
|
+
} | undefined;
|
|
6294
|
+
};
|
|
6295
|
+
outputFormat: "json";
|
|
6296
|
+
status: 401;
|
|
6297
|
+
} | {
|
|
6298
|
+
input: {
|
|
6299
|
+
param: {
|
|
6300
|
+
eventStoreName: string;
|
|
6301
|
+
subscriberId: string;
|
|
6302
|
+
};
|
|
6303
|
+
};
|
|
6304
|
+
output: {
|
|
6305
|
+
error: string;
|
|
6306
|
+
message: string;
|
|
6307
|
+
details?: {
|
|
6308
|
+
[x: string]: any;
|
|
6309
|
+
} | undefined;
|
|
6310
|
+
};
|
|
6311
|
+
outputFormat: "json";
|
|
6312
|
+
status: 404;
|
|
6313
|
+
} | {
|
|
6314
|
+
input: {
|
|
6315
|
+
param: {
|
|
6316
|
+
eventStoreName: string;
|
|
6317
|
+
subscriberId: string;
|
|
6318
|
+
};
|
|
6319
|
+
};
|
|
6320
|
+
output: {
|
|
6321
|
+
error: string;
|
|
6322
|
+
message: string;
|
|
6323
|
+
details?: {
|
|
6324
|
+
[x: string]: any;
|
|
6325
|
+
} | undefined;
|
|
6326
|
+
};
|
|
6327
|
+
outputFormat: "json";
|
|
6328
|
+
status: 500;
|
|
6329
|
+
} | {
|
|
6330
|
+
input: {
|
|
6331
|
+
param: {
|
|
6332
|
+
eventStoreName: string;
|
|
6333
|
+
subscriberId: string;
|
|
6334
|
+
};
|
|
6335
|
+
};
|
|
6336
|
+
output: {
|
|
6337
|
+
inProgress: boolean;
|
|
6338
|
+
startPosition: number | null;
|
|
6339
|
+
targetPosition: number | null;
|
|
6340
|
+
currentPosition: number;
|
|
6341
|
+
processedCount: number;
|
|
6342
|
+
estimatedEvents: number;
|
|
6343
|
+
startedAt: string | null;
|
|
6344
|
+
};
|
|
6345
|
+
outputFormat: "json";
|
|
6346
|
+
status: 200;
|
|
6347
|
+
};
|
|
6348
|
+
};
|
|
5791
6349
|
}, "/api"> | hono_types.MergeSchemaPath<{
|
|
5792
6350
|
"/event-stores/:eventStoreName/events/ws": {
|
|
5793
6351
|
$get: {
|