workos 5.32.0__py3-none-any.whl → 5.33.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.
- workos/__about__.py +1 -1
- workos/user_management.py +26 -0
- {workos-5.32.0.dist-info → workos-5.33.0.dist-info}/METADATA +1 -1
- {workos-5.32.0.dist-info → workos-5.33.0.dist-info}/RECORD +7 -7
- {workos-5.32.0.dist-info → workos-5.33.0.dist-info}/LICENSE +0 -0
- {workos-5.32.0.dist-info → workos-5.33.0.dist-info}/WHEEL +0 -0
- {workos-5.32.0.dist-info → workos-5.33.0.dist-info}/top_level.txt +0 -0
workos/__about__.py
CHANGED
workos/user_management.py
CHANGED
|
@@ -94,6 +94,7 @@ INVITATION_PATH = "user_management/invitations"
|
|
|
94
94
|
INVITATION_DETAIL_PATH = "user_management/invitations/{0}"
|
|
95
95
|
INVITATION_DETAIL_BY_TOKEN_PATH = "user_management/invitations/by_token/{0}"
|
|
96
96
|
INVITATION_REVOKE_PATH = "user_management/invitations/{0}/revoke"
|
|
97
|
+
INVITATION_RESEND_PATH = "user_management/invitations/{0}/resend"
|
|
97
98
|
PASSWORD_RESET_PATH = "user_management/password_reset"
|
|
98
99
|
PASSWORD_RESET_DETAIL_PATH = "user_management/password_reset/{0}"
|
|
99
100
|
|
|
@@ -896,6 +897,17 @@ class UserManagementModule(Protocol):
|
|
|
896
897
|
"""
|
|
897
898
|
...
|
|
898
899
|
|
|
900
|
+
def resend_invitation(self, invitation_id: str) -> SyncOrAsync[Invitation]:
|
|
901
|
+
"""Resends an existing Invitation.
|
|
902
|
+
|
|
903
|
+
Args:
|
|
904
|
+
invitation_id (str): The unique ID of the Invitation.
|
|
905
|
+
|
|
906
|
+
Returns:
|
|
907
|
+
Invitation: Invitation response from WorkOS.
|
|
908
|
+
"""
|
|
909
|
+
...
|
|
910
|
+
|
|
899
911
|
|
|
900
912
|
class UserManagement(UserManagementModule):
|
|
901
913
|
_http_client: SyncHTTPClient
|
|
@@ -1584,6 +1596,13 @@ class UserManagement(UserManagementModule):
|
|
|
1584
1596
|
|
|
1585
1597
|
return Invitation.model_validate(response)
|
|
1586
1598
|
|
|
1599
|
+
def resend_invitation(self, invitation_id: str) -> Invitation:
|
|
1600
|
+
response = self._http_client.request(
|
|
1601
|
+
INVITATION_RESEND_PATH.format(invitation_id), method=REQUEST_METHOD_POST
|
|
1602
|
+
)
|
|
1603
|
+
|
|
1604
|
+
return Invitation.model_validate(response)
|
|
1605
|
+
|
|
1587
1606
|
|
|
1588
1607
|
class AsyncUserManagement(UserManagementModule):
|
|
1589
1608
|
_http_client: AsyncHTTPClient
|
|
@@ -2286,3 +2305,10 @@ class AsyncUserManagement(UserManagementModule):
|
|
|
2286
2305
|
)
|
|
2287
2306
|
|
|
2288
2307
|
return Invitation.model_validate(response)
|
|
2308
|
+
|
|
2309
|
+
async def resend_invitation(self, invitation_id: str) -> Invitation:
|
|
2310
|
+
response = await self._http_client.request(
|
|
2311
|
+
INVITATION_RESEND_PATH.format(invitation_id), method=REQUEST_METHOD_POST
|
|
2312
|
+
)
|
|
2313
|
+
|
|
2314
|
+
return Invitation.model_validate(response)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
workos/__about__.py,sha256
|
|
1
|
+
workos/__about__.py,sha256=-nB8UrwKFTtayBxBV9wbxK-eZX381M0MPI4jlQUT290,406
|
|
2
2
|
workos/__init__.py,sha256=hOdbO_MJCvpLx8EbRjQg-fvFAB-glJmrmxUZK8kWG0k,167
|
|
3
3
|
workos/_base_client.py,sha256=YWLXBpd0YeID3WKYZkKa4l9ZuB9e6HgdLmPKZIzXsME,3599
|
|
4
4
|
workos/_client_configuration.py,sha256=g3eXhtrEMN6CW0hZ5uHb2PmLurXjyBkWZeQYMPeJD6s,222
|
|
@@ -17,7 +17,7 @@ workos/portal.py,sha256=lzf3fnOor4AyVdHCHMuJzVSpAC9LWWdC5sZIRtCsb0c,2443
|
|
|
17
17
|
workos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
workos/session.py,sha256=Fh9Y7fyjoX_cK2TayhNzpL725pwrNg-QClsgEfuMZsU,12412
|
|
19
19
|
workos/sso.py,sha256=ZBC3y-IRmxG0jPd0BOj7s7XQkXJoTLUg1fx-h3Gfy4g,13541
|
|
20
|
-
workos/user_management.py,sha256=
|
|
20
|
+
workos/user_management.py,sha256=q3rRWz3uxwGmCHswZnthQCV0lymo-LakYd-Y6wupSBA,83098
|
|
21
21
|
workos/vault.py,sha256=SJXr3nJ03qJFuf30FjevMD6LLlDNX3MGaKlYGgICRRE,15657
|
|
22
22
|
workos/webhooks.py,sha256=CuwBxh6va9VZFVSXOknveGt6CCGDF3em07a-J12DbXI,4790
|
|
23
23
|
workos/widgets.py,sha256=bfbR0hQOHZabbgGL2ekD5sY1sjiUoWBTdrBd_a6WmBc,1721
|
|
@@ -128,8 +128,8 @@ workos/utils/crypto_provider.py,sha256=QeQSR4t9xLlb90kEfl8onVUsf1yCkYq0EjFTxK0mU
|
|
|
128
128
|
workos/utils/http_client.py,sha256=TM5yMFFExmAE8D2Z43-5O301tRbnylLG0aXO0isGorE,6197
|
|
129
129
|
workos/utils/pagination_order.py,sha256=_-et1DDJLG0czarTU7op4W6RA0V1f85GNsUgtyRU55Q,70
|
|
130
130
|
workos/utils/request_helper.py,sha256=NaO16qPPbSNnCeE0fiNKYb8gM-dK_okYVJbLGrEGXz8,793
|
|
131
|
-
workos-5.
|
|
132
|
-
workos-5.
|
|
133
|
-
workos-5.
|
|
134
|
-
workos-5.
|
|
135
|
-
workos-5.
|
|
131
|
+
workos-5.33.0.dist-info/LICENSE,sha256=mU--WL1JzelH2tXpKVoOlpud4cpqKSRTtdArCvYZmb4,1063
|
|
132
|
+
workos-5.33.0.dist-info/METADATA,sha256=yqlekSvf2kMaq1cjaweH1L7mN2mo7lZnJ9XYhiRxz2U,4187
|
|
133
|
+
workos-5.33.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
134
|
+
workos-5.33.0.dist-info/top_level.txt,sha256=ZFskIfue1Tw-JwjyIXRvdsAl9i0DX9VbqmgICXV84Sk,7
|
|
135
|
+
workos-5.33.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|