wickrio-bot-api
Advanced tools
Comparing version 5.78.1 to 5.79.1
{ | ||
"name": "wickrio-bot-api", | ||
"version": "5.78.1", | ||
"version": "5.79.1", | ||
"description": "The official Wickr IO Bot API Framework", | ||
@@ -10,3 +10,3 @@ "main": "src/WickrIOBot.js", | ||
"simple-encryptor": "^3.0.0", | ||
"wickrio_addon": "5.78.x" | ||
"wickrio_addon": "5.79.x" | ||
}, | ||
@@ -13,0 +13,0 @@ "devDependencies": { |
@@ -20,26 +20,4 @@ class APIService { | ||
messageID, | ||
sentBy | ||
) { | ||
// TODO add time sent to VoiceMemo String? | ||
return this.WickrIOAPI.cmdSendSecurityGroupVoiceMemo( | ||
securityGroups, | ||
voiceMemo, | ||
'VoiceMemo', | ||
duration, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy | ||
) | ||
} | ||
sendSecurityGroupVoiceMemoButtons( | ||
securityGroups, | ||
voiceMemo, | ||
duration, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy, | ||
buttons | ||
messageMeta='' | ||
) { | ||
@@ -56,3 +34,3 @@ // TODO add time sent to VoiceMemo String? | ||
sentBy, | ||
buttons | ||
messageMeta | ||
) | ||
@@ -68,24 +46,4 @@ } | ||
messageID, | ||
sentBy | ||
) { | ||
return this.WickrIOAPI.cmdSendSecurityGroupAttachment( | ||
securityGroups, | ||
filename, | ||
displayName, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy | ||
) | ||
} | ||
sendSecurityGroupAttachmentButtons( | ||
securityGroups, | ||
filename, | ||
displayName, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy, | ||
buttons | ||
messageMeta | ||
) { | ||
@@ -100,7 +58,7 @@ return this.WickrIOAPI.cmdSendSecurityGroupAttachment( | ||
sentBy, | ||
buttons | ||
messageMeta | ||
) | ||
} | ||
sendSecurityGroupMessage(securityGroups, message, ttl, bor, messageID) { | ||
sendSecurityGroupMessage(securityGroups, message, ttl, bor, messageID, flags=[], messageMeta='') { | ||
return this.WickrIOAPI.cmdSendSecurityGroupMessage( | ||
@@ -111,19 +69,9 @@ message, | ||
bor, | ||
messageID | ||
) | ||
} | ||
sendSecurityGroupMessageButtons(securityGroups, message, ttl, bor, messageID, flags, buttons) { | ||
return this.WickrIOAPI.cmdSendSecurityGroupMessage( | ||
message, | ||
securityGroups, | ||
ttl, | ||
bor, | ||
messageID, | ||
flags, | ||
buttons | ||
messageMeta | ||
) | ||
} | ||
sendNetworkVoiceMemo(voiceMemo, duration, ttl, bor, messageID, sentBy) { | ||
sendNetworkVoiceMemo(voiceMemo, duration, ttl, bor, messageID, sentBy, messageMeta='') { | ||
return this.WickrIOAPI.cmdSendNetworkVoiceMemo( | ||
@@ -136,20 +84,8 @@ voiceMemo, | ||
messageID, | ||
sentBy | ||
) | ||
} | ||
sendNetworkVoiceMemoButtons(voiceMemo, duration, ttl, bor, messageID, sentBy, buttons) { | ||
return this.WickrIOAPI.cmdSendNetworkVoiceMemo( | ||
voiceMemo, | ||
'VoiceMemo', | ||
duration, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy, | ||
buttons | ||
messageMeta | ||
) | ||
} | ||
sendNetworkAttachment(filename, displayName, ttl, bor, messageID, sentBy) { | ||
sendNetworkAttachment(filename, displayName, ttl, bor, messageID, sentBy, flags=[], messageMeta='') { | ||
return this.WickrIOAPI.cmdSendNetworkAttachment( | ||
@@ -161,27 +97,12 @@ filename, | ||
messageID, | ||
sentBy | ||
) | ||
} | ||
sendNetworkAttachmentButtons(filename, displayName, ttl, bor, messageID, sentBy, flags, buttons) { | ||
return this.WickrIOAPI.cmdSendNetworkAttachment( | ||
filename, | ||
displayName, | ||
ttl, | ||
bor, | ||
messageID, | ||
sentBy, | ||
flags, | ||
buttons | ||
messageMeta | ||
) | ||
} | ||
sendNetworkMessage(message, ttl, bor, messageID) { | ||
return this.WickrIOAPI.cmdSendNetworkMessage(message, ttl, bor, messageID) | ||
sendNetworkMessage(message, ttl, bor, messageID, flags=[], messageMeta='') { | ||
return this.WickrIOAPI.cmdSendNetworkMessage(message, ttl, bor, messageID, flags, messageMeta) | ||
} | ||
sendNetworkMessageButtons(message, ttl, bor, messageID, flags, buttons) { | ||
return this.WickrIOAPI.cmdSendNetworkMessage(message, ttl, bor, messageID, flags, buttons) | ||
} | ||
writeMessageIDDB(messageId, sender, target, dateSent, messageContent) { | ||
@@ -245,3 +166,3 @@ return this.WickrIOAPI.cmdAddMessageID( | ||
sendMessageUserHashFile(filePath, message, ttl, bor, messageID) { | ||
sendMessageUserHashFile(filePath, message, ttl, bor, messageID, messageMeta) { | ||
return this.WickrIOAPI.cmdSendMessageUserHashFile( | ||
@@ -252,18 +173,8 @@ filePath, | ||
bor, | ||
messageID | ||
) | ||
} | ||
sendMessageUserHashFileButtons(filePath, message, ttl, bor, messageID, buttons) { | ||
return this.WickrIOAPI.cmdSendMessageUserHashFile( | ||
filePath, | ||
message, | ||
ttl, | ||
bor, | ||
messageID, | ||
buttons | ||
messageMeta | ||
) | ||
} | ||
sendMessageUserNameFile(filePath, message, ttl, bor, messageID) { | ||
sendMessageUserNameFile(filePath, message, ttl, bor, messageID, flags=[], messageMeta='') { | ||
return this.WickrIOAPI.cmdSendMessageUserNameFile( | ||
@@ -274,15 +185,5 @@ filePath, | ||
bor, | ||
messageID | ||
) | ||
} | ||
sendMessageUserNameFileButtons(filePath, message, ttl, bor, messageID, flags, buttons) { | ||
return this.WickrIOAPI.cmdSendMessageUserNameFile( | ||
filePath, | ||
message, | ||
ttl, | ||
bor, | ||
messageID, | ||
flags, | ||
buttons | ||
messageMeta | ||
) | ||
@@ -297,22 +198,4 @@ } | ||
bor, | ||
messageID | ||
) { | ||
return this.WickrIOAPI.cmdSendAttachmentUserHashFile( | ||
filePath, | ||
attachment, | ||
display, | ||
ttl, | ||
bor, | ||
messageID | ||
) | ||
} | ||
sendAttachmentUserHashFileButtons( | ||
filePath, | ||
attachment, | ||
display, | ||
ttl, | ||
bor, | ||
messageID, | ||
buttons | ||
messageMeta | ||
) { | ||
@@ -326,3 +209,3 @@ return this.WickrIOAPI.cmdSendAttachmentUserHashFile( | ||
messageID, | ||
buttons | ||
messageMeta | ||
) | ||
@@ -337,22 +220,4 @@ } | ||
bor, | ||
messageID | ||
) { | ||
return this.WickrIOAPI.cmdSendAttachmentUserNameFile( | ||
filePath, | ||
attachment, | ||
display, | ||
ttl, | ||
bor, | ||
messageID | ||
) | ||
} | ||
sendAttachmentUserNameFileButtons( | ||
filePath, | ||
attachment, | ||
display, | ||
ttl, | ||
bor, | ||
messageID, | ||
buttons | ||
messageMeta | ||
) { | ||
@@ -366,3 +231,3 @@ return this.WickrIOAPI.cmdSendAttachmentUserNameFile( | ||
messageID, | ||
buttons | ||
messageMeta | ||
) | ||
@@ -390,4 +255,3 @@ } | ||
send1to1MessageLowPriority(userArray, reply, ttl, bor, messageID, flags) { | ||
const buttons = [] | ||
send1to1MessageLowPriority(userArray, reply, ttl, bor, messageID, flags, messageMeta='') { | ||
return this.WickrIOAPI.cmdSend1to1Message( | ||
@@ -400,3 +264,3 @@ userArray, | ||
flags, | ||
buttons, | ||
messageMeta, | ||
true | ||
@@ -406,15 +270,2 @@ ) | ||
send1to1MessageLowPriorityButtons(userArray, reply, ttl, bor, messageID, flags, buttons) { | ||
return this.WickrIOAPI.cmdSend1to1Message( | ||
userArray, | ||
reply, | ||
ttl, | ||
bor, | ||
messageID, | ||
flags, | ||
buttons, | ||
true | ||
) | ||
} | ||
cancelMessageID(messageID) { | ||
@@ -421,0 +272,0 @@ return this.WickrIOAPI.cmdCancelMessageID(messageID) |
@@ -514,16 +514,4 @@ const fs = require('fs') | ||
// function replyWithButtons(message) { | ||
// const button1 = { | ||
// type: 'message', | ||
// text: 'Yes', | ||
// message: 'yes', | ||
// } | ||
// const button2 = { | ||
// type: 'message', | ||
// text: 'No', | ||
// message: 'no', | ||
// } | ||
// const buttons = [button1, button2] | ||
} | ||
module.exports = MessageService |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98045
2458
+ Addedwickrio_addon@5.79.2(transitive)
- Removedwickrio_addon@5.78.5(transitive)
Updatedwickrio_addon@5.79.x