@@ -141,7 +141,7 @@ def substituted_because_contains_sensitive_data(cls) -> "AnnotatedValue":
141141 from collections .abc import Container , MutableMapping , Sequence
142142 from datetime import datetime
143143 from types import TracebackType
144- from typing import Any , Callable , Dict , Mapping , NotRequired , Optional , Type
144+ from typing import Any , Callable , Dict , List , Mapping , NotRequired , Optional , Type
145145
146146 from typing_extensions import Literal , TypedDict
147147
@@ -152,6 +152,59 @@ class SDKInfo(TypedDict):
152152 version : str
153153 packages : "Sequence[Mapping[str, str]]"
154154
155+ class KeyValueCollectionBehaviour (TypedDict ):
156+ mode : 'Literal["off", "denylist", "allowlist"]'
157+ terms : "NotRequired[List[str]]"
158+
159+ class GenAICollectionUserOptions (TypedDict , total = False ):
160+ inputs : bool
161+ outputs : bool
162+
163+ class GenAICollectionBehaviour (TypedDict ):
164+ inputs : bool
165+ outputs : bool
166+
167+ class GraphQLCollectionUserOptions (TypedDict , total = False ):
168+ document : bool
169+ variables : bool
170+
171+ class GraphQLCollectionBehaviour (TypedDict ):
172+ document : bool
173+ variables : bool
174+
175+ class HttpHeadersCollectionUserOptions (TypedDict , total = False ):
176+ request : "KeyValueCollectionBehaviour"
177+
178+ class HttpHeadersCollectionBehaviour (TypedDict ):
179+ request : "KeyValueCollectionBehaviour"
180+
181+ class DataCollectionUserOptions (TypedDict , total = False ):
182+ user_info : bool
183+ cookies : "KeyValueCollectionBehaviour"
184+ http_headers : "HttpHeadersCollectionUserOptions"
185+ http_bodies : "List[str]"
186+ query_params : "KeyValueCollectionBehaviour"
187+ graphql : "GraphQLCollectionUserOptions"
188+ gen_ai : "GenAICollectionUserOptions"
189+ database_query_data : bool
190+ queues : bool
191+ stack_frame_variables : bool
192+ frame_context_lines : int
193+
194+ class DataCollection (TypedDict ):
195+ provided_by_user : bool
196+ user_info : bool
197+ cookies : "KeyValueCollectionBehaviour"
198+ http_headers : "HttpHeadersCollectionBehaviour"
199+ http_bodies : "List[str]"
200+ query_params : "KeyValueCollectionBehaviour"
201+ graphql : "GraphQLCollectionBehaviour"
202+ gen_ai : "GenAICollectionBehaviour"
203+ database_query_data : bool
204+ queues : bool
205+ stack_frame_variables : bool
206+ frame_context_lines : int
207+
155208 # "critical" is an alias of "fatal" recognized by Relay
156209 LogLevelStr = Literal ["fatal" , "critical" , "error" , "warning" , "info" , "debug" ]
157210
0 commit comments