@s2-dev/streamstore 0.13.3 → 0.14.0

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.
Files changed (155) hide show
  1. package/bin/mcp-server.js +80 -21
  2. package/bin/mcp-server.js.map +26 -25
  3. package/dist/commonjs/funcs/recordsRead.js +3 -1
  4. package/dist/commonjs/funcs/recordsRead.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/components/accesstokeninfo.d.ts +1 -1
  10. package/dist/commonjs/models/components/createbasinrequest.d.ts +6 -1
  11. package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
  13. package/dist/commonjs/models/components/createstreamrequest.d.ts +4 -1
  14. package/dist/commonjs/models/components/createstreamrequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/createstreamrequest.js.map +1 -1
  16. package/dist/commonjs/models/components/index.d.ts +1 -0
  17. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/index.js +1 -0
  19. package/dist/commonjs/models/components/index.js.map +1 -1
  20. package/dist/commonjs/models/components/pingeventdata.d.ts +29 -0
  21. package/dist/commonjs/models/components/pingeventdata.d.ts.map +1 -0
  22. package/dist/commonjs/models/components/pingeventdata.js +69 -0
  23. package/dist/commonjs/models/components/pingeventdata.js.map +1 -0
  24. package/dist/commonjs/models/components/readevent.d.ts +77 -7
  25. package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/readevent.js +79 -11
  27. package/dist/commonjs/models/components/readevent.js.map +1 -1
  28. package/dist/commonjs/models/components/s2format.d.ts +6 -6
  29. package/dist/commonjs/models/components/s2format.js +2 -2
  30. package/dist/commonjs/models/components/s2format.js.map +1 -1
  31. package/dist/commonjs/models/operations/append.d.ts +3 -7
  32. package/dist/commonjs/models/operations/append.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/append.js.map +1 -1
  34. package/dist/commonjs/models/operations/checktail.d.ts +1 -4
  35. package/dist/commonjs/models/operations/checktail.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/checktail.js.map +1 -1
  37. package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts +1 -5
  38. package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/createorreconfigurebasin.js.map +1 -1
  40. package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +1 -4
  41. package/dist/commonjs/models/operations/createorreconfigurestream.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/createorreconfigurestream.js.map +1 -1
  43. package/dist/commonjs/models/operations/deletebasin.d.ts +1 -5
  44. package/dist/commonjs/models/operations/deletebasin.d.ts.map +1 -1
  45. package/dist/commonjs/models/operations/deletebasin.js.map +1 -1
  46. package/dist/commonjs/models/operations/deletestream.d.ts +1 -4
  47. package/dist/commonjs/models/operations/deletestream.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/deletestream.js.map +1 -1
  49. package/dist/commonjs/models/operations/getbasinconfig.d.ts +1 -5
  50. package/dist/commonjs/models/operations/getbasinconfig.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/getbasinconfig.js.map +1 -1
  52. package/dist/commonjs/models/operations/getstreamconfig.d.ts +1 -4
  53. package/dist/commonjs/models/operations/getstreamconfig.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/getstreamconfig.js.map +1 -1
  55. package/dist/commonjs/models/operations/read.d.ts +3 -7
  56. package/dist/commonjs/models/operations/read.d.ts.map +1 -1
  57. package/dist/commonjs/models/operations/read.js.map +1 -1
  58. package/dist/commonjs/models/operations/reconfigurebasin.d.ts +1 -5
  59. package/dist/commonjs/models/operations/reconfigurebasin.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/reconfigurebasin.js.map +1 -1
  61. package/dist/commonjs/models/operations/reconfigurestream.d.ts +1 -4
  62. package/dist/commonjs/models/operations/reconfigurestream.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/reconfigurestream.js.map +1 -1
  64. package/dist/commonjs/models/operations/revokeaccesstoken.d.ts +0 -3
  65. package/dist/commonjs/models/operations/revokeaccesstoken.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/revokeaccesstoken.js.map +1 -1
  67. package/dist/esm/funcs/recordsRead.js +3 -1
  68. package/dist/esm/funcs/recordsRead.js.map +1 -1
  69. package/dist/esm/lib/config.d.ts +2 -2
  70. package/dist/esm/lib/config.js +2 -2
  71. package/dist/esm/mcp-server/mcp-server.js +1 -1
  72. package/dist/esm/mcp-server/server.js +1 -1
  73. package/dist/esm/models/components/accesstokeninfo.d.ts +1 -1
  74. package/dist/esm/models/components/createbasinrequest.d.ts +6 -1
  75. package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
  76. package/dist/esm/models/components/createbasinrequest.js.map +1 -1
  77. package/dist/esm/models/components/createstreamrequest.d.ts +4 -1
  78. package/dist/esm/models/components/createstreamrequest.d.ts.map +1 -1
  79. package/dist/esm/models/components/createstreamrequest.js.map +1 -1
  80. package/dist/esm/models/components/index.d.ts +1 -0
  81. package/dist/esm/models/components/index.d.ts.map +1 -1
  82. package/dist/esm/models/components/index.js +1 -0
  83. package/dist/esm/models/components/index.js.map +1 -1
  84. package/dist/esm/models/components/pingeventdata.d.ts +29 -0
  85. package/dist/esm/models/components/pingeventdata.d.ts.map +1 -0
  86. package/dist/esm/models/components/pingeventdata.js +31 -0
  87. package/dist/esm/models/components/pingeventdata.js.map +1 -0
  88. package/dist/esm/models/components/readevent.d.ts +77 -7
  89. package/dist/esm/models/components/readevent.d.ts.map +1 -1
  90. package/dist/esm/models/components/readevent.js +78 -10
  91. package/dist/esm/models/components/readevent.js.map +1 -1
  92. package/dist/esm/models/components/s2format.d.ts +6 -6
  93. package/dist/esm/models/components/s2format.js +2 -2
  94. package/dist/esm/models/components/s2format.js.map +1 -1
  95. package/dist/esm/models/operations/append.d.ts +3 -7
  96. package/dist/esm/models/operations/append.d.ts.map +1 -1
  97. package/dist/esm/models/operations/append.js.map +1 -1
  98. package/dist/esm/models/operations/checktail.d.ts +1 -4
  99. package/dist/esm/models/operations/checktail.d.ts.map +1 -1
  100. package/dist/esm/models/operations/checktail.js.map +1 -1
  101. package/dist/esm/models/operations/createorreconfigurebasin.d.ts +1 -5
  102. package/dist/esm/models/operations/createorreconfigurebasin.d.ts.map +1 -1
  103. package/dist/esm/models/operations/createorreconfigurebasin.js.map +1 -1
  104. package/dist/esm/models/operations/createorreconfigurestream.d.ts +1 -4
  105. package/dist/esm/models/operations/createorreconfigurestream.d.ts.map +1 -1
  106. package/dist/esm/models/operations/createorreconfigurestream.js.map +1 -1
  107. package/dist/esm/models/operations/deletebasin.d.ts +1 -5
  108. package/dist/esm/models/operations/deletebasin.d.ts.map +1 -1
  109. package/dist/esm/models/operations/deletebasin.js.map +1 -1
  110. package/dist/esm/models/operations/deletestream.d.ts +1 -4
  111. package/dist/esm/models/operations/deletestream.d.ts.map +1 -1
  112. package/dist/esm/models/operations/deletestream.js.map +1 -1
  113. package/dist/esm/models/operations/getbasinconfig.d.ts +1 -5
  114. package/dist/esm/models/operations/getbasinconfig.d.ts.map +1 -1
  115. package/dist/esm/models/operations/getbasinconfig.js.map +1 -1
  116. package/dist/esm/models/operations/getstreamconfig.d.ts +1 -4
  117. package/dist/esm/models/operations/getstreamconfig.d.ts.map +1 -1
  118. package/dist/esm/models/operations/getstreamconfig.js.map +1 -1
  119. package/dist/esm/models/operations/read.d.ts +3 -7
  120. package/dist/esm/models/operations/read.d.ts.map +1 -1
  121. package/dist/esm/models/operations/read.js.map +1 -1
  122. package/dist/esm/models/operations/reconfigurebasin.d.ts +1 -5
  123. package/dist/esm/models/operations/reconfigurebasin.d.ts.map +1 -1
  124. package/dist/esm/models/operations/reconfigurebasin.js.map +1 -1
  125. package/dist/esm/models/operations/reconfigurestream.d.ts +1 -4
  126. package/dist/esm/models/operations/reconfigurestream.d.ts.map +1 -1
  127. package/dist/esm/models/operations/reconfigurestream.js.map +1 -1
  128. package/dist/esm/models/operations/revokeaccesstoken.d.ts +0 -3
  129. package/dist/esm/models/operations/revokeaccesstoken.d.ts.map +1 -1
  130. package/dist/esm/models/operations/revokeaccesstoken.js.map +1 -1
  131. package/jsr.json +1 -1
  132. package/package.json +1 -1
  133. package/src/funcs/recordsRead.ts +3 -1
  134. package/src/lib/config.ts +2 -2
  135. package/src/mcp-server/mcp-server.ts +1 -1
  136. package/src/mcp-server/server.ts +1 -1
  137. package/src/models/components/accesstokeninfo.ts +1 -1
  138. package/src/models/components/createbasinrequest.ts +6 -1
  139. package/src/models/components/createstreamrequest.ts +4 -1
  140. package/src/models/components/index.ts +1 -0
  141. package/src/models/components/pingeventdata.ts +62 -0
  142. package/src/models/components/readevent.ts +116 -18
  143. package/src/models/components/s2format.ts +2 -2
  144. package/src/models/operations/append.ts +3 -7
  145. package/src/models/operations/checktail.ts +1 -4
  146. package/src/models/operations/createorreconfigurebasin.ts +1 -5
  147. package/src/models/operations/createorreconfigurestream.ts +1 -4
  148. package/src/models/operations/deletebasin.ts +1 -5
  149. package/src/models/operations/deletestream.ts +1 -4
  150. package/src/models/operations/getbasinconfig.ts +1 -5
  151. package/src/models/operations/getstreamconfig.ts +1 -4
  152. package/src/models/operations/read.ts +3 -7
  153. package/src/models/operations/reconfigurebasin.ts +1 -5
  154. package/src/models/operations/reconfigurestream.ts +1 -4
  155. package/src/models/operations/revokeaccesstoken.ts +0 -3
@@ -4,8 +4,15 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ PingEventData,
12
+ PingEventData$inboundSchema,
13
+ PingEventData$Outbound,
14
+ PingEventData$outboundSchema,
15
+ } from "./pingeventdata.js";
9
16
  import {
10
17
  ReadBatch,
11
18
  ReadBatch$inboundSchema,
@@ -13,41 +20,88 @@ import {
13
20
  ReadBatch$outboundSchema,
14
21
  } from "./readbatch.js";
15
22
 
23
+ export const ReadEvent3Event = {
24
+ Ping: "ping",
25
+ } as const;
26
+ export type ReadEvent3Event = ClosedEnum<typeof ReadEvent3Event>;
27
+
16
28
  export type Ping = {
17
- data: string;
18
- event: string;
29
+ data: PingEventData;
30
+ event: ReadEvent3Event;
19
31
  };
20
32
 
33
+ export const ReadEventEvent = {
34
+ Error: "error",
35
+ } as const;
36
+ export type ReadEventEvent = ClosedEnum<typeof ReadEventEvent>;
37
+
21
38
  export type ErrorT = {
22
39
  data: string;
23
- event: string;
40
+ event: ReadEventEvent;
24
41
  };
25
42
 
43
+ export const Event = {
44
+ Batch: "batch",
45
+ } as const;
46
+ export type Event = ClosedEnum<typeof Event>;
47
+
26
48
  export type Batch = {
27
49
  data: ReadBatch;
28
- event: string;
50
+ event: Event;
51
+ id: string;
29
52
  };
30
53
 
31
- export type ReadEvent = Batch | ErrorT | Ping;
54
+ export type ReadEvent = ErrorT | Ping | Batch;
55
+
56
+ /** @internal */
57
+ export const ReadEvent3Event$inboundSchema: z.ZodNativeEnum<
58
+ typeof ReadEvent3Event
59
+ > = z.nativeEnum(ReadEvent3Event);
60
+
61
+ /** @internal */
62
+ export const ReadEvent3Event$outboundSchema: z.ZodNativeEnum<
63
+ typeof ReadEvent3Event
64
+ > = ReadEvent3Event$inboundSchema;
65
+
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export namespace ReadEvent3Event$ {
71
+ /** @deprecated use `ReadEvent3Event$inboundSchema` instead. */
72
+ export const inboundSchema = ReadEvent3Event$inboundSchema;
73
+ /** @deprecated use `ReadEvent3Event$outboundSchema` instead. */
74
+ export const outboundSchema = ReadEvent3Event$outboundSchema;
75
+ }
32
76
 
33
77
  /** @internal */
34
78
  export const Ping$inboundSchema: z.ZodType<Ping, z.ZodTypeDef, unknown> = z
35
79
  .object({
36
- data: z.string(),
37
- event: z.string(),
80
+ data: z.string().transform((v, ctx) => {
81
+ try {
82
+ return JSON.parse(v);
83
+ } catch (err) {
84
+ ctx.addIssue({
85
+ code: z.ZodIssueCode.custom,
86
+ message: `malformed json: ${err}`,
87
+ });
88
+ return z.NEVER;
89
+ }
90
+ }).pipe(PingEventData$inboundSchema),
91
+ event: ReadEvent3Event$inboundSchema,
38
92
  });
39
93
 
40
94
  /** @internal */
41
95
  export type Ping$Outbound = {
42
- data: string;
96
+ data: PingEventData$Outbound;
43
97
  event: string;
44
98
  };
45
99
 
46
100
  /** @internal */
47
101
  export const Ping$outboundSchema: z.ZodType<Ping$Outbound, z.ZodTypeDef, Ping> =
48
102
  z.object({
49
- data: z.string(),
50
- event: z.string(),
103
+ data: PingEventData$outboundSchema,
104
+ event: ReadEvent3Event$outboundSchema,
51
105
  });
52
106
 
53
107
  /**
@@ -77,11 +131,32 @@ export function pingFromJSON(
77
131
  );
78
132
  }
79
133
 
134
+ /** @internal */
135
+ export const ReadEventEvent$inboundSchema: z.ZodNativeEnum<
136
+ typeof ReadEventEvent
137
+ > = z.nativeEnum(ReadEventEvent);
138
+
139
+ /** @internal */
140
+ export const ReadEventEvent$outboundSchema: z.ZodNativeEnum<
141
+ typeof ReadEventEvent
142
+ > = ReadEventEvent$inboundSchema;
143
+
144
+ /**
145
+ * @internal
146
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
147
+ */
148
+ export namespace ReadEventEvent$ {
149
+ /** @deprecated use `ReadEventEvent$inboundSchema` instead. */
150
+ export const inboundSchema = ReadEventEvent$inboundSchema;
151
+ /** @deprecated use `ReadEventEvent$outboundSchema` instead. */
152
+ export const outboundSchema = ReadEventEvent$outboundSchema;
153
+ }
154
+
80
155
  /** @internal */
81
156
  export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
82
157
  .object({
83
158
  data: z.string(),
84
- event: z.string(),
159
+ event: ReadEventEvent$inboundSchema,
85
160
  });
86
161
 
87
162
  /** @internal */
@@ -97,7 +172,7 @@ export const ErrorT$outboundSchema: z.ZodType<
97
172
  ErrorT
98
173
  > = z.object({
99
174
  data: z.string(),
100
- event: z.string(),
175
+ event: ReadEventEvent$outboundSchema,
101
176
  });
102
177
 
103
178
  /**
@@ -127,6 +202,26 @@ export function errorFromJSON(
127
202
  );
128
203
  }
129
204
 
205
+ /** @internal */
206
+ export const Event$inboundSchema: z.ZodNativeEnum<typeof Event> = z.nativeEnum(
207
+ Event,
208
+ );
209
+
210
+ /** @internal */
211
+ export const Event$outboundSchema: z.ZodNativeEnum<typeof Event> =
212
+ Event$inboundSchema;
213
+
214
+ /**
215
+ * @internal
216
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
217
+ */
218
+ export namespace Event$ {
219
+ /** @deprecated use `Event$inboundSchema` instead. */
220
+ export const inboundSchema = Event$inboundSchema;
221
+ /** @deprecated use `Event$outboundSchema` instead. */
222
+ export const outboundSchema = Event$outboundSchema;
223
+ }
224
+
130
225
  /** @internal */
131
226
  export const Batch$inboundSchema: z.ZodType<Batch, z.ZodTypeDef, unknown> = z
132
227
  .object({
@@ -141,13 +236,15 @@ export const Batch$inboundSchema: z.ZodType<Batch, z.ZodTypeDef, unknown> = z
141
236
  return z.NEVER;
142
237
  }
143
238
  }).pipe(ReadBatch$inboundSchema),
144
- event: z.string(),
239
+ event: Event$inboundSchema,
240
+ id: z.string(),
145
241
  });
146
242
 
147
243
  /** @internal */
148
244
  export type Batch$Outbound = {
149
245
  data: ReadBatch$Outbound;
150
246
  event: string;
247
+ id: string;
151
248
  };
152
249
 
153
250
  /** @internal */
@@ -157,7 +254,8 @@ export const Batch$outboundSchema: z.ZodType<
157
254
  Batch
158
255
  > = z.object({
159
256
  data: ReadBatch$outboundSchema,
160
- event: z.string(),
257
+ event: Event$outboundSchema,
258
+ id: z.string(),
161
259
  });
162
260
 
163
261
  /**
@@ -193,16 +291,16 @@ export const ReadEvent$inboundSchema: z.ZodType<
193
291
  z.ZodTypeDef,
194
292
  unknown
195
293
  > = z.union([
196
- z.lazy(() => Batch$inboundSchema),
197
294
  z.lazy(() => ErrorT$inboundSchema),
198
295
  z.lazy(() => Ping$inboundSchema),
296
+ z.lazy(() => Batch$inboundSchema),
199
297
  ]);
200
298
 
201
299
  /** @internal */
202
300
  export type ReadEvent$Outbound =
203
- | Batch$Outbound
204
301
  | ErrorT$Outbound
205
- | Ping$Outbound;
302
+ | Ping$Outbound
303
+ | Batch$Outbound;
206
304
 
207
305
  /** @internal */
208
306
  export const ReadEvent$outboundSchema: z.ZodType<
@@ -210,9 +308,9 @@ export const ReadEvent$outboundSchema: z.ZodType<
210
308
  z.ZodTypeDef,
211
309
  ReadEvent
212
310
  > = z.union([
213
- z.lazy(() => Batch$outboundSchema),
214
311
  z.lazy(() => ErrorT$outboundSchema),
215
312
  z.lazy(() => Ping$outboundSchema),
313
+ z.lazy(() => Batch$outboundSchema),
216
314
  ]);
217
315
 
218
316
  /**
@@ -6,8 +6,8 @@ import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const S2Format = {
9
- Json: "json",
10
- JsonBinsafe: "json-binsafe",
9
+ Raw: "raw",
10
+ Base64: "base64",
11
11
  } as const;
12
12
  export type S2Format = ClosedEnum<typeof S2Format>;
13
13
 
@@ -18,18 +18,14 @@ export const AppendServerList = [
18
18
 
19
19
  export type AppendRequest = {
20
20
  /**
21
- * Stream name, which must be unique within the basin.
22
- *
23
- * @remarks
24
- * It can be an arbitrary string up to 512 characters.
21
+ * Stream name.
25
22
  */
26
23
  stream: string;
27
24
  /**
28
- * Recognized when the Content-Type is `application/json`.
25
+ * Define treatment of blob fields when exchanging records as JSON.
29
26
  *
30
27
  * @remarks
31
- * json: UTF-8 data
32
- * json-binsafe: Base64-encoded binary data
28
+ * The default is `raw`.
33
29
  */
34
30
  s2Format?: components.S2Format | undefined;
35
31
  /**
@@ -17,10 +17,7 @@ export const CheckTailServerList = [
17
17
 
18
18
  export type CheckTailRequest = {
19
19
  /**
20
- * Stream name, which must be unique within the basin.
21
- *
22
- * @remarks
23
- * It can be an arbitrary string up to 512 characters.
20
+ * Stream name.
24
21
  */
25
22
  stream: string;
26
23
  /**
@@ -15,11 +15,7 @@ export type CreateOrReconfigureBasinRequest = {
15
15
  */
16
16
  s2RequestToken?: string | undefined;
17
17
  /**
18
- * Basin name, which must be globally unique.
19
- *
20
- * @remarks
21
- * The name must be between 8 and 48 characters, comprising lowercase
22
- * letters, numbers and hyphens. It cannot begin or end with a hyphen.
18
+ * Basin name.
23
19
  */
24
20
  basin: string;
25
21
  createOrReconfigureBasinRequest?:
@@ -18,10 +18,7 @@ export const CreateOrReconfigureStreamServerList = [
18
18
 
19
19
  export type CreateOrReconfigureStreamRequest = {
20
20
  /**
21
- * Stream name, which must be unique within the basin.
22
- *
23
- * @remarks
24
- * It can be an arbitrary string up to 512 characters.
21
+ * Stream name.
25
22
  */
26
23
  stream: string;
27
24
  /**
@@ -9,11 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type DeleteBasinRequest = {
11
11
  /**
12
- * Basin name, which must be globally unique.
13
- *
14
- * @remarks
15
- * The name must be between 8 and 48 characters, comprising lowercase
16
- * letters, numbers and hyphens. It cannot begin or end with a hyphen.
12
+ * Basin name.
17
13
  */
18
14
  basin: string;
19
15
  };
@@ -17,10 +17,7 @@ export const DeleteStreamServerList = [
17
17
 
18
18
  export type DeleteStreamRequest = {
19
19
  /**
20
- * Stream name, which must be unique within the basin.
21
- *
22
- * @remarks
23
- * It can be an arbitrary string up to 512 characters.
20
+ * Stream name.
24
21
  */
25
22
  stream: string;
26
23
  /**
@@ -9,11 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type GetBasinConfigRequest = {
11
11
  /**
12
- * Basin name, which must be globally unique.
13
- *
14
- * @remarks
15
- * The name must be between 8 and 48 characters, comprising lowercase
16
- * letters, numbers and hyphens. It cannot begin or end with a hyphen.
12
+ * Basin name.
17
13
  */
18
14
  basin: string;
19
15
  };
@@ -17,10 +17,7 @@ export const GetStreamConfigServerList = [
17
17
 
18
18
  export type GetStreamConfigRequest = {
19
19
  /**
20
- * Stream name, which must be unique within the basin.
21
- *
22
- * @remarks
23
- * It can be an arbitrary string up to 512 characters.
20
+ * Stream name.
24
21
  */
25
22
  stream: string;
26
23
  /**
@@ -19,18 +19,14 @@ export const ReadServerList = [
19
19
 
20
20
  export type ReadRequest = {
21
21
  /**
22
- * Stream name, which must be unique within the basin.
23
- *
24
- * @remarks
25
- * It can be an arbitrary string up to 512 characters.
22
+ * Stream name.
26
23
  */
27
24
  stream: string;
28
25
  /**
29
- * Recognized when the Content-Type is `application/json`.
26
+ * Define treatment of blob fields when exchanging records as JSON.
30
27
  *
31
28
  * @remarks
32
- * json: UTF-8 data
33
- * json-binsafe: Base64-encoded binary data
29
+ * The default is `raw`.
34
30
  */
35
31
  s2Format?: components.S2Format | undefined;
36
32
  /**
@@ -11,11 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type ReconfigureBasinRequest = {
13
13
  /**
14
- * Basin name, which must be globally unique.
15
- *
16
- * @remarks
17
- * The name must be between 8 and 48 characters, comprising lowercase
18
- * letters, numbers and hyphens. It cannot begin or end with a hyphen.
14
+ * Basin name.
19
15
  */
20
16
  basin: string;
21
17
  basinReconfiguration: components.BasinReconfiguration;
@@ -18,10 +18,7 @@ export const ReconfigureStreamServerList = [
18
18
 
19
19
  export type ReconfigureStreamRequest = {
20
20
  /**
21
- * Stream name, which must be unique within the basin.
22
- *
23
- * @remarks
24
- * It can be an arbitrary string up to 512 characters.
21
+ * Stream name.
25
22
  */
26
23
  stream: string;
27
24
  /**
@@ -10,9 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  export type RevokeAccessTokenRequest = {
11
11
  /**
12
12
  * Access token ID.
13
- *
14
- * @remarks
15
- * It must be unique to the account and between 1 and 96 characters.
16
13
  */
17
14
  id: string;
18
15
  };