hatchet-sdk 1.11.1__py3-none-any.whl → 1.12.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of hatchet-sdk might be problematic. Click here for more details.

Files changed (31) hide show
  1. hatchet_sdk/__init__.py +2 -0
  2. hatchet_sdk/client.py +2 -0
  3. hatchet_sdk/clients/events.py +42 -3
  4. hatchet_sdk/clients/rest/__init__.py +5 -0
  5. hatchet_sdk/clients/rest/api/event_api.py +490 -0
  6. hatchet_sdk/clients/rest/api/filter_api.py +339 -0
  7. hatchet_sdk/clients/rest/api/tenant_api.py +275 -0
  8. hatchet_sdk/clients/rest/api/workflow_runs_api.py +310 -0
  9. hatchet_sdk/clients/rest/models/__init__.py +5 -0
  10. hatchet_sdk/clients/rest/models/create_tenant_request.py +22 -2
  11. hatchet_sdk/clients/rest/models/tenant.py +6 -0
  12. hatchet_sdk/clients/rest/models/tenant_ui_version.py +37 -0
  13. hatchet_sdk/clients/rest/models/update_tenant_request.py +6 -0
  14. hatchet_sdk/clients/rest/models/v1_event.py +42 -0
  15. hatchet_sdk/clients/rest/models/v1_event_triggered_run.py +94 -0
  16. hatchet_sdk/clients/rest/models/v1_update_filter_request.py +98 -0
  17. hatchet_sdk/contracts/v1/workflows_pb2.py +26 -24
  18. hatchet_sdk/contracts/v1/workflows_pb2.pyi +14 -2
  19. hatchet_sdk/features/filters.py +36 -0
  20. hatchet_sdk/features/runs.py +22 -3
  21. hatchet_sdk/features/tenant.py +32 -0
  22. hatchet_sdk/hatchet.py +51 -8
  23. hatchet_sdk/runnables/action.py +1 -1
  24. hatchet_sdk/runnables/types.py +22 -4
  25. hatchet_sdk/runnables/workflow.py +413 -188
  26. hatchet_sdk/waits.py +2 -2
  27. {hatchet_sdk-1.11.1.dist-info → hatchet_sdk-1.12.1.dist-info}/METADATA +1 -1
  28. {hatchet_sdk-1.11.1.dist-info → hatchet_sdk-1.12.1.dist-info}/RECORD +30 -27
  29. hatchet_sdk/runnables/standalone.py +0 -391
  30. {hatchet_sdk-1.11.1.dist-info → hatchet_sdk-1.12.1.dist-info}/WHEEL +0 -0
  31. {hatchet_sdk-1.11.1.dist-info → hatchet_sdk-1.12.1.dist-info}/entry_points.txt +0 -0
@@ -12,6 +12,7 @@
12
12
  """ # noqa: E501
13
13
 
14
14
  import warnings
15
+ from datetime import datetime
15
16
  from typing import Any, Dict, List, Optional, Tuple, Union
16
17
 
17
18
  from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
@@ -38,6 +39,7 @@ from hatchet_sdk.clients.rest.models.event_update_cancel200_response import (
38
39
  from hatchet_sdk.clients.rest.models.events import Events
39
40
  from hatchet_sdk.clients.rest.models.replay_event_request import ReplayEventRequest
40
41
  from hatchet_sdk.clients.rest.models.v1_event_list import V1EventList
42
+ from hatchet_sdk.clients.rest.models.v1_task_status import V1TaskStatus
41
43
  from hatchet_sdk.clients.rest.models.workflow_run_status import WorkflowRunStatus
42
44
  from hatchet_sdk.clients.rest.rest import RESTResponseType
43
45
 
@@ -2548,6 +2550,269 @@ class EventApi:
2548
2550
  _request_auth=_request_auth,
2549
2551
  )
2550
2552
 
2553
+ @validate_call
2554
+ def v1_event_key_list(
2555
+ self,
2556
+ tenant: Annotated[
2557
+ str,
2558
+ Field(
2559
+ min_length=36, strict=True, max_length=36, description="The tenant id"
2560
+ ),
2561
+ ],
2562
+ _request_timeout: Union[
2563
+ None,
2564
+ Annotated[StrictFloat, Field(gt=0)],
2565
+ Tuple[
2566
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2567
+ ],
2568
+ ] = None,
2569
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2570
+ _content_type: Optional[StrictStr] = None,
2571
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2572
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2573
+ ) -> EventKeyList:
2574
+ """List event keys
2575
+
2576
+ Lists all event keys for a tenant.
2577
+
2578
+ :param tenant: The tenant id (required)
2579
+ :type tenant: str
2580
+ :param _request_timeout: timeout setting for this request. If one
2581
+ number provided, it will be total request
2582
+ timeout. It can also be a pair (tuple) of
2583
+ (connection, read) timeouts.
2584
+ :type _request_timeout: int, tuple(int, int), optional
2585
+ :param _request_auth: set to override the auth_settings for an a single
2586
+ request; this effectively ignores the
2587
+ authentication in the spec for a single request.
2588
+ :type _request_auth: dict, optional
2589
+ :param _content_type: force content-type for the request.
2590
+ :type _content_type: str, Optional
2591
+ :param _headers: set to override the headers for a single
2592
+ request; this effectively ignores the headers
2593
+ in the spec for a single request.
2594
+ :type _headers: dict, optional
2595
+ :param _host_index: set to override the host_index for a single
2596
+ request; this effectively ignores the host_index
2597
+ in the spec for a single request.
2598
+ :type _host_index: int, optional
2599
+ :return: Returns the result object.
2600
+ """ # noqa: E501
2601
+
2602
+ _param = self._v1_event_key_list_serialize(
2603
+ tenant=tenant,
2604
+ _request_auth=_request_auth,
2605
+ _content_type=_content_type,
2606
+ _headers=_headers,
2607
+ _host_index=_host_index,
2608
+ )
2609
+
2610
+ _response_types_map: Dict[str, Optional[str]] = {
2611
+ "200": "EventKeyList",
2612
+ "400": "APIErrors",
2613
+ "403": "APIErrors",
2614
+ }
2615
+ response_data = self.api_client.call_api(
2616
+ *_param, _request_timeout=_request_timeout
2617
+ )
2618
+ response_data.read()
2619
+ return self.api_client.response_deserialize(
2620
+ response_data=response_data,
2621
+ response_types_map=_response_types_map,
2622
+ ).data
2623
+
2624
+ @validate_call
2625
+ def v1_event_key_list_with_http_info(
2626
+ self,
2627
+ tenant: Annotated[
2628
+ str,
2629
+ Field(
2630
+ min_length=36, strict=True, max_length=36, description="The tenant id"
2631
+ ),
2632
+ ],
2633
+ _request_timeout: Union[
2634
+ None,
2635
+ Annotated[StrictFloat, Field(gt=0)],
2636
+ Tuple[
2637
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2638
+ ],
2639
+ ] = None,
2640
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2641
+ _content_type: Optional[StrictStr] = None,
2642
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2643
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2644
+ ) -> ApiResponse[EventKeyList]:
2645
+ """List event keys
2646
+
2647
+ Lists all event keys for a tenant.
2648
+
2649
+ :param tenant: The tenant id (required)
2650
+ :type tenant: str
2651
+ :param _request_timeout: timeout setting for this request. If one
2652
+ number provided, it will be total request
2653
+ timeout. It can also be a pair (tuple) of
2654
+ (connection, read) timeouts.
2655
+ :type _request_timeout: int, tuple(int, int), optional
2656
+ :param _request_auth: set to override the auth_settings for an a single
2657
+ request; this effectively ignores the
2658
+ authentication in the spec for a single request.
2659
+ :type _request_auth: dict, optional
2660
+ :param _content_type: force content-type for the request.
2661
+ :type _content_type: str, Optional
2662
+ :param _headers: set to override the headers for a single
2663
+ request; this effectively ignores the headers
2664
+ in the spec for a single request.
2665
+ :type _headers: dict, optional
2666
+ :param _host_index: set to override the host_index for a single
2667
+ request; this effectively ignores the host_index
2668
+ in the spec for a single request.
2669
+ :type _host_index: int, optional
2670
+ :return: Returns the result object.
2671
+ """ # noqa: E501
2672
+
2673
+ _param = self._v1_event_key_list_serialize(
2674
+ tenant=tenant,
2675
+ _request_auth=_request_auth,
2676
+ _content_type=_content_type,
2677
+ _headers=_headers,
2678
+ _host_index=_host_index,
2679
+ )
2680
+
2681
+ _response_types_map: Dict[str, Optional[str]] = {
2682
+ "200": "EventKeyList",
2683
+ "400": "APIErrors",
2684
+ "403": "APIErrors",
2685
+ }
2686
+ response_data = self.api_client.call_api(
2687
+ *_param, _request_timeout=_request_timeout
2688
+ )
2689
+ response_data.read()
2690
+ return self.api_client.response_deserialize(
2691
+ response_data=response_data,
2692
+ response_types_map=_response_types_map,
2693
+ )
2694
+
2695
+ @validate_call
2696
+ def v1_event_key_list_without_preload_content(
2697
+ self,
2698
+ tenant: Annotated[
2699
+ str,
2700
+ Field(
2701
+ min_length=36, strict=True, max_length=36, description="The tenant id"
2702
+ ),
2703
+ ],
2704
+ _request_timeout: Union[
2705
+ None,
2706
+ Annotated[StrictFloat, Field(gt=0)],
2707
+ Tuple[
2708
+ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]
2709
+ ],
2710
+ ] = None,
2711
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2712
+ _content_type: Optional[StrictStr] = None,
2713
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2714
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2715
+ ) -> RESTResponseType:
2716
+ """List event keys
2717
+
2718
+ Lists all event keys for a tenant.
2719
+
2720
+ :param tenant: The tenant id (required)
2721
+ :type tenant: str
2722
+ :param _request_timeout: timeout setting for this request. If one
2723
+ number provided, it will be total request
2724
+ timeout. It can also be a pair (tuple) of
2725
+ (connection, read) timeouts.
2726
+ :type _request_timeout: int, tuple(int, int), optional
2727
+ :param _request_auth: set to override the auth_settings for an a single
2728
+ request; this effectively ignores the
2729
+ authentication in the spec for a single request.
2730
+ :type _request_auth: dict, optional
2731
+ :param _content_type: force content-type for the request.
2732
+ :type _content_type: str, Optional
2733
+ :param _headers: set to override the headers for a single
2734
+ request; this effectively ignores the headers
2735
+ in the spec for a single request.
2736
+ :type _headers: dict, optional
2737
+ :param _host_index: set to override the host_index for a single
2738
+ request; this effectively ignores the host_index
2739
+ in the spec for a single request.
2740
+ :type _host_index: int, optional
2741
+ :return: Returns the result object.
2742
+ """ # noqa: E501
2743
+
2744
+ _param = self._v1_event_key_list_serialize(
2745
+ tenant=tenant,
2746
+ _request_auth=_request_auth,
2747
+ _content_type=_content_type,
2748
+ _headers=_headers,
2749
+ _host_index=_host_index,
2750
+ )
2751
+
2752
+ _response_types_map: Dict[str, Optional[str]] = {
2753
+ "200": "EventKeyList",
2754
+ "400": "APIErrors",
2755
+ "403": "APIErrors",
2756
+ }
2757
+ response_data = self.api_client.call_api(
2758
+ *_param, _request_timeout=_request_timeout
2759
+ )
2760
+ return response_data.response
2761
+
2762
+ def _v1_event_key_list_serialize(
2763
+ self,
2764
+ tenant,
2765
+ _request_auth,
2766
+ _content_type,
2767
+ _headers,
2768
+ _host_index,
2769
+ ) -> RequestSerialized:
2770
+
2771
+ _host = None
2772
+
2773
+ _collection_formats: Dict[str, str] = {}
2774
+
2775
+ _path_params: Dict[str, str] = {}
2776
+ _query_params: List[Tuple[str, str]] = []
2777
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2778
+ _form_params: List[Tuple[str, str]] = []
2779
+ _files: Dict[
2780
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2781
+ ] = {}
2782
+ _body_params: Optional[bytes] = None
2783
+
2784
+ # process the path parameters
2785
+ if tenant is not None:
2786
+ _path_params["tenant"] = tenant
2787
+ # process the query parameters
2788
+ # process the header parameters
2789
+ # process the form parameters
2790
+ # process the body parameter
2791
+
2792
+ # set the HTTP header `Accept`
2793
+ if "Accept" not in _header_params:
2794
+ _header_params["Accept"] = self.api_client.select_header_accept(
2795
+ ["application/json"]
2796
+ )
2797
+
2798
+ # authentication setting
2799
+ _auth_settings: List[str] = ["cookieAuth", "bearerAuth"]
2800
+
2801
+ return self.api_client.param_serialize(
2802
+ method="GET",
2803
+ resource_path="/api/v1/stable/tenants/{tenant}/events/keys",
2804
+ path_params=_path_params,
2805
+ query_params=_query_params,
2806
+ header_params=_header_params,
2807
+ body=_body_params,
2808
+ post_params=_form_params,
2809
+ files=_files,
2810
+ auth_settings=_auth_settings,
2811
+ collection_formats=_collection_formats,
2812
+ _host=_host,
2813
+ _request_auth=_request_auth,
2814
+ )
2815
+
2551
2816
  @validate_call
2552
2817
  def v1_event_list(
2553
2818
  self,
@@ -2566,6 +2831,42 @@ class EventApi:
2566
2831
  keys: Annotated[
2567
2832
  Optional[List[StrictStr]], Field(description="A list of keys to filter by")
2568
2833
  ] = None,
2834
+ since: Annotated[
2835
+ Optional[datetime],
2836
+ Field(description="Consider events that occurred after this time"),
2837
+ ] = None,
2838
+ until: Annotated[
2839
+ Optional[datetime],
2840
+ Field(description="Consider events that occurred before this time"),
2841
+ ] = None,
2842
+ workflow_ids: Annotated[
2843
+ Optional[
2844
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
2845
+ ],
2846
+ Field(
2847
+ description="Filter to events that are associated with a specific workflow run"
2848
+ ),
2849
+ ] = None,
2850
+ workflow_run_statuses: Annotated[
2851
+ Optional[List[V1TaskStatus]],
2852
+ Field(
2853
+ description="Filter to events that are associated with workflow runs matching a certain status"
2854
+ ),
2855
+ ] = None,
2856
+ event_ids: Annotated[
2857
+ Optional[
2858
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
2859
+ ],
2860
+ Field(description="Filter to specific events by their ids"),
2861
+ ] = None,
2862
+ additional_metadata: Annotated[
2863
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
2864
+ Field(description="Filter by additional metadata on the events"),
2865
+ ] = None,
2866
+ scopes: Annotated[
2867
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
2868
+ Field(description="The scopes to filter by"),
2869
+ ] = None,
2569
2870
  _request_timeout: Union[
2570
2871
  None,
2571
2872
  Annotated[StrictFloat, Field(gt=0)],
@@ -2590,6 +2891,20 @@ class EventApi:
2590
2891
  :type limit: int
2591
2892
  :param keys: A list of keys to filter by
2592
2893
  :type keys: List[str]
2894
+ :param since: Consider events that occurred after this time
2895
+ :type since: datetime
2896
+ :param until: Consider events that occurred before this time
2897
+ :type until: datetime
2898
+ :param workflow_ids: Filter to events that are associated with a specific workflow run
2899
+ :type workflow_ids: List[str]
2900
+ :param workflow_run_statuses: Filter to events that are associated with workflow runs matching a certain status
2901
+ :type workflow_run_statuses: List[V1TaskStatus]
2902
+ :param event_ids: Filter to specific events by their ids
2903
+ :type event_ids: List[str]
2904
+ :param additional_metadata: Filter by additional metadata on the events
2905
+ :type additional_metadata: List[str]
2906
+ :param scopes: The scopes to filter by
2907
+ :type scopes: List[str]
2593
2908
  :param _request_timeout: timeout setting for this request. If one
2594
2909
  number provided, it will be total request
2595
2910
  timeout. It can also be a pair (tuple) of
@@ -2617,6 +2932,13 @@ class EventApi:
2617
2932
  offset=offset,
2618
2933
  limit=limit,
2619
2934
  keys=keys,
2935
+ since=since,
2936
+ until=until,
2937
+ workflow_ids=workflow_ids,
2938
+ workflow_run_statuses=workflow_run_statuses,
2939
+ event_ids=event_ids,
2940
+ additional_metadata=additional_metadata,
2941
+ scopes=scopes,
2620
2942
  _request_auth=_request_auth,
2621
2943
  _content_type=_content_type,
2622
2944
  _headers=_headers,
@@ -2655,6 +2977,42 @@ class EventApi:
2655
2977
  keys: Annotated[
2656
2978
  Optional[List[StrictStr]], Field(description="A list of keys to filter by")
2657
2979
  ] = None,
2980
+ since: Annotated[
2981
+ Optional[datetime],
2982
+ Field(description="Consider events that occurred after this time"),
2983
+ ] = None,
2984
+ until: Annotated[
2985
+ Optional[datetime],
2986
+ Field(description="Consider events that occurred before this time"),
2987
+ ] = None,
2988
+ workflow_ids: Annotated[
2989
+ Optional[
2990
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
2991
+ ],
2992
+ Field(
2993
+ description="Filter to events that are associated with a specific workflow run"
2994
+ ),
2995
+ ] = None,
2996
+ workflow_run_statuses: Annotated[
2997
+ Optional[List[V1TaskStatus]],
2998
+ Field(
2999
+ description="Filter to events that are associated with workflow runs matching a certain status"
3000
+ ),
3001
+ ] = None,
3002
+ event_ids: Annotated[
3003
+ Optional[
3004
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
3005
+ ],
3006
+ Field(description="Filter to specific events by their ids"),
3007
+ ] = None,
3008
+ additional_metadata: Annotated[
3009
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
3010
+ Field(description="Filter by additional metadata on the events"),
3011
+ ] = None,
3012
+ scopes: Annotated[
3013
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
3014
+ Field(description="The scopes to filter by"),
3015
+ ] = None,
2658
3016
  _request_timeout: Union[
2659
3017
  None,
2660
3018
  Annotated[StrictFloat, Field(gt=0)],
@@ -2679,6 +3037,20 @@ class EventApi:
2679
3037
  :type limit: int
2680
3038
  :param keys: A list of keys to filter by
2681
3039
  :type keys: List[str]
3040
+ :param since: Consider events that occurred after this time
3041
+ :type since: datetime
3042
+ :param until: Consider events that occurred before this time
3043
+ :type until: datetime
3044
+ :param workflow_ids: Filter to events that are associated with a specific workflow run
3045
+ :type workflow_ids: List[str]
3046
+ :param workflow_run_statuses: Filter to events that are associated with workflow runs matching a certain status
3047
+ :type workflow_run_statuses: List[V1TaskStatus]
3048
+ :param event_ids: Filter to specific events by their ids
3049
+ :type event_ids: List[str]
3050
+ :param additional_metadata: Filter by additional metadata on the events
3051
+ :type additional_metadata: List[str]
3052
+ :param scopes: The scopes to filter by
3053
+ :type scopes: List[str]
2682
3054
  :param _request_timeout: timeout setting for this request. If one
2683
3055
  number provided, it will be total request
2684
3056
  timeout. It can also be a pair (tuple) of
@@ -2706,6 +3078,13 @@ class EventApi:
2706
3078
  offset=offset,
2707
3079
  limit=limit,
2708
3080
  keys=keys,
3081
+ since=since,
3082
+ until=until,
3083
+ workflow_ids=workflow_ids,
3084
+ workflow_run_statuses=workflow_run_statuses,
3085
+ event_ids=event_ids,
3086
+ additional_metadata=additional_metadata,
3087
+ scopes=scopes,
2709
3088
  _request_auth=_request_auth,
2710
3089
  _content_type=_content_type,
2711
3090
  _headers=_headers,
@@ -2744,6 +3123,42 @@ class EventApi:
2744
3123
  keys: Annotated[
2745
3124
  Optional[List[StrictStr]], Field(description="A list of keys to filter by")
2746
3125
  ] = None,
3126
+ since: Annotated[
3127
+ Optional[datetime],
3128
+ Field(description="Consider events that occurred after this time"),
3129
+ ] = None,
3130
+ until: Annotated[
3131
+ Optional[datetime],
3132
+ Field(description="Consider events that occurred before this time"),
3133
+ ] = None,
3134
+ workflow_ids: Annotated[
3135
+ Optional[
3136
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
3137
+ ],
3138
+ Field(
3139
+ description="Filter to events that are associated with a specific workflow run"
3140
+ ),
3141
+ ] = None,
3142
+ workflow_run_statuses: Annotated[
3143
+ Optional[List[V1TaskStatus]],
3144
+ Field(
3145
+ description="Filter to events that are associated with workflow runs matching a certain status"
3146
+ ),
3147
+ ] = None,
3148
+ event_ids: Annotated[
3149
+ Optional[
3150
+ List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]
3151
+ ],
3152
+ Field(description="Filter to specific events by their ids"),
3153
+ ] = None,
3154
+ additional_metadata: Annotated[
3155
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
3156
+ Field(description="Filter by additional metadata on the events"),
3157
+ ] = None,
3158
+ scopes: Annotated[
3159
+ Optional[List[Annotated[str, Field(min_length=1, strict=True)]]],
3160
+ Field(description="The scopes to filter by"),
3161
+ ] = None,
2747
3162
  _request_timeout: Union[
2748
3163
  None,
2749
3164
  Annotated[StrictFloat, Field(gt=0)],
@@ -2768,6 +3183,20 @@ class EventApi:
2768
3183
  :type limit: int
2769
3184
  :param keys: A list of keys to filter by
2770
3185
  :type keys: List[str]
3186
+ :param since: Consider events that occurred after this time
3187
+ :type since: datetime
3188
+ :param until: Consider events that occurred before this time
3189
+ :type until: datetime
3190
+ :param workflow_ids: Filter to events that are associated with a specific workflow run
3191
+ :type workflow_ids: List[str]
3192
+ :param workflow_run_statuses: Filter to events that are associated with workflow runs matching a certain status
3193
+ :type workflow_run_statuses: List[V1TaskStatus]
3194
+ :param event_ids: Filter to specific events by their ids
3195
+ :type event_ids: List[str]
3196
+ :param additional_metadata: Filter by additional metadata on the events
3197
+ :type additional_metadata: List[str]
3198
+ :param scopes: The scopes to filter by
3199
+ :type scopes: List[str]
2771
3200
  :param _request_timeout: timeout setting for this request. If one
2772
3201
  number provided, it will be total request
2773
3202
  timeout. It can also be a pair (tuple) of
@@ -2795,6 +3224,13 @@ class EventApi:
2795
3224
  offset=offset,
2796
3225
  limit=limit,
2797
3226
  keys=keys,
3227
+ since=since,
3228
+ until=until,
3229
+ workflow_ids=workflow_ids,
3230
+ workflow_run_statuses=workflow_run_statuses,
3231
+ event_ids=event_ids,
3232
+ additional_metadata=additional_metadata,
3233
+ scopes=scopes,
2798
3234
  _request_auth=_request_auth,
2799
3235
  _content_type=_content_type,
2800
3236
  _headers=_headers,
@@ -2817,6 +3253,13 @@ class EventApi:
2817
3253
  offset,
2818
3254
  limit,
2819
3255
  keys,
3256
+ since,
3257
+ until,
3258
+ workflow_ids,
3259
+ workflow_run_statuses,
3260
+ event_ids,
3261
+ additional_metadata,
3262
+ scopes,
2820
3263
  _request_auth,
2821
3264
  _content_type,
2822
3265
  _headers,
@@ -2827,6 +3270,11 @@ class EventApi:
2827
3270
 
2828
3271
  _collection_formats: Dict[str, str] = {
2829
3272
  "keys": "multi",
3273
+ "workflowIds": "multi",
3274
+ "workflowRunStatuses": "multi",
3275
+ "eventIds": "multi",
3276
+ "additionalMetadata": "multi",
3277
+ "scopes": "multi",
2830
3278
  }
2831
3279
 
2832
3280
  _path_params: Dict[str, str] = {}
@@ -2854,6 +3302,48 @@ class EventApi:
2854
3302
 
2855
3303
  _query_params.append(("keys", keys))
2856
3304
 
3305
+ if since is not None:
3306
+ if isinstance(since, datetime):
3307
+ _query_params.append(
3308
+ (
3309
+ "since",
3310
+ since.strftime(self.api_client.configuration.datetime_format),
3311
+ )
3312
+ )
3313
+ else:
3314
+ _query_params.append(("since", since))
3315
+
3316
+ if until is not None:
3317
+ if isinstance(until, datetime):
3318
+ _query_params.append(
3319
+ (
3320
+ "until",
3321
+ until.strftime(self.api_client.configuration.datetime_format),
3322
+ )
3323
+ )
3324
+ else:
3325
+ _query_params.append(("until", until))
3326
+
3327
+ if workflow_ids is not None:
3328
+
3329
+ _query_params.append(("workflowIds", workflow_ids))
3330
+
3331
+ if workflow_run_statuses is not None:
3332
+
3333
+ _query_params.append(("workflowRunStatuses", workflow_run_statuses))
3334
+
3335
+ if event_ids is not None:
3336
+
3337
+ _query_params.append(("eventIds", event_ids))
3338
+
3339
+ if additional_metadata is not None:
3340
+
3341
+ _query_params.append(("additionalMetadata", additional_metadata))
3342
+
3343
+ if scopes is not None:
3344
+
3345
+ _query_params.append(("scopes", scopes))
3346
+
2857
3347
  # process the header parameters
2858
3348
  # process the form parameters
2859
3349
  # process the body parameter