Skip to content

Commit 1dd1773

Browse files
authored
Merge pull request #4 from Unstructured-IO/speakeasy-sdk-regen-1697818826
chore: speakeasy sdk regeneration - Generate
2 parents bbf6db9 + 4c054a1 commit 1dd1773

File tree

8 files changed

+35
-34
lines changed

8 files changed

+35
-34
lines changed

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,14 @@ Based on:
132132
### Generated
133133
- [typescript v0.5.1] .
134134
### Releases
135-
- [NPM v0.5.1] https://www.npmjs.com/package/unstructured-client/v/0.5.1 - .
135+
- [NPM v0.5.1] https://www.npmjs.com/package/unstructured-client/v/0.5.1 - .
136+
137+
## 2023-10-20 16:20:23
138+
### Changes
139+
Based on:
140+
- OpenAPI Doc 0.0.1
141+
- Speakeasy CLI 1.102.1 (2.166.0) https://github.com/speakeasy-api/speakeasy
142+
### Generated
143+
- [typescript v0.6.0] .
144+
### Releases
145+
- [NPM v0.6.0] https://www.npmjs.com/package/unstructured-client/v/0.6.0 - .

docs/models/errors/httpvalidationerror.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------- | ------------------- | ------------------- | ------------------- |
8-
| `detail` | *ValidationError*[] | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- |
8+
| `detail` | [ValidationError](../../models/errors/validationerror.md)[] | :heavy_minus_sign: | N/A |

gen.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,33 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 25324f1821b1070aa4a416ec8ddca590
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.101.0
6-
generationVersion: 2.161.0
5+
speakeasyVersion: 1.102.1
6+
generationVersion: 2.166.0
77
generation:
88
comments:
99
disableComments: false
1010
omitDescriptionIfSummaryPresent: false
1111
baseServerURL: ""
12+
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1213
sdkClassName: unstructured_client
1314
singleTagPerOp: false
1415
tagNamespacingDisabled: false
1516
features:
1617
typescript:
17-
core: 2.90.4
18+
core: 2.92.4
1819
examples: 2.81.3
1920
globalSecurity: 2.82.0
2021
globalServerURLs: 2.82.0
2122
nameOverrides: 2.81.1
2223
retries: 2.82.1
2324
serverIDs: 2.81.1
2425
typescript:
25-
version: 0.5.1
26+
version: 0.6.0
2627
author: Unstructured
2728
clientServerStatusCodesAsErrors: true
2829
flattenGlobalSecurity: false
30+
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
2931
maxMethodParams: 0
3032
packageName: unstructured-client
33+
published: true
34+
repoSubDirectory: .

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": "unstructured-client",
3-
"version": "0.5.1",
3+
"version": "0.6.0",
44
"author": "Unstructured",
55
"scripts": {
66
"prepare": "tsc --build",

src/internal/utils/queryparams.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ function noExplodeSerializer(params: Record<string, any>, delimiter = ","): stri
135135

136136
if (qpDecorator == null) return;
137137

138-
return `${paramKey}${delimiter}${valToString(value[paramKey])}`;
138+
const key = qpDecorator.ParamName || paramKey
139+
return `${key}${delimiter}${valToString(value[paramKey])}`;
139140
})
140141
.join(delimiter);
141142
query.push(`${key}=${encodeURIComponent(values)}`);
@@ -177,9 +178,8 @@ function formSerializerExplode(params: Record<string, any>): string {
177178

178179
if (qpDecorator == null) return;
179180

180-
return `${paramKey}=${encodeURIComponent(
181-
valToString(value[paramKey])
182-
)}`;
181+
const key = qpDecorator.ParamName || paramKey;
182+
return `${key}=${encodeURIComponent(valToString(value[paramKey]))}`;
183183
})
184184
.join("&")
185185
);

src/sdk/models/errors/validationerror.ts

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

5-
import { SpeakeasyMetadata } from "../../../internal/utils";
6-
import { classToPlain, Expose } from "class-transformer";
5+
import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils";
6+
import { Expose } from "class-transformer";
77

8-
export class ValidationError extends Error {
8+
export class ValidationError extends SpeakeasyBase {
99
@SpeakeasyMetadata()
1010
@Expose({ name: "loc" })
1111
loc: any[];
@@ -17,17 +17,4 @@ export class ValidationError extends Error {
1717
@SpeakeasyMetadata()
1818
@Expose({ name: "type" })
1919
type: string;
20-
21-
constructor(err?: ValidationError) {
22-
super();
23-
if (err) {
24-
Object.assign(this, err);
25-
this.message = JSON.stringify(
26-
classToPlain(err, { exposeUnsetFields: false, excludeExtraneousValues: true })
27-
);
28-
}
29-
30-
this.name = "ValidationError";
31-
Object.setPrototypeOf(this, ValidationError.prototype);
32-
}
3320
}

src/sdk/sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export class SDKConfiguration {
6060
serverDefaults: any;
6161
language = "typescript";
6262
openapiDocVersion = "0.0.1";
63-
sdkVersion = "0.5.1";
64-
genVersion = "2.161.0";
65-
userAgent = "speakeasy-sdk/typescript 0.5.1 2.161.0 0.0.1 unstructured-client";
63+
sdkVersion = "0.6.0";
64+
genVersion = "2.166.0";
65+
userAgent = "speakeasy-sdk/typescript 0.6.0 2.166.0 0.0.1 unstructured-client";
6666
retryConfig?: utils.RetryConfig;
6767
public constructor(init?: Partial<SDKConfiguration>) {
6868
Object.assign(this, init);

0 commit comments

Comments
 (0)