@s2-dev/streamstore 0.16.0 → 0.16.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/accessTokens.d.ts +37 -0
- package/dist/accessTokens.d.ts.map +1 -0
- package/dist/accessTokens.js +74 -0
- package/dist/accessTokens.js.map +1 -0
- package/dist/basin.d.ts +26 -0
- package/dist/basin.d.ts.map +1 -0
- package/dist/basin.js +34 -0
- package/dist/basin.js.map +1 -0
- package/dist/basins.d.ts +53 -0
- package/dist/basins.d.ts.map +1 -0
- package/dist/basins.js +115 -0
- package/dist/basins.js.map +1 -0
- package/dist/common.d.ts +44 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +2 -0
- package/dist/common.js.map +1 -0
- package/dist/error.d.ts +28 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +43 -0
- package/dist/error.js.map +1 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +205 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +7 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +125 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +3 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +34 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +231 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/{src/generated/client.gen.ts → dist/generated/client.gen.d.ts} +3 -8
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +6 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +15 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +18 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +58 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +34 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +89 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +115 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +100 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +136 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +3 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +88 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/{src/generated/index.ts → dist/generated/index.js} +1 -2
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +100 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +350 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/{src/generated/types.gen.ts → dist/generated/types.gen.d.ts} +1 -158
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +3 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/event-stream.d.ts +26 -0
- package/dist/lib/event-stream.d.ts.map +1 -0
- package/dist/lib/event-stream.js +138 -0
- package/dist/lib/event-stream.js.map +1 -0
- package/dist/metrics.d.ts +44 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +83 -0
- package/dist/metrics.js.map +1 -0
- package/dist/s2.d.ts +38 -0
- package/dist/s2.d.ts.map +1 -0
- package/dist/s2.js +56 -0
- package/dist/s2.js.map +1 -0
- package/dist/stream.d.ts +156 -0
- package/dist/stream.d.ts.map +1 -0
- package/dist/stream.js +598 -0
- package/dist/stream.js.map +1 -0
- package/dist/streams.d.ts +52 -0
- package/dist/streams.d.ts.map +1 -0
- package/dist/streams.js +114 -0
- package/dist/streams.js.map +1 -0
- package/dist/utils.d.ts +20 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +52 -0
- package/dist/utils.js.map +1 -0
- package/package.json +5 -1
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.claude/settings.local.json +0 -9
- package/.github/workflows/ci.yml +0 -59
- package/.github/workflows/publish.yml +0 -35
- package/CHANGELOG.md +0 -7
- package/biome.json +0 -30
- package/bun.lock +0 -598
- package/examples/append.ts +0 -84
- package/examples/kitchen-sink.ts +0 -73
- package/examples/read.ts +0 -30
- package/openapi-ts.config.ts +0 -7
- package/src/accessTokens.ts +0 -100
- package/src/basin.ts +0 -43
- package/src/basins.ts +0 -154
- package/src/common.ts +0 -45
- package/src/error.ts +0 -58
- package/src/generated/client/client.gen.ts +0 -268
- package/src/generated/client/index.ts +0 -26
- package/src/generated/client/types.gen.ts +0 -268
- package/src/generated/client/utils.gen.ts +0 -331
- package/src/generated/core/auth.gen.ts +0 -42
- package/src/generated/core/bodySerializer.gen.ts +0 -92
- package/src/generated/core/params.gen.ts +0 -153
- package/src/generated/core/pathSerializer.gen.ts +0 -181
- package/src/generated/core/queryKeySerializer.gen.ts +0 -136
- package/src/generated/core/serverSentEvents.gen.ts +0 -264
- package/src/generated/core/types.gen.ts +0 -118
- package/src/generated/core/utils.gen.ts +0 -143
- package/src/generated/sdk.gen.ts +0 -387
- package/src/index.ts +0 -66
- package/src/lib/event-stream.ts +0 -167
- package/src/metrics.ts +0 -106
- package/src/s2.ts +0 -65
- package/src/stream.ts +0 -791
- package/src/streams.ts +0 -156
- package/src/tests/appendSession.test.ts +0 -149
- package/src/tests/batcher-session.integration.test.ts +0 -80
- package/src/tests/batcher.test.ts +0 -216
- package/src/tests/index.test.ts +0 -7
- package/src/utils.ts +0 -80
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -31
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
1
|
export type ClientOptions = {
|
|
4
2
|
baseUrl: 'https://aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | 'https://{basin}.b.aws.s2.dev/v1' | (string & {});
|
|
5
3
|
};
|
|
6
|
-
|
|
7
4
|
export type AccessTokenInfo = {
|
|
8
5
|
/**
|
|
9
6
|
* Namespace streams based on the configured stream-level scope, which must be a prefix.
|
|
@@ -25,7 +22,6 @@ export type AccessTokenInfo = {
|
|
|
25
22
|
*/
|
|
26
23
|
scope: AccessTokenScope;
|
|
27
24
|
};
|
|
28
|
-
|
|
29
25
|
export type AccessTokenScope = {
|
|
30
26
|
access_tokens?: null | ResourceSet;
|
|
31
27
|
basins?: null | ResourceSet;
|
|
@@ -37,9 +33,7 @@ export type AccessTokenScope = {
|
|
|
37
33
|
ops?: Array<Operation> | null;
|
|
38
34
|
streams?: null | ResourceSet;
|
|
39
35
|
};
|
|
40
|
-
|
|
41
36
|
export type AccountMetricSet = 'active-basins' | 'account-ops';
|
|
42
|
-
|
|
43
37
|
export type Accumulation = {
|
|
44
38
|
/**
|
|
45
39
|
* The duration of bucket for the accumulation.
|
|
@@ -63,7 +57,6 @@ export type Accumulation = {
|
|
|
63
57
|
number
|
|
64
58
|
]>;
|
|
65
59
|
};
|
|
66
|
-
|
|
67
60
|
/**
|
|
68
61
|
* Success response to an `append` request.
|
|
69
62
|
*/
|
|
@@ -83,7 +76,6 @@ export type AppendAck = {
|
|
|
83
76
|
*/
|
|
84
77
|
tail: StreamPosition;
|
|
85
78
|
};
|
|
86
|
-
|
|
87
79
|
/**
|
|
88
80
|
* Aborted due to a failed condition.
|
|
89
81
|
*/
|
|
@@ -100,7 +92,6 @@ export type AppendConditionFailed = {
|
|
|
100
92
|
*/
|
|
101
93
|
seq_num_mismatch: number;
|
|
102
94
|
};
|
|
103
|
-
|
|
104
95
|
/**
|
|
105
96
|
* Payload of an `append` request.
|
|
106
97
|
*/
|
|
@@ -116,7 +107,6 @@ export type AppendInput = {
|
|
|
116
107
|
*/
|
|
117
108
|
records: Array<AppendRecord>;
|
|
118
109
|
};
|
|
119
|
-
|
|
120
110
|
/**
|
|
121
111
|
* Record to be appended to a stream.
|
|
122
112
|
*/
|
|
@@ -131,7 +121,6 @@ export type AppendRecord = {
|
|
|
131
121
|
headers?: Array<Header>;
|
|
132
122
|
timestamp?: null | U64;
|
|
133
123
|
};
|
|
134
|
-
|
|
135
124
|
export type BasinConfig = {
|
|
136
125
|
/**
|
|
137
126
|
* Create stream on append if it doesn't exist, using the default stream configuration.
|
|
@@ -143,7 +132,6 @@ export type BasinConfig = {
|
|
|
143
132
|
create_stream_on_read?: boolean;
|
|
144
133
|
default_stream_config?: null | StreamConfig;
|
|
145
134
|
};
|
|
146
|
-
|
|
147
135
|
export type BasinInfo = {
|
|
148
136
|
/**
|
|
149
137
|
* Basin name.
|
|
@@ -158,9 +146,7 @@ export type BasinInfo = {
|
|
|
158
146
|
*/
|
|
159
147
|
state: BasinState;
|
|
160
148
|
};
|
|
161
|
-
|
|
162
149
|
export type BasinMetricSet = 'storage' | 'append-ops' | 'read-ops' | 'read-throughput' | 'append-throughput' | 'basin-ops';
|
|
163
|
-
|
|
164
150
|
export type BasinReconfiguration = {
|
|
165
151
|
/**
|
|
166
152
|
* Create a stream on append.
|
|
@@ -172,11 +158,8 @@ export type BasinReconfiguration = {
|
|
|
172
158
|
create_stream_on_read?: boolean | null;
|
|
173
159
|
default_stream_config?: null | StreamReconfiguration;
|
|
174
160
|
};
|
|
175
|
-
|
|
176
161
|
export type BasinScope = 'aws:us-east-1';
|
|
177
|
-
|
|
178
162
|
export type BasinState = 'active' | 'creating' | 'deleting';
|
|
179
|
-
|
|
180
163
|
export type CreateBasinRequest = {
|
|
181
164
|
/**
|
|
182
165
|
* Basin name which must be globally unique.
|
|
@@ -190,7 +173,6 @@ export type CreateBasinRequest = {
|
|
|
190
173
|
*/
|
|
191
174
|
scope?: BasinScope;
|
|
192
175
|
};
|
|
193
|
-
|
|
194
176
|
export type CreateOrReconfigureBasinRequest = {
|
|
195
177
|
config?: null | BasinConfig;
|
|
196
178
|
/**
|
|
@@ -199,7 +181,6 @@ export type CreateOrReconfigureBasinRequest = {
|
|
|
199
181
|
*/
|
|
200
182
|
scope?: BasinScope;
|
|
201
183
|
};
|
|
202
|
-
|
|
203
184
|
export type CreateStreamRequest = {
|
|
204
185
|
config?: null | StreamConfig;
|
|
205
186
|
/**
|
|
@@ -208,7 +189,6 @@ export type CreateStreamRequest = {
|
|
|
208
189
|
*/
|
|
209
190
|
stream: string;
|
|
210
191
|
};
|
|
211
|
-
|
|
212
192
|
export type DeleteOnEmptyConfig = {
|
|
213
193
|
/**
|
|
214
194
|
* Minimum age in seconds before an empty stream can be deleted.
|
|
@@ -216,7 +196,6 @@ export type DeleteOnEmptyConfig = {
|
|
|
216
196
|
*/
|
|
217
197
|
min_age_secs?: number;
|
|
218
198
|
};
|
|
219
|
-
|
|
220
199
|
export type DeleteOnEmptyReconfiguration = {
|
|
221
200
|
/**
|
|
222
201
|
* Minimum age in seconds before an empty stream can be deleted.
|
|
@@ -224,12 +203,10 @@ export type DeleteOnEmptyReconfiguration = {
|
|
|
224
203
|
*/
|
|
225
204
|
min_age_secs?: number | null;
|
|
226
205
|
};
|
|
227
|
-
|
|
228
206
|
export type ErrorResponse = {
|
|
229
207
|
code?: string | null;
|
|
230
208
|
message: string;
|
|
231
209
|
};
|
|
232
|
-
|
|
233
210
|
export type Gauge = {
|
|
234
211
|
/**
|
|
235
212
|
* Timeseries name.
|
|
@@ -249,7 +226,6 @@ export type Gauge = {
|
|
|
249
226
|
number
|
|
250
227
|
]>;
|
|
251
228
|
};
|
|
252
|
-
|
|
253
229
|
/**
|
|
254
230
|
* Headers add structured information to a record as name-value pairs.
|
|
255
231
|
*
|
|
@@ -259,18 +235,15 @@ export type Header = [
|
|
|
259
235
|
string,
|
|
260
236
|
string
|
|
261
237
|
];
|
|
262
|
-
|
|
263
238
|
export type InfiniteRetention = {
|
|
264
239
|
[key: string]: unknown;
|
|
265
240
|
};
|
|
266
|
-
|
|
267
241
|
export type IssueAccessTokenResponse = {
|
|
268
242
|
/**
|
|
269
243
|
* Created access token.
|
|
270
244
|
*/
|
|
271
245
|
access_token: string;
|
|
272
246
|
};
|
|
273
|
-
|
|
274
247
|
export type Label = {
|
|
275
248
|
/**
|
|
276
249
|
* Label name.
|
|
@@ -281,7 +254,6 @@ export type Label = {
|
|
|
281
254
|
*/
|
|
282
255
|
values: Array<string>;
|
|
283
256
|
};
|
|
284
|
-
|
|
285
257
|
export type ListAccessTokensResponse = {
|
|
286
258
|
/**
|
|
287
259
|
* Matching access tokens.
|
|
@@ -292,7 +264,6 @@ export type ListAccessTokensResponse = {
|
|
|
292
264
|
*/
|
|
293
265
|
has_more: boolean;
|
|
294
266
|
};
|
|
295
|
-
|
|
296
267
|
export type ListBasinsResponse = {
|
|
297
268
|
/**
|
|
298
269
|
* Matching basins.
|
|
@@ -303,7 +274,6 @@ export type ListBasinsResponse = {
|
|
|
303
274
|
*/
|
|
304
275
|
has_more: boolean;
|
|
305
276
|
};
|
|
306
|
-
|
|
307
277
|
export type ListStreamsResponse = {
|
|
308
278
|
/**
|
|
309
279
|
* Indicates that there are more results that match the criteria.
|
|
@@ -314,7 +284,6 @@ export type ListStreamsResponse = {
|
|
|
314
284
|
*/
|
|
315
285
|
streams: Array<StreamInfo>;
|
|
316
286
|
};
|
|
317
|
-
|
|
318
287
|
export type Metric = {
|
|
319
288
|
/**
|
|
320
289
|
* Single named value.
|
|
@@ -337,28 +306,22 @@ export type Metric = {
|
|
|
337
306
|
*/
|
|
338
307
|
label: Label;
|
|
339
308
|
};
|
|
340
|
-
|
|
341
309
|
export type MetricSetResponse = {
|
|
342
310
|
/**
|
|
343
311
|
* Metrics comprising the set.
|
|
344
312
|
*/
|
|
345
313
|
values: Array<Metric>;
|
|
346
314
|
};
|
|
347
|
-
|
|
348
315
|
export type MetricUnit = 'bytes' | 'operations';
|
|
349
|
-
|
|
350
316
|
export type Operation = 'list-basins' | 'create-basin' | 'delete-basin' | 'reconfigure-basin' | 'get-basin-config' | 'issue-access-token' | 'revoke-access-token' | 'list-access-tokens' | 'list-streams' | 'create-stream' | 'delete-stream' | 'get-stream-config' | 'reconfigure-stream' | 'check-tail' | 'append' | 'read' | 'trim' | 'fence' | 'account-metrics' | 'basin-metrics' | 'stream-metrics';
|
|
351
|
-
|
|
352
317
|
export type PermittedOperationGroups = {
|
|
353
318
|
account?: null | ReadWritePermissions;
|
|
354
319
|
basin?: null | ReadWritePermissions;
|
|
355
320
|
stream?: null | ReadWritePermissions;
|
|
356
321
|
};
|
|
357
|
-
|
|
358
322
|
export type PingEventData = {
|
|
359
323
|
timestamp: number;
|
|
360
324
|
};
|
|
361
|
-
|
|
362
325
|
export type ReadBatch = {
|
|
363
326
|
/**
|
|
364
327
|
* Records that are durably sequenced on the stream, retrieved based on the requested criteria.
|
|
@@ -367,7 +330,6 @@ export type ReadBatch = {
|
|
|
367
330
|
records: Array<SequencedRecord>;
|
|
368
331
|
tail?: null | StreamPosition;
|
|
369
332
|
};
|
|
370
|
-
|
|
371
333
|
export type ReadEvent = {
|
|
372
334
|
data: ReadBatch;
|
|
373
335
|
event: 'batch';
|
|
@@ -379,7 +341,6 @@ export type ReadEvent = {
|
|
|
379
341
|
data: PingEventData;
|
|
380
342
|
event: 'ping';
|
|
381
343
|
};
|
|
382
|
-
|
|
383
344
|
export type ReadWritePermissions = {
|
|
384
345
|
/**
|
|
385
346
|
* Read permission.
|
|
@@ -390,7 +351,6 @@ export type ReadWritePermissions = {
|
|
|
390
351
|
*/
|
|
391
352
|
write?: boolean;
|
|
392
353
|
};
|
|
393
|
-
|
|
394
354
|
export type ResourceSet = {
|
|
395
355
|
/**
|
|
396
356
|
* Match only the resource with this exact name.
|
|
@@ -404,7 +364,6 @@ export type ResourceSet = {
|
|
|
404
364
|
*/
|
|
405
365
|
prefix: string;
|
|
406
366
|
};
|
|
407
|
-
|
|
408
367
|
export type RetentionPolicy = {
|
|
409
368
|
/**
|
|
410
369
|
* Age in seconds for automatic trimming of records older than this threshold.
|
|
@@ -418,9 +377,7 @@ export type RetentionPolicy = {
|
|
|
418
377
|
*/
|
|
419
378
|
infinite: InfiniteRetention;
|
|
420
379
|
};
|
|
421
|
-
|
|
422
380
|
export type S2Format = 'raw' | 'base64';
|
|
423
|
-
|
|
424
381
|
export type Scalar = {
|
|
425
382
|
/**
|
|
426
383
|
* Metric name.
|
|
@@ -435,7 +392,6 @@ export type Scalar = {
|
|
|
435
392
|
*/
|
|
436
393
|
value: number;
|
|
437
394
|
};
|
|
438
|
-
|
|
439
395
|
/**
|
|
440
396
|
* Record that is durably sequenced on a stream.
|
|
441
397
|
*/
|
|
@@ -457,16 +413,13 @@ export type SequencedRecord = {
|
|
|
457
413
|
*/
|
|
458
414
|
timestamp: U64;
|
|
459
415
|
};
|
|
460
|
-
|
|
461
416
|
export type StorageClass = 'standard' | 'express';
|
|
462
|
-
|
|
463
417
|
export type StreamConfig = {
|
|
464
418
|
delete_on_empty?: null | DeleteOnEmptyConfig;
|
|
465
419
|
retention_policy?: null | RetentionPolicy;
|
|
466
420
|
storage_class?: null | StorageClass;
|
|
467
421
|
timestamping?: null | TimestampingConfig;
|
|
468
422
|
};
|
|
469
|
-
|
|
470
423
|
export type StreamInfo = {
|
|
471
424
|
/**
|
|
472
425
|
* Creation time in ISO 8601 format.
|
|
@@ -481,9 +434,7 @@ export type StreamInfo = {
|
|
|
481
434
|
*/
|
|
482
435
|
name: string;
|
|
483
436
|
};
|
|
484
|
-
|
|
485
437
|
export type StreamMetricSet = 'storage';
|
|
486
|
-
|
|
487
438
|
/**
|
|
488
439
|
* Position of a record in a stream.
|
|
489
440
|
*/
|
|
@@ -498,23 +449,19 @@ export type StreamPosition = {
|
|
|
498
449
|
*/
|
|
499
450
|
timestamp: number;
|
|
500
451
|
};
|
|
501
|
-
|
|
502
452
|
export type StreamReconfiguration = {
|
|
503
453
|
delete_on_empty?: null | DeleteOnEmptyReconfiguration;
|
|
504
454
|
retention_policy?: null | RetentionPolicy;
|
|
505
455
|
storage_class?: null | StorageClass;
|
|
506
456
|
timestamping?: null | TimestampingReconfiguration;
|
|
507
457
|
};
|
|
508
|
-
|
|
509
458
|
export type TailResponse = {
|
|
510
459
|
/**
|
|
511
460
|
* Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
|
|
512
461
|
*/
|
|
513
462
|
tail: StreamPosition;
|
|
514
463
|
};
|
|
515
|
-
|
|
516
464
|
export type TimeseriesInterval = 'minute' | 'hour' | 'day';
|
|
517
|
-
|
|
518
465
|
export type TimestampingConfig = {
|
|
519
466
|
mode?: null | TimestampingMode;
|
|
520
467
|
/**
|
|
@@ -523,9 +470,7 @@ export type TimestampingConfig = {
|
|
|
523
470
|
*/
|
|
524
471
|
uncapped?: boolean | null;
|
|
525
472
|
};
|
|
526
|
-
|
|
527
473
|
export type TimestampingMode = 'client-prefer' | 'client-require' | 'arrival';
|
|
528
|
-
|
|
529
474
|
export type TimestampingReconfiguration = {
|
|
530
475
|
mode?: null | TimestampingMode;
|
|
531
476
|
/**
|
|
@@ -533,9 +478,7 @@ export type TimestampingReconfiguration = {
|
|
|
533
478
|
*/
|
|
534
479
|
uncapped?: boolean | null;
|
|
535
480
|
};
|
|
536
|
-
|
|
537
481
|
export type U64 = number;
|
|
538
|
-
|
|
539
482
|
export type ListAccessTokensData = {
|
|
540
483
|
body?: never;
|
|
541
484
|
path?: never;
|
|
@@ -555,41 +498,31 @@ export type ListAccessTokensData = {
|
|
|
555
498
|
};
|
|
556
499
|
url: '/access-tokens';
|
|
557
500
|
};
|
|
558
|
-
|
|
559
501
|
export type ListAccessTokensErrors = {
|
|
560
502
|
400: ErrorResponse;
|
|
561
503
|
403: ErrorResponse;
|
|
562
504
|
};
|
|
563
|
-
|
|
564
505
|
export type ListAccessTokensError = ListAccessTokensErrors[keyof ListAccessTokensErrors];
|
|
565
|
-
|
|
566
506
|
export type ListAccessTokensResponses = {
|
|
567
507
|
200: ListAccessTokensResponse;
|
|
568
508
|
};
|
|
569
|
-
|
|
570
509
|
export type ListAccessTokensResponse2 = ListAccessTokensResponses[keyof ListAccessTokensResponses];
|
|
571
|
-
|
|
572
510
|
export type IssueAccessTokenData = {
|
|
573
511
|
body: AccessTokenInfo;
|
|
574
512
|
path?: never;
|
|
575
513
|
query?: never;
|
|
576
514
|
url: '/access-tokens';
|
|
577
515
|
};
|
|
578
|
-
|
|
579
516
|
export type IssueAccessTokenErrors = {
|
|
580
517
|
400: ErrorResponse;
|
|
581
518
|
403: ErrorResponse;
|
|
582
519
|
409: ErrorResponse;
|
|
583
520
|
};
|
|
584
|
-
|
|
585
521
|
export type IssueAccessTokenError = IssueAccessTokenErrors[keyof IssueAccessTokenErrors];
|
|
586
|
-
|
|
587
522
|
export type IssueAccessTokenResponses = {
|
|
588
523
|
201: IssueAccessTokenResponse;
|
|
589
524
|
};
|
|
590
|
-
|
|
591
525
|
export type IssueAccessTokenResponse2 = IssueAccessTokenResponses[keyof IssueAccessTokenResponses];
|
|
592
|
-
|
|
593
526
|
export type RevokeAccessTokenData = {
|
|
594
527
|
body?: never;
|
|
595
528
|
path: {
|
|
@@ -601,18 +534,14 @@ export type RevokeAccessTokenData = {
|
|
|
601
534
|
query?: never;
|
|
602
535
|
url: '/access-tokens/{id}';
|
|
603
536
|
};
|
|
604
|
-
|
|
605
537
|
export type RevokeAccessTokenErrors = {
|
|
606
538
|
400: ErrorResponse;
|
|
607
539
|
403: ErrorResponse;
|
|
608
540
|
};
|
|
609
|
-
|
|
610
541
|
export type RevokeAccessTokenError = RevokeAccessTokenErrors[keyof RevokeAccessTokenErrors];
|
|
611
|
-
|
|
612
542
|
export type RevokeAccessTokenResponses = {
|
|
613
543
|
200: unknown;
|
|
614
544
|
};
|
|
615
|
-
|
|
616
545
|
export type ListBasinsData = {
|
|
617
546
|
body?: never;
|
|
618
547
|
path?: never;
|
|
@@ -633,43 +562,33 @@ export type ListBasinsData = {
|
|
|
633
562
|
};
|
|
634
563
|
url: '/basins';
|
|
635
564
|
};
|
|
636
|
-
|
|
637
565
|
export type ListBasinsErrors = {
|
|
638
566
|
400: ErrorResponse;
|
|
639
567
|
403: ErrorResponse;
|
|
640
568
|
};
|
|
641
|
-
|
|
642
569
|
export type ListBasinsError = ListBasinsErrors[keyof ListBasinsErrors];
|
|
643
|
-
|
|
644
570
|
export type ListBasinsResponses = {
|
|
645
571
|
200: ListBasinsResponse;
|
|
646
572
|
};
|
|
647
|
-
|
|
648
573
|
export type ListBasinsResponse2 = ListBasinsResponses[keyof ListBasinsResponses];
|
|
649
|
-
|
|
650
574
|
export type CreateBasinData = {
|
|
651
575
|
body: CreateBasinRequest;
|
|
652
576
|
path?: never;
|
|
653
577
|
query?: never;
|
|
654
578
|
url: '/basins';
|
|
655
579
|
};
|
|
656
|
-
|
|
657
580
|
export type CreateBasinErrors = {
|
|
658
581
|
400: ErrorResponse;
|
|
659
582
|
401: ErrorResponse;
|
|
660
583
|
403: ErrorResponse;
|
|
661
584
|
409: ErrorResponse;
|
|
662
585
|
};
|
|
663
|
-
|
|
664
586
|
export type CreateBasinError = CreateBasinErrors[keyof CreateBasinErrors];
|
|
665
|
-
|
|
666
587
|
export type CreateBasinResponses = {
|
|
667
588
|
200: BasinInfo;
|
|
668
589
|
201: BasinInfo;
|
|
669
590
|
};
|
|
670
|
-
|
|
671
591
|
export type CreateBasinResponse = CreateBasinResponses[keyof CreateBasinResponses];
|
|
672
|
-
|
|
673
592
|
export type DeleteBasinData = {
|
|
674
593
|
body?: never;
|
|
675
594
|
path: {
|
|
@@ -681,20 +600,16 @@ export type DeleteBasinData = {
|
|
|
681
600
|
query?: never;
|
|
682
601
|
url: '/basins/{basin}';
|
|
683
602
|
};
|
|
684
|
-
|
|
685
603
|
export type DeleteBasinErrors = {
|
|
686
604
|
400: ErrorResponse;
|
|
687
605
|
401: ErrorResponse;
|
|
688
606
|
403: ErrorResponse;
|
|
689
607
|
404: ErrorResponse;
|
|
690
608
|
};
|
|
691
|
-
|
|
692
609
|
export type DeleteBasinError = DeleteBasinErrors[keyof DeleteBasinErrors];
|
|
693
|
-
|
|
694
610
|
export type DeleteBasinResponses = {
|
|
695
611
|
202: unknown;
|
|
696
612
|
};
|
|
697
|
-
|
|
698
613
|
export type GetBasinConfigData = {
|
|
699
614
|
body?: never;
|
|
700
615
|
path: {
|
|
@@ -706,21 +621,16 @@ export type GetBasinConfigData = {
|
|
|
706
621
|
query?: never;
|
|
707
622
|
url: '/basins/{basin}';
|
|
708
623
|
};
|
|
709
|
-
|
|
710
624
|
export type GetBasinConfigErrors = {
|
|
711
625
|
400: ErrorResponse;
|
|
712
626
|
403: ErrorResponse;
|
|
713
627
|
404: ErrorResponse;
|
|
714
628
|
};
|
|
715
|
-
|
|
716
629
|
export type GetBasinConfigError = GetBasinConfigErrors[keyof GetBasinConfigErrors];
|
|
717
|
-
|
|
718
630
|
export type GetBasinConfigResponses = {
|
|
719
631
|
200: BasinConfig;
|
|
720
632
|
};
|
|
721
|
-
|
|
722
633
|
export type GetBasinConfigResponse = GetBasinConfigResponses[keyof GetBasinConfigResponses];
|
|
723
|
-
|
|
724
634
|
export type ReconfigureBasinData = {
|
|
725
635
|
body: BasinReconfiguration;
|
|
726
636
|
path: {
|
|
@@ -732,21 +642,16 @@ export type ReconfigureBasinData = {
|
|
|
732
642
|
query?: never;
|
|
733
643
|
url: '/basins/{basin}';
|
|
734
644
|
};
|
|
735
|
-
|
|
736
645
|
export type ReconfigureBasinErrors = {
|
|
737
646
|
400: ErrorResponse;
|
|
738
647
|
403: ErrorResponse;
|
|
739
648
|
404: ErrorResponse;
|
|
740
649
|
};
|
|
741
|
-
|
|
742
650
|
export type ReconfigureBasinError = ReconfigureBasinErrors[keyof ReconfigureBasinErrors];
|
|
743
|
-
|
|
744
651
|
export type ReconfigureBasinResponses = {
|
|
745
652
|
200: BasinConfig;
|
|
746
653
|
};
|
|
747
|
-
|
|
748
654
|
export type ReconfigureBasinResponse = ReconfigureBasinResponses[keyof ReconfigureBasinResponses];
|
|
749
|
-
|
|
750
655
|
export type CreateOrReconfigureBasinData = {
|
|
751
656
|
body?: null | CreateOrReconfigureBasinRequest;
|
|
752
657
|
headers?: {
|
|
@@ -764,21 +669,16 @@ export type CreateOrReconfigureBasinData = {
|
|
|
764
669
|
query?: never;
|
|
765
670
|
url: '/basins/{basin}';
|
|
766
671
|
};
|
|
767
|
-
|
|
768
672
|
export type CreateOrReconfigureBasinErrors = {
|
|
769
673
|
400: ErrorResponse;
|
|
770
674
|
};
|
|
771
|
-
|
|
772
675
|
export type CreateOrReconfigureBasinError = CreateOrReconfigureBasinErrors[keyof CreateOrReconfigureBasinErrors];
|
|
773
|
-
|
|
774
676
|
export type CreateOrReconfigureBasinResponses = {
|
|
775
677
|
200: BasinInfo;
|
|
776
678
|
201: BasinInfo;
|
|
777
679
|
204: void;
|
|
778
680
|
};
|
|
779
|
-
|
|
780
681
|
export type CreateOrReconfigureBasinResponse = CreateOrReconfigureBasinResponses[keyof CreateOrReconfigureBasinResponses];
|
|
781
|
-
|
|
782
682
|
export type AccountMetricsData = {
|
|
783
683
|
body?: never;
|
|
784
684
|
path?: never;
|
|
@@ -802,20 +702,15 @@ export type AccountMetricsData = {
|
|
|
802
702
|
};
|
|
803
703
|
url: '/metrics';
|
|
804
704
|
};
|
|
805
|
-
|
|
806
705
|
export type AccountMetricsErrors = {
|
|
807
706
|
400: ErrorResponse;
|
|
808
707
|
403: ErrorResponse;
|
|
809
708
|
};
|
|
810
|
-
|
|
811
709
|
export type AccountMetricsError = AccountMetricsErrors[keyof AccountMetricsErrors];
|
|
812
|
-
|
|
813
710
|
export type AccountMetricsResponses = {
|
|
814
711
|
200: MetricSetResponse;
|
|
815
712
|
};
|
|
816
|
-
|
|
817
713
|
export type AccountMetricsResponse = AccountMetricsResponses[keyof AccountMetricsResponses];
|
|
818
|
-
|
|
819
714
|
export type BasinMetricsData = {
|
|
820
715
|
body?: never;
|
|
821
716
|
path: {
|
|
@@ -844,20 +739,15 @@ export type BasinMetricsData = {
|
|
|
844
739
|
};
|
|
845
740
|
url: '/metrics/{basin}';
|
|
846
741
|
};
|
|
847
|
-
|
|
848
742
|
export type BasinMetricsErrors = {
|
|
849
743
|
400: ErrorResponse;
|
|
850
744
|
403: ErrorResponse;
|
|
851
745
|
};
|
|
852
|
-
|
|
853
746
|
export type BasinMetricsError = BasinMetricsErrors[keyof BasinMetricsErrors];
|
|
854
|
-
|
|
855
747
|
export type BasinMetricsResponses = {
|
|
856
748
|
200: MetricSetResponse;
|
|
857
749
|
};
|
|
858
|
-
|
|
859
750
|
export type BasinMetricsResponse = BasinMetricsResponses[keyof BasinMetricsResponses];
|
|
860
|
-
|
|
861
751
|
export type StreamMetricsData = {
|
|
862
752
|
body?: never;
|
|
863
753
|
path: {
|
|
@@ -890,20 +780,15 @@ export type StreamMetricsData = {
|
|
|
890
780
|
};
|
|
891
781
|
url: '/metrics/{basin}/{stream}';
|
|
892
782
|
};
|
|
893
|
-
|
|
894
783
|
export type StreamMetricsErrors = {
|
|
895
784
|
400: ErrorResponse;
|
|
896
785
|
403: ErrorResponse;
|
|
897
786
|
};
|
|
898
|
-
|
|
899
787
|
export type StreamMetricsError = StreamMetricsErrors[keyof StreamMetricsErrors];
|
|
900
|
-
|
|
901
788
|
export type StreamMetricsResponses = {
|
|
902
789
|
200: MetricSetResponse;
|
|
903
790
|
};
|
|
904
|
-
|
|
905
791
|
export type StreamMetricsResponse = StreamMetricsResponses[keyof StreamMetricsResponses];
|
|
906
|
-
|
|
907
792
|
export type ListStreamsData = {
|
|
908
793
|
body?: never;
|
|
909
794
|
path?: never;
|
|
@@ -924,43 +809,33 @@ export type ListStreamsData = {
|
|
|
924
809
|
};
|
|
925
810
|
url: '/streams';
|
|
926
811
|
};
|
|
927
|
-
|
|
928
812
|
export type ListStreamsErrors = {
|
|
929
813
|
400: ErrorResponse;
|
|
930
814
|
403: ErrorResponse;
|
|
931
815
|
404: ErrorResponse;
|
|
932
816
|
};
|
|
933
|
-
|
|
934
817
|
export type ListStreamsError = ListStreamsErrors[keyof ListStreamsErrors];
|
|
935
|
-
|
|
936
818
|
export type ListStreamsResponses = {
|
|
937
819
|
200: ListStreamsResponse;
|
|
938
820
|
};
|
|
939
|
-
|
|
940
821
|
export type ListStreamsResponse2 = ListStreamsResponses[keyof ListStreamsResponses];
|
|
941
|
-
|
|
942
822
|
export type CreateStreamData = {
|
|
943
823
|
body: CreateStreamRequest;
|
|
944
824
|
path?: never;
|
|
945
825
|
query?: never;
|
|
946
826
|
url: '/streams';
|
|
947
827
|
};
|
|
948
|
-
|
|
949
828
|
export type CreateStreamErrors = {
|
|
950
829
|
400: ErrorResponse;
|
|
951
830
|
403: ErrorResponse;
|
|
952
831
|
404: ErrorResponse;
|
|
953
832
|
409: ErrorResponse;
|
|
954
833
|
};
|
|
955
|
-
|
|
956
834
|
export type CreateStreamError = CreateStreamErrors[keyof CreateStreamErrors];
|
|
957
|
-
|
|
958
835
|
export type CreateStreamResponses = {
|
|
959
836
|
201: StreamInfo;
|
|
960
837
|
};
|
|
961
|
-
|
|
962
838
|
export type CreateStreamResponse = CreateStreamResponses[keyof CreateStreamResponses];
|
|
963
|
-
|
|
964
839
|
export type DeleteStreamData = {
|
|
965
840
|
body?: never;
|
|
966
841
|
path: {
|
|
@@ -972,19 +847,15 @@ export type DeleteStreamData = {
|
|
|
972
847
|
query?: never;
|
|
973
848
|
url: '/streams/{stream}';
|
|
974
849
|
};
|
|
975
|
-
|
|
976
850
|
export type DeleteStreamErrors = {
|
|
977
851
|
400: ErrorResponse;
|
|
978
852
|
403: ErrorResponse;
|
|
979
853
|
404: ErrorResponse;
|
|
980
854
|
};
|
|
981
|
-
|
|
982
855
|
export type DeleteStreamError = DeleteStreamErrors[keyof DeleteStreamErrors];
|
|
983
|
-
|
|
984
856
|
export type DeleteStreamResponses = {
|
|
985
857
|
202: unknown;
|
|
986
858
|
};
|
|
987
|
-
|
|
988
859
|
export type GetStreamConfigData = {
|
|
989
860
|
body?: never;
|
|
990
861
|
path: {
|
|
@@ -996,22 +867,17 @@ export type GetStreamConfigData = {
|
|
|
996
867
|
query?: never;
|
|
997
868
|
url: '/streams/{stream}';
|
|
998
869
|
};
|
|
999
|
-
|
|
1000
870
|
export type GetStreamConfigErrors = {
|
|
1001
871
|
400: ErrorResponse;
|
|
1002
872
|
403: ErrorResponse;
|
|
1003
873
|
404: ErrorResponse;
|
|
1004
874
|
409: ErrorResponse;
|
|
1005
875
|
};
|
|
1006
|
-
|
|
1007
876
|
export type GetStreamConfigError = GetStreamConfigErrors[keyof GetStreamConfigErrors];
|
|
1008
|
-
|
|
1009
877
|
export type GetStreamConfigResponses = {
|
|
1010
878
|
200: StreamConfig;
|
|
1011
879
|
};
|
|
1012
|
-
|
|
1013
880
|
export type GetStreamConfigResponse = GetStreamConfigResponses[keyof GetStreamConfigResponses];
|
|
1014
|
-
|
|
1015
881
|
export type ReconfigureStreamData = {
|
|
1016
882
|
body: StreamReconfiguration;
|
|
1017
883
|
path: {
|
|
@@ -1023,22 +889,17 @@ export type ReconfigureStreamData = {
|
|
|
1023
889
|
query?: never;
|
|
1024
890
|
url: '/streams/{stream}';
|
|
1025
891
|
};
|
|
1026
|
-
|
|
1027
892
|
export type ReconfigureStreamErrors = {
|
|
1028
893
|
400: ErrorResponse;
|
|
1029
894
|
403: ErrorResponse;
|
|
1030
895
|
404: ErrorResponse;
|
|
1031
896
|
409: ErrorResponse;
|
|
1032
897
|
};
|
|
1033
|
-
|
|
1034
898
|
export type ReconfigureStreamError = ReconfigureStreamErrors[keyof ReconfigureStreamErrors];
|
|
1035
|
-
|
|
1036
899
|
export type ReconfigureStreamResponses = {
|
|
1037
900
|
200: StreamConfig;
|
|
1038
901
|
};
|
|
1039
|
-
|
|
1040
902
|
export type ReconfigureStreamResponse = ReconfigureStreamResponses[keyof ReconfigureStreamResponses];
|
|
1041
|
-
|
|
1042
903
|
export type CreateOrReconfigureStreamData = {
|
|
1043
904
|
body?: null | StreamConfig;
|
|
1044
905
|
headers?: {
|
|
@@ -1056,23 +917,18 @@ export type CreateOrReconfigureStreamData = {
|
|
|
1056
917
|
query?: never;
|
|
1057
918
|
url: '/streams/{stream}';
|
|
1058
919
|
};
|
|
1059
|
-
|
|
1060
920
|
export type CreateOrReconfigureStreamErrors = {
|
|
1061
921
|
400: ErrorResponse;
|
|
1062
922
|
403: ErrorResponse;
|
|
1063
923
|
404: ErrorResponse;
|
|
1064
924
|
409: ErrorResponse;
|
|
1065
925
|
};
|
|
1066
|
-
|
|
1067
926
|
export type CreateOrReconfigureStreamError = CreateOrReconfigureStreamErrors[keyof CreateOrReconfigureStreamErrors];
|
|
1068
|
-
|
|
1069
927
|
export type CreateOrReconfigureStreamResponses = {
|
|
1070
928
|
201: StreamInfo;
|
|
1071
929
|
204: void;
|
|
1072
930
|
};
|
|
1073
|
-
|
|
1074
931
|
export type CreateOrReconfigureStreamResponse = CreateOrReconfigureStreamResponses[keyof CreateOrReconfigureStreamResponses];
|
|
1075
|
-
|
|
1076
932
|
export type ReadData = {
|
|
1077
933
|
body?: never;
|
|
1078
934
|
headers?: {
|
|
@@ -1131,7 +987,6 @@ export type ReadData = {
|
|
|
1131
987
|
};
|
|
1132
988
|
url: '/streams/{stream}/records';
|
|
1133
989
|
};
|
|
1134
|
-
|
|
1135
990
|
export type ReadErrors = {
|
|
1136
991
|
400: ErrorResponse;
|
|
1137
992
|
401: ErrorResponse;
|
|
@@ -1140,15 +995,11 @@ export type ReadErrors = {
|
|
|
1140
995
|
416: TailResponse;
|
|
1141
996
|
500: ErrorResponse;
|
|
1142
997
|
};
|
|
1143
|
-
|
|
1144
998
|
export type ReadError = ReadErrors[keyof ReadErrors];
|
|
1145
|
-
|
|
1146
999
|
export type ReadResponses = {
|
|
1147
1000
|
200: ReadBatch;
|
|
1148
1001
|
};
|
|
1149
|
-
|
|
1150
1002
|
export type ReadResponse = ReadResponses[keyof ReadResponses];
|
|
1151
|
-
|
|
1152
1003
|
export type AppendData = {
|
|
1153
1004
|
body: AppendInput;
|
|
1154
1005
|
headers?: {
|
|
@@ -1168,7 +1019,6 @@ export type AppendData = {
|
|
|
1168
1019
|
query?: never;
|
|
1169
1020
|
url: '/streams/{stream}/records';
|
|
1170
1021
|
};
|
|
1171
|
-
|
|
1172
1022
|
export type AppendErrors = {
|
|
1173
1023
|
400: ErrorResponse;
|
|
1174
1024
|
401: ErrorResponse;
|
|
@@ -1177,15 +1027,11 @@ export type AppendErrors = {
|
|
|
1177
1027
|
412: AppendConditionFailed;
|
|
1178
1028
|
500: ErrorResponse;
|
|
1179
1029
|
};
|
|
1180
|
-
|
|
1181
1030
|
export type AppendError = AppendErrors[keyof AppendErrors];
|
|
1182
|
-
|
|
1183
1031
|
export type AppendResponses = {
|
|
1184
1032
|
200: AppendAck;
|
|
1185
1033
|
};
|
|
1186
|
-
|
|
1187
1034
|
export type AppendResponse = AppendResponses[keyof AppendResponses];
|
|
1188
|
-
|
|
1189
1035
|
export type CheckTailData = {
|
|
1190
1036
|
body?: never;
|
|
1191
1037
|
path: {
|
|
@@ -1197,7 +1043,6 @@ export type CheckTailData = {
|
|
|
1197
1043
|
query?: never;
|
|
1198
1044
|
url: '/streams/{stream}/records/tail';
|
|
1199
1045
|
};
|
|
1200
|
-
|
|
1201
1046
|
export type CheckTailErrors = {
|
|
1202
1047
|
400: ErrorResponse;
|
|
1203
1048
|
401: ErrorResponse;
|
|
@@ -1205,11 +1050,9 @@ export type CheckTailErrors = {
|
|
|
1205
1050
|
409: ErrorResponse;
|
|
1206
1051
|
500: ErrorResponse;
|
|
1207
1052
|
};
|
|
1208
|
-
|
|
1209
1053
|
export type CheckTailError = CheckTailErrors[keyof CheckTailErrors];
|
|
1210
|
-
|
|
1211
1054
|
export type CheckTailResponses = {
|
|
1212
1055
|
200: TailResponse;
|
|
1213
1056
|
};
|
|
1214
|
-
|
|
1215
1057
|
export type CheckTailResponse = CheckTailResponses[keyof CheckTailResponses];
|
|
1058
|
+
//# sourceMappingURL=types.gen.d.ts.map
|