@crvouga/mockingbird-service-cognito 3.13.0 → 3.14.0
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 +10 -0
- package/README.md +5 -4
- package/dist/{chunk-H5BSIL4E.js → admin-ui.js} +13 -6387
- package/dist/admin-ui.js.map +7 -0
- package/dist/chunk-7JVYABWD.js +6556 -0
- package/dist/chunk-7JVYABWD.js.map +7 -0
- package/dist/chunk-B52AI6ZH.js +7 -0
- package/dist/chunk-B52AI6ZH.js.map +7 -0
- package/dist/{chunk-MPP6MLCH.js → chunk-ZL5JEUFF.js} +4 -4
- package/dist/{chunk-MPP6MLCH.js.map → chunk-ZL5JEUFF.js.map} +1 -1
- package/dist/cli.js +3 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +71 -2
- package/dist/index.js +4 -1
- package/dist/server.js +3 -2
- package/package.json +1 -1
- package/dist/chunk-H5BSIL4E.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-cognito
|
|
2
2
|
|
|
3
|
+
## 3.14.0 (2026-11-12)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- record delivered messages and show them in notifications ([b280c32](https://github.com/crvouga/mockingbird/commit/b280c32ec3e7f22f2c354747ab5193067290c26b))
|
|
8
|
+
|
|
9
|
+
### Fixes and improvements
|
|
10
|
+
|
|
11
|
+
- document COGNITO_DEFAULT_SENDER ([302364d](https://github.com/crvouga/mockingbird/commit/302364de1917310e693dde783f2b26efe94b192a))
|
|
12
|
+
|
|
3
13
|
## 3.13.0 (2026-11-12)
|
|
4
14
|
|
|
5
15
|
### Features
|
package/README.md
CHANGED
|
@@ -78,7 +78,8 @@ The hosted-UI domain is the emulator's own origin (plus the `/__admin/ns/<name>`
|
|
|
78
78
|
### Admin and deterministic controls
|
|
79
79
|
|
|
80
80
|
- `GET/POST /__admin/users` lists redacted users or seeds one. Passwords and tokens are never returned.
|
|
81
|
-
- `GET /__admin/codes?username=…` returns
|
|
81
|
+
- `GET /__admin/codes?username=…` returns a user's current confirmation/reset codes; without `username` it is a 400.
|
|
82
|
+
- `GET /__admin/outbox` lists every message Cognito delivered, oldest first (filters `to`, `since`, `limit`, `channel` = `email`/`sms`, `trigger`, `username`; `GET /__admin/outbox/:id` reads one). SignUp, ResendConfirmationCode and ForgotPassword send Cognito's default verification message (`no-reply@verificationemail.com`, subject `Your verification code`, body `Your verification code is <code>.`) to the user's `email`, or by SMS to `phone_number` when the user has no email, and `CodeDeliveryDetails` names that medium. AdminCreateUser sends the default invitation (`Your username is <username> and temporary password is <password>.`) over `DesiredDeliveryMediums` (SMS by default, email for a user without `phone_number`) unless `MessageAction` is `SUPPRESS`. Each entry has `to`, `channel`, `deliveryMedium`, `attributeName`, `username`, `trigger`, `code`, `from`, `subject`, `body` and `createdAt`. Custom message templates are not modelled. Run the [notifications harness](../../notifications/README.md) against the pool to see these on a phone and webmail screen and finish sign-up from there.
|
|
82
83
|
- `POST /__admin/sessions/revoke {"username":"…"}` invalidates access and refresh sessions.
|
|
83
84
|
- `POST /__admin/hosted-ui/next-account {"username":"…"}` picks the hosted UI's next account; `GET/POST /__admin/app-clients` lists or registers hosted-UI app clients.
|
|
84
85
|
- `POST /__admin/keys/rotate {"retainPrevious":true}` rotates signing keys and retains at most two prior keys. As in Cognito, ID and access tokens are signed with different keys, so the JWKS lists one key of each kind per generation and rotation replaces both (the response names them `kid` and `accessKid`). Every new key receives a fresh random UUID `kid`, independently of the virtual clock. Reset starts a fresh key ring.
|
|
@@ -90,7 +91,7 @@ The shared runtime supplies reset, clock, snapshots, journals, metrics, faults,
|
|
|
90
91
|
|
|
91
92
|
Use `fixtures: { users: [...] }` in a fleet service entry, or `options: { fixtures: "./synthetic-users.json" }` for an explicit JSON file containing the same object. The standalone CLI accepts `--fixtures ./synthetic-users.json`. Each user requires `username` and `password`; optional `sub`, `confirmed`, `enabled`, `status`, `createdAt`, attributes, groups, linked identities and inspection codes match the in-process seed fields. Invalid fields, duplicate usernames/subjects/email aliases and conflicting identities fail with field paths before readiness. Diagnostics omit values. Fixture identity objects accept Cognito identity claim fields and the supported provider-link fields, rather than arbitrary nested objects.
|
|
92
93
|
|
|
93
|
-
Fixtures form the reset baseline for every independent namespace. Importing a snapshot replaces saved state, including deleted fixture users, without reseeding. Synthetic passwords stay in private state/archives; user admin responses redact passwords, session data and inspection codes. Codes remain available only from `/__admin/codes`.
|
|
94
|
+
Fixtures form the reset baseline for every independent namespace. Importing a snapshot replaces saved state, including deleted fixture users, without reseeding. Synthetic passwords stay in private state/archives; user admin responses redact passwords, session data and inspection codes. Codes remain available only from `/__admin/codes` and the delivered messages in `/__admin/outbox`.
|
|
94
95
|
|
|
95
96
|
| Surface | Public origin and path prefix | Namespace isolation |
|
|
96
97
|
| --- | --- | --- |
|
|
@@ -106,13 +107,13 @@ Current and retained synthetic signing keys live in namespace storage, so namesp
|
|
|
106
107
|
|
|
107
108
|
### Deliberately not modelled
|
|
108
109
|
|
|
109
|
-
Operations outside the documented subset, production quotas, email/SMS delivery, MFA, Lambda triggers, device tracking, Cognito Identity Pools, AWS billing, dashboards, and outbound vendor calls are not implemented. The hosted UI renders an emulator account picker instead of Cognito's managed login pages or the real Google/Apple pages (see Hosted UI above for the unmodelled parameters and grants).
|
|
110
|
+
Operations outside the documented subset, production quotas, real email/SMS delivery (messages are recorded in `/__admin/outbox` instead), custom message templates, MFA, Lambda triggers, device tracking, Cognito Identity Pools, AWS billing, dashboards, and outbound vendor calls are not implemented. The hosted UI renders an emulator account picker instead of Cognito's managed login pages or the real Google/Apple pages (see Hosted UI above for the unmodelled parameters and grants).
|
|
110
111
|
|
|
111
112
|
## API
|
|
112
113
|
|
|
113
114
|
- `CognitoAPI`, `CognitoAPIOptions`: AWS JSON handler and options.
|
|
114
115
|
- `createRuntime`, `CognitoRuntime`, `CognitoRuntimeOptions`: full Mockingbird service runtime.
|
|
115
|
-
- `COGNITO_NAMESPACE`, `COGNITO_PRESETS`, `accessKeyCredential`: service constants and controls.
|
|
116
|
+
- `COGNITO_NAMESPACE`, `COGNITO_PRESETS`, `COGNITO_DEFAULT_SENDER`, `accessKeyCredential`: service constants and controls (`COGNITO_DEFAULT_SENDER` is the `from` address on delivered email codes).
|
|
116
117
|
- `CognitoAttribute`, `CognitoSeedUser`, `CognitoUser`, `CognitoFixtures`: state and fixture types.
|
|
117
118
|
- `document`, `operationIds`, `supportedOperationIds`: generated OpenAPI metadata.
|
|
118
119
|
- `createServer`, `CognitoServerOptions`, `DEFAULT_PORT`, `serveTarget` from `./server`: Node HTTP adapter and CLI integration.
|