growsurf-python 0.3.0__py3-none-any.whl → 0.4.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.4.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,9 @@ 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.
185
+
182
186
  referred_by: Referrer participant ID or email address.
183
187
 
184
188
  extra_headers: Send extra headers
@@ -201,6 +205,7 @@ class CampaignResource(SyncAPIResource):
201
205
  "ip_address": ip_address,
202
206
  "last_name": last_name,
203
207
  "metadata": metadata,
208
+ "mobile_instance_id": mobile_instance_id,
204
209
  "referral_status": referral_status,
205
210
  "referred_by": referred_by,
206
211
  },
@@ -666,6 +671,7 @@ class AsyncCampaignResource(AsyncAPIResource):
666
671
  ip_address: str | Omit = omit,
667
672
  last_name: str | Omit = omit,
668
673
  metadata: Dict[str, object] | Omit = omit,
674
+ mobile_instance_id: str | Omit = omit,
669
675
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
670
676
  referred_by: str | Omit = omit,
671
677
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -684,6 +690,9 @@ class AsyncCampaignResource(AsyncAPIResource):
684
690
  Args:
685
691
  metadata: Shallow custom metadata object.
686
692
 
693
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
694
+ for mobile participant creation and mobile participant token flows.
695
+
687
696
  referred_by: Referrer participant ID or email address.
688
697
 
689
698
  extra_headers: Send extra headers
@@ -706,6 +715,7 @@ class AsyncCampaignResource(AsyncAPIResource):
706
715
  "ip_address": ip_address,
707
716
  "last_name": last_name,
708
717
  "metadata": metadata,
718
+ "mobile_instance_id": mobile_instance_id,
709
719
  "referral_status": referral_status,
710
720
  "referred_by": referred_by,
711
721
  },
@@ -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,9 @@ 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.
245
+
242
246
  referred_by: Referrer participant ID or email address.
243
247
 
244
248
  extra_headers: Send extra headers
@@ -261,6 +265,7 @@ class ParticipantResource(SyncAPIResource):
261
265
  "ip_address": ip_address,
262
266
  "last_name": last_name,
263
267
  "metadata": metadata,
268
+ "mobile_instance_id": mobile_instance_id,
264
269
  "referral_status": referral_status,
265
270
  "referred_by": referred_by,
266
271
  },
@@ -916,6 +921,7 @@ class AsyncParticipantResource(AsyncAPIResource):
916
921
  ip_address: str | Omit = omit,
917
922
  last_name: str | Omit = omit,
918
923
  metadata: Dict[str, object] | Omit = omit,
924
+ mobile_instance_id: str | Omit = omit,
919
925
  referral_status: Literal["CREDIT_PENDING", "CREDIT_AWARDED"] | Omit = omit,
920
926
  referred_by: str | Omit = omit,
921
927
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -933,6 +939,9 @@ class AsyncParticipantResource(AsyncAPIResource):
933
939
  Args:
934
940
  metadata: Shallow custom metadata object.
935
941
 
942
+ mobile_instance_id: Optional app-install scoped identifier for native mobile anti-fraud. Recommended
943
+ for mobile participant creation and mobile participant token flows.
944
+
936
945
  referred_by: Referrer participant ID or email address.
937
946
 
938
947
  extra_headers: Send extra headers
@@ -955,6 +964,7 @@ class AsyncParticipantResource(AsyncAPIResource):
955
964
  "ip_address": ip_address,
956
965
  "last_name": last_name,
957
966
  "metadata": metadata,
967
+ "mobile_instance_id": mobile_instance_id,
958
968
  "referral_status": referral_status,
959
969
  "referred_by": referred_by,
960
970
  },
@@ -114,6 +114,12 @@ 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. Not stored when strict GDPR/CCPA mode is enabled.
121
+ """
122
+
117
123
  monthly_referrals: Optional[List[str]] = FieldInfo(alias="monthlyReferrals", default=None)
118
124
 
119
125
  notes: Optional[str] = None
@@ -24,6 +24,12 @@ 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
+ """
32
+
27
33
  referral_status: Annotated[Literal["CREDIT_PENDING", "CREDIT_AWARDED"], PropertyInfo(alias="referralStatus")]
28
34
 
29
35
  referred_by: Annotated[str, PropertyInfo(alias="referredBy")]
@@ -24,6 +24,12 @@ 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
+ """
32
+
27
33
  referral_status: Annotated[Literal["CREDIT_PENDING", "CREDIT_AWARDED"], PropertyInfo(alias="referralStatus")]
28
34
 
29
35
  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.4.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=xa4NoryvmUDyrwxFDATSa1He-fOaDdTZmq7GLfJIKFo,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=pEnLHeeZjScZoH9h1Buz4-LNMr6aCZg_2Sie_UiF8hU,49945
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=nloKXLYGkOTpMUiblt-GgnXhSCFfJ-SQI4tkafYtoSk,64488
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=u7R0okoPG7BWkG5nFxX7LG9e8i_qFRpjmAbdoxE7RK8,1184
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=YEkK_YPvCOQpM_BotHJJcl3bM6-LjWogsnlT_GvPAME,5473
59
+ growsurf/types/campaign/participant_add_params.py,sha256=WxUPF7ZTVQ6K3NUagwzauM7RViTUMvKcORom0CIh_cw,1141
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.4.0.dist-info/METADATA,sha256=O7t5t6VK71uEJ8642DmePrDi70zYA2pz_e8w2-SoUXg,13597
80
+ growsurf_python-0.4.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
81
+ growsurf_python-0.4.0.dist-info/licenses/LICENSE,sha256=kTHLVE-ra1gtTxcn395uFqcOzcErebE-mDdPNW7b8OU,11338
82
+ growsurf_python-0.4.0.dist-info/RECORD,,