File tree Expand file tree Collapse file tree 7 files changed +32
-16
lines changed
Expand file tree Collapse file tree 7 files changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,21 @@ yarn add @speakeasy-api/speakeasy-client-sdk-typescript
1919## SDK Example Usage
2020<!-- Start SDK Example Usage -->
2121``` typescript
22- import { SDK , withSecurity } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
23- import { GetApisRequest , GetApisResponse } from " @speakeasy-api/speakeasy-client-sdk-typescript/src/sdk/models/operations" ;
22+ import {
23+ GetApisRequest ,
24+ GetApisResponse
25+ } from " @speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations" ;
26+
2427import { AxiosError } from " axios" ;
28+ import { SDK } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
2529
26- const sdk = new SDK (withSecurity (
30+ const sdk = new SDK ({
2731 security: {
2832 apiKey: {
2933 apiKey: " YOUR_API_KEY_HERE" ,
3034 },
3135 }
32- ) );
36+ } );
3337
3438const req: GetApisRequest = {
3539 queryParams: {
Original file line number Diff line number Diff line change @@ -86,4 +86,12 @@ Based on:
8686- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
8787- Speakeasy CLI 1.5.2 https://github.com/speakeasy-api/speakeasy
8888### Releases
89- - [ NPM v1.5.1] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.5.1 - .
89+ - [ NPM v1.5.1] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.5.1 - .
90+
91+ ## 2023-02-24 17:32:32
92+ ### Changes
93+ Based on:
94+ - OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
95+ - Speakeasy CLI 1.5.3 https://github.com/speakeasy-api/speakeasy
96+ ### Releases
97+ - [ NPM v1.5.2] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.5.2 - .
Original file line number Diff line number Diff line change 11<!-- Start SDK Example Usage -->
22``` typescript
3- import { SDK , withSecurity } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
4- import { GetApisRequest , GetApisResponse } from " @speakeasy-api/speakeasy-client-sdk-typescript/src/sdk/models/operations" ;
3+ import {
4+ GetApisRequest ,
5+ GetApisResponse
6+ } from " @speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations" ;
7+
58import { AxiosError } from " axios" ;
9+ import { SDK } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
610
7- const sdk = new SDK (withSecurity (
11+ const sdk = new SDK ({
812 security: {
913 apiKey: {
1014 apiKey: " YOUR_API_KEY_HERE" ,
1115 },
1216 }
13- ) );
17+ } );
1418
1519const req: GetApisRequest = {
1620 queryParams: {
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ configVersion: 1.0.0
22management :
33 docChecksum : 2bba3b8f9d211b02569b3f9aff0d34b4
44 docVersion : 0.3.0
5- speakeasyVersion : 1.5.2
5+ speakeasyVersion : 1.5.3
66generation :
77 telemetryEnabled : true
88 sdkClassName : SDK
99typescript :
10- version : 1.5.1
10+ version : 1.5.2
1111 author : Speakeasy
1212 packageName : ' @speakeasy-api/speakeasy-client-sdk-typescript'
Original file line number Diff line number Diff line change 11{
22 "name" : " @speakeasy-api/speakeasy-client-sdk-typescript" ,
3- "version" : " 1.5.1 " ,
3+ "version" : " 1.5.2 " ,
44 "author" : " Speakeasy" ,
55 "scripts" : {
66 "prepare" : " tsc --build"
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ export class SDK {
4040 public _securityClient : AxiosInstance ;
4141 public _serverURL : string ;
4242 private _language = "typescript" ;
43- private _sdkVersion = "1.5.1 " ;
44- private _genVersion = "1.5.2 " ;
43+ private _sdkVersion = "1.5.2 " ;
44+ private _genVersion = "1.5.3 " ;
4545
4646 constructor ( props : SDKProps ) {
4747 this . _serverURL = props . serverUrl ?? ServerList [ ServerProd ] ;
You can’t perform that action at this time.
0 commit comments