@goauthentik/api 2025.2.4-1744808430 → 2025.2.4-1745325566

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.
Files changed (67) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/PoliciesApi.d.ts +90 -1
  3. package/dist/apis/PoliciesApi.js +283 -0
  4. package/dist/apis/RbacApi.d.ts +2 -0
  5. package/dist/apis/RbacApi.js +2 -0
  6. package/dist/esm/apis/PoliciesApi.d.ts +90 -1
  7. package/dist/esm/apis/PoliciesApi.js +284 -1
  8. package/dist/esm/apis/RbacApi.d.ts +2 -0
  9. package/dist/esm/apis/RbacApi.js +2 -0
  10. package/dist/esm/models/AppEnum.d.ts +1 -0
  11. package/dist/esm/models/AppEnum.js +1 -0
  12. package/dist/esm/models/IdentificationChallenge.d.ts +6 -0
  13. package/dist/esm/models/IdentificationChallenge.js +2 -0
  14. package/dist/esm/models/IdentificationStage.d.ts +6 -0
  15. package/dist/esm/models/IdentificationStage.js +2 -0
  16. package/dist/esm/models/IdentificationStageRequest.d.ts +6 -0
  17. package/dist/esm/models/IdentificationStageRequest.js +2 -0
  18. package/dist/esm/models/ModelEnum.d.ts +1 -0
  19. package/dist/esm/models/ModelEnum.js +1 -0
  20. package/dist/esm/models/PaginatedUniquePasswordPolicyList.d.ts +40 -0
  21. package/dist/esm/models/PaginatedUniquePasswordPolicyList.js +49 -0
  22. package/dist/esm/models/PatchedIdentificationStageRequest.d.ts +6 -0
  23. package/dist/esm/models/PatchedIdentificationStageRequest.js +2 -0
  24. package/dist/esm/models/PatchedUniquePasswordPolicyRequest.d.ts +50 -0
  25. package/dist/esm/models/PatchedUniquePasswordPolicyRequest.js +47 -0
  26. package/dist/esm/models/UniquePasswordPolicy.d.ts +86 -0
  27. package/dist/esm/models/UniquePasswordPolicy.js +67 -0
  28. package/dist/esm/models/UniquePasswordPolicyRequest.d.ts +50 -0
  29. package/dist/esm/models/UniquePasswordPolicyRequest.js +49 -0
  30. package/dist/esm/models/index.d.ts +4 -0
  31. package/dist/esm/models/index.js +4 -0
  32. package/dist/models/AppEnum.d.ts +1 -0
  33. package/dist/models/AppEnum.js +1 -0
  34. package/dist/models/IdentificationChallenge.d.ts +6 -0
  35. package/dist/models/IdentificationChallenge.js +2 -0
  36. package/dist/models/IdentificationStage.d.ts +6 -0
  37. package/dist/models/IdentificationStage.js +2 -0
  38. package/dist/models/IdentificationStageRequest.d.ts +6 -0
  39. package/dist/models/IdentificationStageRequest.js +2 -0
  40. package/dist/models/ModelEnum.d.ts +1 -0
  41. package/dist/models/ModelEnum.js +1 -0
  42. package/dist/models/PaginatedUniquePasswordPolicyList.d.ts +40 -0
  43. package/dist/models/PaginatedUniquePasswordPolicyList.js +56 -0
  44. package/dist/models/PatchedIdentificationStageRequest.d.ts +6 -0
  45. package/dist/models/PatchedIdentificationStageRequest.js +2 -0
  46. package/dist/models/PatchedUniquePasswordPolicyRequest.d.ts +50 -0
  47. package/dist/models/PatchedUniquePasswordPolicyRequest.js +54 -0
  48. package/dist/models/UniquePasswordPolicy.d.ts +86 -0
  49. package/dist/models/UniquePasswordPolicy.js +74 -0
  50. package/dist/models/UniquePasswordPolicyRequest.d.ts +50 -0
  51. package/dist/models/UniquePasswordPolicyRequest.js +56 -0
  52. package/dist/models/index.d.ts +4 -0
  53. package/dist/models/index.js +4 -0
  54. package/package.json +1 -1
  55. package/src/apis/PoliciesApi.ts +391 -0
  56. package/src/apis/RbacApi.ts +2 -0
  57. package/src/models/AppEnum.ts +1 -0
  58. package/src/models/IdentificationChallenge.ts +8 -0
  59. package/src/models/IdentificationStage.ts +8 -0
  60. package/src/models/IdentificationStageRequest.ts +8 -0
  61. package/src/models/ModelEnum.ts +1 -0
  62. package/src/models/PaginatedUniquePasswordPolicyList.ts +90 -0
  63. package/src/models/PatchedIdentificationStageRequest.ts +8 -0
  64. package/src/models/PatchedUniquePasswordPolicyRequest.ts +89 -0
  65. package/src/models/UniquePasswordPolicy.ts +138 -0
  66. package/src/models/UniquePasswordPolicyRequest.ts +90 -0
  67. package/src/models/index.ts +4 -0
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Password Uniqueness Policy Serializer
18
+ * @export
19
+ * @interface PatchedUniquePasswordPolicyRequest
20
+ */
21
+ export interface PatchedUniquePasswordPolicyRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedUniquePasswordPolicyRequest
26
+ */
27
+ name?: string;
28
+ /**
29
+ * When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
30
+ * @type {boolean}
31
+ * @memberof PatchedUniquePasswordPolicyRequest
32
+ */
33
+ executionLogging?: boolean;
34
+ /**
35
+ * Field key to check, field keys defined in Prompt stages are available.
36
+ * @type {string}
37
+ * @memberof PatchedUniquePasswordPolicyRequest
38
+ */
39
+ passwordField?: string;
40
+ /**
41
+ * Number of passwords to check against.
42
+ * @type {number}
43
+ * @memberof PatchedUniquePasswordPolicyRequest
44
+ */
45
+ numHistoricalPasswords?: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PatchedUniquePasswordPolicyRequest interface.
50
+ */
51
+ export function instanceOfPatchedUniquePasswordPolicyRequest(value: object): value is PatchedUniquePasswordPolicyRequest {
52
+ return true;
53
+ }
54
+
55
+ export function PatchedUniquePasswordPolicyRequestFromJSON(json: any): PatchedUniquePasswordPolicyRequest {
56
+ return PatchedUniquePasswordPolicyRequestFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function PatchedUniquePasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUniquePasswordPolicyRequest {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'name': json['name'] == null ? undefined : json['name'],
66
+ 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
67
+ 'passwordField': json['password_field'] == null ? undefined : json['password_field'],
68
+ 'numHistoricalPasswords': json['num_historical_passwords'] == null ? undefined : json['num_historical_passwords'],
69
+ };
70
+ }
71
+
72
+ export function PatchedUniquePasswordPolicyRequestToJSON(json: any): PatchedUniquePasswordPolicyRequest {
73
+ return PatchedUniquePasswordPolicyRequestToJSONTyped(json, false);
74
+ }
75
+
76
+ export function PatchedUniquePasswordPolicyRequestToJSONTyped(value?: PatchedUniquePasswordPolicyRequest | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'name': value['name'],
84
+ 'execution_logging': value['executionLogging'],
85
+ 'password_field': value['passwordField'],
86
+ 'num_historical_passwords': value['numHistoricalPasswords'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Password Uniqueness Policy Serializer
18
+ * @export
19
+ * @interface UniquePasswordPolicy
20
+ */
21
+ export interface UniquePasswordPolicy {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UniquePasswordPolicy
26
+ */
27
+ readonly pk: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UniquePasswordPolicy
32
+ */
33
+ name: string;
34
+ /**
35
+ * When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
36
+ * @type {boolean}
37
+ * @memberof UniquePasswordPolicy
38
+ */
39
+ executionLogging?: boolean;
40
+ /**
41
+ * Get object component so that we know how to edit the object
42
+ * @type {string}
43
+ * @memberof UniquePasswordPolicy
44
+ */
45
+ readonly component: string;
46
+ /**
47
+ * Return object's verbose_name
48
+ * @type {string}
49
+ * @memberof UniquePasswordPolicy
50
+ */
51
+ readonly verboseName: string;
52
+ /**
53
+ * Return object's plural verbose_name
54
+ * @type {string}
55
+ * @memberof UniquePasswordPolicy
56
+ */
57
+ readonly verboseNamePlural: string;
58
+ /**
59
+ * Return internal model name
60
+ * @type {string}
61
+ * @memberof UniquePasswordPolicy
62
+ */
63
+ readonly metaModelName: string;
64
+ /**
65
+ * Return objects policy is bound to
66
+ * @type {number}
67
+ * @memberof UniquePasswordPolicy
68
+ */
69
+ readonly boundTo: number;
70
+ /**
71
+ * Field key to check, field keys defined in Prompt stages are available.
72
+ * @type {string}
73
+ * @memberof UniquePasswordPolicy
74
+ */
75
+ passwordField?: string;
76
+ /**
77
+ * Number of passwords to check against.
78
+ * @type {number}
79
+ * @memberof UniquePasswordPolicy
80
+ */
81
+ numHistoricalPasswords?: number;
82
+ }
83
+
84
+ /**
85
+ * Check if a given object implements the UniquePasswordPolicy interface.
86
+ */
87
+ export function instanceOfUniquePasswordPolicy(value: object): value is UniquePasswordPolicy {
88
+ if (!('pk' in value) || value['pk'] === undefined) return false;
89
+ if (!('name' in value) || value['name'] === undefined) return false;
90
+ if (!('component' in value) || value['component'] === undefined) return false;
91
+ if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
92
+ if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
93
+ if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
94
+ if (!('boundTo' in value) || value['boundTo'] === undefined) return false;
95
+ return true;
96
+ }
97
+
98
+ export function UniquePasswordPolicyFromJSON(json: any): UniquePasswordPolicy {
99
+ return UniquePasswordPolicyFromJSONTyped(json, false);
100
+ }
101
+
102
+ export function UniquePasswordPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UniquePasswordPolicy {
103
+ if (json == null) {
104
+ return json;
105
+ }
106
+ return {
107
+
108
+ 'pk': json['pk'],
109
+ 'name': json['name'],
110
+ 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
111
+ 'component': json['component'],
112
+ 'verboseName': json['verbose_name'],
113
+ 'verboseNamePlural': json['verbose_name_plural'],
114
+ 'metaModelName': json['meta_model_name'],
115
+ 'boundTo': json['bound_to'],
116
+ 'passwordField': json['password_field'] == null ? undefined : json['password_field'],
117
+ 'numHistoricalPasswords': json['num_historical_passwords'] == null ? undefined : json['num_historical_passwords'],
118
+ };
119
+ }
120
+
121
+ export function UniquePasswordPolicyToJSON(json: any): UniquePasswordPolicy {
122
+ return UniquePasswordPolicyToJSONTyped(json, false);
123
+ }
124
+
125
+ export function UniquePasswordPolicyToJSONTyped(value?: Omit<UniquePasswordPolicy, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'bound_to'> | null, ignoreDiscriminator: boolean = false): any {
126
+ if (value == null) {
127
+ return value;
128
+ }
129
+
130
+ return {
131
+
132
+ 'name': value['name'],
133
+ 'execution_logging': value['executionLogging'],
134
+ 'password_field': value['passwordField'],
135
+ 'num_historical_passwords': value['numHistoricalPasswords'],
136
+ };
137
+ }
138
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Password Uniqueness Policy Serializer
18
+ * @export
19
+ * @interface UniquePasswordPolicyRequest
20
+ */
21
+ export interface UniquePasswordPolicyRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UniquePasswordPolicyRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ * When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
30
+ * @type {boolean}
31
+ * @memberof UniquePasswordPolicyRequest
32
+ */
33
+ executionLogging?: boolean;
34
+ /**
35
+ * Field key to check, field keys defined in Prompt stages are available.
36
+ * @type {string}
37
+ * @memberof UniquePasswordPolicyRequest
38
+ */
39
+ passwordField?: string;
40
+ /**
41
+ * Number of passwords to check against.
42
+ * @type {number}
43
+ * @memberof UniquePasswordPolicyRequest
44
+ */
45
+ numHistoricalPasswords?: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the UniquePasswordPolicyRequest interface.
50
+ */
51
+ export function instanceOfUniquePasswordPolicyRequest(value: object): value is UniquePasswordPolicyRequest {
52
+ if (!('name' in value) || value['name'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function UniquePasswordPolicyRequestFromJSON(json: any): UniquePasswordPolicyRequest {
57
+ return UniquePasswordPolicyRequestFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function UniquePasswordPolicyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UniquePasswordPolicyRequest {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'name': json['name'],
67
+ 'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
68
+ 'passwordField': json['password_field'] == null ? undefined : json['password_field'],
69
+ 'numHistoricalPasswords': json['num_historical_passwords'] == null ? undefined : json['num_historical_passwords'],
70
+ };
71
+ }
72
+
73
+ export function UniquePasswordPolicyRequestToJSON(json: any): UniquePasswordPolicyRequest {
74
+ return UniquePasswordPolicyRequestToJSONTyped(json, false);
75
+ }
76
+
77
+ export function UniquePasswordPolicyRequestToJSONTyped(value?: UniquePasswordPolicyRequest | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'name': value['name'],
85
+ 'execution_logging': value['executionLogging'],
86
+ 'password_field': value['passwordField'],
87
+ 'num_historical_passwords': value['numHistoricalPasswords'],
88
+ };
89
+ }
90
+
@@ -401,6 +401,7 @@ export * from './PaginatedTOTPDeviceList';
401
401
  export * from './PaginatedTenantList';
402
402
  export * from './PaginatedTokenList';
403
403
  export * from './PaginatedTokenModelList';
404
+ export * from './PaginatedUniquePasswordPolicyList';
404
405
  export * from './PaginatedUserAssignedObjectPermissionList';
405
406
  export * from './PaginatedUserConsentList';
406
407
  export * from './PaginatedUserDeleteStageList';
@@ -525,6 +526,7 @@ export * from './PatchedStaticDeviceRequest';
525
526
  export * from './PatchedTOTPDeviceRequest';
526
527
  export * from './PatchedTenantRequest';
527
528
  export * from './PatchedTokenRequest';
529
+ export * from './PatchedUniquePasswordPolicyRequest';
528
530
  export * from './PatchedUserDeleteStageRequest';
529
531
  export * from './PatchedUserKerberosSourceConnectionRequest';
530
532
  export * from './PatchedUserLDAPSourceConnectionRequest';
@@ -683,6 +685,8 @@ export * from './TransactionApplicationResponse';
683
685
  export * from './TransactionPolicyBindingRequest';
684
686
  export * from './TypeCreate';
685
687
  export * from './UiThemeEnum';
688
+ export * from './UniquePasswordPolicy';
689
+ export * from './UniquePasswordPolicyRequest';
686
690
  export * from './UsedBy';
687
691
  export * from './UsedByActionEnum';
688
692
  export * from './User';