Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/wave4-consumer-gaps.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading