@s2-dev/streamstore 0.16.0 → 0.16.2
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/LICENSE +201 -0
- package/README.md +1 -2
- 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 +13 -4
- 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
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
|
|
3
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
export const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) {
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
let explode = false;
|
|
10
|
+
let name = match.substring(1, match.length - 1);
|
|
11
|
+
let style = 'simple';
|
|
12
|
+
if (name.endsWith('*')) {
|
|
13
|
+
explode = true;
|
|
14
|
+
name = name.substring(0, name.length - 1);
|
|
15
|
+
}
|
|
16
|
+
if (name.startsWith('.')) {
|
|
17
|
+
name = name.substring(1);
|
|
18
|
+
style = 'label';
|
|
19
|
+
}
|
|
20
|
+
else if (name.startsWith(';')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'matrix';
|
|
23
|
+
}
|
|
24
|
+
const value = path[name];
|
|
25
|
+
if (value === undefined || value === null) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'object') {
|
|
33
|
+
url = url.replace(match, serializeObjectParam({
|
|
34
|
+
explode,
|
|
35
|
+
name,
|
|
36
|
+
style,
|
|
37
|
+
value: value,
|
|
38
|
+
valueOnly: true,
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (style === 'matrix') {
|
|
43
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
44
|
+
name,
|
|
45
|
+
value: value,
|
|
46
|
+
})}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
50
|
+
url = url.replace(match, replaceValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
56
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
58
|
+
if (path) {
|
|
59
|
+
url = defaultPathSerializer({ path, url });
|
|
60
|
+
}
|
|
61
|
+
let search = query ? querySerializer(query) : '';
|
|
62
|
+
if (search.startsWith('?')) {
|
|
63
|
+
search = search.substring(1);
|
|
64
|
+
}
|
|
65
|
+
if (search) {
|
|
66
|
+
url += `?${search}`;
|
|
67
|
+
}
|
|
68
|
+
return url;
|
|
69
|
+
};
|
|
70
|
+
export function getValidRequestBody(options) {
|
|
71
|
+
const hasBody = options.body !== undefined;
|
|
72
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
73
|
+
if (isSerializedBody) {
|
|
74
|
+
if ('serializedBody' in options) {
|
|
75
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
76
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
77
|
+
}
|
|
78
|
+
// not all clients implement a serializedBody property (i.e. client-axios)
|
|
79
|
+
return options.body !== '' ? options.body : null;
|
|
80
|
+
}
|
|
81
|
+
// plain/text body
|
|
82
|
+
if (hasBody) {
|
|
83
|
+
return options.body;
|
|
84
|
+
}
|
|
85
|
+
// no body was provided
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=utils.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.gen.js","sourceRoot":"","sources":["../../../src/generated/core/utils.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EAEL,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAO9B,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAkB,EAAE,EAAE;IAC3E,IAAI,GAAG,GAAG,IAAI,CAAC;IACf,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,OAAO,EAAE,CAAC;QACZ,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,IAAI,OAAO,GAAG,KAAK,CAAC;YACpB,IAAI,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAChD,IAAI,KAAK,GAAwB,QAAQ,CAAC;YAE1C,IAAI,IAAI,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AG,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC;IAC3C,MAAM,gBAAgB,GAAG,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC;IAE3D,IAAI,gBAAgB,EAAE,CAAC;QACrB,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;YAChC,MAAM,iBAAiB,GACrB,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,cAAc,KAAK,EAAE,CAAC;YAExE,OAAO,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3D,CAAC;QAED,0EAA0E;QAC1E,OAAO,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IAED,uBAAuB;IACvB,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAEA,mBAAmB,aAAa,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { AccountMetricsData, AccountMetricsErrors, AccountMetricsResponses, AppendData, AppendErrors, AppendResponses, BasinMetricsData, BasinMetricsErrors, BasinMetricsResponses, CheckTailData, CheckTailErrors, CheckTailResponses, CreateBasinData, CreateBasinErrors, CreateBasinResponses, CreateOrReconfigureBasinData, CreateOrReconfigureBasinErrors, CreateOrReconfigureBasinResponses, CreateOrReconfigureStreamData, CreateOrReconfigureStreamErrors, CreateOrReconfigureStreamResponses, CreateStreamData, CreateStreamErrors, CreateStreamResponses, DeleteBasinData, DeleteBasinErrors, DeleteBasinResponses, DeleteStreamData, DeleteStreamErrors, DeleteStreamResponses, GetBasinConfigData, GetBasinConfigErrors, GetBasinConfigResponses, GetStreamConfigData, GetStreamConfigErrors, GetStreamConfigResponses, IssueAccessTokenData, IssueAccessTokenErrors, IssueAccessTokenResponses, ListAccessTokensData, ListAccessTokensErrors, ListAccessTokensResponses, ListBasinsData, ListBasinsErrors, ListBasinsResponses, ListStreamsData, ListStreamsErrors, ListStreamsResponses, ReadData, ReadErrors, ReadResponses, ReconfigureBasinData, ReconfigureBasinErrors, ReconfigureBasinResponses, ReconfigureStreamData, ReconfigureStreamErrors, ReconfigureStreamResponses, RevokeAccessTokenData, RevokeAccessTokenErrors, RevokeAccessTokenResponses, StreamMetricsData, StreamMetricsErrors, StreamMetricsResponses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* List access tokens.
|
|
18
|
+
*/
|
|
19
|
+
export declare const listAccessTokens: <ThrowOnError extends boolean = false>(options?: Options<ListAccessTokensData, ThrowOnError>) => import("./client").RequestResult<ListAccessTokensResponses, ListAccessTokensErrors, ThrowOnError, "fields">;
|
|
20
|
+
/**
|
|
21
|
+
* Issue a new access token.
|
|
22
|
+
*/
|
|
23
|
+
export declare const issueAccessToken: <ThrowOnError extends boolean = false>(options: Options<IssueAccessTokenData, ThrowOnError>) => import("./client").RequestResult<IssueAccessTokenResponses, IssueAccessTokenErrors, ThrowOnError, "fields">;
|
|
24
|
+
/**
|
|
25
|
+
* Revoke an access token.
|
|
26
|
+
*/
|
|
27
|
+
export declare const revokeAccessToken: <ThrowOnError extends boolean = false>(options: Options<RevokeAccessTokenData, ThrowOnError>) => import("./client").RequestResult<RevokeAccessTokenResponses, RevokeAccessTokenErrors, ThrowOnError, "fields">;
|
|
28
|
+
/**
|
|
29
|
+
* List basins.
|
|
30
|
+
*/
|
|
31
|
+
export declare const listBasins: <ThrowOnError extends boolean = false>(options?: Options<ListBasinsData, ThrowOnError>) => import("./client").RequestResult<ListBasinsResponses, ListBasinsErrors, ThrowOnError, "fields">;
|
|
32
|
+
/**
|
|
33
|
+
* Create a basin.
|
|
34
|
+
*/
|
|
35
|
+
export declare const createBasin: <ThrowOnError extends boolean = false>(options: Options<CreateBasinData, ThrowOnError>) => import("./client").RequestResult<CreateBasinResponses, CreateBasinErrors, ThrowOnError, "fields">;
|
|
36
|
+
/**
|
|
37
|
+
* Delete a basin.
|
|
38
|
+
*/
|
|
39
|
+
export declare const deleteBasin: <ThrowOnError extends boolean = false>(options: Options<DeleteBasinData, ThrowOnError>) => import("./client").RequestResult<DeleteBasinResponses, DeleteBasinErrors, ThrowOnError, "fields">;
|
|
40
|
+
/**
|
|
41
|
+
* Get basin configuration.
|
|
42
|
+
*/
|
|
43
|
+
export declare const getBasinConfig: <ThrowOnError extends boolean = false>(options: Options<GetBasinConfigData, ThrowOnError>) => import("./client").RequestResult<GetBasinConfigResponses, GetBasinConfigErrors, ThrowOnError, "fields">;
|
|
44
|
+
/**
|
|
45
|
+
* Reconfigure a basin.
|
|
46
|
+
*/
|
|
47
|
+
export declare const reconfigureBasin: <ThrowOnError extends boolean = false>(options: Options<ReconfigureBasinData, ThrowOnError>) => import("./client").RequestResult<ReconfigureBasinResponses, ReconfigureBasinErrors, ThrowOnError, "fields">;
|
|
48
|
+
/**
|
|
49
|
+
* Create or reconfigure a basin.
|
|
50
|
+
*/
|
|
51
|
+
export declare const createOrReconfigureBasin: <ThrowOnError extends boolean = false>(options: Options<CreateOrReconfigureBasinData, ThrowOnError>) => import("./client").RequestResult<CreateOrReconfigureBasinResponses, CreateOrReconfigureBasinErrors, ThrowOnError, "fields">;
|
|
52
|
+
/**
|
|
53
|
+
* Account-level metrics.
|
|
54
|
+
*/
|
|
55
|
+
export declare const accountMetrics: <ThrowOnError extends boolean = false>(options: Options<AccountMetricsData, ThrowOnError>) => import("./client").RequestResult<AccountMetricsResponses, AccountMetricsErrors, ThrowOnError, "fields">;
|
|
56
|
+
/**
|
|
57
|
+
* Basin-level metrics.
|
|
58
|
+
*/
|
|
59
|
+
export declare const basinMetrics: <ThrowOnError extends boolean = false>(options: Options<BasinMetricsData, ThrowOnError>) => import("./client").RequestResult<BasinMetricsResponses, BasinMetricsErrors, ThrowOnError, "fields">;
|
|
60
|
+
/**
|
|
61
|
+
* Stream-level metrics.
|
|
62
|
+
*/
|
|
63
|
+
export declare const streamMetrics: <ThrowOnError extends boolean = false>(options: Options<StreamMetricsData, ThrowOnError>) => import("./client").RequestResult<StreamMetricsResponses, StreamMetricsErrors, ThrowOnError, "fields">;
|
|
64
|
+
/**
|
|
65
|
+
* List streams.
|
|
66
|
+
*/
|
|
67
|
+
export declare const listStreams: <ThrowOnError extends boolean = false>(options?: Options<ListStreamsData, ThrowOnError>) => import("./client").RequestResult<ListStreamsResponses, ListStreamsErrors, ThrowOnError, "fields">;
|
|
68
|
+
/**
|
|
69
|
+
* Create a stream.
|
|
70
|
+
*/
|
|
71
|
+
export declare const createStream: <ThrowOnError extends boolean = false>(options: Options<CreateStreamData, ThrowOnError>) => import("./client").RequestResult<CreateStreamResponses, CreateStreamErrors, ThrowOnError, "fields">;
|
|
72
|
+
/**
|
|
73
|
+
* Delete a stream.
|
|
74
|
+
*/
|
|
75
|
+
export declare const deleteStream: <ThrowOnError extends boolean = false>(options: Options<DeleteStreamData, ThrowOnError>) => import("./client").RequestResult<DeleteStreamResponses, DeleteStreamErrors, ThrowOnError, "fields">;
|
|
76
|
+
/**
|
|
77
|
+
* Get stream configuration.
|
|
78
|
+
*/
|
|
79
|
+
export declare const getStreamConfig: <ThrowOnError extends boolean = false>(options: Options<GetStreamConfigData, ThrowOnError>) => import("./client").RequestResult<GetStreamConfigResponses, GetStreamConfigErrors, ThrowOnError, "fields">;
|
|
80
|
+
/**
|
|
81
|
+
* Reconfigure a stream.
|
|
82
|
+
*/
|
|
83
|
+
export declare const reconfigureStream: <ThrowOnError extends boolean = false>(options: Options<ReconfigureStreamData, ThrowOnError>) => import("./client").RequestResult<ReconfigureStreamResponses, ReconfigureStreamErrors, ThrowOnError, "fields">;
|
|
84
|
+
/**
|
|
85
|
+
* Create or reconfigure a stream.
|
|
86
|
+
*/
|
|
87
|
+
export declare const createOrReconfigureStream: <ThrowOnError extends boolean = false>(options: Options<CreateOrReconfigureStreamData, ThrowOnError>) => import("./client").RequestResult<CreateOrReconfigureStreamResponses, CreateOrReconfigureStreamErrors, ThrowOnError, "fields">;
|
|
88
|
+
/**
|
|
89
|
+
* Read records.
|
|
90
|
+
*/
|
|
91
|
+
export declare const read: <ThrowOnError extends boolean = false>(options: Options<ReadData, ThrowOnError>) => import("./client").RequestResult<ReadResponses, ReadErrors, ThrowOnError, "fields">;
|
|
92
|
+
/**
|
|
93
|
+
* Append records.
|
|
94
|
+
*/
|
|
95
|
+
export declare const append: <ThrowOnError extends boolean = false>(options: Options<AppendData, ThrowOnError>) => import("./client").RequestResult<AppendResponses, AppendErrors, ThrowOnError, "fields">;
|
|
96
|
+
/**
|
|
97
|
+
* Check the tail.
|
|
98
|
+
*/
|
|
99
|
+
export declare const checkTail: <ThrowOnError extends boolean = false>(options: Options<CheckTailData, ThrowOnError>) => import("./client").RequestResult<CheckTailResponses, CheckTailErrors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,MAAM,iBAAiB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,qBAAqB,EAAE,YAAY,CAAC,kHAe5H,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,6BAA6B,EAAE,YAAY,CAAC,kIAe5I,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,QAAQ,EAAE,YAAY,CAAC,wFAWlG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,4FAetG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,kGAW5G,CAAC"}
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen';
|
|
3
|
+
/**
|
|
4
|
+
* List access tokens.
|
|
5
|
+
*/
|
|
6
|
+
export const listAccessTokens = (options) => {
|
|
7
|
+
return (options?.client ?? client).get({
|
|
8
|
+
security: [
|
|
9
|
+
{
|
|
10
|
+
scheme: 'bearer',
|
|
11
|
+
type: 'http'
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
url: '/access-tokens',
|
|
15
|
+
...options
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Issue a new access token.
|
|
20
|
+
*/
|
|
21
|
+
export const issueAccessToken = (options) => {
|
|
22
|
+
return (options.client ?? client).post({
|
|
23
|
+
security: [
|
|
24
|
+
{
|
|
25
|
+
scheme: 'bearer',
|
|
26
|
+
type: 'http'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
url: '/access-tokens',
|
|
30
|
+
...options,
|
|
31
|
+
headers: {
|
|
32
|
+
'Content-Type': 'application/json',
|
|
33
|
+
...options.headers
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Revoke an access token.
|
|
39
|
+
*/
|
|
40
|
+
export const revokeAccessToken = (options) => {
|
|
41
|
+
return (options.client ?? client).delete({
|
|
42
|
+
security: [
|
|
43
|
+
{
|
|
44
|
+
scheme: 'bearer',
|
|
45
|
+
type: 'http'
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
url: '/access-tokens/{id}',
|
|
49
|
+
...options
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* List basins.
|
|
54
|
+
*/
|
|
55
|
+
export const listBasins = (options) => {
|
|
56
|
+
return (options?.client ?? client).get({
|
|
57
|
+
security: [
|
|
58
|
+
{
|
|
59
|
+
scheme: 'bearer',
|
|
60
|
+
type: 'http'
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
url: '/basins',
|
|
64
|
+
...options
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Create a basin.
|
|
69
|
+
*/
|
|
70
|
+
export const createBasin = (options) => {
|
|
71
|
+
return (options.client ?? client).post({
|
|
72
|
+
security: [
|
|
73
|
+
{
|
|
74
|
+
scheme: 'bearer',
|
|
75
|
+
type: 'http'
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
url: '/basins',
|
|
79
|
+
...options,
|
|
80
|
+
headers: {
|
|
81
|
+
'Content-Type': 'application/json',
|
|
82
|
+
...options.headers
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Delete a basin.
|
|
88
|
+
*/
|
|
89
|
+
export const deleteBasin = (options) => {
|
|
90
|
+
return (options.client ?? client).delete({
|
|
91
|
+
security: [
|
|
92
|
+
{
|
|
93
|
+
scheme: 'bearer',
|
|
94
|
+
type: 'http'
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
url: '/basins/{basin}',
|
|
98
|
+
...options
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Get basin configuration.
|
|
103
|
+
*/
|
|
104
|
+
export const getBasinConfig = (options) => {
|
|
105
|
+
return (options.client ?? client).get({
|
|
106
|
+
security: [
|
|
107
|
+
{
|
|
108
|
+
scheme: 'bearer',
|
|
109
|
+
type: 'http'
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
url: '/basins/{basin}',
|
|
113
|
+
...options
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Reconfigure a basin.
|
|
118
|
+
*/
|
|
119
|
+
export const reconfigureBasin = (options) => {
|
|
120
|
+
return (options.client ?? client).patch({
|
|
121
|
+
security: [
|
|
122
|
+
{
|
|
123
|
+
scheme: 'bearer',
|
|
124
|
+
type: 'http'
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
url: '/basins/{basin}',
|
|
128
|
+
...options,
|
|
129
|
+
headers: {
|
|
130
|
+
'Content-Type': 'application/json',
|
|
131
|
+
...options.headers
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Create or reconfigure a basin.
|
|
137
|
+
*/
|
|
138
|
+
export const createOrReconfigureBasin = (options) => {
|
|
139
|
+
return (options.client ?? client).put({
|
|
140
|
+
security: [
|
|
141
|
+
{
|
|
142
|
+
scheme: 'bearer',
|
|
143
|
+
type: 'http'
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
url: '/basins/{basin}',
|
|
147
|
+
...options,
|
|
148
|
+
headers: {
|
|
149
|
+
'Content-Type': 'application/json',
|
|
150
|
+
...options.headers
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Account-level metrics.
|
|
156
|
+
*/
|
|
157
|
+
export const accountMetrics = (options) => {
|
|
158
|
+
return (options.client ?? client).get({
|
|
159
|
+
security: [
|
|
160
|
+
{
|
|
161
|
+
scheme: 'bearer',
|
|
162
|
+
type: 'http'
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
url: '/metrics',
|
|
166
|
+
...options
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Basin-level metrics.
|
|
171
|
+
*/
|
|
172
|
+
export const basinMetrics = (options) => {
|
|
173
|
+
return (options.client ?? client).get({
|
|
174
|
+
security: [
|
|
175
|
+
{
|
|
176
|
+
scheme: 'bearer',
|
|
177
|
+
type: 'http'
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
url: '/metrics/{basin}',
|
|
181
|
+
...options
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Stream-level metrics.
|
|
186
|
+
*/
|
|
187
|
+
export const streamMetrics = (options) => {
|
|
188
|
+
return (options.client ?? client).get({
|
|
189
|
+
security: [
|
|
190
|
+
{
|
|
191
|
+
scheme: 'bearer',
|
|
192
|
+
type: 'http'
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
url: '/metrics/{basin}/{stream}',
|
|
196
|
+
...options
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* List streams.
|
|
201
|
+
*/
|
|
202
|
+
export const listStreams = (options) => {
|
|
203
|
+
return (options?.client ?? client).get({
|
|
204
|
+
security: [
|
|
205
|
+
{
|
|
206
|
+
scheme: 'bearer',
|
|
207
|
+
type: 'http'
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
url: '/streams',
|
|
211
|
+
...options
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Create a stream.
|
|
216
|
+
*/
|
|
217
|
+
export const createStream = (options) => {
|
|
218
|
+
return (options.client ?? client).post({
|
|
219
|
+
security: [
|
|
220
|
+
{
|
|
221
|
+
scheme: 'bearer',
|
|
222
|
+
type: 'http'
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
url: '/streams',
|
|
226
|
+
...options,
|
|
227
|
+
headers: {
|
|
228
|
+
'Content-Type': 'application/json',
|
|
229
|
+
...options.headers
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Delete a stream.
|
|
235
|
+
*/
|
|
236
|
+
export const deleteStream = (options) => {
|
|
237
|
+
return (options.client ?? client).delete({
|
|
238
|
+
security: [
|
|
239
|
+
{
|
|
240
|
+
scheme: 'bearer',
|
|
241
|
+
type: 'http'
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
url: '/streams/{stream}',
|
|
245
|
+
...options
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Get stream configuration.
|
|
250
|
+
*/
|
|
251
|
+
export const getStreamConfig = (options) => {
|
|
252
|
+
return (options.client ?? client).get({
|
|
253
|
+
security: [
|
|
254
|
+
{
|
|
255
|
+
scheme: 'bearer',
|
|
256
|
+
type: 'http'
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
url: '/streams/{stream}',
|
|
260
|
+
...options
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Reconfigure a stream.
|
|
265
|
+
*/
|
|
266
|
+
export const reconfigureStream = (options) => {
|
|
267
|
+
return (options.client ?? client).patch({
|
|
268
|
+
security: [
|
|
269
|
+
{
|
|
270
|
+
scheme: 'bearer',
|
|
271
|
+
type: 'http'
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
url: '/streams/{stream}',
|
|
275
|
+
...options,
|
|
276
|
+
headers: {
|
|
277
|
+
'Content-Type': 'application/json',
|
|
278
|
+
...options.headers
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Create or reconfigure a stream.
|
|
284
|
+
*/
|
|
285
|
+
export const createOrReconfigureStream = (options) => {
|
|
286
|
+
return (options.client ?? client).put({
|
|
287
|
+
security: [
|
|
288
|
+
{
|
|
289
|
+
scheme: 'bearer',
|
|
290
|
+
type: 'http'
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
url: '/streams/{stream}',
|
|
294
|
+
...options,
|
|
295
|
+
headers: {
|
|
296
|
+
'Content-Type': 'application/json',
|
|
297
|
+
...options.headers
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Read records.
|
|
303
|
+
*/
|
|
304
|
+
export const read = (options) => {
|
|
305
|
+
return (options.client ?? client).get({
|
|
306
|
+
security: [
|
|
307
|
+
{
|
|
308
|
+
scheme: 'bearer',
|
|
309
|
+
type: 'http'
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
url: '/streams/{stream}/records',
|
|
313
|
+
...options
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Append records.
|
|
318
|
+
*/
|
|
319
|
+
export const append = (options) => {
|
|
320
|
+
return (options.client ?? client).post({
|
|
321
|
+
security: [
|
|
322
|
+
{
|
|
323
|
+
scheme: 'bearer',
|
|
324
|
+
type: 'http'
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
url: '/streams/{stream}/records',
|
|
328
|
+
...options,
|
|
329
|
+
headers: {
|
|
330
|
+
'Content-Type': 'application/json',
|
|
331
|
+
...options.headers
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Check the tail.
|
|
337
|
+
*/
|
|
338
|
+
export const checkTail = (options) => {
|
|
339
|
+
return (options.client ?? client).get({
|
|
340
|
+
security: [
|
|
341
|
+
{
|
|
342
|
+
scheme: 'bearer',
|
|
343
|
+
type: 'http'
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
url: '/streams/{stream}/records/tail',
|
|
347
|
+
...options
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
//# sourceMappingURL=sdk.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../../src/generated/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAiBtC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAuC,OAAqD,EAAE,EAAE;IAC5H,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC,GAAG,CAAkE;QACpG,QAAQ,EAAE;YACN;gBACI,MAAM,EAAE,QAAQ;gBAChB,IAAI,EAAE,MAAM;aACf;SACJ;QACD,GAAG,EAAE,gBAAgB;QACrB,GAAG,OAAO;KACb,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAuC,OAAoD,EAAE,EAAE;IAC3H,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,IAAI,CAAkE;QACpG,QAAQ,EAAE;YACN;gBACI,MAAM,EAAE,QAAQ;gBAChB,IAAI,EAAE,MAAM;aACf;SACJ;QACD,GAAG,EAAE,gBAAgB;QACrB,GAAG,OAAO;QACV,OAAO,EAAE;YACL,cAAc,EAAE,kBAAkB;YAClC,GAAG,OAAO,CAAC,OAAO;SACrB;KACJ,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAuC,OAAqD,EAAE,EAAE;IAC7H,OAAO,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,MAAM,CAAoE;QACxG,QAAQ,EAAE;YACN;gBACI,MAAM,EAAE,QAAQ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