growsurf-python 1.6.0__py3-none-any.whl → 1.7.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.
growsurf/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "growsurf"
4
- __version__ = "1.6.0" # x-release-please-version
4
+ __version__ = "1.7.1" # x-release-please-version
@@ -624,6 +624,7 @@ class CampaignResource(SyncAPIResource):
624
624
  id: str,
625
625
  *,
626
626
  limit: int | Omit = omit,
627
+ metadata: Dict[str, str] | Omit = omit,
627
628
  next_id: str | Omit = omit,
628
629
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
629
630
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -638,6 +639,10 @@ class CampaignResource(SyncAPIResource):
638
639
  Args:
639
640
  limit: Number of results to return. Maximum 100.
640
641
 
642
+ metadata: Return only participants whose metadata matches every given key and value
643
+ exactly. Send each pair as `metadata[key]=value`. Up to 3 keys per request.
644
+ Values compare as strings, which is how metadata is stored.
645
+
641
646
  next_id: ID to start the next paged result set with.
642
647
 
643
648
  extra_headers: Send extra headers
@@ -660,6 +665,7 @@ class CampaignResource(SyncAPIResource):
660
665
  query=maybe_transform(
661
666
  {
662
667
  "limit": limit,
668
+ "metadata": metadata,
663
669
  "next_id": next_id,
664
670
  },
665
671
  campaign_list_participants_params.CampaignListParticipantsParams,
@@ -1802,6 +1808,7 @@ class AsyncCampaignResource(AsyncAPIResource):
1802
1808
  id: str,
1803
1809
  *,
1804
1810
  limit: int | Omit = omit,
1811
+ metadata: Dict[str, str] | Omit = omit,
1805
1812
  next_id: str | Omit = omit,
1806
1813
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1807
1814
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1816,6 +1823,10 @@ class AsyncCampaignResource(AsyncAPIResource):
1816
1823
  Args:
1817
1824
  limit: Number of results to return. Maximum 100.
1818
1825
 
1826
+ metadata: Return only participants whose metadata matches every given key and value
1827
+ exactly. Send each pair as `metadata[key]=value`. Up to 3 keys per request.
1828
+ Values compare as strings, which is how metadata is stored.
1829
+
1819
1830
  next_id: ID to start the next paged result set with.
1820
1831
 
1821
1832
  extra_headers: Send extra headers
@@ -1838,6 +1849,7 @@ class AsyncCampaignResource(AsyncAPIResource):
1838
1849
  query=await async_maybe_transform(
1839
1850
  {
1840
1851
  "limit": limit,
1852
+ "metadata": metadata,
1841
1853
  "next_id": next_id,
1842
1854
  },
1843
1855
  campaign_list_participants_params.CampaignListParticipantsParams,
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Dict
5
6
  from typing_extensions import Annotated, TypedDict
6
7
 
7
8
  from .._utils import PropertyInfo
@@ -13,5 +14,12 @@ class CampaignListParticipantsParams(TypedDict, total=False):
13
14
  limit: int
14
15
  """Number of results to return. Maximum 100."""
15
16
 
17
+ metadata: Dict[str, str]
18
+ """
19
+ Return only participants whose metadata matches every given key and value
20
+ exactly. Send each pair as `metadata[key]=value`. Up to 3 keys per request.
21
+ Values compare as strings, which is how metadata is stored.
22
+ """
23
+
16
24
  next_id: Annotated[str, PropertyInfo(alias="nextId")]
17
25
  """ID to start the next paged result set with."""
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: growsurf-python
3
- Version: 1.6.0
3
+ Version: 1.7.1
4
4
  Summary: The official Python library for the growsurf API
5
- Project-URL: Homepage, https://github.com/growsurf/growsurf-python
5
+ Project-URL: Homepage, https://growsurf.com/
6
6
  Project-URL: Repository, https://github.com/growsurf/growsurf-python
7
7
  Author: Growsurf
8
8
  License: Apache-2.0
@@ -11,7 +11,7 @@ growsurf/_resource.py,sha256=oeDA0FL2ottIchoUi86M_8eUqmtrGQLYTgfKYEzrsWg,1112
11
11
  growsurf/_response.py,sha256=RTZ8t27W4S6ExkCjzCg4HbcDUTCdOMgiheiMAuAxgu4,28937
12
12
  growsurf/_streaming.py,sha256=9aJ_V6JtddntWCon2Cq_MOLMnySnhc7wuqeZx7sUtKU,10558
13
13
  growsurf/_types.py,sha256=r8hAVihrutiLUToaJhSDys9T9sMc8BMy2qUrr3W_8Wo,7751
14
- growsurf/_version.py,sha256=eZySgQHOz0v0ru5xqHuzYKiHHbbvhLcbITHNCAKSeew,160
14
+ growsurf/_version.py,sha256=OwpUFaiKfhcj2CpB_p0j2prXYPZhWIBBao5ei2sAGak,160
15
15
  growsurf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  growsurf/_utils/__init__.py,sha256=nQq-iFa5YxTaWySaLigatew5rHgTR0M75FNYm4mrO1s,2313
17
17
  growsurf/_utils/_compat.py,sha256=33246eDcl3pwL6kWsEhVuT4Akrd8gZEW9LPTm465ohk,1231
@@ -32,7 +32,7 @@ growsurf/resources/__init__.py,sha256=RYj6vjnPpErdBftiCuJtbwqGAnll4jXw6sg4qh6o98
32
32
  growsurf/resources/account.py,sha256=C07rN77026gPHHb0U8y8qlvvluK2ZljUfygztbxxO0A,10173
33
33
  growsurf/resources/team.py,sha256=q3KpMg6Kflk3LDCRt0bUQeo2LiEb3Ih-8iHjZ7tRvjM,14781
34
34
  growsurf/resources/campaign/__init__.py,sha256=Pz3ef3fSs5bMyAJMwa_IIdVGkfYI-QV0Z1AeSraaDew,5984
35
- growsurf/resources/campaign/campaign.py,sha256=LxphFgI4mzNaS4xotvdSDpCX76-kghA-hp5f73252VI,124407
35
+ growsurf/resources/campaign/campaign.py,sha256=q5lSwsBmp2kEJvJA3XK2t6J2Dr2ufKWZNdy14VKQWrE,125113
36
36
  growsurf/resources/campaign/commission.py,sha256=Li8L2l8xRh4EXa_oD7R9RJ6m4xaA4pmt9gXTxib2Fkk,10426
37
37
  growsurf/resources/campaign/design.py,sha256=qw5Uif4dXZX5WxeyS-Sr8b91aVpo1dMhMHwUu-whbEQ,11838
38
38
  growsurf/resources/campaign/emails.py,sha256=kECJC5jUUAw5RmarBfOAktGkXmg-5DFKTwcHN4ygVMc,10816
@@ -63,7 +63,7 @@ growsurf/types/campaign_list_affiliate_applications_params.py,sha256=izVlk-VwOp-
63
63
  growsurf/types/campaign_list_affiliate_invites_params.py,sha256=acShYQXfYgj8UrQnuggai-jtt-Ep8Oxc8ko4kpHCmsY,550
64
64
  growsurf/types/campaign_list_commissions_params.py,sha256=5T8SWE63fWyMglJP_EnK5AG8OVQIbE0rf5jNcvc8tn8,622
65
65
  growsurf/types/campaign_list_leaderboard_params.py,sha256=V1woEXMUb2UQqsGw6Dzn33GtkmpdaFARsUjtT03MQwE,1055
66
- growsurf/types/campaign_list_participants_params.py,sha256=C3RF1NxvmcmBm0ZY82t8seoLmRZMRMGZ_JPIKt0WfuU,499
66
+ growsurf/types/campaign_list_participants_params.py,sha256=sRLNlP4LMaiUZGwiMsRg0cDgOzEYZtKjdXH4ME1Hy2E,791
67
67
  growsurf/types/campaign_list_payouts_params.py,sha256=OTGfLKhPSAX6jqmUWTT3MITVaLhM653UHx8hJDhAc_I,610
68
68
  growsurf/types/campaign_list_referrals_params.py,sha256=jdwikgDEsuYhjOa2eNfWMWgFJ0AAyH3m1x6UEd0tR64,1320
69
69
  growsurf/types/campaign_list_response.py,sha256=KrMwuCkMwzvLTBWM3uEqqjjwJPjz_lFvKxDGbowhvG4,291
@@ -150,7 +150,7 @@ growsurf/types/campaign/webhook_list_response.py,sha256=tSk9nTbcsj5Y-j4RjQwu9SZc
150
150
  growsurf/types/campaign/webhook_test_params.py,sha256=X1Osg9-4KGJbZauG_7rDqTE7cKCypeSzgumIhnxj9dk,468
151
151
  growsurf/types/campaign/webhook_test_response.py,sha256=AahcckKSLUeIgpwlosOOmbkioF62xREXgLbieHAPAdI,576
152
152
  growsurf/types/campaign/webhook_update_params.py,sha256=SavKhws8pfybC7O40ovtCreEmOwihEGPOCEX9Iua9cE,598
153
- growsurf_python-1.6.0.dist-info/METADATA,sha256=3CzI8ADnylJLzLL06u67bom6K42U0Mezbzk7lZHQiFI,13971
154
- growsurf_python-1.6.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
155
- growsurf_python-1.6.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
156
- growsurf_python-1.6.0.dist-info/RECORD,,
153
+ growsurf_python-1.7.1.dist-info/METADATA,sha256=xTobvn1SxUcVg4F_IeG9vzo3LFdURgLJBXLM4z3RM0w,13949
154
+ growsurf_python-1.7.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
155
+ growsurf_python-1.7.1.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
156
+ growsurf_python-1.7.1.dist-info/RECORD,,