@s2-dev/streamstore 0.11.1 → 0.11.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/README.md +5 -0
- package/bin/mcp-server.js +301 -75
- package/bin/mcp-server.js.map +22 -14
- package/dist/commonjs/funcs/recordsCheckTail.d.ts +18 -0
- package/dist/commonjs/funcs/recordsCheckTail.d.ts.map +1 -0
- package/dist/commonjs/funcs/recordsCheckTail.js +127 -0
- package/dist/commonjs/funcs/recordsCheckTail.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.d.ts +3 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -11
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js +65 -0
- package/dist/commonjs/mcp-server/tools/recordsCheckTail.js.map +1 -0
- package/dist/commonjs/models/components/accesstokeninfo.d.ts +1 -1
- package/dist/commonjs/models/components/checktailresponse.d.ts +33 -0
- package/dist/commonjs/models/components/checktailresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/checktailresponse.js +70 -0
- package/dist/commonjs/models/components/checktailresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/listaccesstokensresponse.d.ts +5 -5
- package/dist/commonjs/models/components/listaccesstokensresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/listaccesstokensresponse.js +4 -2
- package/dist/commonjs/models/components/listaccesstokensresponse.js.map +1 -1
- package/dist/commonjs/models/components/streamconfig.d.ts +3 -18
- package/dist/commonjs/models/components/streamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamconfig.js +3 -8
- package/dist/commonjs/models/components/streamconfig.js.map +1 -1
- package/dist/commonjs/models/components/streamposition.d.ts +43 -0
- package/dist/commonjs/models/components/streamposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/streamposition.js +80 -0
- package/dist/commonjs/models/components/streamposition.js.map +1 -0
- package/dist/commonjs/models/components/streamreconfiguration.d.ts +3 -18
- package/dist/commonjs/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamreconfiguration.js +3 -8
- package/dist/commonjs/models/components/streamreconfiguration.js.map +1 -1
- package/dist/commonjs/models/components/timestampingconfig.d.ts +38 -0
- package/dist/commonjs/models/components/timestampingconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingconfig.js +72 -0
- package/dist/commonjs/models/components/timestampingconfig.js.map +1 -0
- package/dist/commonjs/models/components/timestampingmode.d.ts +31 -0
- package/dist/commonjs/models/components/timestampingmode.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingmode.js +61 -0
- package/dist/commonjs/models/components/timestampingmode.js.map +1 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.d.ts +35 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.d.ts.map +1 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.js +72 -0
- package/dist/commonjs/models/components/timestampingreconfiguration.js.map +1 -0
- package/dist/commonjs/models/operations/checktail.d.ts +37 -0
- package/dist/commonjs/models/operations/checktail.d.ts.map +1 -0
- package/dist/commonjs/models/operations/checktail.js +75 -0
- package/dist/commonjs/models/operations/checktail.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/revokeaccesstoken.d.ts +1 -1
- package/dist/commonjs/sdk/records.d.ts +13 -0
- package/dist/commonjs/sdk/records.d.ts.map +1 -0
- package/dist/commonjs/sdk/records.js +22 -0
- package/dist/commonjs/sdk/records.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/recordsCheckTail.d.ts +18 -0
- package/dist/esm/funcs/recordsCheckTail.d.ts.map +1 -0
- package/dist/esm/funcs/recordsCheckTail.js +91 -0
- package/dist/esm/funcs/recordsCheckTail.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.d.ts +3 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -11
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/recordsCheckTail.d.ts +8 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.js +29 -0
- package/dist/esm/mcp-server/tools/recordsCheckTail.js.map +1 -0
- package/dist/esm/models/components/accesstokeninfo.d.ts +1 -1
- package/dist/esm/models/components/checktailresponse.d.ts +33 -0
- package/dist/esm/models/components/checktailresponse.d.ts.map +1 -0
- package/dist/esm/models/components/checktailresponse.js +32 -0
- package/dist/esm/models/components/checktailresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/listaccesstokensresponse.d.ts +5 -5
- package/dist/esm/models/components/listaccesstokensresponse.d.ts.map +1 -1
- package/dist/esm/models/components/listaccesstokensresponse.js +4 -2
- package/dist/esm/models/components/listaccesstokensresponse.js.map +1 -1
- package/dist/esm/models/components/streamconfig.d.ts +3 -18
- package/dist/esm/models/components/streamconfig.d.ts.map +1 -1
- package/dist/esm/models/components/streamconfig.js +3 -8
- package/dist/esm/models/components/streamconfig.js.map +1 -1
- package/dist/esm/models/components/streamposition.d.ts +43 -0
- package/dist/esm/models/components/streamposition.d.ts.map +1 -0
- package/dist/esm/models/components/streamposition.js +42 -0
- package/dist/esm/models/components/streamposition.js.map +1 -0
- package/dist/esm/models/components/streamreconfiguration.d.ts +3 -18
- package/dist/esm/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/esm/models/components/streamreconfiguration.js +3 -8
- package/dist/esm/models/components/streamreconfiguration.js.map +1 -1
- package/dist/esm/models/components/timestampingconfig.d.ts +38 -0
- package/dist/esm/models/components/timestampingconfig.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingconfig.js +34 -0
- package/dist/esm/models/components/timestampingconfig.js.map +1 -0
- package/dist/esm/models/components/timestampingmode.d.ts +31 -0
- package/dist/esm/models/components/timestampingmode.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingmode.js +25 -0
- package/dist/esm/models/components/timestampingmode.js.map +1 -0
- package/dist/esm/models/components/timestampingreconfiguration.d.ts +35 -0
- package/dist/esm/models/components/timestampingreconfiguration.d.ts.map +1 -0
- package/dist/esm/models/components/timestampingreconfiguration.js +34 -0
- package/dist/esm/models/components/timestampingreconfiguration.js.map +1 -0
- package/dist/esm/models/operations/checktail.d.ts +37 -0
- package/dist/esm/models/operations/checktail.d.ts.map +1 -0
- package/dist/esm/models/operations/checktail.js +37 -0
- package/dist/esm/models/operations/checktail.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/revokeaccesstoken.d.ts +1 -1
- package/dist/esm/sdk/records.d.ts +13 -0
- package/dist/esm/sdk/records.d.ts.map +1 -0
- package/dist/esm/sdk/records.js +18 -0
- package/dist/esm/sdk/records.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/records/README.md +90 -0
- package/docs/sdks/streams/README.md +12 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/recordsCheckTail.ts +184 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/recordsCheckTail.ts +38 -0
- package/src/models/components/accesstokeninfo.ts +1 -1
- package/src/models/components/checktailresponse.ts +75 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/listaccesstokensresponse.ts +9 -7
- package/src/models/components/streamconfig.ts +10 -26
- package/src/models/components/streamposition.ts +87 -0
- package/src/models/components/streamreconfiguration.ts +10 -26
- package/src/models/components/timestampingconfig.ts +81 -0
- package/src/models/components/timestampingmode.ts +34 -0
- package/src/models/components/timestampingreconfiguration.ts +80 -0
- package/src/models/operations/checktail.ts +80 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/revokeaccesstoken.ts +1 -1
- package/src/sdk/records.ts +28 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -320,6 +320,10 @@ run();
|
|
|
320
320
|
* [deleteBasin](docs/sdks/basins/README.md#deletebasin) - Delete a basin.
|
|
321
321
|
* [reconfigureBasin](docs/sdks/basins/README.md#reconfigurebasin) - Reconfigure a basin.
|
|
322
322
|
|
|
323
|
+
### [records](docs/sdks/records/README.md)
|
|
324
|
+
|
|
325
|
+
* [checkTail](docs/sdks/records/README.md#checktail) - Check the tail.
|
|
326
|
+
|
|
323
327
|
|
|
324
328
|
### [streams](docs/sdks/streams/README.md)
|
|
325
329
|
|
|
@@ -355,6 +359,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
355
359
|
- [`basinsGetBasinConfig`](docs/sdks/basins/README.md#getbasinconfig) - Get basin config.
|
|
356
360
|
- [`basinsListBasins`](docs/sdks/basins/README.md#listbasins) - List basins.
|
|
357
361
|
- [`basinsReconfigureBasin`](docs/sdks/basins/README.md#reconfigurebasin) - Reconfigure a basin.
|
|
362
|
+
- [`recordsCheckTail`](docs/sdks/records/README.md#checktail) - Check the tail.
|
|
358
363
|
- [`streamsCreateOrReconfigureStream`](docs/sdks/streams/README.md#createorreconfigurestream) - Create or reconfigure a stream.
|
|
359
364
|
- [`streamsDeleteStream`](docs/sdks/streams/README.md#deletestream) - Delete a stream.
|
|
360
365
|
- [`streamsGetStreamConfig`](docs/sdks/streams/README.md#getstreamconfig) - Get stream configuration.
|
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.
|
|
34177
|
-
genVersion: "2.
|
|
34178
|
-
userAgent: "speakeasy-sdk/typescript 0.11.
|
|
34176
|
+
sdkVersion: "0.11.2",
|
|
34177
|
+
genVersion: "2.597.9",
|
|
34178
|
+
userAgent: "speakeasy-sdk/typescript 0.11.2 2.597.9 1.0.0 @s2-dev/streamstore"
|
|
34179
34179
|
};
|
|
34180
34180
|
});
|
|
34181
34181
|
|
|
@@ -34800,26 +34800,22 @@ class ClientSDK {
|
|
|
34800
34800
|
}
|
|
34801
34801
|
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
|
|
34802
34802
|
headers.set("cookie", cookie);
|
|
34803
|
-
const userHeaders = new Headers(options?.fetchOptions?.headers);
|
|
34803
|
+
const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
|
|
34804
34804
|
for (const [k2, v2] of userHeaders) {
|
|
34805
34805
|
headers.set(k2, v2);
|
|
34806
34806
|
}
|
|
34807
34807
|
if (!isBrowserLike) {
|
|
34808
34808
|
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34809
34809
|
}
|
|
34810
|
-
|
|
34810
|
+
const fetchOptions = {
|
|
34811
|
+
...options?.fetchOptions,
|
|
34812
|
+
...options
|
|
34813
|
+
};
|
|
34811
34814
|
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
34812
34815
|
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
34813
|
-
|
|
34814
|
-
fetchOptions = { signal: timeoutSignal };
|
|
34815
|
-
} else {
|
|
34816
|
-
fetchOptions.signal = timeoutSignal;
|
|
34817
|
-
}
|
|
34816
|
+
fetchOptions.signal = timeoutSignal;
|
|
34818
34817
|
}
|
|
34819
34818
|
if (conf.body instanceof ReadableStream) {
|
|
34820
|
-
if (!fetchOptions) {
|
|
34821
|
-
fetchOptions = {};
|
|
34822
|
-
}
|
|
34823
34819
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
34824
34820
|
}
|
|
34825
34821
|
let input;
|
|
@@ -35787,6 +35783,42 @@ var init_storageclass = __esm(() => {
|
|
|
35787
35783
|
})(StorageClass$ ||= {});
|
|
35788
35784
|
});
|
|
35789
35785
|
|
|
35786
|
+
// src/models/components/timestampingmode.ts
|
|
35787
|
+
var TimestampingMode, TimestampingMode$inboundSchema, TimestampingMode$outboundSchema, TimestampingMode$;
|
|
35788
|
+
var init_timestampingmode = __esm(() => {
|
|
35789
|
+
init_lib();
|
|
35790
|
+
TimestampingMode = {
|
|
35791
|
+
ClientPrefer: "client-prefer",
|
|
35792
|
+
ClientRequire: "client-require",
|
|
35793
|
+
Arrival: "arrival"
|
|
35794
|
+
};
|
|
35795
|
+
TimestampingMode$inboundSchema = nativeEnumType(TimestampingMode);
|
|
35796
|
+
TimestampingMode$outboundSchema = TimestampingMode$inboundSchema;
|
|
35797
|
+
((TimestampingMode$) => {
|
|
35798
|
+
TimestampingMode$.inboundSchema = TimestampingMode$inboundSchema;
|
|
35799
|
+
TimestampingMode$.outboundSchema = TimestampingMode$outboundSchema;
|
|
35800
|
+
})(TimestampingMode$ ||= {});
|
|
35801
|
+
});
|
|
35802
|
+
|
|
35803
|
+
// src/models/components/timestampingconfig.ts
|
|
35804
|
+
var TimestampingConfig$inboundSchema, TimestampingConfig$outboundSchema, TimestampingConfig$;
|
|
35805
|
+
var init_timestampingconfig = __esm(() => {
|
|
35806
|
+
init_lib();
|
|
35807
|
+
init_timestampingmode();
|
|
35808
|
+
TimestampingConfig$inboundSchema = objectType({
|
|
35809
|
+
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
35810
|
+
uncapped: nullableType(booleanType()).optional()
|
|
35811
|
+
});
|
|
35812
|
+
TimestampingConfig$outboundSchema = objectType({
|
|
35813
|
+
mode: nullableType(TimestampingMode$outboundSchema).optional(),
|
|
35814
|
+
uncapped: nullableType(booleanType()).optional()
|
|
35815
|
+
});
|
|
35816
|
+
((TimestampingConfig$) => {
|
|
35817
|
+
TimestampingConfig$.inboundSchema = TimestampingConfig$inboundSchema;
|
|
35818
|
+
TimestampingConfig$.outboundSchema = TimestampingConfig$outboundSchema;
|
|
35819
|
+
})(TimestampingConfig$ ||= {});
|
|
35820
|
+
});
|
|
35821
|
+
|
|
35790
35822
|
// src/models/components/streamconfig.ts
|
|
35791
35823
|
var StreamConfig$inboundSchema, StreamConfig$outboundSchema, StreamConfig$;
|
|
35792
35824
|
var init_streamconfig = __esm(() => {
|
|
@@ -35794,30 +35826,25 @@ var init_streamconfig = __esm(() => {
|
|
|
35794
35826
|
init_primitives();
|
|
35795
35827
|
init_retentionpolicy();
|
|
35796
35828
|
init_storageclass();
|
|
35829
|
+
init_timestampingconfig();
|
|
35797
35830
|
StreamConfig$inboundSchema = objectType({
|
|
35798
|
-
require_client_timestamps: nullableType(booleanType()).optional(),
|
|
35799
35831
|
retention_policy: nullableType(RetentionPolicy$inboundSchema).optional(),
|
|
35800
35832
|
storage_class: nullableType(StorageClass$inboundSchema).optional(),
|
|
35801
|
-
|
|
35833
|
+
timestamping: TimestampingConfig$inboundSchema
|
|
35802
35834
|
}).transform((v2) => {
|
|
35803
35835
|
return remap(v2, {
|
|
35804
|
-
require_client_timestamps: "requireClientTimestamps",
|
|
35805
35836
|
retention_policy: "retentionPolicy",
|
|
35806
|
-
storage_class: "storageClass"
|
|
35807
|
-
uncapped_client_timestamps: "uncappedClientTimestamps"
|
|
35837
|
+
storage_class: "storageClass"
|
|
35808
35838
|
});
|
|
35809
35839
|
});
|
|
35810
35840
|
StreamConfig$outboundSchema = objectType({
|
|
35811
|
-
requireClientTimestamps: nullableType(booleanType()).optional(),
|
|
35812
35841
|
retentionPolicy: nullableType(RetentionPolicy$outboundSchema).optional(),
|
|
35813
35842
|
storageClass: nullableType(StorageClass$outboundSchema).optional(),
|
|
35814
|
-
|
|
35843
|
+
timestamping: TimestampingConfig$outboundSchema
|
|
35815
35844
|
}).transform((v2) => {
|
|
35816
35845
|
return remap(v2, {
|
|
35817
|
-
requireClientTimestamps: "require_client_timestamps",
|
|
35818
35846
|
retentionPolicy: "retention_policy",
|
|
35819
|
-
storageClass: "storage_class"
|
|
35820
|
-
uncappedClientTimestamps: "uncapped_client_timestamps"
|
|
35847
|
+
storageClass: "storage_class"
|
|
35821
35848
|
});
|
|
35822
35849
|
});
|
|
35823
35850
|
((StreamConfig$) => {
|
|
@@ -35914,6 +35941,25 @@ var init_basininfo = __esm(() => {
|
|
|
35914
35941
|
})(BasinInfo$ ||= {});
|
|
35915
35942
|
});
|
|
35916
35943
|
|
|
35944
|
+
// src/models/components/timestampingreconfiguration.ts
|
|
35945
|
+
var TimestampingReconfiguration$inboundSchema, TimestampingReconfiguration$outboundSchema, TimestampingReconfiguration$;
|
|
35946
|
+
var init_timestampingreconfiguration = __esm(() => {
|
|
35947
|
+
init_lib();
|
|
35948
|
+
init_timestampingmode();
|
|
35949
|
+
TimestampingReconfiguration$inboundSchema = objectType({
|
|
35950
|
+
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
35951
|
+
uncapped: nullableType(booleanType()).optional()
|
|
35952
|
+
});
|
|
35953
|
+
TimestampingReconfiguration$outboundSchema = objectType({
|
|
35954
|
+
mode: nullableType(TimestampingMode$outboundSchema).optional(),
|
|
35955
|
+
uncapped: nullableType(booleanType()).optional()
|
|
35956
|
+
});
|
|
35957
|
+
((TimestampingReconfiguration$) => {
|
|
35958
|
+
TimestampingReconfiguration$.inboundSchema = TimestampingReconfiguration$inboundSchema;
|
|
35959
|
+
TimestampingReconfiguration$.outboundSchema = TimestampingReconfiguration$outboundSchema;
|
|
35960
|
+
})(TimestampingReconfiguration$ ||= {});
|
|
35961
|
+
});
|
|
35962
|
+
|
|
35917
35963
|
// src/models/components/streamreconfiguration.ts
|
|
35918
35964
|
var StreamReconfiguration$inboundSchema, StreamReconfiguration$outboundSchema, StreamReconfiguration$;
|
|
35919
35965
|
var init_streamreconfiguration = __esm(() => {
|
|
@@ -35921,30 +35967,25 @@ var init_streamreconfiguration = __esm(() => {
|
|
|
35921
35967
|
init_primitives();
|
|
35922
35968
|
init_retentionpolicy();
|
|
35923
35969
|
init_storageclass();
|
|
35970
|
+
init_timestampingreconfiguration();
|
|
35924
35971
|
StreamReconfiguration$inboundSchema = objectType({
|
|
35925
|
-
require_client_timestamps: nullableType(booleanType()).optional(),
|
|
35926
35972
|
retention_policy: nullableType(RetentionPolicy$inboundSchema).optional(),
|
|
35927
35973
|
storage_class: nullableType(StorageClass$inboundSchema).optional(),
|
|
35928
|
-
|
|
35974
|
+
timestamping: TimestampingReconfiguration$inboundSchema
|
|
35929
35975
|
}).transform((v2) => {
|
|
35930
35976
|
return remap(v2, {
|
|
35931
|
-
require_client_timestamps: "requireClientTimestamps",
|
|
35932
35977
|
retention_policy: "retentionPolicy",
|
|
35933
|
-
storage_class: "storageClass"
|
|
35934
|
-
uncapped_client_timestamps: "uncappedClientTimestamps"
|
|
35978
|
+
storage_class: "storageClass"
|
|
35935
35979
|
});
|
|
35936
35980
|
});
|
|
35937
35981
|
StreamReconfiguration$outboundSchema = objectType({
|
|
35938
|
-
requireClientTimestamps: nullableType(booleanType()).optional(),
|
|
35939
35982
|
retentionPolicy: nullableType(RetentionPolicy$outboundSchema).optional(),
|
|
35940
35983
|
storageClass: nullableType(StorageClass$outboundSchema).optional(),
|
|
35941
|
-
|
|
35984
|
+
timestamping: TimestampingReconfiguration$outboundSchema
|
|
35942
35985
|
}).transform((v2) => {
|
|
35943
35986
|
return remap(v2, {
|
|
35944
|
-
requireClientTimestamps: "require_client_timestamps",
|
|
35945
35987
|
retentionPolicy: "retention_policy",
|
|
35946
|
-
storageClass: "storage_class"
|
|
35947
|
-
uncappedClientTimestamps: "uncapped_client_timestamps"
|
|
35988
|
+
storageClass: "storage_class"
|
|
35948
35989
|
});
|
|
35949
35990
|
});
|
|
35950
35991
|
((StreamReconfiguration$) => {
|
|
@@ -35987,6 +36028,50 @@ var init_basinreconfiguration = __esm(() => {
|
|
|
35987
36028
|
})(BasinReconfiguration$ ||= {});
|
|
35988
36029
|
});
|
|
35989
36030
|
|
|
36031
|
+
// src/models/components/streamposition.ts
|
|
36032
|
+
var StreamPosition$inboundSchema, StreamPosition$outboundSchema, StreamPosition$;
|
|
36033
|
+
var init_streamposition = __esm(() => {
|
|
36034
|
+
init_lib();
|
|
36035
|
+
init_primitives();
|
|
36036
|
+
StreamPosition$inboundSchema = objectType({
|
|
36037
|
+
seq_num: numberType().int(),
|
|
36038
|
+
timestamp: numberType().int()
|
|
36039
|
+
}).transform((v2) => {
|
|
36040
|
+
return remap(v2, {
|
|
36041
|
+
seq_num: "seqNum"
|
|
36042
|
+
});
|
|
36043
|
+
});
|
|
36044
|
+
StreamPosition$outboundSchema = objectType({
|
|
36045
|
+
seqNum: numberType().int(),
|
|
36046
|
+
timestamp: numberType().int()
|
|
36047
|
+
}).transform((v2) => {
|
|
36048
|
+
return remap(v2, {
|
|
36049
|
+
seqNum: "seq_num"
|
|
36050
|
+
});
|
|
36051
|
+
});
|
|
36052
|
+
((StreamPosition$) => {
|
|
36053
|
+
StreamPosition$.inboundSchema = StreamPosition$inboundSchema;
|
|
36054
|
+
StreamPosition$.outboundSchema = StreamPosition$outboundSchema;
|
|
36055
|
+
})(StreamPosition$ ||= {});
|
|
36056
|
+
});
|
|
36057
|
+
|
|
36058
|
+
// src/models/components/checktailresponse.ts
|
|
36059
|
+
var CheckTailResponse$inboundSchema, CheckTailResponse$outboundSchema, CheckTailResponse$;
|
|
36060
|
+
var init_checktailresponse = __esm(() => {
|
|
36061
|
+
init_lib();
|
|
36062
|
+
init_streamposition();
|
|
36063
|
+
CheckTailResponse$inboundSchema = objectType({
|
|
36064
|
+
tail: StreamPosition$inboundSchema
|
|
36065
|
+
});
|
|
36066
|
+
CheckTailResponse$outboundSchema = objectType({
|
|
36067
|
+
tail: StreamPosition$outboundSchema
|
|
36068
|
+
});
|
|
36069
|
+
((CheckTailResponse$) => {
|
|
36070
|
+
CheckTailResponse$.inboundSchema = CheckTailResponse$inboundSchema;
|
|
36071
|
+
CheckTailResponse$.outboundSchema = CheckTailResponse$outboundSchema;
|
|
36072
|
+
})(CheckTailResponse$ ||= {});
|
|
36073
|
+
});
|
|
36074
|
+
|
|
35990
36075
|
// src/models/components/createbasinrequest.ts
|
|
35991
36076
|
var Scope$inboundSchema, Scope$outboundSchema, Scope$, CreateBasinRequest$inboundSchema, CreateBasinRequest$outboundSchema, CreateBasinRequest$;
|
|
35992
36077
|
var init_createbasinrequest = __esm(() => {
|
|
@@ -36045,18 +36130,20 @@ var init_listaccesstokensresponse = __esm(() => {
|
|
|
36045
36130
|
init_primitives();
|
|
36046
36131
|
init_accesstokeninfo();
|
|
36047
36132
|
ListAccessTokensResponse$inboundSchema = objectType({
|
|
36048
|
-
|
|
36049
|
-
|
|
36133
|
+
access_tokens: arrayType(AccessTokenInfo$inboundSchema),
|
|
36134
|
+
has_more: booleanType()
|
|
36050
36135
|
}).transform((v2) => {
|
|
36051
36136
|
return remap(v2, {
|
|
36137
|
+
access_tokens: "accessTokens",
|
|
36052
36138
|
has_more: "hasMore"
|
|
36053
36139
|
});
|
|
36054
36140
|
});
|
|
36055
36141
|
ListAccessTokensResponse$outboundSchema = objectType({
|
|
36056
|
-
|
|
36057
|
-
|
|
36142
|
+
accessTokens: arrayType(AccessTokenInfo$outboundSchema),
|
|
36143
|
+
hasMore: booleanType()
|
|
36058
36144
|
}).transform((v2) => {
|
|
36059
36145
|
return remap(v2, {
|
|
36146
|
+
accessTokens: "access_tokens",
|
|
36060
36147
|
hasMore: "has_more"
|
|
36061
36148
|
});
|
|
36062
36149
|
});
|
|
@@ -36187,6 +36274,7 @@ var init_components = __esm(() => {
|
|
|
36187
36274
|
init_basinreconfiguration();
|
|
36188
36275
|
init_basinscope();
|
|
36189
36276
|
init_basinstate();
|
|
36277
|
+
init_checktailresponse();
|
|
36190
36278
|
init_createbasinrequest();
|
|
36191
36279
|
init_issueaccesstokenresponse();
|
|
36192
36280
|
init_listaccesstokensresponse();
|
|
@@ -36201,7 +36289,11 @@ var init_components = __esm(() => {
|
|
|
36201
36289
|
init_storageclass();
|
|
36202
36290
|
init_streamconfig();
|
|
36203
36291
|
init_streaminfo();
|
|
36292
|
+
init_streamposition();
|
|
36204
36293
|
init_streamreconfiguration();
|
|
36294
|
+
init_timestampingconfig();
|
|
36295
|
+
init_timestampingmode();
|
|
36296
|
+
init_timestampingreconfiguration();
|
|
36205
36297
|
});
|
|
36206
36298
|
|
|
36207
36299
|
// src/models/errors/errorresponse.ts
|
|
@@ -36404,6 +36496,25 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
|
|
|
36404
36496
|
};
|
|
36405
36497
|
});
|
|
36406
36498
|
|
|
36499
|
+
// src/models/operations/checktail.ts
|
|
36500
|
+
var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
|
|
36501
|
+
var init_checktail = __esm(() => {
|
|
36502
|
+
init_lib();
|
|
36503
|
+
CheckTailServerList = [
|
|
36504
|
+
"https://{basin}.b.aws.s2.dev/v1"
|
|
36505
|
+
];
|
|
36506
|
+
CheckTailRequest$inboundSchema = objectType({
|
|
36507
|
+
stream: stringType()
|
|
36508
|
+
});
|
|
36509
|
+
CheckTailRequest$outboundSchema = objectType({
|
|
36510
|
+
stream: stringType()
|
|
36511
|
+
});
|
|
36512
|
+
((CheckTailRequest$) => {
|
|
36513
|
+
CheckTailRequest$.inboundSchema = CheckTailRequest$inboundSchema;
|
|
36514
|
+
CheckTailRequest$.outboundSchema = CheckTailRequest$outboundSchema;
|
|
36515
|
+
})(CheckTailRequest$ ||= {});
|
|
36516
|
+
});
|
|
36517
|
+
|
|
36407
36518
|
// src/models/operations/createorreconfigurebasin.ts
|
|
36408
36519
|
var CreateOrReconfigureBasinRequest$inboundSchema, CreateOrReconfigureBasinRequest$outboundSchema, CreateOrReconfigureBasinRequest$;
|
|
36409
36520
|
var init_createorreconfigurebasin = __esm(() => {
|
|
@@ -36746,6 +36857,7 @@ var init_revokeaccesstoken = __esm(() => {
|
|
|
36746
36857
|
|
|
36747
36858
|
// src/models/operations/index.ts
|
|
36748
36859
|
var init_operations = __esm(() => {
|
|
36860
|
+
init_checktail();
|
|
36749
36861
|
init_createorreconfigurebasin();
|
|
36750
36862
|
init_createorreconfigurestream();
|
|
36751
36863
|
init_deletebasin();
|
|
@@ -41347,11 +41459,123 @@ var init_basinsReconfigureBasin2 = __esm(() => {
|
|
|
41347
41459
|
};
|
|
41348
41460
|
});
|
|
41349
41461
|
|
|
41350
|
-
// src/funcs/
|
|
41351
|
-
function
|
|
41462
|
+
// src/funcs/recordsCheckTail.ts
|
|
41463
|
+
function recordsCheckTail(client, request, options) {
|
|
41352
41464
|
return new APIPromise($do9(client, request, options));
|
|
41353
41465
|
}
|
|
41354
41466
|
async function $do9(client, request, options) {
|
|
41467
|
+
const parsed = safeParse(request, (value2) => CheckTailRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41468
|
+
if (!parsed.ok) {
|
|
41469
|
+
return [parsed, { status: "invalid" }];
|
|
41470
|
+
}
|
|
41471
|
+
const payload = parsed.value;
|
|
41472
|
+
const body = null;
|
|
41473
|
+
const baseURL = options?.serverURL || pathToFunc(CheckTailServerList[0], { charEncoding: "percent" })({
|
|
41474
|
+
basin: ""
|
|
41475
|
+
});
|
|
41476
|
+
const pathParams = {
|
|
41477
|
+
stream: encodeSimple("stream", payload.stream, {
|
|
41478
|
+
explode: false,
|
|
41479
|
+
charEncoding: "percent"
|
|
41480
|
+
})
|
|
41481
|
+
};
|
|
41482
|
+
const path = pathToFunc("/streams/{stream}/records/tail")(pathParams);
|
|
41483
|
+
const headers = new Headers(compactMap({
|
|
41484
|
+
Accept: "application/json"
|
|
41485
|
+
}));
|
|
41486
|
+
const secConfig = await extractSecurity(client._options.accessToken);
|
|
41487
|
+
const securityInput = secConfig == null ? {} : { accessToken: secConfig };
|
|
41488
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
41489
|
+
const context = {
|
|
41490
|
+
baseURL: baseURL ?? "",
|
|
41491
|
+
operationID: "check_tail",
|
|
41492
|
+
oAuth2Scopes: [],
|
|
41493
|
+
resolvedSecurity: requestSecurity,
|
|
41494
|
+
securitySource: client._options.accessToken,
|
|
41495
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
41496
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
41497
|
+
};
|
|
41498
|
+
const requestRes = client._createRequest(context, {
|
|
41499
|
+
security: requestSecurity,
|
|
41500
|
+
method: "GET",
|
|
41501
|
+
baseURL,
|
|
41502
|
+
path,
|
|
41503
|
+
headers,
|
|
41504
|
+
body,
|
|
41505
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
41506
|
+
}, options);
|
|
41507
|
+
if (!requestRes.ok) {
|
|
41508
|
+
return [requestRes, { status: "invalid" }];
|
|
41509
|
+
}
|
|
41510
|
+
const req = requestRes.value;
|
|
41511
|
+
const doResult = await client._do(req, {
|
|
41512
|
+
context,
|
|
41513
|
+
errorCodes: ["400", "401", "404", "499", "4XX", "500", "503", "504", "5XX"],
|
|
41514
|
+
retryConfig: context.retryConfig,
|
|
41515
|
+
retryCodes: context.retryCodes
|
|
41516
|
+
});
|
|
41517
|
+
if (!doResult.ok) {
|
|
41518
|
+
return [doResult, { status: "request-error", request: req }];
|
|
41519
|
+
}
|
|
41520
|
+
const response = doResult.value;
|
|
41521
|
+
const responseFields = {
|
|
41522
|
+
HttpMeta: { Response: response, Request: req }
|
|
41523
|
+
};
|
|
41524
|
+
const [result] = await match(json(200, CheckTailResponse$inboundSchema), jsonErr([400, 401, 404], ErrorResponse$inboundSchema), jsonErr(499, RetryableError$inboundSchema), jsonErr([500, 503, 504], RetryableError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
41525
|
+
if (!result.ok) {
|
|
41526
|
+
return [result, { status: "complete", request: req, response }];
|
|
41527
|
+
}
|
|
41528
|
+
return [result, { status: "complete", request: req, response }];
|
|
41529
|
+
}
|
|
41530
|
+
var init_recordsCheckTail = __esm(() => {
|
|
41531
|
+
init_encodings();
|
|
41532
|
+
init_matchers();
|
|
41533
|
+
init_primitives();
|
|
41534
|
+
init_schemas();
|
|
41535
|
+
init_security();
|
|
41536
|
+
init_url();
|
|
41537
|
+
init_components();
|
|
41538
|
+
init_errors();
|
|
41539
|
+
init_checktail();
|
|
41540
|
+
init_operations();
|
|
41541
|
+
init_async();
|
|
41542
|
+
});
|
|
41543
|
+
|
|
41544
|
+
// src/mcp-server/tools/recordsCheckTail.ts
|
|
41545
|
+
var args9, tool$recordsCheckTail;
|
|
41546
|
+
var init_recordsCheckTail2 = __esm(() => {
|
|
41547
|
+
init_recordsCheckTail();
|
|
41548
|
+
init_operations();
|
|
41549
|
+
init_tools();
|
|
41550
|
+
args9 = {
|
|
41551
|
+
request: CheckTailRequest$inboundSchema
|
|
41552
|
+
};
|
|
41553
|
+
tool$recordsCheckTail = {
|
|
41554
|
+
name: "records-check-tail",
|
|
41555
|
+
description: `Check the tail.
|
|
41556
|
+
|
|
41557
|
+
Check the tail of a stream.`,
|
|
41558
|
+
scopes: ["read"],
|
|
41559
|
+
args: args9,
|
|
41560
|
+
tool: async (client, args10, ctx) => {
|
|
41561
|
+
const [result, apiCall] = await recordsCheckTail(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41562
|
+
if (!result.ok) {
|
|
41563
|
+
return {
|
|
41564
|
+
content: [{ type: "text", text: result.error.message }],
|
|
41565
|
+
isError: true
|
|
41566
|
+
};
|
|
41567
|
+
}
|
|
41568
|
+
const value2 = result.value;
|
|
41569
|
+
return formatResult(value2, apiCall);
|
|
41570
|
+
}
|
|
41571
|
+
};
|
|
41572
|
+
});
|
|
41573
|
+
|
|
41574
|
+
// src/funcs/streamsCreateOrReconfigureStream.ts
|
|
41575
|
+
function streamsCreateOrReconfigureStream(client, request, options) {
|
|
41576
|
+
return new APIPromise($do10(client, request, options));
|
|
41577
|
+
}
|
|
41578
|
+
async function $do10(client, request, options) {
|
|
41355
41579
|
const parsed = safeParse(request, (value2) => CreateOrReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41356
41580
|
if (!parsed.ok) {
|
|
41357
41581
|
return [parsed, { status: "invalid" }];
|
|
@@ -41434,21 +41658,21 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
|
|
|
41434
41658
|
});
|
|
41435
41659
|
|
|
41436
41660
|
// src/mcp-server/tools/streamsCreateOrReconfigureStream.ts
|
|
41437
|
-
var
|
|
41661
|
+
var args10, tool$streamsCreateOrReconfigureStream;
|
|
41438
41662
|
var init_streamsCreateOrReconfigureStream2 = __esm(() => {
|
|
41439
41663
|
init_streamsCreateOrReconfigureStream();
|
|
41440
41664
|
init_operations();
|
|
41441
41665
|
init_tools();
|
|
41442
|
-
|
|
41666
|
+
args10 = {
|
|
41443
41667
|
request: CreateOrReconfigureStreamRequest$inboundSchema
|
|
41444
41668
|
};
|
|
41445
41669
|
tool$streamsCreateOrReconfigureStream = {
|
|
41446
41670
|
name: "streams-create-or-reconfigure-stream",
|
|
41447
41671
|
description: `Create or reconfigure a stream.`,
|
|
41448
41672
|
scopes: ["write"],
|
|
41449
|
-
args:
|
|
41450
|
-
tool: async (client,
|
|
41451
|
-
const [result, apiCall] = await streamsCreateOrReconfigureStream(client,
|
|
41673
|
+
args: args10,
|
|
41674
|
+
tool: async (client, args11, ctx) => {
|
|
41675
|
+
const [result, apiCall] = await streamsCreateOrReconfigureStream(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41452
41676
|
if (!result.ok) {
|
|
41453
41677
|
return {
|
|
41454
41678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41463,9 +41687,9 @@ var init_streamsCreateOrReconfigureStream2 = __esm(() => {
|
|
|
41463
41687
|
|
|
41464
41688
|
// src/funcs/streamsDeleteStream.ts
|
|
41465
41689
|
function streamsDeleteStream(client, request, options) {
|
|
41466
|
-
return new APIPromise($
|
|
41690
|
+
return new APIPromise($do11(client, request, options));
|
|
41467
41691
|
}
|
|
41468
|
-
async function $
|
|
41692
|
+
async function $do11(client, request, options) {
|
|
41469
41693
|
const parsed = safeParse(request, (value2) => DeleteStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41470
41694
|
if (!parsed.ok) {
|
|
41471
41695
|
return [parsed, { status: "invalid" }];
|
|
@@ -41544,21 +41768,21 @@ var init_streamsDeleteStream = __esm(() => {
|
|
|
41544
41768
|
});
|
|
41545
41769
|
|
|
41546
41770
|
// src/mcp-server/tools/streamsDeleteStream.ts
|
|
41547
|
-
var
|
|
41771
|
+
var args11, tool$streamsDeleteStream;
|
|
41548
41772
|
var init_streamsDeleteStream2 = __esm(() => {
|
|
41549
41773
|
init_streamsDeleteStream();
|
|
41550
41774
|
init_operations();
|
|
41551
41775
|
init_tools();
|
|
41552
|
-
|
|
41776
|
+
args11 = {
|
|
41553
41777
|
request: DeleteStreamRequest$inboundSchema
|
|
41554
41778
|
};
|
|
41555
41779
|
tool$streamsDeleteStream = {
|
|
41556
41780
|
name: "streams-delete-stream",
|
|
41557
41781
|
description: `Delete a stream.`,
|
|
41558
41782
|
scopes: ["write"],
|
|
41559
|
-
args:
|
|
41560
|
-
tool: async (client,
|
|
41561
|
-
const [result, apiCall] = await streamsDeleteStream(client,
|
|
41783
|
+
args: args11,
|
|
41784
|
+
tool: async (client, args12, ctx) => {
|
|
41785
|
+
const [result, apiCall] = await streamsDeleteStream(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41562
41786
|
if (!result.ok) {
|
|
41563
41787
|
return {
|
|
41564
41788
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41572,9 +41796,9 @@ var init_streamsDeleteStream2 = __esm(() => {
|
|
|
41572
41796
|
|
|
41573
41797
|
// src/funcs/streamsGetStreamConfig.ts
|
|
41574
41798
|
function streamsGetStreamConfig(client, request, options) {
|
|
41575
|
-
return new APIPromise($
|
|
41799
|
+
return new APIPromise($do12(client, request, options));
|
|
41576
41800
|
}
|
|
41577
|
-
async function $
|
|
41801
|
+
async function $do12(client, request, options) {
|
|
41578
41802
|
const parsed = safeParse(request, (value2) => GetStreamConfigRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41579
41803
|
if (!parsed.ok) {
|
|
41580
41804
|
return [parsed, { status: "invalid" }];
|
|
@@ -41653,21 +41877,21 @@ var init_streamsGetStreamConfig = __esm(() => {
|
|
|
41653
41877
|
});
|
|
41654
41878
|
|
|
41655
41879
|
// src/mcp-server/tools/streamsGetStreamConfig.ts
|
|
41656
|
-
var
|
|
41880
|
+
var args12, tool$streamsGetStreamConfig;
|
|
41657
41881
|
var init_streamsGetStreamConfig2 = __esm(() => {
|
|
41658
41882
|
init_streamsGetStreamConfig();
|
|
41659
41883
|
init_operations();
|
|
41660
41884
|
init_tools();
|
|
41661
|
-
|
|
41885
|
+
args12 = {
|
|
41662
41886
|
request: GetStreamConfigRequest$inboundSchema
|
|
41663
41887
|
};
|
|
41664
41888
|
tool$streamsGetStreamConfig = {
|
|
41665
41889
|
name: "streams-get-stream-config",
|
|
41666
41890
|
description: `Get stream configuration.`,
|
|
41667
41891
|
scopes: ["read"],
|
|
41668
|
-
args:
|
|
41669
|
-
tool: async (client,
|
|
41670
|
-
const [result, apiCall] = await streamsGetStreamConfig(client,
|
|
41892
|
+
args: args12,
|
|
41893
|
+
tool: async (client, args13, ctx) => {
|
|
41894
|
+
const [result, apiCall] = await streamsGetStreamConfig(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41671
41895
|
if (!result.ok) {
|
|
41672
41896
|
return {
|
|
41673
41897
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41682,9 +41906,9 @@ var init_streamsGetStreamConfig2 = __esm(() => {
|
|
|
41682
41906
|
|
|
41683
41907
|
// src/funcs/streamsListStreams.ts
|
|
41684
41908
|
function streamsListStreams(client, request, options) {
|
|
41685
|
-
return new APIPromise($
|
|
41909
|
+
return new APIPromise($do13(client, request, options));
|
|
41686
41910
|
}
|
|
41687
|
-
async function $
|
|
41911
|
+
async function $do13(client, request, options) {
|
|
41688
41912
|
const parsed = safeParse(request, (value2) => ListStreamsRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41689
41913
|
if (!parsed.ok) {
|
|
41690
41914
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -41786,21 +42010,21 @@ var init_streamsListStreams = __esm(() => {
|
|
|
41786
42010
|
});
|
|
41787
42011
|
|
|
41788
42012
|
// src/mcp-server/tools/streamsListStreams.ts
|
|
41789
|
-
var
|
|
42013
|
+
var args13, tool$streamsListStreams;
|
|
41790
42014
|
var init_streamsListStreams2 = __esm(() => {
|
|
41791
42015
|
init_streamsListStreams();
|
|
41792
42016
|
init_operations();
|
|
41793
42017
|
init_tools();
|
|
41794
|
-
|
|
42018
|
+
args13 = {
|
|
41795
42019
|
request: ListStreamsRequest$inboundSchema
|
|
41796
42020
|
};
|
|
41797
42021
|
tool$streamsListStreams = {
|
|
41798
42022
|
name: "streams-list-streams",
|
|
41799
42023
|
description: `List streams.`,
|
|
41800
42024
|
scopes: ["read"],
|
|
41801
|
-
args:
|
|
41802
|
-
tool: async (client,
|
|
41803
|
-
const [result, apiCall] = await streamsListStreams(client,
|
|
42025
|
+
args: args13,
|
|
42026
|
+
tool: async (client, args14, ctx) => {
|
|
42027
|
+
const [result, apiCall] = await streamsListStreams(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41804
42028
|
if (!result.ok) {
|
|
41805
42029
|
return {
|
|
41806
42030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41815,9 +42039,9 @@ var init_streamsListStreams2 = __esm(() => {
|
|
|
41815
42039
|
|
|
41816
42040
|
// src/funcs/streamsReconfigureStream.ts
|
|
41817
42041
|
function streamsReconfigureStream(client, request, options) {
|
|
41818
|
-
return new APIPromise($
|
|
42042
|
+
return new APIPromise($do14(client, request, options));
|
|
41819
42043
|
}
|
|
41820
|
-
async function $
|
|
42044
|
+
async function $do14(client, request, options) {
|
|
41821
42045
|
const parsed = safeParse(request, (value2) => ReconfigureStreamRequest$outboundSchema.parse(value2), "Input validation failed");
|
|
41822
42046
|
if (!parsed.ok) {
|
|
41823
42047
|
return [parsed, { status: "invalid" }];
|
|
@@ -41899,21 +42123,21 @@ var init_streamsReconfigureStream = __esm(() => {
|
|
|
41899
42123
|
});
|
|
41900
42124
|
|
|
41901
42125
|
// src/mcp-server/tools/streamsReconfigureStream.ts
|
|
41902
|
-
var
|
|
42126
|
+
var args14, tool$streamsReconfigureStream;
|
|
41903
42127
|
var init_streamsReconfigureStream2 = __esm(() => {
|
|
41904
42128
|
init_streamsReconfigureStream();
|
|
41905
42129
|
init_operations();
|
|
41906
42130
|
init_tools();
|
|
41907
|
-
|
|
42131
|
+
args14 = {
|
|
41908
42132
|
request: ReconfigureStreamRequest$inboundSchema
|
|
41909
42133
|
};
|
|
41910
42134
|
tool$streamsReconfigureStream = {
|
|
41911
42135
|
name: "streams-reconfigure-stream",
|
|
41912
42136
|
description: `Reconfigure a stream.`,
|
|
41913
42137
|
scopes: ["write"],
|
|
41914
|
-
args:
|
|
41915
|
-
tool: async (client,
|
|
41916
|
-
const [result, apiCall] = await streamsReconfigureStream(client,
|
|
42138
|
+
args: args14,
|
|
42139
|
+
tool: async (client, args15, ctx) => {
|
|
42140
|
+
const [result, apiCall] = await streamsReconfigureStream(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
41917
42141
|
if (!result.ok) {
|
|
41918
42142
|
return {
|
|
41919
42143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -41930,7 +42154,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
41930
42154
|
function createMCPServer(deps) {
|
|
41931
42155
|
const server = new McpServer({
|
|
41932
42156
|
name: "S2",
|
|
41933
|
-
version: "0.11.
|
|
42157
|
+
version: "0.11.2"
|
|
41934
42158
|
});
|
|
41935
42159
|
const client = new S2Core({
|
|
41936
42160
|
accessToken: deps.accessToken,
|
|
@@ -41957,6 +42181,7 @@ function createMCPServer(deps) {
|
|
|
41957
42181
|
tool(tool$streamsCreateOrReconfigureStream);
|
|
41958
42182
|
tool(tool$streamsDeleteStream);
|
|
41959
42183
|
tool(tool$streamsReconfigureStream);
|
|
42184
|
+
tool(tool$recordsCheckTail);
|
|
41960
42185
|
return server;
|
|
41961
42186
|
}
|
|
41962
42187
|
var init_server2 = __esm(() => {
|
|
@@ -41972,6 +42197,7 @@ var init_server2 = __esm(() => {
|
|
|
41972
42197
|
init_basinsGetBasinConfig2();
|
|
41973
42198
|
init_basinsListBasins2();
|
|
41974
42199
|
init_basinsReconfigureBasin2();
|
|
42200
|
+
init_recordsCheckTail2();
|
|
41975
42201
|
init_streamsCreateOrReconfigureStream2();
|
|
41976
42202
|
init_streamsDeleteStream2();
|
|
41977
42203
|
init_streamsGetStreamConfig2();
|
|
@@ -43173,7 +43399,7 @@ var routes = rn({
|
|
|
43173
43399
|
var app = Ve(routes, {
|
|
43174
43400
|
name: "mcp",
|
|
43175
43401
|
versionInfo: {
|
|
43176
|
-
currentVersion: "0.11.
|
|
43402
|
+
currentVersion: "0.11.2"
|
|
43177
43403
|
}
|
|
43178
43404
|
});
|
|
43179
43405
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -43181,5 +43407,5 @@ export {
|
|
|
43181
43407
|
app
|
|
43182
43408
|
};
|
|
43183
43409
|
|
|
43184
|
-
//# debugId=
|
|
43410
|
+
//# debugId=4930F833836E7A7764756E2164756E21
|
|
43185
43411
|
//# sourceMappingURL=mcp-server.js.map
|