@goauthentik/api 2023.10.3-1699554078 → 2023.10.3-1700176062
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 +3 -2
- package/dist/apis/AdminApi.d.ts +5 -5
- package/dist/apis/AdminApi.js +2 -2
- package/dist/apis/SourcesApi.d.ts +4 -4
- package/dist/apis/SourcesApi.js +5 -5
- package/dist/apis/StagesApi.d.ts +3 -3
- package/dist/apis/StagesApi.js +3 -3
- package/dist/esm/apis/AdminApi.d.ts +5 -5
- package/dist/esm/apis/AdminApi.js +3 -3
- package/dist/esm/apis/SourcesApi.d.ts +4 -4
- package/dist/esm/apis/SourcesApi.js +6 -6
- package/dist/esm/apis/StagesApi.d.ts +3 -3
- package/dist/esm/apis/StagesApi.js +3 -3
- package/dist/esm/models/DigitsEnum.d.ts +3 -3
- package/dist/esm/models/DigitsEnum.js +3 -3
- 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/{System.d.ts → SystemInfo.d.ts} +17 -17
- package/dist/esm/models/{System.js → SystemInfo.js} +9 -9
- package/dist/{models/SystemRuntime.d.ts → esm/models/SystemInfoRuntime.d.ts} +13 -13
- package/dist/esm/models/{SystemRuntime.js → SystemInfoRuntime.js} +6 -6
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/DigitsEnum.d.ts +3 -3
- package/dist/models/DigitsEnum.js +3 -3
- 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/{System.d.ts → SystemInfo.d.ts} +17 -17
- package/dist/models/{System.js → SystemInfo.js} +14 -14
- package/dist/{esm/models/SystemRuntime.d.ts → models/SystemInfoRuntime.d.ts} +13 -13
- package/dist/models/{SystemRuntime.js → SystemInfoRuntime.js} +11 -11
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +9 -9
- package/src/apis/SourcesApi.ts +9 -9
- package/src/apis/StagesApi.ts +3 -3
- package/src/models/DigitsEnum.ts +3 -3
- package/src/models/LDAPSource.ts +8 -0
- package/src/models/LDAPSyncStatus.ts +80 -0
- package/src/models/{System.ts → SystemInfo.ts} +24 -24
- package/src/models/{SystemRuntime.ts → SystemInfoRuntime.ts} +14 -14
- package/src/models/index.ts +3 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -177,6 +177,7 @@ src/models/LDAPProvider.ts
|
|
|
177
177
|
src/models/LDAPProviderRequest.ts
|
|
178
178
|
src/models/LDAPSource.ts
|
|
179
179
|
src/models/LDAPSourceRequest.ts
|
|
180
|
+
src/models/LDAPSyncStatus.ts
|
|
180
181
|
src/models/LayoutEnum.ts
|
|
181
182
|
src/models/License.ts
|
|
182
183
|
src/models/LicenseForecast.ts
|
|
@@ -466,8 +467,8 @@ src/models/StaticDeviceRequest.ts
|
|
|
466
467
|
src/models/StaticDeviceToken.ts
|
|
467
468
|
src/models/StaticDeviceTokenRequest.ts
|
|
468
469
|
src/models/SubModeEnum.ts
|
|
469
|
-
src/models/
|
|
470
|
-
src/models/
|
|
470
|
+
src/models/SystemInfo.ts
|
|
471
|
+
src/models/SystemInfoRuntime.ts
|
|
471
472
|
src/models/TOTPDevice.ts
|
|
472
473
|
src/models/TOTPDeviceRequest.ts
|
|
473
474
|
src/models/Task.ts
|
package/dist/apis/AdminApi.d.ts
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 { App, LoginMetrics,
|
|
13
|
+
import type { App, LoginMetrics, SystemInfo, Task, Version, Workers } from '../models';
|
|
14
14
|
export interface AdminSystemTasksRetrieveRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -48,19 +48,19 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get system information.
|
|
50
50
|
*/
|
|
51
|
-
adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
51
|
+
adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>>;
|
|
52
52
|
/**
|
|
53
53
|
* Get system information.
|
|
54
54
|
*/
|
|
55
|
-
adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
55
|
+
adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
56
56
|
/**
|
|
57
57
|
* Get system information.
|
|
58
58
|
*/
|
|
59
|
-
adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
59
|
+
adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>>;
|
|
60
60
|
/**
|
|
61
61
|
* Get system information.
|
|
62
62
|
*/
|
|
63
|
-
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
63
|
+
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
64
64
|
/**
|
|
65
65
|
* List system tasks
|
|
66
66
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -129,7 +129,7 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
129
129
|
headers: headerParameters,
|
|
130
130
|
query: queryParameters,
|
|
131
131
|
}, initOverrides);
|
|
132
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SystemInfoFromJSON)(jsonValue));
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
@@ -157,7 +157,7 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
157
157
|
headers: headerParameters,
|
|
158
158
|
query: queryParameters,
|
|
159
159
|
}, initOverrides);
|
|
160
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.
|
|
160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SystemInfoFromJSON)(jsonValue));
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
@@ -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
|
}
|
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -1983,9 +1983,9 @@ export type StagesAuthenticatorSmsListProviderEnum = typeof StagesAuthenticatorS
|
|
|
1983
1983
|
* @export
|
|
1984
1984
|
*/
|
|
1985
1985
|
export declare const StagesAuthenticatorTotpListDigitsEnum: {
|
|
1986
|
-
readonly
|
|
1987
|
-
readonly
|
|
1988
|
-
readonly
|
|
1986
|
+
readonly _6: "6";
|
|
1987
|
+
readonly _8: "8";
|
|
1988
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
1989
1989
|
};
|
|
1990
1990
|
export type StagesAuthenticatorTotpListDigitsEnum = typeof StagesAuthenticatorTotpListDigitsEnum[keyof typeof StagesAuthenticatorTotpListDigitsEnum];
|
|
1991
1991
|
/**
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -5632,9 +5632,9 @@ exports.StagesAuthenticatorSmsListProviderEnum = {
|
|
|
5632
5632
|
* @export
|
|
5633
5633
|
*/
|
|
5634
5634
|
exports.StagesAuthenticatorTotpListDigitsEnum = {
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5635
|
+
_6: '6',
|
|
5636
|
+
_8: '8',
|
|
5637
|
+
UnknownDefaultOpenApi: '11184809'
|
|
5638
5638
|
};
|
|
5639
5639
|
/**
|
|
5640
5640
|
* @export
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { App, LoginMetrics,
|
|
13
|
+
import type { App, LoginMetrics, SystemInfo, Task, Version, Workers } from '../models';
|
|
14
14
|
export interface AdminSystemTasksRetrieveRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
@@ -48,19 +48,19 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get system information.
|
|
50
50
|
*/
|
|
51
|
-
adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
51
|
+
adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>>;
|
|
52
52
|
/**
|
|
53
53
|
* Get system information.
|
|
54
54
|
*/
|
|
55
|
-
adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
55
|
+
adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
56
56
|
/**
|
|
57
57
|
* Get system information.
|
|
58
58
|
*/
|
|
59
|
-
adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
59
|
+
adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>>;
|
|
60
60
|
/**
|
|
61
61
|
* Get system information.
|
|
62
62
|
*/
|
|
63
|
-
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
63
|
+
adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo>;
|
|
64
64
|
/**
|
|
65
65
|
* List system tasks
|
|
66
66
|
*/
|
|
@@ -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 { AppFromJSON, LoginMetricsFromJSON,
|
|
24
|
+
import { AppFromJSON, LoginMetricsFromJSON, SystemInfoFromJSON, TaskFromJSON, VersionFromJSON, WorkersFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -126,7 +126,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
126
126
|
headers: headerParameters,
|
|
127
127
|
query: queryParameters,
|
|
128
128
|
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoFromJSON(jsonValue));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
@@ -154,7 +154,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
154
154
|
headers: headerParameters,
|
|
155
155
|
query: queryParameters,
|
|
156
156
|
}, initOverrides);
|
|
157
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoFromJSON(jsonValue));
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
@@ -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
|
}
|
|
@@ -1983,9 +1983,9 @@ export type StagesAuthenticatorSmsListProviderEnum = typeof StagesAuthenticatorS
|
|
|
1983
1983
|
* @export
|
|
1984
1984
|
*/
|
|
1985
1985
|
export declare const StagesAuthenticatorTotpListDigitsEnum: {
|
|
1986
|
-
readonly
|
|
1987
|
-
readonly
|
|
1988
|
-
readonly
|
|
1986
|
+
readonly _6: "6";
|
|
1987
|
+
readonly _8: "8";
|
|
1988
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
1989
1989
|
};
|
|
1990
1990
|
export type StagesAuthenticatorTotpListDigitsEnum = typeof StagesAuthenticatorTotpListDigitsEnum[keyof typeof StagesAuthenticatorTotpListDigitsEnum];
|
|
1991
1991
|
/**
|
|
@@ -5628,9 +5628,9 @@ export const StagesAuthenticatorSmsListProviderEnum = {
|
|
|
5628
5628
|
* @export
|
|
5629
5629
|
*/
|
|
5630
5630
|
export const StagesAuthenticatorTotpListDigitsEnum = {
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5631
|
+
_6: '6',
|
|
5632
|
+
_8: '8',
|
|
5633
|
+
UnknownDefaultOpenApi: '11184809'
|
|
5634
5634
|
};
|
|
5635
5635
|
/**
|
|
5636
5636
|
* @export
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
17
|
export declare const DigitsEnum: {
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
18
|
+
readonly _6: "6";
|
|
19
|
+
readonly _8: "8";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
21
|
};
|
|
22
22
|
export type DigitsEnum = typeof DigitsEnum[keyof typeof DigitsEnum];
|
|
23
23
|
export declare function DigitsEnumFromJSON(json: any): DigitsEnum;
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
19
|
export const DigitsEnum = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
_6: '6',
|
|
21
|
+
_8: '8',
|
|
22
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
23
|
};
|
|
24
24
|
export function DigitsEnumFromJSON(json) {
|
|
25
25
|
return DigitsEnumFromJSONTyped(json, false);
|
|
@@ -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
|
+
}
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { SystemInfoRuntime } from './SystemInfoRuntime';
|
|
13
13
|
/**
|
|
14
14
|
* Get system information.
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface SystemInfo
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface SystemInfo {
|
|
19
19
|
/**
|
|
20
20
|
* Get HTTP Request headers
|
|
21
21
|
* @type {{ [key: string]: string; }}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof SystemInfo
|
|
23
23
|
*/
|
|
24
24
|
readonly httpHeaders: {
|
|
25
25
|
[key: string]: string;
|
|
@@ -27,44 +27,44 @@ export interface System {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get HTTP host
|
|
29
29
|
* @type {string}
|
|
30
|
-
* @memberof
|
|
30
|
+
* @memberof SystemInfo
|
|
31
31
|
*/
|
|
32
32
|
readonly httpHost: string;
|
|
33
33
|
/**
|
|
34
34
|
* Get HTTP Secure flag
|
|
35
35
|
* @type {boolean}
|
|
36
|
-
* @memberof
|
|
36
|
+
* @memberof SystemInfo
|
|
37
37
|
*/
|
|
38
38
|
readonly httpIsSecure: boolean;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @type {
|
|
42
|
-
* @memberof
|
|
41
|
+
* @type {SystemInfoRuntime}
|
|
42
|
+
* @memberof SystemInfo
|
|
43
43
|
*/
|
|
44
|
-
runtime:
|
|
44
|
+
runtime: SystemInfoRuntime;
|
|
45
45
|
/**
|
|
46
46
|
* Currently active tenant
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @memberof
|
|
48
|
+
* @memberof SystemInfo
|
|
49
49
|
*/
|
|
50
50
|
readonly tenant: string;
|
|
51
51
|
/**
|
|
52
52
|
* Current server time
|
|
53
53
|
* @type {Date}
|
|
54
|
-
* @memberof
|
|
54
|
+
* @memberof SystemInfo
|
|
55
55
|
*/
|
|
56
56
|
readonly serverTime: Date;
|
|
57
57
|
/**
|
|
58
58
|
* Get the FQDN configured on the embedded outpost
|
|
59
59
|
* @type {string}
|
|
60
|
-
* @memberof
|
|
60
|
+
* @memberof SystemInfo
|
|
61
61
|
*/
|
|
62
62
|
readonly embeddedOutpostHost: string;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* Check if a given object implements the
|
|
65
|
+
* Check if a given object implements the SystemInfo interface.
|
|
66
66
|
*/
|
|
67
|
-
export declare function
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
70
|
-
export declare function
|
|
67
|
+
export declare function instanceOfSystemInfo(value: object): boolean;
|
|
68
|
+
export declare function SystemInfoFromJSON(json: any): SystemInfo;
|
|
69
|
+
export declare function SystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfo;
|
|
70
|
+
export declare function SystemInfoToJSON(value?: SystemInfo | null): any;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { SystemInfoRuntimeFromJSON, SystemInfoRuntimeToJSON, } from './SystemInfoRuntime';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the SystemInfo interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfSystemInfo(value) {
|
|
19
19
|
let isInstance = true;
|
|
20
20
|
isInstance = isInstance && "httpHeaders" in value;
|
|
21
21
|
isInstance = isInstance && "httpHost" in value;
|
|
@@ -26,10 +26,10 @@ export function instanceOfSystem(value) {
|
|
|
26
26
|
isInstance = isInstance && "embeddedOutpostHost" in value;
|
|
27
27
|
return isInstance;
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
30
|
-
return
|
|
29
|
+
export function SystemInfoFromJSON(json) {
|
|
30
|
+
return SystemInfoFromJSONTyped(json, false);
|
|
31
31
|
}
|
|
32
|
-
export function
|
|
32
|
+
export function SystemInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -37,13 +37,13 @@ export function SystemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'httpHeaders': json['http_headers'],
|
|
38
38
|
'httpHost': json['http_host'],
|
|
39
39
|
'httpIsSecure': json['http_is_secure'],
|
|
40
|
-
'runtime':
|
|
40
|
+
'runtime': SystemInfoRuntimeFromJSON(json['runtime']),
|
|
41
41
|
'tenant': json['tenant'],
|
|
42
42
|
'serverTime': (new Date(json['server_time'])),
|
|
43
43
|
'embeddedOutpostHost': json['embedded_outpost_host'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export function
|
|
46
|
+
export function SystemInfoToJSON(value) {
|
|
47
47
|
if (value === undefined) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
@@ -51,6 +51,6 @@ export function SystemToJSON(value) {
|
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
-
'runtime':
|
|
54
|
+
'runtime': SystemInfoRuntimeToJSON(value.runtime),
|
|
55
55
|
};
|
|
56
56
|
}
|