@castleio/sdk 2.1.0 → 2.1.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.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +12 -12
- package/dist/src/Castle.d.ts +17 -0
- package/dist/src/Castle.js +2 -2
- package/dist/src/Castle.js.map +1 -1
- package/dist/src/api/api.module.d.ts +1 -0
- package/dist/src/api/services/api-approve-device.service.d.ts +5 -0
- package/dist/src/api/services/api-authenticate.service.d.ts +6 -0
- package/dist/src/api/services/api-filter.service.d.ts +5 -0
- package/dist/src/api/services/api-get-device.service.d.ts +5 -0
- package/dist/src/api/services/api-get-devices-for-user.service.d.ts +5 -0
- package/dist/src/api/services/api-log.service.d.ts +5 -0
- package/dist/src/api/services/api-report-device.service.d.ts +5 -0
- package/dist/src/api/services/api-risk.service.d.ts +4 -0
- package/dist/src/api/services/api-track.service.d.ts +5 -0
- package/dist/src/api/services/api.service.d.ts +8 -0
- package/dist/src/api/services/index.d.ts +10 -0
- package/dist/src/client-id/client-id.module.d.ts +1 -0
- package/dist/src/client-id/services/client-id-extract.service.d.ts +4 -0
- package/dist/src/client-id/services/index.d.ts +1 -0
- package/dist/src/command/command.module.d.ts +1 -0
- package/dist/src/command/services/command-approve-device.service.d.ts +16 -0
- package/dist/src/command/services/command-authenticate.service.d.ts +16 -0
- package/dist/src/command/services/command-filter.service.d.ts +16 -0
- package/dist/src/command/services/command-generate.service.d.ts +16 -0
- package/dist/src/command/services/command-get-device.service.d.ts +16 -0
- package/dist/src/command/services/command-get-devices-for-user.service.d.ts +16 -0
- package/dist/src/command/services/command-log.service.d.ts +16 -0
- package/dist/src/command/services/command-report-device.service.d.ts +16 -0
- package/dist/src/command/services/command-risk.service.d.ts +16 -0
- package/dist/src/command/services/command-track.service.d.ts +16 -0
- package/dist/src/command/services/index.d.ts +10 -0
- package/dist/src/configuration.d.ts +32 -0
- package/dist/src/{configuraton.js → configuration.js} +1 -1
- package/dist/src/configuration.js.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/context/context.module.d.ts +1 -0
- package/dist/src/context/services/context-get-default.service.d.ts +6 -0
- package/dist/src/context/services/context-prepare.service.d.ts +6 -0
- package/dist/src/context/services/context-sanitize.service.d.ts +7 -0
- package/dist/src/context/services/index.d.ts +3 -0
- package/dist/src/core/core.module.d.ts +1 -0
- package/dist/src/core/services/core-generate-default-headers.service.d.ts +7 -0
- package/dist/src/core/services/core-generate-request-body.service.d.ts +5 -0
- package/dist/src/core/services/core-process-response.service.d.ts +3 -0
- package/dist/src/core/services/index.d.ts +3 -0
- package/dist/src/errors.d.ts +33 -0
- package/dist/src/failover/failover.module.d.ts +1 -0
- package/dist/src/failover/models/failover-strategy.d.ts +6 -0
- package/dist/src/failover/models/index.d.ts +1 -0
- package/dist/src/headers/headers.module.d.ts +1 -0
- package/dist/src/headers/services/headers-extract.service.d.ts +10 -0
- package/dist/src/headers/services/headers-get-cookie.service.d.ts +3 -0
- package/dist/src/headers/services/index.d.ts +2 -0
- package/dist/src/ips/ips.module.d.ts +1 -0
- package/dist/src/ips/services/index.d.ts +1 -0
- package/dist/src/ips/services/ips-extract.service.d.ts +5 -0
- package/dist/src/logger/logger.module.d.ts +2 -0
- package/dist/src/logger/models/index.d.ts +1 -0
- package/dist/src/logger/models/logging-parameters.d.ts +7 -0
- package/dist/src/logger/services/index.d.ts +4 -0
- package/dist/src/logger/services/logger-error-formatter.service.d.ts +3 -0
- package/dist/src/logger/services/logger-request-formatter.service.d.ts +4 -0
- package/dist/src/logger/services/logger-response-formatter.service.d.ts +3 -0
- package/dist/src/logger/services/logger.service.d.ts +4 -0
- package/dist/src/models/authenticate-result.d.ts +18 -0
- package/dist/src/models/device.d.ts +3 -0
- package/dist/src/models/index.d.ts +5 -0
- package/dist/src/models/risk-policy.d.ts +9 -0
- package/dist/src/models/signals.d.ts +3 -0
- package/dist/src/models/verdict.d.ts +5 -0
- package/dist/src/payload/models/filter_payload.d.ts +42 -0
- package/dist/src/payload/models/index.d.ts +4 -0
- package/dist/src/payload/models/log_payload.d.ts +44 -0
- package/dist/src/payload/models/payload.d.ts +16 -0
- package/dist/src/payload/models/risk_payload.d.ts +42 -0
- package/dist/src/payload/payload.module.d.ts +2 -0
- package/dist/src/payload/services/index.d.ts +1 -0
- package/dist/src/payload/services/payload-prepare-service.d.ts +12 -0
- package/dist/src/validator/services/index.d.ts +1 -0
- package/dist/src/validator/services/validator-present.service.d.ts +3 -0
- package/dist/src/validator/validator.module.d.ts +1 -0
- package/package.json +12 -12
- package/dist/src/configuraton.js.map +0 -1
- package/dist/src/models/risk-result.js +0 -3
- package/dist/src/models/risk-result.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.1
|
|
4
|
+
|
|
5
|
+
- [#146](https://github.com/castle/castle-node/pull/146)
|
|
6
|
+
* add and expose more typings
|
|
7
|
+
|
|
8
|
+
- [#147](https://github.com/castle/castle-node/pull/147)
|
|
9
|
+
* internal dependencies bumps
|
|
10
|
+
|
|
3
11
|
## 2.1.0
|
|
4
12
|
|
|
5
13
|
- [#142](https://github.com/castle/castle-node/pull/142)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Castle } from './src/Castle';
|
|
2
|
+
export { ConfigurationProperties as CastleConfiguration } from './src/configuration';
|
|
3
|
+
export * from './src/constants';
|
|
4
|
+
export * from './src/errors';
|
|
5
|
+
export { FailoverStrategy } from './src/failover/failover.module';
|
|
6
|
+
export { PayloadPrepareService } from './src/payload/payload.module';
|
|
7
|
+
export { ContextPrepareService } from './src/context/context.module';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,gGAAA,MAAM,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,gGAAA,MAAM,OAAA;AAEf,kDAAgC;AAChC,+CAA6B;AAC7B,kEAAkE;AAAzD,mHAAA,gBAAgB,OAAA;AACzB,+DAAqE;AAA5D,uHAAA,qBAAqB,OAAA;AAC9B,+DAAqE;AAA5D,uHAAA,qBAAqB,OAAA"}
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/package",
|
|
3
3
|
"name": "@castleio/sdk",
|
|
4
4
|
"description": "Castle SDK for Node",
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": "git@github.com:castle/castle-node.git",
|
|
8
8
|
"author": {
|
|
@@ -32,30 +32,30 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/fetch-mock": "7.3.5",
|
|
35
|
-
"@types/jest": "29.2.
|
|
35
|
+
"@types/jest": "29.2.6",
|
|
36
36
|
"@types/lodash.get": "4.4.7",
|
|
37
37
|
"@types/lodash.isempty": "4.4.7",
|
|
38
38
|
"@types/lodash.merge": "4.6.7",
|
|
39
39
|
"@types/lodash.pickby": "4.6.7",
|
|
40
40
|
"@types/lodash.reduce": "4.6.7",
|
|
41
|
-
"@types/node": "18.11.
|
|
41
|
+
"@types/node": "18.11.18",
|
|
42
42
|
"@types/node-fetch": "2.6.2",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"@typescript-eslint/parser": "5.
|
|
45
|
-
"eslint": "8.
|
|
46
|
-
"eslint-config-prettier": "8.
|
|
47
|
-
"eslint-plugin-import": "2.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.49.0",
|
|
44
|
+
"@typescript-eslint/parser": "5.49.0",
|
|
45
|
+
"eslint": "8.32.0",
|
|
46
|
+
"eslint-config-prettier": "8.6.0",
|
|
47
|
+
"eslint-plugin-import": "2.27.5",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
49
49
|
"eslint-plugin-prettier": "4.2.1",
|
|
50
50
|
"fetch-mock": "9.11.0",
|
|
51
|
-
"husky": "8.0.
|
|
51
|
+
"husky": "8.0.3",
|
|
52
52
|
"jest": "29.3.1",
|
|
53
53
|
"mockdate": "3.0.5",
|
|
54
|
-
"prettier": "2.8.
|
|
55
|
-
"rimraf": "
|
|
54
|
+
"prettier": "2.8.3",
|
|
55
|
+
"rimraf": "4.1.2",
|
|
56
56
|
"source-map-support": "0.5.21",
|
|
57
57
|
"timeout-signal": "1.1.0",
|
|
58
|
-
"ts-jest": "29.0.
|
|
58
|
+
"ts-jest": "29.0.5",
|
|
59
59
|
"ts-node": "10.9.1",
|
|
60
60
|
"typescript": "4.9.4"
|
|
61
61
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AuthenticateResult } from './models';
|
|
2
|
+
import type { Payload, LogPayload, FilterPayload, RiskPayload } from './payload/payload.module';
|
|
3
|
+
import { Configuration, ConfigurationProperties } from './configuration';
|
|
4
|
+
export declare class Castle {
|
|
5
|
+
configuration: Configuration;
|
|
6
|
+
constructor(configAttributes: ConfigurationProperties);
|
|
7
|
+
authenticate(params: Payload): Promise<AuthenticateResult>;
|
|
8
|
+
risk(params: RiskPayload): Promise<object>;
|
|
9
|
+
filter(params: FilterPayload): Promise<object>;
|
|
10
|
+
log(params: LogPayload): Promise<void>;
|
|
11
|
+
track(params: Payload): Promise<void>;
|
|
12
|
+
getDevice({ device_token }: Payload): Promise<any>;
|
|
13
|
+
getDevicesForUser({ user_id }: Payload): Promise<any>;
|
|
14
|
+
approveDevice({ device_token }: Payload): Promise<any>;
|
|
15
|
+
reportDevice({ device_token }: Payload): Promise<any>;
|
|
16
|
+
private generateDoNotTrackResponse;
|
|
17
|
+
}
|
package/dist/src/Castle.js
CHANGED
|
@@ -12,10 +12,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Castle = void 0;
|
|
13
13
|
const api_module_1 = require("./api/api.module");
|
|
14
14
|
const failover_module_1 = require("./failover/failover.module");
|
|
15
|
-
const
|
|
15
|
+
const configuration_1 = require("./configuration");
|
|
16
16
|
class Castle {
|
|
17
17
|
constructor(configAttributes) {
|
|
18
|
-
this.configuration = new
|
|
18
|
+
this.configuration = new configuration_1.Configuration(configAttributes);
|
|
19
19
|
}
|
|
20
20
|
authenticate(params) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/src/Castle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Castle.js","sourceRoot":"","sources":["../../src/Castle.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAU0B;AAC1B,gEAA8D;AAO9D,
|
|
1
|
+
{"version":3,"file":"Castle.js","sourceRoot":"","sources":["../../src/Castle.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { AuthenticateResult } from '../../models';
|
|
3
|
+
import { Payload } from '../../payload/payload.module';
|
|
4
|
+
export declare const APIAuthenticateService: {
|
|
5
|
+
call: (options: Payload, configuration: Configuration) => Promise<AuthenticateResult>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import AbortController from 'abort-controller';
|
|
3
|
+
export declare const APIService: {
|
|
4
|
+
call: (controller: AbortController, { requestUrl, requestOptions }: {
|
|
5
|
+
requestUrl: any;
|
|
6
|
+
requestOptions: any;
|
|
7
|
+
}, configuration: Configuration) => Promise<any>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './api.service';
|
|
2
|
+
export * from './api-approve-device.service';
|
|
3
|
+
export * from './api-authenticate.service';
|
|
4
|
+
export * from './api-get-device.service';
|
|
5
|
+
export * from './api-get-devices-for-user.service';
|
|
6
|
+
export * from './api-report-device.service';
|
|
7
|
+
export * from './api-track.service';
|
|
8
|
+
export * from './api-risk.service';
|
|
9
|
+
export * from './api-log.service';
|
|
10
|
+
export * from './api-filter.service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client-id-extract.service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandApproveDeviceService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import type { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandAuthenticateService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { FilterPayload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandFilterService: {
|
|
4
|
+
call: (controller: any, options: FilterPayload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload, LogPayload, RiskPayload, FilterPayload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandGenerateService: {
|
|
4
|
+
call: (controller: any, path: string, options: Payload | LogPayload | RiskPayload | FilterPayload, method: string, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandGetDeviceService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandGetDevicesForUserService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { LogPayload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandLogService: {
|
|
4
|
+
call: (controller: any, options: LogPayload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandReportDeviceService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { RiskPayload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandRiskService: {
|
|
4
|
+
call: (controller: any, options: RiskPayload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
import { Payload } from '../../payload/payload.module';
|
|
3
|
+
export declare const CommandTrackService: {
|
|
4
|
+
call: (controller: any, options: Payload, configuration: Configuration) => {
|
|
5
|
+
requestUrl: URL;
|
|
6
|
+
requestOptions: {
|
|
7
|
+
body: string;
|
|
8
|
+
signal: any;
|
|
9
|
+
method: string;
|
|
10
|
+
headers: {
|
|
11
|
+
Authorization: string;
|
|
12
|
+
'Content-Type': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './command-approve-device.service';
|
|
2
|
+
export * from './command-authenticate.service';
|
|
3
|
+
export * from './command-generate.service';
|
|
4
|
+
export * from './command-get-device.service';
|
|
5
|
+
export * from './command-get-devices-for-user.service';
|
|
6
|
+
export * from './command-report-device.service';
|
|
7
|
+
export * from './command-track.service';
|
|
8
|
+
export * from './command-filter.service';
|
|
9
|
+
export * from './command-log.service';
|
|
10
|
+
export * from './command-risk.service';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FailoverStrategy } from './failover/models/failover-strategy';
|
|
2
|
+
export interface ConfigurationProperties {
|
|
3
|
+
apiSecret: string;
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
allowlisted?: string[];
|
|
7
|
+
denylisted?: string[];
|
|
8
|
+
overrideFetch?: any;
|
|
9
|
+
failoverStrategy?: FailoverStrategy;
|
|
10
|
+
doNotTrack?: boolean;
|
|
11
|
+
ipHeaders?: string[];
|
|
12
|
+
trustedProxies?: RegExp[];
|
|
13
|
+
trustProxyChain?: boolean;
|
|
14
|
+
trustedProxyDepth?: number;
|
|
15
|
+
logger?: any;
|
|
16
|
+
}
|
|
17
|
+
export declare class Configuration {
|
|
18
|
+
apiSecret: string;
|
|
19
|
+
baseUrl?: URL;
|
|
20
|
+
timeout?: number;
|
|
21
|
+
allowlisted?: string[];
|
|
22
|
+
denylisted?: string[];
|
|
23
|
+
overrideFetch?: any;
|
|
24
|
+
failoverStrategy?: FailoverStrategy;
|
|
25
|
+
doNotTrack?: boolean;
|
|
26
|
+
ipHeaders?: string[];
|
|
27
|
+
trustedProxies?: RegExp[];
|
|
28
|
+
trustProxyChain?: boolean;
|
|
29
|
+
trustedProxyDepth?: number;
|
|
30
|
+
logger?: any;
|
|
31
|
+
constructor({ apiSecret, baseUrl, timeout, allowlisted, denylisted, overrideFetch, failoverStrategy, doNotTrack, ipHeaders, trustedProxies, trustProxyChain, trustedProxyDepth, logger, }: ConfigurationProperties);
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/configuration.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,8DAAiC;AACjC,4DAA+B;AAE/B,2CAA+D;AAC/D,qCAA8C;AAC9C,2EAAuE;AAkBvE,MAAa,aAAa;IAexB,YAAY,EACV,SAAS,EACT,OAAO,GAAG,2BAAe,EACzB,OAAO,GAAG,2BAAe,EACzB,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,EAAE,EACf,aAAa,GAAG,oBAAK,EACrB,gBAAgB,GAAG,oCAAgB,CAAC,KAAK,EACzC,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,EAAE,EACnB,eAAe,GAAG,KAAK,EACvB,iBAAiB,GAAG,CAAC,EACrB,MAAM,GAAG,IAAA,cAAI,EAAC,IAAA,qBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,GACnB;QACxB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,2BAAkB,CAC1B,qEAAqE,CACtE,CAAC;SACH;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACvE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAlDD,sCAkDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare class ConfigurationError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare class APIError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class BadRequestError extends APIError {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
export declare class UnauthorizedError extends APIError {
|
|
11
|
+
constructor(message: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class ForbiddenError extends APIError {
|
|
14
|
+
constructor(message: string);
|
|
15
|
+
}
|
|
16
|
+
export declare class NotFoundError extends APIError {
|
|
17
|
+
constructor(message: string);
|
|
18
|
+
}
|
|
19
|
+
export declare class UserUnauthorizedError extends APIError {
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
22
|
+
export declare class InvalidParametersError extends APIError {
|
|
23
|
+
constructor(message: string);
|
|
24
|
+
}
|
|
25
|
+
export declare class InvalidRequestTokenError extends InvalidParametersError {
|
|
26
|
+
constructor(message: string);
|
|
27
|
+
}
|
|
28
|
+
export declare class InternalServerError extends APIError {
|
|
29
|
+
constructor(message: string);
|
|
30
|
+
}
|
|
31
|
+
export declare class ImpersonationFailed extends APIError {
|
|
32
|
+
constructor(message: string);
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './models';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './failover-strategy';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
3
|
+
import type { Configuration } from '../../configuration';
|
|
4
|
+
export declare const HeadersExtractService: {
|
|
5
|
+
call: (headers: IncomingHttpHeaders | {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}, configuration: Configuration) => {
|
|
8
|
+
[key: string]: string | boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ips-extract.service';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
2
|
+
import { Configuration } from '../../configuration';
|
|
3
|
+
export declare const IPsExtractService: {
|
|
4
|
+
call: (headers: IncomingHttpHeaders, { ipHeaders, trustedProxies, trustProxyChain, trustedProxyDepth, }: Configuration) => any;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './logging-parameters';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RiskPolicy, RiskPolicyFailover } from './risk-policy';
|
|
2
|
+
import { Verdict } from './verdict';
|
|
3
|
+
import { Signals } from './signals';
|
|
4
|
+
export interface AuthenticateResult {
|
|
5
|
+
action: Verdict | string;
|
|
6
|
+
risk?: number;
|
|
7
|
+
user_id?: string;
|
|
8
|
+
user?: {
|
|
9
|
+
email?: string;
|
|
10
|
+
username?: string;
|
|
11
|
+
};
|
|
12
|
+
device_token?: string;
|
|
13
|
+
failover?: boolean;
|
|
14
|
+
failover_reason?: string;
|
|
15
|
+
policy?: RiskPolicy | RiskPolicyFailover;
|
|
16
|
+
signals?: Signals;
|
|
17
|
+
internal?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
3
|
+
export type FilterPayload = {
|
|
4
|
+
request_token: string;
|
|
5
|
+
user?: {
|
|
6
|
+
id?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
};
|
|
10
|
+
matching_user_id?: string;
|
|
11
|
+
params?: {
|
|
12
|
+
email?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
username?: string;
|
|
15
|
+
};
|
|
16
|
+
properties?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
context: {
|
|
20
|
+
ip: string;
|
|
21
|
+
headers: IncomingHttpHeaders | {
|
|
22
|
+
[key: string]: string | boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
product?: any;
|
|
26
|
+
session?: {
|
|
27
|
+
id: string;
|
|
28
|
+
created_at?: string;
|
|
29
|
+
};
|
|
30
|
+
created_at?: string;
|
|
31
|
+
authentication_method?: {
|
|
32
|
+
type: string;
|
|
33
|
+
variant?: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
};
|
|
37
|
+
status?: string;
|
|
38
|
+
} & ({
|
|
39
|
+
event: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: string;
|
|
42
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
3
|
+
export type LogPayload = {
|
|
4
|
+
request_token?: string;
|
|
5
|
+
user?: {
|
|
6
|
+
id?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
registered_at?: string;
|
|
10
|
+
traits?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
name?: string;
|
|
14
|
+
address?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
created_at?: string;
|
|
19
|
+
properties?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
context?: {
|
|
23
|
+
ip?: string;
|
|
24
|
+
headers: IncomingHttpHeaders | {
|
|
25
|
+
[key: string]: string | boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
product?: any;
|
|
29
|
+
session?: {
|
|
30
|
+
id: string;
|
|
31
|
+
created_at?: string;
|
|
32
|
+
};
|
|
33
|
+
authentication_method?: {
|
|
34
|
+
type: string;
|
|
35
|
+
variant?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
phone?: string;
|
|
38
|
+
};
|
|
39
|
+
status?: string;
|
|
40
|
+
} & ({
|
|
41
|
+
event: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
3
|
+
export interface Payload {
|
|
4
|
+
event?: string;
|
|
5
|
+
user_id?: string;
|
|
6
|
+
user_traits?: object;
|
|
7
|
+
properties?: object;
|
|
8
|
+
created_at?: string;
|
|
9
|
+
device_token?: string;
|
|
10
|
+
context?: {
|
|
11
|
+
ip: string;
|
|
12
|
+
headers: IncomingHttpHeaders | {
|
|
13
|
+
[key: string]: string | boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { IncomingHttpHeaders } from 'http2';
|
|
3
|
+
export type RiskPayload = {
|
|
4
|
+
request_token: string;
|
|
5
|
+
user: {
|
|
6
|
+
id: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
registered_at?: string;
|
|
10
|
+
traits?: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
name?: string;
|
|
14
|
+
address?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
properties?: object;
|
|
19
|
+
context: {
|
|
20
|
+
ip: string;
|
|
21
|
+
headers: IncomingHttpHeaders | {
|
|
22
|
+
[key: string]: string | boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
created_at?: string;
|
|
26
|
+
product?: any;
|
|
27
|
+
session?: {
|
|
28
|
+
id: string;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
};
|
|
31
|
+
authentication_method?: {
|
|
32
|
+
type: string;
|
|
33
|
+
variant?: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
};
|
|
37
|
+
status?: string;
|
|
38
|
+
} & ({
|
|
39
|
+
event: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: string;
|
|
42
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payload-prepare-service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Configuration } from '../../configuration';
|
|
2
|
+
export declare const PayloadPrepareService: {
|
|
3
|
+
call: (payloadParams: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}, request: Request, configuration: Configuration, options?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}) => {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
} & {
|
|
10
|
+
context: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './validator-present.service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './services';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/package",
|
|
3
3
|
"name": "@castleio/sdk",
|
|
4
4
|
"description": "Castle SDK for Node",
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.1",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": "git@github.com:castle/castle-node.git",
|
|
8
8
|
"author": {
|
|
@@ -32,30 +32,30 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/fetch-mock": "7.3.5",
|
|
35
|
-
"@types/jest": "29.2.
|
|
35
|
+
"@types/jest": "29.2.6",
|
|
36
36
|
"@types/lodash.get": "4.4.7",
|
|
37
37
|
"@types/lodash.isempty": "4.4.7",
|
|
38
38
|
"@types/lodash.merge": "4.6.7",
|
|
39
39
|
"@types/lodash.pickby": "4.6.7",
|
|
40
40
|
"@types/lodash.reduce": "4.6.7",
|
|
41
|
-
"@types/node": "18.11.
|
|
41
|
+
"@types/node": "18.11.18",
|
|
42
42
|
"@types/node-fetch": "2.6.2",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
44
|
-
"@typescript-eslint/parser": "5.
|
|
45
|
-
"eslint": "8.
|
|
46
|
-
"eslint-config-prettier": "8.
|
|
47
|
-
"eslint-plugin-import": "2.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "5.49.0",
|
|
44
|
+
"@typescript-eslint/parser": "5.49.0",
|
|
45
|
+
"eslint": "8.32.0",
|
|
46
|
+
"eslint-config-prettier": "8.6.0",
|
|
47
|
+
"eslint-plugin-import": "2.27.5",
|
|
48
48
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
49
49
|
"eslint-plugin-prettier": "4.2.1",
|
|
50
50
|
"fetch-mock": "9.11.0",
|
|
51
|
-
"husky": "8.0.
|
|
51
|
+
"husky": "8.0.3",
|
|
52
52
|
"jest": "29.3.1",
|
|
53
53
|
"mockdate": "3.0.5",
|
|
54
|
-
"prettier": "2.8.
|
|
55
|
-
"rimraf": "
|
|
54
|
+
"prettier": "2.8.3",
|
|
55
|
+
"rimraf": "4.1.2",
|
|
56
56
|
"source-map-support": "0.5.21",
|
|
57
57
|
"timeout-signal": "1.1.0",
|
|
58
|
-
"ts-jest": "29.0.
|
|
58
|
+
"ts-jest": "29.0.5",
|
|
59
59
|
"ts-node": "10.9.1",
|
|
60
60
|
"typescript": "4.9.4"
|
|
61
61
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuraton.js","sourceRoot":"","sources":["../../src/configuraton.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,8DAAiC;AACjC,4DAA+B;AAE/B,2CAA+D;AAC/D,qCAA8C;AAC9C,2EAAuE;AAkBvE,MAAa,aAAa;IAexB,YAAY,EACV,SAAS,EACT,OAAO,GAAG,2BAAe,EACzB,OAAO,GAAG,2BAAe,EACzB,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,EAAE,EACf,aAAa,GAAG,oBAAK,EACrB,gBAAgB,GAAG,oCAAgB,CAAC,KAAK,EACzC,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,EAAE,EACnB,eAAe,GAAG,KAAK,EACvB,iBAAiB,GAAG,CAAC,EACrB,MAAM,GAAG,IAAA,cAAI,EAAC,IAAA,qBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,GACnB;QACxB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,2BAAkB,CAC1B,qEAAqE,CACtE,CAAC;SACH;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACvE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAlDD,sCAkDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"risk-result.js","sourceRoot":"","sources":["../../../src/models/risk-result.ts"],"names":[],"mappings":""}
|