@goauthentik/api 2024.6.3-1722881330 → 2024.6.3-1723032607
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +8 -0
- package/dist/apis/PoliciesApi.d.ts +92 -1
- package/dist/apis/PoliciesApi.js +297 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/PoliciesApi.d.ts +92 -1
- package/dist/esm/apis/PoliciesApi.js +298 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/CountryCodeEnum.d.ts +271 -0
- package/dist/esm/models/CountryCodeEnum.js +278 -0
- package/dist/esm/models/DetailedCountry.d.ts +38 -0
- package/dist/esm/models/DetailedCountry.js +47 -0
- package/dist/esm/models/DetailedCountryField.d.ts +38 -0
- package/dist/esm/models/DetailedCountryField.js +47 -0
- package/dist/esm/models/DetailedCountryFieldRequest.d.ts +38 -0
- package/dist/esm/models/DetailedCountryFieldRequest.js +47 -0
- package/dist/esm/models/Device.d.ts +18 -0
- package/dist/esm/models/Device.js +6 -0
- package/dist/esm/models/GeoIPPolicy.d.ts +93 -0
- package/dist/esm/models/GeoIPPolicy.js +67 -0
- package/dist/esm/models/GeoIPPolicyRequest.d.ts +50 -0
- package/dist/esm/models/GeoIPPolicyRequest.js +52 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedGeoIPPolicyList.d.ts +39 -0
- package/dist/esm/models/PaginatedGeoIPPolicyList.js +48 -0
- package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +50 -0
- package/dist/esm/models/PatchedGeoIPPolicyRequest.js +50 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/CountryCodeEnum.d.ts +271 -0
- package/dist/models/CountryCodeEnum.js +284 -0
- package/dist/models/DetailedCountry.d.ts +38 -0
- package/dist/models/DetailedCountry.js +54 -0
- package/dist/models/DetailedCountryField.d.ts +38 -0
- package/dist/models/DetailedCountryField.js +54 -0
- package/dist/models/DetailedCountryFieldRequest.d.ts +38 -0
- package/dist/models/DetailedCountryFieldRequest.js +54 -0
- package/dist/models/Device.d.ts +18 -0
- package/dist/models/Device.js +6 -0
- package/dist/models/GeoIPPolicy.d.ts +93 -0
- package/dist/models/GeoIPPolicy.js +74 -0
- package/dist/models/GeoIPPolicyRequest.d.ts +50 -0
- package/dist/models/GeoIPPolicyRequest.js +59 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedGeoIPPolicyList.d.ts +39 -0
- package/dist/models/PaginatedGeoIPPolicyList.js +55 -0
- package/dist/models/PatchedGeoIPPolicyRequest.d.ts +50 -0
- package/dist/models/PatchedGeoIPPolicyRequest.js +57 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/PoliciesApi.ts +377 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/CountryCodeEnum.ts +286 -0
- package/src/models/DetailedCountry.ts +82 -0
- package/src/models/DetailedCountryField.ts +82 -0
- package/src/models/DetailedCountryFieldRequest.ts +82 -0
- package/src/models/Device.ts +24 -0
- package/src/models/GeoIPPolicy.ts +160 -0
- package/src/models/GeoIPPolicyRequest.ts +98 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedGeoIPPolicyList.ts +88 -0
- package/src/models/PatchedGeoIPPolicyRequest.ts +96 -0
- package/src/models/index.ts +8 -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 { CacheFromJSON, DummyPolicyFromJSON, DummyPolicyRequestToJSON, EventMatcherPolicyFromJSON, EventMatcherPolicyRequestToJSON, ExpressionPolicyFromJSON, ExpressionPolicyRequestToJSON, PaginatedDummyPolicyListFromJSON, PaginatedEventMatcherPolicyListFromJSON, PaginatedExpressionPolicyListFromJSON, PaginatedPasswordExpiryPolicyListFromJSON, PaginatedPasswordPolicyListFromJSON, PaginatedPolicyBindingListFromJSON, PaginatedPolicyListFromJSON, PaginatedReputationListFromJSON, PaginatedReputationPolicyListFromJSON, PasswordExpiryPolicyFromJSON, PasswordExpiryPolicyRequestToJSON, PasswordPolicyFromJSON, PasswordPolicyRequestToJSON, PatchedDummyPolicyRequestToJSON, PatchedEventMatcherPolicyRequestToJSON, PatchedExpressionPolicyRequestToJSON, PatchedPasswordExpiryPolicyRequestToJSON, PatchedPasswordPolicyRequestToJSON, PatchedPolicyBindingRequestToJSON, PatchedReputationPolicyRequestToJSON, PolicyFromJSON, PolicyBindingFromJSON, PolicyBindingRequestToJSON, PolicyTestRequestToJSON, PolicyTestResultFromJSON, ReputationFromJSON, ReputationPolicyFromJSON, ReputationPolicyRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
24
|
+
import { CacheFromJSON, DetailedCountryFromJSON, DummyPolicyFromJSON, DummyPolicyRequestToJSON, EventMatcherPolicyFromJSON, EventMatcherPolicyRequestToJSON, ExpressionPolicyFromJSON, ExpressionPolicyRequestToJSON, GeoIPPolicyFromJSON, GeoIPPolicyRequestToJSON, PaginatedDummyPolicyListFromJSON, PaginatedEventMatcherPolicyListFromJSON, PaginatedExpressionPolicyListFromJSON, PaginatedGeoIPPolicyListFromJSON, PaginatedPasswordExpiryPolicyListFromJSON, PaginatedPasswordPolicyListFromJSON, PaginatedPolicyBindingListFromJSON, PaginatedPolicyListFromJSON, PaginatedReputationListFromJSON, PaginatedReputationPolicyListFromJSON, PasswordExpiryPolicyFromJSON, PasswordExpiryPolicyRequestToJSON, PasswordPolicyFromJSON, PasswordPolicyRequestToJSON, PatchedDummyPolicyRequestToJSON, PatchedEventMatcherPolicyRequestToJSON, PatchedExpressionPolicyRequestToJSON, PatchedGeoIPPolicyRequestToJSON, PatchedPasswordExpiryPolicyRequestToJSON, PatchedPasswordPolicyRequestToJSON, PatchedPolicyBindingRequestToJSON, PatchedReputationPolicyRequestToJSON, PolicyFromJSON, PolicyBindingFromJSON, PolicyBindingRequestToJSON, PolicyTestRequestToJSON, PolicyTestResultFromJSON, ReputationFromJSON, ReputationPolicyFromJSON, ReputationPolicyRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
25
25
|
/**
|
26
26
|
*
|
27
27
|
*/
|
@@ -1453,6 +1453,303 @@ export class PoliciesApi extends runtime.BaseAPI {
|
|
1453
1453
|
return yield response.value();
|
1454
1454
|
});
|
1455
1455
|
}
|
1456
|
+
/**
|
1457
|
+
* GeoIP Viewset
|
1458
|
+
*/
|
1459
|
+
policiesGeoipCreateRaw(requestParameters, initOverrides) {
|
1460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1461
|
+
if (requestParameters.geoIPPolicyRequest === null || requestParameters.geoIPPolicyRequest === undefined) {
|
1462
|
+
throw new runtime.RequiredError('geoIPPolicyRequest', 'Required parameter requestParameters.geoIPPolicyRequest was null or undefined when calling policiesGeoipCreate.');
|
1463
|
+
}
|
1464
|
+
const queryParameters = {};
|
1465
|
+
const headerParameters = {};
|
1466
|
+
headerParameters['Content-Type'] = 'application/json';
|
1467
|
+
if (this.configuration && this.configuration.accessToken) {
|
1468
|
+
const token = this.configuration.accessToken;
|
1469
|
+
const tokenString = yield token("authentik", []);
|
1470
|
+
if (tokenString) {
|
1471
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1472
|
+
}
|
1473
|
+
}
|
1474
|
+
const response = yield this.request({
|
1475
|
+
path: `/policies/geoip/`,
|
1476
|
+
method: 'POST',
|
1477
|
+
headers: headerParameters,
|
1478
|
+
query: queryParameters,
|
1479
|
+
body: GeoIPPolicyRequestToJSON(requestParameters.geoIPPolicyRequest),
|
1480
|
+
}, initOverrides);
|
1481
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GeoIPPolicyFromJSON(jsonValue));
|
1482
|
+
});
|
1483
|
+
}
|
1484
|
+
/**
|
1485
|
+
* GeoIP Viewset
|
1486
|
+
*/
|
1487
|
+
policiesGeoipCreate(requestParameters, initOverrides) {
|
1488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1489
|
+
const response = yield this.policiesGeoipCreateRaw(requestParameters, initOverrides);
|
1490
|
+
return yield response.value();
|
1491
|
+
});
|
1492
|
+
}
|
1493
|
+
/**
|
1494
|
+
* GeoIP Viewset
|
1495
|
+
*/
|
1496
|
+
policiesGeoipDestroyRaw(requestParameters, initOverrides) {
|
1497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1498
|
+
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
1499
|
+
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesGeoipDestroy.');
|
1500
|
+
}
|
1501
|
+
const queryParameters = {};
|
1502
|
+
const headerParameters = {};
|
1503
|
+
if (this.configuration && this.configuration.accessToken) {
|
1504
|
+
const token = this.configuration.accessToken;
|
1505
|
+
const tokenString = yield token("authentik", []);
|
1506
|
+
if (tokenString) {
|
1507
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1508
|
+
}
|
1509
|
+
}
|
1510
|
+
const response = yield this.request({
|
1511
|
+
path: `/policies/geoip/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
1512
|
+
method: 'DELETE',
|
1513
|
+
headers: headerParameters,
|
1514
|
+
query: queryParameters,
|
1515
|
+
}, initOverrides);
|
1516
|
+
return new runtime.VoidApiResponse(response);
|
1517
|
+
});
|
1518
|
+
}
|
1519
|
+
/**
|
1520
|
+
* GeoIP Viewset
|
1521
|
+
*/
|
1522
|
+
policiesGeoipDestroy(requestParameters, initOverrides) {
|
1523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1524
|
+
yield this.policiesGeoipDestroyRaw(requestParameters, initOverrides);
|
1525
|
+
});
|
1526
|
+
}
|
1527
|
+
/**
|
1528
|
+
* Get all countries in ISO-3166-1
|
1529
|
+
*/
|
1530
|
+
policiesGeoipIso3166ListRaw(initOverrides) {
|
1531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1532
|
+
const queryParameters = {};
|
1533
|
+
const headerParameters = {};
|
1534
|
+
if (this.configuration && this.configuration.accessToken) {
|
1535
|
+
const token = this.configuration.accessToken;
|
1536
|
+
const tokenString = yield token("authentik", []);
|
1537
|
+
if (tokenString) {
|
1538
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1539
|
+
}
|
1540
|
+
}
|
1541
|
+
const response = yield this.request({
|
1542
|
+
path: `/policies/geoip_iso3166/`,
|
1543
|
+
method: 'GET',
|
1544
|
+
headers: headerParameters,
|
1545
|
+
query: queryParameters,
|
1546
|
+
}, initOverrides);
|
1547
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DetailedCountryFromJSON));
|
1548
|
+
});
|
1549
|
+
}
|
1550
|
+
/**
|
1551
|
+
* Get all countries in ISO-3166-1
|
1552
|
+
*/
|
1553
|
+
policiesGeoipIso3166List(initOverrides) {
|
1554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1555
|
+
const response = yield this.policiesGeoipIso3166ListRaw(initOverrides);
|
1556
|
+
return yield response.value();
|
1557
|
+
});
|
1558
|
+
}
|
1559
|
+
/**
|
1560
|
+
* GeoIP Viewset
|
1561
|
+
*/
|
1562
|
+
policiesGeoipListRaw(requestParameters, initOverrides) {
|
1563
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1564
|
+
const queryParameters = {};
|
1565
|
+
if (requestParameters.name !== undefined) {
|
1566
|
+
queryParameters['name'] = requestParameters.name;
|
1567
|
+
}
|
1568
|
+
if (requestParameters.ordering !== undefined) {
|
1569
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
1570
|
+
}
|
1571
|
+
if (requestParameters.page !== undefined) {
|
1572
|
+
queryParameters['page'] = requestParameters.page;
|
1573
|
+
}
|
1574
|
+
if (requestParameters.pageSize !== undefined) {
|
1575
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
1576
|
+
}
|
1577
|
+
if (requestParameters.search !== undefined) {
|
1578
|
+
queryParameters['search'] = requestParameters.search;
|
1579
|
+
}
|
1580
|
+
const headerParameters = {};
|
1581
|
+
if (this.configuration && this.configuration.accessToken) {
|
1582
|
+
const token = this.configuration.accessToken;
|
1583
|
+
const tokenString = yield token("authentik", []);
|
1584
|
+
if (tokenString) {
|
1585
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1586
|
+
}
|
1587
|
+
}
|
1588
|
+
const response = yield this.request({
|
1589
|
+
path: `/policies/geoip/`,
|
1590
|
+
method: 'GET',
|
1591
|
+
headers: headerParameters,
|
1592
|
+
query: queryParameters,
|
1593
|
+
}, initOverrides);
|
1594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGeoIPPolicyListFromJSON(jsonValue));
|
1595
|
+
});
|
1596
|
+
}
|
1597
|
+
/**
|
1598
|
+
* GeoIP Viewset
|
1599
|
+
*/
|
1600
|
+
policiesGeoipList(requestParameters = {}, initOverrides) {
|
1601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1602
|
+
const response = yield this.policiesGeoipListRaw(requestParameters, initOverrides);
|
1603
|
+
return yield response.value();
|
1604
|
+
});
|
1605
|
+
}
|
1606
|
+
/**
|
1607
|
+
* GeoIP Viewset
|
1608
|
+
*/
|
1609
|
+
policiesGeoipPartialUpdateRaw(requestParameters, initOverrides) {
|
1610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1611
|
+
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
1612
|
+
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesGeoipPartialUpdate.');
|
1613
|
+
}
|
1614
|
+
const queryParameters = {};
|
1615
|
+
const headerParameters = {};
|
1616
|
+
headerParameters['Content-Type'] = 'application/json';
|
1617
|
+
if (this.configuration && this.configuration.accessToken) {
|
1618
|
+
const token = this.configuration.accessToken;
|
1619
|
+
const tokenString = yield token("authentik", []);
|
1620
|
+
if (tokenString) {
|
1621
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1622
|
+
}
|
1623
|
+
}
|
1624
|
+
const response = yield this.request({
|
1625
|
+
path: `/policies/geoip/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
1626
|
+
method: 'PATCH',
|
1627
|
+
headers: headerParameters,
|
1628
|
+
query: queryParameters,
|
1629
|
+
body: PatchedGeoIPPolicyRequestToJSON(requestParameters.patchedGeoIPPolicyRequest),
|
1630
|
+
}, initOverrides);
|
1631
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GeoIPPolicyFromJSON(jsonValue));
|
1632
|
+
});
|
1633
|
+
}
|
1634
|
+
/**
|
1635
|
+
* GeoIP Viewset
|
1636
|
+
*/
|
1637
|
+
policiesGeoipPartialUpdate(requestParameters, initOverrides) {
|
1638
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1639
|
+
const response = yield this.policiesGeoipPartialUpdateRaw(requestParameters, initOverrides);
|
1640
|
+
return yield response.value();
|
1641
|
+
});
|
1642
|
+
}
|
1643
|
+
/**
|
1644
|
+
* GeoIP Viewset
|
1645
|
+
*/
|
1646
|
+
policiesGeoipRetrieveRaw(requestParameters, initOverrides) {
|
1647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1648
|
+
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
1649
|
+
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesGeoipRetrieve.');
|
1650
|
+
}
|
1651
|
+
const queryParameters = {};
|
1652
|
+
const headerParameters = {};
|
1653
|
+
if (this.configuration && this.configuration.accessToken) {
|
1654
|
+
const token = this.configuration.accessToken;
|
1655
|
+
const tokenString = yield token("authentik", []);
|
1656
|
+
if (tokenString) {
|
1657
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1658
|
+
}
|
1659
|
+
}
|
1660
|
+
const response = yield this.request({
|
1661
|
+
path: `/policies/geoip/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
1662
|
+
method: 'GET',
|
1663
|
+
headers: headerParameters,
|
1664
|
+
query: queryParameters,
|
1665
|
+
}, initOverrides);
|
1666
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GeoIPPolicyFromJSON(jsonValue));
|
1667
|
+
});
|
1668
|
+
}
|
1669
|
+
/**
|
1670
|
+
* GeoIP Viewset
|
1671
|
+
*/
|
1672
|
+
policiesGeoipRetrieve(requestParameters, initOverrides) {
|
1673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1674
|
+
const response = yield this.policiesGeoipRetrieveRaw(requestParameters, initOverrides);
|
1675
|
+
return yield response.value();
|
1676
|
+
});
|
1677
|
+
}
|
1678
|
+
/**
|
1679
|
+
* GeoIP Viewset
|
1680
|
+
*/
|
1681
|
+
policiesGeoipUpdateRaw(requestParameters, initOverrides) {
|
1682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1683
|
+
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
1684
|
+
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesGeoipUpdate.');
|
1685
|
+
}
|
1686
|
+
if (requestParameters.geoIPPolicyRequest === null || requestParameters.geoIPPolicyRequest === undefined) {
|
1687
|
+
throw new runtime.RequiredError('geoIPPolicyRequest', 'Required parameter requestParameters.geoIPPolicyRequest was null or undefined when calling policiesGeoipUpdate.');
|
1688
|
+
}
|
1689
|
+
const queryParameters = {};
|
1690
|
+
const headerParameters = {};
|
1691
|
+
headerParameters['Content-Type'] = 'application/json';
|
1692
|
+
if (this.configuration && this.configuration.accessToken) {
|
1693
|
+
const token = this.configuration.accessToken;
|
1694
|
+
const tokenString = yield token("authentik", []);
|
1695
|
+
if (tokenString) {
|
1696
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1697
|
+
}
|
1698
|
+
}
|
1699
|
+
const response = yield this.request({
|
1700
|
+
path: `/policies/geoip/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
1701
|
+
method: 'PUT',
|
1702
|
+
headers: headerParameters,
|
1703
|
+
query: queryParameters,
|
1704
|
+
body: GeoIPPolicyRequestToJSON(requestParameters.geoIPPolicyRequest),
|
1705
|
+
}, initOverrides);
|
1706
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GeoIPPolicyFromJSON(jsonValue));
|
1707
|
+
});
|
1708
|
+
}
|
1709
|
+
/**
|
1710
|
+
* GeoIP Viewset
|
1711
|
+
*/
|
1712
|
+
policiesGeoipUpdate(requestParameters, initOverrides) {
|
1713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1714
|
+
const response = yield this.policiesGeoipUpdateRaw(requestParameters, initOverrides);
|
1715
|
+
return yield response.value();
|
1716
|
+
});
|
1717
|
+
}
|
1718
|
+
/**
|
1719
|
+
* Get a list of all objects that use this object
|
1720
|
+
*/
|
1721
|
+
policiesGeoipUsedByListRaw(requestParameters, initOverrides) {
|
1722
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1723
|
+
if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
|
1724
|
+
throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesGeoipUsedByList.');
|
1725
|
+
}
|
1726
|
+
const queryParameters = {};
|
1727
|
+
const headerParameters = {};
|
1728
|
+
if (this.configuration && this.configuration.accessToken) {
|
1729
|
+
const token = this.configuration.accessToken;
|
1730
|
+
const tokenString = yield token("authentik", []);
|
1731
|
+
if (tokenString) {
|
1732
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1733
|
+
}
|
1734
|
+
}
|
1735
|
+
const response = yield this.request({
|
1736
|
+
path: `/policies/geoip/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
|
1737
|
+
method: 'GET',
|
1738
|
+
headers: headerParameters,
|
1739
|
+
query: queryParameters,
|
1740
|
+
}, initOverrides);
|
1741
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
1742
|
+
});
|
1743
|
+
}
|
1744
|
+
/**
|
1745
|
+
* Get a list of all objects that use this object
|
1746
|
+
*/
|
1747
|
+
policiesGeoipUsedByList(requestParameters, initOverrides) {
|
1748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1749
|
+
const response = yield this.policiesGeoipUsedByListRaw(requestParameters, initOverrides);
|
1750
|
+
return yield response.value();
|
1751
|
+
});
|
1752
|
+
}
|
1456
1753
|
/**
|
1457
1754
|
* Password Policy Viewset
|
1458
1755
|
*/
|
@@ -358,6 +358,7 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
358
358
|
readonly PoliciesEventMatcherEventmatcherpolicy: "authentik_policies_event_matcher.eventmatcherpolicy";
|
359
359
|
readonly PoliciesExpiryPasswordexpirypolicy: "authentik_policies_expiry.passwordexpirypolicy";
|
360
360
|
readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
|
361
|
+
readonly PoliciesGeoipGeoippolicy: "authentik_policies_geoip.geoippolicy";
|
361
362
|
readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
|
362
363
|
readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
|
363
364
|
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
|
@@ -447,6 +448,7 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
447
448
|
readonly PoliciesEventMatcherEventmatcherpolicy: "authentik_policies_event_matcher.eventmatcherpolicy";
|
448
449
|
readonly PoliciesExpiryPasswordexpirypolicy: "authentik_policies_expiry.passwordexpirypolicy";
|
449
450
|
readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
|
451
|
+
readonly PoliciesGeoipGeoippolicy: "authentik_policies_geoip.geoippolicy";
|
450
452
|
readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
|
451
453
|
readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
|
452
454
|
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
|
package/dist/esm/apis/RbacApi.js
CHANGED
@@ -1057,6 +1057,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
1057
1057
|
PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
|
1058
1058
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
1059
1059
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
1060
|
+
PoliciesGeoipGeoippolicy: 'authentik_policies_geoip.geoippolicy',
|
1060
1061
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
1061
1062
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
1062
1063
|
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
@@ -1145,6 +1146,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
1145
1146
|
PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
|
1146
1147
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
1147
1148
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
1149
|
+
PoliciesGeoipGeoippolicy: 'authentik_policies_geoip.geoippolicy',
|
1148
1150
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
1149
1151
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
1150
1152
|
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
@@ -24,6 +24,7 @@ export declare const AppEnum: {
|
|
24
24
|
readonly PoliciesEventMatcher: "authentik.policies.event_matcher";
|
25
25
|
readonly PoliciesExpiry: "authentik.policies.expiry";
|
26
26
|
readonly PoliciesExpression: "authentik.policies.expression";
|
27
|
+
readonly PoliciesGeoip: "authentik.policies.geoip";
|
27
28
|
readonly PoliciesPassword: "authentik.policies.password";
|
28
29
|
readonly PoliciesReputation: "authentik.policies.reputation";
|
29
30
|
readonly Policies: "authentik.policies";
|
@@ -26,6 +26,7 @@ export const AppEnum = {
|
|
26
26
|
PoliciesEventMatcher: 'authentik.policies.event_matcher',
|
27
27
|
PoliciesExpiry: 'authentik.policies.expiry',
|
28
28
|
PoliciesExpression: 'authentik.policies.expression',
|
29
|
+
PoliciesGeoip: 'authentik.policies.geoip',
|
29
30
|
PoliciesPassword: 'authentik.policies.password',
|
30
31
|
PoliciesReputation: 'authentik.policies.reputation',
|
31
32
|
Policies: 'authentik.policies',
|
@@ -0,0 +1,271 @@
|
|
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 CountryCodeEnum: {
|
17
|
+
readonly Af: "AF";
|
18
|
+
readonly Ax: "AX";
|
19
|
+
readonly Al: "AL";
|
20
|
+
readonly Dz: "DZ";
|
21
|
+
readonly As: "AS";
|
22
|
+
readonly Ad: "AD";
|
23
|
+
readonly Ao: "AO";
|
24
|
+
readonly Ai: "AI";
|
25
|
+
readonly Aq: "AQ";
|
26
|
+
readonly Ag: "AG";
|
27
|
+
readonly Ar: "AR";
|
28
|
+
readonly Am: "AM";
|
29
|
+
readonly Aw: "AW";
|
30
|
+
readonly Au: "AU";
|
31
|
+
readonly At: "AT";
|
32
|
+
readonly Az: "AZ";
|
33
|
+
readonly Bs: "BS";
|
34
|
+
readonly Bh: "BH";
|
35
|
+
readonly Bd: "BD";
|
36
|
+
readonly Bb: "BB";
|
37
|
+
readonly By: "BY";
|
38
|
+
readonly Be: "BE";
|
39
|
+
readonly Bz: "BZ";
|
40
|
+
readonly Bj: "BJ";
|
41
|
+
readonly Bm: "BM";
|
42
|
+
readonly Bt: "BT";
|
43
|
+
readonly Bo: "BO";
|
44
|
+
readonly Bq: "BQ";
|
45
|
+
readonly Ba: "BA";
|
46
|
+
readonly Bw: "BW";
|
47
|
+
readonly Bv: "BV";
|
48
|
+
readonly Br: "BR";
|
49
|
+
readonly Io: "IO";
|
50
|
+
readonly Bn: "BN";
|
51
|
+
readonly Bg: "BG";
|
52
|
+
readonly Bf: "BF";
|
53
|
+
readonly Bi: "BI";
|
54
|
+
readonly Cv: "CV";
|
55
|
+
readonly Kh: "KH";
|
56
|
+
readonly Cm: "CM";
|
57
|
+
readonly Ca: "CA";
|
58
|
+
readonly Ky: "KY";
|
59
|
+
readonly Cf: "CF";
|
60
|
+
readonly Td: "TD";
|
61
|
+
readonly Cl: "CL";
|
62
|
+
readonly Cn: "CN";
|
63
|
+
readonly Cx: "CX";
|
64
|
+
readonly Cc: "CC";
|
65
|
+
readonly Co: "CO";
|
66
|
+
readonly Km: "KM";
|
67
|
+
readonly Cg: "CG";
|
68
|
+
readonly Cd: "CD";
|
69
|
+
readonly Ck: "CK";
|
70
|
+
readonly Cr: "CR";
|
71
|
+
readonly Ci: "CI";
|
72
|
+
readonly Hr: "HR";
|
73
|
+
readonly Cu: "CU";
|
74
|
+
readonly Cw: "CW";
|
75
|
+
readonly Cy: "CY";
|
76
|
+
readonly Cz: "CZ";
|
77
|
+
readonly Dk: "DK";
|
78
|
+
readonly Dj: "DJ";
|
79
|
+
readonly Dm: "DM";
|
80
|
+
readonly Do: "DO";
|
81
|
+
readonly Ec: "EC";
|
82
|
+
readonly Eg: "EG";
|
83
|
+
readonly Sv: "SV";
|
84
|
+
readonly Gq: "GQ";
|
85
|
+
readonly Er: "ER";
|
86
|
+
readonly Ee: "EE";
|
87
|
+
readonly Sz: "SZ";
|
88
|
+
readonly Et: "ET";
|
89
|
+
readonly Fk: "FK";
|
90
|
+
readonly Fo: "FO";
|
91
|
+
readonly Fj: "FJ";
|
92
|
+
readonly Fi: "FI";
|
93
|
+
readonly Fr: "FR";
|
94
|
+
readonly Gf: "GF";
|
95
|
+
readonly Pf: "PF";
|
96
|
+
readonly Tf: "TF";
|
97
|
+
readonly Ga: "GA";
|
98
|
+
readonly Gm: "GM";
|
99
|
+
readonly Ge: "GE";
|
100
|
+
readonly De: "DE";
|
101
|
+
readonly Gh: "GH";
|
102
|
+
readonly Gi: "GI";
|
103
|
+
readonly Gr: "GR";
|
104
|
+
readonly Gl: "GL";
|
105
|
+
readonly Gd: "GD";
|
106
|
+
readonly Gp: "GP";
|
107
|
+
readonly Gu: "GU";
|
108
|
+
readonly Gt: "GT";
|
109
|
+
readonly Gg: "GG";
|
110
|
+
readonly Gn: "GN";
|
111
|
+
readonly Gw: "GW";
|
112
|
+
readonly Gy: "GY";
|
113
|
+
readonly Ht: "HT";
|
114
|
+
readonly Hm: "HM";
|
115
|
+
readonly Va: "VA";
|
116
|
+
readonly Hn: "HN";
|
117
|
+
readonly Hk: "HK";
|
118
|
+
readonly Hu: "HU";
|
119
|
+
readonly Is: "IS";
|
120
|
+
readonly In: "IN";
|
121
|
+
readonly Id: "ID";
|
122
|
+
readonly Ir: "IR";
|
123
|
+
readonly Iq: "IQ";
|
124
|
+
readonly Ie: "IE";
|
125
|
+
readonly Im: "IM";
|
126
|
+
readonly Il: "IL";
|
127
|
+
readonly It: "IT";
|
128
|
+
readonly Jm: "JM";
|
129
|
+
readonly Jp: "JP";
|
130
|
+
readonly Je: "JE";
|
131
|
+
readonly Jo: "JO";
|
132
|
+
readonly Kz: "KZ";
|
133
|
+
readonly Ke: "KE";
|
134
|
+
readonly Ki: "KI";
|
135
|
+
readonly Kw: "KW";
|
136
|
+
readonly Kg: "KG";
|
137
|
+
readonly La: "LA";
|
138
|
+
readonly Lv: "LV";
|
139
|
+
readonly Lb: "LB";
|
140
|
+
readonly Ls: "LS";
|
141
|
+
readonly Lr: "LR";
|
142
|
+
readonly Ly: "LY";
|
143
|
+
readonly Li: "LI";
|
144
|
+
readonly Lt: "LT";
|
145
|
+
readonly Lu: "LU";
|
146
|
+
readonly Mo: "MO";
|
147
|
+
readonly Mg: "MG";
|
148
|
+
readonly Mw: "MW";
|
149
|
+
readonly My: "MY";
|
150
|
+
readonly Mv: "MV";
|
151
|
+
readonly Ml: "ML";
|
152
|
+
readonly Mt: "MT";
|
153
|
+
readonly Mh: "MH";
|
154
|
+
readonly Mq: "MQ";
|
155
|
+
readonly Mr: "MR";
|
156
|
+
readonly Mu: "MU";
|
157
|
+
readonly Yt: "YT";
|
158
|
+
readonly Mx: "MX";
|
159
|
+
readonly Fm: "FM";
|
160
|
+
readonly Md: "MD";
|
161
|
+
readonly Mc: "MC";
|
162
|
+
readonly Mn: "MN";
|
163
|
+
readonly Me: "ME";
|
164
|
+
readonly Ms: "MS";
|
165
|
+
readonly Ma: "MA";
|
166
|
+
readonly Mz: "MZ";
|
167
|
+
readonly Mm: "MM";
|
168
|
+
readonly Na: "NA";
|
169
|
+
readonly Nr: "NR";
|
170
|
+
readonly Np: "NP";
|
171
|
+
readonly Nl: "NL";
|
172
|
+
readonly Nc: "NC";
|
173
|
+
readonly Nz: "NZ";
|
174
|
+
readonly Ni: "NI";
|
175
|
+
readonly Ne: "NE";
|
176
|
+
readonly Ng: "NG";
|
177
|
+
readonly Nu: "NU";
|
178
|
+
readonly Nf: "NF";
|
179
|
+
readonly Kp: "KP";
|
180
|
+
readonly Mk: "MK";
|
181
|
+
readonly Mp: "MP";
|
182
|
+
readonly No: "NO";
|
183
|
+
readonly Om: "OM";
|
184
|
+
readonly Pk: "PK";
|
185
|
+
readonly Pw: "PW";
|
186
|
+
readonly Ps: "PS";
|
187
|
+
readonly Pa: "PA";
|
188
|
+
readonly Pg: "PG";
|
189
|
+
readonly Py: "PY";
|
190
|
+
readonly Pe: "PE";
|
191
|
+
readonly Ph: "PH";
|
192
|
+
readonly Pn: "PN";
|
193
|
+
readonly Pl: "PL";
|
194
|
+
readonly Pt: "PT";
|
195
|
+
readonly Pr: "PR";
|
196
|
+
readonly Qa: "QA";
|
197
|
+
readonly Re: "RE";
|
198
|
+
readonly Ro: "RO";
|
199
|
+
readonly Ru: "RU";
|
200
|
+
readonly Rw: "RW";
|
201
|
+
readonly Bl: "BL";
|
202
|
+
readonly Sh: "SH";
|
203
|
+
readonly Kn: "KN";
|
204
|
+
readonly Lc: "LC";
|
205
|
+
readonly Mf: "MF";
|
206
|
+
readonly Pm: "PM";
|
207
|
+
readonly Vc: "VC";
|
208
|
+
readonly Ws: "WS";
|
209
|
+
readonly Sm: "SM";
|
210
|
+
readonly St: "ST";
|
211
|
+
readonly Sa: "SA";
|
212
|
+
readonly Sn: "SN";
|
213
|
+
readonly Rs: "RS";
|
214
|
+
readonly Sc: "SC";
|
215
|
+
readonly Sl: "SL";
|
216
|
+
readonly Sg: "SG";
|
217
|
+
readonly Sx: "SX";
|
218
|
+
readonly Sk: "SK";
|
219
|
+
readonly Si: "SI";
|
220
|
+
readonly Sb: "SB";
|
221
|
+
readonly So: "SO";
|
222
|
+
readonly Za: "ZA";
|
223
|
+
readonly Gs: "GS";
|
224
|
+
readonly Kr: "KR";
|
225
|
+
readonly Ss: "SS";
|
226
|
+
readonly Es: "ES";
|
227
|
+
readonly Lk: "LK";
|
228
|
+
readonly Sd: "SD";
|
229
|
+
readonly Sr: "SR";
|
230
|
+
readonly Sj: "SJ";
|
231
|
+
readonly Se: "SE";
|
232
|
+
readonly Ch: "CH";
|
233
|
+
readonly Sy: "SY";
|
234
|
+
readonly Tw: "TW";
|
235
|
+
readonly Tj: "TJ";
|
236
|
+
readonly Tz: "TZ";
|
237
|
+
readonly Th: "TH";
|
238
|
+
readonly Tl: "TL";
|
239
|
+
readonly Tg: "TG";
|
240
|
+
readonly Tk: "TK";
|
241
|
+
readonly To: "TO";
|
242
|
+
readonly Tt: "TT";
|
243
|
+
readonly Tn: "TN";
|
244
|
+
readonly Tr: "TR";
|
245
|
+
readonly Tm: "TM";
|
246
|
+
readonly Tc: "TC";
|
247
|
+
readonly Tv: "TV";
|
248
|
+
readonly Ug: "UG";
|
249
|
+
readonly Ua: "UA";
|
250
|
+
readonly Ae: "AE";
|
251
|
+
readonly Gb: "GB";
|
252
|
+
readonly Um: "UM";
|
253
|
+
readonly Us: "US";
|
254
|
+
readonly Uy: "UY";
|
255
|
+
readonly Uz: "UZ";
|
256
|
+
readonly Vu: "VU";
|
257
|
+
readonly Ve: "VE";
|
258
|
+
readonly Vn: "VN";
|
259
|
+
readonly Vg: "VG";
|
260
|
+
readonly Vi: "VI";
|
261
|
+
readonly Wf: "WF";
|
262
|
+
readonly Eh: "EH";
|
263
|
+
readonly Ye: "YE";
|
264
|
+
readonly Zm: "ZM";
|
265
|
+
readonly Zw: "ZW";
|
266
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
267
|
+
};
|
268
|
+
export type CountryCodeEnum = typeof CountryCodeEnum[keyof typeof CountryCodeEnum];
|
269
|
+
export declare function CountryCodeEnumFromJSON(json: any): CountryCodeEnum;
|
270
|
+
export declare function CountryCodeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountryCodeEnum;
|
271
|
+
export declare function CountryCodeEnumToJSON(value?: CountryCodeEnum | null): any;
|