@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739814462

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 (112) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/dist/apis/AuthenticatorsApi.d.ts +145 -1
  3. package/dist/apis/AuthenticatorsApi.js +458 -0
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/StagesApi.d.ts +99 -1
  7. package/dist/apis/StagesApi.js +310 -0
  8. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  9. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/StagesApi.d.ts +99 -1
  13. package/dist/esm/apis/StagesApi.js +311 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
  17. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  18. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  19. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  20. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  21. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  22. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  23. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -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/DeviceClassesEnum.d.ts +1 -0
  27. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  28. package/dist/esm/models/EmailDevice.d.ts +51 -0
  29. package/dist/esm/models/EmailDevice.js +53 -0
  30. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  31. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  32. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  33. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  34. package/dist/esm/models/GeoIPPolicy.d.ts +36 -0
  35. package/dist/esm/models/GeoIPPolicy.js +12 -0
  36. package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
  37. package/dist/esm/models/GeoIPPolicyRequest.js +12 -0
  38. package/dist/esm/models/ModelEnum.d.ts +2 -0
  39. package/dist/esm/models/ModelEnum.js +2 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  41. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  42. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  43. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  44. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  45. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  46. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  47. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  48. package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  49. package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -0
  50. package/dist/esm/models/index.d.ts +10 -0
  51. package/dist/esm/models/index.js +10 -0
  52. package/dist/models/AppEnum.d.ts +1 -0
  53. package/dist/models/AppEnum.js +1 -0
  54. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  55. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  56. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  57. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  58. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  59. package/dist/models/AuthenticatorEmailStage.js +96 -0
  60. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  61. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  62. package/dist/models/ChallengeTypes.d.ts +3 -0
  63. package/dist/models/ChallengeTypes.js +5 -0
  64. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  65. package/dist/models/DeviceClassesEnum.js +1 -0
  66. package/dist/models/EmailDevice.d.ts +51 -0
  67. package/dist/models/EmailDevice.js +60 -0
  68. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  69. package/dist/models/EmailDeviceRequest.js +50 -0
  70. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  71. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  72. package/dist/models/GeoIPPolicy.d.ts +36 -0
  73. package/dist/models/GeoIPPolicy.js +12 -0
  74. package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
  75. package/dist/models/GeoIPPolicyRequest.js +12 -0
  76. package/dist/models/ModelEnum.d.ts +2 -0
  77. package/dist/models/ModelEnum.js +2 -0
  78. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  79. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  80. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  81. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  82. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  83. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  84. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  85. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  86. package/dist/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  87. package/dist/models/PatchedGeoIPPolicyRequest.js +12 -0
  88. package/dist/models/index.d.ts +10 -0
  89. package/dist/models/index.js +10 -0
  90. package/package.json +1 -1
  91. package/src/apis/AuthenticatorsApi.ts +617 -0
  92. package/src/apis/RbacApi.ts +4 -0
  93. package/src/apis/StagesApi.ts +436 -0
  94. package/src/models/AppEnum.ts +1 -0
  95. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  96. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  97. package/src/models/AuthenticatorEmailStage.ts +234 -0
  98. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  99. package/src/models/ChallengeTypes.ts +12 -1
  100. package/src/models/DeviceClassesEnum.ts +1 -0
  101. package/src/models/EmailDevice.ts +98 -0
  102. package/src/models/EmailDeviceRequest.ts +66 -0
  103. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  104. package/src/models/GeoIPPolicy.ts +48 -0
  105. package/src/models/GeoIPPolicyRequest.ts +48 -0
  106. package/src/models/ModelEnum.ts +2 -0
  107. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  108. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  109. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  110. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  111. package/src/models/PatchedGeoIPPolicyRequest.ts +48 -0
  112. package/src/models/index.ts +10 -0
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.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 { mapValues } from '../runtime';
16
+ /**
17
+ * Serializer for email authenticator devices
18
+ * @export
19
+ * @interface PatchedEmailDeviceRequest
20
+ */
21
+ export interface PatchedEmailDeviceRequest {
22
+ /**
23
+ * The human-readable name of this device.
24
+ * @type {string}
25
+ * @memberof PatchedEmailDeviceRequest
26
+ */
27
+ name?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PatchedEmailDeviceRequest interface.
32
+ */
33
+ export function instanceOfPatchedEmailDeviceRequest(value: object): value is PatchedEmailDeviceRequest {
34
+ return true;
35
+ }
36
+
37
+ export function PatchedEmailDeviceRequestFromJSON(json: any): PatchedEmailDeviceRequest {
38
+ return PatchedEmailDeviceRequestFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function PatchedEmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEmailDeviceRequest {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'name': json['name'] == null ? undefined : json['name'],
48
+ };
49
+ }
50
+
51
+ export function PatchedEmailDeviceRequestToJSON(json: any): PatchedEmailDeviceRequest {
52
+ return PatchedEmailDeviceRequestToJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedEmailDeviceRequestToJSONTyped(value?: PatchedEmailDeviceRequest | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'name': value['name'],
63
+ };
64
+ }
65
+
@@ -51,6 +51,42 @@ export interface PatchedGeoIPPolicyRequest {
51
51
  * @memberof PatchedGeoIPPolicyRequest
52
52
  */
53
53
  countries?: Array<CountryCodeEnum>;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof PatchedGeoIPPolicyRequest
58
+ */
59
+ checkHistoryDistance?: boolean;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof PatchedGeoIPPolicyRequest
64
+ */
65
+ historyMaxDistanceKm?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof PatchedGeoIPPolicyRequest
70
+ */
71
+ distanceToleranceKm?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof PatchedGeoIPPolicyRequest
76
+ */
77
+ historyLoginCount?: number;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof PatchedGeoIPPolicyRequest
82
+ */
83
+ checkImpossibleTravel?: boolean;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof PatchedGeoIPPolicyRequest
88
+ */
89
+ impossibleToleranceKm?: number;
54
90
  }
55
91
 
56
92
  /**
@@ -74,6 +110,12 @@ export function PatchedGeoIPPolicyRequestFromJSONTyped(json: any, ignoreDiscrimi
74
110
  'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
75
111
  'asns': json['asns'] == null ? undefined : json['asns'],
76
112
  'countries': json['countries'] == null ? undefined : ((json['countries'] as Array<any>).map(CountryCodeEnumFromJSON)),
113
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
114
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
115
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
116
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
117
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
118
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
77
119
  };
78
120
  }
79
121
 
@@ -92,6 +134,12 @@ export function PatchedGeoIPPolicyRequestToJSONTyped(value?: PatchedGeoIPPolicyR
92
134
  'execution_logging': value['executionLogging'],
93
135
  'asns': value['asns'],
94
136
  'countries': value['countries'] == null ? undefined : ((value['countries'] as Array<any>).map(CountryCodeEnumToJSON)),
137
+ 'check_history_distance': value['checkHistoryDistance'],
138
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
139
+ 'distance_tolerance_km': value['distanceToleranceKm'],
140
+ 'history_login_count': value['historyLoginCount'],
141
+ 'check_impossible_travel': value['checkImpossibleTravel'],
142
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
95
143
  };
96
144
  }
97
145
 
@@ -27,6 +27,10 @@ export * from './AuthenticatorDuoStage';
27
27
  export * from './AuthenticatorDuoStageDeviceImportResponse';
28
28
  export * from './AuthenticatorDuoStageManualDeviceImportRequest';
29
29
  export * from './AuthenticatorDuoStageRequest';
30
+ export * from './AuthenticatorEmailChallenge';
31
+ export * from './AuthenticatorEmailChallengeResponseRequest';
32
+ export * from './AuthenticatorEmailStage';
33
+ export * from './AuthenticatorEmailStageRequest';
30
34
  export * from './AuthenticatorEndpointGDTCStage';
31
35
  export * from './AuthenticatorEndpointGDTCStageRequest';
32
36
  export * from './AuthenticatorSMSChallenge';
@@ -114,6 +118,8 @@ export * from './DuoDeviceRequest';
114
118
  export * from './DuoResponseEnum';
115
119
  export * from './EmailChallenge';
116
120
  export * from './EmailChallengeResponseRequest';
121
+ export * from './EmailDevice';
122
+ export * from './EmailDeviceRequest';
117
123
  export * from './EmailStage';
118
124
  export * from './EmailStageRequest';
119
125
  export * from './Endpoint';
@@ -269,6 +275,7 @@ export * from './PaginatedApplicationEntitlementList';
269
275
  export * from './PaginatedApplicationList';
270
276
  export * from './PaginatedAuthenticatedSessionList';
271
277
  export * from './PaginatedAuthenticatorDuoStageList';
278
+ export * from './PaginatedAuthenticatorEmailStageList';
272
279
  export * from './PaginatedAuthenticatorEndpointGDTCStageList';
273
280
  export * from './PaginatedAuthenticatorSMSStageList';
274
281
  export * from './PaginatedAuthenticatorStaticStageList';
@@ -287,6 +294,7 @@ export * from './PaginatedDomainList';
287
294
  export * from './PaginatedDummyPolicyList';
288
295
  export * from './PaginatedDummyStageList';
289
296
  export * from './PaginatedDuoDeviceList';
297
+ export * from './PaginatedEmailDeviceList';
290
298
  export * from './PaginatedEmailStageList';
291
299
  export * from './PaginatedEndpointDeviceList';
292
300
  export * from './PaginatedEndpointList';
@@ -407,6 +415,7 @@ export * from './PasswordStageRequest';
407
415
  export * from './PatchedApplicationEntitlementRequest';
408
416
  export * from './PatchedApplicationRequest';
409
417
  export * from './PatchedAuthenticatorDuoStageRequest';
418
+ export * from './PatchedAuthenticatorEmailStageRequest';
410
419
  export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
411
420
  export * from './PatchedAuthenticatorSMSStageRequest';
412
421
  export * from './PatchedAuthenticatorStaticStageRequest';
@@ -425,6 +434,7 @@ export * from './PatchedDomainRequest';
425
434
  export * from './PatchedDummyPolicyRequest';
426
435
  export * from './PatchedDummyStageRequest';
427
436
  export * from './PatchedDuoDeviceRequest';
437
+ export * from './PatchedEmailDeviceRequest';
428
438
  export * from './PatchedEmailStageRequest';
429
439
  export * from './PatchedEndpointDeviceRequest';
430
440
  export * from './PatchedEndpointRequest';