@goauthentik/api 2024.10.5-1734022840 → 2024.10.5-1734528783
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 +14 -0
- package/dist/apis/CoreApi.d.ts +86 -1
- package/dist/apis/CoreApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/SourcesApi.d.ts +21 -5
- package/dist/apis/SourcesApi.js +51 -6
- package/dist/esm/apis/CoreApi.d.ts +86 -1
- package/dist/esm/apis/CoreApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/SourcesApi.d.ts +21 -5
- package/dist/esm/apis/SourcesApi.js +52 -7
- package/dist/esm/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/esm/models/ApplicationEntitlement.js +51 -0
- package/dist/esm/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/ApplicationEntitlementRequest.js +49 -0
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupPlexSourceConnection.js +8 -2
- package/dist/esm/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupPlexSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.js +49 -0
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.js +48 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.js +47 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserKerberosSourceConnection.js +4 -1
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserOAuthSourceConnection.js +5 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserPlexSourceConnection.js +5 -1
- package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserSAMLSourceConnection.js +5 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSourceConnection.d.ts +9 -3
- package/dist/esm/models/UserSourceConnection.js +7 -2
- package/dist/esm/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/models/ApplicationEntitlement.js +58 -0
- package/dist/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/ApplicationEntitlementRequest.js +56 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupKerberosSourceConnectionRequest.js +56 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupOAuthSourceConnectionRequest.js +56 -0
- package/dist/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/models/GroupPlexSourceConnection.js +8 -2
- package/dist/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupPlexSourceConnectionRequest.js +56 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupSAMLSourceConnectionRequest.js +56 -0
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/models/PaginatedApplicationEntitlementList.js +55 -0
- package/dist/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/PatchedApplicationEntitlementRequest.js +54 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/models/UserKerberosSourceConnection.js +4 -1
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/models/UserOAuthSourceConnection.js +5 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/models/UserPlexSourceConnection.js +5 -1
- package/dist/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/models/UserSAMLSourceConnection.js +5 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/models/UserSourceConnection.d.ts +9 -3
- package/dist/models/UserSourceConnection.js +7 -2
- package/dist/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +350 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/SourcesApi.ts +118 -6
- package/src/models/ApplicationEntitlement.ts +91 -0
- package/src/models/ApplicationEntitlementRequest.ts +83 -0
- package/src/models/GroupKerberosSourceConnection.ts +15 -4
- package/src/models/GroupKerberosSourceConnectionRequest.ts +84 -0
- package/src/models/GroupOAuthSourceConnection.ts +15 -4
- package/src/models/GroupOAuthSourceConnectionRequest.ts +84 -0
- package/src/models/GroupPlexSourceConnection.ts +15 -4
- package/src/models/GroupPlexSourceConnectionRequest.ts +84 -0
- package/src/models/GroupSAMLSourceConnection.ts +15 -4
- package/src/models/GroupSAMLSourceConnectionRequest.ts +84 -0
- package/src/models/IdentificationChallenge.ts +1 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedApplicationEntitlementList.ts +88 -0
- package/src/models/PatchedApplicationEntitlementRequest.ts +81 -0
- package/src/models/PatchedGroupKerberosSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupOAuthSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupPlexSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupSAMLSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +8 -0
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserPlexSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +11 -2
- package/src/models/UserKerberosSourceConnectionRequest.ts +9 -0
- package/src/models/UserOAuthSourceConnection.ts +13 -3
- package/src/models/UserOAuthSourceConnectionRequest.ts +18 -0
- package/src/models/UserPlexSourceConnection.ts +13 -3
- package/src/models/UserPlexSourceConnectionRequest.ts +18 -0
- package/src/models/UserSAMLSourceConnection.ts +13 -3
- package/src/models/UserSAMLSourceConnectionRequest.ts +18 -0
- package/src/models/UserSourceConnection.ts +14 -4
- package/src/models/UserSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +14 -0
|
@@ -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.10.5
|
|
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.PatchedGroupOAuthSourceConnectionRequestToJSON = exports.PatchedGroupOAuthSourceConnectionRequestFromJSONTyped = exports.PatchedGroupOAuthSourceConnectionRequestFromJSON = exports.instanceOfPatchedGroupOAuthSourceConnectionRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedGroupOAuthSourceConnectionRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedGroupOAuthSourceConnectionRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedGroupOAuthSourceConnectionRequest = instanceOfPatchedGroupOAuthSourceConnectionRequest;
|
|
26
|
+
function PatchedGroupOAuthSourceConnectionRequestFromJSON(json) {
|
|
27
|
+
return PatchedGroupOAuthSourceConnectionRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedGroupOAuthSourceConnectionRequestFromJSON = PatchedGroupOAuthSourceConnectionRequestFromJSON;
|
|
30
|
+
function PatchedGroupOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
37
|
+
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.PatchedGroupOAuthSourceConnectionRequestFromJSONTyped = PatchedGroupOAuthSourceConnectionRequestFromJSONTyped;
|
|
41
|
+
function PatchedGroupOAuthSourceConnectionRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'group': value.group,
|
|
50
|
+
'source': value.source,
|
|
51
|
+
'identifier': value.identifier,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PatchedGroupOAuthSourceConnectionRequestToJSON = PatchedGroupOAuthSourceConnectionRequestToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* Plex Group-Source connection Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PatchedGroupPlexSourceConnectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedGroupPlexSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PatchedGroupPlexSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
group?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedGroupPlexSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedGroupPlexSourceConnectionRequest
|
|
34
|
+
*/
|
|
35
|
+
identifier?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PatchedGroupPlexSourceConnectionRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPatchedGroupPlexSourceConnectionRequest(value: object): boolean;
|
|
41
|
+
export declare function PatchedGroupPlexSourceConnectionRequestFromJSON(json: any): PatchedGroupPlexSourceConnectionRequest;
|
|
42
|
+
export declare function PatchedGroupPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupPlexSourceConnectionRequest;
|
|
43
|
+
export declare function PatchedGroupPlexSourceConnectionRequestToJSON(value?: PatchedGroupPlexSourceConnectionRequest | 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.10.5
|
|
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.PatchedGroupPlexSourceConnectionRequestToJSON = exports.PatchedGroupPlexSourceConnectionRequestFromJSONTyped = exports.PatchedGroupPlexSourceConnectionRequestFromJSON = exports.instanceOfPatchedGroupPlexSourceConnectionRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedGroupPlexSourceConnectionRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedGroupPlexSourceConnectionRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedGroupPlexSourceConnectionRequest = instanceOfPatchedGroupPlexSourceConnectionRequest;
|
|
26
|
+
function PatchedGroupPlexSourceConnectionRequestFromJSON(json) {
|
|
27
|
+
return PatchedGroupPlexSourceConnectionRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedGroupPlexSourceConnectionRequestFromJSON = PatchedGroupPlexSourceConnectionRequestFromJSON;
|
|
30
|
+
function PatchedGroupPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
37
|
+
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.PatchedGroupPlexSourceConnectionRequestFromJSONTyped = PatchedGroupPlexSourceConnectionRequestFromJSONTyped;
|
|
41
|
+
function PatchedGroupPlexSourceConnectionRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'group': value.group,
|
|
50
|
+
'source': value.source,
|
|
51
|
+
'identifier': value.identifier,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PatchedGroupPlexSourceConnectionRequestToJSON = PatchedGroupPlexSourceConnectionRequestToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* OAuth Group-Source connection Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PatchedGroupSAMLSourceConnectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedGroupSAMLSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
group?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
34
|
+
*/
|
|
35
|
+
identifier?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PatchedGroupSAMLSourceConnectionRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPatchedGroupSAMLSourceConnectionRequest(value: object): boolean;
|
|
41
|
+
export declare function PatchedGroupSAMLSourceConnectionRequestFromJSON(json: any): PatchedGroupSAMLSourceConnectionRequest;
|
|
42
|
+
export declare function PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupSAMLSourceConnectionRequest;
|
|
43
|
+
export declare function PatchedGroupSAMLSourceConnectionRequestToJSON(value?: PatchedGroupSAMLSourceConnectionRequest | 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.10.5
|
|
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.PatchedGroupSAMLSourceConnectionRequestToJSON = exports.PatchedGroupSAMLSourceConnectionRequestFromJSONTyped = exports.PatchedGroupSAMLSourceConnectionRequestFromJSON = exports.instanceOfPatchedGroupSAMLSourceConnectionRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedGroupSAMLSourceConnectionRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedGroupSAMLSourceConnectionRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedGroupSAMLSourceConnectionRequest = instanceOfPatchedGroupSAMLSourceConnectionRequest;
|
|
26
|
+
function PatchedGroupSAMLSourceConnectionRequestFromJSON(json) {
|
|
27
|
+
return PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedGroupSAMLSourceConnectionRequestFromJSON = PatchedGroupSAMLSourceConnectionRequestFromJSON;
|
|
30
|
+
function PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
37
|
+
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.PatchedGroupSAMLSourceConnectionRequestFromJSONTyped = PatchedGroupSAMLSourceConnectionRequestFromJSONTyped;
|
|
41
|
+
function PatchedGroupSAMLSourceConnectionRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'group': value.group,
|
|
50
|
+
'source': value.source,
|
|
51
|
+
'identifier': value.identifier,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PatchedGroupSAMLSourceConnectionRequestToJSON = PatchedGroupSAMLSourceConnectionRequestToJSON;
|
|
@@ -21,6 +21,12 @@ export interface PatchedUserKerberosSourceConnectionRequest {
|
|
|
21
21
|
* @memberof PatchedUserKerberosSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedUserKerberosSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -33,6 +33,7 @@ function PatchedUserKerberosSourceConnectionRequestFromJSONTyped(json, ignoreDis
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
36
37
|
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -46,6 +47,7 @@ function PatchedUserKerberosSourceConnectionRequestToJSON(value) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'user': value.user,
|
|
50
|
+
'source': value.source,
|
|
49
51
|
'identifier': value.identifier,
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface PatchedUserOAuthSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface PatchedUserOAuthSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -32,6 +32,8 @@ function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
35
37
|
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
36
38
|
'accessToken': !(0, runtime_1.exists)(json, 'access_token') ? undefined : json['access_token'],
|
|
37
39
|
};
|
|
@@ -45,6 +47,8 @@ function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
45
47
|
return null;
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
50
|
+
'user': value.user,
|
|
51
|
+
'source': value.source,
|
|
48
52
|
'identifier': value.identifier,
|
|
49
53
|
'access_token': value.accessToken,
|
|
50
54
|
};
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface PatchedUserPlexSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface PatchedUserPlexSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -32,6 +32,8 @@ function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscrim
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
35
37
|
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
36
38
|
'plexToken': !(0, runtime_1.exists)(json, 'plex_token') ? undefined : json['plex_token'],
|
|
37
39
|
};
|
|
@@ -45,6 +47,8 @@ function PatchedUserPlexSourceConnectionRequestToJSON(value) {
|
|
|
45
47
|
return null;
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
50
|
+
'user': value.user,
|
|
51
|
+
'source': value.source,
|
|
48
52
|
'identifier': value.identifier,
|
|
49
53
|
'plex_token': value.plexToken,
|
|
50
54
|
};
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface PatchedUserSAMLSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface PatchedUserSAMLSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PatchedUserSAMLSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedUserSAMLSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -32,6 +32,8 @@ function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscrim
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
35
37
|
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -44,6 +46,8 @@ function PatchedUserSAMLSourceConnectionRequestToJSON(value) {
|
|
|
44
46
|
return null;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
49
|
+
'user': value.user,
|
|
50
|
+
'source': value.source,
|
|
47
51
|
'identifier': value.identifier,
|
|
48
52
|
};
|
|
49
53
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* User source connection
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PatchedUserSourceConnectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedUserSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PatchedUserSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PatchedUserSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PatchedUserSourceConnectionRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPatchedUserSourceConnectionRequest(value: object): boolean;
|
|
35
|
+
export declare function PatchedUserSourceConnectionRequestFromJSON(json: any): PatchedUserSourceConnectionRequest;
|
|
36
|
+
export declare function PatchedUserSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserSourceConnectionRequest;
|
|
37
|
+
export declare function PatchedUserSourceConnectionRequestToJSON(value?: PatchedUserSourceConnectionRequest | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.10.5
|
|
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.PatchedUserSourceConnectionRequestToJSON = exports.PatchedUserSourceConnectionRequestFromJSONTyped = exports.PatchedUserSourceConnectionRequestFromJSON = exports.instanceOfPatchedUserSourceConnectionRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedUserSourceConnectionRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedUserSourceConnectionRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedUserSourceConnectionRequest = instanceOfPatchedUserSourceConnectionRequest;
|
|
26
|
+
function PatchedUserSourceConnectionRequestFromJSON(json) {
|
|
27
|
+
return PatchedUserSourceConnectionRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedUserSourceConnectionRequestFromJSON = PatchedUserSourceConnectionRequestFromJSON;
|
|
30
|
+
function PatchedUserSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.PatchedUserSourceConnectionRequestFromJSONTyped = PatchedUserSourceConnectionRequestFromJSONTyped;
|
|
40
|
+
function PatchedUserSourceConnectionRequestToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'user': value.user,
|
|
49
|
+
'source': value.source,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.PatchedUserSourceConnectionRequestToJSON = PatchedUserSourceConnectionRequestToJSON;
|
|
@@ -28,12 +28,18 @@ export interface UserKerberosSourceConnection {
|
|
|
28
28
|
* @memberof UserKerberosSourceConnection
|
|
29
29
|
*/
|
|
30
30
|
user: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UserKerberosSourceConnection
|
|
35
|
+
*/
|
|
36
|
+
source: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {Source}
|
|
34
40
|
* @memberof UserKerberosSourceConnection
|
|
35
41
|
*/
|
|
36
|
-
readonly
|
|
42
|
+
readonly sourceObj: Source;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {Date}
|
|
@@ -23,6 +23,7 @@ function instanceOfUserKerberosSourceConnection(value) {
|
|
|
23
23
|
isInstance = isInstance && "pk" in value;
|
|
24
24
|
isInstance = isInstance && "user" in value;
|
|
25
25
|
isInstance = isInstance && "source" in value;
|
|
26
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
26
27
|
isInstance = isInstance && "created" in value;
|
|
27
28
|
isInstance = isInstance && "identifier" in value;
|
|
28
29
|
return isInstance;
|
|
@@ -39,7 +40,8 @@ function UserKerberosSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
return {
|
|
40
41
|
'pk': json['pk'],
|
|
41
42
|
'user': json['user'],
|
|
42
|
-
'source':
|
|
43
|
+
'source': json['source'],
|
|
44
|
+
'sourceObj': (0, Source_1.SourceFromJSON)(json['source_obj']),
|
|
43
45
|
'created': (new Date(json['created'])),
|
|
44
46
|
'identifier': json['identifier'],
|
|
45
47
|
};
|
|
@@ -54,6 +56,7 @@ function UserKerberosSourceConnectionToJSON(value) {
|
|
|
54
56
|
}
|
|
55
57
|
return {
|
|
56
58
|
'user': value.user,
|
|
59
|
+
'source': value.source,
|
|
57
60
|
'identifier': value.identifier,
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -21,6 +21,12 @@ export interface UserKerberosSourceConnectionRequest {
|
|
|
21
21
|
* @memberof UserKerberosSourceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
user: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserKerberosSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source: string;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -20,6 +20,7 @@ exports.UserKerberosSourceConnectionRequestToJSON = exports.UserKerberosSourceCo
|
|
|
20
20
|
function instanceOfUserKerberosSourceConnectionRequest(value) {
|
|
21
21
|
let isInstance = true;
|
|
22
22
|
isInstance = isInstance && "user" in value;
|
|
23
|
+
isInstance = isInstance && "source" in value;
|
|
23
24
|
isInstance = isInstance && "identifier" in value;
|
|
24
25
|
return isInstance;
|
|
25
26
|
}
|
|
@@ -34,6 +35,7 @@ function UserKerberosSourceConnectionRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
37
|
'user': json['user'],
|
|
38
|
+
'source': json['source'],
|
|
37
39
|
'identifier': json['identifier'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -47,6 +49,7 @@ function UserKerberosSourceConnectionRequestToJSON(value) {
|
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
'user': value.user,
|
|
52
|
+
'source': value.source,
|
|
50
53
|
'identifier': value.identifier,
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -27,13 +27,19 @@ export interface UserOAuthSourceConnection {
|
|
|
27
27
|
* @type {number}
|
|
28
28
|
* @memberof UserOAuthSourceConnection
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
user: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UserOAuthSourceConnection
|
|
35
|
+
*/
|
|
36
|
+
source: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {Source}
|
|
34
40
|
* @memberof UserOAuthSourceConnection
|
|
35
41
|
*/
|
|
36
|
-
readonly
|
|
42
|
+
readonly sourceObj: Source;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {Date}
|
|
@@ -23,6 +23,7 @@ function instanceOfUserOAuthSourceConnection(value) {
|
|
|
23
23
|
isInstance = isInstance && "pk" in value;
|
|
24
24
|
isInstance = isInstance && "user" in value;
|
|
25
25
|
isInstance = isInstance && "source" in value;
|
|
26
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
26
27
|
isInstance = isInstance && "created" in value;
|
|
27
28
|
isInstance = isInstance && "identifier" in value;
|
|
28
29
|
return isInstance;
|
|
@@ -39,7 +40,8 @@ function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
return {
|
|
40
41
|
'pk': json['pk'],
|
|
41
42
|
'user': json['user'],
|
|
42
|
-
'source':
|
|
43
|
+
'source': json['source'],
|
|
44
|
+
'sourceObj': (0, Source_1.SourceFromJSON)(json['source_obj']),
|
|
43
45
|
'created': (new Date(json['created'])),
|
|
44
46
|
'identifier': json['identifier'],
|
|
45
47
|
};
|
|
@@ -53,6 +55,8 @@ function UserOAuthSourceConnectionToJSON(value) {
|
|
|
53
55
|
return null;
|
|
54
56
|
}
|
|
55
57
|
return {
|
|
58
|
+
'user': value.user,
|
|
59
|
+
'source': value.source,
|
|
56
60
|
'identifier': value.identifier,
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface UserOAuthSourceConnectionRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface UserOAuthSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserOAuthSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
user: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserOAuthSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -20,6 +20,8 @@ const runtime_1 = require("../runtime");
|
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfUserOAuthSourceConnectionRequest(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "user" in value;
|
|
24
|
+
isInstance = isInstance && "source" in value;
|
|
23
25
|
isInstance = isInstance && "identifier" in value;
|
|
24
26
|
return isInstance;
|
|
25
27
|
}
|
|
@@ -33,6 +35,8 @@ function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
38
|
+
'user': json['user'],
|
|
39
|
+
'source': json['source'],
|
|
36
40
|
'identifier': json['identifier'],
|
|
37
41
|
'accessToken': !(0, runtime_1.exists)(json, 'access_token') ? undefined : json['access_token'],
|
|
38
42
|
};
|
|
@@ -46,6 +50,8 @@ function UserOAuthSourceConnectionRequestToJSON(value) {
|
|
|
46
50
|
return null;
|
|
47
51
|
}
|
|
48
52
|
return {
|
|
53
|
+
'user': value.user,
|
|
54
|
+
'source': value.source,
|
|
49
55
|
'identifier': value.identifier,
|
|
50
56
|
'access_token': value.accessToken,
|
|
51
57
|
};
|