diff --git a/.fern/replay.lock b/.fern/replay.lock index 7c705d13..e6b5e21d 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -30,14 +30,20 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.26.0 -current_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a + - commit_sha: 409145489efe540747e53517ece13087ed7a1fb8 + tree_hash: e822049a6625f20ef7c1cfcc775f7ced9b541947 + timestamp: 2026-11-24T05:40:27.276Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.26.0 +current_generation: 409145489efe540747e53517ece13087ed7a1fb8 patches: - id: patch-3bac717a content_hash: sha256:f4ad3ba43b0430fa3dfb54bfcf588cb697efe8185eb30350f9955849f831083f original_commit: 3bac717acae703868197afb75fc26d296957a4fd original_message: Restore Auth0 telemetry headers and keep UPGRADING.md (#900) original_author: Kunal Dawar <35455566+developerkunal@users.noreply.github.com> - base_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a + base_generation: 409145489efe540747e53517ece13087ed7a1fb8 files: - src/auth0/management/core/client_wrapper.py patch_content: | diff --git a/src/auth0/management/__init__.py b/src/auth0/management/__init__.py index 181237c9..0624657a 100644 --- a/src/auth0/management/__init__.py +++ b/src/auth0/management/__init__.py @@ -3249,6 +3249,7 @@ GetUserResponseContent, GetVariationResponseContent, GetVerifiableCredentialTemplateResponseContent, + GetWebtaskResponseContent, GoogleAccountLinkingConfiguration, GoogleAccountLinkingConfigurationCreate, GoogleAccountLinkingConfigurationOrNull, @@ -4016,6 +4017,13 @@ VerificationMethodEnum, VerifyCustomDomainResponseContent, VerifyEmailTicketResponseContent, + Webtask, + WebtaskContainer, + WebtaskName, + WebtaskResponseMeta, + WebtaskResponseSecrets, + WebtaskToken, + WebtaskUrl, X509CertificateCredential, X509CertificateCredentialTypeEnum, XssProtectionConfig, @@ -7352,6 +7360,7 @@ "GetUserResponseContent": ".types", "GetVariationResponseContent": ".types", "GetVerifiableCredentialTemplateResponseContent": ".types", + "GetWebtaskResponseContent": ".types", "GoneError": ".errors", "GoogleAccountLinkingConfiguration": ".types", "GoogleAccountLinkingConfigurationCreate": ".types", @@ -8130,6 +8139,13 @@ "VerificationMethodEnum": ".types", "VerifyCustomDomainResponseContent": ".types", "VerifyEmailTicketResponseContent": ".types", + "Webtask": ".types", + "WebtaskContainer": ".types", + "WebtaskName": ".types", + "WebtaskResponseMeta": ".types", + "WebtaskResponseSecrets": ".types", + "WebtaskToken": ".types", + "WebtaskUrl": ".types", "X509CertificateCredential": ".types", "X509CertificateCredentialTypeEnum": ".types", "XssProtectionConfig": ".types", @@ -11465,6 +11481,7 @@ def __dir__(): "GetUserResponseContent", "GetVariationResponseContent", "GetVerifiableCredentialTemplateResponseContent", + "GetWebtaskResponseContent", "GoneError", "GoogleAccountLinkingConfiguration", "GoogleAccountLinkingConfigurationCreate", @@ -12243,6 +12260,13 @@ def __dir__(): "VerificationMethodEnum", "VerifyCustomDomainResponseContent", "VerifyEmailTicketResponseContent", + "Webtask", + "WebtaskContainer", + "WebtaskName", + "WebtaskResponseMeta", + "WebtaskResponseSecrets", + "WebtaskToken", + "WebtaskUrl", "X509CertificateCredential", "X509CertificateCredentialTypeEnum", "XssProtectionConfig", diff --git a/src/auth0/management/types/__init__.py b/src/auth0/management/types/__init__.py index 49a0ee06..752232fa 100644 --- a/src/auth0/management/types/__init__.py +++ b/src/auth0/management/types/__init__.py @@ -5708,6 +5708,7 @@ from .get_user_response_content import GetUserResponseContent from .get_variation_response_content import GetVariationResponseContent from .get_verifiable_credential_template_response_content import GetVerifiableCredentialTemplateResponseContent + from .get_webtask_response_content import GetWebtaskResponseContent from .google_account_linking_configuration import GoogleAccountLinkingConfiguration from .google_account_linking_configuration_create import GoogleAccountLinkingConfigurationCreate from .google_account_linking_configuration_or_null import GoogleAccountLinkingConfigurationOrNull @@ -6609,6 +6610,13 @@ from .verification_method_enum import VerificationMethodEnum from .verify_custom_domain_response_content import VerifyCustomDomainResponseContent from .verify_email_ticket_response_content import VerifyEmailTicketResponseContent + from .webtask import Webtask + from .webtask_container import WebtaskContainer + from .webtask_name import WebtaskName + from .webtask_response_meta import WebtaskResponseMeta + from .webtask_response_secrets import WebtaskResponseSecrets + from .webtask_token import WebtaskToken + from .webtask_url import WebtaskUrl from .x_509_certificate_credential import X509CertificateCredential from .x_509_certificate_credential_type_enum import X509CertificateCredentialTypeEnum from .xss_protection_config import XssProtectionConfig @@ -9856,6 +9864,7 @@ "GetUserResponseContent": ".get_user_response_content", "GetVariationResponseContent": ".get_variation_response_content", "GetVerifiableCredentialTemplateResponseContent": ".get_verifiable_credential_template_response_content", + "GetWebtaskResponseContent": ".get_webtask_response_content", "GoogleAccountLinkingConfiguration": ".google_account_linking_configuration", "GoogleAccountLinkingConfigurationCreate": ".google_account_linking_configuration_create", "GoogleAccountLinkingConfigurationOrNull": ".google_account_linking_configuration_or_null", @@ -10623,6 +10632,13 @@ "VerificationMethodEnum": ".verification_method_enum", "VerifyCustomDomainResponseContent": ".verify_custom_domain_response_content", "VerifyEmailTicketResponseContent": ".verify_email_ticket_response_content", + "Webtask": ".webtask", + "WebtaskContainer": ".webtask_container", + "WebtaskName": ".webtask_name", + "WebtaskResponseMeta": ".webtask_response_meta", + "WebtaskResponseSecrets": ".webtask_response_secrets", + "WebtaskToken": ".webtask_token", + "WebtaskUrl": ".webtask_url", "X509CertificateCredential": ".x_509_certificate_credential", "X509CertificateCredentialTypeEnum": ".x_509_certificate_credential_type_enum", "XssProtectionConfig": ".xss_protection_config", @@ -13894,6 +13910,7 @@ def __dir__(): "GetUserResponseContent", "GetVariationResponseContent", "GetVerifiableCredentialTemplateResponseContent", + "GetWebtaskResponseContent", "GoogleAccountLinkingConfiguration", "GoogleAccountLinkingConfigurationCreate", "GoogleAccountLinkingConfigurationOrNull", @@ -14661,6 +14678,13 @@ def __dir__(): "VerificationMethodEnum", "VerifyCustomDomainResponseContent", "VerifyEmailTicketResponseContent", + "Webtask", + "WebtaskContainer", + "WebtaskName", + "WebtaskResponseMeta", + "WebtaskResponseSecrets", + "WebtaskToken", + "WebtaskUrl", "X509CertificateCredential", "X509CertificateCredentialTypeEnum", "XssProtectionConfig", diff --git a/src/auth0/management/types/associate_organization_client_grant_response_content.py b/src/auth0/management/types/associate_organization_client_grant_response_content.py index da4f418d..69ae37d4 100644 --- a/src/auth0/management/types/associate_organization_client_grant_response_content.py +++ b/src/auth0/management/types/associate_organization_client_grant_response_content.py @@ -8,7 +8,7 @@ class AssociateOrganizationClientGrantResponseContent(UniversalBaseModel): - id: typing.Optional[str] = pydantic.Field(default=None) + grant_id: typing.Optional[str] = pydantic.Field(default=None) """ ID of the client grant. """ diff --git a/src/auth0/management/types/get_webtask_response_content.py b/src/auth0/management/types/get_webtask_response_content.py new file mode 100644 index 00000000..1bd4c778 --- /dev/null +++ b/src/auth0/management/types/get_webtask_response_content.py @@ -0,0 +1,30 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2 +from .webtask import Webtask +from .webtask_response_secrets import WebtaskResponseSecrets + + +class GetWebtaskResponseContent(Webtask): + """ + A webtask in the tenant's container, as returned by the webtask platform's GET. Code and decrypted secrets are only included when requested. + """ + + code: typing.Optional[str] = pydantic.Field(default=None) + """ + JavaScript code of the webtask. Only returned with fetch_code=true. + """ + + secrets: typing.Optional[WebtaskResponseSecrets] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/tenant_settings_flags.py b/src/auth0/management/types/tenant_settings_flags.py index 515f92a7..926da0d9 100644 --- a/src/auth0/management/types/tenant_settings_flags.py +++ b/src/auth0/management/types/tenant_settings_flags.py @@ -54,7 +54,7 @@ class TenantSettingsFlags(UniversalBaseModel): allow_legacy_delegation_grant_types: typing.Optional[bool] = pydantic.Field(default=None) """ - If enabled, clients are able to add legacy delegation grants. + DEPRECATED property. If enabled, first-party applications can add the legacy delegation grant types. It does not enable the /delegation endpoint. """ allow_legacy_ro_grant_types: typing.Optional[bool] = pydantic.Field(default=None) diff --git a/src/auth0/management/types/webtask.py b/src/auth0/management/types/webtask.py new file mode 100644 index 00000000..9e78bad0 --- /dev/null +++ b/src/auth0/management/types/webtask.py @@ -0,0 +1,32 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from .webtask_container import WebtaskContainer +from .webtask_name import WebtaskName +from .webtask_response_meta import WebtaskResponseMeta +from .webtask_token import WebtaskToken +from .webtask_url import WebtaskUrl + + +class Webtask(UniversalBaseModel): + """ + A webtask in the tenant's container, as returned by the webtask platform. + """ + + container: WebtaskContainer + name: WebtaskName + token: typing.Optional[WebtaskToken] = None + meta: WebtaskResponseMeta + webtask_url: typing.Optional[WebtaskUrl] = None + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/auth0/management/types/webtask_container.py b/src/auth0/management/types/webtask_container.py new file mode 100644 index 00000000..5d7be482 --- /dev/null +++ b/src/auth0/management/types/webtask_container.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +WebtaskContainer = str +""" +Webtask container of the tenant. Hooks run in the same container. +""" diff --git a/src/auth0/management/types/webtask_name.py b/src/auth0/management/types/webtask_name.py new file mode 100644 index 00000000..fa8c3b67 --- /dev/null +++ b/src/auth0/management/types/webtask_name.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +WebtaskName = str +""" +Name of the webtask. It is part of the webtask URL. +""" diff --git a/src/auth0/management/types/webtask_response_meta.py b/src/auth0/management/types/webtask_response_meta.py new file mode 100644 index 00000000..9e3ade0f --- /dev/null +++ b/src/auth0/management/types/webtask_response_meta.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WebtaskResponseMeta = typing.Dict[str, str] +""" +Metadata of the webtask, as returned by the webtask platform. Values have no length limit, since webtasks written by other tools are returned too. +""" diff --git a/src/auth0/management/types/webtask_response_secrets.py b/src/auth0/management/types/webtask_response_secrets.py new file mode 100644 index 00000000..d0df5423 --- /dev/null +++ b/src/auth0/management/types/webtask_response_secrets.py @@ -0,0 +1,8 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +WebtaskResponseSecrets = typing.Dict[str, str] +""" +Secrets of the webtask, decrypted. Only returned by GET /api/v2/webtasks/{name} with decrypt=true. Values have no length limit, since webtasks written by other tools are returned too. +""" diff --git a/src/auth0/management/types/webtask_token.py b/src/auth0/management/types/webtask_token.py new file mode 100644 index 00000000..80a653b3 --- /dev/null +++ b/src/auth0/management/types/webtask_token.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +WebtaskToken = str +""" +Webtask token issued by the webtask platform for this webtask. +""" diff --git a/src/auth0/management/types/webtask_url.py b/src/auth0/management/types/webtask_url.py new file mode 100644 index 00000000..e0be6b9b --- /dev/null +++ b/src/auth0/management/types/webtask_url.py @@ -0,0 +1,6 @@ +# This file was auto-generated by Fern from our API Definition. + +WebtaskUrl = str +""" +URL the webtask runs at. +""" diff --git a/wiremock/wiremock-mappings.json b/wiremock/wiremock-mappings.json index 6f06cd95..a5b4b255 100644 --- a/wiremock/wiremock-mappings.json +++ b/wiremock/wiremock-mappings.json @@ -14174,7 +14174,7 @@ }, "response": { "status": 201, - "body": "{\n \"id\": \"id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true\n}", + "body": "{\n \"grant_id\": \"grant_id\",\n \"client_id\": \"client_id\",\n \"audience\": \"audience\",\n \"scope\": [\n \"scope\"\n ],\n \"organization_usage\": \"deny\",\n \"allow_any_organization\": true\n}", "headers": { "Content-Type": "application/json" }