Skip to content

Commit bd6474f

Browse files
feat(api): merge with main to bring back missing parameters
1 parent 65c6eec commit bd6474f

2 files changed

Lines changed: 55 additions & 10 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-3234424a3a5871f31f5d6dcb8173593fc6c1db14802a0e71f14f3527ad16c871.yml
3-
openapi_spec_hash: 017a8ab68d905ed9e163022f68d8be78
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-18b46cb8c1dd5cd0eea8559fa9671600540c5c4bee32f2d74f932416b7a1aee0.yml
3+
openapi_spec_hash: 539770659847d04a92ef965a5313adde
44
config_hash: 17e408231b0b01676298010c7405f483

src/resources/shared.ts

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ export namespace ExtensionConfig {
147147
min_selections?: number;
148148

149149
/**
150-
* Array of possible tag values. Combined length of all strings must not exceed 500
151-
* characters. Cannot contain the `%` character.
150+
* Array of possible tag values. The combined length of all strings must not exceed
151+
* 500 characters, and values cannot include the `%` character. When providing
152+
* large vocabularies (more than 30 items), the AI may not follow the list
153+
* strictly.
152154
*/
153155
vocabulary?: Array<string>;
154156
}
@@ -181,7 +183,10 @@ export namespace ExtensionConfig {
181183
min_selections?: number;
182184

183185
/**
184-
* Array of possible values matching the custom metadata field type.
186+
* An array of possible values matching the custom metadata field type. If not
187+
* provided for SingleSelect or MultiSelect field types, all values from the custom
188+
* metadata field definition will be used. When providing large vocabularies (above
189+
* 30 items), the AI may not strictly adhere to the list.
185190
*/
186191
vocabulary?: Array<string | number | boolean>;
187192
}
@@ -468,8 +473,10 @@ export namespace Extensions {
468473
min_selections?: number;
469474

470475
/**
471-
* Array of possible tag values. Combined length of all strings must not exceed 500
472-
* characters. Cannot contain the `%` character.
476+
* Array of possible tag values. The combined length of all strings must not exceed
477+
* 500 characters, and values cannot include the `%` character. When providing
478+
* large vocabularies (more than 30 items), the AI may not follow the list
479+
* strictly.
473480
*/
474481
vocabulary?: Array<string>;
475482
}
@@ -502,7 +509,10 @@ export namespace Extensions {
502509
min_selections?: number;
503510

504511
/**
505-
* Array of possible values matching the custom metadata field type.
512+
* An array of possible values matching the custom metadata field type. If not
513+
* provided for SingleSelect or MultiSelect field types, all values from the custom
514+
* metadata field definition will be used. When providing large vocabularies (above
515+
* 30 items), the AI may not strictly adhere to the list.
506516
*/
507517
vocabulary?: Array<string | number | boolean>;
508518
}
@@ -782,8 +792,25 @@ export type Overlay = TextOverlay | ImageOverlay | VideoOverlay | SubtitleOverla
782792

783793
export interface OverlayPosition {
784794
/**
785-
* Specifies the position of the overlay relative to the parent image or video.
786-
* Maps to `lfo` in the URL.
795+
* Sets the anchor point on the base asset from which the overlay offset is
796+
* calculated. The default value is `top_left`. Maps to `lap` in the URL. Can only
797+
* be used with one or more of `x`, `y`, `xCenter`, or `yCenter`.
798+
*/
799+
anchorPoint?:
800+
| 'top'
801+
| 'left'
802+
| 'right'
803+
| 'bottom'
804+
| 'top_left'
805+
| 'top_right'
806+
| 'bottom_left'
807+
| 'bottom_right'
808+
| 'center';
809+
810+
/**
811+
* Specifies the position of the overlay relative to the parent image or video. If
812+
* one or more of `x`, `y`, `xCenter`, or `yCenter` parameters are specified, this
813+
* parameter is ignored. Maps to `lfo` in the URL.
787814
*/
788815
focus?:
789816
| 'center'
@@ -805,6 +832,15 @@ export interface OverlayPosition {
805832
*/
806833
x?: number | string;
807834

835+
/**
836+
* Specifies the x-coordinate on the base asset where the overlay's center will be
837+
* positioned. It also accepts arithmetic expressions such as `bw_mul_0.4` or
838+
* `bw_sub_cw`. Maps to `lxc` in the URL. Cannot be used together with `x`, but can
839+
* be used with `y`. Learn about
840+
* [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
841+
*/
842+
xCenter?: number | string;
843+
808844
/**
809845
* Specifies the y-coordinate of the top-left corner of the base asset where the
810846
* overlay's top-left corner will be positioned. It also accepts arithmetic
@@ -813,6 +849,15 @@ export interface OverlayPosition {
813849
* [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
814850
*/
815851
y?: number | string;
852+
853+
/**
854+
* Specifies the y-coordinate on the base asset where the overlay's center will be
855+
* positioned. It also accepts arithmetic expressions such as `bh_mul_0.4` or
856+
* `bh_sub_ch`. Maps to `lyc` in the URL. Cannot be used together with `y`, but can
857+
* be used with `x`. Learn about
858+
* [Arithmetic expressions](https://imagekit.io/docs/arithmetic-expressions-in-transformations).
859+
*/
860+
yCenter?: number | string;
816861
}
817862

818863
export interface OverlayTiming {

0 commit comments

Comments
 (0)