Skip to content

Commit 39a9145

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.17.0
1 parent 232583d commit 39a9145

4 files changed

Lines changed: 13 additions & 30 deletions

File tree

src/auth0/management/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,8 +3192,6 @@
31923192
from .environment import Auth0Environment
31933193
from .event_streams import EventStreamsCreateRequest
31943194
from .version import __version__
3195-
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
3196-
from .token_provider import AsyncTokenProvider, TokenProvider
31973195
_dynamic_imports: typing.Dict[str, str] = {
31983196
"Action": ".types",
31993197
"ActionBase": ".types",
@@ -3254,8 +3252,6 @@
32543252
"AssociateOrganizationClientGrantResponseContent": ".types",
32553253
"AsyncApprovalNotificationsChannelsEnum": ".types",
32563254
"AsyncAuth0": ".client",
3257-
"AsyncManagementClient": ".management_client",
3258-
"AsyncTokenProvider": ".token_provider",
32593255
"AttackProtectionCaptchaArkoseResponseContent": ".types",
32603256
"AttackProtectionCaptchaAuthChallengeRequest": ".types",
32613257
"AttackProtectionCaptchaAuthChallengeResponseContent": ".types",
@@ -4228,7 +4224,6 @@
42284224
"CspReportingEndpoints": ".types",
42294225
"CspReportingInfrastructure": ".types",
42304226
"CustomDomain": ".types",
4231-
"CustomDomainHeader": ".management_client",
42324227
"CustomDomainCustomClientIpHeader": ".types",
42334228
"CustomDomainCustomClientIpHeaderEnum": ".types",
42344229
"CustomDomainProvisioningTypeEnum": ".types",
@@ -5879,7 +5874,6 @@
58795874
"LogStreamSumoEnum": ".types",
58805875
"LogStreamSumoResponseSchema": ".types",
58815876
"LogStreamSumoSink": ".types",
5882-
"ManagementClient": ".management_client",
58835877
"MdlPresentationProperties": ".types",
58845878
"MdlPresentationRequest": ".types",
58855879
"MdlPresentationRequestProperties": ".types",
@@ -6138,7 +6132,6 @@
61386132
"TestEventDataContent": ".types",
61396133
"TokenExchangeProfileResponseContent": ".types",
61406134
"TokenExchangeProfileTypeEnum": ".types",
6141-
"TokenProvider": ".token_provider",
61426135
"TokenQuota": ".types",
61436136
"TokenQuotaClientCredentials": ".types",
61446137
"TokenQuotaConfiguration": ".types",
@@ -6466,8 +6459,6 @@ def __dir__():
64666459
"AssociateOrganizationClientGrantResponseContent",
64676460
"AsyncApprovalNotificationsChannelsEnum",
64686461
"AsyncAuth0",
6469-
"AsyncManagementClient",
6470-
"AsyncTokenProvider",
64716462
"AttackProtectionCaptchaArkoseResponseContent",
64726463
"AttackProtectionCaptchaAuthChallengeRequest",
64736464
"AttackProtectionCaptchaAuthChallengeResponseContent",
@@ -7440,7 +7431,6 @@ def __dir__():
74407431
"CspReportingEndpoints",
74417432
"CspReportingInfrastructure",
74427433
"CustomDomain",
7443-
"CustomDomainHeader",
74447434
"CustomDomainCustomClientIpHeader",
74457435
"CustomDomainCustomClientIpHeaderEnum",
74467436
"CustomDomainProvisioningTypeEnum",
@@ -9091,7 +9081,6 @@ def __dir__():
90919081
"LogStreamSumoEnum",
90929082
"LogStreamSumoResponseSchema",
90939083
"LogStreamSumoSink",
9094-
"ManagementClient",
90959084
"MdlPresentationProperties",
90969085
"MdlPresentationRequest",
90979086
"MdlPresentationRequestProperties",
@@ -9350,7 +9339,6 @@ def __dir__():
93509339
"TestEventDataContent",
93519340
"TokenExchangeProfileResponseContent",
93529341
"TokenExchangeProfileTypeEnum",
9353-
"TokenProvider",
93549342
"TokenQuota",
93559343
"TokenQuotaClientCredentials",
93569344
"TokenQuotaConfiguration",

src/auth0/management/core/client_wrapper.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# This file was auto-generated by Fern from our API Definition.
2-
# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning
32

4-
import base64
5-
import platform
6-
import sys
73
import typing
8-
from json import dumps
94

105
import httpx
116
from .http_client import AsyncHttpClient, HttpClient
@@ -35,18 +30,15 @@ def __init__(
3530
self._logging = logging
3631

3732
def get_headers(self) -> typing.Dict[str, str]:
38-
py_version = platform.python_version()
39-
version = sys.modules["auth0"].__version__
40-
41-
auth0_client = dumps({
42-
"name": "auth0-python",
43-
"version": version,
44-
"env": {"python": py_version}
45-
}).encode("utf-8")
33+
import platform
4634

4735
headers: typing.Dict[str, str] = {
48-
"User-Agent": f"Python/{py_version}",
49-
"Auth0-Client": base64.b64encode(auth0_client).decode(),
36+
"User-Agent": "auth0-python/5.8.0",
37+
"X-Fern-Language": "Python",
38+
"X-Fern-Runtime": f"python/{platform.python_version()}",
39+
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
40+
"X-Fern-SDK-Name": "auth0-python",
41+
"X-Fern-SDK-Version": "5.8.0",
5042
**(self.get_custom_headers() or {}),
5143
}
5244
headers["Authorization"] = f"Bearer {self._get_token()}"

src/auth0/management/types/network_acl_match.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
class NetworkAclMatch(UniversalBaseModel):
1616
asns: typing.Optional[typing.List[int]] = None
17+
auth_0_managed: typing_extensions.Annotated[
18+
typing.Optional[typing.List[str]], FieldMetadata(alias="auth0_managed"), pydantic.Field(alias="auth0_managed")
19+
] = None
1720
geo_country_codes: typing.Optional[typing.List[str]] = None
1821
geo_subdivision_codes: typing.Optional[typing.List[str]] = None
1922
ipv_4_cidrs: typing_extensions.Annotated[

wiremock/wiremock-mappings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3406,7 +3406,7 @@
34063406
},
34073407
"response": {
34083408
"status": 200,
3409-
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
3409+
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
34103410
"headers": {
34113411
"Content-Type": "application/json"
34123412
}
@@ -3442,7 +3442,7 @@
34423442
},
34433443
"response": {
34443444
"status": 200,
3445-
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
3445+
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
34463446
"headers": {
34473447
"Content-Type": "application/json"
34483448
}
@@ -3514,7 +3514,7 @@
35143514
},
35153515
"response": {
35163516
"status": 200,
3517-
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
3517+
"body": "{\n \"id\": \"id\",\n \"description\": \"description\",\n \"active\": true,\n \"priority\": 1.1,\n \"rule\": {\n \"action\": {\n \"block\": true,\n \"allow\": true,\n \"log\": true,\n \"redirect\": true,\n \"redirect_uri\": \"redirect_uri\"\n },\n \"match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"not_match\": {\n \"asns\": [\n 1\n ],\n \"auth0_managed\": [\n \"auth0_managed\"\n ],\n \"geo_country_codes\": [\n \"geo_country_codes\"\n ],\n \"geo_subdivision_codes\": [\n \"geo_subdivision_codes\"\n ],\n \"ipv4_cidrs\": [\n \"ipv4_cidrs\"\n ],\n \"ipv6_cidrs\": [\n \"ipv6_cidrs\"\n ],\n \"ja3_fingerprints\": [\n \"ja3_fingerprints\"\n ],\n \"ja4_fingerprints\": [\n \"ja4_fingerprints\"\n ],\n \"user_agents\": [\n \"user_agents\"\n ],\n \"hostnames\": [\n \"hostnames\"\n ],\n \"connecting_ipv4_cidrs\": [\n \"connecting_ipv4_cidrs\"\n ],\n \"connecting_ipv6_cidrs\": [\n \"connecting_ipv6_cidrs\"\n ]\n },\n \"scope\": \"management\"\n },\n \"created_at\": \"created_at\",\n \"updated_at\": \"updated_at\"\n}",
35183518
"headers": {
35193519
"Content-Type": "application/json"
35203520
}

0 commit comments

Comments
 (0)