@goauthentik/api 2024.6.1-1721654810 → 2024.6.1-1721909829

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/apis/SourcesApi.d.ts +4 -0
  2. package/dist/apis/SourcesApi.js +12 -0
  3. package/dist/esm/apis/SourcesApi.d.ts +4 -0
  4. package/dist/esm/apis/SourcesApi.js +12 -0
  5. package/dist/esm/models/Brand.d.ts +6 -0
  6. package/dist/esm/models/Brand.js +2 -0
  7. package/dist/esm/models/BrandRequest.d.ts +6 -0
  8. package/dist/esm/models/BrandRequest.js +2 -0
  9. package/dist/esm/models/PatchedBrandRequest.d.ts +6 -0
  10. package/dist/esm/models/PatchedBrandRequest.js +2 -0
  11. package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  12. package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  13. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
  14. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
  15. package/dist/esm/models/PlexSourceConnection.d.ts +3 -3
  16. package/dist/esm/models/PlexSourceConnection.js +2 -3
  17. package/dist/esm/models/UserOAuthSourceConnection.d.ts +7 -1
  18. package/dist/esm/models/UserOAuthSourceConnection.js +2 -1
  19. package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  20. package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -3
  21. package/dist/esm/models/UserSAMLSourceConnection.d.ts +7 -1
  22. package/dist/esm/models/UserSAMLSourceConnection.js +2 -1
  23. package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
  24. package/dist/esm/models/UserSAMLSourceConnectionRequest.js +0 -3
  25. package/dist/models/Brand.d.ts +6 -0
  26. package/dist/models/Brand.js +2 -0
  27. package/dist/models/BrandRequest.d.ts +6 -0
  28. package/dist/models/BrandRequest.js +2 -0
  29. package/dist/models/PatchedBrandRequest.d.ts +6 -0
  30. package/dist/models/PatchedBrandRequest.js +2 -0
  31. package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  32. package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  33. package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
  34. package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
  35. package/dist/models/PlexSourceConnection.d.ts +3 -3
  36. package/dist/models/PlexSourceConnection.js +2 -3
  37. package/dist/models/UserOAuthSourceConnection.d.ts +7 -1
  38. package/dist/models/UserOAuthSourceConnection.js +2 -1
  39. package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  40. package/dist/models/UserOAuthSourceConnectionRequest.js +0 -3
  41. package/dist/models/UserSAMLSourceConnection.d.ts +7 -1
  42. package/dist/models/UserSAMLSourceConnection.js +2 -1
  43. package/dist/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
  44. package/dist/models/UserSAMLSourceConnectionRequest.js +0 -3
  45. package/package.json +1 -1
  46. package/src/apis/SourcesApi.ts +20 -0
  47. package/src/models/Brand.ts +8 -0
  48. package/src/models/BrandRequest.ts +8 -0
  49. package/src/models/PatchedBrandRequest.ts +8 -0
  50. package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
  51. package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +0 -8
  52. package/src/models/PlexSourceConnection.ts +5 -6
  53. package/src/models/UserOAuthSourceConnection.ts +9 -2
  54. package/src/models/UserOAuthSourceConnectionRequest.ts +0 -9
  55. package/src/models/UserSAMLSourceConnection.ts +9 -2
  56. package/src/models/UserSAMLSourceConnectionRequest.ts +0 -9
@@ -32,7 +32,6 @@ function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscrim
32
32
  return json;
33
33
  }
34
34
  return {
35
- 'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
36
35
  'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
37
36
  };
38
37
  }
@@ -45,7 +44,6 @@ function PatchedUserSAMLSourceConnectionRequestToJSON(value) {
45
44
  return null;
46
45
  }
47
46
  return {
48
- 'user': value.user,
49
47
  'identifier': value.identifier,
50
48
  };
51
49
  }
@@ -36,16 +36,16 @@ export interface PlexSourceConnection {
36
36
  readonly source: Source;
37
37
  /**
38
38
  *
39
- * @type {string}
39
+ * @type {Date}
40
40
  * @memberof PlexSourceConnection
41
41
  */
42
- identifier: string;
42
+ readonly created: Date;
43
43
  /**
44
44
  *
45
45
  * @type {string}
46
46
  * @memberof PlexSourceConnection
47
47
  */
48
- plexToken: string;
48
+ identifier: string;
49
49
  }
50
50
  /**
51
51
  * Check if a given object implements the PlexSourceConnection interface.
@@ -23,8 +23,8 @@ function instanceOfPlexSourceConnection(value) {
23
23
  isInstance = isInstance && "pk" in value;
24
24
  isInstance = isInstance && "user" in value;
25
25
  isInstance = isInstance && "source" in value;
26
+ isInstance = isInstance && "created" in value;
26
27
  isInstance = isInstance && "identifier" in value;
27
- isInstance = isInstance && "plexToken" in value;
28
28
  return isInstance;
29
29
  }
30
30
  exports.instanceOfPlexSourceConnection = instanceOfPlexSourceConnection;
@@ -40,8 +40,8 @@ function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'pk': json['pk'],
41
41
  'user': json['user'],
42
42
  'source': (0, Source_1.SourceFromJSON)(json['source']),
43
+ 'created': (new Date(json['created'])),
43
44
  'identifier': json['identifier'],
44
- 'plexToken': json['plex_token'],
45
45
  };
46
46
  }
47
47
  exports.PlexSourceConnectionFromJSONTyped = PlexSourceConnectionFromJSONTyped;
@@ -54,7 +54,6 @@ function PlexSourceConnectionToJSON(value) {
54
54
  }
55
55
  return {
56
56
  'identifier': value.identifier,
57
- 'plex_token': value.plexToken,
58
57
  };
59
58
  }
60
59
  exports.PlexSourceConnectionToJSON = PlexSourceConnectionToJSON;
@@ -27,13 +27,19 @@ export interface UserOAuthSourceConnection {
27
27
  * @type {number}
28
28
  * @memberof UserOAuthSourceConnection
29
29
  */
30
- user: number;
30
+ readonly user: number;
31
31
  /**
32
32
  *
33
33
  * @type {Source}
34
34
  * @memberof UserOAuthSourceConnection
35
35
  */
36
36
  readonly source: Source;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof UserOAuthSourceConnection
41
+ */
42
+ readonly created: Date;
37
43
  /**
38
44
  *
39
45
  * @type {string}
@@ -23,6 +23,7 @@ function instanceOfUserOAuthSourceConnection(value) {
23
23
  isInstance = isInstance && "pk" in value;
24
24
  isInstance = isInstance && "user" in value;
25
25
  isInstance = isInstance && "source" in value;
26
+ isInstance = isInstance && "created" in value;
26
27
  isInstance = isInstance && "identifier" in value;
27
28
  return isInstance;
28
29
  }
@@ -39,6 +40,7 @@ function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'pk': json['pk'],
40
41
  'user': json['user'],
41
42
  'source': (0, Source_1.SourceFromJSON)(json['source']),
43
+ 'created': (new Date(json['created'])),
42
44
  'identifier': json['identifier'],
43
45
  };
44
46
  }
@@ -51,7 +53,6 @@ function UserOAuthSourceConnectionToJSON(value) {
51
53
  return null;
52
54
  }
53
55
  return {
54
- 'user': value.user,
55
56
  'identifier': value.identifier,
56
57
  };
57
58
  }
@@ -15,12 +15,6 @@
15
15
  * @interface UserOAuthSourceConnectionRequest
16
16
  */
17
17
  export interface UserOAuthSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UserOAuthSourceConnectionRequest
22
- */
23
- user: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -20,7 +20,6 @@ const runtime_1 = require("../runtime");
20
20
  */
21
21
  function instanceOfUserOAuthSourceConnectionRequest(value) {
22
22
  let isInstance = true;
23
- isInstance = isInstance && "user" in value;
24
23
  isInstance = isInstance && "identifier" in value;
25
24
  return isInstance;
26
25
  }
@@ -34,7 +33,6 @@ function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator
34
33
  return json;
35
34
  }
36
35
  return {
37
- 'user': json['user'],
38
36
  'identifier': json['identifier'],
39
37
  'accessToken': !(0, runtime_1.exists)(json, 'access_token') ? undefined : json['access_token'],
40
38
  };
@@ -48,7 +46,6 @@ function UserOAuthSourceConnectionRequestToJSON(value) {
48
46
  return null;
49
47
  }
50
48
  return {
51
- 'user': value.user,
52
49
  'identifier': value.identifier,
53
50
  'access_token': value.accessToken,
54
51
  };
@@ -27,13 +27,19 @@ export interface UserSAMLSourceConnection {
27
27
  * @type {number}
28
28
  * @memberof UserSAMLSourceConnection
29
29
  */
30
- user: number;
30
+ readonly user: number;
31
31
  /**
32
32
  *
33
33
  * @type {Source}
34
34
  * @memberof UserSAMLSourceConnection
35
35
  */
36
36
  readonly source: Source;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof UserSAMLSourceConnection
41
+ */
42
+ readonly created: Date;
37
43
  /**
38
44
  *
39
45
  * @type {string}
@@ -23,6 +23,7 @@ function instanceOfUserSAMLSourceConnection(value) {
23
23
  isInstance = isInstance && "pk" in value;
24
24
  isInstance = isInstance && "user" in value;
25
25
  isInstance = isInstance && "source" in value;
26
+ isInstance = isInstance && "created" in value;
26
27
  isInstance = isInstance && "identifier" in value;
27
28
  return isInstance;
28
29
  }
@@ -39,6 +40,7 @@ function UserSAMLSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'pk': json['pk'],
40
41
  'user': json['user'],
41
42
  'source': (0, Source_1.SourceFromJSON)(json['source']),
43
+ 'created': (new Date(json['created'])),
42
44
  'identifier': json['identifier'],
43
45
  };
44
46
  }
@@ -51,7 +53,6 @@ function UserSAMLSourceConnectionToJSON(value) {
51
53
  return null;
52
54
  }
53
55
  return {
54
- 'user': value.user,
55
56
  'identifier': value.identifier,
56
57
  };
57
58
  }
@@ -15,12 +15,6 @@
15
15
  * @interface UserSAMLSourceConnectionRequest
16
16
  */
17
17
  export interface UserSAMLSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UserSAMLSourceConnectionRequest
22
- */
23
- user: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -19,7 +19,6 @@ exports.UserSAMLSourceConnectionRequestToJSON = exports.UserSAMLSourceConnection
19
19
  */
20
20
  function instanceOfUserSAMLSourceConnectionRequest(value) {
21
21
  let isInstance = true;
22
- isInstance = isInstance && "user" in value;
23
22
  isInstance = isInstance && "identifier" in value;
24
23
  return isInstance;
25
24
  }
@@ -33,7 +32,6 @@ function UserSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator)
33
32
  return json;
34
33
  }
35
34
  return {
36
- 'user': json['user'],
37
35
  'identifier': json['identifier'],
38
36
  };
39
37
  }
@@ -46,7 +44,6 @@ function UserSAMLSourceConnectionRequestToJSON(value) {
46
44
  return null;
47
45
  }
48
46
  return {
49
- 'user': value.user,
50
47
  'identifier': value.identifier,
51
48
  };
52
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.6.1-1721654810",
3
+ "version": "2024.6.1-1721909829",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -561,6 +561,7 @@ export interface SourcesUserConnectionsAllListRequest {
561
561
  page?: number;
562
562
  pageSize?: number;
563
563
  search?: string;
564
+ sourceSlug?: string;
564
565
  user?: number;
565
566
  }
566
567
 
@@ -594,6 +595,7 @@ export interface SourcesUserConnectionsOauthListRequest {
594
595
  pageSize?: number;
595
596
  search?: string;
596
597
  sourceSlug?: string;
598
+ user?: number;
597
599
  }
598
600
 
599
601
  export interface SourcesUserConnectionsOauthPartialUpdateRequest {
@@ -628,6 +630,7 @@ export interface SourcesUserConnectionsPlexListRequest {
628
630
  pageSize?: number;
629
631
  search?: string;
630
632
  sourceSlug?: string;
633
+ user?: number;
631
634
  }
632
635
 
633
636
  export interface SourcesUserConnectionsPlexPartialUpdateRequest {
@@ -662,6 +665,7 @@ export interface SourcesUserConnectionsSamlListRequest {
662
665
  pageSize?: number;
663
666
  search?: string;
664
667
  sourceSlug?: string;
668
+ user?: number;
665
669
  }
666
670
 
667
671
  export interface SourcesUserConnectionsSamlPartialUpdateRequest {
@@ -3666,6 +3670,10 @@ export class SourcesApi extends runtime.BaseAPI {
3666
3670
  queryParameters['search'] = requestParameters.search;
3667
3671
  }
3668
3672
 
3673
+ if (requestParameters.sourceSlug !== undefined) {
3674
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
3675
+ }
3676
+
3669
3677
  if (requestParameters.user !== undefined) {
3670
3678
  queryParameters['user'] = requestParameters.user;
3671
3679
  }
@@ -3954,6 +3962,10 @@ export class SourcesApi extends runtime.BaseAPI {
3954
3962
  queryParameters['source__slug'] = requestParameters.sourceSlug;
3955
3963
  }
3956
3964
 
3965
+ if (requestParameters.user !== undefined) {
3966
+ queryParameters['user'] = requestParameters.user;
3967
+ }
3968
+
3957
3969
  const headerParameters: runtime.HTTPHeaders = {};
3958
3970
 
3959
3971
  if (this.configuration && this.configuration.accessToken) {
@@ -4248,6 +4260,10 @@ export class SourcesApi extends runtime.BaseAPI {
4248
4260
  queryParameters['source__slug'] = requestParameters.sourceSlug;
4249
4261
  }
4250
4262
 
4263
+ if (requestParameters.user !== undefined) {
4264
+ queryParameters['user'] = requestParameters.user;
4265
+ }
4266
+
4251
4267
  const headerParameters: runtime.HTTPHeaders = {};
4252
4268
 
4253
4269
  if (this.configuration && this.configuration.accessToken) {
@@ -4542,6 +4558,10 @@ export class SourcesApi extends runtime.BaseAPI {
4542
4558
  queryParameters['source__slug'] = requestParameters.sourceSlug;
4543
4559
  }
4544
4560
 
4561
+ if (requestParameters.user !== undefined) {
4562
+ queryParameters['user'] = requestParameters.user;
4563
+ }
4564
+
4545
4565
  const headerParameters: runtime.HTTPHeaders = {};
4546
4566
 
4547
4567
  if (this.configuration && this.configuration.accessToken) {
@@ -91,6 +91,12 @@ export interface Brand {
91
91
  * @memberof Brand
92
92
  */
93
93
  flowDeviceCode?: string | null;
94
+ /**
95
+ * When set, external users will be redirected to this application after authenticating.
96
+ * @type {string}
97
+ * @memberof Brand
98
+ */
99
+ defaultApplication?: string | null;
94
100
  /**
95
101
  * Web Certificate used by the authentik Core webserver.
96
102
  * @type {string}
@@ -138,6 +144,7 @@ export function BrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bra
138
144
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
139
145
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
140
146
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
147
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
141
148
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
142
149
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
143
150
  };
@@ -163,6 +170,7 @@ export function BrandToJSON(value?: Brand | null): any {
163
170
  'flow_unenrollment': value.flowUnenrollment,
164
171
  'flow_user_settings': value.flowUserSettings,
165
172
  'flow_device_code': value.flowDeviceCode,
173
+ 'default_application': value.defaultApplication,
166
174
  'web_certificate': value.webCertificate,
167
175
  'attributes': value.attributes,
168
176
  };
@@ -85,6 +85,12 @@ export interface BrandRequest {
85
85
  * @memberof BrandRequest
86
86
  */
87
87
  flowDeviceCode?: string | null;
88
+ /**
89
+ * When set, external users will be redirected to this application after authenticating.
90
+ * @type {string}
91
+ * @memberof BrandRequest
92
+ */
93
+ defaultApplication?: string | null;
88
94
  /**
89
95
  * Web Certificate used by the authentik Core webserver.
90
96
  * @type {string}
@@ -130,6 +136,7 @@ export function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
130
136
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
131
137
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
132
138
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
139
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
133
140
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
134
141
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
135
142
  };
@@ -155,6 +162,7 @@ export function BrandRequestToJSON(value?: BrandRequest | null): any {
155
162
  'flow_unenrollment': value.flowUnenrollment,
156
163
  'flow_user_settings': value.flowUserSettings,
157
164
  'flow_device_code': value.flowDeviceCode,
165
+ 'default_application': value.defaultApplication,
158
166
  'web_certificate': value.webCertificate,
159
167
  'attributes': value.attributes,
160
168
  };
@@ -85,6 +85,12 @@ export interface PatchedBrandRequest {
85
85
  * @memberof PatchedBrandRequest
86
86
  */
87
87
  flowDeviceCode?: string | null;
88
+ /**
89
+ * When set, external users will be redirected to this application after authenticating.
90
+ * @type {string}
91
+ * @memberof PatchedBrandRequest
92
+ */
93
+ defaultApplication?: string | null;
88
94
  /**
89
95
  * Web Certificate used by the authentik Core webserver.
90
96
  * @type {string}
@@ -129,6 +135,7 @@ export function PatchedBrandRequestFromJSONTyped(json: any, ignoreDiscriminator:
129
135
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
130
136
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
131
137
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
138
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
132
139
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
133
140
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
134
141
  };
@@ -154,6 +161,7 @@ export function PatchedBrandRequestToJSON(value?: PatchedBrandRequest | null): a
154
161
  'flow_unenrollment': value.flowUnenrollment,
155
162
  'flow_user_settings': value.flowUserSettings,
156
163
  'flow_device_code': value.flowDeviceCode,
164
+ 'default_application': value.defaultApplication,
157
165
  'web_certificate': value.webCertificate,
158
166
  'attributes': value.attributes,
159
167
  };
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PatchedUserOAuthSourceConnectionRequest
20
20
  */
21
21
  export interface PatchedUserOAuthSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof PatchedUserOAuthSourceConnectionRequest
26
- */
27
- user?: number;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -58,7 +52,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json: any,
58
52
  }
59
53
  return {
60
54
 
61
- 'user': !exists(json, 'user') ? undefined : json['user'],
62
55
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
63
56
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
64
57
  };
@@ -73,7 +66,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value?: PatchedUse
73
66
  }
74
67
  return {
75
68
 
76
- 'user': value.user,
77
69
  'identifier': value.identifier,
78
70
  'access_token': value.accessToken,
79
71
  };
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PatchedUserSAMLSourceConnectionRequest
20
20
  */
21
21
  export interface PatchedUserSAMLSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof PatchedUserSAMLSourceConnectionRequest
26
- */
27
- user?: number;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -52,7 +46,6 @@ export function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json: any, i
52
46
  }
53
47
  return {
54
48
 
55
- 'user': !exists(json, 'user') ? undefined : json['user'],
56
49
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
57
50
  };
58
51
  }
@@ -66,7 +59,6 @@ export function PatchedUserSAMLSourceConnectionRequestToJSON(value?: PatchedUser
66
59
  }
67
60
  return {
68
61
 
69
- 'user': value.user,
70
62
  'identifier': value.identifier,
71
63
  };
72
64
  }
@@ -46,16 +46,16 @@ export interface PlexSourceConnection {
46
46
  readonly source: Source;
47
47
  /**
48
48
  *
49
- * @type {string}
49
+ * @type {Date}
50
50
  * @memberof PlexSourceConnection
51
51
  */
52
- identifier: string;
52
+ readonly created: Date;
53
53
  /**
54
54
  *
55
55
  * @type {string}
56
56
  * @memberof PlexSourceConnection
57
57
  */
58
- plexToken: string;
58
+ identifier: string;
59
59
  }
60
60
 
61
61
  /**
@@ -66,8 +66,8 @@ export function instanceOfPlexSourceConnection(value: object): boolean {
66
66
  isInstance = isInstance && "pk" in value;
67
67
  isInstance = isInstance && "user" in value;
68
68
  isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "created" in value;
69
70
  isInstance = isInstance && "identifier" in value;
70
- isInstance = isInstance && "plexToken" in value;
71
71
 
72
72
  return isInstance;
73
73
  }
@@ -85,8 +85,8 @@ export function PlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator
85
85
  'pk': json['pk'],
86
86
  'user': json['user'],
87
87
  'source': SourceFromJSON(json['source']),
88
+ 'created': (new Date(json['created'])),
88
89
  'identifier': json['identifier'],
89
- 'plexToken': json['plex_token'],
90
90
  };
91
91
  }
92
92
 
@@ -100,7 +100,6 @@ export function PlexSourceConnectionToJSON(value?: PlexSourceConnection | null):
100
100
  return {
101
101
 
102
102
  'identifier': value.identifier,
103
- 'plex_token': value.plexToken,
104
103
  };
105
104
  }
106
105
 
@@ -37,13 +37,19 @@ export interface UserOAuthSourceConnection {
37
37
  * @type {number}
38
38
  * @memberof UserOAuthSourceConnection
39
39
  */
40
- user: number;
40
+ readonly user: number;
41
41
  /**
42
42
  *
43
43
  * @type {Source}
44
44
  * @memberof UserOAuthSourceConnection
45
45
  */
46
46
  readonly source: Source;
47
+ /**
48
+ *
49
+ * @type {Date}
50
+ * @memberof UserOAuthSourceConnection
51
+ */
52
+ readonly created: Date;
47
53
  /**
48
54
  *
49
55
  * @type {string}
@@ -60,6 +66,7 @@ export function instanceOfUserOAuthSourceConnection(value: object): boolean {
60
66
  isInstance = isInstance && "pk" in value;
61
67
  isInstance = isInstance && "user" in value;
62
68
  isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "created" in value;
63
70
  isInstance = isInstance && "identifier" in value;
64
71
 
65
72
  return isInstance;
@@ -78,6 +85,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
78
85
  'pk': json['pk'],
79
86
  'user': json['user'],
80
87
  'source': SourceFromJSON(json['source']),
88
+ 'created': (new Date(json['created'])),
81
89
  'identifier': json['identifier'],
82
90
  };
83
91
  }
@@ -91,7 +99,6 @@ export function UserOAuthSourceConnectionToJSON(value?: UserOAuthSourceConnectio
91
99
  }
92
100
  return {
93
101
 
94
- 'user': value.user,
95
102
  'identifier': value.identifier,
96
103
  };
97
104
  }
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface UserOAuthSourceConnectionRequest
20
20
  */
21
21
  export interface UserOAuthSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof UserOAuthSourceConnectionRequest
26
- */
27
- user: number;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -44,7 +38,6 @@ export interface UserOAuthSourceConnectionRequest {
44
38
  */
45
39
  export function instanceOfUserOAuthSourceConnectionRequest(value: object): boolean {
46
40
  let isInstance = true;
47
- isInstance = isInstance && "user" in value;
48
41
  isInstance = isInstance && "identifier" in value;
49
42
 
50
43
  return isInstance;
@@ -60,7 +53,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreD
60
53
  }
61
54
  return {
62
55
 
63
- 'user': json['user'],
64
56
  'identifier': json['identifier'],
65
57
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
66
58
  };
@@ -75,7 +67,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value?: UserOAuthSourceCo
75
67
  }
76
68
  return {
77
69
 
78
- 'user': value.user,
79
70
  'identifier': value.identifier,
80
71
  'access_token': value.accessToken,
81
72
  };
@@ -37,13 +37,19 @@ export interface UserSAMLSourceConnection {
37
37
  * @type {number}
38
38
  * @memberof UserSAMLSourceConnection
39
39
  */
40
- user: number;
40
+ readonly user: number;
41
41
  /**
42
42
  *
43
43
  * @type {Source}
44
44
  * @memberof UserSAMLSourceConnection
45
45
  */
46
46
  readonly source: Source;
47
+ /**
48
+ *
49
+ * @type {Date}
50
+ * @memberof UserSAMLSourceConnection
51
+ */
52
+ readonly created: Date;
47
53
  /**
48
54
  *
49
55
  * @type {string}
@@ -60,6 +66,7 @@ export function instanceOfUserSAMLSourceConnection(value: object): boolean {
60
66
  isInstance = isInstance && "pk" in value;
61
67
  isInstance = isInstance && "user" in value;
62
68
  isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "created" in value;
63
70
  isInstance = isInstance && "identifier" in value;
64
71
 
65
72
  return isInstance;
@@ -78,6 +85,7 @@ export function UserSAMLSourceConnectionFromJSONTyped(json: any, ignoreDiscrimin
78
85
  'pk': json['pk'],
79
86
  'user': json['user'],
80
87
  'source': SourceFromJSON(json['source']),
88
+ 'created': (new Date(json['created'])),
81
89
  'identifier': json['identifier'],
82
90
  };
83
91
  }
@@ -91,7 +99,6 @@ export function UserSAMLSourceConnectionToJSON(value?: UserSAMLSourceConnection
91
99
  }
92
100
  return {
93
101
 
94
- 'user': value.user,
95
102
  'identifier': value.identifier,
96
103
  };
97
104
  }
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface UserSAMLSourceConnectionRequest
20
20
  */
21
21
  export interface UserSAMLSourceConnectionRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof UserSAMLSourceConnectionRequest
26
- */
27
- user: number;
28
22
  /**
29
23
  *
30
24
  * @type {string}
@@ -38,7 +32,6 @@ export interface UserSAMLSourceConnectionRequest {
38
32
  */
39
33
  export function instanceOfUserSAMLSourceConnectionRequest(value: object): boolean {
40
34
  let isInstance = true;
41
- isInstance = isInstance && "user" in value;
42
35
  isInstance = isInstance && "identifier" in value;
43
36
 
44
37
  return isInstance;
@@ -54,7 +47,6 @@ export function UserSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDi
54
47
  }
55
48
  return {
56
49
 
57
- 'user': json['user'],
58
50
  'identifier': json['identifier'],
59
51
  };
60
52
  }
@@ -68,7 +60,6 @@ export function UserSAMLSourceConnectionRequestToJSON(value?: UserSAMLSourceConn
68
60
  }
69
61
  return {
70
62
 
71
- 'user': value.user,
72
63
  'identifier': value.identifier,
73
64
  };
74
65
  }