@livestore/sync-s2 0.4.0 → 0.5.0-dev.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.
@@ -1,1372 +1,658 @@
1
- import { Effect, type HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse, type ParseResult, Schema as S } from '@livestore/utils/effect';
2
- declare const ListAccessTokensParams_base: S.Struct<{
3
- prefix: S.optionalWith<typeof S.String, {
4
- nullable: true;
5
- default: () => "";
6
- }>;
7
- start_after: S.optionalWith<typeof S.String, {
8
- nullable: true;
9
- default: () => "";
10
- }>;
11
- limit: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
12
- nullable: true;
13
- default: () => 1000;
14
- }>;
15
- }>;
1
+ import { Effect, type HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse, Schema as S } from '@livestore/utils/effect';
2
+ declare const ListAccessTokensParams_base: S.Class<ListAccessTokensParams, S.Struct<{
3
+ readonly prefix: S.withDecodingDefault<S.optional<S.String>, never>;
4
+ readonly start_after: S.withDecodingDefault<S.optional<S.String>, never>;
5
+ readonly limit: S.withDecodingDefault<S.optional<S.Int>, never>;
6
+ }>, {}>;
16
7
  export declare class ListAccessTokensParams extends ListAccessTokensParams_base {
17
8
  }
18
- declare const ResourceSet_base: S.Union<[S.Struct<{
9
+ export declare const ResourceSet: S.Union<readonly [S.Struct<{
19
10
  /**
20
11
  * Match only the resource with this exact name.
21
12
  * Use an empty string to match no resources.
22
13
  */
23
- exact: typeof S.String;
14
+ readonly exact: S.String;
24
15
  }>, S.Struct<{
25
16
  /**
26
17
  * Match all resources that start with this prefix.
27
18
  * Use an empty string to match all resource.
28
19
  */
29
- prefix: typeof S.String;
20
+ readonly prefix: S.String;
30
21
  }>]>;
31
- export declare class ResourceSet extends ResourceSet_base {
32
- }
33
- declare const ReadWritePermissions_base: S.Class<ReadWritePermissions, {
34
- /**
35
- * Read permission.
36
- */
37
- read: S.optionalWith<typeof S.Boolean, {
38
- nullable: true;
39
- default: () => false;
40
- }>;
41
- /**
42
- * Write permission.
43
- */
44
- write: S.optionalWith<typeof S.Boolean, {
45
- nullable: true;
46
- default: () => false;
47
- }>;
48
- }, S.Struct.Encoded<{
22
+ declare const ReadWritePermissions_base: S.Class<ReadWritePermissions, S.Struct<{
49
23
  /**
50
24
  * Read permission.
51
25
  */
52
- read: S.optionalWith<typeof S.Boolean, {
53
- nullable: true;
54
- default: () => false;
55
- }>;
26
+ readonly read: S.withDecodingDefault<S.optional<S.Boolean>, never>;
56
27
  /**
57
28
  * Write permission.
58
29
  */
59
- write: S.optionalWith<typeof S.Boolean, {
60
- nullable: true;
61
- default: () => false;
62
- }>;
63
- }>, never, {
64
- readonly read?: boolean;
65
- } & {
66
- readonly write?: boolean;
67
- }, {}, {}>;
30
+ readonly write: S.withDecodingDefault<S.optional<S.Boolean>, never>;
31
+ }>, {}>;
68
32
  export declare class ReadWritePermissions extends ReadWritePermissions_base {
69
33
  }
70
- declare const PermittedOperationGroups_base: S.Class<PermittedOperationGroups, {
71
- account: S.optionalWith<typeof ReadWritePermissions, {
72
- nullable: true;
73
- }>;
74
- basin: S.optionalWith<typeof ReadWritePermissions, {
75
- nullable: true;
76
- }>;
77
- stream: S.optionalWith<typeof ReadWritePermissions, {
78
- nullable: true;
79
- }>;
80
- }, S.Struct.Encoded<{
81
- account: S.optionalWith<typeof ReadWritePermissions, {
82
- nullable: true;
83
- }>;
84
- basin: S.optionalWith<typeof ReadWritePermissions, {
85
- nullable: true;
86
- }>;
87
- stream: S.optionalWith<typeof ReadWritePermissions, {
88
- nullable: true;
89
- }>;
90
- }>, never, {
91
- readonly account?: ReadWritePermissions | undefined;
92
- } & {
93
- readonly basin?: ReadWritePermissions | undefined;
94
- } & {
95
- readonly stream?: ReadWritePermissions | undefined;
96
- }, {}, {}>;
34
+ declare const PermittedOperationGroups_base: S.Class<PermittedOperationGroups, S.Struct<{
35
+ readonly account: S.optional<S.NullOr<typeof ReadWritePermissions>>;
36
+ readonly basin: S.optional<S.NullOr<typeof ReadWritePermissions>>;
37
+ readonly stream: S.optional<S.NullOr<typeof ReadWritePermissions>>;
38
+ }>, {}>;
97
39
  export declare class PermittedOperationGroups extends PermittedOperationGroups_base {
98
40
  }
99
- declare const Operation_base: S.Literal<["list-basins", "create-basin", "delete-basin", "reconfigure-basin", "get-basin-config", "issue-access-token", "revoke-access-token", "list-access-tokens", "list-streams", "create-stream", "delete-stream", "get-stream-config", "reconfigure-stream", "check-tail", "append", "read", "trim", "fence", "account-metrics", "basin-metrics", "stream-metrics"]>;
100
- export declare class Operation extends Operation_base {
101
- }
102
- declare const AccessTokenScope_base: S.Class<AccessTokenScope, {
103
- access_tokens: S.optionalWith<typeof ResourceSet, {
104
- nullable: true;
105
- }>;
106
- basins: S.optionalWith<typeof ResourceSet, {
107
- nullable: true;
108
- }>;
109
- op_groups: S.optionalWith<typeof PermittedOperationGroups, {
110
- nullable: true;
111
- }>;
41
+ export declare const Operation: S.Literals<readonly ["list-basins", "create-basin", "delete-basin", "reconfigure-basin", "get-basin-config", "issue-access-token", "revoke-access-token", "list-access-tokens", "list-streams", "create-stream", "delete-stream", "get-stream-config", "reconfigure-stream", "check-tail", "append", "read", "trim", "fence", "account-metrics", "basin-metrics", "stream-metrics"]>;
42
+ declare const AccessTokenScope_base: S.Class<AccessTokenScope, S.Struct<{
43
+ readonly access_tokens: S.optional<S.NullOr<S.Union<readonly [S.Struct<{
44
+ /**
45
+ * Match only the resource with this exact name.
46
+ * Use an empty string to match no resources.
47
+ */
48
+ readonly exact: S.String;
49
+ }>, S.Struct<{
50
+ /**
51
+ * Match all resources that start with this prefix.
52
+ * Use an empty string to match all resource.
53
+ */
54
+ readonly prefix: S.String;
55
+ }>]>>>;
56
+ readonly basins: S.optional<S.NullOr<S.Union<readonly [S.Struct<{
57
+ /**
58
+ * Match only the resource with this exact name.
59
+ * Use an empty string to match no resources.
60
+ */
61
+ readonly exact: S.String;
62
+ }>, S.Struct<{
63
+ /**
64
+ * Match all resources that start with this prefix.
65
+ * Use an empty string to match all resource.
66
+ */
67
+ readonly prefix: S.String;
68
+ }>]>>>;
69
+ readonly op_groups: S.optional<S.NullOr<typeof PermittedOperationGroups>>;
112
70
  /**
113
71
  * Operations allowed for the token.
114
72
  * A union of allowed operations and groups is used as an effective set of allowed operations.
115
73
  */
116
- ops: S.optionalWith<S.Array$<typeof Operation>, {
117
- nullable: true;
118
- }>;
119
- streams: S.optionalWith<typeof ResourceSet, {
120
- nullable: true;
121
- }>;
122
- }, S.Struct.Encoded<{
123
- access_tokens: S.optionalWith<typeof ResourceSet, {
124
- nullable: true;
125
- }>;
126
- basins: S.optionalWith<typeof ResourceSet, {
127
- nullable: true;
128
- }>;
129
- op_groups: S.optionalWith<typeof PermittedOperationGroups, {
130
- nullable: true;
131
- }>;
132
- /**
133
- * Operations allowed for the token.
134
- * A union of allowed operations and groups is used as an effective set of allowed operations.
135
- */
136
- ops: S.optionalWith<S.Array$<typeof Operation>, {
137
- nullable: true;
138
- }>;
139
- streams: S.optionalWith<typeof ResourceSet, {
140
- nullable: true;
141
- }>;
142
- }>, never, {
143
- readonly access_tokens?: {
144
- readonly exact: string;
145
- } | {
146
- readonly prefix: string;
147
- } | undefined;
148
- } & {
149
- readonly basins?: {
150
- readonly exact: string;
151
- } | {
152
- readonly prefix: string;
153
- } | undefined;
154
- } & {
155
- readonly op_groups?: PermittedOperationGroups | undefined;
156
- } & {
157
- readonly ops?: readonly ("read" | "list-basins" | "create-basin" | "delete-basin" | "reconfigure-basin" | "get-basin-config" | "issue-access-token" | "revoke-access-token" | "list-access-tokens" | "list-streams" | "create-stream" | "delete-stream" | "get-stream-config" | "reconfigure-stream" | "check-tail" | "append" | "trim" | "fence" | "account-metrics" | "basin-metrics" | "stream-metrics")[] | undefined;
158
- } & {
159
- readonly streams?: {
160
- readonly exact: string;
161
- } | {
162
- readonly prefix: string;
163
- } | undefined;
164
- }, {}, {}>;
74
+ readonly ops: S.optional<S.NullOr<S.$Array<S.Literals<readonly ["list-basins", "create-basin", "delete-basin", "reconfigure-basin", "get-basin-config", "issue-access-token", "revoke-access-token", "list-access-tokens", "list-streams", "create-stream", "delete-stream", "get-stream-config", "reconfigure-stream", "check-tail", "append", "read", "trim", "fence", "account-metrics", "basin-metrics", "stream-metrics"]>>>>;
75
+ readonly streams: S.optional<S.NullOr<S.Union<readonly [S.Struct<{
76
+ /**
77
+ * Match only the resource with this exact name.
78
+ * Use an empty string to match no resources.
79
+ */
80
+ readonly exact: S.String;
81
+ }>, S.Struct<{
82
+ /**
83
+ * Match all resources that start with this prefix.
84
+ * Use an empty string to match all resource.
85
+ */
86
+ readonly prefix: S.String;
87
+ }>]>>>;
88
+ }>, {}>;
165
89
  export declare class AccessTokenScope extends AccessTokenScope_base {
166
90
  }
167
- declare const AccessTokenInfo_base: S.Class<AccessTokenInfo, {
168
- /**
169
- * Namespace streams based on the configured stream-level scope, which must be a prefix.
170
- * Stream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.
171
- */
172
- auto_prefix_streams: S.optionalWith<typeof S.Boolean, {
173
- nullable: true;
174
- default: () => false;
175
- }>;
176
- /**
177
- * Expiration time in ISO 8601 format.
178
- * If not set, the expiration will be set to that of the requestor's token.
179
- */
180
- expires_at: S.optionalWith<typeof S.String, {
181
- nullable: true;
182
- }>;
183
- /**
184
- * Access token ID.
185
- * It must be unique to the account and between 1 and 96 bytes in length.
186
- */
187
- id: typeof S.String;
188
- /**
189
- * Access token scope.
190
- */
191
- scope: typeof AccessTokenScope;
192
- }, S.Struct.Encoded<{
91
+ declare const AccessTokenInfo_base: S.Class<AccessTokenInfo, S.Struct<{
193
92
  /**
194
93
  * Namespace streams based on the configured stream-level scope, which must be a prefix.
195
94
  * Stream name arguments will be automatically prefixed, and the prefix will be stripped when listing streams.
196
95
  */
197
- auto_prefix_streams: S.optionalWith<typeof S.Boolean, {
198
- nullable: true;
199
- default: () => false;
200
- }>;
96
+ readonly auto_prefix_streams: S.withDecodingDefault<S.optional<S.Boolean>, never>;
201
97
  /**
202
98
  * Expiration time in ISO 8601 format.
203
99
  * If not set, the expiration will be set to that of the requestor's token.
204
100
  */
205
- expires_at: S.optionalWith<typeof S.String, {
206
- nullable: true;
207
- }>;
101
+ readonly expires_at: S.optional<S.NullOr<S.String>>;
208
102
  /**
209
103
  * Access token ID.
210
104
  * It must be unique to the account and between 1 and 96 bytes in length.
211
105
  */
212
- id: typeof S.String;
106
+ readonly id: S.String;
213
107
  /**
214
108
  * Access token scope.
215
109
  */
216
- scope: typeof AccessTokenScope;
217
- }>, never, {
218
- readonly id: string;
219
- } & {
220
- readonly scope: AccessTokenScope;
221
- } & {
222
- readonly auto_prefix_streams?: boolean;
223
- } & {
224
- readonly expires_at?: string | undefined;
225
- }, {}, {}>;
110
+ readonly scope: typeof AccessTokenScope;
111
+ }>, {}>;
226
112
  export declare class AccessTokenInfo extends AccessTokenInfo_base {
227
113
  }
228
- declare const ListAccessTokensResponse_base: S.Class<ListAccessTokensResponse, {
114
+ declare const ListAccessTokensResponse_base: S.Class<ListAccessTokensResponse, S.Struct<{
229
115
  /**
230
116
  * Matching access tokens.
231
117
  */
232
- access_tokens: S.filter<S.Array$<typeof AccessTokenInfo>>;
118
+ readonly access_tokens: S.$Array<typeof AccessTokenInfo>;
233
119
  /**
234
120
  * Indicates that there are more access tokens that match the criteria.
235
121
  */
236
- has_more: typeof S.Boolean;
237
- }, S.Struct.Encoded<{
238
- /**
239
- * Matching access tokens.
240
- */
241
- access_tokens: S.filter<S.Array$<typeof AccessTokenInfo>>;
242
- /**
243
- * Indicates that there are more access tokens that match the criteria.
244
- */
245
- has_more: typeof S.Boolean;
246
- }>, never, {
247
- readonly access_tokens: readonly AccessTokenInfo[];
248
- } & {
249
- readonly has_more: boolean;
250
- }, {}, {}>;
122
+ readonly has_more: S.Boolean;
123
+ }>, {}>;
251
124
  export declare class ListAccessTokensResponse extends ListAccessTokensResponse_base {
252
125
  }
253
- declare const ErrorResponse_base: S.Class<ErrorResponse, {
254
- code: S.optionalWith<typeof S.String, {
255
- nullable: true;
256
- }>;
257
- message: typeof S.String;
258
- }, S.Struct.Encoded<{
259
- code: S.optionalWith<typeof S.String, {
260
- nullable: true;
261
- }>;
262
- message: typeof S.String;
263
- }>, never, {
264
- readonly message: string;
265
- } & {
266
- readonly code?: string | undefined;
267
- }, {}, {}>;
126
+ declare const ErrorResponse_base: S.Class<ErrorResponse, S.Struct<{
127
+ readonly code: S.optional<S.NullOr<S.String>>;
128
+ readonly message: S.String;
129
+ }>, {}>;
268
130
  export declare class ErrorResponse extends ErrorResponse_base {
269
131
  }
270
- declare const IssueAccessTokenResponse_base: S.Class<IssueAccessTokenResponse, {
132
+ declare const IssueAccessTokenResponse_base: S.Class<IssueAccessTokenResponse, S.Struct<{
271
133
  /**
272
134
  * Created access token.
273
135
  */
274
- access_token: typeof S.String;
275
- }, S.Struct.Encoded<{
276
- /**
277
- * Created access token.
278
- */
279
- access_token: typeof S.String;
280
- }>, never, {
281
- readonly access_token: string;
282
- }, {}, {}>;
136
+ readonly access_token: S.String;
137
+ }>, {}>;
283
138
  export declare class IssueAccessTokenResponse extends IssueAccessTokenResponse_base {
284
139
  }
285
- declare const ListBasinsParams_base: S.Struct<{
286
- prefix: S.optionalWith<typeof S.String, {
287
- nullable: true;
288
- default: () => "";
289
- }>;
290
- start_after: S.optionalWith<typeof S.String, {
291
- nullable: true;
292
- default: () => "";
293
- }>;
294
- limit: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
295
- nullable: true;
296
- default: () => 1000;
297
- }>;
298
- }>;
140
+ declare const ListBasinsParams_base: S.Class<ListBasinsParams, S.Struct<{
141
+ readonly prefix: S.withDecodingDefault<S.optional<S.String>, never>;
142
+ readonly start_after: S.withDecodingDefault<S.optional<S.String>, never>;
143
+ readonly limit: S.withDecodingDefault<S.optional<S.Int>, never>;
144
+ }>, {}>;
299
145
  export declare class ListBasinsParams extends ListBasinsParams_base {
300
146
  }
301
- declare const BasinScope_base: S.Literal<["aws:us-east-1"]>;
302
- export declare class BasinScope extends BasinScope_base {
303
- }
304
- declare const BasinState_base: S.Literal<["active", "creating", "deleting"]>;
305
- export declare class BasinState extends BasinState_base {
306
- }
307
- declare const BasinInfo_base: S.Class<BasinInfo, {
308
- /**
309
- * Basin name.
310
- */
311
- name: typeof S.String;
312
- /**
313
- * Basin scope.
314
- */
315
- scope: typeof BasinScope;
316
- /**
317
- * Basin state.
318
- */
319
- state: typeof BasinState;
320
- }, S.Struct.Encoded<{
147
+ export declare const BasinScope: S.Literal<"aws:us-east-1">;
148
+ export declare const BasinState: S.Literals<readonly ["active", "creating", "deleting"]>;
149
+ declare const BasinInfo_base: S.Class<BasinInfo, S.Struct<{
321
150
  /**
322
151
  * Basin name.
323
152
  */
324
- name: typeof S.String;
153
+ readonly name: S.String;
325
154
  /**
326
155
  * Basin scope.
327
156
  */
328
- scope: typeof BasinScope;
157
+ readonly scope: S.Literal<"aws:us-east-1">;
329
158
  /**
330
159
  * Basin state.
331
160
  */
332
- state: typeof BasinState;
333
- }>, never, {
334
- readonly name: string;
335
- } & {
336
- readonly scope: "aws:us-east-1";
337
- } & {
338
- readonly state: "active" | "creating" | "deleting";
339
- }, {}, {}>;
161
+ readonly state: S.Literals<readonly ["active", "creating", "deleting"]>;
162
+ }>, {}>;
340
163
  export declare class BasinInfo extends BasinInfo_base {
341
164
  }
342
- declare const ListBasinsResponse_base: S.Class<ListBasinsResponse, {
343
- /**
344
- * Matching basins.
345
- */
346
- basins: S.filter<S.Array$<typeof BasinInfo>>;
347
- /**
348
- * Indicates that there are more basins that match the criteria.
349
- */
350
- has_more: typeof S.Boolean;
351
- }, S.Struct.Encoded<{
165
+ declare const ListBasinsResponse_base: S.Class<ListBasinsResponse, S.Struct<{
352
166
  /**
353
167
  * Matching basins.
354
168
  */
355
- basins: S.filter<S.Array$<typeof BasinInfo>>;
169
+ readonly basins: S.$Array<typeof BasinInfo>;
356
170
  /**
357
171
  * Indicates that there are more basins that match the criteria.
358
172
  */
359
- has_more: typeof S.Boolean;
360
- }>, never, {
361
- readonly basins: readonly BasinInfo[];
362
- } & {
363
- readonly has_more: boolean;
364
- }, {}, {}>;
173
+ readonly has_more: S.Boolean;
174
+ }>, {}>;
365
175
  export declare class ListBasinsResponse extends ListBasinsResponse_base {
366
176
  }
367
- declare const DeleteOnEmptyConfig_base: S.Class<DeleteOnEmptyConfig, {
177
+ declare const DeleteOnEmptyConfig_base: S.Class<DeleteOnEmptyConfig, S.Struct<{
368
178
  /**
369
179
  * Minimum age in seconds before an empty stream can be deleted.
370
180
  * Set to 0 (default) to disable delete-on-empty (don't delete automatically).
371
181
  */
372
- min_age_secs: S.optionalWith<S.filter<typeof S.Int>, {
373
- nullable: true;
374
- }>;
375
- }, S.Struct.Encoded<{
376
- /**
377
- * Minimum age in seconds before an empty stream can be deleted.
378
- * Set to 0 (default) to disable delete-on-empty (don't delete automatically).
379
- */
380
- min_age_secs: S.optionalWith<S.filter<typeof S.Int>, {
381
- nullable: true;
382
- }>;
383
- }>, never, {
384
- readonly min_age_secs?: number | undefined;
385
- }, {}, {}>;
182
+ readonly min_age_secs: S.optional<S.NullOr<S.Int>>;
183
+ }>, {}>;
386
184
  export declare class DeleteOnEmptyConfig extends DeleteOnEmptyConfig_base {
387
185
  }
388
- declare const InfiniteRetention_base: S.Record$<typeof S.String, typeof S.Unknown>;
389
- export declare class InfiniteRetention extends InfiniteRetention_base {
390
- }
391
- declare const RetentionPolicy_base: S.Union<[S.Struct<{
186
+ export declare const InfiniteRetention: S.$Record<S.String, S.Unknown>;
187
+ export declare const RetentionPolicy: S.Union<readonly [S.Struct<{
392
188
  /**
393
189
  * Age in seconds for automatic trimming of records older than this threshold.
394
190
  * This must be set to a value greater than 0 seconds.
395
191
  * (While S2 is in public preview, this is capped at 28 days. Let us know if you'd like the cap removed.)
396
192
  */
397
- age: S.filter<typeof S.Int>;
193
+ readonly age: S.Int;
398
194
  }>, S.Struct<{
399
195
  /**
400
196
  * Retain records unless explicitly trimmed.
401
197
  */
402
- infinite: typeof InfiniteRetention;
198
+ readonly infinite: S.$Record<S.String, S.Unknown>;
403
199
  }>]>;
404
- export declare class RetentionPolicy extends RetentionPolicy_base {
405
- }
406
- declare const StorageClass_base: S.Literal<["standard", "express"]>;
407
- export declare class StorageClass extends StorageClass_base {
408
- }
409
- declare const TimestampingMode_base: S.Literal<["client-prefer", "client-require", "arrival"]>;
410
- export declare class TimestampingMode extends TimestampingMode_base {
411
- }
412
- declare const TimestampingConfig_base: S.Class<TimestampingConfig, {
413
- mode: S.optionalWith<typeof TimestampingMode, {
414
- nullable: true;
415
- }>;
200
+ export declare const StorageClass: S.Literals<readonly ["standard", "express"]>;
201
+ export declare const TimestampingMode: S.Literals<readonly ["client-prefer", "client-require", "arrival"]>;
202
+ declare const TimestampingConfig_base: S.Class<TimestampingConfig, S.Struct<{
203
+ readonly mode: S.optional<S.NullOr<S.Literals<readonly ["client-prefer", "client-require", "arrival"]>>>;
416
204
  /**
417
205
  * Allow client-specified timestamps to exceed the arrival time.
418
206
  * If this is `false` or not set, client timestamps will be capped at the arrival time.
419
207
  */
420
- uncapped: S.optionalWith<typeof S.Boolean, {
421
- nullable: true;
422
- }>;
423
- }, S.Struct.Encoded<{
424
- mode: S.optionalWith<typeof TimestampingMode, {
425
- nullable: true;
426
- }>;
427
- /**
428
- * Allow client-specified timestamps to exceed the arrival time.
429
- * If this is `false` or not set, client timestamps will be capped at the arrival time.
430
- */
431
- uncapped: S.optionalWith<typeof S.Boolean, {
432
- nullable: true;
433
- }>;
434
- }>, never, {
435
- readonly mode?: "client-prefer" | "client-require" | "arrival" | undefined;
436
- } & {
437
- readonly uncapped?: boolean | undefined;
438
- }, {}, {}>;
208
+ readonly uncapped: S.optional<S.NullOr<S.Boolean>>;
209
+ }>, {}>;
439
210
  export declare class TimestampingConfig extends TimestampingConfig_base {
440
211
  }
441
- declare const StreamConfig_base: S.Class<StreamConfig, {
442
- delete_on_empty: S.optionalWith<typeof DeleteOnEmptyConfig, {
443
- nullable: true;
444
- }>;
445
- retention_policy: S.optionalWith<typeof RetentionPolicy, {
446
- nullable: true;
447
- }>;
448
- storage_class: S.optionalWith<typeof StorageClass, {
449
- nullable: true;
450
- }>;
451
- timestamping: S.optionalWith<typeof TimestampingConfig, {
452
- nullable: true;
453
- }>;
454
- }, S.Struct.Encoded<{
455
- delete_on_empty: S.optionalWith<typeof DeleteOnEmptyConfig, {
456
- nullable: true;
457
- }>;
458
- retention_policy: S.optionalWith<typeof RetentionPolicy, {
459
- nullable: true;
460
- }>;
461
- storage_class: S.optionalWith<typeof StorageClass, {
462
- nullable: true;
463
- }>;
464
- timestamping: S.optionalWith<typeof TimestampingConfig, {
465
- nullable: true;
466
- }>;
467
- }>, never, {
468
- readonly delete_on_empty?: DeleteOnEmptyConfig | undefined;
469
- } & {
470
- readonly retention_policy?: {
471
- readonly age: number;
472
- } | {
473
- readonly infinite: {
474
- readonly [x: string]: unknown;
475
- };
476
- } | undefined;
477
- } & {
478
- readonly storage_class?: "standard" | "express" | undefined;
479
- } & {
480
- readonly timestamping?: TimestampingConfig | undefined;
481
- }, {}, {}>;
212
+ declare const StreamConfig_base: S.Class<StreamConfig, S.Struct<{
213
+ readonly delete_on_empty: S.optional<S.NullOr<typeof DeleteOnEmptyConfig>>;
214
+ readonly retention_policy: S.optional<S.NullOr<S.Union<readonly [S.Struct<{
215
+ /**
216
+ * Age in seconds for automatic trimming of records older than this threshold.
217
+ * This must be set to a value greater than 0 seconds.
218
+ * (While S2 is in public preview, this is capped at 28 days. Let us know if you'd like the cap removed.)
219
+ */
220
+ readonly age: S.Int;
221
+ }>, S.Struct<{
222
+ /**
223
+ * Retain records unless explicitly trimmed.
224
+ */
225
+ readonly infinite: S.$Record<S.String, S.Unknown>;
226
+ }>]>>>;
227
+ readonly storage_class: S.optional<S.NullOr<S.Literals<readonly ["standard", "express"]>>>;
228
+ readonly timestamping: S.optional<S.NullOr<typeof TimestampingConfig>>;
229
+ }>, {}>;
482
230
  export declare class StreamConfig extends StreamConfig_base {
483
231
  }
484
- declare const BasinConfig_base: S.Class<BasinConfig, {
232
+ declare const BasinConfig_base: S.Class<BasinConfig, S.Struct<{
485
233
  /**
486
234
  * Create stream on append if it doesn't exist, using the default stream configuration.
487
235
  */
488
- create_stream_on_append: S.optionalWith<typeof S.Boolean, {
489
- nullable: true;
490
- }>;
236
+ readonly create_stream_on_append: S.optional<S.NullOr<S.Boolean>>;
491
237
  /**
492
238
  * Create stream on read if it doesn't exist, using the default stream configuration.
493
239
  */
494
- create_stream_on_read: S.optionalWith<typeof S.Boolean, {
495
- nullable: true;
496
- }>;
497
- default_stream_config: S.optionalWith<typeof StreamConfig, {
498
- nullable: true;
499
- }>;
500
- }, S.Struct.Encoded<{
501
- /**
502
- * Create stream on append if it doesn't exist, using the default stream configuration.
503
- */
504
- create_stream_on_append: S.optionalWith<typeof S.Boolean, {
505
- nullable: true;
506
- }>;
507
- /**
508
- * Create stream on read if it doesn't exist, using the default stream configuration.
509
- */
510
- create_stream_on_read: S.optionalWith<typeof S.Boolean, {
511
- nullable: true;
512
- }>;
513
- default_stream_config: S.optionalWith<typeof StreamConfig, {
514
- nullable: true;
515
- }>;
516
- }>, never, {
517
- readonly create_stream_on_append?: boolean | undefined;
518
- } & {
519
- readonly create_stream_on_read?: boolean | undefined;
520
- } & {
521
- readonly default_stream_config?: StreamConfig | undefined;
522
- }, {}, {}>;
240
+ readonly create_stream_on_read: S.optional<S.NullOr<S.Boolean>>;
241
+ readonly default_stream_config: S.optional<S.NullOr<typeof StreamConfig>>;
242
+ }>, {}>;
523
243
  export declare class BasinConfig extends BasinConfig_base {
524
244
  }
525
- declare const CreateBasinRequest_base: S.Class<CreateBasinRequest, {
245
+ declare const CreateBasinRequest_base: S.Class<CreateBasinRequest, S.Struct<{
526
246
  /**
527
247
  * Basin name which must be globally unique.
528
248
  * It can be between 8 and 48 characters in length, and comprise lowercase letters, numbers and hyphens.
529
249
  * It cannot begin or end with a hyphen.
530
250
  */
531
- basin: typeof S.String;
532
- config: S.optionalWith<typeof BasinConfig, {
533
- nullable: true;
534
- }>;
251
+ readonly basin: S.String;
252
+ readonly config: S.optional<S.NullOr<typeof BasinConfig>>;
535
253
  /**
536
254
  * Basin scope.
537
255
  */
538
- scope: S.optionalWith<typeof BasinScope, {
539
- nullable: true;
540
- default: () => "aws:us-east-1";
541
- }>;
542
- }, S.Struct.Encoded<{
543
- /**
544
- * Basin name which must be globally unique.
545
- * It can be between 8 and 48 characters in length, and comprise lowercase letters, numbers and hyphens.
546
- * It cannot begin or end with a hyphen.
547
- */
548
- basin: typeof S.String;
549
- config: S.optionalWith<typeof BasinConfig, {
550
- nullable: true;
551
- }>;
552
- /**
553
- * Basin scope.
554
- */
555
- scope: S.optionalWith<typeof BasinScope, {
556
- nullable: true;
557
- default: () => "aws:us-east-1";
558
- }>;
559
- }>, never, {
560
- readonly basin: string;
561
- } & {
562
- readonly scope?: "aws:us-east-1";
563
- } & {
564
- readonly config?: BasinConfig | undefined;
565
- }, {}, {}>;
256
+ readonly scope: S.withDecodingDefault<S.optional<S.Literal<"aws:us-east-1">>, never>;
257
+ }>, {}>;
566
258
  export declare class CreateBasinRequest extends CreateBasinRequest_base {
567
259
  }
568
- declare const CreateOrReconfigureBasinParams_base: S.Struct<{
569
- 's2-request-token': S.optionalWith<typeof S.String, {
570
- nullable: true;
571
- }>;
572
- }>;
260
+ declare const CreateOrReconfigureBasinParams_base: S.Class<CreateOrReconfigureBasinParams, S.Struct<{
261
+ readonly 's2-request-token': S.optional<S.NullOr<S.String>>;
262
+ }>, {}>;
573
263
  export declare class CreateOrReconfigureBasinParams extends CreateOrReconfigureBasinParams_base {
574
264
  }
575
- declare const CreateOrReconfigureBasinRequest_base: typeof S.Null;
576
- export declare class CreateOrReconfigureBasinRequest extends CreateOrReconfigureBasinRequest_base {
577
- }
578
- declare const DeleteOnEmptyReconfiguration_base: S.Class<DeleteOnEmptyReconfiguration, {
265
+ export declare const CreateOrReconfigureBasinRequest: S.Union<readonly [S.Null]>;
266
+ declare const DeleteOnEmptyReconfiguration_base: S.Class<DeleteOnEmptyReconfiguration, S.Struct<{
579
267
  /**
580
268
  * Minimum age in seconds before an empty stream can be deleted.
581
269
  * Set to 0 to disable delete-on-empty (don't delete automatically).
582
270
  */
583
- min_age_secs: S.optionalWith<S.filter<typeof S.Int>, {
584
- nullable: true;
585
- }>;
586
- }, S.Struct.Encoded<{
587
- /**
588
- * Minimum age in seconds before an empty stream can be deleted.
589
- * Set to 0 to disable delete-on-empty (don't delete automatically).
590
- */
591
- min_age_secs: S.optionalWith<S.filter<typeof S.Int>, {
592
- nullable: true;
593
- }>;
594
- }>, never, {
595
- readonly min_age_secs?: number | undefined;
596
- }, {}, {}>;
271
+ readonly min_age_secs: S.optional<S.NullOr<S.Int>>;
272
+ }>, {}>;
597
273
  export declare class DeleteOnEmptyReconfiguration extends DeleteOnEmptyReconfiguration_base {
598
274
  }
599
- declare const TimestampingReconfiguration_base: S.Class<TimestampingReconfiguration, {
600
- mode: S.optionalWith<typeof TimestampingMode, {
601
- nullable: true;
602
- }>;
603
- /**
604
- * Allow client-specified timestamps to exceed the arrival time.
605
- */
606
- uncapped: S.optionalWith<typeof S.Boolean, {
607
- nullable: true;
608
- }>;
609
- }, S.Struct.Encoded<{
610
- mode: S.optionalWith<typeof TimestampingMode, {
611
- nullable: true;
612
- }>;
275
+ declare const TimestampingReconfiguration_base: S.Class<TimestampingReconfiguration, S.Struct<{
276
+ readonly mode: S.optional<S.NullOr<S.Literals<readonly ["client-prefer", "client-require", "arrival"]>>>;
613
277
  /**
614
278
  * Allow client-specified timestamps to exceed the arrival time.
615
279
  */
616
- uncapped: S.optionalWith<typeof S.Boolean, {
617
- nullable: true;
618
- }>;
619
- }>, never, {
620
- readonly mode?: "client-prefer" | "client-require" | "arrival" | undefined;
621
- } & {
622
- readonly uncapped?: boolean | undefined;
623
- }, {}, {}>;
280
+ readonly uncapped: S.optional<S.NullOr<S.Boolean>>;
281
+ }>, {}>;
624
282
  export declare class TimestampingReconfiguration extends TimestampingReconfiguration_base {
625
283
  }
626
- declare const StreamReconfiguration_base: S.Class<StreamReconfiguration, {
627
- delete_on_empty: S.optionalWith<typeof DeleteOnEmptyReconfiguration, {
628
- nullable: true;
629
- }>;
630
- retention_policy: S.optionalWith<typeof RetentionPolicy, {
631
- nullable: true;
632
- }>;
633
- storage_class: S.optionalWith<typeof StorageClass, {
634
- nullable: true;
635
- }>;
636
- timestamping: S.optionalWith<typeof TimestampingReconfiguration, {
637
- nullable: true;
638
- }>;
639
- }, S.Struct.Encoded<{
640
- delete_on_empty: S.optionalWith<typeof DeleteOnEmptyReconfiguration, {
641
- nullable: true;
642
- }>;
643
- retention_policy: S.optionalWith<typeof RetentionPolicy, {
644
- nullable: true;
645
- }>;
646
- storage_class: S.optionalWith<typeof StorageClass, {
647
- nullable: true;
648
- }>;
649
- timestamping: S.optionalWith<typeof TimestampingReconfiguration, {
650
- nullable: true;
651
- }>;
652
- }>, never, {
653
- readonly delete_on_empty?: DeleteOnEmptyReconfiguration | undefined;
654
- } & {
655
- readonly retention_policy?: {
656
- readonly age: number;
657
- } | {
658
- readonly infinite: {
659
- readonly [x: string]: unknown;
660
- };
661
- } | undefined;
662
- } & {
663
- readonly storage_class?: "standard" | "express" | undefined;
664
- } & {
665
- readonly timestamping?: TimestampingReconfiguration | undefined;
666
- }, {}, {}>;
284
+ declare const StreamReconfiguration_base: S.Class<StreamReconfiguration, S.Struct<{
285
+ readonly delete_on_empty: S.optional<S.NullOr<typeof DeleteOnEmptyReconfiguration>>;
286
+ readonly retention_policy: S.optional<S.NullOr<S.Union<readonly [S.Struct<{
287
+ /**
288
+ * Age in seconds for automatic trimming of records older than this threshold.
289
+ * This must be set to a value greater than 0 seconds.
290
+ * (While S2 is in public preview, this is capped at 28 days. Let us know if you'd like the cap removed.)
291
+ */
292
+ readonly age: S.Int;
293
+ }>, S.Struct<{
294
+ /**
295
+ * Retain records unless explicitly trimmed.
296
+ */
297
+ readonly infinite: S.$Record<S.String, S.Unknown>;
298
+ }>]>>>;
299
+ readonly storage_class: S.optional<S.NullOr<S.Literals<readonly ["standard", "express"]>>>;
300
+ readonly timestamping: S.optional<S.NullOr<typeof TimestampingReconfiguration>>;
301
+ }>, {}>;
667
302
  export declare class StreamReconfiguration extends StreamReconfiguration_base {
668
303
  }
669
- declare const BasinReconfiguration_base: S.Class<BasinReconfiguration, {
670
- /**
671
- * Create a stream on append.
672
- */
673
- create_stream_on_append: S.optionalWith<typeof S.Boolean, {
674
- nullable: true;
675
- }>;
676
- /**
677
- * Create a stream on read.
678
- */
679
- create_stream_on_read: S.optionalWith<typeof S.Boolean, {
680
- nullable: true;
681
- }>;
682
- default_stream_config: S.optionalWith<typeof StreamReconfiguration, {
683
- nullable: true;
684
- }>;
685
- }, S.Struct.Encoded<{
304
+ declare const BasinReconfiguration_base: S.Class<BasinReconfiguration, S.Struct<{
686
305
  /**
687
306
  * Create a stream on append.
688
307
  */
689
- create_stream_on_append: S.optionalWith<typeof S.Boolean, {
690
- nullable: true;
691
- }>;
308
+ readonly create_stream_on_append: S.optional<S.NullOr<S.Boolean>>;
692
309
  /**
693
310
  * Create a stream on read.
694
311
  */
695
- create_stream_on_read: S.optionalWith<typeof S.Boolean, {
696
- nullable: true;
697
- }>;
698
- default_stream_config: S.optionalWith<typeof StreamReconfiguration, {
699
- nullable: true;
700
- }>;
701
- }>, never, {
702
- readonly create_stream_on_append?: boolean | undefined;
703
- } & {
704
- readonly create_stream_on_read?: boolean | undefined;
705
- } & {
706
- readonly default_stream_config?: StreamReconfiguration | undefined;
707
- }, {}, {}>;
312
+ readonly create_stream_on_read: S.optional<S.NullOr<S.Boolean>>;
313
+ readonly default_stream_config: S.optional<S.NullOr<typeof StreamReconfiguration>>;
314
+ }>, {}>;
708
315
  export declare class BasinReconfiguration extends BasinReconfiguration_base {
709
316
  }
710
- declare const AccountMetricSet_base: S.Literal<["active-basins", "account-ops"]>;
711
- export declare class AccountMetricSet extends AccountMetricSet_base {
712
- }
713
- declare const TimeseriesInterval_base: S.Literal<["minute", "hour", "day"]>;
714
- export declare class TimeseriesInterval extends TimeseriesInterval_base {
715
- }
716
- declare const AccountMetricsParams_base: S.Struct<{
717
- set: typeof AccountMetricSet;
718
- start: S.optionalWith<S.filter<typeof S.Int>, {
719
- nullable: true;
720
- }>;
721
- end: S.optionalWith<S.filter<typeof S.Int>, {
722
- nullable: true;
723
- }>;
724
- interval: S.optionalWith<typeof TimeseriesInterval, {
725
- nullable: true;
726
- }>;
727
- }>;
317
+ export declare const AccountMetricSet: S.Literals<readonly ["active-basins", "account-ops"]>;
318
+ export declare const TimeseriesInterval: S.Literals<readonly ["minute", "hour", "day"]>;
319
+ declare const AccountMetricsParams_base: S.Class<AccountMetricsParams, S.Struct<{
320
+ readonly set: S.Literals<readonly ["active-basins", "account-ops"]>;
321
+ readonly start: S.optional<S.NullOr<S.Int>>;
322
+ readonly end: S.optional<S.NullOr<S.Int>>;
323
+ readonly interval: S.optional<S.NullOr<S.Literals<readonly ["minute", "hour", "day"]>>>;
324
+ }>, {}>;
728
325
  export declare class AccountMetricsParams extends AccountMetricsParams_base {
729
326
  }
730
- declare const MetricUnit_base: S.Literal<["bytes", "operations"]>;
731
- export declare class MetricUnit extends MetricUnit_base {
732
- }
733
- declare const Scalar_base: S.Class<Scalar, {
327
+ export declare const MetricUnit: S.Literals<readonly ["bytes", "operations"]>;
328
+ declare const Scalar_base: S.Class<Scalar, S.Struct<{
734
329
  /**
735
330
  * Metric name.
736
331
  */
737
- name: typeof S.String;
332
+ readonly name: S.String;
738
333
  /**
739
334
  * Unit of the metric.
740
335
  */
741
- unit: typeof MetricUnit;
336
+ readonly unit: S.Literals<readonly ["bytes", "operations"]>;
742
337
  /**
743
338
  * Metric value.
744
339
  */
745
- value: typeof S.Number;
746
- }, S.Struct.Encoded<{
747
- /**
748
- * Metric name.
749
- */
750
- name: typeof S.String;
751
- /**
752
- * Unit of the metric.
753
- */
754
- unit: typeof MetricUnit;
755
- /**
756
- * Metric value.
757
- */
758
- value: typeof S.Number;
759
- }>, never, {
760
- readonly name: string;
761
- } & {
762
- readonly value: number;
763
- } & {
764
- readonly unit: "bytes" | "operations";
765
- }, {}, {}>;
340
+ readonly value: S.Number;
341
+ }>, {}>;
766
342
  export declare class Scalar extends Scalar_base {
767
343
  }
768
- declare const Accumulation_base: S.Class<Accumulation, {
769
- /**
770
- * The duration of bucket for the accumulation.
771
- */
772
- bucket_length: typeof TimeseriesInterval;
773
- /**
774
- * Timeseries name.
775
- */
776
- name: typeof S.String;
777
- /**
778
- * Unit of the metric.
779
- */
780
- unit: typeof MetricUnit;
781
- }, S.Struct.Encoded<{
344
+ declare const Accumulation_base: S.Class<Accumulation, S.Struct<{
782
345
  /**
783
346
  * The duration of bucket for the accumulation.
784
347
  */
785
- bucket_length: typeof TimeseriesInterval;
348
+ readonly bucket_length: S.Literals<readonly ["minute", "hour", "day"]>;
786
349
  /**
787
350
  * Timeseries name.
788
351
  */
789
- name: typeof S.String;
352
+ readonly name: S.String;
790
353
  /**
791
354
  * Unit of the metric.
792
355
  */
793
- unit: typeof MetricUnit;
794
- }>, never, {
795
- readonly name: string;
796
- } & {
797
- readonly unit: "bytes" | "operations";
798
- } & {
799
- readonly bucket_length: "minute" | "hour" | "day";
800
- }, {}, {}>;
356
+ readonly unit: S.Literals<readonly ["bytes", "operations"]>;
357
+ }>, {}>;
801
358
  export declare class Accumulation extends Accumulation_base {
802
359
  }
803
- declare const Gauge_base: S.Class<Gauge, {
804
- /**
805
- * Timeseries name.
806
- */
807
- name: typeof S.String;
808
- /**
809
- * Unit of the metric.
810
- */
811
- unit: typeof MetricUnit;
812
- }, S.Struct.Encoded<{
360
+ declare const Gauge_base: S.Class<Gauge, S.Struct<{
813
361
  /**
814
362
  * Timeseries name.
815
363
  */
816
- name: typeof S.String;
364
+ readonly name: S.String;
817
365
  /**
818
366
  * Unit of the metric.
819
367
  */
820
- unit: typeof MetricUnit;
821
- }>, never, {
822
- readonly name: string;
823
- } & {
824
- readonly unit: "bytes" | "operations";
825
- }, {}, {}>;
368
+ readonly unit: S.Literals<readonly ["bytes", "operations"]>;
369
+ }>, {}>;
826
370
  export declare class Gauge extends Gauge_base {
827
371
  }
828
- declare const Label_base: S.Class<Label, {
372
+ declare const Label_base: S.Class<Label, S.Struct<{
829
373
  /**
830
374
  * Label name.
831
375
  */
832
- name: typeof S.String;
376
+ readonly name: S.String;
833
377
  /**
834
378
  * Label values.
835
379
  */
836
- values: S.Array$<typeof S.String>;
837
- }, S.Struct.Encoded<{
838
- /**
839
- * Label name.
840
- */
841
- name: typeof S.String;
842
- /**
843
- * Label values.
844
- */
845
- values: S.Array$<typeof S.String>;
846
- }>, never, {
847
- readonly values: readonly string[];
848
- } & {
849
- readonly name: string;
850
- }, {}, {}>;
380
+ readonly values: S.$Array<S.String>;
381
+ }>, {}>;
851
382
  export declare class Label extends Label_base {
852
383
  }
853
- declare const Metric_base: S.Union<[S.Struct<{
384
+ export declare const Metric: S.Union<readonly [S.Struct<{
854
385
  /**
855
386
  * Single named value.
856
387
  */
857
- scalar: typeof Scalar;
388
+ readonly scalar: typeof Scalar;
858
389
  }>, S.Struct<{
859
390
  /**
860
391
  * Named series of `(timestamp, value)` points representing an accumulation over a specified
861
392
  * bucket.
862
393
  */
863
- accumulation: typeof Accumulation;
394
+ readonly accumulation: typeof Accumulation;
864
395
  }>, S.Struct<{
865
396
  /**
866
397
  * Named series of `(timestamp, value)` points each representing an instantaneous value.
867
398
  */
868
- gauge: typeof Gauge;
399
+ readonly gauge: typeof Gauge;
869
400
  }>, S.Struct<{
870
401
  /**
871
402
  * Set of string labels.
872
403
  */
873
- label: typeof Label;
404
+ readonly label: typeof Label;
874
405
  }>]>;
875
- export declare class Metric extends Metric_base {
876
- }
877
- declare const MetricSetResponse_base: S.Class<MetricSetResponse, {
406
+ declare const MetricSetResponse_base: S.Class<MetricSetResponse, S.Struct<{
878
407
  /**
879
408
  * Metrics comprising the set.
880
409
  */
881
- values: S.Array$<typeof Metric>;
882
- }, S.Struct.Encoded<{
883
- /**
884
- * Metrics comprising the set.
885
- */
886
- values: S.Array$<typeof Metric>;
887
- }>, never, {
888
- readonly values: readonly ({
889
- readonly scalar: Scalar;
890
- } | {
891
- readonly accumulation: Accumulation;
892
- } | {
893
- readonly gauge: Gauge;
894
- } | {
895
- readonly label: Label;
896
- })[];
897
- }, {}, {}>;
410
+ readonly values: S.$Array<S.Union<readonly [S.Struct<{
411
+ /**
412
+ * Single named value.
413
+ */
414
+ readonly scalar: typeof Scalar;
415
+ }>, S.Struct<{
416
+ /**
417
+ * Named series of `(timestamp, value)` points representing an accumulation over a specified
418
+ * bucket.
419
+ */
420
+ readonly accumulation: typeof Accumulation;
421
+ }>, S.Struct<{
422
+ /**
423
+ * Named series of `(timestamp, value)` points each representing an instantaneous value.
424
+ */
425
+ readonly gauge: typeof Gauge;
426
+ }>, S.Struct<{
427
+ /**
428
+ * Set of string labels.
429
+ */
430
+ readonly label: typeof Label;
431
+ }>]>>;
432
+ }>, {}>;
898
433
  export declare class MetricSetResponse extends MetricSetResponse_base {
899
434
  }
900
- declare const BasinMetricSet_base: S.Literal<["storage", "append-ops", "read-ops", "read-throughput", "append-throughput", "basin-ops"]>;
901
- export declare class BasinMetricSet extends BasinMetricSet_base {
902
- }
903
- declare const BasinMetricsParams_base: S.Struct<{
904
- set: typeof BasinMetricSet;
905
- start: S.optionalWith<S.filter<typeof S.Int>, {
906
- nullable: true;
907
- }>;
908
- end: S.optionalWith<S.filter<typeof S.Int>, {
909
- nullable: true;
910
- }>;
911
- interval: S.optionalWith<typeof TimeseriesInterval, {
912
- nullable: true;
913
- }>;
914
- }>;
435
+ export declare const BasinMetricSet: S.Literals<readonly ["storage", "append-ops", "read-ops", "read-throughput", "append-throughput", "basin-ops"]>;
436
+ declare const BasinMetricsParams_base: S.Class<BasinMetricsParams, S.Struct<{
437
+ readonly set: S.Literals<readonly ["storage", "append-ops", "read-ops", "read-throughput", "append-throughput", "basin-ops"]>;
438
+ readonly start: S.optional<S.NullOr<S.Int>>;
439
+ readonly end: S.optional<S.NullOr<S.Int>>;
440
+ readonly interval: S.optional<S.NullOr<S.Literals<readonly ["minute", "hour", "day"]>>>;
441
+ }>, {}>;
915
442
  export declare class BasinMetricsParams extends BasinMetricsParams_base {
916
443
  }
917
- declare const StreamMetricSet_base: S.Literal<["storage"]>;
918
- export declare class StreamMetricSet extends StreamMetricSet_base {
919
- }
920
- declare const StreamMetricsParams_base: S.Struct<{
921
- set: typeof StreamMetricSet;
922
- start: S.optionalWith<S.filter<typeof S.Int>, {
923
- nullable: true;
924
- }>;
925
- end: S.optionalWith<S.filter<typeof S.Int>, {
926
- nullable: true;
927
- }>;
928
- interval: S.optionalWith<typeof TimeseriesInterval, {
929
- nullable: true;
930
- }>;
931
- }>;
444
+ export declare const StreamMetricSet: S.Literal<"storage">;
445
+ declare const StreamMetricsParams_base: S.Class<StreamMetricsParams, S.Struct<{
446
+ readonly set: S.Literal<"storage">;
447
+ readonly start: S.optional<S.NullOr<S.Int>>;
448
+ readonly end: S.optional<S.NullOr<S.Int>>;
449
+ readonly interval: S.optional<S.NullOr<S.Literals<readonly ["minute", "hour", "day"]>>>;
450
+ }>, {}>;
932
451
  export declare class StreamMetricsParams extends StreamMetricsParams_base {
933
452
  }
934
- declare const ListStreamsParams_base: S.Struct<{
935
- prefix: S.optionalWith<typeof S.String, {
936
- nullable: true;
937
- default: () => "";
938
- }>;
939
- start_after: S.optionalWith<typeof S.String, {
940
- nullable: true;
941
- default: () => "";
942
- }>;
943
- limit: S.optionalWith<S.filter<S.filter<typeof S.Int>>, {
944
- nullable: true;
945
- default: () => 1000;
946
- }>;
947
- }>;
453
+ declare const ListStreamsParams_base: S.Class<ListStreamsParams, S.Struct<{
454
+ readonly prefix: S.withDecodingDefault<S.optional<S.String>, never>;
455
+ readonly start_after: S.withDecodingDefault<S.optional<S.String>, never>;
456
+ readonly limit: S.withDecodingDefault<S.optional<S.Int>, never>;
457
+ }>, {}>;
948
458
  export declare class ListStreamsParams extends ListStreamsParams_base {
949
459
  }
950
- declare const StreamInfo_base: S.Class<StreamInfo, {
460
+ declare const StreamInfo_base: S.Class<StreamInfo, S.Struct<{
951
461
  /**
952
462
  * Creation time in ISO 8601 format.
953
463
  */
954
- created_at: typeof S.String;
464
+ readonly created_at: S.String;
955
465
  /**
956
466
  * Deletion time in ISO 8601 format, if the stream is being deleted.
957
467
  */
958
- deleted_at: S.optionalWith<typeof S.String, {
959
- nullable: true;
960
- }>;
468
+ readonly deleted_at: S.optional<S.NullOr<S.String>>;
961
469
  /**
962
470
  * Stream name.
963
471
  */
964
- name: typeof S.String;
965
- }, S.Struct.Encoded<{
966
- /**
967
- * Creation time in ISO 8601 format.
968
- */
969
- created_at: typeof S.String;
970
- /**
971
- * Deletion time in ISO 8601 format, if the stream is being deleted.
972
- */
973
- deleted_at: S.optionalWith<typeof S.String, {
974
- nullable: true;
975
- }>;
976
- /**
977
- * Stream name.
978
- */
979
- name: typeof S.String;
980
- }>, never, {
981
- readonly name: string;
982
- } & {
983
- readonly created_at: string;
984
- } & {
985
- readonly deleted_at?: string | undefined;
986
- }, {}, {}>;
472
+ readonly name: S.String;
473
+ }>, {}>;
987
474
  export declare class StreamInfo extends StreamInfo_base {
988
475
  }
989
- declare const ListStreamsResponse_base: S.Class<ListStreamsResponse, {
990
- /**
991
- * Indicates that there are more results that match the criteria.
992
- */
993
- has_more: typeof S.Boolean;
994
- /**
995
- * Matching streams.
996
- */
997
- streams: S.filter<S.Array$<typeof StreamInfo>>;
998
- }, S.Struct.Encoded<{
476
+ declare const ListStreamsResponse_base: S.Class<ListStreamsResponse, S.Struct<{
999
477
  /**
1000
478
  * Indicates that there are more results that match the criteria.
1001
479
  */
1002
- has_more: typeof S.Boolean;
480
+ readonly has_more: S.Boolean;
1003
481
  /**
1004
482
  * Matching streams.
1005
483
  */
1006
- streams: S.filter<S.Array$<typeof StreamInfo>>;
1007
- }>, never, {
1008
- readonly streams: readonly StreamInfo[];
1009
- } & {
1010
- readonly has_more: boolean;
1011
- }, {}, {}>;
484
+ readonly streams: S.$Array<typeof StreamInfo>;
485
+ }>, {}>;
1012
486
  export declare class ListStreamsResponse extends ListStreamsResponse_base {
1013
487
  }
1014
- declare const CreateStreamRequest_base: S.Class<CreateStreamRequest, {
1015
- config: S.optionalWith<typeof StreamConfig, {
1016
- nullable: true;
1017
- }>;
488
+ declare const CreateStreamRequest_base: S.Class<CreateStreamRequest, S.Struct<{
489
+ readonly config: S.optional<S.NullOr<typeof StreamConfig>>;
1018
490
  /**
1019
491
  * Stream name that is unique to the basin.
1020
492
  * It can be between 1 and 512 bytes in length.
1021
493
  */
1022
- stream: typeof S.String;
1023
- }, S.Struct.Encoded<{
1024
- config: S.optionalWith<typeof StreamConfig, {
1025
- nullable: true;
1026
- }>;
1027
- /**
1028
- * Stream name that is unique to the basin.
1029
- * It can be between 1 and 512 bytes in length.
1030
- */
1031
- stream: typeof S.String;
1032
- }>, never, {
1033
- readonly stream: string;
1034
- } & {
1035
- readonly config?: StreamConfig | undefined;
1036
- }, {}, {}>;
494
+ readonly stream: S.String;
495
+ }>, {}>;
1037
496
  export declare class CreateStreamRequest extends CreateStreamRequest_base {
1038
497
  }
1039
- declare const CreateOrReconfigureStreamParams_base: S.Struct<{
1040
- 's2-request-token': S.optionalWith<typeof S.String, {
1041
- nullable: true;
1042
- }>;
1043
- }>;
498
+ declare const CreateOrReconfigureStreamParams_base: S.Class<CreateOrReconfigureStreamParams, S.Struct<{
499
+ readonly 's2-request-token': S.optional<S.NullOr<S.String>>;
500
+ }>, {}>;
1044
501
  export declare class CreateOrReconfigureStreamParams extends CreateOrReconfigureStreamParams_base {
1045
502
  }
1046
- declare const CreateOrReconfigureStreamRequest_base: S.Union<[typeof S.Null, typeof StreamConfig]>;
1047
- export declare class CreateOrReconfigureStreamRequest extends CreateOrReconfigureStreamRequest_base {
1048
- }
1049
- declare const S2Format_base: S.Literal<["raw", "base64"]>;
1050
- export declare class S2Format extends S2Format_base {
1051
- }
1052
- declare const U64_base: S.filter<typeof S.Int>;
1053
- export declare class U64 extends U64_base {
1054
- }
1055
- declare const ReadParams_base: S.Struct<{
1056
- 's2-format': S.optionalWith<typeof S2Format, {
1057
- nullable: true;
1058
- }>;
1059
- seq_num: S.optionalWith<typeof U64, {
1060
- nullable: true;
1061
- }>;
1062
- timestamp: S.optionalWith<typeof U64, {
1063
- nullable: true;
1064
- }>;
1065
- tail_offset: S.optionalWith<S.filter<typeof S.Int>, {
1066
- nullable: true;
1067
- }>;
1068
- count: S.optionalWith<S.filter<typeof S.Int>, {
1069
- nullable: true;
1070
- }>;
1071
- bytes: S.optionalWith<S.filter<typeof S.Int>, {
1072
- nullable: true;
1073
- }>;
1074
- until: S.optionalWith<typeof U64, {
1075
- nullable: true;
1076
- }>;
1077
- clamp: S.optionalWith<typeof S.Boolean, {
1078
- nullable: true;
1079
- }>;
1080
- }>;
503
+ export declare const CreateOrReconfigureStreamRequest: S.Union<readonly [S.Null, typeof StreamConfig]>;
504
+ export declare const S2Format: S.Literals<readonly ["raw", "base64"]>;
505
+ export declare const U64: S.Int;
506
+ declare const ReadParams_base: S.Class<ReadParams, S.Struct<{
507
+ readonly 's2-format': S.optional<S.NullOr<S.Literals<readonly ["raw", "base64"]>>>;
508
+ readonly seq_num: S.optional<S.NullOr<S.Int>>;
509
+ readonly timestamp: S.optional<S.NullOr<S.Int>>;
510
+ readonly tail_offset: S.optional<S.NullOr<S.Int>>;
511
+ readonly count: S.optional<S.NullOr<S.Int>>;
512
+ readonly bytes: S.optional<S.NullOr<S.Int>>;
513
+ readonly until: S.optional<S.NullOr<S.Int>>;
514
+ readonly clamp: S.optional<S.NullOr<S.Boolean>>;
515
+ }>, {}>;
1081
516
  export declare class ReadParams extends ReadParams_base {
1082
517
  }
1083
- declare const Header_base: S.filter<S.filter<S.NonEmptyArray<typeof S.String>>>;
1084
518
  /**
1085
519
  * Headers add structured information to a record as name-value pairs.
1086
520
  *
1087
521
  * The name cannot be empty, with the exception of an S2 command record.
1088
522
  */
1089
- export declare class Header extends Header_base {
1090
- }
1091
- declare const SequencedRecord_base: S.Class<SequencedRecord, {
1092
- /**
1093
- * Body of the record.
1094
- */
1095
- body: S.optionalWith<typeof S.String, {
1096
- nullable: true;
1097
- }>;
1098
- /**
1099
- * Series of name-value pairs for this record.
1100
- */
1101
- headers: S.optionalWith<S.Array$<typeof Header>, {
1102
- nullable: true;
1103
- }>;
1104
- /**
1105
- * Sequence number assigned by the service.
1106
- */
1107
- seq_num: typeof U64;
1108
- /**
1109
- * Timestamp for this record.
1110
- */
1111
- timestamp: typeof U64;
1112
- }, S.Struct.Encoded<{
523
+ export declare const Header: S.NonEmptyArray<S.String>;
524
+ declare const SequencedRecord_base: S.Class<SequencedRecord, S.Struct<{
1113
525
  /**
1114
526
  * Body of the record.
1115
527
  */
1116
- body: S.optionalWith<typeof S.String, {
1117
- nullable: true;
1118
- }>;
528
+ readonly body: S.optional<S.NullOr<S.String>>;
1119
529
  /**
1120
530
  * Series of name-value pairs for this record.
1121
531
  */
1122
- headers: S.optionalWith<S.Array$<typeof Header>, {
1123
- nullable: true;
1124
- }>;
532
+ readonly headers: S.optional<S.NullOr<S.$Array<S.NonEmptyArray<S.String>>>>;
1125
533
  /**
1126
534
  * Sequence number assigned by the service.
1127
535
  */
1128
- seq_num: typeof U64;
536
+ readonly seq_num: S.Int;
1129
537
  /**
1130
538
  * Timestamp for this record.
1131
539
  */
1132
- timestamp: typeof U64;
1133
- }>, never, {
1134
- readonly seq_num: number;
1135
- } & {
1136
- readonly timestamp: number;
1137
- } & {
1138
- readonly body?: string | undefined;
1139
- } & {
1140
- readonly headers?: readonly (readonly [string, ...string[]])[] | undefined;
1141
- }, {}, {}>;
540
+ readonly timestamp: S.Int;
541
+ }>, {}>;
1142
542
  /**
1143
543
  * Record that is durably sequenced on a stream.
1144
544
  */
1145
545
  export declare class SequencedRecord extends SequencedRecord_base {
1146
546
  }
1147
- declare const StreamPosition_base: S.Class<StreamPosition, {
547
+ declare const StreamPosition_base: S.Class<StreamPosition, S.Struct<{
1148
548
  /**
1149
549
  * Sequence number assigned by the service.
1150
550
  */
1151
- seq_num: S.filter<typeof S.Int>;
551
+ readonly seq_num: S.Int;
1152
552
  /**
1153
553
  * Timestamp, which may be client-specified or assigned by the service.
1154
554
  * If it is assigned by the service, it will represent milliseconds since Unix epoch.
1155
555
  */
1156
- timestamp: S.filter<typeof S.Int>;
1157
- }, S.Struct.Encoded<{
1158
- /**
1159
- * Sequence number assigned by the service.
1160
- */
1161
- seq_num: S.filter<typeof S.Int>;
1162
- /**
1163
- * Timestamp, which may be client-specified or assigned by the service.
1164
- * If it is assigned by the service, it will represent milliseconds since Unix epoch.
1165
- */
1166
- timestamp: S.filter<typeof S.Int>;
1167
- }>, never, {
1168
- readonly seq_num: number;
1169
- } & {
1170
- readonly timestamp: number;
1171
- }, {}, {}>;
556
+ readonly timestamp: S.Int;
557
+ }>, {}>;
1172
558
  /**
1173
559
  * Position of a record in a stream.
1174
560
  */
1175
561
  export declare class StreamPosition extends StreamPosition_base {
1176
562
  }
1177
- declare const ReadBatch_base: S.Class<ReadBatch, {
563
+ declare const ReadBatch_base: S.Class<ReadBatch, S.Struct<{
1178
564
  /**
1179
565
  * Records that are durably sequenced on the stream, retrieved based on the requested criteria.
1180
566
  * This can only be empty in response to a regular (non-SSE) read, if the request cannot be satisfied without violating an explicit limit.
1181
567
  */
1182
- records: S.Array$<typeof SequencedRecord>;
1183
- tail: S.optionalWith<typeof StreamPosition, {
1184
- nullable: true;
1185
- }>;
1186
- }, S.Struct.Encoded<{
1187
- /**
1188
- * Records that are durably sequenced on the stream, retrieved based on the requested criteria.
1189
- * This can only be empty in response to a regular (non-SSE) read, if the request cannot be satisfied without violating an explicit limit.
1190
- */
1191
- records: S.Array$<typeof SequencedRecord>;
1192
- tail: S.optionalWith<typeof StreamPosition, {
1193
- nullable: true;
1194
- }>;
1195
- }>, never, {
1196
- readonly records: readonly SequencedRecord[];
1197
- } & {
1198
- readonly tail?: StreamPosition | undefined;
1199
- }, {}, {}>;
568
+ readonly records: S.$Array<typeof SequencedRecord>;
569
+ readonly tail: S.optional<S.NullOr<typeof StreamPosition>>;
570
+ }>, {}>;
1200
571
  export declare class ReadBatch extends ReadBatch_base {
1201
572
  }
1202
- declare const TailResponse_base: S.Class<TailResponse, {
573
+ declare const TailResponse_base: S.Class<TailResponse, S.Struct<{
1203
574
  /**
1204
575
  * Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
1205
576
  */
1206
- tail: typeof StreamPosition;
1207
- }, S.Struct.Encoded<{
1208
- /**
1209
- * Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.
1210
- */
1211
- tail: typeof StreamPosition;
1212
- }>, never, {
1213
- readonly tail: StreamPosition;
1214
- }, {}, {}>;
577
+ readonly tail: typeof StreamPosition;
578
+ }>, {}>;
1215
579
  export declare class TailResponse extends TailResponse_base {
1216
580
  }
1217
- declare const AppendParams_base: S.Struct<{
1218
- 's2-format': S.optionalWith<typeof S2Format, {
1219
- nullable: true;
1220
- }>;
1221
- }>;
581
+ declare const AppendParams_base: S.Class<AppendParams, S.Struct<{
582
+ readonly 's2-format': S.optional<S.NullOr<S.Literals<readonly ["raw", "base64"]>>>;
583
+ }>, {}>;
1222
584
  export declare class AppendParams extends AppendParams_base {
1223
585
  }
1224
- declare const AppendRecord_base: S.Class<AppendRecord, {
586
+ declare const AppendRecord_base: S.Class<AppendRecord, S.Struct<{
1225
587
  /**
1226
588
  * Body of the record.
1227
589
  */
1228
- body: S.optionalWith<typeof S.String, {
1229
- nullable: true;
1230
- }>;
590
+ readonly body: S.optional<S.NullOr<S.String>>;
1231
591
  /**
1232
592
  * Series of name-value pairs for this record.
1233
593
  */
1234
- headers: S.optionalWith<S.Array$<typeof Header>, {
1235
- nullable: true;
1236
- }>;
1237
- timestamp: S.optionalWith<typeof U64, {
1238
- nullable: true;
1239
- }>;
1240
- }, S.Struct.Encoded<{
1241
- /**
1242
- * Body of the record.
1243
- */
1244
- body: S.optionalWith<typeof S.String, {
1245
- nullable: true;
1246
- }>;
1247
- /**
1248
- * Series of name-value pairs for this record.
1249
- */
1250
- headers: S.optionalWith<S.Array$<typeof Header>, {
1251
- nullable: true;
1252
- }>;
1253
- timestamp: S.optionalWith<typeof U64, {
1254
- nullable: true;
1255
- }>;
1256
- }>, never, {
1257
- readonly timestamp?: number | undefined;
1258
- } & {
1259
- readonly body?: string | undefined;
1260
- } & {
1261
- readonly headers?: readonly (readonly [string, ...string[]])[] | undefined;
1262
- }, {}, {}>;
594
+ readonly headers: S.optional<S.NullOr<S.$Array<S.NonEmptyArray<S.String>>>>;
595
+ readonly timestamp: S.optional<S.NullOr<S.Int>>;
596
+ }>, {}>;
1263
597
  /**
1264
598
  * Record to be appended to a stream.
1265
599
  */
1266
600
  export declare class AppendRecord extends AppendRecord_base {
1267
601
  }
1268
- declare const AppendInput_base: S.Class<AppendInput, {
602
+ declare const AppendInput_base: S.Class<AppendInput, S.Struct<{
1269
603
  /**
1270
604
  * Enforce a fencing token, which starts out as an empty string that can be overridden by a `fence` command record.
1271
605
  */
1272
- fencing_token: S.optionalWith<typeof S.String, {
1273
- nullable: true;
1274
- }>;
1275
- match_seq_num: S.optionalWith<typeof U64, {
1276
- nullable: true;
1277
- }>;
606
+ readonly fencing_token: S.optional<S.NullOr<S.String>>;
607
+ readonly match_seq_num: S.optional<S.NullOr<S.Int>>;
1278
608
  /**
1279
609
  * Batch of records to append atomically, which must contain at least one record, and no more than 1000.
1280
610
  * The total size of a batch of records may not exceed 1 MiB of metered bytes.
1281
611
  */
1282
- records: S.Array$<typeof AppendRecord>;
1283
- }, S.Struct.Encoded<{
1284
- /**
1285
- * Enforce a fencing token, which starts out as an empty string that can be overridden by a `fence` command record.
1286
- */
1287
- fencing_token: S.optionalWith<typeof S.String, {
1288
- nullable: true;
1289
- }>;
1290
- match_seq_num: S.optionalWith<typeof U64, {
1291
- nullable: true;
1292
- }>;
1293
- /**
1294
- * Batch of records to append atomically, which must contain at least one record, and no more than 1000.
1295
- * The total size of a batch of records may not exceed 1 MiB of metered bytes.
1296
- */
1297
- records: S.Array$<typeof AppendRecord>;
1298
- }>, never, {
1299
- readonly records: readonly AppendRecord[];
1300
- } & {
1301
- readonly fencing_token?: string | undefined;
1302
- } & {
1303
- readonly match_seq_num?: number | undefined;
1304
- }, {}, {}>;
612
+ readonly records: S.$Array<typeof AppendRecord>;
613
+ }>, {}>;
1305
614
  /**
1306
615
  * Payload of an `append` request.
1307
616
  */
1308
617
  export declare class AppendInput extends AppendInput_base {
1309
618
  }
1310
- declare const AppendAck_base: S.Class<AppendAck, {
1311
- /**
1312
- * Sequence number of the last record that was appended `+ 1`, and timestamp of the last record that was appended.
1313
- * The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
1314
- */
1315
- end: typeof StreamPosition;
1316
- /**
1317
- * Sequence number and timestamp of the first record that was appended.
1318
- */
1319
- start: typeof StreamPosition;
1320
- /**
1321
- * Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.
1322
- * This can be greater than the `end` position in case of concurrent appends.
1323
- */
1324
- tail: typeof StreamPosition;
1325
- }, S.Struct.Encoded<{
619
+ declare const AppendAck_base: S.Class<AppendAck, S.Struct<{
1326
620
  /**
1327
621
  * Sequence number of the last record that was appended `+ 1`, and timestamp of the last record that was appended.
1328
622
  * The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
1329
623
  */
1330
- end: typeof StreamPosition;
624
+ readonly end: typeof StreamPosition;
1331
625
  /**
1332
626
  * Sequence number and timestamp of the first record that was appended.
1333
627
  */
1334
- start: typeof StreamPosition;
628
+ readonly start: typeof StreamPosition;
1335
629
  /**
1336
630
  * Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.
1337
631
  * This can be greater than the `end` position in case of concurrent appends.
1338
632
  */
1339
- tail: typeof StreamPosition;
1340
- }>, never, {
1341
- readonly start: StreamPosition;
1342
- } & {
1343
- readonly end: StreamPosition;
1344
- } & {
1345
- readonly tail: StreamPosition;
1346
- }, {}, {}>;
633
+ readonly tail: typeof StreamPosition;
634
+ }>, {}>;
1347
635
  /**
1348
636
  * Success response to an `append` request.
1349
637
  */
1350
638
  export declare class AppendAck extends AppendAck_base {
1351
639
  }
1352
- declare const AppendConditionFailed_base: S.Union<[S.Struct<{
640
+ /**
641
+ * Aborted due to a failed condition.
642
+ */
643
+ export declare const AppendConditionFailed: S.Union<readonly [S.Struct<{
1353
644
  /**
1354
645
  * Fencing token did not match.
1355
646
  * The expected fencing token is returned.
1356
647
  */
1357
- fencing_token_mismatch: typeof S.String;
648
+ readonly fencing_token_mismatch: S.String;
1358
649
  }>, S.Struct<{
1359
650
  /**
1360
651
  * Sequence number did not match the tail of the stream.
1361
652
  * The expected next sequence number is returned.
1362
653
  */
1363
- seq_num_mismatch: S.filter<typeof S.Int>;
654
+ readonly seq_num_mismatch: S.Int;
1364
655
  }>]>;
1365
- /**
1366
- * Aborted due to a failed condition.
1367
- */
1368
- export declare class AppendConditionFailed extends AppendConditionFailed_base {
1369
- }
1370
656
  export declare const make: (httpClient: HttpClient.HttpClient, options?: {
1371
657
  readonly transformClient?: ((client: HttpClient.HttpClient) => Effect.Effect<HttpClient.HttpClient>) | undefined;
1372
658
  }) => Client;
@@ -1375,96 +661,96 @@ export interface Client {
1375
661
  /**
1376
662
  * List access tokens.
1377
663
  */
1378
- readonly listAccessTokens: (options?: typeof ListAccessTokensParams.Encoded) => Effect.Effect<typeof ListAccessTokensResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
664
+ readonly listAccessTokens: (options?: typeof ListAccessTokensParams.Encoded) => Effect.Effect<typeof ListAccessTokensResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1379
665
  /**
1380
666
  * Issue a new access token.
1381
667
  */
1382
- readonly issueAccessToken: (options: typeof AccessTokenInfo.Encoded) => Effect.Effect<typeof IssueAccessTokenResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
668
+ readonly issueAccessToken: (options: typeof AccessTokenInfo.Encoded) => Effect.Effect<typeof IssueAccessTokenResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1383
669
  /**
1384
670
  * Revoke an access token.
1385
671
  */
1386
- readonly revokeAccessToken: (id: string) => Effect.Effect<void, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
672
+ readonly revokeAccessToken: (id: string) => Effect.Effect<void, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1387
673
  /**
1388
674
  * List basins.
1389
675
  */
1390
- readonly listBasins: (options?: typeof ListBasinsParams.Encoded) => Effect.Effect<typeof ListBasinsResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
676
+ readonly listBasins: (options?: typeof ListBasinsParams.Encoded) => Effect.Effect<typeof ListBasinsResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1391
677
  /**
1392
678
  * Create a basin.
1393
679
  */
1394
- readonly createBasin: (options: typeof CreateBasinRequest.Encoded) => Effect.Effect<typeof BasinInfo.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
680
+ readonly createBasin: (options: typeof CreateBasinRequest.Encoded) => Effect.Effect<typeof BasinInfo.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1395
681
  /**
1396
682
  * Get basin configuration.
1397
683
  */
1398
- readonly getBasinConfig: (basin: string) => Effect.Effect<typeof BasinConfig.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
684
+ readonly getBasinConfig: (basin: string) => Effect.Effect<typeof BasinConfig.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1399
685
  /**
1400
686
  * Create or reconfigure a basin.
1401
687
  */
1402
688
  readonly createOrReconfigureBasin: (basin: string, options: {
1403
689
  readonly params?: typeof CreateOrReconfigureBasinParams.Encoded | undefined;
1404
690
  readonly payload: typeof CreateOrReconfigureBasinRequest.Encoded;
1405
- }) => Effect.Effect<typeof BasinInfo.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
691
+ }) => Effect.Effect<typeof BasinInfo.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1406
692
  /**
1407
693
  * Delete a basin.
1408
694
  */
1409
- readonly deleteBasin: (basin: string) => Effect.Effect<void, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
695
+ readonly deleteBasin: (basin: string) => Effect.Effect<void, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1410
696
  /**
1411
697
  * Reconfigure a basin.
1412
698
  */
1413
- readonly reconfigureBasin: (basin: string, options: typeof BasinReconfiguration.Encoded) => Effect.Effect<typeof BasinConfig.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
699
+ readonly reconfigureBasin: (basin: string, options: typeof BasinReconfiguration.Encoded) => Effect.Effect<typeof BasinConfig.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1414
700
  /**
1415
701
  * Account-level metrics.
1416
702
  */
1417
- readonly accountMetrics: (options: typeof AccountMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
703
+ readonly accountMetrics: (options: typeof AccountMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1418
704
  /**
1419
705
  * Basin-level metrics.
1420
706
  */
1421
- readonly basinMetrics: (basin: string, options: typeof BasinMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
707
+ readonly basinMetrics: (basin: string, options: typeof BasinMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1422
708
  /**
1423
709
  * Stream-level metrics.
1424
710
  */
1425
- readonly streamMetrics: (basin: string, stream: string, options: typeof StreamMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
711
+ readonly streamMetrics: (basin: string, stream: string, options: typeof StreamMetricsParams.Encoded) => Effect.Effect<typeof MetricSetResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1426
712
  /**
1427
713
  * List streams.
1428
714
  */
1429
- readonly listStreams: (options?: typeof ListStreamsParams.Encoded) => Effect.Effect<typeof ListStreamsResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
715
+ readonly listStreams: (options?: typeof ListStreamsParams.Encoded) => Effect.Effect<typeof ListStreamsResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1430
716
  /**
1431
717
  * Create a stream.
1432
718
  */
1433
- readonly createStream: (options: typeof CreateStreamRequest.Encoded) => Effect.Effect<typeof StreamInfo.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
719
+ readonly createStream: (options: typeof CreateStreamRequest.Encoded) => Effect.Effect<typeof StreamInfo.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1434
720
  /**
1435
721
  * Get stream configuration.
1436
722
  */
1437
- readonly getStreamConfig: (stream: string) => Effect.Effect<typeof StreamConfig.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
723
+ readonly getStreamConfig: (stream: string) => Effect.Effect<typeof StreamConfig.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1438
724
  /**
1439
725
  * Create or reconfigure a stream.
1440
726
  */
1441
727
  readonly createOrReconfigureStream: (stream: string, options: {
1442
728
  readonly params?: typeof CreateOrReconfigureStreamParams.Encoded | undefined;
1443
729
  readonly payload: typeof CreateOrReconfigureStreamRequest.Encoded;
1444
- }) => Effect.Effect<typeof StreamInfo.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
730
+ }) => Effect.Effect<typeof StreamInfo.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1445
731
  /**
1446
732
  * Delete a stream.
1447
733
  */
1448
- readonly deleteStream: (stream: string) => Effect.Effect<void, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
734
+ readonly deleteStream: (stream: string) => Effect.Effect<void, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1449
735
  /**
1450
736
  * Reconfigure a stream.
1451
737
  */
1452
- readonly reconfigureStream: (stream: string, options: typeof StreamReconfiguration.Encoded) => Effect.Effect<typeof StreamConfig.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
738
+ readonly reconfigureStream: (stream: string, options: typeof StreamReconfiguration.Encoded) => Effect.Effect<typeof StreamConfig.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1453
739
  /**
1454
740
  * Read records.
1455
741
  */
1456
- readonly read: (stream: string, options?: typeof ReadParams.Encoded) => Effect.Effect<typeof ReadBatch.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type> | ClientError<'TailResponse', typeof TailResponse.Type>>;
742
+ readonly read: (stream: string, options?: typeof ReadParams.Encoded) => Effect.Effect<typeof ReadBatch.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type> | ClientError<'TailResponse', typeof TailResponse.Type>>;
1457
743
  /**
1458
744
  * Append records.
1459
745
  */
1460
746
  readonly append: (stream: string, options: {
1461
747
  readonly params?: typeof AppendParams.Encoded | undefined;
1462
748
  readonly payload: typeof AppendInput.Encoded;
1463
- }) => Effect.Effect<typeof AppendAck.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type> | ClientError<'AppendConditionFailed', typeof AppendConditionFailed.Type>>;
749
+ }) => Effect.Effect<typeof AppendAck.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type> | ClientError<'AppendConditionFailed', typeof AppendConditionFailed.Type>>;
1464
750
  /**
1465
751
  * Check the tail.
1466
752
  */
1467
- readonly checkTail: (stream: string) => Effect.Effect<typeof TailResponse.Type, HttpClientError.HttpClientError | ParseResult.ParseError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
753
+ readonly checkTail: (stream: string) => Effect.Effect<typeof TailResponse.Type, HttpClientError.HttpClientError | S.SchemaError | ClientError<'ErrorResponse', typeof ErrorResponse.Type>>;
1468
754
  }
1469
755
  export interface ClientError<Tag extends string, E> {
1470
756
  readonly _tag: Tag;