@goauthentik/api 2023.10.5-1703167718 → 2023.10.5-1703968412

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 (167) hide show
  1. package/.openapi-generator/FILES +17 -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/SchemaApi.d.ts +0 -1
  11. package/dist/apis/SchemaApi.js +0 -1
  12. package/dist/apis/StagesApi.d.ts +24 -0
  13. package/dist/apis/StagesApi.js +27 -1
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/esm/apis/PropertymappingsApi.d.ts +85 -1
  17. package/dist/esm/apis/PropertymappingsApi.js +241 -1
  18. package/dist/esm/apis/ProvidersApi.d.ts +85 -1
  19. package/dist/esm/apis/ProvidersApi.js +241 -1
  20. package/dist/esm/apis/RacApi.d.ts +103 -0
  21. package/dist/esm/apis/RacApi.js +272 -0
  22. package/dist/esm/apis/RbacApi.d.ts +6 -0
  23. package/dist/esm/apis/RbacApi.js +6 -0
  24. package/dist/esm/apis/SchemaApi.d.ts +0 -1
  25. package/dist/esm/apis/SchemaApi.js +0 -1
  26. package/dist/esm/apis/StagesApi.d.ts +24 -0
  27. package/dist/esm/apis/StagesApi.js +26 -0
  28. package/dist/esm/apis/index.d.ts +1 -0
  29. package/dist/esm/apis/index.js +1 -0
  30. package/dist/esm/models/AppEnum.d.ts +2 -0
  31. package/dist/esm/models/AppEnum.js +2 -0
  32. package/dist/esm/models/AuthModeEnum.d.ts +25 -0
  33. package/dist/esm/models/AuthModeEnum.js +32 -0
  34. package/dist/esm/models/Endpoint.d.ts +89 -0
  35. package/dist/esm/models/Endpoint.js +69 -0
  36. package/dist/esm/models/EndpointRequest.d.ts +69 -0
  37. package/dist/esm/models/EndpointRequest.js +62 -0
  38. package/dist/esm/models/GeoipBindingEnum.d.ts +29 -0
  39. package/dist/esm/models/GeoipBindingEnum.js +36 -0
  40. package/dist/esm/models/ModelEnum.d.ts +6 -0
  41. package/dist/esm/models/ModelEnum.js +6 -0
  42. package/dist/esm/models/ModelRequest.d.ts +3 -0
  43. package/dist/esm/models/ModelRequest.js +5 -0
  44. package/dist/esm/models/NetworkBindingEnum.d.ts +29 -0
  45. package/dist/esm/models/NetworkBindingEnum.js +36 -0
  46. package/dist/esm/models/OutpostTypeEnum.d.ts +2 -0
  47. package/dist/esm/models/OutpostTypeEnum.js +2 -0
  48. package/dist/esm/models/PaginatedEndpointList.d.ts +39 -0
  49. package/dist/esm/models/PaginatedEndpointList.js +48 -0
  50. package/dist/esm/models/PaginatedRACPropertyMappingList.d.ts +39 -0
  51. package/dist/esm/models/PaginatedRACPropertyMappingList.js +48 -0
  52. package/dist/esm/models/PaginatedRACProviderList.d.ts +39 -0
  53. package/dist/esm/models/PaginatedRACProviderList.js +48 -0
  54. package/dist/esm/models/PatchedEndpointRequest.d.ts +69 -0
  55. package/dist/esm/models/PatchedEndpointRequest.js +57 -0
  56. package/dist/esm/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
  57. package/dist/esm/models/PatchedRACPropertyMappingRequest.js +49 -0
  58. package/dist/esm/models/PatchedRACProviderRequest.d.ts +61 -0
  59. package/dist/esm/models/PatchedRACProviderRequest.js +53 -0
  60. package/dist/esm/models/PatchedUserLoginStageRequest.d.ts +14 -0
  61. package/dist/esm/models/PatchedUserLoginStageRequest.js +6 -0
  62. package/dist/esm/models/ProtocolEnum.d.ts +27 -0
  63. package/dist/esm/models/ProtocolEnum.js +34 -0
  64. package/dist/esm/models/ProviderModelEnum.d.ts +2 -0
  65. package/dist/esm/models/ProviderModelEnum.js +2 -0
  66. package/dist/esm/models/ProviderTypeEnum.d.ts +2 -2
  67. package/dist/esm/models/ProviderTypeEnum.js +2 -2
  68. package/dist/esm/models/RACPropertyMapping.d.ts +81 -0
  69. package/dist/esm/models/RACPropertyMapping.js +61 -0
  70. package/dist/esm/models/RACPropertyMappingRequest.d.ts +51 -0
  71. package/dist/esm/models/RACPropertyMappingRequest.js +51 -0
  72. package/dist/esm/models/RACProvider.d.ts +121 -0
  73. package/dist/esm/models/RACProvider.js +75 -0
  74. package/dist/esm/models/RACProviderRequest.d.ts +61 -0
  75. package/dist/esm/models/RACProviderRequest.js +55 -0
  76. package/dist/esm/models/UserLoginStage.d.ts +14 -0
  77. package/dist/esm/models/UserLoginStage.js +6 -0
  78. package/dist/esm/models/UserLoginStageRequest.d.ts +14 -0
  79. package/dist/esm/models/UserLoginStageRequest.js +6 -0
  80. package/dist/esm/models/index.d.ts +16 -0
  81. package/dist/esm/models/index.js +16 -0
  82. package/dist/models/AppEnum.d.ts +2 -0
  83. package/dist/models/AppEnum.js +2 -0
  84. package/dist/models/AuthModeEnum.d.ts +25 -0
  85. package/dist/models/AuthModeEnum.js +38 -0
  86. package/dist/models/Endpoint.d.ts +89 -0
  87. package/dist/models/Endpoint.js +76 -0
  88. package/dist/models/EndpointRequest.d.ts +69 -0
  89. package/dist/models/EndpointRequest.js +69 -0
  90. package/dist/models/GeoipBindingEnum.d.ts +29 -0
  91. package/dist/models/GeoipBindingEnum.js +42 -0
  92. package/dist/models/ModelEnum.d.ts +6 -0
  93. package/dist/models/ModelEnum.js +6 -0
  94. package/dist/models/ModelRequest.d.ts +3 -0
  95. package/dist/models/ModelRequest.js +5 -0
  96. package/dist/models/NetworkBindingEnum.d.ts +29 -0
  97. package/dist/models/NetworkBindingEnum.js +42 -0
  98. package/dist/models/OutpostTypeEnum.d.ts +2 -0
  99. package/dist/models/OutpostTypeEnum.js +2 -0
  100. package/dist/models/PaginatedEndpointList.d.ts +39 -0
  101. package/dist/models/PaginatedEndpointList.js +55 -0
  102. package/dist/models/PaginatedRACPropertyMappingList.d.ts +39 -0
  103. package/dist/models/PaginatedRACPropertyMappingList.js +55 -0
  104. package/dist/models/PaginatedRACProviderList.d.ts +39 -0
  105. package/dist/models/PaginatedRACProviderList.js +55 -0
  106. package/dist/models/PatchedEndpointRequest.d.ts +69 -0
  107. package/dist/models/PatchedEndpointRequest.js +64 -0
  108. package/dist/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
  109. package/dist/models/PatchedRACPropertyMappingRequest.js +56 -0
  110. package/dist/models/PatchedRACProviderRequest.d.ts +61 -0
  111. package/dist/models/PatchedRACProviderRequest.js +60 -0
  112. package/dist/models/PatchedUserLoginStageRequest.d.ts +14 -0
  113. package/dist/models/PatchedUserLoginStageRequest.js +6 -0
  114. package/dist/models/ProtocolEnum.d.ts +27 -0
  115. package/dist/models/ProtocolEnum.js +40 -0
  116. package/dist/models/ProviderModelEnum.d.ts +2 -0
  117. package/dist/models/ProviderModelEnum.js +2 -0
  118. package/dist/models/ProviderTypeEnum.d.ts +2 -2
  119. package/dist/models/ProviderTypeEnum.js +2 -2
  120. package/dist/models/RACPropertyMapping.d.ts +81 -0
  121. package/dist/models/RACPropertyMapping.js +68 -0
  122. package/dist/models/RACPropertyMappingRequest.d.ts +51 -0
  123. package/dist/models/RACPropertyMappingRequest.js +58 -0
  124. package/dist/models/RACProvider.d.ts +121 -0
  125. package/dist/models/RACProvider.js +82 -0
  126. package/dist/models/RACProviderRequest.d.ts +61 -0
  127. package/dist/models/RACProviderRequest.js +62 -0
  128. package/dist/models/UserLoginStage.d.ts +14 -0
  129. package/dist/models/UserLoginStage.js +6 -0
  130. package/dist/models/UserLoginStageRequest.d.ts +14 -0
  131. package/dist/models/UserLoginStageRequest.js +6 -0
  132. package/dist/models/index.d.ts +16 -0
  133. package/dist/models/index.js +16 -0
  134. package/package.json +1 -1
  135. package/src/apis/PropertymappingsApi.ts +317 -0
  136. package/src/apis/ProvidersApi.ts +317 -0
  137. package/src/apis/RacApi.ts +358 -0
  138. package/src/apis/RbacApi.ts +6 -0
  139. package/src/apis/SchemaApi.ts +0 -1
  140. package/src/apis/StagesApi.ts +32 -0
  141. package/src/apis/index.ts +1 -0
  142. package/src/models/AppEnum.ts +2 -0
  143. package/src/models/AuthModeEnum.ts +40 -0
  144. package/src/models/Endpoint.ts +162 -0
  145. package/src/models/EndpointRequest.ts +131 -0
  146. package/src/models/GeoipBindingEnum.ts +44 -0
  147. package/src/models/ModelEnum.ts +6 -0
  148. package/src/models/ModelRequest.ts +12 -1
  149. package/src/models/NetworkBindingEnum.ts +44 -0
  150. package/src/models/OutpostTypeEnum.ts +2 -0
  151. package/src/models/PaginatedEndpointList.ts +88 -0
  152. package/src/models/PaginatedRACPropertyMappingList.ts +88 -0
  153. package/src/models/PaginatedRACProviderList.ts +88 -0
  154. package/src/models/PatchedEndpointRequest.ts +126 -0
  155. package/src/models/PatchedRACPropertyMappingRequest.ts +89 -0
  156. package/src/models/PatchedRACProviderRequest.ts +105 -0
  157. package/src/models/PatchedUserLoginStageRequest.ts +28 -0
  158. package/src/models/ProtocolEnum.ts +42 -0
  159. package/src/models/ProviderModelEnum.ts +2 -0
  160. package/src/models/ProviderTypeEnum.ts +2 -2
  161. package/src/models/RACPropertyMapping.ts +131 -0
  162. package/src/models/RACPropertyMappingRequest.ts +91 -0
  163. package/src/models/RACProvider.ts +187 -0
  164. package/src/models/RACProviderRequest.ts +107 -0
  165. package/src/models/UserLoginStage.ts +28 -0
  166. package/src/models/UserLoginStageRequest.ts +28 -0
  167. package/src/models/index.ts +16 -0
@@ -136,7 +136,6 @@ export declare const SchemaRetrieveLangEnum: {
136
136
  readonly Tr: "tr";
137
137
  readonly Tt: "tt";
138
138
  readonly Udm: "udm";
139
- readonly Ug: "ug";
140
139
  readonly Uk: "uk";
141
140
  readonly Ur: "ur";
142
141
  readonly Uz: "uz";
@@ -164,7 +164,6 @@ export const SchemaRetrieveLangEnum = {
164
164
  Tr: 'tr',
165
165
  Tt: 'tt',
166
166
  Udm: 'udm',
167
- Ug: 'ug',
168
167
  Uk: 'uk',
169
168
  Ur: 'ur',
170
169
  Uz: 'uz',
@@ -607,7 +607,9 @@ export interface StagesUserLoginDestroyRequest {
607
607
  stageUuid: string;
608
608
  }
609
609
  export interface StagesUserLoginListRequest {
610
+ geoipBinding?: StagesUserLoginListGeoipBindingEnum;
610
611
  name?: string;
612
+ networkBinding?: StagesUserLoginListNetworkBindingEnum;
611
613
  ordering?: string;
612
614
  page?: number;
613
615
  pageSize?: number;
@@ -2062,6 +2064,28 @@ export declare const StagesPromptPromptsListTypeEnum: {
2062
2064
  readonly UnknownDefaultOpenApi: "11184809";
2063
2065
  };
2064
2066
  export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
2067
+ /**
2068
+ * @export
2069
+ */
2070
+ export declare const StagesUserLoginListGeoipBindingEnum: {
2071
+ readonly BindContinent: "bind_continent";
2072
+ readonly BindContinentCountry: "bind_continent_country";
2073
+ readonly BindContinentCountryCity: "bind_continent_country_city";
2074
+ readonly NoBinding: "no_binding";
2075
+ readonly UnknownDefaultOpenApi: "11184809";
2076
+ };
2077
+ export type StagesUserLoginListGeoipBindingEnum = typeof StagesUserLoginListGeoipBindingEnum[keyof typeof StagesUserLoginListGeoipBindingEnum];
2078
+ /**
2079
+ * @export
2080
+ */
2081
+ export declare const StagesUserLoginListNetworkBindingEnum: {
2082
+ readonly BindAsn: "bind_asn";
2083
+ readonly BindAsnNetwork: "bind_asn_network";
2084
+ readonly BindAsnNetworkIp: "bind_asn_network_ip";
2085
+ readonly NoBinding: "no_binding";
2086
+ readonly UnknownDefaultOpenApi: "11184809";
2087
+ };
2088
+ export type StagesUserLoginListNetworkBindingEnum = typeof StagesUserLoginListNetworkBindingEnum[keyof typeof StagesUserLoginListNetworkBindingEnum];
2065
2089
  /**
2066
2090
  * @export
2067
2091
  */
@@ -4932,9 +4932,15 @@ export class StagesApi extends runtime.BaseAPI {
4932
4932
  stagesUserLoginListRaw(requestParameters, initOverrides) {
4933
4933
  return __awaiter(this, void 0, void 0, function* () {
4934
4934
  const queryParameters = {};
4935
+ if (requestParameters.geoipBinding !== undefined) {
4936
+ queryParameters['geoip_binding'] = requestParameters.geoipBinding;
4937
+ }
4935
4938
  if (requestParameters.name !== undefined) {
4936
4939
  queryParameters['name'] = requestParameters.name;
4937
4940
  }
4941
+ if (requestParameters.networkBinding !== undefined) {
4942
+ queryParameters['network_binding'] = requestParameters.networkBinding;
4943
+ }
4938
4944
  if (requestParameters.ordering !== undefined) {
4939
4945
  queryParameters['ordering'] = requestParameters.ordering;
4940
4946
  }
@@ -5700,6 +5706,26 @@ export const StagesPromptPromptsListTypeEnum = {
5700
5706
  Username: 'username',
5701
5707
  UnknownDefaultOpenApi: '11184809'
5702
5708
  };
5709
+ /**
5710
+ * @export
5711
+ */
5712
+ export const StagesUserLoginListGeoipBindingEnum = {
5713
+ BindContinent: 'bind_continent',
5714
+ BindContinentCountry: 'bind_continent_country',
5715
+ BindContinentCountryCity: 'bind_continent_country_city',
5716
+ NoBinding: 'no_binding',
5717
+ UnknownDefaultOpenApi: '11184809'
5718
+ };
5719
+ /**
5720
+ * @export
5721
+ */
5722
+ export const StagesUserLoginListNetworkBindingEnum = {
5723
+ BindAsn: 'bind_asn',
5724
+ BindAsnNetwork: 'bind_asn_network',
5725
+ BindAsnNetworkIp: 'bind_asn_network_ip',
5726
+ NoBinding: 'no_binding',
5727
+ UnknownDefaultOpenApi: '11184809'
5728
+ };
5703
5729
  /**
5704
5730
  * @export
5705
5731
  */
@@ -11,6 +11,7 @@ export * from './OutpostsApi';
11
11
  export * from './PoliciesApi';
12
12
  export * from './PropertymappingsApi';
13
13
  export * from './ProvidersApi';
14
+ export * from './RacApi';
14
15
  export * from './RbacApi';
15
16
  export * from './RootApi';
16
17
  export * from './SchemaApi';
@@ -13,6 +13,7 @@ export * from './OutpostsApi';
13
13
  export * from './PoliciesApi';
14
14
  export * from './PropertymappingsApi';
15
15
  export * from './ProvidersApi';
16
+ export * from './RacApi';
16
17
  export * from './RbacApi';
17
18
  export * from './RootApi';
18
19
  export * from './SchemaApi';
@@ -59,6 +59,7 @@
59
59
  * * `authentik.blueprints` - authentik Blueprints
60
60
  * * `authentik.core` - authentik Core
61
61
  * * `authentik.enterprise` - authentik Enterprise
62
+ * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
62
63
  * @export
63
64
  */
64
65
  export declare const AppEnum: {
@@ -111,6 +112,7 @@ export declare const AppEnum: {
111
112
  readonly Blueprints: "authentik.blueprints";
112
113
  readonly Core: "authentik.core";
113
114
  readonly Enterprise: "authentik.enterprise";
115
+ readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
114
116
  readonly UnknownDefaultOpenApi: "11184809";
115
117
  };
116
118
  export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
@@ -61,6 +61,7 @@
61
61
  * * `authentik.blueprints` - authentik Blueprints
62
62
  * * `authentik.core` - authentik Core
63
63
  * * `authentik.enterprise` - authentik Enterprise
64
+ * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
64
65
  * @export
65
66
  */
66
67
  export const AppEnum = {
@@ -113,6 +114,7 @@ export const AppEnum = {
113
114
  Blueprints: 'authentik.blueprints',
114
115
  Core: 'authentik.core',
115
116
  Enterprise: 'authentik.enterprise',
117
+ EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
116
118
  UnknownDefaultOpenApi: '11184809'
117
119
  };
118
120
  export function AppEnumFromJSON(json) {
@@ -0,0 +1,25 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.5
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
+ * * `static` - Static
14
+ * * `prompt` - Prompt
15
+ * @export
16
+ */
17
+ export declare const AuthModeEnum: {
18
+ readonly Static: "static";
19
+ readonly Prompt: "prompt";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type AuthModeEnum = typeof AuthModeEnum[keyof typeof AuthModeEnum];
23
+ export declare function AuthModeEnumFromJSON(json: any): AuthModeEnum;
24
+ export declare function AuthModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthModeEnum;
25
+ export declare function AuthModeEnumToJSON(value?: AuthModeEnum | null): any;
@@ -0,0 +1,32 @@
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
+ * * `static` - Static
16
+ * * `prompt` - Prompt
17
+ * @export
18
+ */
19
+ export const AuthModeEnum = {
20
+ Static: 'static',
21
+ Prompt: 'prompt',
22
+ UnknownDefaultOpenApi: '11184809'
23
+ };
24
+ export function AuthModeEnumFromJSON(json) {
25
+ return AuthModeEnumFromJSONTyped(json, false);
26
+ }
27
+ export function AuthModeEnumFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function AuthModeEnumToJSON(value) {
31
+ return value;
32
+ }
@@ -0,0 +1,89 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.5
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 { AuthModeEnum } from './AuthModeEnum';
13
+ import type { ProtocolEnum } from './ProtocolEnum';
14
+ import type { RACProvider } from './RACProvider';
15
+ /**
16
+ * Endpoint Serializer
17
+ * @export
18
+ * @interface Endpoint
19
+ */
20
+ export interface Endpoint {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof Endpoint
25
+ */
26
+ readonly pk: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof Endpoint
31
+ */
32
+ name: string;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof Endpoint
37
+ */
38
+ provider: number;
39
+ /**
40
+ *
41
+ * @type {RACProvider}
42
+ * @memberof Endpoint
43
+ */
44
+ readonly providerObj: RACProvider;
45
+ /**
46
+ *
47
+ * @type {ProtocolEnum}
48
+ * @memberof Endpoint
49
+ */
50
+ protocol: ProtocolEnum;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof Endpoint
55
+ */
56
+ host: string;
57
+ /**
58
+ *
59
+ * @type {any}
60
+ * @memberof Endpoint
61
+ */
62
+ settings?: any | null;
63
+ /**
64
+ *
65
+ * @type {Array<string>}
66
+ * @memberof Endpoint
67
+ */
68
+ propertyMappings?: Array<string>;
69
+ /**
70
+ *
71
+ * @type {AuthModeEnum}
72
+ * @memberof Endpoint
73
+ */
74
+ authMode: AuthModeEnum;
75
+ /**
76
+ * Build actual launch URL (the provider itself does not have one, just
77
+ * individual endpoints)
78
+ * @type {string}
79
+ * @memberof Endpoint
80
+ */
81
+ readonly launchUrl: string | null;
82
+ }
83
+ /**
84
+ * Check if a given object implements the Endpoint interface.
85
+ */
86
+ export declare function instanceOfEndpoint(value: object): boolean;
87
+ export declare function EndpointFromJSON(json: any): Endpoint;
88
+ export declare function EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Endpoint;
89
+ export declare function EndpointToJSON(value?: Endpoint | null): any;
@@ -0,0 +1,69 @@
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
+ import { exists } from '../runtime';
15
+ import { AuthModeEnumFromJSON, AuthModeEnumToJSON, } from './AuthModeEnum';
16
+ import { ProtocolEnumFromJSON, ProtocolEnumToJSON, } from './ProtocolEnum';
17
+ import { RACProviderFromJSON, } from './RACProvider';
18
+ /**
19
+ * Check if a given object implements the Endpoint interface.
20
+ */
21
+ export function instanceOfEndpoint(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "pk" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "provider" in value;
26
+ isInstance = isInstance && "providerObj" in value;
27
+ isInstance = isInstance && "protocol" in value;
28
+ isInstance = isInstance && "host" in value;
29
+ isInstance = isInstance && "authMode" in value;
30
+ isInstance = isInstance && "launchUrl" in value;
31
+ return isInstance;
32
+ }
33
+ export function EndpointFromJSON(json) {
34
+ return EndpointFromJSONTyped(json, false);
35
+ }
36
+ export function EndpointFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pk': json['pk'],
42
+ 'name': json['name'],
43
+ 'provider': json['provider'],
44
+ 'providerObj': RACProviderFromJSON(json['provider_obj']),
45
+ 'protocol': ProtocolEnumFromJSON(json['protocol']),
46
+ 'host': json['host'],
47
+ 'settings': !exists(json, 'settings') ? undefined : json['settings'],
48
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
49
+ 'authMode': AuthModeEnumFromJSON(json['auth_mode']),
50
+ 'launchUrl': json['launch_url'],
51
+ };
52
+ }
53
+ export function EndpointToJSON(value) {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+ 'name': value.name,
62
+ 'provider': value.provider,
63
+ 'protocol': ProtocolEnumToJSON(value.protocol),
64
+ 'host': value.host,
65
+ 'settings': value.settings,
66
+ 'property_mappings': value.propertyMappings,
67
+ 'auth_mode': AuthModeEnumToJSON(value.authMode),
68
+ };
69
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.5
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 { AuthModeEnum } from './AuthModeEnum';
13
+ import type { ProtocolEnum } from './ProtocolEnum';
14
+ /**
15
+ * Endpoint Serializer
16
+ * @export
17
+ * @interface EndpointRequest
18
+ */
19
+ export interface EndpointRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof EndpointRequest
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof EndpointRequest
30
+ */
31
+ provider: number;
32
+ /**
33
+ *
34
+ * @type {ProtocolEnum}
35
+ * @memberof EndpointRequest
36
+ */
37
+ protocol: ProtocolEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof EndpointRequest
42
+ */
43
+ host: string;
44
+ /**
45
+ *
46
+ * @type {any}
47
+ * @memberof EndpointRequest
48
+ */
49
+ settings?: any | null;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof EndpointRequest
54
+ */
55
+ propertyMappings?: Array<string>;
56
+ /**
57
+ *
58
+ * @type {AuthModeEnum}
59
+ * @memberof EndpointRequest
60
+ */
61
+ authMode: AuthModeEnum;
62
+ }
63
+ /**
64
+ * Check if a given object implements the EndpointRequest interface.
65
+ */
66
+ export declare function instanceOfEndpointRequest(value: object): boolean;
67
+ export declare function EndpointRequestFromJSON(json: any): EndpointRequest;
68
+ export declare function EndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointRequest;
69
+ export declare function EndpointRequestToJSON(value?: EndpointRequest | null): any;
@@ -0,0 +1,62 @@
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
+ import { exists } from '../runtime';
15
+ import { AuthModeEnumFromJSON, AuthModeEnumToJSON, } from './AuthModeEnum';
16
+ import { ProtocolEnumFromJSON, ProtocolEnumToJSON, } from './ProtocolEnum';
17
+ /**
18
+ * Check if a given object implements the EndpointRequest interface.
19
+ */
20
+ export function instanceOfEndpointRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "provider" in value;
24
+ isInstance = isInstance && "protocol" in value;
25
+ isInstance = isInstance && "host" in value;
26
+ isInstance = isInstance && "authMode" in value;
27
+ return isInstance;
28
+ }
29
+ export function EndpointRequestFromJSON(json) {
30
+ return EndpointRequestFromJSONTyped(json, false);
31
+ }
32
+ export function EndpointRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'provider': json['provider'],
39
+ 'protocol': ProtocolEnumFromJSON(json['protocol']),
40
+ 'host': json['host'],
41
+ 'settings': !exists(json, 'settings') ? undefined : json['settings'],
42
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
43
+ 'authMode': AuthModeEnumFromJSON(json['auth_mode']),
44
+ };
45
+ }
46
+ export function EndpointRequestToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'name': value.name,
55
+ 'provider': value.provider,
56
+ 'protocol': ProtocolEnumToJSON(value.protocol),
57
+ 'host': value.host,
58
+ 'settings': value.settings,
59
+ 'property_mappings': value.propertyMappings,
60
+ 'auth_mode': AuthModeEnumToJSON(value.authMode),
61
+ };
62
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.5
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
+ * * `no_binding` - No Binding
14
+ * * `bind_continent` - Bind Continent
15
+ * * `bind_continent_country` - Bind Continent Country
16
+ * * `bind_continent_country_city` - Bind Continent Country City
17
+ * @export
18
+ */
19
+ export declare const GeoipBindingEnum: {
20
+ readonly NoBinding: "no_binding";
21
+ readonly BindContinent: "bind_continent";
22
+ readonly BindContinentCountry: "bind_continent_country";
23
+ readonly BindContinentCountryCity: "bind_continent_country_city";
24
+ readonly UnknownDefaultOpenApi: "11184809";
25
+ };
26
+ export type GeoipBindingEnum = typeof GeoipBindingEnum[keyof typeof GeoipBindingEnum];
27
+ export declare function GeoipBindingEnumFromJSON(json: any): GeoipBindingEnum;
28
+ export declare function GeoipBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoipBindingEnum;
29
+ export declare function GeoipBindingEnumToJSON(value?: GeoipBindingEnum | null): any;
@@ -0,0 +1,36 @@
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
+ * * `no_binding` - No Binding
16
+ * * `bind_continent` - Bind Continent
17
+ * * `bind_continent_country` - Bind Continent Country
18
+ * * `bind_continent_country_city` - Bind Continent Country City
19
+ * @export
20
+ */
21
+ export const GeoipBindingEnum = {
22
+ NoBinding: 'no_binding',
23
+ BindContinent: 'bind_continent',
24
+ BindContinentCountry: 'bind_continent_country',
25
+ BindContinentCountryCity: 'bind_continent_country_city',
26
+ UnknownDefaultOpenApi: '11184809'
27
+ };
28
+ export function GeoipBindingEnumFromJSON(json) {
29
+ return GeoipBindingEnumFromJSONTyped(json, false);
30
+ }
31
+ export function GeoipBindingEnumFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ export function GeoipBindingEnumToJSON(value) {
35
+ return value;
36
+ }
@@ -84,6 +84,9 @@
84
84
  * * `authentik_core.application` - Application
85
85
  * * `authentik_core.token` - Token
86
86
  * * `authentik_enterprise.license` - License
87
+ * * `authentik_providers_rac.racprovider` - RAC Provider
88
+ * * `authentik_providers_rac.endpoint` - RAC Endpoint
89
+ * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
87
90
  * @export
88
91
  */
89
92
  export declare const ModelEnum: {
@@ -161,6 +164,9 @@ export declare const ModelEnum: {
161
164
  readonly CoreApplication: "authentik_core.application";
162
165
  readonly CoreToken: "authentik_core.token";
163
166
  readonly EnterpriseLicense: "authentik_enterprise.license";
167
+ readonly ProvidersRacRacprovider: "authentik_providers_rac.racprovider";
168
+ readonly ProvidersRacEndpoint: "authentik_providers_rac.endpoint";
169
+ readonly ProvidersRacRacpropertymapping: "authentik_providers_rac.racpropertymapping";
164
170
  readonly UnknownDefaultOpenApi: "11184809";
165
171
  };
166
172
  export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
@@ -86,6 +86,9 @@
86
86
  * * `authentik_core.application` - Application
87
87
  * * `authentik_core.token` - Token
88
88
  * * `authentik_enterprise.license` - License
89
+ * * `authentik_providers_rac.racprovider` - RAC Provider
90
+ * * `authentik_providers_rac.endpoint` - RAC Endpoint
91
+ * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
89
92
  * @export
90
93
  */
91
94
  export const ModelEnum = {
@@ -163,6 +166,9 @@ export const ModelEnum = {
163
166
  CoreApplication: 'authentik_core.application',
164
167
  CoreToken: 'authentik_core.token',
165
168
  EnterpriseLicense: 'authentik_enterprise.license',
169
+ ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
170
+ ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
171
+ ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
166
172
  UnknownDefaultOpenApi: '11184809'
167
173
  };
168
174
  export function ModelEnumFromJSON(json) {
@@ -12,6 +12,7 @@
12
12
  import { LDAPProviderRequest } from './LDAPProviderRequest';
13
13
  import { OAuth2ProviderRequest } from './OAuth2ProviderRequest';
14
14
  import { ProxyProviderRequest } from './ProxyProviderRequest';
15
+ import { RACProviderRequest } from './RACProviderRequest';
15
16
  import { RadiusProviderRequest } from './RadiusProviderRequest';
16
17
  import { SAMLProviderRequest } from './SAMLProviderRequest';
17
18
  import { SCIMProviderRequest } from './SCIMProviderRequest';
@@ -27,6 +28,8 @@ export type ModelRequest = {
27
28
  } & OAuth2ProviderRequest | {
28
29
  providerModel: 'authentik_providers_proxy.proxyprovider';
29
30
  } & ProxyProviderRequest | {
31
+ providerModel: 'authentik_providers_rac.racprovider';
32
+ } & RACProviderRequest | {
30
33
  providerModel: 'authentik_providers_radius.radiusprovider';
31
34
  } & RadiusProviderRequest | {
32
35
  providerModel: 'authentik_providers_saml.samlprovider';
@@ -14,6 +14,7 @@
14
14
  import { LDAPProviderRequestFromJSONTyped, LDAPProviderRequestToJSON, } from './LDAPProviderRequest';
15
15
  import { OAuth2ProviderRequestFromJSONTyped, OAuth2ProviderRequestToJSON, } from './OAuth2ProviderRequest';
16
16
  import { ProxyProviderRequestFromJSONTyped, ProxyProviderRequestToJSON, } from './ProxyProviderRequest';
17
+ import { RACProviderRequestFromJSONTyped, RACProviderRequestToJSON, } from './RACProviderRequest';
17
18
  import { RadiusProviderRequestFromJSONTyped, RadiusProviderRequestToJSON, } from './RadiusProviderRequest';
18
19
  import { SAMLProviderRequestFromJSONTyped, SAMLProviderRequestToJSON, } from './SAMLProviderRequest';
19
20
  import { SCIMProviderRequestFromJSONTyped, SCIMProviderRequestToJSON, } from './SCIMProviderRequest';
@@ -31,6 +32,8 @@ export function ModelRequestFromJSONTyped(json, ignoreDiscriminator) {
31
32
  return Object.assign(Object.assign({}, OAuth2ProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_oauth2.oauth2provider' });
32
33
  case 'authentik_providers_proxy.proxyprovider':
33
34
  return Object.assign(Object.assign({}, ProxyProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_proxy.proxyprovider' });
35
+ case 'authentik_providers_rac.racprovider':
36
+ return Object.assign(Object.assign({}, RACProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_rac.racprovider' });
34
37
  case 'authentik_providers_radius.radiusprovider':
35
38
  return Object.assign(Object.assign({}, RadiusProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_radius.radiusprovider' });
36
39
  case 'authentik_providers_saml.samlprovider':
@@ -55,6 +58,8 @@ export function ModelRequestToJSON(value) {
55
58
  return OAuth2ProviderRequestToJSON(value);
56
59
  case 'authentik_providers_proxy.proxyprovider':
57
60
  return ProxyProviderRequestToJSON(value);
61
+ case 'authentik_providers_rac.racprovider':
62
+ return RACProviderRequestToJSON(value);
58
63
  case 'authentik_providers_radius.radiusprovider':
59
64
  return RadiusProviderRequestToJSON(value);
60
65
  case 'authentik_providers_saml.samlprovider':