Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/examples/node_modules
.DS_Store
**/.speakeasy/temp/
**/.speakeasy/logs/
.DS_Store
.env
.env.local
.env.*.local
/mcp-server
/bin
/.eslintcache
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 521af75f-d011-41f9-a5ff-9f8033773118
management:
docChecksum: 80bdf0b395520d76da9a1e1e2896dae0
docChecksum: 2bf97fa8e6ca517b859cc9784a1260b5
docVersion: 0.4.0
speakeasyVersion: 1.514.0
generationVersion: 2.546.0
releaseVersion: 2.4.0-beta
configChecksum: ef5d56dcfd4f4ba9e07e1a535f410421
releaseVersion: 2.4.0-beta.2
configChecksum: c46222ef096c15c9d1d6ed8efc291f13
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
published: true
Expand Down Expand Up @@ -130,7 +130,7 @@ examples:
languages: ["python", "javascript"]
responses:
2XX:
application/json: {"snippets": [{"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "php,", "code": "<value>"}, {"path": "/root", "method": "<value>", "operationId": "<id>", "language": "unity,", "code": "<value>"}]}
application/json: {"snippets": [{"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}, {"path": "/root", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}]}
4XX:
application/json: {"message": "<value>", "status_code": 521235}
default:
Expand Down
19 changes: 18 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ generation:
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: withExample
sdkInitStyle: constructor
useClassNamesForArrayFields: true
fixes:
nameResolutionFeb2025: false
parameterOrderingFeb2024: false
requestResponseComponentNamesFeb2024: false
securityFeb2025: false
sharedErrorComponentsApr2025: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
requestBodyFieldName: ""
schemas:
allOfMergeStrategy: shallowMerge
typescript:
version: 2.4.0-beta
version: 2.4.0-beta.2
acceptHeaderEnum: true
additionalDependencies:
dependencies:
'@emotion/css': ^11.13.5
Expand All @@ -27,15 +33,21 @@ typescript:
'@types/react': ^18.3.18
peerDependencies: {}
additionalPackageJSON: {}
additionalScripts: {}
alwaysIncludeInboundAndOutbound: false
author: Speakeasy
baseErrorName: SpeakeasyCodeSamplesError
clientServerStatusCodesAsErrors: true
constFieldsAlwaysOptional: true
defaultErrorName: APIError
enableCustomCodeRegions: false
enableMCPServer: true
enableReactQuery: true
enumFormat: union
exportZodModelNamespace: false
flattenGlobalSecurity: true
flatteningOrder: body-first
generateExamples: true
imports:
option: openapi
paths:
Expand All @@ -48,9 +60,14 @@ typescript:
jsonpath: legacy
maxMethodParams: 1
methodArguments: require-security-and-request
modelPropertyCasing: camel
moduleFormat: esm
outputModelSuffix: output
packageName: '@speakeasyapi/code-samples'
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
unionStrategy: left-to-right
usageSDKInitImports: []
useIndexModules: true
zodVersion: v3
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.514.0
sources:
speakeasy-OAS:
sourceNamespace: speakeasy-oas
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
sourceRevisionDigest: sha256:fe90a8416878ccd977d4943bbc866ae3e1416cd82cbd596c785bfe09a0a68b07
sourceBlobDigest: sha256:6d02c1da40b091bd5926fb3870db4b4a29a4f853f6b373763afda1e0969ea73d
tags:
- latest
- speakeasy-sdk-regen-1741642416
- speakeasy-sdk-regen-1746489958
- 0.4.0
targets:
code_samples_typescript_sdk:
source: speakeasy-OAS
sourceNamespace: speakeasy-oas
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
sourceRevisionDigest: sha256:fe90a8416878ccd977d4943bbc866ae3e1416cd82cbd596c785bfe09a0a68b07
sourceBlobDigest: sha256:6d02c1da40b091bd5926fb3870db4b4a29a4f853f6b373763afda1e0969ea73d
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
codeSamplesRevisionDigest: sha256:73a780b60ccc00d5344b505208070173d62dfcb9013e97f8f123e322230d6afe
codeSamplesRevisionDigest: sha256:9491f6ed10357fd1524b60618970de7f5f2e9cbbebe0e600dd6074c9fd454eca
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ In some rare cases, the SDK can fail to get a response from the server or even m

You can override the default server globally by passing a server name to the `server: keyof typeof ServerList` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:

| Name | Server | Description |
| ------ | ----------------------------------- | ----------- |
| `prod` | `https://api.prod.speakeasyapi.dev` | |
| Name | Server | Description |
| ------ | -------------------------------- | ----------- |
| `prod` | `https://api.prod.speakeasy.com` | |

#### Example

Expand Down Expand Up @@ -631,7 +631,7 @@ The default server can also be overridden globally by passing a URL to the `serv
import { SpeakeasyCodeSamples } from "@speakeasyapi/code-samples";

const speakeasyCodeSamples = new SpeakeasyCodeSamples({
serverURL: "https://api.prod.speakeasyapi.dev",
serverURL: "https://api.prod.speakeasy.com",
apiKey: "<YOUR_API_KEY_HERE>",
registryUrl: "https://spec.speakeasy.com/org/ws/my-source",
});
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,14 @@ Based on:
### Generated
- [typescript v2.4.0-beta] .
### Releases
- [NPM v2.4.0-beta] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta - .
- [NPM v2.4.0-beta] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta - .

## 2025-11-21 00:05:48
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.514.0 (2.546.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v2.4.0-beta.2] .
### Releases
- [NPM v2.4.0-beta.2] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta.2 - .
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": "@speakeasyapi/code-samples",
"version": "2.4.0-beta",
"version": "2.4.0-beta.2",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
Loading