chatbot-agentic 1.0.7 → 1.0.8
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/dist/cjs/aws/index.d.ts +6 -0
- package/dist/cjs/aws/index.js +5 -1
- package/dist/cjs/aws/index.js.map +1 -1
- package/dist/cjs/aws/services/AWSRekognition.d.ts +4 -0
- package/dist/cjs/aws/services/AWSRekognition.js +27 -0
- package/dist/cjs/aws/services/AWSRekognition.js.map +1 -0
- package/dist/cjs/aws/services/AWSTextTract.d.ts +4 -0
- package/dist/cjs/aws/services/AWSTextTract.js +27 -0
- package/dist/cjs/aws/services/AWSTextTract.js.map +1 -0
- package/dist/esm/aws/index.d.ts +6 -0
- package/dist/esm/aws/index.js +5 -1
- package/dist/esm/aws/index.js.map +1 -1
- package/dist/esm/aws/services/AWSRekognition.d.ts +4 -0
- package/dist/esm/aws/services/AWSRekognition.js +33 -0
- package/dist/esm/aws/services/AWSRekognition.js.map +1 -0
- package/dist/esm/aws/services/AWSTextTract.d.ts +4 -0
- package/dist/esm/aws/services/AWSTextTract.js +33 -0
- package/dist/esm/aws/services/AWSTextTract.js.map +1 -0
- package/package.json +4 -2
package/dist/cjs/aws/index.d.ts
CHANGED
|
@@ -19,4 +19,10 @@ export declare const AWS: {
|
|
|
19
19
|
BedrockRuntime: {
|
|
20
20
|
invokeModel: (data: import("@aws-sdk/client-bedrock-runtime").InvokeModelCommandInput) => Promise<import("@aws-sdk/client-bedrock-runtime").InvokeModelCommandOutput>;
|
|
21
21
|
};
|
|
22
|
+
Rekognition: {
|
|
23
|
+
startLableDetection: (data: import("@aws-sdk/client-rekognition").StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
|
|
24
|
+
};
|
|
25
|
+
Textract: {
|
|
26
|
+
startDocumentTextDetection: (data: import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
|
|
27
|
+
};
|
|
22
28
|
};
|
package/dist/cjs/aws/index.js
CHANGED
|
@@ -4,9 +4,13 @@ exports.AWS = void 0;
|
|
|
4
4
|
const AWSBedrockAgent_1 = require("./services/AWSBedrockAgent");
|
|
5
5
|
const AWSBedrockAgentRuntime_1 = require("./services/AWSBedrockAgentRuntime");
|
|
6
6
|
const AWSBedrockRuntime_1 = require("./services/AWSBedrockRuntime");
|
|
7
|
+
const AWSRekognition_1 = require("./services/AWSRekognition");
|
|
8
|
+
const AWSTextTract_1 = require("./services/AWSTextTract");
|
|
7
9
|
exports.AWS = {
|
|
8
10
|
Agent: AWSBedrockAgent_1.Agent,
|
|
9
11
|
AgentRuntime: AWSBedrockAgentRuntime_1.AgentRuntime,
|
|
10
|
-
BedrockRuntime: AWSBedrockRuntime_1.BedrockRuntime
|
|
12
|
+
BedrockRuntime: AWSBedrockRuntime_1.BedrockRuntime,
|
|
13
|
+
Rekognition: AWSRekognition_1.Rekognition,
|
|
14
|
+
Textract: AWSTextTract_1.Textract
|
|
11
15
|
};
|
|
12
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":";;;AAAA,gEAAmD;AACnD,8EAAiE;AACjE,oEAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":";;;AAAA,gEAAmD;AACnD,8EAAiE;AACjE,oEAA8D;AAC9D,8DAAwD;AACxD,0DAAmD;AAItC,QAAA,GAAG,GAAG;IACf,KAAK,EAAL,uBAAK;IACL,YAAY,EAAZ,qCAAY;IACZ,cAAc,EAAd,kCAAc;IACd,WAAW,EAAX,4BAAW;IACX,QAAQ,EAAR,uBAAQ;CACX,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rekognition = void 0;
|
|
4
|
+
const client_rekognition_1 = require("@aws-sdk/client-rekognition");
|
|
5
|
+
const environment = (process.env.NODE_ENVIRONMENT || 'Test');
|
|
6
|
+
const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
|
|
7
|
+
const client = new client_rekognition_1.RekognitionClient({ region: awsRegion });
|
|
8
|
+
/**
|
|
9
|
+
* This is used to detect the label
|
|
10
|
+
* @param data
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
const startLableDetection = async (data) => {
|
|
14
|
+
try {
|
|
15
|
+
const command = new client_rekognition_1.StartLabelDetectionCommand(data);
|
|
16
|
+
const response = await client.send(command);
|
|
17
|
+
return response;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.info(`error occured while lable detection`);
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.Rekognition = {
|
|
25
|
+
startLableDetection
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=AWSRekognition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSRekognition.js","sourceRoot":"","sources":["../../../../aws/services/AWSRekognition.ts"],"names":[],"mappings":";;;AAAA,oEAA6H;AAE7H,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,sCAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,KAAK,EAAE,IAAoC,EAAG,EAAE;IAC1E,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,+CAA0B,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA;AAGY,QAAA,WAAW,GAAG;IACxB,mBAAmB;CACrB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StartDocumentTextDetectionCommandInput } from "@aws-sdk/client-textract";
|
|
2
|
+
export declare const Textract: {
|
|
3
|
+
startDocumentTextDetection: (data: StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
|
|
4
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Textract = void 0;
|
|
4
|
+
const client_textract_1 = require("@aws-sdk/client-textract");
|
|
5
|
+
const environment = (process.env.NODE_ENVIRONMENT || 'Test');
|
|
6
|
+
const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
|
|
7
|
+
const client = new client_textract_1.TextractClient({ region: awsRegion });
|
|
8
|
+
/**
|
|
9
|
+
* This is used to detect the text
|
|
10
|
+
* @param data
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
const startDocumentTextDetection = async (data) => {
|
|
14
|
+
try {
|
|
15
|
+
const command = new client_textract_1.StartDocumentTextDetectionCommand(data);
|
|
16
|
+
const response = await client.send(command);
|
|
17
|
+
return response;
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.info(`error occured while text detection`);
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.Textract = {
|
|
25
|
+
startDocumentTextDetection
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=AWSTextTract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSTextTract.js","sourceRoot":"","sources":["../../../../aws/services/AWSTextTract.ts"],"names":[],"mappings":";;;AAAA,8DAAsI;AAEtI,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,gCAAc,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,KAAK,EAAE,IAA2C,EAAG,EAAE;IACxF,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,mDAAiC,CAAC,IAAI,CAAC,CAAC;QAC5D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QACnD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA;AAGY,QAAA,QAAQ,GAAG;IACrB,0BAA0B;CAC5B,CAAA"}
|
package/dist/esm/aws/index.d.ts
CHANGED
|
@@ -19,4 +19,10 @@ export declare const AWS: {
|
|
|
19
19
|
BedrockRuntime: {
|
|
20
20
|
invokeModel: (data: import("@aws-sdk/client-bedrock-runtime").InvokeModelCommandInput) => Promise<import("@aws-sdk/client-bedrock-runtime").InvokeModelCommandOutput>;
|
|
21
21
|
};
|
|
22
|
+
Rekognition: {
|
|
23
|
+
startLableDetection: (data: import("@aws-sdk/client-rekognition").StartLabelDetectionCommandInput) => Promise<import("@aws-sdk/client-rekognition").StartLabelDetectionCommandOutput>;
|
|
24
|
+
};
|
|
25
|
+
Textract: {
|
|
26
|
+
startDocumentTextDetection: (data: import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
|
|
27
|
+
};
|
|
22
28
|
};
|
package/dist/esm/aws/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Agent } from "./services/AWSBedrockAgent";
|
|
2
2
|
import { AgentRuntime } from "./services/AWSBedrockAgentRuntime";
|
|
3
3
|
import { BedrockRuntime } from "./services/AWSBedrockRuntime";
|
|
4
|
+
import { Rekognition } from "./services/AWSRekognition";
|
|
5
|
+
import { Textract } from "./services/AWSTextTract";
|
|
4
6
|
export const AWS = {
|
|
5
7
|
Agent,
|
|
6
8
|
AgentRuntime,
|
|
7
|
-
BedrockRuntime
|
|
9
|
+
BedrockRuntime,
|
|
10
|
+
Rekognition,
|
|
11
|
+
Textract
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,KAAK;IACL,YAAY;IACZ,cAAc;IACd,WAAW;IACX,QAAQ;CACX,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { RekognitionClient, StartLabelDetectionCommand } from "@aws-sdk/client-rekognition";
|
|
11
|
+
const environment = (process.env.NODE_ENVIRONMENT || 'Test');
|
|
12
|
+
const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
|
|
13
|
+
const client = new RekognitionClient({ region: awsRegion });
|
|
14
|
+
/**
|
|
15
|
+
* This is used to detect the label
|
|
16
|
+
* @param data
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
const startLableDetection = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
try {
|
|
21
|
+
const command = new StartLabelDetectionCommand(data);
|
|
22
|
+
const response = yield client.send(command);
|
|
23
|
+
return response;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.info(`error occured while lable detection`);
|
|
27
|
+
throw error;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export const Rekognition = {
|
|
31
|
+
startLableDetection
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AWSRekognition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSRekognition.js","sourceRoot":"","sources":["../../../../aws/services/AWSRekognition.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAC,0BAA0B,EAAoC,MAAM,6BAA6B,CAAC;AAE7H,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,CAAO,IAAoC,EAAG,EAAE;IAC1E,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAGD,MAAM,CAAC,MAAM,WAAW,GAAG;IACxB,mBAAmB;CACrB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StartDocumentTextDetectionCommandInput } from "@aws-sdk/client-textract";
|
|
2
|
+
export declare const Textract: {
|
|
3
|
+
startDocumentTextDetection: (data: StartDocumentTextDetectionCommandInput) => Promise<import("@aws-sdk/client-textract").StartDocumentTextDetectionCommandOutput>;
|
|
4
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { TextractClient, StartDocumentTextDetectionCommand } from "@aws-sdk/client-textract";
|
|
11
|
+
const environment = (process.env.NODE_ENVIRONMENT || 'Test');
|
|
12
|
+
const awsRegion = (process.env.AWS_DEFAULT_REGION || 'us-east-1');
|
|
13
|
+
const client = new TextractClient({ region: awsRegion });
|
|
14
|
+
/**
|
|
15
|
+
* This is used to detect the text
|
|
16
|
+
* @param data
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
const startDocumentTextDetection = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
try {
|
|
21
|
+
const command = new StartDocumentTextDetectionCommand(data);
|
|
22
|
+
const response = yield client.send(command);
|
|
23
|
+
return response;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.info(`error occured while text detection`);
|
|
27
|
+
throw error;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export const Textract = {
|
|
31
|
+
startDocumentTextDetection
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=AWSTextTract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AWSTextTract.js","sourceRoot":"","sources":["../../../../aws/services/AWSTextTract.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,iCAAiC,EAA2C,MAAM,0BAA0B,CAAC;AAEtI,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,MAAM,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,0BAA0B,GAAG,CAAO,IAA2C,EAAG,EAAE;IACxF,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,iCAAiC,CAAC,IAAI,CAAC,CAAC;QAC5D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QACnD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAGD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACrB,0BAA0B;CAC5B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chatbot-agentic",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-sdk/client-bedrock-agent": "^3.936.0",
|
|
21
21
|
"@aws-sdk/client-bedrock-agent-runtime": "^3.846.0",
|
|
22
|
-
"@aws-sdk/client-bedrock-runtime": "^3.966.0"
|
|
22
|
+
"@aws-sdk/client-bedrock-runtime": "^3.966.0",
|
|
23
|
+
"@aws-sdk/client-rekognition": "^3.966.0",
|
|
24
|
+
"@aws-sdk/client-textract": "^3.966.0"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
27
|
"@types/ms": "^0.7.31",
|