diff --git a/components/peekalink/peekalink.app.mjs b/components/peekalink/peekalink.app.mjs index 4da517b7f0204..4f21d0e8d688f 100644 --- a/components/peekalink/peekalink.app.mjs +++ b/components/peekalink/peekalink.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/twilio/actions/check-verification-token/check-verification-token.mjs b/components/twilio/actions/check-verification-token/check-verification-token.mjs index 50b5c7d04f635..d3df840df9ab5 100644 --- a/components/twilio/actions/check-verification-token/check-verification-token.mjs +++ b/components/twilio/actions/check-verification-token/check-verification-token.mjs @@ -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: { diff --git a/components/twilio/actions/create-verification-service/create-verification-service.mjs b/components/twilio/actions/create-verification-service/create-verification-service.mjs index a21260daa8d01..c662da6184440 100644 --- a/components/twilio/actions/create-verification-service/create-verification-service.mjs +++ b/components/twilio/actions/create-verification-service/create-verification-service.mjs @@ -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: { diff --git a/components/twilio/actions/delete-call/delete-call.mjs b/components/twilio/actions/delete-call/delete-call.mjs index b1c2253b0de8c..5151dea4e3143 100644 --- a/components/twilio/actions/delete-call/delete-call.mjs +++ b/components/twilio/actions/delete-call/delete-call.mjs @@ -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, diff --git a/components/twilio/actions/delete-message/delete-message.mjs b/components/twilio/actions/delete-message/delete-message.mjs index 75d98ecbb7286..7c68e6f98b588 100644 --- a/components/twilio/actions/delete-message/delete-message.mjs +++ b/components/twilio/actions/delete-message/delete-message.mjs @@ -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, diff --git a/components/twilio/actions/download-recording-media/download-recording-media.mjs b/components/twilio/actions/download-recording-media/download-recording-media.mjs index e530f22464cc0..5bfff1f21a833 100644 --- a/components/twilio/actions/download-recording-media/download-recording-media.mjs +++ b/components/twilio/actions/download-recording-media/download-recording-media.mjs @@ -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, diff --git a/components/twilio/actions/get-call/get-call.mjs b/components/twilio/actions/get-call/get-call.mjs index a5c9c49f7eb8d..3cfde0021dfd8 100644 --- a/components/twilio/actions/get-call/get-call.mjs +++ b/components/twilio/actions/get-call/get-call.mjs @@ -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, diff --git a/components/twilio/actions/get-message/get-message.mjs b/components/twilio/actions/get-message/get-message.mjs index f5f65eed531f2..0f123a9d56bb8 100644 --- a/components/twilio/actions/get-message/get-message.mjs +++ b/components/twilio/actions/get-message/get-message.mjs @@ -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, diff --git a/components/twilio/actions/get-transcripts/get-transcripts.mjs b/components/twilio/actions/get-transcripts/get-transcripts.mjs index 8fa68dcc6061d..992e6406b5470 100644 --- a/components/twilio/actions/get-transcripts/get-transcripts.mjs +++ b/components/twilio/actions/get-transcripts/get-transcripts.mjs @@ -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, diff --git a/components/twilio/actions/list-calls/list-calls.mjs b/components/twilio/actions/list-calls/list-calls.mjs index 66276d614c32d..1ae0276b2e031 100644 --- a/components/twilio/actions/list-calls/list-calls.mjs +++ b/components/twilio/actions/list-calls/list-calls.mjs @@ -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, diff --git a/components/twilio/actions/list-message-media/list-message-media.mjs b/components/twilio/actions/list-message-media/list-message-media.mjs index dddef1db1ec6e..a2c0941053d21 100644 --- a/components/twilio/actions/list-message-media/list-message-media.mjs +++ b/components/twilio/actions/list-message-media/list-message-media.mjs @@ -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, diff --git a/components/twilio/actions/list-messages/list-messages.mjs b/components/twilio/actions/list-messages/list-messages.mjs index 78da1e45289e5..c99c06a3aa919 100644 --- a/components/twilio/actions/list-messages/list-messages.mjs +++ b/components/twilio/actions/list-messages/list-messages.mjs @@ -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, diff --git a/components/twilio/actions/list-transcripts/list-transcripts.mjs b/components/twilio/actions/list-transcripts/list-transcripts.mjs index 012970cf1740c..89e6c5a4320e1 100644 --- a/components/twilio/actions/list-transcripts/list-transcripts.mjs +++ b/components/twilio/actions/list-transcripts/list-transcripts.mjs @@ -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, diff --git a/components/twilio/actions/make-phone-call/make-phone-call.mjs b/components/twilio/actions/make-phone-call/make-phone-call.mjs index 5ba8a59c2bb12..771ff28182f59 100644 --- a/components/twilio/actions/make-phone-call/make-phone-call.mjs +++ b/components/twilio/actions/make-phone-call/make-phone-call.mjs @@ -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, diff --git a/components/twilio/actions/phone-number-lookup/phone-number-lookup.mjs b/components/twilio/actions/phone-number-lookup/phone-number-lookup.mjs index 6867ea35e5b7b..e2f4d4ab9a830 100644 --- a/components/twilio/actions/phone-number-lookup/phone-number-lookup.mjs +++ b/components/twilio/actions/phone-number-lookup/phone-number-lookup.mjs @@ -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: { diff --git a/components/twilio/actions/send-message/send-message.mjs b/components/twilio/actions/send-message/send-message.mjs index 57c495861d802..520f8d10733ac 100644 --- a/components/twilio/actions/send-message/send-message.mjs +++ b/components/twilio/actions/send-message/send-message.mjs @@ -1,13 +1,13 @@ 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: { @@ -15,6 +15,7 @@ export default { 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: [ @@ -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, }; diff --git a/components/twilio/actions/send-sms-verification/send-sms-verification.mjs b/components/twilio/actions/send-sms-verification/send-sms-verification.mjs index 465c23a9af42c..981bd879849e4 100644 --- a/components/twilio/actions/send-sms-verification/send-sms-verification.mjs +++ b/components/twilio/actions/send-sms-verification/send-sms-verification.mjs @@ -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: { diff --git a/components/twilio/package.json b/components/twilio/package.json index 2e0d61e0176eb..d1ee444a020c0 100644 --- a/components/twilio/package.json +++ b/components/twilio/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/twilio", - "version": "0.6.1", + "version": "0.6.2", "description": "Pipedream Twilio Components", "main": "twilio.app.mjs", "keywords": [ @@ -10,7 +10,7 @@ "homepage": "https://pipedream.com/apps/twilio", "author": "Pipedream (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", diff --git a/components/twilio/sources/new-call/new-call.mjs b/components/twilio/sources/new-call/new-call.mjs index 2036834890d80..70d4e80da8257 100644 --- a/components/twilio/sources/new-call/new-call.mjs +++ b/components/twilio/sources/new-call/new-call.mjs @@ -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: { diff --git a/components/twilio/sources/new-incoming-sms/new-incoming-sms.mjs b/components/twilio/sources/new-incoming-sms/new-incoming-sms.mjs index 8385831a82aae..8802ef3b0de7c 100644 --- a/components/twilio/sources/new-incoming-sms/new-incoming-sms.mjs +++ b/components/twilio/sources/new-incoming-sms/new-incoming-sms.mjs @@ -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: { diff --git a/components/twilio/sources/new-phone-number/new-phone-number.mjs b/components/twilio/sources/new-phone-number/new-phone-number.mjs index 84354bf6a8406..4c0dc13df7dc8 100644 --- a/components/twilio/sources/new-phone-number/new-phone-number.mjs +++ b/components/twilio/sources/new-phone-number/new-phone-number.mjs @@ -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: { diff --git a/components/twilio/sources/new-recording/new-recording.mjs b/components/twilio/sources/new-recording/new-recording.mjs index 32d00fae95610..c7704977d4a0a 100644 --- a/components/twilio/sources/new-recording/new-recording.mjs +++ b/components/twilio/sources/new-recording/new-recording.mjs @@ -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: { diff --git a/components/twilio/sources/new-transcript-created/new-transcript-created.mjs b/components/twilio/sources/new-transcript-created/new-transcript-created.mjs index 66a7882d67c79..d8216f9c0d3fc 100644 --- a/components/twilio/sources/new-transcript-created/new-transcript-created.mjs +++ b/components/twilio/sources/new-transcript-created/new-transcript-created.mjs @@ -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: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e80001d314e6..39864b0b88c10 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14880,8 +14880,8 @@ importers: components/twilio: dependencies: '@pipedream/platform': - specifier: ^3.0.0 - version: 3.0.3 + specifier: ^3.1.0 + version: 3.1.0 got: specifier: ^13.0.0 version: 13.0.0