@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,54 @@
|
|
|
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.DetailedCountryFieldToJSON = exports.DetailedCountryFieldFromJSONTyped = exports.DetailedCountryFieldFromJSON = exports.instanceOfDetailedCountryField = void 0;
|
|
17
|
+
const CountryCodeEnum_1 = require("./CountryCodeEnum");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the DetailedCountryField interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDetailedCountryField(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "code" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfDetailedCountryField = instanceOfDetailedCountryField;
|
|
28
|
+
function DetailedCountryFieldFromJSON(json) {
|
|
29
|
+
return DetailedCountryFieldFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DetailedCountryFieldFromJSON = DetailedCountryFieldFromJSON;
|
|
32
|
+
function DetailedCountryFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.DetailedCountryFieldFromJSONTyped = DetailedCountryFieldFromJSONTyped;
|
|
42
|
+
function DetailedCountryFieldToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value.code),
|
|
51
|
+
'name': value.name,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.DetailedCountryFieldToJSON = DetailedCountryFieldToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DetailedCountryFieldRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface DetailedCountryFieldRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CountryCodeEnum}
|
|
22
|
+
* @memberof DetailedCountryFieldRequest
|
|
23
|
+
*/
|
|
24
|
+
code: CountryCodeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DetailedCountryFieldRequest
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DetailedCountryFieldRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDetailedCountryFieldRequest(value: object): boolean;
|
|
36
|
+
export declare function DetailedCountryFieldRequestFromJSON(json: any): DetailedCountryFieldRequest;
|
|
37
|
+
export declare function DetailedCountryFieldRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedCountryFieldRequest;
|
|
38
|
+
export declare function DetailedCountryFieldRequestToJSON(value?: DetailedCountryFieldRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.DetailedCountryFieldRequestToJSON = exports.DetailedCountryFieldRequestFromJSONTyped = exports.DetailedCountryFieldRequestFromJSON = exports.instanceOfDetailedCountryFieldRequest = void 0;
|
|
17
|
+
const CountryCodeEnum_1 = require("./CountryCodeEnum");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the DetailedCountryFieldRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDetailedCountryFieldRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "code" in value;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfDetailedCountryFieldRequest = instanceOfDetailedCountryFieldRequest;
|
|
28
|
+
function DetailedCountryFieldRequestFromJSON(json) {
|
|
29
|
+
return DetailedCountryFieldRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DetailedCountryFieldRequestFromJSON = DetailedCountryFieldRequestFromJSON;
|
|
32
|
+
function DetailedCountryFieldRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.DetailedCountryFieldRequestFromJSONTyped = DetailedCountryFieldRequestFromJSONTyped;
|
|
42
|
+
function DetailedCountryFieldRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value.code),
|
|
51
|
+
'name': value.name,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.DetailedCountryFieldRequestToJSON = DetailedCountryFieldRequestToJSON;
|
package/dist/models/Device.d.ts
CHANGED
|
@@ -57,6 +57,24 @@ export interface Device {
|
|
|
57
57
|
* @memberof Device
|
|
58
58
|
*/
|
|
59
59
|
confirmed: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof Device
|
|
64
|
+
*/
|
|
65
|
+
readonly created: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof Device
|
|
70
|
+
*/
|
|
71
|
+
readonly lastUpdated: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof Device
|
|
76
|
+
*/
|
|
77
|
+
readonly lastUsed: Date | null;
|
|
60
78
|
}
|
|
61
79
|
/**
|
|
62
80
|
* Check if a given object implements the Device interface.
|
package/dist/models/Device.js
CHANGED
|
@@ -26,6 +26,9 @@ function instanceOfDevice(value) {
|
|
|
26
26
|
isInstance = isInstance && "name" in value;
|
|
27
27
|
isInstance = isInstance && "type" in value;
|
|
28
28
|
isInstance = isInstance && "confirmed" in value;
|
|
29
|
+
isInstance = isInstance && "created" in value;
|
|
30
|
+
isInstance = isInstance && "lastUpdated" in value;
|
|
31
|
+
isInstance = isInstance && "lastUsed" in value;
|
|
29
32
|
return isInstance;
|
|
30
33
|
}
|
|
31
34
|
exports.instanceOfDevice = instanceOfDevice;
|
|
@@ -45,6 +48,9 @@ function DeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
48
|
'name': json['name'],
|
|
46
49
|
'type': json['type'],
|
|
47
50
|
'confirmed': json['confirmed'],
|
|
51
|
+
'created': (new Date(json['created'])),
|
|
52
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
53
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
|
48
54
|
};
|
|
49
55
|
}
|
|
50
56
|
exports.DeviceFromJSONTyped = DeviceFromJSONTyped;
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import type { DetailedCountryField } from './DetailedCountryField';
|
|
14
|
+
/**
|
|
15
|
+
* GeoIP Policy Serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GeoIPPolicy
|
|
18
|
+
*/
|
|
19
|
+
export interface GeoIPPolicy {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GeoIPPolicy
|
|
24
|
+
*/
|
|
25
|
+
readonly pk: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GeoIPPolicy
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof GeoIPPolicy
|
|
36
|
+
*/
|
|
37
|
+
executionLogging?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Get object component so that we know how to edit the object
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GeoIPPolicy
|
|
42
|
+
*/
|
|
43
|
+
readonly component: string;
|
|
44
|
+
/**
|
|
45
|
+
* Return object's verbose_name
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GeoIPPolicy
|
|
48
|
+
*/
|
|
49
|
+
readonly verboseName: string;
|
|
50
|
+
/**
|
|
51
|
+
* Return object's plural verbose_name
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GeoIPPolicy
|
|
54
|
+
*/
|
|
55
|
+
readonly verboseNamePlural: string;
|
|
56
|
+
/**
|
|
57
|
+
* Return internal model name
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GeoIPPolicy
|
|
60
|
+
*/
|
|
61
|
+
readonly metaModelName: string;
|
|
62
|
+
/**
|
|
63
|
+
* Return objects policy is bound to
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof GeoIPPolicy
|
|
66
|
+
*/
|
|
67
|
+
readonly boundTo: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<number>}
|
|
71
|
+
* @memberof GeoIPPolicy
|
|
72
|
+
*/
|
|
73
|
+
asns?: Array<number>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<CountryCodeEnum>}
|
|
77
|
+
* @memberof GeoIPPolicy
|
|
78
|
+
*/
|
|
79
|
+
countries: Array<CountryCodeEnum>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<DetailedCountryField>}
|
|
83
|
+
* @memberof GeoIPPolicy
|
|
84
|
+
*/
|
|
85
|
+
readonly countriesObj: Array<DetailedCountryField>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the GeoIPPolicy interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfGeoIPPolicy(value: object): boolean;
|
|
91
|
+
export declare function GeoIPPolicyFromJSON(json: any): GeoIPPolicy;
|
|
92
|
+
export declare function GeoIPPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoIPPolicy;
|
|
93
|
+
export declare function GeoIPPolicyToJSON(value?: GeoIPPolicy | null): any;
|
|
@@ -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;
|