Skip to content

Commit 4851cbb

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0
1 parent ea0d6c4 commit 4851cbb

File tree

12 files changed

+134
-80
lines changed

12 files changed

+134
-80
lines changed

.speakeasy/gen.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
44
docChecksum: 0ecb1bbbef6c9805d6a3edcc0afd098a
55
docVersion: 1.0.51
6-
speakeasyVersion: 1.422.1
7-
generationVersion: 2.438.15
8-
releaseVersion: 0.18.2
9-
configChecksum: ca25abf7161ef39bf7793f0e79caf68e
6+
speakeasyVersion: 1.431.0
7+
generationVersion: 2.451.0
8+
releaseVersion: 0.19.0
9+
configChecksum: b7c53bc2e1f4357c0716df75b288465b
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -15,10 +15,10 @@ features:
1515
typescript:
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.11
18-
core: 3.18.2
18+
core: 3.18.3
1919
defaultEnabledRetries: 0.1.0
2020
enumUnions: 0.1.0
21-
envVarSecurityUsage: 0.1.1
21+
envVarSecurityUsage: 0.1.2
2222
examples: 2.81.4
2323
globalSecurity: 2.82.11
2424
globalSecurityCallbacks: 0.1.0
@@ -28,9 +28,10 @@ features:
2828
openEnums: 0.1.1
2929
responseFormat: 0.2.3
3030
retries: 2.83.0
31-
sdkHooks: 0.1.0
31+
sdkHooks: 0.2.0
3232
serverIDs: 2.81.2
33-
unions: 2.85.7
33+
tests: 0.7.0
34+
unions: 2.85.8
3435
uploadStreams: 0.1.0
3536
generatedFiles:
3637
- .eslintrc.cjs

.speakeasy/workflow.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
speakeasyVersion: 1.422.1
1+
speakeasyVersion: 1.431.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:7904e30126e3e30e77b56f6d901513e7009cbdc1d433dd7f6baa7da71a31b79a
5+
sourceRevisionDigest: sha256:a5a43e038066b91911fcc671ba187c3876c95d66777ccae287e0d345ee7a842a
66
sourceBlobDigest: sha256:4747157b44baaa540a909f6947d16b08b096845a816819d9b0d35d074561fb68
77
tags:
88
- latest
@@ -11,7 +11,7 @@ targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:7904e30126e3e30e77b56f6d901513e7009cbdc1d433dd7f6baa7da71a31b79a
14+
sourceRevisionDigest: sha256:a5a43e038066b91911fcc671ba187c3876c95d66777ccae287e0d345ee7a842a
1515
sourceBlobDigest: sha256:4747157b44baaa540a909f6947d16b08b096845a816819d9b0d35d074561fb68
1616
workflow:
1717
workflowVersion: 1.0.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,4 +504,14 @@ Based on:
504504
### Generated
505505
- [typescript v0.18.2] .
506506
### Releases
507-
- [NPM v0.18.2] https://www.npmjs.com/package/unstructured-client/v/0.18.2 - .
507+
- [NPM v0.18.2] https://www.npmjs.com/package/unstructured-client/v/0.18.2 - .
508+
509+
## 2024-11-06 00:27:01
510+
### Changes
511+
Based on:
512+
- OpenAPI Doc
513+
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
514+
### Generated
515+
- [typescript v0.19.0] .
516+
### Releases
517+
- [NPM v0.19.0] https://www.npmjs.com/package/unstructured-client/v/0.19.0 - .

gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ generation:
99
requestResponseComponentNamesFeb2024: false
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
12+
oAuth2PasswordEnabled: false
1213
typescript:
13-
version: 0.18.2
14+
version: 0.19.0
1415
additionalDependencies:
1516
dependencies:
1617
async: ^3.2.5

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "unstructured-client",
5-
"version": "0.18.2",
5+
"version": "0.19.0",
66
"exports": {
77
".": "./src/index.ts",
88
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",

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.18.2",
3+
"version": "0.19.0",
44
"author": "Unstructured",
55
"main": "./index.js",
66
"sideEffects": false,

src/funcs/generalPartition.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,27 @@ export async function generalPartition(
255255
});
256256

257257
const securityInput = await extractSecurity(client._options.security);
258+
const requestSecurity = resolveGlobalSecurity(securityInput);
259+
258260
const context = {
259261
operationID: "partition",
260262
oAuth2Scopes: [],
261263
securitySource: client._options.security,
264+
retryConfig: options?.retries
265+
|| client._options.retryConfig
266+
|| {
267+
strategy: "backoff",
268+
backoff: {
269+
initialInterval: 3000,
270+
maxInterval: 720000,
271+
exponent: 1.88,
272+
maxElapsedTime: 1800000,
273+
},
274+
retryConnectionErrors: true,
275+
}
276+
|| { strategy: "none" },
277+
retryCodes: options?.retryCodes || ["502", "503", "504"],
262278
};
263-
const requestSecurity = resolveGlobalSecurity(securityInput);
264279

265280
const requestRes = client._createRequest(context, {
266281
security: requestSecurity,
@@ -278,19 +293,8 @@ export async function generalPartition(
278293
const doResult = await client._do(req, {
279294
context,
280295
errorCodes: ["422", "4XX", "5XX"],
281-
retryConfig: options?.retries
282-
|| client._options.retryConfig
283-
|| {
284-
strategy: "backoff",
285-
backoff: {
286-
initialInterval: 3000,
287-
maxInterval: 720000,
288-
exponent: 1.88,
289-
maxElapsedTime: 1800000,
290-
},
291-
retryConnectionErrors: true,
292-
},
293-
retryCodes: options?.retryCodes || ["502", "503", "504"],
296+
retryConfig: context.retryConfig,
297+
retryCodes: context.retryCodes,
294298
});
295299
if (!doResult.ok) {
296300
return doResult;

src/hooks/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
*/
44

55
import { HTTPClient, RequestInput } from "../lib/http.js";
6+
import { RetryConfig } from "../lib/retries.js";
67

78
export type HookContext = {
89
operationID: string;
910
oAuth2Scopes?: string[];
1011
securitySource?: any | (() => Promise<any>);
12+
retryConfig: RetryConfig;
1113
};
1214

1315
export type Awaitable<T> = T | Promise<T>;

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6969
export const SDK_METADATA = {
7070
language: "typescript",
7171
openapiDocVersion: "1.0.51",
72-
sdkVersion: "0.18.2",
73-
genVersion: "2.438.15",
72+
sdkVersion: "0.19.0",
73+
genVersion: "2.451.0",
7474
userAgent:
75-
"speakeasy-sdk/typescript 0.18.2 2.438.15 1.0.51 unstructured-client",
75+
"speakeasy-sdk/typescript 0.19.0 2.451.0 1.0.51 unstructured-client",
7676
} as const;

0 commit comments

Comments
 (0)