@s2-dev/streamstore 0.2.6 → 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/README.md +0 -3
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/assignment.d.ts +28 -28
- package/models/components/assignment.d.ts.map +1 -1
- package/models/components/assignment.js +36 -36
- package/models/components/assignment.js.map +1 -1
- 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/components/output.d.ts +41 -41
- package/models/components/output.d.ts.map +1 -1
- package/models/components/output.js +53 -53
- package/models/components/output.js.map +1 -1
- package/models/components/readresponse.d.ts +28 -28
- package/models/components/readresponse.d.ts.map +1 -1
- package/models/components/readresponse.js +36 -35
- package/models/components/readresponse.js.map +1 -1
- package/models/components/retentionpolicy.d.ts +17 -17
- package/models/components/retentionpolicy.js +18 -18
- 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/assignment.ts +46 -49
- package/src/models/components/formatoption.ts +31 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/output.ts +86 -80
- package/src/models/components/readresponse.ts +54 -53
- package/src/models/components/retentionpolicy.ts +21 -21
- package/src/models/operations/append.ts +6 -32
- package/src/models/operations/read.ts +6 -31
|
@@ -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":"","sources":["../../src/models/operations/append.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGz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C,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,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS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,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,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS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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;AAvRD,uCAAyB;AACzB,iEAAyD;AACzD,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAGx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AAO,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.
|
|
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;
|
|
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Explicit cell assignment, if it is owned by the account.
|
|
12
12
|
*/
|
|
13
|
-
export type
|
|
13
|
+
export type Cell = {
|
|
14
14
|
/**
|
|
15
15
|
* Explicit cell assignment, if it is owned by the account.
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export type Two = {
|
|
|
20
20
|
/**
|
|
21
21
|
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
22
22
|
*/
|
|
23
|
-
export type
|
|
23
|
+
export type Scope = {
|
|
24
24
|
/**
|
|
25
25
|
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
26
26
|
*/
|
|
@@ -30,22 +30,22 @@ export type Assignment1 = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
32
32
|
*/
|
|
33
|
-
export type Assignment =
|
|
33
|
+
export type Assignment = Scope | Cell;
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
|
-
export const
|
|
36
|
+
export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
37
37
|
.object({
|
|
38
38
|
cell: z.string(),
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
/** @internal */
|
|
42
|
-
export type
|
|
42
|
+
export type Cell$Outbound = {
|
|
43
43
|
cell: string;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
/** @internal */
|
|
47
|
-
export const
|
|
48
|
-
.object({
|
|
47
|
+
export const Cell$outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell> =
|
|
48
|
+
z.object({
|
|
49
49
|
cell: z.string(),
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -53,48 +53,45 @@ export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
|
53
53
|
* @internal
|
|
54
54
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
55
|
*/
|
|
56
|
-
export namespace
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
export const inboundSchema =
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
export const outboundSchema =
|
|
61
|
-
/** @deprecated use `
|
|
62
|
-
export type Outbound =
|
|
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
63
|
}
|
|
64
64
|
|
|
65
|
-
export function
|
|
66
|
-
return JSON.stringify(
|
|
65
|
+
export function cellToJSON(cell: Cell): string {
|
|
66
|
+
return JSON.stringify(Cell$outboundSchema.parse(cell));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
69
|
+
export function cellFromJSON(
|
|
70
70
|
jsonString: string,
|
|
71
|
-
): SafeParseResult<
|
|
71
|
+
): SafeParseResult<Cell, SDKValidationError> {
|
|
72
72
|
return safeParse(
|
|
73
73
|
jsonString,
|
|
74
|
-
(x) =>
|
|
75
|
-
`Failed to parse '
|
|
74
|
+
(x) => Cell$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'Cell' from JSON`,
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/** @internal */
|
|
80
|
-
export const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
> = z.object({
|
|
85
|
-
scope: z.string(),
|
|
86
|
-
});
|
|
80
|
+
export const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown> = z
|
|
81
|
+
.object({
|
|
82
|
+
scope: z.string(),
|
|
83
|
+
});
|
|
87
84
|
|
|
88
85
|
/** @internal */
|
|
89
|
-
export type
|
|
86
|
+
export type Scope$Outbound = {
|
|
90
87
|
scope: string;
|
|
91
88
|
};
|
|
92
89
|
|
|
93
90
|
/** @internal */
|
|
94
|
-
export const
|
|
95
|
-
|
|
91
|
+
export const Scope$outboundSchema: z.ZodType<
|
|
92
|
+
Scope$Outbound,
|
|
96
93
|
z.ZodTypeDef,
|
|
97
|
-
|
|
94
|
+
Scope
|
|
98
95
|
> = z.object({
|
|
99
96
|
scope: z.string(),
|
|
100
97
|
});
|
|
@@ -103,26 +100,26 @@ export const Assignment1$outboundSchema: z.ZodType<
|
|
|
103
100
|
* @internal
|
|
104
101
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
102
|
*/
|
|
106
|
-
export namespace
|
|
107
|
-
/** @deprecated use `
|
|
108
|
-
export const inboundSchema =
|
|
109
|
-
/** @deprecated use `
|
|
110
|
-
export const outboundSchema =
|
|
111
|
-
/** @deprecated use `
|
|
112
|
-
export type Outbound =
|
|
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;
|
|
113
110
|
}
|
|
114
111
|
|
|
115
|
-
export function
|
|
116
|
-
return JSON.stringify(
|
|
112
|
+
export function scopeToJSON(scope: Scope): string {
|
|
113
|
+
return JSON.stringify(Scope$outboundSchema.parse(scope));
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
export function
|
|
116
|
+
export function scopeFromJSON(
|
|
120
117
|
jsonString: string,
|
|
121
|
-
): SafeParseResult<
|
|
118
|
+
): SafeParseResult<Scope, SDKValidationError> {
|
|
122
119
|
return safeParse(
|
|
123
120
|
jsonString,
|
|
124
|
-
(x) =>
|
|
125
|
-
`Failed to parse '
|
|
121
|
+
(x) => Scope$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'Scope' from JSON`,
|
|
126
123
|
);
|
|
127
124
|
}
|
|
128
125
|
|
|
@@ -132,12 +129,12 @@ export const Assignment$inboundSchema: z.ZodType<
|
|
|
132
129
|
z.ZodTypeDef,
|
|
133
130
|
unknown
|
|
134
131
|
> = z.union([
|
|
135
|
-
z.lazy(() =>
|
|
136
|
-
z.lazy(() =>
|
|
132
|
+
z.lazy(() => Scope$inboundSchema),
|
|
133
|
+
z.lazy(() => Cell$inboundSchema),
|
|
137
134
|
]);
|
|
138
135
|
|
|
139
136
|
/** @internal */
|
|
140
|
-
export type Assignment$Outbound =
|
|
137
|
+
export type Assignment$Outbound = Scope$Outbound | Cell$Outbound;
|
|
141
138
|
|
|
142
139
|
/** @internal */
|
|
143
140
|
export const Assignment$outboundSchema: z.ZodType<
|
|
@@ -145,8 +142,8 @@ export const Assignment$outboundSchema: z.ZodType<
|
|
|
145
142
|
z.ZodTypeDef,
|
|
146
143
|
Assignment
|
|
147
144
|
> = z.union([
|
|
148
|
-
z.lazy(() =>
|
|
149
|
-
z.lazy(() =>
|
|
145
|
+
z.lazy(() => Scope$outboundSchema),
|
|
146
|
+
z.lazy(() => Cell$outboundSchema),
|
|
150
147
|
]);
|
|
151
148
|
|
|
152
149
|
/**
|
|
@@ -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";
|