@goauthentik/api 2026.2.0-rc1-1767826226 → 2026.2.0-rc1-1767898882
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 +2 -0
- package/dist/esm/models/DeviceFactSnapshot.d.ts +8 -1
- package/dist/esm/models/DeviceFactSnapshot.d.ts.map +1 -1
- package/dist/esm/models/DeviceFactSnapshot.js +4 -0
- package/dist/esm/models/DeviceFactSnapshot.js.map +1 -1
- package/dist/esm/models/VendorEnum.d.ts +27 -0
- package/dist/esm/models/VendorEnum.d.ts.map +1 -0
- package/dist/esm/models/VendorEnum.js +53 -0
- package/dist/esm/models/VendorEnum.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/DeviceFactSnapshot.d.ts +8 -1
- package/dist/models/DeviceFactSnapshot.d.ts.map +1 -1
- package/dist/models/DeviceFactSnapshot.js +4 -0
- package/dist/models/DeviceFactSnapshot.js.map +1 -1
- package/dist/models/VendorEnum.d.ts +27 -0
- package/dist/models/VendorEnum.d.ts.map +1 -0
- package/dist/models/VendorEnum.js +53 -0
- package/dist/models/VendorEnum.js.map +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/docs/DeviceFactSnapshot.md +2 -0
- package/docs/VendorEnum.md +32 -0
- package/package.json +1 -1
- package/src/models/DeviceFactSnapshot.ts +18 -1
- package/src/models/VendorEnum.ts +54 -0
- package/src/models/index.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -10,6 +10,7 @@ Name | Type
|
|
|
10
10
|
`connection` | string
|
|
11
11
|
`created` | Date
|
|
12
12
|
`expires` | Date
|
|
13
|
+
`vendor` | [VendorEnum](VendorEnum.md)
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const example = {
|
|
|
22
23
|
"connection": null,
|
|
23
24
|
"created": null,
|
|
24
25
|
"expires": null,
|
|
26
|
+
"vendor": null,
|
|
25
27
|
} satisfies DeviceFactSnapshot
|
|
26
28
|
|
|
27
29
|
console.log(example)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# VendorEnum
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { VendorEnum } from '@goauthentik/api'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies VendorEnum
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as VendorEnum
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
package/package.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { VendorEnum } from './VendorEnum';
|
|
17
|
+
import {
|
|
18
|
+
VendorEnumFromJSON,
|
|
19
|
+
VendorEnumFromJSONTyped,
|
|
20
|
+
VendorEnumToJSON,
|
|
21
|
+
VendorEnumToJSONTyped,
|
|
22
|
+
} from './VendorEnum';
|
|
16
23
|
import type { DeviceFacts } from './DeviceFacts';
|
|
17
24
|
import {
|
|
18
25
|
DeviceFactsFromJSON,
|
|
@@ -51,8 +58,16 @@ export interface DeviceFactSnapshot {
|
|
|
51
58
|
* @memberof DeviceFactSnapshot
|
|
52
59
|
*/
|
|
53
60
|
readonly expires: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {VendorEnum}
|
|
64
|
+
* @memberof DeviceFactSnapshot
|
|
65
|
+
*/
|
|
66
|
+
readonly vendor: VendorEnum;
|
|
54
67
|
}
|
|
55
68
|
|
|
69
|
+
|
|
70
|
+
|
|
56
71
|
/**
|
|
57
72
|
* Check if a given object implements the DeviceFactSnapshot interface.
|
|
58
73
|
*/
|
|
@@ -61,6 +76,7 @@ export function instanceOfDeviceFactSnapshot(value: object): value is DeviceFact
|
|
|
61
76
|
if (!('connection' in value) || value['connection'] === undefined) return false;
|
|
62
77
|
if (!('created' in value) || value['created'] === undefined) return false;
|
|
63
78
|
if (!('expires' in value) || value['expires'] === undefined) return false;
|
|
79
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
64
80
|
return true;
|
|
65
81
|
}
|
|
66
82
|
|
|
@@ -78,6 +94,7 @@ export function DeviceFactSnapshotFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
78
94
|
'connection': json['connection'],
|
|
79
95
|
'created': (new Date(json['created'])),
|
|
80
96
|
'expires': (json['expires'] == null ? null : new Date(json['expires'])),
|
|
97
|
+
'vendor': VendorEnumFromJSON(json['vendor']),
|
|
81
98
|
};
|
|
82
99
|
}
|
|
83
100
|
|
|
@@ -85,7 +102,7 @@ export function DeviceFactSnapshotToJSON(json: any): DeviceFactSnapshot {
|
|
|
85
102
|
return DeviceFactSnapshotToJSONTyped(json, false);
|
|
86
103
|
}
|
|
87
104
|
|
|
88
|
-
export function DeviceFactSnapshotToJSONTyped(value?: Omit<DeviceFactSnapshot, 'created'|'expires'> | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
export function DeviceFactSnapshotToJSONTyped(value?: Omit<DeviceFactSnapshot, 'created'|'expires'|'vendor'> | null, ignoreDiscriminator: boolean = false): any {
|
|
89
106
|
if (value == null) {
|
|
90
107
|
return value;
|
|
91
108
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026.2.0-rc1
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const VendorEnum = {
|
|
21
|
+
GoauthentikIoMerged: 'goauthentik.io/@merged',
|
|
22
|
+
GoauthentikIoPlatform: 'goauthentik.io/platform',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type VendorEnum = typeof VendorEnum[keyof typeof VendorEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfVendorEnum(value: any): boolean {
|
|
29
|
+
for (const key in VendorEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(VendorEnum, key)) {
|
|
31
|
+
if (VendorEnum[key as keyof typeof VendorEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function VendorEnumFromJSON(json: any): VendorEnum {
|
|
40
|
+
return VendorEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function VendorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): VendorEnum {
|
|
44
|
+
return json as VendorEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VendorEnumToJSON(value?: VendorEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function VendorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): VendorEnum {
|
|
52
|
+
return value as VendorEnum;
|
|
53
|
+
}
|
|
54
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -825,6 +825,7 @@ export * from './UserVerificationEnum';
|
|
|
825
825
|
export * from './UserWriteStage';
|
|
826
826
|
export * from './UserWriteStageRequest';
|
|
827
827
|
export * from './ValidationError';
|
|
828
|
+
export * from './VendorEnum';
|
|
828
829
|
export * from './Version';
|
|
829
830
|
export * from './VersionHistory';
|
|
830
831
|
export * from './WebAuthnDevice';
|