@goauthentik/api 2024.6.3-1723032607 → 2024.6.3-1723053526

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.
Files changed (122) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +171 -1
  3. package/dist/apis/PropertymappingsApi.js +542 -0
  4. package/dist/apis/RbacApi.d.ts +8 -0
  5. package/dist/apis/RbacApi.js +8 -0
  6. package/dist/apis/SourcesApi.d.ts +162 -1
  7. package/dist/apis/SourcesApi.js +493 -1
  8. package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
  9. package/dist/esm/apis/PropertymappingsApi.js +543 -1
  10. package/dist/esm/apis/RbacApi.d.ts +8 -0
  11. package/dist/esm/apis/RbacApi.js +8 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +162 -1
  13. package/dist/esm/apis/SourcesApi.js +493 -1
  14. package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
  15. package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
  16. package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
  17. package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
  18. package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
  19. package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
  20. package/dist/esm/models/ModelEnum.d.ts +4 -0
  21. package/dist/esm/models/ModelEnum.js +4 -0
  22. package/dist/esm/models/OAuthSource.d.ts +7 -0
  23. package/dist/esm/models/OAuthSource.js +3 -0
  24. package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
  25. package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
  26. package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  27. package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
  28. package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
  29. package/dist/esm/models/OAuthSourceRequest.js +3 -0
  30. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  31. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
  32. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
  34. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
  36. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
  38. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  39. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
  40. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
  41. package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
  42. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  43. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
  44. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +13 -0
  45. package/dist/esm/models/PatchedSAMLSourceRequest.js +5 -0
  46. package/dist/esm/models/SAMLSource.d.ts +13 -0
  47. package/dist/esm/models/SAMLSource.js +5 -0
  48. package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
  49. package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
  50. package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  51. package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
  52. package/dist/esm/models/SAMLSourceRequest.d.ts +13 -0
  53. package/dist/esm/models/SAMLSourceRequest.js +5 -0
  54. package/dist/esm/models/index.d.ts +13 -0
  55. package/dist/esm/models/index.js +13 -0
  56. package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
  57. package/dist/models/GroupMatchingModeEnum.js +38 -0
  58. package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
  59. package/dist/models/GroupOAuthSourceConnection.js +57 -0
  60. package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
  61. package/dist/models/GroupSAMLSourceConnection.js +57 -0
  62. package/dist/models/ModelEnum.d.ts +4 -0
  63. package/dist/models/ModelEnum.js +4 -0
  64. package/dist/models/OAuthSource.d.ts +7 -0
  65. package/dist/models/OAuthSource.js +3 -0
  66. package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
  67. package/dist/models/OAuthSourcePropertyMapping.js +66 -0
  68. package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  69. package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
  70. package/dist/models/OAuthSourceRequest.d.ts +7 -0
  71. package/dist/models/OAuthSourceRequest.js +3 -0
  72. package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  73. package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
  74. package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  75. package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
  76. package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  77. package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
  78. package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  79. package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
  80. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  81. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
  82. package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
  83. package/dist/models/PatchedOAuthSourceRequest.js +3 -0
  84. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  85. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
  86. package/dist/models/PatchedSAMLSourceRequest.d.ts +13 -0
  87. package/dist/models/PatchedSAMLSourceRequest.js +5 -0
  88. package/dist/models/SAMLSource.d.ts +13 -0
  89. package/dist/models/SAMLSource.js +5 -0
  90. package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
  91. package/dist/models/SAMLSourcePropertyMapping.js +66 -0
  92. package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  93. package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
  94. package/dist/models/SAMLSourceRequest.d.ts +13 -0
  95. package/dist/models/SAMLSourceRequest.js +5 -0
  96. package/dist/models/index.d.ts +13 -0
  97. package/dist/models/index.js +13 -0
  98. package/package.json +1 -1
  99. package/src/apis/PropertymappingsApi.ts +700 -0
  100. package/src/apis/RbacApi.ts +8 -0
  101. package/src/apis/SourcesApi.ts +613 -0
  102. package/src/models/GroupMatchingModeEnum.ts +40 -0
  103. package/src/models/GroupOAuthSourceConnection.ts +104 -0
  104. package/src/models/GroupSAMLSourceConnection.ts +104 -0
  105. package/src/models/ModelEnum.ts +4 -0
  106. package/src/models/OAuthSource.ts +14 -0
  107. package/src/models/OAuthSourcePropertyMapping.ts +123 -0
  108. package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
  109. package/src/models/OAuthSourceRequest.ts +14 -0
  110. package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
  111. package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
  112. package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
  113. package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
  114. package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
  115. package/src/models/PatchedOAuthSourceRequest.ts +14 -0
  116. package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
  117. package/src/models/PatchedSAMLSourceRequest.ts +22 -0
  118. package/src/models/SAMLSource.ts +22 -0
  119. package/src/models/SAMLSourcePropertyMapping.ts +123 -0
  120. package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
  121. package/src/models/SAMLSourceRequest.ts +22 -0
  122. package/src/models/index.ts +13 -0
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSCIMSourceGroupListFromJSON, PaginatedSCIMSourceListFromJSON, PaginatedSCIMSourceUserListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedSCIMSourceGroupRequestToJSON, PatchedSCIMSourceRequestToJSON, PatchedSCIMSourceUserRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SCIMSourceFromJSON, SCIMSourceGroupFromJSON, SCIMSourceGroupRequestToJSON, SCIMSourceRequestToJSON, SCIMSourceUserFromJSON, SCIMSourceUserRequestToJSON, SourceFromJSON, SourceTypeFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
24
+ import { FilePathRequestToJSON, GroupOAuthSourceConnectionFromJSON, GroupSAMLSourceConnectionFromJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedGroupOAuthSourceConnectionListFromJSON, PaginatedGroupSAMLSourceConnectionListFromJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSCIMSourceGroupListFromJSON, PaginatedSCIMSourceListFromJSON, PaginatedSCIMSourceUserListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedSCIMSourceGroupRequestToJSON, PatchedSCIMSourceRequestToJSON, PatchedSCIMSourceUserRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SCIMSourceFromJSON, SCIMSourceGroupFromJSON, SCIMSourceGroupRequestToJSON, SCIMSourceRequestToJSON, SCIMSourceUserFromJSON, SCIMSourceUserRequestToJSON, SourceFromJSON, SourceTypeFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -342,6 +342,486 @@ export class SourcesApi extends runtime.BaseAPI {
342
342
  return yield response.value();
343
343
  });
344
344
  }
345
+ /**
346
+ * Group-source connection Viewset
347
+ */
348
+ sourcesGroupConnectionsOauthCreateRaw(initOverrides) {
349
+ return __awaiter(this, void 0, void 0, function* () {
350
+ const queryParameters = {};
351
+ const headerParameters = {};
352
+ if (this.configuration && this.configuration.accessToken) {
353
+ const token = this.configuration.accessToken;
354
+ const tokenString = yield token("authentik", []);
355
+ if (tokenString) {
356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
357
+ }
358
+ }
359
+ const response = yield this.request({
360
+ path: `/sources/group_connections/oauth/`,
361
+ method: 'POST',
362
+ headers: headerParameters,
363
+ query: queryParameters,
364
+ }, initOverrides);
365
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
366
+ });
367
+ }
368
+ /**
369
+ * Group-source connection Viewset
370
+ */
371
+ sourcesGroupConnectionsOauthCreate(initOverrides) {
372
+ return __awaiter(this, void 0, void 0, function* () {
373
+ const response = yield this.sourcesGroupConnectionsOauthCreateRaw(initOverrides);
374
+ return yield response.value();
375
+ });
376
+ }
377
+ /**
378
+ * Group-source connection Viewset
379
+ */
380
+ sourcesGroupConnectionsOauthDestroyRaw(requestParameters, initOverrides) {
381
+ return __awaiter(this, void 0, void 0, function* () {
382
+ if (requestParameters.id === null || requestParameters.id === undefined) {
383
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthDestroy.');
384
+ }
385
+ const queryParameters = {};
386
+ const headerParameters = {};
387
+ if (this.configuration && this.configuration.accessToken) {
388
+ const token = this.configuration.accessToken;
389
+ const tokenString = yield token("authentik", []);
390
+ if (tokenString) {
391
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
392
+ }
393
+ }
394
+ const response = yield this.request({
395
+ path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
396
+ method: 'DELETE',
397
+ headers: headerParameters,
398
+ query: queryParameters,
399
+ }, initOverrides);
400
+ return new runtime.VoidApiResponse(response);
401
+ });
402
+ }
403
+ /**
404
+ * Group-source connection Viewset
405
+ */
406
+ sourcesGroupConnectionsOauthDestroy(requestParameters, initOverrides) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ yield this.sourcesGroupConnectionsOauthDestroyRaw(requestParameters, initOverrides);
409
+ });
410
+ }
411
+ /**
412
+ * Group-source connection Viewset
413
+ */
414
+ sourcesGroupConnectionsOauthListRaw(requestParameters, initOverrides) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ const queryParameters = {};
417
+ if (requestParameters.group !== undefined) {
418
+ queryParameters['group'] = requestParameters.group;
419
+ }
420
+ if (requestParameters.ordering !== undefined) {
421
+ queryParameters['ordering'] = requestParameters.ordering;
422
+ }
423
+ if (requestParameters.page !== undefined) {
424
+ queryParameters['page'] = requestParameters.page;
425
+ }
426
+ if (requestParameters.pageSize !== undefined) {
427
+ queryParameters['page_size'] = requestParameters.pageSize;
428
+ }
429
+ if (requestParameters.search !== undefined) {
430
+ queryParameters['search'] = requestParameters.search;
431
+ }
432
+ if (requestParameters.sourceSlug !== undefined) {
433
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
434
+ }
435
+ const headerParameters = {};
436
+ if (this.configuration && this.configuration.accessToken) {
437
+ const token = this.configuration.accessToken;
438
+ const tokenString = yield token("authentik", []);
439
+ if (tokenString) {
440
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
441
+ }
442
+ }
443
+ const response = yield this.request({
444
+ path: `/sources/group_connections/oauth/`,
445
+ method: 'GET',
446
+ headers: headerParameters,
447
+ query: queryParameters,
448
+ }, initOverrides);
449
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupOAuthSourceConnectionListFromJSON(jsonValue));
450
+ });
451
+ }
452
+ /**
453
+ * Group-source connection Viewset
454
+ */
455
+ sourcesGroupConnectionsOauthList(requestParameters = {}, initOverrides) {
456
+ return __awaiter(this, void 0, void 0, function* () {
457
+ const response = yield this.sourcesGroupConnectionsOauthListRaw(requestParameters, initOverrides);
458
+ return yield response.value();
459
+ });
460
+ }
461
+ /**
462
+ * Group-source connection Viewset
463
+ */
464
+ sourcesGroupConnectionsOauthPartialUpdateRaw(requestParameters, initOverrides) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ if (requestParameters.id === null || requestParameters.id === undefined) {
467
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthPartialUpdate.');
468
+ }
469
+ const queryParameters = {};
470
+ const headerParameters = {};
471
+ if (this.configuration && this.configuration.accessToken) {
472
+ const token = this.configuration.accessToken;
473
+ const tokenString = yield token("authentik", []);
474
+ if (tokenString) {
475
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
476
+ }
477
+ }
478
+ const response = yield this.request({
479
+ path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
480
+ method: 'PATCH',
481
+ headers: headerParameters,
482
+ query: queryParameters,
483
+ }, initOverrides);
484
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
485
+ });
486
+ }
487
+ /**
488
+ * Group-source connection Viewset
489
+ */
490
+ sourcesGroupConnectionsOauthPartialUpdate(requestParameters, initOverrides) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const response = yield this.sourcesGroupConnectionsOauthPartialUpdateRaw(requestParameters, initOverrides);
493
+ return yield response.value();
494
+ });
495
+ }
496
+ /**
497
+ * Group-source connection Viewset
498
+ */
499
+ sourcesGroupConnectionsOauthRetrieveRaw(requestParameters, initOverrides) {
500
+ return __awaiter(this, void 0, void 0, function* () {
501
+ if (requestParameters.id === null || requestParameters.id === undefined) {
502
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthRetrieve.');
503
+ }
504
+ const queryParameters = {};
505
+ const headerParameters = {};
506
+ if (this.configuration && this.configuration.accessToken) {
507
+ const token = this.configuration.accessToken;
508
+ const tokenString = yield token("authentik", []);
509
+ if (tokenString) {
510
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
511
+ }
512
+ }
513
+ const response = yield this.request({
514
+ path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
515
+ method: 'GET',
516
+ headers: headerParameters,
517
+ query: queryParameters,
518
+ }, initOverrides);
519
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
520
+ });
521
+ }
522
+ /**
523
+ * Group-source connection Viewset
524
+ */
525
+ sourcesGroupConnectionsOauthRetrieve(requestParameters, initOverrides) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ const response = yield this.sourcesGroupConnectionsOauthRetrieveRaw(requestParameters, initOverrides);
528
+ return yield response.value();
529
+ });
530
+ }
531
+ /**
532
+ * Group-source connection Viewset
533
+ */
534
+ sourcesGroupConnectionsOauthUpdateRaw(requestParameters, initOverrides) {
535
+ return __awaiter(this, void 0, void 0, function* () {
536
+ if (requestParameters.id === null || requestParameters.id === undefined) {
537
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthUpdate.');
538
+ }
539
+ const queryParameters = {};
540
+ const headerParameters = {};
541
+ if (this.configuration && this.configuration.accessToken) {
542
+ const token = this.configuration.accessToken;
543
+ const tokenString = yield token("authentik", []);
544
+ if (tokenString) {
545
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
546
+ }
547
+ }
548
+ const response = yield this.request({
549
+ path: `/sources/group_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
550
+ method: 'PUT',
551
+ headers: headerParameters,
552
+ query: queryParameters,
553
+ }, initOverrides);
554
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupOAuthSourceConnectionFromJSON(jsonValue));
555
+ });
556
+ }
557
+ /**
558
+ * Group-source connection Viewset
559
+ */
560
+ sourcesGroupConnectionsOauthUpdate(requestParameters, initOverrides) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const response = yield this.sourcesGroupConnectionsOauthUpdateRaw(requestParameters, initOverrides);
563
+ return yield response.value();
564
+ });
565
+ }
566
+ /**
567
+ * Get a list of all objects that use this object
568
+ */
569
+ sourcesGroupConnectionsOauthUsedByListRaw(requestParameters, initOverrides) {
570
+ return __awaiter(this, void 0, void 0, function* () {
571
+ if (requestParameters.id === null || requestParameters.id === undefined) {
572
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthUsedByList.');
573
+ }
574
+ const queryParameters = {};
575
+ const headerParameters = {};
576
+ if (this.configuration && this.configuration.accessToken) {
577
+ const token = this.configuration.accessToken;
578
+ const tokenString = yield token("authentik", []);
579
+ if (tokenString) {
580
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
581
+ }
582
+ }
583
+ const response = yield this.request({
584
+ path: `/sources/group_connections/oauth/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
585
+ method: 'GET',
586
+ headers: headerParameters,
587
+ query: queryParameters,
588
+ }, initOverrides);
589
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
590
+ });
591
+ }
592
+ /**
593
+ * Get a list of all objects that use this object
594
+ */
595
+ sourcesGroupConnectionsOauthUsedByList(requestParameters, initOverrides) {
596
+ return __awaiter(this, void 0, void 0, function* () {
597
+ const response = yield this.sourcesGroupConnectionsOauthUsedByListRaw(requestParameters, initOverrides);
598
+ return yield response.value();
599
+ });
600
+ }
601
+ /**
602
+ * Group-source connection Viewset
603
+ */
604
+ sourcesGroupConnectionsSamlDestroyRaw(requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function* () {
606
+ if (requestParameters.id === null || requestParameters.id === undefined) {
607
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlDestroy.');
608
+ }
609
+ const queryParameters = {};
610
+ const headerParameters = {};
611
+ if (this.configuration && this.configuration.accessToken) {
612
+ const token = this.configuration.accessToken;
613
+ const tokenString = yield token("authentik", []);
614
+ if (tokenString) {
615
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
616
+ }
617
+ }
618
+ const response = yield this.request({
619
+ path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
620
+ method: 'DELETE',
621
+ headers: headerParameters,
622
+ query: queryParameters,
623
+ }, initOverrides);
624
+ return new runtime.VoidApiResponse(response);
625
+ });
626
+ }
627
+ /**
628
+ * Group-source connection Viewset
629
+ */
630
+ sourcesGroupConnectionsSamlDestroy(requestParameters, initOverrides) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ yield this.sourcesGroupConnectionsSamlDestroyRaw(requestParameters, initOverrides);
633
+ });
634
+ }
635
+ /**
636
+ * Group-source connection Viewset
637
+ */
638
+ sourcesGroupConnectionsSamlListRaw(requestParameters, initOverrides) {
639
+ return __awaiter(this, void 0, void 0, function* () {
640
+ const queryParameters = {};
641
+ if (requestParameters.group !== undefined) {
642
+ queryParameters['group'] = requestParameters.group;
643
+ }
644
+ if (requestParameters.ordering !== undefined) {
645
+ queryParameters['ordering'] = requestParameters.ordering;
646
+ }
647
+ if (requestParameters.page !== undefined) {
648
+ queryParameters['page'] = requestParameters.page;
649
+ }
650
+ if (requestParameters.pageSize !== undefined) {
651
+ queryParameters['page_size'] = requestParameters.pageSize;
652
+ }
653
+ if (requestParameters.search !== undefined) {
654
+ queryParameters['search'] = requestParameters.search;
655
+ }
656
+ if (requestParameters.sourceSlug !== undefined) {
657
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
658
+ }
659
+ const headerParameters = {};
660
+ if (this.configuration && this.configuration.accessToken) {
661
+ const token = this.configuration.accessToken;
662
+ const tokenString = yield token("authentik", []);
663
+ if (tokenString) {
664
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
665
+ }
666
+ }
667
+ const response = yield this.request({
668
+ path: `/sources/group_connections/saml/`,
669
+ method: 'GET',
670
+ headers: headerParameters,
671
+ query: queryParameters,
672
+ }, initOverrides);
673
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupSAMLSourceConnectionListFromJSON(jsonValue));
674
+ });
675
+ }
676
+ /**
677
+ * Group-source connection Viewset
678
+ */
679
+ sourcesGroupConnectionsSamlList(requestParameters = {}, initOverrides) {
680
+ return __awaiter(this, void 0, void 0, function* () {
681
+ const response = yield this.sourcesGroupConnectionsSamlListRaw(requestParameters, initOverrides);
682
+ return yield response.value();
683
+ });
684
+ }
685
+ /**
686
+ * Group-source connection Viewset
687
+ */
688
+ sourcesGroupConnectionsSamlPartialUpdateRaw(requestParameters, initOverrides) {
689
+ return __awaiter(this, void 0, void 0, function* () {
690
+ if (requestParameters.id === null || requestParameters.id === undefined) {
691
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlPartialUpdate.');
692
+ }
693
+ const queryParameters = {};
694
+ const headerParameters = {};
695
+ if (this.configuration && this.configuration.accessToken) {
696
+ const token = this.configuration.accessToken;
697
+ const tokenString = yield token("authentik", []);
698
+ if (tokenString) {
699
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
700
+ }
701
+ }
702
+ const response = yield this.request({
703
+ path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
704
+ method: 'PATCH',
705
+ headers: headerParameters,
706
+ query: queryParameters,
707
+ }, initOverrides);
708
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
709
+ });
710
+ }
711
+ /**
712
+ * Group-source connection Viewset
713
+ */
714
+ sourcesGroupConnectionsSamlPartialUpdate(requestParameters, initOverrides) {
715
+ return __awaiter(this, void 0, void 0, function* () {
716
+ const response = yield this.sourcesGroupConnectionsSamlPartialUpdateRaw(requestParameters, initOverrides);
717
+ return yield response.value();
718
+ });
719
+ }
720
+ /**
721
+ * Group-source connection Viewset
722
+ */
723
+ sourcesGroupConnectionsSamlRetrieveRaw(requestParameters, initOverrides) {
724
+ return __awaiter(this, void 0, void 0, function* () {
725
+ if (requestParameters.id === null || requestParameters.id === undefined) {
726
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlRetrieve.');
727
+ }
728
+ const queryParameters = {};
729
+ const headerParameters = {};
730
+ if (this.configuration && this.configuration.accessToken) {
731
+ const token = this.configuration.accessToken;
732
+ const tokenString = yield token("authentik", []);
733
+ if (tokenString) {
734
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
735
+ }
736
+ }
737
+ const response = yield this.request({
738
+ path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
739
+ method: 'GET',
740
+ headers: headerParameters,
741
+ query: queryParameters,
742
+ }, initOverrides);
743
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
744
+ });
745
+ }
746
+ /**
747
+ * Group-source connection Viewset
748
+ */
749
+ sourcesGroupConnectionsSamlRetrieve(requestParameters, initOverrides) {
750
+ return __awaiter(this, void 0, void 0, function* () {
751
+ const response = yield this.sourcesGroupConnectionsSamlRetrieveRaw(requestParameters, initOverrides);
752
+ return yield response.value();
753
+ });
754
+ }
755
+ /**
756
+ * Group-source connection Viewset
757
+ */
758
+ sourcesGroupConnectionsSamlUpdateRaw(requestParameters, initOverrides) {
759
+ return __awaiter(this, void 0, void 0, function* () {
760
+ if (requestParameters.id === null || requestParameters.id === undefined) {
761
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlUpdate.');
762
+ }
763
+ const queryParameters = {};
764
+ const headerParameters = {};
765
+ if (this.configuration && this.configuration.accessToken) {
766
+ const token = this.configuration.accessToken;
767
+ const tokenString = yield token("authentik", []);
768
+ if (tokenString) {
769
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
770
+ }
771
+ }
772
+ const response = yield this.request({
773
+ path: `/sources/group_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
774
+ method: 'PUT',
775
+ headers: headerParameters,
776
+ query: queryParameters,
777
+ }, initOverrides);
778
+ return new runtime.JSONApiResponse(response, (jsonValue) => GroupSAMLSourceConnectionFromJSON(jsonValue));
779
+ });
780
+ }
781
+ /**
782
+ * Group-source connection Viewset
783
+ */
784
+ sourcesGroupConnectionsSamlUpdate(requestParameters, initOverrides) {
785
+ return __awaiter(this, void 0, void 0, function* () {
786
+ const response = yield this.sourcesGroupConnectionsSamlUpdateRaw(requestParameters, initOverrides);
787
+ return yield response.value();
788
+ });
789
+ }
790
+ /**
791
+ * Get a list of all objects that use this object
792
+ */
793
+ sourcesGroupConnectionsSamlUsedByListRaw(requestParameters, initOverrides) {
794
+ return __awaiter(this, void 0, void 0, function* () {
795
+ if (requestParameters.id === null || requestParameters.id === undefined) {
796
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlUsedByList.');
797
+ }
798
+ const queryParameters = {};
799
+ const headerParameters = {};
800
+ if (this.configuration && this.configuration.accessToken) {
801
+ const token = this.configuration.accessToken;
802
+ const tokenString = yield token("authentik", []);
803
+ if (tokenString) {
804
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
805
+ }
806
+ }
807
+ const response = yield this.request({
808
+ path: `/sources/group_connections/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
809
+ method: 'GET',
810
+ headers: headerParameters,
811
+ query: queryParameters,
812
+ }, initOverrides);
813
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
814
+ });
815
+ }
816
+ /**
817
+ * Get a list of all objects that use this object
818
+ */
819
+ sourcesGroupConnectionsSamlUsedByList(requestParameters, initOverrides) {
820
+ return __awaiter(this, void 0, void 0, function* () {
821
+ const response = yield this.sourcesGroupConnectionsSamlUsedByListRaw(requestParameters, initOverrides);
822
+ return yield response.value();
823
+ });
824
+ }
345
825
  /**
346
826
  * LDAP Source Viewset
347
827
  */
@@ -841,6 +1321,9 @@ export class SourcesApi extends runtime.BaseAPI {
841
1321
  if (requestParameters.enrollmentFlow !== undefined) {
842
1322
  queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
843
1323
  }
1324
+ if (requestParameters.groupMatchingMode !== undefined) {
1325
+ queryParameters['group_matching_mode'] = requestParameters.groupMatchingMode;
1326
+ }
844
1327
  if (requestParameters.hasJwks !== undefined) {
845
1328
  queryParameters['has_jwks'] = requestParameters.hasJwks;
846
1329
  }
@@ -3649,6 +4132,15 @@ export class SourcesApi extends runtime.BaseAPI {
3649
4132
  });
3650
4133
  }
3651
4134
  }
4135
+ /**
4136
+ * @export
4137
+ */
4138
+ export const SourcesOauthListGroupMatchingModeEnum = {
4139
+ Identifier: 'identifier',
4140
+ NameDeny: 'name_deny',
4141
+ NameLink: 'name_link',
4142
+ UnknownDefaultOpenApi: '11184809'
4143
+ };
3652
4144
  /**
3653
4145
  * @export
3654
4146
  */
@@ -0,0 +1,25 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const GroupMatchingModeEnum: {
17
+ readonly Identifier: "identifier";
18
+ readonly NameLink: "name_link";
19
+ readonly NameDeny: "name_deny";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type GroupMatchingModeEnum = typeof GroupMatchingModeEnum[keyof typeof GroupMatchingModeEnum];
23
+ export declare function GroupMatchingModeEnumFromJSON(json: any): GroupMatchingModeEnum;
24
+ export declare function GroupMatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupMatchingModeEnum;
25
+ export declare function GroupMatchingModeEnumToJSON(value?: GroupMatchingModeEnum | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const GroupMatchingModeEnum = {
19
+ Identifier: 'identifier',
20
+ NameLink: 'name_link',
21
+ NameDeny: 'name_deny',
22
+ UnknownDefaultOpenApi: '11184809'
23
+ };
24
+ export function GroupMatchingModeEnumFromJSON(json) {
25
+ return GroupMatchingModeEnumFromJSONTyped(json, false);
26
+ }
27
+ export function GroupMatchingModeEnumFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function GroupMatchingModeEnumToJSON(value) {
31
+ return value;
32
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Source } from './Source';
13
+ /**
14
+ * OAuth Group-Source connection Serializer
15
+ * @export
16
+ * @interface GroupOAuthSourceConnection
17
+ */
18
+ export interface GroupOAuthSourceConnection {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GroupOAuthSourceConnection
23
+ */
24
+ readonly pk: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GroupOAuthSourceConnection
29
+ */
30
+ readonly group: string;
31
+ /**
32
+ *
33
+ * @type {Source}
34
+ * @memberof GroupOAuthSourceConnection
35
+ */
36
+ readonly source: Source;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GroupOAuthSourceConnection
41
+ */
42
+ readonly identifier: string;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof GroupOAuthSourceConnection
47
+ */
48
+ readonly created: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GroupOAuthSourceConnection interface.
52
+ */
53
+ export declare function instanceOfGroupOAuthSourceConnection(value: object): boolean;
54
+ export declare function GroupOAuthSourceConnectionFromJSON(json: any): GroupOAuthSourceConnection;
55
+ export declare function GroupOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupOAuthSourceConnection;
56
+ export declare function GroupOAuthSourceConnectionToJSON(value?: GroupOAuthSourceConnection | null): any;