@goauthentik/api 2022.6.3-1655714155 → 2022.6.3-1656620570

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.
@@ -62,13 +62,19 @@ export interface ConsentChallenge {
62
62
  * @type {string}
63
63
  * @memberof ConsentChallenge
64
64
  */
65
- headerText: string;
65
+ headerText?: string;
66
66
  /**
67
67
  *
68
68
  * @type {Array<Permission>}
69
69
  * @memberof ConsentChallenge
70
70
  */
71
71
  permissions: Array<Permission>;
72
+ /**
73
+ *
74
+ * @type {Array<Permission>}
75
+ * @memberof ConsentChallenge
76
+ */
77
+ additionalPermissions: Array<Permission>;
72
78
  }
73
79
  export declare function ConsentChallengeFromJSON(json: any): ConsentChallenge;
74
80
  export declare function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallenge;
@@ -29,8 +29,9 @@ export function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
30
30
  'pendingUser': json['pending_user'],
31
31
  'pendingUserAvatar': json['pending_user_avatar'],
32
- 'headerText': json['header_text'],
32
+ 'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
33
33
  'permissions': (json['permissions'].map(PermissionFromJSON)),
34
+ 'additionalPermissions': (json['additional_permissions'].map(PermissionFromJSON)),
34
35
  };
35
36
  }
36
37
  export function ConsentChallengeToJSON(value) {
@@ -49,5 +50,6 @@ export function ConsentChallengeToJSON(value) {
49
50
  'pending_user_avatar': value.pendingUserAvatar,
50
51
  'header_text': value.headerText,
51
52
  'permissions': (value.permissions.map(PermissionToJSON)),
53
+ 'additional_permissions': (value.additionalPermissions.map(PermissionToJSON)),
52
54
  };
53
55
  }
@@ -155,7 +155,25 @@ export interface SAMLProvider {
155
155
  * @type {string}
156
156
  * @memberof SAMLProvider
157
157
  */
158
- readonly metadataDownloadUrl: string;
158
+ readonly urlDownloadMetadata: string;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof SAMLProvider
163
+ */
164
+ readonly urlSsoPost: string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof SAMLProvider
169
+ */
170
+ readonly urlSsoRedirect: string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof SAMLProvider
175
+ */
176
+ readonly urlSsoInit: string;
159
177
  }
160
178
  export declare function SAMLProviderFromJSON(json: any): SAMLProvider;
161
179
  export declare function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLProvider;
@@ -45,7 +45,10 @@ export function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'signingKp': !exists(json, 'signing_kp') ? undefined : json['signing_kp'],
46
46
  'verificationKp': !exists(json, 'verification_kp') ? undefined : json['verification_kp'],
47
47
  'spBinding': !exists(json, 'sp_binding') ? undefined : SpBindingEnumFromJSON(json['sp_binding']),
48
- 'metadataDownloadUrl': json['metadata_download_url'],
48
+ 'urlDownloadMetadata': json['url_download_metadata'],
49
+ 'urlSsoPost': json['url_sso_post'],
50
+ 'urlSsoRedirect': json['url_sso_redirect'],
51
+ 'urlSsoInit': json['url_sso_init'],
49
52
  };
50
53
  }
51
54
  export function SAMLProviderToJSON(value) {
@@ -41,6 +41,12 @@ export interface UserConsent {
41
41
  * @memberof UserConsent
42
42
  */
43
43
  application: Application;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof UserConsent
48
+ */
49
+ permissions?: string;
44
50
  }
45
51
  export declare function UserConsentFromJSON(json: any): UserConsent;
46
52
  export declare function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsent;
@@ -26,6 +26,7 @@ export function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
26
26
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
27
27
  'user': UserFromJSON(json['user']),
28
28
  'application': ApplicationFromJSON(json['application']),
29
+ 'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
29
30
  };
30
31
  }
31
32
  export function UserConsentToJSON(value) {
@@ -39,5 +40,6 @@ export function UserConsentToJSON(value) {
39
40
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
40
41
  'user': UserToJSON(value.user),
41
42
  'application': ApplicationToJSON(value.application),
43
+ 'permissions': value.permissions,
42
44
  };
43
45
  }
@@ -27,6 +27,24 @@ export interface UserServiceAccountResponse {
27
27
  * @memberof UserServiceAccountResponse
28
28
  */
29
29
  token: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UserServiceAccountResponse
34
+ */
35
+ userUid: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UserServiceAccountResponse
40
+ */
41
+ userPk: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UserServiceAccountResponse
46
+ */
47
+ groupPk?: string;
30
48
  }
31
49
  export declare function UserServiceAccountResponseFromJSON(json: any): UserServiceAccountResponse;
32
50
  export declare function UserServiceAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserServiceAccountResponse;
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  export function UserServiceAccountResponseFromJSON(json) {
15
16
  return UserServiceAccountResponseFromJSONTyped(json, false);
16
17
  }
@@ -21,6 +22,9 @@ export function UserServiceAccountResponseFromJSONTyped(json, ignoreDiscriminato
21
22
  return {
22
23
  'username': json['username'],
23
24
  'token': json['token'],
25
+ 'userUid': json['user_uid'],
26
+ 'userPk': json['user_pk'],
27
+ 'groupPk': !exists(json, 'group_pk') ? undefined : json['group_pk'],
24
28
  };
25
29
  }
26
30
  export function UserServiceAccountResponseToJSON(value) {
@@ -33,5 +37,8 @@ export function UserServiceAccountResponseToJSON(value) {
33
37
  return {
34
38
  'username': value.username,
35
39
  'token': value.token,
40
+ 'user_uid': value.userUid,
41
+ 'user_pk': value.userPk,
42
+ 'group_pk': value.groupPk,
36
43
  };
37
44
  }
@@ -62,13 +62,19 @@ export interface ConsentChallenge {
62
62
  * @type {string}
63
63
  * @memberof ConsentChallenge
64
64
  */
65
- headerText: string;
65
+ headerText?: string;
66
66
  /**
67
67
  *
68
68
  * @type {Array<Permission>}
69
69
  * @memberof ConsentChallenge
70
70
  */
71
71
  permissions: Array<Permission>;
72
+ /**
73
+ *
74
+ * @type {Array<Permission>}
75
+ * @memberof ConsentChallenge
76
+ */
77
+ additionalPermissions: Array<Permission>;
72
78
  }
73
79
  export declare function ConsentChallengeFromJSON(json: any): ConsentChallenge;
74
80
  export declare function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallenge;
@@ -33,8 +33,9 @@ function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
34
34
  'pendingUser': json['pending_user'],
35
35
  'pendingUserAvatar': json['pending_user_avatar'],
36
- 'headerText': json['header_text'],
36
+ 'headerText': !(0, runtime_1.exists)(json, 'header_text') ? undefined : json['header_text'],
37
37
  'permissions': (json['permissions'].map(Permission_1.PermissionFromJSON)),
38
+ 'additionalPermissions': (json['additional_permissions'].map(Permission_1.PermissionFromJSON)),
38
39
  };
39
40
  }
40
41
  exports.ConsentChallengeFromJSONTyped = ConsentChallengeFromJSONTyped;
@@ -54,6 +55,7 @@ function ConsentChallengeToJSON(value) {
54
55
  'pending_user_avatar': value.pendingUserAvatar,
55
56
  'header_text': value.headerText,
56
57
  'permissions': (value.permissions.map(Permission_1.PermissionToJSON)),
58
+ 'additional_permissions': (value.additionalPermissions.map(Permission_1.PermissionToJSON)),
57
59
  };
58
60
  }
59
61
  exports.ConsentChallengeToJSON = ConsentChallengeToJSON;
@@ -155,7 +155,25 @@ export interface SAMLProvider {
155
155
  * @type {string}
156
156
  * @memberof SAMLProvider
157
157
  */
158
- readonly metadataDownloadUrl: string;
158
+ readonly urlDownloadMetadata: string;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof SAMLProvider
163
+ */
164
+ readonly urlSsoPost: string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof SAMLProvider
169
+ */
170
+ readonly urlSsoRedirect: string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof SAMLProvider
175
+ */
176
+ readonly urlSsoInit: string;
159
177
  }
160
178
  export declare function SAMLProviderFromJSON(json: any): SAMLProvider;
161
179
  export declare function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLProvider;
@@ -49,7 +49,10 @@ function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'signingKp': !(0, runtime_1.exists)(json, 'signing_kp') ? undefined : json['signing_kp'],
50
50
  'verificationKp': !(0, runtime_1.exists)(json, 'verification_kp') ? undefined : json['verification_kp'],
51
51
  'spBinding': !(0, runtime_1.exists)(json, 'sp_binding') ? undefined : (0, SpBindingEnum_1.SpBindingEnumFromJSON)(json['sp_binding']),
52
- 'metadataDownloadUrl': json['metadata_download_url'],
52
+ 'urlDownloadMetadata': json['url_download_metadata'],
53
+ 'urlSsoPost': json['url_sso_post'],
54
+ 'urlSsoRedirect': json['url_sso_redirect'],
55
+ 'urlSsoInit': json['url_sso_init'],
53
56
  };
54
57
  }
55
58
  exports.SAMLProviderFromJSONTyped = SAMLProviderFromJSONTyped;
@@ -41,6 +41,12 @@ export interface UserConsent {
41
41
  * @memberof UserConsent
42
42
  */
43
43
  application: Application;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof UserConsent
48
+ */
49
+ permissions?: string;
44
50
  }
45
51
  export declare function UserConsentFromJSON(json: any): UserConsent;
46
52
  export declare function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsent;
@@ -30,6 +30,7 @@ function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
31
31
  'user': (0, User_1.UserFromJSON)(json['user']),
32
32
  'application': (0, Application_1.ApplicationFromJSON)(json['application']),
33
+ 'permissions': !(0, runtime_1.exists)(json, 'permissions') ? undefined : json['permissions'],
33
34
  };
34
35
  }
35
36
  exports.UserConsentFromJSONTyped = UserConsentFromJSONTyped;
@@ -44,6 +45,7 @@ function UserConsentToJSON(value) {
44
45
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
45
46
  'user': (0, User_1.UserToJSON)(value.user),
46
47
  'application': (0, Application_1.ApplicationToJSON)(value.application),
48
+ 'permissions': value.permissions,
47
49
  };
48
50
  }
49
51
  exports.UserConsentToJSON = UserConsentToJSON;
@@ -27,6 +27,24 @@ export interface UserServiceAccountResponse {
27
27
  * @memberof UserServiceAccountResponse
28
28
  */
29
29
  token: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UserServiceAccountResponse
34
+ */
35
+ userUid: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UserServiceAccountResponse
40
+ */
41
+ userPk: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UserServiceAccountResponse
46
+ */
47
+ groupPk?: string;
30
48
  }
31
49
  export declare function UserServiceAccountResponseFromJSON(json: any): UserServiceAccountResponse;
32
50
  export declare function UserServiceAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserServiceAccountResponse;
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserServiceAccountResponseToJSON = exports.UserServiceAccountResponseFromJSONTyped = exports.UserServiceAccountResponseFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  function UserServiceAccountResponseFromJSON(json) {
18
19
  return UserServiceAccountResponseFromJSONTyped(json, false);
19
20
  }
@@ -25,6 +26,9 @@ function UserServiceAccountResponseFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return {
26
27
  'username': json['username'],
27
28
  'token': json['token'],
29
+ 'userUid': json['user_uid'],
30
+ 'userPk': json['user_pk'],
31
+ 'groupPk': !(0, runtime_1.exists)(json, 'group_pk') ? undefined : json['group_pk'],
28
32
  };
29
33
  }
30
34
  exports.UserServiceAccountResponseFromJSONTyped = UserServiceAccountResponseFromJSONTyped;
@@ -38,6 +42,9 @@ function UserServiceAccountResponseToJSON(value) {
38
42
  return {
39
43
  'username': value.username,
40
44
  'token': value.token,
45
+ 'user_uid': value.userUid,
46
+ 'user_pk': value.userPk,
47
+ 'group_pk': value.groupPk,
41
48
  };
42
49
  }
43
50
  exports.UserServiceAccountResponseToJSON = UserServiceAccountResponseToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.6.3-1655714155",
3
+ "version": "2022.6.3-1656620570",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -85,13 +85,19 @@ export interface ConsentChallenge {
85
85
  * @type {string}
86
86
  * @memberof ConsentChallenge
87
87
  */
88
- headerText: string;
88
+ headerText?: string;
89
89
  /**
90
90
  *
91
91
  * @type {Array<Permission>}
92
92
  * @memberof ConsentChallenge
93
93
  */
94
94
  permissions: Array<Permission>;
95
+ /**
96
+ *
97
+ * @type {Array<Permission>}
98
+ * @memberof ConsentChallenge
99
+ */
100
+ additionalPermissions: Array<Permission>;
95
101
  }
96
102
 
97
103
  export function ConsentChallengeFromJSON(json: any): ConsentChallenge {
@@ -110,8 +116,9 @@ export function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
110
116
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
111
117
  'pendingUser': json['pending_user'],
112
118
  'pendingUserAvatar': json['pending_user_avatar'],
113
- 'headerText': json['header_text'],
119
+ 'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
114
120
  'permissions': ((json['permissions'] as Array<any>).map(PermissionFromJSON)),
121
+ 'additionalPermissions': ((json['additional_permissions'] as Array<any>).map(PermissionFromJSON)),
115
122
  };
116
123
  }
117
124
 
@@ -132,6 +139,7 @@ export function ConsentChallengeToJSON(value?: ConsentChallenge | null): any {
132
139
  'pending_user_avatar': value.pendingUserAvatar,
133
140
  'header_text': value.headerText,
134
141
  'permissions': ((value.permissions as Array<any>).map(PermissionToJSON)),
142
+ 'additional_permissions': ((value.additionalPermissions as Array<any>).map(PermissionToJSON)),
135
143
  };
136
144
  }
137
145
 
@@ -175,7 +175,25 @@ export interface SAMLProvider {
175
175
  * @type {string}
176
176
  * @memberof SAMLProvider
177
177
  */
178
- readonly metadataDownloadUrl: string;
178
+ readonly urlDownloadMetadata: string;
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof SAMLProvider
183
+ */
184
+ readonly urlSsoPost: string;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof SAMLProvider
189
+ */
190
+ readonly urlSsoRedirect: string;
191
+ /**
192
+ *
193
+ * @type {string}
194
+ * @memberof SAMLProvider
195
+ */
196
+ readonly urlSsoInit: string;
179
197
  }
180
198
 
181
199
  export function SAMLProviderFromJSON(json: any): SAMLProvider {
@@ -210,7 +228,10 @@ export function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolea
210
228
  'signingKp': !exists(json, 'signing_kp') ? undefined : json['signing_kp'],
211
229
  'verificationKp': !exists(json, 'verification_kp') ? undefined : json['verification_kp'],
212
230
  'spBinding': !exists(json, 'sp_binding') ? undefined : SpBindingEnumFromJSON(json['sp_binding']),
213
- 'metadataDownloadUrl': json['metadata_download_url'],
231
+ 'urlDownloadMetadata': json['url_download_metadata'],
232
+ 'urlSsoPost': json['url_sso_post'],
233
+ 'urlSsoRedirect': json['url_sso_redirect'],
234
+ 'urlSsoInit': json['url_sso_init'],
214
235
  };
215
236
  }
216
237
 
@@ -56,6 +56,12 @@ export interface UserConsent {
56
56
  * @memberof UserConsent
57
57
  */
58
58
  application: Application;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof UserConsent
63
+ */
64
+ permissions?: string;
59
65
  }
60
66
 
61
67
  export function UserConsentFromJSON(json: any): UserConsent {
@@ -72,6 +78,7 @@ export function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean
72
78
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
73
79
  'user': UserFromJSON(json['user']),
74
80
  'application': ApplicationFromJSON(json['application']),
81
+ 'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
75
82
  };
76
83
  }
77
84
 
@@ -87,6 +94,7 @@ export function UserConsentToJSON(value?: UserConsent | null): any {
87
94
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
88
95
  'user': UserToJSON(value.user),
89
96
  'application': ApplicationToJSON(value.application),
97
+ 'permissions': value.permissions,
90
98
  };
91
99
  }
92
100
 
@@ -31,6 +31,24 @@ export interface UserServiceAccountResponse {
31
31
  * @memberof UserServiceAccountResponse
32
32
  */
33
33
  token: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UserServiceAccountResponse
38
+ */
39
+ userUid: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof UserServiceAccountResponse
44
+ */
45
+ userPk: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof UserServiceAccountResponse
50
+ */
51
+ groupPk?: string;
34
52
  }
35
53
 
36
54
  export function UserServiceAccountResponseFromJSON(json: any): UserServiceAccountResponse {
@@ -45,6 +63,9 @@ export function UserServiceAccountResponseFromJSONTyped(json: any, ignoreDiscrim
45
63
 
46
64
  'username': json['username'],
47
65
  'token': json['token'],
66
+ 'userUid': json['user_uid'],
67
+ 'userPk': json['user_pk'],
68
+ 'groupPk': !exists(json, 'group_pk') ? undefined : json['group_pk'],
48
69
  };
49
70
  }
50
71
 
@@ -59,6 +80,9 @@ export function UserServiceAccountResponseToJSON(value?: UserServiceAccountRespo
59
80
 
60
81
  'username': value.username,
61
82
  'token': value.token,
83
+ 'user_uid': value.userUid,
84
+ 'user_pk': value.userPk,
85
+ 'group_pk': value.groupPk,
62
86
  };
63
87
  }
64
88