@goauthentik/api 2024.8.3-1729166675 → 2024.8.3-1729630021

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,104 @@
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 PatchedAuthenticatorEndpointGDTCStageRequest
27
+ */
28
+ export interface PatchedAuthenticatorEndpointGDTCStageRequest {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
33
+ */
34
+ name?: string;
35
+ /**
36
+ *
37
+ * @type {Array<FlowSetRequest>}
38
+ * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
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 PatchedAuthenticatorEndpointGDTCStageRequest
45
+ */
46
+ configureFlow?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
51
+ */
52
+ friendlyName?: string | null;
53
+ /**
54
+ *
55
+ * @type {any}
56
+ * @memberof PatchedAuthenticatorEndpointGDTCStageRequest
57
+ */
58
+ credentials?: any | null;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the PatchedAuthenticatorEndpointGDTCStageRequest interface.
63
+ */
64
+ export function instanceOfPatchedAuthenticatorEndpointGDTCStageRequest(value: object): boolean {
65
+ let isInstance = true;
66
+
67
+ return isInstance;
68
+ }
69
+
70
+ export function PatchedAuthenticatorEndpointGDTCStageRequestFromJSON(json: any): PatchedAuthenticatorEndpointGDTCStageRequest {
71
+ return PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function PatchedAuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorEndpointGDTCStageRequest {
75
+ if ((json === undefined) || (json === null)) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'name': !exists(json, 'name') ? undefined : json['name'],
81
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
82
+ 'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
83
+ 'friendlyName': !exists(json, 'friendly_name') ? undefined : json['friendly_name'],
84
+ 'credentials': !exists(json, 'credentials') ? undefined : json['credentials'],
85
+ };
86
+ }
87
+
88
+ export function PatchedAuthenticatorEndpointGDTCStageRequestToJSON(value?: PatchedAuthenticatorEndpointGDTCStageRequest | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'name': value.name,
98
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
99
+ 'configure_flow': value.configureFlow,
100
+ 'friendly_name': value.friendlyName,
101
+ 'credentials': value.credentials,
102
+ };
103
+ }
104
+
@@ -0,0 +1,73 @@
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
+ /**
17
+ * Serializer for Endpoint authenticator devices
18
+ * @export
19
+ * @interface PatchedEndpointDeviceRequest
20
+ */
21
+ export interface PatchedEndpointDeviceRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedEndpointDeviceRequest
26
+ */
27
+ pk?: string;
28
+ /**
29
+ * The human-readable name of this device.
30
+ * @type {string}
31
+ * @memberof PatchedEndpointDeviceRequest
32
+ */
33
+ name?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PatchedEndpointDeviceRequest interface.
38
+ */
39
+ export function instanceOfPatchedEndpointDeviceRequest(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function PatchedEndpointDeviceRequestFromJSON(json: any): PatchedEndpointDeviceRequest {
46
+ return PatchedEndpointDeviceRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PatchedEndpointDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEndpointDeviceRequest {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'pk': !exists(json, 'pk') ? undefined : json['pk'],
56
+ 'name': !exists(json, 'name') ? undefined : json['name'],
57
+ };
58
+ }
59
+
60
+ export function PatchedEndpointDeviceRequestToJSON(value?: PatchedEndpointDeviceRequest | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'pk': value.pk,
70
+ 'name': value.name,
71
+ };
72
+ }
73
+
@@ -0,0 +1,92 @@
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
+ /**
17
+ * VersionHistory Serializer
18
+ * @export
19
+ * @interface VersionHistory
20
+ */
21
+ export interface VersionHistory {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof VersionHistory
26
+ */
27
+ readonly id: number;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof VersionHistory
32
+ */
33
+ timestamp: Date;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof VersionHistory
38
+ */
39
+ version: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof VersionHistory
44
+ */
45
+ build: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the VersionHistory interface.
50
+ */
51
+ export function instanceOfVersionHistory(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "id" in value;
54
+ isInstance = isInstance && "timestamp" in value;
55
+ isInstance = isInstance && "version" in value;
56
+ isInstance = isInstance && "build" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function VersionHistoryFromJSON(json: any): VersionHistory {
62
+ return VersionHistoryFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function VersionHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionHistory {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'id': json['id'],
72
+ 'timestamp': (new Date(json['timestamp'])),
73
+ 'version': json['version'],
74
+ 'build': json['build'],
75
+ };
76
+ }
77
+
78
+ export function VersionHistoryToJSON(value?: VersionHistory | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'timestamp': (value.timestamp.toISOString()),
88
+ 'version': value.version,
89
+ 'build': value.build,
90
+ };
91
+ }
92
+
@@ -25,6 +25,8 @@ export * from './AuthenticatorDuoStage';
25
25
  export * from './AuthenticatorDuoStageDeviceImportResponse';
26
26
  export * from './AuthenticatorDuoStageManualDeviceImportRequest';
27
27
  export * from './AuthenticatorDuoStageRequest';
28
+ export * from './AuthenticatorEndpointGDTCStage';
29
+ export * from './AuthenticatorEndpointGDTCStageRequest';
28
30
  export * from './AuthenticatorSMSChallenge';
29
31
  export * from './AuthenticatorSMSChallengeResponseRequest';
30
32
  export * from './AuthenticatorSMSStage';
@@ -112,6 +114,8 @@ export * from './EmailChallengeResponseRequest';
112
114
  export * from './EmailStage';
113
115
  export * from './EmailStageRequest';
114
116
  export * from './Endpoint';
117
+ export * from './EndpointDevice';
118
+ export * from './EndpointDeviceRequest';
115
119
  export * from './EndpointRequest';
116
120
  export * from './ErrorDetail';
117
121
  export * from './ErrorReportingConfig';
@@ -144,6 +148,8 @@ export * from './FlowSetRequest';
144
148
  export * from './FlowStageBinding';
145
149
  export * from './FlowStageBindingRequest';
146
150
  export * from './FooterLink';
151
+ export * from './FrameChallenge';
152
+ export * from './FrameChallengeResponseRequest';
147
153
  export * from './GenericError';
148
154
  export * from './GeoIPPolicy';
149
155
  export * from './GeoIPPolicyRequest';
@@ -245,6 +251,7 @@ export * from './OutpostTypeEnum';
245
251
  export * from './PaginatedApplicationList';
246
252
  export * from './PaginatedAuthenticatedSessionList';
247
253
  export * from './PaginatedAuthenticatorDuoStageList';
254
+ export * from './PaginatedAuthenticatorEndpointGDTCStageList';
248
255
  export * from './PaginatedAuthenticatorSMSStageList';
249
256
  export * from './PaginatedAuthenticatorStaticStageList';
250
257
  export * from './PaginatedAuthenticatorTOTPStageList';
@@ -263,6 +270,7 @@ export * from './PaginatedDummyPolicyList';
263
270
  export * from './PaginatedDummyStageList';
264
271
  export * from './PaginatedDuoDeviceList';
265
272
  export * from './PaginatedEmailStageList';
273
+ export * from './PaginatedEndpointDeviceList';
266
274
  export * from './PaginatedEndpointList';
267
275
  export * from './PaginatedEventList';
268
276
  export * from './PaginatedEventMatcherPolicyList';
@@ -373,6 +381,7 @@ export * from './PasswordStage';
373
381
  export * from './PasswordStageRequest';
374
382
  export * from './PatchedApplicationRequest';
375
383
  export * from './PatchedAuthenticatorDuoStageRequest';
384
+ export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
376
385
  export * from './PatchedAuthenticatorSMSStageRequest';
377
386
  export * from './PatchedAuthenticatorStaticStageRequest';
378
387
  export * from './PatchedAuthenticatorTOTPStageRequest';
@@ -391,6 +400,7 @@ export * from './PatchedDummyPolicyRequest';
391
400
  export * from './PatchedDummyStageRequest';
392
401
  export * from './PatchedDuoDeviceRequest';
393
402
  export * from './PatchedEmailStageRequest';
403
+ export * from './PatchedEndpointDeviceRequest';
394
404
  export * from './PatchedEndpointRequest';
395
405
  export * from './PatchedEventMatcherPolicyRequest';
396
406
  export * from './PatchedEventRequest';
@@ -641,6 +651,7 @@ export * from './UserWriteStage';
641
651
  export * from './UserWriteStageRequest';
642
652
  export * from './ValidationError';
643
653
  export * from './Version';
654
+ export * from './VersionHistory';
644
655
  export * from './WebAuthnDevice';
645
656
  export * from './WebAuthnDeviceRequest';
646
657
  export * from './WebAuthnDeviceType';