Evan Feenstra
4 years ago
26 changed files with 288 additions and 9 deletions
@ -0,0 +1,31 @@ |
|||
import * as path from 'path' |
|||
|
|||
const constants = require(path.join(__dirname, '../../config/constants.json')) |
|||
|
|||
/* intercept */ |
|||
|
|||
export const installBot = async (req,res) => { |
|||
// need bot uuid and maker pubkey
|
|||
// send bot_install to bot maker
|
|||
// mqtt sub to the bot uuid (dont need this actually)
|
|||
|
|||
// generate ChatMember with bot=true
|
|||
// bot_maker_pubkey, bot_uuid, bot_prefix
|
|||
} |
|||
|
|||
export async function receiveBotInstall(payload) { |
|||
console.log('=> receiveBotInstall') |
|||
// const dat = payload.content || payload
|
|||
// const sender_pub_key = dat.sender.pub_key
|
|||
// const tribe_uuid = dat.chat.uuid
|
|||
|
|||
// verify tribe ownership (verify signed timestamp)
|
|||
|
|||
// create BotMember for publishing to mqtt
|
|||
} |
|||
|
|||
// type BotResType = 'install' | 'message' | 'broadcast' | 'keysend'
|
|||
|
|||
export async function receiveBotRes(payload) { |
|||
console.log(constants.message_types.bot_res) |
|||
} |
@ -0,0 +1,21 @@ |
|||
import { Table, Column, Model } from 'sequelize-typescript'; |
|||
|
|||
@Table({tableName: 'sphinx_bot_members', underscored: true}) |
|||
export default class BotMember extends Model<BotMember> { |
|||
|
|||
@Column |
|||
memberPubkey: string |
|||
|
|||
@Column |
|||
tribeUuid: string |
|||
|
|||
@Column |
|||
msgCount: number |
|||
|
|||
@Column |
|||
createdAt: Date |
|||
|
|||
@Column |
|||
updatedAt: Date |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
|
|||
/* |
|||
process if bot message |
|||
AND return true if it is, and forward to bot |
|||
*/ |
|||
|
|||
export interface Msg { |
|||
type: number, |
|||
message: { |
|||
content: string |
|||
}, |
|||
chat: { |
|||
uuid: string |
|||
}, |
|||
sender: { |
|||
pub_key: string, |
|||
alias: string, |
|||
} |
|||
} |
|||
|
|||
// msg.message.content
|
|||
export function isBotMsg(msg:Msg, sentByMe:boolean){ |
|||
return false |
|||
|
|||
// check if bot msg
|
|||
// check my ChatMembers to see if its here
|
|||
// OR check my Bots if im the maker
|
|||
|
|||
// process it "bot_cmd"
|
|||
} |
@ -0,0 +1,40 @@ |
|||
"use strict"; |
|||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { |
|||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
|||
return new (P || (P = Promise))(function (resolve, reject) { |
|||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } |
|||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } |
|||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
|||
step((generator = generator.apply(thisArg, _arguments || [])).next()); |
|||
}); |
|||
}; |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
const path = require("path"); |
|||
const constants = require(path.join(__dirname, '../../config/constants.json')); |
|||
/* intercept */ |
|||
exports.installBot = (req, res) => __awaiter(void 0, void 0, void 0, function* () { |
|||
// need bot uuid and maker pubkey
|
|||
// send bot_install to bot maker
|
|||
// mqtt sub to the bot uuid (dont need this actually)
|
|||
// generate ChatMember with bot=true
|
|||
// bot_maker_pubkey, bot_uuid, bot_prefix
|
|||
}); |
|||
function receiveBotInstall(payload) { |
|||
return __awaiter(this, void 0, void 0, function* () { |
|||
console.log('=> receiveBotInstall'); |
|||
// const dat = payload.content || payload
|
|||
// const sender_pub_key = dat.sender.pub_key
|
|||
// const tribe_uuid = dat.chat.uuid
|
|||
// verify tribe ownership (verify signed timestamp)
|
|||
// create BotMember for publishing to mqtt
|
|||
}); |
|||
} |
|||
exports.receiveBotInstall = receiveBotInstall; |
|||
// type BotResType = 'install' | 'message' | 'broadcast' | 'keysend'
|
|||
function receiveBotRes(payload) { |
|||
return __awaiter(this, void 0, void 0, function* () { |
|||
console.log(constants.message_types.bot_res); |
|||
}); |
|||
} |
|||
exports.receiveBotRes = receiveBotRes; |
|||
//# sourceMappingURL=bots.js.map
|
@ -0,0 +1 @@ |
|||
{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../api/controllers/bots.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAE5B,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC,CAAA;AAE9E,eAAe;AAEF,QAAA,UAAU,GAAG,CAAO,GAAG,EAAC,GAAG,EAAE,EAAE;IAC1C,iCAAiC;IACjC,gCAAgC;IAChC,qDAAqD;IAErD,oCAAoC;IACpC,yCAAyC;AAC3C,CAAC,CAAA,CAAA;AAED,SAAsB,iBAAiB,CAAC,OAAO;;QAC7C,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;QACnC,yCAAyC;QACzC,4CAA4C;QAC5C,mCAAmC;QAEnC,mDAAmD;QAEnD,0CAA0C;IAC5C,CAAC;CAAA;AATD,8CASC;AAED,oEAAoE;AAEpE,SAAsB,aAAa,CAAC,OAAO;;QACzC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;CAAA;AAFD,sCAEC"} |
@ -1 +1 @@ |
|||
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../../../../api/models/ts/bot.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAGtE,IAAqB,GAAG,GAAxB,MAAqB,GAAI,SAAQ,4BAAU;CAwB1C,CAAA;AAjBC;IALC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;+BACQ;AAGV;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;mCACV;AAGd;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;mCACO;AAGd;IADC,6BAAM;8BACI,IAAI;sCAAA;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAtBI,GAAG;IADvB,4BAAK,CAAC,EAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GAChC,GAAG,CAwBvB;kBAxBoB,GAAG"} |
|||
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../../../../api/models/ts/bot.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAGtE,IAAqB,GAAG,GAAxB,MAAqB,GAAI,SAAQ,4BAAU;CA2B1C,CAAA;AApBC;IALC,6BAAM,CAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;;+BACQ;AAGV;IADC,6BAAM,CAAC,+BAAQ,CAAC,MAAM,CAAC;;mCACV;AAGd;IADC,6BAAM;;iCACK;AAGZ;IADC,6BAAM;;mCACO;AAGd;IADC,6BAAM;;oCACQ;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAGf;IADC,6BAAM;8BACI,IAAI;sCAAA;AAzBI,GAAG;IADvB,4BAAK,CAAC,EAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GAChC,GAAG,CA2BvB;kBA3BoB,GAAG"} |
@ -0,0 +1,39 @@ |
|||
"use strict"; |
|||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
|||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; |
|||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); |
|||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; |
|||
return c > 3 && r && Object.defineProperty(target, key, r), r; |
|||
}; |
|||
var __metadata = (this && this.__metadata) || function (k, v) { |
|||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); |
|||
}; |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
const sequelize_typescript_1 = require("sequelize-typescript"); |
|||
let BotMember = class BotMember extends sequelize_typescript_1.Model { |
|||
}; |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], BotMember.prototype, "memberPubkey", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", String) |
|||
], BotMember.prototype, "tribeUuid", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Number) |
|||
], BotMember.prototype, "msgCount", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Date) |
|||
], BotMember.prototype, "createdAt", void 0); |
|||
__decorate([ |
|||
sequelize_typescript_1.Column, |
|||
__metadata("design:type", Date) |
|||
], BotMember.prototype, "updatedAt", void 0); |
|||
BotMember = __decorate([ |
|||
sequelize_typescript_1.Table({ tableName: 'sphinx_bot_members', underscored: true }) |
|||
], BotMember); |
|||
exports.default = BotMember; |
|||
//# sourceMappingURL=botMember.js.map
|
@ -0,0 +1 @@ |
|||
{"version":3,"file":"botMember.js","sourceRoot":"","sources":["../../../../api/models/ts/botMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAG5D,IAAqB,SAAS,GAA9B,MAAqB,SAAU,SAAQ,4BAAgB;CAiBtD,CAAA;AAdC;IADC,6BAAM;;+CACa;AAGpB;IADC,6BAAM;;4CACU;AAGjB;IADC,6BAAM;;2CACS;AAGhB;IADC,6BAAM;8BACI,IAAI;4CAAA;AAGf;IADC,6BAAM;8BACI,IAAI;4CAAA;AAfI,SAAS;IAD7B,4BAAK,CAAC,EAAC,SAAS,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,EAAC,CAAC;GACvC,SAAS,CAiB7B;kBAjBoB,SAAS"} |
@ -1 +1 @@ |
|||
{"version":3,"file":"chatMember.js","sourceRoot":"","sources":["../../../../api/models/ts/chatMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAK5D,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,4BAAiB;CAuBxD,CAAA;AApBC;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;wCACK;AAGZ;IADC,6BAAM;;8CACW;AAGlB;IADC,6BAAM;;iDACc;AAGrB;IADC,6BAAM;8BACK,IAAI;8CAAA;AAGhB;IADC,6BAAM;;0CACO;AArBK,UAAU;IAH9B,4BAAK,CAAC,EAAC,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAC;YACnE,EAAC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,SAAS,EAAC,YAAY,CAAC,EAAC;SAC/C,EAAC,CAAC;GACkB,UAAU,CAuB9B;kBAvBoB,UAAU"} |
|||
{"version":3,"file":"chatMember.js","sourceRoot":"","sources":["../../../../api/models/ts/chatMember.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4D;AAK5D,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,4BAAiB;CAmCxD,CAAA;AAhCC;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;wCACK;AAGZ;IADC,6BAAM;;8CACW;AAGlB;IADC,6BAAM;;iDACc;AAGrB;IADC,6BAAM;8BACK,IAAI;8CAAA;AAGhB;IADC,6BAAM;;0CACO;AAGd;IADC,6BAAM;;uCACK;AAGZ;IADC,6BAAM;;6CACU;AAGjB;IADC,6BAAM;;kDACe;AAGtB;IADC,6BAAM;;2CACQ;AAjCI,UAAU;IAH9B,4BAAK,CAAC,EAAC,SAAS,EAAE,qBAAqB,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAC;YACnE,EAAC,MAAM,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,SAAS,EAAC,YAAY,CAAC,EAAC;SAC/C,EAAC,CAAC;GACkB,UAAU,CAmC9B;kBAnCoB,UAAU"} |
@ -0,0 +1,16 @@ |
|||
"use strict"; |
|||
/* |
|||
process if bot message |
|||
AND return true if it is, and forward to bot |
|||
*/ |
|||
Object.defineProperty(exports, "__esModule", { value: true }); |
|||
// msg.message.content
|
|||
function isBotMsg(msg, sentByMe) { |
|||
return false; |
|||
// check if bot msg
|
|||
// check my ChatMembers to see if its here
|
|||
// OR check my Bots if im the maker
|
|||
// process it "bot_cmd"
|
|||
} |
|||
exports.isBotMsg = isBotMsg; |
|||
//# sourceMappingURL=intercept.js.map
|
@ -0,0 +1 @@ |
|||
{"version":3,"file":"intercept.js","sourceRoot":"","sources":["../../../api/network/intercept.ts"],"names":[],"mappings":";AACA;;;EAGE;;AAgBF,sBAAsB;AACtB,SAAgB,QAAQ,CAAC,GAAO,EAAE,QAAgB;IAChD,OAAO,KAAK,CAAA;IAEZ,mBAAmB;IACnB,0CAA0C;IAC1C,mCAAmC;IAEnC,uBAAuB;AACzB,CAAC;AARD,4BAQC"} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../api/utils/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAA2C;AAC3C,sCAA2C;AAC3C,iDAAoC;AACpC,iCAAgC;AAChC,sCAAqC;AACrC,gDAAwC;AACxC,8CAA0D;AAE1D,MAAM,YAAY,GAAG,CAAC,CAAA;AAEtB,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IACxC,MAAM,UAAU,EAAE,CAAA;IAClB,IAAI;QACF,MAAM,kBAAS,CAAC,IAAI,EAAE,CAAA;QACtB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KACpC;IAAC,OAAM,CAAC,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAC,C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