@boxyhq/saml-jackson 1.37.0 → 1.38.0
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/non-scim/google/api.js +1 -1
- package/dist/directory-sync/non-scim/google/api.js.map +1 -1
- package/dist/directory-sync/scim/DirectoryConfig.d.ts +259 -225
- package/dist/directory-sync/scim/DirectoryConfig.js +261 -227
- 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/directory-sync/types.d.ts +0 -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 +10 -10
@@ -6,74 +6,80 @@ interface CreateGroupParams {
|
|
6
6
|
raw: any;
|
7
7
|
id?: string;
|
8
8
|
}
|
9
|
-
/**
|
10
|
-
* @swagger
|
11
|
-
* parameters:
|
12
|
-
* groupId:
|
13
|
-
* name: groupId
|
14
|
-
* description: Group ID
|
15
|
-
* in: path
|
16
|
-
* required: true
|
17
|
-
* type: string
|
18
|
-
* tenant:
|
19
|
-
* name: tenant
|
20
|
-
* description: Tenant (Optional if directoryId is provided)
|
21
|
-
* in: query
|
22
|
-
* required: false
|
23
|
-
* type: string
|
24
|
-
* product:
|
25
|
-
* name: product
|
26
|
-
* in: query
|
27
|
-
* description: Product (Optional if directoryId is provided)
|
28
|
-
* required: false
|
29
|
-
* type: string
|
30
|
-
* directoryId:
|
31
|
-
* name: directoryId
|
32
|
-
* description: Directory ID (Optional if tenant/product is provided)
|
33
|
-
* in: query
|
34
|
-
* required: false
|
35
|
-
* type: string
|
36
|
-
*/
|
37
|
-
/**
|
38
|
-
* @swagger
|
39
|
-
* definitions:
|
40
|
-
* Group:
|
41
|
-
* type: object
|
42
|
-
* properties:
|
43
|
-
* id:
|
44
|
-
* type: string
|
45
|
-
* description: Group ID
|
46
|
-
* name:
|
47
|
-
* type: string
|
48
|
-
* description: Group name
|
49
|
-
* raw:
|
50
|
-
* type: object
|
51
|
-
* description: Raw group attributes from the Identity Provider
|
52
|
-
*/
|
53
9
|
export declare class Groups extends Base {
|
54
10
|
constructor({ db }: {
|
55
11
|
db: DatabaseStore;
|
56
12
|
});
|
57
13
|
create(params: CreateGroupParams): Promise<Response<Group>>;
|
58
14
|
/**
|
59
|
-
* @
|
15
|
+
* @openapi
|
16
|
+
* components:
|
17
|
+
* schemas:
|
18
|
+
* Group:
|
19
|
+
* type: object
|
20
|
+
* properties:
|
21
|
+
* id:
|
22
|
+
* type: string
|
23
|
+
* description: Group ID
|
24
|
+
* name:
|
25
|
+
* type: string
|
26
|
+
* description: Group name
|
27
|
+
* raw:
|
28
|
+
* type: object
|
29
|
+
* properties: {}
|
30
|
+
* description: Raw group attributes from the Identity Provider
|
31
|
+
* Member:
|
32
|
+
* type: object
|
33
|
+
* properties:
|
34
|
+
* user_id:
|
35
|
+
* type: string
|
36
|
+
* description: ID of the user
|
37
|
+
* parameters:
|
38
|
+
* groupId:
|
39
|
+
* name: groupId
|
40
|
+
* in: path
|
41
|
+
* description: Group ID
|
42
|
+
* required: true
|
43
|
+
* schema:
|
44
|
+
* type: string
|
45
|
+
*
|
46
|
+
*/
|
47
|
+
/**
|
48
|
+
* @openapi
|
60
49
|
* /api/v1/dsync/groups/{groupId}:
|
61
50
|
* get:
|
62
|
-
* summary: Get group by id from a directory
|
63
|
-
* parameters:
|
64
|
-
* - $ref: '#/parameters/tenant'
|
65
|
-
* - $ref: '#/parameters/product'
|
66
|
-
* - $ref: '#/parameters/directoryId'
|
67
|
-
* - $ref: '#/parameters/groupId'
|
68
51
|
* tags:
|
69
52
|
* - Directory Sync
|
70
|
-
*
|
71
|
-
*
|
53
|
+
* summary: Get group by id from a directory
|
54
|
+
* parameters:
|
55
|
+
* - name: tenant
|
56
|
+
* in: query
|
57
|
+
* description: Tenant (Optional if directoryId is provided)
|
58
|
+
* schema:
|
59
|
+
* type: string
|
60
|
+
* - name: product
|
61
|
+
* in: query
|
62
|
+
* description: Product (Optional if directoryId is provided)
|
63
|
+
* schema:
|
64
|
+
* type: string
|
65
|
+
* - name: directoryId
|
66
|
+
* in: query
|
67
|
+
* description: Directory ID (Optional if tenant/product is provided)
|
68
|
+
* schema:
|
69
|
+
* type: string
|
70
|
+
* - name: groupId
|
71
|
+
* in: path
|
72
|
+
* description: Group ID
|
73
|
+
* required: true
|
74
|
+
* schema:
|
75
|
+
* type: string
|
72
76
|
* responses:
|
73
77
|
* 200:
|
74
78
|
* description: Success
|
75
|
-
*
|
76
|
-
*
|
79
|
+
* content:
|
80
|
+
* application/json:
|
81
|
+
* schema:
|
82
|
+
* $ref: "#/components/schemas/Group"
|
77
83
|
*/
|
78
84
|
get(id: string): Promise<Response<Group>>;
|
79
85
|
update(id: string, param: {
|
@@ -86,21 +92,19 @@ export declare class Groups extends Base {
|
|
86
92
|
isUserInGroup(groupId: string, userId: string): Promise<boolean>;
|
87
93
|
search(displayName: string, directoryId: string): Promise<Response<Group[]>>;
|
88
94
|
/**
|
89
|
-
* @
|
95
|
+
* @openapi
|
90
96
|
* /api/v1/dsync/groups:
|
91
97
|
* get:
|
92
|
-
* summary: Get groups from a directory
|
93
|
-
* parameters:
|
94
|
-
* - $ref: '#/parameters/tenant'
|
95
|
-
* - $ref: '#/parameters/product'
|
96
|
-
* - $ref: '#/parameters/directoryId'
|
97
|
-
* - $ref: '#/parameters/pageOffset'
|
98
|
-
* - $ref: '#/parameters/pageLimit'
|
99
|
-
* - $ref: '#/parameters/pageToken'
|
100
98
|
* tags:
|
101
99
|
* - Directory Sync
|
102
|
-
*
|
103
|
-
*
|
100
|
+
* summary: Get groups from a directory
|
101
|
+
* parameters:
|
102
|
+
* - $ref: '#/components/parameters/tenant'
|
103
|
+
* - $ref: '#/components/parameters/product'
|
104
|
+
* - $ref: '#/components/parameters/directoryId'
|
105
|
+
* - $ref: '#/components/parameters/pageOffset'
|
106
|
+
* - $ref: '#/components/parameters/pageLimit'
|
107
|
+
* - $ref: '#/components/parameters/pageToken'
|
104
108
|
* responses:
|
105
109
|
* 200:
|
106
110
|
* description: Success
|
@@ -112,7 +116,7 @@ export declare class Groups extends Base {
|
|
112
116
|
* data:
|
113
117
|
* type: array
|
114
118
|
* items:
|
115
|
-
* $ref: '#/
|
119
|
+
* $ref: '#/components/schemas/Group'
|
116
120
|
* pageToken:
|
117
121
|
* type: string
|
118
122
|
* description: token for pagination
|
@@ -121,29 +125,20 @@ export declare class Groups extends Base {
|
|
121
125
|
directoryId?: string;
|
122
126
|
}): Promise<Response<Group[]>>;
|
123
127
|
/**
|
124
|
-
* @
|
125
|
-
* definitions:
|
126
|
-
* Member:
|
127
|
-
* type: object
|
128
|
-
* properties:
|
129
|
-
* user_id:
|
130
|
-
* type: string
|
131
|
-
* description: ID of the user
|
128
|
+
* @openapi
|
132
129
|
* /api/v1/dsync/groups/{groupId}/members:
|
133
130
|
* get:
|
134
|
-
* summary: Get list of members in a group
|
135
|
-
* parameters:
|
136
|
-
* - $ref: '#/parameters/tenant'
|
137
|
-
* - $ref: '#/parameters/product'
|
138
|
-
* - $ref: '#/parameters/groupId'
|
139
|
-
* - $ref: '#/parameters/directoryId'
|
140
|
-
* - $ref: '#/parameters/pageOffset'
|
141
|
-
* - $ref: '#/parameters/pageLimit'
|
142
|
-
* - $ref: '#/parameters/pageToken'
|
143
131
|
* tags:
|
144
132
|
* - Directory Sync
|
145
|
-
*
|
146
|
-
*
|
133
|
+
* summary: Get list of members in a group
|
134
|
+
* parameters:
|
135
|
+
* - $ref: '#/components/parameters/tenant'
|
136
|
+
* - $ref: '#/components/parameters/product'
|
137
|
+
* - $ref: '#/components/parameters/groupId'
|
138
|
+
* - $ref: '#/components/parameters/directoryId'
|
139
|
+
* - $ref: '#/components/parameters/pageOffset'
|
140
|
+
* - $ref: '#/components/parameters/pageLimit'
|
141
|
+
* - $ref: '#/components/parameters/pageToken'
|
147
142
|
* responses:
|
148
143
|
* 200:
|
149
144
|
* description: Success
|
@@ -155,7 +150,7 @@ export declare class Groups extends Base {
|
|
155
150
|
* data:
|
156
151
|
* type: array
|
157
152
|
* items:
|
158
|
-
* $ref: '#/
|
153
|
+
* $ref: '#/components/schemas/Member'
|
159
154
|
*/
|
160
155
|
getGroupMembers(parmas: {
|
161
156
|
groupId: string;
|
@@ -48,50 +48,6 @@ const dbutils = __importStar(require("../../db/utils"));
|
|
48
48
|
const error_1 = require("../../controller/error");
|
49
49
|
const Base_1 = require("./Base");
|
50
50
|
const utils_1 = require("./utils");
|
51
|
-
/**
|
52
|
-
* @swagger
|
53
|
-
* parameters:
|
54
|
-
* groupId:
|
55
|
-
* name: groupId
|
56
|
-
* description: Group ID
|
57
|
-
* in: path
|
58
|
-
* required: true
|
59
|
-
* type: string
|
60
|
-
* tenant:
|
61
|
-
* name: tenant
|
62
|
-
* description: Tenant (Optional if directoryId is provided)
|
63
|
-
* in: query
|
64
|
-
* required: false
|
65
|
-
* type: string
|
66
|
-
* product:
|
67
|
-
* name: product
|
68
|
-
* in: query
|
69
|
-
* description: Product (Optional if directoryId is provided)
|
70
|
-
* required: false
|
71
|
-
* type: string
|
72
|
-
* directoryId:
|
73
|
-
* name: directoryId
|
74
|
-
* description: Directory ID (Optional if tenant/product is provided)
|
75
|
-
* in: query
|
76
|
-
* required: false
|
77
|
-
* type: string
|
78
|
-
*/
|
79
|
-
/**
|
80
|
-
* @swagger
|
81
|
-
* definitions:
|
82
|
-
* Group:
|
83
|
-
* type: object
|
84
|
-
* properties:
|
85
|
-
* id:
|
86
|
-
* type: string
|
87
|
-
* description: Group ID
|
88
|
-
* name:
|
89
|
-
* type: string
|
90
|
-
* description: Group name
|
91
|
-
* raw:
|
92
|
-
* type: object
|
93
|
-
* description: Raw group attributes from the Identity Provider
|
94
|
-
*/
|
95
51
|
class Groups extends Base_1.Base {
|
96
52
|
constructor({ db }) {
|
97
53
|
super({ db });
|
@@ -123,24 +79,74 @@ class Groups extends Base_1.Base {
|
|
123
79
|
});
|
124
80
|
}
|
125
81
|
/**
|
126
|
-
* @
|
82
|
+
* @openapi
|
83
|
+
* components:
|
84
|
+
* schemas:
|
85
|
+
* Group:
|
86
|
+
* type: object
|
87
|
+
* properties:
|
88
|
+
* id:
|
89
|
+
* type: string
|
90
|
+
* description: Group ID
|
91
|
+
* name:
|
92
|
+
* type: string
|
93
|
+
* description: Group name
|
94
|
+
* raw:
|
95
|
+
* type: object
|
96
|
+
* properties: {}
|
97
|
+
* description: Raw group attributes from the Identity Provider
|
98
|
+
* Member:
|
99
|
+
* type: object
|
100
|
+
* properties:
|
101
|
+
* user_id:
|
102
|
+
* type: string
|
103
|
+
* description: ID of the user
|
104
|
+
* parameters:
|
105
|
+
* groupId:
|
106
|
+
* name: groupId
|
107
|
+
* in: path
|
108
|
+
* description: Group ID
|
109
|
+
* required: true
|
110
|
+
* schema:
|
111
|
+
* type: string
|
112
|
+
*
|
113
|
+
*/
|
114
|
+
/**
|
115
|
+
* @openapi
|
127
116
|
* /api/v1/dsync/groups/{groupId}:
|
128
117
|
* get:
|
129
|
-
* summary: Get group by id from a directory
|
130
|
-
* parameters:
|
131
|
-
* - $ref: '#/parameters/tenant'
|
132
|
-
* - $ref: '#/parameters/product'
|
133
|
-
* - $ref: '#/parameters/directoryId'
|
134
|
-
* - $ref: '#/parameters/groupId'
|
135
118
|
* tags:
|
136
119
|
* - Directory Sync
|
137
|
-
*
|
138
|
-
*
|
120
|
+
* summary: Get group by id from a directory
|
121
|
+
* parameters:
|
122
|
+
* - name: tenant
|
123
|
+
* in: query
|
124
|
+
* description: Tenant (Optional if directoryId is provided)
|
125
|
+
* schema:
|
126
|
+
* type: string
|
127
|
+
* - name: product
|
128
|
+
* in: query
|
129
|
+
* description: Product (Optional if directoryId is provided)
|
130
|
+
* schema:
|
131
|
+
* type: string
|
132
|
+
* - name: directoryId
|
133
|
+
* in: query
|
134
|
+
* description: Directory ID (Optional if tenant/product is provided)
|
135
|
+
* schema:
|
136
|
+
* type: string
|
137
|
+
* - name: groupId
|
138
|
+
* in: path
|
139
|
+
* description: Group ID
|
140
|
+
* required: true
|
141
|
+
* schema:
|
142
|
+
* type: string
|
139
143
|
* responses:
|
140
144
|
* 200:
|
141
145
|
* description: Success
|
142
|
-
*
|
143
|
-
*
|
146
|
+
* content:
|
147
|
+
* application/json:
|
148
|
+
* schema:
|
149
|
+
* $ref: "#/components/schemas/Group"
|
144
150
|
*/
|
145
151
|
get(id) {
|
146
152
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -235,21 +241,19 @@ class Groups extends Base_1.Base {
|
|
235
241
|
});
|
236
242
|
}
|
237
243
|
/**
|
238
|
-
* @
|
244
|
+
* @openapi
|
239
245
|
* /api/v1/dsync/groups:
|
240
246
|
* get:
|
241
|
-
* summary: Get groups from a directory
|
242
|
-
* parameters:
|
243
|
-
* - $ref: '#/parameters/tenant'
|
244
|
-
* - $ref: '#/parameters/product'
|
245
|
-
* - $ref: '#/parameters/directoryId'
|
246
|
-
* - $ref: '#/parameters/pageOffset'
|
247
|
-
* - $ref: '#/parameters/pageLimit'
|
248
|
-
* - $ref: '#/parameters/pageToken'
|
249
247
|
* tags:
|
250
248
|
* - Directory Sync
|
251
|
-
*
|
252
|
-
*
|
249
|
+
* summary: Get groups from a directory
|
250
|
+
* parameters:
|
251
|
+
* - $ref: '#/components/parameters/tenant'
|
252
|
+
* - $ref: '#/components/parameters/product'
|
253
|
+
* - $ref: '#/components/parameters/directoryId'
|
254
|
+
* - $ref: '#/components/parameters/pageOffset'
|
255
|
+
* - $ref: '#/components/parameters/pageLimit'
|
256
|
+
* - $ref: '#/components/parameters/pageToken'
|
253
257
|
* responses:
|
254
258
|
* 200:
|
255
259
|
* description: Success
|
@@ -261,7 +265,7 @@ class Groups extends Base_1.Base {
|
|
261
265
|
* data:
|
262
266
|
* type: array
|
263
267
|
* items:
|
264
|
-
* $ref: '#/
|
268
|
+
* $ref: '#/components/schemas/Group'
|
265
269
|
* pageToken:
|
266
270
|
* type: string
|
267
271
|
* description: token for pagination
|
@@ -290,29 +294,20 @@ class Groups extends Base_1.Base {
|
|
290
294
|
});
|
291
295
|
}
|
292
296
|
/**
|
293
|
-
* @
|
294
|
-
* definitions:
|
295
|
-
* Member:
|
296
|
-
* type: object
|
297
|
-
* properties:
|
298
|
-
* user_id:
|
299
|
-
* type: string
|
300
|
-
* description: ID of the user
|
297
|
+
* @openapi
|
301
298
|
* /api/v1/dsync/groups/{groupId}/members:
|
302
299
|
* get:
|
303
|
-
* summary: Get list of members in a group
|
304
|
-
* parameters:
|
305
|
-
* - $ref: '#/parameters/tenant'
|
306
|
-
* - $ref: '#/parameters/product'
|
307
|
-
* - $ref: '#/parameters/groupId'
|
308
|
-
* - $ref: '#/parameters/directoryId'
|
309
|
-
* - $ref: '#/parameters/pageOffset'
|
310
|
-
* - $ref: '#/parameters/pageLimit'
|
311
|
-
* - $ref: '#/parameters/pageToken'
|
312
300
|
* tags:
|
313
301
|
* - Directory Sync
|
314
|
-
*
|
315
|
-
*
|
302
|
+
* summary: Get list of members in a group
|
303
|
+
* parameters:
|
304
|
+
* - $ref: '#/components/parameters/tenant'
|
305
|
+
* - $ref: '#/components/parameters/product'
|
306
|
+
* - $ref: '#/components/parameters/groupId'
|
307
|
+
* - $ref: '#/components/parameters/directoryId'
|
308
|
+
* - $ref: '#/components/parameters/pageOffset'
|
309
|
+
* - $ref: '#/components/parameters/pageLimit'
|
310
|
+
* - $ref: '#/components/parameters/pageToken'
|
316
311
|
* responses:
|
317
312
|
* 200:
|
318
313
|
* description: Success
|
@@ -324,7 +319,7 @@ class Groups extends Base_1.Base {
|
|
324
319
|
* data:
|
325
320
|
* type: array
|
326
321
|
* items:
|
327
|
-
* $ref: '#/
|
322
|
+
* $ref: '#/components/schemas/Member'
|
328
323
|
*/
|
329
324
|
getGroupMembers(parmas) {
|
330
325
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Groups.js","sourceRoot":"","sources":["../../../src/directory-sync/scim/Groups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoC;AAUpC,wDAA0C;AAC1C,kDAAgE;AAChE,iCAA8B;AAC9B,mCAAqC;AASrC
|
1
|
+
{"version":3,"file":"Groups.js","sourceRoot":"","sources":["../../../src/directory-sync/scim/Groups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoC;AAUpC,wDAA0C;AAC1C,kDAAgE;AAChE,iCAA8B;AAC9B,mCAAqC;AASrC,MAAa,MAAO,SAAQ,WAAI;IAC9B,YAAY,EAAE,EAAE,EAAyB;QACvC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAChB,CAAC;IAED,qBAAqB;IACR,MAAM,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gBAE5C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;oBACvB,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;gBACjC,CAAC;YACH,CAAC;QACH,CAAC;KAAA;IAED,gCAAgC;IACnB,cAAc,CAAC,OAAe;;YACzC,OAAO,IAAI,EAAE,CAAC;gBACZ,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,UAAU,CAC9D;oBACE,IAAI,EAAE,kBAAU,CAAC,OAAO;oBACxB,KAAK,EAAE,OAAO;iBACf,EACD,CAAC,EACD,IAAI,CAAC,mBAAmB,CACzB,CAAC;gBAEF,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACrC,MAAM;gBACR,CAAC;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;YAC7E,CAAC;QACH,CAAC;KAAA;CACF;AAnXD,wBAmXC"}
|
@@ -1,30 +1,5 @@
|
|
1
1
|
import type { User, DatabaseStore, PaginationParams, Response } from '../../typings';
|
2
2
|
import { Base } from './Base';
|
3
|
-
/**
|
4
|
-
* @swagger
|
5
|
-
* definitions:
|
6
|
-
* User:
|
7
|
-
* type: object
|
8
|
-
* properties:
|
9
|
-
* id:
|
10
|
-
* type: string
|
11
|
-
* description: User ID
|
12
|
-
* first_name:
|
13
|
-
* type: string
|
14
|
-
* description: First name
|
15
|
-
* last_name:
|
16
|
-
* type: string
|
17
|
-
* description: Last name
|
18
|
-
* email:
|
19
|
-
* type: string
|
20
|
-
* description: Email address
|
21
|
-
* active:
|
22
|
-
* type: boolean
|
23
|
-
* description: Indicates whether the user is active or not
|
24
|
-
* raw:
|
25
|
-
* type: object
|
26
|
-
* description: Raw user attributes from the Identity Provider
|
27
|
-
*/
|
28
3
|
export declare class Users extends Base {
|
29
4
|
constructor({ db }: {
|
30
5
|
db: DatabaseStore;
|
@@ -33,49 +8,88 @@ export declare class Users extends Base {
|
|
33
8
|
directoryId: string;
|
34
9
|
}): Promise<Response<User>>;
|
35
10
|
/**
|
36
|
-
* @
|
11
|
+
* @openapi
|
12
|
+
* components:
|
13
|
+
* schemas:
|
14
|
+
* User:
|
15
|
+
* type: object
|
16
|
+
* properties:
|
17
|
+
* id:
|
18
|
+
* type: string
|
19
|
+
* description: User ID
|
20
|
+
* first_name:
|
21
|
+
* type: string
|
22
|
+
* description: First name
|
23
|
+
* last_name:
|
24
|
+
* type: string
|
25
|
+
* description: Last name
|
26
|
+
* email:
|
27
|
+
* type: string
|
28
|
+
* description: Email address
|
29
|
+
* active:
|
30
|
+
* type: boolean
|
31
|
+
* description: Indicates whether the user is active or not
|
32
|
+
* raw:
|
33
|
+
* type: object
|
34
|
+
* properties: {}
|
35
|
+
* description: Raw user attributes from the Identity Provider
|
36
|
+
*
|
37
|
+
*/
|
38
|
+
/**
|
39
|
+
* @openapi
|
37
40
|
* /api/v1/dsync/users/{userId}:
|
38
41
|
* get:
|
42
|
+
* tags:
|
43
|
+
* - Directory Sync
|
39
44
|
* summary: Get user by id from a directory
|
40
45
|
* parameters:
|
41
|
-
* -
|
42
|
-
*
|
43
|
-
*
|
46
|
+
* - name: tenant
|
47
|
+
* in: query
|
48
|
+
* description: Tenant (Optional if directoryId is provided)
|
49
|
+
* schema:
|
50
|
+
* type: string
|
51
|
+
* - name: product
|
52
|
+
* in: query
|
53
|
+
* description: Product (Optional if directoryId is provided)
|
54
|
+
* schema:
|
55
|
+
* type: string
|
56
|
+
* - name: directoryId
|
57
|
+
* in: query
|
58
|
+
* description: Directory ID (Optional if tenant/product is provided)
|
59
|
+
* schema:
|
60
|
+
* type: string
|
44
61
|
* - name: userId
|
45
|
-
* description: User ID
|
46
62
|
* in: path
|
63
|
+
* description: User ID
|
47
64
|
* required: true
|
48
|
-
*
|
49
|
-
*
|
50
|
-
* - Directory Sync
|
51
|
-
* produces:
|
52
|
-
* - application/json
|
65
|
+
* schema:
|
66
|
+
* type: string
|
53
67
|
* responses:
|
54
68
|
* 200:
|
55
69
|
* description: Success
|
56
|
-
*
|
57
|
-
*
|
70
|
+
* content:
|
71
|
+
* application/json:
|
72
|
+
* schema:
|
73
|
+
* $ref: "#/components/schemas/User"
|
58
74
|
*/
|
59
75
|
get(id: string): Promise<Response<User>>;
|
60
76
|
update(id: string, user: User): Promise<Response<User>>;
|
61
77
|
delete(id: string): Promise<Response<null>>;
|
62
78
|
search(userName: string, directoryId: string): Promise<Response<User[]>>;
|
63
79
|
/**
|
64
|
-
* @
|
80
|
+
* @openapi
|
65
81
|
* /api/v1/dsync/users:
|
66
82
|
* get:
|
67
|
-
* summary: Get users from a directory
|
68
|
-
* parameters:
|
69
|
-
* - $ref: '#/parameters/tenant'
|
70
|
-
* - $ref: '#/parameters/product'
|
71
|
-
* - $ref: '#/parameters/directoryId'
|
72
|
-
* - $ref: '#/parameters/pageOffset'
|
73
|
-
* - $ref: '#/parameters/pageLimit'
|
74
|
-
* - $ref: '#/parameters/pageToken'
|
75
83
|
* tags:
|
76
84
|
* - Directory Sync
|
77
|
-
*
|
78
|
-
*
|
85
|
+
* summary: Get users from a directory
|
86
|
+
* parameters:
|
87
|
+
* - $ref: '#/components/parameters/tenant'
|
88
|
+
* - $ref: '#/components/parameters/product'
|
89
|
+
* - $ref: '#/components/parameters/directoryId'
|
90
|
+
* - $ref: '#/components/parameters/pageOffset'
|
91
|
+
* - $ref: '#/components/parameters/pageLimit'
|
92
|
+
* - $ref: '#/components/parameters/pageToken'
|
79
93
|
* responses:
|
80
94
|
* 200:
|
81
95
|
* description: Success
|
@@ -87,7 +101,7 @@ export declare class Users extends Base {
|
|
87
101
|
* data:
|
88
102
|
* type: array
|
89
103
|
* items:
|
90
|
-
* $ref: '#/
|
104
|
+
* $ref: '#/components/schemas/User'
|
91
105
|
* pageToken:
|
92
106
|
* type: string
|
93
107
|
* description: token for pagination
|