@goauthentik/api 2022.10.1-1668432272 → 2022.10.1-1668433384

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.
@@ -242,9 +242,13 @@ export interface PoliciesPasswordListRequest {
242
242
  amountLowercase?: number;
243
243
  amountSymbols?: number;
244
244
  amountUppercase?: number;
245
+ checkHaveIBeenPwned?: boolean;
246
+ checkStaticRules?: boolean;
247
+ checkZxcvbn?: boolean;
245
248
  created?: Date;
246
249
  errorMessage?: string;
247
250
  executionLogging?: boolean;
251
+ hibpAllowedCount?: number;
248
252
  lastUpdated?: Date;
249
253
  lengthMin?: number;
250
254
  name?: string;
@@ -255,6 +259,7 @@ export interface PoliciesPasswordListRequest {
255
259
  policyUuid?: string;
256
260
  search?: string;
257
261
  symbolCharset?: string;
262
+ zxcvbnScoreThreshold?: number;
258
263
  }
259
264
  export interface PoliciesPasswordPartialUpdateRequest {
260
265
  policyUuid: string;
@@ -1882,6 +1882,15 @@ class PoliciesApi extends runtime.BaseAPI {
1882
1882
  if (requestParameters.amountUppercase !== undefined) {
1883
1883
  queryParameters['amount_uppercase'] = requestParameters.amountUppercase;
1884
1884
  }
1885
+ if (requestParameters.checkHaveIBeenPwned !== undefined) {
1886
+ queryParameters['check_have_i_been_pwned'] = requestParameters.checkHaveIBeenPwned;
1887
+ }
1888
+ if (requestParameters.checkStaticRules !== undefined) {
1889
+ queryParameters['check_static_rules'] = requestParameters.checkStaticRules;
1890
+ }
1891
+ if (requestParameters.checkZxcvbn !== undefined) {
1892
+ queryParameters['check_zxcvbn'] = requestParameters.checkZxcvbn;
1893
+ }
1885
1894
  if (requestParameters.created !== undefined) {
1886
1895
  queryParameters['created'] = requestParameters.created.toISOString();
1887
1896
  }
@@ -1891,6 +1900,9 @@ class PoliciesApi extends runtime.BaseAPI {
1891
1900
  if (requestParameters.executionLogging !== undefined) {
1892
1901
  queryParameters['execution_logging'] = requestParameters.executionLogging;
1893
1902
  }
1903
+ if (requestParameters.hibpAllowedCount !== undefined) {
1904
+ queryParameters['hibp_allowed_count'] = requestParameters.hibpAllowedCount;
1905
+ }
1894
1906
  if (requestParameters.lastUpdated !== undefined) {
1895
1907
  queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
1896
1908
  }
@@ -1921,6 +1933,9 @@ class PoliciesApi extends runtime.BaseAPI {
1921
1933
  if (requestParameters.symbolCharset !== undefined) {
1922
1934
  queryParameters['symbol_charset'] = requestParameters.symbolCharset;
1923
1935
  }
1936
+ if (requestParameters.zxcvbnScoreThreshold !== undefined) {
1937
+ queryParameters['zxcvbn_score_threshold'] = requestParameters.zxcvbnScoreThreshold;
1938
+ }
1924
1939
  const headerParameters = {};
1925
1940
  if (this.configuration && this.configuration.apiKey) {
1926
1941
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -242,9 +242,13 @@ export interface PoliciesPasswordListRequest {
242
242
  amountLowercase?: number;
243
243
  amountSymbols?: number;
244
244
  amountUppercase?: number;
245
+ checkHaveIBeenPwned?: boolean;
246
+ checkStaticRules?: boolean;
247
+ checkZxcvbn?: boolean;
245
248
  created?: Date;
246
249
  errorMessage?: string;
247
250
  executionLogging?: boolean;
251
+ hibpAllowedCount?: number;
248
252
  lastUpdated?: Date;
249
253
  lengthMin?: number;
250
254
  name?: string;
@@ -255,6 +259,7 @@ export interface PoliciesPasswordListRequest {
255
259
  policyUuid?: string;
256
260
  search?: string;
257
261
  symbolCharset?: string;
262
+ zxcvbnScoreThreshold?: number;
258
263
  }
259
264
  export interface PoliciesPasswordPartialUpdateRequest {
260
265
  policyUuid: string;
@@ -1879,6 +1879,15 @@ export class PoliciesApi extends runtime.BaseAPI {
1879
1879
  if (requestParameters.amountUppercase !== undefined) {
1880
1880
  queryParameters['amount_uppercase'] = requestParameters.amountUppercase;
1881
1881
  }
1882
+ if (requestParameters.checkHaveIBeenPwned !== undefined) {
1883
+ queryParameters['check_have_i_been_pwned'] = requestParameters.checkHaveIBeenPwned;
1884
+ }
1885
+ if (requestParameters.checkStaticRules !== undefined) {
1886
+ queryParameters['check_static_rules'] = requestParameters.checkStaticRules;
1887
+ }
1888
+ if (requestParameters.checkZxcvbn !== undefined) {
1889
+ queryParameters['check_zxcvbn'] = requestParameters.checkZxcvbn;
1890
+ }
1882
1891
  if (requestParameters.created !== undefined) {
1883
1892
  queryParameters['created'] = requestParameters.created.toISOString();
1884
1893
  }
@@ -1888,6 +1897,9 @@ export class PoliciesApi extends runtime.BaseAPI {
1888
1897
  if (requestParameters.executionLogging !== undefined) {
1889
1898
  queryParameters['execution_logging'] = requestParameters.executionLogging;
1890
1899
  }
1900
+ if (requestParameters.hibpAllowedCount !== undefined) {
1901
+ queryParameters['hibp_allowed_count'] = requestParameters.hibpAllowedCount;
1902
+ }
1891
1903
  if (requestParameters.lastUpdated !== undefined) {
1892
1904
  queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
1893
1905
  }
@@ -1918,6 +1930,9 @@ export class PoliciesApi extends runtime.BaseAPI {
1918
1930
  if (requestParameters.symbolCharset !== undefined) {
1919
1931
  queryParameters['symbol_charset'] = requestParameters.symbolCharset;
1920
1932
  }
1933
+ if (requestParameters.zxcvbnScoreThreshold !== undefined) {
1934
+ queryParameters['zxcvbn_score_threshold'] = requestParameters.zxcvbnScoreThreshold;
1935
+ }
1921
1936
  const headerParameters = {};
1922
1937
  if (this.configuration && this.configuration.apiKey) {
1923
1938
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -111,6 +111,36 @@ export interface PasswordPolicy {
111
111
  * @memberof PasswordPolicy
112
112
  */
113
113
  errorMessage: string;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof PasswordPolicy
118
+ */
119
+ checkStaticRules?: boolean;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof PasswordPolicy
124
+ */
125
+ checkHaveIBeenPwned?: boolean;
126
+ /**
127
+ *
128
+ * @type {boolean}
129
+ * @memberof PasswordPolicy
130
+ */
131
+ checkZxcvbn?: boolean;
132
+ /**
133
+ * How many times the password hash is allowed to be on haveibeenpwned
134
+ * @type {number}
135
+ * @memberof PasswordPolicy
136
+ */
137
+ hibpAllowedCount?: number;
138
+ /**
139
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
140
+ * @type {number}
141
+ * @memberof PasswordPolicy
142
+ */
143
+ zxcvbnScoreThreshold?: number;
114
144
  }
115
145
  export declare function PasswordPolicyFromJSON(json: any): PasswordPolicy;
116
146
  export declare function PasswordPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicy;
@@ -36,6 +36,11 @@ export function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
37
37
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
38
38
  'errorMessage': json['error_message'],
39
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
40
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
41
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
42
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
43
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
39
44
  };
40
45
  }
41
46
  export function PasswordPolicyToJSON(value) {
@@ -56,5 +61,10 @@ export function PasswordPolicyToJSON(value) {
56
61
  'length_min': value.lengthMin,
57
62
  'symbol_charset': value.symbolCharset,
58
63
  'error_message': value.errorMessage,
64
+ 'check_static_rules': value.checkStaticRules,
65
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
66
+ 'check_zxcvbn': value.checkZxcvbn,
67
+ 'hibp_allowed_count': value.hibpAllowedCount,
68
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
59
69
  };
60
70
  }
@@ -75,6 +75,36 @@ export interface PasswordPolicyRequest {
75
75
  * @memberof PasswordPolicyRequest
76
76
  */
77
77
  errorMessage: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof PasswordPolicyRequest
82
+ */
83
+ checkStaticRules?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof PasswordPolicyRequest
88
+ */
89
+ checkHaveIBeenPwned?: boolean;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof PasswordPolicyRequest
94
+ */
95
+ checkZxcvbn?: boolean;
96
+ /**
97
+ * How many times the password hash is allowed to be on haveibeenpwned
98
+ * @type {number}
99
+ * @memberof PasswordPolicyRequest
100
+ */
101
+ hibpAllowedCount?: number;
102
+ /**
103
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
104
+ * @type {number}
105
+ * @memberof PasswordPolicyRequest
106
+ */
107
+ zxcvbnScoreThreshold?: number;
78
108
  }
79
109
  export declare function PasswordPolicyRequestFromJSON(json: any): PasswordPolicyRequest;
80
110
  export declare function PasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicyRequest;
@@ -30,6 +30,11 @@ export function PasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
31
31
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
32
32
  'errorMessage': json['error_message'],
33
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
34
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
35
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
36
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
37
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
33
38
  };
34
39
  }
35
40
  export function PasswordPolicyRequestToJSON(value) {
@@ -50,5 +55,10 @@ export function PasswordPolicyRequestToJSON(value) {
50
55
  'length_min': value.lengthMin,
51
56
  'symbol_charset': value.symbolCharset,
52
57
  'error_message': value.errorMessage,
58
+ 'check_static_rules': value.checkStaticRules,
59
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
60
+ 'check_zxcvbn': value.checkZxcvbn,
61
+ 'hibp_allowed_count': value.hibpAllowedCount,
62
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
53
63
  };
54
64
  }
@@ -75,6 +75,36 @@ export interface PatchedPasswordPolicyRequest {
75
75
  * @memberof PatchedPasswordPolicyRequest
76
76
  */
77
77
  errorMessage?: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof PatchedPasswordPolicyRequest
82
+ */
83
+ checkStaticRules?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof PatchedPasswordPolicyRequest
88
+ */
89
+ checkHaveIBeenPwned?: boolean;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof PatchedPasswordPolicyRequest
94
+ */
95
+ checkZxcvbn?: boolean;
96
+ /**
97
+ * How many times the password hash is allowed to be on haveibeenpwned
98
+ * @type {number}
99
+ * @memberof PatchedPasswordPolicyRequest
100
+ */
101
+ hibpAllowedCount?: number;
102
+ /**
103
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
104
+ * @type {number}
105
+ * @memberof PatchedPasswordPolicyRequest
106
+ */
107
+ zxcvbnScoreThreshold?: number;
78
108
  }
79
109
  export declare function PatchedPasswordPolicyRequestFromJSON(json: any): PatchedPasswordPolicyRequest;
80
110
  export declare function PatchedPasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPasswordPolicyRequest;
@@ -30,6 +30,11 @@ export function PatchedPasswordPolicyRequestFromJSONTyped(json, ignoreDiscrimina
30
30
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
31
31
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
32
32
  'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
33
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
34
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
35
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
36
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
37
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
33
38
  };
34
39
  }
35
40
  export function PatchedPasswordPolicyRequestToJSON(value) {
@@ -50,5 +55,10 @@ export function PatchedPasswordPolicyRequestToJSON(value) {
50
55
  'length_min': value.lengthMin,
51
56
  'symbol_charset': value.symbolCharset,
52
57
  'error_message': value.errorMessage,
58
+ 'check_static_rules': value.checkStaticRules,
59
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
60
+ 'check_zxcvbn': value.checkZxcvbn,
61
+ 'hibp_allowed_count': value.hibpAllowedCount,
62
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
53
63
  };
54
64
  }
@@ -111,6 +111,36 @@ export interface PasswordPolicy {
111
111
  * @memberof PasswordPolicy
112
112
  */
113
113
  errorMessage: string;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof PasswordPolicy
118
+ */
119
+ checkStaticRules?: boolean;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof PasswordPolicy
124
+ */
125
+ checkHaveIBeenPwned?: boolean;
126
+ /**
127
+ *
128
+ * @type {boolean}
129
+ * @memberof PasswordPolicy
130
+ */
131
+ checkZxcvbn?: boolean;
132
+ /**
133
+ * How many times the password hash is allowed to be on haveibeenpwned
134
+ * @type {number}
135
+ * @memberof PasswordPolicy
136
+ */
137
+ hibpAllowedCount?: number;
138
+ /**
139
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
140
+ * @type {number}
141
+ * @memberof PasswordPolicy
142
+ */
143
+ zxcvbnScoreThreshold?: number;
114
144
  }
115
145
  export declare function PasswordPolicyFromJSON(json: any): PasswordPolicy;
116
146
  export declare function PasswordPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicy;
@@ -40,6 +40,11 @@ function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'lengthMin': !(0, runtime_1.exists)(json, 'length_min') ? undefined : json['length_min'],
41
41
  'symbolCharset': !(0, runtime_1.exists)(json, 'symbol_charset') ? undefined : json['symbol_charset'],
42
42
  'errorMessage': json['error_message'],
43
+ 'checkStaticRules': !(0, runtime_1.exists)(json, 'check_static_rules') ? undefined : json['check_static_rules'],
44
+ 'checkHaveIBeenPwned': !(0, runtime_1.exists)(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
45
+ 'checkZxcvbn': !(0, runtime_1.exists)(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
46
+ 'hibpAllowedCount': !(0, runtime_1.exists)(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
47
+ 'zxcvbnScoreThreshold': !(0, runtime_1.exists)(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
43
48
  };
44
49
  }
45
50
  exports.PasswordPolicyFromJSONTyped = PasswordPolicyFromJSONTyped;
@@ -61,6 +66,11 @@ function PasswordPolicyToJSON(value) {
61
66
  'length_min': value.lengthMin,
62
67
  'symbol_charset': value.symbolCharset,
63
68
  'error_message': value.errorMessage,
69
+ 'check_static_rules': value.checkStaticRules,
70
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
71
+ 'check_zxcvbn': value.checkZxcvbn,
72
+ 'hibp_allowed_count': value.hibpAllowedCount,
73
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
64
74
  };
65
75
  }
66
76
  exports.PasswordPolicyToJSON = PasswordPolicyToJSON;
@@ -75,6 +75,36 @@ export interface PasswordPolicyRequest {
75
75
  * @memberof PasswordPolicyRequest
76
76
  */
77
77
  errorMessage: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof PasswordPolicyRequest
82
+ */
83
+ checkStaticRules?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof PasswordPolicyRequest
88
+ */
89
+ checkHaveIBeenPwned?: boolean;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof PasswordPolicyRequest
94
+ */
95
+ checkZxcvbn?: boolean;
96
+ /**
97
+ * How many times the password hash is allowed to be on haveibeenpwned
98
+ * @type {number}
99
+ * @memberof PasswordPolicyRequest
100
+ */
101
+ hibpAllowedCount?: number;
102
+ /**
103
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
104
+ * @type {number}
105
+ * @memberof PasswordPolicyRequest
106
+ */
107
+ zxcvbnScoreThreshold?: number;
78
108
  }
79
109
  export declare function PasswordPolicyRequestFromJSON(json: any): PasswordPolicyRequest;
80
110
  export declare function PasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicyRequest;
@@ -34,6 +34,11 @@ function PasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'lengthMin': !(0, runtime_1.exists)(json, 'length_min') ? undefined : json['length_min'],
35
35
  'symbolCharset': !(0, runtime_1.exists)(json, 'symbol_charset') ? undefined : json['symbol_charset'],
36
36
  'errorMessage': json['error_message'],
37
+ 'checkStaticRules': !(0, runtime_1.exists)(json, 'check_static_rules') ? undefined : json['check_static_rules'],
38
+ 'checkHaveIBeenPwned': !(0, runtime_1.exists)(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
39
+ 'checkZxcvbn': !(0, runtime_1.exists)(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
40
+ 'hibpAllowedCount': !(0, runtime_1.exists)(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
41
+ 'zxcvbnScoreThreshold': !(0, runtime_1.exists)(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
37
42
  };
38
43
  }
39
44
  exports.PasswordPolicyRequestFromJSONTyped = PasswordPolicyRequestFromJSONTyped;
@@ -55,6 +60,11 @@ function PasswordPolicyRequestToJSON(value) {
55
60
  'length_min': value.lengthMin,
56
61
  'symbol_charset': value.symbolCharset,
57
62
  'error_message': value.errorMessage,
63
+ 'check_static_rules': value.checkStaticRules,
64
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
65
+ 'check_zxcvbn': value.checkZxcvbn,
66
+ 'hibp_allowed_count': value.hibpAllowedCount,
67
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
58
68
  };
59
69
  }
60
70
  exports.PasswordPolicyRequestToJSON = PasswordPolicyRequestToJSON;
@@ -75,6 +75,36 @@ export interface PatchedPasswordPolicyRequest {
75
75
  * @memberof PatchedPasswordPolicyRequest
76
76
  */
77
77
  errorMessage?: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof PatchedPasswordPolicyRequest
82
+ */
83
+ checkStaticRules?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof PatchedPasswordPolicyRequest
88
+ */
89
+ checkHaveIBeenPwned?: boolean;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof PatchedPasswordPolicyRequest
94
+ */
95
+ checkZxcvbn?: boolean;
96
+ /**
97
+ * How many times the password hash is allowed to be on haveibeenpwned
98
+ * @type {number}
99
+ * @memberof PatchedPasswordPolicyRequest
100
+ */
101
+ hibpAllowedCount?: number;
102
+ /**
103
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
104
+ * @type {number}
105
+ * @memberof PatchedPasswordPolicyRequest
106
+ */
107
+ zxcvbnScoreThreshold?: number;
78
108
  }
79
109
  export declare function PatchedPasswordPolicyRequestFromJSON(json: any): PatchedPasswordPolicyRequest;
80
110
  export declare function PatchedPasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPasswordPolicyRequest;
@@ -34,6 +34,11 @@ function PatchedPasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'lengthMin': !(0, runtime_1.exists)(json, 'length_min') ? undefined : json['length_min'],
35
35
  'symbolCharset': !(0, runtime_1.exists)(json, 'symbol_charset') ? undefined : json['symbol_charset'],
36
36
  'errorMessage': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
37
+ 'checkStaticRules': !(0, runtime_1.exists)(json, 'check_static_rules') ? undefined : json['check_static_rules'],
38
+ 'checkHaveIBeenPwned': !(0, runtime_1.exists)(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
39
+ 'checkZxcvbn': !(0, runtime_1.exists)(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
40
+ 'hibpAllowedCount': !(0, runtime_1.exists)(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
41
+ 'zxcvbnScoreThreshold': !(0, runtime_1.exists)(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
37
42
  };
38
43
  }
39
44
  exports.PatchedPasswordPolicyRequestFromJSONTyped = PatchedPasswordPolicyRequestFromJSONTyped;
@@ -55,6 +60,11 @@ function PatchedPasswordPolicyRequestToJSON(value) {
55
60
  'length_min': value.lengthMin,
56
61
  'symbol_charset': value.symbolCharset,
57
62
  'error_message': value.errorMessage,
63
+ 'check_static_rules': value.checkStaticRules,
64
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
65
+ 'check_zxcvbn': value.checkZxcvbn,
66
+ 'hibp_allowed_count': value.hibpAllowedCount,
67
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
58
68
  };
59
69
  }
60
70
  exports.PatchedPasswordPolicyRequestToJSON = PatchedPasswordPolicyRequestToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.10.1-1668432272",
3
+ "version": "2022.10.1-1668433384",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -426,9 +426,13 @@ export interface PoliciesPasswordListRequest {
426
426
  amountLowercase?: number;
427
427
  amountSymbols?: number;
428
428
  amountUppercase?: number;
429
+ checkHaveIBeenPwned?: boolean;
430
+ checkStaticRules?: boolean;
431
+ checkZxcvbn?: boolean;
429
432
  created?: Date;
430
433
  errorMessage?: string;
431
434
  executionLogging?: boolean;
435
+ hibpAllowedCount?: number;
432
436
  lastUpdated?: Date;
433
437
  lengthMin?: number;
434
438
  name?: string;
@@ -439,6 +443,7 @@ export interface PoliciesPasswordListRequest {
439
443
  policyUuid?: string;
440
444
  search?: string;
441
445
  symbolCharset?: string;
446
+ zxcvbnScoreThreshold?: number;
442
447
  }
443
448
 
444
449
  export interface PoliciesPasswordPartialUpdateRequest {
@@ -2624,6 +2629,18 @@ export class PoliciesApi extends runtime.BaseAPI {
2624
2629
  queryParameters['amount_uppercase'] = requestParameters.amountUppercase;
2625
2630
  }
2626
2631
 
2632
+ if (requestParameters.checkHaveIBeenPwned !== undefined) {
2633
+ queryParameters['check_have_i_been_pwned'] = requestParameters.checkHaveIBeenPwned;
2634
+ }
2635
+
2636
+ if (requestParameters.checkStaticRules !== undefined) {
2637
+ queryParameters['check_static_rules'] = requestParameters.checkStaticRules;
2638
+ }
2639
+
2640
+ if (requestParameters.checkZxcvbn !== undefined) {
2641
+ queryParameters['check_zxcvbn'] = requestParameters.checkZxcvbn;
2642
+ }
2643
+
2627
2644
  if (requestParameters.created !== undefined) {
2628
2645
  queryParameters['created'] = (requestParameters.created as any).toISOString();
2629
2646
  }
@@ -2636,6 +2653,10 @@ export class PoliciesApi extends runtime.BaseAPI {
2636
2653
  queryParameters['execution_logging'] = requestParameters.executionLogging;
2637
2654
  }
2638
2655
 
2656
+ if (requestParameters.hibpAllowedCount !== undefined) {
2657
+ queryParameters['hibp_allowed_count'] = requestParameters.hibpAllowedCount;
2658
+ }
2659
+
2639
2660
  if (requestParameters.lastUpdated !== undefined) {
2640
2661
  queryParameters['last_updated'] = (requestParameters.lastUpdated as any).toISOString();
2641
2662
  }
@@ -2676,6 +2697,10 @@ export class PoliciesApi extends runtime.BaseAPI {
2676
2697
  queryParameters['symbol_charset'] = requestParameters.symbolCharset;
2677
2698
  }
2678
2699
 
2700
+ if (requestParameters.zxcvbnScoreThreshold !== undefined) {
2701
+ queryParameters['zxcvbn_score_threshold'] = requestParameters.zxcvbnScoreThreshold;
2702
+ }
2703
+
2679
2704
  const headerParameters: runtime.HTTPHeaders = {};
2680
2705
 
2681
2706
  if (this.configuration && this.configuration.apiKey) {
@@ -115,6 +115,36 @@ export interface PasswordPolicy {
115
115
  * @memberof PasswordPolicy
116
116
  */
117
117
  errorMessage: string;
118
+ /**
119
+ *
120
+ * @type {boolean}
121
+ * @memberof PasswordPolicy
122
+ */
123
+ checkStaticRules?: boolean;
124
+ /**
125
+ *
126
+ * @type {boolean}
127
+ * @memberof PasswordPolicy
128
+ */
129
+ checkHaveIBeenPwned?: boolean;
130
+ /**
131
+ *
132
+ * @type {boolean}
133
+ * @memberof PasswordPolicy
134
+ */
135
+ checkZxcvbn?: boolean;
136
+ /**
137
+ * How many times the password hash is allowed to be on haveibeenpwned
138
+ * @type {number}
139
+ * @memberof PasswordPolicy
140
+ */
141
+ hibpAllowedCount?: number;
142
+ /**
143
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
144
+ * @type {number}
145
+ * @memberof PasswordPolicy
146
+ */
147
+ zxcvbnScoreThreshold?: number;
118
148
  }
119
149
 
120
150
  export function PasswordPolicyFromJSON(json: any): PasswordPolicy {
@@ -143,6 +173,11 @@ export function PasswordPolicyFromJSONTyped(json: any, ignoreDiscriminator: bool
143
173
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
144
174
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
145
175
  'errorMessage': json['error_message'],
176
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
177
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
178
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
179
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
180
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
146
181
  };
147
182
  }
148
183
 
@@ -165,6 +200,11 @@ export function PasswordPolicyToJSON(value?: PasswordPolicy | null): any {
165
200
  'length_min': value.lengthMin,
166
201
  'symbol_charset': value.symbolCharset,
167
202
  'error_message': value.errorMessage,
203
+ 'check_static_rules': value.checkStaticRules,
204
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
205
+ 'check_zxcvbn': value.checkZxcvbn,
206
+ 'hibp_allowed_count': value.hibpAllowedCount,
207
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
168
208
  };
169
209
  }
170
210
 
@@ -79,6 +79,36 @@ export interface PasswordPolicyRequest {
79
79
  * @memberof PasswordPolicyRequest
80
80
  */
81
81
  errorMessage: string;
82
+ /**
83
+ *
84
+ * @type {boolean}
85
+ * @memberof PasswordPolicyRequest
86
+ */
87
+ checkStaticRules?: boolean;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof PasswordPolicyRequest
92
+ */
93
+ checkHaveIBeenPwned?: boolean;
94
+ /**
95
+ *
96
+ * @type {boolean}
97
+ * @memberof PasswordPolicyRequest
98
+ */
99
+ checkZxcvbn?: boolean;
100
+ /**
101
+ * How many times the password hash is allowed to be on haveibeenpwned
102
+ * @type {number}
103
+ * @memberof PasswordPolicyRequest
104
+ */
105
+ hibpAllowedCount?: number;
106
+ /**
107
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
108
+ * @type {number}
109
+ * @memberof PasswordPolicyRequest
110
+ */
111
+ zxcvbnScoreThreshold?: number;
82
112
  }
83
113
 
84
114
  export function PasswordPolicyRequestFromJSON(json: any): PasswordPolicyRequest {
@@ -101,6 +131,11 @@ export function PasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminato
101
131
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
102
132
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
103
133
  'errorMessage': json['error_message'],
134
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
135
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
136
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
137
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
138
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
104
139
  };
105
140
  }
106
141
 
@@ -123,6 +158,11 @@ export function PasswordPolicyRequestToJSON(value?: PasswordPolicyRequest | null
123
158
  'length_min': value.lengthMin,
124
159
  'symbol_charset': value.symbolCharset,
125
160
  'error_message': value.errorMessage,
161
+ 'check_static_rules': value.checkStaticRules,
162
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
163
+ 'check_zxcvbn': value.checkZxcvbn,
164
+ 'hibp_allowed_count': value.hibpAllowedCount,
165
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
126
166
  };
127
167
  }
128
168
 
@@ -79,6 +79,36 @@ export interface PatchedPasswordPolicyRequest {
79
79
  * @memberof PatchedPasswordPolicyRequest
80
80
  */
81
81
  errorMessage?: string;
82
+ /**
83
+ *
84
+ * @type {boolean}
85
+ * @memberof PatchedPasswordPolicyRequest
86
+ */
87
+ checkStaticRules?: boolean;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof PatchedPasswordPolicyRequest
92
+ */
93
+ checkHaveIBeenPwned?: boolean;
94
+ /**
95
+ *
96
+ * @type {boolean}
97
+ * @memberof PatchedPasswordPolicyRequest
98
+ */
99
+ checkZxcvbn?: boolean;
100
+ /**
101
+ * How many times the password hash is allowed to be on haveibeenpwned
102
+ * @type {number}
103
+ * @memberof PatchedPasswordPolicyRequest
104
+ */
105
+ hibpAllowedCount?: number;
106
+ /**
107
+ * If the zxcvbn score is equal or less than this value, the policy will fail.
108
+ * @type {number}
109
+ * @memberof PatchedPasswordPolicyRequest
110
+ */
111
+ zxcvbnScoreThreshold?: number;
82
112
  }
83
113
 
84
114
  export function PatchedPasswordPolicyRequestFromJSON(json: any): PatchedPasswordPolicyRequest {
@@ -101,6 +131,11 @@ export function PatchedPasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscr
101
131
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
102
132
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
103
133
  'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
134
+ 'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
135
+ 'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
136
+ 'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
137
+ 'hibpAllowedCount': !exists(json, 'hibp_allowed_count') ? undefined : json['hibp_allowed_count'],
138
+ 'zxcvbnScoreThreshold': !exists(json, 'zxcvbn_score_threshold') ? undefined : json['zxcvbn_score_threshold'],
104
139
  };
105
140
  }
106
141
 
@@ -123,6 +158,11 @@ export function PatchedPasswordPolicyRequestToJSON(value?: PatchedPasswordPolicy
123
158
  'length_min': value.lengthMin,
124
159
  'symbol_charset': value.symbolCharset,
125
160
  'error_message': value.errorMessage,
161
+ 'check_static_rules': value.checkStaticRules,
162
+ 'check_have_i_been_pwned': value.checkHaveIBeenPwned,
163
+ 'check_zxcvbn': value.checkZxcvbn,
164
+ 'hibp_allowed_count': value.hibpAllowedCount,
165
+ 'zxcvbn_score_threshold': value.zxcvbnScoreThreshold,
126
166
  };
127
167
  }
128
168