@s2-dev/streamstore 0.15.11 → 0.15.13
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 +3 -9
- package/bin/mcp-server.js +24 -12
- package/bin/mcp-server.js.map +12 -12
- package/dist/commonjs/funcs/basinsListBasins.js +5 -1
- package/dist/commonjs/funcs/basinsListBasins.js.map +1 -1
- package/dist/commonjs/funcs/recordsRead.js +1 -0
- package/dist/commonjs/funcs/recordsRead.js.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.js +5 -1
- package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/event-streams.d.ts +3 -3
- package/dist/commonjs/lib/event-streams.d.ts.map +1 -1
- package/dist/commonjs/lib/event-streams.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/read.d.ts +18 -11
- package/dist/commonjs/models/operations/read.d.ts.map +1 -1
- package/dist/commonjs/models/operations/read.js +7 -3
- package/dist/commonjs/models/operations/read.js.map +1 -1
- package/dist/esm/funcs/basinsListBasins.js +5 -1
- package/dist/esm/funcs/basinsListBasins.js.map +1 -1
- package/dist/esm/funcs/recordsRead.js +1 -0
- package/dist/esm/funcs/recordsRead.js.map +1 -1
- package/dist/esm/funcs/streamsListStreams.js +5 -1
- package/dist/esm/funcs/streamsListStreams.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/event-streams.d.ts +3 -3
- package/dist/esm/lib/event-streams.d.ts.map +1 -1
- package/dist/esm/lib/event-streams.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/read.d.ts +18 -11
- package/dist/esm/models/operations/read.d.ts.map +1 -1
- package/dist/esm/models/operations/read.js +7 -3
- package/dist/esm/models/operations/read.js.map +1 -1
- package/docs/sdks/records/README.md +2 -8
- package/examples/accessTokensListAccessTokens.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/basinsListBasins.ts +6 -1
- package/src/funcs/recordsRead.ts +1 -0
- package/src/funcs/streamsListStreams.ts +6 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +6 -8
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/read.ts +30 -19
- package/temp/example.ts +0 -5
package/README.md
CHANGED
|
@@ -66,10 +66,7 @@ bun add @s2-dev/streamstore
|
|
|
66
66
|
### Yarn
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
yarn add @s2-dev/streamstore
|
|
70
|
-
|
|
71
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
72
|
-
# to install zod as shown above.
|
|
69
|
+
yarn add @s2-dev/streamstore
|
|
73
70
|
```
|
|
74
71
|
|
|
75
72
|
> [!NOTE]
|
|
@@ -327,10 +324,7 @@ async function run() {
|
|
|
327
324
|
s2Basin: "<value>",
|
|
328
325
|
});
|
|
329
326
|
|
|
330
|
-
|
|
331
|
-
// Handle the event
|
|
332
|
-
console.log(event);
|
|
333
|
-
}
|
|
327
|
+
console.log(result);
|
|
334
328
|
}
|
|
335
329
|
|
|
336
330
|
run();
|
|
@@ -609,7 +603,7 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
609
603
|
console.groupEnd();
|
|
610
604
|
});
|
|
611
605
|
|
|
612
|
-
const sdk = new S2({ httpClient });
|
|
606
|
+
const sdk = new S2({ httpClient: httpClient });
|
|
613
607
|
```
|
|
614
608
|
<!-- End Custom HTTP Client [http-client] -->
|
|
615
609
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -34154,7 +34154,7 @@ var init_base64 = __esm(() => {
|
|
|
34154
34154
|
|
|
34155
34155
|
// src/lib/url.ts
|
|
34156
34156
|
function pathToFunc(pathPattern, options) {
|
|
34157
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
34157
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
34158
34158
|
return function buildURLPath(params = {}) {
|
|
34159
34159
|
return pathPattern.replace(paramRE, function(_2, placeholder) {
|
|
34160
34160
|
if (!hasOwn.call(params, placeholder)) {
|
|
@@ -34196,9 +34196,9 @@ var init_config = __esm(() => {
|
|
|
34196
34196
|
SDK_METADATA = {
|
|
34197
34197
|
language: "typescript",
|
|
34198
34198
|
openapiDocVersion: "1.0.0",
|
|
34199
|
-
sdkVersion: "0.15.
|
|
34200
|
-
genVersion: "2.
|
|
34201
|
-
userAgent: "speakeasy-sdk/typescript 0.15.
|
|
34199
|
+
sdkVersion: "0.15.13",
|
|
34200
|
+
genVersion: "2.716.14",
|
|
34201
|
+
userAgent: "speakeasy-sdk/typescript 0.15.13 2.716.14 1.0.0 @s2-dev/streamstore"
|
|
34202
34202
|
};
|
|
34203
34203
|
});
|
|
34204
34204
|
|
|
@@ -37271,6 +37271,7 @@ var init_errors2 = __esm(() => {
|
|
|
37271
37271
|
init_errorresponse();
|
|
37272
37272
|
init_httpclienterrors();
|
|
37273
37273
|
init_responsevalidationerror();
|
|
37274
|
+
init_s2error();
|
|
37274
37275
|
init_sdkvalidationerror();
|
|
37275
37276
|
init_tailresponse2();
|
|
37276
37277
|
});
|
|
@@ -37986,10 +37987,11 @@ var init_read = __esm(() => {
|
|
|
37986
37987
|
seq_num: numberType().int().optional(),
|
|
37987
37988
|
timestamp: numberType().int().optional(),
|
|
37988
37989
|
tail_offset: numberType().int().optional(),
|
|
37990
|
+
clamp: booleanType().optional(),
|
|
37989
37991
|
count: numberType().int().optional(),
|
|
37990
37992
|
bytes: numberType().int().optional(),
|
|
37991
37993
|
until: numberType().int().optional(),
|
|
37992
|
-
|
|
37994
|
+
wait: numberType().int().optional(),
|
|
37993
37995
|
"s2-basin": stringType()
|
|
37994
37996
|
}).transform((v2) => {
|
|
37995
37997
|
return remap(v2, {
|
|
@@ -38005,10 +38007,11 @@ var init_read = __esm(() => {
|
|
|
38005
38007
|
seqNum: numberType().int().optional(),
|
|
38006
38008
|
timestamp: numberType().int().optional(),
|
|
38007
38009
|
tailOffset: numberType().int().optional(),
|
|
38010
|
+
clamp: booleanType().optional(),
|
|
38008
38011
|
count: numberType().int().optional(),
|
|
38009
38012
|
bytes: numberType().int().optional(),
|
|
38010
38013
|
until: numberType().int().optional(),
|
|
38011
|
-
|
|
38014
|
+
wait: numberType().int().optional(),
|
|
38012
38015
|
s2Basin: stringType()
|
|
38013
38016
|
}).transform((v2) => {
|
|
38014
38017
|
return remap(v2, {
|
|
@@ -42846,7 +42849,11 @@ async function $do8(client, request, options) {
|
|
|
42846
42849
|
}];
|
|
42847
42850
|
}
|
|
42848
42851
|
const nextFunc = (responseData) => {
|
|
42849
|
-
const
|
|
42852
|
+
const hasMore = query(responseData, "$.Result.has_more")[0];
|
|
42853
|
+
if (hasMore !== true) {
|
|
42854
|
+
return { next: () => null };
|
|
42855
|
+
}
|
|
42856
|
+
const nextCursor = query(responseData, "$.Result.basins[-1].name")[0];
|
|
42850
42857
|
if (typeof nextCursor !== "string") {
|
|
42851
42858
|
return { next: () => null };
|
|
42852
42859
|
}
|
|
@@ -43727,7 +43734,8 @@ async function $do15(client, request, options) {
|
|
|
43727
43734
|
seq_num: payload.seq_num,
|
|
43728
43735
|
tail_offset: payload.tail_offset,
|
|
43729
43736
|
timestamp: payload.timestamp,
|
|
43730
|
-
until: payload.until
|
|
43737
|
+
until: payload.until,
|
|
43738
|
+
wait: payload.wait
|
|
43731
43739
|
});
|
|
43732
43740
|
const headers = new Headers(compactMap({
|
|
43733
43741
|
Accept: options?.acceptHeaderOverride || "application/json;q=1, text/event-stream;q=0",
|
|
@@ -44496,7 +44504,11 @@ async function $do20(client, request, options) {
|
|
|
44496
44504
|
}];
|
|
44497
44505
|
}
|
|
44498
44506
|
const nextFunc = (responseData) => {
|
|
44499
|
-
const
|
|
44507
|
+
const hasMore = query(responseData, "$.Result.has_more")[0];
|
|
44508
|
+
if (hasMore !== true) {
|
|
44509
|
+
return { next: () => null };
|
|
44510
|
+
}
|
|
44511
|
+
const nextCursor = query(responseData, "$.Result.streams[-1].name")[0];
|
|
44500
44512
|
if (typeof nextCursor !== "string") {
|
|
44501
44513
|
return { next: () => null };
|
|
44502
44514
|
}
|
|
@@ -44682,7 +44694,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
44682
44694
|
function createMCPServer(deps) {
|
|
44683
44695
|
const server = new McpServer({
|
|
44684
44696
|
name: "S2",
|
|
44685
|
-
version: "0.15.
|
|
44697
|
+
version: "0.15.13"
|
|
44686
44698
|
});
|
|
44687
44699
|
const client = new S2Core({
|
|
44688
44700
|
accessToken: deps.accessToken,
|
|
@@ -45939,7 +45951,7 @@ var routes = rn({
|
|
|
45939
45951
|
var app = Ve(routes, {
|
|
45940
45952
|
name: "mcp",
|
|
45941
45953
|
versionInfo: {
|
|
45942
|
-
currentVersion: "0.15.
|
|
45954
|
+
currentVersion: "0.15.13"
|
|
45943
45955
|
}
|
|
45944
45956
|
});
|
|
45945
45957
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -45947,5 +45959,5 @@ export {
|
|
|
45947
45959
|
app
|
|
45948
45960
|
};
|
|
45949
45961
|
|
|
45950
|
-
//# debugId=
|
|
45962
|
+
//# debugId=B601911852CB4BAC64756E2164756E21
|
|
45951
45963
|
//# sourceMappingURL=mcp-server.js.map
|