@crvouga/mockingbird-service-twilio 2.1.0 → 2.3.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 +33 -4
- package/README.md +2 -0
- package/SUPPORT.md +4 -3
- package/dist/chunk-CISL3MO3.js +4784 -0
- package/dist/chunk-CISL3MO3.js.map +7 -0
- package/dist/{chunk-WLSA4EV6.js → chunk-G56PGCLO.js} +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +142 -137
- package/dist/index.js +1 -1
- package/dist/server.d.ts +261 -252
- package/dist/server.js +2 -2
- package/openapi.yaml +98 -0
- package/package.json +4 -3
- package/dist/chunk-I5WWNGOK.js +0 -4615
- package/dist/chunk-I5WWNGOK.js.map +0 -7
- /package/dist/{chunk-WLSA4EV6.js.map → chunk-G56PGCLO.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-twilio
|
|
2
2
|
|
|
3
|
+
## 2.3.0 (2026-10-05)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- compose mock admin APIs ([952bd1f](https://github.com/crvouga/mockingbird/commit/952bd1f679bd442c9a5348a0d9c4d40ad0ac165c))
|
|
8
|
+
- add Fargate task acceptance mock ([f65fc3f](https://github.com/crvouga/mockingbird/commit/f65fc3f293b2fdb41fd45dd1693a5420c6a5109a))
|
|
9
|
+
- keep resource views live ([82c80e1](https://github.com/crvouga/mockingbird/commit/82c80e110b4aa551a17d0ee451c5d08167755267))
|
|
10
|
+
- add LocalStack free tier mocks ([84b7d0c](https://github.com/crvouga/mockingbird/commit/84b7d0ccf4acc7257bb3c3b466a38e30d5b4ab33))
|
|
11
|
+
- implement github reference semantics ([10143e8](https://github.com/crvouga/mockingbird/commit/10143e8364905d77ccfa188d8b6573b1f1003c56))
|
|
12
|
+
- implement docker attach upgrade handshake ([39ad1a3](https://github.com/crvouga/mockingbird/commit/39ad1a39b47aeb423b11bc96230d59f1f5985fa0))
|
|
13
|
+
- preserve accepted docker mutations across response loss ([c2b2d7d](https://github.com/crvouga/mockingbird/commit/c2b2d7dafffe653b3ae9667ec5019d342a68e802))
|
|
14
|
+
|
|
15
|
+
### Fixes and improvements
|
|
16
|
+
|
|
17
|
+
- reconcile combined PR integration ([124d5be](https://github.com/crvouga/mockingbird/commit/124d5bed7576535ff481ce6da7d2369957799665))
|
|
18
|
+
- preserve inferred form headers ([02bdd28](https://github.com/crvouga/mockingbird/commit/02bdd2806a9a934607ecd7ffd0cfbe4f6ba80c91))
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
23
|
+
|
|
24
|
+
## 2.2.0 (2026-10-04)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- add scripted local API mock ([4a76a11](https://github.com/crvouga/mockingbird/commit/4a76a114e2efad45934e0a93cf29576fd418e15c))
|
|
29
|
+
- list Messages with SDK pagination ([d5cff54](https://github.com/crvouga/mockingbird/commit/d5cff5444878cdcd0177eddd5b8c598a7564478e))
|
|
30
|
+
|
|
31
|
+
### Fixes and improvements
|
|
32
|
+
|
|
33
|
+
- support embedded route parameters ([127cad9](https://github.com/crvouga/mockingbird/commit/127cad997ef106950c1b866070eea191ba54403f))
|
|
34
|
+
- preserve namespace URLs after main sync ([62a15ce](https://github.com/crvouga/mockingbird/commit/62a15ce9bd453069bde69e3a30c91efc01f8871b))
|
|
35
|
+
|
|
3
36
|
## 2.1.0 (2026-10-04)
|
|
4
37
|
|
|
5
38
|
### Features
|
|
@@ -12,10 +45,6 @@
|
|
|
12
45
|
- fill the embedded viewport ([c1a35a4](https://github.com/crvouga/mockingbird/commit/c1a35a4789389ee9cd06c286d09bd47c4d06c71e))
|
|
13
46
|
- make dialog cleanup immediate ([0c1a3c5](https://github.com/crvouga/mockingbird/commit/0c1a3c5b12584d50c19dcae595b951b8e5417b9c))
|
|
14
47
|
|
|
15
|
-
### Dependencies
|
|
16
|
-
|
|
17
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
18
|
-
|
|
19
48
|
## 2.0.0 (2026-10-04)
|
|
20
49
|
|
|
21
50
|
### ⚠️ Breaking changes
|
package/README.md
CHANGED
|
@@ -92,6 +92,7 @@ const { code, sid, status } = (await latest.json()) as { code: string; sid: stri
|
|
|
92
92
|
| `GET` / `POST /verify/v2/Services/{VA}/Verifications/{VE}` | Fetches a verification, or sets `Status=canceled\|approved` on one. |
|
|
93
93
|
| `POST /api/2010-04-01/Accounts/{AC}/Messages.json` | `To`, `Body` or `MediaUrl`, and `From` or `MessagingServiceSid`. Returns 201 with an `SM…` sid (`MM…` with media) and RFC 2822 dates. `MessagingServiceSid` alone is status `accepted`, `from: null`, `num_segments: "0"` (a sender is not chosen yet). `From` alone is status `queued`. Both are kept and the status is `queued` (Twilio queues on a specific sender). There is no idempotency key: the same body creates another sid. Errors: 21604 (no To), 21602 (no Body), 21603 (no From), 21211 (invalid To), 21617 (over 1600 characters). The message is recorded in the outbox. |
|
|
94
94
|
| `GET /api/2010-04-01/Accounts/{AC}/Messages/{SM}.json` | Reads a message back. |
|
|
95
|
+
| `GET /api/2010-04-01/Accounts/{AC}/Messages.json` | Newest-first Message resources for that account. `PageSize` defaults to 50 (1–1000), `PageToken` follows `next_page_uri`/`previous_page_uri`; `Page` is client state. Links keep the vendor path without `/api`, so apply the normal product-prefix rewrite. `To` and `From` filter stored resources. |
|
|
95
96
|
| `GET /api/2010-04-01/Accounts/{AC}/Recordings/{RE}.wav` | The recording as a RIFF WAV. With `RequestedChannels=2` you get both channels. Otherwise a dual-channel recording is mixed down to mono, as Twilio does. |
|
|
96
97
|
| `GET` / `DELETE /api/2010-04-01/Accounts/{AC}/Recordings/{RE}.json` | Metadata, or a delete (204; a second delete is 404, which our consumer tolerates). |
|
|
97
98
|
|
|
@@ -145,6 +146,7 @@ can also come from the `x-mockingbird-namespace` header or a `/__admin/ns/<name>
|
|
|
145
146
|
|
|
146
147
|
- Delivery: messages stay `queued`/`accepted`, no status callbacks are sent (our consumer sets no
|
|
147
148
|
`statusCallback`), and no voice calls, conferences or media streams happen.
|
|
149
|
+
- Message collection `DateSent` filters (messages are never sent by the mock).
|
|
148
150
|
- Paid Lookup data packages (`Fields=line_type_intelligence`, `caller_name`, …) are always
|
|
149
151
|
`null`.
|
|
150
152
|
- Verify channels other than SMS are accepted and recorded, but nothing is delivered. Verify
|
package/SUPPORT.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `openapi.yaml`; do not edit by hand.
|
|
4
4
|
|
|
5
|
-
- operations in spec: **
|
|
6
|
-
- supported by the mock: **
|
|
7
|
-
- parity enabled: **
|
|
5
|
+
- operations in spec: **11**
|
|
6
|
+
- supported by the mock: **11**
|
|
7
|
+
- parity enabled: **11**
|
|
8
8
|
|
|
9
9
|
| operationId | route | mock | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
@@ -13,6 +13,7 @@ Generated from `openapi.yaml`; do not edit by hand.
|
|
|
13
13
|
| `FetchVerification` | `GET /verify/v2/Services/{ServiceSid}/Verifications/{Sid}` | ✅ supported | ✅ | |
|
|
14
14
|
| `UpdateVerification` | `POST /verify/v2/Services/{ServiceSid}/Verifications/{Sid}` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
15
15
|
| `CreateVerificationCheck` | `POST /verify/v2/Services/{ServiceSid}/VerificationCheck` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
16
|
+
| `ListMessages` | `GET /api/2010-04-01/Accounts/{AccountSid}/Messages.json` | ✅ supported | ✅ | |
|
|
16
17
|
| `CreateMessage` | `POST /api/2010-04-01/Accounts/{AccountSid}/Messages.json` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
17
18
|
| `FetchMessage` | `GET /api/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json` | ✅ supported | ✅ | |
|
|
18
19
|
| `FetchRecordingMedia` | `GET /api/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.wav` | ✅ supported | ✅ | |
|