@goauthentik/api 2024.6.3-1722881330 → 2024.6.3-1722940666
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/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,98 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { CountryCodeEnum } from './CountryCodeEnum';
|
17
|
+
import {
|
18
|
+
CountryCodeEnumFromJSON,
|
19
|
+
CountryCodeEnumFromJSONTyped,
|
20
|
+
CountryCodeEnumToJSON,
|
21
|
+
} from './CountryCodeEnum';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* GeoIP Policy Serializer
|
25
|
+
* @export
|
26
|
+
* @interface GeoIPPolicyRequest
|
27
|
+
*/
|
28
|
+
export interface GeoIPPolicyRequest {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {string}
|
32
|
+
* @memberof GeoIPPolicyRequest
|
33
|
+
*/
|
34
|
+
name: string;
|
35
|
+
/**
|
36
|
+
* When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
|
37
|
+
* @type {boolean}
|
38
|
+
* @memberof GeoIPPolicyRequest
|
39
|
+
*/
|
40
|
+
executionLogging?: boolean;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<number>}
|
44
|
+
* @memberof GeoIPPolicyRequest
|
45
|
+
*/
|
46
|
+
asns?: Array<number>;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {Array<CountryCodeEnum>}
|
50
|
+
* @memberof GeoIPPolicyRequest
|
51
|
+
*/
|
52
|
+
countries: Array<CountryCodeEnum>;
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Check if a given object implements the GeoIPPolicyRequest interface.
|
57
|
+
*/
|
58
|
+
export function instanceOfGeoIPPolicyRequest(value: object): boolean {
|
59
|
+
let isInstance = true;
|
60
|
+
isInstance = isInstance && "name" in value;
|
61
|
+
isInstance = isInstance && "countries" in value;
|
62
|
+
|
63
|
+
return isInstance;
|
64
|
+
}
|
65
|
+
|
66
|
+
export function GeoIPPolicyRequestFromJSON(json: any): GeoIPPolicyRequest {
|
67
|
+
return GeoIPPolicyRequestFromJSONTyped(json, false);
|
68
|
+
}
|
69
|
+
|
70
|
+
export function GeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoIPPolicyRequest {
|
71
|
+
if ((json === undefined) || (json === null)) {
|
72
|
+
return json;
|
73
|
+
}
|
74
|
+
return {
|
75
|
+
|
76
|
+
'name': json['name'],
|
77
|
+
'executionLogging': !exists(json, 'execution_logging') ? undefined : json['execution_logging'],
|
78
|
+
'asns': !exists(json, 'asns') ? undefined : json['asns'],
|
79
|
+
'countries': ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
80
|
+
};
|
81
|
+
}
|
82
|
+
|
83
|
+
export function GeoIPPolicyRequestToJSON(value?: GeoIPPolicyRequest | null): any {
|
84
|
+
if (value === undefined) {
|
85
|
+
return undefined;
|
86
|
+
}
|
87
|
+
if (value === null) {
|
88
|
+
return null;
|
89
|
+
}
|
90
|
+
return {
|
91
|
+
|
92
|
+
'name': value.name,
|
93
|
+
'execution_logging': value.executionLogging,
|
94
|
+
'asns': value.asns,
|
95
|
+
'countries': ((value.countries as Array<any>).map(CountryCodeEnumToJSON)),
|
96
|
+
};
|
97
|
+
}
|
98
|
+
|
package/src/models/ModelEnum.ts
CHANGED
@@ -29,6 +29,7 @@ export const ModelEnum = {
|
|
29
29
|
PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
|
30
30
|
PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
|
31
31
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
32
|
+
PoliciesGeoipGeoippolicy: 'authentik_policies_geoip.geoippolicy',
|
32
33
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
33
34
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
34
35
|
PoliciesPolicybinding: 'authentik_policies.policybinding',
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { GeoIPPolicy } from './GeoIPPolicy';
|
17
|
+
import {
|
18
|
+
GeoIPPolicyFromJSON,
|
19
|
+
GeoIPPolicyFromJSONTyped,
|
20
|
+
GeoIPPolicyToJSON,
|
21
|
+
} from './GeoIPPolicy';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedGeoIPPolicyList
|
33
|
+
*/
|
34
|
+
export interface PaginatedGeoIPPolicyList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedGeoIPPolicyList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<GeoIPPolicy>}
|
44
|
+
* @memberof PaginatedGeoIPPolicyList
|
45
|
+
*/
|
46
|
+
results: Array<GeoIPPolicy>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedGeoIPPolicyList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedGeoIPPolicyList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedGeoIPPolicyListFromJSON(json: any): PaginatedGeoIPPolicyList {
|
61
|
+
return PaginatedGeoIPPolicyListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedGeoIPPolicyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGeoIPPolicyList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(GeoIPPolicyFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedGeoIPPolicyListToJSON(value?: PaginatedGeoIPPolicyList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(GeoIPPolicyToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.3
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { CountryCodeEnum } from './CountryCodeEnum';
|
17
|
+
import {
|
18
|
+
CountryCodeEnumFromJSON,
|
19
|
+
CountryCodeEnumFromJSONTyped,
|
20
|
+
CountryCodeEnumToJSON,
|
21
|
+
} from './CountryCodeEnum';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* GeoIP Policy Serializer
|
25
|
+
* @export
|
26
|
+
* @interface PatchedGeoIPPolicyRequest
|
27
|
+
*/
|
28
|
+
export interface PatchedGeoIPPolicyRequest {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {string}
|
32
|
+
* @memberof PatchedGeoIPPolicyRequest
|
33
|
+
*/
|
34
|
+
name?: string;
|
35
|
+
/**
|
36
|
+
* When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
|
37
|
+
* @type {boolean}
|
38
|
+
* @memberof PatchedGeoIPPolicyRequest
|
39
|
+
*/
|
40
|
+
executionLogging?: boolean;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<number>}
|
44
|
+
* @memberof PatchedGeoIPPolicyRequest
|
45
|
+
*/
|
46
|
+
asns?: Array<number>;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {Array<CountryCodeEnum>}
|
50
|
+
* @memberof PatchedGeoIPPolicyRequest
|
51
|
+
*/
|
52
|
+
countries?: Array<CountryCodeEnum>;
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
57
|
+
*/
|
58
|
+
export function instanceOfPatchedGeoIPPolicyRequest(value: object): boolean {
|
59
|
+
let isInstance = true;
|
60
|
+
|
61
|
+
return isInstance;
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PatchedGeoIPPolicyRequestFromJSON(json: any): PatchedGeoIPPolicyRequest {
|
65
|
+
return PatchedGeoIPPolicyRequestFromJSONTyped(json, false);
|
66
|
+
}
|
67
|
+
|
68
|
+
export function PatchedGeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGeoIPPolicyRequest {
|
69
|
+
if ((json === undefined) || (json === null)) {
|
70
|
+
return json;
|
71
|
+
}
|
72
|
+
return {
|
73
|
+
|
74
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
75
|
+
'executionLogging': !exists(json, 'execution_logging') ? undefined : json['execution_logging'],
|
76
|
+
'asns': !exists(json, 'asns') ? undefined : json['asns'],
|
77
|
+
'countries': !exists(json, 'countries') ? undefined : ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
78
|
+
};
|
79
|
+
}
|
80
|
+
|
81
|
+
export function PatchedGeoIPPolicyRequestToJSON(value?: PatchedGeoIPPolicyRequest | null): any {
|
82
|
+
if (value === undefined) {
|
83
|
+
return undefined;
|
84
|
+
}
|
85
|
+
if (value === null) {
|
86
|
+
return null;
|
87
|
+
}
|
88
|
+
return {
|
89
|
+
|
90
|
+
'name': value.name,
|
91
|
+
'execution_logging': value.executionLogging,
|
92
|
+
'asns': value.asns,
|
93
|
+
'countries': value.countries === undefined ? undefined : ((value.countries as Array<any>).map(CountryCodeEnumToJSON)),
|
94
|
+
};
|
95
|
+
}
|
96
|
+
|
package/src/models/index.ts
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';
|