@goauthentik/api 2023.10.5-1703290840 → 2023.10.5-1704381512

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 (132) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +85 -1
  3. package/dist/apis/PropertymappingsApi.js +240 -0
  4. package/dist/apis/ProvidersApi.d.ts +85 -1
  5. package/dist/apis/ProvidersApi.js +240 -0
  6. package/dist/apis/RacApi.d.ts +103 -0
  7. package/dist/apis/RacApi.js +276 -0
  8. package/dist/apis/RbacApi.d.ts +6 -0
  9. package/dist/apis/RbacApi.js +6 -0
  10. package/dist/apis/index.d.ts +1 -0
  11. package/dist/apis/index.js +1 -0
  12. package/dist/esm/apis/PropertymappingsApi.d.ts +85 -1
  13. package/dist/esm/apis/PropertymappingsApi.js +241 -1
  14. package/dist/esm/apis/ProvidersApi.d.ts +85 -1
  15. package/dist/esm/apis/ProvidersApi.js +241 -1
  16. package/dist/esm/apis/RacApi.d.ts +103 -0
  17. package/dist/esm/apis/RacApi.js +272 -0
  18. package/dist/esm/apis/RbacApi.d.ts +6 -0
  19. package/dist/esm/apis/RbacApi.js +6 -0
  20. package/dist/esm/apis/index.d.ts +1 -0
  21. package/dist/esm/apis/index.js +1 -0
  22. package/dist/esm/models/AppEnum.d.ts +2 -0
  23. package/dist/esm/models/AppEnum.js +2 -0
  24. package/dist/esm/models/AuthModeEnum.d.ts +25 -0
  25. package/dist/esm/models/AuthModeEnum.js +32 -0
  26. package/dist/esm/models/Endpoint.d.ts +89 -0
  27. package/dist/esm/models/Endpoint.js +69 -0
  28. package/dist/esm/models/EndpointRequest.d.ts +69 -0
  29. package/dist/esm/models/EndpointRequest.js +62 -0
  30. package/dist/esm/models/ModelEnum.d.ts +6 -0
  31. package/dist/esm/models/ModelEnum.js +6 -0
  32. package/dist/esm/models/ModelRequest.d.ts +3 -0
  33. package/dist/esm/models/ModelRequest.js +5 -0
  34. package/dist/esm/models/OutpostTypeEnum.d.ts +2 -0
  35. package/dist/esm/models/OutpostTypeEnum.js +2 -0
  36. package/dist/esm/models/PaginatedEndpointList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedEndpointList.js +48 -0
  38. package/dist/esm/models/PaginatedRACPropertyMappingList.d.ts +39 -0
  39. package/dist/esm/models/PaginatedRACPropertyMappingList.js +48 -0
  40. package/dist/esm/models/PaginatedRACProviderList.d.ts +39 -0
  41. package/dist/esm/models/PaginatedRACProviderList.js +48 -0
  42. package/dist/esm/models/PatchedEndpointRequest.d.ts +69 -0
  43. package/dist/esm/models/PatchedEndpointRequest.js +57 -0
  44. package/dist/esm/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
  45. package/dist/esm/models/PatchedRACPropertyMappingRequest.js +49 -0
  46. package/dist/esm/models/PatchedRACProviderRequest.d.ts +61 -0
  47. package/dist/esm/models/PatchedRACProviderRequest.js +53 -0
  48. package/dist/esm/models/ProtocolEnum.d.ts +27 -0
  49. package/dist/esm/models/ProtocolEnum.js +34 -0
  50. package/dist/esm/models/ProviderModelEnum.d.ts +2 -0
  51. package/dist/esm/models/ProviderModelEnum.js +2 -0
  52. package/dist/esm/models/RACPropertyMapping.d.ts +81 -0
  53. package/dist/esm/models/RACPropertyMapping.js +61 -0
  54. package/dist/esm/models/RACPropertyMappingRequest.d.ts +51 -0
  55. package/dist/esm/models/RACPropertyMappingRequest.js +51 -0
  56. package/dist/esm/models/RACProvider.d.ts +121 -0
  57. package/dist/esm/models/RACProvider.js +75 -0
  58. package/dist/esm/models/RACProviderRequest.d.ts +61 -0
  59. package/dist/esm/models/RACProviderRequest.js +55 -0
  60. package/dist/esm/models/TypeCreate.d.ts +6 -0
  61. package/dist/esm/models/TypeCreate.js +3 -0
  62. package/dist/esm/models/index.d.ts +14 -0
  63. package/dist/esm/models/index.js +14 -0
  64. package/dist/models/AppEnum.d.ts +2 -0
  65. package/dist/models/AppEnum.js +2 -0
  66. package/dist/models/AuthModeEnum.d.ts +25 -0
  67. package/dist/models/AuthModeEnum.js +38 -0
  68. package/dist/models/Endpoint.d.ts +89 -0
  69. package/dist/models/Endpoint.js +76 -0
  70. package/dist/models/EndpointRequest.d.ts +69 -0
  71. package/dist/models/EndpointRequest.js +69 -0
  72. package/dist/models/ModelEnum.d.ts +6 -0
  73. package/dist/models/ModelEnum.js +6 -0
  74. package/dist/models/ModelRequest.d.ts +3 -0
  75. package/dist/models/ModelRequest.js +5 -0
  76. package/dist/models/OutpostTypeEnum.d.ts +2 -0
  77. package/dist/models/OutpostTypeEnum.js +2 -0
  78. package/dist/models/PaginatedEndpointList.d.ts +39 -0
  79. package/dist/models/PaginatedEndpointList.js +55 -0
  80. package/dist/models/PaginatedRACPropertyMappingList.d.ts +39 -0
  81. package/dist/models/PaginatedRACPropertyMappingList.js +55 -0
  82. package/dist/models/PaginatedRACProviderList.d.ts +39 -0
  83. package/dist/models/PaginatedRACProviderList.js +55 -0
  84. package/dist/models/PatchedEndpointRequest.d.ts +69 -0
  85. package/dist/models/PatchedEndpointRequest.js +64 -0
  86. package/dist/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
  87. package/dist/models/PatchedRACPropertyMappingRequest.js +56 -0
  88. package/dist/models/PatchedRACProviderRequest.d.ts +61 -0
  89. package/dist/models/PatchedRACProviderRequest.js +60 -0
  90. package/dist/models/ProtocolEnum.d.ts +27 -0
  91. package/dist/models/ProtocolEnum.js +40 -0
  92. package/dist/models/ProviderModelEnum.d.ts +2 -0
  93. package/dist/models/ProviderModelEnum.js +2 -0
  94. package/dist/models/RACPropertyMapping.d.ts +81 -0
  95. package/dist/models/RACPropertyMapping.js +68 -0
  96. package/dist/models/RACPropertyMappingRequest.d.ts +51 -0
  97. package/dist/models/RACPropertyMappingRequest.js +58 -0
  98. package/dist/models/RACProvider.d.ts +121 -0
  99. package/dist/models/RACProvider.js +82 -0
  100. package/dist/models/RACProviderRequest.d.ts +61 -0
  101. package/dist/models/RACProviderRequest.js +62 -0
  102. package/dist/models/TypeCreate.d.ts +6 -0
  103. package/dist/models/TypeCreate.js +3 -0
  104. package/dist/models/index.d.ts +14 -0
  105. package/dist/models/index.js +14 -0
  106. package/package.json +1 -1
  107. package/src/apis/PropertymappingsApi.ts +317 -0
  108. package/src/apis/ProvidersApi.ts +317 -0
  109. package/src/apis/RacApi.ts +358 -0
  110. package/src/apis/RbacApi.ts +6 -0
  111. package/src/apis/index.ts +1 -0
  112. package/src/models/AppEnum.ts +2 -0
  113. package/src/models/AuthModeEnum.ts +40 -0
  114. package/src/models/Endpoint.ts +162 -0
  115. package/src/models/EndpointRequest.ts +131 -0
  116. package/src/models/ModelEnum.ts +6 -0
  117. package/src/models/ModelRequest.ts +12 -1
  118. package/src/models/OutpostTypeEnum.ts +2 -0
  119. package/src/models/PaginatedEndpointList.ts +88 -0
  120. package/src/models/PaginatedRACPropertyMappingList.ts +88 -0
  121. package/src/models/PaginatedRACProviderList.ts +88 -0
  122. package/src/models/PatchedEndpointRequest.ts +126 -0
  123. package/src/models/PatchedRACPropertyMappingRequest.ts +89 -0
  124. package/src/models/PatchedRACProviderRequest.ts +105 -0
  125. package/src/models/ProtocolEnum.ts +42 -0
  126. package/src/models/ProviderModelEnum.ts +2 -0
  127. package/src/models/RACPropertyMapping.ts +131 -0
  128. package/src/models/RACPropertyMappingRequest.ts +91 -0
  129. package/src/models/RACProvider.ts +187 -0
  130. package/src/models/RACProviderRequest.ts +107 -0
  131. package/src/models/TypeCreate.ts +8 -0
  132. package/src/models/index.ts +14 -0
@@ -0,0 +1,131 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { AuthModeEnum } from './AuthModeEnum';
17
+ import {
18
+ AuthModeEnumFromJSON,
19
+ AuthModeEnumFromJSONTyped,
20
+ AuthModeEnumToJSON,
21
+ } from './AuthModeEnum';
22
+ import type { ProtocolEnum } from './ProtocolEnum';
23
+ import {
24
+ ProtocolEnumFromJSON,
25
+ ProtocolEnumFromJSONTyped,
26
+ ProtocolEnumToJSON,
27
+ } from './ProtocolEnum';
28
+
29
+ /**
30
+ * Endpoint Serializer
31
+ * @export
32
+ * @interface EndpointRequest
33
+ */
34
+ export interface EndpointRequest {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof EndpointRequest
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof EndpointRequest
45
+ */
46
+ provider: number;
47
+ /**
48
+ *
49
+ * @type {ProtocolEnum}
50
+ * @memberof EndpointRequest
51
+ */
52
+ protocol: ProtocolEnum;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof EndpointRequest
57
+ */
58
+ host: string;
59
+ /**
60
+ *
61
+ * @type {any}
62
+ * @memberof EndpointRequest
63
+ */
64
+ settings?: any | null;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof EndpointRequest
69
+ */
70
+ propertyMappings?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {AuthModeEnum}
74
+ * @memberof EndpointRequest
75
+ */
76
+ authMode: AuthModeEnum;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the EndpointRequest interface.
81
+ */
82
+ export function instanceOfEndpointRequest(value: object): boolean {
83
+ let isInstance = true;
84
+ isInstance = isInstance && "name" in value;
85
+ isInstance = isInstance && "provider" in value;
86
+ isInstance = isInstance && "protocol" in value;
87
+ isInstance = isInstance && "host" in value;
88
+ isInstance = isInstance && "authMode" in value;
89
+
90
+ return isInstance;
91
+ }
92
+
93
+ export function EndpointRequestFromJSON(json: any): EndpointRequest {
94
+ return EndpointRequestFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function EndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointRequest {
98
+ if ((json === undefined) || (json === null)) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'name': json['name'],
104
+ 'provider': json['provider'],
105
+ 'protocol': ProtocolEnumFromJSON(json['protocol']),
106
+ 'host': json['host'],
107
+ 'settings': !exists(json, 'settings') ? undefined : json['settings'],
108
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
109
+ 'authMode': AuthModeEnumFromJSON(json['auth_mode']),
110
+ };
111
+ }
112
+
113
+ export function EndpointRequestToJSON(value?: EndpointRequest | null): any {
114
+ if (value === undefined) {
115
+ return undefined;
116
+ }
117
+ if (value === null) {
118
+ return null;
119
+ }
120
+ return {
121
+
122
+ 'name': value.name,
123
+ 'provider': value.provider,
124
+ 'protocol': ProtocolEnumToJSON(value.protocol),
125
+ 'host': value.host,
126
+ 'settings': value.settings,
127
+ 'property_mappings': value.propertyMappings,
128
+ 'auth_mode': AuthModeEnumToJSON(value.authMode),
129
+ };
130
+ }
131
+
@@ -88,6 +88,9 @@
88
88
  * * `authentik_core.application` - Application
89
89
  * * `authentik_core.token` - Token
90
90
  * * `authentik_enterprise.license` - License
91
+ * * `authentik_providers_rac.racprovider` - RAC Provider
92
+ * * `authentik_providers_rac.endpoint` - RAC Endpoint
93
+ * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
91
94
  * @export
92
95
  */
93
96
  export const ModelEnum = {
@@ -165,6 +168,9 @@ export const ModelEnum = {
165
168
  CoreApplication: 'authentik_core.application',
166
169
  CoreToken: 'authentik_core.token',
167
170
  EnterpriseLicense: 'authentik_enterprise.license',
171
+ ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
172
+ ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
173
+ ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
168
174
  UnknownDefaultOpenApi: '11184809'
169
175
  } as const;
170
176
  export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
@@ -33,6 +33,13 @@ import {
33
33
  ProxyProviderRequestFromJSONTyped,
34
34
  ProxyProviderRequestToJSON,
35
35
  } from './ProxyProviderRequest';
36
+ import {
37
+ RACProviderRequest,
38
+ instanceOfRACProviderRequest,
39
+ RACProviderRequestFromJSON,
40
+ RACProviderRequestFromJSONTyped,
41
+ RACProviderRequestToJSON,
42
+ } from './RACProviderRequest';
36
43
  import {
37
44
  RadiusProviderRequest,
38
45
  instanceOfRadiusProviderRequest,
@@ -60,7 +67,7 @@ import {
60
67
  *
61
68
  * @export
62
69
  */
63
- export type ModelRequest = { providerModel: 'authentik_providers_ldap.ldapprovider' } & LDAPProviderRequest | { providerModel: 'authentik_providers_oauth2.oauth2provider' } & OAuth2ProviderRequest | { providerModel: 'authentik_providers_proxy.proxyprovider' } & ProxyProviderRequest | { providerModel: 'authentik_providers_radius.radiusprovider' } & RadiusProviderRequest | { providerModel: 'authentik_providers_saml.samlprovider' } & SAMLProviderRequest | { providerModel: 'authentik_providers_scim.scimprovider' } & SCIMProviderRequest;
70
+ export type ModelRequest = { providerModel: 'authentik_providers_ldap.ldapprovider' } & LDAPProviderRequest | { providerModel: 'authentik_providers_oauth2.oauth2provider' } & OAuth2ProviderRequest | { providerModel: 'authentik_providers_proxy.proxyprovider' } & ProxyProviderRequest | { providerModel: 'authentik_providers_rac.racprovider' } & RACProviderRequest | { providerModel: 'authentik_providers_radius.radiusprovider' } & RadiusProviderRequest | { providerModel: 'authentik_providers_saml.samlprovider' } & SAMLProviderRequest | { providerModel: 'authentik_providers_scim.scimprovider' } & SCIMProviderRequest;
64
71
 
65
72
  export function ModelRequestFromJSON(json: any): ModelRequest {
66
73
  return ModelRequestFromJSONTyped(json, false);
@@ -77,6 +84,8 @@ export function ModelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
77
84
  return {...OAuth2ProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_oauth2.oauth2provider'};
78
85
  case 'authentik_providers_proxy.proxyprovider':
79
86
  return {...ProxyProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_proxy.proxyprovider'};
87
+ case 'authentik_providers_rac.racprovider':
88
+ return {...RACProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_rac.racprovider'};
80
89
  case 'authentik_providers_radius.radiusprovider':
81
90
  return {...RadiusProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_radius.radiusprovider'};
82
91
  case 'authentik_providers_saml.samlprovider':
@@ -102,6 +111,8 @@ export function ModelRequestToJSON(value?: ModelRequest | null): any {
102
111
  return OAuth2ProviderRequestToJSON(value);
103
112
  case 'authentik_providers_proxy.proxyprovider':
104
113
  return ProxyProviderRequestToJSON(value);
114
+ case 'authentik_providers_rac.racprovider':
115
+ return RACProviderRequestToJSON(value);
105
116
  case 'authentik_providers_radius.radiusprovider':
106
117
  return RadiusProviderRequestToJSON(value);
107
118
  case 'authentik_providers_saml.samlprovider':
@@ -17,12 +17,14 @@
17
17
  * * `proxy` - Proxy
18
18
  * * `ldap` - Ldap
19
19
  * * `radius` - Radius
20
+ * * `rac` - Rac
20
21
  * @export
21
22
  */
22
23
  export const OutpostTypeEnum = {
23
24
  Proxy: 'proxy',
24
25
  Ldap: 'ldap',
25
26
  Radius: 'radius',
27
+ Rac: 'rac',
26
28
  UnknownDefaultOpenApi: '11184809'
27
29
  } as const;
28
30
  export type OutpostTypeEnum = typeof OutpostTypeEnum[keyof typeof OutpostTypeEnum];
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Endpoint } from './Endpoint';
17
+ import {
18
+ EndpointFromJSON,
19
+ EndpointFromJSONTyped,
20
+ EndpointToJSON,
21
+ } from './Endpoint';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedEndpointList
33
+ */
34
+ export interface PaginatedEndpointList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedEndpointList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<Endpoint>}
44
+ * @memberof PaginatedEndpointList
45
+ */
46
+ results: Array<Endpoint>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedEndpointList interface.
51
+ */
52
+ export function instanceOfPaginatedEndpointList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedEndpointListFromJSON(json: any): PaginatedEndpointList {
61
+ return PaginatedEndpointListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedEndpointListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEndpointList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(EndpointFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedEndpointListToJSON(value?: PaginatedEndpointList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(EndpointToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { RACPropertyMapping } from './RACPropertyMapping';
23
+ import {
24
+ RACPropertyMappingFromJSON,
25
+ RACPropertyMappingFromJSONTyped,
26
+ RACPropertyMappingToJSON,
27
+ } from './RACPropertyMapping';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedRACPropertyMappingList
33
+ */
34
+ export interface PaginatedRACPropertyMappingList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedRACPropertyMappingList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<RACPropertyMapping>}
44
+ * @memberof PaginatedRACPropertyMappingList
45
+ */
46
+ results: Array<RACPropertyMapping>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedRACPropertyMappingList interface.
51
+ */
52
+ export function instanceOfPaginatedRACPropertyMappingList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedRACPropertyMappingListFromJSON(json: any): PaginatedRACPropertyMappingList {
61
+ return PaginatedRACPropertyMappingListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedRACPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRACPropertyMappingList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(RACPropertyMappingFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedRACPropertyMappingListToJSON(value?: PaginatedRACPropertyMappingList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(RACPropertyMappingToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { RACProvider } from './RACProvider';
23
+ import {
24
+ RACProviderFromJSON,
25
+ RACProviderFromJSONTyped,
26
+ RACProviderToJSON,
27
+ } from './RACProvider';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedRACProviderList
33
+ */
34
+ export interface PaginatedRACProviderList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedRACProviderList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<RACProvider>}
44
+ * @memberof PaginatedRACProviderList
45
+ */
46
+ results: Array<RACProvider>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedRACProviderList interface.
51
+ */
52
+ export function instanceOfPaginatedRACProviderList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedRACProviderListFromJSON(json: any): PaginatedRACProviderList {
61
+ return PaginatedRACProviderListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedRACProviderListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRACProviderList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(RACProviderFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedRACProviderListToJSON(value?: PaginatedRACProviderList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(RACProviderToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { AuthModeEnum } from './AuthModeEnum';
17
+ import {
18
+ AuthModeEnumFromJSON,
19
+ AuthModeEnumFromJSONTyped,
20
+ AuthModeEnumToJSON,
21
+ } from './AuthModeEnum';
22
+ import type { ProtocolEnum } from './ProtocolEnum';
23
+ import {
24
+ ProtocolEnumFromJSON,
25
+ ProtocolEnumFromJSONTyped,
26
+ ProtocolEnumToJSON,
27
+ } from './ProtocolEnum';
28
+
29
+ /**
30
+ * Endpoint Serializer
31
+ * @export
32
+ * @interface PatchedEndpointRequest
33
+ */
34
+ export interface PatchedEndpointRequest {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PatchedEndpointRequest
39
+ */
40
+ name?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof PatchedEndpointRequest
45
+ */
46
+ provider?: number;
47
+ /**
48
+ *
49
+ * @type {ProtocolEnum}
50
+ * @memberof PatchedEndpointRequest
51
+ */
52
+ protocol?: ProtocolEnum;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof PatchedEndpointRequest
57
+ */
58
+ host?: string;
59
+ /**
60
+ *
61
+ * @type {any}
62
+ * @memberof PatchedEndpointRequest
63
+ */
64
+ settings?: any | null;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof PatchedEndpointRequest
69
+ */
70
+ propertyMappings?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {AuthModeEnum}
74
+ * @memberof PatchedEndpointRequest
75
+ */
76
+ authMode?: AuthModeEnum;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the PatchedEndpointRequest interface.
81
+ */
82
+ export function instanceOfPatchedEndpointRequest(value: object): boolean {
83
+ let isInstance = true;
84
+
85
+ return isInstance;
86
+ }
87
+
88
+ export function PatchedEndpointRequestFromJSON(json: any): PatchedEndpointRequest {
89
+ return PatchedEndpointRequestFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function PatchedEndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEndpointRequest {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'name': !exists(json, 'name') ? undefined : json['name'],
99
+ 'provider': !exists(json, 'provider') ? undefined : json['provider'],
100
+ 'protocol': !exists(json, 'protocol') ? undefined : ProtocolEnumFromJSON(json['protocol']),
101
+ 'host': !exists(json, 'host') ? undefined : json['host'],
102
+ 'settings': !exists(json, 'settings') ? undefined : json['settings'],
103
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
104
+ 'authMode': !exists(json, 'auth_mode') ? undefined : AuthModeEnumFromJSON(json['auth_mode']),
105
+ };
106
+ }
107
+
108
+ export function PatchedEndpointRequestToJSON(value?: PatchedEndpointRequest | null): any {
109
+ if (value === undefined) {
110
+ return undefined;
111
+ }
112
+ if (value === null) {
113
+ return null;
114
+ }
115
+ return {
116
+
117
+ 'name': value.name,
118
+ 'provider': value.provider,
119
+ 'protocol': ProtocolEnumToJSON(value.protocol),
120
+ 'host': value.host,
121
+ 'settings': value.settings,
122
+ 'property_mappings': value.propertyMappings,
123
+ 'auth_mode': AuthModeEnumToJSON(value.authMode),
124
+ };
125
+ }
126
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * RACPropertyMapping Serializer
18
+ * @export
19
+ * @interface PatchedRACPropertyMappingRequest
20
+ */
21
+ export interface PatchedRACPropertyMappingRequest {
22
+ /**
23
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
24
+ * @type {string}
25
+ * @memberof PatchedRACPropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedRACPropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedRACPropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ /**
41
+ *
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof PatchedRACPropertyMappingRequest
44
+ */
45
+ staticSettings?: { [key: string]: any; };
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PatchedRACPropertyMappingRequest interface.
50
+ */
51
+ export function instanceOfPatchedRACPropertyMappingRequest(value: object): boolean {
52
+ let isInstance = true;
53
+
54
+ return isInstance;
55
+ }
56
+
57
+ export function PatchedRACPropertyMappingRequestFromJSON(json: any): PatchedRACPropertyMappingRequest {
58
+ return PatchedRACPropertyMappingRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function PatchedRACPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRACPropertyMappingRequest {
62
+ if ((json === undefined) || (json === null)) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
68
+ 'name': !exists(json, 'name') ? undefined : json['name'],
69
+ 'expression': !exists(json, 'expression') ? undefined : json['expression'],
70
+ 'staticSettings': !exists(json, 'static_settings') ? undefined : json['static_settings'],
71
+ };
72
+ }
73
+
74
+ export function PatchedRACPropertyMappingRequestToJSON(value?: PatchedRACPropertyMappingRequest | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'managed': value.managed,
84
+ 'name': value.name,
85
+ 'expression': value.expression,
86
+ 'static_settings': value.staticSettings,
87
+ };
88
+ }
89
+