@openclaw/sms 2026.8.2 → 2026.8.34
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/dist/{media-BDbaClzL.js → .setup/media-CWVWiPWe.mjs} +2 -2
- package/dist/api.js +1 -1
- package/dist/channel-plugin-api.js +7 -9
- package/dist/secret-contract-api.js +1 -1
- package/package.json +4 -4
- /package/dist/{runtime-BBlPgBIF.js → .setup/runtime-BBlPgBIF.mjs} +0 -0
- /package/dist/{secret-contract-Cp0f-YPc.js → .setup/secret-contract-Cp0f-YPc.mjs} +0 -0
- /package/dist/{twilio-BpcGZSHK.js → .setup/twilio-BpcGZSHK.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getSmsRuntime } from "./runtime-BBlPgBIF.
|
|
2
|
-
import { m as assertSmsCredentialOwnerAvailable, n as TWILIO_MMS_MAX_BYTES } from "./twilio-BpcGZSHK.
|
|
1
|
+
import { t as getSmsRuntime } from "./runtime-BBlPgBIF.mjs";
|
|
2
|
+
import { m as assertSmsCredentialOwnerAvailable, n as TWILIO_MMS_MAX_BYTES } from "./twilio-BpcGZSHK.mjs";
|
|
3
3
|
import { collectErrorGraphCandidates } from "openclaw/plugin-sdk/error-runtime";
|
|
4
4
|
import { resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
|
5
5
|
import { createHash } from "node:crypto";
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setSmsRuntime, t as getSmsRuntime } from "
|
|
1
|
+
import { n as setSmsRuntime, t as getSmsRuntime } from "./.setup/runtime-BBlPgBIF.mjs";
|
|
2
2
|
export { getSmsRuntime, setSmsRuntime };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getSmsRuntime } from "
|
|
2
|
-
import { C as normalizeSmsPhoneNumber, S as normalizeSmsAllowFrom, _ as listSmsAccountIds, a as listTwilioMessages, b as resolveTwilioStatusCallbackUrl, c as resolveTwilioMessageSid, d as retrieveTwilioMessagingService, f as sendSmsViaTwilio, g as isSmsAccountConfigured, h as inspectSmsAccount, i as listTwilioIncomingPhoneNumbers, l as resolveTwilioWebhookSignatureUrl, m as assertSmsCredentialOwnerAvailable, o as readTwilioWebhookForm, p as verifyTwilioSignature, r as buildTwilioInboundMessage, s as resolveTwilioInboundSender, t as TWILIO_MESSAGE_BODY_MAX_LENGTH, u as respondTwiml, v as resolveDefaultSmsAccountId, x as looksLikeSmsPhoneNumber, y as resolveSmsAccount } from "
|
|
3
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "
|
|
1
|
+
import { t as getSmsRuntime } from "./.setup/runtime-BBlPgBIF.mjs";
|
|
2
|
+
import { C as normalizeSmsPhoneNumber, S as normalizeSmsAllowFrom, _ as listSmsAccountIds, a as listTwilioMessages, b as resolveTwilioStatusCallbackUrl, c as resolveTwilioMessageSid, d as retrieveTwilioMessagingService, f as sendSmsViaTwilio, g as isSmsAccountConfigured, h as inspectSmsAccount, i as listTwilioIncomingPhoneNumbers, l as resolveTwilioWebhookSignatureUrl, m as assertSmsCredentialOwnerAvailable, o as readTwilioWebhookForm, p as verifyTwilioSignature, r as buildTwilioInboundMessage, s as resolveTwilioInboundSender, t as TWILIO_MESSAGE_BODY_MAX_LENGTH, u as respondTwiml, v as resolveDefaultSmsAccountId, x as looksLikeSmsPhoneNumber, y as resolveSmsAccount } from "./.setup/twilio-BpcGZSHK.mjs";
|
|
3
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./.setup/secret-contract-Cp0f-YPc.mjs";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { createHybridChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
6
6
|
import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
@@ -474,7 +474,7 @@ async function prepareSmsMediaAttempt(params) {
|
|
|
474
474
|
});
|
|
475
475
|
let hostedMedia;
|
|
476
476
|
try {
|
|
477
|
-
const { prepareHostedSmsMedia } = await import("
|
|
477
|
+
const { prepareHostedSmsMedia } = await import("./.setup/media-CWVWiPWe.mjs");
|
|
478
478
|
assertSmsCredentialOwnerAvailable(params.account);
|
|
479
479
|
const prepared = await prepareHostedSmsMedia({
|
|
480
480
|
account: params.account,
|
|
@@ -606,7 +606,7 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
606
606
|
params.log?.warn?.(`SMS sender ${from} is not authorized`);
|
|
607
607
|
return;
|
|
608
608
|
}
|
|
609
|
-
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("
|
|
609
|
+
const materialized = params.msg.media.length > 0 || (params.msg.unavailableMediaCount ?? 0) > 0 ? await (await import("./.setup/media-CWVWiPWe.mjs")).materializeSmsInboundMedia({
|
|
610
610
|
account: params.account,
|
|
611
611
|
msg: params.msg,
|
|
612
612
|
mediaRuntime: params.channelRuntime,
|
|
@@ -757,10 +757,8 @@ async function dispatchSmsInboundEvent(params) {
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
|
+
} finally {
|
|
760
761
|
if (adoptionState === "pending" || adoptionState === "abandoned") await materialized.cleanup();
|
|
761
|
-
} catch (error) {
|
|
762
|
-
if (adoptionState === "pending" || adoptionState === "abandoned") await materialized.cleanup();
|
|
763
|
-
throw error;
|
|
764
762
|
}
|
|
765
763
|
}
|
|
766
764
|
//#endregion
|
|
@@ -1091,7 +1089,7 @@ async function registerSmsWebhookRoute(params) {
|
|
|
1091
1089
|
throwOnFailure: true,
|
|
1092
1090
|
log: (msg) => params.log?.info?.(msg),
|
|
1093
1091
|
handler: async (req, res) => {
|
|
1094
|
-
const { tryHandleHostedSmsMediaRequest } = await import("
|
|
1092
|
+
const { tryHandleHostedSmsMediaRequest } = await import("./.setup/media-CWVWiPWe.mjs");
|
|
1095
1093
|
if (await tryHandleHostedSmsMediaRequest(req, res, params.account.accountId)) return true;
|
|
1096
1094
|
return await webhookHandler(req, res);
|
|
1097
1095
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./.setup/secret-contract-Cp0f-YPc.mjs";
|
|
2
2
|
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/sms",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.34",
|
|
4
4
|
"description": "OpenClaw SMS/MMS channel plugin for Twilio messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
"compat": {
|
|
126
|
-
"pluginApi": ">=2026.8.
|
|
126
|
+
"pluginApi": ">=2026.8.34"
|
|
127
127
|
},
|
|
128
128
|
"build": {
|
|
129
|
-
"openclawVersion": "2026.8.
|
|
129
|
+
"openclawVersion": "2026.8.34",
|
|
130
130
|
"bundledDist": false
|
|
131
131
|
},
|
|
132
132
|
"install": {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"README.md"
|
|
151
151
|
],
|
|
152
152
|
"peerDependencies": {
|
|
153
|
-
"openclaw": ">=2026.8.
|
|
153
|
+
"openclaw": ">=2026.8.34"
|
|
154
154
|
},
|
|
155
155
|
"peerDependenciesMeta": {
|
|
156
156
|
"openclaw": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|