@goauthentik/api 2022.3.3-1648933813 → 2022.3.3-1649060617
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/dist/esm/models/Application.d.ts +1 -1
- package/dist/esm/models/Application.js +2 -3
- package/dist/esm/models/ApplicationRequest.d.ts +0 -7
- package/dist/esm/models/ApplicationRequest.js +0 -3
- package/dist/esm/models/PatchedApplicationRequest.d.ts +0 -7
- package/dist/esm/models/PatchedApplicationRequest.js +0 -3
- package/dist/esm/models/PatchedTokenRequest.d.ts +0 -7
- package/dist/esm/models/PatchedTokenRequest.js +0 -3
- package/dist/esm/models/Token.d.ts +1 -1
- package/dist/esm/models/Token.js +2 -3
- package/dist/esm/models/TokenRequest.d.ts +0 -7
- package/dist/esm/models/TokenRequest.js +0 -3
- package/dist/models/Application.d.ts +1 -1
- package/dist/models/Application.js +1 -2
- package/dist/models/ApplicationRequest.d.ts +0 -7
- package/dist/models/ApplicationRequest.js +0 -3
- package/dist/models/PatchedApplicationRequest.d.ts +0 -7
- package/dist/models/PatchedApplicationRequest.js +0 -3
- package/dist/models/PatchedTokenRequest.d.ts +0 -7
- package/dist/models/PatchedTokenRequest.js +0 -3
- package/dist/models/Token.d.ts +1 -1
- package/dist/models/Token.js +1 -2
- package/dist/models/TokenRequest.d.ts +0 -7
- package/dist/models/TokenRequest.js +0 -3
- package/package.json +1 -1
- package/src/models/Application.ts +2 -3
- package/src/models/ApplicationRequest.ts +0 -14
- package/src/models/PatchedApplicationRequest.ts +0 -14
- package/src/models/PatchedTokenRequest.ts +0 -14
- package/src/models/Token.ts +2 -3
- package/src/models/TokenRequest.ts +0 -14
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
|
16
|
-
import { ProviderFromJSON,
|
|
16
|
+
import { ProviderFromJSON, } from './Provider';
|
|
17
17
|
export function ApplicationFromJSON(json) {
|
|
18
18
|
return ApplicationFromJSONTyped(json, false);
|
|
19
19
|
}
|
|
@@ -26,7 +26,7 @@ export function ApplicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
'name': json['name'],
|
|
27
27
|
'slug': json['slug'],
|
|
28
28
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
29
|
-
'providerObj':
|
|
29
|
+
'providerObj': ProviderFromJSON(json['provider_obj']),
|
|
30
30
|
'launchUrl': json['launch_url'],
|
|
31
31
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
32
32
|
'metaIcon': json['meta_icon'],
|
|
@@ -47,7 +47,6 @@ export function ApplicationToJSON(value) {
|
|
|
47
47
|
'name': value.name,
|
|
48
48
|
'slug': value.slug,
|
|
49
49
|
'provider': value.provider,
|
|
50
|
-
'provider_obj': ProviderToJSON(value.providerObj),
|
|
51
50
|
'meta_launch_url': value.metaLaunchUrl,
|
|
52
51
|
'meta_description': value.metaDescription,
|
|
53
52
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
|
-
import { ProviderRequest } from './ProviderRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Application Serializer
|
|
16
15
|
* @export
|
|
@@ -35,12 +34,6 @@ export interface ApplicationRequest {
|
|
|
35
34
|
* @memberof ApplicationRequest
|
|
36
35
|
*/
|
|
37
36
|
provider?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ProviderRequest}
|
|
41
|
-
* @memberof ApplicationRequest
|
|
42
|
-
*/
|
|
43
|
-
providerObj?: ProviderRequest;
|
|
44
37
|
/**
|
|
45
38
|
*
|
|
46
39
|
* @type {string}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
|
16
|
-
import { ProviderRequestFromJSON, ProviderRequestToJSON, } from './ProviderRequest';
|
|
17
16
|
export function ApplicationRequestFromJSON(json) {
|
|
18
17
|
return ApplicationRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -25,7 +24,6 @@ export function ApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
24
|
'name': json['name'],
|
|
26
25
|
'slug': json['slug'],
|
|
27
26
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
28
|
-
'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
|
|
29
27
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
30
28
|
'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
31
29
|
'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -44,7 +42,6 @@ export function ApplicationRequestToJSON(value) {
|
|
|
44
42
|
'name': value.name,
|
|
45
43
|
'slug': value.slug,
|
|
46
44
|
'provider': value.provider,
|
|
47
|
-
'provider_obj': ProviderRequestToJSON(value.providerObj),
|
|
48
45
|
'meta_launch_url': value.metaLaunchUrl,
|
|
49
46
|
'meta_description': value.metaDescription,
|
|
50
47
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
|
-
import { ProviderRequest } from './ProviderRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Application Serializer
|
|
16
15
|
* @export
|
|
@@ -35,12 +34,6 @@ export interface PatchedApplicationRequest {
|
|
|
35
34
|
* @memberof PatchedApplicationRequest
|
|
36
35
|
*/
|
|
37
36
|
provider?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ProviderRequest}
|
|
41
|
-
* @memberof PatchedApplicationRequest
|
|
42
|
-
*/
|
|
43
|
-
providerObj?: ProviderRequest;
|
|
44
37
|
/**
|
|
45
38
|
*
|
|
46
39
|
* @type {string}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
|
16
|
-
import { ProviderRequestFromJSON, ProviderRequestToJSON, } from './ProviderRequest';
|
|
17
16
|
export function PatchedApplicationRequestFromJSON(json) {
|
|
18
17
|
return PatchedApplicationRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -25,7 +24,6 @@ export function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
25
24
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
26
25
|
'slug': !exists(json, 'slug') ? undefined : json['slug'],
|
|
27
26
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
28
|
-
'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
|
|
29
27
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
30
28
|
'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
31
29
|
'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -44,7 +42,6 @@ export function PatchedApplicationRequestToJSON(value) {
|
|
|
44
42
|
'name': value.name,
|
|
45
43
|
'slug': value.slug,
|
|
46
44
|
'provider': value.provider,
|
|
47
|
-
'provider_obj': ProviderRequestToJSON(value.providerObj),
|
|
48
45
|
'meta_launch_url': value.metaLaunchUrl,
|
|
49
46
|
'meta_description': value.metaDescription,
|
|
50
47
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { IntentEnum } from './IntentEnum';
|
|
13
|
-
import { UserRequest } from './UserRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Token Serializer
|
|
16
15
|
* @export
|
|
@@ -41,12 +40,6 @@ export interface PatchedTokenRequest {
|
|
|
41
40
|
* @memberof PatchedTokenRequest
|
|
42
41
|
*/
|
|
43
42
|
user?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {UserRequest}
|
|
47
|
-
* @memberof PatchedTokenRequest
|
|
48
|
-
*/
|
|
49
|
-
userObj?: UserRequest;
|
|
50
43
|
/**
|
|
51
44
|
*
|
|
52
45
|
* @type {string}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
|
|
16
|
-
import { UserRequestFromJSON, UserRequestToJSON, } from './UserRequest';
|
|
17
16
|
export function PatchedTokenRequestFromJSON(json) {
|
|
18
17
|
return PatchedTokenRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -26,7 +25,6 @@ export function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
25
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
27
26
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
28
27
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
29
|
-
'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
|
|
30
28
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
31
29
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
32
30
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -44,7 +42,6 @@ export function PatchedTokenRequestToJSON(value) {
|
|
|
44
42
|
'identifier': value.identifier,
|
|
45
43
|
'intent': IntentEnumToJSON(value.intent),
|
|
46
44
|
'user': value.user,
|
|
47
|
-
'user_obj': UserRequestToJSON(value.userObj),
|
|
48
45
|
'description': value.description,
|
|
49
46
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
50
47
|
'expiring': value.expiring,
|
package/dist/esm/models/Token.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
|
|
16
|
-
import { UserFromJSON,
|
|
16
|
+
import { UserFromJSON, } from './User';
|
|
17
17
|
export function TokenFromJSON(json) {
|
|
18
18
|
return TokenFromJSONTyped(json, false);
|
|
19
19
|
}
|
|
@@ -27,7 +27,7 @@ export function TokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'identifier': json['identifier'],
|
|
28
28
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
29
29
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
30
|
-
'userObj':
|
|
30
|
+
'userObj': UserFromJSON(json['user_obj']),
|
|
31
31
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
32
32
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
33
33
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -45,7 +45,6 @@ export function TokenToJSON(value) {
|
|
|
45
45
|
'identifier': value.identifier,
|
|
46
46
|
'intent': IntentEnumToJSON(value.intent),
|
|
47
47
|
'user': value.user,
|
|
48
|
-
'user_obj': UserToJSON(value.userObj),
|
|
49
48
|
'description': value.description,
|
|
50
49
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
51
50
|
'expiring': value.expiring,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { IntentEnum } from './IntentEnum';
|
|
13
|
-
import { UserRequest } from './UserRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Token Serializer
|
|
16
15
|
* @export
|
|
@@ -41,12 +40,6 @@ export interface TokenRequest {
|
|
|
41
40
|
* @memberof TokenRequest
|
|
42
41
|
*/
|
|
43
42
|
user?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {UserRequest}
|
|
47
|
-
* @memberof TokenRequest
|
|
48
|
-
*/
|
|
49
|
-
userObj?: UserRequest;
|
|
50
43
|
/**
|
|
51
44
|
*
|
|
52
45
|
* @type {string}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';
|
|
16
|
-
import { UserRequestFromJSON, UserRequestToJSON, } from './UserRequest';
|
|
17
16
|
export function TokenRequestFromJSON(json) {
|
|
18
17
|
return TokenRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -26,7 +25,6 @@ export function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
25
|
'identifier': json['identifier'],
|
|
27
26
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
28
27
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
29
|
-
'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
|
|
30
28
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
31
29
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
32
30
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -44,7 +42,6 @@ export function TokenRequestToJSON(value) {
|
|
|
44
42
|
'identifier': value.identifier,
|
|
45
43
|
'intent': IntentEnumToJSON(value.intent),
|
|
46
44
|
'user': value.user,
|
|
47
|
-
'user_obj': UserRequestToJSON(value.userObj),
|
|
48
45
|
'description': value.description,
|
|
49
46
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
50
47
|
'expiring': value.expiring,
|
|
@@ -30,7 +30,7 @@ function ApplicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'name': json['name'],
|
|
31
31
|
'slug': json['slug'],
|
|
32
32
|
'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
|
|
33
|
-
'providerObj':
|
|
33
|
+
'providerObj': Provider_1.ProviderFromJSON(json['provider_obj']),
|
|
34
34
|
'launchUrl': json['launch_url'],
|
|
35
35
|
'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
36
36
|
'metaIcon': json['meta_icon'],
|
|
@@ -52,7 +52,6 @@ function ApplicationToJSON(value) {
|
|
|
52
52
|
'name': value.name,
|
|
53
53
|
'slug': value.slug,
|
|
54
54
|
'provider': value.provider,
|
|
55
|
-
'provider_obj': Provider_1.ProviderToJSON(value.providerObj),
|
|
56
55
|
'meta_launch_url': value.metaLaunchUrl,
|
|
57
56
|
'meta_description': value.metaDescription,
|
|
58
57
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
|
-
import { ProviderRequest } from './ProviderRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Application Serializer
|
|
16
15
|
* @export
|
|
@@ -35,12 +34,6 @@ export interface ApplicationRequest {
|
|
|
35
34
|
* @memberof ApplicationRequest
|
|
36
35
|
*/
|
|
37
36
|
provider?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ProviderRequest}
|
|
41
|
-
* @memberof ApplicationRequest
|
|
42
|
-
*/
|
|
43
|
-
providerObj?: ProviderRequest;
|
|
44
37
|
/**
|
|
45
38
|
*
|
|
46
39
|
* @type {string}
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.ApplicationRequestToJSON = exports.ApplicationRequestFromJSONTyped = exports.ApplicationRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const PolicyEngineMode_1 = require("./PolicyEngineMode");
|
|
19
|
-
const ProviderRequest_1 = require("./ProviderRequest");
|
|
20
19
|
function ApplicationRequestFromJSON(json) {
|
|
21
20
|
return ApplicationRequestFromJSONTyped(json, false);
|
|
22
21
|
}
|
|
@@ -29,7 +28,6 @@ function ApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
28
|
'name': json['name'],
|
|
30
29
|
'slug': json['slug'],
|
|
31
30
|
'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
|
|
32
|
-
'providerObj': !runtime_1.exists(json, 'provider_obj') ? undefined : ProviderRequest_1.ProviderRequestFromJSON(json['provider_obj']),
|
|
33
31
|
'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
34
32
|
'metaDescription': !runtime_1.exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
35
33
|
'metaPublisher': !runtime_1.exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -49,7 +47,6 @@ function ApplicationRequestToJSON(value) {
|
|
|
49
47
|
'name': value.name,
|
|
50
48
|
'slug': value.slug,
|
|
51
49
|
'provider': value.provider,
|
|
52
|
-
'provider_obj': ProviderRequest_1.ProviderRequestToJSON(value.providerObj),
|
|
53
50
|
'meta_launch_url': value.metaLaunchUrl,
|
|
54
51
|
'meta_description': value.metaDescription,
|
|
55
52
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
|
-
import { ProviderRequest } from './ProviderRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Application Serializer
|
|
16
15
|
* @export
|
|
@@ -35,12 +34,6 @@ export interface PatchedApplicationRequest {
|
|
|
35
34
|
* @memberof PatchedApplicationRequest
|
|
36
35
|
*/
|
|
37
36
|
provider?: number | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ProviderRequest}
|
|
41
|
-
* @memberof PatchedApplicationRequest
|
|
42
|
-
*/
|
|
43
|
-
providerObj?: ProviderRequest;
|
|
44
37
|
/**
|
|
45
38
|
*
|
|
46
39
|
* @type {string}
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PatchedApplicationRequestToJSON = exports.PatchedApplicationRequestFromJSONTyped = exports.PatchedApplicationRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const PolicyEngineMode_1 = require("./PolicyEngineMode");
|
|
19
|
-
const ProviderRequest_1 = require("./ProviderRequest");
|
|
20
19
|
function PatchedApplicationRequestFromJSON(json) {
|
|
21
20
|
return PatchedApplicationRequestFromJSONTyped(json, false);
|
|
22
21
|
}
|
|
@@ -29,7 +28,6 @@ function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
28
|
'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
|
|
30
29
|
'slug': !runtime_1.exists(json, 'slug') ? undefined : json['slug'],
|
|
31
30
|
'provider': !runtime_1.exists(json, 'provider') ? undefined : json['provider'],
|
|
32
|
-
'providerObj': !runtime_1.exists(json, 'provider_obj') ? undefined : ProviderRequest_1.ProviderRequestFromJSON(json['provider_obj']),
|
|
33
31
|
'metaLaunchUrl': !runtime_1.exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
34
32
|
'metaDescription': !runtime_1.exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
35
33
|
'metaPublisher': !runtime_1.exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -49,7 +47,6 @@ function PatchedApplicationRequestToJSON(value) {
|
|
|
49
47
|
'name': value.name,
|
|
50
48
|
'slug': value.slug,
|
|
51
49
|
'provider': value.provider,
|
|
52
|
-
'provider_obj': ProviderRequest_1.ProviderRequestToJSON(value.providerObj),
|
|
53
50
|
'meta_launch_url': value.metaLaunchUrl,
|
|
54
51
|
'meta_description': value.metaDescription,
|
|
55
52
|
'meta_publisher': value.metaPublisher,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { IntentEnum } from './IntentEnum';
|
|
13
|
-
import { UserRequest } from './UserRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Token Serializer
|
|
16
15
|
* @export
|
|
@@ -41,12 +40,6 @@ export interface PatchedTokenRequest {
|
|
|
41
40
|
* @memberof PatchedTokenRequest
|
|
42
41
|
*/
|
|
43
42
|
user?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {UserRequest}
|
|
47
|
-
* @memberof PatchedTokenRequest
|
|
48
|
-
*/
|
|
49
|
-
userObj?: UserRequest;
|
|
50
43
|
/**
|
|
51
44
|
*
|
|
52
45
|
* @type {string}
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PatchedTokenRequestToJSON = exports.PatchedTokenRequestFromJSONTyped = exports.PatchedTokenRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const IntentEnum_1 = require("./IntentEnum");
|
|
19
|
-
const UserRequest_1 = require("./UserRequest");
|
|
20
19
|
function PatchedTokenRequestFromJSON(json) {
|
|
21
20
|
return PatchedTokenRequestFromJSONTyped(json, false);
|
|
22
21
|
}
|
|
@@ -30,7 +29,6 @@ function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
29
|
'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
31
30
|
'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
|
|
32
31
|
'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
|
|
33
|
-
'userObj': !runtime_1.exists(json, 'user_obj') ? undefined : UserRequest_1.UserRequestFromJSON(json['user_obj']),
|
|
34
32
|
'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
|
|
35
33
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
36
34
|
'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -49,7 +47,6 @@ function PatchedTokenRequestToJSON(value) {
|
|
|
49
47
|
'identifier': value.identifier,
|
|
50
48
|
'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
|
|
51
49
|
'user': value.user,
|
|
52
|
-
'user_obj': UserRequest_1.UserRequestToJSON(value.userObj),
|
|
53
50
|
'description': value.description,
|
|
54
51
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
55
52
|
'expiring': value.expiring,
|
package/dist/models/Token.d.ts
CHANGED
package/dist/models/Token.js
CHANGED
|
@@ -31,7 +31,7 @@ function TokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'identifier': json['identifier'],
|
|
32
32
|
'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
|
|
33
33
|
'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
|
|
34
|
-
'userObj':
|
|
34
|
+
'userObj': User_1.UserFromJSON(json['user_obj']),
|
|
35
35
|
'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
|
|
36
36
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
37
37
|
'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -50,7 +50,6 @@ function TokenToJSON(value) {
|
|
|
50
50
|
'identifier': value.identifier,
|
|
51
51
|
'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
|
|
52
52
|
'user': value.user,
|
|
53
|
-
'user_obj': User_1.UserToJSON(value.userObj),
|
|
54
53
|
'description': value.description,
|
|
55
54
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
56
55
|
'expiring': value.expiring,
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { IntentEnum } from './IntentEnum';
|
|
13
|
-
import { UserRequest } from './UserRequest';
|
|
14
13
|
/**
|
|
15
14
|
* Token Serializer
|
|
16
15
|
* @export
|
|
@@ -41,12 +40,6 @@ export interface TokenRequest {
|
|
|
41
40
|
* @memberof TokenRequest
|
|
42
41
|
*/
|
|
43
42
|
user?: number;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {UserRequest}
|
|
47
|
-
* @memberof TokenRequest
|
|
48
|
-
*/
|
|
49
|
-
userObj?: UserRequest;
|
|
50
43
|
/**
|
|
51
44
|
*
|
|
52
45
|
* @type {string}
|
|
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.TokenRequestToJSON = exports.TokenRequestFromJSONTyped = exports.TokenRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const IntentEnum_1 = require("./IntentEnum");
|
|
19
|
-
const UserRequest_1 = require("./UserRequest");
|
|
20
19
|
function TokenRequestFromJSON(json) {
|
|
21
20
|
return TokenRequestFromJSONTyped(json, false);
|
|
22
21
|
}
|
|
@@ -30,7 +29,6 @@ function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
29
|
'identifier': json['identifier'],
|
|
31
30
|
'intent': !runtime_1.exists(json, 'intent') ? undefined : IntentEnum_1.IntentEnumFromJSON(json['intent']),
|
|
32
31
|
'user': !runtime_1.exists(json, 'user') ? undefined : json['user'],
|
|
33
|
-
'userObj': !runtime_1.exists(json, 'user_obj') ? undefined : UserRequest_1.UserRequestFromJSON(json['user_obj']),
|
|
34
32
|
'description': !runtime_1.exists(json, 'description') ? undefined : json['description'],
|
|
35
33
|
'expires': !runtime_1.exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
36
34
|
'expiring': !runtime_1.exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -49,7 +47,6 @@ function TokenRequestToJSON(value) {
|
|
|
49
47
|
'identifier': value.identifier,
|
|
50
48
|
'intent': IntentEnum_1.IntentEnumToJSON(value.intent),
|
|
51
49
|
'user': value.user,
|
|
52
|
-
'user_obj': UserRequest_1.UserRequestToJSON(value.userObj),
|
|
53
50
|
'description': value.description,
|
|
54
51
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
55
52
|
'expiring': value.expiring,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@goauthentik/api", "version": "2022.3.3-
|
|
1
|
+
{"name": "@goauthentik/api", "version": "2022.3.3-1649060617", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
|
|
@@ -61,7 +61,7 @@ export interface Application {
|
|
|
61
61
|
* @type {Provider}
|
|
62
62
|
* @memberof Application
|
|
63
63
|
*/
|
|
64
|
-
providerObj
|
|
64
|
+
readonly providerObj: Provider | null;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {string}
|
|
@@ -120,7 +120,7 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
120
120
|
'name': json['name'],
|
|
121
121
|
'slug': json['slug'],
|
|
122
122
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
123
|
-
'providerObj':
|
|
123
|
+
'providerObj': ProviderFromJSON(json['provider_obj']),
|
|
124
124
|
'launchUrl': json['launch_url'],
|
|
125
125
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
126
126
|
'metaIcon': json['meta_icon'],
|
|
@@ -143,7 +143,6 @@ export function ApplicationToJSON(value?: Application | null): any {
|
|
|
143
143
|
'name': value.name,
|
|
144
144
|
'slug': value.slug,
|
|
145
145
|
'provider': value.provider,
|
|
146
|
-
'provider_obj': ProviderToJSON(value.providerObj),
|
|
147
146
|
'meta_launch_url': value.metaLaunchUrl,
|
|
148
147
|
'meta_description': value.metaDescription,
|
|
149
148
|
'meta_publisher': value.metaPublisher,
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
PolicyEngineModeFromJSONTyped,
|
|
20
20
|
PolicyEngineModeToJSON,
|
|
21
21
|
} from './PolicyEngineMode';
|
|
22
|
-
import {
|
|
23
|
-
ProviderRequest,
|
|
24
|
-
ProviderRequestFromJSON,
|
|
25
|
-
ProviderRequestFromJSONTyped,
|
|
26
|
-
ProviderRequestToJSON,
|
|
27
|
-
} from './ProviderRequest';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
* Application Serializer
|
|
@@ -50,12 +44,6 @@ export interface ApplicationRequest {
|
|
|
50
44
|
* @memberof ApplicationRequest
|
|
51
45
|
*/
|
|
52
46
|
provider?: number | null;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {ProviderRequest}
|
|
56
|
-
* @memberof ApplicationRequest
|
|
57
|
-
*/
|
|
58
|
-
providerObj?: ProviderRequest;
|
|
59
47
|
/**
|
|
60
48
|
*
|
|
61
49
|
* @type {string}
|
|
@@ -101,7 +89,6 @@ export function ApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
101
89
|
'name': json['name'],
|
|
102
90
|
'slug': json['slug'],
|
|
103
91
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
104
|
-
'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
|
|
105
92
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
106
93
|
'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
107
94
|
'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -122,7 +109,6 @@ export function ApplicationRequestToJSON(value?: ApplicationRequest | null): any
|
|
|
122
109
|
'name': value.name,
|
|
123
110
|
'slug': value.slug,
|
|
124
111
|
'provider': value.provider,
|
|
125
|
-
'provider_obj': ProviderRequestToJSON(value.providerObj),
|
|
126
112
|
'meta_launch_url': value.metaLaunchUrl,
|
|
127
113
|
'meta_description': value.metaDescription,
|
|
128
114
|
'meta_publisher': value.metaPublisher,
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
PolicyEngineModeFromJSONTyped,
|
|
20
20
|
PolicyEngineModeToJSON,
|
|
21
21
|
} from './PolicyEngineMode';
|
|
22
|
-
import {
|
|
23
|
-
ProviderRequest,
|
|
24
|
-
ProviderRequestFromJSON,
|
|
25
|
-
ProviderRequestFromJSONTyped,
|
|
26
|
-
ProviderRequestToJSON,
|
|
27
|
-
} from './ProviderRequest';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
* Application Serializer
|
|
@@ -50,12 +44,6 @@ export interface PatchedApplicationRequest {
|
|
|
50
44
|
* @memberof PatchedApplicationRequest
|
|
51
45
|
*/
|
|
52
46
|
provider?: number | null;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {ProviderRequest}
|
|
56
|
-
* @memberof PatchedApplicationRequest
|
|
57
|
-
*/
|
|
58
|
-
providerObj?: ProviderRequest;
|
|
59
47
|
/**
|
|
60
48
|
*
|
|
61
49
|
* @type {string}
|
|
@@ -101,7 +89,6 @@ export function PatchedApplicationRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
101
89
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
102
90
|
'slug': !exists(json, 'slug') ? undefined : json['slug'],
|
|
103
91
|
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
104
|
-
'providerObj': !exists(json, 'provider_obj') ? undefined : ProviderRequestFromJSON(json['provider_obj']),
|
|
105
92
|
'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],
|
|
106
93
|
'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],
|
|
107
94
|
'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],
|
|
@@ -122,7 +109,6 @@ export function PatchedApplicationRequestToJSON(value?: PatchedApplicationReques
|
|
|
122
109
|
'name': value.name,
|
|
123
110
|
'slug': value.slug,
|
|
124
111
|
'provider': value.provider,
|
|
125
|
-
'provider_obj': ProviderRequestToJSON(value.providerObj),
|
|
126
112
|
'meta_launch_url': value.metaLaunchUrl,
|
|
127
113
|
'meta_description': value.metaDescription,
|
|
128
114
|
'meta_publisher': value.metaPublisher,
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
IntentEnumFromJSONTyped,
|
|
20
20
|
IntentEnumToJSON,
|
|
21
21
|
} from './IntentEnum';
|
|
22
|
-
import {
|
|
23
|
-
UserRequest,
|
|
24
|
-
UserRequestFromJSON,
|
|
25
|
-
UserRequestFromJSONTyped,
|
|
26
|
-
UserRequestToJSON,
|
|
27
|
-
} from './UserRequest';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
* Token Serializer
|
|
@@ -56,12 +50,6 @@ export interface PatchedTokenRequest {
|
|
|
56
50
|
* @memberof PatchedTokenRequest
|
|
57
51
|
*/
|
|
58
52
|
user?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {UserRequest}
|
|
62
|
-
* @memberof PatchedTokenRequest
|
|
63
|
-
*/
|
|
64
|
-
userObj?: UserRequest;
|
|
65
53
|
/**
|
|
66
54
|
*
|
|
67
55
|
* @type {string}
|
|
@@ -96,7 +84,6 @@ export function PatchedTokenRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
96
84
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
97
85
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
98
86
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
99
|
-
'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
|
|
100
87
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
101
88
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
102
89
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -116,7 +103,6 @@ export function PatchedTokenRequestToJSON(value?: PatchedTokenRequest | null): a
|
|
|
116
103
|
'identifier': value.identifier,
|
|
117
104
|
'intent': IntentEnumToJSON(value.intent),
|
|
118
105
|
'user': value.user,
|
|
119
|
-
'user_obj': UserRequestToJSON(value.userObj),
|
|
120
106
|
'description': value.description,
|
|
121
107
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
122
108
|
'expiring': value.expiring,
|
package/src/models/Token.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface Token {
|
|
|
67
67
|
* @type {User}
|
|
68
68
|
* @memberof Token
|
|
69
69
|
*/
|
|
70
|
-
userObj
|
|
70
|
+
readonly userObj: User | null;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -103,7 +103,7 @@ export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tok
|
|
|
103
103
|
'identifier': json['identifier'],
|
|
104
104
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
105
105
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
106
|
-
'userObj':
|
|
106
|
+
'userObj': UserFromJSON(json['user_obj']),
|
|
107
107
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
108
108
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
109
109
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -123,7 +123,6 @@ export function TokenToJSON(value?: Token | null): any {
|
|
|
123
123
|
'identifier': value.identifier,
|
|
124
124
|
'intent': IntentEnumToJSON(value.intent),
|
|
125
125
|
'user': value.user,
|
|
126
|
-
'user_obj': UserToJSON(value.userObj),
|
|
127
126
|
'description': value.description,
|
|
128
127
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
129
128
|
'expiring': value.expiring,
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
IntentEnumFromJSONTyped,
|
|
20
20
|
IntentEnumToJSON,
|
|
21
21
|
} from './IntentEnum';
|
|
22
|
-
import {
|
|
23
|
-
UserRequest,
|
|
24
|
-
UserRequestFromJSON,
|
|
25
|
-
UserRequestFromJSONTyped,
|
|
26
|
-
UserRequestToJSON,
|
|
27
|
-
} from './UserRequest';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
* Token Serializer
|
|
@@ -56,12 +50,6 @@ export interface TokenRequest {
|
|
|
56
50
|
* @memberof TokenRequest
|
|
57
51
|
*/
|
|
58
52
|
user?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {UserRequest}
|
|
62
|
-
* @memberof TokenRequest
|
|
63
|
-
*/
|
|
64
|
-
userObj?: UserRequest;
|
|
65
53
|
/**
|
|
66
54
|
*
|
|
67
55
|
* @type {string}
|
|
@@ -96,7 +84,6 @@ export function TokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
96
84
|
'identifier': json['identifier'],
|
|
97
85
|
'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),
|
|
98
86
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
99
|
-
'userObj': !exists(json, 'user_obj') ? undefined : UserRequestFromJSON(json['user_obj']),
|
|
100
87
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
101
88
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
102
89
|
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
@@ -116,7 +103,6 @@ export function TokenRequestToJSON(value?: TokenRequest | null): any {
|
|
|
116
103
|
'identifier': value.identifier,
|
|
117
104
|
'intent': IntentEnumToJSON(value.intent),
|
|
118
105
|
'user': value.user,
|
|
119
|
-
'user_obj': UserRequestToJSON(value.userObj),
|
|
120
106
|
'description': value.description,
|
|
121
107
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
122
108
|
'expiring': value.expiring,
|