@goauthentik/api 2023.10.7-1707321538 → 2023.10.7-1707933453

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 (62) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/RacApi.d.ts +75 -1
  3. package/dist/apis/RacApi.js +210 -0
  4. package/dist/esm/apis/RacApi.d.ts +75 -1
  5. package/dist/esm/apis/RacApi.js +211 -1
  6. package/dist/esm/models/AppEnum.d.ts +2 -2
  7. package/dist/esm/models/AppEnum.js +2 -2
  8. package/dist/esm/models/ConnectionToken.d.ts +64 -0
  9. package/dist/esm/models/ConnectionToken.js +56 -0
  10. package/dist/esm/models/ConnectionTokenRequest.d.ts +31 -0
  11. package/dist/esm/models/ConnectionTokenRequest.js +43 -0
  12. package/dist/esm/models/ModelEnum.d.ts +10 -10
  13. package/dist/esm/models/ModelEnum.js +10 -10
  14. package/dist/esm/models/PaginatedConnectionTokenList.d.ts +39 -0
  15. package/dist/esm/models/PaginatedConnectionTokenList.js +48 -0
  16. package/dist/esm/models/PatchedConnectionTokenRequest.d.ts +31 -0
  17. package/dist/esm/models/PatchedConnectionTokenRequest.js +43 -0
  18. package/dist/esm/models/PatchedRACProviderRequest.d.ts +6 -0
  19. package/dist/esm/models/PatchedRACProviderRequest.js +2 -0
  20. package/dist/esm/models/RACProvider.d.ts +6 -0
  21. package/dist/esm/models/RACProvider.js +2 -0
  22. package/dist/esm/models/RACProviderRequest.d.ts +6 -0
  23. package/dist/esm/models/RACProviderRequest.js +2 -0
  24. package/dist/esm/models/UserConsent.d.ts +6 -0
  25. package/dist/esm/models/UserConsent.js +2 -0
  26. package/dist/esm/models/index.d.ts +4 -0
  27. package/dist/esm/models/index.js +4 -0
  28. package/dist/models/AppEnum.d.ts +2 -2
  29. package/dist/models/AppEnum.js +2 -2
  30. package/dist/models/ConnectionToken.d.ts +64 -0
  31. package/dist/models/ConnectionToken.js +63 -0
  32. package/dist/models/ConnectionTokenRequest.d.ts +31 -0
  33. package/dist/models/ConnectionTokenRequest.js +50 -0
  34. package/dist/models/ModelEnum.d.ts +10 -10
  35. package/dist/models/ModelEnum.js +10 -10
  36. package/dist/models/PaginatedConnectionTokenList.d.ts +39 -0
  37. package/dist/models/PaginatedConnectionTokenList.js +55 -0
  38. package/dist/models/PatchedConnectionTokenRequest.d.ts +31 -0
  39. package/dist/models/PatchedConnectionTokenRequest.js +50 -0
  40. package/dist/models/PatchedRACProviderRequest.d.ts +6 -0
  41. package/dist/models/PatchedRACProviderRequest.js +2 -0
  42. package/dist/models/RACProvider.d.ts +6 -0
  43. package/dist/models/RACProvider.js +2 -0
  44. package/dist/models/RACProviderRequest.d.ts +6 -0
  45. package/dist/models/RACProviderRequest.js +2 -0
  46. package/dist/models/UserConsent.d.ts +6 -0
  47. package/dist/models/UserConsent.js +2 -0
  48. package/dist/models/index.d.ts +4 -0
  49. package/dist/models/index.js +4 -0
  50. package/package.json +1 -1
  51. package/src/apis/RacApi.ts +281 -0
  52. package/src/models/AppEnum.ts +2 -2
  53. package/src/models/ConnectionToken.ts +125 -0
  54. package/src/models/ConnectionTokenRequest.ts +66 -0
  55. package/src/models/ModelEnum.ts +10 -10
  56. package/src/models/PaginatedConnectionTokenList.ts +88 -0
  57. package/src/models/PatchedConnectionTokenRequest.ts +65 -0
  58. package/src/models/PatchedRACProviderRequest.ts +8 -0
  59. package/src/models/RACProvider.ts +8 -0
  60. package/src/models/RACProviderRequest.ts +8 -0
  61. package/src/models/UserConsent.ts +8 -0
  62. package/src/models/index.ts +4 -0
@@ -14,7 +14,6 @@
14
14
  * * `authentik.admin` - authentik Admin
15
15
  * * `authentik.api` - authentik API
16
16
  * * `authentik.crypto` - authentik Crypto
17
- * * `authentik.events` - authentik Events
18
17
  * * `authentik.flows` - authentik Flows
19
18
  * * `authentik.outposts` - authentik Outpost
20
19
  * * `authentik.policies.dummy` - authentik Policies.Dummy
@@ -62,6 +61,7 @@
62
61
  * * `authentik.enterprise` - authentik Enterprise
63
62
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
64
63
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
64
+ * * `authentik.events` - authentik Events
65
65
  * @export
66
66
  */
67
67
  export declare const AppEnum: {
@@ -69,7 +69,6 @@ export declare const AppEnum: {
69
69
  readonly Admin: "authentik.admin";
70
70
  readonly Api: "authentik.api";
71
71
  readonly Crypto: "authentik.crypto";
72
- readonly Events: "authentik.events";
73
72
  readonly Flows: "authentik.flows";
74
73
  readonly Outposts: "authentik.outposts";
75
74
  readonly PoliciesDummy: "authentik.policies.dummy";
@@ -117,6 +116,7 @@ export declare const AppEnum: {
117
116
  readonly Enterprise: "authentik.enterprise";
118
117
  readonly EnterpriseAudit: "authentik.enterprise.audit";
119
118
  readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
119
+ readonly Events: "authentik.events";
120
120
  readonly UnknownDefaultOpenApi: "11184809";
121
121
  };
122
122
  export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
@@ -16,7 +16,6 @@
16
16
  * * `authentik.admin` - authentik Admin
17
17
  * * `authentik.api` - authentik API
18
18
  * * `authentik.crypto` - authentik Crypto
19
- * * `authentik.events` - authentik Events
20
19
  * * `authentik.flows` - authentik Flows
21
20
  * * `authentik.outposts` - authentik Outpost
22
21
  * * `authentik.policies.dummy` - authentik Policies.Dummy
@@ -64,6 +63,7 @@
64
63
  * * `authentik.enterprise` - authentik Enterprise
65
64
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
66
65
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
66
+ * * `authentik.events` - authentik Events
67
67
  * @export
68
68
  */
69
69
  export const AppEnum = {
@@ -71,7 +71,6 @@ export const AppEnum = {
71
71
  Admin: 'authentik.admin',
72
72
  Api: 'authentik.api',
73
73
  Crypto: 'authentik.crypto',
74
- Events: 'authentik.events',
75
74
  Flows: 'authentik.flows',
76
75
  Outposts: 'authentik.outposts',
77
76
  PoliciesDummy: 'authentik.policies.dummy',
@@ -119,6 +118,7 @@ export const AppEnum = {
119
118
  Enterprise: 'authentik.enterprise',
120
119
  EnterpriseAudit: 'authentik.enterprise.audit',
121
120
  EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
121
+ Events: 'authentik.events',
122
122
  UnknownDefaultOpenApi: '11184809'
123
123
  };
124
124
  export function AppEnumFromJSON(json) {
@@ -0,0 +1,64 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Endpoint } from './Endpoint';
13
+ import type { GroupMember } from './GroupMember';
14
+ import type { RACProvider } from './RACProvider';
15
+ /**
16
+ * ConnectionToken Serializer
17
+ * @export
18
+ * @interface ConnectionToken
19
+ */
20
+ export interface ConnectionToken {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ConnectionToken
25
+ */
26
+ readonly pk: string;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof ConnectionToken
31
+ */
32
+ provider: number;
33
+ /**
34
+ *
35
+ * @type {RACProvider}
36
+ * @memberof ConnectionToken
37
+ */
38
+ readonly providerObj: RACProvider;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ConnectionToken
43
+ */
44
+ readonly endpoint: string;
45
+ /**
46
+ *
47
+ * @type {Endpoint}
48
+ * @memberof ConnectionToken
49
+ */
50
+ readonly endpointObj: Endpoint;
51
+ /**
52
+ *
53
+ * @type {GroupMember}
54
+ * @memberof ConnectionToken
55
+ */
56
+ readonly user: GroupMember;
57
+ }
58
+ /**
59
+ * Check if a given object implements the ConnectionToken interface.
60
+ */
61
+ export declare function instanceOfConnectionToken(value: object): boolean;
62
+ export declare function ConnectionTokenFromJSON(json: any): ConnectionToken;
63
+ export declare function ConnectionTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectionToken;
64
+ export declare function ConnectionTokenToJSON(value?: ConnectionToken | null): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.7
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { EndpointFromJSON, } from './Endpoint';
15
+ import { GroupMemberFromJSON, } from './GroupMember';
16
+ import { RACProviderFromJSON, } from './RACProvider';
17
+ /**
18
+ * Check if a given object implements the ConnectionToken interface.
19
+ */
20
+ export function instanceOfConnectionToken(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "pk" in value;
23
+ isInstance = isInstance && "provider" in value;
24
+ isInstance = isInstance && "providerObj" in value;
25
+ isInstance = isInstance && "endpoint" in value;
26
+ isInstance = isInstance && "endpointObj" in value;
27
+ isInstance = isInstance && "user" in value;
28
+ return isInstance;
29
+ }
30
+ export function ConnectionTokenFromJSON(json) {
31
+ return ConnectionTokenFromJSONTyped(json, false);
32
+ }
33
+ export function ConnectionTokenFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pk': json['pk'],
39
+ 'provider': json['provider'],
40
+ 'providerObj': RACProviderFromJSON(json['provider_obj']),
41
+ 'endpoint': json['endpoint'],
42
+ 'endpointObj': EndpointFromJSON(json['endpoint_obj']),
43
+ 'user': GroupMemberFromJSON(json['user']),
44
+ };
45
+ }
46
+ export function ConnectionTokenToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'provider': value.provider,
55
+ };
56
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * ConnectionToken Serializer
14
+ * @export
15
+ * @interface ConnectionTokenRequest
16
+ */
17
+ export interface ConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ConnectionTokenRequest
22
+ */
23
+ provider: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ConnectionTokenRequest interface.
27
+ */
28
+ export declare function instanceOfConnectionTokenRequest(value: object): boolean;
29
+ export declare function ConnectionTokenRequestFromJSON(json: any): ConnectionTokenRequest;
30
+ export declare function ConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectionTokenRequest;
31
+ export declare function ConnectionTokenRequestToJSON(value?: ConnectionTokenRequest | null): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.7
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ConnectionTokenRequest interface.
16
+ */
17
+ export function instanceOfConnectionTokenRequest(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "provider" in value;
20
+ return isInstance;
21
+ }
22
+ export function ConnectionTokenRequestFromJSON(json) {
23
+ return ConnectionTokenRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'provider': json['provider'],
31
+ };
32
+ }
33
+ export function ConnectionTokenRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'provider': value.provider,
42
+ };
43
+ }
@@ -12,11 +12,6 @@
12
12
  /**
13
13
  * * `authentik_tenants.domain` - Domain
14
14
  * * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
15
- * * `authentik_events.event` - Event
16
- * * `authentik_events.notificationtransport` - Notification Transport
17
- * * `authentik_events.notification` - Notification
18
- * * `authentik_events.notificationrule` - Notification Rule
19
- * * `authentik_events.notificationwebhookmapping` - Webhook Mapping
20
15
  * * `authentik_flows.flow` - Flow
21
16
  * * `authentik_flows.flowstagebinding` - Flow Stage Binding
22
17
  * * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
@@ -84,16 +79,16 @@
84
79
  * * `authentik_providers_rac.racprovider` - RAC Provider
85
80
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
86
81
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
82
+ * * `authentik_events.event` - Event
83
+ * * `authentik_events.notificationtransport` - Notification Transport
84
+ * * `authentik_events.notification` - Notification
85
+ * * `authentik_events.notificationrule` - Notification Rule
86
+ * * `authentik_events.notificationwebhookmapping` - Webhook Mapping
87
87
  * @export
88
88
  */
89
89
  export declare const ModelEnum: {
90
90
  readonly TenantsDomain: "authentik_tenants.domain";
91
91
  readonly CryptoCertificatekeypair: "authentik_crypto.certificatekeypair";
92
- readonly EventsEvent: "authentik_events.event";
93
- readonly EventsNotificationtransport: "authentik_events.notificationtransport";
94
- readonly EventsNotification: "authentik_events.notification";
95
- readonly EventsNotificationrule: "authentik_events.notificationrule";
96
- readonly EventsNotificationwebhookmapping: "authentik_events.notificationwebhookmapping";
97
92
  readonly FlowsFlow: "authentik_flows.flow";
98
93
  readonly FlowsFlowstagebinding: "authentik_flows.flowstagebinding";
99
94
  readonly OutpostsDockerserviceconnection: "authentik_outposts.dockerserviceconnection";
@@ -161,6 +156,11 @@ export declare const ModelEnum: {
161
156
  readonly ProvidersRacRacprovider: "authentik_providers_rac.racprovider";
162
157
  readonly ProvidersRacEndpoint: "authentik_providers_rac.endpoint";
163
158
  readonly ProvidersRacRacpropertymapping: "authentik_providers_rac.racpropertymapping";
159
+ readonly EventsEvent: "authentik_events.event";
160
+ readonly EventsNotificationtransport: "authentik_events.notificationtransport";
161
+ readonly EventsNotification: "authentik_events.notification";
162
+ readonly EventsNotificationrule: "authentik_events.notificationrule";
163
+ readonly EventsNotificationwebhookmapping: "authentik_events.notificationwebhookmapping";
164
164
  readonly UnknownDefaultOpenApi: "11184809";
165
165
  };
166
166
  export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
@@ -14,11 +14,6 @@
14
14
  /**
15
15
  * * `authentik_tenants.domain` - Domain
16
16
  * * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
17
- * * `authentik_events.event` - Event
18
- * * `authentik_events.notificationtransport` - Notification Transport
19
- * * `authentik_events.notification` - Notification
20
- * * `authentik_events.notificationrule` - Notification Rule
21
- * * `authentik_events.notificationwebhookmapping` - Webhook Mapping
22
17
  * * `authentik_flows.flow` - Flow
23
18
  * * `authentik_flows.flowstagebinding` - Flow Stage Binding
24
19
  * * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
@@ -86,16 +81,16 @@
86
81
  * * `authentik_providers_rac.racprovider` - RAC Provider
87
82
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
88
83
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
84
+ * * `authentik_events.event` - Event
85
+ * * `authentik_events.notificationtransport` - Notification Transport
86
+ * * `authentik_events.notification` - Notification
87
+ * * `authentik_events.notificationrule` - Notification Rule
88
+ * * `authentik_events.notificationwebhookmapping` - Webhook Mapping
89
89
  * @export
90
90
  */
91
91
  export const ModelEnum = {
92
92
  TenantsDomain: 'authentik_tenants.domain',
93
93
  CryptoCertificatekeypair: 'authentik_crypto.certificatekeypair',
94
- EventsEvent: 'authentik_events.event',
95
- EventsNotificationtransport: 'authentik_events.notificationtransport',
96
- EventsNotification: 'authentik_events.notification',
97
- EventsNotificationrule: 'authentik_events.notificationrule',
98
- EventsNotificationwebhookmapping: 'authentik_events.notificationwebhookmapping',
99
94
  FlowsFlow: 'authentik_flows.flow',
100
95
  FlowsFlowstagebinding: 'authentik_flows.flowstagebinding',
101
96
  OutpostsDockerserviceconnection: 'authentik_outposts.dockerserviceconnection',
@@ -163,6 +158,11 @@ export const ModelEnum = {
163
158
  ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
164
159
  ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
165
160
  ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
161
+ EventsEvent: 'authentik_events.event',
162
+ EventsNotificationtransport: 'authentik_events.notificationtransport',
163
+ EventsNotification: 'authentik_events.notification',
164
+ EventsNotificationrule: 'authentik_events.notificationrule',
165
+ EventsNotificationwebhookmapping: 'authentik_events.notificationwebhookmapping',
166
166
  UnknownDefaultOpenApi: '11184809'
167
167
  };
168
168
  export function ModelEnumFromJSON(json) {
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ConnectionToken } from './ConnectionToken';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedConnectionTokenList
18
+ */
19
+ export interface PaginatedConnectionTokenList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedConnectionTokenList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<ConnectionToken>}
29
+ * @memberof PaginatedConnectionTokenList
30
+ */
31
+ results: Array<ConnectionToken>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedConnectionTokenList interface.
35
+ */
36
+ export declare function instanceOfPaginatedConnectionTokenList(value: object): boolean;
37
+ export declare function PaginatedConnectionTokenListFromJSON(json: any): PaginatedConnectionTokenList;
38
+ export declare function PaginatedConnectionTokenListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectionTokenList;
39
+ export declare function PaginatedConnectionTokenListToJSON(value?: PaginatedConnectionTokenList | null): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.7
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ConnectionTokenFromJSON, ConnectionTokenToJSON, } from './ConnectionToken';
15
+ import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
16
+ /**
17
+ * Check if a given object implements the PaginatedConnectionTokenList interface.
18
+ */
19
+ export function instanceOfPaginatedConnectionTokenList(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pagination" in value;
22
+ isInstance = isInstance && "results" in value;
23
+ return isInstance;
24
+ }
25
+ export function PaginatedConnectionTokenListFromJSON(json) {
26
+ return PaginatedConnectionTokenListFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedConnectionTokenListFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'pagination': PaginationFromJSON(json['pagination']),
34
+ 'results': (json['results'].map(ConnectionTokenFromJSON)),
35
+ };
36
+ }
37
+ export function PaginatedConnectionTokenListToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'pagination': PaginationToJSON(value.pagination),
46
+ 'results': (value.results.map(ConnectionTokenToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * ConnectionToken Serializer
14
+ * @export
15
+ * @interface PatchedConnectionTokenRequest
16
+ */
17
+ export interface PatchedConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PatchedConnectionTokenRequest
22
+ */
23
+ provider?: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchedConnectionTokenRequest interface.
27
+ */
28
+ export declare function instanceOfPatchedConnectionTokenRequest(value: object): boolean;
29
+ export declare function PatchedConnectionTokenRequestFromJSON(json: any): PatchedConnectionTokenRequest;
30
+ export declare function PatchedConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedConnectionTokenRequest;
31
+ export declare function PatchedConnectionTokenRequestToJSON(value?: PatchedConnectionTokenRequest | null): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.7
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the PatchedConnectionTokenRequest interface.
17
+ */
18
+ export function instanceOfPatchedConnectionTokenRequest(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function PatchedConnectionTokenRequestFromJSON(json) {
23
+ return PatchedConnectionTokenRequestFromJSONTyped(json, false);
24
+ }
25
+ export function PatchedConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'provider': !exists(json, 'provider') ? undefined : json['provider'],
31
+ };
32
+ }
33
+ export function PatchedConnectionTokenRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'provider': value.provider,
42
+ };
43
+ }
@@ -51,6 +51,12 @@ export interface PatchedRACProviderRequest {
51
51
  * @memberof PatchedRACProviderRequest
52
52
  */
53
53
  connectionExpiry?: string;
54
+ /**
55
+ * When set to true, connection tokens will be deleted upon disconnect.
56
+ * @type {boolean}
57
+ * @memberof PatchedRACProviderRequest
58
+ */
59
+ deleteTokenOnDisconnect?: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the PatchedRACProviderRequest interface.
@@ -33,6 +33,7 @@ export function PatchedRACProviderRequestFromJSONTyped(json, ignoreDiscriminator
33
33
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
34
34
  'settings': !exists(json, 'settings') ? undefined : json['settings'],
35
35
  'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
36
+ 'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
36
37
  };
37
38
  }
38
39
  export function PatchedRACProviderRequestToJSON(value) {
@@ -49,5 +50,6 @@ export function PatchedRACProviderRequestToJSON(value) {
49
50
  'property_mappings': value.propertyMappings,
50
51
  'settings': value.settings,
51
52
  'connection_expiry': value.connectionExpiry,
53
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
52
54
  };
53
55
  }
@@ -111,6 +111,12 @@ export interface RACProvider {
111
111
  * @memberof RACProvider
112
112
  */
113
113
  connectionExpiry?: string;
114
+ /**
115
+ * When set to true, connection tokens will be deleted upon disconnect.
116
+ * @type {boolean}
117
+ * @memberof RACProvider
118
+ */
119
+ deleteTokenOnDisconnect?: boolean;
114
120
  }
115
121
  /**
116
122
  * Check if a given object implements the RACProvider interface.
@@ -55,6 +55,7 @@ export function RACProviderFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'settings': !exists(json, 'settings') ? undefined : json['settings'],
56
56
  'outpostSet': json['outpost_set'],
57
57
  'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
58
+ 'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
58
59
  };
59
60
  }
60
61
  export function RACProviderToJSON(value) {
@@ -71,5 +72,6 @@ export function RACProviderToJSON(value) {
71
72
  'property_mappings': value.propertyMappings,
72
73
  'settings': value.settings,
73
74
  'connection_expiry': value.connectionExpiry,
75
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
74
76
  };
75
77
  }
@@ -51,6 +51,12 @@ export interface RACProviderRequest {
51
51
  * @memberof RACProviderRequest
52
52
  */
53
53
  connectionExpiry?: string;
54
+ /**
55
+ * When set to true, connection tokens will be deleted upon disconnect.
56
+ * @type {boolean}
57
+ * @memberof RACProviderRequest
58
+ */
59
+ deleteTokenOnDisconnect?: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the RACProviderRequest interface.
@@ -35,6 +35,7 @@ export function RACProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
36
36
  'settings': !exists(json, 'settings') ? undefined : json['settings'],
37
37
  'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
38
+ 'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
38
39
  };
39
40
  }
40
41
  export function RACProviderRequestToJSON(value) {
@@ -51,5 +52,6 @@ export function RACProviderRequestToJSON(value) {
51
52
  'property_mappings': value.propertyMappings,
52
53
  'settings': value.settings,
53
54
  'connection_expiry': value.connectionExpiry,
55
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
54
56
  };
55
57
  }
@@ -29,6 +29,12 @@ export interface UserConsent {
29
29
  * @memberof UserConsent
30
30
  */
31
31
  expires?: Date;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof UserConsent
36
+ */
37
+ expiring?: boolean;
32
38
  /**
33
39
  *
34
40
  * @type {User}
@@ -34,6 +34,7 @@ export function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return {
35
35
  'pk': json['pk'],
36
36
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
37
+ 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
37
38
  'user': UserFromJSON(json['user']),
38
39
  'application': ApplicationFromJSON(json['application']),
39
40
  'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
@@ -48,6 +49,7 @@ export function UserConsentToJSON(value) {
48
49
  }
49
50
  return {
50
51
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
52
+ 'expiring': value.expiring,
51
53
  'user': UserToJSON(value.user),
52
54
  'application': ApplicationToJSON(value.application),
53
55
  'permissions': value.permissions,
@@ -66,6 +66,8 @@ export * from './ChallengeChoices';
66
66
  export * from './ChallengeTypes';
67
67
  export * from './ClientTypeEnum';
68
68
  export * from './Config';
69
+ export * from './ConnectionToken';
70
+ export * from './ConnectionTokenRequest';
69
71
  export * from './ConsentChallenge';
70
72
  export * from './ConsentChallengeResponseRequest';
71
73
  export * from './ConsentPermission';
@@ -215,6 +217,7 @@ export * from './PaginatedBlueprintInstanceList';
215
217
  export * from './PaginatedBrandList';
216
218
  export * from './PaginatedCaptchaStageList';
217
219
  export * from './PaginatedCertificateKeyPairList';
220
+ export * from './PaginatedConnectionTokenList';
218
221
  export * from './PaginatedConsentStageList';
219
222
  export * from './PaginatedDenyStageList';
220
223
  export * from './PaginatedDockerServiceConnectionList';
@@ -318,6 +321,7 @@ export * from './PatchedBlueprintInstanceRequest';
318
321
  export * from './PatchedBrandRequest';
319
322
  export * from './PatchedCaptchaStageRequest';
320
323
  export * from './PatchedCertificateKeyPairRequest';
324
+ export * from './PatchedConnectionTokenRequest';
321
325
  export * from './PatchedConsentStageRequest';
322
326
  export * from './PatchedDenyStageRequest';
323
327
  export * from './PatchedDockerServiceConnectionRequest';