@goauthentik/api 2023.10.4-1702989148 → 2023.10.4-1703166239
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 +2 -0
- package/dist/apis/ProvidersApi.d.ts +3 -3
- package/dist/apis/ProvidersApi.js +1 -1
- package/dist/esm/apis/ProvidersApi.d.ts +3 -3
- package/dist/esm/apis/ProvidersApi.js +2 -2
- package/dist/esm/models/AuthenticatedSession.d.ts +7 -0
- package/dist/esm/models/AuthenticatedSession.js +4 -0
- package/dist/esm/models/AuthenticatedSessionAsn.d.ts +43 -0
- package/dist/esm/models/AuthenticatedSessionAsn.js +49 -0
- package/dist/esm/models/AuthenticatedSessionGeoIp.d.ts +1 -1
- package/dist/esm/models/CapabilitiesEnum.d.ts +2 -0
- package/dist/esm/models/CapabilitiesEnum.js +2 -0
- package/dist/esm/models/Reputation.d.ts +6 -0
- package/dist/esm/models/Reputation.js +2 -0
- package/dist/esm/models/SCIMSyncStatus.d.ts +38 -0
- package/dist/esm/models/SCIMSyncStatus.js +44 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AuthenticatedSession.d.ts +7 -0
- package/dist/models/AuthenticatedSession.js +4 -0
- package/dist/models/AuthenticatedSessionAsn.d.ts +43 -0
- package/dist/models/AuthenticatedSessionAsn.js +56 -0
- package/dist/models/AuthenticatedSessionGeoIp.d.ts +1 -1
- package/dist/models/CapabilitiesEnum.d.ts +2 -0
- package/dist/models/CapabilitiesEnum.js +2 -0
- package/dist/models/Reputation.d.ts +6 -0
- package/dist/models/Reputation.js +2 -0
- package/dist/models/SCIMSyncStatus.d.ts +38 -0
- package/dist/models/SCIMSyncStatus.js +51 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +6 -6
- package/src/models/AuthenticatedSession.ts +15 -0
- package/src/models/AuthenticatedSessionAsn.ts +84 -0
- package/src/models/AuthenticatedSessionGeoIp.ts +1 -1
- package/src/models/CapabilitiesEnum.ts +2 -0
- package/src/models/Reputation.ts +8 -0
- package/src/models/SCIMSyncStatus.ts +80 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,6 +34,7 @@ src/models/AuthTypeEnum.ts
|
|
|
34
34
|
src/models/AuthenticateWebAuthnStage.ts
|
|
35
35
|
src/models/AuthenticateWebAuthnStageRequest.ts
|
|
36
36
|
src/models/AuthenticatedSession.ts
|
|
37
|
+
src/models/AuthenticatedSessionAsn.ts
|
|
37
38
|
src/models/AuthenticatedSessionGeoIp.ts
|
|
38
39
|
src/models/AuthenticatedSessionUserAgent.ts
|
|
39
40
|
src/models/AuthenticatedSessionUserAgentDevice.ts
|
|
@@ -444,6 +445,7 @@ src/models/SCIMMapping.ts
|
|
|
444
445
|
src/models/SCIMMappingRequest.ts
|
|
445
446
|
src/models/SCIMProvider.ts
|
|
446
447
|
src/models/SCIMProviderRequest.ts
|
|
448
|
+
src/models/SCIMSyncStatus.ts
|
|
447
449
|
src/models/SMSDevice.ts
|
|
448
450
|
src/models/SMSDeviceRequest.ts
|
|
449
451
|
src/models/ScopeMapping.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedRadiusProviderList, PaginatedSAMLProviderList, PaginatedSCIMProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedRadiusProviderRequest, PatchedSAMLProviderRequest, PatchedSCIMProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, RadiusProvider, RadiusProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, SCIMProvider, SCIMProviderRequest,
|
|
13
|
+
import type { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedRadiusProviderList, PaginatedSAMLProviderList, PaginatedSCIMProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedRadiusProviderRequest, PatchedSAMLProviderRequest, PatchedSCIMProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, RadiusProvider, RadiusProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, SCIMProvider, SCIMProviderRequest, SCIMSyncStatus, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface ProvidersAllDestroyRequest {
|
|
15
15
|
id: number;
|
|
16
16
|
}
|
|
@@ -681,11 +681,11 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
681
681
|
/**
|
|
682
682
|
* Get provider\'s sync status
|
|
683
683
|
*/
|
|
684
|
-
providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
684
|
+
providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSyncStatus>>;
|
|
685
685
|
/**
|
|
686
686
|
* Get provider\'s sync status
|
|
687
687
|
*/
|
|
688
|
-
providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
688
|
+
providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSyncStatus>;
|
|
689
689
|
/**
|
|
690
690
|
* SCIMProvider Viewset
|
|
691
691
|
*/
|
|
@@ -1946,7 +1946,7 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
|
1946
1946
|
headers: headerParameters,
|
|
1947
1947
|
query: queryParameters,
|
|
1948
1948
|
}, initOverrides);
|
|
1949
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.
|
|
1949
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SCIMSyncStatusFromJSON)(jsonValue));
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedRadiusProviderList, PaginatedSAMLProviderList, PaginatedSCIMProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedRadiusProviderRequest, PatchedSAMLProviderRequest, PatchedSCIMProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, RadiusProvider, RadiusProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, SCIMProvider, SCIMProviderRequest,
|
|
13
|
+
import type { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedRadiusProviderList, PaginatedSAMLProviderList, PaginatedSCIMProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedRadiusProviderRequest, PatchedSAMLProviderRequest, PatchedSCIMProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, RadiusProvider, RadiusProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, SCIMProvider, SCIMProviderRequest, SCIMSyncStatus, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface ProvidersAllDestroyRequest {
|
|
15
15
|
id: number;
|
|
16
16
|
}
|
|
@@ -681,11 +681,11 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
681
681
|
/**
|
|
682
682
|
* Get provider\'s sync status
|
|
683
683
|
*/
|
|
684
|
-
providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
684
|
+
providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSyncStatus>>;
|
|
685
685
|
/**
|
|
686
686
|
* Get provider\'s sync status
|
|
687
687
|
*/
|
|
688
|
-
providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
688
|
+
providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSyncStatus>;
|
|
689
689
|
/**
|
|
690
690
|
* SCIMProvider Viewset
|
|
691
691
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderListFromJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderRequestToJSON,
|
|
24
|
+
import { LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderListFromJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderRequestToJSON, SCIMSyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -1943,7 +1943,7 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
1943
1943
|
headers: headerParameters,
|
|
1944
1944
|
query: queryParameters,
|
|
1945
1945
|
}, initOverrides);
|
|
1946
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1946
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSyncStatusFromJSON(jsonValue));
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
1949
|
/**
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
|
|
12
13
|
import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
|
|
13
14
|
import type { AuthenticatedSessionUserAgent } from './AuthenticatedSessionUserAgent';
|
|
14
15
|
/**
|
|
@@ -41,6 +42,12 @@ export interface AuthenticatedSession {
|
|
|
41
42
|
* @memberof AuthenticatedSession
|
|
42
43
|
*/
|
|
43
44
|
geoIp: AuthenticatedSessionGeoIp | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {AuthenticatedSessionAsn}
|
|
48
|
+
* @memberof AuthenticatedSession
|
|
49
|
+
*/
|
|
50
|
+
asn: AuthenticatedSessionAsn | null;
|
|
44
51
|
/**
|
|
45
52
|
*
|
|
46
53
|
* @type {number}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
+
import { AuthenticatedSessionAsnFromJSON, AuthenticatedSessionAsnToJSON, } from './AuthenticatedSessionAsn';
|
|
15
16
|
import { AuthenticatedSessionGeoIpFromJSON, AuthenticatedSessionGeoIpToJSON, } from './AuthenticatedSessionGeoIp';
|
|
16
17
|
import { AuthenticatedSessionUserAgentFromJSON, AuthenticatedSessionUserAgentToJSON, } from './AuthenticatedSessionUserAgent';
|
|
17
18
|
/**
|
|
@@ -22,6 +23,7 @@ export function instanceOfAuthenticatedSession(value) {
|
|
|
22
23
|
isInstance = isInstance && "current" in value;
|
|
23
24
|
isInstance = isInstance && "userAgent" in value;
|
|
24
25
|
isInstance = isInstance && "geoIp" in value;
|
|
26
|
+
isInstance = isInstance && "asn" in value;
|
|
25
27
|
isInstance = isInstance && "user" in value;
|
|
26
28
|
isInstance = isInstance && "lastIp" in value;
|
|
27
29
|
isInstance = isInstance && "lastUsed" in value;
|
|
@@ -39,6 +41,7 @@ export function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'current': json['current'],
|
|
40
42
|
'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),
|
|
41
43
|
'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),
|
|
44
|
+
'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
|
|
42
45
|
'user': json['user'],
|
|
43
46
|
'lastIp': json['last_ip'],
|
|
44
47
|
'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],
|
|
@@ -57,6 +60,7 @@ export function AuthenticatedSessionToJSON(value) {
|
|
|
57
60
|
'uuid': value.uuid,
|
|
58
61
|
'user_agent': AuthenticatedSessionUserAgentToJSON(value.userAgent),
|
|
59
62
|
'geo_ip': AuthenticatedSessionGeoIpToJSON(value.geoIp),
|
|
63
|
+
'asn': AuthenticatedSessionAsnToJSON(value.asn),
|
|
60
64
|
'user': value.user,
|
|
61
65
|
'last_ip': value.lastIp,
|
|
62
66
|
'last_user_agent': value.lastUserAgent,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Get ASN Data
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatedSessionAsn
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatedSessionAsn {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthenticatedSessionAsn
|
|
22
|
+
*/
|
|
23
|
+
asn: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatedSessionAsn
|
|
28
|
+
*/
|
|
29
|
+
asOrg: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticatedSessionAsn
|
|
34
|
+
*/
|
|
35
|
+
network: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AuthenticatedSessionAsn interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAuthenticatedSessionAsn(value: object): boolean;
|
|
41
|
+
export declare function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn;
|
|
42
|
+
export declare function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn;
|
|
43
|
+
export declare function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
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
|
+
* Check if a given object implements the AuthenticatedSessionAsn interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAuthenticatedSessionAsn(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "asn" in value;
|
|
20
|
+
isInstance = isInstance && "asOrg" in value;
|
|
21
|
+
isInstance = isInstance && "network" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function AuthenticatedSessionAsnFromJSON(json) {
|
|
25
|
+
return AuthenticatedSessionAsnFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'asn': json['asn'],
|
|
33
|
+
'asOrg': json['as_org'],
|
|
34
|
+
'network': json['network'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AuthenticatedSessionAsnToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'asn': value.asn,
|
|
46
|
+
'as_org': value.asOrg,
|
|
47
|
+
'network': value.network,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* * `can_save_media` - Can Save Media
|
|
14
14
|
* * `can_geo_ip` - Can Geo Ip
|
|
15
|
+
* * `can_asn` - Can Asn
|
|
15
16
|
* * `can_impersonate` - Can Impersonate
|
|
16
17
|
* * `can_debug` - Can Debug
|
|
17
18
|
* * `is_enterprise` - Is Enterprise
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
export declare const CapabilitiesEnum: {
|
|
21
22
|
readonly CanSaveMedia: "can_save_media";
|
|
22
23
|
readonly CanGeoIp: "can_geo_ip";
|
|
24
|
+
readonly CanAsn: "can_asn";
|
|
23
25
|
readonly CanImpersonate: "can_impersonate";
|
|
24
26
|
readonly CanDebug: "can_debug";
|
|
25
27
|
readonly IsEnterprise: "is_enterprise";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* * `can_save_media` - Can Save Media
|
|
16
16
|
* * `can_geo_ip` - Can Geo Ip
|
|
17
|
+
* * `can_asn` - Can Asn
|
|
17
18
|
* * `can_impersonate` - Can Impersonate
|
|
18
19
|
* * `can_debug` - Can Debug
|
|
19
20
|
* * `is_enterprise` - Is Enterprise
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
export const CapabilitiesEnum = {
|
|
23
24
|
CanSaveMedia: 'can_save_media',
|
|
24
25
|
CanGeoIp: 'can_geo_ip',
|
|
26
|
+
CanAsn: 'can_asn',
|
|
25
27
|
CanImpersonate: 'can_impersonate',
|
|
26
28
|
CanDebug: 'can_debug',
|
|
27
29
|
IsEnterprise: 'is_enterprise',
|
|
@@ -34,6 +34,7 @@ export function ReputationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'identifier': json['identifier'],
|
|
35
35
|
'ip': json['ip'],
|
|
36
36
|
'ipGeoData': !exists(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
|
|
37
|
+
'ipAsnData': !exists(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
|
|
37
38
|
'score': !exists(json, 'score') ? undefined : json['score'],
|
|
38
39
|
'updated': (new Date(json['updated'])),
|
|
39
40
|
};
|
|
@@ -50,6 +51,7 @@ export function ReputationToJSON(value) {
|
|
|
50
51
|
'identifier': value.identifier,
|
|
51
52
|
'ip': value.ip,
|
|
52
53
|
'ip_geo_data': value.ipGeoData,
|
|
54
|
+
'ip_asn_data': value.ipAsnData,
|
|
53
55
|
'score': value.score,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Task } from './Task';
|
|
13
|
+
/**
|
|
14
|
+
* SCIM Provider sync status
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SCIMSyncStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface SCIMSyncStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof SCIMSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
readonly isRunning: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Task>}
|
|
28
|
+
* @memberof SCIMSyncStatus
|
|
29
|
+
*/
|
|
30
|
+
readonly tasks: Array<Task>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SCIMSyncStatus interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSCIMSyncStatus(value: object): boolean;
|
|
36
|
+
export declare function SCIMSyncStatusFromJSON(json: any): SCIMSyncStatus;
|
|
37
|
+
export declare function SCIMSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSyncStatus;
|
|
38
|
+
export declare function SCIMSyncStatusToJSON(value?: SCIMSyncStatus | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
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
|
+
import { TaskFromJSON, } from './Task';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SCIMSyncStatus interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSCIMSyncStatus(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "isRunning" in value;
|
|
21
|
+
isInstance = isInstance && "tasks" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function SCIMSyncStatusFromJSON(json) {
|
|
25
|
+
return SCIMSyncStatusFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SCIMSyncStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'isRunning': json['is_running'],
|
|
33
|
+
'tasks': (json['tasks'].map(TaskFromJSON)),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SCIMSyncStatusToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from './AuthTypeEnum';
|
|
|
9
9
|
export * from './AuthenticateWebAuthnStage';
|
|
10
10
|
export * from './AuthenticateWebAuthnStageRequest';
|
|
11
11
|
export * from './AuthenticatedSession';
|
|
12
|
+
export * from './AuthenticatedSessionAsn';
|
|
12
13
|
export * from './AuthenticatedSessionGeoIp';
|
|
13
14
|
export * from './AuthenticatedSessionUserAgent';
|
|
14
15
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
@@ -419,6 +420,7 @@ export * from './SCIMMapping';
|
|
|
419
420
|
export * from './SCIMMappingRequest';
|
|
420
421
|
export * from './SCIMProvider';
|
|
421
422
|
export * from './SCIMProviderRequest';
|
|
423
|
+
export * from './SCIMSyncStatus';
|
|
422
424
|
export * from './SMSDevice';
|
|
423
425
|
export * from './SMSDeviceRequest';
|
|
424
426
|
export * from './ScopeMapping';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './AuthTypeEnum';
|
|
|
11
11
|
export * from './AuthenticateWebAuthnStage';
|
|
12
12
|
export * from './AuthenticateWebAuthnStageRequest';
|
|
13
13
|
export * from './AuthenticatedSession';
|
|
14
|
+
export * from './AuthenticatedSessionAsn';
|
|
14
15
|
export * from './AuthenticatedSessionGeoIp';
|
|
15
16
|
export * from './AuthenticatedSessionUserAgent';
|
|
16
17
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
@@ -421,6 +422,7 @@ export * from './SCIMMapping';
|
|
|
421
422
|
export * from './SCIMMappingRequest';
|
|
422
423
|
export * from './SCIMProvider';
|
|
423
424
|
export * from './SCIMProviderRequest';
|
|
425
|
+
export * from './SCIMSyncStatus';
|
|
424
426
|
export * from './SMSDevice';
|
|
425
427
|
export * from './SMSDeviceRequest';
|
|
426
428
|
export * from './ScopeMapping';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
|
|
12
13
|
import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
|
|
13
14
|
import type { AuthenticatedSessionUserAgent } from './AuthenticatedSessionUserAgent';
|
|
14
15
|
/**
|
|
@@ -41,6 +42,12 @@ export interface AuthenticatedSession {
|
|
|
41
42
|
* @memberof AuthenticatedSession
|
|
42
43
|
*/
|
|
43
44
|
geoIp: AuthenticatedSessionGeoIp | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {AuthenticatedSessionAsn}
|
|
48
|
+
* @memberof AuthenticatedSession
|
|
49
|
+
*/
|
|
50
|
+
asn: AuthenticatedSessionAsn | null;
|
|
44
51
|
/**
|
|
45
52
|
*
|
|
46
53
|
* @type {number}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.AuthenticatedSessionToJSON = exports.AuthenticatedSessionFromJSONTyped = exports.AuthenticatedSessionFromJSON = exports.instanceOfAuthenticatedSession = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const AuthenticatedSessionAsn_1 = require("./AuthenticatedSessionAsn");
|
|
18
19
|
const AuthenticatedSessionGeoIp_1 = require("./AuthenticatedSessionGeoIp");
|
|
19
20
|
const AuthenticatedSessionUserAgent_1 = require("./AuthenticatedSessionUserAgent");
|
|
20
21
|
/**
|
|
@@ -25,6 +26,7 @@ function instanceOfAuthenticatedSession(value) {
|
|
|
25
26
|
isInstance = isInstance && "current" in value;
|
|
26
27
|
isInstance = isInstance && "userAgent" in value;
|
|
27
28
|
isInstance = isInstance && "geoIp" in value;
|
|
29
|
+
isInstance = isInstance && "asn" in value;
|
|
28
30
|
isInstance = isInstance && "user" in value;
|
|
29
31
|
isInstance = isInstance && "lastIp" in value;
|
|
30
32
|
isInstance = isInstance && "lastUsed" in value;
|
|
@@ -44,6 +46,7 @@ function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'current': json['current'],
|
|
45
47
|
'userAgent': (0, AuthenticatedSessionUserAgent_1.AuthenticatedSessionUserAgentFromJSON)(json['user_agent']),
|
|
46
48
|
'geoIp': (0, AuthenticatedSessionGeoIp_1.AuthenticatedSessionGeoIpFromJSON)(json['geo_ip']),
|
|
49
|
+
'asn': (0, AuthenticatedSessionAsn_1.AuthenticatedSessionAsnFromJSON)(json['asn']),
|
|
47
50
|
'user': json['user'],
|
|
48
51
|
'lastIp': json['last_ip'],
|
|
49
52
|
'lastUserAgent': !(0, runtime_1.exists)(json, 'last_user_agent') ? undefined : json['last_user_agent'],
|
|
@@ -63,6 +66,7 @@ function AuthenticatedSessionToJSON(value) {
|
|
|
63
66
|
'uuid': value.uuid,
|
|
64
67
|
'user_agent': (0, AuthenticatedSessionUserAgent_1.AuthenticatedSessionUserAgentToJSON)(value.userAgent),
|
|
65
68
|
'geo_ip': (0, AuthenticatedSessionGeoIp_1.AuthenticatedSessionGeoIpToJSON)(value.geoIp),
|
|
69
|
+
'asn': (0, AuthenticatedSessionAsn_1.AuthenticatedSessionAsnToJSON)(value.asn),
|
|
66
70
|
'user': value.user,
|
|
67
71
|
'last_ip': value.lastIp,
|
|
68
72
|
'last_user_agent': value.lastUserAgent,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Get ASN Data
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatedSessionAsn
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatedSessionAsn {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthenticatedSessionAsn
|
|
22
|
+
*/
|
|
23
|
+
asn: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatedSessionAsn
|
|
28
|
+
*/
|
|
29
|
+
asOrg: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthenticatedSessionAsn
|
|
34
|
+
*/
|
|
35
|
+
network: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AuthenticatedSessionAsn interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAuthenticatedSessionAsn(value: object): boolean;
|
|
41
|
+
export declare function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn;
|
|
42
|
+
export declare function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn;
|
|
43
|
+
export declare function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthenticatedSessionAsnToJSON = exports.AuthenticatedSessionAsnFromJSONTyped = exports.AuthenticatedSessionAsnFromJSON = exports.instanceOfAuthenticatedSessionAsn = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AuthenticatedSessionAsn interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAuthenticatedSessionAsn(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "asn" in value;
|
|
23
|
+
isInstance = isInstance && "asOrg" in value;
|
|
24
|
+
isInstance = isInstance && "network" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfAuthenticatedSessionAsn = instanceOfAuthenticatedSessionAsn;
|
|
28
|
+
function AuthenticatedSessionAsnFromJSON(json) {
|
|
29
|
+
return AuthenticatedSessionAsnFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.AuthenticatedSessionAsnFromJSON = AuthenticatedSessionAsnFromJSON;
|
|
32
|
+
function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'asn': json['asn'],
|
|
38
|
+
'asOrg': json['as_org'],
|
|
39
|
+
'network': json['network'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.AuthenticatedSessionAsnFromJSONTyped = AuthenticatedSessionAsnFromJSONTyped;
|
|
43
|
+
function AuthenticatedSessionAsnToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'asn': value.asn,
|
|
52
|
+
'as_org': value.asOrg,
|
|
53
|
+
'network': value.network,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.AuthenticatedSessionAsnToJSON = AuthenticatedSessionAsnToJSON;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* * `can_save_media` - Can Save Media
|
|
14
14
|
* * `can_geo_ip` - Can Geo Ip
|
|
15
|
+
* * `can_asn` - Can Asn
|
|
15
16
|
* * `can_impersonate` - Can Impersonate
|
|
16
17
|
* * `can_debug` - Can Debug
|
|
17
18
|
* * `is_enterprise` - Is Enterprise
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
export declare const CapabilitiesEnum: {
|
|
21
22
|
readonly CanSaveMedia: "can_save_media";
|
|
22
23
|
readonly CanGeoIp: "can_geo_ip";
|
|
24
|
+
readonly CanAsn: "can_asn";
|
|
23
25
|
readonly CanImpersonate: "can_impersonate";
|
|
24
26
|
readonly CanDebug: "can_debug";
|
|
25
27
|
readonly IsEnterprise: "is_enterprise";
|
|
@@ -17,6 +17,7 @@ exports.CapabilitiesEnumToJSON = exports.CapabilitiesEnumFromJSONTyped = exports
|
|
|
17
17
|
/**
|
|
18
18
|
* * `can_save_media` - Can Save Media
|
|
19
19
|
* * `can_geo_ip` - Can Geo Ip
|
|
20
|
+
* * `can_asn` - Can Asn
|
|
20
21
|
* * `can_impersonate` - Can Impersonate
|
|
21
22
|
* * `can_debug` - Can Debug
|
|
22
23
|
* * `is_enterprise` - Is Enterprise
|
|
@@ -25,6 +26,7 @@ exports.CapabilitiesEnumToJSON = exports.CapabilitiesEnumFromJSONTyped = exports
|
|
|
25
26
|
exports.CapabilitiesEnum = {
|
|
26
27
|
CanSaveMedia: 'can_save_media',
|
|
27
28
|
CanGeoIp: 'can_geo_ip',
|
|
29
|
+
CanAsn: 'can_asn',
|
|
28
30
|
CanImpersonate: 'can_impersonate',
|
|
29
31
|
CanDebug: 'can_debug',
|
|
30
32
|
IsEnterprise: 'is_enterprise',
|
|
@@ -39,6 +39,7 @@ function ReputationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'identifier': json['identifier'],
|
|
40
40
|
'ip': json['ip'],
|
|
41
41
|
'ipGeoData': !(0, runtime_1.exists)(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
|
|
42
|
+
'ipAsnData': !(0, runtime_1.exists)(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
|
|
42
43
|
'score': !(0, runtime_1.exists)(json, 'score') ? undefined : json['score'],
|
|
43
44
|
'updated': (new Date(json['updated'])),
|
|
44
45
|
};
|
|
@@ -56,6 +57,7 @@ function ReputationToJSON(value) {
|
|
|
56
57
|
'identifier': value.identifier,
|
|
57
58
|
'ip': value.ip,
|
|
58
59
|
'ip_geo_data': value.ipGeoData,
|
|
60
|
+
'ip_asn_data': value.ipAsnData,
|
|
59
61
|
'score': value.score,
|
|
60
62
|
};
|
|
61
63
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Task } from './Task';
|
|
13
|
+
/**
|
|
14
|
+
* SCIM Provider sync status
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SCIMSyncStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface SCIMSyncStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof SCIMSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
readonly isRunning: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Task>}
|
|
28
|
+
* @memberof SCIMSyncStatus
|
|
29
|
+
*/
|
|
30
|
+
readonly tasks: Array<Task>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SCIMSyncStatus interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSCIMSyncStatus(value: object): boolean;
|
|
36
|
+
export declare function SCIMSyncStatusFromJSON(json: any): SCIMSyncStatus;
|
|
37
|
+
export declare function SCIMSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSyncStatus;
|
|
38
|
+
export declare function SCIMSyncStatusToJSON(value?: SCIMSyncStatus | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SCIMSyncStatusToJSON = exports.SCIMSyncStatusFromJSONTyped = exports.SCIMSyncStatusFromJSON = exports.instanceOfSCIMSyncStatus = void 0;
|
|
17
|
+
const Task_1 = require("./Task");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SCIMSyncStatus interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSCIMSyncStatus(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "isRunning" in value;
|
|
24
|
+
isInstance = isInstance && "tasks" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfSCIMSyncStatus = instanceOfSCIMSyncStatus;
|
|
28
|
+
function SCIMSyncStatusFromJSON(json) {
|
|
29
|
+
return SCIMSyncStatusFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.SCIMSyncStatusFromJSON = SCIMSyncStatusFromJSON;
|
|
32
|
+
function SCIMSyncStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'isRunning': json['is_running'],
|
|
38
|
+
'tasks': (json['tasks'].map(Task_1.TaskFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.SCIMSyncStatusFromJSONTyped = SCIMSyncStatusFromJSONTyped;
|
|
42
|
+
function SCIMSyncStatusToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
exports.SCIMSyncStatusToJSON = SCIMSyncStatusToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './AuthTypeEnum';
|
|
|
9
9
|
export * from './AuthenticateWebAuthnStage';
|
|
10
10
|
export * from './AuthenticateWebAuthnStageRequest';
|
|
11
11
|
export * from './AuthenticatedSession';
|
|
12
|
+
export * from './AuthenticatedSessionAsn';
|
|
12
13
|
export * from './AuthenticatedSessionGeoIp';
|
|
13
14
|
export * from './AuthenticatedSessionUserAgent';
|
|
14
15
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
@@ -419,6 +420,7 @@ export * from './SCIMMapping';
|
|
|
419
420
|
export * from './SCIMMappingRequest';
|
|
420
421
|
export * from './SCIMProvider';
|
|
421
422
|
export * from './SCIMProviderRequest';
|
|
423
|
+
export * from './SCIMSyncStatus';
|
|
422
424
|
export * from './SMSDevice';
|
|
423
425
|
export * from './SMSDeviceRequest';
|
|
424
426
|
export * from './ScopeMapping';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./AuthTypeEnum"), exports);
|
|
|
27
27
|
__exportStar(require("./AuthenticateWebAuthnStage"), exports);
|
|
28
28
|
__exportStar(require("./AuthenticateWebAuthnStageRequest"), exports);
|
|
29
29
|
__exportStar(require("./AuthenticatedSession"), exports);
|
|
30
|
+
__exportStar(require("./AuthenticatedSessionAsn"), exports);
|
|
30
31
|
__exportStar(require("./AuthenticatedSessionGeoIp"), exports);
|
|
31
32
|
__exportStar(require("./AuthenticatedSessionUserAgent"), exports);
|
|
32
33
|
__exportStar(require("./AuthenticatedSessionUserAgentDevice"), exports);
|
|
@@ -437,6 +438,7 @@ __exportStar(require("./SCIMMapping"), exports);
|
|
|
437
438
|
__exportStar(require("./SCIMMappingRequest"), exports);
|
|
438
439
|
__exportStar(require("./SCIMProvider"), exports);
|
|
439
440
|
__exportStar(require("./SCIMProviderRequest"), exports);
|
|
441
|
+
__exportStar(require("./SCIMSyncStatus"), exports);
|
|
440
442
|
__exportStar(require("./SMSDevice"), exports);
|
|
441
443
|
__exportStar(require("./SMSDeviceRequest"), exports);
|
|
442
444
|
__exportStar(require("./ScopeMapping"), exports);
|
package/package.json
CHANGED
package/src/apis/ProvidersApi.ts
CHANGED
|
@@ -45,7 +45,7 @@ import type {
|
|
|
45
45
|
SAMLProviderRequest,
|
|
46
46
|
SCIMProvider,
|
|
47
47
|
SCIMProviderRequest,
|
|
48
|
-
|
|
48
|
+
SCIMSyncStatus,
|
|
49
49
|
TypeCreate,
|
|
50
50
|
UsedBy,
|
|
51
51
|
ValidationError,
|
|
@@ -111,8 +111,8 @@ import {
|
|
|
111
111
|
SCIMProviderToJSON,
|
|
112
112
|
SCIMProviderRequestFromJSON,
|
|
113
113
|
SCIMProviderRequestToJSON,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
SCIMSyncStatusFromJSON,
|
|
115
|
+
SCIMSyncStatusToJSON,
|
|
116
116
|
TypeCreateFromJSON,
|
|
117
117
|
TypeCreateToJSON,
|
|
118
118
|
UsedByFromJSON,
|
|
@@ -2612,7 +2612,7 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
2612
2612
|
/**
|
|
2613
2613
|
* Get provider\'s sync status
|
|
2614
2614
|
*/
|
|
2615
|
-
async providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2615
|
+
async providersScimSyncStatusRetrieveRaw(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSyncStatus>> {
|
|
2616
2616
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
2617
2617
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling providersScimSyncStatusRetrieve.');
|
|
2618
2618
|
}
|
|
@@ -2632,13 +2632,13 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
2632
2632
|
query: queryParameters,
|
|
2633
2633
|
}, initOverrides);
|
|
2634
2634
|
|
|
2635
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2635
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSyncStatusFromJSON(jsonValue));
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Get provider\'s sync status
|
|
2640
2640
|
*/
|
|
2641
|
-
async providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2641
|
+
async providersScimSyncStatusRetrieve(requestParameters: ProvidersScimSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSyncStatus> {
|
|
2642
2642
|
const response = await this.providersScimSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
|
2643
2643
|
return await response.value();
|
|
2644
2644
|
}
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
|
|
17
|
+
import {
|
|
18
|
+
AuthenticatedSessionAsnFromJSON,
|
|
19
|
+
AuthenticatedSessionAsnFromJSONTyped,
|
|
20
|
+
AuthenticatedSessionAsnToJSON,
|
|
21
|
+
} from './AuthenticatedSessionAsn';
|
|
16
22
|
import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
|
|
17
23
|
import {
|
|
18
24
|
AuthenticatedSessionGeoIpFromJSON,
|
|
@@ -56,6 +62,12 @@ export interface AuthenticatedSession {
|
|
|
56
62
|
* @memberof AuthenticatedSession
|
|
57
63
|
*/
|
|
58
64
|
geoIp: AuthenticatedSessionGeoIp | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {AuthenticatedSessionAsn}
|
|
68
|
+
* @memberof AuthenticatedSession
|
|
69
|
+
*/
|
|
70
|
+
asn: AuthenticatedSessionAsn | null;
|
|
59
71
|
/**
|
|
60
72
|
*
|
|
61
73
|
* @type {number}
|
|
@@ -96,6 +108,7 @@ export function instanceOfAuthenticatedSession(value: object): boolean {
|
|
|
96
108
|
isInstance = isInstance && "current" in value;
|
|
97
109
|
isInstance = isInstance && "userAgent" in value;
|
|
98
110
|
isInstance = isInstance && "geoIp" in value;
|
|
111
|
+
isInstance = isInstance && "asn" in value;
|
|
99
112
|
isInstance = isInstance && "user" in value;
|
|
100
113
|
isInstance = isInstance && "lastIp" in value;
|
|
101
114
|
isInstance = isInstance && "lastUsed" in value;
|
|
@@ -117,6 +130,7 @@ export function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
117
130
|
'current': json['current'],
|
|
118
131
|
'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),
|
|
119
132
|
'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),
|
|
133
|
+
'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
|
|
120
134
|
'user': json['user'],
|
|
121
135
|
'lastIp': json['last_ip'],
|
|
122
136
|
'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],
|
|
@@ -137,6 +151,7 @@ export function AuthenticatedSessionToJSON(value?: AuthenticatedSession | null):
|
|
|
137
151
|
'uuid': value.uuid,
|
|
138
152
|
'user_agent': AuthenticatedSessionUserAgentToJSON(value.userAgent),
|
|
139
153
|
'geo_ip': AuthenticatedSessionGeoIpToJSON(value.geoIp),
|
|
154
|
+
'asn': AuthenticatedSessionAsnToJSON(value.asn),
|
|
140
155
|
'user': value.user,
|
|
141
156
|
'last_ip': value.lastIp,
|
|
142
157
|
'last_user_agent': value.lastUserAgent,
|
|
@@ -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: 2023.10.4
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Get ASN Data
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuthenticatedSessionAsn
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthenticatedSessionAsn {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AuthenticatedSessionAsn
|
|
26
|
+
*/
|
|
27
|
+
asn: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthenticatedSessionAsn
|
|
32
|
+
*/
|
|
33
|
+
asOrg: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuthenticatedSessionAsn
|
|
38
|
+
*/
|
|
39
|
+
network: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AuthenticatedSessionAsn interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAuthenticatedSessionAsn(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "asn" in value;
|
|
48
|
+
isInstance = isInstance && "asOrg" in value;
|
|
49
|
+
isInstance = isInstance && "network" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn {
|
|
55
|
+
return AuthenticatedSessionAsnFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'asn': json['asn'],
|
|
65
|
+
'asOrg': json['as_org'],
|
|
66
|
+
'network': json['network'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'asn': value.asn,
|
|
80
|
+
'as_org': value.asOrg,
|
|
81
|
+
'network': value.network,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* * `can_save_media` - Can Save Media
|
|
18
18
|
* * `can_geo_ip` - Can Geo Ip
|
|
19
|
+
* * `can_asn` - Can Asn
|
|
19
20
|
* * `can_impersonate` - Can Impersonate
|
|
20
21
|
* * `can_debug` - Can Debug
|
|
21
22
|
* * `is_enterprise` - Is Enterprise
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
export const CapabilitiesEnum = {
|
|
25
26
|
CanSaveMedia: 'can_save_media',
|
|
26
27
|
CanGeoIp: 'can_geo_ip',
|
|
28
|
+
CanAsn: 'can_asn',
|
|
27
29
|
CanImpersonate: 'can_impersonate',
|
|
28
30
|
CanDebug: 'can_debug',
|
|
29
31
|
IsEnterprise: 'is_enterprise',
|
package/src/models/Reputation.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface Reputation {
|
|
|
43
43
|
* @memberof Reputation
|
|
44
44
|
*/
|
|
45
45
|
ipGeoData?: any | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {any}
|
|
49
|
+
* @memberof Reputation
|
|
50
|
+
*/
|
|
51
|
+
ipAsnData?: any | null;
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {number}
|
|
@@ -83,6 +89,7 @@ export function ReputationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
83
89
|
'identifier': json['identifier'],
|
|
84
90
|
'ip': json['ip'],
|
|
85
91
|
'ipGeoData': !exists(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
|
|
92
|
+
'ipAsnData': !exists(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
|
|
86
93
|
'score': !exists(json, 'score') ? undefined : json['score'],
|
|
87
94
|
'updated': (new Date(json['updated'])),
|
|
88
95
|
};
|
|
@@ -101,6 +108,7 @@ export function ReputationToJSON(value?: Reputation | null): any {
|
|
|
101
108
|
'identifier': value.identifier,
|
|
102
109
|
'ip': value.ip,
|
|
103
110
|
'ip_geo_data': value.ipGeoData,
|
|
111
|
+
'ip_asn_data': value.ipAsnData,
|
|
104
112
|
'score': value.score,
|
|
105
113
|
};
|
|
106
114
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.4
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Task } from './Task';
|
|
17
|
+
import {
|
|
18
|
+
TaskFromJSON,
|
|
19
|
+
TaskFromJSONTyped,
|
|
20
|
+
TaskToJSON,
|
|
21
|
+
} from './Task';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* SCIM Provider sync status
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SCIMSyncStatus
|
|
27
|
+
*/
|
|
28
|
+
export interface SCIMSyncStatus {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof SCIMSyncStatus
|
|
33
|
+
*/
|
|
34
|
+
readonly isRunning: boolean;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Task>}
|
|
38
|
+
* @memberof SCIMSyncStatus
|
|
39
|
+
*/
|
|
40
|
+
readonly tasks: Array<Task>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SCIMSyncStatus interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfSCIMSyncStatus(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "isRunning" in value;
|
|
49
|
+
isInstance = isInstance && "tasks" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SCIMSyncStatusFromJSON(json: any): SCIMSyncStatus {
|
|
55
|
+
return SCIMSyncStatusFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function SCIMSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSyncStatus {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'isRunning': json['is_running'],
|
|
65
|
+
'tasks': ((json['tasks'] as Array<any>).map(TaskFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SCIMSyncStatusToJSON(value?: SCIMSyncStatus | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './AuthTypeEnum';
|
|
|
11
11
|
export * from './AuthenticateWebAuthnStage';
|
|
12
12
|
export * from './AuthenticateWebAuthnStageRequest';
|
|
13
13
|
export * from './AuthenticatedSession';
|
|
14
|
+
export * from './AuthenticatedSessionAsn';
|
|
14
15
|
export * from './AuthenticatedSessionGeoIp';
|
|
15
16
|
export * from './AuthenticatedSessionUserAgent';
|
|
16
17
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
@@ -421,6 +422,7 @@ export * from './SCIMMapping';
|
|
|
421
422
|
export * from './SCIMMappingRequest';
|
|
422
423
|
export * from './SCIMProvider';
|
|
423
424
|
export * from './SCIMProviderRequest';
|
|
425
|
+
export * from './SCIMSyncStatus';
|
|
424
426
|
export * from './SMSDevice';
|
|
425
427
|
export * from './SMSDeviceRequest';
|
|
426
428
|
export * from './ScopeMapping';
|