@s2-dev/streamstore 0.7.0 → 0.7.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/bin/mcp-server.js +31 -54
- package/bin/mcp-server.js.map +10 -10
- 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/basininfo.d.ts +2 -6
- package/dist/commonjs/models/components/basininfo.d.ts.map +1 -1
- package/dist/commonjs/models/components/basininfo.js +3 -4
- package/dist/commonjs/models/components/basininfo.js.map +1 -1
- package/dist/commonjs/models/components/basinscope.d.ts +34 -0
- package/dist/commonjs/models/components/basinscope.d.ts.map +1 -0
- package/dist/commonjs/models/components/basinscope.js +64 -0
- package/dist/commonjs/models/components/basinscope.js.map +1 -0
- package/dist/commonjs/models/components/createbasinrequest.d.ts +6 -3
- package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createbasinrequest.js +3 -3
- package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.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/basininfo.d.ts +2 -6
- package/dist/esm/models/components/basininfo.d.ts.map +1 -1
- package/dist/esm/models/components/basininfo.js +3 -4
- package/dist/esm/models/components/basininfo.js.map +1 -1
- package/dist/esm/models/components/basinscope.d.ts +34 -0
- package/dist/esm/models/components/basinscope.d.ts.map +1 -0
- package/dist/esm/models/components/basinscope.js +28 -0
- package/dist/esm/models/components/basinscope.js.map +1 -0
- package/dist/esm/models/components/createbasinrequest.d.ts +6 -3
- package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createbasinrequest.js +3 -3
- package/dist/esm/models/components/createbasinrequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +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/basininfo.ts +8 -10
- package/src/models/components/basinscope.ts +37 -0
- package/src/models/components/createbasinrequest.ts +12 -10
- package/src/models/components/index.ts +1 -1
- package/dist/commonjs/models/components/assignment.d.ts +0 -90
- package/dist/commonjs/models/components/assignment.d.ts.map +0 -1
- package/dist/commonjs/models/components/assignment.js +0 -127
- package/dist/commonjs/models/components/assignment.js.map +0 -1
- package/dist/esm/models/components/assignment.d.ts +0 -90
- package/dist/esm/models/components/assignment.d.ts.map +0 -1
- package/dist/esm/models/components/assignment.js +0 -85
- package/dist/esm/models/components/assignment.js.map +0 -1
- package/src/models/components/assignment.ts +0 -174
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
12
|
-
*/
|
|
13
|
-
export type Cell = {
|
|
14
|
-
/**
|
|
15
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
16
|
-
*/
|
|
17
|
-
cell: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
22
|
-
*/
|
|
23
|
-
export type Scope = {
|
|
24
|
-
/**
|
|
25
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
26
|
-
*/
|
|
27
|
-
scope: string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
32
|
-
*/
|
|
33
|
-
export type Assignment = Scope | Cell;
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
37
|
-
.object({
|
|
38
|
-
cell: z.string(),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type Cell$Outbound = {
|
|
43
|
-
cell: string;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Cell$outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell> =
|
|
48
|
-
z.object({
|
|
49
|
-
cell: z.string(),
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export namespace Cell$ {
|
|
57
|
-
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
58
|
-
export const inboundSchema = Cell$inboundSchema;
|
|
59
|
-
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
60
|
-
export const outboundSchema = Cell$outboundSchema;
|
|
61
|
-
/** @deprecated use `Cell$Outbound` instead. */
|
|
62
|
-
export type Outbound = Cell$Outbound;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function cellToJSON(cell: Cell): string {
|
|
66
|
-
return JSON.stringify(Cell$outboundSchema.parse(cell));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function cellFromJSON(
|
|
70
|
-
jsonString: string,
|
|
71
|
-
): SafeParseResult<Cell, SDKValidationError> {
|
|
72
|
-
return safeParse(
|
|
73
|
-
jsonString,
|
|
74
|
-
(x) => Cell$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
-
`Failed to parse 'Cell' from JSON`,
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown> = z
|
|
81
|
-
.object({
|
|
82
|
-
scope: z.string(),
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export type Scope$Outbound = {
|
|
87
|
-
scope: string;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const Scope$outboundSchema: z.ZodType<
|
|
92
|
-
Scope$Outbound,
|
|
93
|
-
z.ZodTypeDef,
|
|
94
|
-
Scope
|
|
95
|
-
> = z.object({
|
|
96
|
-
scope: z.string(),
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
-
*/
|
|
103
|
-
export namespace Scope$ {
|
|
104
|
-
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
105
|
-
export const inboundSchema = Scope$inboundSchema;
|
|
106
|
-
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
107
|
-
export const outboundSchema = Scope$outboundSchema;
|
|
108
|
-
/** @deprecated use `Scope$Outbound` instead. */
|
|
109
|
-
export type Outbound = Scope$Outbound;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function scopeToJSON(scope: Scope): string {
|
|
113
|
-
return JSON.stringify(Scope$outboundSchema.parse(scope));
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function scopeFromJSON(
|
|
117
|
-
jsonString: string,
|
|
118
|
-
): SafeParseResult<Scope, SDKValidationError> {
|
|
119
|
-
return safeParse(
|
|
120
|
-
jsonString,
|
|
121
|
-
(x) => Scope$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
-
`Failed to parse 'Scope' from JSON`,
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** @internal */
|
|
127
|
-
export const Assignment$inboundSchema: z.ZodType<
|
|
128
|
-
Assignment,
|
|
129
|
-
z.ZodTypeDef,
|
|
130
|
-
unknown
|
|
131
|
-
> = z.union([
|
|
132
|
-
z.lazy(() => Scope$inboundSchema),
|
|
133
|
-
z.lazy(() => Cell$inboundSchema),
|
|
134
|
-
]);
|
|
135
|
-
|
|
136
|
-
/** @internal */
|
|
137
|
-
export type Assignment$Outbound = Scope$Outbound | Cell$Outbound;
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const Assignment$outboundSchema: z.ZodType<
|
|
141
|
-
Assignment$Outbound,
|
|
142
|
-
z.ZodTypeDef,
|
|
143
|
-
Assignment
|
|
144
|
-
> = z.union([
|
|
145
|
-
z.lazy(() => Scope$outboundSchema),
|
|
146
|
-
z.lazy(() => Cell$outboundSchema),
|
|
147
|
-
]);
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
-
*/
|
|
153
|
-
export namespace Assignment$ {
|
|
154
|
-
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
155
|
-
export const inboundSchema = Assignment$inboundSchema;
|
|
156
|
-
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
157
|
-
export const outboundSchema = Assignment$outboundSchema;
|
|
158
|
-
/** @deprecated use `Assignment$Outbound` instead. */
|
|
159
|
-
export type Outbound = Assignment$Outbound;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export function assignmentToJSON(assignment: Assignment): string {
|
|
163
|
-
return JSON.stringify(Assignment$outboundSchema.parse(assignment));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export function assignmentFromJSON(
|
|
167
|
-
jsonString: string,
|
|
168
|
-
): SafeParseResult<Assignment, SDKValidationError> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) => Assignment$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
-
`Failed to parse 'Assignment' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|