Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit d04162c

Browse files
authored
chore: update sdk (#21)
1 parent 8bad257 commit d04162c

27 files changed

+419
-371
lines changed

.speakeasy/gen.lock

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2d20490e-9921-47d5-9711-d3c4b91c8cfa
33
management:
4-
docChecksum: 76d8867e9c1fc8897fc8f35f456e5c46
4+
docChecksum: 1baa587ddf2ee1963a7f519d525b8b00
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.595.3
7-
generationVersion: 2.671.2
8-
releaseVersion: 0.15.9
9-
configChecksum: 0d493ad883ee21ddbe9e1946cb3aa08f
6+
speakeasyVersion: 1.609.0
7+
generationVersion: 2.692.0
8+
releaseVersion: 0.15.11
9+
configChecksum: fbbaec318308546a01748e878042c10b
1010
repoURL: https://github.com/s2-streamstore/s2-sdk-typescript.git
1111
installationURL: https://github.com/s2-streamstore/s2-sdk-typescript
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
acceptHeaders: 2.81.2
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.12
18-
core: 3.21.19
18+
core: 3.21.22
1919
defaultEnabledRetries: 0.1.0
2020
devContainers: 2.90.0
2121
enumUnions: 0.1.0
@@ -71,13 +71,15 @@ generatedFiles:
7171
- docs/models/components/four.md
7272
- docs/models/components/gauge.md
7373
- docs/models/components/gaugevalues.md
74+
- docs/models/components/infiniteretention.md
7475
- docs/models/components/issueaccesstokenresponse.md
7576
- docs/models/components/label.md
7677
- docs/models/components/listaccesstokensresponse.md
7778
- docs/models/components/listbasinsresponse.md
7879
- docs/models/components/liststreamsresponse.md
7980
- docs/models/components/metric.md
8081
- docs/models/components/metric1.md
82+
- docs/models/components/metric2.md
8183
- docs/models/components/metricsetresponse.md
8284
- docs/models/components/metricunit.md
8385
- docs/models/components/one.md
@@ -249,6 +251,7 @@ generatedFiles:
249251
- src/models/components/deleteonemptyreconfiguration.ts
250252
- src/models/components/gauge.ts
251253
- src/models/components/index.ts
254+
- src/models/components/infiniteretention.ts
252255
- src/models/components/issueaccesstokenresponse.ts
253256
- src/models/components/label.ts
254257
- src/models/components/listaccesstokensresponse.ts

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: false
2525
skipResponseBodyAssertions: false
2626
typescript:
27-
version: 0.15.9
27+
version: 0.15.11
2828
additionalDependencies:
2929
dependencies:
3030
uuid: ^9.0.1
@@ -63,4 +63,5 @@ typescript:
6363
packageName: '@s2-dev/streamstore'
6464
responseFormat: flat
6565
templateVersion: v2
66+
usageSDKInitImports: []
6667
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.595.3
1+
speakeasyVersion: 1.609.0
22
sources:
33
S2 API:
44
sourceNamespace: s-2-api
5-
sourceRevisionDigest: sha256:1e3f9a236e5b03e8b366389aecef8db454f5ab6e8e80b790e144e843cefdf85f
6-
sourceBlobDigest: sha256:a88b5983bb9a8349bc854e15958c127df65ddd0178d52938020049aefd84040d
5+
sourceRevisionDigest: sha256:a142c5d3b16810cd4038aef46ab0c877d953def2fe9f1bcb680abc4012be97ae
6+
sourceBlobDigest: sha256:e38d7f91cdb33c8be7099eecbe5374f810a071cafb3c5593eaacca9e4f80a718
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
streamstore:
1212
source: S2 API
1313
sourceNamespace: s-2-api
14-
sourceRevisionDigest: sha256:1e3f9a236e5b03e8b366389aecef8db454f5ab6e8e80b790e144e843cefdf85f
15-
sourceBlobDigest: sha256:a88b5983bb9a8349bc854e15958c127df65ddd0178d52938020049aefd84040d
14+
sourceRevisionDigest: sha256:a142c5d3b16810cd4038aef46ab0c877d953def2fe9f1bcb680abc4012be97ae
15+
sourceBlobDigest: sha256:e38d7f91cdb33c8be7099eecbe5374f810a071cafb3c5593eaacca9e4f80a718
1616
codeSamplesNamespace: s-2-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:f315e03e69d0a46fd091d1f7bb1e09a03fd7ac8278d9664fee3d74a3e1847549
17+
codeSamplesRevisionDigest: sha256:89605055c7e1d247a8087435afbea9cf26f10078436ead00995d0707adcec148
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# InfiniteRetention
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { InfiniteRetention } from "@s2-dev/streamstore/models/components";
7+
8+
let value: InfiniteRetention = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| ----------- | ----------- | ----------- | ----------- |

docs/models/components/metric.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ const value: components.Metric1 = {
1515
};
1616
```
1717

18-
### `components.Two`
18+
### `components.Metric2`
1919

2020
```typescript
21-
const value: components.Two = {
21+
const value: components.Metric2 = {
2222
accumulation: {
2323
bucketLength: "day",
2424
name: "<value>",
2525
unit: "bytes",
26-
values: [
27-
[],
28-
],
26+
values: [],
2927
},
3028
};
3129
```

docs/models/components/metric2.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Metric2
2+
3+
Named series of `(timestamp, value)` points representing an accumulation over a specified
4+
bucket.
5+
6+
## Example Usage
7+
8+
```typescript
9+
import { Metric2 } from "@s2-dev/streamstore/models/components";
10+
11+
let value: Metric2 = {
12+
accumulation: {
13+
bucketLength: "day",
14+
name: "<value>",
15+
unit: "bytes",
16+
values: [],
17+
},
18+
};
19+
```
20+
21+
## Fields
22+
23+
| Field | Type | Required | Description |
24+
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
25+
| `accumulation` | [components.Accumulation](../../models/components/accumulation.md) | :heavy_check_mark: | N/A |

docs/models/components/one.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# One
22

33
Age in seconds for automatic trimming of records older than this threshold.
4-
If this is set to 0, the stream will have infinite retention.
4+
This must be set to a value greater than 0 seconds.
5+
(While S2 is in public preview, this is capped at 28 days. Let us know if you'd like the cap removed.)
56

67
## Example Usage
78

@@ -15,6 +16,6 @@ let value: One = {
1516

1617
## Fields
1718

18-
| Field | Type | Required | Description |
19-
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
20-
| `age` | *number* | :heavy_check_mark: | Age in seconds for automatic trimming of records older than this threshold.<br/>If this is set to 0, the stream will have infinite retention. |
19+
| Field | Type | Required | Description |
20+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21+
| `age` | *number* | :heavy_check_mark: | Age in seconds for automatic trimming of records older than this threshold.<br/>This must be set to a value greater than 0 seconds.<br/>(While S2 is in public preview, this is capped at 28 days. Let us know if you'd like the cap removed.) |

docs/models/components/retentionpolicy.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ const value: components.One = {
1111
};
1212
```
1313

14+
### `components.Two`
15+
16+
```typescript
17+
const value: components.Two = {
18+
infinite: {},
19+
};
20+
```
21+

docs/models/components/two.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
# Two
22

3-
Named series of `(timestamp, value)` points representing an accumulation over a specified
4-
bucket.
3+
Retain records unless explicitly trimmed.
54

65
## Example Usage
76

87
```typescript
98
import { Two } from "@s2-dev/streamstore/models/components";
109

1110
let value: Two = {
12-
accumulation: {
13-
bucketLength: "day",
14-
name: "<value>",
15-
unit: "bytes",
16-
values: [
17-
[],
18-
],
19-
},
11+
infinite: {},
2012
};
2113
```
2214

2315
## Fields
2416

25-
| Field | Type | Required | Description |
26-
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
27-
| `accumulation` | [components.Accumulation](../../models/components/accumulation.md) | :heavy_check_mark: | N/A |
17+
| Field | Type | Required | Description |
18+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
19+
| `infinite` | [components.InfiniteRetention](../../models/components/infiniteretention.md) | :heavy_check_mark: | N/A |

docs/models/operations/readrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ let value: ReadRequest = {
2323
| `count` | *number* | :heavy_minus_sign: | Limit total records to return.<br/>If this is provided, tailing will be disabled. |
2424
| `bytes` | *number* | :heavy_minus_sign: | Limit total metered bytes to return.<br/>If this is provided, tailing will be disabled. |
2525
| `until` | *number* | :heavy_minus_sign: | Exclusive timestamp to read until.<br/>If this is provided, tailing will be disabled. |
26-
| `clamp` | *boolean* | :heavy_minus_sign: | Clamp the start position at the tail position. |
26+
| `clamp` | *boolean* | :heavy_minus_sign: | Clamp the start position at the tail position.<br/>If set, the read will start at the tail of the stream if the requested position is greater than it. |
2727
| `s2Basin` | *string* | :heavy_check_mark: | Basin name for basin-specific endpoints |

0 commit comments

Comments
 (0)