@crvouga/mockingbird-service-twilio 3.0.0 → 3.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-twilio",
3
- "version": "3.0.0",
4
- "description": "Stateful mock of Twilio Verify, Lookup v2, Messaging and Recordings on one port, with signed inbound SMS and voice webhooks (Mockingbird service contract).",
3
+ "version": "3.2.0",
4
+ "description": "Stateful emulator of Twilio Verify, Lookup v2, Messaging and Recordings on one port, with signed inbound SMS and voice webhooks (Mockingbird service contract).",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": false,
@@ -11,7 +11,11 @@
11
11
  "CHANGELOG.md",
12
12
  "DISCOVERY.md",
13
13
  "SUPPORT.md",
14
- "openapi.yaml"
14
+ "openapi.yaml",
15
+ "LICENSE_EMULATE",
16
+ "THIRD_PARTY_NOTICES.md",
17
+ "routes.json",
18
+ "API_EVIDENCE.md"
15
19
  ],
16
20
  "main": "./dist/index.js",
17
21
  "types": "./dist/index.d.ts",
@@ -46,7 +50,7 @@
46
50
  "otp",
47
51
  "lookup",
48
52
  "sms",
49
- "mock"
53
+ "emulator"
50
54
  ],
51
55
  "mockingbird": {
52
56
  "runtime": "portable",
@@ -104,9 +108,13 @@
104
108
  "pack:check": "bun ../../../scripts/pack-check.ts"
105
109
  },
106
110
  "dependencies": {
107
- "@crvouga/mockingbird-service-sqlite": "3.0.0",
111
+ "@crvouga/mockingbird-service-sqlite": "3.2.0",
108
112
  "hono": "4.11.9",
109
- "libphonenumber-js": "1.13.4"
113
+ "libphonenumber-js": "1.13.4",
114
+ "buffer": "6.0.3",
115
+ "@noble/hashes": "2.4.0",
116
+ "jose": "6.2.2",
117
+ "graphql": "17.0.0"
110
118
  },
111
119
  "devDependencies": {
112
120
  "fast-check": "4.9.0",
@@ -123,6 +131,7 @@
123
131
  "@crvouga/mockingbird-http-codec": "0.0.0-development",
124
132
  "@crvouga/mockingbird-adapter-node": "0.0.0-development",
125
133
  "twilio": "5.10.0",
126
- "twilio-reconciliation": "npm:twilio@5.13.1"
134
+ "twilio-reconciliation": "npm:twilio@5.13.1",
135
+ "@crvouga/mockingbird-http-provider": "0.0.0-development"
127
136
  }
128
137
  }
package/routes.json ADDED
@@ -0,0 +1,58 @@
1
+ [
2
+ "DELETE /2010-04-01/Accounts/:accountSid/Calls/:callSid.json",
3
+ "DELETE /2010-04-01/Accounts/:accountSid/IncomingPhoneNumbers/:sid.json",
4
+ "DELETE /2010-04-01/Accounts/:accountSid/Messages/:messageSid.json",
5
+ "DELETE /conversations/v1/Services/:serviceSid/Conversations/:conversationSid",
6
+ "DELETE /messaging/v1/Services/:serviceSid",
7
+ "DELETE /messaging/v1/Services/:serviceSid/PhoneNumbers/:sid",
8
+ "DELETE /verify/v2/Services/:serviceSid",
9
+ "GET /",
10
+ "GET /2010-04-01/Accounts.json",
11
+ "GET /2010-04-01/Accounts/:accountSid.json",
12
+ "GET /2010-04-01/Accounts/:accountSid/Calls.json",
13
+ "GET /2010-04-01/Accounts/:accountSid/Calls/:callSid.json",
14
+ "GET /2010-04-01/Accounts/:accountSid/IncomingPhoneNumbers.json",
15
+ "GET /2010-04-01/Accounts/:accountSid/IncomingPhoneNumbers/:sid.json",
16
+ "GET /2010-04-01/Accounts/:accountSid/Messages.json",
17
+ "GET /2010-04-01/Accounts/:accountSid/Messages/:messageSid.json",
18
+ "GET /2010-04-01/Accounts/:accountSid/Messages/:messageSid/Media.json",
19
+ "GET /2010-04-01/Accounts/:accountSid/Messages/:messageSid/Media/:mediaSid.json",
20
+ "GET /_twilio/simulate/verification-code",
21
+ "GET /conversations/v1/Services",
22
+ "GET /conversations/v1/Services/:serviceSid",
23
+ "GET /conversations/v1/Services/:serviceSid/Conversations",
24
+ "GET /conversations/v1/Services/:serviceSid/Conversations/:conversationSid",
25
+ "GET /conversations/v1/Services/:serviceSid/Conversations/:conversationSid/Messages",
26
+ "GET /conversations/v1/Services/:serviceSid/Conversations/:conversationSid/Participants",
27
+ "GET /messaging/v1/Services",
28
+ "GET /messaging/v1/Services/:serviceSid",
29
+ "GET /messaging/v1/Services/:serviceSid/PhoneNumbers",
30
+ "GET /verify/v2/Services",
31
+ "GET /verify/v2/Services/:serviceSid",
32
+ "GET /verify/v2/Services/:serviceSid/Verifications/:verificationSid",
33
+ "POST /2010-04-01/Accounts/:accountSid.json",
34
+ "POST /2010-04-01/Accounts/:accountSid/Calls.json",
35
+ "POST /2010-04-01/Accounts/:accountSid/Calls/:callSid.json",
36
+ "POST /2010-04-01/Accounts/:accountSid/IncomingPhoneNumbers.json",
37
+ "POST /2010-04-01/Accounts/:accountSid/IncomingPhoneNumbers/:sid.json",
38
+ "POST /2010-04-01/Accounts/:accountSid/Messages.json",
39
+ "POST /2010-04-01/Accounts/:accountSid/Messages/:messageSid.json",
40
+ "POST /_twilio/simulate/call-status",
41
+ "POST /_twilio/simulate/inbound-call",
42
+ "POST /_twilio/simulate/inbound-message",
43
+ "POST /_twilio/simulate/message-status",
44
+ "POST /_twilio/simulate/verification-status",
45
+ "POST /conversations/v1/Services",
46
+ "POST /conversations/v1/Services/:serviceSid/Conversations",
47
+ "POST /conversations/v1/Services/:serviceSid/Conversations/:conversationSid",
48
+ "POST /conversations/v1/Services/:serviceSid/Conversations/:conversationSid/Messages",
49
+ "POST /conversations/v1/Services/:serviceSid/Conversations/:conversationSid/Participants",
50
+ "POST /messaging/v1/Services",
51
+ "POST /messaging/v1/Services/:serviceSid",
52
+ "POST /messaging/v1/Services/:serviceSid/PhoneNumbers",
53
+ "POST /verify/v2/Services",
54
+ "POST /verify/v2/Services/:serviceSid",
55
+ "POST /verify/v2/Services/:serviceSid/VerificationCheck",
56
+ "POST /verify/v2/Services/:serviceSid/Verifications",
57
+ "POST /verify/v2/Services/:serviceSid/Verifications/:verificationSid"
58
+ ]