22
33from __future__ import annotations
44
5- from typing import Iterable
5+ from typing import Dict , Iterable
66from typing_extensions import Literal , Required , Annotated , TypedDict
77
88from .._utils import PropertyInfo
@@ -41,6 +41,19 @@ class DataToExtract(TypedDict, total=False):
4141 datapoint_type : Required [Literal ["text" , "number" , "date" , "boolean" , "list" , "url" ]]
4242 """Type of the data point"""
4343
44+ datapoint_list_type : Literal ["string" , "text" , "number" , "date" , "boolean" , "list" , "url" , "object" ]
45+ """Type of items in the list when datapoint_type is 'list'.
46+
47+ Defaults to 'string'. Use 'object' to extract an array of objects matching a
48+ schema.
49+ """
50+
51+ datapoint_object_schema : Dict [str , Literal ["string" , "number" , "date" , "boolean" ]]
52+ """Schema definition for objects when datapoint_list_type is 'object'.
53+
54+ Provide a map of field names to their scalar types.
55+ """
56+
4457
4558class SpecificPages (TypedDict , total = False ):
4659 about_us : bool
@@ -61,6 +74,9 @@ class SpecificPages(TypedDict, total=False):
6174 home_page : bool
6275 """Whether to analyze the home page"""
6376
77+ pricing : bool
78+ """Whether to analyze the pricing page"""
79+
6480 privacy_policy : bool
6581 """Whether to analyze the privacy policy page"""
6682
0 commit comments