@pipedream/twilio 0.6.1 → 0.6.3
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/actions/check-verification-token/check-verification-token.mjs +6 -1
- package/actions/create-verification-service/create-verification-service.mjs +6 -1
- package/actions/delete-call/delete-call.mjs +6 -1
- package/actions/delete-message/delete-message.mjs +6 -1
- package/actions/download-recording-media/download-recording-media.mjs +6 -1
- package/actions/get-call/get-call.mjs +6 -1
- package/actions/get-message/get-message.mjs +6 -1
- package/actions/get-transcripts/get-transcripts.mjs +6 -1
- package/actions/list-calls/list-calls.mjs +6 -1
- package/actions/list-message-media/list-message-media.mjs +6 -1
- package/actions/list-messages/list-messages.mjs +6 -1
- package/actions/list-transcripts/list-transcripts.mjs +6 -1
- package/actions/make-phone-call/make-phone-call.mjs +6 -1
- package/actions/phone-number-lookup/phone-number-lookup.mjs +6 -1
- package/actions/send-message/send-message.mjs +9 -8
- package/actions/send-sms-verification/send-sms-verification.mjs +6 -1
- package/package.json +3 -3
- package/sources/new-call/new-call.mjs +1 -1
- package/sources/new-incoming-sms/new-incoming-sms.mjs +1 -1
- package/sources/new-phone-number/new-phone-number.mjs +1 -1
- package/sources/new-recording/new-recording.mjs +1 -1
- package/sources/new-transcript-created/new-transcript-created.mjs +1 -1
|
@@ -6,7 +6,12 @@ export default {
|
|
|
6
6
|
name: "Check Verification Token",
|
|
7
7
|
description: "Check if user-provided token is correct. [See the documentation](https://www.twilio.com/docs/verify/api)",
|
|
8
8
|
type: "action",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.5",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: true,
|
|
14
|
+
},
|
|
10
15
|
props: {
|
|
11
16
|
app,
|
|
12
17
|
serviceSid: {
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
name: "Create Verification Service",
|
|
6
6
|
description: "Create a verification service for sending SMS verifications. [See the documentation](https://www.twilio.com/docs/verify/api/service#create-a-verification-service)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
props: {
|
|
10
15
|
twilio,
|
|
11
16
|
friendlyName: {
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "twilio-delete-call",
|
|
5
5
|
name: "Delete Call",
|
|
6
6
|
description: "Remove a call record from your account. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#delete-a-call-resource)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.6",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
twilio,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "twilio-delete-message",
|
|
5
5
|
name: "Delete Message",
|
|
6
6
|
description: "Delete a message record from your account. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#delete-a-message-resource)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.6",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
twilio,
|
|
@@ -8,7 +8,12 @@ export default {
|
|
|
8
8
|
key: "twilio-download-recording-media",
|
|
9
9
|
name: "Download Recording Media",
|
|
10
10
|
description: "Download a recording media file. [See the documentation](https://www.twilio.com/docs/voice/api/recording#fetch-a-recording-media-file)",
|
|
11
|
-
version: "0.1.
|
|
11
|
+
version: "0.1.9",
|
|
12
|
+
annotations: {
|
|
13
|
+
destructiveHint: false,
|
|
14
|
+
openWorldHint: true,
|
|
15
|
+
readOnlyHint: false,
|
|
16
|
+
},
|
|
12
17
|
type: "action",
|
|
13
18
|
props: {
|
|
14
19
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "twilio-get-call",
|
|
6
6
|
name: "Get Call",
|
|
7
7
|
description: "Return call resource of an individual call. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#fetch-a-call-resource)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "twilio-get-message",
|
|
6
6
|
name: "Get Message",
|
|
7
7
|
description: "Return details of a message. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#fetch-a-message-resource)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
twilio,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "twilio-get-transcripts",
|
|
5
5
|
name: "Get Transcripts",
|
|
6
6
|
description: "Retrieves full transcripts for the specified transcript SIDs. [See the documentation](https://www.twilio.com/docs/voice/intelligence/api/transcript-sentence-resource#get-transcript-sentences)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "twilio-list-calls",
|
|
6
6
|
name: "List Calls",
|
|
7
7
|
description: "Return a list of calls associated with your account. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#read-multiple-call-resources)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "twilio-list-message-media",
|
|
6
6
|
name: "List Message Media",
|
|
7
7
|
description: "Return a list of media associated with your message. [See the documentation](https://www.twilio.com/docs/sms/api/media-resource#read-multiple-media-resources)",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.6",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
twilio,
|
|
@@ -6,7 +6,12 @@ export default {
|
|
|
6
6
|
key: "twilio-list-messages",
|
|
7
7
|
name: "List Messages",
|
|
8
8
|
description: "Return a list of messages associated with your account. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#read-multiple-message-resources)",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.7",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: true,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "twilio-list-transcripts",
|
|
6
6
|
name: "List Transcripts",
|
|
7
7
|
description: "Return a list of transcripts. [See the documentation](https://www.twilio.com/docs/voice/intelligence/api/transcript-resource#fetch-multiple-transcripts)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
twilio,
|
|
@@ -6,7 +6,12 @@ export default {
|
|
|
6
6
|
key: "twilio-make-phone-call",
|
|
7
7
|
name: "Make a Phone Call",
|
|
8
8
|
description: "Make a phone call passing text, a URL, or an application that Twilio will use to handle the call. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#create-a-call-resource)",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.7",
|
|
10
|
+
annotations: {
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
openWorldHint: true,
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
},
|
|
10
15
|
type: "action",
|
|
11
16
|
props: {
|
|
12
17
|
twilio,
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
name: "Phone Number Lookup",
|
|
6
6
|
description: "Lookup information about a phone number. [See the documentation](https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence) for more information",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
11
16
|
sid: {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { phone } from "phone";
|
|
2
|
-
import twilio from "../../twilio.app.mjs";
|
|
3
2
|
import { messageToString } from "../../common/utils.mjs";
|
|
3
|
+
import twilio from "../../twilio.app.mjs";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
key: "twilio-send-message",
|
|
7
7
|
name: "Send Message",
|
|
8
8
|
description: "Send an SMS text with optional media files. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource)",
|
|
9
9
|
type: "action",
|
|
10
|
-
version: "0.0.
|
|
10
|
+
version: "0.0.4",
|
|
11
|
+
annotations: {
|
|
12
|
+
destructiveHint: false,
|
|
13
|
+
openWorldHint: true,
|
|
14
|
+
readOnlyHint: false,
|
|
15
|
+
},
|
|
11
16
|
props: {
|
|
12
17
|
twilio,
|
|
13
18
|
from: {
|
|
@@ -15,6 +20,7 @@ export default {
|
|
|
15
20
|
twilio,
|
|
16
21
|
"from",
|
|
17
22
|
],
|
|
23
|
+
description: "The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a from value `from` the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool",
|
|
18
24
|
},
|
|
19
25
|
to: {
|
|
20
26
|
propDefinition: [
|
|
@@ -45,14 +51,9 @@ export default {
|
|
|
45
51
|
throw new Error(`Phone number ${this.to} could not be parsed as a valid number.`);
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
const fromParsed = phone(this.from);
|
|
49
|
-
if (!fromParsed || !fromParsed.phoneNumber) {
|
|
50
|
-
throw new Error(`Phone number ${this.from} could not be parsed as a valid number.`);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
54
|
const data = {
|
|
54
55
|
to: toParsed.phoneNumber,
|
|
55
|
-
from:
|
|
56
|
+
from: this.from,
|
|
56
57
|
body: this.body,
|
|
57
58
|
mediaUrl: this.mediaUrl,
|
|
58
59
|
};
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
name: "Send SMS Verification",
|
|
6
6
|
description: "Send an SMS verification to a phone number. [See the documentation](https://www.twilio.com/docs/verify/api)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.5",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
11
16
|
serviceSid: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/twilio",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Pipedream Twilio Components",
|
|
5
5
|
"main": "twilio.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"homepage": "https://pipedream.com/apps/twilio",
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@pipedream/platform": "^3.
|
|
13
|
+
"@pipedream/platform": "^3.1.1",
|
|
14
14
|
"got": "^13.0.0",
|
|
15
15
|
"phone": "^3.1.49",
|
|
16
16
|
"stream": "^0.0.3",
|
|
17
|
-
"twilio": "^
|
|
17
|
+
"twilio": "^5.10.4"
|
|
18
18
|
},
|
|
19
19
|
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
|
|
20
20
|
"publishConfig": {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "twilio-new-call",
|
|
7
7
|
name: "New Call (Instant)",
|
|
8
8
|
description: "Emit new event each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.6",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
methods: {
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
key: "twilio-new-incoming-sms",
|
|
10
10
|
name: "New Incoming SMS (Instant)",
|
|
11
11
|
description: "Emit new event every time an SMS is sent to the phone number set. Configures a webhook in Twilio, tied to an incoming phone number.",
|
|
12
|
-
version: "0.1.
|
|
12
|
+
version: "0.1.6",
|
|
13
13
|
type: "source",
|
|
14
14
|
dedupe: "unique",
|
|
15
15
|
props: {
|