@syncular/server-hono 0.0.6-96 → 0.2.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/README.md +5 -23
- package/dist/admin-page.d.ts +14 -0
- package/dist/admin-page.js +217 -0
- package/dist/admin.d.ts +39 -0
- package/dist/admin.js +142 -0
- package/dist/index.d.ts +16 -14
- package/dist/index.js +134 -23
- package/package.json +19 -53
- package/src/admin-page.ts +217 -0
- package/src/admin.ts +193 -0
- package/src/index.ts +175 -31
- package/dist/api-key-auth.d.ts +0 -49
- package/dist/api-key-auth.d.ts.map +0 -1
- package/dist/api-key-auth.js +0 -110
- package/dist/api-key-auth.js.map +0 -1
- package/dist/blobs.d.ts +0 -69
- package/dist/blobs.d.ts.map +0 -1
- package/dist/blobs.js +0 -383
- package/dist/blobs.js.map +0 -1
- package/dist/console/gateway.d.ts +0 -33
- package/dist/console/gateway.d.ts.map +0 -1
- package/dist/console/gateway.js +0 -2534
- package/dist/console/gateway.js.map +0 -1
- package/dist/console/index.d.ts +0 -11
- package/dist/console/index.d.ts.map +0 -1
- package/dist/console/index.js +0 -11
- package/dist/console/index.js.map +0 -1
- package/dist/console/routes.d.ts +0 -33
- package/dist/console/routes.d.ts.map +0 -1
- package/dist/console/routes.js +0 -3029
- package/dist/console/routes.js.map +0 -1
- package/dist/console/schemas.d.ts +0 -490
- package/dist/console/schemas.d.ts.map +0 -1
- package/dist/console/schemas.js +0 -303
- package/dist/console/schemas.js.map +0 -1
- package/dist/console/types.d.ts +0 -175
- package/dist/console/types.d.ts.map +0 -1
- package/dist/console/types.js +0 -2
- package/dist/console/types.js.map +0 -1
- package/dist/console/ui.d.ts +0 -38
- package/dist/console/ui.d.ts.map +0 -1
- package/dist/console/ui.js +0 -43
- package/dist/console/ui.js.map +0 -1
- package/dist/create-server.d.ts +0 -68
- package/dist/create-server.d.ts.map +0 -1
- package/dist/create-server.js +0 -110
- package/dist/create-server.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/openapi.d.ts +0 -45
- package/dist/openapi.d.ts.map +0 -1
- package/dist/openapi.js +0 -59
- package/dist/openapi.js.map +0 -1
- package/dist/proxy/connection-manager.d.ts +0 -78
- package/dist/proxy/connection-manager.d.ts.map +0 -1
- package/dist/proxy/connection-manager.js +0 -251
- package/dist/proxy/connection-manager.js.map +0 -1
- package/dist/proxy/index.d.ts +0 -8
- package/dist/proxy/index.d.ts.map +0 -1
- package/dist/proxy/index.js +0 -8
- package/dist/proxy/index.js.map +0 -1
- package/dist/proxy/routes.d.ts +0 -74
- package/dist/proxy/routes.d.ts.map +0 -1
- package/dist/proxy/routes.js +0 -147
- package/dist/proxy/routes.js.map +0 -1
- package/dist/rate-limit.d.ts +0 -101
- package/dist/rate-limit.d.ts.map +0 -1
- package/dist/rate-limit.js +0 -186
- package/dist/rate-limit.js.map +0 -1
- package/dist/routes.d.ts +0 -161
- package/dist/routes.d.ts.map +0 -1
- package/dist/routes.js +0 -1493
- package/dist/routes.js.map +0 -1
- package/dist/ws.d.ts +0 -235
- package/dist/ws.d.ts.map +0 -1
- package/dist/ws.js +0 -614
- package/dist/ws.js.map +0 -1
- package/src/__tests__/blob-routes.test.ts +0 -424
- package/src/__tests__/console-gateway-live-routes.test.ts +0 -297
- package/src/__tests__/console-gateway-routes.test.ts +0 -1364
- package/src/__tests__/console-routes.test.ts +0 -1626
- package/src/__tests__/console-ui.test.ts +0 -114
- package/src/__tests__/create-server.test.ts +0 -485
- package/src/__tests__/pull-chunk-storage.test.ts +0 -576
- package/src/__tests__/rate-limit.test.ts +0 -78
- package/src/__tests__/realtime-bridge.test.ts +0 -135
- package/src/__tests__/sync-rate-limit-routing.test.ts +0 -185
- package/src/__tests__/ws-connection-manager.test.ts +0 -176
- package/src/api-key-auth.ts +0 -179
- package/src/blobs.ts +0 -534
- package/src/console/gateway.ts +0 -3603
- package/src/console/index.ts +0 -11
- package/src/console/routes.ts +0 -3936
- package/src/console/schemas.ts +0 -434
- package/src/console/types.ts +0 -185
- package/src/console/ui.ts +0 -100
- package/src/create-server.ts +0 -207
- package/src/openapi.ts +0 -74
- package/src/proxy/connection-manager.ts +0 -340
- package/src/proxy/index.ts +0 -8
- package/src/proxy/routes.ts +0 -223
- package/src/rate-limit.ts +0 -321
- package/src/routes.ts +0 -2059
- package/src/ws.ts +0 -802
|
@@ -1,490 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @syncular/server-hono - Console API Zod schemas
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
export declare const SyncStatsSchema: z.ZodObject<{
|
|
6
|
-
commitCount: z.ZodNumber;
|
|
7
|
-
changeCount: z.ZodNumber;
|
|
8
|
-
minCommitSeq: z.ZodNumber;
|
|
9
|
-
maxCommitSeq: z.ZodNumber;
|
|
10
|
-
clientCount: z.ZodNumber;
|
|
11
|
-
activeClientCount: z.ZodNumber;
|
|
12
|
-
minActiveClientCursor: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
maxActiveClientCursor: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type SyncStats = z.infer<typeof SyncStatsSchema>;
|
|
16
|
-
export declare const ConsoleCommitListItemSchema: z.ZodObject<{
|
|
17
|
-
commitSeq: z.ZodNumber;
|
|
18
|
-
actorId: z.ZodString;
|
|
19
|
-
clientId: z.ZodString;
|
|
20
|
-
clientCommitId: z.ZodString;
|
|
21
|
-
createdAt: z.ZodString;
|
|
22
|
-
changeCount: z.ZodNumber;
|
|
23
|
-
affectedTables: z.ZodArray<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export type ConsoleCommitListItem = z.infer<typeof ConsoleCommitListItemSchema>;
|
|
26
|
-
export declare const ConsoleChangeSchema: z.ZodObject<{
|
|
27
|
-
changeId: z.ZodNumber;
|
|
28
|
-
table: z.ZodString;
|
|
29
|
-
rowId: z.ZodString;
|
|
30
|
-
op: z.ZodEnum<{
|
|
31
|
-
delete: "delete";
|
|
32
|
-
upsert: "upsert";
|
|
33
|
-
}>;
|
|
34
|
-
rowJson: z.ZodNullable<z.ZodUnknown>;
|
|
35
|
-
rowVersion: z.ZodNullable<z.ZodNumber>;
|
|
36
|
-
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type ConsoleChange = z.infer<typeof ConsoleChangeSchema>;
|
|
39
|
-
export declare const ConsoleCommitDetailSchema: z.ZodObject<{
|
|
40
|
-
commitSeq: z.ZodNumber;
|
|
41
|
-
actorId: z.ZodString;
|
|
42
|
-
clientId: z.ZodString;
|
|
43
|
-
clientCommitId: z.ZodString;
|
|
44
|
-
createdAt: z.ZodString;
|
|
45
|
-
changeCount: z.ZodNumber;
|
|
46
|
-
affectedTables: z.ZodArray<z.ZodString>;
|
|
47
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
48
|
-
changeId: z.ZodNumber;
|
|
49
|
-
table: z.ZodString;
|
|
50
|
-
rowId: z.ZodString;
|
|
51
|
-
op: z.ZodEnum<{
|
|
52
|
-
delete: "delete";
|
|
53
|
-
upsert: "upsert";
|
|
54
|
-
}>;
|
|
55
|
-
rowJson: z.ZodNullable<z.ZodUnknown>;
|
|
56
|
-
rowVersion: z.ZodNullable<z.ZodNumber>;
|
|
57
|
-
scopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
export type ConsoleCommitDetail = z.infer<typeof ConsoleCommitDetailSchema>;
|
|
61
|
-
export declare const ConsoleClientSchema: z.ZodObject<{
|
|
62
|
-
clientId: z.ZodString;
|
|
63
|
-
actorId: z.ZodString;
|
|
64
|
-
cursor: z.ZodNumber;
|
|
65
|
-
lagCommitCount: z.ZodNumber;
|
|
66
|
-
connectionPath: z.ZodEnum<{
|
|
67
|
-
direct: "direct";
|
|
68
|
-
relay: "relay";
|
|
69
|
-
}>;
|
|
70
|
-
connectionMode: z.ZodEnum<{
|
|
71
|
-
polling: "polling";
|
|
72
|
-
realtime: "realtime";
|
|
73
|
-
}>;
|
|
74
|
-
realtimeConnectionCount: z.ZodNumber;
|
|
75
|
-
isRealtimeConnected: z.ZodBoolean;
|
|
76
|
-
activityState: z.ZodEnum<{
|
|
77
|
-
active: "active";
|
|
78
|
-
idle: "idle";
|
|
79
|
-
stale: "stale";
|
|
80
|
-
}>;
|
|
81
|
-
lastRequestAt: z.ZodNullable<z.ZodString>;
|
|
82
|
-
lastRequestType: z.ZodNullable<z.ZodEnum<{
|
|
83
|
-
pull: "pull";
|
|
84
|
-
push: "push";
|
|
85
|
-
}>>;
|
|
86
|
-
lastRequestOutcome: z.ZodNullable<z.ZodString>;
|
|
87
|
-
effectiveScopes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
88
|
-
updatedAt: z.ZodString;
|
|
89
|
-
}, z.core.$strip>;
|
|
90
|
-
export type ConsoleClient = z.infer<typeof ConsoleClientSchema>;
|
|
91
|
-
export declare const ConsoleHandlerSchema: z.ZodObject<{
|
|
92
|
-
table: z.ZodString;
|
|
93
|
-
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
-
snapshotChunkTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
export type ConsoleHandler = z.infer<typeof ConsoleHandlerSchema>;
|
|
97
|
-
export declare const ConsolePrunePreviewSchema: z.ZodObject<{
|
|
98
|
-
watermarkCommitSeq: z.ZodNumber;
|
|
99
|
-
commitsToDelete: z.ZodNumber;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export type ConsolePrunePreview = z.infer<typeof ConsolePrunePreviewSchema>;
|
|
102
|
-
export declare const ConsolePruneResultSchema: z.ZodObject<{
|
|
103
|
-
deletedCommits: z.ZodNumber;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
export type ConsolePruneResult = z.infer<typeof ConsolePruneResultSchema>;
|
|
106
|
-
export declare const ConsoleCompactResultSchema: z.ZodObject<{
|
|
107
|
-
deletedChanges: z.ZodNumber;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
export type ConsoleCompactResult = z.infer<typeof ConsoleCompactResultSchema>;
|
|
110
|
-
export declare const ConsoleEvictResultSchema: z.ZodObject<{
|
|
111
|
-
evicted: z.ZodBoolean;
|
|
112
|
-
}, z.core.$strip>;
|
|
113
|
-
export type ConsoleEvictResult = z.infer<typeof ConsoleEvictResultSchema>;
|
|
114
|
-
export declare const ConsoleRequestEventSchema: z.ZodObject<{
|
|
115
|
-
eventId: z.ZodNumber;
|
|
116
|
-
partitionId: z.ZodString;
|
|
117
|
-
requestId: z.ZodString;
|
|
118
|
-
traceId: z.ZodNullable<z.ZodString>;
|
|
119
|
-
spanId: z.ZodNullable<z.ZodString>;
|
|
120
|
-
eventType: z.ZodEnum<{
|
|
121
|
-
pull: "pull";
|
|
122
|
-
push: "push";
|
|
123
|
-
}>;
|
|
124
|
-
syncPath: z.ZodEnum<{
|
|
125
|
-
"http-combined": "http-combined";
|
|
126
|
-
"ws-push": "ws-push";
|
|
127
|
-
}>;
|
|
128
|
-
transportPath: z.ZodEnum<{
|
|
129
|
-
direct: "direct";
|
|
130
|
-
relay: "relay";
|
|
131
|
-
}>;
|
|
132
|
-
actorId: z.ZodString;
|
|
133
|
-
clientId: z.ZodString;
|
|
134
|
-
statusCode: z.ZodNumber;
|
|
135
|
-
outcome: z.ZodString;
|
|
136
|
-
responseStatus: z.ZodString;
|
|
137
|
-
errorCode: z.ZodNullable<z.ZodString>;
|
|
138
|
-
durationMs: z.ZodNumber;
|
|
139
|
-
commitSeq: z.ZodNullable<z.ZodNumber>;
|
|
140
|
-
operationCount: z.ZodNullable<z.ZodNumber>;
|
|
141
|
-
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
142
|
-
subscriptionCount: z.ZodNullable<z.ZodNumber>;
|
|
143
|
-
scopesSummary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
144
|
-
tables: z.ZodArray<z.ZodString>;
|
|
145
|
-
errorMessage: z.ZodNullable<z.ZodString>;
|
|
146
|
-
payloadRef: z.ZodNullable<z.ZodString>;
|
|
147
|
-
createdAt: z.ZodString;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
|
-
export type ConsoleRequestEvent = z.infer<typeof ConsoleRequestEventSchema>;
|
|
150
|
-
export declare const ConsoleRequestPayloadSchema: z.ZodObject<{
|
|
151
|
-
payloadRef: z.ZodString;
|
|
152
|
-
partitionId: z.ZodString;
|
|
153
|
-
requestPayload: z.ZodUnknown;
|
|
154
|
-
responsePayload: z.ZodNullable<z.ZodUnknown>;
|
|
155
|
-
createdAt: z.ZodString;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
export type ConsoleRequestPayload = z.infer<typeof ConsoleRequestPayloadSchema>;
|
|
158
|
-
export declare const ConsoleTimelineItemSchema: z.ZodObject<{
|
|
159
|
-
type: z.ZodEnum<{
|
|
160
|
-
commit: "commit";
|
|
161
|
-
event: "event";
|
|
162
|
-
}>;
|
|
163
|
-
timestamp: z.ZodString;
|
|
164
|
-
commit: z.ZodNullable<z.ZodObject<{
|
|
165
|
-
commitSeq: z.ZodNumber;
|
|
166
|
-
actorId: z.ZodString;
|
|
167
|
-
clientId: z.ZodString;
|
|
168
|
-
clientCommitId: z.ZodString;
|
|
169
|
-
createdAt: z.ZodString;
|
|
170
|
-
changeCount: z.ZodNumber;
|
|
171
|
-
affectedTables: z.ZodArray<z.ZodString>;
|
|
172
|
-
}, z.core.$strip>>;
|
|
173
|
-
event: z.ZodNullable<z.ZodObject<{
|
|
174
|
-
eventId: z.ZodNumber;
|
|
175
|
-
partitionId: z.ZodString;
|
|
176
|
-
requestId: z.ZodString;
|
|
177
|
-
traceId: z.ZodNullable<z.ZodString>;
|
|
178
|
-
spanId: z.ZodNullable<z.ZodString>;
|
|
179
|
-
eventType: z.ZodEnum<{
|
|
180
|
-
pull: "pull";
|
|
181
|
-
push: "push";
|
|
182
|
-
}>;
|
|
183
|
-
syncPath: z.ZodEnum<{
|
|
184
|
-
"http-combined": "http-combined";
|
|
185
|
-
"ws-push": "ws-push";
|
|
186
|
-
}>;
|
|
187
|
-
transportPath: z.ZodEnum<{
|
|
188
|
-
direct: "direct";
|
|
189
|
-
relay: "relay";
|
|
190
|
-
}>;
|
|
191
|
-
actorId: z.ZodString;
|
|
192
|
-
clientId: z.ZodString;
|
|
193
|
-
statusCode: z.ZodNumber;
|
|
194
|
-
outcome: z.ZodString;
|
|
195
|
-
responseStatus: z.ZodString;
|
|
196
|
-
errorCode: z.ZodNullable<z.ZodString>;
|
|
197
|
-
durationMs: z.ZodNumber;
|
|
198
|
-
commitSeq: z.ZodNullable<z.ZodNumber>;
|
|
199
|
-
operationCount: z.ZodNullable<z.ZodNumber>;
|
|
200
|
-
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
201
|
-
subscriptionCount: z.ZodNullable<z.ZodNumber>;
|
|
202
|
-
scopesSummary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
203
|
-
tables: z.ZodArray<z.ZodString>;
|
|
204
|
-
errorMessage: z.ZodNullable<z.ZodString>;
|
|
205
|
-
payloadRef: z.ZodNullable<z.ZodString>;
|
|
206
|
-
createdAt: z.ZodString;
|
|
207
|
-
}, z.core.$strip>>;
|
|
208
|
-
}, z.core.$strip>;
|
|
209
|
-
export type ConsoleTimelineItem = z.infer<typeof ConsoleTimelineItemSchema>;
|
|
210
|
-
export declare const ConsoleClearEventsResultSchema: z.ZodObject<{
|
|
211
|
-
deletedCount: z.ZodNumber;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
export type ConsoleClearEventsResult = z.infer<typeof ConsoleClearEventsResultSchema>;
|
|
214
|
-
export declare const ConsolePruneEventsResultSchema: z.ZodObject<{
|
|
215
|
-
deletedCount: z.ZodNumber;
|
|
216
|
-
}, z.core.$strip>;
|
|
217
|
-
export type ConsolePruneEventsResult = z.infer<typeof ConsolePruneEventsResultSchema>;
|
|
218
|
-
export declare const ConsoleOperationTypeSchema: z.ZodEnum<{
|
|
219
|
-
compact: "compact";
|
|
220
|
-
evict_client: "evict_client";
|
|
221
|
-
notify_data_change: "notify_data_change";
|
|
222
|
-
prune: "prune";
|
|
223
|
-
}>;
|
|
224
|
-
export type ConsoleOperationType = z.infer<typeof ConsoleOperationTypeSchema>;
|
|
225
|
-
export declare const ConsoleOperationEventSchema: z.ZodObject<{
|
|
226
|
-
operationId: z.ZodNumber;
|
|
227
|
-
operationType: z.ZodEnum<{
|
|
228
|
-
compact: "compact";
|
|
229
|
-
evict_client: "evict_client";
|
|
230
|
-
notify_data_change: "notify_data_change";
|
|
231
|
-
prune: "prune";
|
|
232
|
-
}>;
|
|
233
|
-
consoleUserId: z.ZodNullable<z.ZodString>;
|
|
234
|
-
partitionId: z.ZodNullable<z.ZodString>;
|
|
235
|
-
targetClientId: z.ZodNullable<z.ZodString>;
|
|
236
|
-
requestPayload: z.ZodNullable<z.ZodUnknown>;
|
|
237
|
-
resultPayload: z.ZodNullable<z.ZodUnknown>;
|
|
238
|
-
createdAt: z.ZodString;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
|
-
export type ConsoleOperationEvent = z.infer<typeof ConsoleOperationEventSchema>;
|
|
241
|
-
export declare const ApiKeyTypeSchema: z.ZodEnum<{
|
|
242
|
-
admin: "admin";
|
|
243
|
-
proxy: "proxy";
|
|
244
|
-
relay: "relay";
|
|
245
|
-
}>;
|
|
246
|
-
export type ApiKeyType = z.infer<typeof ApiKeyTypeSchema>;
|
|
247
|
-
export declare const ConsoleApiKeySchema: z.ZodObject<{
|
|
248
|
-
keyId: z.ZodString;
|
|
249
|
-
keyPrefix: z.ZodString;
|
|
250
|
-
name: z.ZodString;
|
|
251
|
-
keyType: z.ZodEnum<{
|
|
252
|
-
admin: "admin";
|
|
253
|
-
proxy: "proxy";
|
|
254
|
-
relay: "relay";
|
|
255
|
-
}>;
|
|
256
|
-
scopeKeys: z.ZodArray<z.ZodString>;
|
|
257
|
-
actorId: z.ZodNullable<z.ZodString>;
|
|
258
|
-
createdAt: z.ZodString;
|
|
259
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
260
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
261
|
-
revokedAt: z.ZodNullable<z.ZodString>;
|
|
262
|
-
}, z.core.$strip>;
|
|
263
|
-
export type ConsoleApiKey = z.infer<typeof ConsoleApiKeySchema>;
|
|
264
|
-
export declare const ConsoleApiKeyCreateRequestSchema: z.ZodObject<{
|
|
265
|
-
name: z.ZodString;
|
|
266
|
-
keyType: z.ZodEnum<{
|
|
267
|
-
admin: "admin";
|
|
268
|
-
proxy: "proxy";
|
|
269
|
-
relay: "relay";
|
|
270
|
-
}>;
|
|
271
|
-
scopeKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
|
-
actorId: z.ZodOptional<z.ZodString>;
|
|
273
|
-
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
274
|
-
}, z.core.$strip>;
|
|
275
|
-
export declare const ConsoleApiKeyCreateResponseSchema: z.ZodObject<{
|
|
276
|
-
key: z.ZodObject<{
|
|
277
|
-
keyId: z.ZodString;
|
|
278
|
-
keyPrefix: z.ZodString;
|
|
279
|
-
name: z.ZodString;
|
|
280
|
-
keyType: z.ZodEnum<{
|
|
281
|
-
admin: "admin";
|
|
282
|
-
proxy: "proxy";
|
|
283
|
-
relay: "relay";
|
|
284
|
-
}>;
|
|
285
|
-
scopeKeys: z.ZodArray<z.ZodString>;
|
|
286
|
-
actorId: z.ZodNullable<z.ZodString>;
|
|
287
|
-
createdAt: z.ZodString;
|
|
288
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
289
|
-
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
290
|
-
revokedAt: z.ZodNullable<z.ZodString>;
|
|
291
|
-
}, z.core.$strip>;
|
|
292
|
-
secretKey: z.ZodString;
|
|
293
|
-
}, z.core.$strip>;
|
|
294
|
-
export type ConsoleApiKeyCreateResponse = z.infer<typeof ConsoleApiKeyCreateResponseSchema>;
|
|
295
|
-
export declare const ConsoleApiKeyRevokeResponseSchema: z.ZodObject<{
|
|
296
|
-
revoked: z.ZodBoolean;
|
|
297
|
-
}, z.core.$strip>;
|
|
298
|
-
export declare const ConsoleApiKeyBulkRevokeRequestSchema: z.ZodObject<{
|
|
299
|
-
keyIds: z.ZodArray<z.ZodString>;
|
|
300
|
-
}, z.core.$strip>;
|
|
301
|
-
export declare const ConsoleApiKeyBulkRevokeResponseSchema: z.ZodObject<{
|
|
302
|
-
requestedCount: z.ZodNumber;
|
|
303
|
-
revokedCount: z.ZodNumber;
|
|
304
|
-
alreadyRevokedCount: z.ZodNumber;
|
|
305
|
-
notFoundCount: z.ZodNumber;
|
|
306
|
-
revokedKeyIds: z.ZodArray<z.ZodString>;
|
|
307
|
-
alreadyRevokedKeyIds: z.ZodArray<z.ZodString>;
|
|
308
|
-
notFoundKeyIds: z.ZodArray<z.ZodString>;
|
|
309
|
-
}, z.core.$strip>;
|
|
310
|
-
export type ConsoleApiKeyBulkRevokeResponse = z.infer<typeof ConsoleApiKeyBulkRevokeResponseSchema>;
|
|
311
|
-
export declare const ConsolePaginationQuerySchema: z.ZodObject<{
|
|
312
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
313
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
314
|
-
}, z.core.$strip>;
|
|
315
|
-
export declare const ConsolePartitionQuerySchema: z.ZodObject<{
|
|
316
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
317
|
-
}, z.core.$strip>;
|
|
318
|
-
export declare const ConsolePartitionedPaginationQuerySchema: z.ZodObject<{
|
|
319
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
320
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
321
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
322
|
-
}, z.core.$strip>;
|
|
323
|
-
export declare const ConsolePaginatedResponseSchema: <T extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>(itemSchema: T) => z.ZodObject<{
|
|
324
|
-
items: z.ZodArray<T>;
|
|
325
|
-
total: z.ZodNumber;
|
|
326
|
-
offset: z.ZodNumber;
|
|
327
|
-
limit: z.ZodNumber;
|
|
328
|
-
}, z.core.$strip>;
|
|
329
|
-
export type ConsolePaginatedResponse<T> = {
|
|
330
|
-
items: T[];
|
|
331
|
-
total: number;
|
|
332
|
-
offset: number;
|
|
333
|
-
limit: number;
|
|
334
|
-
};
|
|
335
|
-
export declare const ConsoleTimelineQuerySchema: z.ZodObject<{
|
|
336
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
337
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
338
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
339
|
-
view: z.ZodDefault<z.ZodEnum<{
|
|
340
|
-
all: "all";
|
|
341
|
-
commits: "commits";
|
|
342
|
-
events: "events";
|
|
343
|
-
}>>;
|
|
344
|
-
eventType: z.ZodOptional<z.ZodEnum<{
|
|
345
|
-
pull: "pull";
|
|
346
|
-
push: "push";
|
|
347
|
-
}>>;
|
|
348
|
-
actorId: z.ZodOptional<z.ZodString>;
|
|
349
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
350
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
351
|
-
traceId: z.ZodOptional<z.ZodString>;
|
|
352
|
-
table: z.ZodOptional<z.ZodString>;
|
|
353
|
-
outcome: z.ZodOptional<z.ZodString>;
|
|
354
|
-
search: z.ZodOptional<z.ZodString>;
|
|
355
|
-
from: z.ZodOptional<z.ZodString>;
|
|
356
|
-
to: z.ZodOptional<z.ZodString>;
|
|
357
|
-
}, z.core.$strip>;
|
|
358
|
-
export declare const ConsoleOperationsQuerySchema: z.ZodObject<{
|
|
359
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
360
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
361
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
362
|
-
operationType: z.ZodOptional<z.ZodEnum<{
|
|
363
|
-
compact: "compact";
|
|
364
|
-
evict_client: "evict_client";
|
|
365
|
-
notify_data_change: "notify_data_change";
|
|
366
|
-
prune: "prune";
|
|
367
|
-
}>>;
|
|
368
|
-
}, z.core.$strip>;
|
|
369
|
-
export declare const TimeseriesQuerySchema: z.ZodObject<{
|
|
370
|
-
interval: z.ZodDefault<z.ZodEnum<{
|
|
371
|
-
day: "day";
|
|
372
|
-
hour: "hour";
|
|
373
|
-
minute: "minute";
|
|
374
|
-
}>>;
|
|
375
|
-
range: z.ZodDefault<z.ZodEnum<{
|
|
376
|
-
"1h": "1h";
|
|
377
|
-
"24h": "24h";
|
|
378
|
-
"30d": "30d";
|
|
379
|
-
"6h": "6h";
|
|
380
|
-
"7d": "7d";
|
|
381
|
-
}>>;
|
|
382
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
383
|
-
}, z.core.$strip>;
|
|
384
|
-
export declare const TimeseriesBucketSchema: z.ZodObject<{
|
|
385
|
-
timestamp: z.ZodString;
|
|
386
|
-
pushCount: z.ZodNumber;
|
|
387
|
-
pullCount: z.ZodNumber;
|
|
388
|
-
errorCount: z.ZodNumber;
|
|
389
|
-
avgLatencyMs: z.ZodNumber;
|
|
390
|
-
}, z.core.$strip>;
|
|
391
|
-
export type TimeseriesBucket = z.infer<typeof TimeseriesBucketSchema>;
|
|
392
|
-
export declare const TimeseriesStatsResponseSchema: z.ZodObject<{
|
|
393
|
-
buckets: z.ZodArray<z.ZodObject<{
|
|
394
|
-
timestamp: z.ZodString;
|
|
395
|
-
pushCount: z.ZodNumber;
|
|
396
|
-
pullCount: z.ZodNumber;
|
|
397
|
-
errorCount: z.ZodNumber;
|
|
398
|
-
avgLatencyMs: z.ZodNumber;
|
|
399
|
-
}, z.core.$strip>>;
|
|
400
|
-
interval: z.ZodEnum<{
|
|
401
|
-
day: "day";
|
|
402
|
-
hour: "hour";
|
|
403
|
-
minute: "minute";
|
|
404
|
-
}>;
|
|
405
|
-
range: z.ZodEnum<{
|
|
406
|
-
"1h": "1h";
|
|
407
|
-
"24h": "24h";
|
|
408
|
-
"30d": "30d";
|
|
409
|
-
"6h": "6h";
|
|
410
|
-
"7d": "7d";
|
|
411
|
-
}>;
|
|
412
|
-
}, z.core.$strip>;
|
|
413
|
-
export type TimeseriesStatsResponse = z.infer<typeof TimeseriesStatsResponseSchema>;
|
|
414
|
-
export declare const LatencyPercentilesSchema: z.ZodObject<{
|
|
415
|
-
p50: z.ZodNumber;
|
|
416
|
-
p90: z.ZodNumber;
|
|
417
|
-
p99: z.ZodNumber;
|
|
418
|
-
}, z.core.$strip>;
|
|
419
|
-
export type LatencyPercentiles = z.infer<typeof LatencyPercentilesSchema>;
|
|
420
|
-
export declare const LatencyStatsResponseSchema: z.ZodObject<{
|
|
421
|
-
push: z.ZodObject<{
|
|
422
|
-
p50: z.ZodNumber;
|
|
423
|
-
p90: z.ZodNumber;
|
|
424
|
-
p99: z.ZodNumber;
|
|
425
|
-
}, z.core.$strip>;
|
|
426
|
-
pull: z.ZodObject<{
|
|
427
|
-
p50: z.ZodNumber;
|
|
428
|
-
p90: z.ZodNumber;
|
|
429
|
-
p99: z.ZodNumber;
|
|
430
|
-
}, z.core.$strip>;
|
|
431
|
-
range: z.ZodEnum<{
|
|
432
|
-
"1h": "1h";
|
|
433
|
-
"24h": "24h";
|
|
434
|
-
"30d": "30d";
|
|
435
|
-
"6h": "6h";
|
|
436
|
-
"7d": "7d";
|
|
437
|
-
}>;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
export type LatencyStatsResponse = z.infer<typeof LatencyStatsResponseSchema>;
|
|
440
|
-
export declare const LatencyQuerySchema: z.ZodObject<{
|
|
441
|
-
range: z.ZodDefault<z.ZodEnum<{
|
|
442
|
-
"1h": "1h";
|
|
443
|
-
"24h": "24h";
|
|
444
|
-
"30d": "30d";
|
|
445
|
-
"6h": "6h";
|
|
446
|
-
"7d": "7d";
|
|
447
|
-
}>>;
|
|
448
|
-
partitionId: z.ZodOptional<z.ZodString>;
|
|
449
|
-
}, z.core.$strip>;
|
|
450
|
-
export declare const LiveEventSchema: z.ZodObject<{
|
|
451
|
-
type: z.ZodEnum<{
|
|
452
|
-
client_update: "client_update";
|
|
453
|
-
commit: "commit";
|
|
454
|
-
pull: "pull";
|
|
455
|
-
push: "push";
|
|
456
|
-
}>;
|
|
457
|
-
timestamp: z.ZodString;
|
|
458
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
459
|
-
}, z.core.$strip>;
|
|
460
|
-
export type LiveEvent = z.infer<typeof LiveEventSchema>;
|
|
461
|
-
export declare const ConsoleBlobSchema: z.ZodObject<{
|
|
462
|
-
key: z.ZodString;
|
|
463
|
-
size: z.ZodNumber;
|
|
464
|
-
uploaded: z.ZodString;
|
|
465
|
-
httpMetadata: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
467
|
-
}, z.core.$strip>>;
|
|
468
|
-
}, z.core.$strip>;
|
|
469
|
-
export type ConsoleBlob = z.infer<typeof ConsoleBlobSchema>;
|
|
470
|
-
export declare const ConsoleBlobListQuerySchema: z.ZodObject<{
|
|
471
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
472
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
473
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
export declare const ConsoleBlobListResponseSchema: z.ZodObject<{
|
|
476
|
-
items: z.ZodArray<z.ZodObject<{
|
|
477
|
-
key: z.ZodString;
|
|
478
|
-
size: z.ZodNumber;
|
|
479
|
-
uploaded: z.ZodString;
|
|
480
|
-
httpMetadata: z.ZodOptional<z.ZodObject<{
|
|
481
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
482
|
-
}, z.core.$strip>>;
|
|
483
|
-
}, z.core.$strip>>;
|
|
484
|
-
truncated: z.ZodBoolean;
|
|
485
|
-
cursor: z.ZodNullable<z.ZodString>;
|
|
486
|
-
}, z.core.$strip>;
|
|
487
|
-
export declare const ConsoleBlobDeleteResponseSchema: z.ZodObject<{
|
|
488
|
-
deleted: z.ZodBoolean;
|
|
489
|
-
}, z.core.$strip>;
|
|
490
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/console/schemas.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,eAAe;;;;;;;;;iBAS1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAMxD,eAAO,MAAM,2BAA2B;;;;;;;;iBAQtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,mBAAmB;;;;;;;;;;;iBAQ9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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