@activepieces/piece-amazon-bedrock 0.1.2 → 0.2.1

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.
Files changed (34) hide show
  1. package/package.json +7 -17
  2. package/src/i18n/translation.json +0 -26
  3. package/src/index.js +109 -23
  4. package/src/index.d.ts +0 -6
  5. package/src/index.d.ts.map +0 -1
  6. package/src/index.js.map +0 -1
  7. package/src/lib/actions/custom-api-call.d.ts +0 -16
  8. package/src/lib/actions/custom-api-call.d.ts.map +0 -1
  9. package/src/lib/actions/custom-api-call.js +0 -174
  10. package/src/lib/actions/custom-api-call.js.map +0 -1
  11. package/src/lib/actions/generate-content-from-image.d.ts +0 -22
  12. package/src/lib/actions/generate-content-from-image.d.ts.map +0 -1
  13. package/src/lib/actions/generate-content-from-image.js +0 -126
  14. package/src/lib/actions/generate-content-from-image.js.map +0 -1
  15. package/src/lib/actions/generate-embeddings.d.ts +0 -16
  16. package/src/lib/actions/generate-embeddings.d.ts.map +0 -1
  17. package/src/lib/actions/generate-embeddings.js +0 -153
  18. package/src/lib/actions/generate-embeddings.js.map +0 -1
  19. package/src/lib/actions/generate-image.d.ts +0 -17
  20. package/src/lib/actions/generate-image.d.ts.map +0 -1
  21. package/src/lib/actions/generate-image.js +0 -140
  22. package/src/lib/actions/generate-image.js.map +0 -1
  23. package/src/lib/actions/send-prompt.d.ts +0 -25
  24. package/src/lib/actions/send-prompt.d.ts.map +0 -1
  25. package/src/lib/actions/send-prompt.js +0 -160
  26. package/src/lib/actions/send-prompt.js.map +0 -1
  27. package/src/lib/auth.d.ts +0 -6
  28. package/src/lib/auth.d.ts.map +0 -1
  29. package/src/lib/auth.js +0 -109
  30. package/src/lib/auth.js.map +0 -1
  31. package/src/lib/common.d.ts +0 -37
  32. package/src/lib/common.d.ts.map +0 -1
  33. package/src/lib/common.js +0 -239
  34. package/src/lib/common.js.map +0 -1
package/package.json CHANGED
@@ -1,22 +1,12 @@
1
1
  {
2
2
  "name": "@activepieces/piece-amazon-bedrock",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
- "types": "./src/index.d.ts",
7
- "dependencies": {
8
- "@activepieces/pieces-common": "0.12.4",
9
- "@activepieces/pieces-framework": "0.30.0",
10
- "@activepieces/shared": "0.92.0",
11
- "@aws-crypto/sha256-js": "5.2.0",
12
- "@aws-sdk/client-bedrock": "3.987.0",
13
- "@aws-sdk/client-bedrock-runtime": "3.987.0",
14
- "@smithy/protocol-http": "5.3.8",
15
- "@smithy/signature-v4": "5.3.8",
16
- "tslib": "2.3.0"
17
- },
18
- "scripts": {
19
- "build": "tsc -p tsconfig.lib.json && cp package.json dist/",
20
- "lint": "eslint 'src/**/*.ts'"
21
- }
6
+ "dependencies": {},
7
+ "files": [
8
+ "src/index.js",
9
+ "package.json",
10
+ "src/i18n"
11
+ ]
22
12
  }
@@ -1,31 +1,5 @@
1
1
  {
2
2
  "Build generative AI applications with foundation models": "Build generative AI applications with foundation models",
3
- "Access Key ID": "Access Key ID",
4
- "Secret Access Key": "Secret Access Key",
5
- "Region": "Region",
6
- "Your AWS access key ID. Found in AWS IAM Console → Users → Security credentials.": "Your AWS access key ID. Found in AWS IAM Console → Users → Security credentials.",
7
- "Your AWS secret access key. Only shown once when you create the access key — store it safely.": "Your AWS secret access key. Only shown once when you create the access key — store it safely.",
8
- "US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
9
- "US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
10
- "US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
11
- "Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
12
- "Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
13
- "Asia Pacific (Osaka) [ap-northeast-3]": "Asia Pacific (Osaka) [ap-northeast-3]",
14
- "Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
15
- "Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
16
- "Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
17
- "Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
18
- "Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
19
- "Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
20
- "Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
21
- "Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
22
- "Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
23
- "Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
24
- "Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
25
- "Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
26
- "Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
27
- "South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
28
- "Connect your AWS account to use Amazon Bedrock AI models.\n\n**How to get your credentials:**\n1. Open the [AWS IAM Console](https://console.aws.amazon.com/iam/) and go to **Users**.\n2. Select your user (or create a new one), then go to **Security credentials**.\n3. Click **Create access key** — copy both the Access Key ID and Secret Access Key.\n4. Make sure the IAM user has the **AmazonBedrockFullAccess** policy attached.\n\n**Enable model access:** In the [AWS Bedrock Console](https://console.aws.amazon.com/bed": "Connect your AWS account to use Amazon Bedrock AI models.\n\n**How to get your credentials:**\n1. Open the [AWS IAM Console](https://console.aws.amazon.com/iam/) and go to **Users**.\n2. Select your user (or create a new one), then go to **Security credentials**.\n3. Click **Create access key** — copy both the Access Key ID and Secret Access Key.\n4. Make sure the IAM user has the **AmazonBedrockFullAccess** policy attached.\n\n**Enable model access:** In the [AWS Bedrock Console](https://console.aws.amazon.com/bedrock/), go to **Model access** and request access to the models you want to use.",
29
3
  "Ask Bedrock": "Ask Bedrock",
30
4
  "Generate Content from Image": "Generate Content from Image",
31
5
  "Generate Image": "Generate Image",