workos 5.29.0__py3-none-any.whl → 5.30.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 CHANGED
@@ -12,7 +12,7 @@ __package_name__ = "workos"
12
12
 
13
13
  __package_url__ = "https://github.com/workos-inc/workos-python"
14
14
 
15
- __version__ = "5.29.0"
15
+ __version__ = "5.30.0"
16
16
 
17
17
  __author__ = "WorkOS"
18
18
 
@@ -19,6 +19,7 @@ class AuthenticateWithCodeParameters(AuthenticateWithBaseParameters):
19
19
  code_verifier: Union[str, None]
20
20
  grant_type: Literal["authorization_code"]
21
21
  session: Union[SessionConfig, None]
22
+ invitation_token: Union[str, None]
22
23
 
23
24
 
24
25
  class AuthenticateWithMagicAuthParameters(AuthenticateWithBaseParameters):
workos/user_management.py CHANGED
@@ -488,6 +488,7 @@ class UserManagementModule(Protocol):
488
488
  code_verifier: Optional[str] = None,
489
489
  ip_address: Optional[str] = None,
490
490
  user_agent: Optional[str] = None,
491
+ invitation_token: Optional[str] = None,
491
492
  ) -> SyncOrAsync[AuthenticationResponse]:
492
493
  """Authenticates an OAuth user or a user that is logging in through SSO.
493
494
 
@@ -498,6 +499,7 @@ class UserManagementModule(Protocol):
498
499
  url as part of the PKCE flow. This parameter is required when the client secret is not present. (Optional)
499
500
  ip_address (str): The IP address of the request from the user who is attempting to authenticate. (Optional)
500
501
  user_agent (str): The user agent of the request from the user who is attempting to authenticate. (Optional)
502
+ invitation_token (str): The token of an Invitation, if required. (Optional)
501
503
 
502
504
  Returns:
503
505
  AuthenticationResponse: Authentication response from WorkOS.
@@ -1166,6 +1168,7 @@ class UserManagement(UserManagementModule):
1166
1168
  code_verifier: Optional[str] = None,
1167
1169
  ip_address: Optional[str] = None,
1168
1170
  user_agent: Optional[str] = None,
1171
+ invitation_token: Optional[str] = None,
1169
1172
  ) -> AuthKitAuthenticationResponse:
1170
1173
  if (
1171
1174
  session is not None
@@ -1181,6 +1184,7 @@ class UserManagement(UserManagementModule):
1181
1184
  "user_agent": user_agent,
1182
1185
  "code_verifier": code_verifier,
1183
1186
  "session": session,
1187
+ "invitation_token": invitation_token,
1184
1188
  }
1185
1189
 
1186
1190
  return self._authenticate_with(
@@ -1807,6 +1811,7 @@ class AsyncUserManagement(UserManagementModule):
1807
1811
  code_verifier: Optional[str] = None,
1808
1812
  ip_address: Optional[str] = None,
1809
1813
  user_agent: Optional[str] = None,
1814
+ invitation_token: Optional[str] = None,
1810
1815
  ) -> AuthKitAuthenticationResponse:
1811
1816
  if (
1812
1817
  session is not None
@@ -1822,6 +1827,7 @@ class AsyncUserManagement(UserManagementModule):
1822
1827
  "user_agent": user_agent,
1823
1828
  "code_verifier": code_verifier,
1824
1829
  "session": session,
1830
+ "invitation_token": invitation_token,
1825
1831
  }
1826
1832
 
1827
1833
  return await self._authenticate_with(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: workos
3
- Version: 5.29.0
3
+ Version: 5.30.0
4
4
  Summary: WorkOS Python Client
5
5
  Home-page: https://github.com/workos-inc/workos-python
6
6
  Author: WorkOS
@@ -1,4 +1,4 @@
1
- workos/__about__.py,sha256=ig7DRAa6dkds_8J3NhtXTP12KO0T4nB-9JNj4NgC2No,406
1
+ workos/__about__.py,sha256=wNk19d_r_O-4jRisaUmBkGHmvhhsJexl53zYOD-4LzQ,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=i5znIJjfMHejpaeXKmRjFR_G5FA9-5KQYAF0VsLasgw,12217
19
19
  workos/sso.py,sha256=ZBC3y-IRmxG0jPd0BOj7s7XQkXJoTLUg1fx-h3Gfy4g,13541
20
- workos/user_management.py,sha256=PW969XfXk02E-JDliGvK45cv_4d3NsXXdQeUiUrZEZc,78126
20
+ workos/user_management.py,sha256=Pt3wof3DPaGHMuNeVS7Eo-BAj6YePAFb4F4AtlP5JQo,78458
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
@@ -92,7 +92,7 @@ workos/types/sso/connection_domain.py,sha256=kMa9GatwUl6YilMU9iiyUKXFfEUKWYub7Py
92
92
  workos/types/sso/profile.py,sha256=IWHpg2GdIvE7eAGi1RJheAqp9AozsKuGfiFc9_IteHI,1075
93
93
  workos/types/sso/sso_provider_type.py,sha256=JfO-Ta1wJP7jhtbnWKcS9tElMK_7P6AM10nY-7mM4XE,159
94
94
  workos/types/user_management/__init__.py,sha256=Z4KR9pBDb1pbCL26WxSuNLautf4mOVqntWztNr6i6QQ,361
95
- workos/types/user_management/authenticate_with_common.py,sha256=7YNj_hGzn9Vt2GVKzGfJiAFAjg0QHMJBhT_olXdikug,2062
95
+ workos/types/user_management/authenticate_with_common.py,sha256=2mGRfIgoeX5Ee7c_rxQm6rb6PHyaIBHbGFQsWAhGhY8,2101
96
96
  workos/types/user_management/authentication_response.py,sha256=2A6vU8FBEE7bXl5aULB-s80_xsR9caqC9tSr9Yq1NtE,1437
97
97
  workos/types/user_management/email_verification.py,sha256=4EqlN7qZBVTZGKaU9WdCSdgFjOMZtkYWTolE-h_hTXA,399
98
98
  workos/types/user_management/impersonator.py,sha256=_PAPYg_Q1M8wpwtnkQxuA2vtUIwvs_G30vYY91aqw8E,192
@@ -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.29.0.dist-info/LICENSE,sha256=mU--WL1JzelH2tXpKVoOlpud4cpqKSRTtdArCvYZmb4,1063
132
- workos-5.29.0.dist-info/METADATA,sha256=TazcEUR6BRrDtctstXayz4J1kIHOv6-vfifNzi2bn7U,4187
133
- workos-5.29.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
134
- workos-5.29.0.dist-info/top_level.txt,sha256=ZFskIfue1Tw-JwjyIXRvdsAl9i0DX9VbqmgICXV84Sk,7
135
- workos-5.29.0.dist-info/RECORD,,
131
+ workos-5.30.0.dist-info/LICENSE,sha256=mU--WL1JzelH2tXpKVoOlpud4cpqKSRTtdArCvYZmb4,1063
132
+ workos-5.30.0.dist-info/METADATA,sha256=Vv6f_cCMNkQQWUHakE_-Fj8laA5k1Fv04kQz6gv8Yzc,4187
133
+ workos-5.30.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
134
+ workos-5.30.0.dist-info/top_level.txt,sha256=ZFskIfue1Tw-JwjyIXRvdsAl9i0DX9VbqmgICXV84Sk,7
135
+ workos-5.30.0.dist-info/RECORD,,