@goauthentik/api 2024.6.3-1723921843 → 2024.6.3-1724414734
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 -0
- package/dist/apis/EnterpriseApi.d.ts +7 -4
- package/dist/apis/EnterpriseApi.js +10 -7
- package/dist/apis/ProvidersApi.d.ts +37 -1
- package/dist/apis/ProvidersApi.js +120 -0
- package/dist/esm/apis/EnterpriseApi.d.ts +7 -4
- package/dist/esm/apis/EnterpriseApi.js +10 -7
- package/dist/esm/apis/ProvidersApi.d.ts +37 -1
- package/dist/esm/apis/ProvidersApi.js +121 -1
- package/dist/esm/models/SyncObjectModelEnum.d.ts +24 -0
- package/dist/esm/models/SyncObjectModelEnum.js +31 -0
- package/dist/esm/models/SyncObjectRequest.d.ts +38 -0
- package/dist/esm/models/SyncObjectRequest.js +47 -0
- package/dist/esm/models/SyncObjectResult.d.ts +32 -0
- package/dist/esm/models/SyncObjectResult.js +42 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/SyncObjectModelEnum.d.ts +24 -0
- package/dist/models/SyncObjectModelEnum.js +37 -0
- package/dist/models/SyncObjectRequest.d.ts +38 -0
- package/dist/models/SyncObjectRequest.js +54 -0
- package/dist/models/SyncObjectResult.d.ts +32 -0
- package/dist/models/SyncObjectResult.js +49 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/EnterpriseApi.ts +15 -7
- package/src/apis/ProvidersApi.ts +156 -0
- package/src/models/SyncObjectModelEnum.ts +39 -0
- package/src/models/SyncObjectRequest.ts +82 -0
- package/src/models/SyncObjectResult.ts +72 -0
- package/src/models/index.ts +3 -0
|
@@ -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 { GoogleWorkspaceProviderFromJSON, GoogleWorkspaceProviderGroupFromJSON, GoogleWorkspaceProviderGroupRequestToJSON, GoogleWorkspaceProviderRequestToJSON, GoogleWorkspaceProviderUserFromJSON, GoogleWorkspaceProviderUserRequestToJSON, LDAPProviderFromJSON, LDAPProviderRequestToJSON, MicrosoftEntraProviderFromJSON, MicrosoftEntraProviderGroupFromJSON, MicrosoftEntraProviderGroupRequestToJSON, MicrosoftEntraProviderRequestToJSON, MicrosoftEntraProviderUserFromJSON, MicrosoftEntraProviderUserRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedGoogleWorkspaceProviderGroupListFromJSON, PaginatedGoogleWorkspaceProviderListFromJSON, PaginatedGoogleWorkspaceProviderUserListFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedMicrosoftEntraProviderGroupListFromJSON, PaginatedMicrosoftEntraProviderListFromJSON, PaginatedMicrosoftEntraProviderUserListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRACProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderGroupListFromJSON, PaginatedSCIMProviderListFromJSON, PaginatedSCIMProviderUserListFromJSON, PatchedGoogleWorkspaceProviderRequestToJSON, PatchedLDAPProviderRequestToJSON, PatchedMicrosoftEntraProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRACProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RACProviderFromJSON, RACProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderGroupFromJSON, SCIMProviderGroupRequestToJSON, SCIMProviderRequestToJSON, SCIMProviderUserFromJSON, SCIMProviderUserRequestToJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
24
|
+
import { GoogleWorkspaceProviderFromJSON, GoogleWorkspaceProviderGroupFromJSON, GoogleWorkspaceProviderGroupRequestToJSON, GoogleWorkspaceProviderRequestToJSON, GoogleWorkspaceProviderUserFromJSON, GoogleWorkspaceProviderUserRequestToJSON, LDAPProviderFromJSON, LDAPProviderRequestToJSON, MicrosoftEntraProviderFromJSON, MicrosoftEntraProviderGroupFromJSON, MicrosoftEntraProviderGroupRequestToJSON, MicrosoftEntraProviderRequestToJSON, MicrosoftEntraProviderUserFromJSON, MicrosoftEntraProviderUserRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedGoogleWorkspaceProviderGroupListFromJSON, PaginatedGoogleWorkspaceProviderListFromJSON, PaginatedGoogleWorkspaceProviderUserListFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedMicrosoftEntraProviderGroupListFromJSON, PaginatedMicrosoftEntraProviderListFromJSON, PaginatedMicrosoftEntraProviderUserListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRACProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderGroupListFromJSON, PaginatedSCIMProviderListFromJSON, PaginatedSCIMProviderUserListFromJSON, PatchedGoogleWorkspaceProviderRequestToJSON, PatchedLDAPProviderRequestToJSON, PatchedMicrosoftEntraProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRACProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RACProviderFromJSON, RACProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderGroupFromJSON, SCIMProviderGroupRequestToJSON, SCIMProviderRequestToJSON, SCIMProviderUserFromJSON, SCIMProviderUserRequestToJSON, SyncObjectRequestToJSON, SyncObjectResultFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -605,6 +605,46 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
605
605
|
return yield response.value();
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
+
/**
|
|
609
|
+
* Sync/Re-sync a single user/group object
|
|
610
|
+
*/
|
|
611
|
+
providersGoogleWorkspaceSyncObjectCreateRaw(requestParameters, initOverrides) {
|
|
612
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
614
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceSyncObjectCreate.');
|
|
615
|
+
}
|
|
616
|
+
if (requestParameters.syncObjectRequest === null || requestParameters.syncObjectRequest === undefined) {
|
|
617
|
+
throw new runtime.RequiredError('syncObjectRequest', 'Required parameter requestParameters.syncObjectRequest was null or undefined when calling providersGoogleWorkspaceSyncObjectCreate.');
|
|
618
|
+
}
|
|
619
|
+
const queryParameters = {};
|
|
620
|
+
const headerParameters = {};
|
|
621
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
622
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
623
|
+
const token = this.configuration.accessToken;
|
|
624
|
+
const tokenString = yield token("authentik", []);
|
|
625
|
+
if (tokenString) {
|
|
626
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
const response = yield this.request({
|
|
630
|
+
path: `/providers/google_workspace/{id}/sync/object/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
631
|
+
method: 'POST',
|
|
632
|
+
headers: headerParameters,
|
|
633
|
+
query: queryParameters,
|
|
634
|
+
body: SyncObjectRequestToJSON(requestParameters.syncObjectRequest),
|
|
635
|
+
}, initOverrides);
|
|
636
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncObjectResultFromJSON(jsonValue));
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Sync/Re-sync a single user/group object
|
|
641
|
+
*/
|
|
642
|
+
providersGoogleWorkspaceSyncObjectCreate(requestParameters, initOverrides) {
|
|
643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
644
|
+
const response = yield this.providersGoogleWorkspaceSyncObjectCreateRaw(requestParameters, initOverrides);
|
|
645
|
+
return yield response.value();
|
|
646
|
+
});
|
|
647
|
+
}
|
|
608
648
|
/**
|
|
609
649
|
* Get provider\'s sync status
|
|
610
650
|
*/
|
|
@@ -1588,6 +1628,46 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
1588
1628
|
return yield response.value();
|
|
1589
1629
|
});
|
|
1590
1630
|
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Sync/Re-sync a single user/group object
|
|
1633
|
+
*/
|
|
1634
|
+
providersMicrosoftEntraSyncObjectCreateRaw(requestParameters, initOverrides) {
|
|
1635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1636
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1637
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersMicrosoftEntraSyncObjectCreate.');
|
|
1638
|
+
}
|
|
1639
|
+
if (requestParameters.syncObjectRequest === null || requestParameters.syncObjectRequest === undefined) {
|
|
1640
|
+
throw new runtime.RequiredError('syncObjectRequest', 'Required parameter requestParameters.syncObjectRequest was null or undefined when calling providersMicrosoftEntraSyncObjectCreate.');
|
|
1641
|
+
}
|
|
1642
|
+
const queryParameters = {};
|
|
1643
|
+
const headerParameters = {};
|
|
1644
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1645
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1646
|
+
const token = this.configuration.accessToken;
|
|
1647
|
+
const tokenString = yield token("authentik", []);
|
|
1648
|
+
if (tokenString) {
|
|
1649
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
const response = yield this.request({
|
|
1653
|
+
path: `/providers/microsoft_entra/{id}/sync/object/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1654
|
+
method: 'POST',
|
|
1655
|
+
headers: headerParameters,
|
|
1656
|
+
query: queryParameters,
|
|
1657
|
+
body: SyncObjectRequestToJSON(requestParameters.syncObjectRequest),
|
|
1658
|
+
}, initOverrides);
|
|
1659
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncObjectResultFromJSON(jsonValue));
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Sync/Re-sync a single user/group object
|
|
1664
|
+
*/
|
|
1665
|
+
providersMicrosoftEntraSyncObjectCreate(requestParameters, initOverrides) {
|
|
1666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1667
|
+
const response = yield this.providersMicrosoftEntraSyncObjectCreateRaw(requestParameters, initOverrides);
|
|
1668
|
+
return yield response.value();
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1591
1671
|
/**
|
|
1592
1672
|
* Get provider\'s sync status
|
|
1593
1673
|
*/
|
|
@@ -3986,6 +4066,46 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
3986
4066
|
return yield response.value();
|
|
3987
4067
|
});
|
|
3988
4068
|
}
|
|
4069
|
+
/**
|
|
4070
|
+
* Sync/Re-sync a single user/group object
|
|
4071
|
+
*/
|
|
4072
|
+
providersScimSyncObjectCreateRaw(requestParameters, initOverrides) {
|
|
4073
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4074
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
4075
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersScimSyncObjectCreate.');
|
|
4076
|
+
}
|
|
4077
|
+
if (requestParameters.syncObjectRequest === null || requestParameters.syncObjectRequest === undefined) {
|
|
4078
|
+
throw new runtime.RequiredError('syncObjectRequest', 'Required parameter requestParameters.syncObjectRequest was null or undefined when calling providersScimSyncObjectCreate.');
|
|
4079
|
+
}
|
|
4080
|
+
const queryParameters = {};
|
|
4081
|
+
const headerParameters = {};
|
|
4082
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4083
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4084
|
+
const token = this.configuration.accessToken;
|
|
4085
|
+
const tokenString = yield token("authentik", []);
|
|
4086
|
+
if (tokenString) {
|
|
4087
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
const response = yield this.request({
|
|
4091
|
+
path: `/providers/scim/{id}/sync/object/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
4092
|
+
method: 'POST',
|
|
4093
|
+
headers: headerParameters,
|
|
4094
|
+
query: queryParameters,
|
|
4095
|
+
body: SyncObjectRequestToJSON(requestParameters.syncObjectRequest),
|
|
4096
|
+
}, initOverrides);
|
|
4097
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncObjectResultFromJSON(jsonValue));
|
|
4098
|
+
});
|
|
4099
|
+
}
|
|
4100
|
+
/**
|
|
4101
|
+
* Sync/Re-sync a single user/group object
|
|
4102
|
+
*/
|
|
4103
|
+
providersScimSyncObjectCreate(requestParameters, initOverrides) {
|
|
4104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4105
|
+
const response = yield this.providersScimSyncObjectCreateRaw(requestParameters, initOverrides);
|
|
4106
|
+
return yield response.value();
|
|
4107
|
+
});
|
|
4108
|
+
}
|
|
3989
4109
|
/**
|
|
3990
4110
|
* Get provider\'s sync status
|
|
3991
4111
|
*/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SyncObjectModelEnum: {
|
|
17
|
+
readonly User: "authentik.core.models.User";
|
|
18
|
+
readonly Group: "authentik.core.models.Group";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type SyncObjectModelEnum = typeof SyncObjectModelEnum[keyof typeof SyncObjectModelEnum];
|
|
22
|
+
export declare function SyncObjectModelEnumFromJSON(json: any): SyncObjectModelEnum;
|
|
23
|
+
export declare function SyncObjectModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectModelEnum;
|
|
24
|
+
export declare function SyncObjectModelEnumToJSON(value?: SyncObjectModelEnum | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.6.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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SyncObjectModelEnum = {
|
|
19
|
+
User: 'authentik.core.models.User',
|
|
20
|
+
Group: 'authentik.core.models.Group',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function SyncObjectModelEnumFromJSON(json) {
|
|
24
|
+
return SyncObjectModelEnumFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SyncObjectModelEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
export function SyncObjectModelEnumToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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 { SyncObjectModelEnum } from './SyncObjectModelEnum';
|
|
13
|
+
/**
|
|
14
|
+
* Sync object serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SyncObjectRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface SyncObjectRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SyncObjectModelEnum}
|
|
22
|
+
* @memberof SyncObjectRequest
|
|
23
|
+
*/
|
|
24
|
+
syncObjectModel: SyncObjectModelEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SyncObjectRequest
|
|
29
|
+
*/
|
|
30
|
+
syncObjectId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SyncObjectRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSyncObjectRequest(value: object): boolean;
|
|
36
|
+
export declare function SyncObjectRequestFromJSON(json: any): SyncObjectRequest;
|
|
37
|
+
export declare function SyncObjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectRequest;
|
|
38
|
+
export declare function SyncObjectRequestToJSON(value?: SyncObjectRequest | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.6.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 { SyncObjectModelEnumFromJSON, SyncObjectModelEnumToJSON, } from './SyncObjectModelEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SyncObjectRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSyncObjectRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "syncObjectModel" in value;
|
|
21
|
+
isInstance = isInstance && "syncObjectId" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function SyncObjectRequestFromJSON(json) {
|
|
25
|
+
return SyncObjectRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SyncObjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'syncObjectModel': SyncObjectModelEnumFromJSON(json['sync_object_model']),
|
|
33
|
+
'syncObjectId': json['sync_object_id'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SyncObjectRequestToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'sync_object_model': SyncObjectModelEnumToJSON(value.syncObjectModel),
|
|
45
|
+
'sync_object_id': value.syncObjectId,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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 { LogEvent } from './LogEvent';
|
|
13
|
+
/**
|
|
14
|
+
* Result of a single object sync
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SyncObjectResult
|
|
17
|
+
*/
|
|
18
|
+
export interface SyncObjectResult {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LogEvent>}
|
|
22
|
+
* @memberof SyncObjectResult
|
|
23
|
+
*/
|
|
24
|
+
readonly messages: Array<LogEvent>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SyncObjectResult interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSyncObjectResult(value: object): boolean;
|
|
30
|
+
export declare function SyncObjectResultFromJSON(json: any): SyncObjectResult;
|
|
31
|
+
export declare function SyncObjectResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectResult;
|
|
32
|
+
export declare function SyncObjectResultToJSON(value?: SyncObjectResult | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.6.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 { LogEventFromJSON, } from './LogEvent';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SyncObjectResult interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSyncObjectResult(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "messages" in value;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function SyncObjectResultFromJSON(json) {
|
|
24
|
+
return SyncObjectResultFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SyncObjectResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'messages': (json['messages'].map(LogEventFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function SyncObjectResultToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
@@ -572,6 +572,9 @@ export * from './StaticDeviceRequest';
|
|
|
572
572
|
export * from './StaticDeviceToken';
|
|
573
573
|
export * from './StaticDeviceTokenRequest';
|
|
574
574
|
export * from './SubModeEnum';
|
|
575
|
+
export * from './SyncObjectModelEnum';
|
|
576
|
+
export * from './SyncObjectRequest';
|
|
577
|
+
export * from './SyncObjectResult';
|
|
575
578
|
export * from './SyncStatus';
|
|
576
579
|
export * from './SystemInfo';
|
|
577
580
|
export * from './SystemInfoRuntime';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -574,6 +574,9 @@ export * from './StaticDeviceRequest';
|
|
|
574
574
|
export * from './StaticDeviceToken';
|
|
575
575
|
export * from './StaticDeviceTokenRequest';
|
|
576
576
|
export * from './SubModeEnum';
|
|
577
|
+
export * from './SyncObjectModelEnum';
|
|
578
|
+
export * from './SyncObjectRequest';
|
|
579
|
+
export * from './SyncObjectResult';
|
|
577
580
|
export * from './SyncStatus';
|
|
578
581
|
export * from './SystemInfo';
|
|
579
582
|
export * from './SystemInfoRuntime';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SyncObjectModelEnum: {
|
|
17
|
+
readonly User: "authentik.core.models.User";
|
|
18
|
+
readonly Group: "authentik.core.models.Group";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type SyncObjectModelEnum = typeof SyncObjectModelEnum[keyof typeof SyncObjectModelEnum];
|
|
22
|
+
export declare function SyncObjectModelEnumFromJSON(json: any): SyncObjectModelEnum;
|
|
23
|
+
export declare function SyncObjectModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectModelEnum;
|
|
24
|
+
export declare function SyncObjectModelEnumToJSON(value?: SyncObjectModelEnum | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.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.SyncObjectModelEnumToJSON = exports.SyncObjectModelEnumFromJSONTyped = exports.SyncObjectModelEnumFromJSON = exports.SyncObjectModelEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.SyncObjectModelEnum = {
|
|
22
|
+
User: 'authentik.core.models.User',
|
|
23
|
+
Group: 'authentik.core.models.Group',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
};
|
|
26
|
+
function SyncObjectModelEnumFromJSON(json) {
|
|
27
|
+
return SyncObjectModelEnumFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SyncObjectModelEnumFromJSON = SyncObjectModelEnumFromJSON;
|
|
30
|
+
function SyncObjectModelEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.SyncObjectModelEnumFromJSONTyped = SyncObjectModelEnumFromJSONTyped;
|
|
34
|
+
function SyncObjectModelEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.SyncObjectModelEnumToJSON = SyncObjectModelEnumToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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 { SyncObjectModelEnum } from './SyncObjectModelEnum';
|
|
13
|
+
/**
|
|
14
|
+
* Sync object serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SyncObjectRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface SyncObjectRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SyncObjectModelEnum}
|
|
22
|
+
* @memberof SyncObjectRequest
|
|
23
|
+
*/
|
|
24
|
+
syncObjectModel: SyncObjectModelEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SyncObjectRequest
|
|
29
|
+
*/
|
|
30
|
+
syncObjectId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SyncObjectRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSyncObjectRequest(value: object): boolean;
|
|
36
|
+
export declare function SyncObjectRequestFromJSON(json: any): SyncObjectRequest;
|
|
37
|
+
export declare function SyncObjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectRequest;
|
|
38
|
+
export declare function SyncObjectRequestToJSON(value?: SyncObjectRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.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.SyncObjectRequestToJSON = exports.SyncObjectRequestFromJSONTyped = exports.SyncObjectRequestFromJSON = exports.instanceOfSyncObjectRequest = void 0;
|
|
17
|
+
const SyncObjectModelEnum_1 = require("./SyncObjectModelEnum");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SyncObjectRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSyncObjectRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "syncObjectModel" in value;
|
|
24
|
+
isInstance = isInstance && "syncObjectId" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfSyncObjectRequest = instanceOfSyncObjectRequest;
|
|
28
|
+
function SyncObjectRequestFromJSON(json) {
|
|
29
|
+
return SyncObjectRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.SyncObjectRequestFromJSON = SyncObjectRequestFromJSON;
|
|
32
|
+
function SyncObjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'syncObjectModel': (0, SyncObjectModelEnum_1.SyncObjectModelEnumFromJSON)(json['sync_object_model']),
|
|
38
|
+
'syncObjectId': json['sync_object_id'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.SyncObjectRequestFromJSONTyped = SyncObjectRequestFromJSONTyped;
|
|
42
|
+
function SyncObjectRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'sync_object_model': (0, SyncObjectModelEnum_1.SyncObjectModelEnumToJSON)(value.syncObjectModel),
|
|
51
|
+
'sync_object_id': value.syncObjectId,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.SyncObjectRequestToJSON = SyncObjectRequestToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.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 { LogEvent } from './LogEvent';
|
|
13
|
+
/**
|
|
14
|
+
* Result of a single object sync
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SyncObjectResult
|
|
17
|
+
*/
|
|
18
|
+
export interface SyncObjectResult {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LogEvent>}
|
|
22
|
+
* @memberof SyncObjectResult
|
|
23
|
+
*/
|
|
24
|
+
readonly messages: Array<LogEvent>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SyncObjectResult interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSyncObjectResult(value: object): boolean;
|
|
30
|
+
export declare function SyncObjectResultFromJSON(json: any): SyncObjectResult;
|
|
31
|
+
export declare function SyncObjectResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectResult;
|
|
32
|
+
export declare function SyncObjectResultToJSON(value?: SyncObjectResult | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.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.SyncObjectResultToJSON = exports.SyncObjectResultFromJSONTyped = exports.SyncObjectResultFromJSON = exports.instanceOfSyncObjectResult = void 0;
|
|
17
|
+
const LogEvent_1 = require("./LogEvent");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SyncObjectResult interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSyncObjectResult(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "messages" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSyncObjectResult = instanceOfSyncObjectResult;
|
|
27
|
+
function SyncObjectResultFromJSON(json) {
|
|
28
|
+
return SyncObjectResultFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SyncObjectResultFromJSON = SyncObjectResultFromJSON;
|
|
31
|
+
function SyncObjectResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'messages': (json['messages'].map(LogEvent_1.LogEventFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SyncObjectResultFromJSONTyped = SyncObjectResultFromJSONTyped;
|
|
40
|
+
function SyncObjectResultToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
49
|
+
exports.SyncObjectResultToJSON = SyncObjectResultToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -572,6 +572,9 @@ export * from './StaticDeviceRequest';
|
|
|
572
572
|
export * from './StaticDeviceToken';
|
|
573
573
|
export * from './StaticDeviceTokenRequest';
|
|
574
574
|
export * from './SubModeEnum';
|
|
575
|
+
export * from './SyncObjectModelEnum';
|
|
576
|
+
export * from './SyncObjectRequest';
|
|
577
|
+
export * from './SyncObjectResult';
|
|
575
578
|
export * from './SyncStatus';
|
|
576
579
|
export * from './SystemInfo';
|
|
577
580
|
export * from './SystemInfoRuntime';
|
package/dist/models/index.js
CHANGED
|
@@ -590,6 +590,9 @@ __exportStar(require("./StaticDeviceRequest"), exports);
|
|
|
590
590
|
__exportStar(require("./StaticDeviceToken"), exports);
|
|
591
591
|
__exportStar(require("./StaticDeviceTokenRequest"), exports);
|
|
592
592
|
__exportStar(require("./SubModeEnum"), exports);
|
|
593
|
+
__exportStar(require("./SyncObjectModelEnum"), exports);
|
|
594
|
+
__exportStar(require("./SyncObjectRequest"), exports);
|
|
595
|
+
__exportStar(require("./SyncObjectResult"), exports);
|
|
593
596
|
__exportStar(require("./SyncStatus"), exports);
|
|
594
597
|
__exportStar(require("./SystemInfo"), exports);
|
|
595
598
|
__exportStar(require("./SystemInfoRuntime"), exports);
|