Skip to content

Commit fdde57b

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.8.1
1 parent 6b1f576 commit fdde57b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+205
-66
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ import {
2525
} from "@speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations";
2626

2727
import { AxiosError } from "axios";
28-
import { SDK } from "@speakeasy-api/speakeasy-client-sdk-typescript";
28+
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
2929

30-
const sdk = new SDK({
30+
const sdk = new Speakeasy({
3131
security: {
32-
apiKey: {
33-
apiKey: "YOUR_API_KEY_HERE",
34-
},
32+
apiKey: "YOUR_API_KEY_HERE",
3533
}
3634
});
3735

@@ -69,7 +67,7 @@ sdk.apis.getApis(req).then((res: GetApisResponse | AxiosError) => {
6967
<!-- Start SDK Available Operations -->
7068
## SDK Available Operations
7169

72-
### SDK SDK
70+
### Speakeasy SDK
7371

7472
* `validateApiKey` - Validate the current api key.
7573

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,12 @@ Based on:
118118
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
119119
- Speakeasy CLI 1.7.1 https://github.com/speakeasy-api/speakeasy
120120
### Releases
121-
- [NPM v1.7.0] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.7.0 - .
121+
- [NPM v1.7.0] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.7.0 - .
122+
123+
## 2023-03-03 15:55:10
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
127+
- Speakeasy CLI 1.8.1 https://github.com/speakeasy-api/speakeasy
128+
### Releases
129+
- [NPM v1.8.0] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.8.0 - .

USAGE.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ import {
66
} from "@speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations";
77

88
import { AxiosError } from "axios";
9-
import { SDK } from "@speakeasy-api/speakeasy-client-sdk-typescript";
9+
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
1010

11-
const sdk = new SDK({
11+
const sdk = new Speakeasy({
1212
security: {
13-
apiKey: {
14-
apiKey: "YOUR_API_KEY_HERE",
15-
},
13+
apiKey: "YOUR_API_KEY_HERE",
1614
}
1715
});
1816

gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 2bba3b8f9d211b02569b3f9aff0d34b4
44
docVersion: 0.3.0
5-
speakeasyVersion: 1.7.1
5+
speakeasyVersion: 1.8.1
66
generation:
77
telemetryEnabled: true
88
sdkClassName: speakeasy
99
sdkFlattening: true
1010
typescript:
11-
version: 1.7.0
11+
version: 1.8.0
1212
author: Speakeasy
1313
packageName: '@speakeasy-api/speakeasy-client-sdk-typescript'

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"author": "Speakeasy",
55
"scripts": {
66
"prepare": "tsc --build"

src/internal/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function SpeakeasyMetadata<
152152
};
153153
}
154154

155-
export function replaceParameters(
155+
export function templateUrl(
156156
stringWithParams: string,
157157
params: Record<string, string>
158158
): string {
@@ -195,7 +195,7 @@ export function generateURL(
195195
});
196196
}
197197
});
198-
return replaceParameters(url, parsedParameters);
198+
return templateUrl(url, parsedParameters);
199199
}
200200

201201
export function parseParamDecorator(

src/sdk/apiendpoints.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class ApiEndpoints {
5353
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
5454

5555
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
56-
const res: operations.DeleteApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
56+
const res: operations.DeleteApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
5757
switch (true) {
5858
case httpRes?.status == 200:
5959
break;
@@ -106,7 +106,7 @@ export class ApiEndpoints {
106106
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
107107

108108
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
109-
const res: operations.FindApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
109+
const res: operations.FindApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
110110
switch (true) {
111111
case httpRes?.status == 200:
112112
if (utils.matchContentType(contentType, `application/json`)) {
@@ -166,7 +166,7 @@ export class ApiEndpoints {
166166
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
167167

168168
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
169-
const res: operations.GenerateOpenApiSpecForApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
169+
const res: operations.GenerateOpenApiSpecForApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
170170
switch (true) {
171171
case httpRes?.status == 200:
172172
if (utils.matchContentType(contentType, `application/json`)) {
@@ -225,7 +225,7 @@ export class ApiEndpoints {
225225
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
226226

227227
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
228-
const res: operations.GeneratePostmanCollectionForApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
228+
const res: operations.GeneratePostmanCollectionForApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
229229
switch (true) {
230230
case httpRes?.status == 200:
231231
if (utils.matchContentType(contentType, `application/octet-stream`)) {
@@ -281,7 +281,7 @@ export class ApiEndpoints {
281281
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
282282

283283
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
284-
const res: operations.GetAllApiEndpointsResponse = {statusCode: httpRes.status, contentType: contentType};
284+
const res: operations.GetAllApiEndpointsResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
285285
switch (true) {
286286
case httpRes?.status == 200:
287287
if (utils.matchContentType(contentType, `application/json`)) {
@@ -334,7 +334,7 @@ export class ApiEndpoints {
334334
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
335335

336336
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
337-
const res: operations.GetAllForVersionApiEndpointsResponse = {statusCode: httpRes.status, contentType: contentType};
337+
const res: operations.GetAllForVersionApiEndpointsResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
338338
switch (true) {
339339
case httpRes?.status == 200:
340340
if (utils.matchContentType(contentType, `application/json`)) {
@@ -387,7 +387,7 @@ export class ApiEndpoints {
387387
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
388388

389389
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
390-
const res: operations.GetApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
390+
const res: operations.GetApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
391391
switch (true) {
392392
case httpRes?.status == 200:
393393
if (utils.matchContentType(contentType, `application/json`)) {
@@ -458,7 +458,7 @@ export class ApiEndpoints {
458458
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
459459

460460
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
461-
const res: operations.UpsertApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType};
461+
const res: operations.UpsertApiEndpointResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
462462
switch (true) {
463463
case httpRes?.status == 200:
464464
if (utils.matchContentType(contentType, `application/json`)) {

src/sdk/apis.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class Apis {
5353
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
5454

5555
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
56-
const res: operations.DeleteApiResponse = {statusCode: httpRes.status, contentType: contentType};
56+
const res: operations.DeleteApiResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
5757
switch (true) {
5858
case httpRes?.status == 200:
5959
break;
@@ -106,7 +106,7 @@ export class Apis {
106106
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
107107

108108
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
109-
const res: operations.GenerateOpenApiSpecResponse = {statusCode: httpRes.status, contentType: contentType};
109+
const res: operations.GenerateOpenApiSpecResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
110110
switch (true) {
111111
case httpRes?.status == 200:
112112
if (utils.matchContentType(contentType, `application/json`)) {
@@ -165,7 +165,7 @@ export class Apis {
165165
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
166166

167167
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
168-
const res: operations.GeneratePostmanCollectionResponse = {statusCode: httpRes.status, contentType: contentType};
168+
const res: operations.GeneratePostmanCollectionResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
169169
switch (true) {
170170
case httpRes?.status == 200:
171171
if (utils.matchContentType(contentType, `application/octet-stream`)) {
@@ -225,7 +225,7 @@ export class Apis {
225225
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
226226

227227
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
228-
const res: operations.GetAllApiVersionsResponse = {statusCode: httpRes.status, contentType: contentType};
228+
const res: operations.GetAllApiVersionsResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
229229
switch (true) {
230230
case httpRes?.status == 200:
231231
if (utils.matchContentType(contentType, `application/json`)) {
@@ -282,7 +282,7 @@ export class Apis {
282282
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
283283

284284
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
285-
const res: operations.GetApisResponse = {statusCode: httpRes.status, contentType: contentType};
285+
const res: operations.GetApisResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
286286
switch (true) {
287287
case httpRes?.status == 200:
288288
if (utils.matchContentType(contentType, `application/json`)) {
@@ -350,7 +350,7 @@ export class Apis {
350350
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
351351

352352
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
353-
const res: operations.UpsertApiResponse = {statusCode: httpRes.status, contentType: contentType};
353+
const res: operations.UpsertApiResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
354354
switch (true) {
355355
case httpRes?.status == 200:
356356
if (utils.matchContentType(contentType, `application/json`)) {

src/sdk/embeds.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Embeds {
5555
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
5656

5757
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
58-
const res: operations.GetEmbedAccessTokenResponse = {statusCode: httpRes.status, contentType: contentType};
58+
const res: operations.GetEmbedAccessTokenResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
5959
switch (true) {
6060
case httpRes?.status == 200:
6161
if (utils.matchContentType(contentType, `application/json`)) {
@@ -107,7 +107,7 @@ export class Embeds {
107107
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
108108

109109
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
110-
const res: operations.GetValidEmbedAccessTokensResponse = {statusCode: httpRes.status, contentType: contentType};
110+
const res: operations.GetValidEmbedAccessTokensResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
111111
switch (true) {
112112
case httpRes?.status == 200:
113113
if (utils.matchContentType(contentType, `application/json`)) {
@@ -160,7 +160,7 @@ export class Embeds {
160160
const contentType: string = httpRes?.headers?.["content-type"] ?? "";
161161

162162
if (httpRes?.status == null) throw new Error(`status code not found in response: ${httpRes}`);
163-
const res: operations.RevokeEmbedAccessTokenResponse = {statusCode: httpRes.status, contentType: contentType};
163+
const res: operations.RevokeEmbedAccessTokenResponse = {statusCode: httpRes.status, contentType: contentType, rawResponse: httpRes,};
164164
switch (true) {
165165
case httpRes?.status == 200:
166166
break;

0 commit comments

Comments
 (0)