@s2-dev/streamstore 0.7.0 → 0.7.4
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 +61 -56
- package/bin/mcp-server.js.map +12 -11
- package/dist/commonjs/hooks/compression.d.ts +6 -0
- package/dist/commonjs/hooks/compression.d.ts.map +1 -0
- package/dist/commonjs/hooks/compression.js +30 -0
- package/dist/commonjs/hooks/compression.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -1
- package/dist/commonjs/hooks/registration.js +2 -1
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +5 -5
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- 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/hooks/compression.d.ts +6 -0
- package/dist/esm/hooks/compression.d.ts.map +1 -0
- package/dist/esm/hooks/compression.js +26 -0
- package/dist/esm/hooks/compression.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -1
- package/dist/esm/hooks/registration.js +2 -1
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/index.extras.d.ts +5 -5
- package/dist/esm/index.extras.d.ts.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/hooks/compression.ts +33 -0
- package/src/hooks/registration.ts +2 -1
- package/src/index.extras.ts +9 -9
- 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
|
@@ -22,7 +22,7 @@ import { tool$streamRead } from "./tools/streamRead.js";
|
|
|
22
22
|
export function createMCPServer(deps) {
|
|
23
23
|
const server = new McpServer({
|
|
24
24
|
name: "S2",
|
|
25
|
-
version: "0.7.
|
|
25
|
+
version: "0.7.4",
|
|
26
26
|
});
|
|
27
27
|
const client = new S2Core({
|
|
28
28
|
bearerAuth: deps.bearerAuth,
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { BasinScope } from "./basinscope.js";
|
|
4
5
|
import { BasinState } from "./basinstate.js";
|
|
5
6
|
/**
|
|
6
7
|
* Basin information.
|
|
7
8
|
*/
|
|
8
9
|
export type BasinInfo = {
|
|
9
|
-
/**
|
|
10
|
-
* Cell assignment.
|
|
11
|
-
*/
|
|
12
|
-
cell: string;
|
|
13
10
|
/**
|
|
14
11
|
* Basin name.
|
|
15
12
|
*/
|
|
@@ -17,7 +14,7 @@ export type BasinInfo = {
|
|
|
17
14
|
/**
|
|
18
15
|
* Basin scope.
|
|
19
16
|
*/
|
|
20
|
-
scope:
|
|
17
|
+
scope: BasinScope;
|
|
21
18
|
/**
|
|
22
19
|
* Current state of the basin.
|
|
23
20
|
*/
|
|
@@ -27,7 +24,6 @@ export type BasinInfo = {
|
|
|
27
24
|
export declare const BasinInfo$inboundSchema: z.ZodType<BasinInfo, z.ZodTypeDef, unknown>;
|
|
28
25
|
/** @internal */
|
|
29
26
|
export type BasinInfo$Outbound = {
|
|
30
|
-
cell: string;
|
|
31
27
|
name: string;
|
|
32
28
|
scope: string;
|
|
33
29
|
state: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basininfo.d.ts","sourceRoot":"","sources":["../../../../src/models/components/basininfo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"basininfo.d.ts","sourceRoot":"","sources":["../../../../src/models/components/basininfo.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAKT,CAAC;AAEH;;;GAGG;AACH,yBAAiB,UAAU,CAAC;IAC1B,yDAAyD;IAClD,MAAM,aAAa,6CAA0B,CAAC;IACrD,0DAA0D;IACnD,MAAM,cAAc,wDAA2B,CAAC;IACvD,oDAAoD;IACpD,KAAY,QAAQ,GAAG,kBAAkB,CAAC;CAC3C;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { BasinScope$inboundSchema, BasinScope$outboundSchema, } from "./basinscope.js";
|
|
6
7
|
import { BasinState$inboundSchema, BasinState$outboundSchema, } from "./basinstate.js";
|
|
7
8
|
/** @internal */
|
|
8
9
|
export const BasinInfo$inboundSchema = z.object({
|
|
9
|
-
cell: z.string(),
|
|
10
10
|
name: z.string(),
|
|
11
|
-
scope:
|
|
11
|
+
scope: BasinScope$inboundSchema,
|
|
12
12
|
state: BasinState$inboundSchema,
|
|
13
13
|
});
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const BasinInfo$outboundSchema = z.object({
|
|
16
|
-
cell: z.string(),
|
|
17
16
|
name: z.string(),
|
|
18
|
-
scope:
|
|
17
|
+
scope: BasinScope$outboundSchema,
|
|
19
18
|
state: BasinState$outboundSchema,
|
|
20
19
|
});
|
|
21
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basininfo.js","sourceRoot":"","sources":["../../../../src/models/components/basininfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"basininfo.js","sourceRoot":"","sources":["../../../../src/models/components/basininfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAoBzB,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,yBAAyB;IAChC,KAAK,EAAE,yBAAyB;CACjC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,UAAU,CAO1B;AAPD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,uBAAuB,CAAC;IACrD,0DAA0D;IAC7C,yBAAc,GAAG,wBAAwB,CAAC;AAGzD,CAAC,EAPgB,UAAU,KAAV,UAAU,QAO1B;AAED,MAAM,UAAU,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Basin scope.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BasinScope: {
|
|
7
|
+
readonly Unspecified: "unspecified";
|
|
8
|
+
readonly AwsUsEast1: "aws:us-east-1";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Basin scope.
|
|
12
|
+
*/
|
|
13
|
+
export type BasinScope = ClosedEnum<typeof BasinScope>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const BasinScope$inboundSchema: z.ZodNativeEnum<typeof BasinScope>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const BasinScope$outboundSchema: z.ZodNativeEnum<typeof BasinScope>;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export declare namespace BasinScope$ {
|
|
23
|
+
/** @deprecated use `BasinScope$inboundSchema` instead. */
|
|
24
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
25
|
+
readonly Unspecified: "unspecified";
|
|
26
|
+
readonly AwsUsEast1: "aws:us-east-1";
|
|
27
|
+
}>;
|
|
28
|
+
/** @deprecated use `BasinScope$outboundSchema` instead. */
|
|
29
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
30
|
+
readonly Unspecified: "unspecified";
|
|
31
|
+
readonly AwsUsEast1: "aws:us-east-1";
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=basinscope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basinscope.d.ts","sourceRoot":"","sources":["../../../../src/models/components/basinscope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE1B,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC;AAE3B;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;;MAA4B,CAAC;CACzD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
/**
|
|
6
|
+
* Basin scope.
|
|
7
|
+
*/
|
|
8
|
+
export const BasinScope = {
|
|
9
|
+
Unspecified: "unspecified",
|
|
10
|
+
AwsUsEast1: "aws:us-east-1",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const BasinScope$inboundSchema = z
|
|
14
|
+
.nativeEnum(BasinScope);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const BasinScope$outboundSchema = BasinScope$inboundSchema;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
+
*/
|
|
21
|
+
export var BasinScope$;
|
|
22
|
+
(function (BasinScope$) {
|
|
23
|
+
/** @deprecated use `BasinScope$inboundSchema` instead. */
|
|
24
|
+
BasinScope$.inboundSchema = BasinScope$inboundSchema;
|
|
25
|
+
/** @deprecated use `BasinScope$outboundSchema` instead. */
|
|
26
|
+
BasinScope$.outboundSchema = BasinScope$outboundSchema;
|
|
27
|
+
})(BasinScope$ || (BasinScope$ = {}));
|
|
28
|
+
//# sourceMappingURL=basinscope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basinscope.js","sourceRoot":"","sources":["../../../../src/models/components/basinscope.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,eAAe;CACnB,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,UAAU,CAAC,CAAC;AAE1B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,wBAAwB,CAAC;AAE3B;;;GAGG;AACH,MAAM,KAAW,WAAW,CAK3B;AALD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,wBAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,yBAAyB,CAAC;AAC1D,CAAC,EALgB,WAAW,KAAX,WAAW,QAK3B"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { Assignment, Assignment$Outbound } from "./assignment.js";
|
|
5
4
|
import { BasinConfig, BasinConfig$Outbound } from "./basinconfig.js";
|
|
5
|
+
import { BasinScope } from "./basinscope.js";
|
|
6
6
|
/**
|
|
7
7
|
* Create basin request.
|
|
8
8
|
*/
|
|
9
9
|
export type CreateBasinRequest = {
|
|
10
|
-
assignment?: Assignment | null | undefined;
|
|
11
10
|
config?: BasinConfig | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Basin scope.
|
|
13
|
+
*/
|
|
14
|
+
scope?: BasinScope | undefined;
|
|
12
15
|
};
|
|
13
16
|
/** @internal */
|
|
14
17
|
export declare const CreateBasinRequest$inboundSchema: z.ZodType<CreateBasinRequest, z.ZodTypeDef, unknown>;
|
|
15
18
|
/** @internal */
|
|
16
19
|
export type CreateBasinRequest$Outbound = {
|
|
17
|
-
assignment?: Assignment$Outbound | null | undefined;
|
|
18
20
|
config?: BasinConfig$Outbound | null | undefined;
|
|
21
|
+
scope?: string | undefined;
|
|
19
22
|
};
|
|
20
23
|
/** @internal */
|
|
21
24
|
export declare const CreateBasinRequest$outboundSchema: z.ZodType<CreateBasinRequest$Outbound, z.ZodTypeDef, CreateBasinRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createbasinrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createbasinrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"createbasinrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createbasinrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,UAAU,EAGX,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import { Assignment$inboundSchema, Assignment$outboundSchema, } from "./assignment.js";
|
|
7
6
|
import { BasinConfig$inboundSchema, BasinConfig$outboundSchema, } from "./basinconfig.js";
|
|
7
|
+
import { BasinScope$inboundSchema, BasinScope$outboundSchema, } from "./basinscope.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateBasinRequest$inboundSchema = z.object({
|
|
10
|
-
assignment: z.nullable(Assignment$inboundSchema).optional(),
|
|
11
10
|
config: z.nullable(BasinConfig$inboundSchema).optional(),
|
|
11
|
+
scope: BasinScope$inboundSchema.optional(),
|
|
12
12
|
});
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const CreateBasinRequest$outboundSchema = z.object({
|
|
15
|
-
assignment: z.nullable(Assignment$outboundSchema).optional(),
|
|
16
15
|
config: z.nullable(BasinConfig$outboundSchema).optional(),
|
|
16
|
+
scope: BasinScope$outboundSchema.optional(),
|
|
17
17
|
});
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createbasinrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createbasinrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"createbasinrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createbasinrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAazB,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;IACxD,KAAK,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IACzD,KAAK,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,gCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,iCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,KAAnB,mBAAmB,QAOnC;AAED,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./appendinput.js";
|
|
2
2
|
export * from "./appendoutput.js";
|
|
3
3
|
export * from "./appendrecord.js";
|
|
4
|
-
export * from "./assignment.js";
|
|
5
4
|
export * from "./basinconfig.js";
|
|
6
5
|
export * from "./basininfo.js";
|
|
6
|
+
export * from "./basinscope.js";
|
|
7
7
|
export * from "./basinstate.js";
|
|
8
8
|
export * from "./checktailresponse.js";
|
|
9
9
|
export * from "./createbasinrequest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
export * from "./appendinput.js";
|
|
5
5
|
export * from "./appendoutput.js";
|
|
6
6
|
export * from "./appendrecord.js";
|
|
7
|
-
export * from "./assignment.js";
|
|
8
7
|
export * from "./basinconfig.js";
|
|
9
8
|
export * from "./basininfo.js";
|
|
9
|
+
export * from "./basinscope.js";
|
|
10
10
|
export * from "./basinstate.js";
|
|
11
11
|
export * from "./checktailresponse.js";
|
|
12
12
|
export * from "./createbasinrequest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RequestInput } from "../lib/http.js";
|
|
2
|
+
import { BeforeCreateRequestContext, BeforeCreateRequestHook } from "./types.js";
|
|
3
|
+
|
|
4
|
+
export class CompressionHook implements BeforeCreateRequestHook {
|
|
5
|
+
beforeCreateRequest(_hookCtx: BeforeCreateRequestContext, input: RequestInput): RequestInput {
|
|
6
|
+
const hdrs = new Headers(input.options?.headers ?? {});
|
|
7
|
+
const body = input.options?.body;
|
|
8
|
+
|
|
9
|
+
// We'll need to handle streaming requests differently (per message).
|
|
10
|
+
// Currently we only handle unary JSON requests.
|
|
11
|
+
if (!hdrs.get("content-type")?.toLowerCase().startsWith("application/json") || typeof body !== "string") {
|
|
12
|
+
return input;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const stream = new Blob([body]).stream();
|
|
16
|
+
const compressedStream = stream.pipeThrough(new CompressionStream("gzip"));
|
|
17
|
+
|
|
18
|
+
// Set the content encoding.
|
|
19
|
+
hdrs.set("content-encoding", "gzip");
|
|
20
|
+
|
|
21
|
+
const opts = {
|
|
22
|
+
...input.options,
|
|
23
|
+
body: compressedStream,
|
|
24
|
+
headers: hdrs,
|
|
25
|
+
duplex: "half", // use HTTP2 because of stream
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
...input,
|
|
30
|
+
options: opts,
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CompressionHook } from "./compression.js";
|
|
1
2
|
import { Hooks } from "./types.js";
|
|
2
3
|
|
|
3
4
|
/*
|
|
@@ -6,9 +7,9 @@ import { Hooks } from "./types.js";
|
|
|
6
7
|
* in this file or in separate files in the hooks folder.
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
|
-
// @ts-expect-error remove this line when you add your first hook and hooks is used
|
|
10
10
|
export function initHooks(hooks: Hooks) {
|
|
11
11
|
// Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
12
12
|
// with an instance of a hook that implements that specific Hook interface
|
|
13
13
|
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
14
|
+
hooks.registerBeforeCreateRequestHook(new CompressionHook());
|
|
14
15
|
}
|
package/src/index.extras.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type S2OperationConfig = {
|
|
|
91
91
|
export enum AppendRetryPolicy {
|
|
92
92
|
/**
|
|
93
93
|
* Retry all eligible failures encountered during an append.
|
|
94
|
-
* This could result in append batches being duplicated on the stream.
|
|
94
|
+
* This could result in append batches being duplicated on the stream.
|
|
95
95
|
*/
|
|
96
96
|
All,
|
|
97
97
|
/**
|
|
@@ -160,7 +160,7 @@ class S2Account {
|
|
|
160
160
|
this.config.httpClient?.addHook("beforeRequest", (request) => {
|
|
161
161
|
if (config?.authToken !== undefined) {
|
|
162
162
|
request.headers.set("Authorization", `Bearer ${config.authToken}`);
|
|
163
|
-
}
|
|
163
|
+
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -190,7 +190,7 @@ class S2Account {
|
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
async createBasin(basin: string, request?: CreateBasinRequest, opConfig?: S2OperationConfig): Promise<BasinInfo
|
|
193
|
+
async createBasin(basin: string, request?: CreateBasinRequest, opConfig?: S2OperationConfig): Promise<BasinInfo> {
|
|
194
194
|
this.overrideConfig(opConfig);
|
|
195
195
|
const _request: CreateBasinRequestInner = {
|
|
196
196
|
basin,
|
|
@@ -218,7 +218,7 @@ class S2Account {
|
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
async reconfigureBasin(basin: string, config: BasinConfig, opConfig?: S2OperationConfig): Promise<BasinConfig
|
|
221
|
+
async reconfigureBasin(basin: string, config: BasinConfig, opConfig?: S2OperationConfig): Promise<BasinConfig> {
|
|
222
222
|
this.overrideConfig(opConfig);
|
|
223
223
|
const _request: ReconfigureBasinRequest = { basin, basinConfig: config };
|
|
224
224
|
return retryWithExponentialBackoff(
|
|
@@ -269,7 +269,7 @@ class S2Basin {
|
|
|
269
269
|
this.config.httpClient?.addHook("beforeRequest", (request) => {
|
|
270
270
|
if (config?.authToken !== undefined) {
|
|
271
271
|
request.headers.set("Authorization", `Bearer ${config.authToken}`);
|
|
272
|
-
}
|
|
272
|
+
}
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -289,7 +289,7 @@ class S2Basin {
|
|
|
289
289
|
async getStreamConfig(
|
|
290
290
|
stream: string,
|
|
291
291
|
opConfig?: S2OperationConfig
|
|
292
|
-
): Promise<StreamConfig
|
|
292
|
+
): Promise<StreamConfig> {
|
|
293
293
|
this.overrideConfig(opConfig);
|
|
294
294
|
return retryWithExponentialBackoff(
|
|
295
295
|
() => this._basin.getStreamConfig({ stream }, { serverURL: this.URL }),
|
|
@@ -299,7 +299,7 @@ class S2Basin {
|
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
async createStream(stream: string, request?: CreateStreamRequest, opConfig?: S2OperationConfig): Promise<StreamInfo
|
|
302
|
+
async createStream(stream: string, request?: CreateStreamRequest, opConfig?: S2OperationConfig): Promise<StreamInfo> {
|
|
303
303
|
this.overrideConfig(opConfig);
|
|
304
304
|
const _request: CreateStreamRequestInner = {
|
|
305
305
|
stream,
|
|
@@ -314,7 +314,7 @@ class S2Basin {
|
|
|
314
314
|
);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
async deleteStream(stream: string, if_exists?: boolean, opConfig?: S2OperationConfig): Promise<void
|
|
317
|
+
async deleteStream(stream: string, if_exists?: boolean, opConfig?: S2OperationConfig): Promise<void> {
|
|
318
318
|
this.overrideConfig(opConfig);
|
|
319
319
|
const response = await retryWithExponentialBackoff(
|
|
320
320
|
() => basinDeleteStream(this._basin, { stream }, { serverURL: this.URL }),
|
|
@@ -353,7 +353,7 @@ class Stream {
|
|
|
353
353
|
this.config.httpClient?.addHook("beforeRequest", (request) => {
|
|
354
354
|
if (config?.authToken !== undefined) {
|
|
355
355
|
request.headers.set("Authorization", `Bearer ${config.authToken}`);
|
|
356
|
-
}
|
|
356
|
+
}
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
|
package/src/lib/config.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "1.0.0",
|
|
57
|
-
sdkVersion: "0.7.
|
|
58
|
-
genVersion: "2.
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
57
|
+
sdkVersion: "0.7.4",
|
|
58
|
+
genVersion: "2.546.0",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 0.7.4 2.546.0 1.0.0 @s2-dev/streamstore",
|
|
60
60
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -6,6 +6,11 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BasinScope,
|
|
11
|
+
BasinScope$inboundSchema,
|
|
12
|
+
BasinScope$outboundSchema,
|
|
13
|
+
} from "./basinscope.js";
|
|
9
14
|
import {
|
|
10
15
|
BasinState,
|
|
11
16
|
BasinState$inboundSchema,
|
|
@@ -16,10 +21,6 @@ import {
|
|
|
16
21
|
* Basin information.
|
|
17
22
|
*/
|
|
18
23
|
export type BasinInfo = {
|
|
19
|
-
/**
|
|
20
|
-
* Cell assignment.
|
|
21
|
-
*/
|
|
22
|
-
cell: string;
|
|
23
24
|
/**
|
|
24
25
|
* Basin name.
|
|
25
26
|
*/
|
|
@@ -27,7 +28,7 @@ export type BasinInfo = {
|
|
|
27
28
|
/**
|
|
28
29
|
* Basin scope.
|
|
29
30
|
*/
|
|
30
|
-
scope:
|
|
31
|
+
scope: BasinScope;
|
|
31
32
|
/**
|
|
32
33
|
* Current state of the basin.
|
|
33
34
|
*/
|
|
@@ -40,15 +41,13 @@ export const BasinInfo$inboundSchema: z.ZodType<
|
|
|
40
41
|
z.ZodTypeDef,
|
|
41
42
|
unknown
|
|
42
43
|
> = z.object({
|
|
43
|
-
cell: z.string(),
|
|
44
44
|
name: z.string(),
|
|
45
|
-
scope:
|
|
45
|
+
scope: BasinScope$inboundSchema,
|
|
46
46
|
state: BasinState$inboundSchema,
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
/** @internal */
|
|
50
50
|
export type BasinInfo$Outbound = {
|
|
51
|
-
cell: string;
|
|
52
51
|
name: string;
|
|
53
52
|
scope: string;
|
|
54
53
|
state: string;
|
|
@@ -60,9 +59,8 @@ export const BasinInfo$outboundSchema: z.ZodType<
|
|
|
60
59
|
z.ZodTypeDef,
|
|
61
60
|
BasinInfo
|
|
62
61
|
> = z.object({
|
|
63
|
-
cell: z.string(),
|
|
64
62
|
name: z.string(),
|
|
65
|
-
scope:
|
|
63
|
+
scope: BasinScope$outboundSchema,
|
|
66
64
|
state: BasinState$outboundSchema,
|
|
67
65
|
});
|
|
68
66
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Basin scope.
|
|
10
|
+
*/
|
|
11
|
+
export const BasinScope = {
|
|
12
|
+
Unspecified: "unspecified",
|
|
13
|
+
AwsUsEast1: "aws:us-east-1",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Basin scope.
|
|
17
|
+
*/
|
|
18
|
+
export type BasinScope = ClosedEnum<typeof BasinScope>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const BasinScope$inboundSchema: z.ZodNativeEnum<typeof BasinScope> = z
|
|
22
|
+
.nativeEnum(BasinScope);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const BasinScope$outboundSchema: z.ZodNativeEnum<typeof BasinScope> =
|
|
26
|
+
BasinScope$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace BasinScope$ {
|
|
33
|
+
/** @deprecated use `BasinScope$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = BasinScope$inboundSchema;
|
|
35
|
+
/** @deprecated use `BasinScope$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = BasinScope$outboundSchema;
|
|
37
|
+
}
|
|
@@ -6,25 +6,27 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
Assignment,
|
|
11
|
-
Assignment$inboundSchema,
|
|
12
|
-
Assignment$Outbound,
|
|
13
|
-
Assignment$outboundSchema,
|
|
14
|
-
} from "./assignment.js";
|
|
15
9
|
import {
|
|
16
10
|
BasinConfig,
|
|
17
11
|
BasinConfig$inboundSchema,
|
|
18
12
|
BasinConfig$Outbound,
|
|
19
13
|
BasinConfig$outboundSchema,
|
|
20
14
|
} from "./basinconfig.js";
|
|
15
|
+
import {
|
|
16
|
+
BasinScope,
|
|
17
|
+
BasinScope$inboundSchema,
|
|
18
|
+
BasinScope$outboundSchema,
|
|
19
|
+
} from "./basinscope.js";
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* Create basin request.
|
|
24
23
|
*/
|
|
25
24
|
export type CreateBasinRequest = {
|
|
26
|
-
assignment?: Assignment | null | undefined;
|
|
27
25
|
config?: BasinConfig | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Basin scope.
|
|
28
|
+
*/
|
|
29
|
+
scope?: BasinScope | undefined;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
/** @internal */
|
|
@@ -33,14 +35,14 @@ export const CreateBasinRequest$inboundSchema: z.ZodType<
|
|
|
33
35
|
z.ZodTypeDef,
|
|
34
36
|
unknown
|
|
35
37
|
> = z.object({
|
|
36
|
-
assignment: z.nullable(Assignment$inboundSchema).optional(),
|
|
37
38
|
config: z.nullable(BasinConfig$inboundSchema).optional(),
|
|
39
|
+
scope: BasinScope$inboundSchema.optional(),
|
|
38
40
|
});
|
|
39
41
|
|
|
40
42
|
/** @internal */
|
|
41
43
|
export type CreateBasinRequest$Outbound = {
|
|
42
|
-
assignment?: Assignment$Outbound | null | undefined;
|
|
43
44
|
config?: BasinConfig$Outbound | null | undefined;
|
|
45
|
+
scope?: string | undefined;
|
|
44
46
|
};
|
|
45
47
|
|
|
46
48
|
/** @internal */
|
|
@@ -49,8 +51,8 @@ export const CreateBasinRequest$outboundSchema: z.ZodType<
|
|
|
49
51
|
z.ZodTypeDef,
|
|
50
52
|
CreateBasinRequest
|
|
51
53
|
> = z.object({
|
|
52
|
-
assignment: z.nullable(Assignment$outboundSchema).optional(),
|
|
53
54
|
config: z.nullable(BasinConfig$outboundSchema).optional(),
|
|
55
|
+
scope: BasinScope$outboundSchema.optional(),
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
export * from "./appendinput.js";
|
|
6
6
|
export * from "./appendoutput.js";
|
|
7
7
|
export * from "./appendrecord.js";
|
|
8
|
-
export * from "./assignment.js";
|
|
9
8
|
export * from "./basinconfig.js";
|
|
10
9
|
export * from "./basininfo.js";
|
|
10
|
+
export * from "./basinscope.js";
|
|
11
11
|
export * from "./basinstate.js";
|
|
12
12
|
export * from "./checktailresponse.js";
|
|
13
13
|
export * from "./createbasinrequest.js";
|