Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 0.14.0 (#95)
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/791654f10a6af06d05b89e154ed521a4>
> OpenAPI Change report available at:
<https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/e9dee02fb353f3f5e6abeff83171aa5e>
# SDK update
Based on:
- OpenAPI Doc  
- Speakeasy CLI 1.348.1 (2.380.1)
https://github.com/speakeasy-api/speakeasy
## OpenAPI Change Summary


```
├─┬Info
│ └──[🔀] version (4:14)
└─┬Servers
  └──[➕] servers (6:7)
```

| Document Element | Total Changes | Breaking Changes |
|------------------|---------------|------------------|
| info             | 1             | 0                |
| servers          | 1             | 0                |

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jul 29, 2024
1 parent fd87cc7 commit f12b10c
Show file tree
Hide file tree
Showing 46 changed files with 210 additions and 78 deletions.
19 changes: 11 additions & 8 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: 3f2fbf3f00965b046a501b0642259d4e
docVersion: 1.0.39
speakeasyVersion: 1.335.0
generationVersion: 2.370.2
releaseVersion: 0.13.0
configChecksum: 42aa478608bdf1332898ea475f2c41ad
docChecksum: 20a563c667f63df94bebac671d008a7e
docVersion: 1.0.41
speakeasyVersion: 1.348.1
generationVersion: 2.380.1
releaseVersion: 0.14.0
configChecksum: 1eced6a53b0d7bdd6ae24458fdda9a4a
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand All @@ -15,8 +15,9 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.5
core: 3.11.6
core: 3.11.11
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.0
examples: 2.81.4
globalSecurity: 2.82.9
globalSecurityCallbacks: 0.1.0
Expand All @@ -28,7 +29,7 @@ features:
retries: 2.83.0
sdkHooks: 0.1.0
serverIDs: 2.81.2
unions: 2.85.5
unions: 2.85.6
generatedFiles:
- src/sdk/general.ts
- src/sdk/sdk.ts
Expand All @@ -40,6 +41,7 @@ generatedFiles:
- src/index.ts
- src/lib/base64.ts
- src/lib/config.ts
- src/lib/dlv.ts
- src/lib/encodings.ts
- src/lib/http.ts
- src/lib/is-plain-object.ts
Expand Down Expand Up @@ -85,3 +87,4 @@ generatedFiles:
- src/hooks/hooks.ts
- src/hooks/types.ts
- src/hooks/index.ts
- CONTRIBUTING.md
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.335.0
speakeasyVersion: 1.348.1
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:1320eaa3fcc76a80f0eb1ae5b1911b76e3bf7027c01415145bfbd6bee3e3f853
sourceBlobDigest: sha256:f079320c7561160783552dcc1331f166de988922dd9bdb108df9625279ca3002
sourceRevisionDigest: sha256:d9a931a50d97bc11347f15100441fb15949c78c4bd1ba40563622fef337f71e4
sourceBlobDigest: sha256:c92c14e9b5efafea512482ea6da6a7f1599b3063b2eb2ad2e8feb76c8016ab62
tags:
- latest
- main
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:1320eaa3fcc76a80f0eb1ae5b1911b76e3bf7027c01415145bfbd6bee3e3f853
sourceBlobDigest: sha256:f079320c7561160783552dcc1331f166de988922dd9bdb108df9625279ca3002
sourceRevisionDigest: sha256:d9a931a50d97bc11347f15100441fb15949c78c4bd1ba40563622fef337f71e4
sourceBlobDigest: sha256:c92c14e9b5efafea512482ea6da6a7f1599b3063b2eb2ad2e8feb76c8016ab62
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.

## How to Report Issues

If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ To change the default retry strategy for a single API call, simply provide a ret
```typescript
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { Strategy } from "unstructured-client/sdk/models/shared";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
security: {
Expand All @@ -176,7 +176,8 @@ async function run() {
{
partitionParameters: {
files: await openAsBlob("./sample-file"),
strategy: Strategy.Auto,
chunkingStrategy: ChunkingStrategy.ByTitle,
strategy: Strategy.HiRes,
},
},
{
Expand Down Expand Up @@ -205,7 +206,7 @@ If you'd like to override the default retry strategy for all operations that sup
```typescript
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { Strategy } from "unstructured-client/sdk/models/shared";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
retryConfig: {
Expand All @@ -227,7 +228,8 @@ async function run() {
const result = await unstructuredClient.general.partition({
partitionParameters: {
files: await openAsBlob("./sample-file"),
strategy: Strategy.Auto,
chunkingStrategy: ChunkingStrategy.ByTitle,
strategy: Strategy.HiRes,
},
});

Expand Down Expand Up @@ -286,7 +288,7 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
```typescript
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { Strategy } from "unstructured-client/sdk/models/shared";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
security: {
Expand All @@ -298,7 +300,8 @@ async function run() {
const result = await unstructuredClient.general.partition({
partitionParameters: {
files: await openAsBlob("./sample-file"),
strategy: Strategy.Auto,
chunkingStrategy: ChunkingStrategy.ByTitle,
strategy: Strategy.HiRes,
},
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,14 @@ Based on:
### Generated
- [typescript v0.13.0] .
### Releases
- [NPM v0.13.0] https://www.npmjs.com/package/unstructured-client/v/0.13.0 - .
- [NPM v0.13.0] https://www.npmjs.com/package/unstructured-client/v/0.13.0 - .

## 2024-07-29 22:19:36
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.348.1 (2.380.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.14.0] .
### Releases
- [NPM v0.14.0] https://www.npmjs.com/package/unstructured-client/v/0.14.0 - .
5 changes: 3 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
```typescript
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { Strategy } from "unstructured-client/sdk/models/shared";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";

const unstructuredClient = new UnstructuredClient({
security: {
Expand All @@ -14,7 +14,8 @@ async function run() {
const result = await unstructuredClient.general.partition({
partitionParameters: {
files: await openAsBlob("./sample-file"),
strategy: Strategy.Auto,
chunkingStrategy: ChunkingStrategy.ByTitle,
strategy: Strategy.HiRes,
},
});

Expand Down
3 changes: 2 additions & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ actions:
source: |-
import { openAsBlob } from "node:fs";
import { UnstructuredClient } from "unstructured-client";
import { Strategy } from "unstructured-client/sdk/models/shared";
import { ChunkingStrategy, Strategy } from "unstructured-client/sdk/models/shared";
const unstructuredClient = new UnstructuredClient({
security: {
Expand All @@ -24,6 +24,7 @@ actions:
partitionParameters: {
files: await openAsBlob("./sample-file"),
strategy: Strategy.Auto,
chunkingStrategy: ChunkingStrategy.Basic,
},
});
Expand Down
Loading

0 comments on commit f12b10c

Please sign in to comment.