@s2-dev/streamstore 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/assignment.ts +46 -49
- 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/README.md
CHANGED
|
@@ -11,9 +11,6 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
<br /><br />
|
|
14
|
-
> [!IMPORTANT]
|
|
15
|
-
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/stream-store/s2). Delete this section before > publishing to a package manager.
|
|
16
|
-
|
|
17
14
|
<!-- Start Summary [summary] -->
|
|
18
15
|
## Summary
|
|
19
16
|
|
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.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
30
|
+
readonly sdkVersion: "0.2.7";
|
|
31
|
+
readonly genVersion: "2.503.0";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.7 2.503.0 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.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
31
|
+
sdkVersion: "0.2.7",
|
|
32
|
+
genVersion: "2.503.0",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.2.7 2.503.0 1.0.0 @s2-dev/streamstore",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Explicit cell assignment, if it is owned by the account.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type Cell = {
|
|
8
8
|
/**
|
|
9
9
|
* Explicit cell assignment, if it is owned by the account.
|
|
10
10
|
*/
|
|
@@ -13,7 +13,7 @@ export type Two = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
15
15
|
*/
|
|
16
|
-
export type
|
|
16
|
+
export type Scope = {
|
|
17
17
|
/**
|
|
18
18
|
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
19
19
|
*/
|
|
@@ -22,55 +22,55 @@ export type Assignment1 = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
24
24
|
*/
|
|
25
|
-
export type Assignment =
|
|
25
|
+
export type Assignment = Scope | Cell;
|
|
26
26
|
/** @internal */
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
28
28
|
/** @internal */
|
|
29
|
-
export type
|
|
29
|
+
export type Cell$Outbound = {
|
|
30
30
|
cell: string;
|
|
31
31
|
};
|
|
32
32
|
/** @internal */
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const Cell$outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
34
34
|
/**
|
|
35
35
|
* @internal
|
|
36
36
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
37
|
*/
|
|
38
|
-
export declare namespace
|
|
39
|
-
/** @deprecated use `
|
|
40
|
-
const inboundSchema: z.ZodType<
|
|
41
|
-
/** @deprecated use `
|
|
42
|
-
const outboundSchema: z.ZodType<
|
|
43
|
-
/** @deprecated use `
|
|
44
|
-
type Outbound =
|
|
38
|
+
export declare namespace Cell$ {
|
|
39
|
+
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
40
|
+
const inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
41
|
+
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
42
|
+
const outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
43
|
+
/** @deprecated use `Cell$Outbound` instead. */
|
|
44
|
+
type Outbound = Cell$Outbound;
|
|
45
45
|
}
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
46
|
+
export declare function cellToJSON(cell: Cell): string;
|
|
47
|
+
export declare function cellFromJSON(jsonString: string): SafeParseResult<Cell, SDKValidationError>;
|
|
48
48
|
/** @internal */
|
|
49
|
-
export declare const
|
|
49
|
+
export declare const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
50
50
|
/** @internal */
|
|
51
|
-
export type
|
|
51
|
+
export type Scope$Outbound = {
|
|
52
52
|
scope: string;
|
|
53
53
|
};
|
|
54
54
|
/** @internal */
|
|
55
|
-
export declare const
|
|
55
|
+
export declare const Scope$outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
56
56
|
/**
|
|
57
57
|
* @internal
|
|
58
58
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
59
|
*/
|
|
60
|
-
export declare namespace
|
|
61
|
-
/** @deprecated use `
|
|
62
|
-
const inboundSchema: z.ZodType<
|
|
63
|
-
/** @deprecated use `
|
|
64
|
-
const outboundSchema: z.ZodType<
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
type Outbound =
|
|
60
|
+
export declare namespace Scope$ {
|
|
61
|
+
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
62
|
+
const inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
63
|
+
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
65
|
+
/** @deprecated use `Scope$Outbound` instead. */
|
|
66
|
+
type Outbound = Scope$Outbound;
|
|
67
67
|
}
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
68
|
+
export declare function scopeToJSON(scope: Scope): string;
|
|
69
|
+
export declare function scopeFromJSON(jsonString: string): SafeParseResult<Scope, SDKValidationError>;
|
|
70
70
|
/** @internal */
|
|
71
71
|
export declare const Assignment$inboundSchema: z.ZodType<Assignment, z.ZodTypeDef, unknown>;
|
|
72
72
|
/** @internal */
|
|
73
|
-
export type Assignment$Outbound =
|
|
73
|
+
export type Assignment$Outbound = Scope$Outbound | Cell$Outbound;
|
|
74
74
|
/** @internal */
|
|
75
75
|
export declare const Assignment$outboundSchema: z.ZodType<Assignment$Outbound, z.ZodTypeDef, Assignment>;
|
|
76
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/models/components/assignment.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;AAErE;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/models/components/assignment.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;AAErE;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAGlE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAGzE,CAAC;AAEL;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa,wCAAqB,CAAC;IAChD,q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AAC,CAAC,UAAU,EACZ,UAAU,CAIV,CAAC;AAEH;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa,8CAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc,0DAA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -36,76 +36,76 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Assignment$ = exports.Assignment$outboundSchema = exports.Assignment$inboundSchema = exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
39
|
+
exports.Assignment$ = exports.Assignment$outboundSchema = exports.Assignment$inboundSchema = exports.Scope$ = exports.Scope$outboundSchema = exports.Scope$inboundSchema = exports.Cell$ = exports.Cell$outboundSchema = exports.Cell$inboundSchema = void 0;
|
|
40
|
+
exports.cellToJSON = cellToJSON;
|
|
41
|
+
exports.cellFromJSON = cellFromJSON;
|
|
42
|
+
exports.scopeToJSON = scopeToJSON;
|
|
43
|
+
exports.scopeFromJSON = scopeFromJSON;
|
|
44
44
|
exports.assignmentToJSON = assignmentToJSON;
|
|
45
45
|
exports.assignmentFromJSON = assignmentFromJSON;
|
|
46
46
|
const z = __importStar(require("zod"));
|
|
47
47
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
48
|
/** @internal */
|
|
49
|
-
exports.
|
|
49
|
+
exports.Cell$inboundSchema = z
|
|
50
50
|
.object({
|
|
51
51
|
cell: z.string(),
|
|
52
52
|
});
|
|
53
53
|
/** @internal */
|
|
54
|
-
exports.
|
|
55
|
-
.object({
|
|
54
|
+
exports.Cell$outboundSchema = z.object({
|
|
56
55
|
cell: z.string(),
|
|
57
56
|
});
|
|
58
57
|
/**
|
|
59
58
|
* @internal
|
|
60
59
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
60
|
*/
|
|
62
|
-
var
|
|
63
|
-
(function (
|
|
64
|
-
/** @deprecated use `
|
|
65
|
-
|
|
66
|
-
/** @deprecated use `
|
|
67
|
-
|
|
68
|
-
})(
|
|
69
|
-
function
|
|
70
|
-
return JSON.stringify(exports.
|
|
61
|
+
var Cell$;
|
|
62
|
+
(function (Cell$) {
|
|
63
|
+
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
64
|
+
Cell$.inboundSchema = exports.Cell$inboundSchema;
|
|
65
|
+
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
66
|
+
Cell$.outboundSchema = exports.Cell$outboundSchema;
|
|
67
|
+
})(Cell$ || (exports.Cell$ = Cell$ = {}));
|
|
68
|
+
function cellToJSON(cell) {
|
|
69
|
+
return JSON.stringify(exports.Cell$outboundSchema.parse(cell));
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
71
|
+
function cellFromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Cell$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Cell' from JSON`);
|
|
74
73
|
}
|
|
75
74
|
/** @internal */
|
|
76
|
-
exports.
|
|
75
|
+
exports.Scope$inboundSchema = z
|
|
76
|
+
.object({
|
|
77
77
|
scope: z.string(),
|
|
78
78
|
});
|
|
79
79
|
/** @internal */
|
|
80
|
-
exports.
|
|
80
|
+
exports.Scope$outboundSchema = z.object({
|
|
81
81
|
scope: z.string(),
|
|
82
82
|
});
|
|
83
83
|
/**
|
|
84
84
|
* @internal
|
|
85
85
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
86
|
*/
|
|
87
|
-
var
|
|
88
|
-
(function (
|
|
89
|
-
/** @deprecated use `
|
|
90
|
-
|
|
91
|
-
/** @deprecated use `
|
|
92
|
-
|
|
93
|
-
})(
|
|
94
|
-
function
|
|
95
|
-
return JSON.stringify(exports.
|
|
87
|
+
var Scope$;
|
|
88
|
+
(function (Scope$) {
|
|
89
|
+
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
90
|
+
Scope$.inboundSchema = exports.Scope$inboundSchema;
|
|
91
|
+
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
92
|
+
Scope$.outboundSchema = exports.Scope$outboundSchema;
|
|
93
|
+
})(Scope$ || (exports.Scope$ = Scope$ = {}));
|
|
94
|
+
function scopeToJSON(scope) {
|
|
95
|
+
return JSON.stringify(exports.Scope$outboundSchema.parse(scope));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
97
|
+
function scopeFromJSON(jsonString) {
|
|
98
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Scope$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scope' from JSON`);
|
|
99
99
|
}
|
|
100
100
|
/** @internal */
|
|
101
101
|
exports.Assignment$inboundSchema = z.union([
|
|
102
|
-
z.lazy(() => exports.
|
|
103
|
-
z.lazy(() => exports.
|
|
102
|
+
z.lazy(() => exports.Scope$inboundSchema),
|
|
103
|
+
z.lazy(() => exports.Cell$inboundSchema),
|
|
104
104
|
]);
|
|
105
105
|
/** @internal */
|
|
106
106
|
exports.Assignment$outboundSchema = z.union([
|
|
107
|
-
z.lazy(() => exports.
|
|
108
|
-
z.lazy(() => exports.
|
|
107
|
+
z.lazy(() => exports.Scope$outboundSchema),
|
|
108
|
+
z.lazy(() => exports.Cell$outboundSchema),
|
|
109
109
|
]);
|
|
110
110
|
/**
|
|
111
111
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../src/models/components/assignment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,
|
|
1
|
+
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../src/models/components/assignment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,gCAEC;AAED,oCAQC;AAmCD,kCAEC;AAED,sCAQC;AAsCD,4CAEC;AAED,gDAQC;AAzKD,uCAAyB;AACzB,qDAAiD;AA6BjD,gBAAgB;AACH,QAAA,kBAAkB,GAA2C,CAAC;KACxE,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,KAAK,CAOrB;AAPD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AAGpD,CAAC,EAPgB,KAAK,qBAAL,KAAK,QAOrB;AAED,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,YAAY,CAC1B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,mBAA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W;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { SequencedRecordBatch, SequencedRecordBatch$Outbound } from "./sequenced
|
|
|
8
8
|
* @remarks
|
|
9
9
|
* If returned in a streaming read session, this will be a terminal reply.
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type NextSeqNum = {
|
|
12
12
|
/**
|
|
13
13
|
* Sequence number for the next record on this stream, in case the requested `start_seq_num` was larger.
|
|
14
14
|
*
|
|
@@ -24,7 +24,7 @@ export type Three = {
|
|
|
24
24
|
* If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted.
|
|
25
25
|
* The client can re-establish the session starting at this sequence number.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type FirstSeqNum = {
|
|
28
28
|
/**
|
|
29
29
|
* Sequence number for the first record on this stream, in case the requested `start_seq_num` is smaller.
|
|
30
30
|
*
|
|
@@ -41,7 +41,7 @@ export type Output2 = {
|
|
|
41
41
|
* This batch can be empty only if a `ReadLimit` was provided in the associated read request, but the first record
|
|
42
42
|
* that could have been returned would violate the limit.
|
|
43
43
|
*/
|
|
44
|
-
export type
|
|
44
|
+
export type Batch = {
|
|
45
45
|
/**
|
|
46
46
|
* A batch of sequenced records.
|
|
47
47
|
*/
|
|
@@ -50,77 +50,77 @@ export type Output1 = {
|
|
|
50
50
|
/**
|
|
51
51
|
* Reply which can be a batch of records, or a sequence number if the request could not be satisfied.
|
|
52
52
|
*/
|
|
53
|
-
export type Output =
|
|
53
|
+
export type Output = Batch | FirstSeqNum | NextSeqNum;
|
|
54
54
|
/** @internal */
|
|
55
|
-
export declare const
|
|
55
|
+
export declare const NextSeqNum$inboundSchema: z.ZodType<NextSeqNum, z.ZodTypeDef, unknown>;
|
|
56
56
|
/** @internal */
|
|
57
|
-
export type
|
|
57
|
+
export type NextSeqNum$Outbound = {
|
|
58
58
|
next_seq_num: number;
|
|
59
59
|
};
|
|
60
60
|
/** @internal */
|
|
61
|
-
export declare const
|
|
61
|
+
export declare const NextSeqNum$outboundSchema: z.ZodType<NextSeqNum$Outbound, z.ZodTypeDef, NextSeqNum>;
|
|
62
62
|
/**
|
|
63
63
|
* @internal
|
|
64
64
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
65
|
*/
|
|
66
|
-
export declare namespace
|
|
67
|
-
/** @deprecated use `
|
|
68
|
-
const inboundSchema: z.ZodType<
|
|
69
|
-
/** @deprecated use `
|
|
70
|
-
const outboundSchema: z.ZodType<
|
|
71
|
-
/** @deprecated use `
|
|
72
|
-
type Outbound =
|
|
66
|
+
export declare namespace NextSeqNum$ {
|
|
67
|
+
/** @deprecated use `NextSeqNum$inboundSchema` instead. */
|
|
68
|
+
const inboundSchema: z.ZodType<NextSeqNum, z.ZodTypeDef, unknown>;
|
|
69
|
+
/** @deprecated use `NextSeqNum$outboundSchema` instead. */
|
|
70
|
+
const outboundSchema: z.ZodType<NextSeqNum$Outbound, z.ZodTypeDef, NextSeqNum>;
|
|
71
|
+
/** @deprecated use `NextSeqNum$Outbound` instead. */
|
|
72
|
+
type Outbound = NextSeqNum$Outbound;
|
|
73
73
|
}
|
|
74
|
-
export declare function
|
|
75
|
-
export declare function
|
|
74
|
+
export declare function nextSeqNumToJSON(nextSeqNum: NextSeqNum): string;
|
|
75
|
+
export declare function nextSeqNumFromJSON(jsonString: string): SafeParseResult<NextSeqNum, SDKValidationError>;
|
|
76
76
|
/** @internal */
|
|
77
|
-
export declare const
|
|
77
|
+
export declare const FirstSeqNum$inboundSchema: z.ZodType<FirstSeqNum, z.ZodTypeDef, unknown>;
|
|
78
78
|
/** @internal */
|
|
79
|
-
export type
|
|
79
|
+
export type FirstSeqNum$Outbound = {
|
|
80
80
|
first_seq_num: number;
|
|
81
81
|
};
|
|
82
82
|
/** @internal */
|
|
83
|
-
export declare const
|
|
83
|
+
export declare const FirstSeqNum$outboundSchema: z.ZodType<FirstSeqNum$Outbound, z.ZodTypeDef, FirstSeqNum>;
|
|
84
84
|
/**
|
|
85
85
|
* @internal
|
|
86
86
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
87
|
*/
|
|
88
|
-
export declare namespace
|
|
89
|
-
/** @deprecated use `
|
|
90
|
-
const inboundSchema: z.ZodType<
|
|
91
|
-
/** @deprecated use `
|
|
92
|
-
const outboundSchema: z.ZodType<
|
|
93
|
-
/** @deprecated use `
|
|
94
|
-
type Outbound =
|
|
88
|
+
export declare namespace FirstSeqNum$ {
|
|
89
|
+
/** @deprecated use `FirstSeqNum$inboundSchema` instead. */
|
|
90
|
+
const inboundSchema: z.ZodType<FirstSeqNum, z.ZodTypeDef, unknown>;
|
|
91
|
+
/** @deprecated use `FirstSeqNum$outboundSchema` instead. */
|
|
92
|
+
const outboundSchema: z.ZodType<FirstSeqNum$Outbound, z.ZodTypeDef, FirstSeqNum>;
|
|
93
|
+
/** @deprecated use `FirstSeqNum$Outbound` instead. */
|
|
94
|
+
type Outbound = FirstSeqNum$Outbound;
|
|
95
95
|
}
|
|
96
|
-
export declare function
|
|
97
|
-
export declare function
|
|
96
|
+
export declare function firstSeqNumToJSON(firstSeqNum: FirstSeqNum): string;
|
|
97
|
+
export declare function firstSeqNumFromJSON(jsonString: string): SafeParseResult<FirstSeqNum, SDKValidationError>;
|
|
98
98
|
/** @internal */
|
|
99
|
-
export declare const
|
|
99
|
+
export declare const Batch$inboundSchema: z.ZodType<Batch, z.ZodTypeDef, unknown>;
|
|
100
100
|
/** @internal */
|
|
101
|
-
export type
|
|
101
|
+
export type Batch$Outbound = {
|
|
102
102
|
batch: SequencedRecordBatch$Outbound;
|
|
103
103
|
};
|
|
104
104
|
/** @internal */
|
|
105
|
-
export declare const
|
|
105
|
+
export declare const Batch$outboundSchema: z.ZodType<Batch$Outbound, z.ZodTypeDef, Batch>;
|
|
106
106
|
/**
|
|
107
107
|
* @internal
|
|
108
108
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
109
|
*/
|
|
110
|
-
export declare namespace
|
|
111
|
-
/** @deprecated use `
|
|
112
|
-
const inboundSchema: z.ZodType<
|
|
113
|
-
/** @deprecated use `
|
|
114
|
-
const outboundSchema: z.ZodType<
|
|
115
|
-
/** @deprecated use `
|
|
116
|
-
type Outbound =
|
|
110
|
+
export declare namespace Batch$ {
|
|
111
|
+
/** @deprecated use `Batch$inboundSchema` instead. */
|
|
112
|
+
const inboundSchema: z.ZodType<Batch, z.ZodTypeDef, unknown>;
|
|
113
|
+
/** @deprecated use `Batch$outboundSchema` instead. */
|
|
114
|
+
const outboundSchema: z.ZodType<Batch$Outbound, z.ZodTypeDef, Batch>;
|
|
115
|
+
/** @deprecated use `Batch$Outbound` instead. */
|
|
116
|
+
type Outbound = Batch$Outbound;
|
|
117
117
|
}
|
|
118
|
-
export declare function
|
|
119
|
-
export declare function
|
|
118
|
+
export declare function batchToJSON(batch: Batch): string;
|
|
119
|
+
export declare function batchFromJSON(jsonString: string): SafeParseResult<Batch, SDKValidationError>;
|
|
120
120
|
/** @internal */
|
|
121
121
|
export declare const Output$inboundSchema: z.ZodType<Output, z.ZodTypeDef, unknown>;
|
|
122
122
|
/** @internal */
|
|
123
|
-
export type Output$Outbound =
|
|
123
|
+
export type Output$Outbound = Batch$Outbound | FirstSeqNum$Outbound | NextSeqNum$Outbound;
|
|
124
124
|
/** @internal */
|
|
125
125
|
export declare const Output$outboundSchema: z.ZodType<Output$Outbound, z.ZodTypeDef, Output>;
|
|
126
126
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/models/components/output.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/models/components/output.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,U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