@crvouga/mockingbird-service-twilio 2.0.0 → 2.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/CHANGELOG.md +24 -4
- package/README.md +2 -0
- package/SUPPORT.md +4 -3
- package/dist/{chunk-7KG7ZZ2M.js → chunk-GTSJHMZV.js} +2 -2
- package/dist/chunk-JTHJGMYU.js +4729 -0
- package/dist/chunk-JTHJGMYU.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +98 -0
- package/package.json +4 -3
- package/dist/chunk-NIWWXE3O.js +0 -6809
- package/dist/chunk-NIWWXE3O.js.map +0 -7
- /package/dist/{chunk-7KG7ZZ2M.js.map → chunk-GTSJHMZV.js.map} +0 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1013,10 +1013,10 @@ type OpenAPIDocument = {
|
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
1015
|
declare const document: OpenAPIDocument;
|
|
1016
|
-
type OperationId = "FetchPhoneNumber" | "CreateVerification" | "FetchVerification" | "UpdateVerification" | "CreateVerificationCheck" | "CreateMessage" | "FetchMessage" | "FetchRecordingMedia" | "FetchRecording" | "DeleteRecording";
|
|
1017
|
-
type SupportedOperationId = "FetchPhoneNumber" | "CreateVerification" | "FetchVerification" | "UpdateVerification" | "CreateVerificationCheck" | "CreateMessage" | "FetchMessage" | "FetchRecordingMedia" | "FetchRecording" | "DeleteRecording";
|
|
1018
|
-
declare const operationIds: readonly ["FetchPhoneNumber", "CreateVerification", "FetchVerification", "UpdateVerification", "CreateVerificationCheck", "CreateMessage", "FetchMessage", "FetchRecordingMedia", "FetchRecording", "DeleteRecording"];
|
|
1019
|
-
declare const supportedOperationIds: readonly ["FetchPhoneNumber", "CreateVerification", "FetchVerification", "UpdateVerification", "CreateVerificationCheck", "CreateMessage", "FetchMessage", "FetchRecordingMedia", "FetchRecording", "DeleteRecording"];
|
|
1016
|
+
type OperationId = "FetchPhoneNumber" | "CreateVerification" | "FetchVerification" | "UpdateVerification" | "CreateVerificationCheck" | "ListMessages" | "CreateMessage" | "FetchMessage" | "FetchRecordingMedia" | "FetchRecording" | "DeleteRecording";
|
|
1017
|
+
type SupportedOperationId = "FetchPhoneNumber" | "CreateVerification" | "FetchVerification" | "UpdateVerification" | "CreateVerificationCheck" | "ListMessages" | "CreateMessage" | "FetchMessage" | "FetchRecordingMedia" | "FetchRecording" | "DeleteRecording";
|
|
1018
|
+
declare const operationIds: readonly ["FetchPhoneNumber", "CreateVerification", "FetchVerification", "UpdateVerification", "CreateVerificationCheck", "ListMessages", "CreateMessage", "FetchMessage", "FetchRecordingMedia", "FetchRecording", "DeleteRecording"];
|
|
1019
|
+
declare const supportedOperationIds: readonly ["FetchPhoneNumber", "CreateVerification", "FetchVerification", "UpdateVerification", "CreateVerificationCheck", "ListMessages", "CreateMessage", "FetchMessage", "FetchRecordingMedia", "FetchRecording", "DeleteRecording"];
|
|
1020
1020
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Routing Twilio's per-product hosts onto one mock origin.
|
|
@@ -1226,6 +1226,7 @@ declare class TwilioAPI implements FetchAPI$1 {
|
|
|
1226
1226
|
private createVerificationCheck;
|
|
1227
1227
|
private createMessage;
|
|
1228
1228
|
private fetchMessage;
|
|
1229
|
+
private listMessages;
|
|
1229
1230
|
private findRecording;
|
|
1230
1231
|
private fetchRecordingMedia;
|
|
1231
1232
|
private recordingBody;
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -1506,6 +1506,7 @@ declare class TwilioAPI implements FetchAPI {
|
|
|
1506
1506
|
private createVerificationCheck;
|
|
1507
1507
|
private createMessage;
|
|
1508
1508
|
private fetchMessage;
|
|
1509
|
+
private listMessages;
|
|
1509
1510
|
private findRecording;
|
|
1510
1511
|
private fetchRecordingMedia;
|
|
1511
1512
|
private recordingBody;
|
package/dist/server.js
CHANGED
package/openapi.yaml
CHANGED
|
@@ -277,6 +277,104 @@ paths:
|
|
|
277
277
|
/api/2010-04-01/Accounts/{AccountSid}/Messages.json:
|
|
278
278
|
parameters:
|
|
279
279
|
- $ref: "#/components/parameters/AccountSid"
|
|
280
|
+
get:
|
|
281
|
+
operationId: ListMessages
|
|
282
|
+
x-mockingbird:
|
|
283
|
+
supported: true
|
|
284
|
+
parity:
|
|
285
|
+
enabled: true
|
|
286
|
+
safe: true
|
|
287
|
+
parameters:
|
|
288
|
+
- name: PageSize
|
|
289
|
+
in: query
|
|
290
|
+
schema:
|
|
291
|
+
type: integer
|
|
292
|
+
minimum: 1
|
|
293
|
+
maximum: 1000
|
|
294
|
+
- name: Page
|
|
295
|
+
in: query
|
|
296
|
+
schema:
|
|
297
|
+
type: integer
|
|
298
|
+
minimum: 0
|
|
299
|
+
- name: PageToken
|
|
300
|
+
in: query
|
|
301
|
+
schema:
|
|
302
|
+
type: string
|
|
303
|
+
- name: To
|
|
304
|
+
in: query
|
|
305
|
+
schema:
|
|
306
|
+
type: string
|
|
307
|
+
- name: From
|
|
308
|
+
in: query
|
|
309
|
+
schema:
|
|
310
|
+
type: string
|
|
311
|
+
responses:
|
|
312
|
+
"200":
|
|
313
|
+
description: Message resources in newest-first order
|
|
314
|
+
content:
|
|
315
|
+
application/json:
|
|
316
|
+
schema:
|
|
317
|
+
type: object
|
|
318
|
+
required: [messages, page, page_size, start, end, uri, first_page_uri, next_page_uri, previous_page_uri]
|
|
319
|
+
properties:
|
|
320
|
+
messages:
|
|
321
|
+
type: array
|
|
322
|
+
items:
|
|
323
|
+
$ref: "#/components/schemas/Message"
|
|
324
|
+
page:
|
|
325
|
+
type: integer
|
|
326
|
+
page_size:
|
|
327
|
+
type: integer
|
|
328
|
+
start:
|
|
329
|
+
type: integer
|
|
330
|
+
end:
|
|
331
|
+
type: integer
|
|
332
|
+
uri:
|
|
333
|
+
type: string
|
|
334
|
+
x-mockingbird-volatile:
|
|
335
|
+
kind: url
|
|
336
|
+
first_page_uri:
|
|
337
|
+
type: string
|
|
338
|
+
x-mockingbird-volatile:
|
|
339
|
+
kind: url
|
|
340
|
+
next_page_uri:
|
|
341
|
+
type: ["string", "null"]
|
|
342
|
+
x-mockingbird-volatile:
|
|
343
|
+
kind: url
|
|
344
|
+
previous_page_uri:
|
|
345
|
+
type: ["string", "null"]
|
|
346
|
+
x-mockingbird-volatile:
|
|
347
|
+
kind: url
|
|
348
|
+
"400":
|
|
349
|
+
description: Request rejected
|
|
350
|
+
content:
|
|
351
|
+
application/json:
|
|
352
|
+
schema:
|
|
353
|
+
$ref: "#/components/schemas/Error"
|
|
354
|
+
"401":
|
|
355
|
+
description: Request rejected
|
|
356
|
+
content:
|
|
357
|
+
application/json:
|
|
358
|
+
schema:
|
|
359
|
+
$ref: "#/components/schemas/Error"
|
|
360
|
+
"404":
|
|
361
|
+
description: Request rejected
|
|
362
|
+
content:
|
|
363
|
+
application/json:
|
|
364
|
+
schema:
|
|
365
|
+
$ref: "#/components/schemas/Error"
|
|
366
|
+
"429":
|
|
367
|
+
description: Request rejected
|
|
368
|
+
content:
|
|
369
|
+
application/json:
|
|
370
|
+
schema:
|
|
371
|
+
$ref: "#/components/schemas/Error"
|
|
372
|
+
"500":
|
|
373
|
+
description: Request rejected
|
|
374
|
+
content:
|
|
375
|
+
application/json:
|
|
376
|
+
schema:
|
|
377
|
+
$ref: "#/components/schemas/Error"
|
|
280
378
|
post:
|
|
281
379
|
operationId: CreateMessage
|
|
282
380
|
x-mockingbird:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-twilio",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
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).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@crvouga/mockingbird-service-sqlite": "2.
|
|
107
|
+
"@crvouga/mockingbird-service-sqlite": "2.1.0",
|
|
108
108
|
"hono": "4.11.9",
|
|
109
109
|
"libphonenumber-js": "1.13.4"
|
|
110
110
|
},
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"@crvouga/mockingbird-service": "0.0.0-development",
|
|
123
123
|
"@crvouga/mockingbird-http-codec": "0.0.0-development",
|
|
124
124
|
"@crvouga/mockingbird-adapter-node": "0.0.0-development",
|
|
125
|
-
"twilio": "5.10.0"
|
|
125
|
+
"twilio": "5.10.0",
|
|
126
|
+
"twilio-reconciliation": "npm:twilio@5.13.1"
|
|
126
127
|
}
|
|
127
128
|
}
|