openmeter 1.0.0b123__py3-none-any.whl → 1.0.0b124__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 openmeter might be problematic. Click here for more details.

@@ -390,6 +390,10 @@ def build_list_entitlements_request(
390
390
  page_size: int = 100,
391
391
  limit: int = 1000,
392
392
  offset: int = 0,
393
+ subject: Optional[List[str]] = None,
394
+ feature: Optional[List[str]] = None,
395
+ entitlement_type: Optional[List[str]] = None,
396
+ order: str = "ASC",
393
397
  order_by: str = "createdAt",
394
398
  **kwargs: Any
395
399
  ) -> HttpRequest:
@@ -410,6 +414,14 @@ def build_list_entitlements_request(
410
414
  _params["limit"] = _SERIALIZER.query("limit", limit, "int", maximum=1000, minimum=1)
411
415
  if offset is not None:
412
416
  _params["offset"] = _SERIALIZER.query("offset", offset, "int", minimum=0)
417
+ if subject is not None:
418
+ _params["subject"] = _SERIALIZER.query("subject", subject, "[str]")
419
+ if feature is not None:
420
+ _params["feature"] = _SERIALIZER.query("feature", feature, "[str]")
421
+ if entitlement_type is not None:
422
+ _params["entitlementType"] = _SERIALIZER.query("entitlement_type", entitlement_type, "[str]")
423
+ if order is not None:
424
+ _params["order"] = _SERIALIZER.query("order", order, "str")
413
425
  if order_by is not None:
414
426
  _params["orderBy"] = _SERIALIZER.query("order_by", order_by, "str")
415
427
 
@@ -425,6 +437,8 @@ def build_list_features_request(
425
437
  page_size: int = 100,
426
438
  limit: int = 1000,
427
439
  offset: int = 0,
440
+ meter_slug: Optional[List[str]] = None,
441
+ order: str = "ASC",
428
442
  order_by: str = "updatedAt",
429
443
  include_archived: bool = False,
430
444
  **kwargs: Any
@@ -446,6 +460,10 @@ def build_list_features_request(
446
460
  _params["limit"] = _SERIALIZER.query("limit", limit, "int", maximum=1000, minimum=1)
447
461
  if offset is not None:
448
462
  _params["offset"] = _SERIALIZER.query("offset", offset, "int", minimum=0)
463
+ if meter_slug is not None:
464
+ _params["meterSlug"] = _SERIALIZER.query("meter_slug", meter_slug, "[str]")
465
+ if order is not None:
466
+ _params["order"] = _SERIALIZER.query("order", order, "str")
449
467
  if order_by is not None:
450
468
  _params["orderBy"] = _SERIALIZER.query("order_by", order_by, "str")
451
469
  if include_archived is not None:
@@ -518,6 +536,8 @@ def build_list_grants_request(
518
536
  page_size: int = 100,
519
537
  limit: int = 1000,
520
538
  offset: int = 0,
539
+ subject: Optional[List[str]] = None,
540
+ feature: Optional[List[str]] = None,
521
541
  order: str = "ASC",
522
542
  order_by: str = "updatedAt",
523
543
  include_deleted: bool = False,
@@ -540,6 +560,10 @@ def build_list_grants_request(
540
560
  _params["limit"] = _SERIALIZER.query("limit", limit, "int", maximum=1000, minimum=1)
541
561
  if offset is not None:
542
562
  _params["offset"] = _SERIALIZER.query("offset", offset, "int", minimum=0)
563
+ if subject is not None:
564
+ _params["subject"] = _SERIALIZER.query("subject", subject, "[str]")
565
+ if feature is not None:
566
+ _params["feature"] = _SERIALIZER.query("feature", feature, "[str]")
543
567
  if order is not None:
544
568
  _params["order"] = _SERIALIZER.query("order", order, "str")
545
569
  if order_by is not None:
@@ -2930,6 +2954,10 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2930
2954
  page_size: int = 100,
2931
2955
  limit: int = 1000,
2932
2956
  offset: int = 0,
2957
+ subject: Optional[List[str]] = None,
2958
+ feature: Optional[List[str]] = None,
2959
+ entitlement_type: Optional[List[str]] = None,
2960
+ order: str = "ASC",
2933
2961
  order_by: str = "createdAt",
2934
2962
  **kwargs: Any
2935
2963
  ) -> Any:
@@ -2947,6 +2975,22 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2947
2975
  :paramtype limit: int
2948
2976
  :keyword offset: Number of entries to skip. Default value is 0.
2949
2977
  :paramtype offset: int
2978
+ :keyword subject: Filtering by multiple subjects.
2979
+
2980
+ Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
2981
+ :paramtype subject: list[str]
2982
+ :keyword feature: Filtering by multiple features.
2983
+
2984
+ Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
2985
+ :paramtype feature: list[str]
2986
+ :keyword entitlement_type: Filtering by multiple entitlement types.
2987
+
2988
+ Usage: ``?entitlementType=metered&entitlementType=static``. Default value is None.
2989
+ :paramtype entitlement_type: list[str]
2990
+ :keyword order: Order by field.
2991
+
2992
+ Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
2993
+ :paramtype order: str
2950
2994
  :keyword order_by: Order by field. Known values are: "createdAt" and "updatedAt". Default value
2951
2995
  is "createdAt".
2952
2996
  :paramtype order_by: str
@@ -2973,6 +3017,10 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2973
3017
  page_size=page_size,
2974
3018
  limit=limit,
2975
3019
  offset=offset,
3020
+ subject=subject,
3021
+ feature=feature,
3022
+ entitlement_type=entitlement_type,
3023
+ order=order,
2976
3024
  order_by=order_by,
2977
3025
  headers=_headers,
2978
3026
  params=_params,
@@ -3010,6 +3058,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3010
3058
  page_size: int = 100,
3011
3059
  limit: int = 1000,
3012
3060
  offset: int = 0,
3061
+ meter_slug: Optional[List[str]] = None,
3062
+ order: str = "ASC",
3013
3063
  order_by: str = "updatedAt",
3014
3064
  include_archived: bool = False,
3015
3065
  **kwargs: Any
@@ -3027,6 +3077,14 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3027
3077
  :paramtype limit: int
3028
3078
  :keyword offset: Number of entries to skip. Default value is 0.
3029
3079
  :paramtype offset: int
3080
+ :keyword meter_slug: Filtering by multiple meterSlug.
3081
+
3082
+ Usage: ``?meterSlug=meter-1&meterSlug=meter-2``. Default value is None.
3083
+ :paramtype meter_slug: list[str]
3084
+ :keyword order: Order by field.
3085
+
3086
+ Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
3087
+ :paramtype order: str
3030
3088
  :keyword order_by: Order by field. Known values are: "id", "createdAt", and "updatedAt".
3031
3089
  Default value is "updatedAt".
3032
3090
  :paramtype order_by: str
@@ -3055,6 +3113,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3055
3113
  page_size=page_size,
3056
3114
  limit=limit,
3057
3115
  offset=offset,
3116
+ meter_slug=meter_slug,
3117
+ order=order,
3058
3118
  order_by=order_by,
3059
3119
  include_archived=include_archived,
3060
3120
  headers=_headers,
@@ -3507,6 +3567,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3507
3567
  page_size: int = 100,
3508
3568
  limit: int = 1000,
3509
3569
  offset: int = 0,
3570
+ subject: Optional[List[str]] = None,
3571
+ feature: Optional[List[str]] = None,
3510
3572
  order: str = "ASC",
3511
3573
  order_by: str = "updatedAt",
3512
3574
  include_deleted: bool = False,
@@ -3528,6 +3590,14 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3528
3590
  :paramtype limit: int
3529
3591
  :keyword offset: Number of entries to skip. Default value is 0.
3530
3592
  :paramtype offset: int
3593
+ :keyword subject: Filtering by multiple subjects.
3594
+
3595
+ Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
3596
+ :paramtype subject: list[str]
3597
+ :keyword feature: Filtering by multiple features.
3598
+
3599
+ Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
3600
+ :paramtype feature: list[str]
3531
3601
  :keyword order: Order by field.
3532
3602
 
3533
3603
  Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
@@ -3559,6 +3629,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
3559
3629
  page_size=page_size,
3560
3630
  limit=limit,
3561
3631
  offset=offset,
3632
+ subject=subject,
3633
+ feature=feature,
3562
3634
  order=order,
3563
3635
  order_by=order_by,
3564
3636
  include_deleted=include_deleted,
@@ -1910,6 +1910,10 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
1910
1910
  page_size: int = 100,
1911
1911
  limit: int = 1000,
1912
1912
  offset: int = 0,
1913
+ subject: Optional[List[str]] = None,
1914
+ feature: Optional[List[str]] = None,
1915
+ entitlement_type: Optional[List[str]] = None,
1916
+ order: str = "ASC",
1913
1917
  order_by: str = "createdAt",
1914
1918
  **kwargs: Any
1915
1919
  ) -> Any:
@@ -1927,6 +1931,22 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
1927
1931
  :paramtype limit: int
1928
1932
  :keyword offset: Number of entries to skip. Default value is 0.
1929
1933
  :paramtype offset: int
1934
+ :keyword subject: Filtering by multiple subjects.
1935
+
1936
+ Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
1937
+ :paramtype subject: list[str]
1938
+ :keyword feature: Filtering by multiple features.
1939
+
1940
+ Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
1941
+ :paramtype feature: list[str]
1942
+ :keyword entitlement_type: Filtering by multiple entitlement types.
1943
+
1944
+ Usage: ``?entitlementType=metered&entitlementType=static``. Default value is None.
1945
+ :paramtype entitlement_type: list[str]
1946
+ :keyword order: Order by field.
1947
+
1948
+ Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
1949
+ :paramtype order: str
1930
1950
  :keyword order_by: Order by field. Known values are: "createdAt" and "updatedAt". Default value
1931
1951
  is "createdAt".
1932
1952
  :paramtype order_by: str
@@ -1953,6 +1973,10 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
1953
1973
  page_size=page_size,
1954
1974
  limit=limit,
1955
1975
  offset=offset,
1976
+ subject=subject,
1977
+ feature=feature,
1978
+ entitlement_type=entitlement_type,
1979
+ order=order,
1956
1980
  order_by=order_by,
1957
1981
  headers=_headers,
1958
1982
  params=_params,
@@ -1990,6 +2014,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
1990
2014
  page_size: int = 100,
1991
2015
  limit: int = 1000,
1992
2016
  offset: int = 0,
2017
+ meter_slug: Optional[List[str]] = None,
2018
+ order: str = "ASC",
1993
2019
  order_by: str = "updatedAt",
1994
2020
  include_archived: bool = False,
1995
2021
  **kwargs: Any
@@ -2007,6 +2033,14 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2007
2033
  :paramtype limit: int
2008
2034
  :keyword offset: Number of entries to skip. Default value is 0.
2009
2035
  :paramtype offset: int
2036
+ :keyword meter_slug: Filtering by multiple meterSlug.
2037
+
2038
+ Usage: ``?meterSlug=meter-1&meterSlug=meter-2``. Default value is None.
2039
+ :paramtype meter_slug: list[str]
2040
+ :keyword order: Order by field.
2041
+
2042
+ Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
2043
+ :paramtype order: str
2010
2044
  :keyword order_by: Order by field. Known values are: "id", "createdAt", and "updatedAt".
2011
2045
  Default value is "updatedAt".
2012
2046
  :paramtype order_by: str
@@ -2035,6 +2069,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2035
2069
  page_size=page_size,
2036
2070
  limit=limit,
2037
2071
  offset=offset,
2072
+ meter_slug=meter_slug,
2073
+ order=order,
2038
2074
  order_by=order_by,
2039
2075
  include_archived=include_archived,
2040
2076
  headers=_headers,
@@ -2489,6 +2525,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2489
2525
  page_size: int = 100,
2490
2526
  limit: int = 1000,
2491
2527
  offset: int = 0,
2528
+ subject: Optional[List[str]] = None,
2529
+ feature: Optional[List[str]] = None,
2492
2530
  order: str = "ASC",
2493
2531
  order_by: str = "updatedAt",
2494
2532
  include_deleted: bool = False,
@@ -2510,6 +2548,14 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2510
2548
  :paramtype limit: int
2511
2549
  :keyword offset: Number of entries to skip. Default value is 0.
2512
2550
  :paramtype offset: int
2551
+ :keyword subject: Filtering by multiple subjects.
2552
+
2553
+ Usage: ``?subject=customer-1&subject=customer-2``. Default value is None.
2554
+ :paramtype subject: list[str]
2555
+ :keyword feature: Filtering by multiple features.
2556
+
2557
+ Usage: ``?feature=feature-1&feature=feature-2``. Default value is None.
2558
+ :paramtype feature: list[str]
2513
2559
  :keyword order: Order by field.
2514
2560
 
2515
2561
  Usage: ``?order=ASC``. Known values are: "ASC" and "DESC". Default value is "ASC".
@@ -2541,6 +2587,8 @@ class ClientOperationsMixin(ClientMixinABC): # pylint: disable=too-many-public-
2541
2587
  page_size=page_size,
2542
2588
  limit=limit,
2543
2589
  offset=offset,
2590
+ subject=subject,
2591
+ feature=feature,
2544
2592
  order=order,
2545
2593
  order_by=order_by,
2546
2594
  include_deleted=include_deleted,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openmeter
3
- Version: 1.0.0b123
3
+ Version: 1.0.0b124
4
4
  Summary: Client for OpenMeter: Real-Time and Scalable Usage Metering
5
5
  Home-page: https://openmeter.io
6
6
  License: Apache-2.0
@@ -2,7 +2,7 @@ openmeter/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
2
2
  openmeter/_client.py,sha256=TIXIPi_UVO-d5BHra7_xIiKmLfZBrmc4L_Xq2gxi4lM,3982
3
3
  openmeter/_configuration.py,sha256=CIdMxPaIXwDLaCsnvmdmHTfplV_cRp24101RJCEWtes,1807
4
4
  openmeter/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
5
- openmeter/_operations/_operations.py,sha256=DsbYC_Htg0vGy_FzpEJAHp8Iedk8Hc_Wj6rYeVHdY-g,270306
5
+ openmeter/_operations/_operations.py,sha256=1pIEezrjNF8zu4CDHfGCSijd511hKGRtJGKSHphO5QA,273499
6
6
  openmeter/_operations/_patch.py,sha256=ptSL-JhY1fbGT9Cw2cUkPF1TPz5qVgXwTMMT5h41XUc,4874
7
7
  openmeter/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
8
8
  openmeter/_serialization.py,sha256=vQIv-wuCQabtiIq2DXOr7-InGADqxlXTGNEKv9OlDPs,78873
@@ -11,11 +11,11 @@ openmeter/aio/__init__.py,sha256=7klRT7LAGDqBcZsl7LGZrgrABVwyncgVUlidfaPiJm4,702
11
11
  openmeter/aio/_client.py,sha256=O0VpMfw42UuTN_ZTIL3dw944PviLIrBBCSp7UaexyKQ,4100
12
12
  openmeter/aio/_configuration.py,sha256=NtT-cxQWkt8q_FvMfwqqil18Tt9zJmWGVju4U9s7OsE,1817
13
13
  openmeter/aio/_operations/__init__.py,sha256=GVYObnS1nT-wbN8ONRxlAiH6NBeAXlOBi7olGJE9niA,682
14
- openmeter/aio/_operations/_operations.py,sha256=g7Ee_FcWPMvfQ6oyglHXDXNV71XEVxwhs2aXYD6Nixo,233797
14
+ openmeter/aio/_operations/_operations.py,sha256=mr_5vFPsCxlQ9xvROzg23wS2KXrEoRJq_XXF3avKLp0,235826
15
15
  openmeter/aio/_operations/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
16
16
  openmeter/aio/_patch.py,sha256=P7PMm3Gbjlk56lI6B_Ra43hSW5qGMEmN3cNYGH5uZ3s,674
17
17
  openmeter/aio/_vendor.py,sha256=CFsSbXOBydpg_f_uciu6Pe6cvF__6ofZ6KFEhkaMMEU,862
18
18
  openmeter/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
19
- openmeter-1.0.0b123.dist-info/METADATA,sha256=JM9HkJFxRjiCVD-IpOecYqfgk9S-4o-k8ZQgZtU2P_E,2258
20
- openmeter-1.0.0b123.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- openmeter-1.0.0b123.dist-info/RECORD,,
19
+ openmeter-1.0.0b124.dist-info/METADATA,sha256=M1Q41TSwDNUjmXtBgR3QmcXBgov6TVDQdAmvcP5KE9w,2258
20
+ openmeter-1.0.0b124.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
+ openmeter-1.0.0b124.dist-info/RECORD,,