@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021

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 (105) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/dist/apis/AdminApi.d.ts +26 -1
  3. package/dist/apis/AdminApi.js +79 -0
  4. package/dist/apis/AuthenticatorsApi.d.ts +110 -1
  5. package/dist/apis/AuthenticatorsApi.js +347 -0
  6. package/dist/apis/RbacApi.d.ts +2 -0
  7. package/dist/apis/RbacApi.js +2 -0
  8. package/dist/apis/StagesApi.d.ts +85 -1
  9. package/dist/apis/StagesApi.js +268 -0
  10. package/dist/esm/apis/AdminApi.d.ts +26 -1
  11. package/dist/esm/apis/AdminApi.js +80 -1
  12. package/dist/esm/apis/AuthenticatorsApi.d.ts +110 -1
  13. package/dist/esm/apis/AuthenticatorsApi.js +348 -1
  14. package/dist/esm/apis/RbacApi.d.ts +2 -0
  15. package/dist/esm/apis/RbacApi.js +2 -0
  16. package/dist/esm/apis/StagesApi.d.ts +85 -1
  17. package/dist/esm/apis/StagesApi.js +269 -1
  18. package/dist/esm/models/AppEnum.d.ts +1 -0
  19. package/dist/esm/models/AppEnum.js +1 -0
  20. package/dist/esm/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  21. package/dist/esm/models/AuthenticatorEndpointGDTCStage.js +64 -0
  22. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  23. package/dist/esm/models/AuthenticatorEndpointGDTCStageRequest.js +54 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/Device.d.ts +2 -2
  27. package/dist/esm/models/EndpointDevice.d.ts +37 -0
  28. package/dist/esm/models/EndpointDevice.js +46 -0
  29. package/dist/esm/models/EndpointDeviceRequest.d.ts +37 -0
  30. package/dist/esm/models/EndpointDeviceRequest.js +46 -0
  31. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
  32. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  33. package/dist/esm/models/FrameChallenge.d.ts +65 -0
  34. package/dist/esm/models/FrameChallenge.js +56 -0
  35. package/dist/esm/models/FrameChallengeResponseRequest.d.ts +31 -0
  36. package/dist/esm/models/FrameChallengeResponseRequest.js +43 -0
  37. package/dist/esm/models/ModelEnum.d.ts +1 -0
  38. package/dist/esm/models/ModelEnum.js +1 -0
  39. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEndpointGDTCStageList.js +48 -0
  41. package/dist/esm/models/PaginatedEndpointDeviceList.d.ts +39 -0
  42. package/dist/esm/models/PaginatedEndpointDeviceList.js +48 -0
  43. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  44. package/dist/esm/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +52 -0
  45. package/dist/esm/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  46. package/dist/esm/models/PatchedEndpointDeviceRequest.js +45 -0
  47. package/dist/esm/models/VersionHistory.d.ts +49 -0
  48. package/dist/esm/models/VersionHistory.js +51 -0
  49. package/dist/esm/models/index.d.ts +11 -0
  50. package/dist/esm/models/index.js +11 -0
  51. package/dist/models/AppEnum.d.ts +1 -0
  52. package/dist/models/AppEnum.js +1 -0
  53. package/dist/models/AuthenticatorEndpointGDTCStage.d.ts +86 -0
  54. package/dist/models/AuthenticatorEndpointGDTCStage.js +71 -0
  55. package/dist/models/AuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  56. package/dist/models/AuthenticatorEndpointGDTCStageRequest.js +61 -0
  57. package/dist/models/ChallengeTypes.d.ts +3 -0
  58. package/dist/models/ChallengeTypes.js +5 -0
  59. package/dist/models/Device.d.ts +2 -2
  60. package/dist/models/EndpointDevice.d.ts +37 -0
  61. package/dist/models/EndpointDevice.js +53 -0
  62. package/dist/models/EndpointDeviceRequest.d.ts +37 -0
  63. package/dist/models/EndpointDeviceRequest.js +53 -0
  64. package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
  65. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  66. package/dist/models/FrameChallenge.d.ts +65 -0
  67. package/dist/models/FrameChallenge.js +63 -0
  68. package/dist/models/FrameChallengeResponseRequest.d.ts +31 -0
  69. package/dist/models/FrameChallengeResponseRequest.js +50 -0
  70. package/dist/models/ModelEnum.d.ts +1 -0
  71. package/dist/models/ModelEnum.js +1 -0
  72. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.d.ts +39 -0
  73. package/dist/models/PaginatedAuthenticatorEndpointGDTCStageList.js +55 -0
  74. package/dist/models/PaginatedEndpointDeviceList.d.ts +39 -0
  75. package/dist/models/PaginatedEndpointDeviceList.js +55 -0
  76. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.d.ts +56 -0
  77. package/dist/models/PatchedAuthenticatorEndpointGDTCStageRequest.js +59 -0
  78. package/dist/models/PatchedEndpointDeviceRequest.d.ts +37 -0
  79. package/dist/models/PatchedEndpointDeviceRequest.js +52 -0
  80. package/dist/models/VersionHistory.d.ts +49 -0
  81. package/dist/models/VersionHistory.js +58 -0
  82. package/dist/models/index.d.ts +11 -0
  83. package/dist/models/index.js +11 -0
  84. package/package.json +1 -1
  85. package/src/apis/AdminApi.ts +102 -0
  86. package/src/apis/AuthenticatorsApi.ts +444 -0
  87. package/src/apis/RbacApi.ts +2 -0
  88. package/src/apis/StagesApi.ts +345 -0
  89. package/src/models/AppEnum.ts +1 -0
  90. package/src/models/AuthenticatorEndpointGDTCStage.ts +146 -0
  91. package/src/models/AuthenticatorEndpointGDTCStageRequest.ts +106 -0
  92. package/src/models/ChallengeTypes.ts +12 -1
  93. package/src/models/Device.ts +2 -2
  94. package/src/models/EndpointDevice.ts +74 -0
  95. package/src/models/EndpointDeviceRequest.ts +74 -0
  96. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  97. package/src/models/FrameChallenge.ts +120 -0
  98. package/src/models/FrameChallengeResponseRequest.ts +65 -0
  99. package/src/models/ModelEnum.ts +1 -0
  100. package/src/models/PaginatedAuthenticatorEndpointGDTCStageList.ts +88 -0
  101. package/src/models/PaginatedEndpointDeviceList.ts +88 -0
  102. package/src/models/PatchedAuthenticatorEndpointGDTCStageRequest.ts +104 -0
  103. package/src/models/PatchedEndpointDeviceRequest.ts +73 -0
  104. package/src/models/VersionHistory.ts +92 -0
  105. package/src/models/index.ts +11 -0
@@ -19,6 +19,8 @@ import type {
19
19
  AuthenticatorDuoStageDeviceImportResponse,
20
20
  AuthenticatorDuoStageManualDeviceImportRequest,
21
21
  AuthenticatorDuoStageRequest,
22
+ AuthenticatorEndpointGDTCStage,
23
+ AuthenticatorEndpointGDTCStageRequest,
22
24
  AuthenticatorSMSStage,
23
25
  AuthenticatorSMSStageRequest,
24
26
  AuthenticatorStaticStage,
@@ -48,6 +50,7 @@ import type {
48
50
  InvitationStage,
49
51
  InvitationStageRequest,
50
52
  PaginatedAuthenticatorDuoStageList,
53
+ PaginatedAuthenticatorEndpointGDTCStageList,
51
54
  PaginatedAuthenticatorSMSStageList,
52
55
  PaginatedAuthenticatorStaticStageList,
53
56
  PaginatedAuthenticatorTOTPStageList,
@@ -74,6 +77,7 @@ import type {
74
77
  PasswordStage,
75
78
  PasswordStageRequest,
76
79
  PatchedAuthenticatorDuoStageRequest,
80
+ PatchedAuthenticatorEndpointGDTCStageRequest,
77
81
  PatchedAuthenticatorSMSStageRequest,
78
82
  PatchedAuthenticatorStaticStageRequest,
79
83
  PatchedAuthenticatorTOTPStageRequest,
@@ -126,6 +130,10 @@ import {
126
130
  AuthenticatorDuoStageManualDeviceImportRequestToJSON,
127
131
  AuthenticatorDuoStageRequestFromJSON,
128
132
  AuthenticatorDuoStageRequestToJSON,
133
+ AuthenticatorEndpointGDTCStageFromJSON,
134
+ AuthenticatorEndpointGDTCStageToJSON,
135
+ AuthenticatorEndpointGDTCStageRequestFromJSON,
136
+ AuthenticatorEndpointGDTCStageRequestToJSON,
129
137
  AuthenticatorSMSStageFromJSON,
130
138
  AuthenticatorSMSStageToJSON,
131
139
  AuthenticatorSMSStageRequestFromJSON,
@@ -184,6 +192,8 @@ import {
184
192
  InvitationStageRequestToJSON,
185
193
  PaginatedAuthenticatorDuoStageListFromJSON,
186
194
  PaginatedAuthenticatorDuoStageListToJSON,
195
+ PaginatedAuthenticatorEndpointGDTCStageListFromJSON,
196
+ PaginatedAuthenticatorEndpointGDTCStageListToJSON,
187
197
  PaginatedAuthenticatorSMSStageListFromJSON,
188
198
  PaginatedAuthenticatorSMSStageListToJSON,
189
199
  PaginatedAuthenticatorStaticStageListFromJSON,
@@ -236,6 +246,8 @@ import {
236
246
  PasswordStageRequestToJSON,
237
247
  PatchedAuthenticatorDuoStageRequestFromJSON,
238
248
  PatchedAuthenticatorDuoStageRequestToJSON,
249
+ PatchedAuthenticatorEndpointGDTCStageRequestFromJSON,
250
+ PatchedAuthenticatorEndpointGDTCStageRequestToJSON,
239
251
  PatchedAuthenticatorSMSStageRequestFromJSON,
240
252
  PatchedAuthenticatorSMSStageRequestToJSON,
241
253
  PatchedAuthenticatorStaticStageRequestFromJSON,
@@ -392,6 +404,41 @@ export interface StagesAuthenticatorDuoUsedByListRequest {
392
404
  stageUuid: string;
393
405
  }
394
406
 
407
+ export interface StagesAuthenticatorEndpointGdtcCreateRequest {
408
+ authenticatorEndpointGDTCStageRequest: AuthenticatorEndpointGDTCStageRequest;
409
+ }
410
+
411
+ export interface StagesAuthenticatorEndpointGdtcDestroyRequest {
412
+ stageUuid: string;
413
+ }
414
+
415
+ export interface StagesAuthenticatorEndpointGdtcListRequest {
416
+ configureFlow?: string;
417
+ name?: string;
418
+ ordering?: string;
419
+ page?: number;
420
+ pageSize?: number;
421
+ search?: string;
422
+ }
423
+
424
+ export interface StagesAuthenticatorEndpointGdtcPartialUpdateRequest {
425
+ stageUuid: string;
426
+ patchedAuthenticatorEndpointGDTCStageRequest?: PatchedAuthenticatorEndpointGDTCStageRequest;
427
+ }
428
+
429
+ export interface StagesAuthenticatorEndpointGdtcRetrieveRequest {
430
+ stageUuid: string;
431
+ }
432
+
433
+ export interface StagesAuthenticatorEndpointGdtcUpdateRequest {
434
+ stageUuid: string;
435
+ authenticatorEndpointGDTCStageRequest: AuthenticatorEndpointGDTCStageRequest;
436
+ }
437
+
438
+ export interface StagesAuthenticatorEndpointGdtcUsedByListRequest {
439
+ stageUuid: string;
440
+ }
441
+
395
442
  export interface StagesAuthenticatorSmsCreateRequest {
396
443
  authenticatorSMSStageRequest: AuthenticatorSMSStageRequest;
397
444
  }
@@ -1879,6 +1926,304 @@ export class StagesApi extends runtime.BaseAPI {
1879
1926
  return await response.value();
1880
1927
  }
1881
1928
 
1929
+ /**
1930
+ * AuthenticatorEndpointGDTCStage Viewset
1931
+ */
1932
+ async stagesAuthenticatorEndpointGdtcCreateRaw(requestParameters: StagesAuthenticatorEndpointGdtcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>> {
1933
+ if (requestParameters.authenticatorEndpointGDTCStageRequest === null || requestParameters.authenticatorEndpointGDTCStageRequest === undefined) {
1934
+ throw new runtime.RequiredError('authenticatorEndpointGDTCStageRequest','Required parameter requestParameters.authenticatorEndpointGDTCStageRequest was null or undefined when calling stagesAuthenticatorEndpointGdtcCreate.');
1935
+ }
1936
+
1937
+ const queryParameters: any = {};
1938
+
1939
+ const headerParameters: runtime.HTTPHeaders = {};
1940
+
1941
+ headerParameters['Content-Type'] = 'application/json';
1942
+
1943
+ if (this.configuration && this.configuration.accessToken) {
1944
+ const token = this.configuration.accessToken;
1945
+ const tokenString = await token("authentik", []);
1946
+
1947
+ if (tokenString) {
1948
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1949
+ }
1950
+ }
1951
+ const response = await this.request({
1952
+ path: `/stages/authenticator/endpoint_gdtc/`,
1953
+ method: 'POST',
1954
+ headers: headerParameters,
1955
+ query: queryParameters,
1956
+ body: AuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.authenticatorEndpointGDTCStageRequest),
1957
+ }, initOverrides);
1958
+
1959
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
1960
+ }
1961
+
1962
+ /**
1963
+ * AuthenticatorEndpointGDTCStage Viewset
1964
+ */
1965
+ async stagesAuthenticatorEndpointGdtcCreate(requestParameters: StagesAuthenticatorEndpointGdtcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage> {
1966
+ const response = await this.stagesAuthenticatorEndpointGdtcCreateRaw(requestParameters, initOverrides);
1967
+ return await response.value();
1968
+ }
1969
+
1970
+ /**
1971
+ * AuthenticatorEndpointGDTCStage Viewset
1972
+ */
1973
+ async stagesAuthenticatorEndpointGdtcDestroyRaw(requestParameters: StagesAuthenticatorEndpointGdtcDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1974
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
1975
+ throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcDestroy.');
1976
+ }
1977
+
1978
+ const queryParameters: any = {};
1979
+
1980
+ const headerParameters: runtime.HTTPHeaders = {};
1981
+
1982
+ if (this.configuration && this.configuration.accessToken) {
1983
+ const token = this.configuration.accessToken;
1984
+ const tokenString = await token("authentik", []);
1985
+
1986
+ if (tokenString) {
1987
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1988
+ }
1989
+ }
1990
+ const response = await this.request({
1991
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
1992
+ method: 'DELETE',
1993
+ headers: headerParameters,
1994
+ query: queryParameters,
1995
+ }, initOverrides);
1996
+
1997
+ return new runtime.VoidApiResponse(response);
1998
+ }
1999
+
2000
+ /**
2001
+ * AuthenticatorEndpointGDTCStage Viewset
2002
+ */
2003
+ async stagesAuthenticatorEndpointGdtcDestroy(requestParameters: StagesAuthenticatorEndpointGdtcDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2004
+ await this.stagesAuthenticatorEndpointGdtcDestroyRaw(requestParameters, initOverrides);
2005
+ }
2006
+
2007
+ /**
2008
+ * AuthenticatorEndpointGDTCStage Viewset
2009
+ */
2010
+ async stagesAuthenticatorEndpointGdtcListRaw(requestParameters: StagesAuthenticatorEndpointGdtcListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAuthenticatorEndpointGDTCStageList>> {
2011
+ const queryParameters: any = {};
2012
+
2013
+ if (requestParameters.configureFlow !== undefined) {
2014
+ queryParameters['configure_flow'] = requestParameters.configureFlow;
2015
+ }
2016
+
2017
+ if (requestParameters.name !== undefined) {
2018
+ queryParameters['name'] = requestParameters.name;
2019
+ }
2020
+
2021
+ if (requestParameters.ordering !== undefined) {
2022
+ queryParameters['ordering'] = requestParameters.ordering;
2023
+ }
2024
+
2025
+ if (requestParameters.page !== undefined) {
2026
+ queryParameters['page'] = requestParameters.page;
2027
+ }
2028
+
2029
+ if (requestParameters.pageSize !== undefined) {
2030
+ queryParameters['page_size'] = requestParameters.pageSize;
2031
+ }
2032
+
2033
+ if (requestParameters.search !== undefined) {
2034
+ queryParameters['search'] = requestParameters.search;
2035
+ }
2036
+
2037
+ const headerParameters: runtime.HTTPHeaders = {};
2038
+
2039
+ if (this.configuration && this.configuration.accessToken) {
2040
+ const token = this.configuration.accessToken;
2041
+ const tokenString = await token("authentik", []);
2042
+
2043
+ if (tokenString) {
2044
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2045
+ }
2046
+ }
2047
+ const response = await this.request({
2048
+ path: `/stages/authenticator/endpoint_gdtc/`,
2049
+ method: 'GET',
2050
+ headers: headerParameters,
2051
+ query: queryParameters,
2052
+ }, initOverrides);
2053
+
2054
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAuthenticatorEndpointGDTCStageListFromJSON(jsonValue));
2055
+ }
2056
+
2057
+ /**
2058
+ * AuthenticatorEndpointGDTCStage Viewset
2059
+ */
2060
+ async stagesAuthenticatorEndpointGdtcList(requestParameters: StagesAuthenticatorEndpointGdtcListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAuthenticatorEndpointGDTCStageList> {
2061
+ const response = await this.stagesAuthenticatorEndpointGdtcListRaw(requestParameters, initOverrides);
2062
+ return await response.value();
2063
+ }
2064
+
2065
+ /**
2066
+ * AuthenticatorEndpointGDTCStage Viewset
2067
+ */
2068
+ async stagesAuthenticatorEndpointGdtcPartialUpdateRaw(requestParameters: StagesAuthenticatorEndpointGdtcPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>> {
2069
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
2070
+ throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcPartialUpdate.');
2071
+ }
2072
+
2073
+ const queryParameters: any = {};
2074
+
2075
+ const headerParameters: runtime.HTTPHeaders = {};
2076
+
2077
+ headerParameters['Content-Type'] = 'application/json';
2078
+
2079
+ if (this.configuration && this.configuration.accessToken) {
2080
+ const token = this.configuration.accessToken;
2081
+ const tokenString = await token("authentik", []);
2082
+
2083
+ if (tokenString) {
2084
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2085
+ }
2086
+ }
2087
+ const response = await this.request({
2088
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
2089
+ method: 'PATCH',
2090
+ headers: headerParameters,
2091
+ query: queryParameters,
2092
+ body: PatchedAuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.patchedAuthenticatorEndpointGDTCStageRequest),
2093
+ }, initOverrides);
2094
+
2095
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
2096
+ }
2097
+
2098
+ /**
2099
+ * AuthenticatorEndpointGDTCStage Viewset
2100
+ */
2101
+ async stagesAuthenticatorEndpointGdtcPartialUpdate(requestParameters: StagesAuthenticatorEndpointGdtcPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage> {
2102
+ const response = await this.stagesAuthenticatorEndpointGdtcPartialUpdateRaw(requestParameters, initOverrides);
2103
+ return await response.value();
2104
+ }
2105
+
2106
+ /**
2107
+ * AuthenticatorEndpointGDTCStage Viewset
2108
+ */
2109
+ async stagesAuthenticatorEndpointGdtcRetrieveRaw(requestParameters: StagesAuthenticatorEndpointGdtcRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>> {
2110
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
2111
+ throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcRetrieve.');
2112
+ }
2113
+
2114
+ const queryParameters: any = {};
2115
+
2116
+ const headerParameters: runtime.HTTPHeaders = {};
2117
+
2118
+ if (this.configuration && this.configuration.accessToken) {
2119
+ const token = this.configuration.accessToken;
2120
+ const tokenString = await token("authentik", []);
2121
+
2122
+ if (tokenString) {
2123
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2124
+ }
2125
+ }
2126
+ const response = await this.request({
2127
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
2128
+ method: 'GET',
2129
+ headers: headerParameters,
2130
+ query: queryParameters,
2131
+ }, initOverrides);
2132
+
2133
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
2134
+ }
2135
+
2136
+ /**
2137
+ * AuthenticatorEndpointGDTCStage Viewset
2138
+ */
2139
+ async stagesAuthenticatorEndpointGdtcRetrieve(requestParameters: StagesAuthenticatorEndpointGdtcRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage> {
2140
+ const response = await this.stagesAuthenticatorEndpointGdtcRetrieveRaw(requestParameters, initOverrides);
2141
+ return await response.value();
2142
+ }
2143
+
2144
+ /**
2145
+ * AuthenticatorEndpointGDTCStage Viewset
2146
+ */
2147
+ async stagesAuthenticatorEndpointGdtcUpdateRaw(requestParameters: StagesAuthenticatorEndpointGdtcUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorEndpointGDTCStage>> {
2148
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
2149
+ throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcUpdate.');
2150
+ }
2151
+
2152
+ if (requestParameters.authenticatorEndpointGDTCStageRequest === null || requestParameters.authenticatorEndpointGDTCStageRequest === undefined) {
2153
+ throw new runtime.RequiredError('authenticatorEndpointGDTCStageRequest','Required parameter requestParameters.authenticatorEndpointGDTCStageRequest was null or undefined when calling stagesAuthenticatorEndpointGdtcUpdate.');
2154
+ }
2155
+
2156
+ const queryParameters: any = {};
2157
+
2158
+ const headerParameters: runtime.HTTPHeaders = {};
2159
+
2160
+ headerParameters['Content-Type'] = 'application/json';
2161
+
2162
+ if (this.configuration && this.configuration.accessToken) {
2163
+ const token = this.configuration.accessToken;
2164
+ const tokenString = await token("authentik", []);
2165
+
2166
+ if (tokenString) {
2167
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2168
+ }
2169
+ }
2170
+ const response = await this.request({
2171
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
2172
+ method: 'PUT',
2173
+ headers: headerParameters,
2174
+ query: queryParameters,
2175
+ body: AuthenticatorEndpointGDTCStageRequestToJSON(requestParameters.authenticatorEndpointGDTCStageRequest),
2176
+ }, initOverrides);
2177
+
2178
+ return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorEndpointGDTCStageFromJSON(jsonValue));
2179
+ }
2180
+
2181
+ /**
2182
+ * AuthenticatorEndpointGDTCStage Viewset
2183
+ */
2184
+ async stagesAuthenticatorEndpointGdtcUpdate(requestParameters: StagesAuthenticatorEndpointGdtcUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorEndpointGDTCStage> {
2185
+ const response = await this.stagesAuthenticatorEndpointGdtcUpdateRaw(requestParameters, initOverrides);
2186
+ return await response.value();
2187
+ }
2188
+
2189
+ /**
2190
+ * Get a list of all objects that use this object
2191
+ */
2192
+ async stagesAuthenticatorEndpointGdtcUsedByListRaw(requestParameters: StagesAuthenticatorEndpointGdtcUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
2193
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
2194
+ throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorEndpointGdtcUsedByList.');
2195
+ }
2196
+
2197
+ const queryParameters: any = {};
2198
+
2199
+ const headerParameters: runtime.HTTPHeaders = {};
2200
+
2201
+ if (this.configuration && this.configuration.accessToken) {
2202
+ const token = this.configuration.accessToken;
2203
+ const tokenString = await token("authentik", []);
2204
+
2205
+ if (tokenString) {
2206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2207
+ }
2208
+ }
2209
+ const response = await this.request({
2210
+ path: `/stages/authenticator/endpoint_gdtc/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
2211
+ method: 'GET',
2212
+ headers: headerParameters,
2213
+ query: queryParameters,
2214
+ }, initOverrides);
2215
+
2216
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
2217
+ }
2218
+
2219
+ /**
2220
+ * Get a list of all objects that use this object
2221
+ */
2222
+ async stagesAuthenticatorEndpointGdtcUsedByList(requestParameters: StagesAuthenticatorEndpointGdtcUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
2223
+ const response = await this.stagesAuthenticatorEndpointGdtcUsedByListRaw(requestParameters, initOverrides);
2224
+ return await response.value();
2225
+ }
2226
+
1882
2227
  /**
1883
2228
  * AuthenticatorSMSStage Viewset
1884
2229
  */
@@ -73,6 +73,7 @@ export const AppEnum = {
73
73
  EnterpriseProvidersGoogleWorkspace: 'authentik.enterprise.providers.google_workspace',
74
74
  EnterpriseProvidersMicrosoftEntra: 'authentik.enterprise.providers.microsoft_entra',
75
75
  EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
76
+ EnterpriseStagesAuthenticatorEndpointGdtc: 'authentik.enterprise.stages.authenticator_endpoint_gdtc',
76
77
  EnterpriseStagesSource: 'authentik.enterprise.stages.source',
77
78
  Events: 'authentik.events',
78
79
  UnknownDefaultOpenApi: '11184809'
@@ -0,0 +1,146 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.8.3
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 { FlowSet } from './FlowSet';
17
+ import {
18
+ FlowSetFromJSON,
19
+ FlowSetFromJSONTyped,
20
+ FlowSetToJSON,
21
+ } from './FlowSet';
22
+
23
+ /**
24
+ * AuthenticatorEndpointGDTCStage Serializer
25
+ * @export
26
+ * @interface AuthenticatorEndpointGDTCStage
27
+ */
28
+ export interface AuthenticatorEndpointGDTCStage {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof AuthenticatorEndpointGDTCStage
33
+ */
34
+ readonly pk: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AuthenticatorEndpointGDTCStage
39
+ */
40
+ name: string;
41
+ /**
42
+ * Get object type so that we know how to edit the object
43
+ * @type {string}
44
+ * @memberof AuthenticatorEndpointGDTCStage
45
+ */
46
+ readonly component: string;
47
+ /**
48
+ * Return object's verbose_name
49
+ * @type {string}
50
+ * @memberof AuthenticatorEndpointGDTCStage
51
+ */
52
+ readonly verboseName: string;
53
+ /**
54
+ * Return object's plural verbose_name
55
+ * @type {string}
56
+ * @memberof AuthenticatorEndpointGDTCStage
57
+ */
58
+ readonly verboseNamePlural: string;
59
+ /**
60
+ * Return internal model name
61
+ * @type {string}
62
+ * @memberof AuthenticatorEndpointGDTCStage
63
+ */
64
+ readonly metaModelName: string;
65
+ /**
66
+ *
67
+ * @type {Array<FlowSet>}
68
+ * @memberof AuthenticatorEndpointGDTCStage
69
+ */
70
+ flowSet?: Array<FlowSet>;
71
+ /**
72
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
73
+ * @type {string}
74
+ * @memberof AuthenticatorEndpointGDTCStage
75
+ */
76
+ configureFlow?: string | null;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof AuthenticatorEndpointGDTCStage
81
+ */
82
+ friendlyName?: string | null;
83
+ /**
84
+ *
85
+ * @type {any}
86
+ * @memberof AuthenticatorEndpointGDTCStage
87
+ */
88
+ credentials: any | null;
89
+ }
90
+
91
+ /**
92
+ * Check if a given object implements the AuthenticatorEndpointGDTCStage interface.
93
+ */
94
+ export function instanceOfAuthenticatorEndpointGDTCStage(value: object): boolean {
95
+ let isInstance = true;
96
+ isInstance = isInstance && "pk" in value;
97
+ isInstance = isInstance && "name" in value;
98
+ isInstance = isInstance && "component" in value;
99
+ isInstance = isInstance && "verboseName" in value;
100
+ isInstance = isInstance && "verboseNamePlural" in value;
101
+ isInstance = isInstance && "metaModelName" in value;
102
+ isInstance = isInstance && "credentials" in value;
103
+
104
+ return isInstance;
105
+ }
106
+
107
+ export function AuthenticatorEndpointGDTCStageFromJSON(json: any): AuthenticatorEndpointGDTCStage {
108
+ return AuthenticatorEndpointGDTCStageFromJSONTyped(json, false);
109
+ }
110
+
111
+ export function AuthenticatorEndpointGDTCStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStage {
112
+ if ((json === undefined) || (json === null)) {
113
+ return json;
114
+ }
115
+ return {
116
+
117
+ 'pk': json['pk'],
118
+ 'name': json['name'],
119
+ 'component': json['component'],
120
+ 'verboseName': json['verbose_name'],
121
+ 'verboseNamePlural': json['verbose_name_plural'],
122
+ 'metaModelName': json['meta_model_name'],
123
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
124
+ 'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
125
+ 'friendlyName': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
126
+ 'credentials': json['credentials'],
127
+ };
128
+ }
129
+
130
+ export function AuthenticatorEndpointGDTCStageToJSON(value?: AuthenticatorEndpointGDTCStage | null): any {
131
+ if (value === undefined) {
132
+ return undefined;
133
+ }
134
+ if (value === null) {
135
+ return null;
136
+ }
137
+ return {
138
+
139
+ 'name': value.name,
140
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
141
+ 'configure_flow': value.configureFlow,
142
+ 'friendly_name': value.friendlyName,
143
+ 'credentials': value.credentials,
144
+ };
145
+ }
146
+
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.8.3
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 { FlowSetRequest } from './FlowSetRequest';
17
+ import {
18
+ FlowSetRequestFromJSON,
19
+ FlowSetRequestFromJSONTyped,
20
+ FlowSetRequestToJSON,
21
+ } from './FlowSetRequest';
22
+
23
+ /**
24
+ * AuthenticatorEndpointGDTCStage Serializer
25
+ * @export
26
+ * @interface AuthenticatorEndpointGDTCStageRequest
27
+ */
28
+ export interface AuthenticatorEndpointGDTCStageRequest {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof AuthenticatorEndpointGDTCStageRequest
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {Array<FlowSetRequest>}
38
+ * @memberof AuthenticatorEndpointGDTCStageRequest
39
+ */
40
+ flowSet?: Array<FlowSetRequest>;
41
+ /**
42
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
43
+ * @type {string}
44
+ * @memberof AuthenticatorEndpointGDTCStageRequest
45
+ */
46
+ configureFlow?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof AuthenticatorEndpointGDTCStageRequest
51
+ */
52
+ friendlyName?: string | null;
53
+ /**
54
+ *
55
+ * @type {any}
56
+ * @memberof AuthenticatorEndpointGDTCStageRequest
57
+ */
58
+ credentials: any | null;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
63
+ */
64
+ export function instanceOfAuthenticatorEndpointGDTCStageRequest(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "name" in value;
67
+ isInstance = isInstance && "credentials" in value;
68
+
69
+ return isInstance;
70
+ }
71
+
72
+ export function AuthenticatorEndpointGDTCStageRequestFromJSON(json: any): AuthenticatorEndpointGDTCStageRequest {
73
+ return AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStageRequest {
77
+ if ((json === undefined) || (json === null)) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'name': json['name'],
83
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
84
+ 'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
85
+ 'friendlyName': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
86
+ 'credentials': json['credentials'],
87
+ };
88
+ }
89
+
90
+ export function AuthenticatorEndpointGDTCStageRequestToJSON(value?: AuthenticatorEndpointGDTCStageRequest | null): any {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+
99
+ 'name': value.name,
100
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
101
+ 'configure_flow': value.configureFlow,
102
+ 'friendly_name': value.friendlyName,
103
+ 'credentials': value.credentials,
104
+ };
105
+ }
106
+