recall_sdk
Version:
Node js sdk for the recall ai api
28 lines (27 loc) • 910 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Recall = void 0;
const bot_1 = require("./bot");
const auth_1 = require("./auth");
const calendar_v2_1 = require("./calendar-v2");
class Recall {
constructor({ apiKey, region }) {
this.apiKey = apiKey;
this.region = region;
this.v1Url = `https://${this.region}.recall.ai/api/v1`;
this.v2Url = `https://${this.region}.recall.ai/api/v2`;
this.bot = bot_1.Bot.getInstance({
apiKey: this.apiKey,
botUrl: `${this.v1Url}/bot`,
});
this.auth = auth_1.Auth.getInstance({
apiKey: this.apiKey,
loginUrl: `${this.v2Url}`,
});
this.calendar = calendar_v2_1.CalendarV2.getInstance({
apiKey: this.apiKey,
calendarUrl: `${this.v2Url}/calendars/`,
});
}
}
exports.Recall = Recall;