@s2-dev/streamstore 0.2.7 → 0.2.8
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/formatoption.d.ts +28 -0
- package/models/components/formatoption.d.ts.map +1 -0
- package/models/components/formatoption.js +60 -0
- package/models/components/formatoption.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/operations/append.d.ts +4 -30
- package/models/operations/append.d.ts.map +1 -1
- package/models/operations/append.js +5 -25
- package/models/operations/append.js.map +1 -1
- package/models/operations/read.d.ts +4 -30
- package/models/operations/read.d.ts.map +1 -1
- package/models/operations/read.js +5 -24
- package/models/operations/read.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/formatoption.ts +31 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/append.ts +6 -32
- package/src/models/operations/read.ts +6 -31
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.0";
|
|
30
|
-
readonly sdkVersion: "0.2.
|
|
31
|
-
readonly genVersion: "2.503.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
30
|
+
readonly sdkVersion: "0.2.8";
|
|
31
|
+
readonly genVersion: "2.503.2";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.8 2.503.2 1.0.0 @s2-dev/streamstore";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "1.0.0",
|
|
31
|
-
sdkVersion: "0.2.
|
|
32
|
-
genVersion: "2.503.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
31
|
+
sdkVersion: "0.2.8",
|
|
32
|
+
genVersion: "2.503.2",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.2.8 2.503.2 1.0.0 @s2-dev/streamstore",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const FormatOption: {
|
|
4
|
+
readonly Json: "json";
|
|
5
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
6
|
+
};
|
|
7
|
+
export type FormatOption = ClosedEnum<typeof FormatOption>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const FormatOption$inboundSchema: z.ZodNativeEnum<typeof FormatOption>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const FormatOption$outboundSchema: z.ZodNativeEnum<typeof FormatOption>;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace FormatOption$ {
|
|
17
|
+
/** @deprecated use `FormatOption$inboundSchema` instead. */
|
|
18
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
+
readonly Json: "json";
|
|
20
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
21
|
+
}>;
|
|
22
|
+
/** @deprecated use `FormatOption$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Json: "json";
|
|
25
|
+
readonly JsonBinsafe: "json-binsafe";
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=formatoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatoption.d.ts","sourceRoot":"","sources":["../../src/models/components/formatoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa;;;MAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc;;;MAA8B,CAAC;CAC3D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.FormatOption$ = exports.FormatOption$outboundSchema = exports.FormatOption$inboundSchema = exports.FormatOption = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.FormatOption = {
|
|
42
|
+
Json: "json",
|
|
43
|
+
JsonBinsafe: "json-binsafe",
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.FormatOption$inboundSchema = z.nativeEnum(exports.FormatOption);
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.FormatOption$outboundSchema = exports.FormatOption$inboundSchema;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
var FormatOption$;
|
|
54
|
+
(function (FormatOption$) {
|
|
55
|
+
/** @deprecated use `FormatOption$inboundSchema` instead. */
|
|
56
|
+
FormatOption$.inboundSchema = exports.FormatOption$inboundSchema;
|
|
57
|
+
/** @deprecated use `FormatOption$outboundSchema` instead. */
|
|
58
|
+
FormatOption$.outboundSchema = exports.FormatOption$outboundSchema;
|
|
59
|
+
})(FormatOption$ || (exports.FormatOption$ = FormatOption$ = {}));
|
|
60
|
+
//# sourceMappingURL=formatoption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatoption.js","sourceRoot":"","sources":["../../src/models/components/formatoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,cAAc;CACnB,CAAC;AAGX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B;;;GAGG;AACH,IAAiB,aAAa,CAK7B;AALD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAC5D,CAAC,EALgB,aAAa,6BAAb,aAAa,QAK7B"}
|
|
@@ -8,6 +8,7 @@ export * from "./basinstate.js";
|
|
|
8
8
|
export * from "./checktailresponse.js";
|
|
9
9
|
export * from "./createbasinrequest.js";
|
|
10
10
|
export * from "./createstreamrequest.js";
|
|
11
|
+
export * from "./formatoption.js";
|
|
11
12
|
export * from "./header.js";
|
|
12
13
|
export * from "./listbasinsresponse.js";
|
|
13
14
|
export * from "./liststreamsresponse.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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}
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./basinstate.js"), exports);
|
|
|
27
27
|
__exportStar(require("./checktailresponse.js"), exports);
|
|
28
28
|
__exportStar(require("./createbasinrequest.js"), exports);
|
|
29
29
|
__exportStar(require("./createstreamrequest.js"), exports);
|
|
30
|
+
__exportStar(require("./formatoption.js"), exports);
|
|
30
31
|
__exportStar(require("./header.js"), exports);
|
|
31
32
|
__exportStar(require("./listbasinsresponse.js"), exports);
|
|
32
33
|
__exportStar(require("./liststreamsresponse.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,8CAA4B;AAC5B,0DAAwC;AACxC,2DAAyC;AACzC,8CAA4B;AAC5B,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,uDAAqC;AACrC,4DAA0C;AAC1C,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,oDAAkC;AAClC,8CAA4B;AAC5B,0DAAwC;AACxC,2DAAyC;AACzC,8CAA4B;AAC5B,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,uDAAqC;AACrC,4DAA0C;AAC1C,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC"}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import * as components from "../components/index.js";
|
|
5
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
5
|
export declare const AppendServerList: readonly ["https://{basin}.b.aws.s2.dev/v1alpha"];
|
|
7
|
-
export declare const Header1: {
|
|
8
|
-
readonly Json: "json";
|
|
9
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
10
|
-
};
|
|
11
|
-
export type Header1 = ClosedEnum<typeof Header1>;
|
|
12
6
|
/**
|
|
13
7
|
* json: utf-8 plaintext data.
|
|
14
8
|
*
|
|
15
9
|
* @remarks
|
|
16
10
|
* json-binsafe: base64 encoded binary data.
|
|
17
11
|
*/
|
|
18
|
-
export type HeaderS2Format =
|
|
12
|
+
export type HeaderS2Format = components.FormatOption;
|
|
19
13
|
export type AppendRequest = {
|
|
20
14
|
/**
|
|
21
15
|
* json: utf-8 plaintext data.
|
|
@@ -23,7 +17,7 @@ export type AppendRequest = {
|
|
|
23
17
|
* @remarks
|
|
24
18
|
* json-binsafe: base64 encoded binary data.
|
|
25
19
|
*/
|
|
26
|
-
s2Format?:
|
|
20
|
+
s2Format?: components.FormatOption | undefined;
|
|
27
21
|
/**
|
|
28
22
|
* Name of the stream.
|
|
29
23
|
*/
|
|
@@ -31,26 +25,6 @@ export type AppendRequest = {
|
|
|
31
25
|
appendInput: components.AppendInput;
|
|
32
26
|
};
|
|
33
27
|
/** @internal */
|
|
34
|
-
export declare const Header1$inboundSchema: z.ZodNativeEnum<typeof Header1>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const Header1$outboundSchema: z.ZodNativeEnum<typeof Header1>;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export declare namespace Header1$ {
|
|
42
|
-
/** @deprecated use `Header1$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
44
|
-
readonly Json: "json";
|
|
45
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
46
|
-
}>;
|
|
47
|
-
/** @deprecated use `Header1$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
49
|
-
readonly Json: "json";
|
|
50
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
51
|
-
}>;
|
|
52
|
-
}
|
|
53
|
-
/** @internal */
|
|
54
28
|
export declare const HeaderS2Format$inboundSchema: z.ZodType<HeaderS2Format, z.ZodTypeDef, unknown>;
|
|
55
29
|
/** @internal */
|
|
56
30
|
export type HeaderS2Format$Outbound = string;
|
|
@@ -62,9 +36,9 @@ export declare const HeaderS2Format$outboundSchema: z.ZodType<HeaderS2Format$Out
|
|
|
62
36
|
*/
|
|
63
37
|
export declare namespace HeaderS2Format$ {
|
|
64
38
|
/** @deprecated use `HeaderS2Format$inboundSchema` instead. */
|
|
65
|
-
const inboundSchema: z.ZodType<
|
|
39
|
+
const inboundSchema: z.ZodType<components.FormatOption, z.ZodTypeDef, unknown>;
|
|
66
40
|
/** @deprecated use `HeaderS2Format$outboundSchema` instead. */
|
|
67
|
-
const outboundSchema: z.ZodType<string, z.ZodTypeDef,
|
|
41
|
+
const outboundSchema: z.ZodType<string, z.ZodTypeDef, components.FormatOption>;
|
|
68
42
|
/** @deprecated use `HeaderS2Format$Outbound` instead. */
|
|
69
43
|
type Outbound = HeaderS2Format$Outbound;
|
|
70
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"append.d.ts","sourceRoot":"","s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ED,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,CAAC,oBAAoB,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAUb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.AppendRequest$ = exports.AppendRequest$outboundSchema = exports.AppendRequest$inboundSchema = exports.HeaderS2Format$ = exports.HeaderS2Format$outboundSchema = exports.HeaderS2Format$inboundSchema = exports.
|
|
39
|
+
exports.AppendRequest$ = exports.AppendRequest$outboundSchema = exports.AppendRequest$inboundSchema = exports.HeaderS2Format$ = exports.HeaderS2Format$outboundSchema = exports.HeaderS2Format$inboundSchema = exports.AppendServerList = void 0;
|
|
40
40
|
exports.headerS2FormatToJSON = headerS2FormatToJSON;
|
|
41
41
|
exports.headerS2FormatFromJSON = headerS2FormatFromJSON;
|
|
42
42
|
exports.appendRequestToJSON = appendRequestToJSON;
|
|
@@ -51,30 +51,10 @@ exports.AppendServerList = [
|
|
|
51
51
|
*/
|
|
52
52
|
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
53
53
|
];
|
|
54
|
-
exports.Header1 = {
|
|
55
|
-
Json: "json",
|
|
56
|
-
JsonBinsafe: "json-binsafe",
|
|
57
|
-
};
|
|
58
54
|
/** @internal */
|
|
59
|
-
exports.
|
|
60
|
-
.nativeEnum(exports.Header1);
|
|
55
|
+
exports.HeaderS2Format$inboundSchema = components.FormatOption$inboundSchema;
|
|
61
56
|
/** @internal */
|
|
62
|
-
exports.
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
var Header1$;
|
|
68
|
-
(function (Header1$) {
|
|
69
|
-
/** @deprecated use `Header1$inboundSchema` instead. */
|
|
70
|
-
Header1$.inboundSchema = exports.Header1$inboundSchema;
|
|
71
|
-
/** @deprecated use `Header1$outboundSchema` instead. */
|
|
72
|
-
Header1$.outboundSchema = exports.Header1$outboundSchema;
|
|
73
|
-
})(Header1$ || (exports.Header1$ = Header1$ = {}));
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.HeaderS2Format$inboundSchema = exports.Header1$inboundSchema;
|
|
76
|
-
/** @internal */
|
|
77
|
-
exports.HeaderS2Format$outboundSchema = exports.Header1$outboundSchema;
|
|
57
|
+
exports.HeaderS2Format$outboundSchema = components.FormatOption$outboundSchema;
|
|
78
58
|
/**
|
|
79
59
|
* @internal
|
|
80
60
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -94,7 +74,7 @@ function headerS2FormatFromJSON(jsonString) {
|
|
|
94
74
|
}
|
|
95
75
|
/** @internal */
|
|
96
76
|
exports.AppendRequest$inboundSchema = z.object({
|
|
97
|
-
"s2-format":
|
|
77
|
+
"s2-format": components.FormatOption$inboundSchema.optional(),
|
|
98
78
|
stream: z.string(),
|
|
99
79
|
AppendInput: components.AppendInput$inboundSchema,
|
|
100
80
|
}).transform((v) => {
|
|
@@ -105,7 +85,7 @@ exports.AppendRequest$inboundSchema = z.object({
|
|
|
105
85
|
});
|
|
106
86
|
/** @internal */
|
|
107
87
|
exports.AppendRequest$outboundSchema = z.object({
|
|
108
|
-
s2Format:
|
|
88
|
+
s2Format: components.FormatOption$outboundSchema.optional(),
|
|
109
89
|
stream: z.string(),
|
|
110
90
|
appendInput: components.AppendInput$outboundSchema,
|
|
111
91
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append.js","sourceRoot":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"append.js","sourceRoot":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEH,oDAEC;AAED,wDAQC;AAsDD,kDAEC;AAED,sDAQC;AAjJD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAGxC,QAAA,gBAAgB,GAAG;IAC9B;;OAEG;IACH,sCAAsC;CAC9B,CAAC;AAyBX,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,UAAU,CAAC,0BAA0B,CAAC;AAK1C,gBAAgB;AACH,QAAA,6BAA6B,GAItC,UAAU,CAAC,2BAA2B,CAAC;AAE3C;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+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,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { EventStream } from "../../lib/event-streams.js";
|
|
3
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
4
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
5
4
|
import * as components from "../components/index.js";
|
|
6
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -18,18 +17,13 @@ export type Limit = {
|
|
|
18
17
|
*/
|
|
19
18
|
count?: number | null | undefined;
|
|
20
19
|
};
|
|
21
|
-
export declare const One: {
|
|
22
|
-
readonly Json: "json";
|
|
23
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
24
|
-
};
|
|
25
|
-
export type One = ClosedEnum<typeof One>;
|
|
26
20
|
/**
|
|
27
21
|
* json: utf-8 plaintext data.
|
|
28
22
|
*
|
|
29
23
|
* @remarks
|
|
30
24
|
* json-binsafe: base64 encoded binary data.
|
|
31
25
|
*/
|
|
32
|
-
export type S2Format =
|
|
26
|
+
export type S2Format = components.FormatOption;
|
|
33
27
|
export type ReadRequest = {
|
|
34
28
|
/**
|
|
35
29
|
* Starting sequence number (inclusive).
|
|
@@ -45,7 +39,7 @@ export type ReadRequest = {
|
|
|
45
39
|
* @remarks
|
|
46
40
|
* json-binsafe: base64 encoded binary data.
|
|
47
41
|
*/
|
|
48
|
-
s2Format?:
|
|
42
|
+
s2Format?: components.FormatOption | undefined;
|
|
49
43
|
/**
|
|
50
44
|
* Name of the stream.
|
|
51
45
|
*/
|
|
@@ -76,26 +70,6 @@ export declare namespace Limit$ {
|
|
|
76
70
|
export declare function limitToJSON(limit: Limit): string;
|
|
77
71
|
export declare function limitFromJSON(jsonString: string): SafeParseResult<Limit, SDKValidationError>;
|
|
78
72
|
/** @internal */
|
|
79
|
-
export declare const One$inboundSchema: z.ZodNativeEnum<typeof One>;
|
|
80
|
-
/** @internal */
|
|
81
|
-
export declare const One$outboundSchema: z.ZodNativeEnum<typeof One>;
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export declare namespace One$ {
|
|
87
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
88
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
89
|
-
readonly Json: "json";
|
|
90
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
91
|
-
}>;
|
|
92
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
93
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
94
|
-
readonly Json: "json";
|
|
95
|
-
readonly JsonBinsafe: "json-binsafe";
|
|
96
|
-
}>;
|
|
97
|
-
}
|
|
98
|
-
/** @internal */
|
|
99
73
|
export declare const S2Format$inboundSchema: z.ZodType<S2Format, z.ZodTypeDef, unknown>;
|
|
100
74
|
/** @internal */
|
|
101
75
|
export type S2Format$Outbound = string;
|
|
@@ -107,9 +81,9 @@ export declare const S2Format$outboundSchema: z.ZodType<S2Format$Outbound, z.Zod
|
|
|
107
81
|
*/
|
|
108
82
|
export declare namespace S2Format$ {
|
|
109
83
|
/** @deprecated use `S2Format$inboundSchema` instead. */
|
|
110
|
-
const inboundSchema: z.ZodType<
|
|
84
|
+
const inboundSchema: z.ZodType<components.FormatOption, z.ZodTypeDef, unknown>;
|
|
111
85
|
/** @deprecated use `S2Format$outboundSchema` instead. */
|
|
112
|
-
const outboundSchema: z.ZodType<string, z.ZodTypeDef,
|
|
86
|
+
const outboundSchema: z.ZodType<string, z.ZodTypeDef, components.FormatOption>;
|
|
113
87
|
/** @deprecated use `S2Format$Outbound` instead. */
|
|
114
88
|
type Outbound = S2Format$Outbound;
|
|
115
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/models/operations/read.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/models/operations/read.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,cAAc,mDAKjB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,YAAY,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,E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,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,eAAe,GAAG,KAAK,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAC4C,CAAC;AAE3D;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa,gDAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc,8DAA8B,CAAC;IAC1D,uDAAuD;IACvD,KAAY,QAAQ,GAAG,qBAAqB,CAAC;CAC9C;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ReadResponse$ = exports.ReadResponse$outboundSchema = exports.ReadResponse$inboundSchema = exports.ReadRequest$ = exports.ReadRequest$outboundSchema = exports.ReadRequest$inboundSchema = exports.S2Format$ = exports.S2Format$outboundSchema = exports.S2Format$inboundSchema = exports.
|
|
39
|
+
exports.ReadResponse$ = exports.ReadResponse$outboundSchema = exports.ReadResponse$inboundSchema = exports.ReadRequest$ = exports.ReadRequest$outboundSchema = exports.ReadRequest$inboundSchema = exports.S2Format$ = exports.S2Format$outboundSchema = exports.S2Format$inboundSchema = exports.Limit$ = exports.Limit$outboundSchema = exports.Limit$inboundSchema = exports.ReadServerList = void 0;
|
|
40
40
|
exports.limitToJSON = limitToJSON;
|
|
41
41
|
exports.limitFromJSON = limitFromJSON;
|
|
42
42
|
exports.s2FormatToJSON = s2FormatToJSON;
|
|
@@ -56,10 +56,6 @@ exports.ReadServerList = [
|
|
|
56
56
|
*/
|
|
57
57
|
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
58
58
|
];
|
|
59
|
-
exports.One = {
|
|
60
|
-
Json: "json",
|
|
61
|
-
JsonBinsafe: "json-binsafe",
|
|
62
|
-
};
|
|
63
59
|
/** @internal */
|
|
64
60
|
exports.Limit$inboundSchema = z
|
|
65
61
|
.object({
|
|
@@ -89,24 +85,9 @@ function limitFromJSON(jsonString) {
|
|
|
89
85
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Limit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Limit' from JSON`);
|
|
90
86
|
}
|
|
91
87
|
/** @internal */
|
|
92
|
-
exports.
|
|
88
|
+
exports.S2Format$inboundSchema = components.FormatOption$inboundSchema;
|
|
93
89
|
/** @internal */
|
|
94
|
-
exports.
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
-
*/
|
|
99
|
-
var One$;
|
|
100
|
-
(function (One$) {
|
|
101
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
102
|
-
One$.inboundSchema = exports.One$inboundSchema;
|
|
103
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
104
|
-
One$.outboundSchema = exports.One$outboundSchema;
|
|
105
|
-
})(One$ || (exports.One$ = One$ = {}));
|
|
106
|
-
/** @internal */
|
|
107
|
-
exports.S2Format$inboundSchema = exports.One$inboundSchema;
|
|
108
|
-
/** @internal */
|
|
109
|
-
exports.S2Format$outboundSchema = exports.One$outboundSchema;
|
|
90
|
+
exports.S2Format$outboundSchema = components.FormatOption$outboundSchema;
|
|
110
91
|
/**
|
|
111
92
|
* @internal
|
|
112
93
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -128,7 +109,7 @@ function s2FormatFromJSON(jsonString) {
|
|
|
128
109
|
exports.ReadRequest$inboundSchema = z.object({
|
|
129
110
|
start_seq_num: z.number().int().optional(),
|
|
130
111
|
limit: z.lazy(() => exports.Limit$inboundSchema).optional(),
|
|
131
|
-
"s2-format":
|
|
112
|
+
"s2-format": components.FormatOption$inboundSchema.optional(),
|
|
132
113
|
stream: z.string(),
|
|
133
114
|
}).transform((v) => {
|
|
134
115
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -140,7 +121,7 @@ exports.ReadRequest$inboundSchema = z.object({
|
|
|
140
121
|
exports.ReadRequest$outboundSchema = z.object({
|
|
141
122
|
startSeqNum: z.number().int().optional(),
|
|
142
123
|
limit: z.lazy(() => exports.Limit$outboundSchema).optional(),
|
|
143
|
-
s2Format:
|
|
124
|
+
s2Format: components.FormatOption$outboundSchema.optional(),
|
|
144
125
|
stream: z.string(),
|
|
145
126
|
}).transform((v) => {
|
|
146
127
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/models/operations/read.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/models/operations/read.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,kCAEC;AAED,sCAQC;AAgCD,wCAEC;AAED,4CAQC;AAyDD,8CAEC;AAED,kDAQC;AA2CD,gDAEC;AAED,oDAQC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UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;QAC1D,OAAO,IAAI,8BAAW,CAAC;YACrB,MAAM;YACN,OAAO,CAAC,QAAQ;gBACd,MAAM,MAAM,GAAG,UAAU,CAAC,0BAA0B,CAAC;gBACrD,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC;CACH,CAAC,CAAC;AAKH,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAE3D;;;GAGG;AACH,IAAiB,aAAa,CAO7B;AAPD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAG5D,CAAC,EAPgB,aAAa,6BAAb,aAAa,QAO7B;AAED,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
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.2.
|
|
58
|
-
genVersion: "2.503.
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
57
|
+
sdkVersion: "0.2.8",
|
|
58
|
+
genVersion: "2.503.2",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 0.2.8 2.503.2 1.0.0 @s2-dev/streamstore",
|
|
60
60
|
} as const;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
export const FormatOption = {
|
|
9
|
+
Json: "json",
|
|
10
|
+
JsonBinsafe: "json-binsafe",
|
|
11
|
+
} as const;
|
|
12
|
+
export type FormatOption = ClosedEnum<typeof FormatOption>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const FormatOption$inboundSchema: z.ZodNativeEnum<typeof FormatOption> =
|
|
16
|
+
z.nativeEnum(FormatOption);
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const FormatOption$outboundSchema: z.ZodNativeEnum<typeof FormatOption> =
|
|
20
|
+
FormatOption$inboundSchema;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export namespace FormatOption$ {
|
|
27
|
+
/** @deprecated use `FormatOption$inboundSchema` instead. */
|
|
28
|
+
export const inboundSchema = FormatOption$inboundSchema;
|
|
29
|
+
/** @deprecated use `FormatOption$outboundSchema` instead. */
|
|
30
|
+
export const outboundSchema = FormatOption$outboundSchema;
|
|
31
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from "./basinstate.js";
|
|
|
12
12
|
export * from "./checktailresponse.js";
|
|
13
13
|
export * from "./createbasinrequest.js";
|
|
14
14
|
export * from "./createstreamrequest.js";
|
|
15
|
+
export * from "./formatoption.js";
|
|
15
16
|
export * from "./header.js";
|
|
16
17
|
export * from "./listbasinsresponse.js";
|
|
17
18
|
export * from "./liststreamsresponse.js";
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -17,19 +16,13 @@ export const AppendServerList = [
|
|
|
17
16
|
"https://{basin}.b.aws.s2.dev/v1alpha",
|
|
18
17
|
] as const;
|
|
19
18
|
|
|
20
|
-
export const Header1 = {
|
|
21
|
-
Json: "json",
|
|
22
|
-
JsonBinsafe: "json-binsafe",
|
|
23
|
-
} as const;
|
|
24
|
-
export type Header1 = ClosedEnum<typeof Header1>;
|
|
25
|
-
|
|
26
19
|
/**
|
|
27
20
|
* json: utf-8 plaintext data.
|
|
28
21
|
*
|
|
29
22
|
* @remarks
|
|
30
23
|
* json-binsafe: base64 encoded binary data.
|
|
31
24
|
*/
|
|
32
|
-
export type HeaderS2Format =
|
|
25
|
+
export type HeaderS2Format = components.FormatOption;
|
|
33
26
|
|
|
34
27
|
export type AppendRequest = {
|
|
35
28
|
/**
|
|
@@ -38,7 +31,7 @@ export type AppendRequest = {
|
|
|
38
31
|
* @remarks
|
|
39
32
|
* json-binsafe: base64 encoded binary data.
|
|
40
33
|
*/
|
|
41
|
-
s2Format?:
|
|
34
|
+
s2Format?: components.FormatOption | undefined;
|
|
42
35
|
/**
|
|
43
36
|
* Name of the stream.
|
|
44
37
|
*/
|
|
@@ -46,31 +39,12 @@ export type AppendRequest = {
|
|
|
46
39
|
appendInput: components.AppendInput;
|
|
47
40
|
};
|
|
48
41
|
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const Header1$inboundSchema: z.ZodNativeEnum<typeof Header1> = z
|
|
51
|
-
.nativeEnum(Header1);
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const Header1$outboundSchema: z.ZodNativeEnum<typeof Header1> =
|
|
55
|
-
Header1$inboundSchema;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export namespace Header1$ {
|
|
62
|
-
/** @deprecated use `Header1$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema = Header1$inboundSchema;
|
|
64
|
-
/** @deprecated use `Header1$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema = Header1$outboundSchema;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
42
|
/** @internal */
|
|
69
43
|
export const HeaderS2Format$inboundSchema: z.ZodType<
|
|
70
44
|
HeaderS2Format,
|
|
71
45
|
z.ZodTypeDef,
|
|
72
46
|
unknown
|
|
73
|
-
> =
|
|
47
|
+
> = components.FormatOption$inboundSchema;
|
|
74
48
|
|
|
75
49
|
/** @internal */
|
|
76
50
|
export type HeaderS2Format$Outbound = string;
|
|
@@ -80,7 +54,7 @@ export const HeaderS2Format$outboundSchema: z.ZodType<
|
|
|
80
54
|
HeaderS2Format$Outbound,
|
|
81
55
|
z.ZodTypeDef,
|
|
82
56
|
HeaderS2Format
|
|
83
|
-
> =
|
|
57
|
+
> = components.FormatOption$outboundSchema;
|
|
84
58
|
|
|
85
59
|
/**
|
|
86
60
|
* @internal
|
|
@@ -115,7 +89,7 @@ export const AppendRequest$inboundSchema: z.ZodType<
|
|
|
115
89
|
z.ZodTypeDef,
|
|
116
90
|
unknown
|
|
117
91
|
> = z.object({
|
|
118
|
-
"s2-format":
|
|
92
|
+
"s2-format": components.FormatOption$inboundSchema.optional(),
|
|
119
93
|
stream: z.string(),
|
|
120
94
|
AppendInput: components.AppendInput$inboundSchema,
|
|
121
95
|
}).transform((v) => {
|
|
@@ -138,7 +112,7 @@ export const AppendRequest$outboundSchema: z.ZodType<
|
|
|
138
112
|
z.ZodTypeDef,
|
|
139
113
|
AppendRequest
|
|
140
114
|
> = z.object({
|
|
141
|
-
s2Format:
|
|
115
|
+
s2Format: components.FormatOption$outboundSchema.optional(),
|
|
142
116
|
stream: z.string(),
|
|
143
117
|
appendInput: components.AppendInput$outboundSchema,
|
|
144
118
|
}).transform((v) => {
|
|
@@ -6,7 +6,6 @@ import * as z from "zod";
|
|
|
6
6
|
import { EventStream } from "../../lib/event-streams.js";
|
|
7
7
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
10
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
10
|
import * as components from "../components/index.js";
|
|
12
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -32,19 +31,13 @@ export type Limit = {
|
|
|
32
31
|
count?: number | null | undefined;
|
|
33
32
|
};
|
|
34
33
|
|
|
35
|
-
export const One = {
|
|
36
|
-
Json: "json",
|
|
37
|
-
JsonBinsafe: "json-binsafe",
|
|
38
|
-
} as const;
|
|
39
|
-
export type One = ClosedEnum<typeof One>;
|
|
40
|
-
|
|
41
34
|
/**
|
|
42
35
|
* json: utf-8 plaintext data.
|
|
43
36
|
*
|
|
44
37
|
* @remarks
|
|
45
38
|
* json-binsafe: base64 encoded binary data.
|
|
46
39
|
*/
|
|
47
|
-
export type S2Format =
|
|
40
|
+
export type S2Format = components.FormatOption;
|
|
48
41
|
|
|
49
42
|
export type ReadRequest = {
|
|
50
43
|
/**
|
|
@@ -61,7 +54,7 @@ export type ReadRequest = {
|
|
|
61
54
|
* @remarks
|
|
62
55
|
* json-binsafe: base64 encoded binary data.
|
|
63
56
|
*/
|
|
64
|
-
s2Format?:
|
|
57
|
+
s2Format?: components.FormatOption | undefined;
|
|
65
58
|
/**
|
|
66
59
|
* Name of the stream.
|
|
67
60
|
*/
|
|
@@ -122,30 +115,12 @@ export function limitFromJSON(
|
|
|
122
115
|
);
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
|
127
|
-
|
|
128
|
-
/** @internal */
|
|
129
|
-
export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
|
|
130
|
-
One$inboundSchema;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
-
*/
|
|
136
|
-
export namespace One$ {
|
|
137
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
138
|
-
export const inboundSchema = One$inboundSchema;
|
|
139
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
140
|
-
export const outboundSchema = One$outboundSchema;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
118
|
/** @internal */
|
|
144
119
|
export const S2Format$inboundSchema: z.ZodType<
|
|
145
120
|
S2Format,
|
|
146
121
|
z.ZodTypeDef,
|
|
147
122
|
unknown
|
|
148
|
-
> =
|
|
123
|
+
> = components.FormatOption$inboundSchema;
|
|
149
124
|
|
|
150
125
|
/** @internal */
|
|
151
126
|
export type S2Format$Outbound = string;
|
|
@@ -155,7 +130,7 @@ export const S2Format$outboundSchema: z.ZodType<
|
|
|
155
130
|
S2Format$Outbound,
|
|
156
131
|
z.ZodTypeDef,
|
|
157
132
|
S2Format
|
|
158
|
-
> =
|
|
133
|
+
> = components.FormatOption$outboundSchema;
|
|
159
134
|
|
|
160
135
|
/**
|
|
161
136
|
* @internal
|
|
@@ -192,7 +167,7 @@ export const ReadRequest$inboundSchema: z.ZodType<
|
|
|
192
167
|
> = z.object({
|
|
193
168
|
start_seq_num: z.number().int().optional(),
|
|
194
169
|
limit: z.lazy(() => Limit$inboundSchema).optional(),
|
|
195
|
-
"s2-format":
|
|
170
|
+
"s2-format": components.FormatOption$inboundSchema.optional(),
|
|
196
171
|
stream: z.string(),
|
|
197
172
|
}).transform((v) => {
|
|
198
173
|
return remap$(v, {
|
|
@@ -217,7 +192,7 @@ export const ReadRequest$outboundSchema: z.ZodType<
|
|
|
217
192
|
> = z.object({
|
|
218
193
|
startSeqNum: z.number().int().optional(),
|
|
219
194
|
limit: z.lazy(() => Limit$outboundSchema).optional(),
|
|
220
|
-
s2Format:
|
|
195
|
+
s2Format: components.FormatOption$outboundSchema.optional(),
|
|
221
196
|
stream: z.string(),
|
|
222
197
|
}).transform((v) => {
|
|
223
198
|
return remap$(v, {
|