22
33from __future__ import annotations
44
5- from typing import TYPE_CHECKING , Any , Dict , Optional , Union
5+ from typing import TYPE_CHECKING , Any , Dict , List , Optional , Union
66
77if TYPE_CHECKING :
88 from .._client import AsyncWorkOSClient , WorkOSClient
@@ -26,6 +26,7 @@ def generate_link(
2626 success_url : Optional [str ] = None ,
2727 intent : Optional [Union [GenerateLinkIntent , str ]] = None ,
2828 intent_options : Optional [IntentOptions ] = None ,
29+ admin_emails : Optional [List [str ]] = None ,
2930 request_options : Optional [RequestOptions ] = None ,
3031 ) -> PortalLinkResponse :
3132 """Generate a Portal Link
@@ -45,6 +46,7 @@ def generate_link(
4546 - `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates
4647 - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
4748 intent_options: Options to configure the Admin Portal based on the intent.
49+ admin_emails: The email addresses of the IT admins to grant access to the Admin Portal for the given organization. Accepts up to 20 emails.
4850 request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.
4951
5052 Returns:
@@ -69,6 +71,7 @@ def generate_link(
6971 "intent_options" : intent_options .to_dict ()
7072 if intent_options is not None
7173 else None ,
74+ "admin_emails" : admin_emails ,
7275 }.items ()
7376 if v is not None
7477 }
@@ -95,6 +98,7 @@ async def generate_link(
9598 success_url : Optional [str ] = None ,
9699 intent : Optional [Union [GenerateLinkIntent , str ]] = None ,
97100 intent_options : Optional [IntentOptions ] = None ,
101+ admin_emails : Optional [List [str ]] = None ,
98102 request_options : Optional [RequestOptions ] = None ,
99103 ) -> PortalLinkResponse :
100104 """Generate a Portal Link
@@ -114,6 +118,7 @@ async def generate_link(
114118 - `certificate_renewal` - Launch Admin Portal for renewing SAML Certificates
115119 - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
116120 intent_options: Options to configure the Admin Portal based on the intent.
121+ admin_emails: The email addresses of the IT admins to grant access to the Admin Portal for the given organization. Accepts up to 20 emails.
117122 request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.
118123
119124 Returns:
@@ -138,6 +143,7 @@ async def generate_link(
138143 "intent_options" : intent_options .to_dict ()
139144 if intent_options is not None
140145 else None ,
146+ "admin_emails" : admin_emails ,
141147 }.items ()
142148 if v is not None
143149 }
0 commit comments