@s2-dev/streamstore 0.2.7 → 0.2.10
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 +5 -1
- package/docs/sdks/account/README.md +9 -7
- package/docs/sdks/basin/README.md +9 -7
- package/docs/sdks/stream/README.md +12 -4
- package/funcs/accountCreateBasin.d.ts +1 -2
- package/funcs/accountCreateBasin.d.ts.map +1 -1
- package/funcs/accountCreateBasin.js +3 -2
- package/funcs/accountCreateBasin.js.map +1 -1
- package/funcs/accountDeleteBasin.d.ts +1 -1
- package/funcs/accountDeleteBasin.d.ts.map +1 -1
- package/funcs/accountDeleteBasin.js +1 -2
- package/funcs/accountDeleteBasin.js.map +1 -1
- package/funcs/accountGetBasinConfig.d.ts +1 -2
- package/funcs/accountGetBasinConfig.d.ts.map +1 -1
- package/funcs/accountGetBasinConfig.js +3 -2
- package/funcs/accountGetBasinConfig.js.map +1 -1
- package/funcs/accountListBasins.d.ts.map +1 -1
- package/funcs/accountListBasins.js +3 -1
- package/funcs/accountListBasins.js.map +1 -1
- package/funcs/accountReconfigureBasin.d.ts +1 -2
- package/funcs/accountReconfigureBasin.d.ts.map +1 -1
- package/funcs/accountReconfigureBasin.js +3 -2
- package/funcs/accountReconfigureBasin.js.map +1 -1
- package/funcs/basinCreateStream.d.ts +1 -2
- package/funcs/basinCreateStream.d.ts.map +1 -1
- package/funcs/basinCreateStream.js +3 -2
- package/funcs/basinCreateStream.js.map +1 -1
- package/funcs/basinDeleteStream.d.ts +1 -1
- package/funcs/basinDeleteStream.d.ts.map +1 -1
- package/funcs/basinDeleteStream.js +1 -2
- package/funcs/basinDeleteStream.js.map +1 -1
- package/funcs/basinGetStreamConfig.d.ts +1 -2
- package/funcs/basinGetStreamConfig.d.ts.map +1 -1
- package/funcs/basinGetStreamConfig.js +3 -2
- package/funcs/basinGetStreamConfig.js.map +1 -1
- package/funcs/basinListStreams.js +2 -2
- package/funcs/basinListStreams.js.map +1 -1
- package/funcs/basinReconfigureStream.d.ts +1 -2
- package/funcs/basinReconfigureStream.d.ts.map +1 -1
- package/funcs/basinReconfigureStream.js +3 -2
- package/funcs/basinReconfigureStream.js.map +1 -1
- package/funcs/streamAppend.d.ts +1 -2
- package/funcs/streamAppend.d.ts.map +1 -1
- package/funcs/streamAppend.js +3 -2
- package/funcs/streamAppend.js.map +1 -1
- package/funcs/streamCheckTail.d.ts +1 -2
- package/funcs/streamCheckTail.d.ts.map +1 -1
- package/funcs/streamCheckTail.js +3 -2
- package/funcs/streamCheckTail.js.map +1 -1
- package/funcs/streamRead.js +1 -1
- package/funcs/streamRead.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +10 -11
- package/lib/matchers.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/httpmetadata.d.ts +37 -0
- package/models/components/httpmetadata.d.ts.map +1 -0
- package/models/components/httpmetadata.js +86 -0
- package/models/components/httpmetadata.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/errors/apierror.d.ts +8 -5
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +3 -9
- package/models/errors/apierror.js.map +1 -1
- package/models/operations/append.d.ts +31 -30
- package/models/operations/append.d.ts.map +1 -1
- package/models/operations/append.js +44 -25
- package/models/operations/append.js.map +1 -1
- package/models/operations/checktail.d.ts +28 -0
- package/models/operations/checktail.d.ts.map +1 -1
- package/models/operations/checktail.js +42 -1
- package/models/operations/checktail.js.map +1 -1
- package/models/operations/createbasin.d.ts +27 -0
- package/models/operations/createbasin.d.ts.map +1 -1
- package/models/operations/createbasin.js +40 -1
- package/models/operations/createbasin.js.map +1 -1
- package/models/operations/createstream.d.ts +27 -0
- package/models/operations/createstream.d.ts.map +1 -1
- package/models/operations/createstream.js +40 -1
- package/models/operations/createstream.js.map +1 -1
- package/models/operations/deletebasin.d.ts +26 -0
- package/models/operations/deletebasin.d.ts.map +1 -1
- package/models/operations/deletebasin.js +38 -1
- package/models/operations/deletebasin.js.map +1 -1
- package/models/operations/deletestream.d.ts +26 -0
- package/models/operations/deletestream.d.ts.map +1 -1
- package/models/operations/deletestream.js +38 -1
- package/models/operations/deletestream.js.map +1 -1
- package/models/operations/getbasinconfig.d.ts +28 -0
- package/models/operations/getbasinconfig.d.ts.map +1 -1
- package/models/operations/getbasinconfig.js +42 -1
- package/models/operations/getbasinconfig.js.map +1 -1
- package/models/operations/getstreamconfig.d.ts +28 -0
- package/models/operations/getstreamconfig.d.ts.map +1 -1
- package/models/operations/getstreamconfig.js +42 -1
- package/models/operations/getstreamconfig.js.map +1 -1
- package/models/operations/listbasins.d.ts +4 -2
- package/models/operations/listbasins.d.ts.map +1 -1
- package/models/operations/listbasins.js +8 -4
- package/models/operations/listbasins.js.map +1 -1
- package/models/operations/liststreams.d.ts +4 -2
- package/models/operations/liststreams.d.ts.map +1 -1
- package/models/operations/liststreams.js +8 -4
- package/models/operations/liststreams.js.map +1 -1
- package/models/operations/read.d.ts +14 -32
- package/models/operations/read.d.ts.map +1 -1
- package/models/operations/read.js +28 -30
- package/models/operations/read.js.map +1 -1
- package/models/operations/reconfigurebasin.d.ts +27 -0
- package/models/operations/reconfigurebasin.d.ts.map +1 -1
- package/models/operations/reconfigurebasin.js +40 -1
- package/models/operations/reconfigurebasin.js.map +1 -1
- package/models/operations/reconfigurestream.d.ts +27 -0
- package/models/operations/reconfigurestream.d.ts.map +1 -1
- package/models/operations/reconfigurestream.js +40 -1
- package/models/operations/reconfigurestream.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -5
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js.map +1 -1
- package/sdk/basin.d.ts +4 -5
- package/sdk/basin.d.ts.map +1 -1
- package/sdk/basin.js.map +1 -1
- package/sdk/stream.d.ts +2 -3
- package/sdk/stream.d.ts.map +1 -1
- package/sdk/stream.js.map +1 -1
- package/src/funcs/accountCreateBasin.ts +6 -5
- package/src/funcs/accountDeleteBasin.ts +4 -5
- package/src/funcs/accountGetBasinConfig.ts +6 -5
- package/src/funcs/accountListBasins.ts +4 -2
- package/src/funcs/accountReconfigureBasin.ts +6 -5
- package/src/funcs/basinCreateStream.ts +6 -5
- package/src/funcs/basinDeleteStream.ts +4 -5
- package/src/funcs/basinGetStreamConfig.ts +6 -5
- package/src/funcs/basinListStreams.ts +2 -2
- package/src/funcs/basinReconfigureStream.ts +6 -5
- package/src/funcs/streamAppend.ts +6 -5
- package/src/funcs/streamCheckTail.ts +6 -5
- package/src/funcs/streamRead.ts +3 -3
- package/src/lib/config.ts +4 -3
- package/src/lib/matchers.ts +10 -16
- package/src/models/components/formatoption.ts +31 -0
- package/src/models/components/httpmetadata.ts +87 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/errors/apierror.ts +7 -13
- package/src/models/operations/append.ts +73 -31
- package/src/models/operations/checktail.ts +74 -0
- package/src/models/operations/createbasin.ts +72 -0
- package/src/models/operations/createstream.ts +72 -0
- package/src/models/operations/deletebasin.ts +68 -0
- package/src/models/operations/deletestream.ts +68 -0
- package/src/models/operations/getbasinconfig.ts +74 -0
- package/src/models/operations/getstreamconfig.ts +74 -0
- package/src/models/operations/listbasins.ts +12 -6
- package/src/models/operations/liststreams.ts +12 -6
- package/src/models/operations/read.ts +39 -41
- package/src/models/operations/reconfigurebasin.ts +72 -0
- package/src/models/operations/reconfigurestream.ts +72 -0
- package/src/sdk/account.ts +4 -5
- package/src/sdk/basin.ts +4 -5
- package/src/sdk/stream.ts +2 -3
|
@@ -18,6 +18,11 @@ export type CreateBasinRequest = {
|
|
|
18
18
|
createBasinRequest: components.CreateBasinRequest;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
export type CreateBasinResponse = {
|
|
22
|
+
httpMeta: components.HTTPMetadata;
|
|
23
|
+
basinInfo?: components.BasinInfo | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
21
26
|
/** @internal */
|
|
22
27
|
export const CreateBasinRequest$inboundSchema: z.ZodType<
|
|
23
28
|
CreateBasinRequest,
|
|
@@ -87,3 +92,70 @@ export function createBasinRequestFromJSON(
|
|
|
87
92
|
`Failed to parse 'CreateBasinRequest' from JSON`,
|
|
88
93
|
);
|
|
89
94
|
}
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const CreateBasinResponse$inboundSchema: z.ZodType<
|
|
98
|
+
CreateBasinResponse,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
103
|
+
BasinInfo: components.BasinInfo$inboundSchema.optional(),
|
|
104
|
+
}).transform((v) => {
|
|
105
|
+
return remap$(v, {
|
|
106
|
+
"HttpMeta": "httpMeta",
|
|
107
|
+
"BasinInfo": "basinInfo",
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type CreateBasinResponse$Outbound = {
|
|
113
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
114
|
+
BasinInfo?: components.BasinInfo$Outbound | undefined;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const CreateBasinResponse$outboundSchema: z.ZodType<
|
|
119
|
+
CreateBasinResponse$Outbound,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
CreateBasinResponse
|
|
122
|
+
> = z.object({
|
|
123
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
124
|
+
basinInfo: components.BasinInfo$outboundSchema.optional(),
|
|
125
|
+
}).transform((v) => {
|
|
126
|
+
return remap$(v, {
|
|
127
|
+
httpMeta: "HttpMeta",
|
|
128
|
+
basinInfo: "BasinInfo",
|
|
129
|
+
});
|
|
130
|
+
});
|
|
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 CreateBasinResponse$ {
|
|
137
|
+
/** @deprecated use `CreateBasinResponse$inboundSchema` instead. */
|
|
138
|
+
export const inboundSchema = CreateBasinResponse$inboundSchema;
|
|
139
|
+
/** @deprecated use `CreateBasinResponse$outboundSchema` instead. */
|
|
140
|
+
export const outboundSchema = CreateBasinResponse$outboundSchema;
|
|
141
|
+
/** @deprecated use `CreateBasinResponse$Outbound` instead. */
|
|
142
|
+
export type Outbound = CreateBasinResponse$Outbound;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function createBasinResponseToJSON(
|
|
146
|
+
createBasinResponse: CreateBasinResponse,
|
|
147
|
+
): string {
|
|
148
|
+
return JSON.stringify(
|
|
149
|
+
CreateBasinResponse$outboundSchema.parse(createBasinResponse),
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function createBasinResponseFromJSON(
|
|
154
|
+
jsonString: string,
|
|
155
|
+
): SafeParseResult<CreateBasinResponse, SDKValidationError> {
|
|
156
|
+
return safeParse(
|
|
157
|
+
jsonString,
|
|
158
|
+
(x) => CreateBasinResponse$inboundSchema.parse(JSON.parse(x)),
|
|
159
|
+
`Failed to parse 'CreateBasinResponse' from JSON`,
|
|
160
|
+
);
|
|
161
|
+
}
|
|
@@ -25,6 +25,11 @@ export type CreateStreamRequest = {
|
|
|
25
25
|
createStreamRequest: components.CreateStreamRequest;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
export type CreateStreamResponse = {
|
|
29
|
+
httpMeta: components.HTTPMetadata;
|
|
30
|
+
streamInfo?: components.StreamInfo | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
28
33
|
/** @internal */
|
|
29
34
|
export const CreateStreamRequest$inboundSchema: z.ZodType<
|
|
30
35
|
CreateStreamRequest,
|
|
@@ -94,3 +99,70 @@ export function createStreamRequestFromJSON(
|
|
|
94
99
|
`Failed to parse 'CreateStreamRequest' from JSON`,
|
|
95
100
|
);
|
|
96
101
|
}
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const CreateStreamResponse$inboundSchema: z.ZodType<
|
|
105
|
+
CreateStreamResponse,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
unknown
|
|
108
|
+
> = z.object({
|
|
109
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
110
|
+
StreamInfo: components.StreamInfo$inboundSchema.optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
"HttpMeta": "httpMeta",
|
|
114
|
+
"StreamInfo": "streamInfo",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export type CreateStreamResponse$Outbound = {
|
|
120
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
121
|
+
StreamInfo?: components.StreamInfo$Outbound | undefined;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const CreateStreamResponse$outboundSchema: z.ZodType<
|
|
126
|
+
CreateStreamResponse$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
CreateStreamResponse
|
|
129
|
+
> = z.object({
|
|
130
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
131
|
+
streamInfo: components.StreamInfo$outboundSchema.optional(),
|
|
132
|
+
}).transform((v) => {
|
|
133
|
+
return remap$(v, {
|
|
134
|
+
httpMeta: "HttpMeta",
|
|
135
|
+
streamInfo: "StreamInfo",
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
+
*/
|
|
143
|
+
export namespace CreateStreamResponse$ {
|
|
144
|
+
/** @deprecated use `CreateStreamResponse$inboundSchema` instead. */
|
|
145
|
+
export const inboundSchema = CreateStreamResponse$inboundSchema;
|
|
146
|
+
/** @deprecated use `CreateStreamResponse$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema = CreateStreamResponse$outboundSchema;
|
|
148
|
+
/** @deprecated use `CreateStreamResponse$Outbound` instead. */
|
|
149
|
+
export type Outbound = CreateStreamResponse$Outbound;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function createStreamResponseToJSON(
|
|
153
|
+
createStreamResponse: CreateStreamResponse,
|
|
154
|
+
): string {
|
|
155
|
+
return JSON.stringify(
|
|
156
|
+
CreateStreamResponse$outboundSchema.parse(createStreamResponse),
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function createStreamResponseFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<CreateStreamResponse, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => CreateStreamResponse$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'CreateStreamResponse' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
11
|
|
|
10
12
|
export type DeleteBasinRequest = {
|
|
@@ -14,6 +16,10 @@ export type DeleteBasinRequest = {
|
|
|
14
16
|
basin: string;
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
export type DeleteBasinResponse = {
|
|
20
|
+
httpMeta: components.HTTPMetadata;
|
|
21
|
+
};
|
|
22
|
+
|
|
17
23
|
/** @internal */
|
|
18
24
|
export const DeleteBasinRequest$inboundSchema: z.ZodType<
|
|
19
25
|
DeleteBasinRequest,
|
|
@@ -67,3 +73,65 @@ export function deleteBasinRequestFromJSON(
|
|
|
67
73
|
`Failed to parse 'DeleteBasinRequest' from JSON`,
|
|
68
74
|
);
|
|
69
75
|
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const DeleteBasinResponse$inboundSchema: z.ZodType<
|
|
79
|
+
DeleteBasinResponse,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.object({
|
|
83
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return remap$(v, {
|
|
86
|
+
"HttpMeta": "httpMeta",
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export type DeleteBasinResponse$Outbound = {
|
|
92
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const DeleteBasinResponse$outboundSchema: z.ZodType<
|
|
97
|
+
DeleteBasinResponse$Outbound,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
DeleteBasinResponse
|
|
100
|
+
> = z.object({
|
|
101
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
httpMeta: "HttpMeta",
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
+
*/
|
|
112
|
+
export namespace DeleteBasinResponse$ {
|
|
113
|
+
/** @deprecated use `DeleteBasinResponse$inboundSchema` instead. */
|
|
114
|
+
export const inboundSchema = DeleteBasinResponse$inboundSchema;
|
|
115
|
+
/** @deprecated use `DeleteBasinResponse$outboundSchema` instead. */
|
|
116
|
+
export const outboundSchema = DeleteBasinResponse$outboundSchema;
|
|
117
|
+
/** @deprecated use `DeleteBasinResponse$Outbound` instead. */
|
|
118
|
+
export type Outbound = DeleteBasinResponse$Outbound;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function deleteBasinResponseToJSON(
|
|
122
|
+
deleteBasinResponse: DeleteBasinResponse,
|
|
123
|
+
): string {
|
|
124
|
+
return JSON.stringify(
|
|
125
|
+
DeleteBasinResponse$outboundSchema.parse(deleteBasinResponse),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function deleteBasinResponseFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<DeleteBasinResponse, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => DeleteBasinResponse$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'DeleteBasinResponse' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
11
|
|
|
10
12
|
export const DeleteStreamServerList = [
|
|
@@ -21,6 +23,10 @@ export type DeleteStreamRequest = {
|
|
|
21
23
|
stream: string;
|
|
22
24
|
};
|
|
23
25
|
|
|
26
|
+
export type DeleteStreamResponse = {
|
|
27
|
+
httpMeta: components.HTTPMetadata;
|
|
28
|
+
};
|
|
29
|
+
|
|
24
30
|
/** @internal */
|
|
25
31
|
export const DeleteStreamRequest$inboundSchema: z.ZodType<
|
|
26
32
|
DeleteStreamRequest,
|
|
@@ -74,3 +80,65 @@ export function deleteStreamRequestFromJSON(
|
|
|
74
80
|
`Failed to parse 'DeleteStreamRequest' from JSON`,
|
|
75
81
|
);
|
|
76
82
|
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const DeleteStreamResponse$inboundSchema: z.ZodType<
|
|
86
|
+
DeleteStreamResponse,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
"HttpMeta": "httpMeta",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type DeleteStreamResponse$Outbound = {
|
|
99
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const DeleteStreamResponse$outboundSchema: z.ZodType<
|
|
104
|
+
DeleteStreamResponse$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
DeleteStreamResponse
|
|
107
|
+
> = z.object({
|
|
108
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
httpMeta: "HttpMeta",
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
+
*/
|
|
119
|
+
export namespace DeleteStreamResponse$ {
|
|
120
|
+
/** @deprecated use `DeleteStreamResponse$inboundSchema` instead. */
|
|
121
|
+
export const inboundSchema = DeleteStreamResponse$inboundSchema;
|
|
122
|
+
/** @deprecated use `DeleteStreamResponse$outboundSchema` instead. */
|
|
123
|
+
export const outboundSchema = DeleteStreamResponse$outboundSchema;
|
|
124
|
+
/** @deprecated use `DeleteStreamResponse$Outbound` instead. */
|
|
125
|
+
export type Outbound = DeleteStreamResponse$Outbound;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function deleteStreamResponseToJSON(
|
|
129
|
+
deleteStreamResponse: DeleteStreamResponse,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
DeleteStreamResponse$outboundSchema.parse(deleteStreamResponse),
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function deleteStreamResponseFromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<DeleteStreamResponse, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) => DeleteStreamResponse$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
+
`Failed to parse 'DeleteStreamResponse' from JSON`,
|
|
143
|
+
);
|
|
144
|
+
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
11
|
|
|
10
12
|
export type GetBasinConfigRequest = {
|
|
@@ -14,6 +16,11 @@ export type GetBasinConfigRequest = {
|
|
|
14
16
|
basin: string;
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
export type GetBasinConfigResponse = {
|
|
20
|
+
httpMeta: components.HTTPMetadata;
|
|
21
|
+
basinConfig?: components.BasinConfig | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
17
24
|
/** @internal */
|
|
18
25
|
export const GetBasinConfigRequest$inboundSchema: z.ZodType<
|
|
19
26
|
GetBasinConfigRequest,
|
|
@@ -67,3 +74,70 @@ export function getBasinConfigRequestFromJSON(
|
|
|
67
74
|
`Failed to parse 'GetBasinConfigRequest' from JSON`,
|
|
68
75
|
);
|
|
69
76
|
}
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const GetBasinConfigResponse$inboundSchema: z.ZodType<
|
|
80
|
+
GetBasinConfigResponse,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
unknown
|
|
83
|
+
> = z.object({
|
|
84
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
85
|
+
BasinConfig: components.BasinConfig$inboundSchema.optional(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return remap$(v, {
|
|
88
|
+
"HttpMeta": "httpMeta",
|
|
89
|
+
"BasinConfig": "basinConfig",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type GetBasinConfigResponse$Outbound = {
|
|
95
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
96
|
+
BasinConfig?: components.BasinConfig$Outbound | undefined;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const GetBasinConfigResponse$outboundSchema: z.ZodType<
|
|
101
|
+
GetBasinConfigResponse$Outbound,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
GetBasinConfigResponse
|
|
104
|
+
> = z.object({
|
|
105
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
106
|
+
basinConfig: components.BasinConfig$outboundSchema.optional(),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
httpMeta: "HttpMeta",
|
|
110
|
+
basinConfig: "BasinConfig",
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
117
|
+
*/
|
|
118
|
+
export namespace GetBasinConfigResponse$ {
|
|
119
|
+
/** @deprecated use `GetBasinConfigResponse$inboundSchema` instead. */
|
|
120
|
+
export const inboundSchema = GetBasinConfigResponse$inboundSchema;
|
|
121
|
+
/** @deprecated use `GetBasinConfigResponse$outboundSchema` instead. */
|
|
122
|
+
export const outboundSchema = GetBasinConfigResponse$outboundSchema;
|
|
123
|
+
/** @deprecated use `GetBasinConfigResponse$Outbound` instead. */
|
|
124
|
+
export type Outbound = GetBasinConfigResponse$Outbound;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function getBasinConfigResponseToJSON(
|
|
128
|
+
getBasinConfigResponse: GetBasinConfigResponse,
|
|
129
|
+
): string {
|
|
130
|
+
return JSON.stringify(
|
|
131
|
+
GetBasinConfigResponse$outboundSchema.parse(getBasinConfigResponse),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function getBasinConfigResponseFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<GetBasinConfigResponse, SDKValidationError> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) => GetBasinConfigResponse$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'GetBasinConfigResponse' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
11
|
|
|
10
12
|
export const GetStreamConfigServerList = [
|
|
@@ -21,6 +23,11 @@ export type GetStreamConfigRequest = {
|
|
|
21
23
|
stream: string;
|
|
22
24
|
};
|
|
23
25
|
|
|
26
|
+
export type GetStreamConfigResponse = {
|
|
27
|
+
httpMeta: components.HTTPMetadata;
|
|
28
|
+
streamConfig?: components.StreamConfig | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
24
31
|
/** @internal */
|
|
25
32
|
export const GetStreamConfigRequest$inboundSchema: z.ZodType<
|
|
26
33
|
GetStreamConfigRequest,
|
|
@@ -74,3 +81,70 @@ export function getStreamConfigRequestFromJSON(
|
|
|
74
81
|
`Failed to parse 'GetStreamConfigRequest' from JSON`,
|
|
75
82
|
);
|
|
76
83
|
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const GetStreamConfigResponse$inboundSchema: z.ZodType<
|
|
87
|
+
GetStreamConfigResponse,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.object({
|
|
91
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
92
|
+
StreamConfig: components.StreamConfig$inboundSchema.optional(),
|
|
93
|
+
}).transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
"HttpMeta": "httpMeta",
|
|
96
|
+
"StreamConfig": "streamConfig",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type GetStreamConfigResponse$Outbound = {
|
|
102
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
103
|
+
StreamConfig?: components.StreamConfig$Outbound | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const GetStreamConfigResponse$outboundSchema: z.ZodType<
|
|
108
|
+
GetStreamConfigResponse$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
GetStreamConfigResponse
|
|
111
|
+
> = z.object({
|
|
112
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
113
|
+
streamConfig: components.StreamConfig$outboundSchema.optional(),
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
httpMeta: "HttpMeta",
|
|
117
|
+
streamConfig: "StreamConfig",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export namespace GetStreamConfigResponse$ {
|
|
126
|
+
/** @deprecated use `GetStreamConfigResponse$inboundSchema` instead. */
|
|
127
|
+
export const inboundSchema = GetStreamConfigResponse$inboundSchema;
|
|
128
|
+
/** @deprecated use `GetStreamConfigResponse$outboundSchema` instead. */
|
|
129
|
+
export const outboundSchema = GetStreamConfigResponse$outboundSchema;
|
|
130
|
+
/** @deprecated use `GetStreamConfigResponse$Outbound` instead. */
|
|
131
|
+
export type Outbound = GetStreamConfigResponse$Outbound;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function getStreamConfigResponseToJSON(
|
|
135
|
+
getStreamConfigResponse: GetStreamConfigResponse,
|
|
136
|
+
): string {
|
|
137
|
+
return JSON.stringify(
|
|
138
|
+
GetStreamConfigResponse$outboundSchema.parse(getStreamConfigResponse),
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function getStreamConfigResponseFromJSON(
|
|
143
|
+
jsonString: string,
|
|
144
|
+
): SafeParseResult<GetStreamConfigResponse, SDKValidationError> {
|
|
145
|
+
return safeParse(
|
|
146
|
+
jsonString,
|
|
147
|
+
(x) => GetStreamConfigResponse$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
+
`Failed to parse 'GetStreamConfigResponse' from JSON`,
|
|
149
|
+
);
|
|
150
|
+
}
|
|
@@ -29,7 +29,8 @@ export type ListBasinsRequest = {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export type ListBasinsResponse = {
|
|
32
|
-
|
|
32
|
+
httpMeta: components.HTTPMetadata;
|
|
33
|
+
listBasinsResponse?: components.ListBasinsResponse | undefined;
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
/** @internal */
|
|
@@ -106,16 +107,19 @@ export const ListBasinsResponse$inboundSchema: z.ZodType<
|
|
|
106
107
|
z.ZodTypeDef,
|
|
107
108
|
unknown
|
|
108
109
|
> = z.object({
|
|
109
|
-
|
|
110
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
111
|
+
ListBasinsResponse: components.ListBasinsResponse$inboundSchema.optional(),
|
|
110
112
|
}).transform((v) => {
|
|
111
113
|
return remap$(v, {
|
|
112
|
-
"
|
|
114
|
+
"HttpMeta": "httpMeta",
|
|
115
|
+
"ListBasinsResponse": "listBasinsResponse",
|
|
113
116
|
});
|
|
114
117
|
});
|
|
115
118
|
|
|
116
119
|
/** @internal */
|
|
117
120
|
export type ListBasinsResponse$Outbound = {
|
|
118
|
-
|
|
121
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
122
|
+
ListBasinsResponse?: components.ListBasinsResponse$Outbound | undefined;
|
|
119
123
|
};
|
|
120
124
|
|
|
121
125
|
/** @internal */
|
|
@@ -124,10 +128,12 @@ export const ListBasinsResponse$outboundSchema: z.ZodType<
|
|
|
124
128
|
z.ZodTypeDef,
|
|
125
129
|
ListBasinsResponse
|
|
126
130
|
> = z.object({
|
|
127
|
-
|
|
131
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
132
|
+
listBasinsResponse: components.ListBasinsResponse$outboundSchema.optional(),
|
|
128
133
|
}).transform((v) => {
|
|
129
134
|
return remap$(v, {
|
|
130
|
-
|
|
135
|
+
httpMeta: "HttpMeta",
|
|
136
|
+
listBasinsResponse: "ListBasinsResponse",
|
|
131
137
|
});
|
|
132
138
|
});
|
|
133
139
|
|
|
@@ -36,7 +36,8 @@ export type ListStreamsRequest = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export type ListStreamsResponse = {
|
|
39
|
-
|
|
39
|
+
httpMeta: components.HTTPMetadata;
|
|
40
|
+
listStreamsResponse?: components.ListStreamsResponse | undefined;
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
/** @internal */
|
|
@@ -113,16 +114,19 @@ export const ListStreamsResponse$inboundSchema: z.ZodType<
|
|
|
113
114
|
z.ZodTypeDef,
|
|
114
115
|
unknown
|
|
115
116
|
> = z.object({
|
|
116
|
-
|
|
117
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
118
|
+
ListStreamsResponse: components.ListStreamsResponse$inboundSchema.optional(),
|
|
117
119
|
}).transform((v) => {
|
|
118
120
|
return remap$(v, {
|
|
119
|
-
"
|
|
121
|
+
"HttpMeta": "httpMeta",
|
|
122
|
+
"ListStreamsResponse": "listStreamsResponse",
|
|
120
123
|
});
|
|
121
124
|
});
|
|
122
125
|
|
|
123
126
|
/** @internal */
|
|
124
127
|
export type ListStreamsResponse$Outbound = {
|
|
125
|
-
|
|
128
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
129
|
+
ListStreamsResponse?: components.ListStreamsResponse$Outbound | undefined;
|
|
126
130
|
};
|
|
127
131
|
|
|
128
132
|
/** @internal */
|
|
@@ -131,10 +135,12 @@ export const ListStreamsResponse$outboundSchema: z.ZodType<
|
|
|
131
135
|
z.ZodTypeDef,
|
|
132
136
|
ListStreamsResponse
|
|
133
137
|
> = z.object({
|
|
134
|
-
|
|
138
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
139
|
+
listStreamsResponse: components.ListStreamsResponse$outboundSchema.optional(),
|
|
135
140
|
}).transform((v) => {
|
|
136
141
|
return remap$(v, {
|
|
137
|
-
|
|
142
|
+
httpMeta: "HttpMeta",
|
|
143
|
+
listStreamsResponse: "ListStreamsResponse",
|
|
138
144
|
});
|
|
139
145
|
});
|
|
140
146
|
|