Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 54 additions & 32 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2d20490e-9921-47d5-9711-d3c4b91c8cfa
management:
docChecksum: d63100b8057ce0dab36ac6f9171462c7
docChecksum: 4b97e5e3fa7185bf04131f37a65b5102
docVersion: 1.0.0
speakeasyVersion: 1.631.3
generationVersion: 2.716.14
releaseVersion: 0.15.13
configChecksum: fd1d259d63e358098f76eab7da910ee9
speakeasyVersion: 1.638.1
generationVersion: 2.729.2
releaseVersion: 0.16.0
configChecksum: e8d8d5b7a39ff5cbaf46e0e27452c0cc
repoURL: https://github.com/s2-streamstore/s2-sdk-typescript.git
installationURL: https://github.com/s2-streamstore/s2-sdk-typescript
published: true
Expand All @@ -15,7 +15,7 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
core: 3.21.25
core: 3.23.0
defaultEnabledRetries: 0.1.0
devContainers: 2.90.1
enumUnions: 0.1.0
Expand All @@ -32,9 +32,9 @@ features:
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.3.0
serverEvents: 0.1.10
serverEvents: 0.1.12
serverEventsSentinels: 0.1.0
unions: 2.85.12
unions: 2.86.0
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
Expand Down Expand Up @@ -115,7 +115,7 @@ generatedFiles:
- docs/models/components/two.md
- docs/models/components/values.md
- docs/models/errors/appendconditionfailed.md
- docs/models/errors/errorresponse.md
- docs/models/errors/errorinfo.md
- docs/models/errors/fencingtoken.md
- docs/models/errors/seqnum.md
- docs/models/errors/tailresponse.md
Expand Down Expand Up @@ -145,7 +145,6 @@ generatedFiles:
- docs/sdks/basins/README.md
- docs/sdks/metrics/README.md
- docs/sdks/records/README.md
- docs/sdks/s2/README.md
- docs/sdks/streams/README.md
- eslint.config.mjs
- examples/.env.template
Expand Down Expand Up @@ -285,7 +284,7 @@ generatedFiles:
- src/models/components/timestampingreconfiguration.ts
- src/models/errors/apierror.ts
- src/models/errors/appendconditionfailed.ts
- src/models/errors/errorresponse.ts
- src/models/errors/errorinfo.ts
- src/models/errors/httpclienterrors.ts
- src/models/errors/index.ts
- src/models/errors/responsevalidationerror.ts
Expand Down Expand Up @@ -341,7 +340,7 @@ examples:
"200":
application/json: {"access_tokens": [{"auto_prefix_streams": false, "id": "<id>", "scope": {}}, {"auto_prefix_streams": false, "id": "<id>", "scope": {}}, {"auto_prefix_streams": false, "id": "<id>", "scope": {}}], "has_more": false}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -354,7 +353,7 @@ examples:
"201":
application/json: {"access_token": "<value>"}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -366,7 +365,7 @@ examples:
id: "<id>"
responses:
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -382,7 +381,7 @@ examples:
"200":
application/json: {"basins": [{"name": "<value>", "scope": "aws:us-east-1", "state": "active"}, {"name": "<value>", "scope": "aws:us-east-1", "state": "active"}, {"name": "<value>", "scope": "aws:us-east-1", "state": "active"}], "has_more": false}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -395,7 +394,7 @@ examples:
"201":
application/json: {"name": "<value>", "scope": "aws:us-east-1", "state": "deleting"}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -411,7 +410,7 @@ examples:
"200":
application/json: {}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -426,7 +425,7 @@ examples:
"201":
application/json: {"name": "<value>", "scope": "aws:us-east-1", "state": "active"}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -440,7 +439,7 @@ examples:
basin: "<value>"
responses:
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"404":
application/json: {"error": "<value>"}
"499":
Expand All @@ -458,7 +457,7 @@ examples:
"200":
application/json: {}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -476,7 +475,7 @@ examples:
"200":
application/json: {"has_more": true, "streams": [{"created_at": "<value>", "name": "<value>"}, {"created_at": "<value>", "name": "<value>"}, {"created_at": "<value>", "name": "<value>"}]}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -492,7 +491,7 @@ examples:
"201":
application/json: {"created_at": "<value>", "name": "<value>"}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -508,7 +507,7 @@ examples:
"200":
application/json: {}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -524,7 +523,7 @@ examples:
"201":
application/json: {"created_at": "<value>", "name": "<value>"}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -538,7 +537,7 @@ examples:
s2-basin: "<value>"
responses:
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"404":
application/json: {"error": "<value>"}
"499":
Expand All @@ -558,7 +557,7 @@ examples:
"200":
application/json: {}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -575,7 +574,7 @@ examples:
"200":
application/json: {"records": [{"body": "", "seq_num": 726908, "timestamp": 537175}]}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"416":
application/json: {"tail": {"seq_num": 297326, "timestamp": 934740}}
"499":
Expand All @@ -595,7 +594,7 @@ examples:
"200":
application/json: {"end": {"seq_num": 955507, "timestamp": 515119}, "start": {"seq_num": 141999, "timestamp": 468943}, "tail": {"seq_num": 543056, "timestamp": 568743}}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"412":
application/json: {"seq_num_mismatch": 955507}
"499":
Expand All @@ -613,7 +612,7 @@ examples:
"200":
application/json: {"tail": {"seq_num": 552218, "timestamp": 574770}}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
"499":
application/json: {"error": "<value>"}
"500":
Expand All @@ -627,7 +626,7 @@ examples:
"200":
application/json: {"values": [{"gauge": {"name": "<value>", "unit": "operations", "values": []}}, {"label": {"name": "<value>", "values": ["<value 1>", "<value 2>"]}}]}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
basin_metrics:
speakeasy-default-basin-metrics:
parameters:
Expand All @@ -639,7 +638,7 @@ examples:
"200":
application/json: {"values": [{"scalar": {"name": "<value>", "unit": "operations", "value": 9897.85}}, {"label": {"name": "<value>", "values": ["<value 1>"]}}]}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
stream_metrics:
speakeasy-default-stream-metrics:
parameters:
Expand All @@ -652,6 +651,29 @@ examples:
"200":
application/json: {"values": [{"scalar": {"name": "<value>", "unit": "operations", "value": 7152.04}}, {"label": {"name": "<value>", "values": ["<value 1>", "<value 2>"]}}]}
"400":
application/json: {"message": "<value>"}
application/json: {"code": "<value>", "message": "<value>"}
examplesVersion: 1.0.2
generatedTests: {}
releaseNotes: |
## Typescript SDK Changes Detected:
* `s2.accessTokens.listAccessTokens()`: `error.code` **Changed** **Breaking** :warning:
* `s2.accessTokens.issueAccessToken()`: `error.code` **Changed** **Breaking** :warning:
* `s2.accessTokens.revokeAccessToken()`: `error.code` **Changed** **Breaking** :warning:
* `s2.basins.listBasins()`: `error.code` **Changed** **Breaking** :warning:
* `s2.basins.createBasin()`: `error` **Changed** **Breaking** :warning:
* `s2.basins.getBasinConfig()`: `error.code` **Changed** **Breaking** :warning:
* `s2.basins.createOrReconfigureBasin()`: `error.code` **Changed** **Breaking** :warning:
* `s2.basins.deleteBasin()`: `error` **Changed** **Breaking** :warning:
* `s2.basins.reconfigureBasin()`: `error.code` **Changed** **Breaking** :warning:
* `s2.metrics.accountMetrics()`: `error.code` **Changed** **Breaking** :warning:
* `s2.metrics.basinMetrics()`: `error.code` **Changed** **Breaking** :warning:
* `s2.metrics.streamMetrics()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.listStreams()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.createStream()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.getStreamConfig()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.createOrReconfigureStream()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.deleteStream()`: `error.code` **Changed** **Breaking** :warning:
* `s2.streams.reconfigureStream()`: `error.code` **Changed** **Breaking** :warning:
* `s2.records.read()`: `error` **Changed** **Breaking** :warning:
* `s2.records.append()`: `error` **Changed** **Breaking** :warning:
* `s2.records.checkTail()`: `error` **Changed** **Breaking** :warning:
5 changes: 4 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.15.13
version: 0.16.0
acceptHeaderEnum: true
additionalDependencies:
dependencies:
uuid: ^9.0.1
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.631.3
speakeasyVersion: 1.638.1
sources:
S2 API:
sourceNamespace: s-2-api
sourceRevisionDigest: sha256:1672d706a5fa626a9fa535bddef2246aa4dfda6c0c4f531a5f47f63c4bc0cf64
sourceBlobDigest: sha256:72151070b6ef57d1b9a0bd99d41be6e28bc2981cff49b5a12daf8557d0a720ea
sourceRevisionDigest: sha256:2c8fe7acee5cced083bcf91537b23dacf64eccb86aebf2ffdfe81cc36b566103
sourceBlobDigest: sha256:f605806fd7a2f7709ed67602e03ed90d10732d3c952815463358770c82cc17cd
tags:
- latest
- speakeasy-sdk-regen-1761178896
- 1.0.0
targets:
streamstore:
source: S2 API
sourceNamespace: s-2-api
sourceRevisionDigest: sha256:1672d706a5fa626a9fa535bddef2246aa4dfda6c0c4f531a5f47f63c4bc0cf64
sourceBlobDigest: sha256:72151070b6ef57d1b9a0bd99d41be6e28bc2981cff49b5a12daf8557d0a720ea
sourceRevisionDigest: sha256:2c8fe7acee5cced083bcf91537b23dacf64eccb86aebf2ffdfe81cc36b566103
sourceBlobDigest: sha256:f605806fd7a2f7709ed67602e03ed90d10732d3c952815463358770c82cc17cd
codeSamplesNamespace: s-2-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:1e2ae692ec013f44571117073a915f16932673aabe20e09aca8bf40d763919e5
codeSamplesRevisionDigest: sha256:953f92dc85e3f7ebbac30bf4b7ef36a094bb7b8264d5c4dfcd218e2540041a29
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ run();
* [append](docs/sdks/records/README.md#append) - Append records.
* [checkTail](docs/sdks/records/README.md#checktail) - Check the tail.


### [streams](docs/sdks/streams/README.md)

* [listStreams](docs/sdks/streams/README.md#liststreams) - List streams.
Expand Down Expand Up @@ -467,7 +466,7 @@ async function run() {
console.log(error.headers);

// Depending on the method different errors may be thrown
if (error instanceof errors.ErrorResponse) {
if (error instanceof errors.ErrorInfo) {
console.log(error.data$.code); // string
console.log(error.data$.message); // string
}
Expand All @@ -482,7 +481,7 @@ run();
### Error Classes
**Primary errors:**
* [`S2Error`](./src/models/errors/s2error.ts): The base class for HTTP error responses.
* [`ErrorResponse`](./src/models/errors/errorresponse.ts): .
* [`ErrorInfo`](./src/models/errors/errorinfo.ts): .

<details><summary>Less common errors (9)</summary>

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ Based on:
### Generated
- [typescript v0.11.2] .
### Releases
- [NPM v0.11.2] https://www.npmjs.com/package/@s2-dev/streamstore/v/0.11.2 - .
- [NPM v0.11.2] https://www.npmjs.com/package/@s2-dev/streamstore/v/0.11.2 - .

## 2025-10-23 00:21:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.638.1 (2.729.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.16.0] .
### Releases
- [NPM v0.16.0] https://www.npmjs.com/package/@s2-dev/streamstore/v/0.16.0 - .
Loading