@goauthentik/api 2024.6.3-1722881330 → 2024.6.3-1723032607
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/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
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { CountryCodeEnumFromJSON, CountryCodeEnumToJSON, } from './CountryCodeEnum';
|
|
16
|
+
import { DetailedCountryFieldFromJSON, } from './DetailedCountryField';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GeoIPPolicy interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfGeoIPPolicy(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "pk" in value;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "component" in value;
|
|
25
|
+
isInstance = isInstance && "verboseName" in value;
|
|
26
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
27
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
28
|
+
isInstance = isInstance && "boundTo" in value;
|
|
29
|
+
isInstance = isInstance && "countries" in value;
|
|
30
|
+
isInstance = isInstance && "countriesObj" in value;
|
|
31
|
+
return isInstance;
|
|
32
|
+
}
|
|
33
|
+
export function GeoIPPolicyFromJSON(json) {
|
|
34
|
+
return GeoIPPolicyFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if ((json === undefined) || (json === null)) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'pk': json['pk'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'executionLogging': !exists(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
44
|
+
'component': json['component'],
|
|
45
|
+
'verboseName': json['verbose_name'],
|
|
46
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
47
|
+
'metaModelName': json['meta_model_name'],
|
|
48
|
+
'boundTo': json['bound_to'],
|
|
49
|
+
'asns': !exists(json, 'asns') ? undefined : json['asns'],
|
|
50
|
+
'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
51
|
+
'countriesObj': (json['countries_obj'].map(DetailedCountryFieldFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function GeoIPPolicyToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'name': value.name,
|
|
63
|
+
'execution_logging': value.executionLogging,
|
|
64
|
+
'asns': value.asns,
|
|
65
|
+
'countries': (value.countries.map(CountryCodeEnumToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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,52 @@
|
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { CountryCodeEnumFromJSON, CountryCodeEnumToJSON, } from './CountryCodeEnum';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GeoIPPolicyRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGeoIPPolicyRequest(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "name" in value;
|
|
22
|
+
isInstance = isInstance && "countries" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function GeoIPPolicyRequestFromJSON(json) {
|
|
26
|
+
return GeoIPPolicyRequestFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'executionLogging': !exists(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
35
|
+
'asns': !exists(json, 'asns') ? undefined : json['asns'],
|
|
36
|
+
'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GeoIPPolicyRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value.name,
|
|
48
|
+
'execution_logging': value.executionLogging,
|
|
49
|
+
'asns': value.asns,
|
|
50
|
+
'countries': (value.countries.map(CountryCodeEnumToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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";
|
|
@@ -27,6 +27,7 @@ export const ModelEnum = {
|
|
|
27
27
|
PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
|
|
28
28
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
|
29
29
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
|
30
|
+
PoliciesGeoipGeoippolicy: 'authentik_policies_geoip.geoippolicy',
|
|
30
31
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
|
31
32
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
|
32
33
|
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,48 @@
|
|
|
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
|
+
import { GeoIPPolicyFromJSON, GeoIPPolicyToJSON, } from './GeoIPPolicy';
|
|
15
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaginatedGeoIPPolicyList interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPaginatedGeoIPPolicyList(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "pagination" in value;
|
|
22
|
+
isInstance = isInstance && "results" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function PaginatedGeoIPPolicyListFromJSON(json) {
|
|
26
|
+
return PaginatedGeoIPPolicyListFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PaginatedGeoIPPolicyListFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
34
|
+
'results': (json['results'].map(GeoIPPolicyFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PaginatedGeoIPPolicyListToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
46
|
+
'results': (value.results.map(GeoIPPolicyToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,50 @@
|
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { CountryCodeEnumFromJSON, CountryCodeEnumToJSON, } from './CountryCodeEnum';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPatchedGeoIPPolicyRequest(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function PatchedGeoIPPolicyRequestFromJSON(json) {
|
|
24
|
+
return PatchedGeoIPPolicyRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
32
|
+
'executionLogging': !exists(json, 'execution_logging') ? undefined : json['execution_logging'],
|
|
33
|
+
'asns': !exists(json, 'asns') ? undefined : json['asns'],
|
|
34
|
+
'countries': !exists(json, 'countries') ? undefined : (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PatchedGeoIPPolicyRequestToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value.name,
|
|
46
|
+
'execution_logging': value.executionLogging,
|
|
47
|
+
'asns': value.asns,
|
|
48
|
+
'countries': value.countries === undefined ? undefined : (value.countries.map(CountryCodeEnumToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -79,10 +79,14 @@ export * from './ConsentStageRequest';
|
|
|
79
79
|
export * from './ContextualFlowInfo';
|
|
80
80
|
export * from './ContextualFlowInfoLayoutEnum';
|
|
81
81
|
export * from './Coordinate';
|
|
82
|
+
export * from './CountryCodeEnum';
|
|
82
83
|
export * from './CurrentBrand';
|
|
83
84
|
export * from './DeniedActionEnum';
|
|
84
85
|
export * from './DenyStage';
|
|
85
86
|
export * from './DenyStageRequest';
|
|
87
|
+
export * from './DetailedCountry';
|
|
88
|
+
export * from './DetailedCountryField';
|
|
89
|
+
export * from './DetailedCountryFieldRequest';
|
|
86
90
|
export * from './Device';
|
|
87
91
|
export * from './DeviceChallenge';
|
|
88
92
|
export * from './DeviceChallengeRequest';
|
|
@@ -141,6 +145,8 @@ export * from './FlowStageBinding';
|
|
|
141
145
|
export * from './FlowStageBindingRequest';
|
|
142
146
|
export * from './FooterLink';
|
|
143
147
|
export * from './GenericError';
|
|
148
|
+
export * from './GeoIPPolicy';
|
|
149
|
+
export * from './GeoIPPolicyRequest';
|
|
144
150
|
export * from './GeoipBindingEnum';
|
|
145
151
|
export * from './GoogleWorkspaceProvider';
|
|
146
152
|
export * from './GoogleWorkspaceProviderGroup';
|
|
@@ -257,6 +263,7 @@ export * from './PaginatedExtraRoleObjectPermissionList';
|
|
|
257
263
|
export * from './PaginatedExtraUserObjectPermissionList';
|
|
258
264
|
export * from './PaginatedFlowList';
|
|
259
265
|
export * from './PaginatedFlowStageBindingList';
|
|
266
|
+
export * from './PaginatedGeoIPPolicyList';
|
|
260
267
|
export * from './PaginatedGoogleWorkspaceProviderGroupList';
|
|
261
268
|
export * from './PaginatedGoogleWorkspaceProviderList';
|
|
262
269
|
export * from './PaginatedGoogleWorkspaceProviderMappingList';
|
|
@@ -377,6 +384,7 @@ export * from './PatchedExtraRoleObjectPermissionRequest';
|
|
|
377
384
|
export * from './PatchedExtraUserObjectPermissionRequest';
|
|
378
385
|
export * from './PatchedFlowRequest';
|
|
379
386
|
export * from './PatchedFlowStageBindingRequest';
|
|
387
|
+
export * from './PatchedGeoIPPolicyRequest';
|
|
380
388
|
export * from './PatchedGoogleWorkspaceProviderMappingRequest';
|
|
381
389
|
export * from './PatchedGoogleWorkspaceProviderRequest';
|
|
382
390
|
export * from './PatchedGroupRequest';
|
package/dist/models/AppEnum.d.ts
CHANGED
|
@@ -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";
|
package/dist/models/AppEnum.js
CHANGED
|
@@ -29,6 +29,7 @@ exports.AppEnum = {
|
|
|
29
29
|
PoliciesEventMatcher: 'authentik.policies.event_matcher',
|
|
30
30
|
PoliciesExpiry: 'authentik.policies.expiry',
|
|
31
31
|
PoliciesExpression: 'authentik.policies.expression',
|
|
32
|
+
PoliciesGeoip: 'authentik.policies.geoip',
|
|
32
33
|
PoliciesPassword: 'authentik.policies.password',
|
|
33
34
|
PoliciesReputation: 'authentik.policies.reputation',
|
|
34
35
|
Policies: 'authentik.policies',
|