Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate (#75)
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/9e9f368e7d024807043b7395cc0bb05c>
> OpenAPI Change report available at:
<https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/fca93301ede580b6bab4cfa5a7cac16d>
# SDK update
Based on:
- OpenAPI Doc  
- Speakeasy CLI 1.299.6 (2.338.12)
https://github.com/speakeasy-api/speakeasy
## OpenAPI Change Summary



```
├─┬Info
│ └──[🔀] version (1:80)
└─┬Components
  ├─┬partition_parameters
  │ ├─┬include_orig_elements
  │ │ └─┬ANYOF
  │ │   └──[➖] default (1:6453)❌ 
  │ ├─┬new_after_n_chars
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:7416)❌ 
  │ │ │ └──[➖] default (1:7216)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:7437)❌ 
  │ ├─┬gz_uncompressed_content_type
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:3358)❌ 
  │ │ │ └──[➖] default (1:3021)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:3378)❌ 
  │ ├─┬encoding
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:3993)❌ 
  │ │ │ └──[➖] default (1:3673)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:4013)❌ 
  │ ├─┬max_characters
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:6985)❌ 
  │ │ │ └──[➖] default (1:6768)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:7006)❌ 
  │ ├─┬starting_page_number
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:5767)❌ 
  │ │ │ └──[➖] default (1:5482)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:5788)❌ 
  │ ├─┬similarity_threshold
  │ │ └─┬ANYOF
  │ │   └──[➖] default (1:8159)❌ 
  │ ├─┬chunking_strategy
  │ │ └─┬ANYOF
  │ │   └──[➖] default (1:5848)❌ 
  │ ├─┬hi_res_model_name
  │ │ ├─┬ANYOF
  │ │ │ ├──[🔀] type (1:4170)❌ 
  │ │ │ └──[➖] default (1:3867)❌ 
  │ │ └─┬ANYOF
  │ │   └──[🔀] type (1:4190)❌ 
  │ └─┬combine_under_n_chars
  │   ├─┬ANYOF
  │   │ ├──[🔀] type (1:6454)❌ 
  │   │ └──[➖] default (1:6203)❌ 
  │   └─┬ANYOF
  │     └──[🔀] type (1:6475)❌ 
  └─┬Element
    ├──[➕] additionalProperties (1:1799)❌ 
    ├──[➖] required (1:9240)❌ 
    ├──[➖] required (1:9254)❌ 
    ├──[➖] required (1:9266)❌ 
    ├──[➖] required (1:9232)❌ 
    ├──[➕] example (1:1816)
    ├──[➖] properties (1:9045)❌ 
    ├──[➖] properties (1:9102)❌ 
    ├──[➖] properties (1:9155)❌ 
    └──[➖] properties (1:9000)❌ 
```

| Document Element | Total Changes | Breaking Changes |
|------------------|---------------|------------------|
| info             | 1             | 0                |
| components       | 34            | 33               |





## TYPESCRIPT CHANGELOG

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jun 4, 2024
1 parent 108890a commit e75a16e
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 111 deletions.
15 changes: 6 additions & 9 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: 2846e2567d9b8c8befb0fd83e373c29e
docVersion: 1.0.32
docChecksum: 9965dc613ab49f64c422ea37a522f52f
docVersion: 1.0.33
speakeasyVersion: 1.299.6
generationVersion: 2.338.12
releaseVersion: 0.16.1
configChecksum: 29def02c535eb839dcc53493f76ab082
releaseVersion: 0.16.2
configChecksum: 36862da3737dab2c178e1ab7d018a733
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
Expand Down Expand Up @@ -57,18 +57,16 @@ generatedFiles:
- src/sdk/types/rfcdate.ts
- tsconfig.json
- src/sdk/models/operations/partition.ts
- src/sdk/models/shared/element.ts
- src/sdk/models/errors/httpvalidationerror.ts
- src/sdk/models/shared/validationerror.ts
- src/sdk/models/shared/partitionparameters.ts
- src/sdk/models/shared/security.ts
- src/sdk/models/errors/httpvalidationerror.ts
- src/sdk/models/errors/index.ts
- src/sdk/models/operations/index.ts
- src/sdk/models/shared/index.ts
- docs/sdk/models/operations/partitionrequest.md
- docs/sdk/models/operations/partitionresponse.md
- docs/sdk/models/shared/metadata.md
- docs/sdk/models/shared/element.md
- docs/sdk/models/errors/httpvalidationerror.md
- docs/sdk/models/shared/loc.md
- docs/sdk/models/shared/validationerror.md
- docs/sdk/models/shared/chunkingstrategy.md
Expand All @@ -77,7 +75,6 @@ generatedFiles:
- docs/sdk/models/shared/strategy.md
- docs/sdk/models/shared/partitionparameters.md
- docs/sdk/models/shared/security.md
- docs/sdk/models/errors/httpvalidationerror.md
- USAGE.md
- .gitattributes
- src/hooks/hooks.ts
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.299.6
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:3b5411ee2e45cf0093bf55bbcbd296990c5d41cd60fef10ee2f2b102d6c8a0e3
sourceBlobDigest: sha256:4ae62847009633511f8eb1bc845abceda733bae0c1d3e9be47038d1fe4814b99
sourceRevisionDigest: sha256:804812dce4dadff049e500ed885de7356b26bf05bb46256a47e2f2480249d58b
sourceBlobDigest: sha256:0e689c7b8871ef4d0db07c4afa8e2c4368043ddc32e92e0862c176bc9bff5f82
tags:
- latest
- main
targets:
unstructed-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:3b5411ee2e45cf0093bf55bbcbd296990c5d41cd60fef10ee2f2b102d6c8a0e3
sourceBlobDigest: sha256:4ae62847009633511f8eb1bc845abceda733bae0c1d3e9be47038d1fe4814b99
sourceRevisionDigest: sha256:804812dce4dadff049e500ed885de7356b26bf05bb46256a47e2f2480249d58b
sourceBlobDigest: sha256:0e689c7b8871ef4d0db07c4afa8e2c4368043ddc32e92e0862c176bc9bff5f82
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,4 +466,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.16.1] .
- [typescript v0.16.1] .

## 2024-06-04 13:20:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.16.2] .
2 changes: 1 addition & 1 deletion docs/sdk/models/operations/partitionresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
| Field | Type | Required | Description |
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `elements` | [shared.Element](../../../sdk/models/shared/element.md)[] | :heavy_minus_sign: | Successful Response |
| `elements` | Record<string, *any*>[] | :heavy_minus_sign: | Successful Response |
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11 changes: 0 additions & 11 deletions docs/sdk/models/shared/element.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/sdk/models/shared/metadata.md

This file was deleted.

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.16.1
version: 0.16.2
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.16.1",
"version": "0.16.2",
"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.16.1",
"version": "0.16.2",
"author": "Unstructured",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {

export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.32",
sdkVersion: "0.16.1",
openapiDocVersion: "1.0.33",
sdkVersion: "0.16.2",
genVersion: "2.338.12",
userAgent: "speakeasy-sdk/typescript 0.16.1 2.338.12 1.0.32 unstructured-client",
userAgent: "speakeasy-sdk/typescript 0.16.2 2.338.12 1.0.33 unstructured-client",
} as const;
8 changes: 4 additions & 4 deletions src/sdk/models/operations/partition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type PartitionResponse = {
/**
* Successful Response
*/
elements?: Array<shared.Element> | undefined;
elements?: Array<{ [k: string]: any }> | undefined;
/**
* HTTP response status code for this operation
*/
Expand Down Expand Up @@ -70,7 +70,7 @@ export namespace PartitionResponse$ {
export const inboundSchema: z.ZodType<PartitionResponse, z.ZodTypeDef, unknown> = z
.object({
ContentType: z.string(),
Elements: z.array(shared.Element$.inboundSchema).optional(),
Elements: z.array(z.record(z.any())).optional(),
StatusCode: z.number().int(),
RawResponse: z.instanceof(Response),
})
Expand All @@ -85,15 +85,15 @@ export namespace PartitionResponse$ {

export type Outbound = {
ContentType: string;
Elements?: Array<shared.Element$.Outbound> | undefined;
Elements?: Array<{ [k: string]: any }> | undefined;
StatusCode: number;
RawResponse: never;
};

export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PartitionResponse> = z
.object({
contentType: z.string(),
elements: z.array(shared.Element$.outboundSchema).optional(),
elements: z.array(z.record(z.any())).optional(),
statusCode: z.number().int(),
rawResponse: z.instanceof(Response).transform(() => {
throw new Error("Response cannot be serialized");
Expand Down
65 changes: 0 additions & 65 deletions src/sdk/models/shared/element.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/sdk/models/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/

export * from "./element";
export * from "./partitionparameters";
export * from "./security";
export * from "./validationerror";

0 comments on commit e75a16e

Please sign in to comment.