Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/peekalink/peekalink.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Check Verification Token",
description: "Check if user-provided token is correct. [See the documentation](https://www.twilio.com/docs/verify/api)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
serviceSid: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create Verification Service",
description: "Create a verification service for sending SMS verifications. [See the documentation](https://www.twilio.com/docs/verify/api/service#create-a-verification-service)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
twilio,
friendlyName: {
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/actions/delete-call/delete-call.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "twilio-delete-call",
name: "Delete Call",
description: "Remove a call record from your account. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#delete-a-call-resource)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "twilio-delete-message",
name: "Delete Message",
description: "Delete a message record from your account. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#delete-a-message-resource)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "twilio-download-recording-media",
name: "Download Recording Media",
description: "Download a recording media file. [See the documentation](https://www.twilio.com/docs/voice/api/recording#fetch-a-recording-media-file)",
version: "0.1.7",
version: "0.1.8",
type: "action",
props: {
twilio,
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/actions/get-call/get-call.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-get-call",
name: "Get Call",
description: "Return call resource of an individual call. [See the documentation](https://www.twilio.com/docs/voice/api/call-resource#fetch-a-call-resource)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/actions/get-message/get-message.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-get-message",
name: "Get Message",
description: "Return details of a message. [See the documentation](https://www.twilio.com/docs/sms/api/message-resource#fetch-a-message-resource)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "twilio-get-transcripts",
name: "Get Transcripts",
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)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
twilio,
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/actions/list-calls/list-calls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-list-calls",
name: "List Calls",
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)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-list-message-media",
name: "List Message Media",
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)",
version: "0.1.4",
version: "0.1.5",
type: "action",
props: {
twilio,
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/actions/list-messages/list-messages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "twilio-list-messages",
name: "List Messages",
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)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-list-transcripts",
name: "List Transcripts",
description: "Return a list of transcripts. [See the documentation](https://www.twilio.com/docs/voice/intelligence/api/transcript-resource#fetch-multiple-transcripts)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "twilio-make-phone-call",
name: "Make a Phone Call",
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)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
twilio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Phone Number Lookup",
description: "Lookup information about a phone number. [See the documentation](https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence) for more information",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
app,
sid: {
Expand Down
12 changes: 4 additions & 8 deletions components/twilio/actions/send-message/send-message.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import { phone } from "phone";
import twilio from "../../twilio.app.mjs";
import { messageToString } from "../../common/utils.mjs";
import twilio from "../../twilio.app.mjs";

export default {
key: "twilio-send-message",
name: "Send Message",
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)",
type: "action",
version: "0.0.2",
version: "0.0.3",
props: {
twilio,
from: {
propDefinition: [
twilio,
"from",
],
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",
},
to: {
propDefinition: [
Expand Down Expand Up @@ -45,14 +46,9 @@ export default {
throw new Error(`Phone number ${this.to} could not be parsed as a valid number.`);
}

const fromParsed = phone(this.from);
if (!fromParsed || !fromParsed.phoneNumber) {
throw new Error(`Phone number ${this.from} could not be parsed as a valid number.`);
}

const data = {
to: toParsed.phoneNumber,
from: fromParsed.phoneNumber,
from: this.from,
body: this.body,
mediaUrl: this.mediaUrl,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Send SMS Verification",
description: "Send an SMS verification to a phone number. [See the documentation](https://www.twilio.com/docs/verify/api)",
type: "action",
version: "0.0.3",
version: "0.0.4",
props: {
app,
serviceSid: {
Expand Down
4 changes: 2 additions & 2 deletions components/twilio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/twilio",
"version": "0.6.1",
"version": "0.6.2",
"description": "Pipedream Twilio Components",
"main": "twilio.app.mjs",
"keywords": [
Expand All @@ -10,7 +10,7 @@
"homepage": "https://pipedream.com/apps/twilio",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"dependencies": {
"@pipedream/platform": "^3.0.0",
"@pipedream/platform": "^3.1.0",
"got": "^13.0.0",
"phone": "^3.1.49",
"stream": "^0.0.3",
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/sources/new-call/new-call.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "twilio-new-call",
name: "New Call (Instant)",
description: "Emit new event each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.",
version: "0.1.5",
version: "0.1.6",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
key: "twilio-new-incoming-sms",
name: "New Incoming SMS (Instant)",
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.",
version: "0.1.5",
version: "0.1.6",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-new-phone-number",
name: "New Phone Number",
description: "Emit new event when you add a new phone number to your account",
version: "0.1.6",
version: "0.1.7",
type: "source",
dedupe: "unique",
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/twilio/sources/new-recording/new-recording.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-new-recording",
name: "New Recording",
description: "Emit new event when a new call recording is created",
version: "0.1.6",
version: "0.1.7",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "twilio-new-transcript-created",
name: "New Transcript Created",
description: "Emit new event when a new call transcript is created",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading