@goauthentik/api 2024.12.3-1739801838 → 2024.12.3-1739814462
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/dist/esm/models/GeoIPPolicy.d.ts +36 -0
- package/dist/esm/models/GeoIPPolicy.js +12 -0
- package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
- package/dist/esm/models/GeoIPPolicyRequest.js +12 -0
- package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
- package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -0
- package/dist/models/GeoIPPolicy.d.ts +36 -0
- package/dist/models/GeoIPPolicy.js +12 -0
- package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
- package/dist/models/GeoIPPolicyRequest.js +12 -0
- package/dist/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
- package/dist/models/PatchedGeoIPPolicyRequest.js +12 -0
- package/package.json +1 -1
- package/src/models/GeoIPPolicy.ts +48 -0
- package/src/models/GeoIPPolicyRequest.ts +48 -0
- package/src/models/PatchedGeoIPPolicyRequest.ts +48 -0
|
@@ -83,6 +83,42 @@ export interface GeoIPPolicy {
|
|
|
83
83
|
* @memberof GeoIPPolicy
|
|
84
84
|
*/
|
|
85
85
|
readonly countriesObj: Array<DetailedCountryField>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof GeoIPPolicy
|
|
90
|
+
*/
|
|
91
|
+
checkHistoryDistance?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof GeoIPPolicy
|
|
96
|
+
*/
|
|
97
|
+
historyMaxDistanceKm?: number;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GeoIPPolicy
|
|
102
|
+
*/
|
|
103
|
+
distanceToleranceKm?: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GeoIPPolicy
|
|
108
|
+
*/
|
|
109
|
+
historyLoginCount?: number;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof GeoIPPolicy
|
|
114
|
+
*/
|
|
115
|
+
checkImpossibleTravel?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof GeoIPPolicy
|
|
120
|
+
*/
|
|
121
|
+
impossibleToleranceKm?: number;
|
|
86
122
|
}
|
|
87
123
|
/**
|
|
88
124
|
* Check if a given object implements the GeoIPPolicy interface.
|
|
@@ -56,6 +56,12 @@ export function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
57
57
|
'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
58
58
|
'countriesObj': (json['countries_obj'].map(DetailedCountryFieldFromJSON)),
|
|
59
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
60
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
61
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
62
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
63
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
64
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
59
65
|
};
|
|
60
66
|
}
|
|
61
67
|
export function GeoIPPolicyToJSON(json) {
|
|
@@ -70,5 +76,11 @@ export function GeoIPPolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
76
|
'execution_logging': value['executionLogging'],
|
|
71
77
|
'asns': value['asns'],
|
|
72
78
|
'countries': (value['countries'].map(CountryCodeEnumToJSON)),
|
|
79
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
80
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
81
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
82
|
+
'history_login_count': value['historyLoginCount'],
|
|
83
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
84
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
73
85
|
};
|
|
74
86
|
}
|
|
@@ -40,6 +40,42 @@ export interface GeoIPPolicyRequest {
|
|
|
40
40
|
* @memberof GeoIPPolicyRequest
|
|
41
41
|
*/
|
|
42
42
|
countries: Array<CountryCodeEnum>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof GeoIPPolicyRequest
|
|
47
|
+
*/
|
|
48
|
+
checkHistoryDistance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GeoIPPolicyRequest
|
|
53
|
+
*/
|
|
54
|
+
historyMaxDistanceKm?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof GeoIPPolicyRequest
|
|
59
|
+
*/
|
|
60
|
+
distanceToleranceKm?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GeoIPPolicyRequest
|
|
65
|
+
*/
|
|
66
|
+
historyLoginCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof GeoIPPolicyRequest
|
|
71
|
+
*/
|
|
72
|
+
checkImpossibleTravel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GeoIPPolicyRequest
|
|
77
|
+
*/
|
|
78
|
+
impossibleToleranceKm?: number;
|
|
43
79
|
}
|
|
44
80
|
/**
|
|
45
81
|
* Check if a given object implements the GeoIPPolicyRequest interface.
|
|
@@ -34,6 +34,12 @@ export function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
35
35
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
36
36
|
'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
37
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
38
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
39
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
40
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
41
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
42
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
37
43
|
};
|
|
38
44
|
}
|
|
39
45
|
export function GeoIPPolicyRequestToJSON(json) {
|
|
@@ -48,5 +54,11 @@ export function GeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
48
54
|
'execution_logging': value['executionLogging'],
|
|
49
55
|
'asns': value['asns'],
|
|
50
56
|
'countries': (value['countries'].map(CountryCodeEnumToJSON)),
|
|
57
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
58
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
59
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
60
|
+
'history_login_count': value['historyLoginCount'],
|
|
61
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
62
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
51
63
|
};
|
|
52
64
|
}
|
|
@@ -40,6 +40,42 @@ export interface PatchedGeoIPPolicyRequest {
|
|
|
40
40
|
* @memberof PatchedGeoIPPolicyRequest
|
|
41
41
|
*/
|
|
42
42
|
countries?: Array<CountryCodeEnum>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
47
|
+
*/
|
|
48
|
+
checkHistoryDistance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
53
|
+
*/
|
|
54
|
+
historyMaxDistanceKm?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
59
|
+
*/
|
|
60
|
+
distanceToleranceKm?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
65
|
+
*/
|
|
66
|
+
historyLoginCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
71
|
+
*/
|
|
72
|
+
checkImpossibleTravel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
77
|
+
*/
|
|
78
|
+
impossibleToleranceKm?: number;
|
|
43
79
|
}
|
|
44
80
|
/**
|
|
45
81
|
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
@@ -30,6 +30,12 @@ export function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
30
30
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
31
31
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
32
32
|
'countries': json['countries'] == null ? undefined : (json['countries'].map(CountryCodeEnumFromJSON)),
|
|
33
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
34
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
35
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
36
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
37
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
38
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
33
39
|
};
|
|
34
40
|
}
|
|
35
41
|
export function PatchedGeoIPPolicyRequestToJSON(json) {
|
|
@@ -44,5 +50,11 @@ export function PatchedGeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
44
50
|
'execution_logging': value['executionLogging'],
|
|
45
51
|
'asns': value['asns'],
|
|
46
52
|
'countries': value['countries'] == null ? undefined : (value['countries'].map(CountryCodeEnumToJSON)),
|
|
53
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
54
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
55
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
56
|
+
'history_login_count': value['historyLoginCount'],
|
|
57
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
58
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
47
59
|
};
|
|
48
60
|
}
|
|
@@ -83,6 +83,42 @@ export interface GeoIPPolicy {
|
|
|
83
83
|
* @memberof GeoIPPolicy
|
|
84
84
|
*/
|
|
85
85
|
readonly countriesObj: Array<DetailedCountryField>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof GeoIPPolicy
|
|
90
|
+
*/
|
|
91
|
+
checkHistoryDistance?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof GeoIPPolicy
|
|
96
|
+
*/
|
|
97
|
+
historyMaxDistanceKm?: number;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GeoIPPolicy
|
|
102
|
+
*/
|
|
103
|
+
distanceToleranceKm?: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GeoIPPolicy
|
|
108
|
+
*/
|
|
109
|
+
historyLoginCount?: number;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof GeoIPPolicy
|
|
114
|
+
*/
|
|
115
|
+
checkImpossibleTravel?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof GeoIPPolicy
|
|
120
|
+
*/
|
|
121
|
+
impossibleToleranceKm?: number;
|
|
86
122
|
}
|
|
87
123
|
/**
|
|
88
124
|
* Check if a given object implements the GeoIPPolicy interface.
|
|
@@ -63,6 +63,12 @@ function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
64
64
|
'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
65
65
|
'countriesObj': (json['countries_obj'].map(DetailedCountryField_1.DetailedCountryFieldFromJSON)),
|
|
66
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
67
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
68
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
69
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
70
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
71
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
66
72
|
};
|
|
67
73
|
}
|
|
68
74
|
function GeoIPPolicyToJSON(json) {
|
|
@@ -77,5 +83,11 @@ function GeoIPPolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
83
|
'execution_logging': value['executionLogging'],
|
|
78
84
|
'asns': value['asns'],
|
|
79
85
|
'countries': (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
86
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
87
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
88
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
89
|
+
'history_login_count': value['historyLoginCount'],
|
|
90
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
91
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
80
92
|
};
|
|
81
93
|
}
|
|
@@ -40,6 +40,42 @@ export interface GeoIPPolicyRequest {
|
|
|
40
40
|
* @memberof GeoIPPolicyRequest
|
|
41
41
|
*/
|
|
42
42
|
countries: Array<CountryCodeEnum>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof GeoIPPolicyRequest
|
|
47
|
+
*/
|
|
48
|
+
checkHistoryDistance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GeoIPPolicyRequest
|
|
53
|
+
*/
|
|
54
|
+
historyMaxDistanceKm?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof GeoIPPolicyRequest
|
|
59
|
+
*/
|
|
60
|
+
distanceToleranceKm?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GeoIPPolicyRequest
|
|
65
|
+
*/
|
|
66
|
+
historyLoginCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof GeoIPPolicyRequest
|
|
71
|
+
*/
|
|
72
|
+
checkImpossibleTravel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GeoIPPolicyRequest
|
|
77
|
+
*/
|
|
78
|
+
impossibleToleranceKm?: number;
|
|
43
79
|
}
|
|
44
80
|
/**
|
|
45
81
|
* Check if a given object implements the GeoIPPolicyRequest interface.
|
|
@@ -41,6 +41,12 @@ function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
42
42
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
43
43
|
'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
44
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
45
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
46
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
47
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
48
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
49
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
44
50
|
};
|
|
45
51
|
}
|
|
46
52
|
function GeoIPPolicyRequestToJSON(json) {
|
|
@@ -55,5 +61,11 @@ function GeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
61
|
'execution_logging': value['executionLogging'],
|
|
56
62
|
'asns': value['asns'],
|
|
57
63
|
'countries': (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
64
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
65
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
66
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
67
|
+
'history_login_count': value['historyLoginCount'],
|
|
68
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
69
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
58
70
|
};
|
|
59
71
|
}
|
|
@@ -40,6 +40,42 @@ export interface PatchedGeoIPPolicyRequest {
|
|
|
40
40
|
* @memberof PatchedGeoIPPolicyRequest
|
|
41
41
|
*/
|
|
42
42
|
countries?: Array<CountryCodeEnum>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
47
|
+
*/
|
|
48
|
+
checkHistoryDistance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
53
|
+
*/
|
|
54
|
+
historyMaxDistanceKm?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
59
|
+
*/
|
|
60
|
+
distanceToleranceKm?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
65
|
+
*/
|
|
66
|
+
historyLoginCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
71
|
+
*/
|
|
72
|
+
checkImpossibleTravel?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
77
|
+
*/
|
|
78
|
+
impossibleToleranceKm?: number;
|
|
43
79
|
}
|
|
44
80
|
/**
|
|
45
81
|
* Check if a given object implements the PatchedGeoIPPolicyRequest interface.
|
|
@@ -37,6 +37,12 @@ function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
38
38
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
39
39
|
'countries': json['countries'] == null ? undefined : (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
|
|
40
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
41
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
42
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
43
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
44
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
45
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
40
46
|
};
|
|
41
47
|
}
|
|
42
48
|
function PatchedGeoIPPolicyRequestToJSON(json) {
|
|
@@ -51,5 +57,11 @@ function PatchedGeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
51
57
|
'execution_logging': value['executionLogging'],
|
|
52
58
|
'asns': value['asns'],
|
|
53
59
|
'countries': value['countries'] == null ? undefined : (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
|
|
60
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
61
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
62
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
63
|
+
'history_login_count': value['historyLoginCount'],
|
|
64
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
65
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
54
66
|
};
|
|
55
67
|
}
|
package/package.json
CHANGED
|
@@ -100,6 +100,42 @@ export interface GeoIPPolicy {
|
|
|
100
100
|
* @memberof GeoIPPolicy
|
|
101
101
|
*/
|
|
102
102
|
readonly countriesObj: Array<DetailedCountryField>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof GeoIPPolicy
|
|
107
|
+
*/
|
|
108
|
+
checkHistoryDistance?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof GeoIPPolicy
|
|
113
|
+
*/
|
|
114
|
+
historyMaxDistanceKm?: number;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof GeoIPPolicy
|
|
119
|
+
*/
|
|
120
|
+
distanceToleranceKm?: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof GeoIPPolicy
|
|
125
|
+
*/
|
|
126
|
+
historyLoginCount?: number;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof GeoIPPolicy
|
|
131
|
+
*/
|
|
132
|
+
checkImpossibleTravel?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof GeoIPPolicy
|
|
137
|
+
*/
|
|
138
|
+
impossibleToleranceKm?: number;
|
|
103
139
|
}
|
|
104
140
|
|
|
105
141
|
/**
|
|
@@ -139,6 +175,12 @@ export function GeoIPPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
139
175
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
140
176
|
'countries': ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
|
141
177
|
'countriesObj': ((json['countries_obj'] as Array<any>).map(DetailedCountryFieldFromJSON)),
|
|
178
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
179
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
180
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
181
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
182
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
183
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
142
184
|
};
|
|
143
185
|
}
|
|
144
186
|
|
|
@@ -157,6 +199,12 @@ export function GeoIPPolicyToJSONTyped(value?: Omit<GeoIPPolicy, 'pk'|'component
|
|
|
157
199
|
'execution_logging': value['executionLogging'],
|
|
158
200
|
'asns': value['asns'],
|
|
159
201
|
'countries': ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
|
|
202
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
203
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
204
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
205
|
+
'history_login_count': value['historyLoginCount'],
|
|
206
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
207
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
160
208
|
};
|
|
161
209
|
}
|
|
162
210
|
|
|
@@ -51,6 +51,42 @@ export interface GeoIPPolicyRequest {
|
|
|
51
51
|
* @memberof GeoIPPolicyRequest
|
|
52
52
|
*/
|
|
53
53
|
countries: Array<CountryCodeEnum>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof GeoIPPolicyRequest
|
|
58
|
+
*/
|
|
59
|
+
checkHistoryDistance?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GeoIPPolicyRequest
|
|
64
|
+
*/
|
|
65
|
+
historyMaxDistanceKm?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof GeoIPPolicyRequest
|
|
70
|
+
*/
|
|
71
|
+
distanceToleranceKm?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof GeoIPPolicyRequest
|
|
76
|
+
*/
|
|
77
|
+
historyLoginCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof GeoIPPolicyRequest
|
|
82
|
+
*/
|
|
83
|
+
checkImpossibleTravel?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof GeoIPPolicyRequest
|
|
88
|
+
*/
|
|
89
|
+
impossibleToleranceKm?: number;
|
|
54
90
|
}
|
|
55
91
|
|
|
56
92
|
/**
|
|
@@ -76,6 +112,12 @@ export function GeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
76
112
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
77
113
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
78
114
|
'countries': ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
|
115
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
116
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
117
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
118
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
119
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
120
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
79
121
|
};
|
|
80
122
|
}
|
|
81
123
|
|
|
@@ -94,6 +136,12 @@ export function GeoIPPolicyRequestToJSONTyped(value?: GeoIPPolicyRequest | null,
|
|
|
94
136
|
'execution_logging': value['executionLogging'],
|
|
95
137
|
'asns': value['asns'],
|
|
96
138
|
'countries': ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
|
|
139
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
140
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
141
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
142
|
+
'history_login_count': value['historyLoginCount'],
|
|
143
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
144
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
97
145
|
};
|
|
98
146
|
}
|
|
99
147
|
|
|
@@ -51,6 +51,42 @@ export interface PatchedGeoIPPolicyRequest {
|
|
|
51
51
|
* @memberof PatchedGeoIPPolicyRequest
|
|
52
52
|
*/
|
|
53
53
|
countries?: Array<CountryCodeEnum>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
58
|
+
*/
|
|
59
|
+
checkHistoryDistance?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
64
|
+
*/
|
|
65
|
+
historyMaxDistanceKm?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
70
|
+
*/
|
|
71
|
+
distanceToleranceKm?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
76
|
+
*/
|
|
77
|
+
historyLoginCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
82
|
+
*/
|
|
83
|
+
checkImpossibleTravel?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof PatchedGeoIPPolicyRequest
|
|
88
|
+
*/
|
|
89
|
+
impossibleToleranceKm?: number;
|
|
54
90
|
}
|
|
55
91
|
|
|
56
92
|
/**
|
|
@@ -74,6 +110,12 @@ export function PatchedGeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
74
110
|
'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
|
|
75
111
|
'asns': json['asns'] == null ? undefined : json['asns'],
|
|
76
112
|
'countries': json['countries'] == null ? undefined : ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
|
|
113
|
+
'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
|
|
114
|
+
'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
|
|
115
|
+
'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
|
|
116
|
+
'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
|
|
117
|
+
'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
|
|
118
|
+
'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
|
|
77
119
|
};
|
|
78
120
|
}
|
|
79
121
|
|
|
@@ -92,6 +134,12 @@ export function PatchedGeoIPPolicyRequestToJSONTyped(value?: PatchedGeoIPPolicyR
|
|
|
92
134
|
'execution_logging': value['executionLogging'],
|
|
93
135
|
'asns': value['asns'],
|
|
94
136
|
'countries': value['countries'] == null ? undefined : ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
|
|
137
|
+
'check_history_distance': value['checkHistoryDistance'],
|
|
138
|
+
'history_max_distance_km': value['historyMaxDistanceKm'],
|
|
139
|
+
'distance_tolerance_km': value['distanceToleranceKm'],
|
|
140
|
+
'history_login_count': value['historyLoginCount'],
|
|
141
|
+
'check_impossible_travel': value['checkImpossibleTravel'],
|
|
142
|
+
'impossible_tolerance_km': value['impossibleToleranceKm'],
|
|
95
143
|
};
|
|
96
144
|
}
|
|
97
145
|
|