11# This file was auto-generated by Fern from our API Definition.
22
3+ import datetime as dt
34import typing
45
56from ..commons .types .dataset_item import DatasetItem
@@ -143,12 +144,14 @@ def list(
143144 dataset_name : typing .Optional [str ] = None ,
144145 source_trace_id : typing .Optional [str ] = None ,
145146 source_observation_id : typing .Optional [str ] = None ,
147+ version : typing .Optional [dt .datetime ] = None ,
146148 page : typing .Optional [int ] = None ,
147149 limit : typing .Optional [int ] = None ,
148150 request_options : typing .Optional [RequestOptions ] = None ,
149151 ) -> PaginatedDatasetItems :
150152 """
151- Get dataset items
153+ Get dataset items. Optionally specify a version to get the items as they existed at that point in time.
154+ Note: If version parameter is provided, datasetName must also be provided.
152155
153156 Parameters
154157 ----------
@@ -158,6 +161,11 @@ def list(
158161
159162 source_observation_id : typing.Optional[str]
160163
164+ version : typing.Optional[dt.datetime]
165+ ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., "2026-01-21T14:35:42Z").
166+ If provided, returns state of dataset at this timestamp.
167+ If not provided, returns the latest version. Requires datasetName to be specified.
168+
161169 page : typing.Optional[int]
162170 page number, starts at 1
163171
@@ -189,6 +197,7 @@ def list(
189197 dataset_name = dataset_name ,
190198 source_trace_id = source_trace_id ,
191199 source_observation_id = source_observation_id ,
200+ version = version ,
192201 page = page ,
193202 limit = limit ,
194203 request_options = request_options ,
@@ -377,12 +386,14 @@ async def list(
377386 dataset_name : typing .Optional [str ] = None ,
378387 source_trace_id : typing .Optional [str ] = None ,
379388 source_observation_id : typing .Optional [str ] = None ,
389+ version : typing .Optional [dt .datetime ] = None ,
380390 page : typing .Optional [int ] = None ,
381391 limit : typing .Optional [int ] = None ,
382392 request_options : typing .Optional [RequestOptions ] = None ,
383393 ) -> PaginatedDatasetItems :
384394 """
385- Get dataset items
395+ Get dataset items. Optionally specify a version to get the items as they existed at that point in time.
396+ Note: If version parameter is provided, datasetName must also be provided.
386397
387398 Parameters
388399 ----------
@@ -392,6 +403,11 @@ async def list(
392403
393404 source_observation_id : typing.Optional[str]
394405
406+ version : typing.Optional[dt.datetime]
407+ ISO 8601 timestamp (RFC 3339, Section 5.6) in UTC (e.g., "2026-01-21T14:35:42Z").
408+ If provided, returns state of dataset at this timestamp.
409+ If not provided, returns the latest version. Requires datasetName to be specified.
410+
395411 page : typing.Optional[int]
396412 page number, starts at 1
397413
@@ -431,6 +447,7 @@ async def main() -> None:
431447 dataset_name = dataset_name ,
432448 source_trace_id = source_trace_id ,
433449 source_observation_id = source_observation_id ,
450+ version = version ,
434451 page = page ,
435452 limit = limit ,
436453 request_options = request_options ,
0 commit comments