@s2-dev/streamstore 0.15.6 → 0.15.7
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 +68 -6
- package/bin/mcp-server.js.map +11 -9
- 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/deleteonemptyconfig.d.ts +35 -0
- package/dist/commonjs/models/components/deleteonemptyconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/deleteonemptyconfig.js +78 -0
- package/dist/commonjs/models/components/deleteonemptyconfig.js.map +1 -0
- package/dist/commonjs/models/components/deleteonemptyreconfiguration.d.ts +35 -0
- package/dist/commonjs/models/components/deleteonemptyreconfiguration.d.ts.map +1 -0
- package/dist/commonjs/models/components/deleteonemptyreconfiguration.js +78 -0
- package/dist/commonjs/models/components/deleteonemptyreconfiguration.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/streamconfig.d.ts +3 -0
- package/dist/commonjs/models/components/streamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamconfig.js +5 -0
- package/dist/commonjs/models/components/streamconfig.js.map +1 -1
- package/dist/commonjs/models/components/streamreconfiguration.d.ts +3 -0
- package/dist/commonjs/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/commonjs/models/components/streamreconfiguration.js +7 -0
- package/dist/commonjs/models/components/streamreconfiguration.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/deleteonemptyconfig.d.ts +35 -0
- package/dist/esm/models/components/deleteonemptyconfig.d.ts.map +1 -0
- package/dist/esm/models/components/deleteonemptyconfig.js +40 -0
- package/dist/esm/models/components/deleteonemptyconfig.js.map +1 -0
- package/dist/esm/models/components/deleteonemptyreconfiguration.d.ts +35 -0
- package/dist/esm/models/components/deleteonemptyreconfiguration.d.ts.map +1 -0
- package/dist/esm/models/components/deleteonemptyreconfiguration.js +40 -0
- package/dist/esm/models/components/deleteonemptyreconfiguration.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/streamconfig.d.ts +3 -0
- package/dist/esm/models/components/streamconfig.d.ts.map +1 -1
- package/dist/esm/models/components/streamconfig.js +5 -0
- package/dist/esm/models/components/streamconfig.js.map +1 -1
- package/dist/esm/models/components/streamreconfiguration.d.ts +3 -0
- package/dist/esm/models/components/streamreconfiguration.d.ts.map +1 -1
- package/dist/esm/models/components/streamreconfiguration.js +7 -0
- package/dist/esm/models/components/streamreconfiguration.js.map +1 -1
- package/examples/package-lock.json +1 -1
- 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/deleteonemptyconfig.ts +81 -0
- package/src/models/components/deleteonemptyreconfiguration.ts +83 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/streamconfig.ts +12 -0
- package/src/models/components/streamreconfiguration.ts +14 -0
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
DeleteOnEmptyReconfiguration,
|
|
12
|
+
DeleteOnEmptyReconfiguration$inboundSchema,
|
|
13
|
+
DeleteOnEmptyReconfiguration$Outbound,
|
|
14
|
+
DeleteOnEmptyReconfiguration$outboundSchema,
|
|
15
|
+
} from "./deleteonemptyreconfiguration.js";
|
|
10
16
|
import {
|
|
11
17
|
RetentionPolicy,
|
|
12
18
|
RetentionPolicy$inboundSchema,
|
|
@@ -26,6 +32,7 @@ import {
|
|
|
26
32
|
} from "./timestampingreconfiguration.js";
|
|
27
33
|
|
|
28
34
|
export type StreamReconfiguration = {
|
|
35
|
+
deleteOnEmpty?: DeleteOnEmptyReconfiguration | null | undefined;
|
|
29
36
|
retentionPolicy?: RetentionPolicy | null | undefined;
|
|
30
37
|
storageClass?: StorageClass | null | undefined;
|
|
31
38
|
timestamping?: TimestampingReconfiguration | null | undefined;
|
|
@@ -37,12 +44,15 @@ export const StreamReconfiguration$inboundSchema: z.ZodType<
|
|
|
37
44
|
z.ZodTypeDef,
|
|
38
45
|
unknown
|
|
39
46
|
> = z.object({
|
|
47
|
+
delete_on_empty: z.nullable(DeleteOnEmptyReconfiguration$inboundSchema)
|
|
48
|
+
.optional(),
|
|
40
49
|
retention_policy: z.nullable(RetentionPolicy$inboundSchema).optional(),
|
|
41
50
|
storage_class: z.nullable(StorageClass$inboundSchema).optional(),
|
|
42
51
|
timestamping: z.nullable(TimestampingReconfiguration$inboundSchema)
|
|
43
52
|
.optional(),
|
|
44
53
|
}).transform((v) => {
|
|
45
54
|
return remap$(v, {
|
|
55
|
+
"delete_on_empty": "deleteOnEmpty",
|
|
46
56
|
"retention_policy": "retentionPolicy",
|
|
47
57
|
"storage_class": "storageClass",
|
|
48
58
|
});
|
|
@@ -50,6 +60,7 @@ export const StreamReconfiguration$inboundSchema: z.ZodType<
|
|
|
50
60
|
|
|
51
61
|
/** @internal */
|
|
52
62
|
export type StreamReconfiguration$Outbound = {
|
|
63
|
+
delete_on_empty?: DeleteOnEmptyReconfiguration$Outbound | null | undefined;
|
|
53
64
|
retention_policy?: RetentionPolicy$Outbound | null | undefined;
|
|
54
65
|
storage_class?: string | null | undefined;
|
|
55
66
|
timestamping?: TimestampingReconfiguration$Outbound | null | undefined;
|
|
@@ -61,12 +72,15 @@ export const StreamReconfiguration$outboundSchema: z.ZodType<
|
|
|
61
72
|
z.ZodTypeDef,
|
|
62
73
|
StreamReconfiguration
|
|
63
74
|
> = z.object({
|
|
75
|
+
deleteOnEmpty: z.nullable(DeleteOnEmptyReconfiguration$outboundSchema)
|
|
76
|
+
.optional(),
|
|
64
77
|
retentionPolicy: z.nullable(RetentionPolicy$outboundSchema).optional(),
|
|
65
78
|
storageClass: z.nullable(StorageClass$outboundSchema).optional(),
|
|
66
79
|
timestamping: z.nullable(TimestampingReconfiguration$outboundSchema)
|
|
67
80
|
.optional(),
|
|
68
81
|
}).transform((v) => {
|
|
69
82
|
return remap$(v, {
|
|
83
|
+
deleteOnEmpty: "delete_on_empty",
|
|
70
84
|
retentionPolicy: "retention_policy",
|
|
71
85
|
storageClass: "storage_class",
|
|
72
86
|
});
|