diff --git a/.changeset/wave4-consumer-gaps.md b/.changeset/wave4-consumer-gaps.md deleted file mode 100644 index f11a939..0000000 --- a/.changeset/wave4-consumer-gaps.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@seamless-auth/types': minor ---- - -Fill the gaps the API and OpenID Provider found while adopting the extensibility schemas. - -- `AUTH_EVENT_TYPES` lists `session_created`, `custom_claims_omitted`, `admin_oidc_application_link_added` and `admin_oidc_application_link_removed`, which the API already writes. -- `OidcAccountClaimsSchema` carries the permission claims (`permissions`, `permissions_omitted`, `org_roles`, `org_permissions`) and `customClaims`, which defaults to `{}` for an API that does not send it. -- `OidcSignRefusalCodeSchema` adds `claims_mismatch`, which `/oidc/sign` answers when the account claims in a signing input are not what the API computes now, so the provider reads the account again and retries once. `OIDC_EDGE_CONTRACT_VERSION` stays at 3: an older provider does not parse the code and fails the sign, as it did for the `subject_mismatch` the API sent before. -- `CustomClaimValueSchema` spells out its three levels of nesting instead of using the recursive `z.json()`, so OpenAPI generators such as `@asteasolutions/zod-to-openapi` no longer overflow their stack on it. It accepts and refuses exactly what it did before. `CustomClaimSourceSchema` now reads stored claims with it too. `CustomClaimValue` is now a type nested three levels deep rather than zod's `JSONType`, so code that assigns an arbitrary `JSONType` to it needs a cast or a parse. -- `CalloutFailureSchema` adds `misconfigured`, for a destination whose own configuration cannot be used, such as a secret it names that the server does not have. -- `LoginDeniedErrorSchema` and `LoginHookUnavailableErrorSchema` describe the 403 and 503 a sign-in answers when a login hook stops it. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5103b07..e83eca2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # @seamless-auth/types +## 0.40.0 + +### Minor Changes + +- e531f89: Fill the gaps the API and OpenID Provider found while adopting the extensibility schemas. + + - `AUTH_EVENT_TYPES` lists `session_created`, `custom_claims_omitted`, `admin_oidc_application_link_added` and `admin_oidc_application_link_removed`, which the API already writes. + - `OidcAccountClaimsSchema` carries the permission claims (`permissions`, `permissions_omitted`, `org_roles`, `org_permissions`) and `customClaims`, which defaults to `{}` for an API that does not send it. + - `OidcSignRefusalCodeSchema` adds `claims_mismatch`, which `/oidc/sign` answers when the account claims in a signing input are not what the API computes now, so the provider reads the account again and retries once. `OIDC_EDGE_CONTRACT_VERSION` stays at 3: an older provider does not parse the code and fails the sign, as it did for the `subject_mismatch` the API sent before. + - `CustomClaimValueSchema` spells out its three levels of nesting instead of using the recursive `z.json()`, so OpenAPI generators such as `@asteasolutions/zod-to-openapi` no longer overflow their stack on it. It accepts and refuses exactly what it did before. `CustomClaimSourceSchema` now reads stored claims with it too. `CustomClaimValue` is now a type nested three levels deep rather than zod's `JSONType`, so code that assigns an arbitrary `JSONType` to it needs a cast or a parse. + - `CalloutFailureSchema` adds `misconfigured`, for a destination whose own configuration cannot be used, such as a secret it names that the server does not have. + - `LoginDeniedErrorSchema` and `LoginHookUnavailableErrorSchema` describe the 403 and 503 a sign-in answers when a login hook stops it. + ## 0.39.0 ### Minor Changes diff --git a/package.json b/package.json index c2a4ad2..32569bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seamless-auth/types", - "version": "0.39.0", + "version": "0.40.0", "description": "Shared TypeScript types and Zod schemas for SeamlessAuth.", "author": "Fells Code, LLC", "license": "Apache-2.0",