Repository navigation
feat: remove CAPTCHA policies (Beta); sync stable API changes (client profiles, consent signing keys, oidc_support, otp_settings) - #1435
Open
fern-api[bot] wants to merge 2 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-typescript-sdk: 3.72.5
Patches applied (5): - patch-066ff9e0: docs: add v6 migration guide for breaking changes in v6.0.0 (#1368) - patch-d8faf7a2: docs: update v6 migration guide with federatedConnectionsTokensets and federated_connections_access_tokens breaking changes (#1370) - patch-0f7baa6f: fix: auto-stamp SDK_VERSION from package.json during build (#1382) - patch-b942f5d6: docs: add Authentication API migration guide (auth0-auth-js / auth0-server-js) (#1395) - patch-842d2f51: docs: add v7 migration guide (v6 → v7) (#1396) Patches with unresolved conflicts (12): - patch-490e5634: feat(management): add sub-package exports and management auth helper (#1373) - patch-74170bb0: Release v6.1.0 (#1381) - patch-4fcb39a4: Release v6.2.0 (#1389) - patch-f9d64134: Release v6.3.0 (#1393) - patch-4d450aa4: Release v6.4.0 (#1401) - patch-d4614ec0: Release v7.0.0 (#1402) - patch-e1e90b89: Release v7.1.0 (#1405) - patch-567042f4: Release v7.2.0 (#1409) - patch-0133186f: Release v7.4.0-beta.1 - patch-d90bbd5e: fix(ci): stop beta release from deleting package.json; start betas at .0 (#1417) - patch-38e7f36e: Release v7.4.0-beta.2 - patch-ec177a43: Release v7.5.0-beta.0 Run `fern-replay resolve` to apply these customizations.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## beta #1435 +/- ##
==========================================
- Coverage 89.39% 89.38% -0.01%
==========================================
Files 446 446
Lines 22022 22130 +108
Branches 10531 10938 +407
==========================================
+ Hits 19686 19782 +96
- Misses 2336 2348 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
2 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Regenerates the Management API SDK on the
betatrack from the stable spec plus the beta-only spec files, with Fern generator 3.72.5 (unchanged from the currentbeta).This release:
betaup to date with the stable API surface from v7.5.0, v7.6.0 and the current stable regeneration (feat: add user consent signing keys, client oidc_support, connection otp_settings, and resource server type #1436):oidc_supporton Client responses;otp_settingson database connections;type;passkeyGuardian factor;statusfilter.After this PR, the names of
beta's resources, public methods, exported types, request types and sub-package exports match stable. No beta-only endpoints remain.The core runtime (
core/,errors/,BaseClient.ts) is unchanged.betastays on the 3.72.5 runtime, so it does not yet include stable's 3.107.x runtime changes.Beta
client.attackProtection.captchaPolicies(list,create,get,update,deleteon/attack-protection/captcha/policies) is removed, along with theCaptchaPoliciesClientclass and theManagement.attackProtection.captchaPoliciesnamespace export.AttackProtectionCaptchaPolicy,AttackProtectionCaptchaPolicyMatch,AttackProtectionCaptchaPolicyAction,AttackProtectionCaptchaPolicyActionInputListAttackProtectionCaptchaPoliciesResponseContent,CaptchaActiveProviderEnumCaptchaPolicyActionArkose/CaptchaPolicyActionArkoseInput,CaptchaPolicyActionFriendlyCaptcha/CaptchaPolicyActionFriendlyCaptchaInput,CaptchaPolicyActionHcaptcha/CaptchaPolicyActionHcaptchaInput,CaptchaPolicyActionRecaptchaEnterprise/CaptchaPolicyActionRecaptchaEnterpriseInput,CaptchaPolicyActionRecaptchaV2/CaptchaPolicyActionRecaptchaV2Input,CaptchaPolicyActionAuthChallenge,CaptchaPolicyActionSimpleCaptchaCreateAttackProtectionCaptchaPolicyRequestContentandUpdateAttackProtectionCaptchaPolicyRequestContent.auth0/attackProtection/captchaPolicies.Stable (mirrored from master)
beta; stable since v7.5.0, feat: add client profiles, attack protection CAPTCHA policies, client grants search, and CIMD external metadata status / dynamic registration #1425)client.clientProfileswith five methods:list({ from, take }):GET /client-profiles, checkpoint pagination,takedefaults to 50;create(...):POST /client-profiles;name,client_configurationandapply_policyare required;get(id):GET /client-profiles/{id};update(id, ...):PATCH /client-profiles/{id};delete(id):DELETE /client-profiles/{id}.ClientProfile,ClientProfileClientConfigurationandClientProfileApplyPolicy;ClientProfileId,ClientProfileNameandClientProfileDescription;ClientProfileClientConfigurationRefreshToken, withtoken_lifetime,idle_token_lifetimeandleeway(ClientProfileRefreshTokenTokenLifetime,ClientProfileRefreshTokenIdleTokenLifetime,ClientProfileRefreshTokenLeeway, each{ default_value? });organization_usage,organization_require_behavior,organization_discovery_methodsandrequire_proof_of_possessionsettings, with typed enums;ListClientProfilesPaginatedResponseContent;CreateClientProfileRequestContent,UpdateClientProfileRequestContentandListClientProfilesRequestParameters.apply_policyusesClientProfileApplyPolicyExternalMetadataTypeEnum(cimd) andClientProfileApplyPolicyExternalMetadataCreatedByEnum(client).409 Conflict.OauthScopegainscreate:client_profiles,read:client_profiles,update:client_profilesanddelete:client_profiles.auth0/clientProfiles.external_metadata_status?: ClientExternalMetadataStatusEnum(available|unavailable) onClient,ClientSearchResponse, and the Get / Create / Update / RotateSecretClientResponseContenttypes.PreviewCimdMetadataResponseContentgainsexternal_metadata_created_by?: CimdExternalMetadataCreatedByEnum(admin|client).client_id_metadata_document_dynamic_registration_supportedonUpdateTenantSettingsRequestContentand on the Get / Update tenant settings responses. It requiresclient_id_metadata_document_supportedto be enabled.TenantSettingsFlags.dashboard_insights_viewnow marks it deprecated (it has no effect).passkeyadded toGuardianFactorNameEnum. The factor-name JSDoc now includespasskeyand its missing commas are fixed.EventStreamCloudEventContext.transaction(EventStreamCloudEventContextTransaction).EventStreamCloudEventContextTransactionProtocolEnum,EventStreamCloudEventContextTransactionResponseModeEnumandEventStreamCloudEventContextTransactionResponseTypeItemEnum.statusis from feat: add user consent signing keys, client oidc_support, connection otp_settings, and resource server type #1436)CreateExperimentRequestContent.allocation_strategy(percentage|segment) is now required (seeUpdateVariationRequestContent.overridesnow acceptsnull:nullis removed;nullor{}clears all overrides.UpdateVariationOverridesMaptype changes fromRecord<string, unknown>to(Record<string, unknown> | null) | undefined(seeis_valid(already present) is now documented onExperimentListItemand the Create / Get / Update experiment responses.experimentation.segments.list()acceptsstatus?: SegmentStatusEnum | null(active|archived) and sends it as a query parameter.users.listConsentSigningKeys(id):GET /users/{id}/consent-signing-keys. ReturnsListUserConsentSigningKeysResponseContent(ConsentSigningKey[]).users.getConsentSigningKey(id, kid):GET /users/{id}/consent-signing-keys/{kid}.users.deleteConsentSigningKey(id, kid):DELETE /users/{id}/consent-signing-keys/{kid}.ConsentSigningKey:kid,device_identifier,created_at,expires_at(all required).getConsentSigningKey.oidc_support(from feat: add user consent signing keys, client oidc_support, connection otp_settings, and resource server type #1436): newClientOidcSupport(is_allowed?,allow_all_scopes?,allowed_scopes?) onClient,ClientSearchResponse, and the Get / Create / Update / RotateSecretClientResponseContenttypes.otp_settings?: ConnectionOtpSettings(email?/phone?, eachConnectionOtpChannelSettingswithotp_length?andotp_expiry?) onConnectionOptionsAuth0,ConnectionPropertiesOptionsandUpdateConnectionOptions.ConnectionOptionsSamlgainsclient_id?(ConnectionClientIdSamlxaaRequestingApp, an alias ofConnectionClientIdOidc) andclient_secret?(ConnectionClientSecretSamlxaaRequestingApp, astring).ConnectionResponseContentSaml,CreateConnectionRequestContentSamlandUpdateConnectionRequestContentSamlgaincross_app_access_requesting_app?.type?: ResourceServerTypeEnum | null(universal_commerce_protocol_server) on create / update requests and all resource server response types.form_submission_modemoves beforemax_attemptsin the brute-force settings types. Ordering only; no type change.reference.mdregenerated:clientProfilesand the three consent signing key methods added;allocation_strategy.package.json:./attackProtection/captchaPoliciesexport entry is replaced with./clientProfiles;yarn.lockrefreshed with dev / transitive updates only..fern/replay.lockupdated for the new generation.client.attackProtection.captchaPolicies, theCaptchaPoliciesClientclass, its types, its request types and theauth0/attackProtection/captchaPoliciessub-package export (see Beta).experiments.create()now requiresallocation_strategy, so existing TypeScript calls without it fail to type-check. The SDK adds no runtime validation.UpdateVariationOverridesMapnow includesnull | undefined(low impact). The type is only wider, so every value accepted before is still accepted. Only code that reads a value annotated with this type directly (for exampleObject.keys(overrides)) may need a null check. The type is only used inUpdateVariationRequestContent.overrides.Not breaking: the new
GuardianFactorNameEnum(passkey) andOauthScopemembers are additive, and the brute-force field reorder is ordering only.🔬 Testing
wire/clientProfiles.test.ts(new, 28 tests): all five endpoints, covering success and error paths.wire/attackProtection/captchaPolicies.test.ts: removed (32 tests) along with the resource.wire/users.test.ts: 16 new tests for consent signing keys (listConsentSigningKeys1–5,getConsentSigningKey1–6,deleteConsentSigningKey1–5).wire/clients.test.ts:external_metadata_statusandoidc_supportadded to the client response fixtures.external_metadata_created_bywas added to the CIMD preview fixture.wire/tenants/settings.test.ts:client_id_metadata_document_dynamic_registration_supportedadded to the response fixtures.wire/experimentation/experiments.test.ts:allocation_strategyadded to the create request fixtures andcreate()calls (the response fixtures already had it).wire/experimentation/segments.test.ts:statusis passed to thelist()call (the mock does not assert query parameters).wire/resourceServers.test.ts:typeadded to thelist,create,search,getandupdateresponse fixtures.wire/attackProtection/bruteForceProtection.test.ts: fixture field order updated to match the type.yarn testpasses 205/205 suites and 4,649 tests across the unit, wire and root projects.tsc --noEmitis clean,yarn buildsucceeds, and lint reports no errors.📝 Checklist