@yoooclaw/phone-notifications 1.11.14 → 1.11.15
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 +10 -3
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5574,7 +5574,7 @@ function readBuildInjectedVersion() {
|
|
|
5574
5574
|
if (false) {
|
|
5575
5575
|
return void 0;
|
|
5576
5576
|
}
|
|
5577
|
-
const version = "1.11.
|
|
5577
|
+
const version = "1.11.15".trim();
|
|
5578
5578
|
return version || void 0;
|
|
5579
5579
|
}
|
|
5580
5580
|
function readPluginVersionFromPackageJson() {
|
|
@@ -13386,6 +13386,13 @@ var WsProxy = class {
|
|
|
13386
13386
|
|
|
13387
13387
|
// src/tunnel/proxy.ts
|
|
13388
13388
|
var RELAY_TUNNEL_GATEWAY_CLIENT_INSTANCE_ID = "phone-notifications-relay-tunnel";
|
|
13389
|
+
var GATEWAY_OPERATOR_SCOPES = [
|
|
13390
|
+
"operator.admin",
|
|
13391
|
+
"operator.approvals",
|
|
13392
|
+
"operator.pairing",
|
|
13393
|
+
"operator.read",
|
|
13394
|
+
"operator.write"
|
|
13395
|
+
];
|
|
13389
13396
|
var MAX_AUTO_PAIRING_APPROVALS = 3;
|
|
13390
13397
|
var RECENT_ABORTED_CHAT_RUN_TTL_MS = 6e4;
|
|
13391
13398
|
var GATEWAY_RPC_HANDSHAKE_TIMEOUT_MS = 1e4;
|
|
@@ -13981,7 +13988,7 @@ var TunnelProxy = class {
|
|
|
13981
13988
|
clearHandshakeTimer();
|
|
13982
13989
|
this.storeIssuedDeviceToken({
|
|
13983
13990
|
fallbackRole: "operator",
|
|
13984
|
-
fallbackScopes: [
|
|
13991
|
+
fallbackScopes: [...GATEWAY_OPERATOR_SCOPES],
|
|
13985
13992
|
authInfo: frame.payload?.auth
|
|
13986
13993
|
});
|
|
13987
13994
|
this.gatewayWsAutoPairingApprovals = 0;
|
|
@@ -14090,7 +14097,7 @@ var TunnelProxy = class {
|
|
|
14090
14097
|
const challengeNonce = frame.payload?.nonce ?? "";
|
|
14091
14098
|
const connectRequestId = `tunnel-connect-${(0, import_node_crypto5.randomUUID)()}`;
|
|
14092
14099
|
const role = "operator";
|
|
14093
|
-
const scopes = [
|
|
14100
|
+
const scopes = [...GATEWAY_OPERATOR_SCOPES];
|
|
14094
14101
|
const gatewayConnectAuth = this.buildGatewayConnectAuth(role);
|
|
14095
14102
|
this.opts.logger.info(
|
|
14096
14103
|
`TunnelProxy: received connect.challenge (nonce=${challengeNonce}, connectReqId=${connectRequestId}, hasToken=${!!gatewayConnectAuth.authToken}, hasPassword=${!!gatewayConnectAuth.authPassword}, hasDeviceToken=${!!gatewayConnectAuth.deviceToken}), sending connect request with device identity`
|