Skip to content

Commit 9eb4d49

Browse files
feat(api): update via SDK Studio
1 parent 97680e7 commit 9eb4d49

5 files changed

Lines changed: 28 additions & 81 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 17
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scan-documents%2Fscan-documents-04f736d0a9ae5151fec360201288ee49dc02cc4f60adf1ff17c5e3a0bbb639b4.yml
33
openapi_spec_hash: e9d1be2b0eae296e605a9a79af48ab63
4-
config_hash: 51f73a6963f0ae992703d2d999576437
4+
config_hash: d5cdbd7a76734de48c644766d9ccf85d

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Types:
4848
- <code><a href="./src/resources/image-operations.ts">ExtractTextRequest</a></code>
4949
- <code><a href="./src/resources/image-operations.ts">ExtractTextResponse</a></code>
5050
- <code><a href="./src/resources/image-operations.ts">ImageFromTaskResponse</a></code>
51+
- <code><a href="./src/resources/image-operations.ts">JsonSchemaSpec</a></code>
5152
- <code><a href="./src/resources/image-operations.ts">WarpRequest</a></code>
5253
- <code><a href="./src/resources/image-operations.ts">WarpResponse</a></code>
5354

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import {
3838
ImageOperationExtractTextParams,
3939
ImageOperationWarpParams,
4040
ImageOperations,
41+
JsonSchemaSpec,
4142
WarpRequest,
4243
WarpResponse,
4344
} from './resources/image-operations';
@@ -770,6 +771,7 @@ export declare namespace ScanDocuments {
770771
type ExtractTextRequest as ExtractTextRequest,
771772
type ExtractTextResponse as ExtractTextResponse,
772773
type ImageFromTaskResponse as ImageFromTaskResponse,
774+
type JsonSchemaSpec as JsonSchemaSpec,
773775
type WarpRequest as WarpRequest,
774776
type WarpResponse as WarpResponse,
775777
type ImageOperationApplyEffectParams as ImageOperationApplyEffectParams,

src/resources/image-operations.ts

Lines changed: 23 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -819,54 +819,16 @@ export namespace ExtractTextRequest {
819819

820820
format?: string;
821821

822-
items?: Schema.Items;
822+
items?: ImageOperationsAPI.JsonSchemaSpec;
823823

824-
properties?: Record<string, Schema.Properties>;
824+
properties?: Record<string, ImageOperationsAPI.JsonSchemaSpec>;
825825

826826
required?: Array<string>;
827827

828828
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
829829

830830
[k: string]: unknown;
831831
}
832-
833-
export namespace Schema {
834-
export interface Items {
835-
description?: string;
836-
837-
example?: unknown;
838-
839-
format?: string;
840-
841-
items?: unknown;
842-
843-
properties?: Record<string, unknown>;
844-
845-
required?: Array<string>;
846-
847-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
848-
849-
[k: string]: unknown;
850-
}
851-
852-
export interface Properties {
853-
description?: string;
854-
855-
example?: unknown;
856-
857-
format?: string;
858-
859-
items?: unknown;
860-
861-
properties?: Record<string, unknown>;
862-
863-
required?: Array<string>;
864-
865-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
866-
867-
[k: string]: unknown;
868-
}
869-
}
870832
}
871833
}
872834

@@ -1084,6 +1046,24 @@ export namespace ImageFromTaskResponse {
10841046
}
10851047
}
10861048

1049+
export interface JsonSchemaSpec {
1050+
description?: string;
1051+
1052+
example?: unknown;
1053+
1054+
format?: string;
1055+
1056+
items?: JsonSchemaSpec;
1057+
1058+
properties?: Record<string, JsonSchemaSpec>;
1059+
1060+
required?: Array<string>;
1061+
1062+
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
1063+
1064+
[k: string]: unknown;
1065+
}
1066+
10871067
/**
10881068
* Transform an image by warping it to a quadrilateral.
10891069
*/
@@ -1430,54 +1410,16 @@ export declare namespace ImageOperationExtractTextParams {
14301410

14311411
format?: string;
14321412

1433-
items?: Schema.Items;
1413+
items?: ImageOperationsAPI.JsonSchemaSpec;
14341414

1435-
properties?: Record<string, Schema.Properties>;
1415+
properties?: Record<string, ImageOperationsAPI.JsonSchemaSpec>;
14361416

14371417
required?: Array<string>;
14381418

14391419
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
14401420

14411421
[k: string]: unknown;
14421422
}
1443-
1444-
export namespace Schema {
1445-
export interface Items {
1446-
description?: string;
1447-
1448-
example?: unknown;
1449-
1450-
format?: string;
1451-
1452-
items?: unknown;
1453-
1454-
properties?: Record<string, unknown>;
1455-
1456-
required?: Array<string>;
1457-
1458-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
1459-
1460-
[k: string]: unknown;
1461-
}
1462-
1463-
export interface Properties {
1464-
description?: string;
1465-
1466-
example?: unknown;
1467-
1468-
format?: string;
1469-
1470-
items?: unknown;
1471-
1472-
properties?: Record<string, unknown>;
1473-
1474-
required?: Array<string>;
1475-
1476-
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
1477-
1478-
[k: string]: unknown;
1479-
}
1480-
}
14811423
}
14821424
}
14831425

@@ -1509,6 +1451,7 @@ export declare namespace ImageOperations {
15091451
type ExtractTextRequest as ExtractTextRequest,
15101452
type ExtractTextResponse as ExtractTextResponse,
15111453
type ImageFromTaskResponse as ImageFromTaskResponse,
1454+
type JsonSchemaSpec as JsonSchemaSpec,
15121455
type WarpRequest as WarpRequest,
15131456
type WarpResponse as WarpResponse,
15141457
type ImageOperationApplyEffectParams as ImageOperationApplyEffectParams,

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export {
1313
type ExtractTextRequest,
1414
type ExtractTextResponse,
1515
type ImageFromTaskResponse,
16+
type JsonSchemaSpec,
1617
type WarpRequest,
1718
type WarpResponse,
1819
type ImageOperationApplyEffectParams,

0 commit comments

Comments
 (0)