@@ -65,6 +65,18 @@ class CardHeader(typing_extensions.TypedDict, total=False):
6565 subtitle : str
6666 title : str
6767
68+ @typing .type_check_only
69+ class CardWithId (typing_extensions .TypedDict , total = False ):
70+ card : GoogleAppsCardV1Card
71+ cardId : str
72+
73+ @typing .type_check_only
74+ class Color (typing_extensions .TypedDict , total = False ):
75+ alpha : float
76+ blue : float
77+ green : float
78+ red : float
79+
6880@typing .type_check_only
6981class DeprecatedEvent (typing_extensions .TypedDict , total = False ):
7082 action : FormAction
@@ -91,6 +103,191 @@ class FormAction(typing_extensions.TypedDict, total=False):
91103 actionMethodName : str
92104 parameters : typing .List [ActionParameter ]
93105
106+ @typing .type_check_only
107+ class GoogleAppsCardV1Action (typing_extensions .TypedDict , total = False ):
108+ function : str
109+ loadIndicator : typing_extensions .Literal ["SPINNER" , "NONE" ]
110+ parameters : typing .List [GoogleAppsCardV1ActionParameter ]
111+ persistValues : bool
112+
113+ @typing .type_check_only
114+ class GoogleAppsCardV1ActionParameter (typing_extensions .TypedDict , total = False ):
115+ key : str
116+ value : str
117+
118+ @typing .type_check_only
119+ class GoogleAppsCardV1BorderStyle (typing_extensions .TypedDict , total = False ):
120+ cornerRadius : int
121+ strokeColor : Color
122+ type : typing_extensions .Literal ["BORDER_TYPE_UNSPECIFIED" , "NO_BORDER" , "STROKE" ]
123+
124+ @typing .type_check_only
125+ class GoogleAppsCardV1Button (typing_extensions .TypedDict , total = False ):
126+ altText : str
127+ color : Color
128+ disabled : bool
129+ icon : GoogleAppsCardV1Icon
130+ onClick : GoogleAppsCardV1OnClick
131+ text : str
132+
133+ @typing .type_check_only
134+ class GoogleAppsCardV1ButtonList (typing_extensions .TypedDict , total = False ):
135+ buttons : typing .List [GoogleAppsCardV1Button ]
136+
137+ @typing .type_check_only
138+ class GoogleAppsCardV1Card (typing .Dict [str , typing .Any ]): ...
139+
140+ @typing .type_check_only
141+ class GoogleAppsCardV1CardAction (typing .Dict [str , typing .Any ]): ...
142+
143+ @typing .type_check_only
144+ class GoogleAppsCardV1CardFixedFooter (typing .Dict [str , typing .Any ]): ...
145+
146+ @typing .type_check_only
147+ class GoogleAppsCardV1CardHeader (typing_extensions .TypedDict , total = False ):
148+ imageAltText : str
149+ imageType : typing_extensions .Literal ["SQUARE" , "CIRCLE" ]
150+ imageUrl : str
151+ subtitle : str
152+ title : str
153+
154+ @typing .type_check_only
155+ class GoogleAppsCardV1DateTimePicker (typing_extensions .TypedDict , total = False ):
156+ label : str
157+ name : str
158+ onChangeAction : GoogleAppsCardV1Action
159+ timezoneOffsetDate : int
160+ type : typing_extensions .Literal ["DATE_AND_TIME" , "DATE_ONLY" , "TIME_ONLY" ]
161+ valueMsEpoch : str
162+
163+ @typing .type_check_only
164+ class GoogleAppsCardV1DecoratedText (typing_extensions .TypedDict , total = False ):
165+ bottomLabel : str
166+ button : GoogleAppsCardV1Button
167+ endIcon : GoogleAppsCardV1Icon
168+ icon : GoogleAppsCardV1Icon
169+ onClick : GoogleAppsCardV1OnClick
170+ startIcon : GoogleAppsCardV1Icon
171+ switchControl : GoogleAppsCardV1SwitchControl
172+ text : str
173+ topLabel : str
174+ wrapText : bool
175+
176+ @typing .type_check_only
177+ class GoogleAppsCardV1Divider (typing_extensions .TypedDict , total = False ): ...
178+
179+ @typing .type_check_only
180+ class GoogleAppsCardV1Grid (typing_extensions .TypedDict , total = False ):
181+ borderStyle : GoogleAppsCardV1BorderStyle
182+ columnCount : int
183+ items : typing .List [GoogleAppsCardV1GridItem ]
184+ onClick : GoogleAppsCardV1OnClick
185+ title : str
186+
187+ @typing .type_check_only
188+ class GoogleAppsCardV1GridItem (typing_extensions .TypedDict , total = False ):
189+ id : str
190+ image : GoogleAppsCardV1ImageComponent
191+ layout : typing_extensions .Literal [
192+ "GRID_ITEM_LAYOUT_UNSPECIFIED" , "TEXT_BELOW" , "TEXT_ABOVE"
193+ ]
194+ subtitle : str
195+ textAlignment : typing_extensions .Literal [
196+ "HORIZONTAL_ALIGNMENT_UNSPECIFIED" , "START" , "CENTER" , "END"
197+ ]
198+ title : str
199+
200+ @typing .type_check_only
201+ class GoogleAppsCardV1Icon (typing_extensions .TypedDict , total = False ):
202+ altText : str
203+ iconUrl : str
204+ imageType : typing_extensions .Literal ["SQUARE" , "CIRCLE" ]
205+ knownIcon : str
206+
207+ @typing .type_check_only
208+ class GoogleAppsCardV1Image (typing_extensions .TypedDict , total = False ):
209+ altText : str
210+ imageUrl : str
211+ onClick : GoogleAppsCardV1OnClick
212+
213+ @typing .type_check_only
214+ class GoogleAppsCardV1ImageComponent (typing_extensions .TypedDict , total = False ):
215+ altText : str
216+ borderStyle : GoogleAppsCardV1BorderStyle
217+ cropStyle : GoogleAppsCardV1ImageCropStyle
218+ imageUri : str
219+
220+ @typing .type_check_only
221+ class GoogleAppsCardV1ImageCropStyle (typing_extensions .TypedDict , total = False ):
222+ aspectRatio : float
223+ type : typing_extensions .Literal [
224+ "IMAGE_CROP_TYPE_UNSPECIFIED" ,
225+ "SQUARE" ,
226+ "CIRCLE" ,
227+ "RECTANGLE_CUSTOM" ,
228+ "RECTANGLE_4_3" ,
229+ ]
230+
231+ @typing .type_check_only
232+ class GoogleAppsCardV1OnClick (typing .Dict [str , typing .Any ]): ...
233+
234+ @typing .type_check_only
235+ class GoogleAppsCardV1OpenLink (typing_extensions .TypedDict , total = False ):
236+ onClose : typing_extensions .Literal ["NOTHING" , "RELOAD" ]
237+ openAs : typing_extensions .Literal ["FULL_SIZE" , "OVERLAY" ]
238+ url : str
239+
240+ @typing .type_check_only
241+ class GoogleAppsCardV1Section (typing .Dict [str , typing .Any ]): ...
242+
243+ @typing .type_check_only
244+ class GoogleAppsCardV1SelectionInput (typing_extensions .TypedDict , total = False ):
245+ items : typing .List [GoogleAppsCardV1SelectionItem ]
246+ label : str
247+ name : str
248+ onChangeAction : GoogleAppsCardV1Action
249+ type : typing_extensions .Literal ["CHECK_BOX" , "RADIO_BUTTON" , "SWITCH" , "DROPDOWN" ]
250+
251+ @typing .type_check_only
252+ class GoogleAppsCardV1SelectionItem (typing_extensions .TypedDict , total = False ):
253+ selected : bool
254+ text : str
255+ value : str
256+
257+ @typing .type_check_only
258+ class GoogleAppsCardV1SuggestionItem (typing_extensions .TypedDict , total = False ):
259+ text : str
260+
261+ @typing .type_check_only
262+ class GoogleAppsCardV1Suggestions (typing_extensions .TypedDict , total = False ):
263+ items : typing .List [GoogleAppsCardV1SuggestionItem ]
264+
265+ @typing .type_check_only
266+ class GoogleAppsCardV1SwitchControl (typing_extensions .TypedDict , total = False ):
267+ controlType : typing_extensions .Literal ["SWITCH" , "CHECKBOX" , "CHECK_BOX" ]
268+ name : str
269+ onChangeAction : GoogleAppsCardV1Action
270+ selected : bool
271+ value : str
272+
273+ @typing .type_check_only
274+ class GoogleAppsCardV1TextInput (typing_extensions .TypedDict , total = False ):
275+ autoCompleteAction : GoogleAppsCardV1Action
276+ hintText : str
277+ initialSuggestions : GoogleAppsCardV1Suggestions
278+ label : str
279+ name : str
280+ onChangeAction : GoogleAppsCardV1Action
281+ type : typing_extensions .Literal ["SINGLE_LINE" , "MULTIPLE_LINE" ]
282+ value : str
283+
284+ @typing .type_check_only
285+ class GoogleAppsCardV1TextParagraph (typing_extensions .TypedDict , total = False ):
286+ text : str
287+
288+ @typing .type_check_only
289+ class GoogleAppsCardV1Widget (typing .Dict [str , typing .Any ]): ...
290+
94291@typing .type_check_only
95292class Image (typing_extensions .TypedDict , total = False ):
96293 aspectRatio : float
@@ -203,21 +400,7 @@ class Membership(typing_extensions.TypedDict, total=False):
203400 ]
204401
205402@typing .type_check_only
206- class Message (typing_extensions .TypedDict , total = False ):
207- actionResponse : ActionResponse
208- annotations : typing .List [Annotation ]
209- argumentText : str
210- attachment : typing .List [Attachment ]
211- cards : typing .List [Card ]
212- createTime : str
213- fallbackText : str
214- name : str
215- previewText : str
216- sender : User
217- slashCommand : SlashCommand
218- space : Space
219- text : str
220- thread : Thread
403+ class Message (typing .Dict [str , typing .Any ]): ...
221404
222405@typing .type_check_only
223406class OnClick (typing_extensions .TypedDict , total = False ):
0 commit comments