@goauthentik/api 2023.4.1-1681914191 → 2023.4.1-1683455546

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.
@@ -80,7 +80,7 @@ export interface CertificateKeyPair {
80
80
  * @type {string}
81
81
  * @memberof CertificateKeyPair
82
82
  */
83
- managed?: string | null;
83
+ readonly managed: string | null;
84
84
  }
85
85
  /**
86
86
  * Check if a given object implements the CertificateKeyPair interface.
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
15
14
  /**
16
15
  * Check if a given object implements the CertificateKeyPair interface.
17
16
  */
@@ -27,6 +26,7 @@ export function instanceOfCertificateKeyPair(value) {
27
26
  isInstance = isInstance && "privateKeyType" in value;
28
27
  isInstance = isInstance && "certificateDownloadUrl" in value;
29
28
  isInstance = isInstance && "privateKeyDownloadUrl" in value;
29
+ isInstance = isInstance && "managed" in value;
30
30
  return isInstance;
31
31
  }
32
32
  export function CertificateKeyPairFromJSON(json) {
@@ -47,7 +47,7 @@ export function CertificateKeyPairFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'privateKeyType': json['private_key_type'],
48
48
  'certificateDownloadUrl': json['certificate_download_url'],
49
49
  'privateKeyDownloadUrl': json['private_key_download_url'],
50
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
50
+ 'managed': json['managed'],
51
51
  };
52
52
  }
53
53
  export function CertificateKeyPairToJSON(value) {
@@ -59,6 +59,5 @@ export function CertificateKeyPairToJSON(value) {
59
59
  }
60
60
  return {
61
61
  'name': value.name,
62
- 'managed': value.managed,
63
62
  };
64
63
  }
@@ -33,12 +33,6 @@ export interface CertificateKeyPairRequest {
33
33
  * @memberof CertificateKeyPairRequest
34
34
  */
35
35
  keyData?: string;
36
- /**
37
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
38
- * @type {string}
39
- * @memberof CertificateKeyPairRequest
40
- */
41
- managed?: string | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the CertificateKeyPairRequest interface.
@@ -32,7 +32,6 @@ export function CertificateKeyPairRequestFromJSONTyped(json, ignoreDiscriminator
32
32
  'name': json['name'],
33
33
  'certificateData': json['certificate_data'],
34
34
  'keyData': !exists(json, 'key_data') ? undefined : json['key_data'],
35
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
36
35
  };
37
36
  }
38
37
  export function CertificateKeyPairRequestToJSON(value) {
@@ -46,6 +45,5 @@ export function CertificateKeyPairRequestToJSON(value) {
46
45
  'name': value.name,
47
46
  'certificate_data': value.certificateData,
48
47
  'key_data': value.keyData,
49
- 'managed': value.managed,
50
48
  };
51
49
  }
@@ -33,12 +33,6 @@ export interface PatchedCertificateKeyPairRequest {
33
33
  * @memberof PatchedCertificateKeyPairRequest
34
34
  */
35
35
  keyData?: string;
36
- /**
37
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
38
- * @type {string}
39
- * @memberof PatchedCertificateKeyPairRequest
40
- */
41
- managed?: string | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the PatchedCertificateKeyPairRequest interface.
@@ -30,7 +30,6 @@ export function PatchedCertificateKeyPairRequestFromJSONTyped(json, ignoreDiscri
30
30
  'name': !exists(json, 'name') ? undefined : json['name'],
31
31
  'certificateData': !exists(json, 'certificate_data') ? undefined : json['certificate_data'],
32
32
  'keyData': !exists(json, 'key_data') ? undefined : json['key_data'],
33
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
34
33
  };
35
34
  }
36
35
  export function PatchedCertificateKeyPairRequestToJSON(value) {
@@ -44,6 +43,5 @@ export function PatchedCertificateKeyPairRequestToJSON(value) {
44
43
  'name': value.name,
45
44
  'certificate_data': value.certificateData,
46
45
  'key_data': value.keyData,
47
- 'managed': value.managed,
48
46
  };
49
47
  }
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * * `all` - ALL, all policies must pass
14
- * * `any` - ANY, any policy must pass
13
+ * * `all` - all, all policies must pass
14
+ * * `any` - any, any policy must pass
15
15
  * @export
16
16
  */
17
17
  export declare const PolicyEngineMode: {
@@ -12,8 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * * `all` - ALL, all policies must pass
16
- * * `any` - ANY, any policy must pass
15
+ * * `all` - all, all policies must pass
16
+ * * `any` - any, any policy must pass
17
17
  * @export
18
18
  */
19
19
  export const PolicyEngineMode = {
@@ -16,12 +16,13 @@
16
16
  * * `facebook` - Facebook
17
17
  * * `github` - GitHub
18
18
  * * `google` - Google
19
+ * * `mailcow` - Mailcow
19
20
  * * `openidconnect` - OpenID Connect
20
21
  * * `okta` - Okta
22
+ * * `patreon` - Patreon
21
23
  * * `reddit` - reddit
22
- * * `twitter` - Twitter
23
- * * `mailcow` - Mailcow
24
24
  * * `twitch` - Twitch
25
+ * * `twitter` - Twitter
25
26
  * @export
26
27
  */
27
28
  export declare const ProviderTypeEnum: {
@@ -31,12 +32,13 @@ export declare const ProviderTypeEnum: {
31
32
  readonly Facebook: "facebook";
32
33
  readonly Github: "github";
33
34
  readonly Google: "google";
35
+ readonly Mailcow: "mailcow";
34
36
  readonly Openidconnect: "openidconnect";
35
37
  readonly Okta: "okta";
38
+ readonly Patreon: "patreon";
36
39
  readonly Reddit: "reddit";
37
- readonly Twitter: "twitter";
38
- readonly Mailcow: "mailcow";
39
40
  readonly Twitch: "twitch";
41
+ readonly Twitter: "twitter";
40
42
  readonly UnknownDefaultOpenApi: "11184809";
41
43
  };
42
44
  export type ProviderTypeEnum = typeof ProviderTypeEnum[keyof typeof ProviderTypeEnum];
@@ -18,12 +18,13 @@
18
18
  * * `facebook` - Facebook
19
19
  * * `github` - GitHub
20
20
  * * `google` - Google
21
+ * * `mailcow` - Mailcow
21
22
  * * `openidconnect` - OpenID Connect
22
23
  * * `okta` - Okta
24
+ * * `patreon` - Patreon
23
25
  * * `reddit` - reddit
24
- * * `twitter` - Twitter
25
- * * `mailcow` - Mailcow
26
26
  * * `twitch` - Twitch
27
+ * * `twitter` - Twitter
27
28
  * @export
28
29
  */
29
30
  export const ProviderTypeEnum = {
@@ -33,12 +34,13 @@ export const ProviderTypeEnum = {
33
34
  Facebook: 'facebook',
34
35
  Github: 'github',
35
36
  Google: 'google',
37
+ Mailcow: 'mailcow',
36
38
  Openidconnect: 'openidconnect',
37
39
  Okta: 'okta',
40
+ Patreon: 'patreon',
38
41
  Reddit: 'reddit',
39
- Twitter: 'twitter',
40
- Mailcow: 'mailcow',
41
42
  Twitch: 'twitch',
43
+ Twitter: 'twitter',
42
44
  UnknownDefaultOpenApi: '11184809'
43
45
  };
44
46
  export function ProviderTypeEnumFromJSON(json) {
@@ -80,7 +80,7 @@ export interface CertificateKeyPair {
80
80
  * @type {string}
81
81
  * @memberof CertificateKeyPair
82
82
  */
83
- managed?: string | null;
83
+ readonly managed: string | null;
84
84
  }
85
85
  /**
86
86
  * Check if a given object implements the CertificateKeyPair interface.
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CertificateKeyPairToJSON = exports.CertificateKeyPairFromJSONTyped = exports.CertificateKeyPairFromJSON = exports.instanceOfCertificateKeyPair = void 0;
17
- const runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the CertificateKeyPair interface.
20
19
  */
@@ -30,6 +29,7 @@ function instanceOfCertificateKeyPair(value) {
30
29
  isInstance = isInstance && "privateKeyType" in value;
31
30
  isInstance = isInstance && "certificateDownloadUrl" in value;
32
31
  isInstance = isInstance && "privateKeyDownloadUrl" in value;
32
+ isInstance = isInstance && "managed" in value;
33
33
  return isInstance;
34
34
  }
35
35
  exports.instanceOfCertificateKeyPair = instanceOfCertificateKeyPair;
@@ -52,7 +52,7 @@ function CertificateKeyPairFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'privateKeyType': json['private_key_type'],
53
53
  'certificateDownloadUrl': json['certificate_download_url'],
54
54
  'privateKeyDownloadUrl': json['private_key_download_url'],
55
- 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
55
+ 'managed': json['managed'],
56
56
  };
57
57
  }
58
58
  exports.CertificateKeyPairFromJSONTyped = CertificateKeyPairFromJSONTyped;
@@ -65,7 +65,6 @@ function CertificateKeyPairToJSON(value) {
65
65
  }
66
66
  return {
67
67
  'name': value.name,
68
- 'managed': value.managed,
69
68
  };
70
69
  }
71
70
  exports.CertificateKeyPairToJSON = CertificateKeyPairToJSON;
@@ -33,12 +33,6 @@ export interface CertificateKeyPairRequest {
33
33
  * @memberof CertificateKeyPairRequest
34
34
  */
35
35
  keyData?: string;
36
- /**
37
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
38
- * @type {string}
39
- * @memberof CertificateKeyPairRequest
40
- */
41
- managed?: string | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the CertificateKeyPairRequest interface.
@@ -37,7 +37,6 @@ function CertificateKeyPairRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'name': json['name'],
38
38
  'certificateData': json['certificate_data'],
39
39
  'keyData': !(0, runtime_1.exists)(json, 'key_data') ? undefined : json['key_data'],
40
- 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
41
40
  };
42
41
  }
43
42
  exports.CertificateKeyPairRequestFromJSONTyped = CertificateKeyPairRequestFromJSONTyped;
@@ -52,7 +51,6 @@ function CertificateKeyPairRequestToJSON(value) {
52
51
  'name': value.name,
53
52
  'certificate_data': value.certificateData,
54
53
  'key_data': value.keyData,
55
- 'managed': value.managed,
56
54
  };
57
55
  }
58
56
  exports.CertificateKeyPairRequestToJSON = CertificateKeyPairRequestToJSON;
@@ -33,12 +33,6 @@ export interface PatchedCertificateKeyPairRequest {
33
33
  * @memberof PatchedCertificateKeyPairRequest
34
34
  */
35
35
  keyData?: string;
36
- /**
37
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
38
- * @type {string}
39
- * @memberof PatchedCertificateKeyPairRequest
40
- */
41
- managed?: string | null;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the PatchedCertificateKeyPairRequest interface.
@@ -35,7 +35,6 @@ function PatchedCertificateKeyPairRequestFromJSONTyped(json, ignoreDiscriminator
35
35
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
36
  'certificateData': !(0, runtime_1.exists)(json, 'certificate_data') ? undefined : json['certificate_data'],
37
37
  'keyData': !(0, runtime_1.exists)(json, 'key_data') ? undefined : json['key_data'],
38
- 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
39
38
  };
40
39
  }
41
40
  exports.PatchedCertificateKeyPairRequestFromJSONTyped = PatchedCertificateKeyPairRequestFromJSONTyped;
@@ -50,7 +49,6 @@ function PatchedCertificateKeyPairRequestToJSON(value) {
50
49
  'name': value.name,
51
50
  'certificate_data': value.certificateData,
52
51
  'key_data': value.keyData,
53
- 'managed': value.managed,
54
52
  };
55
53
  }
56
54
  exports.PatchedCertificateKeyPairRequestToJSON = PatchedCertificateKeyPairRequestToJSON;
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * * `all` - ALL, all policies must pass
14
- * * `any` - ANY, any policy must pass
13
+ * * `all` - all, all policies must pass
14
+ * * `any` - any, any policy must pass
15
15
  * @export
16
16
  */
17
17
  export declare const PolicyEngineMode: {
@@ -15,8 +15,8 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PolicyEngineModeToJSON = exports.PolicyEngineModeFromJSONTyped = exports.PolicyEngineModeFromJSON = exports.PolicyEngineMode = void 0;
17
17
  /**
18
- * * `all` - ALL, all policies must pass
19
- * * `any` - ANY, any policy must pass
18
+ * * `all` - all, all policies must pass
19
+ * * `any` - any, any policy must pass
20
20
  * @export
21
21
  */
22
22
  exports.PolicyEngineMode = {
@@ -16,12 +16,13 @@
16
16
  * * `facebook` - Facebook
17
17
  * * `github` - GitHub
18
18
  * * `google` - Google
19
+ * * `mailcow` - Mailcow
19
20
  * * `openidconnect` - OpenID Connect
20
21
  * * `okta` - Okta
22
+ * * `patreon` - Patreon
21
23
  * * `reddit` - reddit
22
- * * `twitter` - Twitter
23
- * * `mailcow` - Mailcow
24
24
  * * `twitch` - Twitch
25
+ * * `twitter` - Twitter
25
26
  * @export
26
27
  */
27
28
  export declare const ProviderTypeEnum: {
@@ -31,12 +32,13 @@ export declare const ProviderTypeEnum: {
31
32
  readonly Facebook: "facebook";
32
33
  readonly Github: "github";
33
34
  readonly Google: "google";
35
+ readonly Mailcow: "mailcow";
34
36
  readonly Openidconnect: "openidconnect";
35
37
  readonly Okta: "okta";
38
+ readonly Patreon: "patreon";
36
39
  readonly Reddit: "reddit";
37
- readonly Twitter: "twitter";
38
- readonly Mailcow: "mailcow";
39
40
  readonly Twitch: "twitch";
41
+ readonly Twitter: "twitter";
40
42
  readonly UnknownDefaultOpenApi: "11184809";
41
43
  };
42
44
  export type ProviderTypeEnum = typeof ProviderTypeEnum[keyof typeof ProviderTypeEnum];
@@ -21,12 +21,13 @@ exports.ProviderTypeEnumToJSON = exports.ProviderTypeEnumFromJSONTyped = exports
21
21
  * * `facebook` - Facebook
22
22
  * * `github` - GitHub
23
23
  * * `google` - Google
24
+ * * `mailcow` - Mailcow
24
25
  * * `openidconnect` - OpenID Connect
25
26
  * * `okta` - Okta
27
+ * * `patreon` - Patreon
26
28
  * * `reddit` - reddit
27
- * * `twitter` - Twitter
28
- * * `mailcow` - Mailcow
29
29
  * * `twitch` - Twitch
30
+ * * `twitter` - Twitter
30
31
  * @export
31
32
  */
32
33
  exports.ProviderTypeEnum = {
@@ -36,12 +37,13 @@ exports.ProviderTypeEnum = {
36
37
  Facebook: 'facebook',
37
38
  Github: 'github',
38
39
  Google: 'google',
40
+ Mailcow: 'mailcow',
39
41
  Openidconnect: 'openidconnect',
40
42
  Okta: 'okta',
43
+ Patreon: 'patreon',
41
44
  Reddit: 'reddit',
42
- Twitter: 'twitter',
43
- Mailcow: 'mailcow',
44
45
  Twitch: 'twitch',
46
+ Twitter: 'twitter',
45
47
  UnknownDefaultOpenApi: '11184809'
46
48
  };
47
49
  function ProviderTypeEnumFromJSON(json) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.4.1-1681914191",
3
+ "version": "2023.4.1-1683455546",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -84,7 +84,7 @@ export interface CertificateKeyPair {
84
84
  * @type {string}
85
85
  * @memberof CertificateKeyPair
86
86
  */
87
- managed?: string | null;
87
+ readonly managed: string | null;
88
88
  }
89
89
 
90
90
  /**
@@ -102,6 +102,7 @@ export function instanceOfCertificateKeyPair(value: object): boolean {
102
102
  isInstance = isInstance && "privateKeyType" in value;
103
103
  isInstance = isInstance && "certificateDownloadUrl" in value;
104
104
  isInstance = isInstance && "privateKeyDownloadUrl" in value;
105
+ isInstance = isInstance && "managed" in value;
105
106
 
106
107
  return isInstance;
107
108
  }
@@ -126,7 +127,7 @@ export function CertificateKeyPairFromJSONTyped(json: any, ignoreDiscriminator:
126
127
  'privateKeyType': json['private_key_type'],
127
128
  'certificateDownloadUrl': json['certificate_download_url'],
128
129
  'privateKeyDownloadUrl': json['private_key_download_url'],
129
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
130
+ 'managed': json['managed'],
130
131
  };
131
132
  }
132
133
 
@@ -140,7 +141,6 @@ export function CertificateKeyPairToJSON(value?: CertificateKeyPair | null): any
140
141
  return {
141
142
 
142
143
  'name': value.name,
143
- 'managed': value.managed,
144
144
  };
145
145
  }
146
146
 
@@ -37,12 +37,6 @@ export interface CertificateKeyPairRequest {
37
37
  * @memberof CertificateKeyPairRequest
38
38
  */
39
39
  keyData?: string;
40
- /**
41
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
42
- * @type {string}
43
- * @memberof CertificateKeyPairRequest
44
- */
45
- managed?: string | null;
46
40
  }
47
41
 
48
42
  /**
@@ -69,7 +63,6 @@ export function CertificateKeyPairRequestFromJSONTyped(json: any, ignoreDiscrimi
69
63
  'name': json['name'],
70
64
  'certificateData': json['certificate_data'],
71
65
  'keyData': !exists(json, 'key_data') ? undefined : json['key_data'],
72
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
73
66
  };
74
67
  }
75
68
 
@@ -85,7 +78,6 @@ export function CertificateKeyPairRequestToJSON(value?: CertificateKeyPairReques
85
78
  'name': value.name,
86
79
  'certificate_data': value.certificateData,
87
80
  'key_data': value.keyData,
88
- 'managed': value.managed,
89
81
  };
90
82
  }
91
83
 
@@ -37,12 +37,6 @@ export interface PatchedCertificateKeyPairRequest {
37
37
  * @memberof PatchedCertificateKeyPairRequest
38
38
  */
39
39
  keyData?: string;
40
- /**
41
- * Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
42
- * @type {string}
43
- * @memberof PatchedCertificateKeyPairRequest
44
- */
45
- managed?: string | null;
46
40
  }
47
41
 
48
42
  /**
@@ -67,7 +61,6 @@ export function PatchedCertificateKeyPairRequestFromJSONTyped(json: any, ignoreD
67
61
  'name': !exists(json, 'name') ? undefined : json['name'],
68
62
  'certificateData': !exists(json, 'certificate_data') ? undefined : json['certificate_data'],
69
63
  'keyData': !exists(json, 'key_data') ? undefined : json['key_data'],
70
- 'managed': !exists(json, 'managed') ? undefined : json['managed'],
71
64
  };
72
65
  }
73
66
 
@@ -83,7 +76,6 @@ export function PatchedCertificateKeyPairRequestToJSON(value?: PatchedCertificat
83
76
  'name': value.name,
84
77
  'certificate_data': value.certificateData,
85
78
  'key_data': value.keyData,
86
- 'managed': value.managed,
87
79
  };
88
80
  }
89
81
 
@@ -14,8 +14,8 @@
14
14
 
15
15
 
16
16
  /**
17
- * * `all` - ALL, all policies must pass
18
- * * `any` - ANY, any policy must pass
17
+ * * `all` - all, all policies must pass
18
+ * * `any` - any, any policy must pass
19
19
  * @export
20
20
  */
21
21
  export const PolicyEngineMode = {
@@ -20,12 +20,13 @@
20
20
  * * `facebook` - Facebook
21
21
  * * `github` - GitHub
22
22
  * * `google` - Google
23
+ * * `mailcow` - Mailcow
23
24
  * * `openidconnect` - OpenID Connect
24
25
  * * `okta` - Okta
26
+ * * `patreon` - Patreon
25
27
  * * `reddit` - reddit
26
- * * `twitter` - Twitter
27
- * * `mailcow` - Mailcow
28
28
  * * `twitch` - Twitch
29
+ * * `twitter` - Twitter
29
30
  * @export
30
31
  */
31
32
  export const ProviderTypeEnum = {
@@ -35,12 +36,13 @@ export const ProviderTypeEnum = {
35
36
  Facebook: 'facebook',
36
37
  Github: 'github',
37
38
  Google: 'google',
39
+ Mailcow: 'mailcow',
38
40
  Openidconnect: 'openidconnect',
39
41
  Okta: 'okta',
42
+ Patreon: 'patreon',
40
43
  Reddit: 'reddit',
41
- Twitter: 'twitter',
42
- Mailcow: 'mailcow',
43
44
  Twitch: 'twitch',
45
+ Twitter: 'twitter',
44
46
  UnknownDefaultOpenApi: '11184809'
45
47
  } as const;
46
48
  export type ProviderTypeEnum = typeof ProviderTypeEnum[keyof typeof ProviderTypeEnum];