Skip to content

Commit 0f86270

Browse files
[create-pull-request] automated change (#103)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5638bb7 commit 0f86270

File tree

2 files changed

+16
-27
lines changed

2 files changed

+16
-27
lines changed

packages/streamstore/src/generated/types.gen.ts

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ export type AccumulationMetric = {
5858
/**
5959
* Timeseries values.
6060
* Each element is a tuple of a timestamp in Unix epoch seconds and a data point.
61-
* The data point represents the accumulated value for the time period starting at the timestamp,
62-
* spanning one `interval`.
61+
* The data point represents the accumulated value for the time period starting at the timestamp, spanning one `interval`.
6362
*/
6463
values: Array<[
6564
number,
@@ -179,7 +178,7 @@ export type BasinState = 'active' | 'creating' | 'deleting';
179178
export type CreateBasinRequest = {
180179
/**
181180
* Basin name which must be globally unique.
182-
* It can be between 8 and 48 characters in length, and comprise lowercase letters, numbers and hyphens.
181+
* It can be between 8 and 48 bytes in length, and comprise lowercase letters, numbers and hyphens.
183182
* It cannot begin or end with a hyphen.
184183
*/
185184
basin: BasinNameStr;
@@ -224,6 +223,8 @@ export type ErrorInfo = {
224223

225224
export type FencingToken = string;
226225

226+
export type Format = 'raw' | 'base64';
227+
227228
export type GaugeMetric = {
228229
/**
229230
* Timeseries name.
@@ -316,8 +317,7 @@ export type Metric = {
316317
scalar: ScalarMetric;
317318
} | {
318319
/**
319-
* Named series of `(timestamp, value)` points representing an accumulation over a specified
320-
* interval.
320+
* Named series of `(timestamp, value)` points representing an accumulation over a specified interval.
321321
*/
322322
accumulation: AccumulationMetric;
323323
} | {
@@ -385,6 +385,8 @@ export type ReadWritePermissions = {
385385
write?: boolean;
386386
};
387387

388+
export type RequestToken = string;
389+
388390
export type ResourceSet = {
389391
/**
390392
* Match only the resource with this exact name.
@@ -412,8 +414,6 @@ export type RetentionPolicy = {
412414
infinite: InfiniteRetention;
413415
};
414416

415-
export type S2Format = 'raw' | 'base64';
416-
417417
export type ScalarMetric = {
418418
/**
419419
* Metric name.
@@ -608,9 +608,11 @@ export type RevokeAccessTokenErrors = {
608608
export type RevokeAccessTokenError = RevokeAccessTokenErrors[keyof RevokeAccessTokenErrors];
609609

610610
export type RevokeAccessTokenResponses = {
611-
200: unknown;
611+
204: void;
612612
};
613613

614+
export type RevokeAccessTokenResponse = RevokeAccessTokenResponses[keyof RevokeAccessTokenResponses];
615+
614616
export type ListBasinsData = {
615617
body?: never;
616618
path?: never;
@@ -652,7 +654,7 @@ export type CreateBasinData = {
652654
/**
653655
* Client-specified request token for idempotent retries.
654656
*/
655-
's2-request-token'?: string;
657+
's2-request-token'?: RequestToken;
656658
};
657659
path?: never;
658660
query?: never;
@@ -756,12 +758,6 @@ export type ReconfigureBasinResponse = ReconfigureBasinResponses[keyof Reconfigu
756758

757759
export type CreateOrReconfigureBasinData = {
758760
body?: null | CreateOrReconfigureBasinRequest;
759-
headers?: {
760-
/**
761-
* Client-specified request token for idempotent retries.
762-
*/
763-
's2-request-token'?: string;
764-
};
765761
path: {
766762
/**
767763
* Basin name.
@@ -782,7 +778,6 @@ export type CreateOrReconfigureBasinError = CreateOrReconfigureBasinErrors[keyof
782778
export type CreateOrReconfigureBasinResponses = {
783779
200: BasinInfo;
784780
201: BasinInfo;
785-
204: void;
786781
};
787782

788783
export type CreateOrReconfigureBasinResponse = CreateOrReconfigureBasinResponses[keyof CreateOrReconfigureBasinResponses];
@@ -957,7 +952,7 @@ export type CreateStreamData = {
957952
/**
958953
* Client-specified request token for idempotent retries.
959954
*/
960-
's2-request-token'?: string;
955+
's2-request-token'?: RequestToken;
961956
};
962957
path?: never;
963958
query?: never;
@@ -1063,12 +1058,6 @@ export type ReconfigureStreamResponse = ReconfigureStreamResponses[keyof Reconfi
10631058

10641059
export type CreateOrReconfigureStreamData = {
10651060
body?: null | StreamConfig;
1066-
headers?: {
1067-
/**
1068-
* Client-specified request token for idempotent retries.
1069-
*/
1070-
's2-request-token'?: string;
1071-
};
10721061
path: {
10731062
/**
10741063
* Stream name.
@@ -1090,8 +1079,8 @@ export type CreateOrReconfigureStreamErrors = {
10901079
export type CreateOrReconfigureStreamError = CreateOrReconfigureStreamErrors[keyof CreateOrReconfigureStreamErrors];
10911080

10921081
export type CreateOrReconfigureStreamResponses = {
1082+
200: StreamInfo;
10931083
201: StreamInfo;
1094-
204: void;
10951084
};
10961085

10971086
export type CreateOrReconfigureStreamResponse = CreateOrReconfigureStreamResponses[keyof CreateOrReconfigureStreamResponses];
@@ -1104,7 +1093,7 @@ export type ReadData = {
11041093
* Use `raw` (default) for efficient transmission and storage of Unicode data — storage will be in UTF-8.
11051094
* Use `base64` for safe transmission with efficient storage of binary data.
11061095
*/
1107-
's2-format'?: S2Format;
1096+
's2-format'?: Format;
11081097
};
11091098
path: {
11101099
/**
@@ -1180,7 +1169,7 @@ export type AppendData = {
11801169
* Use `raw` (default) for efficient transmission and storage of Unicode data — storage will be in UTF-8.
11811170
* Use `base64` for safe transmission with efficient storage of binary data.
11821171
*/
1183-
's2-format'?: S2Format;
1172+
's2-format'?: Format;
11841173
};
11851174
path: {
11861175
/**

s2-protos

0 commit comments

Comments
 (0)