@@ -529,6 +529,11 @@ class SolidColorLayer(_SolidColorLayerRequired, total=False):
529529 rotation_in_degrees : float
530530 opacity : int
531531 angled_edges : list [AngledEdge ]
532+ border_radius : int
533+ border_top_left_radius : int
534+ border_top_right_radius : int
535+ border_bottom_left_radius : int
536+ border_bottom_right_radius : int
532537
533538
534539class _TextLayerRequired (TypedDict ):
@@ -567,6 +572,11 @@ class ImageLayer(_ImageLayerRequired, total=False):
567572 opacity : int
568573 should_use_smart_cropping : bool
569574 should_remove_background : bool
575+ border_radius : int
576+ border_top_left_radius : int
577+ border_top_right_radius : int
578+ border_bottom_left_radius : int
579+ border_bottom_right_radius : int
570580
571581
572582class _ImageLayerRequired (TypedDict ):
@@ -624,6 +634,38 @@ class GradientLayer(_GradientLayerRequired, total=False):
624634 angle_in_degrees : float
625635 rotation_in_degrees : float
626636 opacity : int
637+ border_radius : int
638+ border_top_left_radius : int
639+ border_top_right_radius : int
640+ border_bottom_left_radius : int
641+ border_bottom_right_radius : int
642+
643+
644+ class _LayoutLayerRequired (TypedDict ):
645+ type : Literal ["layout" ]
646+ index : int
647+ layers : list ["Layer" ]
648+
649+
650+ class LayoutLayer (_LayoutLayerRequired , total = False ):
651+ direction : Literal ["horizontal" , "vertical" ]
652+ gap : int
653+ horizontal_alignment : Literal ["start" , "center" , "end" ]
654+ vertical_alignment : Literal ["start" , "center" , "end" ]
655+ position : Position
656+ dimensions : Dimensions
657+ opacity : int
658+ background_color : str
659+ padding : int
660+ padding_top : int
661+ padding_right : int
662+ padding_bottom : int
663+ padding_left : int
664+ border_radius : int
665+ border_top_left_radius : int
666+ border_top_right_radius : int
667+ border_bottom_left_radius : int
668+ border_bottom_right_radius : int
627669
628670
629671Layer = Union [
@@ -635,6 +677,7 @@ class GradientLayer(_GradientLayerRequired, total=False):
635677 QrCodeLayer ,
636678 BarcodeLayer ,
637679 GradientLayer ,
680+ LayoutLayer ,
638681]
639682
640683
@@ -1103,3 +1146,93 @@ class _GenerateDocumentRequestRequired(TypedDict):
11031146
11041147class GenerateDocumentRequest (_GenerateDocumentRequestRequired , total = False ):
11051148 webhook_url : str
1149+
1150+
1151+ # ── Sheet Generation ─────────────────────────────────────────────────────
1152+
1153+ SheetFormat = Literal ["csv" , "markdown" , "xlsx" ]
1154+
1155+ SheetCellFormat = Literal [
1156+ "text" ,
1157+ "number" ,
1158+ "decimal" ,
1159+ "currency" ,
1160+ "percentage" ,
1161+ "date" ,
1162+ "datetime" ,
1163+ "time" ,
1164+ "custom" ,
1165+ ]
1166+
1167+ SheetNumberStyle = Literal [
1168+ "comma_period" ,
1169+ "period_comma" ,
1170+ "space_comma" ,
1171+ "space_period" ,
1172+ ]
1173+
1174+
1175+ class SheetCellStyle (TypedDict , total = False ):
1176+ bold : bool
1177+ italic : bool
1178+ font_color : str
1179+ background_color : str
1180+ font_size : int
1181+ horizontal_alignment : Literal ["left" , "center" , "right" ]
1182+
1183+
1184+ class _SheetCellRequired (TypedDict ):
1185+ value : object
1186+
1187+
1188+ class SheetCell (_SheetCellRequired , total = False ):
1189+ format : SheetCellFormat
1190+ currency_code : str
1191+ number_style : SheetNumberStyle
1192+ date_style : str
1193+ styles : SheetCellStyle
1194+ from_col : int
1195+ to_col : int
1196+ from_row : int
1197+ to_row : int
1198+
1199+
1200+ class _SheetColumnRequired (TypedDict ):
1201+ name : str
1202+
1203+
1204+ class SheetColumn (_SheetColumnRequired , total = False ):
1205+ width : int
1206+
1207+
1208+ class _SheetDefinitionRequired (TypedDict ):
1209+ columns : list [SheetColumn ]
1210+
1211+
1212+ class SheetDefinition (_SheetDefinitionRequired , total = False ):
1213+ name : str
1214+ rows : list [list [SheetCell ]]
1215+
1216+
1217+ class SheetFontDefinition (TypedDict ):
1218+ name : str
1219+ buffer : str
1220+
1221+
1222+ class SheetStyles (TypedDict , total = False ):
1223+ header_font_color : str
1224+ header_background_color : str
1225+ header_font_size : int
1226+ header_bold : bool
1227+ alternate_row_color : str
1228+
1229+
1230+ class _GenerateSheetRequestRequired (TypedDict ):
1231+ format : SheetFormat
1232+ sheets : list [SheetDefinition ]
1233+
1234+
1235+ class GenerateSheetRequest (_GenerateSheetRequestRequired , total = False ):
1236+ styles : SheetStyles
1237+ fonts : list [SheetFontDefinition ]
1238+ webhook_url : str
0 commit comments