prime-sdk 3.0.0 → 3.0.2
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/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/dist/external/aws/bedrock/bedrock.provider.d.ts +2 -4
- package/dist/external/aws/bedrock/bedrock.provider.js +1 -6
- package/dist/external/aws/bedrock/bedrock.provider.js.map +1 -1
- package/dist/external/aws/kms/kms.provider.d.ts +2 -4
- package/dist/external/aws/kms/kms.provider.js +1 -6
- package/dist/external/aws/kms/kms.provider.js.map +1 -1
- package/dist/external/aws/s3/s3.provider.d.ts +2 -4
- package/dist/external/aws/s3/s3.provider.js +1 -6
- package/dist/external/aws/s3/s3.provider.js.map +1 -1
- package/dist/external/aws/ses/ses.provider.d.ts +2 -4
- package/dist/external/aws/ses/ses.provider.js +1 -6
- package/dist/external/aws/ses/ses.provider.js.map +1 -1
- package/dist/external/aws/sns/sns.provider.d.ts +2 -4
- package/dist/external/aws/sns/sns.provider.js +1 -6
- package/dist/external/aws/sns/sns.provider.js.map +1 -1
- package/dist/external/aws/sqs/sqs.provider.d.ts +2 -4
- package/dist/external/aws/sqs/sqs.provider.js +1 -6
- package/dist/external/aws/sqs/sqs.provider.js.map +1 -1
- package/dist/external/aws/textract/textract.provider.d.ts +2 -4
- package/dist/external/aws/textract/textract.provider.js +1 -6
- package/dist/external/aws/textract/textract.provider.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +15 -10
- package/src/external/aws/bedrock/bedrock.provider.ts +6 -10
- package/src/external/aws/kms/kms.provider.ts +6 -10
- package/src/external/aws/s3/s3.provider.ts +6 -10
- package/src/external/aws/ses/ses.provider.ts +6 -10
- package/src/external/aws/sns/sns.provider.ts +6 -10
- package/src/external/aws/sqs/sqs.provider.ts +6 -10
- package/src/external/aws/textract/textract.provider.ts +6 -10
- package/.vscode/settings.json +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prime-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "swiss army knife",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,26 +22,31 @@
|
|
|
22
22
|
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/client-
|
|
26
|
-
"@aws-sdk/client-
|
|
25
|
+
"@aws-sdk/client-bedrock-runtime": "^3.1011.0",
|
|
26
|
+
"@aws-sdk/client-kms": "^3.730.0",
|
|
27
27
|
"@aws-sdk/client-s3": "^3.572.0",
|
|
28
28
|
"@aws-sdk/client-ses": "^3.572.0",
|
|
29
29
|
"@aws-sdk/client-sns": "^3.572.0",
|
|
30
30
|
"@aws-sdk/client-sqs": "^3.569.0",
|
|
31
31
|
"@aws-sdk/client-textract": "^3.620.0",
|
|
32
|
+
"@aws-sdk/credential-providers": "^3.993.0",
|
|
32
33
|
"@aws-sdk/s3-request-presigner": "^3.572.0",
|
|
33
|
-
"@nestjs/common": "^11.1.
|
|
34
|
-
"@nestjs/config": "^4.0.
|
|
35
|
-
"@nestjs/core": "^11.1.
|
|
36
|
-
"@nestjs/platform-express": "^11.1.
|
|
34
|
+
"@nestjs/common": "^11.1.17",
|
|
35
|
+
"@nestjs/config": "^4.0.3",
|
|
36
|
+
"@nestjs/core": "^11.1.17",
|
|
37
|
+
"@nestjs/platform-express": "^11.1.17",
|
|
37
38
|
"ioredis": "^5.4.1",
|
|
38
39
|
"reflect-metadata": "^0.2.0",
|
|
39
40
|
"rxjs": "^7.8.1"
|
|
40
41
|
},
|
|
42
|
+
"resolutions": {
|
|
43
|
+
"fast-xml-parser": "^5.5.7",
|
|
44
|
+
"qs": "^6.14.1"
|
|
45
|
+
},
|
|
41
46
|
"devDependencies": {
|
|
42
|
-
"@nestjs/cli": "^11.0.
|
|
43
|
-
"@nestjs/schematics": "^11.0.
|
|
44
|
-
"@nestjs/testing": "^11.1.
|
|
47
|
+
"@nestjs/cli": "^11.0.16",
|
|
48
|
+
"@nestjs/schematics": "^11.0.9",
|
|
49
|
+
"@nestjs/testing": "^11.1.17",
|
|
45
50
|
"@types/express": "^4.17.17",
|
|
46
51
|
"@types/jest": "^29.5.2",
|
|
47
52
|
"@types/node": "^20.3.1",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { BedrockRuntimeClient } from '@aws-sdk/client-bedrock-runtime';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type BedrockSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const BedrockProvider = (params: BedrockSetup) => {
|
|
@@ -15,12 +16,7 @@ const BedrockProvider = (params: BedrockSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_BEDROCK_RUNTIME',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new BedrockRuntimeClient({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { KMSClient } from '@aws-sdk/client-kms';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type KMSSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const KMSProvider = (params: KMSSetup) => {
|
|
@@ -15,12 +16,7 @@ const KMSProvider = (params: KMSSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_KMS',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new KMSClient({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { S3Client } from '@aws-sdk/client-s3';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type S3Setup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const S3Provider = (params: S3Setup) => {
|
|
@@ -15,12 +16,7 @@ const S3Provider = (params: S3Setup) => {
|
|
|
15
16
|
provide: 'CONNECTION_S3',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new S3Client({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SESClient } from '@aws-sdk/client-ses';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type SESSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const SESProvider = (params: SESSetup) => {
|
|
@@ -15,12 +16,7 @@ const SESProvider = (params: SESSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_SES',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new SESClient({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SNSClient } from '@aws-sdk/client-sns';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type SNSSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const SNSProvider = (params: SNSSetup) => {
|
|
@@ -15,12 +16,7 @@ const SNSProvider = (params: SNSSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_SNS',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new SNSClient({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { SQSClient } from '@aws-sdk/client-sqs';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type SqsSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const SqsProvider = (params: SqsSetup) => {
|
|
@@ -15,14 +16,9 @@ const SqsProvider = (params: SqsSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_SQS',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new SQSClient({
|
|
19
|
+
credentials: params.credentials,
|
|
18
20
|
region: params.region,
|
|
19
21
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
20
|
-
...(params.credentials && {
|
|
21
|
-
credentials: {
|
|
22
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
23
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
24
|
-
},
|
|
25
|
-
}),
|
|
26
22
|
});
|
|
27
23
|
},
|
|
28
24
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { TextractClient } from '@aws-sdk/client-textract';
|
|
2
2
|
import { DynamicModule } from '@nestjs/common';
|
|
3
|
+
import {
|
|
4
|
+
AwsCredentialIdentity,
|
|
5
|
+
AwsCredentialIdentityProvider,
|
|
6
|
+
} from '@aws-sdk/types';
|
|
3
7
|
|
|
4
8
|
export type TextractSetup = {
|
|
5
9
|
region: string;
|
|
6
10
|
endpoint?: string;
|
|
7
|
-
credentials
|
|
8
|
-
accessKeyId: string;
|
|
9
|
-
secretAccessKey: string;
|
|
10
|
-
};
|
|
11
|
+
credentials: AwsCredentialIdentityProvider | AwsCredentialIdentity;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const TextractProvider = (params: TextractSetup) => {
|
|
@@ -15,12 +16,7 @@ const TextractProvider = (params: TextractSetup) => {
|
|
|
15
16
|
provide: 'CONNECTION_TEXTRACT',
|
|
16
17
|
useFactory: () => {
|
|
17
18
|
return new TextractClient({
|
|
18
|
-
|
|
19
|
-
credentials: {
|
|
20
|
-
accessKeyId: params.credentials.accessKeyId,
|
|
21
|
-
secretAccessKey: params.credentials.secretAccessKey,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
19
|
+
credentials: params.credentials,
|
|
24
20
|
...(params.endpoint && { endpoint: params.endpoint }),
|
|
25
21
|
region: params.region,
|
|
26
22
|
});
|
package/.vscode/settings.json
DELETED