diff --git a/components/telnyx/actions/get-message/get-message.mjs b/components/telnyx/actions/get-message/get-message.mjs index e0945662000f3..504602a73e211 100644 --- a/components/telnyx/actions/get-message/get-message.mjs +++ b/components/telnyx/actions/get-message/get-message.mjs @@ -4,7 +4,7 @@ export default { key: "telnyx-get-message", name: "Retrieve a Message", description: "Retrieve a message. See documentation [here](https://developers.telnyx.com/api/messaging/get-message)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { telnyxApp, @@ -17,7 +17,9 @@ export default { async run({ $ }) { const message = await this.telnyxApp.getMessage({ $, - id: this.id, + params: { + id: this.id, + }, }); $.export("$summary", `Successfully retrieved message ${message.data.id}.`); return message; diff --git a/components/telnyx/actions/get-messaging-profiles/get-messaging-profiles.mjs b/components/telnyx/actions/get-messaging-profiles/get-messaging-profiles.mjs index 4a64c605bdb73..d1976e06905cb 100644 --- a/components/telnyx/actions/get-messaging-profiles/get-messaging-profiles.mjs +++ b/components/telnyx/actions/get-messaging-profiles/get-messaging-profiles.mjs @@ -4,7 +4,7 @@ export default { key: "telnyx-get-messaging-profiles", name: "Get Messaging Profiles", description: "Get a list of messaging profiles. See documentation [here](https://developers.telnyx.com/api/messaging/list-messaging-profiles)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { telnyxApp, diff --git a/components/telnyx/actions/get-phone-numbers/get-phone-numbers.mjs b/components/telnyx/actions/get-phone-numbers/get-phone-numbers.mjs index 11a1f2e9d58ee..14d082f54cd79 100644 --- a/components/telnyx/actions/get-phone-numbers/get-phone-numbers.mjs +++ b/components/telnyx/actions/get-phone-numbers/get-phone-numbers.mjs @@ -5,7 +5,7 @@ export default { key: "telnyx-get-phone-numbers", name: "Get Phone Numbers", description: "Get a list of phone numbers. See documentation [here](https://developers.telnyx.com/api/numbers/list-phone-numbers)", - version: "0.0.2", + version: "0.0.3", type: "action", props: { telnyxApp, diff --git a/components/telnyx/actions/send-group-message/send-group-message.mjs b/components/telnyx/actions/send-group-message/send-group-message.mjs index b1079effe0944..ab22be9c28196 100644 --- a/components/telnyx/actions/send-group-message/send-group-message.mjs +++ b/components/telnyx/actions/send-group-message/send-group-message.mjs @@ -4,7 +4,7 @@ export default { key: "telnyx-send-group-message", name: "Send Group Message", description: "Send a group MMS message. See documentation [here](https://developers.telnyx.com/api/messaging/create-group-mms-message)", - version: "0.0.1", + version: "0.0.2", type: "action", props: { telnyxApp, diff --git a/components/telnyx/actions/send-message/send-message.mjs b/components/telnyx/actions/send-message/send-message.mjs index 523a07b4293b9..58a934d41668f 100644 --- a/components/telnyx/actions/send-message/send-message.mjs +++ b/components/telnyx/actions/send-message/send-message.mjs @@ -4,7 +4,7 @@ export default { key: "telnyx-send-message", name: "Send Message", description: "Send an SMS or MMS message. See documentation [here](https://developers.telnyx.com/docs/messaging/messages/send-message)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { telnyxApp, diff --git a/components/telnyx/package.json b/components/telnyx/package.json index 9db9725b286ad..c936356473e67 100644 --- a/components/telnyx/package.json +++ b/components/telnyx/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/telnyx", - "version": "0.2.1", + "version": "0.2.2", "description": "Pipedream Telnyx Components", "main": "telnyx.app.mjs", "keywords": [ diff --git a/components/telnyx/telnyx.app.mjs b/components/telnyx/telnyx.app.mjs index 55119c994496d..ed057df87f133 100644 --- a/components/telnyx/telnyx.app.mjs +++ b/components/telnyx/telnyx.app.mjs @@ -69,7 +69,7 @@ export default { }, throwFormattedError(error) { error = error.response; - throw new Error(`${error.status} - ${error.statusText} - ${error.data.message}`); + throw new Error(`${error.status} - ${error.statusText} - ${error.data.errors[0].detail}`); }, async sendMessage(args) { return this.makeRequest({