@boxyhq/saml-jackson 1.11.1 → 1.11.3
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/dist/controller/admin.d.ts +2 -1
- package/dist/controller/admin.js +9 -0
- package/dist/controller/admin.js.map +1 -1
- package/dist/controller/api.d.ts +10 -136
- package/dist/controller/api.js +10 -136
- package/dist/controller/api.js.map +1 -1
- package/dist/controller/connection/saml.js +5 -2
- package/dist/controller/connection/saml.js.map +1 -1
- package/dist/controller/oauth.js +6 -1
- package/dist/controller/oauth.js.map +1 -1
- package/dist/controller/setup-link.d.ts +248 -4
- package/dist/controller/setup-link.js +297 -19
- package/dist/controller/setup-link.js.map +1 -1
- package/dist/controller/utils.d.ts +5 -4
- package/dist/controller/utils.js +5 -3
- package/dist/controller/utils.js.map +1 -1
- package/dist/directory-sync/scim/DirectoryConfig.d.ts +202 -0
- package/dist/directory-sync/scim/DirectoryConfig.js +202 -5
- package/dist/directory-sync/scim/DirectoryConfig.js.map +1 -1
- package/dist/directory-sync/scim/Groups.d.ts +60 -0
- package/dist/directory-sync/scim/Groups.js +60 -2
- package/dist/directory-sync/scim/Groups.js.map +1 -1
- package/dist/directory-sync/scim/Users.d.ts +69 -0
- package/dist/directory-sync/scim/Users.js +69 -2
- package/dist/directory-sync/scim/Users.js.map +1 -1
- package/dist/saml-tracer/index.d.ts +89 -0
- package/dist/saml-tracer/index.js +102 -0
- package/dist/saml-tracer/index.js.map +1 -1
- package/dist/typings.d.ts +1 -0
- package/package.json +14 -14
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Groups.js","sourceRoot":"","sources":["../../../src/directory-sync/scim/Groups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoC;AAGpC,wDAA0C;AAC1C,kDAAgE;AAChE,iCAA8B;AAE9B,MAAM,UAAU,GAAG;IACjB,sBAAsB,EAAE,wBAAwB;IAChD,WAAW,EA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MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBAErG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;oBACpC,MAAM;iBACP;gBAED,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;aAC5E;QACH,CAAC;KAAA;CACF;AA3RD,wBA2RC"}
|
@@ -9,11 +9,59 @@ interface CreateUserParams {
|
|
9
9
|
raw: any;
|
10
10
|
id?: string;
|
11
11
|
}
|
12
|
+
/**
|
13
|
+
* @swagger
|
14
|
+
* definitions:
|
15
|
+
* User:
|
16
|
+
* type: object
|
17
|
+
* properties:
|
18
|
+
* id:
|
19
|
+
* type: string
|
20
|
+
* description: User ID
|
21
|
+
* first_name:
|
22
|
+
* type: string
|
23
|
+
* description: First name
|
24
|
+
* last_name:
|
25
|
+
* type: string
|
26
|
+
* description: Last name
|
27
|
+
* email:
|
28
|
+
* type: string
|
29
|
+
* description: Email address
|
30
|
+
* active:
|
31
|
+
* type: boolean
|
32
|
+
* description: Indicates whether the user is active or not
|
33
|
+
* raw:
|
34
|
+
* type: object
|
35
|
+
* description: Raw user attributes from the Identity Provider
|
36
|
+
*/
|
12
37
|
export declare class Users extends Base {
|
13
38
|
constructor({ db }: {
|
14
39
|
db: DatabaseStore;
|
15
40
|
});
|
16
41
|
create(params: CreateUserParams): Promise<Response<User>>;
|
42
|
+
/**
|
43
|
+
* @swagger
|
44
|
+
* /api/v1/dsync/users/{userId}:
|
45
|
+
* get:
|
46
|
+
* summary: Get user by id from a directory
|
47
|
+
* parameters:
|
48
|
+
* - $ref: '#/parameters/tenant'
|
49
|
+
* - $ref: '#/parameters/product'
|
50
|
+
* - name: userId
|
51
|
+
* description: User ID
|
52
|
+
* in: path
|
53
|
+
* required: true
|
54
|
+
* type: string
|
55
|
+
* tags:
|
56
|
+
* - Directory Sync
|
57
|
+
* produces:
|
58
|
+
* - application/json
|
59
|
+
* responses:
|
60
|
+
* 200:
|
61
|
+
* description: Success
|
62
|
+
* schema:
|
63
|
+
* $ref: '#/definitions/User'
|
64
|
+
*/
|
17
65
|
get(id: string): Promise<Response<User>>;
|
18
66
|
update(id: string, param: {
|
19
67
|
first_name: string;
|
@@ -24,6 +72,27 @@ export declare class Users extends Base {
|
|
24
72
|
}): Promise<Response<User>>;
|
25
73
|
delete(id: string): Promise<Response<null>>;
|
26
74
|
search(userName: string, directoryId: string): Promise<Response<User[]>>;
|
75
|
+
/**
|
76
|
+
* @swagger
|
77
|
+
* /api/v1/dsync/users:
|
78
|
+
* get:
|
79
|
+
* summary: Get users from a directory
|
80
|
+
* parameters:
|
81
|
+
* - $ref: '#/parameters/tenant'
|
82
|
+
* - $ref: '#/parameters/product'
|
83
|
+
* - $ref: '#/parameters/directoryId'
|
84
|
+
* tags:
|
85
|
+
* - Directory Sync
|
86
|
+
* produces:
|
87
|
+
* - application/json
|
88
|
+
* responses:
|
89
|
+
* 200:
|
90
|
+
* description: Success
|
91
|
+
* schema:
|
92
|
+
* type: array
|
93
|
+
* items:
|
94
|
+
* $ref: '#/definitions/User'
|
95
|
+
*/
|
27
96
|
getAll({ pageOffset, pageLimit, directoryId, }?: PaginationParams & {
|
28
97
|
directoryId?: string;
|
29
98
|
}): Promise<Response<User[]>>;
|
@@ -18,6 +18,31 @@ const indexNames = {
|
|
18
18
|
directoryIdUsername: 'directoryIdUsername',
|
19
19
|
directoryId: 'directoryId',
|
20
20
|
};
|
21
|
+
/**
|
22
|
+
* @swagger
|
23
|
+
* definitions:
|
24
|
+
* User:
|
25
|
+
* type: object
|
26
|
+
* properties:
|
27
|
+
* id:
|
28
|
+
* type: string
|
29
|
+
* description: User ID
|
30
|
+
* first_name:
|
31
|
+
* type: string
|
32
|
+
* description: First name
|
33
|
+
* last_name:
|
34
|
+
* type: string
|
35
|
+
* description: Last name
|
36
|
+
* email:
|
37
|
+
* type: string
|
38
|
+
* description: Email address
|
39
|
+
* active:
|
40
|
+
* type: boolean
|
41
|
+
* description: Indicates whether the user is active or not
|
42
|
+
* raw:
|
43
|
+
* type: object
|
44
|
+
* description: Raw user attributes from the Identity Provider
|
45
|
+
*/
|
21
46
|
class Users extends Base_1.Base {
|
22
47
|
constructor({ db }) {
|
23
48
|
super({ db });
|
@@ -51,7 +76,29 @@ class Users extends Base_1.Base {
|
|
51
76
|
}
|
52
77
|
});
|
53
78
|
}
|
54
|
-
|
79
|
+
/**
|
80
|
+
* @swagger
|
81
|
+
* /api/v1/dsync/users/{userId}:
|
82
|
+
* get:
|
83
|
+
* summary: Get user by id from a directory
|
84
|
+
* parameters:
|
85
|
+
* - $ref: '#/parameters/tenant'
|
86
|
+
* - $ref: '#/parameters/product'
|
87
|
+
* - name: userId
|
88
|
+
* description: User ID
|
89
|
+
* in: path
|
90
|
+
* required: true
|
91
|
+
* type: string
|
92
|
+
* tags:
|
93
|
+
* - Directory Sync
|
94
|
+
* produces:
|
95
|
+
* - application/json
|
96
|
+
* responses:
|
97
|
+
* 200:
|
98
|
+
* description: Success
|
99
|
+
* schema:
|
100
|
+
* $ref: '#/definitions/User'
|
101
|
+
*/
|
55
102
|
get(id) {
|
56
103
|
return __awaiter(this, void 0, void 0, function* () {
|
57
104
|
try {
|
@@ -119,7 +166,27 @@ class Users extends Base_1.Base {
|
|
119
166
|
}
|
120
167
|
});
|
121
168
|
}
|
122
|
-
|
169
|
+
/**
|
170
|
+
* @swagger
|
171
|
+
* /api/v1/dsync/users:
|
172
|
+
* get:
|
173
|
+
* summary: Get users from a directory
|
174
|
+
* parameters:
|
175
|
+
* - $ref: '#/parameters/tenant'
|
176
|
+
* - $ref: '#/parameters/product'
|
177
|
+
* - $ref: '#/parameters/directoryId'
|
178
|
+
* tags:
|
179
|
+
* - Directory Sync
|
180
|
+
* produces:
|
181
|
+
* - application/json
|
182
|
+
* responses:
|
183
|
+
* 200:
|
184
|
+
* description: Success
|
185
|
+
* schema:
|
186
|
+
* type: array
|
187
|
+
* items:
|
188
|
+
* $ref: '#/definitions/User'
|
189
|
+
*/
|
123
190
|
getAll({ pageOffset, pageLimit, directoryId, } = {}) {
|
124
191
|
return __awaiter(this, void 0, void 0, function* () {
|
125
192
|
try {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Users.js","sourceRoot":"","sources":["../../../src/directory-sync/scim/Users.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAoC;AAGpC,kDAAgE;AAChE,iCAA8B;AAC9B,0CAA8C;AAE9C,MAAM,UAAU,GAAG;IACjB,mBAAmB,EAAE,qBAAqB;IAC1C,WAAW,EAAE,aAAa;CAC3B,CAAC;AAYF,MAAa,KAAM,SAAQ,WAAI;IAC7B,YAAY,EAAE,EAAE,EAAyB;QACvC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAChB,CAAC;IAED,oBAAoB;IACP,MAAM,CAAC,MAAwB;;YAC1C,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;YAEtF,MAAM,EAAE,GAAG,MAAM,IAAI,IAAA,mBAAU,GAAE,CAAC;YAElC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAEf,MAAM,IAAI,GAAG;gBACX,EAAE;gBACF,UAAU;gBACV,SAAS;gBACT,KAAK;gBACL,MAAM;gBACN,GAAG;aACJ,CAAC;YAEF,IAAI;gBACF,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAC3B,EAAE,EACF,IAAI,EACJ;oBACE,IAAI,EAAE,UAAU,CAAC,mBAAmB;oBACpC,KAAK,EAAE,IAAA,oBAAY,EAAC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A;CACF;AAtND,sBAsNC"}
|
@@ -1,14 +1,103 @@
|
|
1
1
|
import { Records, Storable } from '../typings';
|
2
2
|
import type { SAMLTrace, Trace } from './types';
|
3
|
+
/**
|
4
|
+
* @swagger
|
5
|
+
* definitions:
|
6
|
+
* SAMLTrace:
|
7
|
+
* type: object
|
8
|
+
* properties:
|
9
|
+
* traceId:
|
10
|
+
* type: string
|
11
|
+
* description: Trace ID
|
12
|
+
* error:
|
13
|
+
* type: string
|
14
|
+
* description: Error
|
15
|
+
* timestamp:
|
16
|
+
* type: string
|
17
|
+
* description: Timestamp
|
18
|
+
* context:
|
19
|
+
* type: object
|
20
|
+
* properties:
|
21
|
+
* tenant:
|
22
|
+
* type: string
|
23
|
+
* description: Tenant
|
24
|
+
* product:
|
25
|
+
* type: string
|
26
|
+
* description: Product
|
27
|
+
* clientID:
|
28
|
+
* type: string
|
29
|
+
* description: Connection client ID
|
30
|
+
* issuer:
|
31
|
+
* type: string
|
32
|
+
* description: Issuer
|
33
|
+
* relayState:
|
34
|
+
* type: string
|
35
|
+
* description: Relay state
|
36
|
+
* samlResponse:
|
37
|
+
* type: string
|
38
|
+
* description: SAML response
|
39
|
+
* isSAMLFederated:
|
40
|
+
* type: boolean
|
41
|
+
* description: Indicates if SAML is federated
|
42
|
+
* isIdPFlow:
|
43
|
+
* type: boolean
|
44
|
+
* description: Indicates if request is from IdP
|
45
|
+
*/
|
3
46
|
declare class SAMLTracer {
|
4
47
|
tracerStore: Storable;
|
5
48
|
constructor({ db }: {
|
6
49
|
db: any;
|
7
50
|
});
|
8
51
|
saveTrace(payload: SAMLTrace): Promise<string | undefined>;
|
52
|
+
/**
|
53
|
+
* @swagger
|
54
|
+
* /api/v1/saml-traces:
|
55
|
+
* get:
|
56
|
+
* summary: Get trace by ID
|
57
|
+
* parameters:
|
58
|
+
* - name: id
|
59
|
+
* description: Trace ID
|
60
|
+
* in: query
|
61
|
+
* required: true
|
62
|
+
* type: string
|
63
|
+
* tags:
|
64
|
+
* - SAML Traces
|
65
|
+
* produces:
|
66
|
+
* - application/json
|
67
|
+
* responses:
|
68
|
+
* '200':
|
69
|
+
* description: Success
|
70
|
+
* schema:
|
71
|
+
* $ref: '#/definitions/SAMLTrace'
|
72
|
+
*/
|
9
73
|
getByTraceId(traceId: string): Promise<Trace>;
|
10
74
|
getAllTraces(pageOffset?: number, pageLimit?: number, pageToken?: string): Promise<Records<Trace>>;
|
11
75
|
/** Cleans up stale traces older than 1 week */
|
12
76
|
cleanUpStaleTraces(): Promise<void>;
|
77
|
+
/**
|
78
|
+
* @swagger
|
79
|
+
* /api/v1/saml-traces/product:
|
80
|
+
* get:
|
81
|
+
* summary: Get all traces for a product
|
82
|
+
* parameters:
|
83
|
+
* - $ref: '#/parameters/product'
|
84
|
+
* tags:
|
85
|
+
* - SAML Traces
|
86
|
+
* produces:
|
87
|
+
* - application/json
|
88
|
+
* responses:
|
89
|
+
* '200':
|
90
|
+
* description: Success
|
91
|
+
* schema:
|
92
|
+
* type: array
|
93
|
+
* items:
|
94
|
+
* $ref: '#/definitions/SAMLTrace'
|
95
|
+
*/
|
96
|
+
getTracesByProduct(params: {
|
97
|
+
product: string;
|
98
|
+
pageOffset?: number;
|
99
|
+
pageLimit?: number;
|
100
|
+
pageToken?: string;
|
101
|
+
}): Promise<Records<any>>;
|
13
102
|
}
|
14
103
|
export default SAMLTracer;
|
@@ -12,8 +12,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const error_code_mnemonic_1 = require("@boxyhq/error-code-mnemonic");
|
13
13
|
const utils_1 = require("../controller/utils");
|
14
14
|
const utils_2 = require("../db/utils");
|
15
|
+
const error_1 = require("../controller/error");
|
15
16
|
const INTERVAL_1_WEEK_MS = 7 * 24 * 60 * 60 * 1000;
|
16
17
|
const INTERVAL_1_DAY_MS = 24 * 60 * 60 * 1000;
|
18
|
+
/**
|
19
|
+
* @swagger
|
20
|
+
* definitions:
|
21
|
+
* SAMLTrace:
|
22
|
+
* type: object
|
23
|
+
* properties:
|
24
|
+
* traceId:
|
25
|
+
* type: string
|
26
|
+
* description: Trace ID
|
27
|
+
* error:
|
28
|
+
* type: string
|
29
|
+
* description: Error
|
30
|
+
* timestamp:
|
31
|
+
* type: string
|
32
|
+
* description: Timestamp
|
33
|
+
* context:
|
34
|
+
* type: object
|
35
|
+
* properties:
|
36
|
+
* tenant:
|
37
|
+
* type: string
|
38
|
+
* description: Tenant
|
39
|
+
* product:
|
40
|
+
* type: string
|
41
|
+
* description: Product
|
42
|
+
* clientID:
|
43
|
+
* type: string
|
44
|
+
* description: Connection client ID
|
45
|
+
* issuer:
|
46
|
+
* type: string
|
47
|
+
* description: Issuer
|
48
|
+
* relayState:
|
49
|
+
* type: string
|
50
|
+
* description: Relay state
|
51
|
+
* samlResponse:
|
52
|
+
* type: string
|
53
|
+
* description: SAML response
|
54
|
+
* isSAMLFederated:
|
55
|
+
* type: boolean
|
56
|
+
* description: Indicates if SAML is federated
|
57
|
+
* isIdPFlow:
|
58
|
+
* type: boolean
|
59
|
+
* description: Indicates if request is from IdP
|
60
|
+
*/
|
17
61
|
class SAMLTracer {
|
18
62
|
constructor({ db }) {
|
19
63
|
this.tracerStore = db.store('saml:tracer');
|
@@ -45,6 +89,11 @@ class SAMLTracer {
|
|
45
89
|
value: clientID,
|
46
90
|
filterLogic: ({ clientID }) => !!clientID,
|
47
91
|
},
|
92
|
+
{
|
93
|
+
name: utils_1.IndexNames.Product,
|
94
|
+
value: product,
|
95
|
+
filterLogic: ({ product }) => !!product,
|
96
|
+
},
|
48
97
|
]
|
49
98
|
.filter(({ filterLogic }) => filterLogic(context))
|
50
99
|
.map(({ name, value }) => ({ name, value }));
|
@@ -56,6 +105,27 @@ class SAMLTracer {
|
|
56
105
|
}
|
57
106
|
});
|
58
107
|
}
|
108
|
+
/**
|
109
|
+
* @swagger
|
110
|
+
* /api/v1/saml-traces:
|
111
|
+
* get:
|
112
|
+
* summary: Get trace by ID
|
113
|
+
* parameters:
|
114
|
+
* - name: id
|
115
|
+
* description: Trace ID
|
116
|
+
* in: query
|
117
|
+
* required: true
|
118
|
+
* type: string
|
119
|
+
* tags:
|
120
|
+
* - SAML Traces
|
121
|
+
* produces:
|
122
|
+
* - application/json
|
123
|
+
* responses:
|
124
|
+
* '200':
|
125
|
+
* description: Success
|
126
|
+
* schema:
|
127
|
+
* $ref: '#/definitions/SAMLTrace'
|
128
|
+
*/
|
59
129
|
getByTraceId(traceId) {
|
60
130
|
return __awaiter(this, void 0, void 0, function* () {
|
61
131
|
return (yield this.tracerStore.get(traceId));
|
@@ -83,6 +153,38 @@ class SAMLTracer {
|
|
83
153
|
}
|
84
154
|
});
|
85
155
|
}
|
156
|
+
/**
|
157
|
+
* @swagger
|
158
|
+
* /api/v1/saml-traces/product:
|
159
|
+
* get:
|
160
|
+
* summary: Get all traces for a product
|
161
|
+
* parameters:
|
162
|
+
* - $ref: '#/parameters/product'
|
163
|
+
* tags:
|
164
|
+
* - SAML Traces
|
165
|
+
* produces:
|
166
|
+
* - application/json
|
167
|
+
* responses:
|
168
|
+
* '200':
|
169
|
+
* description: Success
|
170
|
+
* schema:
|
171
|
+
* type: array
|
172
|
+
* items:
|
173
|
+
* $ref: '#/definitions/SAMLTrace'
|
174
|
+
*/
|
175
|
+
getTracesByProduct(params) {
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
177
|
+
const { product, pageOffset, pageLimit, pageToken } = params;
|
178
|
+
if (!product) {
|
179
|
+
throw new error_1.JacksonError('Please provide a `product`.', 400);
|
180
|
+
}
|
181
|
+
const traces = yield this.tracerStore.getByIndex({
|
182
|
+
name: utils_1.IndexNames.Product,
|
183
|
+
value: product,
|
184
|
+
}, pageOffset, pageLimit, pageToken);
|
185
|
+
return traces;
|
186
|
+
});
|
187
|
+
}
|
86
188
|
}
|
87
189
|
exports.default = SAMLTracer;
|
88
190
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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AA6B,EAAE,GAAG,CAAC,CAAC;aAC5D;YAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAC9C;gBACE,IAAI,EAAE,kBAAU,CAAC,OAAO;gBACxB,KAAK,EAAE,OAAO;aACf,EACD,UAAU,EACV,SAAS,EACT,SAAS,CACV,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AAED,kBAAe,UAAU,CAAC"}
|
package/dist/typings.d.ts
CHANGED
@@ -172,6 +172,7 @@ export interface IAdminController {
|
|
172
172
|
getAllConnection(pageOffset?: number, pageLimit?: number, pageToken?: string): any;
|
173
173
|
getAllSAMLTraces(pageOffset: number, pageLimit: number, pageToken?: string): any;
|
174
174
|
getSAMLTraceById(traceId: string): any;
|
175
|
+
getTracesByProduct(product: string, pageOffset: number, pageLimit: number, pageToken?: string): any;
|
175
176
|
}
|
176
177
|
export interface IHealthCheckController {
|
177
178
|
status(): Promise<{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@boxyhq/saml-jackson",
|
3
|
-
"version": "1.11.
|
3
|
+
"version": "1.11.3",
|
4
4
|
"description": "SAML Jackson library",
|
5
5
|
"keywords": [
|
6
6
|
"SAML 2.0"
|
@@ -40,21 +40,21 @@
|
|
40
40
|
"statements": 70
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"@aws-sdk/client-dynamodb": "3.
|
44
|
-
"@aws-sdk/credential-providers": "3.
|
45
|
-
"@aws-sdk/util-dynamodb": "3.
|
43
|
+
"@aws-sdk/client-dynamodb": "3.391.0",
|
44
|
+
"@aws-sdk/credential-providers": "3.391.0",
|
45
|
+
"@aws-sdk/util-dynamodb": "3.391.0",
|
46
46
|
"@boxyhq/error-code-mnemonic": "0.1.1",
|
47
47
|
"@boxyhq/metrics": "0.2.4",
|
48
|
-
"@boxyhq/saml20": "1.2.
|
48
|
+
"@boxyhq/saml20": "1.2.4",
|
49
49
|
"axios": "1.4.0",
|
50
50
|
"encoding": "0.1.13",
|
51
|
-
"googleapis": "
|
51
|
+
"googleapis": "126.0.0",
|
52
52
|
"jose": "4.14.4",
|
53
53
|
"lodash": "4.17.21",
|
54
54
|
"mixpanel": "0.17.0",
|
55
55
|
"mongodb": "5.7.0",
|
56
|
-
"mssql": "9.1.
|
57
|
-
"mysql2": "3.
|
56
|
+
"mssql": "9.1.3",
|
57
|
+
"mysql2": "3.6.0",
|
58
58
|
"node-forge": "1.3.1",
|
59
59
|
"openid-client": "5.4.3",
|
60
60
|
"pg": "8.10.0",
|
@@ -62,19 +62,19 @@
|
|
62
62
|
"reflect-metadata": "0.1.13",
|
63
63
|
"ripemd160": "2.0.2",
|
64
64
|
"typeorm": "0.3.17",
|
65
|
-
"xml2js": "0.6.
|
65
|
+
"xml2js": "0.6.2",
|
66
66
|
"xmlbuilder": "15.1.1"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
69
|
"@faker-js/faker": "8.0.2",
|
70
|
-
"@types/lodash": "4.14.
|
71
|
-
"@types/node": "20.
|
72
|
-
"@types/sinon": "10.0.
|
70
|
+
"@types/lodash": "4.14.197",
|
71
|
+
"@types/node": "20.5.0",
|
72
|
+
"@types/sinon": "10.0.16",
|
73
73
|
"@types/tap": "15.0.8",
|
74
74
|
"cross-env": "7.0.3",
|
75
|
-
"nock": "13.3.
|
75
|
+
"nock": "13.3.3",
|
76
76
|
"sinon": "15.2.0",
|
77
|
-
"tap": "16.3.
|
77
|
+
"tap": "16.3.8",
|
78
78
|
"ts-node": "10.9.1",
|
79
79
|
"tsconfig-paths": "4.2.0",
|
80
80
|
"typescript": "5.1.6"
|