@boxyhq/saml-jackson 1.11.1 → 1.11.2
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 +10 -136
- package/dist/controller/api.js +10 -136
- package/dist/controller/api.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/package.json +13 -13
package/dist/controller/api.d.ts
CHANGED
@@ -108,43 +108,11 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
108
108
|
* description: clientSecret of the application set up on the OpenID Provider
|
109
109
|
* in: formData
|
110
110
|
* type: string
|
111
|
-
* /api/v1/
|
112
|
-
* post:
|
113
|
-
* summary: Create SAML config
|
114
|
-
* operationId: create-saml-config
|
115
|
-
* deprecated: true
|
116
|
-
* tags: [SAML Config - Deprecated]
|
117
|
-
* produces:
|
118
|
-
* - application/json
|
119
|
-
* consumes:
|
120
|
-
* - application/x-www-form-urlencoded
|
121
|
-
* - application/json
|
122
|
-
* parameters:
|
123
|
-
* - $ref: '#/parameters/nameParamPost'
|
124
|
-
* - $ref: '#/parameters/descriptionParamPost'
|
125
|
-
* - $ref: '#/parameters/encodedRawMetadataParamPost'
|
126
|
-
* - $ref: '#/parameters/rawMetadataParamPost'
|
127
|
-
* - $ref: '#/parameters/metadataUrlParamPost'
|
128
|
-
* - $ref: '#/parameters/defaultRedirectUrlParamPost'
|
129
|
-
* - $ref: '#/parameters/redirectUrlParamPost'
|
130
|
-
* - $ref: '#/parameters/tenantParamPost'
|
131
|
-
* - $ref: '#/parameters/productParamPost'
|
132
|
-
* responses:
|
133
|
-
* 200:
|
134
|
-
* description: Success
|
135
|
-
* schema:
|
136
|
-
* $ref: '#/definitions/Connection'
|
137
|
-
* 400:
|
138
|
-
* $ref: '#/definitions/validationErrorsPost'
|
139
|
-
* 401:
|
140
|
-
* description: Unauthorized
|
141
|
-
* 500:
|
142
|
-
* description: Please set OpenID response handler path (oidcPath) on Jackson
|
143
|
-
* /api/v1/connections:
|
111
|
+
* /api/v1/sso:
|
144
112
|
* post:
|
145
113
|
* summary: Create SSO connection
|
146
114
|
* operationId: create-sso-connection
|
147
|
-
* tags: [
|
115
|
+
* tags: [Single Sign On]
|
148
116
|
* produces:
|
149
117
|
* - application/json
|
150
118
|
* consumes:
|
@@ -268,40 +236,11 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
268
236
|
* in: formData
|
269
237
|
* required: false
|
270
238
|
* type: boolean
|
271
|
-
* /api/v1/
|
272
|
-
* patch:
|
273
|
-
* summary: Update SAML Config
|
274
|
-
* operationId: update-saml-config
|
275
|
-
* tags: [SAML Config - Deprecated]
|
276
|
-
* deprecated: true
|
277
|
-
* consumes:
|
278
|
-
* - application/json
|
279
|
-
* - application/x-www-form-urlencoded
|
280
|
-
* parameters:
|
281
|
-
* - $ref: '#/parameters/clientIDParamPatch'
|
282
|
-
* - $ref: '#/parameters/clientSecretParamPatch'
|
283
|
-
* - $ref: '#/parameters/nameParamPatch'
|
284
|
-
* - $ref: '#/parameters/descriptionParamPatch'
|
285
|
-
* - $ref: '#/parameters/encodedRawMetadataParamPatch'
|
286
|
-
* - $ref: '#/parameters/rawMetadataParamPatch'
|
287
|
-
* - $ref: '#/parameters/metadataUrlParamPatch'
|
288
|
-
* - $ref: '#/parameters/defaultRedirectUrlParamPatch'
|
289
|
-
* - $ref: '#/parameters/redirectUrlParamPatch'
|
290
|
-
* - $ref: '#/parameters/tenantParamPatch'
|
291
|
-
* - $ref: '#/parameters/productParamPatch'
|
292
|
-
* - $ref: '#/parameters/deactivatedParamPatch'
|
293
|
-
* responses:
|
294
|
-
* 204:
|
295
|
-
* description: Success
|
296
|
-
* 400:
|
297
|
-
* $ref: '#/definitions/validationErrorsPatch'
|
298
|
-
* 401:
|
299
|
-
* description: Unauthorized
|
300
|
-
* /api/v1/connections:
|
239
|
+
* /api/v1/sso:
|
301
240
|
* patch:
|
302
241
|
* summary: Update SSO Connection
|
303
242
|
* operationId: update-sso-connection
|
304
|
-
* tags: [
|
243
|
+
* tags: [Single Sign On]
|
305
244
|
* consumes:
|
306
245
|
* - application/json
|
307
246
|
* - application/x-www-form-urlencoded
|
@@ -407,7 +346,7 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
407
346
|
* description: Please provide `clientID` or `tenant` and `product`.
|
408
347
|
* '401Get':
|
409
348
|
* description: Unauthorized
|
410
|
-
* /api/v1/
|
349
|
+
* /api/v1/sso:
|
411
350
|
* get:
|
412
351
|
* summary: Get SSO Connections
|
413
352
|
* parameters:
|
@@ -416,7 +355,7 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
416
355
|
* - $ref: '#/parameters/clientIDParamGet'
|
417
356
|
* - $ref: '#/parameters/strategyParamGet'
|
418
357
|
* operationId: get-connections
|
419
|
-
* tags: [
|
358
|
+
* tags: [Single Sign On]
|
420
359
|
* responses:
|
421
360
|
* '200':
|
422
361
|
* $ref: '#/responses/200Get'
|
@@ -426,50 +365,6 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
426
365
|
* $ref: '#/responses/401Get'
|
427
366
|
*/
|
428
367
|
getConnections(body: GetConnectionsQuery): Promise<Array<SAMLSSORecord | OIDCSSORecord>>;
|
429
|
-
/**
|
430
|
-
* @swagger
|
431
|
-
* /api/v1/saml/config:
|
432
|
-
* get:
|
433
|
-
* summary: Get SAML Config
|
434
|
-
* operationId: get-saml-config
|
435
|
-
* tags: [SAML Config - Deprecated]
|
436
|
-
* deprecated: true
|
437
|
-
* parameters:
|
438
|
-
* - $ref: '#/parameters/tenantParamGet'
|
439
|
-
* - $ref: '#/parameters/productParamGet'
|
440
|
-
* - $ref: '#/parameters/clientIDParamGet'
|
441
|
-
* responses:
|
442
|
-
* '200':
|
443
|
-
* description: Success
|
444
|
-
* schema:
|
445
|
-
* type: object
|
446
|
-
* example:
|
447
|
-
* {
|
448
|
-
* "idpMetadata": {
|
449
|
-
* "sso": {
|
450
|
-
* "postUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxxx/sso/saml",
|
451
|
-
* "redirectUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxxx/sso/saml"
|
452
|
-
* },
|
453
|
-
* "entityID": "http://www.okta.com/xxxxxxxxxxxxx",
|
454
|
-
* "thumbprint": "Eo+eUi3UM3XIMkFFtdVK3yJ5vO9f7YZdasdasdad",
|
455
|
-
* "loginType": "idp",
|
456
|
-
* "provider": "okta.com"
|
457
|
-
* },
|
458
|
-
* "defaultRedirectUrl": "https://hoppscotch.io/",
|
459
|
-
* "redirectUrl": ["https://hoppscotch.io/"],
|
460
|
-
* "tenant": "hoppscotch.io",
|
461
|
-
* "product": "API Engine",
|
462
|
-
* "name": "Hoppscotch-SP",
|
463
|
-
* "description": "SP for hoppscotch.io",
|
464
|
-
* "clientID": "Xq8AJt3yYAxmXizsCWmUBDRiVP1iTC8Y/otnvFIMitk",
|
465
|
-
* "clientSecret": "00e3e11a3426f97d8000000738300009130cd45419c5943",
|
466
|
-
* "deactivated": false
|
467
|
-
* }
|
468
|
-
* '400':
|
469
|
-
* $ref: '#/responses/400Get'
|
470
|
-
* '401':
|
471
|
-
* $ref: '#/responses/401Get'
|
472
|
-
*/
|
473
368
|
getConfig(body: GetConfigQuery): Promise<SAMLSSORecord | Record<string, never>>;
|
474
369
|
/**
|
475
370
|
* @swagger
|
@@ -499,7 +394,7 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
499
394
|
* in: query
|
500
395
|
* type: string
|
501
396
|
* description: Strategy which can help to filter connections with tenant/product query
|
502
|
-
* /api/v1/
|
397
|
+
* /api/v1/sso:
|
503
398
|
* delete:
|
504
399
|
* parameters:
|
505
400
|
* - $ref: '#/parameters/clientIDDel'
|
@@ -509,28 +404,7 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
509
404
|
* - $ref: '#/parameters/strategyDel'
|
510
405
|
* summary: Delete SSO Connections
|
511
406
|
* operationId: delete-sso-connection
|
512
|
-
* tags: [
|
513
|
-
* responses:
|
514
|
-
* '200':
|
515
|
-
* description: Success
|
516
|
-
* '400':
|
517
|
-
* description: clientSecret mismatch | Please provide `clientID` and `clientSecret` or `tenant` and `product`.
|
518
|
-
* '401':
|
519
|
-
* description: Unauthorized
|
520
|
-
* /api/v1/saml/config:
|
521
|
-
* delete:
|
522
|
-
* summary: Delete SAML Config
|
523
|
-
* operationId: delete-saml-config
|
524
|
-
* tags: [SAML Config - Deprecated]
|
525
|
-
* deprecated: true
|
526
|
-
* consumes:
|
527
|
-
* - application/x-www-form-urlencoded
|
528
|
-
* - application/json
|
529
|
-
* parameters:
|
530
|
-
* - $ref: '#/parameters/clientIDDel'
|
531
|
-
* - $ref: '#/parameters/clientSecretDel'
|
532
|
-
* - $ref: '#/parameters/tenantDel'
|
533
|
-
* - $ref: '#/parameters/productDel'
|
407
|
+
* tags: [Single Sign On]
|
534
408
|
* responses:
|
535
409
|
* '200':
|
536
410
|
* description: Success
|
@@ -595,13 +469,13 @@ export declare class ConnectionAPIController implements IConnectionAPIController
|
|
595
469
|
* description: Please provide a `product`.
|
596
470
|
* '401Get':
|
597
471
|
* description: Unauthorized
|
598
|
-
* /api/v1/
|
472
|
+
* /api/v1/sso/product:
|
599
473
|
* get:
|
600
474
|
* summary: Get SSO Connections by product
|
601
475
|
* parameters:
|
602
476
|
* - $ref: '#/parameters/productParamGet'
|
603
477
|
* operationId: get-connections-by-product
|
604
|
-
* tags: [
|
478
|
+
* tags: [Single Sign On]
|
605
479
|
* responses:
|
606
480
|
* '200':
|
607
481
|
* $ref: '#/responses/200Get'
|
package/dist/controller/api.js
CHANGED
@@ -148,43 +148,11 @@ class ConnectionAPIController {
|
|
148
148
|
* description: clientSecret of the application set up on the OpenID Provider
|
149
149
|
* in: formData
|
150
150
|
* type: string
|
151
|
-
* /api/v1/
|
152
|
-
* post:
|
153
|
-
* summary: Create SAML config
|
154
|
-
* operationId: create-saml-config
|
155
|
-
* deprecated: true
|
156
|
-
* tags: [SAML Config - Deprecated]
|
157
|
-
* produces:
|
158
|
-
* - application/json
|
159
|
-
* consumes:
|
160
|
-
* - application/x-www-form-urlencoded
|
161
|
-
* - application/json
|
162
|
-
* parameters:
|
163
|
-
* - $ref: '#/parameters/nameParamPost'
|
164
|
-
* - $ref: '#/parameters/descriptionParamPost'
|
165
|
-
* - $ref: '#/parameters/encodedRawMetadataParamPost'
|
166
|
-
* - $ref: '#/parameters/rawMetadataParamPost'
|
167
|
-
* - $ref: '#/parameters/metadataUrlParamPost'
|
168
|
-
* - $ref: '#/parameters/defaultRedirectUrlParamPost'
|
169
|
-
* - $ref: '#/parameters/redirectUrlParamPost'
|
170
|
-
* - $ref: '#/parameters/tenantParamPost'
|
171
|
-
* - $ref: '#/parameters/productParamPost'
|
172
|
-
* responses:
|
173
|
-
* 200:
|
174
|
-
* description: Success
|
175
|
-
* schema:
|
176
|
-
* $ref: '#/definitions/Connection'
|
177
|
-
* 400:
|
178
|
-
* $ref: '#/definitions/validationErrorsPost'
|
179
|
-
* 401:
|
180
|
-
* description: Unauthorized
|
181
|
-
* 500:
|
182
|
-
* description: Please set OpenID response handler path (oidcPath) on Jackson
|
183
|
-
* /api/v1/connections:
|
151
|
+
* /api/v1/sso:
|
184
152
|
* post:
|
185
153
|
* summary: Create SSO connection
|
186
154
|
* operationId: create-sso-connection
|
187
|
-
* tags: [
|
155
|
+
* tags: [Single Sign On]
|
188
156
|
* produces:
|
189
157
|
* - application/json
|
190
158
|
* consumes:
|
@@ -330,40 +298,11 @@ class ConnectionAPIController {
|
|
330
298
|
* in: formData
|
331
299
|
* required: false
|
332
300
|
* type: boolean
|
333
|
-
* /api/v1/
|
334
|
-
* patch:
|
335
|
-
* summary: Update SAML Config
|
336
|
-
* operationId: update-saml-config
|
337
|
-
* tags: [SAML Config - Deprecated]
|
338
|
-
* deprecated: true
|
339
|
-
* consumes:
|
340
|
-
* - application/json
|
341
|
-
* - application/x-www-form-urlencoded
|
342
|
-
* parameters:
|
343
|
-
* - $ref: '#/parameters/clientIDParamPatch'
|
344
|
-
* - $ref: '#/parameters/clientSecretParamPatch'
|
345
|
-
* - $ref: '#/parameters/nameParamPatch'
|
346
|
-
* - $ref: '#/parameters/descriptionParamPatch'
|
347
|
-
* - $ref: '#/parameters/encodedRawMetadataParamPatch'
|
348
|
-
* - $ref: '#/parameters/rawMetadataParamPatch'
|
349
|
-
* - $ref: '#/parameters/metadataUrlParamPatch'
|
350
|
-
* - $ref: '#/parameters/defaultRedirectUrlParamPatch'
|
351
|
-
* - $ref: '#/parameters/redirectUrlParamPatch'
|
352
|
-
* - $ref: '#/parameters/tenantParamPatch'
|
353
|
-
* - $ref: '#/parameters/productParamPatch'
|
354
|
-
* - $ref: '#/parameters/deactivatedParamPatch'
|
355
|
-
* responses:
|
356
|
-
* 204:
|
357
|
-
* description: Success
|
358
|
-
* 400:
|
359
|
-
* $ref: '#/definitions/validationErrorsPatch'
|
360
|
-
* 401:
|
361
|
-
* description: Unauthorized
|
362
|
-
* /api/v1/connections:
|
301
|
+
* /api/v1/sso:
|
363
302
|
* patch:
|
364
303
|
* summary: Update SSO Connection
|
365
304
|
* operationId: update-sso-connection
|
366
|
-
* tags: [
|
305
|
+
* tags: [Single Sign On]
|
367
306
|
* consumes:
|
368
307
|
* - application/json
|
369
308
|
* - application/x-www-form-urlencoded
|
@@ -510,7 +449,7 @@ class ConnectionAPIController {
|
|
510
449
|
* description: Please provide `clientID` or `tenant` and `product`.
|
511
450
|
* '401Get':
|
512
451
|
* description: Unauthorized
|
513
|
-
* /api/v1/
|
452
|
+
* /api/v1/sso:
|
514
453
|
* get:
|
515
454
|
* summary: Get SSO Connections
|
516
455
|
* parameters:
|
@@ -519,7 +458,7 @@ class ConnectionAPIController {
|
|
519
458
|
* - $ref: '#/parameters/clientIDParamGet'
|
520
459
|
* - $ref: '#/parameters/strategyParamGet'
|
521
460
|
* operationId: get-connections
|
522
|
-
* tags: [
|
461
|
+
* tags: [Single Sign On]
|
523
462
|
* responses:
|
524
463
|
* '200':
|
525
464
|
* $ref: '#/responses/200Get'
|
@@ -585,50 +524,6 @@ class ConnectionAPIController {
|
|
585
524
|
throw new error_1.JacksonError('Please provide `clientID` or `tenant` and `product`.', 400);
|
586
525
|
});
|
587
526
|
}
|
588
|
-
/**
|
589
|
-
* @swagger
|
590
|
-
* /api/v1/saml/config:
|
591
|
-
* get:
|
592
|
-
* summary: Get SAML Config
|
593
|
-
* operationId: get-saml-config
|
594
|
-
* tags: [SAML Config - Deprecated]
|
595
|
-
* deprecated: true
|
596
|
-
* parameters:
|
597
|
-
* - $ref: '#/parameters/tenantParamGet'
|
598
|
-
* - $ref: '#/parameters/productParamGet'
|
599
|
-
* - $ref: '#/parameters/clientIDParamGet'
|
600
|
-
* responses:
|
601
|
-
* '200':
|
602
|
-
* description: Success
|
603
|
-
* schema:
|
604
|
-
* type: object
|
605
|
-
* example:
|
606
|
-
* {
|
607
|
-
* "idpMetadata": {
|
608
|
-
* "sso": {
|
609
|
-
* "postUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxxx/sso/saml",
|
610
|
-
* "redirectUrl": "https://dev-20901260.okta.com/app/dev-20901260_jacksonnext_1/xxxxxxxxxxxxx/sso/saml"
|
611
|
-
* },
|
612
|
-
* "entityID": "http://www.okta.com/xxxxxxxxxxxxx",
|
613
|
-
* "thumbprint": "Eo+eUi3UM3XIMkFFtdVK3yJ5vO9f7YZdasdasdad",
|
614
|
-
* "loginType": "idp",
|
615
|
-
* "provider": "okta.com"
|
616
|
-
* },
|
617
|
-
* "defaultRedirectUrl": "https://hoppscotch.io/",
|
618
|
-
* "redirectUrl": ["https://hoppscotch.io/"],
|
619
|
-
* "tenant": "hoppscotch.io",
|
620
|
-
* "product": "API Engine",
|
621
|
-
* "name": "Hoppscotch-SP",
|
622
|
-
* "description": "SP for hoppscotch.io",
|
623
|
-
* "clientID": "Xq8AJt3yYAxmXizsCWmUBDRiVP1iTC8Y/otnvFIMitk",
|
624
|
-
* "clientSecret": "00e3e11a3426f97d8000000738300009130cd45419c5943",
|
625
|
-
* "deactivated": false
|
626
|
-
* }
|
627
|
-
* '400':
|
628
|
-
* $ref: '#/responses/400Get'
|
629
|
-
* '401':
|
630
|
-
* $ref: '#/responses/401Get'
|
631
|
-
*/
|
632
527
|
getConfig(body) {
|
633
528
|
return __awaiter(this, void 0, void 0, function* () {
|
634
529
|
const clientID = 'clientID' in body ? body.clientID : undefined;
|
@@ -680,7 +575,7 @@ class ConnectionAPIController {
|
|
680
575
|
* in: query
|
681
576
|
* type: string
|
682
577
|
* description: Strategy which can help to filter connections with tenant/product query
|
683
|
-
* /api/v1/
|
578
|
+
* /api/v1/sso:
|
684
579
|
* delete:
|
685
580
|
* parameters:
|
686
581
|
* - $ref: '#/parameters/clientIDDel'
|
@@ -690,28 +585,7 @@ class ConnectionAPIController {
|
|
690
585
|
* - $ref: '#/parameters/strategyDel'
|
691
586
|
* summary: Delete SSO Connections
|
692
587
|
* operationId: delete-sso-connection
|
693
|
-
* tags: [
|
694
|
-
* responses:
|
695
|
-
* '200':
|
696
|
-
* description: Success
|
697
|
-
* '400':
|
698
|
-
* description: clientSecret mismatch | Please provide `clientID` and `clientSecret` or `tenant` and `product`.
|
699
|
-
* '401':
|
700
|
-
* description: Unauthorized
|
701
|
-
* /api/v1/saml/config:
|
702
|
-
* delete:
|
703
|
-
* summary: Delete SAML Config
|
704
|
-
* operationId: delete-saml-config
|
705
|
-
* tags: [SAML Config - Deprecated]
|
706
|
-
* deprecated: true
|
707
|
-
* consumes:
|
708
|
-
* - application/x-www-form-urlencoded
|
709
|
-
* - application/json
|
710
|
-
* parameters:
|
711
|
-
* - $ref: '#/parameters/clientIDDel'
|
712
|
-
* - $ref: '#/parameters/clientSecretDel'
|
713
|
-
* - $ref: '#/parameters/tenantDel'
|
714
|
-
* - $ref: '#/parameters/productDel'
|
588
|
+
* tags: [Single Sign On]
|
715
589
|
* responses:
|
716
590
|
* '200':
|
717
591
|
* description: Success
|
@@ -834,13 +708,13 @@ class ConnectionAPIController {
|
|
834
708
|
* description: Please provide a `product`.
|
835
709
|
* '401Get':
|
836
710
|
* description: Unauthorized
|
837
|
-
* /api/v1/
|
711
|
+
* /api/v1/sso/product:
|
838
712
|
* get:
|
839
713
|
* summary: Get SSO Connections by product
|
840
714
|
* parameters:
|
841
715
|
* - $ref: '#/parameters/productParamGet'
|
842
716
|
* operationId: get-connections-by-product
|
843
|
-
* tags: [
|
717
|
+
* tags: [Single Sign On]
|
844
718
|
* responses:
|
845
719
|
* '200':
|
846
720
|
* $ref: '#/responses/200Get'
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/controller/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AACvC,kEAAoD;AAmBpD,mCAAuC;AACvC,mCAA2G;AAC3G,6DAA+C;AAC/C,6DAA+C;AAE/C,MAAa,uBAAuB;IAKlC,YAAY,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE;QACpD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,eAAe,GAAG,eAAe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