Skip to content

Commit 70459c5

Browse files
Merge pull request #2 from speakeasy-sdks/speakeasy-sdk-regen-1732044123
chore: 🐝 Update SDK - Generate 0.36.1
2 parents df40592 + e58e795 commit 70459c5

File tree

11 files changed

+75
-16
lines changed

11 files changed

+75
-16
lines changed

.devcontainer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
<div align="center">
3+
<a href="https://codespaces.new/speakeasy-sdks/code-sample-api.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
27
> **Remember to shutdown a GitHub Codespace when it is not in use!**
38
49
# Dev Containers Quick Start

.speakeasy/gen.lock

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ management:
55
docVersion: 0.4.0
66
speakeasyVersion: 1.441.0
77
generationVersion: 2.460.1
8-
releaseVersion: 0.36.0
9-
configChecksum: 9505b45b3f0fe8a1a05ea6570deeca6b
8+
releaseVersion: 0.36.1
9+
configChecksum: 1ff388269dbaf115761162d6af4ed6f3
10+
repoURL: https://github.com/speakeasy-sdks/code-sample-api.git
11+
installationURL: https://github.com/speakeasy-sdks/code-sample-api
1012
features:
1113
typescript:
1214
acceptHeaders: 2.81.2
@@ -112,6 +114,7 @@ examples:
112114
responses:
113115
4XX:
114116
application/json: {"message": "<value>", "status_code": 159498}
117+
"200": {}
115118
generateCodeSamplePreviewAsync:
116119
speakeasy-default-generate-code-sample-preview-async:
117120
requestBody:
@@ -131,3 +134,4 @@ examples:
131134
application/json: {"status": "pending"}
132135
4XX:
133136
application/json: {"message": "<value>", "status_code": 893724}
137+
"200": {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: false
1717
oAuth2PasswordEnabled: false
1818
typescript:
19-
version: 0.36.0
19+
version: 0.36.1
2020
additionalDependencies:
2121
dependencies: {}
2222
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ workflow:
3131
code_samples_typescript_sdk:
3232
target: typescript
3333
source: speakeasy-OAS
34+
codeSamples:
35+
registry:
36+
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/speakeasy-oas-code-samples
37+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ targets:
1616
code_samples_typescript_sdk:
1717
target: typescript
1818
source: speakeasy-OAS
19-
# publish:
20-
# npm:
21-
# token: $npm_token
19+
codeSamples:
20+
registry:
21+
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/speakeasy-oas-code-samples
22+
blocking: false

README.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,25 @@ The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https
4747
### NPM
4848

4949
```bash
50-
npm add <UNSET>
50+
npm add https://github.com/speakeasy-sdks/code-sample-api
5151
```
5252

5353
### PNPM
5454

5555
```bash
56-
pnpm add <UNSET>
56+
pnpm add https://github.com/speakeasy-sdks/code-sample-api
5757
```
5858

5959
### Bun
6060

6161
```bash
62-
bun add <UNSET>
62+
bun add https://github.com/speakeasy-sdks/code-sample-api
6363
```
6464

6565
### Yarn
6666

6767
```bash
68-
yarn add <UNSET> zod
68+
yarn add https://github.com/speakeasy-sdks/code-sample-api zod
6969

7070
# Note that Yarn does not install peer dependencies automatically. You will need
7171
# to install zod as shown above.
@@ -108,6 +108,38 @@ run();
108108

109109
```
110110

111+
<!-- Start SDK Example Usage [usage] -->
112+
## SDK Example Usage
113+
114+
### Example
115+
116+
```typescript
117+
import { SDK } from "@speakeasy-api/code-samples";
118+
import { openAsBlob } from "node:fs";
119+
120+
const sdk = new SDK({
121+
security: {
122+
apiKey: "<YOUR_API_KEY_HERE>",
123+
},
124+
});
125+
126+
async function run() {
127+
const result = await sdk.codesamples.preview({
128+
languages: [
129+
"<value>",
130+
],
131+
schemaFile: await openAsBlob("example.file"),
132+
});
133+
134+
// Handle the result
135+
console.log(result);
136+
}
137+
138+
run();
139+
140+
```
141+
<!-- End SDK Example Usage [usage] -->
142+
111143
<!-- Start Available Resources and Operations [operations] -->
112144
## Available Resources and Operations
113145

RELEASES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
3+
## 2024-11-19 19:21:59
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [typescript v0.36.1] .

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@speakeasy-api/code-samples",
5-
"version": "0.36.0",
5+
"version": "0.36.1",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "@speakeasy-api/code-samples",
3-
"version": "0.36.0",
3+
"version": "0.36.1",
44
"author": "Speakeasy",
55
"main": "./index.js",
66
"sideEffects": false,
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/speakeasy-sdks/code-sample-api.git"
10+
},
711
"scripts": {
812
"lint": "eslint --max-warnings=0 src",
913
"build": "tsc",

0 commit comments

Comments
 (0)