Skip to content

Commit

Permalink
Merge pull request #19 from speakeasy-sdks/speakeasy-sdk-regen-171992…
Browse files Browse the repository at this point in the history
…9390

chore: 🐝 Update SDK - Generate
  • Loading branch information
ndimares authored Jul 2, 2024
2 parents 45ef28d + 5e5e106 commit b4931bd
Show file tree
Hide file tree
Showing 11 changed files with 186 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/esm
/dist
/.tshy
/.tshy-*
/models
/sdk/models/errors
/sdk/types
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

/.eslintrc.js
/cjs
/.tshy
/.tshy-*
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 906577a1-c369-4ae0-9074-3e1b5123889d
management:
docChecksum: 936f0ff0f6ac9e56df38e51b2591854f
docVersion: 1.0.0
speakeasyVersion: 1.322.1
generationVersion: 2.354.2
releaseVersion: 3.0.0-alpha
configChecksum: 9b227014c186955b510992ff7b0ac9f7
speakeasyVersion: 1.326.0
generationVersion: 2.359.0
releaseVersion: 3.0.0-alpha.1
configChecksum: 42feae1ffa826734cadc5912103d6a95
repoURL: https://github.com/speakeasy-sdks/bar-typescript.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-sdks/bar-typescript
Expand All @@ -15,7 +15,7 @@ features:
typescript:
additionalDependencies: 0.1.0
callbacks: 1.0.0
core: 3.10.2
core: 3.11.0
errors: 2.81.10
examples: 2.81.4
flattening: 2.81.1
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 3.0.0-alpha
version: 3.0.0-alpha.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand All @@ -31,6 +31,7 @@ typescript:
inputModelSuffix: input
maxMethodParams: 4
methodArguments: require-security-and-request
moduleFormat: commonjs
outputModelSuffix: output
packageName: '@speakeasy-sdks/speakeasy-bar'
responseFormat: envelope
Expand Down
12 changes: 9 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.322.1
speakeasyVersion: 1.326.0
sources:
bar-api:
sourceNamespace: bar-api
sourceRevisionDigest: sha256:664c6e0d58dbf41c306562f14a469cfc5b99912d93059dded8a77ee49ee92a07
sourceRevisionDigest: sha256:11967761c34a31388a85f617507d2b3844e00f6fcc2b767bb9cb54d485241902
sourceBlobDigest: sha256:2b4f4ee668d9bf6ba862927bef3aeabcdb101f163915ec8a1736b274d3152a5f
tags:
- latest
Expand All @@ -11,8 +11,10 @@ targets:
bar-typescript:
source: bar-api
sourceNamespace: bar-api
sourceRevisionDigest: sha256:664c6e0d58dbf41c306562f14a469cfc5b99912d93059dded8a77ee49ee92a07
sourceRevisionDigest: sha256:11967761c34a31388a85f617507d2b3844e00f6fcc2b767bb9cb54d485241902
sourceBlobDigest: sha256:2b4f4ee668d9bf6ba862927bef3aeabcdb101f163915ec8a1736b274d3152a5f
codeSamplesNamespace: code-samples-typescript-bar-typescript
codeSamplesRevisionDigest: sha256:9d0b4b7a3008ce8f704e2f0496cb3ba7963dc0a1094af6bcf7dfd8d4bc1a40c1
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand All @@ -30,3 +32,7 @@ workflow:
publish:
npm:
token: $npm_token
codeSamples:
output: codeSamples.yaml
registry:
location: registry.speakeasyapi.dev/speakeasy-bar-test/speakeasy-bar-test/code-samples-typescript-bar-typescript
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,14 @@ Based on:
### Generated
- [typescript v3.0.0-alpha] .
### Releases
- [NPM v3.0.0-alpha] https://www.npmjs.com/package/@speakeasy-sdks/speakeasy-bar/v/3.0.0-alpha - .
- [NPM v3.0.0-alpha] https://www.npmjs.com/package/@speakeasy-sdks/speakeasy-bar/v/3.0.0-alpha - .

## 2024-07-02 14:39:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.326.0 (2.359.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v3.0.0-alpha.1] .
### Releases
- [NPM v3.0.0-alpha.1] https://www.npmjs.com/package/@speakeasy-sdks/speakeasy-bar/v/3.0.0-alpha.1 - .
145 changes: 145 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
overlay: 1.0.0
info:
title: CodeSamples overlay for typescript target
version: 0.0.0
actions:
- target: $["paths"]["/drinks"]["get"]
update:
x-codeSamples:
- lang: typescript
label: listDrinks
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
import { DrinkType } from "@speakeasy-sdks/speakeasy-bar/sdk/models/shared";
const barSDK = new BarSDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
async function run() {
const result = await barSDK.drinks.listDrinks(DrinkType.Spirit);
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/order"]["post"]
update:
x-codeSamples:
- lang: typescript
label: createOrder
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
import { OrderType } from "@speakeasy-sdks/speakeasy-bar/sdk/models/shared";
const barSDK = new BarSDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
async function run() {
const result = await barSDK.orders.createOrder([
{
type: OrderType.Ingredient,
productCode: "AC-A2DF3",
quantity: 138554,
},
], "<value>");
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/authenticate"]["post"]
update:
x-codeSamples:
- lang: typescript
label: authenticate
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
const barSDK = new BarSDK();
async function run() {
const result = await barSDK.authentication.authenticate({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/drink/{name}"]["get"]
update:
x-codeSamples:
- lang: typescript
label: getDrink
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
const barSDK = new BarSDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
async function run() {
const result = await barSDK.drinks.getDrink("<value>");
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/ingredients"]["get"]
update:
x-codeSamples:
- lang: typescript
label: listIngredients
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
const barSDK = new BarSDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
async function run() {
const result = await barSDK.ingredients.listIngredients(347327, [
"<value>",
]);
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/webhooks/subscribe"]["post"]
update:
x-codeSamples:
- lang: typescript
label: subscribeToWebhooks
source: |-
import { BarSDK } from "@speakeasy-sdks/speakeasy-bar";
const barSDK = new BarSDK({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
async function run() {
const result = await barSDK.config.subscribeToWebhooks([
{},
]);
// Handle the result
console.log(result)
}
run();
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-sdks/speakeasy-bar",
"version": "3.0.0-alpha",
"version": "3.0.0-alpha.1",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@speakeasy-sdks/speakeasy-bar",
"version": "3.0.0-alpha",
"author": "speakeasy-bar-test",
"version": "3.0.0-alpha.1",
"author": "speakeasy-bar-test",
"main": "./index.js",
"sideEffects": false,
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "3.0.0-alpha",
genVersion: "2.354.2",
userAgent: "speakeasy-sdk/typescript 3.0.0-alpha 2.354.2 1.0.0 @speakeasy-sdks/speakeasy-bar",
sdkVersion: "3.0.0-alpha.1",
genVersion: "2.359.0",
userAgent: "speakeasy-sdk/typescript 3.0.0-alpha.1 2.359.0 1.0.0 @speakeasy-sdks/speakeasy-bar",
} as const;

0 comments on commit b4931bd

Please sign in to comment.