Skip to content

Commit 334ebd0

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.26.4
1 parent c73bf3b commit 334ebd0

File tree

6 files changed

+25
-20
lines changed

6 files changed

+25
-20
lines changed

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,12 @@ Based on:
374374
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
375375
- Speakeasy CLI 1.26.3 (2.23.3) https://github.com/speakeasy-api/speakeasy
376376
### Releases
377-
- [NPM v1.21.1] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.21.1 - .
377+
- [NPM v1.21.1] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.21.1 - .
378+
379+
## 2023-04-30 00:11:37
380+
### Changes
381+
Based on:
382+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
383+
- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy
384+
### Releases
385+
- [NPM v1.21.2] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/1.21.2 - .

gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 2bba3b8f9d211b02569b3f9aff0d34b4
44
docVersion: 0.3.0
5-
speakeasyVersion: 1.26.3
6-
generationVersion: 2.23.3
5+
speakeasyVersion: 1.26.4
6+
generationVersion: 2.23.4
77
generation:
88
telemetryEnabled: true
99
sdkClassName: speakeasy
1010
singleTagPerOp: false
1111
typescript:
12-
version: 1.21.1
12+
version: 1.21.2
1313
author: Speakeasy
1414
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.21.1",
3+
"version": "1.21.2",
44
"author": "Speakeasy",
55
"scripts": {
66
"prepare": "tsc --build"

src/internal/utils/requestbody.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import {
6-
SerializationMethodToContentType,
7-
isBooleanRecord,
8-
isNumberRecord,
9-
isStringRecord,
10-
valToString,
11-
} from "./utils";
5+
import {isBooleanRecord, isNumberRecord, isStringRecord, SerializationMethodToContentType, valToString,} from "./utils";
126

137
import FormData from "form-data";
14-
import { RFCDate } from "../../sdk/types";
8+
import {RFCDate} from "../../sdk/types";
159

1610
export const requestMetadataKey = "request";
1711
const mpFormMetadataKey = "multipart_form";
@@ -56,22 +50,25 @@ const serializeContentType = (
5650

5751
switch (contentType) {
5852
case "multipart/form-data":
53+
requestBody = encodeMultipartFormData(reqBody);
54+
break;
55+
5956
case "multipart/mixed":
6057
requestBody = encodeMultipartFormData(reqBody);
6158
requestHeaders = (requestBody as FormData).getHeaders();
6259
break;
6360

6461
case "application/x-www-form-urlencoded":
6562
[requestHeaders, requestBody] = [
66-
{ "Content-Type": `${contentType}` },
63+
{"Content-Type": `${contentType}`},
6764
encodeFormUrlEncodeData(reqBody),
6865
];
6966
break;
7067

7168
case "application/json":
7269
case "text/json":
7370
[requestHeaders, requestBody] = [
74-
{ "Content-Type": `${contentType}` },
71+
{"Content-Type": `${contentType}`},
7572
reqBody,
7673
];
7774
break;
@@ -84,7 +81,7 @@ const serializeContentType = (
8481
requestBody instanceof String ||
8582
requestBody instanceof Uint8Array
8683
)
87-
requestHeaders = { "Content-Type": `${contentType}` };
84+
requestHeaders = {"Content-Type": `${contentType}`};
8885
else
8986
throw new Error(
9087
`invalid request body type ${requestBodyType} for mediaType ${contentType}`

src/sdk/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export class Speakeasy {
8181
public _securityClient: AxiosInstance;
8282
public _serverURL: string;
8383
private _language = "typescript";
84-
private _sdkVersion = "1.21.1";
85-
private _genVersion = "2.23.3";
84+
private _sdkVersion = "1.21.2";
85+
private _genVersion = "2.23.4";
8686
private _globals: any;
8787

8888
constructor(props?: SDKProps) {

0 commit comments

Comments
 (0)