diff --git a/lerna.json b/lerna.json index 9673dadf..d05d7d1c 100644 --- a/lerna.json +++ b/lerna.json @@ -4,5 +4,5 @@ "packages/integration-sdk-*", "packages/cli" ], - "version": "13.5.1" + "version": "13.5.2-alpha.0" } diff --git a/package-lock.json b/package-lock.json index c7e9d7dc..0f10e924 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20990,11 +20990,11 @@ }, "packages/cli": { "name": "@jupiterone/cli", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "@lifeomic/attempt": "^3.0.3", "commander": "^5.0.0", "globby": "^11.0.1", @@ -21027,11 +21027,11 @@ }, "packages/integration-sdk-benchmark": { "name": "@jupiterone/integration-sdk-benchmark", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "benchmark": "^2.1.4" }, "engines": { @@ -21040,12 +21040,12 @@ }, "packages/integration-sdk-cli": { "name": "@jupiterone/integration-sdk-cli", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { "@jupiterone/data-model": "^0.61.11", - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "chalk": "^4", "commander": "^9.4.0", "ejs": "^3.1.9", @@ -21066,7 +21066,7 @@ "j1-integration": "bin/j1-integration" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@pollyjs/adapter-node-http": "^6.0.5", "@pollyjs/core": "^6.0.5", "@pollyjs/persister-fs": "^6.0.5", @@ -21143,11 +21143,11 @@ }, "packages/integration-sdk-core": { "name": "@jupiterone/integration-sdk-core", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { "@jupiterone/data-model": "^0.61.11", - "@jupiterone/integration-sdk-entity-validator": "^13.5.1", + "@jupiterone/integration-sdk-entity-validator": "^13.5.2-alpha.0", "@sinclair/typebox": "^0.32.30", "lodash": "^4.17.21" }, @@ -21165,11 +21165,11 @@ }, "packages/integration-sdk-dev-tools": { "name": "@jupiterone/integration-sdk-dev-tools", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-cli": "^13.5.1", - "@jupiterone/integration-sdk-testing": "^13.5.1", + "@jupiterone/integration-sdk-cli": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-testing": "^13.5.2-alpha.0", "@types/jest": "^29.5.3", "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^6.2.1", @@ -21224,7 +21224,7 @@ }, "packages/integration-sdk-entities": { "name": "@jupiterone/integration-sdk-entities", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { "@jupiterone/data-model": "^0.61.11", @@ -21239,7 +21239,7 @@ }, "packages/integration-sdk-entity-validator": { "name": "@jupiterone/integration-sdk-entity-validator", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { "ajv": "^8.12.0", @@ -21257,19 +21257,19 @@ }, "packages/integration-sdk-http-client": { "name": "@jupiterone/integration-sdk-http-client", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { "@jupiterone/hierarchical-token-bucket": "^0.3.1", - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "@lifeomic/attempt": "^3.0.3", "form-data": "^4.0.0", "lodash": "^4.17.21", "node-fetch": "^2.7.0" }, "devDependencies": { - "@jupiterone/integration-sdk-dev-tools": "^13.5.1", - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-dev-tools": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@types/node-fetch": "^2.6.11" }, "engines": { @@ -21296,10 +21296,10 @@ }, "packages/integration-sdk-private-test-utils": { "name": "@jupiterone/integration-sdk-private-test-utils", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "lodash": "^4.17.15" }, "devDependencies": { @@ -21311,10 +21311,10 @@ }, "packages/integration-sdk-runtime": { "name": "@jupiterone/integration-sdk-runtime", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "@lifeomic/alpha": "^5.2.0", "@lifeomic/attempt": "^3.0.3", "async-sema": "^3.1.0", @@ -21331,7 +21331,7 @@ "rimraf": "^3.0.2" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "get-port": "^5.1.1", "lmdb": "^3.0.8", "memfs": "^3.2.0", @@ -21378,12 +21378,12 @@ }, "packages/integration-sdk-testing": { "name": "@jupiterone/integration-sdk-testing", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "license": "MPL-2.0", "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-entity-validator": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-entity-validator": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "@pollyjs/adapter-node-http": "^6.0.5", "@pollyjs/core": "^6.0.5", "@pollyjs/persister-fs": "^6.0.5", @@ -21391,7 +21391,7 @@ "lodash": "^4.17.15" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@types/lodash": "^4.14.149", "get-port": "^5.1.1", "memfs": "^3.2.0" diff --git a/packages/cli/package.json b/packages/cli/package.json index 44ac0f8b..21089543 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/cli", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The JupiterOne cli", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -24,8 +24,8 @@ "test": "jest" }, "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "@lifeomic/attempt": "^3.0.3", "commander": "^5.0.0", "globby": "^11.0.1", diff --git a/packages/integration-sdk-benchmark/package.json b/packages/integration-sdk-benchmark/package.json index 52ea8aa4..7790e5a2 100644 --- a/packages/integration-sdk-benchmark/package.json +++ b/packages/integration-sdk-benchmark/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-benchmark", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "private": true, "description": "SDK benchmarking scripts", "main": "./src/index.js", @@ -15,8 +15,8 @@ "benchmark": "for file in ./src/benchmarks/*; do npm run prebenchmark && node $file; done" }, "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "benchmark": "^2.1.4" } } diff --git a/packages/integration-sdk-cli/package.json b/packages/integration-sdk-cli/package.json index adbdec7d..278d7dfb 100644 --- a/packages/integration-sdk-cli/package.json +++ b/packages/integration-sdk-cli/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-cli", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The SDK for developing JupiterOne integrations", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -26,8 +26,8 @@ }, "dependencies": { "@jupiterone/data-model": "^0.61.11", - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "chalk": "^4", "commander": "^9.4.0", "ejs": "^3.1.9", @@ -45,7 +45,7 @@ "url-exists": "^1.0.3" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@pollyjs/adapter-node-http": "^6.0.5", "@pollyjs/core": "^6.0.5", "@pollyjs/persister-fs": "^6.0.5", diff --git a/packages/integration-sdk-core/package.json b/packages/integration-sdk-core/package.json index b67266c1..5d3bbb0c 100644 --- a/packages/integration-sdk-core/package.json +++ b/packages/integration-sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-core", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The SDK for developing JupiterOne integrations", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -24,7 +24,7 @@ }, "dependencies": { "@jupiterone/data-model": "^0.61.11", - "@jupiterone/integration-sdk-entity-validator": "^13.5.1", + "@jupiterone/integration-sdk-entity-validator": "^13.5.2-alpha.0", "@sinclair/typebox": "^0.32.30", "lodash": "^4.17.21" }, diff --git a/packages/integration-sdk-dev-tools/package.json b/packages/integration-sdk-dev-tools/package.json index 90978bb6..0760bf29 100644 --- a/packages/integration-sdk-dev-tools/package.json +++ b/packages/integration-sdk-dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-dev-tools", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "A collection of developer tools that will assist with building integrations.", "repository": "git@github.com:JupiterOne/sdk.git", "author": "JupiterOne ", @@ -15,8 +15,8 @@ "access": "public" }, "dependencies": { - "@jupiterone/integration-sdk-cli": "^13.5.1", - "@jupiterone/integration-sdk-testing": "^13.5.1", + "@jupiterone/integration-sdk-cli": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-testing": "^13.5.2-alpha.0", "@types/jest": "^29.5.3", "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^6.2.1", diff --git a/packages/integration-sdk-entities/package.json b/packages/integration-sdk-entities/package.json index b9be0c0f..39f89b00 100644 --- a/packages/integration-sdk-entities/package.json +++ b/packages/integration-sdk-entities/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-entities", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "Generated types for the JupiterOne data-model", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/packages/integration-sdk-entity-validator/package.json b/packages/integration-sdk-entity-validator/package.json index 260885e9..53ec37b3 100644 --- a/packages/integration-sdk-entity-validator/package.json +++ b/packages/integration-sdk-entity-validator/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-entity-validator", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "Validator for JupiterOne integration entities", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/packages/integration-sdk-http-client/package.json b/packages/integration-sdk-http-client/package.json index a1bc4ed8..778ea198 100644 --- a/packages/integration-sdk-http-client/package.json +++ b/packages/integration-sdk-http-client/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-http-client", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The HTTP client for use in JupiterOne integrations", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -24,15 +24,15 @@ }, "dependencies": { "@jupiterone/hierarchical-token-bucket": "^0.3.1", - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "@lifeomic/attempt": "^3.0.3", "form-data": "^4.0.0", "lodash": "^4.17.21", "node-fetch": "^2.7.0" }, "devDependencies": { - "@jupiterone/integration-sdk-dev-tools": "^13.5.1", - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-dev-tools": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@types/node-fetch": "^2.6.11" }, "bugs": { diff --git a/packages/integration-sdk-private-test-utils/package.json b/packages/integration-sdk-private-test-utils/package.json index de8d30cf..21a7fab2 100644 --- a/packages/integration-sdk-private-test-utils/package.json +++ b/packages/integration-sdk-private-test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@jupiterone/integration-sdk-private-test-utils", "private": true, - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The SDK for developing JupiterOne integrations", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -15,7 +15,7 @@ "build:dist": "tsc -p tsconfig.json --declaration" }, "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "lodash": "^4.17.15" }, "devDependencies": { diff --git a/packages/integration-sdk-runtime/package.json b/packages/integration-sdk-runtime/package.json index 2295cdf7..54738c88 100644 --- a/packages/integration-sdk-runtime/package.json +++ b/packages/integration-sdk-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-runtime", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "The SDK for developing JupiterOne integrations", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -23,7 +23,7 @@ "prepack": "npm run build:dist" }, "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", "@lifeomic/alpha": "^5.2.0", "@lifeomic/attempt": "^3.0.3", "async-sema": "^3.1.0", @@ -40,7 +40,7 @@ "rimraf": "^3.0.2" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "get-port": "^5.1.1", "lmdb": "^3.0.8", "memfs": "^3.2.0", diff --git a/packages/integration-sdk-runtime/src/synchronization/index.ts b/packages/integration-sdk-runtime/src/synchronization/index.ts index f2ae9946..1681a5a5 100644 --- a/packages/integration-sdk-runtime/src/synchronization/index.ts +++ b/packages/integration-sdk-runtime/src/synchronization/index.ts @@ -290,6 +290,23 @@ export async function uploadGraphObjectData( uploadBatchSizeInBytes, ); + if ( + synchronizationJobContext.job.integrationInstanceId === + 'b066d99d-e0d3-4463-8133-1ec583170b7b' + ) { + const s3BucketEntity = graphObjectData.entities + .filter((entity) => entity._type === 'aws_s3_bucket') + .map((entity) => ({ + _key: entity._key, + public: entity.public, + access: entity.access, + })); + synchronizationJobContext.logger.info( + { s3BucketEntity }, + 'uploaded s3BucketEntity for instance', + ); + } + synchronizationJobContext.logger.debug( { entities: graphObjectData.entities.length, diff --git a/packages/integration-sdk-testing/package.json b/packages/integration-sdk-testing/package.json index 9396981e..5108cbbe 100644 --- a/packages/integration-sdk-testing/package.json +++ b/packages/integration-sdk-testing/package.json @@ -1,6 +1,6 @@ { "name": "@jupiterone/integration-sdk-testing", - "version": "13.5.1", + "version": "13.5.2-alpha.0", "description": "Testing utilities for JupiterOne integrations", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -23,9 +23,9 @@ "prepack": "npm run build:dist" }, "dependencies": { - "@jupiterone/integration-sdk-core": "^13.5.1", - "@jupiterone/integration-sdk-entity-validator": "^13.5.1", - "@jupiterone/integration-sdk-runtime": "^13.5.1", + "@jupiterone/integration-sdk-core": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-entity-validator": "^13.5.2-alpha.0", + "@jupiterone/integration-sdk-runtime": "^13.5.2-alpha.0", "@pollyjs/adapter-node-http": "^6.0.5", "@pollyjs/core": "^6.0.5", "@pollyjs/persister-fs": "^6.0.5", @@ -33,7 +33,7 @@ "lodash": "^4.17.15" }, "devDependencies": { - "@jupiterone/integration-sdk-private-test-utils": "^13.5.1", + "@jupiterone/integration-sdk-private-test-utils": "^13.5.2-alpha.0", "@types/lodash": "^4.14.149", "get-port": "^5.1.1", "memfs": "^3.2.0"