Skip to content

Commit b6d1b12

Browse files
chore: 🐝 Update SDK - Generate 0.15.1 (#104)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/3fc1695c1d66e71364bb6fefba32375c> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/0ecf9f49933b3170977a0809da68de29> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.360.0 (2.392.0) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├──[➕] security (313:7) ├─┬Info │ └──[🔀] version (4:14) └─┬Extensions └──[🔀] x-speakeasy-retries (314:22) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | Co-authored-by: speakeasybot <[email protected]>
1 parent 13d2c7f commit b6d1b12

File tree

14 files changed

+39
-48
lines changed

14 files changed

+39
-48
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
33
management:
4-
docChecksum: c7313350429cfbfee15e585ae670a003
5-
docVersion: 1.0.43
6-
speakeasyVersion: 1.359.1
4+
docChecksum: f9968a9b4e176b25982c5fe01966841c
5+
docVersion: 1.0.44
6+
speakeasyVersion: 1.360.0
77
generationVersion: 2.392.0
8-
releaseVersion: 0.15.0
9-
configChecksum: 11c1dd5bf35cf3f7dc7bd0742f95d969
8+
releaseVersion: 0.15.1
9+
configChecksum: 35a1f8ef21905c725838c160f1fe7332
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.359.1
1+
speakeasyVersion: 1.360.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
6-
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
5+
sourceRevisionDigest: sha256:b83979814670834969e52df50f6ab136c2e4e7e9b52d14e3fc0969190799f822
6+
sourceBlobDigest: sha256:73c84df69bf357471186697b8e9e28eac25dfda253e7729366a9e7e391d56267
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
15-
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
14+
sourceRevisionDigest: sha256:b83979814670834969e52df50f6ab136c2e4e7e9b52d14e3fc0969190799f822
15+
sourceBlobDigest: sha256:73c84df69bf357471186697b8e9e28eac25dfda253e7729366a9e7e391d56267
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

README.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,7 @@ import { openAsBlob } from "node:fs";
165165
import { UnstructuredClient } from "unstructured-client";
166166
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
167167

168-
const unstructuredClient = new UnstructuredClient({
169-
security: {
170-
apiKeyAuth: "YOUR_API_KEY",
171-
},
172-
});
168+
const unstructuredClient = new UnstructuredClient();
173169

174170
async function run() {
175171
const result = await unstructuredClient.general.partition(
@@ -220,9 +216,6 @@ const unstructuredClient = new UnstructuredClient({
220216
},
221217
retryConnectionErrors: false,
222218
},
223-
security: {
224-
apiKeyAuth: "YOUR_API_KEY",
225-
},
226219
});
227220

228221
async function run() {
@@ -292,11 +285,7 @@ import { openAsBlob } from "node:fs";
292285
import { UnstructuredClient } from "unstructured-client";
293286
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
294287

295-
const unstructuredClient = new UnstructuredClient({
296-
security: {
297-
apiKeyAuth: "YOUR_API_KEY",
298-
},
299-
});
288+
const unstructuredClient = new UnstructuredClient();
300289

301290
async function run() {
302291
const result = await unstructuredClient.general.partition({

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,14 @@ Based on:
424424
### Generated
425425
- [typescript v0.15.0] .
426426
### Releases
427-
- [NPM v0.15.0] https://www.npmjs.com/package/unstructured-client/v/0.15.0 - .
427+
- [NPM v0.15.0] https://www.npmjs.com/package/unstructured-client/v/0.15.0 - .
428+
429+
## 2024-08-09 21:32:10
430+
### Changes
431+
Based on:
432+
- OpenAPI Doc
433+
- Speakeasy CLI 1.360.0 (2.392.0) https://github.com/speakeasy-api/speakeasy
434+
### Generated
435+
- [typescript v0.15.1] .
436+
### Releases
437+
- [NPM v0.15.1] https://www.npmjs.com/package/unstructured-client/v/0.15.1 - .

USAGE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import { openAsBlob } from "node:fs";
44
import { UnstructuredClient } from "unstructured-client";
55
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
66

7-
const unstructuredClient = new UnstructuredClient({
8-
security: {
9-
apiKeyAuth: "YOUR_API_KEY",
10-
},
11-
});
7+
const unstructuredClient = new UnstructuredClient();
128

139
async function run() {
1410
const result = await unstructuredClient.general.partition({

codeSamples.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ actions:
1313
import { UnstructuredClient } from "unstructured-client";
1414
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
1515
16-
const unstructuredClient = new UnstructuredClient({
17-
security: {
18-
apiKeyAuth: "YOUR_API_KEY",
19-
},
20-
});
16+
const unstructuredClient = new UnstructuredClient();
2117
2218
async function run() {
2319
const result = await unstructuredClient.general.partition({

docs/sdk/models/shared/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `apiKeyAuth` | *string* | :heavy_check_mark: | N/A | YOUR_API_KEY |
8+
| `apiKeyAuth` | *string* | :heavy_minus_sign: | N/A | YOUR_API_KEY |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
typescript:
13-
version: 0.15.0
13+
version: 0.15.1
1414
additionalDependencies:
1515
dependencies:
1616
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.15.0",
5+
"version": "0.15.1",
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.15.0",
3+
"version": "0.15.1",
44
"author": "Unstructured",
55
"main": "./index.js",
66
"sideEffects": false,

src/funcs/generalPartition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export async function generalPartition(
251251
},
252252
retryConnectionErrors: true,
253253
},
254-
retryCodes: options?.retryCodes || ["5xx"],
254+
retryCodes: options?.retryCodes || ["502", "503", "504"],
255255
});
256256
if (!doResult.ok) {
257257
return doResult;

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6868

6969
export const SDK_METADATA = {
7070
language: "typescript",
71-
openapiDocVersion: "1.0.43",
72-
sdkVersion: "0.15.0",
71+
openapiDocVersion: "1.0.44",
72+
sdkVersion: "0.15.1",
7373
genVersion: "2.392.0",
74-
userAgent: "speakeasy-sdk/typescript 0.15.0 2.392.0 1.0.43 unstructured-client",
74+
userAgent: "speakeasy-sdk/typescript 0.15.1 2.392.0 1.0.44 unstructured-client",
7575
} as const;

src/sdk/models/shared/security.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { remap as remap$ } from "../../../lib/primitives.js";
66
import * as z from "zod";
77

88
export type Security = {
9-
apiKeyAuth: string;
9+
apiKeyAuth?: string | undefined;
1010
};
1111

1212
/** @internal */
1313
export const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z
1414
.object({
15-
ApiKeyAuth: z.string(),
15+
ApiKeyAuth: z.string().optional(),
1616
})
1717
.transform((v) => {
1818
return remap$(v, {
@@ -22,13 +22,13 @@ export const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown>
2222

2323
/** @internal */
2424
export type Security$Outbound = {
25-
ApiKeyAuth: string;
25+
ApiKeyAuth?: string | undefined;
2626
};
2727

2828
/** @internal */
2929
export const Security$outboundSchema: z.ZodType<Security$Outbound, z.ZodTypeDef, Security> = z
3030
.object({
31-
apiKeyAuth: z.string(),
31+
apiKeyAuth: z.string().optional(),
3232
})
3333
.transform((v) => {
3434
return remap$(v, {

0 commit comments

Comments
 (0)