growsurf-python 0.3.0__py3-none-any.whl → 0.5.0__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__ = "0.3.0" # x-release-please-version
4
+ __version__ = "0.5.0" # x-release-please-version
@@ -161,6 +161,7 @@ class CampaignResource(SyncAPIResource):
161
161
  ip_address: str | Omit = omit,
162
162
  last_name: str | Omit = omit,
163
163
  metadata: Dict[str, object] | Omit = omit,
164
+ mobile_instance_id: str | Omit = omit,
164
165
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
165
166
  referred_by: str | Omit = omit,
166
167
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -179,6 +180,10 @@ class CampaignResource(SyncAPIResource):
179
180
  Args:
180
181
  metadata: Shallow custom metadata object.
181
182
 
183
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
184
+ for mobile participant creation and mobile participant token flows. The official
185
+ mobile SDKs generate this as a lowercase UUID.
186
+
182
187
  referred_by: Referrer participant ID or email address.
183
188
 
184
189
  extra_headers: Send extra headers
@@ -201,6 +206,7 @@ class CampaignResource(SyncAPIResource):
201
206
  "ip_address": ip_address,
202
207
  "last_name": last_name,
203
208
  "metadata": metadata,
209
+ "mobile_instance_id": mobile_instance_id,
204
210
  "referral_status": referral_status,
205
211
  "referred_by": referred_by,
206
212
  },
@@ -666,6 +672,7 @@ class AsyncCampaignResource(AsyncAPIResource):
666
672
  ip_address: str | Omit = omit,
667
673
  last_name: str | Omit = omit,
668
674
  metadata: Dict[str, object] | Omit = omit,
675
+ mobile_instance_id: str | Omit = omit,
669
676
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
670
677
  referred_by: str | Omit = omit,
671
678
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -684,6 +691,10 @@ class AsyncCampaignResource(AsyncAPIResource):
684
691
  Args:
685
692
  metadata: Shallow custom metadata object.
686
693
 
694
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
695
+ for mobile participant creation and mobile participant token flows. The official
696
+ mobile SDKs generate this as a lowercase UUID.
697
+
687
698
  referred_by: Referrer participant ID or email address.
688
699
 
689
700
  extra_headers: Send extra headers
@@ -706,6 +717,7 @@ class AsyncCampaignResource(AsyncAPIResource):
706
717
  "ip_address": ip_address,
707
718
  "last_name": last_name,
708
719
  "metadata": metadata,
720
+ "mobile_instance_id": mobile_instance_id,
709
721
  "referral_status": referral_status,
710
722
  "referred_by": referred_by,
711
723
  },
@@ -222,6 +222,7 @@ class ParticipantResource(SyncAPIResource):
222
222
  ip_address: str | Omit = omit,
223
223
  last_name: str | Omit = omit,
224
224
  metadata: Dict[str, object] | Omit = omit,
225
+ mobile_instance_id: str | Omit = omit,
225
226
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
226
227
  referred_by: str | Omit = omit,
227
228
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -239,6 +240,10 @@ class ParticipantResource(SyncAPIResource):
239
240
  Args:
240
241
  metadata: Shallow custom metadata object.
241
242
 
243
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
244
+ for mobile participant creation and mobile participant token flows. The official
245
+ mobile SDKs generate this as a lowercase UUID.
246
+
242
247
  referred_by: Referrer participant ID or email address.
243
248
 
244
249
  extra_headers: Send extra headers
@@ -261,6 +266,7 @@ class ParticipantResource(SyncAPIResource):
261
266
  "ip_address": ip_address,
262
267
  "last_name": last_name,
263
268
  "metadata": metadata,
269
+ "mobile_instance_id": mobile_instance_id,
264
270
  "referral_status": referral_status,
265
271
  "referred_by": referred_by,
266
272
  },
@@ -916,6 +922,7 @@ class AsyncParticipantResource(AsyncAPIResource):
916
922
  ip_address: str | Omit = omit,
917
923
  last_name: str | Omit = omit,
918
924
  metadata: Dict[str, object] | Omit = omit,
925
+ mobile_instance_id: str | Omit = omit,
919
926
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
920
927
  referred_by: str | Omit = omit,
921
928
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -933,6 +940,10 @@ class AsyncParticipantResource(AsyncAPIResource):
933
940
  Args:
934
941
  metadata: Shallow custom metadata object.
935
942
 
943
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
944
+ for mobile participant creation and mobile participant token flows. The official
945
+ mobile SDKs generate this as a lowercase UUID.
946
+
936
947
  referred_by: Referrer participant ID or email address.
937
948
 
938
949
  extra_headers: Send extra headers
@@ -955,6 +966,7 @@ class AsyncParticipantResource(AsyncAPIResource):
955
966
  "ip_address": ip_address,
956
967
  "last_name": last_name,
957
968
  "metadata": metadata,
969
+ "mobile_instance_id": mobile_instance_id,
958
970
  "referral_status": referral_status,
959
971
  "referred_by": referred_by,
960
972
  },
@@ -114,6 +114,13 @@ class Participant(BaseModel):
114
114
  metadata: Optional[Dict[str, object]] = None
115
115
  """Shallow custom metadata object."""
116
116
 
117
+ mobile_instance_id: Optional[str] = FieldInfo(alias="mobileInstanceId", default=None)
118
+ """
119
+ App-install scoped mobile identifier used for anti-fraud matching when provided
120
+ by native mobile apps. The official mobile SDKs generate this as a lowercase
121
+ UUID. Not stored when strict GDPR/CCPA mode is enabled.
122
+ """
123
+
117
124
  monthly_referrals: Optional[List[str]] = FieldInfo(alias="monthlyReferrals", default=None)
118
125
 
119
126
  notes: Optional[str] = None
@@ -24,6 +24,13 @@ class ParticipantAddParams(TypedDict, total=False):
24
24
  metadata: Dict[str, object]
25
25
  """Shallow custom metadata object."""
26
26
 
27
+ mobile_instance_id: Annotated[str, PropertyInfo(alias="mobileInstanceId")]
28
+ """Optional app-install scoped identifier for native mobile anti-fraud.
29
+
30
+ Recommended for mobile participant creation and mobile participant token flows.
31
+ The official mobile SDKs generate this as a lowercase UUID.
32
+ """
33
+
27
34
  referral_status: Annotated[Literal["CREDIT_PENDING", "CREDIT_AWARDED"], PropertyInfo(alias="referralStatus")]
28
35
 
29
36
  referred_by: Annotated[str, PropertyInfo(alias="referredBy")]
@@ -24,6 +24,13 @@ class CampaignCreateMobileParticipantTokenParams(TypedDict, total=False):
24
24
  metadata: Dict[str, object]
25
25
  """Shallow custom metadata object."""
26
26
 
27
+ mobile_instance_id: Annotated[str, PropertyInfo(alias="mobileInstanceId")]
28
+ """Optional app-install scoped identifier for native mobile anti-fraud.
29
+
30
+ Recommended for mobile participant creation and mobile participant token flows.
31
+ The official mobile SDKs generate this as a lowercase UUID.
32
+ """
33
+
27
34
  referral_status: Annotated[Literal["CREDIT_PENDING", "CREDIT_AWARDED"], PropertyInfo(alias="referralStatus")]
28
35
 
29
36
  referred_by: Annotated[str, PropertyInfo(alias="referredBy")]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: growsurf-python
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: The official Python library for the growsurf API
5
5
  Project-URL: Homepage, https://github.com/growsurf/growsurf-python
6
6
  Project-URL: Repository, https://github.com/growsurf/growsurf-python
@@ -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=P1Oy5dCh4SuvO9h17qREoUSorRI3LuXlzAcbPhtW8QE,160
14
+ growsurf/_version.py,sha256=CT53wXKjNhCF5rpl_jiNeLFtY7psrXji8SICCcI-CJU,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
@@ -30,12 +30,12 @@ growsurf/_utils/_utils.py,sha256=2nPOzDrPe2GADpLCRM4bNQS8Mu7LjEiCG_LJ2AAL6jg,131
30
30
  growsurf/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
31
31
  growsurf/resources/__init__.py,sha256=xfEkuLlMZ7ZMm_bcpbd5XKNGLBo9xEvNVGX6EHH0g-M,578
32
32
  growsurf/resources/campaign/__init__.py,sha256=3k4V-N7TZLU1xJunA-760I62BQ1elIddwlLf_OtWQUQ,2045
33
- growsurf/resources/campaign/campaign.py,sha256=TodIEF7Ryaetda2Q6udAnnT-ZdowH6OdtmdzxfXCVQo,49339
33
+ growsurf/resources/campaign/campaign.py,sha256=EJXvobAfAf3fCjzMROSPa1_gX9Y_d_WNU1YIbTlvH64,50093
34
34
  growsurf/resources/campaign/commission.py,sha256=K5HmznRM7nO-VNiP2Jy1rIeW63rAx1Aa2M9DEJ9dB2I,10294
35
- growsurf/resources/campaign/participant.py,sha256=OTrmsJs8HtQUe3WQ5uuWj5-SoTPeNTY1duBQDT7oF6Q,63882
35
+ growsurf/resources/campaign/participant.py,sha256=pEiTDx_yENqeY9kfMI_b8AFgi-LlQJSX_kE-89UMN_w,64636
36
36
  growsurf/resources/campaign/reward.py,sha256=AVPDhttbglDXnZE4onrCvf6Br6PdAohVV9WJgF7DsjY,14034
37
37
  growsurf/types/__init__.py,sha256=qJwksX7ie_ILiC_A1QCtu5p_evuLWBH5oEIv91bJFoA,1715
38
- growsurf/types/campaign_create_mobile_participant_token_params.py,sha256=OM1h-M_ITLOfrq2NiWO1aWK1Cok-BJ6iwzNa1-zP7ng,935
38
+ growsurf/types/campaign_create_mobile_participant_token_params.py,sha256=oiyxZZGwlGdBSb-4s8FonLXyl_SIPdLECa4a0vrRXso,1248
39
39
  growsurf/types/campaign_create_mobile_participant_token_response.py,sha256=IvIgtizBufLI-p9pk7MnyJj3XydHjLvdoAw-PWpPqdI,769
40
40
  growsurf/types/campaign_list_commissions_params.py,sha256=5T8SWE63fWyMglJP_EnK5AG8OVQIbE0rf5jNcvc8tn8,622
41
41
  growsurf/types/campaign_list_leaderboard_params.py,sha256=V1woEXMUb2UQqsGw6Dzn33GtkmpdaFARsUjtT03MQwE,1055
@@ -55,8 +55,8 @@ growsurf/types/campaign/campaign.py,sha256=JuiQhipggLIZatBvdmVZVYW5YkLabGHqhZ03r
55
55
  growsurf/types/campaign/commission_approve_response.py,sha256=fcM2IM6qyqkne4aFPbYcJlfbO3P2fZsJQcBxdsB3BaE,225
56
56
  growsurf/types/campaign/commission_delete_response.py,sha256=psVQ1Yqh9j20kvg76LrRtXIa5cy0CVSWzKaZk9IvGKU,223
57
57
  growsurf/types/campaign/fraud_risk_level.py,sha256=e14xAEYtKH6gGnkJ9-sr81GZ2UY-zDQ6TZKCkBJLagw,228
58
- growsurf/types/campaign/participant.py,sha256=E6Hwr275wt5l0I-YdhUWXV1-J47vfXJJY-elrAMLgzg,5205
59
- growsurf/types/campaign/participant_add_params.py,sha256=wAbyxqdDZIqK0HDuuLwyjuQGAAdEICdVHySumv3VF5k,892
58
+ growsurf/types/campaign/participant.py,sha256=2OpAWm5J8-Mp4s_oq2czBv3wdZkR-ojyf5XyyXFqb4I,5537
59
+ growsurf/types/campaign/participant_add_params.py,sha256=e9RnIpm3xz8YtqXRSaYiNls7FDqk-kf466gH6yH8RoY,1205
60
60
  growsurf/types/campaign/participant_delete_response.py,sha256=qXghOQ04cS3jZh3oHZYr_iXzlanjELyeN5I4kUfFfRM,225
61
61
  growsurf/types/campaign/participant_list_commissions_params.py,sha256=4Cxa7rETQYmp71mR4wIzymfPYv2UV3vCzmQvv5iik1c,662
62
62
  growsurf/types/campaign/participant_list_payouts_params.py,sha256=AbadljbUZvMgc7cEDvDXpIg3n0nM1x4t2vZgTD-w69A,638
@@ -76,7 +76,7 @@ growsurf/types/campaign/reward_approve_params.py,sha256=IbGDBmEWgmtQQpmYaMg_navf
76
76
  growsurf/types/campaign/reward_approve_response.py,sha256=AID7RxcX5_BGxssHn6vR-pGOB_PK-xQhUBNk-ZkNkgI,217
77
77
  growsurf/types/campaign/reward_delete_response.py,sha256=YGOQ8GQEEN1HDzOT2pU30Q98UNM-s-U4VkTqMewNe5M,215
78
78
  growsurf/types/campaign/reward_fulfill_response.py,sha256=KlimtB3q-3djYMlRzshAxEyU_IVACOesNECbTeU574E,217
79
- growsurf_python-0.3.0.dist-info/METADATA,sha256=TGdbv2K4hziT4dx8J0NyBqmC3_2LLiJw5NxNLnSvk6A,13597
80
- growsurf_python-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
81
- growsurf_python-0.3.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
82
- growsurf_python-0.3.0.dist-info/RECORD,,
79
+ growsurf_python-0.5.0.dist-info/METADATA,sha256=-e1kXThGb5FrM6WPYzDhet6YUSNUQQslM26gKYRH17U,13597
80
+ growsurf_python-0.5.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
81
+ growsurf_python-0.5.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
82
+ growsurf_python-0.5.0.dist-info/RECORD,,