@@ -46,6 +46,7 @@ def create(
4646 email : typing .Optional [str ] = OMIT ,
4747 name : typing .Optional [str ] = OMIT ,
4848 tz : typing .Optional [str ] = OMIT ,
49+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
4950 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
5051 request_options : typing .Optional [RequestOptions ] = None ,
5152 ) -> User :
@@ -66,6 +67,9 @@ def create(
6667 tz : typing.Optional[str]
6768 The user's timezone (used for email scheduling).
6869
70+ device_tokens : typing.Optional[typing.Sequence[str]]
71+ The user's device tokens, used for push notifications.
72+
6973 subscribe_to_emails : typing.Optional[bool]
7074 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
7175
@@ -96,6 +100,7 @@ def create(
96100 "email" : email ,
97101 "name" : name ,
98102 "tz" : tz ,
103+ "deviceTokens" : device_tokens ,
99104 "subscribeToEmails" : subscribe_to_emails ,
100105 },
101106 request_options = request_options ,
@@ -231,6 +236,7 @@ def identify(
231236 email : typing .Optional [str ] = OMIT ,
232237 name : typing .Optional [str ] = OMIT ,
233238 tz : typing .Optional [str ] = OMIT ,
239+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
234240 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
235241 request_options : typing .Optional [RequestOptions ] = None ,
236242 ) -> User :
@@ -251,6 +257,9 @@ def identify(
251257 tz : typing.Optional[str]
252258 The user's timezone (used for email scheduling).
253259
260+ device_tokens : typing.Optional[typing.Sequence[str]]
261+ The user's device tokens, used for push notifications.
262+
254263 subscribe_to_emails : typing.Optional[bool]
255264 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
256265
@@ -282,6 +291,7 @@ def identify(
282291 "email" : email ,
283292 "name" : name ,
284293 "tz" : tz ,
294+ "deviceTokens" : device_tokens ,
285295 "subscribeToEmails" : subscribe_to_emails ,
286296 },
287297 request_options = request_options ,
@@ -338,6 +348,7 @@ def update(
338348 email : typing .Optional [str ] = OMIT ,
339349 name : typing .Optional [str ] = OMIT ,
340350 tz : typing .Optional [str ] = OMIT ,
351+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
341352 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
342353 request_options : typing .Optional [RequestOptions ] = None ,
343354 ) -> User :
@@ -358,6 +369,9 @@ def update(
358369 tz : typing.Optional[str]
359370 The user's timezone (used for email scheduling).
360371
372+ device_tokens : typing.Optional[typing.Sequence[str]]
373+ The user's device tokens, used for push notifications.
374+
361375 subscribe_to_emails : typing.Optional[bool]
362376 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
363377
@@ -389,6 +403,7 @@ def update(
389403 "email" : email ,
390404 "name" : name ,
391405 "tz" : tz ,
406+ "deviceTokens" : device_tokens ,
392407 "subscribeToEmails" : subscribe_to_emails ,
393408 },
394409 request_options = request_options ,
@@ -1092,6 +1107,7 @@ async def create(
10921107 email : typing .Optional [str ] = OMIT ,
10931108 name : typing .Optional [str ] = OMIT ,
10941109 tz : typing .Optional [str ] = OMIT ,
1110+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
10951111 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
10961112 request_options : typing .Optional [RequestOptions ] = None ,
10971113 ) -> User :
@@ -1112,6 +1128,9 @@ async def create(
11121128 tz : typing.Optional[str]
11131129 The user's timezone (used for email scheduling).
11141130
1131+ device_tokens : typing.Optional[typing.Sequence[str]]
1132+ The user's device tokens, used for push notifications.
1133+
11151134 subscribe_to_emails : typing.Optional[bool]
11161135 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
11171136
@@ -1150,6 +1169,7 @@ async def main() -> None:
11501169 "email" : email ,
11511170 "name" : name ,
11521171 "tz" : tz ,
1172+ "deviceTokens" : device_tokens ,
11531173 "subscribeToEmails" : subscribe_to_emails ,
11541174 },
11551175 request_options = request_options ,
@@ -1293,6 +1313,7 @@ async def identify(
12931313 email : typing .Optional [str ] = OMIT ,
12941314 name : typing .Optional [str ] = OMIT ,
12951315 tz : typing .Optional [str ] = OMIT ,
1316+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
12961317 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
12971318 request_options : typing .Optional [RequestOptions ] = None ,
12981319 ) -> User :
@@ -1313,6 +1334,9 @@ async def identify(
13131334 tz : typing.Optional[str]
13141335 The user's timezone (used for email scheduling).
13151336
1337+ device_tokens : typing.Optional[typing.Sequence[str]]
1338+ The user's device tokens, used for push notifications.
1339+
13161340 subscribe_to_emails : typing.Optional[bool]
13171341 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
13181342
@@ -1352,6 +1376,7 @@ async def main() -> None:
13521376 "email" : email ,
13531377 "name" : name ,
13541378 "tz" : tz ,
1379+ "deviceTokens" : device_tokens ,
13551380 "subscribeToEmails" : subscribe_to_emails ,
13561381 },
13571382 request_options = request_options ,
@@ -1408,6 +1433,7 @@ async def update(
14081433 email : typing .Optional [str ] = OMIT ,
14091434 name : typing .Optional [str ] = OMIT ,
14101435 tz : typing .Optional [str ] = OMIT ,
1436+ device_tokens : typing .Optional [typing .Sequence [str ]] = OMIT ,
14111437 subscribe_to_emails : typing .Optional [bool ] = OMIT ,
14121438 request_options : typing .Optional [RequestOptions ] = None ,
14131439 ) -> User :
@@ -1428,6 +1454,9 @@ async def update(
14281454 tz : typing.Optional[str]
14291455 The user's timezone (used for email scheduling).
14301456
1457+ device_tokens : typing.Optional[typing.Sequence[str]]
1458+ The user's device tokens, used for push notifications.
1459+
14311460 subscribe_to_emails : typing.Optional[bool]
14321461 Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
14331462
@@ -1467,6 +1496,7 @@ async def main() -> None:
14671496 "email" : email ,
14681497 "name" : name ,
14691498 "tz" : tz ,
1499+ "deviceTokens" : device_tokens ,
14701500 "subscribeToEmails" : subscribe_to_emails ,
14711501 },
14721502 request_options = request_options ,
0 commit comments