@s2-dev/streamstore 0.11.0 → 0.11.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/FUNCTIONS.md +1 -1
- package/README.md +14 -14
- package/bin/mcp-server.js +63 -54
- package/bin/mcp-server.js.map +24 -24
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js +3 -3
- package/dist/commonjs/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js +3 -3
- package/dist/commonjs/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js +3 -3
- package/dist/commonjs/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js +3 -3
- package/dist/commonjs/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsDeleteBasin.js +3 -3
- package/dist/commonjs/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/commonjs/funcs/basinsGetBasinConfig.js +3 -3
- package/dist/commonjs/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/commonjs/funcs/basinsListBasins.js +3 -3
- package/dist/commonjs/funcs/basinsListBasins.js.map +1 -1
- package/dist/commonjs/funcs/basinsReconfigureBasin.js +3 -3
- package/dist/commonjs/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js +3 -3
- package/dist/commonjs/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsDeleteStream.js +3 -3
- package/dist/commonjs/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/commonjs/funcs/streamsGetStreamConfig.js +3 -3
- package/dist/commonjs/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/commonjs/funcs/streamsListStreams.js +3 -3
- package/dist/commonjs/funcs/streamsListStreams.js.map +1 -1
- package/dist/commonjs/funcs/streamsReconfigureStream.js +3 -3
- package/dist/commonjs/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/env.d.ts +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +1 -1
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/security.js +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +2 -2
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +2 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/security.d.ts +2 -2
- package/dist/commonjs/models/components/security.d.ts.map +1 -1
- package/dist/commonjs/models/components/security.js +11 -2
- package/dist/commonjs/models/components/security.js.map +1 -1
- package/dist/commonjs/models/operations/liststreams.d.ts +1 -1
- package/dist/commonjs/models/operations/liststreams.d.ts.map +1 -1
- package/dist/commonjs/models/operations/liststreams.js +1 -1
- package/dist/commonjs/models/operations/liststreams.js.map +1 -1
- package/dist/esm/funcs/accessTokensIssueAccessToken.js +3 -3
- package/dist/esm/funcs/accessTokensIssueAccessToken.js.map +1 -1
- package/dist/esm/funcs/accessTokensListAccessTokens.js +3 -3
- package/dist/esm/funcs/accessTokensListAccessTokens.js.map +1 -1
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js +3 -3
- package/dist/esm/funcs/accessTokensRevokeAccessToken.js.map +1 -1
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js +3 -3
- package/dist/esm/funcs/basinsCreateOrReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/basinsDeleteBasin.js +3 -3
- package/dist/esm/funcs/basinsDeleteBasin.js.map +1 -1
- package/dist/esm/funcs/basinsGetBasinConfig.js +3 -3
- package/dist/esm/funcs/basinsGetBasinConfig.js.map +1 -1
- package/dist/esm/funcs/basinsListBasins.js +3 -3
- package/dist/esm/funcs/basinsListBasins.js.map +1 -1
- package/dist/esm/funcs/basinsReconfigureBasin.js +3 -3
- package/dist/esm/funcs/basinsReconfigureBasin.js.map +1 -1
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js +3 -3
- package/dist/esm/funcs/streamsCreateOrReconfigureStream.js.map +1 -1
- package/dist/esm/funcs/streamsDeleteStream.js +3 -3
- package/dist/esm/funcs/streamsDeleteStream.js.map +1 -1
- package/dist/esm/funcs/streamsGetStreamConfig.js +3 -3
- package/dist/esm/funcs/streamsGetStreamConfig.js.map +1 -1
- package/dist/esm/funcs/streamsListStreams.js +3 -3
- package/dist/esm/funcs/streamsListStreams.js.map +1 -1
- package/dist/esm/funcs/streamsReconfigureStream.js +3 -3
- package/dist/esm/funcs/streamsReconfigureStream.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/env.d.ts +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +1 -1
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/security.js +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +2 -2
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +2 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/security.d.ts +2 -2
- package/dist/esm/models/components/security.d.ts.map +1 -1
- package/dist/esm/models/components/security.js +11 -2
- package/dist/esm/models/components/security.js.map +1 -1
- package/dist/esm/models/operations/liststreams.d.ts +1 -1
- package/dist/esm/models/operations/liststreams.d.ts.map +1 -1
- package/dist/esm/models/operations/liststreams.js +1 -1
- package/dist/esm/models/operations/liststreams.js.map +1 -1
- package/docs/sdks/accesstokens/README.md +6 -6
- package/docs/sdks/basins/README.md +10 -10
- package/docs/sdks/streams/README.md +10 -10
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accessTokensIssueAccessToken.ts +3 -3
- package/src/funcs/accessTokensListAccessTokens.ts +3 -3
- package/src/funcs/accessTokensRevokeAccessToken.ts +3 -3
- package/src/funcs/basinsCreateOrReconfigureBasin.ts +3 -3
- package/src/funcs/basinsDeleteBasin.ts +3 -3
- package/src/funcs/basinsGetBasinConfig.ts +3 -3
- package/src/funcs/basinsListBasins.ts +3 -3
- package/src/funcs/basinsReconfigureBasin.ts +3 -3
- package/src/funcs/streamsCreateOrReconfigureStream.ts +3 -3
- package/src/funcs/streamsDeleteStream.ts +3 -3
- package/src/funcs/streamsGetStreamConfig.ts +3 -3
- package/src/funcs/streamsListStreams.ts +3 -3
- package/src/funcs/streamsReconfigureStream.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +2 -2
- package/src/lib/security.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +2 -2
- package/src/mcp-server/cli/start/impl.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/models/components/security.ts +13 -4
- package/src/models/operations/liststreams.ts +1 -1
package/FUNCTIONS.md
CHANGED
|
@@ -26,7 +26,7 @@ import { SDKValidationError } from "@s2-dev/streamstore/models/errors/sdkvalidat
|
|
|
26
26
|
// Use `S2Core` for best tree-shaking performance.
|
|
27
27
|
// You can create one instance of it to use across an application.
|
|
28
28
|
const s2 = new S2Core({
|
|
29
|
-
|
|
29
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
async function run() {
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ Add the following server definition to your `claude_desktop_config.json` file:
|
|
|
97
97
|
"-y", "--package", "@s2-dev/streamstore",
|
|
98
98
|
"--",
|
|
99
99
|
"mcp", "start",
|
|
100
|
-
"--
|
|
100
|
+
"--access-token", "..."
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -120,7 +120,7 @@ Create a `.cursor/mcp.json` file in your project root with the following content
|
|
|
120
120
|
"-y", "--package", "@s2-dev/streamstore",
|
|
121
121
|
"--",
|
|
122
122
|
"mcp", "start",
|
|
123
|
-
"--
|
|
123
|
+
"--access-token", "..."
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -254,7 +254,7 @@ run();
|
|
|
254
254
|
import { S2 } from "@s2-dev/streamstore";
|
|
255
255
|
|
|
256
256
|
const s2 = new S2({
|
|
257
|
-
|
|
257
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
async function run() {
|
|
@@ -276,16 +276,16 @@ run();
|
|
|
276
276
|
|
|
277
277
|
This SDK supports the following security scheme globally:
|
|
278
278
|
|
|
279
|
-
| Name
|
|
280
|
-
|
|
|
281
|
-
| `
|
|
279
|
+
| Name | Type | Scheme | Environment Variable |
|
|
280
|
+
| ------------- | ---- | ----------- | -------------------- |
|
|
281
|
+
| `accessToken` | http | HTTP Bearer | `S2_ACCESS_TOKEN` |
|
|
282
282
|
|
|
283
|
-
To authenticate with the API the `
|
|
283
|
+
To authenticate with the API the `accessToken` parameter must be set when initializing the SDK client instance. For example:
|
|
284
284
|
```typescript
|
|
285
285
|
import { S2 } from "@s2-dev/streamstore";
|
|
286
286
|
|
|
287
287
|
const s2 = new S2({
|
|
288
|
-
|
|
288
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
async function run() {
|
|
@@ -380,7 +380,7 @@ Here's an example of one such pagination call:
|
|
|
380
380
|
import { S2 } from "@s2-dev/streamstore";
|
|
381
381
|
|
|
382
382
|
const s2 = new S2({
|
|
383
|
-
|
|
383
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
384
384
|
});
|
|
385
385
|
|
|
386
386
|
async function run() {
|
|
@@ -407,7 +407,7 @@ To change the default retry strategy for a single API call, simply provide a ret
|
|
|
407
407
|
import { S2 } from "@s2-dev/streamstore";
|
|
408
408
|
|
|
409
409
|
const s2 = new S2({
|
|
410
|
-
|
|
410
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
411
411
|
});
|
|
412
412
|
|
|
413
413
|
async function run() {
|
|
@@ -447,7 +447,7 @@ const s2 = new S2({
|
|
|
447
447
|
},
|
|
448
448
|
retryConnectionErrors: false,
|
|
449
449
|
},
|
|
450
|
-
|
|
450
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
451
451
|
});
|
|
452
452
|
|
|
453
453
|
async function run() {
|
|
@@ -485,7 +485,7 @@ import {
|
|
|
485
485
|
} from "@s2-dev/streamstore/models/errors";
|
|
486
486
|
|
|
487
487
|
const s2 = new S2({
|
|
488
|
-
|
|
488
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
489
489
|
});
|
|
490
490
|
|
|
491
491
|
async function run() {
|
|
@@ -556,7 +556,7 @@ import { S2 } from "@s2-dev/streamstore";
|
|
|
556
556
|
|
|
557
557
|
const s2 = new S2({
|
|
558
558
|
serverURL: "https://aws.s2.dev/v1",
|
|
559
|
-
|
|
559
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
560
560
|
});
|
|
561
561
|
|
|
562
562
|
async function run() {
|
|
@@ -577,7 +577,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|
|
577
577
|
import { S2 } from "@s2-dev/streamstore";
|
|
578
578
|
|
|
579
579
|
const s2 = new S2({
|
|
580
|
-
|
|
580
|
+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
|
|
581
581
|
});
|
|
582
582
|
|
|
583
583
|
async function run() {
|
package/bin/mcp-server.js
CHANGED
|
@@ -34173,9 +34173,9 @@ var init_config = __esm(() => {
|
|
|
34173
34173
|
SDK_METADATA = {
|
|
34174
34174
|
language: "typescript",
|
|
34175
34175
|
openapiDocVersion: "1.0.0",
|
|
34176
|
-
sdkVersion: "0.11.
|
|
34176
|
+
sdkVersion: "0.11.1",
|
|
34177
34177
|
genVersion: "2.593.4",
|
|
34178
|
-
userAgent: "speakeasy-sdk/typescript 0.11.
|
|
34178
|
+
userAgent: "speakeasy-sdk/typescript 0.11.1 2.593.4 1.0.0 @s2-dev/streamstore"
|
|
34179
34179
|
};
|
|
34180
34180
|
});
|
|
34181
34181
|
|
|
@@ -34418,7 +34418,7 @@ var envSchema, envMemo = undefined;
|
|
|
34418
34418
|
var init_env = __esm(() => {
|
|
34419
34419
|
init_lib();
|
|
34420
34420
|
envSchema = objectType({
|
|
34421
|
-
|
|
34421
|
+
S2_ACCESS_TOKEN: stringType().optional(),
|
|
34422
34422
|
S2_DEBUG: coerce.boolean().optional()
|
|
34423
34423
|
});
|
|
34424
34424
|
});
|
|
@@ -35539,7 +35539,7 @@ function resolveGlobalSecurity(security) {
|
|
|
35539
35539
|
{
|
|
35540
35540
|
fieldName: "Authorization",
|
|
35541
35541
|
type: "http:bearer",
|
|
35542
|
-
value: security?.
|
|
35542
|
+
value: security?.accessToken ?? env().S2_ACCESS_TOKEN
|
|
35543
35543
|
}
|
|
35544
35544
|
]);
|
|
35545
35545
|
}
|
|
@@ -36157,11 +36157,20 @@ var init_liststreamsresponse = __esm(() => {
|
|
|
36157
36157
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36158
36158
|
var init_security2 = __esm(() => {
|
|
36159
36159
|
init_lib();
|
|
36160
|
+
init_primitives();
|
|
36160
36161
|
Security$inboundSchema = objectType({
|
|
36161
|
-
|
|
36162
|
+
access_token: stringType().optional()
|
|
36163
|
+
}).transform((v2) => {
|
|
36164
|
+
return remap(v2, {
|
|
36165
|
+
access_token: "accessToken"
|
|
36166
|
+
});
|
|
36162
36167
|
});
|
|
36163
36168
|
Security$outboundSchema = objectType({
|
|
36164
|
-
|
|
36169
|
+
accessToken: stringType().optional()
|
|
36170
|
+
}).transform((v2) => {
|
|
36171
|
+
return remap(v2, {
|
|
36172
|
+
accessToken: "access_token"
|
|
36173
|
+
});
|
|
36165
36174
|
});
|
|
36166
36175
|
((Security$) => {
|
|
36167
36176
|
Security$.inboundSchema = Security$inboundSchema;
|
|
@@ -36311,15 +36320,15 @@ async function $do(client, request, options) {
|
|
|
36311
36320
|
"Content-Type": "application/json",
|
|
36312
36321
|
Accept: "application/json"
|
|
36313
36322
|
}));
|
|
36314
|
-
const secConfig = await extractSecurity(client._options.
|
|
36315
|
-
const securityInput = secConfig == null ? {} : {
|
|
36323
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
36324
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
36316
36325
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
36317
36326
|
const context = {
|
|
36318
36327
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
36319
36328
|
operationID: "issue_access_token",
|
|
36320
36329
|
oAuth2Scopes: [],
|
|
36321
36330
|
resolvedSecurity: requestSecurity,
|
|
36322
|
-
securitySource: client._options.
|
|
36331
|
+
securitySource: client._options.accessToken,
|
|
36323
36332
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
36324
36333
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
36325
36334
|
};
|
|
@@ -36616,7 +36625,7 @@ var init_liststreams = __esm(() => {
|
|
|
36616
36625
|
init_primitives();
|
|
36617
36626
|
init_components();
|
|
36618
36627
|
ListStreamsServerList = [
|
|
36619
|
-
"https
|
|
36628
|
+
"https://{basin}.b.aws.s2.dev/v1"
|
|
36620
36629
|
];
|
|
36621
36630
|
ListStreamsRequest$inboundSchema = objectType({
|
|
36622
36631
|
prefix: stringType().default(""),
|
|
@@ -36771,15 +36780,15 @@ async function $do2(client, request, options) {
|
|
|
36771
36780
|
const headers = new Headers(compactMap({
|
|
36772
36781
|
Accept: "application/json"
|
|
36773
36782
|
}));
|
|
36774
|
-
const secConfig = await extractSecurity(client._options.
|
|
36775
|
-
const securityInput = secConfig == null ? {} : {
|
|
36783
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
36784
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
36776
36785
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
36777
36786
|
const context = {
|
|
36778
36787
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
36779
36788
|
operationID: "list_access_tokens",
|
|
36780
36789
|
oAuth2Scopes: [],
|
|
36781
36790
|
resolvedSecurity: requestSecurity,
|
|
36782
|
-
securitySource: client._options.
|
|
36791
|
+
securitySource: client._options.accessToken,
|
|
36783
36792
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
36784
36793
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
36785
36794
|
};
|
|
@@ -36878,15 +36887,15 @@ async function $do3(client, request, options) {
|
|
|
36878
36887
|
const headers = new Headers(compactMap({
|
|
36879
36888
|
Accept: "application/json"
|
|
36880
36889
|
}));
|
|
36881
|
-
const secConfig = await extractSecurity(client._options.
|
|
36882
|
-
const securityInput = secConfig == null ? {} : {
|
|
36890
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
36891
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
36883
36892
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
36884
36893
|
const context = {
|
|
36885
36894
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
36886
36895
|
operationID: "revoke_access_token",
|
|
36887
36896
|
oAuth2Scopes: [],
|
|
36888
36897
|
resolvedSecurity: requestSecurity,
|
|
36889
|
-
securitySource: client._options.
|
|
36898
|
+
securitySource: client._options.accessToken,
|
|
36890
36899
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
36891
36900
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
36892
36901
|
};
|
|
@@ -36987,15 +36996,15 @@ async function $do4(client, request, options) {
|
|
|
36987
36996
|
Accept: "application/json",
|
|
36988
36997
|
"s2-request-token": encodeSimple("s2-request-token", payload["s2-request-token"], { explode: false, charEncoding: "none" })
|
|
36989
36998
|
}));
|
|
36990
|
-
const secConfig = await extractSecurity(client._options.
|
|
36991
|
-
const securityInput = secConfig == null ? {} : {
|
|
36999
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
37000
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
36992
37001
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
36993
37002
|
const context = {
|
|
36994
37003
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
36995
37004
|
operationID: "create_or_reconfigure_basin",
|
|
36996
37005
|
oAuth2Scopes: [],
|
|
36997
37006
|
resolvedSecurity: requestSecurity,
|
|
36998
|
-
securitySource: client._options.
|
|
37007
|
+
securitySource: client._options.accessToken,
|
|
36999
37008
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37000
37009
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37001
37010
|
};
|
|
@@ -37093,15 +37102,15 @@ async function $do5(client, request, options) {
|
|
|
37093
37102
|
const headers = new Headers(compactMap({
|
|
37094
37103
|
Accept: "application/json"
|
|
37095
37104
|
}));
|
|
37096
|
-
const secConfig = await extractSecurity(client._options.
|
|
37097
|
-
const securityInput = secConfig == null ? {} : {
|
|
37105
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
37106
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37098
37107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37099
37108
|
const context = {
|
|
37100
37109
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37101
37110
|
operationID: "delete_basin",
|
|
37102
37111
|
oAuth2Scopes: [],
|
|
37103
37112
|
resolvedSecurity: requestSecurity,
|
|
37104
|
-
securitySource: client._options.
|
|
37113
|
+
securitySource: client._options.accessToken,
|
|
37105
37114
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37106
37115
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37107
37116
|
};
|
|
@@ -37198,15 +37207,15 @@ async function $do6(client, request, options) {
|
|
|
37198
37207
|
const headers = new Headers(compactMap({
|
|
37199
37208
|
Accept: "application/json"
|
|
37200
37209
|
}));
|
|
37201
|
-
const secConfig = await extractSecurity(client._options.
|
|
37202
|
-
const securityInput = secConfig == null ? {} : {
|
|
37210
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
37211
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
37203
37212
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
37204
37213
|
const context = {
|
|
37205
37214
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
37206
37215
|
operationID: "get_basin_config",
|
|
37207
37216
|
oAuth2Scopes: [],
|
|
37208
37217
|
resolvedSecurity: requestSecurity,
|
|
37209
|
-
securitySource: client._options.
|
|
37218
|
+
securitySource: client._options.accessToken,
|
|
37210
37219
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
37211
37220
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
37212
37221
|
};
|
|
@@ -41122,15 +41131,15 @@ async function $do7(client, request, options) {
|
|
|
41122
41131
|
const headers = new Headers(compactMap({
|
|
41123
41132
|
Accept: "application/json"
|
|
41124
41133
|
}));
|
|
41125
|
-
const secConfig = await extractSecurity(client._options.
|
|
41126
|
-
const securityInput = secConfig == null ? {} : {
|
|
41134
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41135
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41127
41136
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41128
41137
|
const context = {
|
|
41129
41138
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41130
41139
|
operationID: "list_basins",
|
|
41131
41140
|
oAuth2Scopes: [],
|
|
41132
41141
|
resolvedSecurity: requestSecurity,
|
|
41133
|
-
securitySource: client._options.
|
|
41142
|
+
securitySource: client._options.accessToken,
|
|
41134
41143
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41135
41144
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41136
41145
|
};
|
|
@@ -41253,15 +41262,15 @@ async function $do8(client, request, options) {
|
|
|
41253
41262
|
"Content-Type": "application/json",
|
|
41254
41263
|
Accept: "application/json"
|
|
41255
41264
|
}));
|
|
41256
|
-
const secConfig = await extractSecurity(client._options.
|
|
41257
|
-
const securityInput = secConfig == null ? {} : {
|
|
41265
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41266
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41258
41267
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41259
41268
|
const context = {
|
|
41260
41269
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
41261
41270
|
operationID: "reconfigure_basin",
|
|
41262
41271
|
oAuth2Scopes: [],
|
|
41263
41272
|
resolvedSecurity: requestSecurity,
|
|
41264
|
-
securitySource: client._options.
|
|
41273
|
+
securitySource: client._options.accessToken,
|
|
41265
41274
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41266
41275
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41267
41276
|
};
|
|
@@ -41366,15 +41375,15 @@ async function $do9(client, request, options) {
|
|
|
41366
41375
|
Accept: "application/json",
|
|
41367
41376
|
"s2-request-token": encodeSimple("s2-request-token", payload["s2-request-token"], { explode: false, charEncoding: "none" })
|
|
41368
41377
|
}));
|
|
41369
|
-
const secConfig = await extractSecurity(client._options.
|
|
41370
|
-
const securityInput = secConfig == null ? {} : {
|
|
41378
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41379
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41371
41380
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41372
41381
|
const context = {
|
|
41373
41382
|
baseURL: baseURL ?? "",
|
|
41374
41383
|
operationID: "create_or_reconfigure_stream",
|
|
41375
41384
|
oAuth2Scopes: [],
|
|
41376
41385
|
resolvedSecurity: requestSecurity,
|
|
41377
|
-
securitySource: client._options.
|
|
41386
|
+
securitySource: client._options.accessToken,
|
|
41378
41387
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41379
41388
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41380
41389
|
};
|
|
@@ -41476,15 +41485,15 @@ async function $do10(client, request, options) {
|
|
|
41476
41485
|
const headers = new Headers(compactMap({
|
|
41477
41486
|
Accept: "application/json"
|
|
41478
41487
|
}));
|
|
41479
|
-
const secConfig = await extractSecurity(client._options.
|
|
41480
|
-
const securityInput = secConfig == null ? {} : {
|
|
41488
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41489
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41481
41490
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41482
41491
|
const context = {
|
|
41483
41492
|
baseURL: baseURL ?? "",
|
|
41484
41493
|
operationID: "delete_stream",
|
|
41485
41494
|
oAuth2Scopes: [],
|
|
41486
41495
|
resolvedSecurity: requestSecurity,
|
|
41487
|
-
securitySource: client._options.
|
|
41496
|
+
securitySource: client._options.accessToken,
|
|
41488
41497
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41489
41498
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41490
41499
|
};
|
|
@@ -41585,15 +41594,15 @@ async function $do11(client, request, options) {
|
|
|
41585
41594
|
const headers = new Headers(compactMap({
|
|
41586
41595
|
Accept: "application/json"
|
|
41587
41596
|
}));
|
|
41588
|
-
const secConfig = await extractSecurity(client._options.
|
|
41589
|
-
const securityInput = secConfig == null ? {} : {
|
|
41597
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41598
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41590
41599
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41591
41600
|
const context = {
|
|
41592
41601
|
baseURL: baseURL ?? "",
|
|
41593
41602
|
operationID: "get_stream_config",
|
|
41594
41603
|
oAuth2Scopes: [],
|
|
41595
41604
|
resolvedSecurity: requestSecurity,
|
|
41596
|
-
securitySource: client._options.
|
|
41605
|
+
securitySource: client._options.accessToken,
|
|
41597
41606
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41598
41607
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41599
41608
|
};
|
|
@@ -41694,15 +41703,15 @@ async function $do12(client, request, options) {
|
|
|
41694
41703
|
const headers = new Headers(compactMap({
|
|
41695
41704
|
Accept: "application/json"
|
|
41696
41705
|
}));
|
|
41697
|
-
const secConfig = await extractSecurity(client._options.
|
|
41698
|
-
const securityInput = secConfig == null ? {} : {
|
|
41706
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41707
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41699
41708
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41700
41709
|
const context = {
|
|
41701
41710
|
baseURL: baseURL ?? "",
|
|
41702
41711
|
operationID: "list_streams",
|
|
41703
41712
|
oAuth2Scopes: [],
|
|
41704
41713
|
resolvedSecurity: requestSecurity,
|
|
41705
|
-
securitySource: client._options.
|
|
41714
|
+
securitySource: client._options.accessToken,
|
|
41706
41715
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41707
41716
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41708
41717
|
};
|
|
@@ -41831,15 +41840,15 @@ async function $do13(client, request, options) {
|
|
|
41831
41840
|
"Content-Type": "application/json",
|
|
41832
41841
|
Accept: "application/json"
|
|
41833
41842
|
}));
|
|
41834
|
-
const secConfig = await extractSecurity(client._options.
|
|
41835
|
-
const securityInput = secConfig == null ? {} : {
|
|
41843
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41844
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41836
41845
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41837
41846
|
const context = {
|
|
41838
41847
|
baseURL: baseURL ?? "",
|
|
41839
41848
|
operationID: "reconfigure_stream",
|
|
41840
41849
|
oAuth2Scopes: [],
|
|
41841
41850
|
resolvedSecurity: requestSecurity,
|
|
41842
|
-
securitySource: client._options.
|
|
41851
|
+
securitySource: client._options.accessToken,
|
|
41843
41852
|
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41844
41853
|
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41845
41854
|
};
|
|
@@ -41921,10 +41930,10 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
41921
41930
|
function createMCPServer(deps) {
|
|
41922
41931
|
const server = new McpServer({
|
|
41923
41932
|
name: "S2",
|
|
41924
|
-
version: "0.11.
|
|
41933
|
+
version: "0.11.1"
|
|
41925
41934
|
});
|
|
41926
41935
|
const client = new S2Core({
|
|
41927
|
-
|
|
41936
|
+
accessToken: deps.accessToken,
|
|
41928
41937
|
serverURL: deps.serverURL,
|
|
41929
41938
|
serverIdx: deps.serverIdx
|
|
41930
41939
|
});
|
|
@@ -41997,7 +42006,7 @@ async function startStdio(flags) {
|
|
|
41997
42006
|
logger,
|
|
41998
42007
|
allowedTools: flags.tool,
|
|
41999
42008
|
scopes: flags.scope,
|
|
42000
|
-
...{
|
|
42009
|
+
...{ accessToken: flags["access-token"] },
|
|
42001
42010
|
serverURL: flags["server-url"],
|
|
42002
42011
|
serverIdx: flags["server-index"]
|
|
42003
42012
|
});
|
|
@@ -42016,7 +42025,7 @@ async function startSSE(flags) {
|
|
|
42016
42025
|
logger,
|
|
42017
42026
|
allowedTools: flags.tool,
|
|
42018
42027
|
scopes: flags.scope,
|
|
42019
|
-
...{
|
|
42028
|
+
...{ accessToken: flags["access-token"] },
|
|
42020
42029
|
serverURL: flags["server-url"],
|
|
42021
42030
|
serverIdx: flags["server-index"]
|
|
42022
42031
|
});
|
|
@@ -43097,9 +43106,9 @@ var startCommand = tn({
|
|
|
43097
43106
|
optional: true
|
|
43098
43107
|
}
|
|
43099
43108
|
} : {},
|
|
43100
|
-
"
|
|
43109
|
+
"access-token": {
|
|
43101
43110
|
kind: "parsed",
|
|
43102
|
-
brief: "Sets the
|
|
43111
|
+
brief: "Sets the accessToken auth field for the API",
|
|
43103
43112
|
optional: true,
|
|
43104
43113
|
parse: (value2) => {
|
|
43105
43114
|
return stringType().parse(value2);
|
|
@@ -43164,7 +43173,7 @@ var routes = rn({
|
|
|
43164
43173
|
var app = Ve(routes, {
|
|
43165
43174
|
name: "mcp",
|
|
43166
43175
|
versionInfo: {
|
|
43167
|
-
currentVersion: "0.11.
|
|
43176
|
+
currentVersion: "0.11.1"
|
|
43168
43177
|
}
|
|
43169
43178
|
});
|
|
43170
43179
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -43172,5 +43181,5 @@ export {
|
|
|
43172
43181
|
app
|
|
43173
43182
|
};
|
|
43174
43183
|
|
|
43175
|
-
//# debugId=
|
|
43184
|
+
//# debugId=86951FF2046F612464756E2164756E21
|
|
43176
43185
|
//# sourceMappingURL=mcp-server.js.map
|