|
1 | 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | 3 | import { APIResource } from '../../core/resource'; |
| 4 | +import * as Shared from '../shared'; |
4 | 5 | import * as BulkAPI from './bulk'; |
5 | 6 | import { |
6 | 7 | Bulk, |
@@ -879,11 +880,7 @@ export namespace FileUpdateParams { |
879 | 880 | * Array of extensions to be applied to the asset. Each extension can be configured |
880 | 881 | * with specific parameters based on the extension type. |
881 | 882 | */ |
882 | | - extensions?: Array< |
883 | | - | UpdateFileDetails.RemoveBg |
884 | | - | UpdateFileDetails.AutoTaggingExtension |
885 | | - | UpdateFileDetails.AIAutoDescription |
886 | | - >; |
| 883 | + extensions?: Shared.Extensions; |
887 | 884 |
|
888 | 885 | /** |
889 | 886 | * An array of AITags associated with the file that you want to remove, e.g. |
@@ -912,70 +909,6 @@ export namespace FileUpdateParams { |
912 | 909 | webhookUrl?: string; |
913 | 910 | } |
914 | 911 |
|
915 | | - export namespace UpdateFileDetails { |
916 | | - export interface RemoveBg { |
917 | | - /** |
918 | | - * Specifies the background removal extension. |
919 | | - */ |
920 | | - name: 'remove-bg'; |
921 | | - |
922 | | - options?: RemoveBg.Options; |
923 | | - } |
924 | | - |
925 | | - export namespace RemoveBg { |
926 | | - export interface Options { |
927 | | - /** |
928 | | - * Whether to add an artificial shadow to the result. Default is false. Note: |
929 | | - * Adding shadows is currently only supported for car photos. |
930 | | - */ |
931 | | - add_shadow?: boolean; |
932 | | - |
933 | | - /** |
934 | | - * Specifies a solid color background using hex code (e.g., "81d4fa", "fff") or |
935 | | - * color name (e.g., "green"). If this parameter is set, `bg_image_url` must be |
936 | | - * empty. |
937 | | - */ |
938 | | - bg_color?: string; |
939 | | - |
940 | | - /** |
941 | | - * Sets a background image from a URL. If this parameter is set, `bg_color` must be |
942 | | - * empty. |
943 | | - */ |
944 | | - bg_image_url?: string; |
945 | | - |
946 | | - /** |
947 | | - * Allows semi-transparent regions in the result. Default is true. Note: |
948 | | - * Semitransparency is currently only supported for car windows. |
949 | | - */ |
950 | | - semitransparency?: boolean; |
951 | | - } |
952 | | - } |
953 | | - |
954 | | - export interface AutoTaggingExtension { |
955 | | - /** |
956 | | - * Maximum number of tags to attach to the asset. |
957 | | - */ |
958 | | - maxTags: number; |
959 | | - |
960 | | - /** |
961 | | - * Minimum confidence level for tags to be considered valid. |
962 | | - */ |
963 | | - minConfidence: number; |
964 | | - |
965 | | - /** |
966 | | - * Specifies the auto-tagging extension used. |
967 | | - */ |
968 | | - name: 'google-auto-tagging' | 'aws-auto-tagging'; |
969 | | - } |
970 | | - |
971 | | - export interface AIAutoDescription { |
972 | | - /** |
973 | | - * Specifies the auto description extension. |
974 | | - */ |
975 | | - name: 'ai-auto-description'; |
976 | | - } |
977 | | - } |
978 | | - |
979 | 912 | export interface ChangePublicationStatus { |
980 | 913 | /** |
981 | 914 | * Configure the publication status of a file and its versions. |
@@ -1148,9 +1081,7 @@ export interface FileUploadParams { |
1148 | 1081 | * Array of extensions to be applied to the asset. Each extension can be configured |
1149 | 1082 | * with specific parameters based on the extension type. |
1150 | 1083 | */ |
1151 | | - extensions?: Array< |
1152 | | - FileUploadParams.RemoveBg | FileUploadParams.AutoTaggingExtension | FileUploadParams.AIAutoDescription |
1153 | | - >; |
| 1084 | + extensions?: Shared.Extensions; |
1154 | 1085 |
|
1155 | 1086 | /** |
1156 | 1087 | * The folder path in which the image has to be uploaded. If the folder(s) didn't |
@@ -1282,68 +1213,6 @@ export interface FileUploadParams { |
1282 | 1213 | } |
1283 | 1214 |
|
1284 | 1215 | export namespace FileUploadParams { |
1285 | | - export interface RemoveBg { |
1286 | | - /** |
1287 | | - * Specifies the background removal extension. |
1288 | | - */ |
1289 | | - name: 'remove-bg'; |
1290 | | - |
1291 | | - options?: RemoveBg.Options; |
1292 | | - } |
1293 | | - |
1294 | | - export namespace RemoveBg { |
1295 | | - export interface Options { |
1296 | | - /** |
1297 | | - * Whether to add an artificial shadow to the result. Default is false. Note: |
1298 | | - * Adding shadows is currently only supported for car photos. |
1299 | | - */ |
1300 | | - add_shadow?: boolean; |
1301 | | - |
1302 | | - /** |
1303 | | - * Specifies a solid color background using hex code (e.g., "81d4fa", "fff") or |
1304 | | - * color name (e.g., "green"). If this parameter is set, `bg_image_url` must be |
1305 | | - * empty. |
1306 | | - */ |
1307 | | - bg_color?: string; |
1308 | | - |
1309 | | - /** |
1310 | | - * Sets a background image from a URL. If this parameter is set, `bg_color` must be |
1311 | | - * empty. |
1312 | | - */ |
1313 | | - bg_image_url?: string; |
1314 | | - |
1315 | | - /** |
1316 | | - * Allows semi-transparent regions in the result. Default is true. Note: |
1317 | | - * Semitransparency is currently only supported for car windows. |
1318 | | - */ |
1319 | | - semitransparency?: boolean; |
1320 | | - } |
1321 | | - } |
1322 | | - |
1323 | | - export interface AutoTaggingExtension { |
1324 | | - /** |
1325 | | - * Maximum number of tags to attach to the asset. |
1326 | | - */ |
1327 | | - maxTags: number; |
1328 | | - |
1329 | | - /** |
1330 | | - * Minimum confidence level for tags to be considered valid. |
1331 | | - */ |
1332 | | - minConfidence: number; |
1333 | | - |
1334 | | - /** |
1335 | | - * Specifies the auto-tagging extension used. |
1336 | | - */ |
1337 | | - name: 'google-auto-tagging' | 'aws-auto-tagging'; |
1338 | | - } |
1339 | | - |
1340 | | - export interface AIAutoDescription { |
1341 | | - /** |
1342 | | - * Specifies the auto description extension. |
1343 | | - */ |
1344 | | - name: 'ai-auto-description'; |
1345 | | - } |
1346 | | - |
1347 | 1216 | /** |
1348 | 1217 | * Configure pre-processing (`pre`) and post-processing (`post`) transformations. |
1349 | 1218 | * |
|
0 commit comments