Fixed HTML message formatting, Extended resolver for get, construct and transform functions, Added entire message history with aliasing for personal matrix account
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,18 +8,15 @@ method = "GET"
|
||||
|
||||
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
|
||||
resolve = {
|
||||
"path": ["messageheaders", "id"],
|
||||
"get": {
|
||||
"path": ["messageheaders", "id"],
|
||||
}
|
||||
}
|
||||
|
||||
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
|
||||
path = [
|
||||
"https://rentmasseur.com/api/v1/mailbox/",
|
||||
{"resolved": "path"},
|
||||
#{
|
||||
# "output": "id",
|
||||
# #"keys": [0, "id"]
|
||||
# "keys": "id"
|
||||
#}
|
||||
]
|
||||
|
||||
headers = {
|
||||
@@ -41,8 +38,8 @@ select = {
|
||||
"value": False,
|
||||
},
|
||||
"exclude": {
|
||||
"key": "senderId",
|
||||
"value": 238302,
|
||||
"key": {},
|
||||
"value": {},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@ headers = {
|
||||
},
|
||||
}
|
||||
|
||||
#domainname="rentmasseur.com"
|
||||
|
||||
cookies = {
|
||||
"accessToken": {
|
||||
"output": "access_token",
|
||||
|
||||
@@ -7,11 +7,14 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"space_id": ["space_id"],
|
||||
"username": ["profile", "username"],
|
||||
"room_id": ["dmroom_id"],
|
||||
"get": {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"space_id": ["space_id"],
|
||||
"username": ["profile", "username"],
|
||||
"room_id": ["dmroom_id"],
|
||||
},
|
||||
}
|
||||
|
||||
keys = [
|
||||
{
|
||||
"keytitle": "via",
|
||||
|
||||
@@ -9,9 +9,19 @@ showstatus = True
|
||||
astoken = os.environ["AS_TOKEN"]
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
"get": {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixuser": [
|
||||
"@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
keys = [
|
||||
{
|
||||
"keytitle": "displayname",
|
||||
@@ -24,11 +34,10 @@ keys = [
|
||||
method = "PUT"
|
||||
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/profile/@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com/displayname?user_id=@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com"
|
||||
"https://loxthelion.com/_matrix/client/v3/profile/",
|
||||
{"resolved": "matrixuser"},
|
||||
"/displayname?user_id=",
|
||||
{"resolved": "matrixuser"},
|
||||
]
|
||||
|
||||
headers = {
|
||||
|
||||
@@ -7,8 +7,21 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
"get": {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixuser": [
|
||||
"@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com",
|
||||
],
|
||||
"matrixdm": [
|
||||
"rmass_dm_",
|
||||
{"resolved": "sender"},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
keys = [
|
||||
@@ -21,8 +34,7 @@ keys = [
|
||||
{
|
||||
"keytitle": "room_alias_name",
|
||||
"keyvalue": {
|
||||
"resolved": "sender",
|
||||
"prefix": "rmass_dm_",
|
||||
"resolved": "matrixdm",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -55,9 +67,9 @@ keys = [
|
||||
method = "POST"
|
||||
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/createRoom?user_id=@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com",
|
||||
"https://loxthelion.com/_matrix/client/v3/createRoom?user_id=",
|
||||
{"resolved": "matrixuser"},
|
||||
#":loxthelion.com",
|
||||
]
|
||||
|
||||
headers = {
|
||||
|
||||
@@ -7,11 +7,19 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
#"messageid": ["message", "id"],
|
||||
"username": ["profile", "username"],
|
||||
"locationname": ["profile", "location"],
|
||||
"locationcode": ["profile", "searchCity"],
|
||||
"get": {
|
||||
#"sender": ["messages", 0, "senderId"],
|
||||
#"username": ["profile", "username"],
|
||||
"locationname": ["profile", "location"],
|
||||
"locationcode": ["profile", "searchCity"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixspacealias": [
|
||||
"rmass_space_",
|
||||
{"resolved": "locationcode"},
|
||||
#"%3Aloxthelion.com",
|
||||
],
|
||||
},
|
||||
}
|
||||
keys = [
|
||||
{
|
||||
@@ -23,8 +31,8 @@ keys = [
|
||||
{
|
||||
"keytitle": "room_alias_name",
|
||||
"keyvalue": {
|
||||
"resolved": "locationcode",
|
||||
"prefix": "rmass_space_",
|
||||
"resolved": "matrixspacealias",
|
||||
#"prefix": "rmass_space_",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -46,7 +54,7 @@ keys = [
|
||||
#"keyvalue": {
|
||||
#"users": {
|
||||
#"@lyncoln:loxthelion.com": 100,
|
||||
#"@rmass_:loxthelion.com": 100,
|
||||
#"@rmass_*:loxthelion.com": 100,
|
||||
#},
|
||||
#},
|
||||
#}
|
||||
@@ -55,9 +63,6 @@ keys = [
|
||||
method = "POST"
|
||||
|
||||
path = [
|
||||
#"https://loxthelion.com/_matrix/client/v3/createRoom?user_id=@rmass_",
|
||||
#{"resolved": "sender"},
|
||||
#":loxthelion.com",
|
||||
"https://loxthelion.com/_matrix/client/v3/createRoom?user_id=@rmass_bridge:loxthelion.com"
|
||||
]
|
||||
|
||||
|
||||
@@ -7,15 +7,23 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"get": {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixdm": [
|
||||
"%23rmass_dm_",
|
||||
{"resolved": "sender"},
|
||||
"%3Aloxthelion.com",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
method = "GET"
|
||||
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/directory/room/%23rmass_dm_",
|
||||
{"resolved": "sender"},
|
||||
"%3Aloxthelion.com",
|
||||
"https://loxthelion.com/_matrix/client/v3/directory/room/",
|
||||
{"resolved": "matrixdm"},
|
||||
]
|
||||
|
||||
headers = {
|
||||
|
||||
@@ -7,16 +7,23 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"locationcode": ["profile", "searchCity"],
|
||||
"get": {
|
||||
"locationcode": ["profile", "searchCity"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixspace": [
|
||||
"%23rmass_space_",
|
||||
{"resolved": "locationcode"},
|
||||
"%3Aloxthelion.com",
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
method = "GET"
|
||||
|
||||
path = [
|
||||
"https://loxthelion.com/_matrix/client/v3/directory/room/%23rmass_space_",
|
||||
{"resolved": "locationcode"},
|
||||
"%3Aloxthelion.com",
|
||||
"https://loxthelion.com/_matrix/client/v3/directory/room/",
|
||||
{"resolved": "matrixspace"},
|
||||
]
|
||||
|
||||
headers = {
|
||||
|
||||
@@ -13,12 +13,27 @@ recursive = {
|
||||
}
|
||||
|
||||
resolve = {
|
||||
"sender": ["messageitem", "senderId"],
|
||||
"message_id": ["messageitem", "id"],
|
||||
"message_body": ["messageitem", "text"],
|
||||
"room_id": ["dmroom_id"],
|
||||
"timestamp": ["messageitem", "createdAt"],
|
||||
"get": {
|
||||
"sender": ["messageitem", "senderId"],
|
||||
"message_id": ["messageitem", "id"],
|
||||
"message_body": ["messageitem", "text"],
|
||||
"room_id": ["dmroom_id"],
|
||||
"timestamp": ["messageitem", "createdAt"],
|
||||
},
|
||||
"construct": {
|
||||
"matrixuser": [
|
||||
"@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com",
|
||||
],
|
||||
},
|
||||
"transform": {
|
||||
"matrixuser": {
|
||||
"@rmass_238302:loxthelion.com": "@lyncoln:loxthelion.com",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
keys = [
|
||||
{
|
||||
"keytitle": "msgtype",
|
||||
@@ -30,6 +45,17 @@ keys = [
|
||||
"resolved": "message_body",
|
||||
},
|
||||
},
|
||||
{
|
||||
"keytitle": "format",
|
||||
"keyvalue": "org.matrix.custom.html",
|
||||
},
|
||||
{
|
||||
"keytitle": "formatted_body",
|
||||
"keyvalue": {
|
||||
"resolved": "message_body",
|
||||
},
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
method = "PUT"
|
||||
@@ -39,9 +65,9 @@ path = [
|
||||
{"resolved": "room_id"},
|
||||
"/send/m.room.message/",
|
||||
{"resolved": "message_id"},
|
||||
"?user_id=@rmass_",
|
||||
{"resolved": "sender"},
|
||||
":loxthelion.com&ts=",
|
||||
"?user_id=",
|
||||
{"resolved": "matrixuser"},
|
||||
"&ts=",
|
||||
{"resolved": "timestamp"},
|
||||
"000"
|
||||
]
|
||||
|
||||
@@ -7,8 +7,10 @@ kind = "action"
|
||||
showstatus = True
|
||||
|
||||
resolve = {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
"get": {
|
||||
"sender": ["messages", 0, "senderId"],
|
||||
"username": ["profile", "username"],
|
||||
}
|
||||
}
|
||||
keys = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user