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

Commit 36b6624

Browse files
chore: use envelope-http
1 parent a1f7817 commit 36b6624

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1302
-216
lines changed

.speakeasy/gen.lock

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.484.1
77
generationVersion: 2.503.2
8-
releaseVersion: 0.2.8
9-
configChecksum: ca81af809cb5b55941f5cb6b77fa1ef6
8+
releaseVersion: 0.2.10
9+
configChecksum: 2e0ce3a678ea9151cac5176c36b2b15e
1010
repoURL: https://github.com/s2-streamstore/s2-sdk-typescript.git
1111
installationURL: https://github.com/s2-streamstore/s2-sdk-typescript
1212
published: true
@@ -58,6 +58,7 @@ generatedFiles:
5858
- docs/models/components/firstseqnum.md
5959
- docs/models/components/formatoption.md
6060
- docs/models/components/header.md
61+
- docs/models/components/httpmetadata.md
6162
- docs/models/components/listbasinsresponse.md
6263
- docs/models/components/liststreamsresponse.md
6364
- docs/models/components/nextseqnum.md
@@ -74,13 +75,21 @@ generatedFiles:
7475
- docs/models/components/streaminfo.md
7576
- docs/models/errors/errorresponse.md
7677
- docs/models/operations/appendrequest.md
78+
- docs/models/operations/appendresponse.md
7779
- docs/models/operations/checktailrequest.md
80+
- docs/models/operations/checktailresponse.md
7881
- docs/models/operations/createbasinrequest.md
82+
- docs/models/operations/createbasinresponse.md
7983
- docs/models/operations/createstreamrequest.md
84+
- docs/models/operations/createstreamresponse.md
8085
- docs/models/operations/deletebasinrequest.md
86+
- docs/models/operations/deletebasinresponse.md
8187
- docs/models/operations/deletestreamrequest.md
88+
- docs/models/operations/deletestreamresponse.md
8289
- docs/models/operations/getbasinconfigrequest.md
90+
- docs/models/operations/getbasinconfigresponse.md
8391
- docs/models/operations/getstreamconfigrequest.md
92+
- docs/models/operations/getstreamconfigresponse.md
8493
- docs/models/operations/headers2format.md
8594
- docs/models/operations/limit.md
8695
- docs/models/operations/listbasinsrequest.md
@@ -90,7 +99,9 @@ generatedFiles:
9099
- docs/models/operations/readrequest.md
91100
- docs/models/operations/readresponse.md
92101
- docs/models/operations/reconfigurebasinrequest.md
102+
- docs/models/operations/reconfigurebasinresponse.md
93103
- docs/models/operations/reconfigurestreamrequest.md
104+
- docs/models/operations/reconfigurestreamresponse.md
94105
- docs/models/operations/s2format.md
95106
- docs/sdks/account/README.md
96107
- docs/sdks/basin/README.md
@@ -146,6 +157,7 @@ generatedFiles:
146157
- src/models/components/createstreamrequest.ts
147158
- src/models/components/formatoption.ts
148159
- src/models/components/header.ts
160+
- src/models/components/httpmetadata.ts
149161
- src/models/components/index.ts
150162
- src/models/components/listbasinsresponse.ts
151163
- src/models/components/liststreamsresponse.ts

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: true
1818
typescript:
19-
version: 0.2.8
19+
version: 0.2.10
2020
additionalDependencies:
2121
dependencies: {}
2222
devDependencies: {}
@@ -45,6 +45,6 @@ typescript:
4545
moduleFormat: commonjs
4646
outputModelSuffix: output
4747
packageName: '@s2-dev/streamstore'
48-
responseFormat: flat
48+
responseFormat: envelope-http
4949
templateVersion: v2
5050
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ speakeasyVersion: 1.484.1
22
sources:
33
S2 API:
44
sourceNamespace: s-2-api
5-
sourceRevisionDigest: sha256:b98d456ee4bf6a9ab78f7fc4a5e42a2454d6eaf5d930d3eb3b1c395355e2251c
5+
sourceRevisionDigest: sha256:7ba779b085da338943ef74bd2b09dd2cb3ed5bd14000034e3fcc496533d6c0cd
66
sourceBlobDigest: sha256:2b52e683dc89e23add9526e1a252b370a1df73c9be84ee8e0a2be2618f07d6a9
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738739706
109
- 1.0.0
1110
targets:
1211
streamstore:
1312
source: S2 API
1413
sourceNamespace: s-2-api
15-
sourceRevisionDigest: sha256:b98d456ee4bf6a9ab78f7fc4a5e42a2454d6eaf5d930d3eb3b1c395355e2251c
14+
sourceRevisionDigest: sha256:7ba779b085da338943ef74bd2b09dd2cb3ed5bd14000034e3fcc496533d6c0cd
1615
sourceBlobDigest: sha256:2b52e683dc89e23add9526e1a252b370a1df73c9be84ee8e0a2be2618f07d6a9
1716
codeSamplesNamespace: s-2-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:34feea3514d9987c57213713f32642bbb6c2ea27b4a7d26e806cb856dd825519
17+
codeSamplesRevisionDigest: sha256:50afa0eb408b8d6080b183d9bde3f0fcea5b1a38ce0645578fa0e2e710ae7617
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,11 @@ async function run() {
223223
stream: "<value>",
224224
});
225225

226-
for await (const event of result) {
226+
if (result.readResponse == null) {
227+
throw new Error("failed to create stream: received null value");
228+
}
229+
230+
for await (const event of result.readResponse) {
227231
// Handle the event
228232
console.log(event);
229233
}

docs/models/components/age.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If set to 0, the stream will have infinite retention.
99
import { Age } from "@s2-dev/streamstore/models/components";
1010

1111
let value: Age = {
12-
age: 57,
12+
age: 97,
1313
};
1414
```
1515

docs/models/components/appendoutput.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Output from append response.
88
import { AppendOutput } from "@s2-dev/streamstore/models/components";
99

1010
let value: AppendOutput = {
11-
endSeqNum: 414662,
12-
nextSeqNum: 264555,
13-
startSeqNum: 774234,
11+
endSeqNum: 639921,
12+
nextSeqNum: 143353,
13+
startSeqNum: 944669,
1414
};
1515
```
1616

docs/models/components/basininfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let value: BasinInfo = {
1111
cell: "<value>",
1212
name: "<value>",
1313
scope: "<value>",
14-
state: "deleting",
14+
state: "active",
1515
};
1616
```
1717

docs/models/components/basinstate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Current state of the basin.
77
```typescript
88
import { BasinState } from "@s2-dev/streamstore/models/components";
99

10-
let value: BasinState = "active";
10+
let value: BasinState = "creating";
1111
```
1212

1313
## Values

docs/models/components/checktailresponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Check tail response.
88
import { CheckTailResponse } from "@s2-dev/streamstore/models/components";
99

1010
let value: CheckTailResponse = {
11-
nextSeqNum: 456150,
11+
nextSeqNum: 521848,
1212
};
1313
```
1414

docs/models/components/formatoption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```typescript
66
import { FormatOption } from "@s2-dev/streamstore/models/components";
77

8-
let value: FormatOption = "json-binsafe";
8+
let value: FormatOption = "json";
99
```
1010

1111
## Values

0 commit comments

Comments
 (0)