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
19
19
## SDK Example Usage
20
20
<!-- Start SDK Example Usage -->
21
21
``` 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
+
24
27
import { AxiosError } from " axios" ;
28
+ import { SDK } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
25
29
26
- const sdk = new SDK (withSecurity (
30
+ const sdk = new SDK ({
27
31
security: {
28
32
apiKey: {
29
33
apiKey: " YOUR_API_KEY_HERE" ,
30
34
},
31
35
}
32
- ) );
36
+ } );
33
37
34
38
const req: GetApisRequest = {
35
39
queryParams: {
Original file line number Diff line number Diff line change @@ -86,4 +86,12 @@ Based on:
86
86
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
87
87
- Speakeasy CLI 1.5.2 https://github.com/speakeasy-api/speakeasy
88
88
### 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 1
1
<!-- Start SDK Example Usage -->
2
2
``` 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
+
5
8
import { AxiosError } from " axios" ;
9
+ import { SDK } from " @speakeasy-api/speakeasy-client-sdk-typescript" ;
6
10
7
- const sdk = new SDK (withSecurity (
11
+ const sdk = new SDK ({
8
12
security: {
9
13
apiKey: {
10
14
apiKey: " YOUR_API_KEY_HERE" ,
11
15
},
12
16
}
13
- ) );
17
+ } );
14
18
15
19
const req: GetApisRequest = {
16
20
queryParams: {
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ configVersion: 1.0.0
2
2
management :
3
3
docChecksum : 2bba3b8f9d211b02569b3f9aff0d34b4
4
4
docVersion : 0.3.0
5
- speakeasyVersion : 1.5.2
5
+ speakeasyVersion : 1.5.3
6
6
generation :
7
7
telemetryEnabled : true
8
8
sdkClassName : SDK
9
9
typescript :
10
- version : 1.5.1
10
+ version : 1.5.2
11
11
author : Speakeasy
12
12
packageName : ' @speakeasy-api/speakeasy-client-sdk-typescript'
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @speakeasy-api/speakeasy-client-sdk-typescript" ,
3
- "version" : " 1.5.1 " ,
3
+ "version" : " 1.5.2 " ,
4
4
"author" : " Speakeasy" ,
5
5
"scripts" : {
6
6
"prepare" : " tsc --build"
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ export class SDK {
40
40
public _securityClient : AxiosInstance ;
41
41
public _serverURL : string ;
42
42
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 " ;
45
45
46
46
constructor ( props : SDKProps ) {
47
47
this . _serverURL = props . serverUrl ?? ServerList [ ServerProd ] ;
You can’t perform that action at this time.
0 commit comments