@goauthentik/api 2025.10.0-rc1-1759234079 → 2025.10.0-rc1-1759331038
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/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/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.d.ts.map +1 -1
- package/dist/esm/models/AppEnum.js +1 -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/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/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 +1 -0
- package/dist/models/AppEnum.d.ts.map +1 -1
- package/dist/models/AppEnum.js +1 -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/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/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/models/AppEnum.ts +1 -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/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/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
|
@@ -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 { UserTelegramSourceConnection } from './UserTelegramSourceConnection';
|
|
24
|
+
import {
|
|
25
|
+
UserTelegramSourceConnectionFromJSON,
|
|
26
|
+
UserTelegramSourceConnectionFromJSONTyped,
|
|
27
|
+
UserTelegramSourceConnectionToJSON,
|
|
28
|
+
UserTelegramSourceConnectionToJSONTyped,
|
|
29
|
+
} from './UserTelegramSourceConnection';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedUserTelegramSourceConnectionList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedUserTelegramSourceConnectionList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedUserTelegramSourceConnectionList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<UserTelegramSourceConnection>}
|
|
46
|
+
* @memberof PaginatedUserTelegramSourceConnectionList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<UserTelegramSourceConnection>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof PaginatedUserTelegramSourceConnectionList
|
|
53
|
+
*/
|
|
54
|
+
autocomplete: { [key: string]: any; };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PaginatedUserTelegramSourceConnectionList interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfPaginatedUserTelegramSourceConnectionList(value: object): value is PaginatedUserTelegramSourceConnectionList {
|
|
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 PaginatedUserTelegramSourceConnectionListFromJSON(json: any): PaginatedUserTelegramSourceConnectionList {
|
|
68
|
+
return PaginatedUserTelegramSourceConnectionListFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedUserTelegramSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserTelegramSourceConnectionList {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
78
|
+
'results': ((json['results'] as Array<any>).map(UserTelegramSourceConnectionFromJSON)),
|
|
79
|
+
'autocomplete': json['autocomplete'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PaginatedUserTelegramSourceConnectionListToJSON(json: any): PaginatedUserTelegramSourceConnectionList {
|
|
84
|
+
return PaginatedUserTelegramSourceConnectionListToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PaginatedUserTelegramSourceConnectionListToJSONTyped(value?: PaginatedUserTelegramSourceConnectionList | 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(UserTelegramSourceConnectionToJSON)),
|
|
96
|
+
'autocomplete': value['autocomplete'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 PatchedGroupTelegramSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedGroupTelegramSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedGroupTelegramSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedGroupTelegramSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedGroupTelegramSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedGroupTelegramSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedGroupTelegramSourceConnectionRequest(value: object): value is PatchedGroupTelegramSourceConnectionRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedGroupTelegramSourceConnectionRequestFromJSON(json: any): PatchedGroupTelegramSourceConnectionRequest {
|
|
50
|
+
return PatchedGroupTelegramSourceConnectionRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedGroupTelegramSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupTelegramSourceConnectionRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
60
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
61
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedGroupTelegramSourceConnectionRequestToJSON(json: any): PatchedGroupTelegramSourceConnectionRequest {
|
|
66
|
+
return PatchedGroupTelegramSourceConnectionRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedGroupTelegramSourceConnectionRequestToJSONTyped(value?: PatchedGroupTelegramSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'group': value['group'],
|
|
77
|
+
'source': value['source'],
|
|
78
|
+
'identifier': value['identifier'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* TelegramSourcePropertyMapping Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedTelegramSourcePropertyMappingRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedTelegramSourcePropertyMappingRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedTelegramSourcePropertyMappingRequest
|
|
26
|
+
*/
|
|
27
|
+
managed?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedTelegramSourcePropertyMappingRequest
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedTelegramSourcePropertyMappingRequest
|
|
38
|
+
*/
|
|
39
|
+
expression?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedTelegramSourcePropertyMappingRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedTelegramSourcePropertyMappingRequest(value: object): value is PatchedTelegramSourcePropertyMappingRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedTelegramSourcePropertyMappingRequestFromJSON(json: any): PatchedTelegramSourcePropertyMappingRequest {
|
|
50
|
+
return PatchedTelegramSourcePropertyMappingRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedTelegramSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedTelegramSourcePropertyMappingRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'managed': json['managed'] == null ? undefined : json['managed'],
|
|
60
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
61
|
+
'expression': json['expression'] == null ? undefined : json['expression'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedTelegramSourcePropertyMappingRequestToJSON(json: any): PatchedTelegramSourcePropertyMappingRequest {
|
|
66
|
+
return PatchedTelegramSourcePropertyMappingRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedTelegramSourcePropertyMappingRequestToJSONTyped(value?: PatchedTelegramSourcePropertyMappingRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'managed': value['managed'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'expression': value['expression'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,186 @@
|
|
|
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 { PolicyEngineMode } from './PolicyEngineMode';
|
|
17
|
+
import {
|
|
18
|
+
PolicyEngineModeFromJSON,
|
|
19
|
+
PolicyEngineModeFromJSONTyped,
|
|
20
|
+
PolicyEngineModeToJSON,
|
|
21
|
+
PolicyEngineModeToJSONTyped,
|
|
22
|
+
} from './PolicyEngineMode';
|
|
23
|
+
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
|
24
|
+
import {
|
|
25
|
+
UserMatchingModeEnumFromJSON,
|
|
26
|
+
UserMatchingModeEnumFromJSONTyped,
|
|
27
|
+
UserMatchingModeEnumToJSON,
|
|
28
|
+
UserMatchingModeEnumToJSONTyped,
|
|
29
|
+
} from './UserMatchingModeEnum';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Source Serializer
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PatchedTelegramSourceRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface PatchedTelegramSourceRequest {
|
|
37
|
+
/**
|
|
38
|
+
* Source's display Name.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PatchedTelegramSourceRequest
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Internal source name, used in URLs.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PatchedTelegramSourceRequest
|
|
47
|
+
*/
|
|
48
|
+
slug?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof PatchedTelegramSourceRequest
|
|
53
|
+
*/
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Flow to use when authenticating existing users.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PatchedTelegramSourceRequest
|
|
59
|
+
*/
|
|
60
|
+
authenticationFlow?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Flow to use when enrolling new users.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PatchedTelegramSourceRequest
|
|
65
|
+
*/
|
|
66
|
+
enrollmentFlow?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof PatchedTelegramSourceRequest
|
|
71
|
+
*/
|
|
72
|
+
userPropertyMappings?: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof PatchedTelegramSourceRequest
|
|
77
|
+
*/
|
|
78
|
+
groupPropertyMappings?: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {PolicyEngineMode}
|
|
82
|
+
* @memberof PatchedTelegramSourceRequest
|
|
83
|
+
*/
|
|
84
|
+
policyEngineMode?: PolicyEngineMode;
|
|
85
|
+
/**
|
|
86
|
+
* How the source determines if an existing user should be authenticated or a new user enrolled.
|
|
87
|
+
* @type {UserMatchingModeEnum}
|
|
88
|
+
* @memberof PatchedTelegramSourceRequest
|
|
89
|
+
*/
|
|
90
|
+
userMatchingMode?: UserMatchingModeEnum;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof PatchedTelegramSourceRequest
|
|
95
|
+
*/
|
|
96
|
+
userPathTemplate?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Telegram bot username
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof PatchedTelegramSourceRequest
|
|
101
|
+
*/
|
|
102
|
+
botUsername?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Telegram bot token
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof PatchedTelegramSourceRequest
|
|
107
|
+
*/
|
|
108
|
+
botToken?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Request access to send messages from your bot.
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof PatchedTelegramSourceRequest
|
|
113
|
+
*/
|
|
114
|
+
requestMessageAccess?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Flow used before authentication.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof PatchedTelegramSourceRequest
|
|
119
|
+
*/
|
|
120
|
+
preAuthenticationFlow?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Check if a given object implements the PatchedTelegramSourceRequest interface.
|
|
127
|
+
*/
|
|
128
|
+
export function instanceOfPatchedTelegramSourceRequest(value: object): value is PatchedTelegramSourceRequest {
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function PatchedTelegramSourceRequestFromJSON(json: any): PatchedTelegramSourceRequest {
|
|
133
|
+
return PatchedTelegramSourceRequestFromJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function PatchedTelegramSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedTelegramSourceRequest {
|
|
137
|
+
if (json == null) {
|
|
138
|
+
return json;
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
143
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
144
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
145
|
+
'authenticationFlow': json['authentication_flow'] == null ? undefined : json['authentication_flow'],
|
|
146
|
+
'enrollmentFlow': json['enrollment_flow'] == null ? undefined : json['enrollment_flow'],
|
|
147
|
+
'userPropertyMappings': json['user_property_mappings'] == null ? undefined : json['user_property_mappings'],
|
|
148
|
+
'groupPropertyMappings': json['group_property_mappings'] == null ? undefined : json['group_property_mappings'],
|
|
149
|
+
'policyEngineMode': json['policy_engine_mode'] == null ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
150
|
+
'userMatchingMode': json['user_matching_mode'] == null ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
151
|
+
'userPathTemplate': json['user_path_template'] == null ? undefined : json['user_path_template'],
|
|
152
|
+
'botUsername': json['bot_username'] == null ? undefined : json['bot_username'],
|
|
153
|
+
'botToken': json['bot_token'] == null ? undefined : json['bot_token'],
|
|
154
|
+
'requestMessageAccess': json['request_message_access'] == null ? undefined : json['request_message_access'],
|
|
155
|
+
'preAuthenticationFlow': json['pre_authentication_flow'] == null ? undefined : json['pre_authentication_flow'],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function PatchedTelegramSourceRequestToJSON(json: any): PatchedTelegramSourceRequest {
|
|
160
|
+
return PatchedTelegramSourceRequestToJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function PatchedTelegramSourceRequestToJSONTyped(value?: PatchedTelegramSourceRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
+
if (value == null) {
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'name': value['name'],
|
|
171
|
+
'slug': value['slug'],
|
|
172
|
+
'enabled': value['enabled'],
|
|
173
|
+
'authentication_flow': value['authenticationFlow'],
|
|
174
|
+
'enrollment_flow': value['enrollmentFlow'],
|
|
175
|
+
'user_property_mappings': value['userPropertyMappings'],
|
|
176
|
+
'group_property_mappings': value['groupPropertyMappings'],
|
|
177
|
+
'policy_engine_mode': PolicyEngineModeToJSON(value['policyEngineMode']),
|
|
178
|
+
'user_matching_mode': UserMatchingModeEnumToJSON(value['userMatchingMode']),
|
|
179
|
+
'user_path_template': value['userPathTemplate'],
|
|
180
|
+
'bot_username': value['botUsername'],
|
|
181
|
+
'bot_token': value['botToken'],
|
|
182
|
+
'request_message_access': value['requestMessageAccess'],
|
|
183
|
+
'pre_authentication_flow': value['preAuthenticationFlow'],
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* User source connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedUserTelegramSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedUserTelegramSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserTelegramSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserTelegramSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedUserTelegramSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedUserTelegramSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedUserTelegramSourceConnectionRequest(value: object): value is PatchedUserTelegramSourceConnectionRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedUserTelegramSourceConnectionRequestFromJSON(json: any): PatchedUserTelegramSourceConnectionRequest {
|
|
50
|
+
return PatchedUserTelegramSourceConnectionRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedUserTelegramSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserTelegramSourceConnectionRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
60
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
61
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedUserTelegramSourceConnectionRequestToJSON(json: any): PatchedUserTelegramSourceConnectionRequest {
|
|
66
|
+
return PatchedUserTelegramSourceConnectionRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedUserTelegramSourceConnectionRequestToJSONTyped(value?: PatchedUserTelegramSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'user': value['user'],
|
|
77
|
+
'source': value['source'],
|
|
78
|
+
'identifier': value['identifier'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
* Base class for all challenge responses
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TelegramChallengeResponseRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface TelegramChallengeResponseRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TelegramChallengeResponseRequest
|
|
26
|
+
*/
|
|
27
|
+
component?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TelegramChallengeResponseRequest
|
|
32
|
+
*/
|
|
33
|
+
id: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TelegramChallengeResponseRequest
|
|
38
|
+
*/
|
|
39
|
+
firstName?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TelegramChallengeResponseRequest
|
|
44
|
+
*/
|
|
45
|
+
lastName?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TelegramChallengeResponseRequest
|
|
50
|
+
*/
|
|
51
|
+
username?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof TelegramChallengeResponseRequest
|
|
56
|
+
*/
|
|
57
|
+
photoUrl?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof TelegramChallengeResponseRequest
|
|
62
|
+
*/
|
|
63
|
+
authDate: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof TelegramChallengeResponseRequest
|
|
68
|
+
*/
|
|
69
|
+
hash: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the TelegramChallengeResponseRequest interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfTelegramChallengeResponseRequest(value: object): value is TelegramChallengeResponseRequest {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('authDate' in value) || value['authDate'] === undefined) return false;
|
|
78
|
+
if (!('hash' in value) || value['hash'] === undefined) return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function TelegramChallengeResponseRequestFromJSON(json: any): TelegramChallengeResponseRequest {
|
|
83
|
+
return TelegramChallengeResponseRequestFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function TelegramChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelegramChallengeResponseRequest {
|
|
87
|
+
if (json == null) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'component': json['component'] == null ? undefined : json['component'],
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
95
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
96
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
97
|
+
'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'],
|
|
98
|
+
'authDate': json['auth_date'],
|
|
99
|
+
'hash': json['hash'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function TelegramChallengeResponseRequestToJSON(json: any): TelegramChallengeResponseRequest {
|
|
104
|
+
return TelegramChallengeResponseRequestToJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function TelegramChallengeResponseRequestToJSONTyped(value?: TelegramChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'component': value['component'],
|
|
115
|
+
'id': value['id'],
|
|
116
|
+
'first_name': value['firstName'],
|
|
117
|
+
'last_name': value['lastName'],
|
|
118
|
+
'username': value['username'],
|
|
119
|
+
'photo_url': value['photoUrl'],
|
|
120
|
+
'auth_date': value['authDate'],
|
|
121
|
+
'hash': value['hash'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|