@s2-dev/streamstore 0.8.0 → 0.8.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/bin/mcp-server.js +16 -14
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/basinconfig.d.ts +2 -2
- package/dist/commonjs/models/components/basinconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/basinconfig.js +2 -2
- package/dist/commonjs/models/components/basinconfig.js.map +1 -1
- package/dist/commonjs/models/components/readresponse.d.ts +4 -2
- package/dist/commonjs/models/components/readresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/readresponse.js +4 -2
- package/dist/commonjs/models/components/readresponse.js.map +1 -1
- package/dist/commonjs/models/components/streamconfig.d.ts +2 -2
- package/dist/commonjs/models/components/streamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamconfig.js +2 -2
- package/dist/commonjs/models/components/streamconfig.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/basinconfig.d.ts +2 -2
- package/dist/esm/models/components/basinconfig.d.ts.map +1 -1
- package/dist/esm/models/components/basinconfig.js +2 -2
- package/dist/esm/models/components/basinconfig.js.map +1 -1
- package/dist/esm/models/components/readresponse.d.ts +4 -2
- package/dist/esm/models/components/readresponse.d.ts.map +1 -1
- package/dist/esm/models/components/readresponse.js +4 -2
- package/dist/esm/models/components/readresponse.js.map +1 -1
- package/dist/esm/models/components/streamconfig.d.ts +2 -2
- package/dist/esm/models/components/streamconfig.d.ts.map +1 -1
- package/dist/esm/models/components/streamconfig.js +2 -2
- package/dist/esm/models/components/streamconfig.js.map +1 -1
- package/docs/sdks/account/README.md +2 -6
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/basinconfig.ts +4 -4
- package/src/models/components/readresponse.ts +9 -5
- package/src/models/components/streamconfig.ts +4 -4
package/src/mcp-server/server.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type BasinConfig = {
|
|
|
24
24
|
* @remarks
|
|
25
25
|
* using the default stream configuration.
|
|
26
26
|
*/
|
|
27
|
-
createStreamOnAppend
|
|
27
|
+
createStreamOnAppend?: boolean | undefined;
|
|
28
28
|
defaultStreamConfig?: StreamConfig | null | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ export const BasinConfig$inboundSchema: z.ZodType<
|
|
|
34
34
|
z.ZodTypeDef,
|
|
35
35
|
unknown
|
|
36
36
|
> = z.object({
|
|
37
|
-
create_stream_on_append: z.boolean(),
|
|
37
|
+
create_stream_on_append: z.boolean().optional(),
|
|
38
38
|
default_stream_config: z.nullable(StreamConfig$inboundSchema).optional(),
|
|
39
39
|
}).transform((v) => {
|
|
40
40
|
return remap$(v, {
|
|
@@ -45,7 +45,7 @@ export const BasinConfig$inboundSchema: z.ZodType<
|
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
47
|
export type BasinConfig$Outbound = {
|
|
48
|
-
create_stream_on_append
|
|
48
|
+
create_stream_on_append?: boolean | undefined;
|
|
49
49
|
default_stream_config?: StreamConfig$Outbound | null | undefined;
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ export const BasinConfig$outboundSchema: z.ZodType<
|
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
BasinConfig
|
|
57
57
|
> = z.object({
|
|
58
|
-
createStreamOnAppend: z.boolean(),
|
|
58
|
+
createStreamOnAppend: z.boolean().optional(),
|
|
59
59
|
defaultStreamConfig: z.nullable(StreamConfig$outboundSchema).optional(),
|
|
60
60
|
}).transform((v) => {
|
|
61
61
|
return remap$(v, {
|
|
@@ -20,6 +20,7 @@ export const ReadResponse3Event = {
|
|
|
20
20
|
export type ReadResponse3Event = ClosedEnum<typeof ReadResponse3Event>;
|
|
21
21
|
|
|
22
22
|
export type Ping = {
|
|
23
|
+
data: string;
|
|
23
24
|
event: ReadResponse3Event;
|
|
24
25
|
};
|
|
25
26
|
|
|
@@ -46,7 +47,7 @@ export type Message = {
|
|
|
46
47
|
event: Event;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
export type ReadResponse =
|
|
50
|
+
export type ReadResponse = Message | ErrorT | Ping;
|
|
50
51
|
|
|
51
52
|
/** @internal */
|
|
52
53
|
export const ReadResponse3Event$inboundSchema: z.ZodNativeEnum<
|
|
@@ -72,17 +73,20 @@ export namespace ReadResponse3Event$ {
|
|
|
72
73
|
/** @internal */
|
|
73
74
|
export const Ping$inboundSchema: z.ZodType<Ping, z.ZodTypeDef, unknown> = z
|
|
74
75
|
.object({
|
|
76
|
+
data: z.string(),
|
|
75
77
|
event: ReadResponse3Event$inboundSchema,
|
|
76
78
|
});
|
|
77
79
|
|
|
78
80
|
/** @internal */
|
|
79
81
|
export type Ping$Outbound = {
|
|
82
|
+
data: string;
|
|
80
83
|
event: string;
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
/** @internal */
|
|
84
87
|
export const Ping$outboundSchema: z.ZodType<Ping$Outbound, z.ZodTypeDef, Ping> =
|
|
85
88
|
z.object({
|
|
89
|
+
data: z.string(),
|
|
86
90
|
event: ReadResponse3Event$outboundSchema,
|
|
87
91
|
});
|
|
88
92
|
|
|
@@ -270,16 +274,16 @@ export const ReadResponse$inboundSchema: z.ZodType<
|
|
|
270
274
|
z.ZodTypeDef,
|
|
271
275
|
unknown
|
|
272
276
|
> = z.union([
|
|
273
|
-
z.lazy(() => Ping$inboundSchema),
|
|
274
277
|
z.lazy(() => Message$inboundSchema),
|
|
275
278
|
z.lazy(() => ErrorT$inboundSchema),
|
|
279
|
+
z.lazy(() => Ping$inboundSchema),
|
|
276
280
|
]);
|
|
277
281
|
|
|
278
282
|
/** @internal */
|
|
279
283
|
export type ReadResponse$Outbound =
|
|
280
|
-
| Ping$Outbound
|
|
281
284
|
| Message$Outbound
|
|
282
|
-
| ErrorT$Outbound
|
|
285
|
+
| ErrorT$Outbound
|
|
286
|
+
| Ping$Outbound;
|
|
283
287
|
|
|
284
288
|
/** @internal */
|
|
285
289
|
export const ReadResponse$outboundSchema: z.ZodType<
|
|
@@ -287,9 +291,9 @@ export const ReadResponse$outboundSchema: z.ZodType<
|
|
|
287
291
|
z.ZodTypeDef,
|
|
288
292
|
ReadResponse
|
|
289
293
|
> = z.union([
|
|
290
|
-
z.lazy(() => Ping$outboundSchema),
|
|
291
294
|
z.lazy(() => Message$outboundSchema),
|
|
292
295
|
z.lazy(() => ErrorT$outboundSchema),
|
|
296
|
+
z.lazy(() => Ping$outboundSchema),
|
|
293
297
|
]);
|
|
294
298
|
|
|
295
299
|
/**
|
|
@@ -27,7 +27,7 @@ export type StreamConfig = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Storage class for recent writes.
|
|
29
29
|
*/
|
|
30
|
-
storageClass
|
|
30
|
+
storageClass?: StorageClass | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -37,7 +37,7 @@ export const StreamConfig$inboundSchema: z.ZodType<
|
|
|
37
37
|
unknown
|
|
38
38
|
> = z.object({
|
|
39
39
|
retention_policy: z.nullable(RetentionPolicy$inboundSchema).optional(),
|
|
40
|
-
storage_class: StorageClass$inboundSchema,
|
|
40
|
+
storage_class: StorageClass$inboundSchema.optional(),
|
|
41
41
|
}).transform((v) => {
|
|
42
42
|
return remap$(v, {
|
|
43
43
|
"retention_policy": "retentionPolicy",
|
|
@@ -48,7 +48,7 @@ export const StreamConfig$inboundSchema: z.ZodType<
|
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type StreamConfig$Outbound = {
|
|
50
50
|
retention_policy?: RetentionPolicy$Outbound | null | undefined;
|
|
51
|
-
storage_class
|
|
51
|
+
storage_class?: string | undefined;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
@@ -58,7 +58,7 @@ export const StreamConfig$outboundSchema: z.ZodType<
|
|
|
58
58
|
StreamConfig
|
|
59
59
|
> = z.object({
|
|
60
60
|
retentionPolicy: z.nullable(RetentionPolicy$outboundSchema).optional(),
|
|
61
|
-
storageClass: StorageClass$outboundSchema,
|
|
61
|
+
storageClass: StorageClass$outboundSchema.optional(),
|
|
62
62
|
}).transform((v) => {
|
|
63
63
|
return remap$(v, {
|
|
64
64
|
retentionPolicy: "retention_policy",
|