@boxyhq/saml-jackson 1.37.0 → 1.37.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/dist/controller/api.d.ts +521 -474
- package/dist/controller/api.js +521 -474
- package/dist/controller/api.js.map +1 -1
- package/dist/controller/oauth.d.ts +88 -87
- package/dist/controller/oauth.js +146 -101
- package/dist/controller/oauth.js.map +1 -1
- package/dist/controller/setup-link.d.ts +343 -234
- package/dist/controller/setup-link.js +343 -234
- package/dist/controller/setup-link.js.map +1 -1
- package/dist/directory-sync/scim/DirectoryConfig.d.ts +265 -224
- package/dist/directory-sync/scim/DirectoryConfig.js +265 -224
- package/dist/directory-sync/scim/DirectoryConfig.js.map +1 -1
- package/dist/directory-sync/scim/Groups.d.ts +82 -87
- package/dist/directory-sync/scim/Groups.js +82 -87
- package/dist/directory-sync/scim/Groups.js.map +1 -1
- package/dist/directory-sync/scim/Users.d.ts +63 -49
- package/dist/directory-sync/scim/Users.js +63 -49
- package/dist/directory-sync/scim/Users.js.map +1 -1
- package/dist/directory-sync/scim/WebhookEventsLogger.d.ts +52 -61
- package/dist/directory-sync/scim/WebhookEventsLogger.js +52 -61
- package/dist/directory-sync/scim/WebhookEventsLogger.js.map +1 -1
- package/dist/ee/identity-federation/app.d.ts +292 -212
- package/dist/ee/identity-federation/app.js +292 -212
- package/dist/ee/identity-federation/app.js.map +1 -1
- package/dist/ee/identity-federation/idp-login.js +1 -1
- package/dist/ee/identity-federation/idp-login.js.map +1 -1
- package/dist/sso-traces/index.d.ts +67 -66
- package/dist/sso-traces/index.js +67 -66
- package/dist/sso-traces/index.js.map +1 -1
- package/dist/sso-traces/types.d.ts +1 -0
- package/package.json +7 -7
@@ -11,55 +11,6 @@ interface FilterByParams extends PaginationParams {
|
|
11
11
|
product?: string;
|
12
12
|
provider?: DirectoryType;
|
13
13
|
}
|
14
|
-
/**
|
15
|
-
* @swagger
|
16
|
-
* definitions:
|
17
|
-
* Directory:
|
18
|
-
* type: object
|
19
|
-
* properties:
|
20
|
-
* id:
|
21
|
-
* type: string
|
22
|
-
* description: Directory ID
|
23
|
-
* name:
|
24
|
-
* type: string
|
25
|
-
* description: name
|
26
|
-
* tenant:
|
27
|
-
* type: string
|
28
|
-
* description: Tenant
|
29
|
-
* product:
|
30
|
-
* type: string
|
31
|
-
* description: Product
|
32
|
-
* type:
|
33
|
-
* type: string
|
34
|
-
* description: Directory provider
|
35
|
-
* deactivated:
|
36
|
-
* type: boolean
|
37
|
-
* description: Status
|
38
|
-
* log_webhook_events:
|
39
|
-
* type: boolean
|
40
|
-
* description: If true, webhook requests will be logged
|
41
|
-
* scim:
|
42
|
-
* type: object
|
43
|
-
* properties:
|
44
|
-
* path:
|
45
|
-
* type: string
|
46
|
-
* description: SCIM path
|
47
|
-
* endpoint:
|
48
|
-
* type: string
|
49
|
-
* description: SCIM url
|
50
|
-
* secret:
|
51
|
-
* type: string
|
52
|
-
* description: SCIM secret
|
53
|
-
* webhook:
|
54
|
-
* type: object
|
55
|
-
* properties:
|
56
|
-
* endpoint:
|
57
|
-
* type: string
|
58
|
-
* description: Webhook url
|
59
|
-
* secret:
|
60
|
-
* type: string
|
61
|
-
* description: Webhook secret
|
62
|
-
*/
|
63
14
|
export declare class DirectoryConfig {
|
64
15
|
private _store;
|
65
16
|
private opts;
|
@@ -71,92 +22,160 @@ export declare class DirectoryConfig {
|
|
71
22
|
constructor({ db, opts, users, groups, logger, eventController }: DirectoryConfigParams);
|
72
23
|
private store;
|
73
24
|
/**
|
74
|
-
* @
|
75
|
-
*
|
76
|
-
*
|
77
|
-
*
|
78
|
-
*
|
79
|
-
*
|
80
|
-
*
|
81
|
-
*
|
82
|
-
*
|
83
|
-
*
|
84
|
-
*
|
85
|
-
*
|
86
|
-
*
|
87
|
-
*
|
88
|
-
*
|
89
|
-
*
|
90
|
-
*
|
91
|
-
*
|
92
|
-
*
|
93
|
-
*
|
94
|
-
*
|
95
|
-
*
|
96
|
-
*
|
97
|
-
*
|
98
|
-
*
|
99
|
-
*
|
100
|
-
*
|
101
|
-
*
|
102
|
-
*
|
103
|
-
*
|
104
|
-
*
|
105
|
-
*
|
106
|
-
*
|
107
|
-
*
|
108
|
-
*
|
109
|
-
*
|
110
|
-
*
|
111
|
-
*
|
112
|
-
|
113
|
-
|
114
|
-
*
|
115
|
-
*
|
116
|
-
*
|
117
|
-
*
|
118
|
-
*
|
119
|
-
*
|
120
|
-
*
|
121
|
-
*
|
122
|
-
*
|
25
|
+
* @openapi
|
26
|
+
* components:
|
27
|
+
* schemas:
|
28
|
+
* Directory:
|
29
|
+
* type: object
|
30
|
+
* properties:
|
31
|
+
* id:
|
32
|
+
* type: string
|
33
|
+
* description: Directory ID
|
34
|
+
* name:
|
35
|
+
* type: string
|
36
|
+
* description: name
|
37
|
+
* tenant:
|
38
|
+
* type: string
|
39
|
+
* description: Tenant
|
40
|
+
* product:
|
41
|
+
* type: string
|
42
|
+
* description: Product
|
43
|
+
* type:
|
44
|
+
* type: string
|
45
|
+
* description: Directory provider
|
46
|
+
* deactivated:
|
47
|
+
* type: boolean
|
48
|
+
* description: Status
|
49
|
+
* log_webhook_events:
|
50
|
+
* type: boolean
|
51
|
+
* description: If true, webhook requests will be logged
|
52
|
+
* scim:
|
53
|
+
* type: object
|
54
|
+
* properties:
|
55
|
+
* path:
|
56
|
+
* type: string
|
57
|
+
* description: SCIM path
|
58
|
+
* endpoint:
|
59
|
+
* type: string
|
60
|
+
* description: SCIM url
|
61
|
+
* secret:
|
62
|
+
* type: string
|
63
|
+
* description: SCIM secret
|
64
|
+
* webhook:
|
65
|
+
* type: object
|
66
|
+
* properties:
|
67
|
+
* endpoint:
|
68
|
+
* type: string
|
69
|
+
* description: Webhook url
|
70
|
+
* secret:
|
71
|
+
* type: string
|
72
|
+
* description: Webhook secret
|
73
|
+
* parameters:
|
74
|
+
* tenant:
|
75
|
+
* name: tenant
|
76
|
+
* in: query
|
77
|
+
* description: Tenant (Optional if directoryId is provided)
|
78
|
+
* schema:
|
123
79
|
* type: string
|
124
|
-
*
|
125
|
-
*
|
126
|
-
*
|
127
|
-
*
|
80
|
+
* product:
|
81
|
+
* name: product
|
82
|
+
* in: query
|
83
|
+
* description: Product (Optional if directoryId is provided)
|
84
|
+
* schema:
|
128
85
|
* type: string
|
129
|
-
*
|
130
|
-
*
|
131
|
-
*
|
132
|
-
*
|
86
|
+
* directoryId:
|
87
|
+
* name: directoryId
|
88
|
+
* in: query
|
89
|
+
* description: Directory ID (Optional if tenant/product is provided)
|
90
|
+
* schema:
|
133
91
|
* type: string
|
134
|
-
*
|
135
|
-
*
|
136
|
-
*
|
137
|
-
*
|
92
|
+
* pageOffset:
|
93
|
+
* name: pageOffset
|
94
|
+
* in: query
|
95
|
+
* description: Starting point from which the set of records are retrieved
|
96
|
+
* schema:
|
138
97
|
* type: string
|
139
|
-
*
|
140
|
-
*
|
141
|
-
*
|
142
|
-
*
|
98
|
+
* pageLimit:
|
99
|
+
* name: pageLimit
|
100
|
+
* in: query
|
101
|
+
* description: Number of records to be fetched for the page
|
102
|
+
* schema:
|
143
103
|
* type: string
|
144
|
-
*
|
145
|
-
*
|
146
|
-
*
|
147
|
-
*
|
104
|
+
* pageToken:
|
105
|
+
* name: pageToken
|
106
|
+
* in: query
|
107
|
+
* description: Token used for DynamoDB pagination
|
108
|
+
* schema:
|
148
109
|
* type: string
|
149
|
-
*
|
150
|
-
|
151
|
-
|
152
|
-
*
|
153
|
-
*
|
154
|
-
*
|
110
|
+
*
|
111
|
+
*/
|
112
|
+
/**
|
113
|
+
* @openapi
|
114
|
+
* /api/v1/dsync:
|
115
|
+
* post:
|
116
|
+
* tags:
|
117
|
+
* - Directory Sync
|
118
|
+
* summary: Create a directory connection
|
119
|
+
* requestBody:
|
120
|
+
* content:
|
121
|
+
* application/x-www-form-urlencoded:
|
122
|
+
* schema:
|
123
|
+
* required:
|
124
|
+
* - product
|
125
|
+
* - tenant
|
126
|
+
* type: object
|
127
|
+
* properties:
|
128
|
+
* tenant:
|
129
|
+
* type: string
|
130
|
+
* description: Tenant
|
131
|
+
* product:
|
132
|
+
* type: string
|
133
|
+
* description: Product
|
134
|
+
* name:
|
135
|
+
* type: string
|
136
|
+
* description: Name
|
137
|
+
* webhook_url:
|
138
|
+
* type: string
|
139
|
+
* description: Webhook URL
|
140
|
+
* webhook_secret:
|
141
|
+
* type: string
|
142
|
+
* description: Webhook secret
|
143
|
+
* type:
|
144
|
+
* type: string
|
145
|
+
* description: Directory provider. (Supported values are azure-scim-v2, onelogin-scim-v2, okta-scim-v2, jumpcloud-scim-v2, generic-scim-v2, google)
|
146
|
+
* application/json:
|
147
|
+
* schema:
|
148
|
+
* required:
|
149
|
+
* - product
|
150
|
+
* - tenant
|
151
|
+
* type: object
|
152
|
+
* properties:
|
153
|
+
* tenant:
|
154
|
+
* type: string
|
155
|
+
* description: Tenant
|
156
|
+
* product:
|
157
|
+
* type: string
|
158
|
+
* description: Product
|
159
|
+
* name:
|
160
|
+
* type: string
|
161
|
+
* description: Name
|
162
|
+
* webhook_url:
|
163
|
+
* type: string
|
164
|
+
* description: Webhook URL
|
165
|
+
* webhook_secret:
|
166
|
+
* type: string
|
167
|
+
* description: Webhook secret
|
168
|
+
* type:
|
169
|
+
* type: string
|
170
|
+
* description: Directory provider. (Supported values are azure-scim-v2, onelogin-scim-v2, okta-scim-v2, jumpcloud-scim-v2, generic-scim-v2, google)
|
171
|
+
* required: true
|
155
172
|
* responses:
|
156
|
-
*
|
157
|
-
*
|
158
|
-
*
|
159
|
-
*
|
173
|
+
* 200:
|
174
|
+
* description: Success
|
175
|
+
* content:
|
176
|
+
* application/json:
|
177
|
+
* schema:
|
178
|
+
* $ref: "#/components/schemas/Directory"
|
160
179
|
*/
|
161
180
|
create(params: {
|
162
181
|
name?: string;
|
@@ -170,155 +189,177 @@ export declare class DirectoryConfig {
|
|
170
189
|
google_refresh_token?: string;
|
171
190
|
}): Promise<Response<Directory>>;
|
172
191
|
/**
|
173
|
-
* @
|
192
|
+
* @openapi
|
174
193
|
* /api/v1/dsync/{directoryId}:
|
175
194
|
* get:
|
195
|
+
* tags:
|
196
|
+
* - Directory Sync
|
176
197
|
* summary: Get a directory connection by id
|
177
198
|
* parameters:
|
178
199
|
* - name: directoryId
|
179
|
-
* description: Directory ID
|
180
200
|
* in: path
|
201
|
+
* description: Directory ID
|
181
202
|
* required: true
|
182
|
-
*
|
183
|
-
*
|
184
|
-
* - Directory Sync
|
185
|
-
* produces:
|
186
|
-
* - application/json
|
203
|
+
* schema:
|
204
|
+
* type: string
|
187
205
|
* responses:
|
188
|
-
*
|
206
|
+
* 200:
|
189
207
|
* description: Success
|
190
|
-
*
|
191
|
-
*
|
208
|
+
* content:
|
209
|
+
* application/json:
|
210
|
+
* schema:
|
211
|
+
* $ref: "#/components/schemas/Directory"
|
192
212
|
*/
|
193
213
|
get(id: string): Promise<Response<Directory>>;
|
194
214
|
/**
|
195
|
-
* @
|
215
|
+
* @openapi
|
196
216
|
* /api/v1/dsync/{directoryId}:
|
197
217
|
* patch:
|
218
|
+
* tags:
|
219
|
+
* - Directory Sync
|
198
220
|
* summary: Update a directory connection
|
199
221
|
* parameters:
|
200
222
|
* - name: directoryId
|
201
|
-
* description: Directory ID
|
202
223
|
* in: path
|
224
|
+
* description: Directory ID
|
203
225
|
* required: true
|
204
|
-
*
|
205
|
-
*
|
206
|
-
*
|
207
|
-
*
|
208
|
-
*
|
209
|
-
*
|
210
|
-
*
|
211
|
-
*
|
212
|
-
*
|
213
|
-
*
|
214
|
-
*
|
215
|
-
*
|
216
|
-
*
|
217
|
-
*
|
218
|
-
*
|
219
|
-
*
|
220
|
-
*
|
221
|
-
*
|
222
|
-
*
|
223
|
-
*
|
224
|
-
*
|
225
|
-
*
|
226
|
-
*
|
227
|
-
*
|
228
|
-
*
|
229
|
-
*
|
230
|
-
*
|
231
|
-
*
|
232
|
-
*
|
233
|
-
*
|
234
|
-
*
|
235
|
-
*
|
236
|
-
*
|
237
|
-
*
|
238
|
-
*
|
239
|
-
*
|
240
|
-
*
|
241
|
-
*
|
242
|
-
*
|
243
|
-
*
|
244
|
-
*
|
245
|
-
*
|
246
|
-
*
|
247
|
-
*
|
248
|
-
*
|
249
|
-
*
|
250
|
-
*
|
226
|
+
* schema:
|
227
|
+
* type: string
|
228
|
+
* requestBody:
|
229
|
+
* content:
|
230
|
+
* application/x-www-form-urlencoded:
|
231
|
+
* schema:
|
232
|
+
* type: object
|
233
|
+
* properties:
|
234
|
+
* name:
|
235
|
+
* type: string
|
236
|
+
* description: Name
|
237
|
+
* webhook_url:
|
238
|
+
* type: string
|
239
|
+
* description: Webhook URL
|
240
|
+
* webhook_secret:
|
241
|
+
* type: string
|
242
|
+
* description: Webhook secret
|
243
|
+
* log_webhook_events:
|
244
|
+
* type: string
|
245
|
+
* description: If true, webhook requests will be logged
|
246
|
+
* deactivated:
|
247
|
+
* type: string
|
248
|
+
* description: If true, the directory connection will be deactivated
|
249
|
+
* google_domain:
|
250
|
+
* type: string
|
251
|
+
* description: Google domain
|
252
|
+
* google_access_token:
|
253
|
+
* type: string
|
254
|
+
* description: Google access token
|
255
|
+
* google_refresh_token:
|
256
|
+
* type: string
|
257
|
+
* description: Google refresh token
|
258
|
+
* application/json:
|
259
|
+
* schema:
|
260
|
+
* type: object
|
261
|
+
* properties:
|
262
|
+
* name:
|
263
|
+
* type: string
|
264
|
+
* description: Name
|
265
|
+
* webhook_url:
|
266
|
+
* type: string
|
267
|
+
* description: Webhook URL
|
268
|
+
* webhook_secret:
|
269
|
+
* type: string
|
270
|
+
* description: Webhook secret
|
271
|
+
* log_webhook_events:
|
272
|
+
* type: string
|
273
|
+
* description: If true, webhook requests will be logged
|
274
|
+
* deactivated:
|
275
|
+
* type: string
|
276
|
+
* description: If true, the directory connection will be deactivated
|
277
|
+
* google_domain:
|
278
|
+
* type: string
|
279
|
+
* description: Google domain
|
280
|
+
* google_access_token:
|
281
|
+
* type: string
|
282
|
+
* description: Google access token
|
283
|
+
* google_refresh_token:
|
284
|
+
* type: string
|
285
|
+
* description: Google refresh token
|
251
286
|
* responses:
|
252
|
-
*
|
253
|
-
*
|
254
|
-
*
|
255
|
-
*
|
287
|
+
* 200:
|
288
|
+
* description: Success
|
289
|
+
* content:
|
290
|
+
* application/json:
|
291
|
+
* schema:
|
292
|
+
* $ref: "#/components/schemas/Directory"
|
256
293
|
*/
|
257
294
|
update(id: string, param: Omit<Partial<Directory>, 'id' | 'tenant' | 'prodct' | 'scim' | 'type'> & {
|
258
295
|
webhook_url?: string;
|
259
296
|
webhook_secret?: string;
|
260
297
|
}): Promise<Response<Directory>>;
|
261
298
|
/**
|
262
|
-
* @
|
299
|
+
* @openapi
|
263
300
|
* /api/v1/dsync:
|
264
301
|
* get:
|
302
|
+
* tags:
|
303
|
+
* - Directory Sync
|
265
304
|
* summary: Get a directory connection by tenant and product
|
266
305
|
* parameters:
|
267
|
-
* -
|
268
|
-
*
|
269
|
-
*
|
270
|
-
*
|
271
|
-
*
|
272
|
-
*
|
273
|
-
*
|
274
|
-
*
|
306
|
+
* - name: tenant
|
307
|
+
* in: query
|
308
|
+
* description: Tenant (Optional if directoryId is provided)
|
309
|
+
* schema:
|
310
|
+
* type: string
|
311
|
+
* - name: product
|
312
|
+
* in: query
|
313
|
+
* description: Product (Optional if directoryId is provided)
|
314
|
+
* schema:
|
315
|
+
* type: string
|
275
316
|
* responses:
|
276
|
-
*
|
277
|
-
*
|
278
|
-
*
|
279
|
-
*
|
280
|
-
*
|
281
|
-
*
|
317
|
+
* 200:
|
318
|
+
* description: Success
|
319
|
+
* content:
|
320
|
+
* application/json:
|
321
|
+
* schema:
|
322
|
+
* type: array
|
323
|
+
* items:
|
324
|
+
* $ref: "#/components/schemas/Directory"
|
282
325
|
*/
|
283
326
|
getByTenantAndProduct(tenant: string, product: string): Promise<Response<Directory[]>>;
|
284
327
|
getAll(params?: PaginationParams): Promise<Response<Directory[]> & {
|
285
328
|
pageToken?: string;
|
286
329
|
}>;
|
287
330
|
/**
|
288
|
-
* @
|
331
|
+
* @openapi
|
289
332
|
* /api/v1/dsync/{directoryId}:
|
290
333
|
* delete:
|
334
|
+
* tags:
|
335
|
+
* - Directory Sync
|
291
336
|
* summary: Delete a directory connection by id
|
292
337
|
* parameters:
|
293
338
|
* - name: directoryId
|
294
|
-
* description: Directory ID
|
295
339
|
* in: path
|
340
|
+
* description: Directory ID
|
296
341
|
* required: true
|
297
|
-
*
|
298
|
-
*
|
299
|
-
* - Directory Sync
|
300
|
-
* produces:
|
301
|
-
* - application/json
|
342
|
+
* schema:
|
343
|
+
* type: string
|
302
344
|
* responses:
|
303
|
-
*
|
345
|
+
* 200:
|
304
346
|
* description: Success
|
347
|
+
* content: {}
|
305
348
|
*/
|
306
349
|
delete(id: string): Promise<Response<null>>;
|
307
350
|
private transform;
|
308
351
|
/**
|
309
|
-
* @
|
352
|
+
* @openapi
|
310
353
|
* /api/v1/dsync/product:
|
311
354
|
* get:
|
312
|
-
* summary: Get directory connections by product
|
313
|
-
* parameters:
|
314
|
-
* - $ref: '#/parameters/product'
|
315
|
-
* - $ref: '#/parameters/pageOffset'
|
316
|
-
* - $ref: '#/parameters/pageLimit'
|
317
|
-
* - $ref: '#/parameters/pageToken'
|
318
355
|
* tags:
|
319
356
|
* - Directory Sync
|
320
|
-
*
|
321
|
-
*
|
357
|
+
* summary: Get directory connections by product
|
358
|
+
* parameters:
|
359
|
+
* - $ref: '#/components/parameters/product'
|
360
|
+
* - $ref: '#/components/parameters/pageOffset'
|
361
|
+
* - $ref: '#/components/parameters/pageLimit'
|
362
|
+
* - $ref: '#/components/parameters/pageToken'
|
322
363
|
* responses:
|
323
364
|
* '200':
|
324
365
|
* description: Success
|
@@ -330,7 +371,7 @@ export declare class DirectoryConfig {
|
|
330
371
|
* data:
|
331
372
|
* type: array
|
332
373
|
* items:
|
333
|
-
* $ref: '#/
|
374
|
+
* $ref: '#/components/schemas/Directory'
|
334
375
|
* pageToken:
|
335
376
|
* type: string
|
336
377
|
* description: token for pagination
|