@goauthentik/api 2025.6.2-1750636159 → 2025.6.2-1750801939
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/Device.d.ts +9 -3
- package/dist/esm/models/Device.d.ts.map +1 -1
- package/dist/esm/models/Device.js +3 -0
- package/dist/esm/models/Device.js.map +1 -1
- package/dist/models/Device.d.ts +9 -3
- package/dist/models/Device.d.ts.map +1 -1
- package/dist/models/Device.js +3 -0
- package/dist/models/Device.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/models/Device.ts +11 -3
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/models/Device.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Serializer for
|
|
17
|
+
* Serializer for authenticator devices
|
|
18
18
|
* @export
|
|
19
19
|
* @interface Device
|
|
20
20
|
*/
|
|
@@ -84,7 +84,13 @@ export interface Device {
|
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof Device
|
|
86
86
|
*/
|
|
87
|
-
readonly extraDescription: string;
|
|
87
|
+
readonly extraDescription: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Get external Device ID
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Device
|
|
92
|
+
*/
|
|
93
|
+
readonly externalId: string | null;
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
/**
|
|
@@ -102,6 +108,7 @@ export function instanceOfDevice(value: object): value is Device {
|
|
|
102
108
|
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
|
|
103
109
|
if (!('lastUsed' in value) || value['lastUsed'] === undefined) return false;
|
|
104
110
|
if (!('extraDescription' in value) || value['extraDescription'] === undefined) return false;
|
|
111
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
105
112
|
return true;
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -126,6 +133,7 @@ export function DeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): De
|
|
|
126
133
|
'lastUpdated': (new Date(json['last_updated'])),
|
|
127
134
|
'lastUsed': (json['last_used'] == null ? null : new Date(json['last_used'])),
|
|
128
135
|
'extraDescription': json['extra_description'],
|
|
136
|
+
'externalId': json['external_id'],
|
|
129
137
|
};
|
|
130
138
|
}
|
|
131
139
|
|
|
@@ -133,7 +141,7 @@ export function DeviceToJSON(json: any): Device {
|
|
|
133
141
|
return DeviceToJSONTyped(json, false);
|
|
134
142
|
}
|
|
135
143
|
|
|
136
|
-
export function DeviceToJSONTyped(value?: Omit<Device, 'verbose_name'|'verbose_name_plural'|'meta_model_name'|'type'|'created'|'last_updated'|'last_used'|'extra_description'> | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
export function DeviceToJSONTyped(value?: Omit<Device, 'verbose_name'|'verbose_name_plural'|'meta_model_name'|'type'|'created'|'last_updated'|'last_used'|'extra_description'|'external_id'> | null, ignoreDiscriminator: boolean = false): any {
|
|
137
145
|
if (value == null) {
|
|
138
146
|
return value;
|
|
139
147
|
}
|