@goauthentik/api 2023.10.3-1699554078 → 2023.10.3-1699884123
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 +1 -0
- package/dist/apis/SourcesApi.d.ts +4 -4
- package/dist/apis/SourcesApi.js +5 -5
- package/dist/esm/apis/SourcesApi.d.ts +4 -4
- package/dist/esm/apis/SourcesApi.js +6 -6
- package/dist/esm/models/LDAPSource.d.ts +10 -0
- package/dist/esm/models/LDAPSource.js +2 -0
- package/dist/esm/models/LDAPSyncStatus.d.ts +38 -0
- package/dist/esm/models/LDAPSyncStatus.js +44 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LDAPSource.d.ts +10 -0
- package/dist/models/LDAPSource.js +2 -0
- package/dist/models/LDAPSyncStatus.d.ts +38 -0
- package/dist/models/LDAPSyncStatus.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +9 -9
- package/src/models/LDAPSource.ts +8 -0
- package/src/models/LDAPSyncStatus.ts +80 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType,
|
|
13
|
+
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, LDAPSyncStatus, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
14
14
|
export interface SourcesAllDestroyRequest {
|
|
15
15
|
slug: string;
|
|
16
16
|
}
|
|
@@ -82,7 +82,7 @@ export interface SourcesLdapPartialUpdateRequest {
|
|
|
82
82
|
export interface SourcesLdapRetrieveRequest {
|
|
83
83
|
slug: string;
|
|
84
84
|
}
|
|
85
|
-
export interface
|
|
85
|
+
export interface SourcesLdapSyncStatusRetrieveRequest {
|
|
86
86
|
slug: string;
|
|
87
87
|
}
|
|
88
88
|
export interface SourcesLdapUpdateRequest {
|
|
@@ -450,11 +450,11 @@ export declare class SourcesApi extends runtime.BaseAPI {
|
|
|
450
450
|
/**
|
|
451
451
|
* Get source\'s sync status
|
|
452
452
|
*/
|
|
453
|
-
|
|
453
|
+
sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPSyncStatus>>;
|
|
454
454
|
/**
|
|
455
455
|
* Get source\'s sync status
|
|
456
456
|
*/
|
|
457
|
-
|
|
457
|
+
sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPSyncStatus>;
|
|
458
458
|
/**
|
|
459
459
|
* LDAP Source Viewset
|
|
460
460
|
*/
|
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -580,10 +580,10 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
580
580
|
/**
|
|
581
581
|
* Get source\'s sync status
|
|
582
582
|
*/
|
|
583
|
-
|
|
583
|
+
sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides) {
|
|
584
584
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
585
|
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
586
|
-
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling
|
|
586
|
+
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling sourcesLdapSyncStatusRetrieve.');
|
|
587
587
|
}
|
|
588
588
|
const queryParameters = {};
|
|
589
589
|
const headerParameters = {};
|
|
@@ -596,15 +596,15 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
596
596
|
headers: headerParameters,
|
|
597
597
|
query: queryParameters,
|
|
598
598
|
}, initOverrides);
|
|
599
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
599
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.LDAPSyncStatusFromJSON)(jsonValue));
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
603
603
|
* Get source\'s sync status
|
|
604
604
|
*/
|
|
605
|
-
|
|
605
|
+
sourcesLdapSyncStatusRetrieve(requestParameters, initOverrides) {
|
|
606
606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
|
-
const response = yield this.
|
|
607
|
+
const response = yield this.sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
|
608
608
|
return yield response.value();
|
|
609
609
|
});
|
|
610
610
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType,
|
|
13
|
+
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, LDAPSyncStatus, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
|
14
14
|
export interface SourcesAllDestroyRequest {
|
|
15
15
|
slug: string;
|
|
16
16
|
}
|
|
@@ -82,7 +82,7 @@ export interface SourcesLdapPartialUpdateRequest {
|
|
|
82
82
|
export interface SourcesLdapRetrieveRequest {
|
|
83
83
|
slug: string;
|
|
84
84
|
}
|
|
85
|
-
export interface
|
|
85
|
+
export interface SourcesLdapSyncStatusRetrieveRequest {
|
|
86
86
|
slug: string;
|
|
87
87
|
}
|
|
88
88
|
export interface SourcesLdapUpdateRequest {
|
|
@@ -450,11 +450,11 @@ export declare class SourcesApi extends runtime.BaseAPI {
|
|
|
450
450
|
/**
|
|
451
451
|
* Get source\'s sync status
|
|
452
452
|
*/
|
|
453
|
-
|
|
453
|
+
sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPSyncStatus>>;
|
|
454
454
|
/**
|
|
455
455
|
* Get source\'s sync status
|
|
456
456
|
*/
|
|
457
|
-
|
|
457
|
+
sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPSyncStatus>;
|
|
458
458
|
/**
|
|
459
459
|
* LDAP Source Viewset
|
|
460
460
|
*/
|
|
@@ -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 { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SourceFromJSON, SourceTypeFromJSON,
|
|
24
|
+
import { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, LDAPSyncStatusFromJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SourceFromJSON, SourceTypeFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -577,10 +577,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
577
577
|
/**
|
|
578
578
|
* Get source\'s sync status
|
|
579
579
|
*/
|
|
580
|
-
|
|
580
|
+
sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides) {
|
|
581
581
|
return __awaiter(this, void 0, void 0, function* () {
|
|
582
582
|
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
583
|
-
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling
|
|
583
|
+
throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling sourcesLdapSyncStatusRetrieve.');
|
|
584
584
|
}
|
|
585
585
|
const queryParameters = {};
|
|
586
586
|
const headerParameters = {};
|
|
@@ -593,15 +593,15 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
593
593
|
headers: headerParameters,
|
|
594
594
|
query: queryParameters,
|
|
595
595
|
}, initOverrides);
|
|
596
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
596
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPSyncStatusFromJSON(jsonValue));
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
599
|
/**
|
|
600
600
|
* Get source\'s sync status
|
|
601
601
|
*/
|
|
602
|
-
|
|
602
|
+
sourcesLdapSyncStatusRetrieve(requestParameters, initOverrides) {
|
|
603
603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
-
const response = yield this.
|
|
604
|
+
const response = yield this.sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
|
605
605
|
return yield response.value();
|
|
606
606
|
});
|
|
607
607
|
}
|
|
@@ -222,6 +222,16 @@ export interface LDAPSource {
|
|
|
222
222
|
* @memberof LDAPSource
|
|
223
223
|
*/
|
|
224
224
|
propertyMappingsGroup?: Array<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Get cached source connectivity
|
|
227
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
228
|
+
* @memberof LDAPSource
|
|
229
|
+
*/
|
|
230
|
+
readonly connectivity: {
|
|
231
|
+
[key: string]: {
|
|
232
|
+
[key: string]: string;
|
|
233
|
+
};
|
|
234
|
+
} | null;
|
|
225
235
|
}
|
|
226
236
|
/**
|
|
227
237
|
* Check if a given object implements the LDAPSource interface.
|
|
@@ -30,6 +30,7 @@ export function instanceOfLDAPSource(value) {
|
|
|
30
30
|
isInstance = isInstance && "icon" in value;
|
|
31
31
|
isInstance = isInstance && "serverUri" in value;
|
|
32
32
|
isInstance = isInstance && "baseDn" in value;
|
|
33
|
+
isInstance = isInstance && "connectivity" in value;
|
|
33
34
|
return isInstance;
|
|
34
35
|
}
|
|
35
36
|
export function LDAPSourceFromJSON(json) {
|
|
@@ -74,6 +75,7 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
75
|
'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
|
|
75
76
|
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
76
77
|
'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
|
|
78
|
+
'connectivity': json['connectivity'],
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
81
|
export function LDAPSourceToJSON(value) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.3
|
|
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
|
+
* LDAP Source sync status
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LDAPSyncStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface LDAPSyncStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof LDAPSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
readonly isRunning: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Task>}
|
|
28
|
+
* @memberof LDAPSyncStatus
|
|
29
|
+
*/
|
|
30
|
+
readonly tasks: Array<Task>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfLDAPSyncStatus(value: object): boolean;
|
|
36
|
+
export declare function LDAPSyncStatusFromJSON(json: any): LDAPSyncStatus;
|
|
37
|
+
export declare function LDAPSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSyncStatus;
|
|
38
|
+
export declare function LDAPSyncStatusToJSON(value?: LDAPSyncStatus | 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.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TaskFromJSON, } from './Task';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfLDAPSyncStatus(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "isRunning" in value;
|
|
21
|
+
isInstance = isInstance && "tasks" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function LDAPSyncStatusFromJSON(json) {
|
|
25
|
+
return LDAPSyncStatusFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function LDAPSyncStatusFromJSONTyped(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 LDAPSyncStatusToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
@@ -152,6 +152,7 @@ export * from './LDAPProvider';
|
|
|
152
152
|
export * from './LDAPProviderRequest';
|
|
153
153
|
export * from './LDAPSource';
|
|
154
154
|
export * from './LDAPSourceRequest';
|
|
155
|
+
export * from './LDAPSyncStatus';
|
|
155
156
|
export * from './LayoutEnum';
|
|
156
157
|
export * from './License';
|
|
157
158
|
export * from './LicenseForecast';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -154,6 +154,7 @@ export * from './LDAPProvider';
|
|
|
154
154
|
export * from './LDAPProviderRequest';
|
|
155
155
|
export * from './LDAPSource';
|
|
156
156
|
export * from './LDAPSourceRequest';
|
|
157
|
+
export * from './LDAPSyncStatus';
|
|
157
158
|
export * from './LayoutEnum';
|
|
158
159
|
export * from './License';
|
|
159
160
|
export * from './LicenseForecast';
|
|
@@ -222,6 +222,16 @@ export interface LDAPSource {
|
|
|
222
222
|
* @memberof LDAPSource
|
|
223
223
|
*/
|
|
224
224
|
propertyMappingsGroup?: Array<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Get cached source connectivity
|
|
227
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
228
|
+
* @memberof LDAPSource
|
|
229
|
+
*/
|
|
230
|
+
readonly connectivity: {
|
|
231
|
+
[key: string]: {
|
|
232
|
+
[key: string]: string;
|
|
233
|
+
};
|
|
234
|
+
} | null;
|
|
225
235
|
}
|
|
226
236
|
/**
|
|
227
237
|
* Check if a given object implements the LDAPSource interface.
|
|
@@ -33,6 +33,7 @@ function instanceOfLDAPSource(value) {
|
|
|
33
33
|
isInstance = isInstance && "icon" in value;
|
|
34
34
|
isInstance = isInstance && "serverUri" in value;
|
|
35
35
|
isInstance = isInstance && "baseDn" in value;
|
|
36
|
+
isInstance = isInstance && "connectivity" in value;
|
|
36
37
|
return isInstance;
|
|
37
38
|
}
|
|
38
39
|
exports.instanceOfLDAPSource = instanceOfLDAPSource;
|
|
@@ -79,6 +80,7 @@ function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
80
|
'syncParentGroup': !(0, runtime_1.exists)(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
|
|
80
81
|
'propertyMappings': !(0, runtime_1.exists)(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
81
82
|
'propertyMappingsGroup': !(0, runtime_1.exists)(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
|
|
83
|
+
'connectivity': json['connectivity'],
|
|
82
84
|
};
|
|
83
85
|
}
|
|
84
86
|
exports.LDAPSourceFromJSONTyped = LDAPSourceFromJSONTyped;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.3
|
|
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
|
+
* LDAP Source sync status
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LDAPSyncStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface LDAPSyncStatus {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof LDAPSyncStatus
|
|
23
|
+
*/
|
|
24
|
+
readonly isRunning: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<Task>}
|
|
28
|
+
* @memberof LDAPSyncStatus
|
|
29
|
+
*/
|
|
30
|
+
readonly tasks: Array<Task>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfLDAPSyncStatus(value: object): boolean;
|
|
36
|
+
export declare function LDAPSyncStatusFromJSON(json: any): LDAPSyncStatus;
|
|
37
|
+
export declare function LDAPSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSyncStatus;
|
|
38
|
+
export declare function LDAPSyncStatusToJSON(value?: LDAPSyncStatus | 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.3
|
|
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.LDAPSyncStatusToJSON = exports.LDAPSyncStatusFromJSONTyped = exports.LDAPSyncStatusFromJSON = exports.instanceOfLDAPSyncStatus = void 0;
|
|
17
|
+
const Task_1 = require("./Task");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLDAPSyncStatus(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "isRunning" in value;
|
|
24
|
+
isInstance = isInstance && "tasks" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfLDAPSyncStatus = instanceOfLDAPSyncStatus;
|
|
28
|
+
function LDAPSyncStatusFromJSON(json) {
|
|
29
|
+
return LDAPSyncStatusFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.LDAPSyncStatusFromJSON = LDAPSyncStatusFromJSON;
|
|
32
|
+
function LDAPSyncStatusFromJSONTyped(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.LDAPSyncStatusFromJSONTyped = LDAPSyncStatusFromJSONTyped;
|
|
42
|
+
function LDAPSyncStatusToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
exports.LDAPSyncStatusToJSON = LDAPSyncStatusToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export * from './LDAPProvider';
|
|
|
152
152
|
export * from './LDAPProviderRequest';
|
|
153
153
|
export * from './LDAPSource';
|
|
154
154
|
export * from './LDAPSourceRequest';
|
|
155
|
+
export * from './LDAPSyncStatus';
|
|
155
156
|
export * from './LayoutEnum';
|
|
156
157
|
export * from './License';
|
|
157
158
|
export * from './LicenseForecast';
|
package/dist/models/index.js
CHANGED
|
@@ -170,6 +170,7 @@ __exportStar(require("./LDAPProvider"), exports);
|
|
|
170
170
|
__exportStar(require("./LDAPProviderRequest"), exports);
|
|
171
171
|
__exportStar(require("./LDAPSource"), exports);
|
|
172
172
|
__exportStar(require("./LDAPSourceRequest"), exports);
|
|
173
|
+
__exportStar(require("./LDAPSyncStatus"), exports);
|
|
173
174
|
__exportStar(require("./LayoutEnum"), exports);
|
|
174
175
|
__exportStar(require("./License"), exports);
|
|
175
176
|
__exportStar(require("./LicenseForecast"), exports);
|
package/package.json
CHANGED
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
LDAPDebug,
|
|
21
21
|
LDAPSource,
|
|
22
22
|
LDAPSourceRequest,
|
|
23
|
+
LDAPSyncStatus,
|
|
23
24
|
OAuthSource,
|
|
24
25
|
OAuthSourceRequest,
|
|
25
26
|
PaginatedLDAPSourceList,
|
|
@@ -49,7 +50,6 @@ import type {
|
|
|
49
50
|
SAMLSourceRequest,
|
|
50
51
|
Source,
|
|
51
52
|
SourceType,
|
|
52
|
-
Task,
|
|
53
53
|
TypeCreate,
|
|
54
54
|
UsedBy,
|
|
55
55
|
UserOAuthSourceConnection,
|
|
@@ -71,6 +71,8 @@ import {
|
|
|
71
71
|
LDAPSourceToJSON,
|
|
72
72
|
LDAPSourceRequestFromJSON,
|
|
73
73
|
LDAPSourceRequestToJSON,
|
|
74
|
+
LDAPSyncStatusFromJSON,
|
|
75
|
+
LDAPSyncStatusToJSON,
|
|
74
76
|
OAuthSourceFromJSON,
|
|
75
77
|
OAuthSourceToJSON,
|
|
76
78
|
OAuthSourceRequestFromJSON,
|
|
@@ -129,8 +131,6 @@ import {
|
|
|
129
131
|
SourceToJSON,
|
|
130
132
|
SourceTypeFromJSON,
|
|
131
133
|
SourceTypeToJSON,
|
|
132
|
-
TaskFromJSON,
|
|
133
|
-
TaskToJSON,
|
|
134
134
|
TypeCreateFromJSON,
|
|
135
135
|
TypeCreateToJSON,
|
|
136
136
|
UsedByFromJSON,
|
|
@@ -234,7 +234,7 @@ export interface SourcesLdapRetrieveRequest {
|
|
|
234
234
|
slug: string;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export interface
|
|
237
|
+
export interface SourcesLdapSyncStatusRetrieveRequest {
|
|
238
238
|
slug: string;
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -1172,9 +1172,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Get source\'s sync status
|
|
1174
1174
|
*/
|
|
1175
|
-
async
|
|
1175
|
+
async sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPSyncStatus>> {
|
|
1176
1176
|
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
1177
|
-
throw new runtime.RequiredError('slug','Required parameter requestParameters.slug was null or undefined when calling
|
|
1177
|
+
throw new runtime.RequiredError('slug','Required parameter requestParameters.slug was null or undefined when calling sourcesLdapSyncStatusRetrieve.');
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
const queryParameters: any = {};
|
|
@@ -1192,14 +1192,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1192
1192
|
query: queryParameters,
|
|
1193
1193
|
}, initOverrides);
|
|
1194
1194
|
|
|
1195
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
1195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPSyncStatusFromJSON(jsonValue));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Get source\'s sync status
|
|
1200
1200
|
*/
|
|
1201
|
-
async
|
|
1202
|
-
const response = await this.
|
|
1201
|
+
async sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPSyncStatus> {
|
|
1202
|
+
const response = await this.sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
|
1203
1203
|
return await response.value();
|
|
1204
1204
|
}
|
|
1205
1205
|
|
package/src/models/LDAPSource.ts
CHANGED
|
@@ -237,6 +237,12 @@ export interface LDAPSource {
|
|
|
237
237
|
* @memberof LDAPSource
|
|
238
238
|
*/
|
|
239
239
|
propertyMappingsGroup?: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Get cached source connectivity
|
|
242
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
243
|
+
* @memberof LDAPSource
|
|
244
|
+
*/
|
|
245
|
+
readonly connectivity: { [key: string]: { [key: string]: string; }; } | null;
|
|
240
246
|
}
|
|
241
247
|
|
|
242
248
|
/**
|
|
@@ -255,6 +261,7 @@ export function instanceOfLDAPSource(value: object): boolean {
|
|
|
255
261
|
isInstance = isInstance && "icon" in value;
|
|
256
262
|
isInstance = isInstance && "serverUri" in value;
|
|
257
263
|
isInstance = isInstance && "baseDn" in value;
|
|
264
|
+
isInstance = isInstance && "connectivity" in value;
|
|
258
265
|
|
|
259
266
|
return isInstance;
|
|
260
267
|
}
|
|
@@ -303,6 +310,7 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
303
310
|
'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
|
|
304
311
|
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
305
312
|
'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
|
|
313
|
+
'connectivity': json['connectivity'],
|
|
306
314
|
};
|
|
307
315
|
}
|
|
308
316
|
|
|
@@ -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.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Task } from './Task';
|
|
17
|
+
import {
|
|
18
|
+
TaskFromJSON,
|
|
19
|
+
TaskFromJSONTyped,
|
|
20
|
+
TaskToJSON,
|
|
21
|
+
} from './Task';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* LDAP Source sync status
|
|
25
|
+
* @export
|
|
26
|
+
* @interface LDAPSyncStatus
|
|
27
|
+
*/
|
|
28
|
+
export interface LDAPSyncStatus {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof LDAPSyncStatus
|
|
33
|
+
*/
|
|
34
|
+
readonly isRunning: boolean;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Task>}
|
|
38
|
+
* @memberof LDAPSyncStatus
|
|
39
|
+
*/
|
|
40
|
+
readonly tasks: Array<Task>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfLDAPSyncStatus(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 LDAPSyncStatusFromJSON(json: any): LDAPSyncStatus {
|
|
55
|
+
return LDAPSyncStatusFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function LDAPSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSyncStatus {
|
|
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 LDAPSyncStatusToJSON(value?: LDAPSyncStatus | 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
|
@@ -154,6 +154,7 @@ export * from './LDAPProvider';
|
|
|
154
154
|
export * from './LDAPProviderRequest';
|
|
155
155
|
export * from './LDAPSource';
|
|
156
156
|
export * from './LDAPSourceRequest';
|
|
157
|
+
export * from './LDAPSyncStatus';
|
|
157
158
|
export * from './LayoutEnum';
|
|
158
159
|
export * from './License';
|
|
159
160
|
export * from './LicenseForecast';
|