Skip to content

Commit d4e77df

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.322.1
1 parent 519b218 commit d4e77df

31 files changed

+138
-99
lines changed
File renamed without changes.

.speakeasy/gen.lock

Lines changed: 8 additions & 8 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: fd76ef24456d50f23903277067ffaa2e
5-
docVersion: 1.0.35
6-
speakeasyVersion: 1.308.1
7-
generationVersion: 2.342.6
8-
releaseVersion: 0.11.2
9-
configChecksum: f5f0ec91134be577b27ca7ca87e4f5fa
4+
docChecksum: e979c369b541b1b0e2f5c393743cfec0
5+
docVersion: 1.0.39
6+
speakeasyVersion: 1.322.1
7+
generationVersion: 2.354.2
8+
releaseVersion: 0.12.0
9+
configChecksum: d34f8ea52c712b428ef52b2da9ecc2a6
1010
repoURL: https://github.com/Unstructured-IO/unstructured-js-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-js-client
@@ -15,7 +15,7 @@ features:
1515
typescript:
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.5
18-
core: 3.9.14
18+
core: 3.10.2
1919
examples: 2.81.4
2020
globalSecurity: 2.82.9
2121
globalSecurityCallbacks: 0.1.0
@@ -31,7 +31,7 @@ features:
3131
generatedFiles:
3232
- src/sdk/general.ts
3333
- src/sdk/sdk.ts
34-
- .eslintrc.js
34+
- .eslintrc.cjs
3535
- .npmignore
3636
- RUNTIMES.md
3737
- jsr.json

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.308.1
1+
speakeasyVersion: 1.322.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:75c039c729d92b37dca8914b1b2f47e4f8a9775f1c77510896c906f925da24a9
6-
sourceBlobDigest: sha256:f116cfff59082526bec401f05b9660a39c37f7db24417e8ab7aaa65676622e3c
5+
sourceRevisionDigest: sha256:2a4bfcad31a9703701e687ffd234ace115a747b2d02ff36a7b8a744152947b76
6+
sourceBlobDigest: sha256:8b50de6b42e94da6806f8a3e96bc968622a43dfdd62d10d5dc003681fb30c59d
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructed-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:75c039c729d92b37dca8914b1b2f47e4f8a9775f1c77510896c906f925da24a9
15-
sourceBlobDigest: sha256:f116cfff59082526bec401f05b9660a39c37f7db24417e8ab7aaa65676622e3c
14+
sourceRevisionDigest: sha256:2a4bfcad31a9703701e687ffd234ace115a747b2d02ff36a7b8a744152947b76
15+
sourceBlobDigest: sha256:8b50de6b42e94da6806f8a3e96bc968622a43dfdd62d10d5dc003681fb30c59d
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,14 @@ Based on:
344344
- [typescript v0.11.1] .
345345
### Releases
346346
- [NPM v0.11.2] https://www.npmjs.com/package/unstructured-client/v/0.11.2 - .
347+
348+
349+
## 2024-06-28 00:22:58
350+
### Changes
351+
Based on:
352+
- OpenAPI Doc
353+
- Speakeasy CLI 1.322.1 (2.354.2) https://github.com/speakeasy-api/speakeasy
354+
### Generated
355+
- [typescript v0.12.0] .
356+
### Releases
357+
- [NPM v0.12.0] https://www.npmjs.com/package/unstructured-client/v/0.12.0 - .

docs/sdk/models/errors/detail.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# Detail
22

3+
4+
## Supported Types
5+
6+
### `shared.ValidationError[]`
7+
8+
```typescript
9+
const value: shared.ValidationError[] = /* values here */
10+
```
11+
12+
### `string`
13+
14+
```typescript
15+
const value: string = /* values here */
16+
```
17+

docs/sdk/models/shared/loc.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# Loc
22

3+
4+
## Supported Types
5+
6+
### `string`
7+
8+
```typescript
9+
const value: string = /* values here */
10+
```
11+
12+
### `number`
13+
14+
```typescript
15+
const value: number = /* values here */
16+
```
17+

gen.yaml

Lines changed: 2 additions & 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.11.2
13+
version: 0.12.0
1414
additionalDependencies:
1515
dependencies:
1616
async: ^3.2.5
@@ -42,3 +42,4 @@ typescript:
4242
packageName: unstructured-client
4343
responseFormat: envelope
4444
templateVersion: v2
45+
useIndexModules: true

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

src/hooks/hooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { RequestInput } from "../lib/http";
5+
import { RequestInput } from "../lib/http.js";
66
import {
77
AfterErrorContext,
88
AfterErrorHook,
@@ -15,9 +15,9 @@ import {
1515
Hooks,
1616
SDKInitHook,
1717
SDKInitOptions,
18-
} from "./types";
18+
} from "./types.js";
1919

20-
import { initHooks } from "./registration";
20+
import { initHooks } from "./registration.js";
2121

2222
export class SDKHooks implements Hooks {
2323
sdkInitHooks: SDKInitHook[] = [];

src/hooks/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./types";
6-
export * from "./hooks";
5+
export * from "./types.js";
6+
export * from "./hooks.js";

src/hooks/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { HTTPClient, RequestInput } from "../lib/http";
5+
import { HTTPClient, RequestInput } from "../lib/http.js";
66

77
export type HookContext = {
88
operationID: string;

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./sdk";
6-
export * from "./lib/config";
5+
export * from "./sdk/sdk.js";
6+
export * from "./lib/config.js";

src/lib/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import * as shared from "../sdk/models/shared";
6-
import { HTTPClient } from "./http";
7-
import { RetryConfig } from "./retries";
8-
import { Params, pathToFunc } from "./url";
5+
import * as shared from "../sdk/models/shared/index.js";
6+
import { HTTPClient } from "./http.js";
7+
import { RetryConfig } from "./retries.js";
8+
import { Params, pathToFunc } from "./url.js";
99

1010
/**
1111
* Hosted API Free
@@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
6060

6161
export const SDK_METADATA = {
6262
language: "typescript",
63-
openapiDocVersion: "1.0.35",
64-
sdkVersion: "0.11.2",
65-
genVersion: "2.342.6",
66-
userAgent: "speakeasy-sdk/typescript 0.11.2 2.342.6 1.0.35 unstructured-client",
63+
openapiDocVersion: "1.0.39",
64+
sdkVersion: "0.12.0",
65+
genVersion: "2.354.2",
66+
userAgent: "speakeasy-sdk/typescript 0.12.0 2.354.2 1.0.39 unstructured-client",
6767
} as const;

src/lib/encodings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { bytesToBase64 } from "./base64";
6-
import { isPlainObject } from "./is-plain-object";
5+
import { bytesToBase64 } from "./base64.js";
6+
import { isPlainObject } from "./is-plain-object.js";
77

88
export class EncodingError extends Error {
99
constructor(message: string) {

src/lib/http.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*/
44

55
import { never as znever } from "zod";
6-
import { parse } from "./schemas";
7-
import { isPlainObject } from "./is-plain-object";
8-
import * as errors from "../sdk/models/errors";
6+
import { parse } from "./schemas.js";
7+
import { isPlainObject } from "./is-plain-object.js";
8+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
99

1010
export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
1111

@@ -406,7 +406,7 @@ export class ResponseMatcher<Result> {
406406
}
407407
if (pred == null) {
408408
const responseBody = await response.text();
409-
throw new errors.SDKError(
409+
throw new SDKError(
410410
"Unexpected API response status or content-type",
411411
response,
412412
responseBody
@@ -446,11 +446,7 @@ export class ResponseMatcher<Result> {
446446
const resultKey = pred.key || options?.resultKey;
447447
let data: unknown;
448448
if (pred.fail) {
449-
throw new errors.SDKError(
450-
"API error occurred",
451-
response,
452-
typeof raw === "string" ? raw : ""
453-
);
449+
throw new SDKError("API error occurred", response, typeof raw === "string" ? raw : "");
454450
} else if (pred.err) {
455451
data = {
456452
...options?.extraFields,

src/lib/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod";
6-
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror";
6+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
77

88
/**
99
* Utility function that executes some code which may throw a ZodError. It

src/lib/sdks.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http";
6-
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security";
7-
import { pathToFunc } from "./url";
8-
import { encodeForm } from "./encodings";
9-
import { stringToBase64 } from "./base64";
10-
import { SDKHooks, HookContext } from "../hooks";
5+
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http.js";
6+
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security.js";
7+
import { pathToFunc } from "./url.js";
8+
import { encodeForm } from "./encodings.js";
9+
import { stringToBase64 } from "./base64.js";
10+
import { SDKHooks } from "../hooks/hooks.js";
11+
import { HookContext } from "../hooks/types.js";
1112

1213
export type RequestOptions = {
1314
fetchOptions?: Omit<RequestInit, "method" | "body">;

src/lib/security.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import * as shared from "../sdk/models/shared";
5+
import * as shared from "../sdk/models/shared/index.js";
66

77
export enum SecurityErrorCode {
88
Incomplete = "incomplete",

src/sdk/general.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { SDKHooks } from "../hooks";
6-
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
7-
import { encodeSimple as encodeSimple$ } from "../lib/encodings";
8-
import { HTTPClient } from "../lib/http";
9-
import * as retries$ from "../lib/retries";
10-
import * as schemas$ from "../lib/schemas";
11-
import { ClientSDK, RequestOptions } from "../lib/sdks";
12-
import * as errors from "./models/errors";
13-
import * as operations from "./models/operations";
14-
import { isBlobLike } from "./types";
5+
import { SDKHooks } from "../hooks/hooks.js";
6+
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config.js";
7+
import { encodeSimple as encodeSimple$ } from "../lib/encodings.js";
8+
import { HTTPClient } from "../lib/http.js";
9+
import * as retries$ from "../lib/retries.js";
10+
import * as schemas$ from "../lib/schemas.js";
11+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12+
import * as errors from "./models/errors/index.js";
13+
import * as operations from "./models/operations/index.js";
14+
import { isBlobLike } from "./types/blobs.js";
1515

1616
export class General extends ClientSDK {
1717
private readonly options$: SDKOptions & { hooks?: SDKHooks };

src/sdk/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./sdk";
5+
export * from "./sdk.js";

src/sdk/models/errors/httpvalidationerror.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import * as shared from "../shared";
5+
import * as shared from "../shared/index.js";
66
import * as z from "zod";
77

88
export type Detail = Array<shared.ValidationError> | string;

src/sdk/models/errors/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./httpvalidationerror";
6-
export * from "./sdkerror";
7-
export * from "./sdkvalidationerror";
8-
export * from "./servererror";
5+
export * from "./httpvalidationerror.js";
6+
export * from "./sdkerror.js";
7+
export * from "./sdkvalidationerror.js";
8+
export * from "./servererror.js";

src/sdk/models/operations/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./partition";
5+
export * from "./partition.js";

src/sdk/models/operations/partition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
import { remap as remap$ } from "../../../lib/primitives";
6-
import * as shared from "../shared";
5+
import { remap as remap$ } from "../../../lib/primitives.js";
6+
import * as shared from "../shared/index.js";
77
import * as z from "zod";
88

99
export type PartitionRequest = {

src/sdk/models/shared/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
33
*/
44

5-
export * from "./partitionparameters";
6-
export * from "./security";
7-
export * from "./validationerror";
5+
export * from "./partitionparameters.js";
6+
export * from "./security.js";
7+
export * from "./validationerror.js";

0 commit comments

Comments
 (0)