@goauthentik/api 2022.10.1-1668433384 → 2022.10.1-1668524752

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.
@@ -199,7 +199,7 @@ export interface PoliciesHaveibeenpwnedUsedByListRequest {
199
199
  policyUuid: string;
200
200
  }
201
201
  export interface PoliciesPasswordCreateRequest {
202
- passwordPolicyRequest: PasswordPolicyRequest;
202
+ passwordPolicyRequest?: PasswordPolicyRequest;
203
203
  }
204
204
  export interface PoliciesPasswordDestroyRequest {
205
205
  policyUuid: string;
@@ -270,7 +270,7 @@ export interface PoliciesPasswordRetrieveRequest {
270
270
  }
271
271
  export interface PoliciesPasswordUpdateRequest {
272
272
  policyUuid: string;
273
- passwordPolicyRequest: PasswordPolicyRequest;
273
+ passwordPolicyRequest?: PasswordPolicyRequest;
274
274
  }
275
275
  export interface PoliciesPasswordUsedByListRequest {
276
276
  policyUuid: string;
@@ -682,7 +682,7 @@ export declare class PoliciesApi extends runtime.BaseAPI {
682
682
  /**
683
683
  * Password Policy Viewset
684
684
  */
685
- policiesPasswordCreate(requestParameters: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy>;
685
+ policiesPasswordCreate(requestParameters?: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy>;
686
686
  /**
687
687
  * Password Policy Viewset
688
688
  */
@@ -1551,9 +1551,6 @@ class PoliciesApi extends runtime.BaseAPI {
1551
1551
  */
1552
1552
  policiesPasswordCreateRaw(requestParameters, initOverrides) {
1553
1553
  return __awaiter(this, void 0, void 0, function* () {
1554
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
1555
- throw new runtime.RequiredError('passwordPolicyRequest', 'Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordCreate.');
1556
- }
1557
1554
  const queryParameters = {};
1558
1555
  const headerParameters = {};
1559
1556
  headerParameters['Content-Type'] = 'application/json';
@@ -1573,7 +1570,7 @@ class PoliciesApi extends runtime.BaseAPI {
1573
1570
  /**
1574
1571
  * Password Policy Viewset
1575
1572
  */
1576
- policiesPasswordCreate(requestParameters, initOverrides) {
1573
+ policiesPasswordCreate(requestParameters = {}, initOverrides) {
1577
1574
  return __awaiter(this, void 0, void 0, function* () {
1578
1575
  const response = yield this.policiesPasswordCreateRaw(requestParameters, initOverrides);
1579
1576
  return yield response.value();
@@ -2030,9 +2027,6 @@ class PoliciesApi extends runtime.BaseAPI {
2030
2027
  if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
2031
2028
  throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesPasswordUpdate.');
2032
2029
  }
2033
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
2034
- throw new runtime.RequiredError('passwordPolicyRequest', 'Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordUpdate.');
2035
- }
2036
2030
  const queryParameters = {};
2037
2031
  const headerParameters = {};
2038
2032
  headerParameters['Content-Type'] = 'application/json';
@@ -199,7 +199,7 @@ export interface PoliciesHaveibeenpwnedUsedByListRequest {
199
199
  policyUuid: string;
200
200
  }
201
201
  export interface PoliciesPasswordCreateRequest {
202
- passwordPolicyRequest: PasswordPolicyRequest;
202
+ passwordPolicyRequest?: PasswordPolicyRequest;
203
203
  }
204
204
  export interface PoliciesPasswordDestroyRequest {
205
205
  policyUuid: string;
@@ -270,7 +270,7 @@ export interface PoliciesPasswordRetrieveRequest {
270
270
  }
271
271
  export interface PoliciesPasswordUpdateRequest {
272
272
  policyUuid: string;
273
- passwordPolicyRequest: PasswordPolicyRequest;
273
+ passwordPolicyRequest?: PasswordPolicyRequest;
274
274
  }
275
275
  export interface PoliciesPasswordUsedByListRequest {
276
276
  policyUuid: string;
@@ -682,7 +682,7 @@ export declare class PoliciesApi extends runtime.BaseAPI {
682
682
  /**
683
683
  * Password Policy Viewset
684
684
  */
685
- policiesPasswordCreate(requestParameters: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy>;
685
+ policiesPasswordCreate(requestParameters?: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy>;
686
686
  /**
687
687
  * Password Policy Viewset
688
688
  */
@@ -1548,9 +1548,6 @@ export class PoliciesApi extends runtime.BaseAPI {
1548
1548
  */
1549
1549
  policiesPasswordCreateRaw(requestParameters, initOverrides) {
1550
1550
  return __awaiter(this, void 0, void 0, function* () {
1551
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
1552
- throw new runtime.RequiredError('passwordPolicyRequest', 'Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordCreate.');
1553
- }
1554
1551
  const queryParameters = {};
1555
1552
  const headerParameters = {};
1556
1553
  headerParameters['Content-Type'] = 'application/json';
@@ -1570,7 +1567,7 @@ export class PoliciesApi extends runtime.BaseAPI {
1570
1567
  /**
1571
1568
  * Password Policy Viewset
1572
1569
  */
1573
- policiesPasswordCreate(requestParameters, initOverrides) {
1570
+ policiesPasswordCreate(requestParameters = {}, initOverrides) {
1574
1571
  return __awaiter(this, void 0, void 0, function* () {
1575
1572
  const response = yield this.policiesPasswordCreateRaw(requestParameters, initOverrides);
1576
1573
  return yield response.value();
@@ -2027,9 +2024,6 @@ export class PoliciesApi extends runtime.BaseAPI {
2027
2024
  if (requestParameters.policyUuid === null || requestParameters.policyUuid === undefined) {
2028
2025
  throw new runtime.RequiredError('policyUuid', 'Required parameter requestParameters.policyUuid was null or undefined when calling policiesPasswordUpdate.');
2029
2026
  }
2030
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
2031
- throw new runtime.RequiredError('passwordPolicyRequest', 'Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordUpdate.');
2032
- }
2033
2027
  const queryParameters = {};
2034
2028
  const headerParameters = {};
2035
2029
  headerParameters['Content-Type'] = 'application/json';
@@ -21,6 +21,12 @@ export interface ErrorReportingConfig {
21
21
  * @memberof ErrorReportingConfig
22
22
  */
23
23
  readonly enabled: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ErrorReportingConfig
28
+ */
29
+ readonly sentryDsn: string;
24
30
  /**
25
31
  *
26
32
  * @type {string}
@@ -20,6 +20,7 @@ export function ErrorReportingConfigFromJSONTyped(json, ignoreDiscriminator) {
20
20
  }
21
21
  return {
22
22
  'enabled': json['enabled'],
23
+ 'sentryDsn': json['sentry_dsn'],
23
24
  'environment': json['environment'],
24
25
  'sendPii': json['send_pii'],
25
26
  'tracesSampleRate': json['traces_sample_rate'],
@@ -110,7 +110,7 @@ export interface PasswordPolicy {
110
110
  * @type {string}
111
111
  * @memberof PasswordPolicy
112
112
  */
113
- errorMessage: string;
113
+ errorMessage?: string;
114
114
  /**
115
115
  *
116
116
  * @type {boolean}
@@ -35,7 +35,7 @@ export function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'amountSymbols': !exists(json, 'amount_symbols') ? undefined : json['amount_symbols'],
36
36
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
37
37
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
38
- 'errorMessage': json['error_message'],
38
+ 'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
39
39
  'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
40
40
  'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
41
41
  'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
@@ -74,7 +74,7 @@ export interface PasswordPolicyRequest {
74
74
  * @type {string}
75
75
  * @memberof PasswordPolicyRequest
76
76
  */
77
- errorMessage: string;
77
+ errorMessage?: string;
78
78
  /**
79
79
  *
80
80
  * @type {boolean}
@@ -29,7 +29,7 @@ export function PasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'amountSymbols': !exists(json, 'amount_symbols') ? undefined : json['amount_symbols'],
30
30
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
31
31
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
32
- 'errorMessage': json['error_message'],
32
+ 'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
33
33
  'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
34
34
  'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
35
35
  'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
@@ -21,6 +21,12 @@ export interface ErrorReportingConfig {
21
21
  * @memberof ErrorReportingConfig
22
22
  */
23
23
  readonly enabled: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ErrorReportingConfig
28
+ */
29
+ readonly sentryDsn: string;
24
30
  /**
25
31
  *
26
32
  * @type {string}
@@ -24,6 +24,7 @@ function ErrorReportingConfigFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'enabled': json['enabled'],
27
+ 'sentryDsn': json['sentry_dsn'],
27
28
  'environment': json['environment'],
28
29
  'sendPii': json['send_pii'],
29
30
  'tracesSampleRate': json['traces_sample_rate'],
@@ -110,7 +110,7 @@ export interface PasswordPolicy {
110
110
  * @type {string}
111
111
  * @memberof PasswordPolicy
112
112
  */
113
- errorMessage: string;
113
+ errorMessage?: string;
114
114
  /**
115
115
  *
116
116
  * @type {boolean}
@@ -39,7 +39,7 @@ function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'amountSymbols': !(0, runtime_1.exists)(json, 'amount_symbols') ? undefined : json['amount_symbols'],
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
- 'errorMessage': json['error_message'],
42
+ 'errorMessage': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
43
43
  'checkStaticRules': !(0, runtime_1.exists)(json, 'check_static_rules') ? undefined : json['check_static_rules'],
44
44
  'checkHaveIBeenPwned': !(0, runtime_1.exists)(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
45
45
  'checkZxcvbn': !(0, runtime_1.exists)(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
@@ -74,7 +74,7 @@ export interface PasswordPolicyRequest {
74
74
  * @type {string}
75
75
  * @memberof PasswordPolicyRequest
76
76
  */
77
- errorMessage: string;
77
+ errorMessage?: string;
78
78
  /**
79
79
  *
80
80
  * @type {boolean}
@@ -33,7 +33,7 @@ function PasswordPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'amountSymbols': !(0, runtime_1.exists)(json, 'amount_symbols') ? undefined : json['amount_symbols'],
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
- 'errorMessage': json['error_message'],
36
+ 'errorMessage': !(0, runtime_1.exists)(json, 'error_message') ? undefined : json['error_message'],
37
37
  'checkStaticRules': !(0, runtime_1.exists)(json, 'check_static_rules') ? undefined : json['check_static_rules'],
38
38
  'checkHaveIBeenPwned': !(0, runtime_1.exists)(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
39
39
  'checkZxcvbn': !(0, runtime_1.exists)(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.10.1-1668433384",
3
+ "version": "2022.10.1-1668524752",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -374,7 +374,7 @@ export interface PoliciesHaveibeenpwnedUsedByListRequest {
374
374
  }
375
375
 
376
376
  export interface PoliciesPasswordCreateRequest {
377
- passwordPolicyRequest: PasswordPolicyRequest;
377
+ passwordPolicyRequest?: PasswordPolicyRequest;
378
378
  }
379
379
 
380
380
  export interface PoliciesPasswordDestroyRequest {
@@ -457,7 +457,7 @@ export interface PoliciesPasswordRetrieveRequest {
457
457
 
458
458
  export interface PoliciesPasswordUpdateRequest {
459
459
  policyUuid: string;
460
- passwordPolicyRequest: PasswordPolicyRequest;
460
+ passwordPolicyRequest?: PasswordPolicyRequest;
461
461
  }
462
462
 
463
463
  export interface PoliciesPasswordUsedByListRequest {
@@ -2251,10 +2251,6 @@ export class PoliciesApi extends runtime.BaseAPI {
2251
2251
  * Password Policy Viewset
2252
2252
  */
2253
2253
  async policiesPasswordCreateRaw(requestParameters: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PasswordPolicy>> {
2254
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
2255
- throw new runtime.RequiredError('passwordPolicyRequest','Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordCreate.');
2256
- }
2257
-
2258
2254
  const queryParameters: any = {};
2259
2255
 
2260
2256
  const headerParameters: runtime.HTTPHeaders = {};
@@ -2279,7 +2275,7 @@ export class PoliciesApi extends runtime.BaseAPI {
2279
2275
  /**
2280
2276
  * Password Policy Viewset
2281
2277
  */
2282
- async policiesPasswordCreate(requestParameters: PoliciesPasswordCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy> {
2278
+ async policiesPasswordCreate(requestParameters: PoliciesPasswordCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PasswordPolicy> {
2283
2279
  const response = await this.policiesPasswordCreateRaw(requestParameters, initOverrides);
2284
2280
  return await response.value();
2285
2281
  }
@@ -2804,10 +2800,6 @@ export class PoliciesApi extends runtime.BaseAPI {
2804
2800
  throw new runtime.RequiredError('policyUuid','Required parameter requestParameters.policyUuid was null or undefined when calling policiesPasswordUpdate.');
2805
2801
  }
2806
2802
 
2807
- if (requestParameters.passwordPolicyRequest === null || requestParameters.passwordPolicyRequest === undefined) {
2808
- throw new runtime.RequiredError('passwordPolicyRequest','Required parameter requestParameters.passwordPolicyRequest was null or undefined when calling policiesPasswordUpdate.');
2809
- }
2810
-
2811
2803
  const queryParameters: any = {};
2812
2804
 
2813
2805
  const headerParameters: runtime.HTTPHeaders = {};
@@ -25,6 +25,12 @@ export interface ErrorReportingConfig {
25
25
  * @memberof ErrorReportingConfig
26
26
  */
27
27
  readonly enabled: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ErrorReportingConfig
32
+ */
33
+ readonly sentryDsn: string;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -56,6 +62,7 @@ export function ErrorReportingConfigFromJSONTyped(json: any, ignoreDiscriminator
56
62
  return {
57
63
 
58
64
  'enabled': json['enabled'],
65
+ 'sentryDsn': json['sentry_dsn'],
59
66
  'environment': json['environment'],
60
67
  'sendPii': json['send_pii'],
61
68
  'tracesSampleRate': json['traces_sample_rate'],
@@ -114,7 +114,7 @@ export interface PasswordPolicy {
114
114
  * @type {string}
115
115
  * @memberof PasswordPolicy
116
116
  */
117
- errorMessage: string;
117
+ errorMessage?: string;
118
118
  /**
119
119
  *
120
120
  * @type {boolean}
@@ -172,7 +172,7 @@ export function PasswordPolicyFromJSONTyped(json: any, ignoreDiscriminator: bool
172
172
  'amountSymbols': !exists(json, 'amount_symbols') ? undefined : json['amount_symbols'],
173
173
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
174
174
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
175
- 'errorMessage': json['error_message'],
175
+ 'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
176
176
  'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
177
177
  'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
178
178
  'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],
@@ -78,7 +78,7 @@ export interface PasswordPolicyRequest {
78
78
  * @type {string}
79
79
  * @memberof PasswordPolicyRequest
80
80
  */
81
- errorMessage: string;
81
+ errorMessage?: string;
82
82
  /**
83
83
  *
84
84
  * @type {boolean}
@@ -130,7 +130,7 @@ export function PasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminato
130
130
  'amountSymbols': !exists(json, 'amount_symbols') ? undefined : json['amount_symbols'],
131
131
  'lengthMin': !exists(json, 'length_min') ? undefined : json['length_min'],
132
132
  'symbolCharset': !exists(json, 'symbol_charset') ? undefined : json['symbol_charset'],
133
- 'errorMessage': json['error_message'],
133
+ 'errorMessage': !exists(json, 'error_message') ? undefined : json['error_message'],
134
134
  'checkStaticRules': !exists(json, 'check_static_rules') ? undefined : json['check_static_rules'],
135
135
  'checkHaveIBeenPwned': !exists(json, 'check_have_i_been_pwned') ? undefined : json['check_have_i_been_pwned'],
136
136
  'checkZxcvbn': !exists(json, 'check_zxcvbn') ? undefined : json['check_zxcvbn'],