@agenticmail/core 0.9.25 → 0.9.26
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/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8745,7 +8745,8 @@ function buildPhoneTransportConfig(input) {
|
|
|
8745
8745
|
}
|
|
8746
8746
|
}
|
|
8747
8747
|
const capabilities = Array.isArray(input.capabilities) ? input.capabilities.filter((item) => typeof item === "string" && ["sms", "call_control", "realtime_media", "recording_supported"].includes(item)) : ["call_control"];
|
|
8748
|
-
const
|
|
8748
|
+
const defaultRegions = isTwilio ? ["WORLD"] : ["EU"];
|
|
8749
|
+
const supportedRegions = Array.isArray(input.supportedRegions) ? input.supportedRegions.filter((item) => typeof item === "string" && ["AT", "DE", "EU", "WORLD"].includes(item)) : defaultRegions;
|
|
8749
8750
|
const config = {
|
|
8750
8751
|
provider,
|
|
8751
8752
|
phoneNumber,
|
|
@@ -8755,7 +8756,7 @@ function buildPhoneTransportConfig(input) {
|
|
|
8755
8756
|
webhookSecret,
|
|
8756
8757
|
apiUrl: apiUrl || void 0,
|
|
8757
8758
|
capabilities: Array.from(/* @__PURE__ */ new Set(["call_control", ...capabilities])),
|
|
8758
|
-
supportedRegions: supportedRegions.length ? Array.from(new Set(supportedRegions)) :
|
|
8759
|
+
supportedRegions: supportedRegions.length ? Array.from(new Set(supportedRegions)) : defaultRegions,
|
|
8759
8760
|
configuredAt: input.configuredAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
8760
8761
|
};
|
|
8761
8762
|
const validation = validatePhoneTransportProfile(config);
|
package/dist/index.js
CHANGED
|
@@ -7096,7 +7096,8 @@ function buildPhoneTransportConfig(input) {
|
|
|
7096
7096
|
}
|
|
7097
7097
|
}
|
|
7098
7098
|
const capabilities = Array.isArray(input.capabilities) ? input.capabilities.filter((item) => typeof item === "string" && ["sms", "call_control", "realtime_media", "recording_supported"].includes(item)) : ["call_control"];
|
|
7099
|
-
const
|
|
7099
|
+
const defaultRegions = isTwilio ? ["WORLD"] : ["EU"];
|
|
7100
|
+
const supportedRegions = Array.isArray(input.supportedRegions) ? input.supportedRegions.filter((item) => typeof item === "string" && ["AT", "DE", "EU", "WORLD"].includes(item)) : defaultRegions;
|
|
7100
7101
|
const config = {
|
|
7101
7102
|
provider,
|
|
7102
7103
|
phoneNumber,
|
|
@@ -7106,7 +7107,7 @@ function buildPhoneTransportConfig(input) {
|
|
|
7106
7107
|
webhookSecret,
|
|
7107
7108
|
apiUrl: apiUrl || void 0,
|
|
7108
7109
|
capabilities: Array.from(/* @__PURE__ */ new Set(["call_control", ...capabilities])),
|
|
7109
|
-
supportedRegions: supportedRegions.length ? Array.from(new Set(supportedRegions)) :
|
|
7110
|
+
supportedRegions: supportedRegions.length ? Array.from(new Set(supportedRegions)) : defaultRegions,
|
|
7110
7111
|
configuredAt: input.configuredAt ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
7111
7112
|
};
|
|
7112
7113
|
const validation = validatePhoneTransportProfile(config);
|