@goauthentik/api 2025.10.0-rc1-1759234079 → 2025.10.0-rc1-1759846759
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.
- package/.openapi-generator/FILES +18 -0
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.d.ts.map +1 -1
- package/dist/apis/PropertymappingsApi.js +255 -0
- package/dist/apis/PropertymappingsApi.js.map +1 -1
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.d.ts.map +1 -1
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/RbacApi.js.map +1 -1
- package/dist/apis/SourcesApi.d.ts +293 -1
- package/dist/apis/SourcesApi.d.ts.map +1 -1
- package/dist/apis/SourcesApi.js +853 -42
- package/dist/apis/SourcesApi.js.map +1 -1
- package/dist/apis/TasksApi.d.ts +6 -0
- package/dist/apis/TasksApi.d.ts.map +1 -1
- package/dist/apis/TasksApi.js +6 -0
- package/dist/apis/TasksApi.js.map +1 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts.map +1 -1
- package/dist/esm/apis/PropertymappingsApi.js +255 -0
- package/dist/esm/apis/PropertymappingsApi.js.map +1 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.d.ts.map +1 -1
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/RbacApi.js.map +1 -1
- package/dist/esm/apis/SourcesApi.d.ts +293 -1
- package/dist/esm/apis/SourcesApi.d.ts.map +1 -1
- package/dist/esm/apis/SourcesApi.js +853 -42
- package/dist/esm/apis/SourcesApi.js.map +1 -1
- package/dist/esm/apis/TasksApi.d.ts +6 -0
- package/dist/esm/apis/TasksApi.d.ts.map +1 -1
- package/dist/esm/apis/TasksApi.js +6 -0
- package/dist/esm/apis/TasksApi.js.map +1 -1
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.d.ts.map +1 -1
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/AppEnum.js.map +1 -1
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.d.ts.map +1 -1
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/ChallengeTypes.js.map +1 -1
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts.map +1 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/FlowChallengeResponseRequest.js.map +1 -1
- package/dist/esm/models/GroupTelegramSourceConnection.d.ts +70 -0
- package/dist/esm/models/GroupTelegramSourceConnection.d.ts.map +1 -0
- package/dist/esm/models/GroupTelegramSourceConnection.js +72 -0
- package/dist/esm/models/GroupTelegramSourceConnection.js.map +1 -0
- package/dist/esm/models/GroupTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/esm/models/GroupTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/esm/models/GroupTelegramSourceConnectionRequest.js +59 -0
- package/dist/esm/models/GroupTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/esm/models/LastTaskStatusEnum.d.ts +3 -0
- package/dist/esm/models/LastTaskStatusEnum.d.ts.map +1 -1
- package/dist/esm/models/LastTaskStatusEnum.js +3 -0
- package/dist/esm/models/LastTaskStatusEnum.js.map +1 -1
- package/dist/esm/models/LoginChallengeTypes.d.ts +3 -0
- package/dist/esm/models/LoginChallengeTypes.d.ts.map +1 -1
- package/dist/esm/models/LoginChallengeTypes.js +5 -0
- package/dist/esm/models/LoginChallengeTypes.js.map +1 -1
- package/dist/esm/models/ModelEnum.d.ts +4 -0
- package/dist/esm/models/ModelEnum.d.ts.map +1 -1
- package/dist/esm/models/ModelEnum.js +4 -0
- package/dist/esm/models/ModelEnum.js.map +1 -1
- package/dist/esm/models/PaginatedGroupTelegramSourceConnectionList.d.ts +49 -0
- package/dist/esm/models/PaginatedGroupTelegramSourceConnectionList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedGroupTelegramSourceConnectionList.js +61 -0
- package/dist/esm/models/PaginatedGroupTelegramSourceConnectionList.js.map +1 -0
- package/dist/esm/models/PaginatedTelegramSourceList.d.ts +49 -0
- package/dist/esm/models/PaginatedTelegramSourceList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedTelegramSourceList.js +61 -0
- package/dist/esm/models/PaginatedTelegramSourceList.js.map +1 -0
- package/dist/esm/models/PaginatedTelegramSourcePropertyMappingList.d.ts +49 -0
- package/dist/esm/models/PaginatedTelegramSourcePropertyMappingList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedTelegramSourcePropertyMappingList.js +61 -0
- package/dist/esm/models/PaginatedTelegramSourcePropertyMappingList.js.map +1 -0
- package/dist/esm/models/PaginatedUserTelegramSourceConnectionList.d.ts +49 -0
- package/dist/esm/models/PaginatedUserTelegramSourceConnectionList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedUserTelegramSourceConnectionList.js +61 -0
- package/dist/esm/models/PaginatedUserTelegramSourceConnectionList.js.map +1 -0
- package/dist/esm/models/PatchedGroupTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/esm/models/PatchedGroupTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/esm/models/PatchedGroupTelegramSourceConnectionRequest.js +53 -0
- package/dist/esm/models/PatchedGroupTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/esm/models/PatchedTelegramSourcePropertyMappingRequest.d.ts +45 -0
- package/dist/esm/models/PatchedTelegramSourcePropertyMappingRequest.d.ts.map +1 -0
- package/dist/esm/models/PatchedTelegramSourcePropertyMappingRequest.js +53 -0
- package/dist/esm/models/PatchedTelegramSourcePropertyMappingRequest.js.map +1 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.d.ts +113 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.d.ts.map +1 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.js +77 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.js.map +1 -0
- package/dist/esm/models/PatchedUserTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/esm/models/PatchedUserTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/esm/models/PatchedUserTelegramSourceConnectionRequest.js +53 -0
- package/dist/esm/models/PatchedUserTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/esm/models/StateEnum.d.ts +3 -0
- package/dist/esm/models/StateEnum.d.ts.map +1 -1
- package/dist/esm/models/StateEnum.js +3 -0
- package/dist/esm/models/StateEnum.js.map +1 -1
- package/dist/esm/models/TaskAggregatedStatusEnum.d.ts +3 -0
- package/dist/esm/models/TaskAggregatedStatusEnum.d.ts.map +1 -1
- package/dist/esm/models/TaskAggregatedStatusEnum.js +3 -0
- package/dist/esm/models/TaskAggregatedStatusEnum.js.map +1 -1
- package/dist/esm/models/TelegramChallengeResponseRequest.d.ts +75 -0
- package/dist/esm/models/TelegramChallengeResponseRequest.d.ts.map +1 -0
- package/dist/esm/models/TelegramChallengeResponseRequest.js +69 -0
- package/dist/esm/models/TelegramChallengeResponseRequest.js.map +1 -0
- package/dist/esm/models/TelegramLoginChallenge.d.ts +61 -0
- package/dist/esm/models/TelegramLoginChallenge.d.ts.map +1 -0
- package/dist/esm/models/TelegramLoginChallenge.js +62 -0
- package/dist/esm/models/TelegramLoginChallenge.js.map +1 -0
- package/dist/esm/models/TelegramSource.d.ts +149 -0
- package/dist/esm/models/TelegramSource.d.ts.map +1 -0
- package/dist/esm/models/TelegramSource.js +104 -0
- package/dist/esm/models/TelegramSource.js.map +1 -0
- package/dist/esm/models/TelegramSourcePropertyMapping.d.ts +75 -0
- package/dist/esm/models/TelegramSourcePropertyMapping.d.ts.map +1 -0
- package/dist/esm/models/TelegramSourcePropertyMapping.js +72 -0
- package/dist/esm/models/TelegramSourcePropertyMapping.js.map +1 -0
- package/dist/esm/models/TelegramSourcePropertyMappingRequest.d.ts +45 -0
- package/dist/esm/models/TelegramSourcePropertyMappingRequest.d.ts.map +1 -0
- package/dist/esm/models/TelegramSourcePropertyMappingRequest.js +57 -0
- package/dist/esm/models/TelegramSourcePropertyMappingRequest.js.map +1 -0
- package/dist/esm/models/TelegramSourceRequest.d.ts +113 -0
- package/dist/esm/models/TelegramSourceRequest.d.ts.map +1 -0
- package/dist/esm/models/TelegramSourceRequest.js +87 -0
- package/dist/esm/models/TelegramSourceRequest.js.map +1 -0
- package/dist/esm/models/UserTelegramSourceConnection.d.ts +70 -0
- package/dist/esm/models/UserTelegramSourceConnection.d.ts.map +1 -0
- package/dist/esm/models/UserTelegramSourceConnection.js +72 -0
- package/dist/esm/models/UserTelegramSourceConnection.js.map +1 -0
- package/dist/esm/models/UserTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/esm/models/UserTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/esm/models/UserTelegramSourceConnectionRequest.js +59 -0
- package/dist/esm/models/UserTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.d.ts.map +1 -1
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/AppEnum.js.map +1 -1
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.d.ts.map +1 -1
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/ChallengeTypes.js.map +1 -1
- package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts.map +1 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/FlowChallengeResponseRequest.js.map +1 -1
- package/dist/models/GroupTelegramSourceConnection.d.ts +70 -0
- package/dist/models/GroupTelegramSourceConnection.d.ts.map +1 -0
- package/dist/models/GroupTelegramSourceConnection.js +72 -0
- package/dist/models/GroupTelegramSourceConnection.js.map +1 -0
- package/dist/models/GroupTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/models/GroupTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/models/GroupTelegramSourceConnectionRequest.js +59 -0
- package/dist/models/GroupTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/models/LastTaskStatusEnum.d.ts +3 -0
- package/dist/models/LastTaskStatusEnum.d.ts.map +1 -1
- package/dist/models/LastTaskStatusEnum.js +3 -0
- package/dist/models/LastTaskStatusEnum.js.map +1 -1
- package/dist/models/LoginChallengeTypes.d.ts +3 -0
- package/dist/models/LoginChallengeTypes.d.ts.map +1 -1
- package/dist/models/LoginChallengeTypes.js +5 -0
- package/dist/models/LoginChallengeTypes.js.map +1 -1
- package/dist/models/ModelEnum.d.ts +4 -0
- package/dist/models/ModelEnum.d.ts.map +1 -1
- package/dist/models/ModelEnum.js +4 -0
- package/dist/models/ModelEnum.js.map +1 -1
- package/dist/models/PaginatedGroupTelegramSourceConnectionList.d.ts +49 -0
- package/dist/models/PaginatedGroupTelegramSourceConnectionList.d.ts.map +1 -0
- package/dist/models/PaginatedGroupTelegramSourceConnectionList.js +61 -0
- package/dist/models/PaginatedGroupTelegramSourceConnectionList.js.map +1 -0
- package/dist/models/PaginatedTelegramSourceList.d.ts +49 -0
- package/dist/models/PaginatedTelegramSourceList.d.ts.map +1 -0
- package/dist/models/PaginatedTelegramSourceList.js +61 -0
- package/dist/models/PaginatedTelegramSourceList.js.map +1 -0
- package/dist/models/PaginatedTelegramSourcePropertyMappingList.d.ts +49 -0
- package/dist/models/PaginatedTelegramSourcePropertyMappingList.d.ts.map +1 -0
- package/dist/models/PaginatedTelegramSourcePropertyMappingList.js +61 -0
- package/dist/models/PaginatedTelegramSourcePropertyMappingList.js.map +1 -0
- package/dist/models/PaginatedUserTelegramSourceConnectionList.d.ts +49 -0
- package/dist/models/PaginatedUserTelegramSourceConnectionList.d.ts.map +1 -0
- package/dist/models/PaginatedUserTelegramSourceConnectionList.js +61 -0
- package/dist/models/PaginatedUserTelegramSourceConnectionList.js.map +1 -0
- package/dist/models/PatchedGroupTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/models/PatchedGroupTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/models/PatchedGroupTelegramSourceConnectionRequest.js +53 -0
- package/dist/models/PatchedGroupTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/models/PatchedTelegramSourcePropertyMappingRequest.d.ts +45 -0
- package/dist/models/PatchedTelegramSourcePropertyMappingRequest.d.ts.map +1 -0
- package/dist/models/PatchedTelegramSourcePropertyMappingRequest.js +53 -0
- package/dist/models/PatchedTelegramSourcePropertyMappingRequest.js.map +1 -0
- package/dist/models/PatchedTelegramSourceRequest.d.ts +113 -0
- package/dist/models/PatchedTelegramSourceRequest.d.ts.map +1 -0
- package/dist/models/PatchedTelegramSourceRequest.js +77 -0
- package/dist/models/PatchedTelegramSourceRequest.js.map +1 -0
- package/dist/models/PatchedUserTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/models/PatchedUserTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/models/PatchedUserTelegramSourceConnectionRequest.js +53 -0
- package/dist/models/PatchedUserTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/models/StateEnum.d.ts +3 -0
- package/dist/models/StateEnum.d.ts.map +1 -1
- package/dist/models/StateEnum.js +3 -0
- package/dist/models/StateEnum.js.map +1 -1
- package/dist/models/TaskAggregatedStatusEnum.d.ts +3 -0
- package/dist/models/TaskAggregatedStatusEnum.d.ts.map +1 -1
- package/dist/models/TaskAggregatedStatusEnum.js +3 -0
- package/dist/models/TaskAggregatedStatusEnum.js.map +1 -1
- package/dist/models/TelegramChallengeResponseRequest.d.ts +75 -0
- package/dist/models/TelegramChallengeResponseRequest.d.ts.map +1 -0
- package/dist/models/TelegramChallengeResponseRequest.js +69 -0
- package/dist/models/TelegramChallengeResponseRequest.js.map +1 -0
- package/dist/models/TelegramLoginChallenge.d.ts +61 -0
- package/dist/models/TelegramLoginChallenge.d.ts.map +1 -0
- package/dist/models/TelegramLoginChallenge.js +62 -0
- package/dist/models/TelegramLoginChallenge.js.map +1 -0
- package/dist/models/TelegramSource.d.ts +149 -0
- package/dist/models/TelegramSource.d.ts.map +1 -0
- package/dist/models/TelegramSource.js +104 -0
- package/dist/models/TelegramSource.js.map +1 -0
- package/dist/models/TelegramSourcePropertyMapping.d.ts +75 -0
- package/dist/models/TelegramSourcePropertyMapping.d.ts.map +1 -0
- package/dist/models/TelegramSourcePropertyMapping.js +72 -0
- package/dist/models/TelegramSourcePropertyMapping.js.map +1 -0
- package/dist/models/TelegramSourcePropertyMappingRequest.d.ts +45 -0
- package/dist/models/TelegramSourcePropertyMappingRequest.d.ts.map +1 -0
- package/dist/models/TelegramSourcePropertyMappingRequest.js +57 -0
- package/dist/models/TelegramSourcePropertyMappingRequest.js.map +1 -0
- package/dist/models/TelegramSourceRequest.d.ts +113 -0
- package/dist/models/TelegramSourceRequest.d.ts.map +1 -0
- package/dist/models/TelegramSourceRequest.js +87 -0
- package/dist/models/TelegramSourceRequest.js.map +1 -0
- package/dist/models/UserTelegramSourceConnection.d.ts +70 -0
- package/dist/models/UserTelegramSourceConnection.d.ts.map +1 -0
- package/dist/models/UserTelegramSourceConnection.js +72 -0
- package/dist/models/UserTelegramSourceConnection.js.map +1 -0
- package/dist/models/UserTelegramSourceConnectionRequest.d.ts +45 -0
- package/dist/models/UserTelegramSourceConnectionRequest.d.ts.map +1 -0
- package/dist/models/UserTelegramSourceConnectionRequest.js +59 -0
- package/dist/models/UserTelegramSourceConnectionRequest.js.map +1 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +397 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +2484 -1232
- package/src/apis/TasksApi.ts +6 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/ChallengeTypes.ts +12 -1
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/GroupTelegramSourceConnection.ts +124 -0
- package/src/models/GroupTelegramSourceConnectionRequest.ts +84 -0
- package/src/models/LastTaskStatusEnum.ts +3 -0
- package/src/models/LoginChallengeTypes.ts +12 -1
- package/src/models/ModelEnum.ts +4 -0
- package/src/models/PaginatedGroupTelegramSourceConnectionList.ts +99 -0
- package/src/models/PaginatedTelegramSourceList.ts +99 -0
- package/src/models/PaginatedTelegramSourcePropertyMappingList.ts +99 -0
- package/src/models/PaginatedUserTelegramSourceConnectionList.ts +99 -0
- package/src/models/PatchedGroupTelegramSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedTelegramSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedTelegramSourceRequest.ts +186 -0
- package/src/models/PatchedUserTelegramSourceConnectionRequest.ts +81 -0
- package/src/models/StateEnum.ts +3 -0
- package/src/models/TaskAggregatedStatusEnum.ts +3 -0
- package/src/models/TelegramChallengeResponseRequest.ts +124 -0
- package/src/models/TelegramLoginChallenge.ts +114 -0
- package/src/models/TelegramSource.ts +238 -0
- package/src/models/TelegramSourcePropertyMapping.ts +123 -0
- package/src/models/TelegramSourcePropertyMappingRequest.ts +83 -0
- package/src/models/TelegramSourceRequest.ts +191 -0
- package/src/models/UserTelegramSourceConnection.ts +124 -0
- package/src/models/UserTelegramSourceConnectionRequest.ts +84 -0
- package/src/models/index.ts +18 -0
- package/tsconfig.tsbuildinfo +1 -1
package/src/apis/TasksApi.ts
CHANGED
|
@@ -583,8 +583,11 @@ export const TasksTasksListAggregatedStatusEnum = {
|
|
|
583
583
|
Done: 'done',
|
|
584
584
|
Error: 'error',
|
|
585
585
|
Info: 'info',
|
|
586
|
+
Postprocess: 'postprocess',
|
|
587
|
+
Preprocess: 'preprocess',
|
|
586
588
|
Queued: 'queued',
|
|
587
589
|
Rejected: 'rejected',
|
|
590
|
+
Running: 'running',
|
|
588
591
|
Warning: 'warning',
|
|
589
592
|
UnknownDefaultOpenApi: '11184809'
|
|
590
593
|
} as const;
|
|
@@ -595,8 +598,11 @@ export type TasksTasksListAggregatedStatusEnum = typeof TasksTasksListAggregated
|
|
|
595
598
|
export const TasksTasksListStateEnum = {
|
|
596
599
|
Consumed: 'consumed',
|
|
597
600
|
Done: 'done',
|
|
601
|
+
Postprocess: 'postprocess',
|
|
602
|
+
Preprocess: 'preprocess',
|
|
598
603
|
Queued: 'queued',
|
|
599
604
|
Rejected: 'rejected',
|
|
605
|
+
Running: 'running',
|
|
600
606
|
UnknownDefaultOpenApi: '11184809'
|
|
601
607
|
} as const;
|
|
602
608
|
export type TasksTasksListStateEnum = typeof TasksTasksListStateEnum[keyof typeof TasksTasksListStateEnum];
|
package/src/models/AppEnum.ts
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const AppEnum = {
|
|
21
|
+
AuthentikCommands: 'authentik.commands',
|
|
21
22
|
AuthentikTenants: 'authentik.tenants',
|
|
22
23
|
AuthentikTasks: 'authentik.tasks',
|
|
23
24
|
AuthentikAdmin: 'authentik.admin',
|
|
@@ -51,6 +52,7 @@ export const AppEnum = {
|
|
|
51
52
|
AuthentikSourcesPlex: 'authentik.sources.plex',
|
|
52
53
|
AuthentikSourcesSaml: 'authentik.sources.saml',
|
|
53
54
|
AuthentikSourcesScim: 'authentik.sources.scim',
|
|
55
|
+
AuthentikSourcesTelegram: 'authentik.sources.telegram',
|
|
54
56
|
AuthentikStagesAuthenticator: 'authentik.stages.authenticator',
|
|
55
57
|
AuthentikStagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
|
|
56
58
|
AuthentikStagesAuthenticatorEmail: 'authentik.stages.authenticator_email',
|
|
@@ -187,6 +187,13 @@ import {
|
|
|
187
187
|
ShellChallengeFromJSONTyped,
|
|
188
188
|
ShellChallengeToJSON,
|
|
189
189
|
} from './ShellChallenge';
|
|
190
|
+
import type { TelegramLoginChallenge } from './TelegramLoginChallenge';
|
|
191
|
+
import {
|
|
192
|
+
instanceOfTelegramLoginChallenge,
|
|
193
|
+
TelegramLoginChallengeFromJSON,
|
|
194
|
+
TelegramLoginChallengeFromJSONTyped,
|
|
195
|
+
TelegramLoginChallengeToJSON,
|
|
196
|
+
} from './TelegramLoginChallenge';
|
|
190
197
|
import type { UserLoginChallenge } from './UserLoginChallenge';
|
|
191
198
|
import {
|
|
192
199
|
instanceOfUserLoginChallenge,
|
|
@@ -200,7 +207,7 @@ import {
|
|
|
200
207
|
*
|
|
201
208
|
* @export
|
|
202
209
|
*/
|
|
203
|
-
export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-frame' } & FrameChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
210
|
+
export type ChallengeTypes = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallenge | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallenge | { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-source-telegram' } & TelegramLoginChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-flow-error' } & FlowErrorChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'ak-stage-session-end' } & SessionEndChallenge | { component: 'ak-stage-user-login' } & UserLoginChallenge | { component: 'xak-flow-frame' } & FrameChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
204
211
|
|
|
205
212
|
export function ChallengeTypesFromJSON(json: any): ChallengeTypes {
|
|
206
213
|
return ChallengeTypesFromJSONTyped(json, false);
|
|
@@ -219,6 +226,8 @@ export function ChallengeTypesFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
219
226
|
return Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true), { component: 'ak-source-oauth-apple' } as const);
|
|
220
227
|
case 'ak-source-plex':
|
|
221
228
|
return Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true), { component: 'ak-source-plex' } as const);
|
|
229
|
+
case 'ak-source-telegram':
|
|
230
|
+
return Object.assign({}, TelegramLoginChallengeFromJSONTyped(json, true), { component: 'ak-source-telegram' } as const);
|
|
222
231
|
case 'ak-stage-access-denied':
|
|
223
232
|
return Object.assign({}, AccessDeniedChallengeFromJSONTyped(json, true), { component: 'ak-stage-access-denied' } as const);
|
|
224
233
|
case 'ak-stage-authenticator-duo':
|
|
@@ -285,6 +294,8 @@ export function ChallengeTypesToJSONTyped(value?: ChallengeTypes | null, ignoreD
|
|
|
285
294
|
return Object.assign({}, AppleLoginChallengeToJSON(value), { component: 'ak-source-oauth-apple' } as const);
|
|
286
295
|
case 'ak-source-plex':
|
|
287
296
|
return Object.assign({}, PlexAuthenticationChallengeToJSON(value), { component: 'ak-source-plex' } as const);
|
|
297
|
+
case 'ak-source-telegram':
|
|
298
|
+
return Object.assign({}, TelegramLoginChallengeToJSON(value), { component: 'ak-source-telegram' } as const);
|
|
288
299
|
case 'ak-stage-access-denied':
|
|
289
300
|
return Object.assign({}, AccessDeniedChallengeToJSON(value), { component: 'ak-stage-access-denied' } as const);
|
|
290
301
|
case 'ak-stage-authenticator-duo':
|
|
@@ -159,6 +159,13 @@ import {
|
|
|
159
159
|
RedirectChallengeResponseRequestFromJSONTyped,
|
|
160
160
|
RedirectChallengeResponseRequestToJSON,
|
|
161
161
|
} from './RedirectChallengeResponseRequest';
|
|
162
|
+
import type { TelegramChallengeResponseRequest } from './TelegramChallengeResponseRequest';
|
|
163
|
+
import {
|
|
164
|
+
instanceOfTelegramChallengeResponseRequest,
|
|
165
|
+
TelegramChallengeResponseRequestFromJSON,
|
|
166
|
+
TelegramChallengeResponseRequestFromJSONTyped,
|
|
167
|
+
TelegramChallengeResponseRequestToJSON,
|
|
168
|
+
} from './TelegramChallengeResponseRequest';
|
|
162
169
|
import type { UserLoginChallengeResponseRequest } from './UserLoginChallengeResponseRequest';
|
|
163
170
|
import {
|
|
164
171
|
instanceOfUserLoginChallengeResponseRequest,
|
|
@@ -172,7 +179,7 @@ import {
|
|
|
172
179
|
*
|
|
173
180
|
* @export
|
|
174
181
|
*/
|
|
175
|
-
export type FlowChallengeResponseRequest = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallengeResponseRequest | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallengeResponseRequest | { component: 'ak-source-oauth-apple' } & AppleChallengeResponseRequest | { component: 'ak-source-plex' } & PlexAuthenticationChallengeResponseRequest | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallengeResponseRequest | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallengeResponseRequest | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallengeResponseRequest | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallengeResponseRequest | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallengeResponseRequest | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallengeResponseRequest | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallengeResponseRequest | { component: 'ak-stage-autosubmit' } & AutoSubmitChallengeResponseRequest | { component: 'ak-stage-captcha' } & CaptchaChallengeResponseRequest | { component: 'ak-stage-consent' } & ConsentChallengeResponseRequest | { component: 'ak-stage-dummy' } & DummyChallengeResponseRequest | { component: 'ak-stage-email' } & EmailChallengeResponseRequest | { component: 'ak-stage-identification' } & IdentificationChallengeResponseRequest | { component: 'ak-stage-password' } & PasswordChallengeResponseRequest | { component: 'ak-stage-prompt' } & PromptChallengeResponseRequest | { component: 'ak-stage-user-login' } & UserLoginChallengeResponseRequest | { component: 'xak-flow-frame' } & FrameChallengeResponseRequest | { component: 'xak-flow-redirect' } & RedirectChallengeResponseRequest;
|
|
182
|
+
export type FlowChallengeResponseRequest = { component: 'ak-provider-oauth2-device-code' } & OAuthDeviceCodeChallengeResponseRequest | { component: 'ak-provider-oauth2-device-code-finish' } & OAuthDeviceCodeFinishChallengeResponseRequest | { component: 'ak-source-oauth-apple' } & AppleChallengeResponseRequest | { component: 'ak-source-plex' } & PlexAuthenticationChallengeResponseRequest | { component: 'ak-source-telegram' } & TelegramChallengeResponseRequest | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallengeResponseRequest | { component: 'ak-stage-authenticator-email' } & AuthenticatorEmailChallengeResponseRequest | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallengeResponseRequest | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallengeResponseRequest | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallengeResponseRequest | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallengeResponseRequest | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallengeResponseRequest | { component: 'ak-stage-autosubmit' } & AutoSubmitChallengeResponseRequest | { component: 'ak-stage-captcha' } & CaptchaChallengeResponseRequest | { component: 'ak-stage-consent' } & ConsentChallengeResponseRequest | { component: 'ak-stage-dummy' } & DummyChallengeResponseRequest | { component: 'ak-stage-email' } & EmailChallengeResponseRequest | { component: 'ak-stage-identification' } & IdentificationChallengeResponseRequest | { component: 'ak-stage-password' } & PasswordChallengeResponseRequest | { component: 'ak-stage-prompt' } & PromptChallengeResponseRequest | { component: 'ak-stage-user-login' } & UserLoginChallengeResponseRequest | { component: 'xak-flow-frame' } & FrameChallengeResponseRequest | { component: 'xak-flow-redirect' } & RedirectChallengeResponseRequest;
|
|
176
183
|
|
|
177
184
|
export function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest {
|
|
178
185
|
return FlowChallengeResponseRequestFromJSONTyped(json, false);
|
|
@@ -191,6 +198,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
191
198
|
return Object.assign({}, AppleChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-source-oauth-apple' } as const);
|
|
192
199
|
case 'ak-source-plex':
|
|
193
200
|
return Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-source-plex' } as const);
|
|
201
|
+
case 'ak-source-telegram':
|
|
202
|
+
return Object.assign({}, TelegramChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-source-telegram' } as const);
|
|
194
203
|
case 'ak-stage-authenticator-duo':
|
|
195
204
|
return Object.assign({}, AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' } as const);
|
|
196
205
|
case 'ak-stage-authenticator-email':
|
|
@@ -249,6 +258,8 @@ export function FlowChallengeResponseRequestToJSONTyped(value?: FlowChallengeRes
|
|
|
249
258
|
return Object.assign({}, AppleChallengeResponseRequestToJSON(value), { component: 'ak-source-oauth-apple' } as const);
|
|
250
259
|
case 'ak-source-plex':
|
|
251
260
|
return Object.assign({}, PlexAuthenticationChallengeResponseRequestToJSON(value), { component: 'ak-source-plex' } as const);
|
|
261
|
+
case 'ak-source-telegram':
|
|
262
|
+
return Object.assign({}, TelegramChallengeResponseRequestToJSON(value), { component: 'ak-source-telegram' } as const);
|
|
252
263
|
case 'ak-stage-authenticator-duo':
|
|
253
264
|
return Object.assign({}, AuthenticatorDuoChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-duo' } as const);
|
|
254
265
|
case 'ak-stage-authenticator-email':
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.10.0-rc1
|
|
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
|
+
import type { Source } from './Source';
|
|
17
|
+
import {
|
|
18
|
+
SourceFromJSON,
|
|
19
|
+
SourceFromJSONTyped,
|
|
20
|
+
SourceToJSON,
|
|
21
|
+
SourceToJSONTyped,
|
|
22
|
+
} from './Source';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Group Source Connection
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GroupTelegramSourceConnection
|
|
28
|
+
*/
|
|
29
|
+
export interface GroupTelegramSourceConnection {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GroupTelegramSourceConnection
|
|
34
|
+
*/
|
|
35
|
+
readonly pk: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GroupTelegramSourceConnection
|
|
40
|
+
*/
|
|
41
|
+
group: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GroupTelegramSourceConnection
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Source}
|
|
51
|
+
* @memberof GroupTelegramSourceConnection
|
|
52
|
+
*/
|
|
53
|
+
readonly sourceObj: Source;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GroupTelegramSourceConnection
|
|
58
|
+
*/
|
|
59
|
+
identifier: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof GroupTelegramSourceConnection
|
|
64
|
+
*/
|
|
65
|
+
readonly created: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof GroupTelegramSourceConnection
|
|
70
|
+
*/
|
|
71
|
+
readonly lastUpdated: Date;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the GroupTelegramSourceConnection interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfGroupTelegramSourceConnection(value: object): value is GroupTelegramSourceConnection {
|
|
78
|
+
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
79
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
80
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
81
|
+
if (!('sourceObj' in value) || value['sourceObj'] === undefined) return false;
|
|
82
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
83
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
84
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GroupTelegramSourceConnectionFromJSON(json: any): GroupTelegramSourceConnection {
|
|
89
|
+
return GroupTelegramSourceConnectionFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GroupTelegramSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupTelegramSourceConnection {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'pk': json['pk'],
|
|
99
|
+
'group': json['group'],
|
|
100
|
+
'source': json['source'],
|
|
101
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
102
|
+
'identifier': json['identifier'],
|
|
103
|
+
'created': (new Date(json['created'])),
|
|
104
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GroupTelegramSourceConnectionToJSON(json: any): GroupTelegramSourceConnection {
|
|
109
|
+
return GroupTelegramSourceConnectionToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function GroupTelegramSourceConnectionToJSONTyped(value?: Omit<GroupTelegramSourceConnection, 'pk'|'source_obj'|'created'|'last_updated'> | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'group': value['group'],
|
|
120
|
+
'source': value['source'],
|
|
121
|
+
'identifier': value['identifier'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.10.0-rc1
|
|
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
|
+
* Group Source Connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupTelegramSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupTelegramSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupTelegramSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupTelegramSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupTelegramSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupTelegramSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupTelegramSourceConnectionRequest(value: object): value is GroupTelegramSourceConnectionRequest {
|
|
46
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
47
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
48
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GroupTelegramSourceConnectionRequestFromJSON(json: any): GroupTelegramSourceConnectionRequest {
|
|
53
|
+
return GroupTelegramSourceConnectionRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GroupTelegramSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupTelegramSourceConnectionRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'group': json['group'],
|
|
63
|
+
'source': json['source'],
|
|
64
|
+
'identifier': json['identifier'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GroupTelegramSourceConnectionRequestToJSON(json: any): GroupTelegramSourceConnectionRequest {
|
|
69
|
+
return GroupTelegramSourceConnectionRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GroupTelegramSourceConnectionRequestToJSONTyped(value?: GroupTelegramSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value['group'],
|
|
80
|
+
'source': value['source'],
|
|
81
|
+
'identifier': value['identifier'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -33,13 +33,20 @@ import {
|
|
|
33
33
|
RedirectChallengeFromJSONTyped,
|
|
34
34
|
RedirectChallengeToJSON,
|
|
35
35
|
} from './RedirectChallenge';
|
|
36
|
+
import type { TelegramLoginChallenge } from './TelegramLoginChallenge';
|
|
37
|
+
import {
|
|
38
|
+
instanceOfTelegramLoginChallenge,
|
|
39
|
+
TelegramLoginChallengeFromJSON,
|
|
40
|
+
TelegramLoginChallengeFromJSONTyped,
|
|
41
|
+
TelegramLoginChallengeToJSON,
|
|
42
|
+
} from './TelegramLoginChallenge';
|
|
36
43
|
|
|
37
44
|
/**
|
|
38
45
|
* @type LoginChallengeTypes
|
|
39
46
|
*
|
|
40
47
|
* @export
|
|
41
48
|
*/
|
|
42
|
-
export type LoginChallengeTypes = { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge;
|
|
49
|
+
export type LoginChallengeTypes = { component: 'ak-source-oauth-apple' } & AppleLoginChallenge | { component: 'ak-source-plex' } & PlexAuthenticationChallenge | { component: 'ak-source-telegram' } & TelegramLoginChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge;
|
|
43
50
|
|
|
44
51
|
export function LoginChallengeTypesFromJSON(json: any): LoginChallengeTypes {
|
|
45
52
|
return LoginChallengeTypesFromJSONTyped(json, false);
|
|
@@ -54,6 +61,8 @@ export function LoginChallengeTypesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
54
61
|
return Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true), { component: 'ak-source-oauth-apple' } as const);
|
|
55
62
|
case 'ak-source-plex':
|
|
56
63
|
return Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true), { component: 'ak-source-plex' } as const);
|
|
64
|
+
case 'ak-source-telegram':
|
|
65
|
+
return Object.assign({}, TelegramLoginChallengeFromJSONTyped(json, true), { component: 'ak-source-telegram' } as const);
|
|
57
66
|
case 'xak-flow-redirect':
|
|
58
67
|
return Object.assign({}, RedirectChallengeFromJSONTyped(json, true), { component: 'xak-flow-redirect' } as const);
|
|
59
68
|
default:
|
|
@@ -74,6 +83,8 @@ export function LoginChallengeTypesToJSONTyped(value?: LoginChallengeTypes | nul
|
|
|
74
83
|
return Object.assign({}, AppleLoginChallengeToJSON(value), { component: 'ak-source-oauth-apple' } as const);
|
|
75
84
|
case 'ak-source-plex':
|
|
76
85
|
return Object.assign({}, PlexAuthenticationChallengeToJSON(value), { component: 'ak-source-plex' } as const);
|
|
86
|
+
case 'ak-source-telegram':
|
|
87
|
+
return Object.assign({}, TelegramLoginChallengeToJSON(value), { component: 'ak-source-telegram' } as const);
|
|
77
88
|
case 'xak-flow-redirect':
|
|
78
89
|
return Object.assign({}, RedirectChallengeToJSON(value), { component: 'xak-flow-redirect' } as const);
|
|
79
90
|
default:
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -81,6 +81,10 @@ export const ModelEnum = {
|
|
|
81
81
|
AuthentikSourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
|
82
82
|
AuthentikSourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
|
83
83
|
AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
|
84
|
+
AuthentikSourcesTelegramTelegramsource: 'authentik_sources_telegram.telegramsource',
|
|
85
|
+
AuthentikSourcesTelegramTelegramsourcepropertymapping: 'authentik_sources_telegram.telegramsourcepropertymapping',
|
|
86
|
+
AuthentikSourcesTelegramUsertelegramsourceconnection: 'authentik_sources_telegram.usertelegramsourceconnection',
|
|
87
|
+
AuthentikSourcesTelegramGrouptelegramsourceconnection: 'authentik_sources_telegram.grouptelegramsourceconnection',
|
|
84
88
|
AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
|
85
89
|
AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
|
86
90
|
AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.10.0-rc1
|
|
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
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { GroupTelegramSourceConnection } from './GroupTelegramSourceConnection';
|
|
24
|
+
import {
|
|
25
|
+
GroupTelegramSourceConnectionFromJSON,
|
|
26
|
+
GroupTelegramSourceConnectionFromJSONTyped,
|
|
27
|
+
GroupTelegramSourceConnectionToJSON,
|
|
28
|
+
GroupTelegramSourceConnectionToJSONTyped,
|
|
29
|
+
} from './GroupTelegramSourceConnection';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedGroupTelegramSourceConnectionList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedGroupTelegramSourceConnectionList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedGroupTelegramSourceConnectionList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GroupTelegramSourceConnection>}
|
|
46
|
+
* @memberof PaginatedGroupTelegramSourceConnectionList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<GroupTelegramSourceConnection>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof PaginatedGroupTelegramSourceConnectionList
|
|
53
|
+
*/
|
|
54
|
+
autocomplete: { [key: string]: any; };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PaginatedGroupTelegramSourceConnectionList interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfPaginatedGroupTelegramSourceConnectionList(value: object): value is PaginatedGroupTelegramSourceConnectionList {
|
|
61
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
62
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
63
|
+
if (!('autocomplete' in value) || value['autocomplete'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedGroupTelegramSourceConnectionListFromJSON(json: any): PaginatedGroupTelegramSourceConnectionList {
|
|
68
|
+
return PaginatedGroupTelegramSourceConnectionListFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedGroupTelegramSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupTelegramSourceConnectionList {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
78
|
+
'results': ((json['results'] as Array<any>).map(GroupTelegramSourceConnectionFromJSON)),
|
|
79
|
+
'autocomplete': json['autocomplete'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PaginatedGroupTelegramSourceConnectionListToJSON(json: any): PaginatedGroupTelegramSourceConnectionList {
|
|
84
|
+
return PaginatedGroupTelegramSourceConnectionListToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PaginatedGroupTelegramSourceConnectionListToJSONTyped(value?: PaginatedGroupTelegramSourceConnectionList | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
95
|
+
'results': ((value['results'] as Array<any>).map(GroupTelegramSourceConnectionToJSON)),
|
|
96
|
+
'autocomplete': value['autocomplete'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.10.0-rc1
|
|
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
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { TelegramSource } from './TelegramSource';
|
|
24
|
+
import {
|
|
25
|
+
TelegramSourceFromJSON,
|
|
26
|
+
TelegramSourceFromJSONTyped,
|
|
27
|
+
TelegramSourceToJSON,
|
|
28
|
+
TelegramSourceToJSONTyped,
|
|
29
|
+
} from './TelegramSource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedTelegramSourceList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedTelegramSourceList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedTelegramSourceList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<TelegramSource>}
|
|
46
|
+
* @memberof PaginatedTelegramSourceList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<TelegramSource>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof PaginatedTelegramSourceList
|
|
53
|
+
*/
|
|
54
|
+
autocomplete: { [key: string]: any; };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PaginatedTelegramSourceList interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfPaginatedTelegramSourceList(value: object): value is PaginatedTelegramSourceList {
|
|
61
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
62
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
63
|
+
if (!('autocomplete' in value) || value['autocomplete'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedTelegramSourceListFromJSON(json: any): PaginatedTelegramSourceList {
|
|
68
|
+
return PaginatedTelegramSourceListFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedTelegramSourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTelegramSourceList {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
78
|
+
'results': ((json['results'] as Array<any>).map(TelegramSourceFromJSON)),
|
|
79
|
+
'autocomplete': json['autocomplete'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PaginatedTelegramSourceListToJSON(json: any): PaginatedTelegramSourceList {
|
|
84
|
+
return PaginatedTelegramSourceListToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PaginatedTelegramSourceListToJSONTyped(value?: PaginatedTelegramSourceList | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
95
|
+
'results': ((value['results'] as Array<any>).map(TelegramSourceToJSON)),
|
|
96
|
+
'autocomplete': value['autocomplete'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|