@goauthentik/api 2024.8.3-1729699127 → 2024.8.3-1729753499
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/models/DeviceChallenge.d.ts +6 -0
- package/dist/esm/models/DeviceChallenge.js +3 -0
- package/dist/esm/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/esm/models/DeviceChallengeRequest.js +3 -0
- package/dist/models/DeviceChallenge.d.ts +6 -0
- package/dist/models/DeviceChallenge.js +3 -0
- package/dist/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/models/DeviceChallengeRequest.js +3 -0
- package/package.json +1 -1
- package/src/models/DeviceChallenge.ts +9 -0
- package/src/models/DeviceChallengeRequest.ts +9 -0
@@ -35,6 +35,12 @@ export interface DeviceChallenge {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallenge
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallenge interface.
|
@@ -19,6 +19,7 @@ export function instanceOfDeviceChallenge(value) {
|
|
19
19
|
isInstance = isInstance && "deviceClass" in value;
|
20
20
|
isInstance = isInstance && "deviceUid" in value;
|
21
21
|
isInstance = isInstance && "challenge" in value;
|
22
|
+
isInstance = isInstance && "lastUsed" in value;
|
22
23
|
return isInstance;
|
23
24
|
}
|
24
25
|
export function DeviceChallengeFromJSON(json) {
|
@@ -32,6 +33,7 @@ export function DeviceChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
'deviceClass': json['device_class'],
|
33
34
|
'deviceUid': json['device_uid'],
|
34
35
|
'challenge': json['challenge'],
|
36
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
35
37
|
};
|
36
38
|
}
|
37
39
|
export function DeviceChallengeToJSON(value) {
|
@@ -45,5 +47,6 @@ export function DeviceChallengeToJSON(value) {
|
|
45
47
|
'device_class': value.deviceClass,
|
46
48
|
'device_uid': value.deviceUid,
|
47
49
|
'challenge': value.challenge,
|
50
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
48
51
|
};
|
49
52
|
}
|
@@ -35,6 +35,12 @@ export interface DeviceChallengeRequest {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallengeRequest
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallengeRequest interface.
|
@@ -19,6 +19,7 @@ export function instanceOfDeviceChallengeRequest(value) {
|
|
19
19
|
isInstance = isInstance && "deviceClass" in value;
|
20
20
|
isInstance = isInstance && "deviceUid" in value;
|
21
21
|
isInstance = isInstance && "challenge" in value;
|
22
|
+
isInstance = isInstance && "lastUsed" in value;
|
22
23
|
return isInstance;
|
23
24
|
}
|
24
25
|
export function DeviceChallengeRequestFromJSON(json) {
|
@@ -32,6 +33,7 @@ export function DeviceChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
'deviceClass': json['device_class'],
|
33
34
|
'deviceUid': json['device_uid'],
|
34
35
|
'challenge': json['challenge'],
|
36
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
35
37
|
};
|
36
38
|
}
|
37
39
|
export function DeviceChallengeRequestToJSON(value) {
|
@@ -45,5 +47,6 @@ export function DeviceChallengeRequestToJSON(value) {
|
|
45
47
|
'device_class': value.deviceClass,
|
46
48
|
'device_uid': value.deviceUid,
|
47
49
|
'challenge': value.challenge,
|
50
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
48
51
|
};
|
49
52
|
}
|
@@ -35,6 +35,12 @@ export interface DeviceChallenge {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallenge
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallenge interface.
|
@@ -22,6 +22,7 @@ function instanceOfDeviceChallenge(value) {
|
|
22
22
|
isInstance = isInstance && "deviceClass" in value;
|
23
23
|
isInstance = isInstance && "deviceUid" in value;
|
24
24
|
isInstance = isInstance && "challenge" in value;
|
25
|
+
isInstance = isInstance && "lastUsed" in value;
|
25
26
|
return isInstance;
|
26
27
|
}
|
27
28
|
exports.instanceOfDeviceChallenge = instanceOfDeviceChallenge;
|
@@ -37,6 +38,7 @@ function DeviceChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
38
|
'deviceClass': json['device_class'],
|
38
39
|
'deviceUid': json['device_uid'],
|
39
40
|
'challenge': json['challenge'],
|
41
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
40
42
|
};
|
41
43
|
}
|
42
44
|
exports.DeviceChallengeFromJSONTyped = DeviceChallengeFromJSONTyped;
|
@@ -51,6 +53,7 @@ function DeviceChallengeToJSON(value) {
|
|
51
53
|
'device_class': value.deviceClass,
|
52
54
|
'device_uid': value.deviceUid,
|
53
55
|
'challenge': value.challenge,
|
56
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
54
57
|
};
|
55
58
|
}
|
56
59
|
exports.DeviceChallengeToJSON = DeviceChallengeToJSON;
|
@@ -35,6 +35,12 @@ export interface DeviceChallengeRequest {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallengeRequest
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallengeRequest interface.
|
@@ -22,6 +22,7 @@ function instanceOfDeviceChallengeRequest(value) {
|
|
22
22
|
isInstance = isInstance && "deviceClass" in value;
|
23
23
|
isInstance = isInstance && "deviceUid" in value;
|
24
24
|
isInstance = isInstance && "challenge" in value;
|
25
|
+
isInstance = isInstance && "lastUsed" in value;
|
25
26
|
return isInstance;
|
26
27
|
}
|
27
28
|
exports.instanceOfDeviceChallengeRequest = instanceOfDeviceChallengeRequest;
|
@@ -37,6 +38,7 @@ function DeviceChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
38
|
'deviceClass': json['device_class'],
|
38
39
|
'deviceUid': json['device_uid'],
|
39
40
|
'challenge': json['challenge'],
|
41
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
40
42
|
};
|
41
43
|
}
|
42
44
|
exports.DeviceChallengeRequestFromJSONTyped = DeviceChallengeRequestFromJSONTyped;
|
@@ -51,6 +53,7 @@ function DeviceChallengeRequestToJSON(value) {
|
|
51
53
|
'device_class': value.deviceClass,
|
52
54
|
'device_uid': value.deviceUid,
|
53
55
|
'challenge': value.challenge,
|
56
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
54
57
|
};
|
55
58
|
}
|
56
59
|
exports.DeviceChallengeRequestToJSON = DeviceChallengeRequestToJSON;
|
package/package.json
CHANGED
@@ -37,6 +37,12 @@ export interface DeviceChallenge {
|
|
37
37
|
* @memberof DeviceChallenge
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallenge
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallenge(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeToJSON(value?: DeviceChallenge | null): any {
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|
@@ -37,6 +37,12 @@ export interface DeviceChallengeRequest {
|
|
37
37
|
* @memberof DeviceChallengeRequest
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallengeRequest
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallengeRequest(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeRequestToJSON(value?: DeviceChallengeRequest | nu
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|