@goauthentik/api 2023.4.1-1683127005 → 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
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.4.1-1683127005",
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