@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
@@ -38,7 +38,7 @@ class GoogleProvider {
|
|
38
38
|
return [];
|
39
39
|
}
|
40
40
|
return directories.filter((directory) => {
|
41
|
-
return
|
41
|
+
return directory.google_access_token && directory.google_refresh_token;
|
42
42
|
});
|
43
43
|
});
|
44
44
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/directory-sync/non-scim/google/api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA0C;AAC1C,6DAAmD;AAiBnD,MAAa,cAAc;IAMzB,YAAY,EAAE,WAAW,EAAE,IAAI,EAAwB;QAHvD,oCAA+B,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3C,mCAA8B,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,oBAAoB,CAAC,CAAC;QAG/E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,kBAAkB,CAAC,SAAoB;;QACrC,MAAM,cAAc,GAAG,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,KAAK,0CAAE,SAAS,0CAAE,MAAM,CAAC;QAE1D,MAAM,UAAU,GAAG,IAAI,kCAAY,CACjC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ,EACxB,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,EAC5B,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,EAAE,CAC1D,CAAC;QAEF,UAAU,CAAC,cAAc,CAAC;YACxB,YAAY,EAAE,SAAS,CAAC,mBAAmB;YAC3C,aAAa,EAAE,SAAS,CAAC,oBAAoB;SAC9C,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;IAEK,cAAc;;YAClB,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;gBAC5D,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;YAE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AExB,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;CACF;AA7JD,wCA6JC"}
|
@@ -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;
|
@@ -165,160 +184,175 @@ export declare class DirectoryConfig {
|
|
165
184
|
webhook_url?: string;
|
166
185
|
webhook_secret?: string;
|
167
186
|
type?: DirectoryType;
|
168
|
-
google_domain?: string;
|
169
187
|
google_access_token?: string;
|
170
188
|
google_refresh_token?: string;
|
171
189
|
}): Promise<Response<Directory>>;
|
172
190
|
/**
|
173
|
-
* @
|
191
|
+
* @openapi
|
174
192
|
* /api/v1/dsync/{directoryId}:
|
175
193
|
* get:
|
194
|
+
* tags:
|
195
|
+
* - Directory Sync
|
176
196
|
* summary: Get a directory connection by id
|
177
197
|
* parameters:
|
178
198
|
* - name: directoryId
|
179
|
-
* description: Directory ID
|
180
199
|
* in: path
|
200
|
+
* description: Directory ID
|
181
201
|
* required: true
|
182
|
-
*
|
183
|
-
*
|
184
|
-
* - Directory Sync
|
185
|
-
* produces:
|
186
|
-
* - application/json
|
202
|
+
* schema:
|
203
|
+
* type: string
|
187
204
|
* responses:
|
188
|
-
*
|
205
|
+
* 200:
|
189
206
|
* description: Success
|
190
|
-
*
|
191
|
-
*
|
207
|
+
* content:
|
208
|
+
* application/json:
|
209
|
+
* schema:
|
210
|
+
* $ref: "#/components/schemas/Directory"
|
192
211
|
*/
|
193
212
|
get(id: string): Promise<Response<Directory>>;
|
194
213
|
/**
|
195
|
-
* @
|
214
|
+
* @openapi
|
196
215
|
* /api/v1/dsync/{directoryId}:
|
197
216
|
* patch:
|
217
|
+
* tags:
|
218
|
+
* - Directory Sync
|
198
219
|
* summary: Update a directory connection
|
199
220
|
* parameters:
|
200
221
|
* - name: directoryId
|
201
|
-
* description: Directory ID
|
202
222
|
* in: path
|
223
|
+
* description: Directory ID
|
203
224
|
* 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
|
-
*
|
225
|
+
* schema:
|
226
|
+
* type: string
|
227
|
+
* requestBody:
|
228
|
+
* content:
|
229
|
+
* application/x-www-form-urlencoded:
|
230
|
+
* schema:
|
231
|
+
* type: object
|
232
|
+
* properties:
|
233
|
+
* name:
|
234
|
+
* type: string
|
235
|
+
* description: Name
|
236
|
+
* webhook_url:
|
237
|
+
* type: string
|
238
|
+
* description: Webhook URL
|
239
|
+
* webhook_secret:
|
240
|
+
* type: string
|
241
|
+
* description: Webhook secret
|
242
|
+
* log_webhook_events:
|
243
|
+
* type: string
|
244
|
+
* description: If true, webhook requests will be logged
|
245
|
+
* deactivated:
|
246
|
+
* type: string
|
247
|
+
* description: If true, the directory connection will be deactivated
|
248
|
+
* google_access_token:
|
249
|
+
* type: string
|
250
|
+
* description: Google access token
|
251
|
+
* google_refresh_token:
|
252
|
+
* type: string
|
253
|
+
* description: Google refresh token
|
254
|
+
* application/json:
|
255
|
+
* schema:
|
256
|
+
* type: object
|
257
|
+
* properties:
|
258
|
+
* name:
|
259
|
+
* type: string
|
260
|
+
* description: Name
|
261
|
+
* webhook_url:
|
262
|
+
* type: string
|
263
|
+
* description: Webhook URL
|
264
|
+
* webhook_secret:
|
265
|
+
* type: string
|
266
|
+
* description: Webhook secret
|
267
|
+
* log_webhook_events:
|
268
|
+
* type: string
|
269
|
+
* description: If true, webhook requests will be logged
|
270
|
+
* deactivated:
|
271
|
+
* type: string
|
272
|
+
* description: If true, the directory connection will be deactivated
|
273
|
+
* google_access_token:
|
274
|
+
* type: string
|
275
|
+
* description: Google access token
|
276
|
+
* google_refresh_token:
|
277
|
+
* type: string
|
278
|
+
* description: Google refresh token
|
251
279
|
* responses:
|
252
|
-
*
|
253
|
-
*
|
254
|
-
*
|
255
|
-
*
|
280
|
+
* 200:
|
281
|
+
* description: Success
|
282
|
+
* content:
|
283
|
+
* application/json:
|
284
|
+
* schema:
|
285
|
+
* $ref: "#/components/schemas/Directory"
|
256
286
|
*/
|
257
287
|
update(id: string, param: Omit<Partial<Directory>, 'id' | 'tenant' | 'prodct' | 'scim' | 'type'> & {
|
258
288
|
webhook_url?: string;
|
259
289
|
webhook_secret?: string;
|
260
290
|
}): Promise<Response<Directory>>;
|
261
291
|
/**
|
262
|
-
* @
|
292
|
+
* @openapi
|
263
293
|
* /api/v1/dsync:
|
264
294
|
* get:
|
295
|
+
* tags:
|
296
|
+
* - Directory Sync
|
265
297
|
* summary: Get a directory connection by tenant and product
|
266
298
|
* parameters:
|
267
|
-
* -
|
268
|
-
*
|
269
|
-
*
|
270
|
-
*
|
271
|
-
*
|
272
|
-
*
|
273
|
-
*
|
274
|
-
*
|
299
|
+
* - name: tenant
|
300
|
+
* in: query
|
301
|
+
* description: Tenant (Optional if directoryId is provided)
|
302
|
+
* schema:
|
303
|
+
* type: string
|
304
|
+
* - name: product
|
305
|
+
* in: query
|
306
|
+
* description: Product (Optional if directoryId is provided)
|
307
|
+
* schema:
|
308
|
+
* type: string
|
275
309
|
* responses:
|
276
|
-
*
|
277
|
-
*
|
278
|
-
*
|
279
|
-
*
|
280
|
-
*
|
281
|
-
*
|
310
|
+
* 200:
|
311
|
+
* description: Success
|
312
|
+
* content:
|
313
|
+
* application/json:
|
314
|
+
* schema:
|
315
|
+
* type: array
|
316
|
+
* items:
|
317
|
+
* $ref: "#/components/schemas/Directory"
|
282
318
|
*/
|
283
319
|
getByTenantAndProduct(tenant: string, product: string): Promise<Response<Directory[]>>;
|
284
320
|
getAll(params?: PaginationParams): Promise<Response<Directory[]> & {
|
285
321
|
pageToken?: string;
|
286
322
|
}>;
|
287
323
|
/**
|
288
|
-
* @
|
324
|
+
* @openapi
|
289
325
|
* /api/v1/dsync/{directoryId}:
|
290
326
|
* delete:
|
327
|
+
* tags:
|
328
|
+
* - Directory Sync
|
291
329
|
* summary: Delete a directory connection by id
|
292
330
|
* parameters:
|
293
331
|
* - name: directoryId
|
294
|
-
* description: Directory ID
|
295
332
|
* in: path
|
333
|
+
* description: Directory ID
|
296
334
|
* required: true
|
297
|
-
*
|
298
|
-
*
|
299
|
-
* - Directory Sync
|
300
|
-
* produces:
|
301
|
-
* - application/json
|
335
|
+
* schema:
|
336
|
+
* type: string
|
302
337
|
* responses:
|
303
|
-
*
|
338
|
+
* 200:
|
304
339
|
* description: Success
|
340
|
+
* content: {}
|
305
341
|
*/
|
306
342
|
delete(id: string): Promise<Response<null>>;
|
307
343
|
private transform;
|
308
344
|
/**
|
309
|
-
* @
|
345
|
+
* @openapi
|
310
346
|
* /api/v1/dsync/product:
|
311
347
|
* 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
348
|
* tags:
|
319
349
|
* - Directory Sync
|
320
|
-
*
|
321
|
-
*
|
350
|
+
* summary: Get directory connections by product
|
351
|
+
* parameters:
|
352
|
+
* - $ref: '#/components/parameters/product'
|
353
|
+
* - $ref: '#/components/parameters/pageOffset'
|
354
|
+
* - $ref: '#/components/parameters/pageLimit'
|
355
|
+
* - $ref: '#/components/parameters/pageToken'
|
322
356
|
* responses:
|
323
357
|
* '200':
|
324
358
|
* description: Success
|
@@ -330,7 +364,7 @@ export declare class DirectoryConfig {
|
|
330
364
|
* data:
|
331
365
|
* type: array
|
332
366
|
* items:
|
333
|
-
* $ref: '#/
|
367
|
+
* $ref: '#/components/schemas/Directory'
|
334
368
|
* pageToken:
|
335
369
|
* type: string
|
336
370
|
* description: token for pagination
|