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

Commit 1a4e2c8

Browse files
regen with examples
1 parent 682ad6f commit 1a4e2c8

File tree

14 files changed

+711
-12
lines changed

14 files changed

+711
-12
lines changed

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.576.0
77
generationVersion: 2.651.2
8-
releaseVersion: 0.15.3
9-
configChecksum: 191e87e823e5bacd832d65f8173232a3
8+
releaseVersion: 0.15.4
9+
configChecksum: f63604e0cbf70d8765c84f7aa26f2db1
1010
repoURL: https://github.com/s2-streamstore/s2-sdk-typescript.git
1111
installationURL: https://github.com/s2-streamstore/s2-sdk-typescript
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 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.3
27+
version: 0.15.4
2828
additionalDependencies:
2929
dependencies:
3030
uuid: ^9.0.1

.speakeasy/workflow.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ targets:
1414
sourceRevisionDigest: sha256:cf3b2930e03ae94b7c4e5129fdc7de87dbe1ce22529d4ad54ed07e3295b0d9d1
1515
sourceBlobDigest: sha256:1126a3a653dcb11115d0c7241384d721307b5c5579c5cbcfdec35f67f0abfe38
1616
codeSamplesNamespace: s-2-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:babb8c32a43520b35c47e9c39050442a19cff99c883b6c2e4a859d01e254bdc0
17+
codeSamplesRevisionDigest: sha256:3ed3596cdd1c8ce9357d1f3f7ab396516f31e43496dd24498fb62dd9c7eaa9af
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

examples/.env.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @s2-dev/streamstore SDK Environment Variables
2+
# Copy this file to .env and fill in your actual values
3+
# DO NOT commit the .env file to version control
4+
5+
# Security Configuration
6+
# The SDK supports loading security credentials from environment variables
7+
# with the prefix: S2_
8+
#
9+
# Example security environment variables:
10+
# S2_API_KEY=your_api_key_here
11+
# S2_BEARER_TOKEN=your_bearer_token_here
12+
# S2_USERNAME=your_username_here
13+
# S2_PASSWORD=your_password_here
14+
#
15+
# Check the SDK documentation for the exact environment variable names
16+
# required for your specific authentication method.

examples/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# @s2-dev/streamstore Examples
2+
3+
This directory contains example scripts demonstrating how to use the @s2-dev/streamstore SDK.
4+
5+
## Prerequisites
6+
7+
- Node.js (v18 or higher)
8+
- npm
9+
10+
## Setup
11+
12+
1. Copy `.env.template` to `.env`:
13+
```bash
14+
cp .env.template .env
15+
```
16+
17+
2. Edit `.env` and add your actual credentials (API keys, tokens, etc.)
18+
19+
## Running the Examples
20+
21+
To run an example file from the examples directory:
22+
23+
```bash
24+
npm run build && npx tsx example.ts
25+
```
26+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3+
*/
4+
5+
/**
6+
* Example usage of the @s2-dev/streamstore SDK
7+
*
8+
* To run this example from the examples directory:
9+
* npm run build && npx tsx accessTokensListAccessTokens.ts
10+
*/
11+
12+
import { S2 } from "@s2-dev/streamstore";
13+
14+
const s2 = new S2({
15+
accessToken: process.env["S2_ACCESS_TOKEN"] ?? "",
16+
});
17+
18+
async function main() {
19+
const result = await s2.listAccessTokens({});
20+
21+
console.log(result);
22+
}
23+
24+
main().catch(console.error);

0 commit comments

Comments
 (0)