@goauthentik/api 2024.6.1-1721725857 → 2024.6.1-1721909829

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/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/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  6. package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  7. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
  8. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
  9. package/dist/esm/models/PlexSourceConnection.d.ts +3 -3
  10. package/dist/esm/models/PlexSourceConnection.js +2 -3
  11. package/dist/esm/models/UserOAuthSourceConnection.d.ts +7 -1
  12. package/dist/esm/models/UserOAuthSourceConnection.js +2 -1
  13. package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  14. package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -3
  15. package/dist/esm/models/UserSAMLSourceConnection.d.ts +7 -1
  16. package/dist/esm/models/UserSAMLSourceConnection.js +2 -1
  17. package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
  18. package/dist/esm/models/UserSAMLSourceConnectionRequest.js +0 -3
  19. package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
  20. package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
  21. package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
  22. package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
  23. package/dist/models/PlexSourceConnection.d.ts +3 -3
  24. package/dist/models/PlexSourceConnection.js +2 -3
  25. package/dist/models/UserOAuthSourceConnection.d.ts +7 -1
  26. package/dist/models/UserOAuthSourceConnection.js +2 -1
  27. package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
  28. package/dist/models/UserOAuthSourceConnectionRequest.js +0 -3
  29. package/dist/models/UserSAMLSourceConnection.d.ts +7 -1
  30. package/dist/models/UserSAMLSourceConnection.js +2 -1
  31. package/dist/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
  32. package/dist/models/UserSAMLSourceConnectionRequest.js +0 -3
  33. package/package.json +1 -1
  34. package/src/apis/SourcesApi.ts +20 -0
  35. package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
  36. package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +0 -8
  37. package/src/models/PlexSourceConnection.ts +5 -6
  38. package/src/models/UserOAuthSourceConnection.ts +9 -2
  39. package/src/models/UserOAuthSourceConnectionRequest.ts +0 -9
  40. package/src/models/UserSAMLSourceConnection.ts +9 -2
  41. package/src/models/UserSAMLSourceConnectionRequest.ts +0 -9
@@ -323,6 +323,7 @@ export interface SourcesUserConnectionsAllListRequest {
323
323
  page?: number;
324
324
  pageSize?: number;
325
325
  search?: string;
326
+ sourceSlug?: string;
326
327
  user?: number;
327
328
  }
328
329
  export interface SourcesUserConnectionsAllPartialUpdateRequest {
@@ -349,6 +350,7 @@ export interface SourcesUserConnectionsOauthListRequest {
349
350
  pageSize?: number;
350
351
  search?: string;
351
352
  sourceSlug?: string;
353
+ user?: number;
352
354
  }
353
355
  export interface SourcesUserConnectionsOauthPartialUpdateRequest {
354
356
  id: number;
@@ -376,6 +378,7 @@ export interface SourcesUserConnectionsPlexListRequest {
376
378
  pageSize?: number;
377
379
  search?: string;
378
380
  sourceSlug?: string;
381
+ user?: number;
379
382
  }
380
383
  export interface SourcesUserConnectionsPlexPartialUpdateRequest {
381
384
  id: number;
@@ -403,6 +406,7 @@ export interface SourcesUserConnectionsSamlListRequest {
403
406
  pageSize?: number;
404
407
  search?: string;
405
408
  sourceSlug?: string;
409
+ user?: number;
406
410
  }
407
411
  export interface SourcesUserConnectionsSamlPartialUpdateRequest {
408
412
  id: number;
@@ -2675,6 +2675,9 @@ class SourcesApi extends runtime.BaseAPI {
2675
2675
  if (requestParameters.search !== undefined) {
2676
2676
  queryParameters['search'] = requestParameters.search;
2677
2677
  }
2678
+ if (requestParameters.sourceSlug !== undefined) {
2679
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
2680
+ }
2678
2681
  if (requestParameters.user !== undefined) {
2679
2682
  queryParameters['user'] = requestParameters.user;
2680
2683
  }
@@ -2936,6 +2939,9 @@ class SourcesApi extends runtime.BaseAPI {
2936
2939
  if (requestParameters.sourceSlug !== undefined) {
2937
2940
  queryParameters['source__slug'] = requestParameters.sourceSlug;
2938
2941
  }
2942
+ if (requestParameters.user !== undefined) {
2943
+ queryParameters['user'] = requestParameters.user;
2944
+ }
2939
2945
  const headerParameters = {};
2940
2946
  if (this.configuration && this.configuration.accessToken) {
2941
2947
  const token = this.configuration.accessToken;
@@ -3201,6 +3207,9 @@ class SourcesApi extends runtime.BaseAPI {
3201
3207
  if (requestParameters.sourceSlug !== undefined) {
3202
3208
  queryParameters['source__slug'] = requestParameters.sourceSlug;
3203
3209
  }
3210
+ if (requestParameters.user !== undefined) {
3211
+ queryParameters['user'] = requestParameters.user;
3212
+ }
3204
3213
  const headerParameters = {};
3205
3214
  if (this.configuration && this.configuration.accessToken) {
3206
3215
  const token = this.configuration.accessToken;
@@ -3466,6 +3475,9 @@ class SourcesApi extends runtime.BaseAPI {
3466
3475
  if (requestParameters.sourceSlug !== undefined) {
3467
3476
  queryParameters['source__slug'] = requestParameters.sourceSlug;
3468
3477
  }
3478
+ if (requestParameters.user !== undefined) {
3479
+ queryParameters['user'] = requestParameters.user;
3480
+ }
3469
3481
  const headerParameters = {};
3470
3482
  if (this.configuration && this.configuration.accessToken) {
3471
3483
  const token = this.configuration.accessToken;
@@ -323,6 +323,7 @@ export interface SourcesUserConnectionsAllListRequest {
323
323
  page?: number;
324
324
  pageSize?: number;
325
325
  search?: string;
326
+ sourceSlug?: string;
326
327
  user?: number;
327
328
  }
328
329
  export interface SourcesUserConnectionsAllPartialUpdateRequest {
@@ -349,6 +350,7 @@ export interface SourcesUserConnectionsOauthListRequest {
349
350
  pageSize?: number;
350
351
  search?: string;
351
352
  sourceSlug?: string;
353
+ user?: number;
352
354
  }
353
355
  export interface SourcesUserConnectionsOauthPartialUpdateRequest {
354
356
  id: number;
@@ -376,6 +378,7 @@ export interface SourcesUserConnectionsPlexListRequest {
376
378
  pageSize?: number;
377
379
  search?: string;
378
380
  sourceSlug?: string;
381
+ user?: number;
379
382
  }
380
383
  export interface SourcesUserConnectionsPlexPartialUpdateRequest {
381
384
  id: number;
@@ -403,6 +406,7 @@ export interface SourcesUserConnectionsSamlListRequest {
403
406
  pageSize?: number;
404
407
  search?: string;
405
408
  sourceSlug?: string;
409
+ user?: number;
406
410
  }
407
411
  export interface SourcesUserConnectionsSamlPartialUpdateRequest {
408
412
  id: number;
@@ -2672,6 +2672,9 @@ export class SourcesApi extends runtime.BaseAPI {
2672
2672
  if (requestParameters.search !== undefined) {
2673
2673
  queryParameters['search'] = requestParameters.search;
2674
2674
  }
2675
+ if (requestParameters.sourceSlug !== undefined) {
2676
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
2677
+ }
2675
2678
  if (requestParameters.user !== undefined) {
2676
2679
  queryParameters['user'] = requestParameters.user;
2677
2680
  }
@@ -2933,6 +2936,9 @@ export class SourcesApi extends runtime.BaseAPI {
2933
2936
  if (requestParameters.sourceSlug !== undefined) {
2934
2937
  queryParameters['source__slug'] = requestParameters.sourceSlug;
2935
2938
  }
2939
+ if (requestParameters.user !== undefined) {
2940
+ queryParameters['user'] = requestParameters.user;
2941
+ }
2936
2942
  const headerParameters = {};
2937
2943
  if (this.configuration && this.configuration.accessToken) {
2938
2944
  const token = this.configuration.accessToken;
@@ -3198,6 +3204,9 @@ export class SourcesApi extends runtime.BaseAPI {
3198
3204
  if (requestParameters.sourceSlug !== undefined) {
3199
3205
  queryParameters['source__slug'] = requestParameters.sourceSlug;
3200
3206
  }
3207
+ if (requestParameters.user !== undefined) {
3208
+ queryParameters['user'] = requestParameters.user;
3209
+ }
3201
3210
  const headerParameters = {};
3202
3211
  if (this.configuration && this.configuration.accessToken) {
3203
3212
  const token = this.configuration.accessToken;
@@ -3463,6 +3472,9 @@ export class SourcesApi extends runtime.BaseAPI {
3463
3472
  if (requestParameters.sourceSlug !== undefined) {
3464
3473
  queryParameters['source__slug'] = requestParameters.sourceSlug;
3465
3474
  }
3475
+ if (requestParameters.user !== undefined) {
3476
+ queryParameters['user'] = requestParameters.user;
3477
+ }
3466
3478
  const headerParameters = {};
3467
3479
  if (this.configuration && this.configuration.accessToken) {
3468
3480
  const token = this.configuration.accessToken;
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedUserOAuthSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedUserOAuthSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof PatchedUserOAuthSourceConnectionRequest
22
- */
23
- user?: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -27,7 +27,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignor
27
27
  return json;
28
28
  }
29
29
  return {
30
- 'user': !exists(json, 'user') ? undefined : json['user'],
31
30
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
32
31
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
33
32
  };
@@ -40,7 +39,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
40
39
  return null;
41
40
  }
42
41
  return {
43
- 'user': value.user,
44
42
  'identifier': value.identifier,
45
43
  'access_token': value.accessToken,
46
44
  };
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedUserSAMLSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedUserSAMLSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof PatchedUserSAMLSourceConnectionRequest
22
- */
23
- user?: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -27,7 +27,6 @@ export function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json, ignore
27
27
  return json;
28
28
  }
29
29
  return {
30
- 'user': !exists(json, 'user') ? undefined : json['user'],
31
30
  'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
32
31
  };
33
32
  }
@@ -39,7 +38,6 @@ export function PatchedUserSAMLSourceConnectionRequestToJSON(value) {
39
38
  return null;
40
39
  }
41
40
  return {
42
- 'user': value.user,
43
41
  'identifier': value.identifier,
44
42
  };
45
43
  }
@@ -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.
@@ -20,8 +20,8 @@ export function instanceOfPlexSourceConnection(value) {
20
20
  isInstance = isInstance && "pk" in value;
21
21
  isInstance = isInstance && "user" in value;
22
22
  isInstance = isInstance && "source" in value;
23
+ isInstance = isInstance && "created" in value;
23
24
  isInstance = isInstance && "identifier" in value;
24
- isInstance = isInstance && "plexToken" in value;
25
25
  return isInstance;
26
26
  }
27
27
  export function PlexSourceConnectionFromJSON(json) {
@@ -35,8 +35,8 @@ export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'pk': json['pk'],
36
36
  'user': json['user'],
37
37
  'source': SourceFromJSON(json['source']),
38
+ 'created': (new Date(json['created'])),
38
39
  'identifier': json['identifier'],
39
- 'plexToken': json['plex_token'],
40
40
  };
41
41
  }
42
42
  export function PlexSourceConnectionToJSON(value) {
@@ -48,6 +48,5 @@ export function PlexSourceConnectionToJSON(value) {
48
48
  }
49
49
  return {
50
50
  'identifier': value.identifier,
51
- 'plex_token': value.plexToken,
52
51
  };
53
52
  }
@@ -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}
@@ -20,6 +20,7 @@ export function instanceOfUserOAuthSourceConnection(value) {
20
20
  isInstance = isInstance && "pk" in value;
21
21
  isInstance = isInstance && "user" in value;
22
22
  isInstance = isInstance && "source" in value;
23
+ isInstance = isInstance && "created" in value;
23
24
  isInstance = isInstance && "identifier" in value;
24
25
  return isInstance;
25
26
  }
@@ -34,6 +35,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator
34
35
  'pk': json['pk'],
35
36
  'user': json['user'],
36
37
  'source': SourceFromJSON(json['source']),
38
+ 'created': (new Date(json['created'])),
37
39
  'identifier': json['identifier'],
38
40
  };
39
41
  }
@@ -45,7 +47,6 @@ export function UserOAuthSourceConnectionToJSON(value) {
45
47
  return null;
46
48
  }
47
49
  return {
48
- 'user': value.user,
49
50
  'identifier': value.identifier,
50
51
  };
51
52
  }
@@ -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}
@@ -17,7 +17,6 @@ import { exists } from '../runtime';
17
17
  */
18
18
  export function instanceOfUserOAuthSourceConnectionRequest(value) {
19
19
  let isInstance = true;
20
- isInstance = isInstance && "user" in value;
21
20
  isInstance = isInstance && "identifier" in value;
22
21
  return isInstance;
23
22
  }
@@ -29,7 +28,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
29
28
  return json;
30
29
  }
31
30
  return {
32
- 'user': json['user'],
33
31
  'identifier': json['identifier'],
34
32
  'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
35
33
  };
@@ -42,7 +40,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value) {
42
40
  return null;
43
41
  }
44
42
  return {
45
- 'user': value.user,
46
43
  'identifier': value.identifier,
47
44
  'access_token': value.accessToken,
48
45
  };
@@ -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}
@@ -20,6 +20,7 @@ export function instanceOfUserSAMLSourceConnection(value) {
20
20
  isInstance = isInstance && "pk" in value;
21
21
  isInstance = isInstance && "user" in value;
22
22
  isInstance = isInstance && "source" in value;
23
+ isInstance = isInstance && "created" in value;
23
24
  isInstance = isInstance && "identifier" in value;
24
25
  return isInstance;
25
26
  }
@@ -34,6 +35,7 @@ export function UserSAMLSourceConnectionFromJSONTyped(json, ignoreDiscriminator)
34
35
  'pk': json['pk'],
35
36
  'user': json['user'],
36
37
  'source': SourceFromJSON(json['source']),
38
+ 'created': (new Date(json['created'])),
37
39
  'identifier': json['identifier'],
38
40
  };
39
41
  }
@@ -45,7 +47,6 @@ export function UserSAMLSourceConnectionToJSON(value) {
45
47
  return null;
46
48
  }
47
49
  return {
48
- 'user': value.user,
49
50
  'identifier': value.identifier,
50
51
  };
51
52
  }
@@ -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}
@@ -16,7 +16,6 @@
16
16
  */
17
17
  export function instanceOfUserSAMLSourceConnectionRequest(value) {
18
18
  let isInstance = true;
19
- isInstance = isInstance && "user" in value;
20
19
  isInstance = isInstance && "identifier" in value;
21
20
  return isInstance;
22
21
  }
@@ -28,7 +27,6 @@ export function UserSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscrim
28
27
  return json;
29
28
  }
30
29
  return {
31
- 'user': json['user'],
32
30
  'identifier': json['identifier'],
33
31
  };
34
32
  }
@@ -40,7 +38,6 @@ export function UserSAMLSourceConnectionRequestToJSON(value) {
40
38
  return null;
41
39
  }
42
40
  return {
43
- 'user': value.user,
44
41
  'identifier': value.identifier,
45
42
  };
46
43
  }
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedUserOAuthSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedUserOAuthSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof PatchedUserOAuthSourceConnectionRequest
22
- */
23
- user?: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -32,7 +32,6 @@ function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
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
  'accessToken': !(0, runtime_1.exists)(json, 'access_token') ? undefined : json['access_token'],
38
37
  };
@@ -46,7 +45,6 @@ function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
46
45
  return null;
47
46
  }
48
47
  return {
49
- 'user': value.user,
50
48
  'identifier': value.identifier,
51
49
  'access_token': value.accessToken,
52
50
  };
@@ -15,12 +15,6 @@
15
15
  * @interface PatchedUserSAMLSourceConnectionRequest
16
16
  */
17
17
  export interface PatchedUserSAMLSourceConnectionRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof PatchedUserSAMLSourceConnectionRequest
22
- */
23
- user?: number;
24
18
  /**
25
19
  *
26
20
  * @type {string}
@@ -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-1721725857",
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) {
@@ -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
  }