@goauthentik/api 2023.10.7-1707429127 → 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 (47) 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/ConnectionToken.d.ts +64 -0
  7. package/dist/esm/models/ConnectionToken.js +56 -0
  8. package/dist/esm/models/ConnectionTokenRequest.d.ts +31 -0
  9. package/dist/esm/models/ConnectionTokenRequest.js +43 -0
  10. package/dist/esm/models/PaginatedConnectionTokenList.d.ts +39 -0
  11. package/dist/esm/models/PaginatedConnectionTokenList.js +48 -0
  12. package/dist/esm/models/PatchedConnectionTokenRequest.d.ts +31 -0
  13. package/dist/esm/models/PatchedConnectionTokenRequest.js +43 -0
  14. package/dist/esm/models/PatchedRACProviderRequest.d.ts +6 -0
  15. package/dist/esm/models/PatchedRACProviderRequest.js +2 -0
  16. package/dist/esm/models/RACProvider.d.ts +6 -0
  17. package/dist/esm/models/RACProvider.js +2 -0
  18. package/dist/esm/models/RACProviderRequest.d.ts +6 -0
  19. package/dist/esm/models/RACProviderRequest.js +2 -0
  20. package/dist/esm/models/index.d.ts +4 -0
  21. package/dist/esm/models/index.js +4 -0
  22. package/dist/models/ConnectionToken.d.ts +64 -0
  23. package/dist/models/ConnectionToken.js +63 -0
  24. package/dist/models/ConnectionTokenRequest.d.ts +31 -0
  25. package/dist/models/ConnectionTokenRequest.js +50 -0
  26. package/dist/models/PaginatedConnectionTokenList.d.ts +39 -0
  27. package/dist/models/PaginatedConnectionTokenList.js +55 -0
  28. package/dist/models/PatchedConnectionTokenRequest.d.ts +31 -0
  29. package/dist/models/PatchedConnectionTokenRequest.js +50 -0
  30. package/dist/models/PatchedRACProviderRequest.d.ts +6 -0
  31. package/dist/models/PatchedRACProviderRequest.js +2 -0
  32. package/dist/models/RACProvider.d.ts +6 -0
  33. package/dist/models/RACProvider.js +2 -0
  34. package/dist/models/RACProviderRequest.d.ts +6 -0
  35. package/dist/models/RACProviderRequest.js +2 -0
  36. package/dist/models/index.d.ts +4 -0
  37. package/dist/models/index.js +4 -0
  38. package/package.json +1 -1
  39. package/src/apis/RacApi.ts +281 -0
  40. package/src/models/ConnectionToken.ts +125 -0
  41. package/src/models/ConnectionTokenRequest.ts +66 -0
  42. package/src/models/PaginatedConnectionTokenList.ts +88 -0
  43. package/src/models/PatchedConnectionTokenRequest.ts +65 -0
  44. package/src/models/PatchedRACProviderRequest.ts +8 -0
  45. package/src/models/RACProvider.ts +8 -0
  46. package/src/models/RACProviderRequest.ts +8 -0
  47. package/src/models/index.ts +4 -0
@@ -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
+ }
@@ -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
  }
@@ -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';
@@ -68,6 +68,8 @@ export * from './ChallengeChoices';
68
68
  export * from './ChallengeTypes';
69
69
  export * from './ClientTypeEnum';
70
70
  export * from './Config';
71
+ export * from './ConnectionToken';
72
+ export * from './ConnectionTokenRequest';
71
73
  export * from './ConsentChallenge';
72
74
  export * from './ConsentChallengeResponseRequest';
73
75
  export * from './ConsentPermission';
@@ -217,6 +219,7 @@ export * from './PaginatedBlueprintInstanceList';
217
219
  export * from './PaginatedBrandList';
218
220
  export * from './PaginatedCaptchaStageList';
219
221
  export * from './PaginatedCertificateKeyPairList';
222
+ export * from './PaginatedConnectionTokenList';
220
223
  export * from './PaginatedConsentStageList';
221
224
  export * from './PaginatedDenyStageList';
222
225
  export * from './PaginatedDockerServiceConnectionList';
@@ -320,6 +323,7 @@ export * from './PatchedBlueprintInstanceRequest';
320
323
  export * from './PatchedBrandRequest';
321
324
  export * from './PatchedCaptchaStageRequest';
322
325
  export * from './PatchedCertificateKeyPairRequest';
326
+ export * from './PatchedConnectionTokenRequest';
323
327
  export * from './PatchedConsentStageRequest';
324
328
  export * from './PatchedDenyStageRequest';
325
329
  export * from './PatchedDockerServiceConnectionRequest';
@@ -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,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.10.7
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConnectionTokenToJSON = exports.ConnectionTokenFromJSONTyped = exports.ConnectionTokenFromJSON = exports.instanceOfConnectionToken = void 0;
17
+ const Endpoint_1 = require("./Endpoint");
18
+ const GroupMember_1 = require("./GroupMember");
19
+ const RACProvider_1 = require("./RACProvider");
20
+ /**
21
+ * Check if a given object implements the ConnectionToken interface.
22
+ */
23
+ function instanceOfConnectionToken(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "pk" in value;
26
+ isInstance = isInstance && "provider" in value;
27
+ isInstance = isInstance && "providerObj" in value;
28
+ isInstance = isInstance && "endpoint" in value;
29
+ isInstance = isInstance && "endpointObj" in value;
30
+ isInstance = isInstance && "user" in value;
31
+ return isInstance;
32
+ }
33
+ exports.instanceOfConnectionToken = instanceOfConnectionToken;
34
+ function ConnectionTokenFromJSON(json) {
35
+ return ConnectionTokenFromJSONTyped(json, false);
36
+ }
37
+ exports.ConnectionTokenFromJSON = ConnectionTokenFromJSON;
38
+ function ConnectionTokenFromJSONTyped(json, ignoreDiscriminator) {
39
+ if ((json === undefined) || (json === null)) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'pk': json['pk'],
44
+ 'provider': json['provider'],
45
+ 'providerObj': (0, RACProvider_1.RACProviderFromJSON)(json['provider_obj']),
46
+ 'endpoint': json['endpoint'],
47
+ 'endpointObj': (0, Endpoint_1.EndpointFromJSON)(json['endpoint_obj']),
48
+ 'user': (0, GroupMember_1.GroupMemberFromJSON)(json['user']),
49
+ };
50
+ }
51
+ exports.ConnectionTokenFromJSONTyped = ConnectionTokenFromJSONTyped;
52
+ function ConnectionTokenToJSON(value) {
53
+ if (value === undefined) {
54
+ return undefined;
55
+ }
56
+ if (value === null) {
57
+ return null;
58
+ }
59
+ return {
60
+ 'provider': value.provider,
61
+ };
62
+ }
63
+ exports.ConnectionTokenToJSON = ConnectionTokenToJSON;
@@ -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;