File size: 9,334 Bytes
9410704 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | # This file was auto-generated by Fern from our API Definition.
# isort: skip_file
import typing
from importlib import import_module
if typing.TYPE_CHECKING:
from .resources import BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole
from . import analytics, audit_logs, auth_connections, groups, invites, members, resources, usage
from .auth_connections import (
AuthConnectionsCreateRequestBody,
AuthConnectionsCreateRequestBody_BasicAuth,
AuthConnectionsCreateRequestBody_BearerAuth,
AuthConnectionsCreateRequestBody_CustomHeaderAuth,
AuthConnectionsCreateRequestBody_Mtls,
AuthConnectionsCreateRequestBody_Oauth2ClientCredentials,
AuthConnectionsCreateRequestBody_Oauth2Jwt,
AuthConnectionsCreateRequestBody_PrivateKeyJwt,
AuthConnectionsCreateResponse,
AuthConnectionsCreateResponse_ApiIntegrationOauth2AuthCode,
AuthConnectionsCreateResponse_ApiIntegrationOauth2CustomApp,
AuthConnectionsCreateResponse_BasicAuth,
AuthConnectionsCreateResponse_BearerAuth,
AuthConnectionsCreateResponse_CustomHeaderAuth,
AuthConnectionsCreateResponse_Mtls,
AuthConnectionsCreateResponse_Oauth2ClientCredentials,
AuthConnectionsCreateResponse_Oauth2Jwt,
AuthConnectionsCreateResponse_PrivateKeyJwt,
AuthConnectionsCreateResponse_RefreshTokenAuth,
AuthConnectionsCreateResponse_SlackBotAuth,
AuthConnectionsCreateResponse_UrlSecret,
AuthConnectionsCreateResponse_WhatsappAuth,
AuthConnectionsUpdateRequestBody,
AuthConnectionsUpdateRequestBody_BasicAuth,
AuthConnectionsUpdateRequestBody_BearerAuth,
AuthConnectionsUpdateRequestBody_Oauth2ClientCredentials,
AuthConnectionsUpdateRequestBody_Oauth2Jwt,
AuthConnectionsUpdateResponse,
AuthConnectionsUpdateResponse_ApiIntegrationOauth2AuthCode,
AuthConnectionsUpdateResponse_ApiIntegrationOauth2CustomApp,
AuthConnectionsUpdateResponse_BasicAuth,
AuthConnectionsUpdateResponse_BearerAuth,
AuthConnectionsUpdateResponse_CustomHeaderAuth,
AuthConnectionsUpdateResponse_Mtls,
AuthConnectionsUpdateResponse_Oauth2ClientCredentials,
AuthConnectionsUpdateResponse_Oauth2Jwt,
AuthConnectionsUpdateResponse_PrivateKeyJwt,
AuthConnectionsUpdateResponse_RefreshTokenAuth,
AuthConnectionsUpdateResponse_SlackBotAuth,
AuthConnectionsUpdateResponse_UrlSecret,
AuthConnectionsUpdateResponse_WhatsappAuth,
)
from .usage import BodyGetWorkspaceUsageV1WorkspaceAnalyticsQueryUsageByProductOverTimePostGroupByItem
_dynamic_imports: typing.Dict[str, str] = {
"AuthConnectionsCreateRequestBody": ".auth_connections",
"AuthConnectionsCreateRequestBody_BasicAuth": ".auth_connections",
"AuthConnectionsCreateRequestBody_BearerAuth": ".auth_connections",
"AuthConnectionsCreateRequestBody_CustomHeaderAuth": ".auth_connections",
"AuthConnectionsCreateRequestBody_Mtls": ".auth_connections",
"AuthConnectionsCreateRequestBody_Oauth2ClientCredentials": ".auth_connections",
"AuthConnectionsCreateRequestBody_Oauth2Jwt": ".auth_connections",
"AuthConnectionsCreateRequestBody_PrivateKeyJwt": ".auth_connections",
"AuthConnectionsCreateResponse": ".auth_connections",
"AuthConnectionsCreateResponse_ApiIntegrationOauth2AuthCode": ".auth_connections",
"AuthConnectionsCreateResponse_ApiIntegrationOauth2CustomApp": ".auth_connections",
"AuthConnectionsCreateResponse_BasicAuth": ".auth_connections",
"AuthConnectionsCreateResponse_BearerAuth": ".auth_connections",
"AuthConnectionsCreateResponse_CustomHeaderAuth": ".auth_connections",
"AuthConnectionsCreateResponse_Mtls": ".auth_connections",
"AuthConnectionsCreateResponse_Oauth2ClientCredentials": ".auth_connections",
"AuthConnectionsCreateResponse_Oauth2Jwt": ".auth_connections",
"AuthConnectionsCreateResponse_PrivateKeyJwt": ".auth_connections",
"AuthConnectionsCreateResponse_RefreshTokenAuth": ".auth_connections",
"AuthConnectionsCreateResponse_SlackBotAuth": ".auth_connections",
"AuthConnectionsCreateResponse_UrlSecret": ".auth_connections",
"AuthConnectionsCreateResponse_WhatsappAuth": ".auth_connections",
"AuthConnectionsUpdateRequestBody": ".auth_connections",
"AuthConnectionsUpdateRequestBody_BasicAuth": ".auth_connections",
"AuthConnectionsUpdateRequestBody_BearerAuth": ".auth_connections",
"AuthConnectionsUpdateRequestBody_Oauth2ClientCredentials": ".auth_connections",
"AuthConnectionsUpdateRequestBody_Oauth2Jwt": ".auth_connections",
"AuthConnectionsUpdateResponse": ".auth_connections",
"AuthConnectionsUpdateResponse_ApiIntegrationOauth2AuthCode": ".auth_connections",
"AuthConnectionsUpdateResponse_ApiIntegrationOauth2CustomApp": ".auth_connections",
"AuthConnectionsUpdateResponse_BasicAuth": ".auth_connections",
"AuthConnectionsUpdateResponse_BearerAuth": ".auth_connections",
"AuthConnectionsUpdateResponse_CustomHeaderAuth": ".auth_connections",
"AuthConnectionsUpdateResponse_Mtls": ".auth_connections",
"AuthConnectionsUpdateResponse_Oauth2ClientCredentials": ".auth_connections",
"AuthConnectionsUpdateResponse_Oauth2Jwt": ".auth_connections",
"AuthConnectionsUpdateResponse_PrivateKeyJwt": ".auth_connections",
"AuthConnectionsUpdateResponse_RefreshTokenAuth": ".auth_connections",
"AuthConnectionsUpdateResponse_SlackBotAuth": ".auth_connections",
"AuthConnectionsUpdateResponse_UrlSecret": ".auth_connections",
"AuthConnectionsUpdateResponse_WhatsappAuth": ".auth_connections",
"BodyGetWorkspaceUsageV1WorkspaceAnalyticsQueryUsageByProductOverTimePostGroupByItem": ".usage",
"BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole": ".resources",
"analytics": ".analytics",
"audit_logs": ".audit_logs",
"auth_connections": ".auth_connections",
"groups": ".groups",
"invites": ".invites",
"members": ".members",
"resources": ".resources",
"usage": ".usage",
}
def __getattr__(attr_name: str) -> typing.Any:
module_name = _dynamic_imports.get(attr_name)
if module_name is None:
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
try:
module = import_module(module_name, __package__)
if module_name == f".{attr_name}":
return module
else:
return getattr(module, attr_name)
except ImportError as e:
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
except AttributeError as e:
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
def __dir__():
lazy_attrs = list(_dynamic_imports.keys())
return sorted(lazy_attrs)
__all__ = [
"AuthConnectionsCreateRequestBody",
"AuthConnectionsCreateRequestBody_BasicAuth",
"AuthConnectionsCreateRequestBody_BearerAuth",
"AuthConnectionsCreateRequestBody_CustomHeaderAuth",
"AuthConnectionsCreateRequestBody_Mtls",
"AuthConnectionsCreateRequestBody_Oauth2ClientCredentials",
"AuthConnectionsCreateRequestBody_Oauth2Jwt",
"AuthConnectionsCreateRequestBody_PrivateKeyJwt",
"AuthConnectionsCreateResponse",
"AuthConnectionsCreateResponse_ApiIntegrationOauth2AuthCode",
"AuthConnectionsCreateResponse_ApiIntegrationOauth2CustomApp",
"AuthConnectionsCreateResponse_BasicAuth",
"AuthConnectionsCreateResponse_BearerAuth",
"AuthConnectionsCreateResponse_CustomHeaderAuth",
"AuthConnectionsCreateResponse_Mtls",
"AuthConnectionsCreateResponse_Oauth2ClientCredentials",
"AuthConnectionsCreateResponse_Oauth2Jwt",
"AuthConnectionsCreateResponse_PrivateKeyJwt",
"AuthConnectionsCreateResponse_RefreshTokenAuth",
"AuthConnectionsCreateResponse_SlackBotAuth",
"AuthConnectionsCreateResponse_UrlSecret",
"AuthConnectionsCreateResponse_WhatsappAuth",
"AuthConnectionsUpdateRequestBody",
"AuthConnectionsUpdateRequestBody_BasicAuth",
"AuthConnectionsUpdateRequestBody_BearerAuth",
"AuthConnectionsUpdateRequestBody_Oauth2ClientCredentials",
"AuthConnectionsUpdateRequestBody_Oauth2Jwt",
"AuthConnectionsUpdateResponse",
"AuthConnectionsUpdateResponse_ApiIntegrationOauth2AuthCode",
"AuthConnectionsUpdateResponse_ApiIntegrationOauth2CustomApp",
"AuthConnectionsUpdateResponse_BasicAuth",
"AuthConnectionsUpdateResponse_BearerAuth",
"AuthConnectionsUpdateResponse_CustomHeaderAuth",
"AuthConnectionsUpdateResponse_Mtls",
"AuthConnectionsUpdateResponse_Oauth2ClientCredentials",
"AuthConnectionsUpdateResponse_Oauth2Jwt",
"AuthConnectionsUpdateResponse_PrivateKeyJwt",
"AuthConnectionsUpdateResponse_RefreshTokenAuth",
"AuthConnectionsUpdateResponse_SlackBotAuth",
"AuthConnectionsUpdateResponse_UrlSecret",
"AuthConnectionsUpdateResponse_WhatsappAuth",
"BodyGetWorkspaceUsageV1WorkspaceAnalyticsQueryUsageByProductOverTimePostGroupByItem",
"BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole",
"analytics",
"audit_logs",
"auth_connections",
"groups",
"invites",
"members",
"resources",
"usage",
]
|