@onereach/idw-init-account-resources 0.15.18 → 0.16.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/assets/db_migrations/20250820121000-remove-3-general-skills.js +100 -0
- package/dist/assets/db_migrations/20250820121000-remove-3-general-skills.js.map +1 -0
- package/dist/assets/skills/index.js +11 -20
- package/dist/assets/skills/index.js.map +1 -1
- package/dist/initializers/rdb.js +3 -3
- package/dist/initializers/rdb.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/db_migrations/20250820121000-remove-3-general-skills.ts +66 -0
- package/src/assets/skills/index.ts +11 -22
- package/src/initializers/rdb.ts +12 -11
- package/dist/assets/skills/customize_idw.js +0 -26
- package/dist/assets/skills/customize_idw.js.map +0 -1
- package/dist/assets/skills/documentation/customize-idw.pdf +0 -0
- package/dist/assets/skills/documentation/manage-domains.pdf +0 -0
- package/dist/assets/skills/documentation/manage-users.pdf +0 -0
- package/dist/assets/skills/manage_domains.js +0 -26
- package/dist/assets/skills/manage_domains.js.map +0 -1
- package/dist/assets/skills/manage_users.js +0 -26
- package/dist/assets/skills/manage_users.js.map +0 -1
- package/src/assets/skills/customize_idw.ts +0 -34
- package/src/assets/skills/documentation/customize-idw.pdf +0 -0
- package/src/assets/skills/documentation/manage-domains.pdf +0 -0
- package/src/assets/skills/documentation/manage-users.pdf +0 -0
- package/src/assets/skills/manage_domains.ts +0 -38
- package/src/assets/skills/manage_users.ts +0 -38
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
WARN Issue while reading "/builds/onereach/platform/idw/idw-template/.npmrc". Failed to replace env in config: ${OR_NPM_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @onereach/idw-init-account-resources@0.15.
|
|
3
|
+
> @onereach/idw-init-account-resources@0.15.18 build /builds/onereach/platform/idw/idw-template/packages/init/idw-init-account-resources
|
|
4
4
|
> rimraf dist && tsc -b && mkdir dist/assets/skills/documentation && cp -r src/assets/skills/documentation/* dist/assets/skills/documentation
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
39
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
40
|
+
if (ar || !(i in from)) {
|
|
41
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
42
|
+
ar[i] = from[i];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
var files_1 = require("@or-sdk/files");
|
|
49
|
+
var sequelize_1 = require("sequelize");
|
|
50
|
+
var initializers_1 = require("../../initializers");
|
|
51
|
+
module.exports = {
|
|
52
|
+
up: function (queryInterface) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
54
|
+
var token, discoveryUrl, rdb, files, connectionParams, idwCoreSequelize, skillUids, skillUidsLiteral, results, skillIds, skillUidsExtended, deleteFilePromises;
|
|
55
|
+
return __generator(this, function (_a) {
|
|
56
|
+
switch (_a.label) {
|
|
57
|
+
case 0:
|
|
58
|
+
token = queryInterface.context._orToken;
|
|
59
|
+
discoveryUrl = queryInterface.context.discoveryUrl;
|
|
60
|
+
rdb = new initializers_1.InitRdbResources({
|
|
61
|
+
token: token,
|
|
62
|
+
discoveryUrl: discoveryUrl,
|
|
63
|
+
});
|
|
64
|
+
files = new files_1.Files({
|
|
65
|
+
token: token,
|
|
66
|
+
discoveryUrl: discoveryUrl,
|
|
67
|
+
});
|
|
68
|
+
return [4, rdb._getPgConnectionParams('idw_core')];
|
|
69
|
+
case 1:
|
|
70
|
+
connectionParams = _a.sent();
|
|
71
|
+
idwCoreSequelize = new sequelize_1.Sequelize({
|
|
72
|
+
database: connectionParams.database,
|
|
73
|
+
username: connectionParams.user,
|
|
74
|
+
password: connectionParams.password,
|
|
75
|
+
host: connectionParams.host,
|
|
76
|
+
dialect: 'postgres',
|
|
77
|
+
logging: false,
|
|
78
|
+
});
|
|
79
|
+
skillUids = ['manage-users', 'manage-domains', 'customize-idw'];
|
|
80
|
+
skillUidsLiteral = skillUids.map(function (s) { return "'".concat(s, "'"); }).join(', ');
|
|
81
|
+
return [4, idwCoreSequelize.query("\n DELETE FROM skill\n WHERE uid = ANY(ARRAY[".concat(skillUidsLiteral, "])\n RETURNING __id;\n "))];
|
|
82
|
+
case 2:
|
|
83
|
+
results = (_a.sent())[0];
|
|
84
|
+
skillIds = results.map(function (r) { return "'".concat(r.__id, "'"); }).join(', ');
|
|
85
|
+
return [4, idwCoreSequelize.query("\n DELETE FROM skill_domain\n WHERE skill IN (".concat(skillIds, ");\n "))];
|
|
86
|
+
case 3:
|
|
87
|
+
_a.sent();
|
|
88
|
+
skillUidsExtended = __spreadArray(__spreadArray([], skillUids, true), skillUids.map(function (skill) { return "".concat(skill, "-v1"); }), true).map(function (name) { return "".concat(name, ".pdf"); });
|
|
89
|
+
deleteFilePromises = skillUidsExtended
|
|
90
|
+
.map(function (name) { return files.deleteFile("IDW/docs/".concat(name), true); });
|
|
91
|
+
return [4, Promise.allSettled(deleteFilePromises)];
|
|
92
|
+
case 4:
|
|
93
|
+
_a.sent();
|
|
94
|
+
return [2];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=20250820121000-remove-3-general-skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20250820121000-remove-3-general-skills.js","sourceRoot":"","sources":["../../../src/assets/db_migrations/20250820121000-remove-3-general-skills.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,uCAAsC;AACtC,uCAAsD;AAEtD,mDAAsD;AAGtD,MAAM,CAAC,OAAO,GAAG;IAET,EAAE,YAAC,cAA+G;;;;;;wBAChH,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC;wBACxC,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC;wBAEnD,GAAG,GAAG,IAAI,+BAAgB,CAAC;4BAC/B,KAAK,OAAA;4BACL,YAAY,cAAA;yBACb,CAAC,CAAC;wBAEG,KAAK,GAAG,IAAI,aAAK,CAAC;4BACtB,KAAK,OAAA;4BACL,YAAY,cAAA;yBACb,CAAC,CAAC;wBAEsB,WAAM,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAA;;wBAA/D,gBAAgB,GAAG,SAA4C;wBAC/D,gBAAgB,GAAG,IAAI,qBAAS,CACpC;4BACE,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;4BACnC,QAAQ,EAAE,gBAAgB,CAAC,IAAI;4BAC/B,QAAQ,EAAE,gBAAgB,CAAC,QAAkB;4BAC7C,IAAI,EAAE,gBAAgB,CAAC,IAAI;4BAC3B,OAAO,EAAE,UAAU;4BACnB,OAAO,EAAE,KAAK;yBACf,CAAC,CAAC;wBAGC,SAAS,GAAG,CAAC,cAAc,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;wBAChE,gBAAgB,GAAG,SAAS,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,WAAI,CAAC,MAAG,EAAR,CAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBAE9C,WAAM,gBAAgB,CAAC,KAAK,CAAC,iEAEtB,gBAAgB,oCAEzC,CAAC,EAAA;;wBAJK,OAAO,GAAI,CAAC,SAIjB,CAAoC,GAJxB;wBAOR,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,WAAI,CAAC,CAAC,IAAI,MAAG,EAAb,CAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBAE5D,WAAM,gBAAgB,CAAC,KAAK,CAAC,kEAET,QAAQ,aAC3B,CAAC,EAAA;;wBAHF,SAGE,CAAC;wBAIG,iBAAiB,GAAG,gCACrB,SAAS,SACT,SAAS,CAAC,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,UAAG,KAAK,QAAK,EAAb,CAAa,CAAC,QACxC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,UAAG,IAAI,SAAM,EAAb,CAAa,CAAC,CAAC;wBAEvB,kBAAkB,GAAG,iBAAiB;6BACzC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,KAAK,CAAC,UAAU,CAAC,mBAAY,IAAI,CAAE,EAAE,IAAI,CAAC,EAA1C,CAA0C,CAAC,CAAC;wBAE3D,WAAM,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAA;;wBAA5C,SAA4C,CAAC;;;;;KAC9C;CACF,CAAC"}
|
|
@@ -15,41 +15,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.skills = void 0;
|
|
18
|
-
var customize_idw_1 = require("./customize_idw");
|
|
19
|
-
var manage_channels_1 = require("./manage_channels");
|
|
20
|
-
var manage_domains_1 = require("./manage_domains");
|
|
21
|
-
var manage_flows_1 = require("./manage_flows");
|
|
22
|
-
var manage_knowledge_1 = require("./manage_knowledge");
|
|
23
|
-
var manage_skills_1 = require("./manage_skills");
|
|
24
|
-
var manage_tags_1 = require("./manage_tags");
|
|
25
|
-
var manage_users_1 = require("./manage_users");
|
|
26
|
-
var reporting_1 = require("./reporting");
|
|
27
|
-
var leave_feedback_1 = require("./leave_feedback");
|
|
28
|
-
var write_text_1 = require("./write_text");
|
|
29
|
-
var write_code_1 = require("./write_code");
|
|
30
18
|
var ai_data_insights_1 = require("./ai_data_insights");
|
|
31
19
|
var ai_vision_1 = require("./ai_vision");
|
|
32
20
|
var automatic_meeting_reschedule_1 = require("./automatic_meeting_reschedule");
|
|
33
21
|
var create_email_1 = require("./create_email");
|
|
34
22
|
var create_invoice_1 = require("./create_invoice");
|
|
35
23
|
var customer_sentiment_analysis_1 = require("./customer_sentiment_analysis");
|
|
36
|
-
var summarize_document_1 = require("./summarize_document");
|
|
37
24
|
var employee_onboarding_training_1 = require("./employee_onboarding_training");
|
|
25
|
+
var generate_image_1 = require("./generate_image");
|
|
38
26
|
var hr_request_pto_1 = require("./hr_request_pto");
|
|
27
|
+
var leave_feedback_1 = require("./leave_feedback");
|
|
28
|
+
var manage_channels_1 = require("./manage_channels");
|
|
29
|
+
var manage_flows_1 = require("./manage_flows");
|
|
30
|
+
var manage_knowledge_1 = require("./manage_knowledge");
|
|
31
|
+
var manage_skills_1 = require("./manage_skills");
|
|
32
|
+
var manage_tags_1 = require("./manage_tags");
|
|
33
|
+
var reporting_1 = require("./reporting");
|
|
39
34
|
var request_triage_1 = require("./request_triage");
|
|
40
35
|
var sales_forecasting_1 = require("./sales_forecasting");
|
|
41
36
|
var schedule_appointment_web_1 = require("./schedule_appointment_web");
|
|
42
37
|
var social_media_management_1 = require("./social_media_management");
|
|
38
|
+
var summarize_document_1 = require("./summarize_document");
|
|
43
39
|
var transcribe_audio_content_1 = require("./transcribe_audio_content");
|
|
44
|
-
var
|
|
45
|
-
|
|
40
|
+
var write_code_1 = require("./write_code");
|
|
41
|
+
var write_text_1 = require("./write_text");
|
|
46
42
|
__exportStar(require("./manage_channels"), exports);
|
|
47
|
-
__exportStar(require("./manage_domains"), exports);
|
|
48
43
|
__exportStar(require("./manage_flows"), exports);
|
|
49
44
|
__exportStar(require("./manage_knowledge"), exports);
|
|
50
45
|
__exportStar(require("./manage_skills"), exports);
|
|
51
46
|
__exportStar(require("./manage_tags"), exports);
|
|
52
|
-
__exportStar(require("./manage_users"), exports);
|
|
53
47
|
__exportStar(require("./reporting"), exports);
|
|
54
48
|
__exportStar(require("./leave_feedback"), exports);
|
|
55
49
|
__exportStar(require("./write_text"), exports);
|
|
@@ -70,11 +64,8 @@ __exportStar(require("./social_media_management"), exports);
|
|
|
70
64
|
__exportStar(require("./transcribe_audio_content"), exports);
|
|
71
65
|
__exportStar(require("./generate_image"), exports);
|
|
72
66
|
exports.skills = [
|
|
73
|
-
manage_users_1.manageUsersSkill,
|
|
74
|
-
customize_idw_1.customizeIdwSkill,
|
|
75
67
|
manage_skills_1.manageSkillsSkill,
|
|
76
68
|
manage_channels_1.manageChannelsSkill,
|
|
77
|
-
manage_domains_1.manageDomainsSkill,
|
|
78
69
|
manage_tags_1.manageTagsSkill,
|
|
79
70
|
manage_knowledge_1.manageKnowledgeSkill,
|
|
80
71
|
manage_flows_1.manageFlowsSkill,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/skills/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/skills/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAyD;AACzD,yCAA4C;AAC5C,+EAAwE;AACxE,+CAAkD;AAClD,mDAAsD;AACtD,6EAA+E;AAC/E,+EAAyE;AACzE,mDAAsD;AACtD,mDAAkD;AAClD,mDAAsD;AACtD,qDAAwD;AACxD,+CAAkD;AAClD,uDAA0D;AAC1D,iDAAoD;AACpD,6CAAgD;AAChD,yCAA6C;AAC7C,mDAAsD;AACtD,yDAA4D;AAC5D,uEAAsE;AACtE,qEAAuE;AACvE,2DAA8D;AAC9D,uEAAyE;AACzE,2CAA8C;AAC9C,2CAA8C;AAE9C,oDAAkC;AAClC,iDAA+B;AAC/B,qDAAmC;AACnC,kDAAgC;AAChC,gDAA8B;AAC9B,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAE7B,qDAAmC;AACnC,8CAA4B;AAC5B,iEAA+C;AAC/C,iDAA+B;AAC/B,mDAAiC;AACjC,gEAA8C;AAC9C,uDAAqC;AACrC,iEAA+C;AAC/C,mDAAiC;AACjC,mDAAiC;AACjC,sDAAoC;AACpC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AAEpB,QAAA,MAAM,GAAG;IACpB,iCAAiB;IACjB,qCAAmB;IACnB,6BAAe;IACf,uCAAoB;IACpB,+BAAgB;IAChB,0BAAc;IACd,mCAAkB;IAClB,2BAAc;IACd,2BAAc;IACd,2CAAsB;IACtB,sDAA2B;IAG3B,sCAAmB;IACnB,yBAAa;IACb,qDAAsB;IACtB,+BAAgB;IAChB,mCAAkB;IAClB,4DAA8B;IAC9B,sDAAuB;IACvB,+BAAc;IACd,mCAAkB;IAClB,yCAAqB;IACrB,mDAAwB;IACxB,oDAA0B;IAC1B,mCAAkB;CACnB,CAAC"}
|
package/dist/initializers/rdb.js
CHANGED
|
@@ -51,12 +51,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.InitRdbResources = void 0;
|
|
54
|
+
var pgsql_1 = require("@or-sdk/pgsql");
|
|
55
|
+
var path_1 = __importDefault(require("path"));
|
|
54
56
|
var sequelize_1 = require("sequelize");
|
|
55
57
|
var umzug_1 = require("umzug");
|
|
56
|
-
var path_1 = __importDefault(require("path"));
|
|
57
|
-
var pgsql_1 = require("@or-sdk/pgsql");
|
|
58
|
-
var models_1 = require("../assets/models");
|
|
59
58
|
var domains_1 = require("../assets/domains");
|
|
59
|
+
var models_1 = require("../assets/models");
|
|
60
60
|
var InitRdbResources = (function () {
|
|
61
61
|
function InitRdbResources(_a) {
|
|
62
62
|
var token = _a.token, discoveryUrl = _a.discoveryUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rdb.js","sourceRoot":"","sources":["../../src/initializers/rdb.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AACtC
|
|
1
|
+
{"version":3,"file":"rdb.js","sourceRoot":"","sources":["../../src/initializers/rdb.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AACtC,8CAAwB;AAExB,uCAAsC;AACtC,+BAAgD;AAEhD,6CAAqD;AACrD,2CAAuD;AASvD;IAKE,0BAAY,EAA+C;YAA7C,KAAK,WAAA,EAAE,YAAY,kBAAA;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC,CAAC;IACL,CAAC;IAEY,+BAAI,GAAjB;;;;;4BAC2B,WAAM,IAAI,CAAC,sBAAsB,EAAE,EAAA;;wBAAtD,gBAAgB,GAAG,SAAmC;wBACtD,SAAS,GAAG,IAAI,qBAAS,CAC7B;4BACE,QAAQ,EAAE,g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AAgB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { Files } from '@or-sdk/files';
|
|
4
|
+
import { QueryInterface, Sequelize } from 'sequelize';
|
|
5
|
+
|
|
6
|
+
import { InitRdbResources } from '../../initializers';
|
|
7
|
+
|
|
8
|
+
/** @type {import('sequelize-cli').Migration} */
|
|
9
|
+
module.exports = {
|
|
10
|
+
// eslint-disable-next-line max-len
|
|
11
|
+
async up(queryInterface: QueryInterface & { context: { sequelize: Sequelize; _orToken: string; discoveryUrl: string;}; }) {
|
|
12
|
+
const token = queryInterface.context._orToken;
|
|
13
|
+
const discoveryUrl = queryInterface.context.discoveryUrl;
|
|
14
|
+
|
|
15
|
+
const rdb = new InitRdbResources({
|
|
16
|
+
token,
|
|
17
|
+
discoveryUrl,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const files = new Files({
|
|
21
|
+
token,
|
|
22
|
+
discoveryUrl,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const connectionParams = await rdb._getPgConnectionParams('idw_core');
|
|
26
|
+
const idwCoreSequelize = new Sequelize(
|
|
27
|
+
{
|
|
28
|
+
database: connectionParams.database,
|
|
29
|
+
username: connectionParams.user,
|
|
30
|
+
password: connectionParams.password as string,
|
|
31
|
+
host: connectionParams.host,
|
|
32
|
+
dialect: 'postgres',
|
|
33
|
+
logging: false,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// remove skills
|
|
37
|
+
const skillUids = ['manage-users', 'manage-domains', 'customize-idw'];
|
|
38
|
+
const skillUidsLiteral = skillUids.map(s => `'${s}'`).join(', ');
|
|
39
|
+
|
|
40
|
+
const [results] = (await idwCoreSequelize.query(`
|
|
41
|
+
DELETE FROM skill
|
|
42
|
+
WHERE uid = ANY(ARRAY[${skillUidsLiteral}])
|
|
43
|
+
RETURNING __id;
|
|
44
|
+
`)) as unknown as [{ __id: string }[]];
|
|
45
|
+
|
|
46
|
+
// remove skills link to domains
|
|
47
|
+
const skillIds = results.map(r => `'${r.__id}'`).join(', ');
|
|
48
|
+
|
|
49
|
+
await idwCoreSequelize.query(`
|
|
50
|
+
DELETE FROM skill_domain
|
|
51
|
+
WHERE skill IN (${skillIds});
|
|
52
|
+
`);
|
|
53
|
+
|
|
54
|
+
// remove skill documentation
|
|
55
|
+
// original + '-v1' versions
|
|
56
|
+
const skillUidsExtended = [
|
|
57
|
+
...skillUids,
|
|
58
|
+
...skillUids.map(skill => `${skill}-v1`),
|
|
59
|
+
].map(name => `${name}.pdf`);
|
|
60
|
+
|
|
61
|
+
const deleteFilePromises = skillUidsExtended
|
|
62
|
+
.map(name => files.deleteFile(`IDW/docs/${name}`, true));
|
|
63
|
+
|
|
64
|
+
await Promise.allSettled(deleteFilePromises);
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -1,41 +1,33 @@
|
|
|
1
|
-
import { customizeIdwSkill } from './customize_idw';
|
|
2
|
-
import { manageChannelsSkill } from './manage_channels';
|
|
3
|
-
import { manageDomainsSkill } from './manage_domains';
|
|
4
|
-
import { manageFlowsSkill } from './manage_flows';
|
|
5
|
-
import { manageKnowledgeSkill } from './manage_knowledge';
|
|
6
|
-
import { manageSkillsSkill } from './manage_skills';
|
|
7
|
-
import { manageTagsSkill } from './manage_tags';
|
|
8
|
-
import { manageUsersSkill } from './manage_users';
|
|
9
|
-
import { reportingSkill } from './reporting';
|
|
10
|
-
import { leaveFeedbackSkill } from './leave_feedback';
|
|
11
|
-
import { writeTextSkill } from './write_text';
|
|
12
|
-
import { writeCodeSkill } from './write_code';
|
|
13
|
-
|
|
14
1
|
import { aiDataInsightsSkill } from './ai_data_insights';
|
|
15
2
|
import { aiVisionSkill } from './ai_vision';
|
|
16
3
|
import { meetingRescheduleSkill } from './automatic_meeting_reschedule';
|
|
17
4
|
import { createEmailSkill } from './create_email';
|
|
18
5
|
import { createInvoiceSkill } from './create_invoice';
|
|
19
6
|
import { customerSentimentAnalysisSkill } from './customer_sentiment_analysis';
|
|
20
|
-
import { summarizeDocumentSkill } from './summarize_document';
|
|
21
7
|
import { employeeOnboardingSkill } from './employee_onboarding_training';
|
|
8
|
+
import { generateImageSkill } from './generate_image';
|
|
22
9
|
import { hrRequestSkill } from './hr_request_pto';
|
|
10
|
+
import { leaveFeedbackSkill } from './leave_feedback';
|
|
11
|
+
import { manageChannelsSkill } from './manage_channels';
|
|
12
|
+
import { manageFlowsSkill } from './manage_flows';
|
|
13
|
+
import { manageKnowledgeSkill } from './manage_knowledge';
|
|
14
|
+
import { manageSkillsSkill } from './manage_skills';
|
|
15
|
+
import { manageTagsSkill } from './manage_tags';
|
|
16
|
+
import { reportingSkill } from './reporting';
|
|
23
17
|
import { requestTriageSkill } from './request_triage';
|
|
24
18
|
import { salesForecastingSkill } from './sales_forecasting';
|
|
25
19
|
import { scheduleAppointmentSkill } from './schedule_appointment_web';
|
|
26
20
|
import { socialMediaManagementSkill } from './social_media_management';
|
|
21
|
+
import { summarizeDocumentSkill } from './summarize_document';
|
|
27
22
|
import { transcribeAudioContentSkill } from './transcribe_audio_content';
|
|
28
|
-
import {
|
|
29
|
-
|
|
23
|
+
import { writeCodeSkill } from './write_code';
|
|
24
|
+
import { writeTextSkill } from './write_text';
|
|
30
25
|
|
|
31
|
-
export * from './customize_idw';
|
|
32
26
|
export * from './manage_channels';
|
|
33
|
-
export * from './manage_domains';
|
|
34
27
|
export * from './manage_flows';
|
|
35
28
|
export * from './manage_knowledge';
|
|
36
29
|
export * from './manage_skills';
|
|
37
30
|
export * from './manage_tags';
|
|
38
|
-
export * from './manage_users';
|
|
39
31
|
export * from './reporting';
|
|
40
32
|
export * from './leave_feedback';
|
|
41
33
|
export * from './write_text';
|
|
@@ -58,11 +50,8 @@ export * from './transcribe_audio_content';
|
|
|
58
50
|
export * from './generate_image';
|
|
59
51
|
|
|
60
52
|
export const skills = [
|
|
61
|
-
manageUsersSkill,
|
|
62
|
-
customizeIdwSkill,
|
|
63
53
|
manageSkillsSkill,
|
|
64
54
|
manageChannelsSkill,
|
|
65
|
-
manageDomainsSkill,
|
|
66
55
|
manageTagsSkill,
|
|
67
56
|
manageKnowledgeSkill,
|
|
68
57
|
manageFlowsSkill,
|
package/src/initializers/rdb.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { Pgsql } from '@or-sdk/pgsql';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import pg from 'pg';
|
|
1
4
|
import { Sequelize } from 'sequelize';
|
|
2
5
|
import { Umzug, SequelizeStorage } from 'umzug';
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
+
|
|
7
|
+
import { UnlabelledDomain } from '../assets/domains';
|
|
8
|
+
import { models, datasources } from '../assets/models';
|
|
6
9
|
import {
|
|
7
10
|
DatasourceDefinition,
|
|
8
11
|
DbConnectionParams,
|
|
@@ -10,8 +13,6 @@ import {
|
|
|
10
13
|
IdwModelDefinition,
|
|
11
14
|
IdwModel,
|
|
12
15
|
} from '../types';
|
|
13
|
-
import { models, datasources } from '../assets/models';
|
|
14
|
-
import { UnlabelledDomain } from '../assets/domains';
|
|
15
16
|
|
|
16
17
|
export class InitRdbResources {
|
|
17
18
|
private token: string;
|
|
@@ -80,7 +81,7 @@ export class InitRdbResources {
|
|
|
80
81
|
await sequelize.close();
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
public async _getPgConnectionParams(dbName: string = 'idw'): Promise<pg.ClientConfig> {
|
|
84
85
|
// TODO: move method to @or-sdk/pgsql class
|
|
85
86
|
const { config } = await this.pgSql.makeRequest<DbConnectionParams>({
|
|
86
87
|
route: 'database-connection',
|
|
@@ -96,7 +97,7 @@ export class InitRdbResources {
|
|
|
96
97
|
private async upsertDefaultData(
|
|
97
98
|
sequelize: Sequelize,
|
|
98
99
|
models: IdwModelDefinition[] = [],
|
|
99
|
-
datasources: DatasourceDefinition[] = []
|
|
100
|
+
datasources: DatasourceDefinition[] = [],
|
|
100
101
|
) {
|
|
101
102
|
try {
|
|
102
103
|
await sequelize.transaction(async (transaction) => {
|
|
@@ -129,7 +130,7 @@ export class InitRdbResources {
|
|
|
129
130
|
is_llm: ds.is_llm ?? null,
|
|
130
131
|
},
|
|
131
132
|
transaction,
|
|
132
|
-
}
|
|
133
|
+
},
|
|
133
134
|
);
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -156,7 +157,7 @@ export class InitRdbResources {
|
|
|
156
157
|
icon: model.icon || null,
|
|
157
158
|
},
|
|
158
159
|
transaction,
|
|
159
|
-
}
|
|
160
|
+
},
|
|
160
161
|
);
|
|
161
162
|
|
|
162
163
|
const modelId = (modelResult[0] as IdwModel).id;
|
|
@@ -167,7 +168,7 @@ export class InitRdbResources {
|
|
|
167
168
|
{
|
|
168
169
|
replacements: { model_id: modelId },
|
|
169
170
|
transaction,
|
|
170
|
-
}
|
|
171
|
+
},
|
|
171
172
|
);
|
|
172
173
|
|
|
173
174
|
if (model.datasources) {
|
|
@@ -184,7 +185,7 @@ export class InitRdbResources {
|
|
|
184
185
|
ds_slug: dsSlug,
|
|
185
186
|
},
|
|
186
187
|
transaction,
|
|
187
|
-
}
|
|
188
|
+
},
|
|
188
189
|
);
|
|
189
190
|
}
|
|
190
191
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customizeIdwSkill = void 0;
|
|
4
|
-
exports.customizeIdwSkill = {
|
|
5
|
-
uid: 'customize-idw',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Customize IDW',
|
|
8
|
-
description: 'The Customize IDW Skill gives admins the flexibility to personalize their Intelligent Digital Workforce (IDW) to align with team identity and goals. This feature allows users to:\n- Modify the name of the IDW to better represent the team or project.\n- Change the avatar or image associated with the workspace, ensuring a visually relevant representation.\n- Update the description of the IDW to provide more context about the workspace\'s purpose and focus.',
|
|
9
|
-
abbreviation: 'CI',
|
|
10
|
-
number: 2,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
meta: {
|
|
13
|
-
chatId: 'customize-idw',
|
|
14
|
-
prompt: undefined,
|
|
15
|
-
promptParams: undefined,
|
|
16
|
-
},
|
|
17
|
-
passages: [
|
|
18
|
-
{
|
|
19
|
-
content: "The Customize IDW Skill gives admins the flexibility to personalize their Intelligent Digital Workforce (IDW) to align with team identity and goals.\nThis feature allows users to:\n- Modify the name of the IDW to better represent the team or project.\n- Change the avatar or image associated with the workspace, ensuring a visually relevant representation.\n- Update the description of the IDW to provide more context about the workspace's purpose and focus.",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
content: "This AI assistant skill is designed to manage and update information display widgets (IDWs). It allows\nthe user to change the name of a widget, replace the image or avatar associated with it, and edit the widget's\ndescriptive text. This skill is useful for keeping display elements fresh and relevant without manually coding\nchanges.",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=customize_idw.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customize_idw.js","sourceRoot":"","sources":["../../../src/assets/skills/customize_idw.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAAoB;IAChD,GAAG,EAAE,eAAe;IACpB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,4cAA4c;IACzd,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,eAAe;QACvB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,4cAIsF;SAChG;QACD;YACE,OAAO,EAAE,kVAGN;SACJ;KACF;CACF,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.manageDomainsSkill = void 0;
|
|
4
|
-
exports.manageDomainsSkill = {
|
|
5
|
-
uid: 'manage-domains',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Manage Domains',
|
|
8
|
-
description: 'The Manage Domains Skill allows admins to organize and categorize skills within Intelligent Digital Workforce (IDW), ensuring a streamlined and efficient team environment. This skill lets you create, manage, and assign skills to specific domains, making it easier to structure the workspace based on functional areas, departments, or projects. By organizing skills into relevant domains, you can improve navigation and optimize the overall workflow.',
|
|
9
|
-
abbreviation: 'MD',
|
|
10
|
-
number: 4,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
meta: {
|
|
13
|
-
chatId: 'manage-domains',
|
|
14
|
-
prompt: undefined,
|
|
15
|
-
promptParams: undefined,
|
|
16
|
-
},
|
|
17
|
-
passages: [
|
|
18
|
-
{
|
|
19
|
-
content: "The Manage Domains Skill allows admins to organize and categorize skills within Intelligent Digital Workforce (IDW), ensuring a streamlined and efficient team environment.\nThis skill lets you create, manage, and assign skills to specific domains, making it easier to structure the workspace based on functional areas, departments, or projects.\nBy organizing skills into relevant domains, you can improve navigation and optimize the overall workflow.",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
content: "This AI assistant skill is designed to help users efficiently manage their digital domains. The skill\nfocuses on four key actions to simplify domain administration:\n Allows users to modify existing domain settings, such as updating DNS records, changing contact information, or\nadjusting domain forwarding rules.\n Provides the functionality to safely delete a domain from the user's account, ensuring that all associated data is\nhandled according to user preferences and regulatory requirements.\n Facilitates periodic updates to keep domain registration details current and ensures that any critical changes\nrequired for compliance or optimization are implemented smoothly.\n Supports users in registering and setting up new domains, including assistance with choosing the best domain names,\nconfiguration, and initial setup processes.",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=manage_domains.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage_domains.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_domains.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAoB;IACjD,GAAG,EAAE,gBAAgB;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,mcAAmc;IAChd,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,gBAAgB;QACxB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,qcAE2F;SACrG;QACD;YACE,OAAO,EAAE,i1BAS6B;SACvC;KACF;CACF,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.manageUsersSkill = void 0;
|
|
4
|
-
exports.manageUsersSkill = {
|
|
5
|
-
uid: 'manage-users',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Manage Users',
|
|
8
|
-
description: 'The Manage User Skill allows IDW administrators to view, modify, and manage all users in a single location. With this skill, you can easily add users, delete users, modify roles, and manage user invitations, making it simple to ensure that only the right people have the correct access. Use it to update user roles (e.g., change a user to an admin) and remove outdated IDW accounts for seamless collaboration.',
|
|
9
|
-
abbreviation: 'MU',
|
|
10
|
-
number: 1,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
meta: {
|
|
13
|
-
chatId: 'manage-users',
|
|
14
|
-
prompt: undefined,
|
|
15
|
-
promptParams: undefined,
|
|
16
|
-
},
|
|
17
|
-
passages: [
|
|
18
|
-
{
|
|
19
|
-
content: "The Manage User Skill allows IDW administrators to view, modify, and manage all users in a single location.\nWith this skill, you can easily add users, delete users, modify roles, and manage user invitations,\nmaking it simple to ensure that only the right people have the correct access.\nUse it to update user roles (e.g., change a user to an admin) and remove outdated IDW accounts for seamless collaboration.",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
content: "Effortlessly display a comprehensive list of all users associated with your account. This feature\nallows you to view and manage users at a glance, ensuring you are always updated on who has access to your system.\nSimplify user management by enabling you to delete any user from the account directly through a simple command.\nModify the role of any user with ease. Whether you\u2019re promoting a user or adjusting permissions, this feature ensures\nthat the right people have the right access at all times.\nKeep user roles current with instant updates. This feature supports maintaining an efficient and secure workflow by\nensuring all users have roles that align with their current responsibilities and access needs.\nWith these capabilities, you can maintain a secure and organized user environment, enhancing productivity and\nsafeguarding your account information.",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=manage_users.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage_users.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_users.ts"],"names":[],"mappings":";;;AAGa,QAAA,gBAAgB,GAAoB;IAC/C,GAAG,EAAE,cAAc;IACnB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,2ZAA2Z;IACxa,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,cAAc;QACtB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,8ZAG4G;SACtH;QACD;YACE,OAAO,EAAE,22BAQwB;SAClC;KACF;CACF,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
|
-
import type { SkillDefinition } from '../../types';
|
|
3
|
-
|
|
4
|
-
export const customizeIdwSkill: SkillDefinition = {
|
|
5
|
-
uid: 'customize-idw',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Customize IDW',
|
|
8
|
-
description: 'The Customize IDW Skill gives admins the flexibility to personalize their Intelligent Digital Workforce (IDW) to align with team identity and goals. This feature allows users to:\n- Modify the name of the IDW to better represent the team or project.\n- Change the avatar or image associated with the workspace, ensuring a visually relevant representation.\n- Update the description of the IDW to provide more context about the workspace\'s purpose and focus.',
|
|
9
|
-
abbreviation: 'CI',
|
|
10
|
-
number: 2,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
|
|
13
|
-
meta: {
|
|
14
|
-
chatId: 'customize-idw',
|
|
15
|
-
prompt: undefined,
|
|
16
|
-
promptParams: undefined,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
passages: [
|
|
20
|
-
{
|
|
21
|
-
content: `The Customize IDW Skill gives admins the flexibility to personalize their Intelligent Digital Workforce (IDW) to align with team identity and goals.
|
|
22
|
-
This feature allows users to:
|
|
23
|
-
- Modify the name of the IDW to better represent the team or project.
|
|
24
|
-
- Change the avatar or image associated with the workspace, ensuring a visually relevant representation.
|
|
25
|
-
- Update the description of the IDW to provide more context about the workspace's purpose and focus.`,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
content: `This AI assistant skill is designed to manage and update information display widgets (IDWs). It allows
|
|
29
|
-
the user to change the name of a widget, replace the image or avatar associated with it, and edit the widget's
|
|
30
|
-
descriptive text. This skill is useful for keeping display elements fresh and relevant without manually coding
|
|
31
|
-
changes.`,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
|
-
import type { SkillDefinition } from '../../types';
|
|
3
|
-
|
|
4
|
-
export const manageDomainsSkill: SkillDefinition = {
|
|
5
|
-
uid: 'manage-domains',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Manage Domains',
|
|
8
|
-
description: 'The Manage Domains Skill allows admins to organize and categorize skills within Intelligent Digital Workforce (IDW), ensuring a streamlined and efficient team environment. This skill lets you create, manage, and assign skills to specific domains, making it easier to structure the workspace based on functional areas, departments, or projects. By organizing skills into relevant domains, you can improve navigation and optimize the overall workflow.',
|
|
9
|
-
abbreviation: 'MD',
|
|
10
|
-
number: 4,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
|
|
13
|
-
meta: {
|
|
14
|
-
chatId: 'manage-domains',
|
|
15
|
-
prompt: undefined,
|
|
16
|
-
promptParams: undefined,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
passages: [
|
|
20
|
-
{
|
|
21
|
-
content: `The Manage Domains Skill allows admins to organize and categorize skills within Intelligent Digital Workforce (IDW), ensuring a streamlined and efficient team environment.
|
|
22
|
-
This skill lets you create, manage, and assign skills to specific domains, making it easier to structure the workspace based on functional areas, departments, or projects.
|
|
23
|
-
By organizing skills into relevant domains, you can improve navigation and optimize the overall workflow.`,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
content: `This AI assistant skill is designed to help users efficiently manage their digital domains. The skill
|
|
27
|
-
focuses on four key actions to simplify domain administration:
|
|
28
|
-
Allows users to modify existing domain settings, such as updating DNS records, changing contact information, or
|
|
29
|
-
adjusting domain forwarding rules.
|
|
30
|
-
Provides the functionality to safely delete a domain from the user's account, ensuring that all associated data is
|
|
31
|
-
handled according to user preferences and regulatory requirements.
|
|
32
|
-
Facilitates periodic updates to keep domain registration details current and ensures that any critical changes
|
|
33
|
-
required for compliance or optimization are implemented smoothly.
|
|
34
|
-
Supports users in registering and setting up new domains, including assistance with choosing the best domain names,
|
|
35
|
-
configuration, and initial setup processes.`,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
|
-
import type { SkillDefinition } from '../../types';
|
|
3
|
-
|
|
4
|
-
export const manageUsersSkill: SkillDefinition = {
|
|
5
|
-
uid: 'manage-users',
|
|
6
|
-
forRoles: ['admin'],
|
|
7
|
-
name: 'Manage Users',
|
|
8
|
-
description: 'The Manage User Skill allows IDW administrators to view, modify, and manage all users in a single location. With this skill, you can easily add users, delete users, modify roles, and manage user invitations, making it simple to ensure that only the right people have the correct access. Use it to update user roles (e.g., change a user to an admin) and remove outdated IDW accounts for seamless collaboration.',
|
|
9
|
-
abbreviation: 'MU',
|
|
10
|
-
number: 1,
|
|
11
|
-
domain: 'Administration',
|
|
12
|
-
|
|
13
|
-
meta: {
|
|
14
|
-
chatId: 'manage-users',
|
|
15
|
-
prompt: undefined,
|
|
16
|
-
promptParams: undefined,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
passages: [
|
|
20
|
-
{
|
|
21
|
-
content: `The Manage User Skill allows IDW administrators to view, modify, and manage all users in a single location.
|
|
22
|
-
With this skill, you can easily add users, delete users, modify roles, and manage user invitations,
|
|
23
|
-
making it simple to ensure that only the right people have the correct access.
|
|
24
|
-
Use it to update user roles (e.g., change a user to an admin) and remove outdated IDW accounts for seamless collaboration.`,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
content: `Effortlessly display a comprehensive list of all users associated with your account. This feature
|
|
28
|
-
allows you to view and manage users at a glance, ensuring you are always updated on who has access to your system.
|
|
29
|
-
Simplify user management by enabling you to delete any user from the account directly through a simple command.
|
|
30
|
-
Modify the role of any user with ease. Whether you’re promoting a user or adjusting permissions, this feature ensures
|
|
31
|
-
that the right people have the right access at all times.
|
|
32
|
-
Keep user roles current with instant updates. This feature supports maintaining an efficient and secure workflow by
|
|
33
|
-
ensuring all users have roles that align with their current responsibilities and access needs.
|
|
34
|
-
With these capabilities, you can maintain a secure and organized user environment, enhancing productivity and
|
|
35
|
-
safeguarding your account information.`,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
};
|