@goauthentik/api 2024.6.3-1722940666 → 2024.6.3-1723032607

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,6 +57,24 @@ export interface Device {
57
57
  * @memberof Device
58
58
  */
59
59
  confirmed: boolean;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof Device
64
+ */
65
+ readonly created: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof Device
70
+ */
71
+ readonly lastUpdated: Date;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof Device
76
+ */
77
+ readonly lastUsed: Date | null;
60
78
  }
61
79
  /**
62
80
  * Check if a given object implements the Device interface.
@@ -23,6 +23,9 @@ export function instanceOfDevice(value) {
23
23
  isInstance = isInstance && "name" in value;
24
24
  isInstance = isInstance && "type" in value;
25
25
  isInstance = isInstance && "confirmed" in value;
26
+ isInstance = isInstance && "created" in value;
27
+ isInstance = isInstance && "lastUpdated" in value;
28
+ isInstance = isInstance && "lastUsed" in value;
26
29
  return isInstance;
27
30
  }
28
31
  export function DeviceFromJSON(json) {
@@ -40,6 +43,9 @@ export function DeviceFromJSONTyped(json, ignoreDiscriminator) {
40
43
  'name': json['name'],
41
44
  'type': json['type'],
42
45
  'confirmed': json['confirmed'],
46
+ 'created': (new Date(json['created'])),
47
+ 'lastUpdated': (new Date(json['last_updated'])),
48
+ 'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
43
49
  };
44
50
  }
45
51
  export function DeviceToJSON(value) {
@@ -57,6 +57,24 @@ export interface Device {
57
57
  * @memberof Device
58
58
  */
59
59
  confirmed: boolean;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof Device
64
+ */
65
+ readonly created: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof Device
70
+ */
71
+ readonly lastUpdated: Date;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof Device
76
+ */
77
+ readonly lastUsed: Date | null;
60
78
  }
61
79
  /**
62
80
  * Check if a given object implements the Device interface.
@@ -26,6 +26,9 @@ function instanceOfDevice(value) {
26
26
  isInstance = isInstance && "name" in value;
27
27
  isInstance = isInstance && "type" in value;
28
28
  isInstance = isInstance && "confirmed" in value;
29
+ isInstance = isInstance && "created" in value;
30
+ isInstance = isInstance && "lastUpdated" in value;
31
+ isInstance = isInstance && "lastUsed" in value;
29
32
  return isInstance;
30
33
  }
31
34
  exports.instanceOfDevice = instanceOfDevice;
@@ -45,6 +48,9 @@ function DeviceFromJSONTyped(json, ignoreDiscriminator) {
45
48
  'name': json['name'],
46
49
  'type': json['type'],
47
50
  'confirmed': json['confirmed'],
51
+ 'created': (new Date(json['created'])),
52
+ 'lastUpdated': (new Date(json['last_updated'])),
53
+ 'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
48
54
  };
49
55
  }
50
56
  exports.DeviceFromJSONTyped = DeviceFromJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.6.3-1722940666",
3
+ "version": "2024.6.3-1723032607",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -61,6 +61,24 @@ export interface Device {
61
61
  * @memberof Device
62
62
  */
63
63
  confirmed: boolean;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof Device
68
+ */
69
+ readonly created: Date;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof Device
74
+ */
75
+ readonly lastUpdated: Date;
76
+ /**
77
+ *
78
+ * @type {Date}
79
+ * @memberof Device
80
+ */
81
+ readonly lastUsed: Date | null;
64
82
  }
65
83
 
66
84
  /**
@@ -75,6 +93,9 @@ export function instanceOfDevice(value: object): boolean {
75
93
  isInstance = isInstance && "name" in value;
76
94
  isInstance = isInstance && "type" in value;
77
95
  isInstance = isInstance && "confirmed" in value;
96
+ isInstance = isInstance && "created" in value;
97
+ isInstance = isInstance && "lastUpdated" in value;
98
+ isInstance = isInstance && "lastUsed" in value;
78
99
 
79
100
  return isInstance;
80
101
  }
@@ -96,6 +117,9 @@ export function DeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): De
96
117
  'name': json['name'],
97
118
  'type': json['type'],
98
119
  'confirmed': json['confirmed'],
120
+ 'created': (new Date(json['created'])),
121
+ 'lastUpdated': (new Date(json['last_updated'])),
122
+ 'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
99
123
  };
100
124
  }
101
125