@goauthentik/api 2024.6.3-1722881330 → 2024.6.3-1722940666
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/.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/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/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/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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GeoIPPolicyToJSON = exports.GeoIPPolicyFromJSONTyped = exports.GeoIPPolicyFromJSON = exports.instanceOfGeoIPPolicy = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const CountryCodeEnum_1 = require("./CountryCodeEnum");
|
|
19
|
+
const DetailedCountryField_1 = require("./DetailedCountryField");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the GeoIPPolicy interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfGeoIPPolicy(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "pk" in value;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "component" in value;
|
|
28
|
+
isInstance = isInstance && "verboseName" in value;
|
|
29
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
30
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
31
|
+
isInstance = isInstance && "boundTo" in value;
|
|
32
|
+
isInstance = isInstance && "countries" in value;
|
|
33
|
+
isInstance = isInstance && "countriesObj" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfGeoIPPolicy = instanceOfGeoIPPolicy;
|
|
37
|
+
function GeoIPPolicyFromJSON(json) {
|
|
38
|
+
return GeoIPPolicyFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.GeoIPPolicyFromJSON = GeoIPPolicyFromJSON;
|
|
41
|
+
function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'pk': json['pk'],
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'executionLogging': !(0, runtime_1.exists)(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
49
|
+
'component': json['component'],
|
|
50
|
+
'verboseName': json['verbose_name'],
|
|
51
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
52
|
+
'metaModelName': json['meta_model_name'],
|
|
53
|
+
'boundTo': json['bound_to'],
|
|
54
|
+
'asns': !(0, runtime_1.exists)(json, 'asns') ? undefined : json['asns'],
|
|
55
|
+
'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
56
|
+
'countriesObj': (json['countries_obj'].map(DetailedCountryField_1.DetailedCountryFieldFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.GeoIPPolicyFromJSONTyped = GeoIPPolicyFromJSONTyped;
|
|
60
|
+
function GeoIPPolicyToJSON(value) {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': value.name,
|
|
69
|
+
'execution_logging': value.executionLogging,
|
|
70
|
+
'asns': value.asns,
|
|
71
|
+
'countries': (value.countries.map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.GeoIPPolicyToJSON = GeoIPPolicyToJSON;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { CountryCodeEnum } from './CountryCodeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* GeoIP Policy Serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GeoIPPolicyRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface GeoIPPolicyRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GeoIPPolicyRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof GeoIPPolicyRequest
|
|
29
|
+
*/
|
|
30
|
+
executionLogging?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<number>}
|
|
34
|
+
* @memberof GeoIPPolicyRequest
|
|
35
|
+
*/
|
|
36
|
+
asns?: Array<number>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<CountryCodeEnum>}
|
|
40
|
+
* @memberof GeoIPPolicyRequest
|
|
41
|
+
*/
|
|
42
|
+
countries: Array<CountryCodeEnum>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the GeoIPPolicyRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfGeoIPPolicyRequest(value: object): boolean;
|
|
48
|
+
export declare function GeoIPPolicyRequestFromJSON(json: any): GeoIPPolicyRequest;
|
|
49
|
+
export declare function GeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoIPPolicyRequest;
|
|
50
|
+
export declare function GeoIPPolicyRequestToJSON(value?: GeoIPPolicyRequest | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GeoIPPolicyRequestToJSON = exports.GeoIPPolicyRequestFromJSONTyped = exports.GeoIPPolicyRequestFromJSON = exports.instanceOfGeoIPPolicyRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const CountryCodeEnum_1 = require("./CountryCodeEnum");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the GeoIPPolicyRequest interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfGeoIPPolicyRequest(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "countries" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfGeoIPPolicyRequest = instanceOfGeoIPPolicyRequest;
|
|
29
|
+
function GeoIPPolicyRequestFromJSON(json) {
|
|
30
|
+
return GeoIPPolicyRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.GeoIPPolicyRequestFromJSON = GeoIPPolicyRequestFromJSON;
|
|
33
|
+
function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'executionLogging': !(0, runtime_1.exists)(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
40
|
+
'asns': !(0, runtime_1.exists)(json, 'asns') ? undefined : json['asns'],
|
|
41
|
+
'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.GeoIPPolicyRequestFromJSONTyped = GeoIPPolicyRequestFromJSONTyped;
|
|
45
|
+
function GeoIPPolicyRequestToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'execution_logging': value.executionLogging,
|
|
55
|
+
'asns': value.asns,
|
|
56
|
+
'countries': (value.countries.map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.GeoIPPolicyRequestToJSON = GeoIPPolicyRequestToJSON;
|
|
@@ -25,6 +25,7 @@ export declare const ModelEnum: {
|
|
|
25
25
|
readonly PoliciesEventMatcherEventmatcherpolicy: "authentik_policies_event_matcher.eventmatcherpolicy";
|
|
26
26
|
readonly PoliciesExpiryPasswordexpirypolicy: "authentik_policies_expiry.passwordexpirypolicy";
|
|
27
27
|
readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
|
|
28
|
+
readonly PoliciesGeoipGeoippolicy: "authentik_policies_geoip.geoippolicy";
|
|
28
29
|
readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
|
|
29
30
|
readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
|
|
30
31
|
readonly PoliciesPolicybinding: "authentik_policies.policybinding";
|
package/dist/models/ModelEnum.js
CHANGED
|
@@ -30,6 +30,7 @@ exports.ModelEnum = {
|
|
|
30
30
|
PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
|
|
31
31
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
|
32
32
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
|
33
|
+
PoliciesGeoipGeoippolicy: 'authentik_policies_geoip.geoippolicy',
|
|
33
34
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
|
34
35
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
|
35
36
|
PoliciesPolicybinding: 'authentik_policies.policybinding',
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { GeoIPPolicy } from './GeoIPPolicy';
|
|
13
|
+
import type { Pagination } from './Pagination';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedGeoIPPolicyList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedGeoIPPolicyList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedGeoIPPolicyList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<GeoIPPolicy>}
|
|
29
|
+
* @memberof PaginatedGeoIPPolicyList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<GeoIPPolicy>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedGeoIPPolicyList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedGeoIPPolicyList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedGeoIPPolicyListFromJSON(json: any): PaginatedGeoIPPolicyList;
|
|
38
|
+
export declare function PaginatedGeoIPPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGeoIPPolicyList;
|
|
39
|
+
export declare function PaginatedGeoIPPolicyListToJSON(value?: PaginatedGeoIPPolicyList | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedGeoIPPolicyListToJSON = exports.PaginatedGeoIPPolicyListFromJSONTyped = exports.PaginatedGeoIPPolicyListFromJSON = exports.instanceOfPaginatedGeoIPPolicyList = void 0;
|
|
17
|
+
const GeoIPPolicy_1 = require("./GeoIPPolicy");
|
|
18
|
+
const Pagination_1 = require("./Pagination");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedGeoIPPolicyList interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedGeoIPPolicyList(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
|
25
|
+
isInstance = isInstance && "results" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfPaginatedGeoIPPolicyList = instanceOfPaginatedGeoIPPolicyList;
|
|
29
|
+
function PaginatedGeoIPPolicyListFromJSON(json) {
|
|
30
|
+
return PaginatedGeoIPPolicyListFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.PaginatedGeoIPPolicyListFromJSON = PaginatedGeoIPPolicyListFromJSON;
|
|
33
|
+
function PaginatedGeoIPPolicyListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
|
39
|
+
'results': (json['results'].map(GeoIPPolicy_1.GeoIPPolicyFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PaginatedGeoIPPolicyListFromJSONTyped = PaginatedGeoIPPolicyListFromJSONTyped;
|
|
43
|
+
function PaginatedGeoIPPolicyListToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
|
52
|
+
'results': (value.results.map(GeoIPPolicy_1.GeoIPPolicyToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PaginatedGeoIPPolicyListToJSON = PaginatedGeoIPPolicyListToJSON;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { CountryCodeEnum } from './CountryCodeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* GeoIP Policy Serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PatchedGeoIPPolicyRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PatchedGeoIPPolicyRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
29
|
+
*/
|
|
30
|
+
executionLogging?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<number>}
|
|
34
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
35
|
+
*/
|
|
36
|
+
asns?: Array<number>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<CountryCodeEnum>}
|
|
40
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
41
|
+
*/
|
|
42
|
+
countries?: Array<CountryCodeEnum>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPatchedGeoIPPolicyRequest(value: object): boolean;
|
|
48
|
+
export declare function PatchedGeoIPPolicyRequestFromJSON(json: any): PatchedGeoIPPolicyRequest;
|
|
49
|
+
export declare function PatchedGeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGeoIPPolicyRequest;
|
|
50
|
+
export declare function PatchedGeoIPPolicyRequestToJSON(value?: PatchedGeoIPPolicyRequest | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PatchedGeoIPPolicyRequestToJSON = exports.PatchedGeoIPPolicyRequestFromJSONTyped = exports.PatchedGeoIPPolicyRequestFromJSON = exports.instanceOfPatchedGeoIPPolicyRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const CountryCodeEnum_1 = require("./CountryCodeEnum");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPatchedGeoIPPolicyRequest(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfPatchedGeoIPPolicyRequest = instanceOfPatchedGeoIPPolicyRequest;
|
|
27
|
+
function PatchedGeoIPPolicyRequestFromJSON(json) {
|
|
28
|
+
return PatchedGeoIPPolicyRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.PatchedGeoIPPolicyRequestFromJSON = PatchedGeoIPPolicyRequestFromJSON;
|
|
31
|
+
function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
37
|
+
'executionLogging': !(0, runtime_1.exists)(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
38
|
+
'asns': !(0, runtime_1.exists)(json, 'asns') ? undefined : json['asns'],
|
|
39
|
+
'countries': !(0, runtime_1.exists)(json, 'countries') ? undefined : (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PatchedGeoIPPolicyRequestFromJSONTyped = PatchedGeoIPPolicyRequestFromJSONTyped;
|
|
43
|
+
function PatchedGeoIPPolicyRequestToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value.name,
|
|
52
|
+
'execution_logging': value.executionLogging,
|
|
53
|
+
'asns': value.asns,
|
|
54
|
+
'countries': value.countries === undefined ? undefined : (value.countries.map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.PatchedGeoIPPolicyRequestToJSON = PatchedGeoIPPolicyRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -77,10 +77,14 @@ export * from './ConsentStageRequest';
|
|
|
77
77
|
export * from './ContextualFlowInfo';
|
|
78
78
|
export * from './ContextualFlowInfoLayoutEnum';
|
|
79
79
|
export * from './Coordinate';
|
|
80
|
+
export * from './CountryCodeEnum';
|
|
80
81
|
export * from './CurrentBrand';
|
|
81
82
|
export * from './DeniedActionEnum';
|
|
82
83
|
export * from './DenyStage';
|
|
83
84
|
export * from './DenyStageRequest';
|
|
85
|
+
export * from './DetailedCountry';
|
|
86
|
+
export * from './DetailedCountryField';
|
|
87
|
+
export * from './DetailedCountryFieldRequest';
|
|
84
88
|
export * from './Device';
|
|
85
89
|
export * from './DeviceChallenge';
|
|
86
90
|
export * from './DeviceChallengeRequest';
|
|
@@ -139,6 +143,8 @@ export * from './FlowStageBinding';
|
|
|
139
143
|
export * from './FlowStageBindingRequest';
|
|
140
144
|
export * from './FooterLink';
|
|
141
145
|
export * from './GenericError';
|
|
146
|
+
export * from './GeoIPPolicy';
|
|
147
|
+
export * from './GeoIPPolicyRequest';
|
|
142
148
|
export * from './GeoipBindingEnum';
|
|
143
149
|
export * from './GoogleWorkspaceProvider';
|
|
144
150
|
export * from './GoogleWorkspaceProviderGroup';
|
|
@@ -255,6 +261,7 @@ export * from './PaginatedExtraRoleObjectPermissionList';
|
|
|
255
261
|
export * from './PaginatedExtraUserObjectPermissionList';
|
|
256
262
|
export * from './PaginatedFlowList';
|
|
257
263
|
export * from './PaginatedFlowStageBindingList';
|
|
264
|
+
export * from './PaginatedGeoIPPolicyList';
|
|
258
265
|
export * from './PaginatedGoogleWorkspaceProviderGroupList';
|
|
259
266
|
export * from './PaginatedGoogleWorkspaceProviderList';
|
|
260
267
|
export * from './PaginatedGoogleWorkspaceProviderMappingList';
|
|
@@ -375,6 +382,7 @@ export * from './PatchedExtraRoleObjectPermissionRequest';
|
|
|
375
382
|
export * from './PatchedExtraUserObjectPermissionRequest';
|
|
376
383
|
export * from './PatchedFlowRequest';
|
|
377
384
|
export * from './PatchedFlowStageBindingRequest';
|
|
385
|
+
export * from './PatchedGeoIPPolicyRequest';
|
|
378
386
|
export * from './PatchedGoogleWorkspaceProviderMappingRequest';
|
|
379
387
|
export * from './PatchedGoogleWorkspaceProviderRequest';
|
|
380
388
|
export * from './PatchedGroupRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -95,10 +95,14 @@ __exportStar(require("./ConsentStageRequest"), exports);
|
|
|
95
95
|
__exportStar(require("./ContextualFlowInfo"), exports);
|
|
96
96
|
__exportStar(require("./ContextualFlowInfoLayoutEnum"), exports);
|
|
97
97
|
__exportStar(require("./Coordinate"), exports);
|
|
98
|
+
__exportStar(require("./CountryCodeEnum"), exports);
|
|
98
99
|
__exportStar(require("./CurrentBrand"), exports);
|
|
99
100
|
__exportStar(require("./DeniedActionEnum"), exports);
|
|
100
101
|
__exportStar(require("./DenyStage"), exports);
|
|
101
102
|
__exportStar(require("./DenyStageRequest"), exports);
|
|
103
|
+
__exportStar(require("./DetailedCountry"), exports);
|
|
104
|
+
__exportStar(require("./DetailedCountryField"), exports);
|
|
105
|
+
__exportStar(require("./DetailedCountryFieldRequest"), exports);
|
|
102
106
|
__exportStar(require("./Device"), exports);
|
|
103
107
|
__exportStar(require("./DeviceChallenge"), exports);
|
|
104
108
|
__exportStar(require("./DeviceChallengeRequest"), exports);
|
|
@@ -157,6 +161,8 @@ __exportStar(require("./FlowStageBinding"), exports);
|
|
|
157
161
|
__exportStar(require("./FlowStageBindingRequest"), exports);
|
|
158
162
|
__exportStar(require("./FooterLink"), exports);
|
|
159
163
|
__exportStar(require("./GenericError"), exports);
|
|
164
|
+
__exportStar(require("./GeoIPPolicy"), exports);
|
|
165
|
+
__exportStar(require("./GeoIPPolicyRequest"), exports);
|
|
160
166
|
__exportStar(require("./GeoipBindingEnum"), exports);
|
|
161
167
|
__exportStar(require("./GoogleWorkspaceProvider"), exports);
|
|
162
168
|
__exportStar(require("./GoogleWorkspaceProviderGroup"), exports);
|
|
@@ -273,6 +279,7 @@ __exportStar(require("./PaginatedExtraRoleObjectPermissionList"), exports);
|
|
|
273
279
|
__exportStar(require("./PaginatedExtraUserObjectPermissionList"), exports);
|
|
274
280
|
__exportStar(require("./PaginatedFlowList"), exports);
|
|
275
281
|
__exportStar(require("./PaginatedFlowStageBindingList"), exports);
|
|
282
|
+
__exportStar(require("./PaginatedGeoIPPolicyList"), exports);
|
|
276
283
|
__exportStar(require("./PaginatedGoogleWorkspaceProviderGroupList"), exports);
|
|
277
284
|
__exportStar(require("./PaginatedGoogleWorkspaceProviderList"), exports);
|
|
278
285
|
__exportStar(require("./PaginatedGoogleWorkspaceProviderMappingList"), exports);
|
|
@@ -393,6 +400,7 @@ __exportStar(require("./PatchedExtraRoleObjectPermissionRequest"), exports);
|
|
|
393
400
|
__exportStar(require("./PatchedExtraUserObjectPermissionRequest"), exports);
|
|
394
401
|
__exportStar(require("./PatchedFlowRequest"), exports);
|
|
395
402
|
__exportStar(require("./PatchedFlowStageBindingRequest"), exports);
|
|
403
|
+
__exportStar(require("./PatchedGeoIPPolicyRequest"), exports);
|
|
396
404
|
__exportStar(require("./PatchedGoogleWorkspaceProviderMappingRequest"), exports);
|
|
397
405
|
__exportStar(require("./PatchedGoogleWorkspaceProviderRequest"), exports);
|
|
398
406
|
__exportStar(require("./PatchedGroupRequest"), exports);
|