@goauthentik/api 2022.4.1-1652209547 → 2022.4.1-1652560930

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 (41) hide show
  1. package/dist/apis/EventsApi.d.ts +1 -0
  2. package/dist/apis/EventsApi.js +3 -0
  3. package/dist/esm/apis/EventsApi.d.ts +1 -0
  4. package/dist/esm/apis/EventsApi.js +3 -0
  5. package/dist/esm/models/AutosubmitChallenge.d.ts +6 -0
  6. package/dist/esm/models/AutosubmitChallenge.js +2 -0
  7. package/dist/esm/models/PatchedPlexSourceConnectionRequest.d.ts +0 -6
  8. package/dist/esm/models/PatchedPlexSourceConnectionRequest.js +0 -2
  9. package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  10. package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  11. package/dist/esm/models/PlexSourceConnection.d.ts +3 -2
  12. package/dist/esm/models/PlexSourceConnection.js +2 -2
  13. package/dist/esm/models/PlexSourceConnectionRequest.d.ts +0 -6
  14. package/dist/esm/models/PlexSourceConnectionRequest.js +0 -2
  15. package/dist/esm/models/UserOAuthSourceConnection.d.ts +3 -2
  16. package/dist/esm/models/UserOAuthSourceConnection.js +2 -2
  17. package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  18. package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -2
  19. package/dist/models/AutosubmitChallenge.d.ts +6 -0
  20. package/dist/models/AutosubmitChallenge.js +2 -0
  21. package/dist/models/PatchedPlexSourceConnectionRequest.d.ts +0 -6
  22. package/dist/models/PatchedPlexSourceConnectionRequest.js +0 -2
  23. package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  24. package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  25. package/dist/models/PlexSourceConnection.d.ts +3 -2
  26. package/dist/models/PlexSourceConnection.js +2 -2
  27. package/dist/models/PlexSourceConnectionRequest.d.ts +0 -6
  28. package/dist/models/PlexSourceConnectionRequest.js +0 -2
  29. package/dist/models/UserOAuthSourceConnection.d.ts +3 -2
  30. package/dist/models/UserOAuthSourceConnection.js +2 -2
  31. package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  32. package/dist/models/UserOAuthSourceConnectionRequest.js +0 -2
  33. package/package.json +1 -1
  34. package/src/apis/EventsApi.ts +5 -0
  35. package/src/models/AutosubmitChallenge.ts +8 -0
  36. package/src/models/PatchedPlexSourceConnectionRequest.ts +0 -8
  37. package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
  38. package/src/models/PlexSourceConnection.ts +10 -4
  39. package/src/models/PlexSourceConnectionRequest.ts +0 -8
  40. package/src/models/UserOAuthSourceConnection.ts +10 -4
  41. package/src/models/UserOAuthSourceConnectionRequest.ts +0 -8
@@ -63,6 +63,7 @@ export interface EventsNotificationsListRequest {
63
63
  search?: string;
64
64
  seen?: boolean;
65
65
  severity?: EventsNotificationsListSeverityEnum;
66
+ user?: number;
66
67
  }
67
68
  export interface EventsNotificationsPartialUpdateRequest {
68
69
  uuid: string;
@@ -415,6 +415,9 @@ class EventsApi extends runtime.BaseAPI {
415
415
  if (requestParameters.severity !== undefined) {
416
416
  queryParameters['severity'] = requestParameters.severity;
417
417
  }
418
+ if (requestParameters.user !== undefined) {
419
+ queryParameters['user'] = requestParameters.user;
420
+ }
418
421
  const headerParameters = {};
419
422
  if (this.configuration && this.configuration.apiKey) {
420
423
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -63,6 +63,7 @@ export interface EventsNotificationsListRequest {
63
63
  search?: string;
64
64
  seen?: boolean;
65
65
  severity?: EventsNotificationsListSeverityEnum;
66
+ user?: number;
66
67
  }
67
68
  export interface EventsNotificationsPartialUpdateRequest {
68
69
  uuid: string;
@@ -412,6 +412,9 @@ export class EventsApi extends runtime.BaseAPI {
412
412
  if (requestParameters.severity !== undefined) {
413
413
  queryParameters['severity'] = requestParameters.severity;
414
414
  }
415
+ if (requestParameters.user !== undefined) {
416
+ queryParameters['user'] = requestParameters.user;
417
+ }
415
418
  const headerParameters = {};
416
419
  if (this.configuration && this.configuration.apiKey) {
417
420
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -58,6 +58,12 @@ export interface AutosubmitChallenge {
58
58
  attrs: {
59
59
  [key: string]: string;
60
60
  };
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AutosubmitChallenge
65
+ */
66
+ title?: string;
61
67
  }
62
68
  export declare function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge;
63
69
  export declare function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutosubmitChallenge;
@@ -28,6 +28,7 @@ export function AutosubmitChallengeFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
29
29
  'url': json['url'],
30
30
  'attrs': json['attrs'],
31
+ 'title': !exists(json, 'title') ? undefined : json['title'],
31
32
  };
32
33
  }
33
34
  export function AutosubmitChallengeToJSON(value) {
@@ -44,5 +45,6 @@ export function AutosubmitChallengeToJSON(value) {
44
45
  'response_errors': value.responseErrors,
45
46
  'url': value.url,
46
47
  'attrs': value.attrs,
48
+ 'title': value.title,
47
49
  };
48
50
  }
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedPlexSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedPlexSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof PatchedPlexSourceConnectionRequest
22
- */
23
- source?: string;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -20,7 +20,6 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDisc
20
20
  return json;
21
21
  }
22
22
  return {
23
- 'source': !exists(json, 'source') ? undefined : json['source'],
24
23
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
25
24
  'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
26
25
  };
@@ -33,7 +32,6 @@ export function PatchedPlexSourceConnectionRequestToJSON(value) {
33
32
  return null;
34
33
  }
35
34
  return {
36
- 'source': value.source,
37
35
  'identifier': value.identifier,
38
36
  'plex_token': value.plexToken,
39
37
  };
@@ -21,12 +21,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
21
21
  * @memberof PatchedUserOAuthSourceConnectionRequest
22
22
  */
23
23
  user?: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof PatchedUserOAuthSourceConnectionRequest
28
- */
29
- source?: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -21,7 +21,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignor
21
21
  }
22
22
  return {
23
23
  'user': !exists(json, 'user') ? undefined : json['user'],
24
- 'source': !exists(json, 'source') ? undefined : json['source'],
25
24
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
26
25
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
27
26
  };
@@ -35,7 +34,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
35
34
  }
36
35
  return {
37
36
  'user': value.user,
38
- 'source': value.source,
39
37
  'identifier': value.identifier,
40
38
  'access_token': value.accessToken,
41
39
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Source } from './Source';
12
13
  /**
13
14
  * Plex Source connection Serializer
14
15
  * @export
@@ -29,10 +30,10 @@ export interface PlexSourceConnection {
29
30
  readonly user: number;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {Source}
33
34
  * @memberof PlexSourceConnection
34
35
  */
35
- source: string;
36
+ readonly source: Source | null;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SourceFromJSON, } from './Source';
14
15
  export function PlexSourceConnectionFromJSON(json) {
15
16
  return PlexSourceConnectionFromJSONTyped(json, false);
16
17
  }
@@ -21,7 +22,7 @@ export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
21
22
  return {
22
23
  'pk': json['pk'],
23
24
  'user': json['user'],
24
- 'source': json['source'],
25
+ 'source': SourceFromJSON(json['source']),
25
26
  'identifier': json['identifier'],
26
27
  'plexToken': json['plex_token'],
27
28
  };
@@ -34,7 +35,6 @@ export function PlexSourceConnectionToJSON(value) {
34
35
  return null;
35
36
  }
36
37
  return {
37
- 'source': value.source,
38
38
  'identifier': value.identifier,
39
39
  'plex_token': value.plexToken,
40
40
  };
@@ -15,12 +15,6 @@
15
15
  * @interface PlexSourceConnectionRequest
16
16
  */
17
17
  export interface PlexSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof PlexSourceConnectionRequest
22
- */
23
- source: string;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -19,7 +19,6 @@ export function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminat
19
19
  return json;
20
20
  }
21
21
  return {
22
- 'source': json['source'],
23
22
  'identifier': json['identifier'],
24
23
  'plexToken': json['plex_token'],
25
24
  };
@@ -32,7 +31,6 @@ export function PlexSourceConnectionRequestToJSON(value) {
32
31
  return null;
33
32
  }
34
33
  return {
35
- 'source': value.source,
36
34
  'identifier': value.identifier,
37
35
  'plex_token': value.plexToken,
38
36
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Source } from './Source';
12
13
  /**
13
14
  * OAuth Source Serializer
14
15
  * @export
@@ -29,10 +30,10 @@ export interface UserOAuthSourceConnection {
29
30
  user: number;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {Source}
33
34
  * @memberof UserOAuthSourceConnection
34
35
  */
35
- source: string;
36
+ readonly source: Source | null;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SourceFromJSON, } from './Source';
14
15
  export function UserOAuthSourceConnectionFromJSON(json) {
15
16
  return UserOAuthSourceConnectionFromJSONTyped(json, false);
16
17
  }
@@ -21,7 +22,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator
21
22
  return {
22
23
  'pk': json['pk'],
23
24
  'user': json['user'],
24
- 'source': json['source'],
25
+ 'source': SourceFromJSON(json['source']),
25
26
  'identifier': json['identifier'],
26
27
  };
27
28
  }
@@ -34,7 +35,6 @@ export function UserOAuthSourceConnectionToJSON(value) {
34
35
  }
35
36
  return {
36
37
  'user': value.user,
37
- 'source': value.source,
38
38
  'identifier': value.identifier,
39
39
  };
40
40
  }
@@ -21,12 +21,6 @@ export interface UserOAuthSourceConnectionRequest {
21
21
  * @memberof UserOAuthSourceConnectionRequest
22
22
  */
23
23
  user: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UserOAuthSourceConnectionRequest
28
- */
29
- source: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -21,7 +21,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
21
21
  }
22
22
  return {
23
23
  'user': json['user'],
24
- 'source': json['source'],
25
24
  'identifier': json['identifier'],
26
25
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
27
26
  };
@@ -35,7 +34,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value) {
35
34
  }
36
35
  return {
37
36
  'user': value.user,
38
- 'source': value.source,
39
37
  'identifier': value.identifier,
40
38
  'access_token': value.accessToken,
41
39
  };
@@ -58,6 +58,12 @@ export interface AutosubmitChallenge {
58
58
  attrs: {
59
59
  [key: string]: string;
60
60
  };
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AutosubmitChallenge
65
+ */
66
+ title?: string;
61
67
  }
62
68
  export declare function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge;
63
69
  export declare function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutosubmitChallenge;
@@ -32,6 +32,7 @@ function AutosubmitChallengeFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'responseErrors': !runtime_1.exists(json, 'response_errors') ? undefined : json['response_errors'],
33
33
  'url': json['url'],
34
34
  'attrs': json['attrs'],
35
+ 'title': !runtime_1.exists(json, 'title') ? undefined : json['title'],
35
36
  };
36
37
  }
37
38
  exports.AutosubmitChallengeFromJSONTyped = AutosubmitChallengeFromJSONTyped;
@@ -49,6 +50,7 @@ function AutosubmitChallengeToJSON(value) {
49
50
  'response_errors': value.responseErrors,
50
51
  'url': value.url,
51
52
  'attrs': value.attrs,
53
+ 'title': value.title,
52
54
  };
53
55
  }
54
56
  exports.AutosubmitChallengeToJSON = AutosubmitChallengeToJSON;
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedPlexSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedPlexSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof PatchedPlexSourceConnectionRequest
22
- */
23
- source?: string;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -24,7 +24,6 @@ function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminat
24
24
  return json;
25
25
  }
26
26
  return {
27
- 'source': !runtime_1.exists(json, 'source') ? undefined : json['source'],
28
27
  'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
29
28
  'plexToken': !runtime_1.exists(json, 'plex_token') ? undefined : json['plex_token'],
30
29
  };
@@ -38,7 +37,6 @@ function PatchedPlexSourceConnectionRequestToJSON(value) {
38
37
  return null;
39
38
  }
40
39
  return {
41
- 'source': value.source,
42
40
  'identifier': value.identifier,
43
41
  'plex_token': value.plexToken,
44
42
  };
@@ -21,12 +21,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
21
21
  * @memberof PatchedUserOAuthSourceConnectionRequest
22
22
  */
23
23
  user?: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof PatchedUserOAuthSourceConnectionRequest
28
- */
29
- source?: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -25,7 +25,6 @@ function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
25
25
  }
26
26
  return {
27
27
  'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
28
- 'source': !runtime_1.exists(json, 'source') ? undefined : json['source'],
29
28
  'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
30
29
  'accessToken': !runtime_1.exists(json, 'access_token') ? undefined : json['access_token'],
31
30
  };
@@ -40,7 +39,6 @@ function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
40
39
  }
41
40
  return {
42
41
  'user': value.user,
43
- 'source': value.source,
44
42
  'identifier': value.identifier,
45
43
  'access_token': value.accessToken,
46
44
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Source } from './Source';
12
13
  /**
13
14
  * Plex Source connection Serializer
14
15
  * @export
@@ -29,10 +30,10 @@ export interface PlexSourceConnection {
29
30
  readonly user: number;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {Source}
33
34
  * @memberof PlexSourceConnection
34
35
  */
35
- source: string;
36
+ readonly source: Source | null;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PlexSourceConnectionToJSON = exports.PlexSourceConnectionFromJSONTyped = exports.PlexSourceConnectionFromJSON = void 0;
17
+ const Source_1 = require("./Source");
17
18
  function PlexSourceConnectionFromJSON(json) {
18
19
  return PlexSourceConnectionFromJSONTyped(json, false);
19
20
  }
@@ -25,7 +26,7 @@ function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return {
26
27
  'pk': json['pk'],
27
28
  'user': json['user'],
28
- 'source': json['source'],
29
+ 'source': Source_1.SourceFromJSON(json['source']),
29
30
  'identifier': json['identifier'],
30
31
  'plexToken': json['plex_token'],
31
32
  };
@@ -39,7 +40,6 @@ function PlexSourceConnectionToJSON(value) {
39
40
  return null;
40
41
  }
41
42
  return {
42
- 'source': value.source,
43
43
  'identifier': value.identifier,
44
44
  'plex_token': value.plexToken,
45
45
  };
@@ -15,12 +15,6 @@
15
15
  * @interface PlexSourceConnectionRequest
16
16
  */
17
17
  export interface PlexSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof PlexSourceConnectionRequest
22
- */
23
- source: string;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -23,7 +23,6 @@ function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
23
23
  return json;
24
24
  }
25
25
  return {
26
- 'source': json['source'],
27
26
  'identifier': json['identifier'],
28
27
  'plexToken': json['plex_token'],
29
28
  };
@@ -37,7 +36,6 @@ function PlexSourceConnectionRequestToJSON(value) {
37
36
  return null;
38
37
  }
39
38
  return {
40
- 'source': value.source,
41
39
  'identifier': value.identifier,
42
40
  'plex_token': value.plexToken,
43
41
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Source } from './Source';
12
13
  /**
13
14
  * OAuth Source Serializer
14
15
  * @export
@@ -29,10 +30,10 @@ export interface UserOAuthSourceConnection {
29
30
  user: number;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {Source}
33
34
  * @memberof UserOAuthSourceConnection
34
35
  */
35
- source: string;
36
+ readonly source: Source | null;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserOAuthSourceConnectionToJSON = exports.UserOAuthSourceConnectionFromJSONTyped = exports.UserOAuthSourceConnectionFromJSON = void 0;
17
+ const Source_1 = require("./Source");
17
18
  function UserOAuthSourceConnectionFromJSON(json) {
18
19
  return UserOAuthSourceConnectionFromJSONTyped(json, false);
19
20
  }
@@ -25,7 +26,7 @@ function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return {
26
27
  'pk': json['pk'],
27
28
  'user': json['user'],
28
- 'source': json['source'],
29
+ 'source': Source_1.SourceFromJSON(json['source']),
29
30
  'identifier': json['identifier'],
30
31
  };
31
32
  }
@@ -39,7 +40,6 @@ function UserOAuthSourceConnectionToJSON(value) {
39
40
  }
40
41
  return {
41
42
  'user': value.user,
42
- 'source': value.source,
43
43
  'identifier': value.identifier,
44
44
  };
45
45
  }
@@ -21,12 +21,6 @@ export interface UserOAuthSourceConnectionRequest {
21
21
  * @memberof UserOAuthSourceConnectionRequest
22
22
  */
23
23
  user: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UserOAuthSourceConnectionRequest
28
- */
29
- source: string;
30
24
  /**
31
25
  *
32
26
  * @type {string}
@@ -25,7 +25,6 @@ function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator
25
25
  }
26
26
  return {
27
27
  'user': json['user'],
28
- 'source': json['source'],
29
28
  'identifier': json['identifier'],
30
29
  'accessToken': !runtime_1.exists(json, 'access_token') ? undefined : json['access_token'],
31
30
  };
@@ -40,7 +39,6 @@ function UserOAuthSourceConnectionRequestToJSON(value) {
40
39
  }
41
40
  return {
42
41
  'user': value.user,
43
- 'source': value.source,
44
42
  'identifier': value.identifier,
45
43
  'access_token': value.accessToken,
46
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.4.1-1652209547",
3
+ "version": "2022.4.1-1652560930",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -141,6 +141,7 @@ export interface EventsNotificationsListRequest {
141
141
  search?: string;
142
142
  seen?: boolean;
143
143
  severity?: EventsNotificationsListSeverityEnum;
144
+ user?: number;
144
145
  }
145
146
 
146
147
  export interface EventsNotificationsPartialUpdateRequest {
@@ -684,6 +685,10 @@ export class EventsApi extends runtime.BaseAPI {
684
685
  queryParameters['severity'] = requestParameters.severity;
685
686
  }
686
687
 
688
+ if (requestParameters.user !== undefined) {
689
+ queryParameters['user'] = requestParameters.user;
690
+ }
691
+
687
692
  const headerParameters: runtime.HTTPHeaders = {};
688
693
 
689
694
  if (this.configuration && this.configuration.apiKey) {
@@ -74,6 +74,12 @@ export interface AutosubmitChallenge {
74
74
  * @memberof AutosubmitChallenge
75
75
  */
76
76
  attrs: { [key: string]: string; };
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof AutosubmitChallenge
81
+ */
82
+ title?: string;
77
83
  }
78
84
 
79
85
  export function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge {
@@ -92,6 +98,7 @@ export function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator:
92
98
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
93
99
  'url': json['url'],
94
100
  'attrs': json['attrs'],
101
+ 'title': !exists(json, 'title') ? undefined : json['title'],
95
102
  };
96
103
  }
97
104
 
@@ -110,6 +117,7 @@ export function AutosubmitChallengeToJSON(value?: AutosubmitChallenge | null): a
110
117
  'response_errors': value.responseErrors,
111
118
  'url': value.url,
112
119
  'attrs': value.attrs,
120
+ 'title': value.title,
113
121
  };
114
122
  }
115
123
 
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PatchedPlexSourceConnectionRequest
20
20
  */
21
21
  export interface PatchedPlexSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof PatchedPlexSourceConnectionRequest
26
- */
27
- source?: string;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -49,7 +43,6 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json: any, ignor
49
43
  }
50
44
  return {
51
45
 
52
- 'source': !exists(json, 'source') ? undefined : json['source'],
53
46
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
54
47
  'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
55
48
  };
@@ -64,7 +57,6 @@ export function PatchedPlexSourceConnectionRequestToJSON(value?: PatchedPlexSour
64
57
  }
65
58
  return {
66
59
 
67
- 'source': value.source,
68
60
  'identifier': value.identifier,
69
61
  'plex_token': value.plexToken,
70
62
  };
@@ -25,12 +25,6 @@ export interface PatchedUserOAuthSourceConnectionRequest {
25
25
  * @memberof PatchedUserOAuthSourceConnectionRequest
26
26
  */
27
27
  user?: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof PatchedUserOAuthSourceConnectionRequest
32
- */
33
- source?: string;
34
28
  /**
35
29
  *
36
30
  * @type {string}
@@ -56,7 +50,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json: any,
56
50
  return {
57
51
 
58
52
  'user': !exists(json, 'user') ? undefined : json['user'],
59
- 'source': !exists(json, 'source') ? undefined : json['source'],
60
53
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
61
54
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
62
55
  };
@@ -72,7 +65,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value?: PatchedUse
72
65
  return {
73
66
 
74
67
  'user': value.user,
75
- 'source': value.source,
76
68
  'identifier': value.identifier,
77
69
  'access_token': value.accessToken,
78
70
  };
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ Source,
18
+ SourceFromJSON,
19
+ SourceFromJSONTyped,
20
+ SourceToJSON,
21
+ } from './Source';
22
+
16
23
  /**
17
24
  * Plex Source connection Serializer
18
25
  * @export
@@ -33,10 +40,10 @@ export interface PlexSourceConnection {
33
40
  readonly user: number;
34
41
  /**
35
42
  *
36
- * @type {string}
43
+ * @type {Source}
37
44
  * @memberof PlexSourceConnection
38
45
  */
39
- source: string;
46
+ readonly source: Source | null;
40
47
  /**
41
48
  *
42
49
  * @type {string}
@@ -63,7 +70,7 @@ export function PlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator
63
70
 
64
71
  'pk': json['pk'],
65
72
  'user': json['user'],
66
- 'source': json['source'],
73
+ 'source': SourceFromJSON(json['source']),
67
74
  'identifier': json['identifier'],
68
75
  'plexToken': json['plex_token'],
69
76
  };
@@ -78,7 +85,6 @@ export function PlexSourceConnectionToJSON(value?: PlexSourceConnection | null):
78
85
  }
79
86
  return {
80
87
 
81
- 'source': value.source,
82
88
  'identifier': value.identifier,
83
89
  'plex_token': value.plexToken,
84
90
  };
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PlexSourceConnectionRequest
20
20
  */
21
21
  export interface PlexSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof PlexSourceConnectionRequest
26
- */
27
- source: string;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -49,7 +43,6 @@ export function PlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscri
49
43
  }
50
44
  return {
51
45
 
52
- 'source': json['source'],
53
46
  'identifier': json['identifier'],
54
47
  'plexToken': json['plex_token'],
55
48
  };
@@ -64,7 +57,6 @@ export function PlexSourceConnectionRequestToJSON(value?: PlexSourceConnectionRe
64
57
  }
65
58
  return {
66
59
 
67
- 'source': value.source,
68
60
  'identifier': value.identifier,
69
61
  'plex_token': value.plexToken,
70
62
  };
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ Source,
18
+ SourceFromJSON,
19
+ SourceFromJSONTyped,
20
+ SourceToJSON,
21
+ } from './Source';
22
+
16
23
  /**
17
24
  * OAuth Source Serializer
18
25
  * @export
@@ -33,10 +40,10 @@ export interface UserOAuthSourceConnection {
33
40
  user: number;
34
41
  /**
35
42
  *
36
- * @type {string}
43
+ * @type {Source}
37
44
  * @memberof UserOAuthSourceConnection
38
45
  */
39
- source: string;
46
+ readonly source: Source | null;
40
47
  /**
41
48
  *
42
49
  * @type {string}
@@ -57,7 +64,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
57
64
 
58
65
  'pk': json['pk'],
59
66
  'user': json['user'],
60
- 'source': json['source'],
67
+ 'source': SourceFromJSON(json['source']),
61
68
  'identifier': json['identifier'],
62
69
  };
63
70
  }
@@ -72,7 +79,6 @@ export function UserOAuthSourceConnectionToJSON(value?: UserOAuthSourceConnectio
72
79
  return {
73
80
 
74
81
  'user': value.user,
75
- 'source': value.source,
76
82
  'identifier': value.identifier,
77
83
  };
78
84
  }
@@ -25,12 +25,6 @@ export interface UserOAuthSourceConnectionRequest {
25
25
  * @memberof UserOAuthSourceConnectionRequest
26
26
  */
27
27
  user: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof UserOAuthSourceConnectionRequest
32
- */
33
- source: string;
34
28
  /**
35
29
  *
36
30
  * @type {string}
@@ -56,7 +50,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreD
56
50
  return {
57
51
 
58
52
  'user': json['user'],
59
- 'source': json['source'],
60
53
  'identifier': json['identifier'],
61
54
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
62
55
  };
@@ -72,7 +65,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value?: UserOAuthSourceCo
72
65
  return {
73
66
 
74
67
  'user': value.user,
75
- 'source': value.source,
76
68
  'identifier': value.identifier,
77
69
  'access_token': value.accessToken,
78
70
  };