Skip to content

Commit

Permalink
Merge pull request #2 from speakeasy-sdks/speakeasy-sdk-regen-1732044123
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.36.1
  • Loading branch information
ryan-timothy-albert authored Nov 19, 2024
2 parents df40592 + e58e795 commit 70459c5
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

<div align="center">
<a href="https://codespaces.new/speakeasy-sdks/code-sample-api.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
</div>
<br>

> **Remember to shutdown a GitHub Codespace when it is not in use!**
# Dev Containers Quick Start
Expand Down
8 changes: 6 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ management:
docVersion: 0.4.0
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 0.36.0
configChecksum: 9505b45b3f0fe8a1a05ea6570deeca6b
releaseVersion: 0.36.1
configChecksum: 1ff388269dbaf115761162d6af4ed6f3
repoURL: https://github.com/speakeasy-sdks/code-sample-api.git
installationURL: https://github.com/speakeasy-sdks/code-sample-api
features:
typescript:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -112,6 +114,7 @@ examples:
responses:
4XX:
application/json: {"message": "<value>", "status_code": 159498}
"200": {}
generateCodeSamplePreviewAsync:
speakeasy-default-generate-code-sample-preview-async:
requestBody:
Expand All @@ -131,3 +134,4 @@ examples:
application/json: {"status": "pending"}
4XX:
application/json: {"message": "<value>", "status_code": 893724}
"200": {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.36.0
version: 0.36.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
4 changes: 4 additions & 0 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ workflow:
code_samples_typescript_sdk:
target: typescript
source: speakeasy-OAS
codeSamples:
registry:
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/speakeasy-oas-code-samples
blocking: false
7 changes: 4 additions & 3 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ targets:
code_samples_typescript_sdk:
target: typescript
source: speakeasy-OAS
# publish:
# npm:
# token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/speakeasy-oas-code-samples
blocking: false
40 changes: 36 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https
### NPM

```bash
npm add <UNSET>
npm add https://github.com/speakeasy-sdks/code-sample-api
```

### PNPM

```bash
pnpm add <UNSET>
pnpm add https://github.com/speakeasy-sdks/code-sample-api
```

### Bun

```bash
bun add <UNSET>
bun add https://github.com/speakeasy-sdks/code-sample-api
```

### Yarn

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

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

```

<!-- Start SDK Example Usage [usage] -->
## SDK Example Usage

### Example

```typescript
import { SDK } from "@speakeasy-api/code-samples";
import { openAsBlob } from "node:fs";

const sdk = new SDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});

async function run() {
const result = await sdk.codesamples.preview({
languages: [
"<value>",
],
schemaFile: await openAsBlob("example.file"),
});

// Handle the result
console.log(result);
}

run();

```
<!-- End SDK Example Usage [usage] -->

<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

Expand Down
9 changes: 9 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


## 2024-11-19 19:21:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.36.1] .
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@speakeasy-api/code-samples",
"version": "0.36.0",
"version": "0.36.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "@speakeasy-api/code-samples",
"version": "0.36.0",
"version": "0.36.1",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/speakeasy-sdks/code-sample-api.git"
},
"scripts": {
"lint": "eslint --max-warnings=0 src",
"build": "tsc",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.4.0",
sdkVersion: "0.36.0",
sdkVersion: "0.36.1",
genVersion: "2.460.1",
userAgent:
"speakeasy-sdk/typescript 0.36.0 2.460.1 0.4.0 @speakeasy-api/code-samples",
"speakeasy-sdk/typescript 0.36.1 2.460.1 0.4.0 @speakeasy-api/code-samples",
} as const;

0 comments on commit 70459c5

Please sign in to comment.