From 7eaaf7195cb2725913c0e30fa45c1c45366e9883 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:52:48 -0400 Subject: [PATCH 1/9] spelling: attempted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/sdk/models/errors/sdkvalidationerror.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/models/errors/sdkvalidationerror.ts b/src/sdk/models/errors/sdkvalidationerror.ts index 16929b9e..8d7e9221 100644 --- a/src/sdk/models/errors/sdkvalidationerror.ts +++ b/src/sdk/models/errors/sdkvalidationerror.ts @@ -79,7 +79,7 @@ export function formatZodError(err: z.ZodError, level = 0): string { case "invalid_union": { const len = issue.unionErrors.length; append( - `│ ✖︎ Attemped to deserialize into one of ${len} union members:`, + `│ ✖︎ Attempted to deserialize into one of ${len} union members:`, ); issue.unionErrors.forEach((err, i) => { append(`│ ✖︎ Member ${i + 1} of ${len}`); From 78dcccdbcaabab359314ce518d194b55f00e504d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:52:58 -0400 Subject: [PATCH 2/9] spelling: browsers Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/lib/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/http.ts b/src/lib/http.ts index 13cf1fd7..cdacd764 100644 --- a/src/lib/http.ts +++ b/src/lib/http.ts @@ -12,7 +12,7 @@ export type Awaitable = T | Promise; const DEFAULT_FETCHER: Fetcher = (input, init) => { // If input is a Request and init is undefined, Bun will discard the method, // headers, body and other options that were set on the request object. - // Node.js and browers would ignore an undefined init value. This check is + // Node.js and browsers would ignore an undefined init value. This check is // therefore needed for interop with Bun. if (init == null) { return fetch(input); From bd8412bf99731ef227646960cb6329c1daa2d6ef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:53:13 -0400 Subject: [PATCH 3/9] spelling: equivalent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/sdk/types/constdatetime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/types/constdatetime.ts b/src/sdk/types/constdatetime.ts index c0a4409c..eeff4dde 100644 --- a/src/sdk/types/constdatetime.ts +++ b/src/sdk/types/constdatetime.ts @@ -11,5 +11,5 @@ export function constDateTime( return ( typeof v === "string" && new Date(v).getTime() === new Date(val).getTime() ); - }, `Value must be equivelant to ${val}`); + }, `Value must be equivalent to ${val}`); } From 29c3c42afa35386df29fc0a169eff0d5182401c8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:52:25 -0400 Subject: [PATCH 4/9] spelling: github Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37db880d..38c3562b 100755 --- a/README.md +++ b/README.md @@ -384,6 +384,6 @@ looking for the latest version. ### Contributions While we value open-source contributions to this SDK, this library is generated programmatically. -Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release! +Feel free to open a PR or a GitHub issue as a proof of concept and we'll do our best to include it in a future release! ### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) From 6d4a813082a7ea33f28eee00b3c24e7835566f6f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:53:21 -0400 Subject: [PATCH 5/9] spelling: heuristics Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/lib/http.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/http.ts b/src/lib/http.ts index cdacd764..0386b091 100644 --- a/src/lib/http.ts +++ b/src/lib/http.ts @@ -254,7 +254,7 @@ export function matchResponse( } /** - * Uses various heurisitics to determine if an error is a connection error. + * Uses various heuristics to determine if an error is a connection error. */ export function isConnectionError(err: unknown): boolean { if (typeof err !== "object" || err == null) { @@ -281,7 +281,7 @@ export function isConnectionError(err: unknown): boolean { } /** - * Uses various heurisitics to determine if an error is a timeout error. + * Uses various heuristics to determine if an error is a timeout error. */ export function isTimeoutError(err: unknown): boolean { if (typeof err !== "object" || err == null) { @@ -302,7 +302,7 @@ export function isTimeoutError(err: unknown): boolean { } /** - * Uses various heurisitics to determine if an error is a abort error. + * Uses various heuristics to determine if an error is a abort error. */ export function isAbortError(err: unknown): boolean { if (typeof err !== "object" || err == null) { From 015ebfacb087ee02343f394862e83afcb659a83b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:53:50 -0400 Subject: [PATCH 6/9] spelling: resulting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- overlay_client.yaml | 2 +- src/sdk/models/shared/partitionparameters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay_client.yaml b/overlay_client.yaml index 983a07d4..7639064e 100644 --- a/overlay_client.yaml +++ b/overlay_client.yaml @@ -38,7 +38,7 @@ actions: "split_pdf_allow_failed": { "title": "Split Pdf Allow Failed", - "description": "When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resuling list of Elements will miss the data from errored pages.", + "description": "When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resulting list of Elements will miss the data from errored pages.", "type": "boolean", "default": false, } diff --git a/src/sdk/models/shared/partitionparameters.ts b/src/sdk/models/shared/partitionparameters.ts index 466fa4bf..8dbf4f18 100644 --- a/src/sdk/models/shared/partitionparameters.ts +++ b/src/sdk/models/shared/partitionparameters.ts @@ -140,7 +140,7 @@ export type PartitionParameters = { */ skipInferTableTypes?: Array | undefined; /** - * When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resuling list of Elements will miss the data from errored pages. + * When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resulting list of Elements will miss the data from errored pages. */ splitPdfAllowFailed?: boolean | undefined; /** From 81b274e169b7276f455e1aaa812b2fb163326300 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:54:03 -0400 Subject: [PATCH 7/9] spelling: targeting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- FUNCTIONS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FUNCTIONS.md b/FUNCTIONS.md index 3e1f0a03..9c836f48 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -1,11 +1,11 @@ # Standalone Functions > [!NOTE] -> This section is useful if you are using a bundler and targetting browsers and +> This section is useful if you are using a bundler and targeting browsers and > runtimes where the size of an application affects performance and load times. Every method in this SDK is also available as a standalone function. This -alternative API is suitable when targetting the browser or serverless runtimes +alternative API is suitable when targeting the browser or serverless runtimes and using a bundler to build your application since all unused functionality will be tree-shaken away. This includes code for unused methods, Zod schemas, encoding helpers and response handlers. The result is dramatically smaller From 11d80f92dfc92582cf1f7fbe28f03cfeb4f90f55 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:52:35 -0400 Subject: [PATCH 8/9] spelling: typescript Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38c3562b..5af308cd 100755 --- a/README.md +++ b/README.md @@ -19,10 +19,10 @@

-

Typescript SDK for the Unstructured API

+

TypeScript SDK for the Unstructured API

-This is a Typescript client for the [Unstructured API](https://docs.unstructured.io/api-reference/api-services/overview). +This is a TypeScript client for the [Unstructured API](https://docs.unstructured.io/api-reference/api-services/overview). Please refer to the [Unstructured docs](https://docs.unstructured.io/api-reference/api-services/sdk-jsts) for a full guide to using the client. From b9f32cc4867bdb6fae38d9606982748a74009c0e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:54:10 -0400 Subject: [PATCH 9/9] spelling: unstructured Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .speakeasy/workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index fe4afae6..0c6bd6ba 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -9,7 +9,7 @@ sources: registry: location: registry.speakeasyapi.dev/unstructured/unstructured5xr/my-source targets: - unstructed-typescript: + unstructured-typescript: target: typescript source: my-source publish: