@goauthentik/api 2024.4.1-1714149838 → 2024.4.1-1714957644

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/ProvidersApi.d.ts +4 -0
  3. package/dist/apis/ProvidersApi.js +4 -0
  4. package/dist/apis/SourcesApi.d.ts +4 -0
  5. package/dist/apis/SourcesApi.js +4 -0
  6. package/dist/esm/apis/ProvidersApi.d.ts +4 -0
  7. package/dist/esm/apis/ProvidersApi.js +4 -0
  8. package/dist/esm/apis/SourcesApi.d.ts +4 -0
  9. package/dist/esm/apis/SourcesApi.js +4 -0
  10. package/dist/esm/models/AlgEnum.d.ts +24 -0
  11. package/dist/esm/models/AlgEnum.js +31 -0
  12. package/dist/esm/models/CertificateGenerationRequest.d.ts +7 -0
  13. package/dist/esm/models/CertificateGenerationRequest.js +3 -0
  14. package/dist/esm/models/SignatureAlgorithmEnum.d.ts +4 -0
  15. package/dist/esm/models/SignatureAlgorithmEnum.js +4 -0
  16. package/dist/esm/models/SystemTask.d.ts +12 -0
  17. package/dist/esm/models/SystemTask.js +4 -0
  18. package/dist/esm/models/index.d.ts +1 -0
  19. package/dist/esm/models/index.js +1 -0
  20. package/dist/models/AlgEnum.d.ts +24 -0
  21. package/dist/models/AlgEnum.js +37 -0
  22. package/dist/models/CertificateGenerationRequest.d.ts +7 -0
  23. package/dist/models/CertificateGenerationRequest.js +3 -0
  24. package/dist/models/SignatureAlgorithmEnum.d.ts +4 -0
  25. package/dist/models/SignatureAlgorithmEnum.js +4 -0
  26. package/dist/models/SystemTask.d.ts +12 -0
  27. package/dist/models/SystemTask.js +4 -0
  28. package/dist/models/index.d.ts +1 -0
  29. package/dist/models/index.js +1 -0
  30. package/package.json +1 -1
  31. package/src/apis/ProvidersApi.ts +4 -0
  32. package/src/apis/SourcesApi.ts +4 -0
  33. package/src/models/AlgEnum.ts +39 -0
  34. package/src/models/CertificateGenerationRequest.ts +15 -0
  35. package/src/models/SignatureAlgorithmEnum.ts +4 -0
  36. package/src/models/SystemTask.ts +16 -0
  37. package/src/models/index.ts +1 -0
@@ -26,6 +26,7 @@ src/apis/TenantsApi.ts
26
26
  src/apis/index.ts
27
27
  src/index.ts
28
28
  src/models/AccessDeniedChallenge.ts
29
+ src/models/AlgEnum.ts
29
30
  src/models/App.ts
30
31
  src/models/AppEnum.ts
31
32
  src/models/AppleChallengeResponseRequest.ts
@@ -837,6 +837,10 @@ export type ProvidersSamlListDigestAlgorithmEnum = typeof ProvidersSamlListDiges
837
837
  export declare const ProvidersSamlListSignatureAlgorithmEnum: {
838
838
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
839
839
  readonly _200009XmldsigrsaSha1: "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
840
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
841
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
842
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
843
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
840
844
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
841
845
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
842
846
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
@@ -2557,6 +2557,10 @@ exports.ProvidersSamlListDigestAlgorithmEnum = {
2557
2557
  exports.ProvidersSamlListSignatureAlgorithmEnum = {
2558
2558
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
2559
2559
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
2560
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
2561
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
2562
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
2563
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
2560
2564
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
2561
2565
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
2562
2566
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -1233,6 +1233,10 @@ export type SourcesSamlListPolicyEngineModeEnum = typeof SourcesSamlListPolicyEn
1233
1233
  export declare const SourcesSamlListSignatureAlgorithmEnum: {
1234
1234
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
1235
1235
  readonly _200009XmldsigrsaSha1: "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
1236
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
1237
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
1238
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
1239
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
1236
1240
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
1237
1241
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
1238
1242
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
@@ -3723,6 +3723,10 @@ exports.SourcesSamlListPolicyEngineModeEnum = {
3723
3723
  exports.SourcesSamlListSignatureAlgorithmEnum = {
3724
3724
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
3725
3725
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
3726
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
3727
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
3728
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
3729
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
3726
3730
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
3727
3731
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
3728
3732
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -837,6 +837,10 @@ export type ProvidersSamlListDigestAlgorithmEnum = typeof ProvidersSamlListDiges
837
837
  export declare const ProvidersSamlListSignatureAlgorithmEnum: {
838
838
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
839
839
  readonly _200009XmldsigrsaSha1: "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
840
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
841
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
842
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
843
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
840
844
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
841
845
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
842
846
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
@@ -2553,6 +2553,10 @@ export const ProvidersSamlListDigestAlgorithmEnum = {
2553
2553
  export const ProvidersSamlListSignatureAlgorithmEnum = {
2554
2554
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
2555
2555
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
2556
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
2557
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
2558
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
2559
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
2556
2560
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
2557
2561
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
2558
2562
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -1233,6 +1233,10 @@ export type SourcesSamlListPolicyEngineModeEnum = typeof SourcesSamlListPolicyEn
1233
1233
  export declare const SourcesSamlListSignatureAlgorithmEnum: {
1234
1234
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
1235
1235
  readonly _200009XmldsigrsaSha1: "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
1236
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
1237
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
1238
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
1239
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
1236
1240
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
1237
1241
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
1238
1242
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
@@ -3719,6 +3719,10 @@ export const SourcesSamlListPolicyEngineModeEnum = {
3719
3719
  export const SourcesSamlListSignatureAlgorithmEnum = {
3720
3720
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
3721
3721
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
3722
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
3723
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
3724
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
3725
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
3722
3726
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
3723
3727
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
3724
3728
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -0,0 +1,24 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.1
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const AlgEnum: {
17
+ readonly Rsa: "rsa";
18
+ readonly Ecdsa: "ecdsa";
19
+ readonly UnknownDefaultOpenApi: "11184809";
20
+ };
21
+ export type AlgEnum = typeof AlgEnum[keyof typeof AlgEnum];
22
+ export declare function AlgEnumFromJSON(json: any): AlgEnum;
23
+ export declare function AlgEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlgEnum;
24
+ export declare function AlgEnumToJSON(value?: AlgEnum | null): any;
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.1
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
+ *
16
+ * @export
17
+ */
18
+ export const AlgEnum = {
19
+ Rsa: 'rsa',
20
+ Ecdsa: 'ecdsa',
21
+ UnknownDefaultOpenApi: '11184809'
22
+ };
23
+ export function AlgEnumFromJSON(json) {
24
+ return AlgEnumFromJSONTyped(json, false);
25
+ }
26
+ export function AlgEnumFromJSONTyped(json, ignoreDiscriminator) {
27
+ return json;
28
+ }
29
+ export function AlgEnumToJSON(value) {
30
+ return value;
31
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AlgEnum } from './AlgEnum';
12
13
  /**
13
14
  * Certificate generation parameters
14
15
  * @export
@@ -33,6 +34,12 @@ export interface CertificateGenerationRequest {
33
34
  * @memberof CertificateGenerationRequest
34
35
  */
35
36
  validityDays: number;
37
+ /**
38
+ *
39
+ * @type {AlgEnum}
40
+ * @memberof CertificateGenerationRequest
41
+ */
42
+ alg?: AlgEnum;
36
43
  }
37
44
  /**
38
45
  * Check if a given object implements the CertificateGenerationRequest interface.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { AlgEnumFromJSON, AlgEnumToJSON, } from './AlgEnum';
15
16
  /**
16
17
  * Check if a given object implements the CertificateGenerationRequest interface.
17
18
  */
@@ -32,6 +33,7 @@ export function CertificateGenerationRequestFromJSONTyped(json, ignoreDiscrimina
32
33
  'commonName': json['common_name'],
33
34
  'subjectAltName': !exists(json, 'subject_alt_name') ? undefined : json['subject_alt_name'],
34
35
  'validityDays': json['validity_days'],
36
+ 'alg': !exists(json, 'alg') ? undefined : AlgEnumFromJSON(json['alg']),
35
37
  };
36
38
  }
37
39
  export function CertificateGenerationRequestToJSON(value) {
@@ -45,5 +47,6 @@ export function CertificateGenerationRequestToJSON(value) {
45
47
  'common_name': value.commonName,
46
48
  'subject_alt_name': value.subjectAltName,
47
49
  'validity_days': value.validityDays,
50
+ 'alg': AlgEnumToJSON(value.alg),
48
51
  };
49
52
  }
@@ -18,6 +18,10 @@ export declare const SignatureAlgorithmEnum: {
18
18
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
19
19
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
20
20
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
21
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
22
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
23
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
24
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
21
25
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
22
26
  readonly UnknownDefaultOpenApi: "11184809";
23
27
  };
@@ -20,6 +20,10 @@ export const SignatureAlgorithmEnum = {
20
20
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
21
21
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
22
22
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
23
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
24
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
25
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
26
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
23
27
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
24
28
  UnknownDefaultOpenApi: '11184809'
25
29
  };
@@ -77,6 +77,18 @@ export interface SystemTask {
77
77
  * @memberof SystemTask
78
78
  */
79
79
  messages: Array<LogEvent>;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof SystemTask
84
+ */
85
+ expires?: Date | null;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof SystemTask
90
+ */
91
+ expiring?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the SystemTask interface.
@@ -48,6 +48,8 @@ export function SystemTaskFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'duration': json['duration'],
49
49
  'status': SystemTaskStatusEnumFromJSON(json['status']),
50
50
  'messages': (json['messages'].map(LogEventFromJSON)),
51
+ 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
52
+ 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
51
53
  };
52
54
  }
53
55
  export function SystemTaskToJSON(value) {
@@ -63,5 +65,7 @@ export function SystemTaskToJSON(value) {
63
65
  'description': value.description,
64
66
  'status': SystemTaskStatusEnumToJSON(value.status),
65
67
  'messages': (value.messages.map(LogEventToJSON)),
68
+ 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
69
+ 'expiring': value.expiring,
66
70
  };
67
71
  }
@@ -1,4 +1,5 @@
1
1
  export * from './AccessDeniedChallenge';
2
+ export * from './AlgEnum';
2
3
  export * from './App';
3
4
  export * from './AppEnum';
4
5
  export * from './AppleChallengeResponseRequest';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccessDeniedChallenge';
4
+ export * from './AlgEnum';
4
5
  export * from './App';
5
6
  export * from './AppEnum';
6
7
  export * from './AppleChallengeResponseRequest';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.1
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const AlgEnum: {
17
+ readonly Rsa: "rsa";
18
+ readonly Ecdsa: "ecdsa";
19
+ readonly UnknownDefaultOpenApi: "11184809";
20
+ };
21
+ export type AlgEnum = typeof AlgEnum[keyof typeof AlgEnum];
22
+ export declare function AlgEnumFromJSON(json: any): AlgEnum;
23
+ export declare function AlgEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlgEnum;
24
+ export declare function AlgEnumToJSON(value?: AlgEnum | null): any;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.4.1
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AlgEnumToJSON = exports.AlgEnumFromJSONTyped = exports.AlgEnumFromJSON = exports.AlgEnum = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.AlgEnum = {
22
+ Rsa: 'rsa',
23
+ Ecdsa: 'ecdsa',
24
+ UnknownDefaultOpenApi: '11184809'
25
+ };
26
+ function AlgEnumFromJSON(json) {
27
+ return AlgEnumFromJSONTyped(json, false);
28
+ }
29
+ exports.AlgEnumFromJSON = AlgEnumFromJSON;
30
+ function AlgEnumFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ exports.AlgEnumFromJSONTyped = AlgEnumFromJSONTyped;
34
+ function AlgEnumToJSON(value) {
35
+ return value;
36
+ }
37
+ exports.AlgEnumToJSON = AlgEnumToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AlgEnum } from './AlgEnum';
12
13
  /**
13
14
  * Certificate generation parameters
14
15
  * @export
@@ -33,6 +34,12 @@ export interface CertificateGenerationRequest {
33
34
  * @memberof CertificateGenerationRequest
34
35
  */
35
36
  validityDays: number;
37
+ /**
38
+ *
39
+ * @type {AlgEnum}
40
+ * @memberof CertificateGenerationRequest
41
+ */
42
+ alg?: AlgEnum;
36
43
  }
37
44
  /**
38
45
  * Check if a given object implements the CertificateGenerationRequest interface.
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CertificateGenerationRequestToJSON = exports.CertificateGenerationRequestFromJSONTyped = exports.CertificateGenerationRequestFromJSON = exports.instanceOfCertificateGenerationRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const AlgEnum_1 = require("./AlgEnum");
18
19
  /**
19
20
  * Check if a given object implements the CertificateGenerationRequest interface.
20
21
  */
@@ -37,6 +38,7 @@ function CertificateGenerationRequestFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'commonName': json['common_name'],
38
39
  'subjectAltName': !(0, runtime_1.exists)(json, 'subject_alt_name') ? undefined : json['subject_alt_name'],
39
40
  'validityDays': json['validity_days'],
41
+ 'alg': !(0, runtime_1.exists)(json, 'alg') ? undefined : (0, AlgEnum_1.AlgEnumFromJSON)(json['alg']),
40
42
  };
41
43
  }
42
44
  exports.CertificateGenerationRequestFromJSONTyped = CertificateGenerationRequestFromJSONTyped;
@@ -51,6 +53,7 @@ function CertificateGenerationRequestToJSON(value) {
51
53
  'common_name': value.commonName,
52
54
  'subject_alt_name': value.subjectAltName,
53
55
  'validity_days': value.validityDays,
56
+ 'alg': (0, AlgEnum_1.AlgEnumToJSON)(value.alg),
54
57
  };
55
58
  }
56
59
  exports.CertificateGenerationRequestToJSON = CertificateGenerationRequestToJSON;
@@ -18,6 +18,10 @@ export declare const SignatureAlgorithmEnum: {
18
18
  readonly _200104XmldsigMorersaSha256: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
19
19
  readonly _200104XmldsigMorersaSha384: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
20
20
  readonly _200104XmldsigMorersaSha512: "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
21
+ readonly _200104XmldsigMoreecdsaSha1: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1";
22
+ readonly _200104XmldsigMoreecdsaSha256: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256";
23
+ readonly _200104XmldsigMoreecdsaSha384: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384";
24
+ readonly _200104XmldsigMoreecdsaSha512: "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512";
21
25
  readonly _200009XmldsigdsaSha1: "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
22
26
  readonly UnknownDefaultOpenApi: "11184809";
23
27
  };
@@ -23,6 +23,10 @@ exports.SignatureAlgorithmEnum = {
23
23
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
24
24
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
25
25
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
26
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
27
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
28
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
29
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
26
30
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
27
31
  UnknownDefaultOpenApi: '11184809'
28
32
  };
@@ -77,6 +77,18 @@ export interface SystemTask {
77
77
  * @memberof SystemTask
78
78
  */
79
79
  messages: Array<LogEvent>;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof SystemTask
84
+ */
85
+ expires?: Date | null;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof SystemTask
90
+ */
91
+ expiring?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the SystemTask interface.
@@ -53,6 +53,8 @@ function SystemTaskFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'duration': json['duration'],
54
54
  'status': (0, SystemTaskStatusEnum_1.SystemTaskStatusEnumFromJSON)(json['status']),
55
55
  'messages': (json['messages'].map(LogEvent_1.LogEventFromJSON)),
56
+ 'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
57
+ 'expiring': !(0, runtime_1.exists)(json, 'expiring') ? undefined : json['expiring'],
56
58
  };
57
59
  }
58
60
  exports.SystemTaskFromJSONTyped = SystemTaskFromJSONTyped;
@@ -69,6 +71,8 @@ function SystemTaskToJSON(value) {
69
71
  'description': value.description,
70
72
  'status': (0, SystemTaskStatusEnum_1.SystemTaskStatusEnumToJSON)(value.status),
71
73
  'messages': (value.messages.map(LogEvent_1.LogEventToJSON)),
74
+ 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
75
+ 'expiring': value.expiring,
72
76
  };
73
77
  }
74
78
  exports.SystemTaskToJSON = SystemTaskToJSON;
@@ -1,4 +1,5 @@
1
1
  export * from './AccessDeniedChallenge';
2
+ export * from './AlgEnum';
2
3
  export * from './App';
3
4
  export * from './AppEnum';
4
5
  export * from './AppleChallengeResponseRequest';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AccessDeniedChallenge"), exports);
20
+ __exportStar(require("./AlgEnum"), exports);
20
21
  __exportStar(require("./App"), exports);
21
22
  __exportStar(require("./AppEnum"), exports);
22
23
  __exportStar(require("./AppleChallengeResponseRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.4.1-1714149838",
3
+ "version": "2024.4.1-1714957644",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -3335,6 +3335,10 @@ export type ProvidersSamlListDigestAlgorithmEnum = typeof ProvidersSamlListDiges
3335
3335
  export const ProvidersSamlListSignatureAlgorithmEnum = {
3336
3336
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
3337
3337
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
3338
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
3339
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
3340
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
3341
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
3338
3342
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
3339
3343
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
3340
3344
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -4824,6 +4824,10 @@ export type SourcesSamlListPolicyEngineModeEnum = typeof SourcesSamlListPolicyEn
4824
4824
  export const SourcesSamlListSignatureAlgorithmEnum = {
4825
4825
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
4826
4826
  _200009XmldsigrsaSha1: 'http://www.w3.org/2000/09/xmldsig#rsa-sha1',
4827
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
4828
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
4829
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
4830
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
4827
4831
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
4828
4832
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
4829
4833
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.1
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const AlgEnum = {
21
+ Rsa: 'rsa',
22
+ Ecdsa: 'ecdsa',
23
+ UnknownDefaultOpenApi: '11184809'
24
+ } as const;
25
+ export type AlgEnum = typeof AlgEnum[keyof typeof AlgEnum];
26
+
27
+
28
+ export function AlgEnumFromJSON(json: any): AlgEnum {
29
+ return AlgEnumFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function AlgEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlgEnum {
33
+ return json as AlgEnum;
34
+ }
35
+
36
+ export function AlgEnumToJSON(value?: AlgEnum | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { AlgEnum } from './AlgEnum';
17
+ import {
18
+ AlgEnumFromJSON,
19
+ AlgEnumFromJSONTyped,
20
+ AlgEnumToJSON,
21
+ } from './AlgEnum';
22
+
16
23
  /**
17
24
  * Certificate generation parameters
18
25
  * @export
@@ -37,6 +44,12 @@ export interface CertificateGenerationRequest {
37
44
  * @memberof CertificateGenerationRequest
38
45
  */
39
46
  validityDays: number;
47
+ /**
48
+ *
49
+ * @type {AlgEnum}
50
+ * @memberof CertificateGenerationRequest
51
+ */
52
+ alg?: AlgEnum;
40
53
  }
41
54
 
42
55
  /**
@@ -63,6 +76,7 @@ export function CertificateGenerationRequestFromJSONTyped(json: any, ignoreDiscr
63
76
  'commonName': json['common_name'],
64
77
  'subjectAltName': !exists(json, 'subject_alt_name') ? undefined : json['subject_alt_name'],
65
78
  'validityDays': json['validity_days'],
79
+ 'alg': !exists(json, 'alg') ? undefined : AlgEnumFromJSON(json['alg']),
66
80
  };
67
81
  }
68
82
 
@@ -78,6 +92,7 @@ export function CertificateGenerationRequestToJSON(value?: CertificateGeneration
78
92
  'common_name': value.commonName,
79
93
  'subject_alt_name': value.subjectAltName,
80
94
  'validity_days': value.validityDays,
95
+ 'alg': AlgEnumToJSON(value.alg),
81
96
  };
82
97
  }
83
98
 
@@ -22,6 +22,10 @@ export const SignatureAlgorithmEnum = {
22
22
  _200104XmldsigMorersaSha256: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
23
23
  _200104XmldsigMorersaSha384: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384',
24
24
  _200104XmldsigMorersaSha512: 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512',
25
+ _200104XmldsigMoreecdsaSha1: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1',
26
+ _200104XmldsigMoreecdsaSha256: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256',
27
+ _200104XmldsigMoreecdsaSha384: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384',
28
+ _200104XmldsigMoreecdsaSha512: 'http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512',
25
29
  _200009XmldsigdsaSha1: 'http://www.w3.org/2000/09/xmldsig#dsa-sha1',
26
30
  UnknownDefaultOpenApi: '11184809'
27
31
  } as const;
@@ -92,6 +92,18 @@ export interface SystemTask {
92
92
  * @memberof SystemTask
93
93
  */
94
94
  messages: Array<LogEvent>;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof SystemTask
99
+ */
100
+ expires?: Date | null;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof SystemTask
105
+ */
106
+ expiring?: boolean;
95
107
  }
96
108
 
97
109
  /**
@@ -132,6 +144,8 @@ export function SystemTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean)
132
144
  'duration': json['duration'],
133
145
  'status': SystemTaskStatusEnumFromJSON(json['status']),
134
146
  'messages': ((json['messages'] as Array<any>).map(LogEventFromJSON)),
147
+ 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),
148
+ 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
135
149
  };
136
150
  }
137
151
 
@@ -149,6 +163,8 @@ export function SystemTaskToJSON(value?: SystemTask | null): any {
149
163
  'description': value.description,
150
164
  'status': SystemTaskStatusEnumToJSON(value.status),
151
165
  'messages': ((value.messages as Array<any>).map(LogEventToJSON)),
166
+ 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),
167
+ 'expiring': value.expiring,
152
168
  };
153
169
  }
154
170
 
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccessDeniedChallenge';
4
+ export * from './AlgEnum';
4
5
  export * from './App';
5
6
  export * from './AppEnum';
6
7
  export * from './AppleChallengeResponseRequest';