@activepieces/piece-amazon-bedrock 0.1.2 → 0.2.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/package.json +7 -17
- package/src/index.js +109 -23
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/custom-api-call.d.ts +0 -16
- package/src/lib/actions/custom-api-call.d.ts.map +0 -1
- package/src/lib/actions/custom-api-call.js +0 -174
- package/src/lib/actions/custom-api-call.js.map +0 -1
- package/src/lib/actions/generate-content-from-image.d.ts +0 -22
- package/src/lib/actions/generate-content-from-image.d.ts.map +0 -1
- package/src/lib/actions/generate-content-from-image.js +0 -126
- package/src/lib/actions/generate-content-from-image.js.map +0 -1
- package/src/lib/actions/generate-embeddings.d.ts +0 -16
- package/src/lib/actions/generate-embeddings.d.ts.map +0 -1
- package/src/lib/actions/generate-embeddings.js +0 -153
- package/src/lib/actions/generate-embeddings.js.map +0 -1
- package/src/lib/actions/generate-image.d.ts +0 -17
- package/src/lib/actions/generate-image.d.ts.map +0 -1
- package/src/lib/actions/generate-image.js +0 -140
- package/src/lib/actions/generate-image.js.map +0 -1
- package/src/lib/actions/send-prompt.d.ts +0 -25
- package/src/lib/actions/send-prompt.d.ts.map +0 -1
- package/src/lib/actions/send-prompt.js +0 -160
- package/src/lib/actions/send-prompt.js.map +0 -1
- package/src/lib/auth.d.ts +0 -6
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -109
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common.d.ts +0 -37
- package/src/lib/common.d.ts.map +0 -1
- package/src/lib/common.js +0 -239
- package/src/lib/common.js.map +0 -1
package/src/lib/common.js
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createBedrockClient = createBedrockClient;
|
|
4
|
-
exports.createBedrockRuntimeClient = createBedrockRuntimeClient;
|
|
5
|
-
exports.getBedrockModelOptions = getBedrockModelOptions;
|
|
6
|
-
exports.buildS3ContentBlock = buildS3ContentBlock;
|
|
7
|
-
exports.buildFileContentBlock = buildFileContentBlock;
|
|
8
|
-
exports.extractConverseTextResponse = extractConverseTextResponse;
|
|
9
|
-
exports.formatBedrockError = formatBedrockError;
|
|
10
|
-
const tslib_1 = require("tslib");
|
|
11
|
-
const client_bedrock_1 = require("@aws-sdk/client-bedrock");
|
|
12
|
-
const client_bedrock_runtime_1 = require("@aws-sdk/client-bedrock-runtime");
|
|
13
|
-
function createBedrockClient(auth) {
|
|
14
|
-
return new client_bedrock_1.BedrockClient({
|
|
15
|
-
credentials: {
|
|
16
|
-
accessKeyId: auth.accessKeyId,
|
|
17
|
-
secretAccessKey: auth.secretAccessKey,
|
|
18
|
-
},
|
|
19
|
-
region: auth.region,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function createBedrockRuntimeClient(auth) {
|
|
23
|
-
return new client_bedrock_runtime_1.BedrockRuntimeClient({
|
|
24
|
-
credentials: {
|
|
25
|
-
accessKeyId: auth.accessKeyId,
|
|
26
|
-
secretAccessKey: auth.secretAccessKey,
|
|
27
|
-
},
|
|
28
|
-
region: auth.region,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function getBedrockModelOptions(auth, filters) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
var _a, _b, _c, _d;
|
|
34
|
-
if (!auth) {
|
|
35
|
-
return {
|
|
36
|
-
disabled: true,
|
|
37
|
-
placeholder: 'Connect your AWS account first',
|
|
38
|
-
options: [],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
try {
|
|
42
|
-
const client = createBedrockClient(auth);
|
|
43
|
-
if (filters === null || filters === void 0 ? void 0 : filters.useInferenceProfiles) {
|
|
44
|
-
const [profileResponse, modelsResponse] = yield Promise.all([
|
|
45
|
-
client.send(new client_bedrock_1.ListInferenceProfilesCommand({
|
|
46
|
-
typeEquals: 'SYSTEM_DEFINED',
|
|
47
|
-
})),
|
|
48
|
-
(filters === null || filters === void 0 ? void 0 : filters.inputModality)
|
|
49
|
-
? client.send(new client_bedrock_1.ListFoundationModelsCommand({}))
|
|
50
|
-
: Promise.resolve(undefined),
|
|
51
|
-
]);
|
|
52
|
-
const profiles = (_a = profileResponse.inferenceProfileSummaries) !== null && _a !== void 0 ? _a : [];
|
|
53
|
-
let allowedModelIds;
|
|
54
|
-
if ((filters === null || filters === void 0 ? void 0 : filters.inputModality) && modelsResponse) {
|
|
55
|
-
const allModels = (_b = modelsResponse.modelSummaries) !== null && _b !== void 0 ? _b : [];
|
|
56
|
-
allowedModelIds = new Set(allModels
|
|
57
|
-
.filter((m) => { var _a; return (_a = m.inputModalities) === null || _a === void 0 ? void 0 : _a.includes(filters.inputModality); })
|
|
58
|
-
.map((m) => m.modelId)
|
|
59
|
-
.filter(Boolean));
|
|
60
|
-
}
|
|
61
|
-
const seen = new Set();
|
|
62
|
-
const deduped = profiles.filter((p) => {
|
|
63
|
-
var _a, _b, _c;
|
|
64
|
-
if (!p.inferenceProfileId || p.status !== 'ACTIVE')
|
|
65
|
-
return false;
|
|
66
|
-
if (seen.has(p.inferenceProfileId))
|
|
67
|
-
return false;
|
|
68
|
-
if (allowedModelIds) {
|
|
69
|
-
const profileModelId = (_c = (_b = (_a = p.models) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.modelArn) === null || _c === void 0 ? void 0 : _c.split('/').pop();
|
|
70
|
-
if (!profileModelId || !allowedModelIds.has(profileModelId)) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
seen.add(p.inferenceProfileId);
|
|
75
|
-
return true;
|
|
76
|
-
});
|
|
77
|
-
return {
|
|
78
|
-
disabled: false,
|
|
79
|
-
options: deduped.map((p) => {
|
|
80
|
-
var _a;
|
|
81
|
-
return ({
|
|
82
|
-
label: (_a = p.inferenceProfileName) !== null && _a !== void 0 ? _a : p.inferenceProfileId,
|
|
83
|
-
value: p.inferenceProfileId,
|
|
84
|
-
});
|
|
85
|
-
}),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
const response = yield client.send(new client_bedrock_1.ListFoundationModelsCommand({
|
|
89
|
-
byOutputModality: (filters === null || filters === void 0 ? void 0 : filters.showAll)
|
|
90
|
-
? undefined
|
|
91
|
-
: ((_c = filters === null || filters === void 0 ? void 0 : filters.outputModality) !== null && _c !== void 0 ? _c : client_bedrock_1.ModelModality.TEXT),
|
|
92
|
-
}));
|
|
93
|
-
const models = (_d = response.modelSummaries) !== null && _d !== void 0 ? _d : [];
|
|
94
|
-
const filtered = (filters === null || filters === void 0 ? void 0 : filters.inputModality)
|
|
95
|
-
? models.filter((m) => { var _a; return (_a = m.inputModalities) === null || _a === void 0 ? void 0 : _a.includes(filters.inputModality); })
|
|
96
|
-
: models;
|
|
97
|
-
const seen = new Set();
|
|
98
|
-
const deduped = filtered.filter((m) => {
|
|
99
|
-
if (!m.modelId)
|
|
100
|
-
return false;
|
|
101
|
-
const baseId = m.modelId.replace(/:\d+:.*$/, '');
|
|
102
|
-
if (seen.has(baseId))
|
|
103
|
-
return false;
|
|
104
|
-
seen.add(baseId);
|
|
105
|
-
return true;
|
|
106
|
-
});
|
|
107
|
-
return {
|
|
108
|
-
disabled: false,
|
|
109
|
-
options: deduped.map((m) => ({
|
|
110
|
-
label: `${m.providerName} - ${m.modelName}`,
|
|
111
|
-
value: m.modelId,
|
|
112
|
-
})),
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
return {
|
|
117
|
-
disabled: true,
|
|
118
|
-
options: [],
|
|
119
|
-
placeholder: 'Failed to load models. Check your credentials.',
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
const IMAGE_EXT_MAP = {
|
|
125
|
-
png: client_bedrock_runtime_1.ImageFormat.PNG,
|
|
126
|
-
jpg: client_bedrock_runtime_1.ImageFormat.JPEG,
|
|
127
|
-
jpeg: client_bedrock_runtime_1.ImageFormat.JPEG,
|
|
128
|
-
gif: client_bedrock_runtime_1.ImageFormat.GIF,
|
|
129
|
-
webp: client_bedrock_runtime_1.ImageFormat.WEBP,
|
|
130
|
-
};
|
|
131
|
-
const DOCUMENT_EXT_MAP = {
|
|
132
|
-
pdf: client_bedrock_runtime_1.DocumentFormat.PDF,
|
|
133
|
-
csv: client_bedrock_runtime_1.DocumentFormat.CSV,
|
|
134
|
-
doc: client_bedrock_runtime_1.DocumentFormat.DOC,
|
|
135
|
-
docx: client_bedrock_runtime_1.DocumentFormat.DOCX,
|
|
136
|
-
xls: client_bedrock_runtime_1.DocumentFormat.XLS,
|
|
137
|
-
xlsx: client_bedrock_runtime_1.DocumentFormat.XLSX,
|
|
138
|
-
html: client_bedrock_runtime_1.DocumentFormat.HTML,
|
|
139
|
-
htm: client_bedrock_runtime_1.DocumentFormat.HTML,
|
|
140
|
-
txt: client_bedrock_runtime_1.DocumentFormat.TXT,
|
|
141
|
-
md: client_bedrock_runtime_1.DocumentFormat.MD,
|
|
142
|
-
};
|
|
143
|
-
const VIDEO_EXT_MAP = {
|
|
144
|
-
mkv: client_bedrock_runtime_1.VideoFormat.MKV,
|
|
145
|
-
mov: client_bedrock_runtime_1.VideoFormat.MOV,
|
|
146
|
-
mp4: client_bedrock_runtime_1.VideoFormat.MP4,
|
|
147
|
-
webm: client_bedrock_runtime_1.VideoFormat.WEBM,
|
|
148
|
-
flv: client_bedrock_runtime_1.VideoFormat.FLV,
|
|
149
|
-
mpeg: client_bedrock_runtime_1.VideoFormat.MPEG,
|
|
150
|
-
mpg: client_bedrock_runtime_1.VideoFormat.MPG,
|
|
151
|
-
wmv: client_bedrock_runtime_1.VideoFormat.WMV,
|
|
152
|
-
'3gp': client_bedrock_runtime_1.VideoFormat.THREE_GP,
|
|
153
|
-
};
|
|
154
|
-
const AUDIO_EXT_MAP = {
|
|
155
|
-
mp3: client_bedrock_runtime_1.AudioFormat.MP3,
|
|
156
|
-
opus: client_bedrock_runtime_1.AudioFormat.OPUS,
|
|
157
|
-
wav: client_bedrock_runtime_1.AudioFormat.WAV,
|
|
158
|
-
aac: client_bedrock_runtime_1.AudioFormat.AAC,
|
|
159
|
-
flac: client_bedrock_runtime_1.AudioFormat.FLAC,
|
|
160
|
-
ogg: client_bedrock_runtime_1.AudioFormat.OGG,
|
|
161
|
-
mka: client_bedrock_runtime_1.AudioFormat.MKA,
|
|
162
|
-
m4a: client_bedrock_runtime_1.AudioFormat.M4A,
|
|
163
|
-
pcm: client_bedrock_runtime_1.AudioFormat.PCM,
|
|
164
|
-
};
|
|
165
|
-
function buildS3ContentBlock(s3Bucket, s3Key) {
|
|
166
|
-
var _a, _b;
|
|
167
|
-
const ext = ((_a = s3Key.split('.').pop()) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
168
|
-
const s3Location = { uri: `s3://${s3Bucket}/${s3Key}` };
|
|
169
|
-
if (IMAGE_EXT_MAP[ext]) {
|
|
170
|
-
return { image: { format: IMAGE_EXT_MAP[ext], source: { s3Location } } };
|
|
171
|
-
}
|
|
172
|
-
if (DOCUMENT_EXT_MAP[ext]) {
|
|
173
|
-
const name = ((_b = s3Key.split('/').pop()) !== null && _b !== void 0 ? _b : 'document').replace(/\.[^.]+$/, '');
|
|
174
|
-
return { document: { format: DOCUMENT_EXT_MAP[ext], name, source: { s3Location } } };
|
|
175
|
-
}
|
|
176
|
-
if (VIDEO_EXT_MAP[ext]) {
|
|
177
|
-
return { video: { format: VIDEO_EXT_MAP[ext], source: { s3Location } } };
|
|
178
|
-
}
|
|
179
|
-
if (AUDIO_EXT_MAP[ext]) {
|
|
180
|
-
return { audio: { format: AUDIO_EXT_MAP[ext], source: { s3Location } } };
|
|
181
|
-
}
|
|
182
|
-
throw new Error(`Unsupported file type ".${ext}". Supported: images (png, jpg, gif, webp), documents (pdf, csv, doc, docx, xls, xlsx, html, txt, md), videos (mp4, mov, mkv, webm, flv, mpeg, mpg, wmv, 3gp), audio (mp3, wav, aac, flac, ogg, opus, mka, m4a, pcm).`);
|
|
183
|
-
}
|
|
184
|
-
function buildFileContentBlock(file) {
|
|
185
|
-
var _a, _b;
|
|
186
|
-
const ext = ((_a = file.extension) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
187
|
-
const bytes = new Uint8Array(file.data);
|
|
188
|
-
if (IMAGE_EXT_MAP[ext]) {
|
|
189
|
-
return { image: { format: IMAGE_EXT_MAP[ext], source: { bytes } } };
|
|
190
|
-
}
|
|
191
|
-
if (DOCUMENT_EXT_MAP[ext]) {
|
|
192
|
-
const name = ((_b = file.filename) === null || _b === void 0 ? void 0 : _b.replace(/\.[^.]+$/, '')) || 'document';
|
|
193
|
-
return { document: { format: DOCUMENT_EXT_MAP[ext], name, source: { bytes } } };
|
|
194
|
-
}
|
|
195
|
-
if (VIDEO_EXT_MAP[ext]) {
|
|
196
|
-
return { video: { format: VIDEO_EXT_MAP[ext], source: { bytes } } };
|
|
197
|
-
}
|
|
198
|
-
if (AUDIO_EXT_MAP[ext]) {
|
|
199
|
-
return { audio: { format: AUDIO_EXT_MAP[ext], source: { bytes } } };
|
|
200
|
-
}
|
|
201
|
-
throw new Error(`Unsupported file type ".${ext}". Supported: images (png, jpg, gif, webp), documents (pdf, csv, doc, docx, xls, xlsx, html, txt, md), videos (mp4, mov, mkv, webm, flv, mpeg, mpg, wmv, 3gp), audio (mp3, wav, aac, flac, ogg, opus, mka, m4a, pcm).`);
|
|
202
|
-
}
|
|
203
|
-
function extractConverseTextResponse(response) {
|
|
204
|
-
var _a, _b, _c;
|
|
205
|
-
const outputMessage = (_a = response.output) === null || _a === void 0 ? void 0 : _a.message;
|
|
206
|
-
const textContent = (_b = outputMessage === null || outputMessage === void 0 ? void 0 : outputMessage.content) === null || _b === void 0 ? void 0 : _b.filter((block) => 'text' in block).map((block) => block.text).join('');
|
|
207
|
-
return {
|
|
208
|
-
text: textContent !== null && textContent !== void 0 ? textContent : '',
|
|
209
|
-
stopReason: response.stopReason,
|
|
210
|
-
usage: response.usage,
|
|
211
|
-
latencyMs: (_c = response.metrics) === null || _c === void 0 ? void 0 : _c.latencyMs,
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
function formatBedrockError(error) {
|
|
215
|
-
var _a, _b, _c;
|
|
216
|
-
const err = error;
|
|
217
|
-
const name = (_a = err.name) !== null && _a !== void 0 ? _a : 'UnknownError';
|
|
218
|
-
switch (name) {
|
|
219
|
-
case 'ThrottlingException':
|
|
220
|
-
return 'Request was throttled by AWS Bedrock. Please try again in a moment.';
|
|
221
|
-
case 'ModelNotReadyException':
|
|
222
|
-
return 'The model is not ready. It may still be loading — please try again shortly.';
|
|
223
|
-
case 'ModelTimeoutException':
|
|
224
|
-
return 'The model timed out while processing your request. Try a shorter prompt or a different model.';
|
|
225
|
-
case 'ModelErrorException':
|
|
226
|
-
return 'The model encountered an internal error. Try again or use a different model.';
|
|
227
|
-
case 'AccessDeniedException':
|
|
228
|
-
return 'Access denied. Ensure your AWS credentials have permission to invoke this model and that the model is enabled in your region.';
|
|
229
|
-
case 'ValidationException':
|
|
230
|
-
return `Validation error: ${(_b = err.message) !== null && _b !== void 0 ? _b : 'Check your input parameters.'}`;
|
|
231
|
-
case 'ServiceUnavailableException':
|
|
232
|
-
return 'AWS Bedrock is temporarily unavailable. Please try again later.';
|
|
233
|
-
case 'ServiceQuotaExceededException':
|
|
234
|
-
return 'You have exceeded your AWS Bedrock service quota.';
|
|
235
|
-
default:
|
|
236
|
-
return (_c = err.message) !== null && _c !== void 0 ? _c : 'An unexpected error occurred.';
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
//# sourceMappingURL=common.js.map
|
package/src/lib/common.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/lib/common.ts"],"names":[],"mappings":";;AAu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