Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 0.15.1 (#104)
Browse files Browse the repository at this point in the history
> [!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]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Aug 9, 2024
1 parent 13d2c7f commit b6d1b12
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 48 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f42cb8e6-e2ce-4565-b975-5a9f38b94d5a
management:
docChecksum: c7313350429cfbfee15e585ae670a003
docVersion: 1.0.43
speakeasyVersion: 1.359.1
docChecksum: f9968a9b4e176b25982c5fe01966841c
docVersion: 1.0.44
speakeasyVersion: 1.360.0
generationVersion: 2.392.0
releaseVersion: 0.15.0
configChecksum: 11c1dd5bf35cf3f7dc7bd0742f95d969
releaseVersion: 0.15.1
configChecksum: 35a1f8ef21905c725838c160f1fe7332
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.359.1
speakeasyVersion: 1.360.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
sourceRevisionDigest: sha256:b83979814670834969e52df50f6ab136c2e4e7e9b52d14e3fc0969190799f822
sourceBlobDigest: sha256:73c84df69bf357471186697b8e9e28eac25dfda253e7729366a9e7e391d56267
tags:
- latest
- main
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:9ab29824f7505ff71711f8f49a72ed57c3afb89cb532e19ae2bed5c726e5d02b
sourceBlobDigest: sha256:8ed51c45bd1d42d39581285661c0c68eb9b3fb30a07447011733da7f7e436ef3
sourceRevisionDigest: sha256:b83979814670834969e52df50f6ab136c2e4e7e9b52d14e3fc0969190799f822
sourceBlobDigest: sha256:73c84df69bf357471186697b8e9e28eac25dfda253e7729366a9e7e391d56267
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,7 @@ import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});
const unstructuredClient = new UnstructuredClient();

async function run() {
const result = await unstructuredClient.general.partition(
Expand Down Expand Up @@ -220,9 +216,6 @@ const unstructuredClient = new UnstructuredClient({
},
retryConnectionErrors: false,
},
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});

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

const unstructuredClient = new UnstructuredClient({
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});
const unstructuredClient = new UnstructuredClient();

async function run() {
const result = await unstructuredClient.general.partition({
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,14 @@ Based on:
### Generated
- [typescript v0.15.0] .
### Releases
- [NPM v0.15.0] https://www.npmjs.com/package/unstructured-client/v/0.15.0 - .
- [NPM v0.15.0] https://www.npmjs.com/package/unstructured-client/v/0.15.0 - .

## 2024-08-09 21:32:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.360.0 (2.392.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.15.1] .
### Releases
- [NPM v0.15.1] https://www.npmjs.com/package/unstructured-client/v/0.15.1 - .
6 changes: 1 addition & 5 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});
const unstructuredClient = new UnstructuredClient();

async function run() {
const result = await unstructuredClient.general.partition({
Expand Down
6 changes: 1 addition & 5 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ actions:
import { UnstructuredClient } from "unstructured-client";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
const unstructuredClient = new UnstructuredClient({
security: {
apiKeyAuth: "YOUR_API_KEY",
},
});
const unstructuredClient = new UnstructuredClient();
async function run() {
const result = await unstructuredClient.general.partition({
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/models/shared/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

| Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| `apiKeyAuth` | *string* | :heavy_check_mark: | N/A | YOUR_API_KEY |
| `apiKeyAuth` | *string* | :heavy_minus_sign: | N/A | YOUR_API_KEY |
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.15.0
version: 0.15.1
additionalDependencies:
dependencies:
async: ^3.2.5
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "unstructured-client",
"version": "0.15.0",
"version": "0.15.1",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unstructured-client",
"version": "0.15.0",
"version": "0.15.1",
"author": "Unstructured",
"main": "./index.js",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/funcs/generalPartition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export async function generalPartition(
},
retryConnectionErrors: true,
},
retryCodes: options?.retryCodes || ["5xx"],
retryCodes: options?.retryCodes || ["502", "503", "504"],
});
if (!doResult.ok) {
return doResult;
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {

export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.43",
sdkVersion: "0.15.0",
openapiDocVersion: "1.0.44",
sdkVersion: "0.15.1",
genVersion: "2.392.0",
userAgent: "speakeasy-sdk/typescript 0.15.0 2.392.0 1.0.43 unstructured-client",
userAgent: "speakeasy-sdk/typescript 0.15.1 2.392.0 1.0.44 unstructured-client",
} as const;
8 changes: 4 additions & 4 deletions src/sdk/models/shared/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { remap as remap$ } from "../../../lib/primitives.js";
import * as z from "zod";

export type Security = {
apiKeyAuth: string;
apiKeyAuth?: string | undefined;
};

/** @internal */
export const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z
.object({
ApiKeyAuth: z.string(),
ApiKeyAuth: z.string().optional(),
})
.transform((v) => {
return remap$(v, {
Expand All @@ -22,13 +22,13 @@ export const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown>

/** @internal */
export type Security$Outbound = {
ApiKeyAuth: string;
ApiKeyAuth?: string | undefined;
};

/** @internal */
export const Security$outboundSchema: z.ZodType<Security$Outbound, z.ZodTypeDef, Security> = z
.object({
apiKeyAuth: z.string(),
apiKeyAuth: z.string().optional(),
})
.transform((v) => {
return remap$(v, {
Expand Down

0 comments on commit b6d1b12

Please sign in to comment.