@adonis-agora/authkit-sdk 0.8.0 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +353 -0
- package/build/src/embedded_driver.js +48 -4
- package/build/src/remote_driver.js +6 -0
- package/build/src/types.d.ts +23 -1
- package/package.json +10 -9
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# @adonis-agora/authkit-sdk
|
|
2
|
+
|
|
3
|
+
## 1.0.0-rc.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#460](https://github.com/DavideCarvalho/adonis-agora-authkit/pull/460) [`1858ee8`](https://github.com/DavideCarvalho/adonis-agora-authkit/commit/1858ee837bb4edcf0578f86d224693ac9a86a495) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Service tenants: a client can act as one partition of another service, such as a durable control plane.
|
|
8
|
+
|
|
9
|
+
- `serviceTenants: { resources: { 'urn:agora:durable': { expiresIn: 600 } } }` in `config/authkit.ts` declares the resources (RFC 8707) that issue service-tenant tokens: JWT access tokens (RFC 9068) with `aud` = the resource and the client's `partition` and `capabilities` as claims.
|
|
10
|
+
- A service-tenant client is confidential, uses only `client_credentials` and has no redirect URIs. Create and edit it from the console (**Service tenant** kind), the Admin API and the SDKs (`serviceTenant: { partition, capabilities? }`), or `node ace authkit:clients:create --partition=acme --capability=reports`.
|
|
11
|
+
- Any client can now be disabled and enabled again (console, `POST /clients/:id/disable|enable`, SDK `clients.disable/enable`): the token endpoint answers `invalid_client` from the next request on.
|
|
12
|
+
- `authkitTenantVerifier()` (authkit-server) verifies those tokens against the local issuer and keys and returns `{ tenant, capabilities }`; `authkitTenantToken({ issuer, clientId, clientSecret, resource })` (authkit-client) fetches, caches and refreshes them on the tenant side. Both fit durable's `verifyTenant` and `tenant.token` as a function or a class, without depending on durable.
|
|
13
|
+
- New audit events: `client.disabled`, `client.enabled`, `service_tenant.token_issued`.
|
|
14
|
+
- Access-token verification (`oidcBearerGuard`, in-process and remote) now refuses a token whose `sub` is a client (a `client_credentials` token), so a service-tenant token never authenticates a user.
|
|
15
|
+
|
|
16
|
+
## 1.0.0-rc.0
|
|
17
|
+
|
|
18
|
+
### Major Changes
|
|
19
|
+
|
|
20
|
+
- [#436](https://github.com/DavideCarvalho/adonis-agora-authkit/pull/436) [`c942fe3`](https://github.com/DavideCarvalho/adonis-agora-authkit/commit/c942fe30483346217c9c89112e13db0d4a65c647) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - AuthKit 1.0. See the [Migrating to 1.0](https://github.com/DavideCarvalho/adonis-agora-authkit/blob/main/apps/docs/content/docs/migrating-to-1-0.mdx) guide.
|
|
21
|
+
|
|
22
|
+
Breaking changes (`@adonis-agora/authkit-server`):
|
|
23
|
+
|
|
24
|
+
- `withMfa` is removed. MFA state lives in the lib-owned `auth_mfa` table, so drop the mixin from your `AuthUser` model's `compose(...)`.
|
|
25
|
+
- `markSudo` is no longer exported. Grant sudo with `completeSudo(sudoContextFrom(ctx), methodId)`, which also writes the `sudo.confirmed` audit event, remembers the method and redirects to the validated `return_to`.
|
|
26
|
+
- The email-change confirmation link is sent through `mail.onEmailChangeConfirm` only. Without it, AuthKit sends its built-in email; `onEmailVerification` no longer receives email-change confirmations.
|
|
27
|
+
- The `clients` option of `defineConfig` is removed. Create clients in the admin console, through the Admin API or with `node ace authkit:clients:create` (new `--client-secret` flag keeps an existing secret). `buildImpersonationPanel(cfg, targetId, clients)` now requires `clients`, and the impersonation curl always shows the `<CLIENT_SECRET>` placeholder.
|
|
28
|
+
- `inertiaRenderer({ prefix, views })`: `views` is required. Screens not listed render with the built-in Edge view. `AuthkitScreen` is now the exact union of the screens AuthKit renders (adds `throttled`, `agents/consent`, `agents/done`; no arbitrary strings), and every screen's props are exported: `AuthkitScreenProps['<view>']` plus named types (`LoginProps`, `SessionExpiredProps`, …). The controllers are checked against them. Hosts declare screens of their own by augmenting `AuthkitScreenProps` (`declare module '@adonis-agora/authkit-server'`).
|
|
29
|
+
- The Admin API client body reads `grantTypes` only; the `grants` alias is gone (responses still return `grants`).
|
|
30
|
+
- `lucidAccountStore` always mounts password history over the model's connection (`auth_password_history`).
|
|
31
|
+
- `/account/orgs/json`, `/account/orgs/invitations/json` and `/account/orgs/:id/json` are removed; use `/account/api/orgs/*`.
|
|
32
|
+
- `GET /account/api/apps` entries gain `name` and `logoUrl`.
|
|
33
|
+
|
|
34
|
+
- The admin console reads its config from a `<script type="application/json" id="authkit-admin-config">` data block (CSP-safe) instead of an inline `window.__AUTHKIT__` script; the dev fallback is gone.
|
|
35
|
+
- The admin client DTO returns `grantTypes` (was `grants`), plus `clientName` and `logoUri`, which the console and the Admin API can now set (`null` removes them, as it does `backchannelLogoutUri`). `GET {admin}/api/clients/:id` exists.
|
|
36
|
+
- Anonymous JSON callers of the admin and account JSON APIs get `401` (and `403` without an admin role) instead of a redirect to the login page.
|
|
37
|
+
- Fixes: the Redis adapter's `list()` honours the connection `keyPrefix` (sessions, apps and admin lists were empty); a password login posted without a password is an invalid-credentials answer, not a 500.
|
|
38
|
+
|
|
39
|
+
Breaking changes (`@adonis-agora/authkit-core`):
|
|
40
|
+
|
|
41
|
+
- `ClientConfig` and `ResolvedAuthServerConfig.clients` are removed.
|
|
42
|
+
|
|
43
|
+
Breaking changes (`@adonis-agora/authkit-client`):
|
|
44
|
+
|
|
45
|
+
- `@adonisjs/auth` is a required peer. `ctx.auth` is `@adonisjs/auth`, backed by the AuthKit session through `authkitClientGuard`; `ctx.authkit` (from `authkit_context_middleware`) carries the AuthKit-only data (identity, `hasGlobalRole`, active org, `toSharedProps`).
|
|
46
|
+
- `authkit_middleware`, `auth_middleware` and `silent_auth_middleware` (and their subpaths) are removed: `ctx.auth` comes from `@adonisjs/auth`, and `middleware.auth()` / `silentAuth` are the `#middleware/auth_middleware` / `#middleware/silent_auth_middleware` files `node ace configure` publishes. `require_org_middleware` stays. `@adonis-agora/authkit-client/types` no longer declares `HttpContext.auth`; type `ctx.authkit.getUser()` through the `AuthkitUserType` interface.
|
|
47
|
+
- `node ace configure @adonis-agora/authkit-client` installs `@adonisjs/auth` when missing (`--no-install` prints the command), writes `config/auth.ts` with `authkitClientGuard` + `sessionUserProvider` (`--model`, default `#models/user`; an existing file is left alone and the guard to add is printed), registers `@adonisjs/auth/auth_provider`, `initialize_auth_middleware` + `authkit_context_middleware`, and publishes the named `auth` / `silentAuth` middleware.
|
|
48
|
+
- `authkitClientGuard` takes its user from `resolveUser` when one is configured (so `lucidMirror` provisions the row on first login, and what it loads is on `ctx.auth.user`, the same instance as `ctx.authkit.getUser()`), with the provider as the fallback.
|
|
49
|
+
- New `authkitIdentityProvider()`: a user provider with no database; `ctx.auth.user` is the AuthKit `Identity`.
|
|
50
|
+
- New `authkitClientGuard({ provider, resolver })` option: a per-guard resolver for API routes (bearer JWT, opaque, PAT).
|
|
51
|
+
- `resolvers.jwt({ tokenSource: 'bearer' })` accepts `Authorization: DPoP <jwt>` with a valid `DPoP` proof for `cnf.jkt`-bound tokens, and refuses DPoP-bound tokens sent as `Bearer`.
|
|
52
|
+
- `UnauthorizedAccessConstructor` is no longer exported, and `AuthkitClientGuard` no longer takes an exception class; it always throws `@adonisjs/auth`'s `E_UNAUTHORIZED_ACCESS`.
|
|
53
|
+
|
|
54
|
+
Breaking changes (`@adonis-agora/authkit-sdk`):
|
|
55
|
+
|
|
56
|
+
- `clients.*` return `grantTypes` (was `grants`), plus `clientName` and `logoUri`.
|
|
57
|
+
|
|
58
|
+
Breaking changes (`@adonis-agora/authkit-react`):
|
|
59
|
+
|
|
60
|
+
- `createAuthkitClient()` no longer reads `window.__AUTHKIT__`: pass `baseUrl` for `client.admin.*` and `csrfToken`.
|
|
61
|
+
- Admin response types match the server: `users.remove` / `clients.remove` → `{ ok, deleted }`, `users.resetPassword` → `{ ok, email }`, `users.disable` / `enable` → the user, `SettingListResult.locked`; `AdminClient.grants` → `grantTypes` (+ `clientName`, `logoUri`); `UpdateUserInput` is `{ globalRoles? }`, `CreateUserInput` takes no `null`.
|
|
62
|
+
- New: `client.account.agents.list()` / `revoke()`, `useAccountAgentsQueryOptions`, `useRevokeAccountAgentMutationOptions`.
|
|
63
|
+
- Peers: `react` / `react-dom` `^19.0.0`, `@inertiajs/react` `^2.0.0 || ^3.0.0`.
|
|
64
|
+
|
|
65
|
+
- `useProfile`, `useSessions`, `useAuthorizedApps`, `useOrganizations`, `useOrganization`, `useOrgInvitations`, `useSwitchOrganization` and their types are removed, with the `profile`, `sessions`, `apps`, `orgs` and `orgInvitations` keys of `endpoints`. Use the query options (`useMeQueryOptions`, `useAccountSessionsQueryOptions`, `useAppsQueryOptions`, `useAccountOrgsQueryOptions`, …).
|
|
66
|
+
- `UserProfile`, `AuthorizedApps`, `OrganizationSwitcher` and `OrganizationProfile` need `QueryClientProvider` and `AuthkitClientProvider`.
|
|
67
|
+
|
|
68
|
+
All packages:
|
|
69
|
+
|
|
70
|
+
- `@adonis-agora/*` peer ranges accept 1.x and its release candidates (`<2.0.0 || >=1.0.0-rc.0 <2.0.0`): `durable`, `media`, `telescope` (authkit-server), `resilience` (authkit-client), `authkit-server` (authkit-sdk).
|
|
71
|
+
- Node.js `>=24` is required (tested on 24 and 26).
|
|
72
|
+
|
|
73
|
+
## 0.8.0
|
|
74
|
+
|
|
75
|
+
### Minor Changes
|
|
76
|
+
|
|
77
|
+
- [#269](https://github.com/DavideCarvalho/adonis-agora-authkit/pull/269) [`b0ca480`](https://github.com/DavideCarvalho/adonis-agora-authkit/commit/b0ca4802419aba93a9f913775f697cc4075cff88) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Drop Node 20, which reached end-of-life on 2026-04-30, and Node 22, which AdonisJS 7 does not support (it requires Node >=24): `engines.node` is now `>=24`. The supported Node lines are 24 and 26, and CI runs the test suite on each of them.
|
|
78
|
+
|
|
79
|
+
## 0.7.2
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- [#255](https://github.com/DavideCarvalho/adonis-agora-authkit/pull/255) [`481051c`](https://github.com/DavideCarvalho/adonis-agora-authkit/commit/481051c86c67b2bf5026f7a49028d260236667c9) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Publish peer dependencies as ranges again (`^7.5.0` instead of `7.5.0`, etc.). A Renovate pinning pass had turned the peer catalogs into exact versions, so any upstream patch release (e.g. `@adonisjs/core` 7.5.1) fell outside the accepted peer range.
|
|
84
|
+
|
|
85
|
+
## 0.7.1
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- [#230](https://github.com/DavideCarvalho/adonis-agora-authkit/pull/230) [`4e424bf`](https://github.com/DavideCarvalho/adonis-agora-authkit/commit/4e424bf18f8c0cea30ae1352056b2017f661510d) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - O claim de organização passa a refletir a membership atual, e remover um membro revoga o acesso na hora
|
|
90
|
+
|
|
91
|
+
O `org_id`/`org_slug`/`org_role` do token vinha do `activeOrg` gravado no `Grant` no
|
|
92
|
+
consent, e o refresh o reemitia **sem perguntar se a conta ainda era membro** da org,
|
|
93
|
+
nem se a org ainda existia. Com refresh token de 30 dias, quem era removido da equipe
|
|
94
|
+
seguia recebendo token com o claim da org por até um mês — e um rebaixado seguia com
|
|
95
|
+
o papel antigo.
|
|
96
|
+
|
|
97
|
+
- **Emissão/refresh:** antes de emitir `org_*`, a lib confere no account store que a
|
|
98
|
+
conta ainda é membro da org (`getOrgMembership`) e que a org existe (`findOrgById`).
|
|
99
|
+
Se não for, o token sai **sem** claims de org. `org_role` é sempre o papel **atual**
|
|
100
|
+
da membership e `org_slug` o slug atual — nunca o retrato do consent. O
|
|
101
|
+
`resolveTokenRoles` recebe o `activeOrg` já conferido.
|
|
102
|
+
- **Remoção:** sair da org, remover um membro (form `/account/orgs`, `/account/api/orgs`,
|
|
103
|
+
console admin e Admin API) ou apagar a org revoga os grants que carregam aquela org
|
|
104
|
+
para aquela conta (ou para todas, no `deleteOrg`), com os access/refresh tokens deles,
|
|
105
|
+
e grava a revogação por `sub` para clients cookie-based. Grants de outras orgs e sem
|
|
106
|
+
org ficam intactos. Novo método `AdminSessionsService.revokeOrgGrants(orgId, accountId?)`.
|
|
107
|
+
O driver embedded do `@adonis-agora/authkit-sdk` (`organizations.delete`,
|
|
108
|
+
`organizations.members.remove`) revoga do mesmo jeito.
|
|
109
|
+
|
|
110
|
+
Mudança de comportamento: um store sem `findOrgById`/`getOrgMembership` não tem como
|
|
111
|
+
conferir a membership, então deixa de emitir `org_*` (antes emitia o que viesse do
|
|
112
|
+
cookie/grant). As rotas que gravam o cookie de org só existem com a capacidade.
|
|
113
|
+
|
|
114
|
+
## 0.7.0
|
|
115
|
+
|
|
116
|
+
### Minor Changes
|
|
117
|
+
|
|
118
|
+
- 9231887: **BREAKING (0.x minor):** todas as listagens paginadas do authkit passam a usar `{ page, size }` no lugar de `{ page, limit }` (e de `perPage`, na API do console), alinhando a interface de paginação com `@adonis-agora/filter` e com o restante do ecossistema `@adonis-agora/*`. `page` continua **1-based** com default `1`; `limit` foi apenas **renomeado** para `size` — a semântica (itens por página) não mudou. O casamento com `@adonis-agora/filter` é **estrutural** de propósito: nenhum pacote passa a depender dele.
|
|
119
|
+
|
|
120
|
+
Na **resposta**, as mesmas listagens passam a devolver o envelope `{ meta, data }` — com `page`, `size` e `total` dentro de `meta` — no lugar do antigo shape achatado `{ data, total, page, size }`. `meta` é a convenção do próprio `.paginate()` do Lucid (`{ meta, data }`), que é onde o caminho por offset de `@adonis-agora/filter` desemboca, e agora é o envelope de TODAS as listagens paginadas do ecossistema `@adonis-agora/*`.
|
|
121
|
+
|
|
122
|
+
Junto vem um **teto de `size`** que antes não existia de forma unificada: toda borda HTTP (Admin REST API e API JSON do console) agora corta `size` em `ADMIN_LIST_MAX_SIZE` (200), e as varreduras internas usam `ADMIN_LIST_DEFAULT_SIZE` (100) em vez de um `100` hardcoded por serviço.
|
|
123
|
+
|
|
124
|
+
### O que mudou
|
|
125
|
+
|
|
126
|
+
- **Wire HTTP** — `GET {adminApi}/users`, `GET {adminApi}/audit`, `GET {consolePrefix}/api/users` e `GET {consolePrefix}/api/audit` leem `?page=&size=` (antes `?page=&limit=`; o de usuários do console lia `?perPage=`) e respondem `{ meta: { page, size, total }, data }` (antes `{ data, total, page, size }` achatado). Endpoints de listagem NÃO paginados (`/clients`, `/settings`, `/organizations`, `/roles`, `/sessions`) continuam como estão — eles nunca tiveram metadados de paginação e não ganham envelope agora.
|
|
127
|
+
- **Tipos do servidor** — `ListAccountsParams.limit` → `.size` e `ListAuditParams.limit` → `.size`. Stores de conta e sinks de auditoria customizados precisam ler o novo campo.
|
|
128
|
+
- **SDK** (`@adonis-agora/authkit-sdk`) — `ListUsersParams` e `ListAuditParams` passam a usar `size`; `ListUsersResult` e `ListAuditResult` viram `{ meta: ListMeta; data: T[] }` (novo tipo `ListMeta` exportado), nos dois drivers (remoto e embedded).
|
|
129
|
+
- **React** (`@adonis-agora/authkit-react`) — `client.admin.users.list()`, `client.admin.audit.list()`, `useUsersQueryOptions()`, `useAuditQueryOptions()` e as query keys `authkitKeys.admin.users/audit` passam a usar `size`; `AdminUserListResult` e `AuditListResult` viram `{ meta: ListMeta; data: T[] }` (novo tipo `ListMeta` exportado). Efeito colateral: o console admin enviava `limit=` para um endpoint que lia `perPage`, então o tamanho de página pedido pela UI era silenciosamente ignorado — agora vale.
|
|
130
|
+
- **Novas constantes exportadas** — `LIST_FIRST_PAGE`, `ADMIN_LIST_DEFAULT_SIZE` (100), `ADMIN_LIST_HTTP_DEFAULT_SIZE` (20), `ADMIN_LIST_MAX_SIZE` (200), mais os helpers `resolveListPage`, `normalizeListSize`, `clampListSize`, `parseListPage` e `parseListSize` (o SDK reexporta as três primeiras constantes com os mesmos nomes).
|
|
131
|
+
- **Novos tipos exportados** — `ListMeta` (`{ page, size, total }`) e `PaginatedResponse<T>` (`{ meta, data }`) em `@adonis-agora/authkit-server`; `ListMeta` também em `@adonis-agora/authkit-sdk` e `@adonis-agora/authkit-react`.
|
|
132
|
+
- **Inalterado** — o contrato INTERNO dos stores continua `Paginated<T> = { data, total }`: `AccountStore.listAccounts()` e `AuditSink.list()` NÃO ganham envelope `meta` (quem monta o `meta` é a borda HTTP/SDK). Implementações customizadas de store/sink só precisam da renomeação `limit` → `size`.
|
|
133
|
+
|
|
134
|
+
### Migração
|
|
135
|
+
|
|
136
|
+
```diff
|
|
137
|
+
// HTTP
|
|
138
|
+
- GET /api/authkit/v1/users?page=2&limit=50
|
|
139
|
+
+ GET /api/authkit/v1/users?page=2&size=50
|
|
140
|
+
|
|
141
|
+
// HTTP — resposta
|
|
142
|
+
- { "data": [...], "total": 137, "page": 2, "size": 50 }
|
|
143
|
+
+ { "meta": { "page": 2, "size": 50, "total": 137 }, "data": [...] }
|
|
144
|
+
|
|
145
|
+
// SDK
|
|
146
|
+
- const { data, total, page, limit } = await authkit.users.list({ page: 2, limit: 50 })
|
|
147
|
+
+ const { data, meta } = await authkit.users.list({ page: 2, size: 50 })
|
|
148
|
+
+ // meta.page / meta.size / meta.total
|
|
149
|
+
|
|
150
|
+
// React
|
|
151
|
+
- useUsersQueryOptions({ search, page, limit: 20 })
|
|
152
|
+
+ useUsersQueryOptions({ search, page, size: 20 })
|
|
153
|
+
- const total = data?.total ?? 0
|
|
154
|
+
+ const total = data?.meta.total ?? 0
|
|
155
|
+
|
|
156
|
+
// AccountStore / AuditSink customizados
|
|
157
|
+
- async listAccounts({ search, page = 1, limit = 20 }: ListAccountsParams) {
|
|
158
|
+
- return { data: rows.slice((page - 1) * limit, page * limit), total }
|
|
159
|
+
+ async listAccounts({ search, page = 1, size = 20 }: ListAccountsParams) {
|
|
160
|
+
+ return { data: rows.slice((page - 1) * size, page * size), total }
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Callers que pediam `limit > 200` via HTTP passam a receber 200 itens por página — pagine com `page` para cobrir o resto.
|
|
165
|
+
|
|
166
|
+
## 0.6.4
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- f287ade: Widen the `@adonis-agora/*` peer ranges so they survive the peer's next minor.
|
|
171
|
+
|
|
172
|
+
Below 1.0.0 a caret does not mean "this minor and up" — it stops at the next
|
|
173
|
+
minor, so `^0.22.0` expands to `>=0.22.0 <0.23.0`. Every sibling package in this
|
|
174
|
+
ecosystem ships minors constantly, which meant **all four** `@adonis-agora/*`
|
|
175
|
+
peers were unsatisfiable against the current release of the package they name.
|
|
176
|
+
Under npm this is not a warning: installing `@adonis-agora/authkit-server`
|
|
177
|
+
alongside `@adonis-agora/durable@0.24.0` failed outright with
|
|
178
|
+
`ERESOLVE — Conflicting peer dependency: @adonis-agora/durable@0.22.0`.
|
|
179
|
+
|
|
180
|
+
Each floor was chosen from what the code actually calls, not from what the range
|
|
181
|
+
happened to say:
|
|
182
|
+
|
|
183
|
+
| peer | was | now | why that floor |
|
|
184
|
+
| -------------------------- | --------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
185
|
+
| `@adonis-agora/durable` | `^0.22.0` | `>=0.7.0 <1.0.0` | first release with `ctx.localStep`, absent in 0.6.1 |
|
|
186
|
+
| `@adonis-agora/media` | `^0.1.0` | `>=0.5.0 <1.0.0` | first release exporting the `./single-file` subpath the avatar uploader imports, absent in 0.4.0 |
|
|
187
|
+
| `@adonis-agora/telescope` | `^0.1.0` | `>=0.1.0 <1.0.0` | all five imported types are shape-identical from 0.1.0 through 0.8.1 |
|
|
188
|
+
| `@adonis-agora/resilience` | `^0.1.0` | `>=0.1.0 <1.0.0` | `wrap()` has existed since 0.1.0, and the policy is duck-typed against a locally declared interface rather than imported |
|
|
189
|
+
|
|
190
|
+
The `^0.22.0` on durable in particular came from the `ctx.step` → `ctx.localStep`
|
|
191
|
+
migration and recorded the version current on that day, some fifteen minors above
|
|
192
|
+
what the migration actually required.
|
|
193
|
+
|
|
194
|
+
`@adonis-agora/authkit-sdk`'s peer on `@adonis-agora/authkit-server` gains the
|
|
195
|
+
same upper bound (`>=0.10.0 <1.0.0`), which it was missing entirely — it would
|
|
196
|
+
have accepted a future 1.0 with breaking changes.
|
|
197
|
+
|
|
198
|
+
A spec now scans every package manifest and fails on a caret or tilde over a 0.x
|
|
199
|
+
`@adonis-agora/*` peer, so this cannot come back quietly.
|
|
200
|
+
|
|
201
|
+
## 0.6.3
|
|
202
|
+
|
|
203
|
+
### Patch Changes
|
|
204
|
+
|
|
205
|
+
- 8f23a85: Organization invitations send an email even without a `mail.onOrgInvitation` hook.
|
|
206
|
+
|
|
207
|
+
`onOrgInvitation` was the only hook in `MailHooks` with no default-mailer
|
|
208
|
+
fallback. Every other one degrades to a branded, translated email the host kit
|
|
209
|
+
sends itself; this one was guarded by a bare `if (cfg.mail?.onOrgInvitation)`
|
|
210
|
+
with no `else`, so a host that had not written the hook created the invitation
|
|
211
|
+
row and sent nothing. The invited person was never told they had been invited,
|
|
212
|
+
and nothing anywhere reported a problem.
|
|
213
|
+
|
|
214
|
+
`sendOrgInvitationEmail` now exists alongside the other `send*Email` functions,
|
|
215
|
+
with `mail.org_invitation.*` messages in both the English and pt-BR tables, and
|
|
216
|
+
both HTTP call sites — the account-facing controller and the admin service — use
|
|
217
|
+
the host hook when present and the library default otherwise. Delivery stays
|
|
218
|
+
best-effort: a mail failure never breaks invitation creation.
|
|
219
|
+
|
|
220
|
+
The SDK's embedded driver reached the same service through a third door and had
|
|
221
|
+
to be fixed with it. Its out-of-band context now carries the container resolver
|
|
222
|
+
and a logger, which is all the default mailer reads, so an invitation created
|
|
223
|
+
through `authkit.organizations.invitations.create()` reaches an inbox too rather
|
|
224
|
+
than reproducing the original silent failure one layer down.
|
|
225
|
+
|
|
226
|
+
One latent bug fell out of the rework: the account controller resolved the
|
|
227
|
+
organization and the issuer origin _outside_ its `try`, so a config with an
|
|
228
|
+
unresolvable issuer would have thrown out of a path that must never break
|
|
229
|
+
invitation creation. Both are inside the guarded block now.
|
|
230
|
+
|
|
231
|
+
## 0.6.2
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- 1f15367: Point `homepage` and `bugs.url` at the repository's current name.
|
|
236
|
+
|
|
237
|
+
The repository was renamed to `adonis-agora-authkit`; `repository.url` followed,
|
|
238
|
+
`homepage` and `bugs.url` did not. Every package therefore shipped a manifest
|
|
239
|
+
that disagreed with itself, and the "Repository"/"Homepage" links on npm leaned
|
|
240
|
+
on GitHub's rename redirect — which lasts only until someone claims the old
|
|
241
|
+
name. All three fields now name the same repository.
|
|
242
|
+
|
|
243
|
+
## 0.6.1
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- 70f5721: Ship peer dependencies as ranges instead of exact versions
|
|
248
|
+
|
|
249
|
+
`peerDependencies` pointed at the pinned `adonis`/`frontend` catalogs, and pnpm
|
|
250
|
+
inlines a catalog's literal value at publish time — so every published peer came
|
|
251
|
+
out exact. `@adonis-agora/authkit-server@0.34.1` on npm requires
|
|
252
|
+
`"@adonisjs/core": "7.3.3"`, which no app on 7.3.5 can satisfy;
|
|
253
|
+
`@adonis-agora/authkit-react@0.13.0` requires `"react": "19.2.6"`, which locks
|
|
254
|
+
out every consumer not on that exact patch.
|
|
255
|
+
|
|
256
|
+
Peers now resolve from three new range-only catalogs (`adonisPeers`,
|
|
257
|
+
`frontendPeers`, `miscPeers`). Dependencies keep the pinned catalogs — a pin is
|
|
258
|
+
right for reproducible installs and wrong for consumer compatibility, and the
|
|
259
|
+
two were sharing one source.
|
|
260
|
+
|
|
261
|
+
No source or runtime behaviour changes.
|
|
262
|
+
|
|
263
|
+
## 0.6.0
|
|
264
|
+
|
|
265
|
+
### Minor Changes
|
|
266
|
+
|
|
267
|
+
- 0542665: Re-scope to @adonis-agora/authkit-\* (join the Agora ecosystem)
|
|
268
|
+
|
|
269
|
+
## 0.5.0
|
|
270
|
+
|
|
271
|
+
### Minor Changes
|
|
272
|
+
|
|
273
|
+
- 6fe2aa7: feat: rotação automática de chaves JWKS (age-based) + política + endpoints + SDK.
|
|
274
|
+
|
|
275
|
+
Nova setting `key_rotation` (`{enabled,maxAgeDays,keep}`, default OFF). Um scheduler
|
|
276
|
+
de housekeeping (web-only, fail-safe) rotaciona a chave quando ela passa de
|
|
277
|
+
`maxAgeDays` e aplica AO VIVO (sem restart, via `reloadKeys` da Fatia C), com
|
|
278
|
+
single-flight via `@adonisjs/lock` (peer opcional; sem ele assume single-instance).
|
|
279
|
+
`OidcService` ganha `rotateKeys()`/`keystoreAgeDays()` (rotate+reload serializados).
|
|
280
|
+
|
|
281
|
+
Dois tiers de endpoint admin para status + "rotacionar agora":
|
|
282
|
+
|
|
283
|
+
- **REST API** `GET/POST /api/authkit/v1/keys` (Bearer key) — para backend/automação;
|
|
284
|
+
- **Console API** `GET/POST {adminPrefix}/api/keys` (sessão + role admin) — para o browser.
|
|
285
|
+
|
|
286
|
+
`@adonis-agora/authkit-sdk` expõe `authkit.keys.status()` / `authkit.keys.rotate()`
|
|
287
|
+
(drivers remote + embedded). `@adonisjs/lock` é peer OPCIONAL.
|
|
288
|
+
|
|
289
|
+
Default OFF: nada rotaciona automaticamente até um admin habilitar `key_rotation`.
|
|
290
|
+
|
|
291
|
+
## 0.4.1
|
|
292
|
+
|
|
293
|
+
### Patch Changes
|
|
294
|
+
|
|
295
|
+
- RuntimeSettings now probes the `auth_settings` table with a real `SELECT` (search_path-aware) instead of `schema.hasTable`, and follows the account store's named connection (`lucidAccountStore` exposes `connectionName` from the model). Hosts storing auth on a named connection (e.g. `connection: 'auth'`) no longer see every runtime setting as "table absent".
|
|
296
|
+
|
|
297
|
+
## 0.4.0
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- Re-baseline de versionamento: 1.3.0 → 0.4.0 (código idêntico ao 1.3.0). O SDK nasceu por engano em 1.0.0; volta para 0.x para sinalizar a mesma maturidade dos demais pacotes do ecossistema (server 0.13, client 0.4, react 0.3). As versões 1.x ficam deprecadas no npm.
|
|
302
|
+
|
|
303
|
+
## 1.3.0
|
|
304
|
+
|
|
305
|
+
### Minor Changes
|
|
306
|
+
|
|
307
|
+
- Configurable Admin REST API prefix: `registerAuthHost(router, { adminApi: { prefix: '/authkit/api' } })` mounts the API under a custom prefix (default `/api/authkit/v1` unchanged; `adminApi: true` keeps working). The SDK remote driver gains a matching `apiPrefix` option in `createAuthkit`.
|
|
308
|
+
|
|
309
|
+
## 1.2.0
|
|
310
|
+
|
|
311
|
+
### Minor Changes
|
|
312
|
+
|
|
313
|
+
- Runtime settings + bot protection UI toggle:
|
|
314
|
+
- **Runtime settings store**: optional capability-probed `auth_settings` table with `SettingsCapability`, `supportsSettings` type guard and a `RuntimeSettings` service (15s TTL cache, fail-safe fallback to static config on any DB error or missing table).
|
|
315
|
+
- **Bot protection runtime toggle**: the `bot_protection` setting key (`{ enabled, on? }`) turns bot protection on/off and overrides protected actions without redeploying — the `verify` hook still comes from config (it is code). No setting/table = static config, zero breaking changes.
|
|
316
|
+
- **Admin console**: new `/admin/settings` page with the bot-protection card (toggle + action checkboxes, disabled state when `verify` is not configured, schema hint when the table is absent). Audit event `settings.updated`.
|
|
317
|
+
- **Admin REST API**: `GET/PUT/DELETE /api/authkit/v1/settings[/:key]` (404 when capability absent).
|
|
318
|
+
- **SDK**: `authkit.settings.list()/get()/set()/delete()` in both remote and embedded drivers.
|
|
319
|
+
- **Doctor**: `checkSettings` warns about an orphan `bot_protection` setting when `botProtection.verify` is absent from config.
|
|
320
|
+
|
|
321
|
+
### Patch Changes
|
|
322
|
+
|
|
323
|
+
- Updated dependencies
|
|
324
|
+
- @adonis-agora/authkit-server@0.10.0
|
|
325
|
+
|
|
326
|
+
## 1.1.0
|
|
327
|
+
|
|
328
|
+
### Minor Changes
|
|
329
|
+
|
|
330
|
+
- Round 7 — production pack + multi-tenancy:
|
|
331
|
+
- **Organizations (multi-tenancy)**: optional capability-probed tables (`auth_organizations`, `auth_organization_members`, `auth_organization_invitations`), per-org roles (owner/admin/member), email invitations with hashed tokens, active-org session cookie with `org_id`/`org_slug`/`org_role` claims in id_token/userinfo/JWT access tokens, `/account/orgs` page, admin console section, Admin REST API (`/api/authkit/v1/organizations`), SDK `organizations.*` namespace (remote + embedded), React `useOrganizations`/`useOrganization`/`useSwitchOrganization`/`useOrgInvitations` hooks plus `<OrganizationSwitcher />` and `<OrganizationProfile />` components.
|
|
332
|
+
- **LGPD/GDPR compliance**: self-service and admin account deletion with full cascade (sessions, grants, PATs, passkeys, identities, MFA, avatar) and audit anonymization (stable pseudonym), data export endpoint (`GET /account/security/export`), `login.requireVerifiedEmail` gate across password/magic-link/passkey flows, SDK `users.delete()`.
|
|
333
|
+
- **User migration & password hygiene**: transparent lazy password rehash on login, `password.legacyVerifier` hook for foreign hash formats, `authkit:users:import` ace command (JSON/NDJSON, `--dry-run`), configurable `password.policy`, HaveIBeenPwned k-anonymity breach check (fail-safe), React `usePasswordStrength` + `<PasswordStrengthMeter />`.
|
|
334
|
+
- **JWT access tokens (RFC 9068)**: `accessTokens: { format: 'jwt' }` with per-resource overrides, `verifyJwtAccessToken` local validation in the client package, `authkit:keys:rotate` command with grace-period JWKS rotation.
|
|
335
|
+
- **Bot protection**: pluggable vendor-agnostic `botProtection` config (Turnstile/hCaptcha-ready, fail-safe) on login/signup/reset.
|
|
336
|
+
- **New-device login notification**: `notifications.newDeviceEmail` + `mail.onNewDeviceLogin` hook driven by the trusted-device signal.
|
|
337
|
+
- **Console polish**: session context (user-agent/OS/IP/geo via pluggable `resolveGeo`), RFC 8693 impersonation panel (`admin.impersonation`, default off), dashboard with MAU/daily sign-ins, `GET /api/authkit/v1/stats` + SDK `stats()`.
|
|
338
|
+
|
|
339
|
+
### Patch Changes
|
|
340
|
+
|
|
341
|
+
- Updated dependencies
|
|
342
|
+
- @adonis-agora/authkit-server@0.9.0
|
|
343
|
+
|
|
344
|
+
## 1.0.0
|
|
345
|
+
|
|
346
|
+
### Minor Changes
|
|
347
|
+
|
|
348
|
+
- b205782: Primeiro release do SDK backend (@adonis-agora/authkit-sdk): uma interface tipada com dois drivers — `remote` (HTTP contra a Admin REST API `/api/authkit/v1` com Bearer API key) e `embedded` (in-process, quando o IdP roda no mesmo app AdonisJS). Cobre users, sessions, clients, audit e tokens.verify, com erros mapeados para `AuthkitApiError`.
|
|
349
|
+
|
|
350
|
+
### Patch Changes
|
|
351
|
+
|
|
352
|
+
- Updated dependencies [93bfc4f]
|
|
353
|
+
- @adonis-agora/authkit-server@0.8.0
|
|
@@ -78,10 +78,14 @@ export async function createEmbeddedAuthkit(opts) {
|
|
|
78
78
|
return {
|
|
79
79
|
clientId: client.clientId,
|
|
80
80
|
confidential: client.confidential,
|
|
81
|
-
|
|
81
|
+
grantTypes: client.grantTypes,
|
|
82
82
|
redirectUris: client.redirectUris,
|
|
83
83
|
postLogoutRedirectUris: client.postLogoutRedirectUris,
|
|
84
84
|
tokenEndpointAuthMethod: client.tokenEndpointAuthMethod,
|
|
85
|
+
clientName: client.clientName ?? null,
|
|
86
|
+
logoUri: client.logoUri ?? null,
|
|
87
|
+
disabled: client.disabled ?? false,
|
|
88
|
+
serviceTenant: client.serviceTenant ?? null,
|
|
85
89
|
};
|
|
86
90
|
}
|
|
87
91
|
function sessionDto(s) {
|
|
@@ -124,10 +128,43 @@ export async function createEmbeddedAuthkit(opts) {
|
|
|
124
128
|
clientId: input.clientId?.trim() || undefined,
|
|
125
129
|
redirectUris: input.redirectUris ?? [],
|
|
126
130
|
postLogoutRedirectUris: input.postLogoutRedirectUris ?? [],
|
|
127
|
-
|
|
131
|
+
// A service tenant only uses client_credentials: that is its default grant.
|
|
132
|
+
grantTypes: input.grantTypes ?? (input.serviceTenant ? ['client_credentials'] : []),
|
|
128
133
|
tokenEndpointAuthMethod: input.tokenEndpointAuthMethod ?? 'client_secret_basic',
|
|
134
|
+
...(input.serviceTenant ? { serviceTenant: input.serviceTenant } : {}),
|
|
129
135
|
};
|
|
130
136
|
}
|
|
137
|
+
/** PATCH: only the fields sent; the service keeps the rest. */
|
|
138
|
+
function partialClientInput(input) {
|
|
139
|
+
const out = {};
|
|
140
|
+
for (const key of [
|
|
141
|
+
'redirectUris',
|
|
142
|
+
'postLogoutRedirectUris',
|
|
143
|
+
'grantTypes',
|
|
144
|
+
'tokenEndpointAuthMethod',
|
|
145
|
+
'serviceTenant',
|
|
146
|
+
]) {
|
|
147
|
+
if (input[key] !== undefined)
|
|
148
|
+
out[key] = input[key];
|
|
149
|
+
}
|
|
150
|
+
return out;
|
|
151
|
+
}
|
|
152
|
+
async function setClientDisabled(id, disabled) {
|
|
153
|
+
const svc = new AdminClientsService(service);
|
|
154
|
+
if (!(await svc.setDisabled(id, disabled)))
|
|
155
|
+
throw new Error('Client não encontrado.');
|
|
156
|
+
const client = await svc.find(id);
|
|
157
|
+
await cfg.audit?.record({
|
|
158
|
+
type: disabled ? 'client.disabled' : 'client.enabled',
|
|
159
|
+
clientId: id,
|
|
160
|
+
ip: null,
|
|
161
|
+
metadata: {
|
|
162
|
+
actor: 'admin-api',
|
|
163
|
+
...(client?.serviceTenant ? { partition: client.serviceTenant.partition } : {}),
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
return clientDto(client);
|
|
167
|
+
}
|
|
131
168
|
return {
|
|
132
169
|
users: {
|
|
133
170
|
async list(params = {}) {
|
|
@@ -255,7 +292,7 @@ export async function createEmbeddedAuthkit(opts) {
|
|
|
255
292
|
const existing = await svc.find(id);
|
|
256
293
|
if (!existing)
|
|
257
294
|
throw new Error('Client não encontrado.');
|
|
258
|
-
await svc.update(id,
|
|
295
|
+
await svc.update(id, partialClientInput(input));
|
|
259
296
|
await cfg.audit?.record({
|
|
260
297
|
type: 'client.updated',
|
|
261
298
|
clientId: id,
|
|
@@ -267,14 +304,21 @@ export async function createEmbeddedAuthkit(opts) {
|
|
|
267
304
|
async regenerateSecret(id) {
|
|
268
305
|
const svc = new AdminClientsService(service);
|
|
269
306
|
const secret = await svc.regenerateSecret(id);
|
|
307
|
+
const tenant = (await svc.find(id))?.serviceTenant;
|
|
270
308
|
await cfg.audit?.record({
|
|
271
309
|
type: 'client.updated',
|
|
272
310
|
clientId: id,
|
|
273
311
|
ip: null,
|
|
274
|
-
metadata: {
|
|
312
|
+
metadata: {
|
|
313
|
+
actor: 'admin-api',
|
|
314
|
+
action: 'regenerate_secret',
|
|
315
|
+
...(tenant ? { partition: tenant.partition } : {}),
|
|
316
|
+
},
|
|
275
317
|
});
|
|
276
318
|
return { clientId: id, clientSecret: secret };
|
|
277
319
|
},
|
|
320
|
+
disable: (id) => setClientDisabled(id, true),
|
|
321
|
+
enable: (id) => setClientDisabled(id, false),
|
|
278
322
|
async delete(id) {
|
|
279
323
|
const svc = new AdminClientsService(service);
|
|
280
324
|
await svc.delete(id);
|
|
@@ -112,6 +112,12 @@ export function createRemoteAuthkit(opts) {
|
|
|
112
112
|
regenerateSecret(id) {
|
|
113
113
|
return request('POST', `/clients/${encodeURIComponent(id)}/regenerate-secret`);
|
|
114
114
|
},
|
|
115
|
+
disable(id) {
|
|
116
|
+
return request('POST', `/clients/${encodeURIComponent(id)}/disable`);
|
|
117
|
+
},
|
|
118
|
+
enable(id) {
|
|
119
|
+
return request('POST', `/clients/${encodeURIComponent(id)}/enable`);
|
|
120
|
+
},
|
|
115
121
|
delete(id) {
|
|
116
122
|
return request('DELETE', `/clients/${encodeURIComponent(id)}`);
|
|
117
123
|
},
|
package/build/src/types.d.ts
CHANGED
|
@@ -119,10 +119,21 @@ export interface RevokeSessionsResult {
|
|
|
119
119
|
export interface AuthkitClient {
|
|
120
120
|
clientId: string;
|
|
121
121
|
confidential: boolean;
|
|
122
|
-
|
|
122
|
+
grantTypes: string[];
|
|
123
123
|
redirectUris: string[];
|
|
124
124
|
postLogoutRedirectUris: string[];
|
|
125
125
|
tokenEndpointAuthMethod: string;
|
|
126
|
+
/** Registered `client_name`, or `null`. */
|
|
127
|
+
clientName: string | null;
|
|
128
|
+
/** Registered `logo_uri`, or `null`. */
|
|
129
|
+
logoUri: string | null;
|
|
130
|
+
/** Disabled clients get no tokens until enabled again. */
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
/** Service-tenant settings, or `null` for a regular client. */
|
|
133
|
+
serviceTenant: {
|
|
134
|
+
partition: string;
|
|
135
|
+
capabilities: string[];
|
|
136
|
+
} | null;
|
|
126
137
|
}
|
|
127
138
|
export interface ListClientsResult {
|
|
128
139
|
data: AuthkitClient[];
|
|
@@ -135,6 +146,14 @@ export interface ClientInput {
|
|
|
135
146
|
postLogoutRedirectUris?: string[];
|
|
136
147
|
grantTypes?: string[];
|
|
137
148
|
tokenEndpointAuthMethod?: TokenEndpointAuthMethod;
|
|
149
|
+
/**
|
|
150
|
+
* Makes the client a service tenant (confidential, `client_credentials` only, no
|
|
151
|
+
* redirect URIs). On update, `null` turns it back into a regular client.
|
|
152
|
+
*/
|
|
153
|
+
serviceTenant?: {
|
|
154
|
+
partition: string;
|
|
155
|
+
capabilities?: string[];
|
|
156
|
+
} | null;
|
|
138
157
|
}
|
|
139
158
|
/** Created/regenerated client — the secret is shown ONCE (`createdClientDto`). */
|
|
140
159
|
export interface AuthkitCreatedClient {
|
|
@@ -377,6 +396,9 @@ export interface Authkit {
|
|
|
377
396
|
create(input: ClientInput): Promise<AuthkitCreatedClient>;
|
|
378
397
|
update(id: string, input: ClientInput): Promise<AuthkitClient>;
|
|
379
398
|
regenerateSecret(id: string): Promise<RegeneratedSecret>;
|
|
399
|
+
/** Stops issuing tokens to the client (`invalid_client`) until `enable`. */
|
|
400
|
+
disable(id: string): Promise<AuthkitClient>;
|
|
401
|
+
enable(id: string): Promise<AuthkitClient>;
|
|
380
402
|
delete(id: string): Promise<DeletedClient>;
|
|
381
403
|
};
|
|
382
404
|
audit: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/authkit-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "Backend SDK for the AuthKit Admin API with one typed interface and two drivers: remote (HTTP/Bearer) and embedded (in-process when the IdP runs in the same AdonisJS app).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dudousxd",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/DavideCarvalho/adonis-agora-authkit.git",
|
|
9
|
+
"url": "git+https://github.com/DavideCarvalho/adonis-agora-authkit.git",
|
|
10
10
|
"directory": "packages/authkit-sdk"
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://davidecarvalho.github.io/agora/docs/authkit",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"main": "./build/index.js",
|
|
29
29
|
"types": "./build/index.d.ts",
|
|
30
30
|
"files": [
|
|
31
|
-
"build"
|
|
31
|
+
"build",
|
|
32
|
+
"CHANGELOG.md"
|
|
32
33
|
],
|
|
33
34
|
"exports": {
|
|
34
35
|
".": "./build/index.js",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"node": ">=24"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@adonis-agora/authkit-server": ">=0.10.0 <1.0.0",
|
|
42
|
+
"@adonis-agora/authkit-server": ">=0.10.0 <2.0.0 || >=1.0.0-rc.0 <2.0.0",
|
|
42
43
|
"@adonisjs/core": "^7.5.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependenciesMeta": {
|
|
@@ -50,13 +51,13 @@
|
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@adonis-agora/authkit-server": "0.
|
|
54
|
-
"@adonisjs/core": "7.
|
|
54
|
+
"@adonis-agora/authkit-server": "1.0.0-rc.3",
|
|
55
|
+
"@adonisjs/core": "7.6.0",
|
|
55
56
|
"@adonisjs/tsconfig": "2.0.0",
|
|
56
57
|
"@japa/assert": "4.2.0",
|
|
57
|
-
"@japa/runner": "5.
|
|
58
|
-
"@poppinss/ts-exec": "1.
|
|
59
|
-
"@types/node": "26.
|
|
58
|
+
"@japa/runner": "5.4.0",
|
|
59
|
+
"@poppinss/ts-exec": "1.5.2",
|
|
60
|
+
"@types/node": "26.6.6",
|
|
60
61
|
"typescript": "7.0.2"
|
|
61
62
|
},
|
|
62
63
|
"scripts": {
|