@goauthentik/api 2026.2.0-rc1-1767826226 → 2026.2.0-rc1-1768869959
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/apis/SourcesApi.d.ts +0 -1
- package/dist/apis/SourcesApi.d.ts.map +1 -1
- package/dist/apis/SourcesApi.js +0 -1
- package/dist/apis/SourcesApi.js.map +1 -1
- package/dist/esm/apis/SourcesApi.d.ts +0 -1
- package/dist/esm/apis/SourcesApi.d.ts.map +1 -1
- package/dist/esm/apis/SourcesApi.js +0 -1
- package/dist/esm/apis/SourcesApi.js.map +1 -1
- 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/KadminTypeEnum.d.ts +0 -1
- package/dist/esm/models/KadminTypeEnum.d.ts.map +1 -1
- package/dist/esm/models/KadminTypeEnum.js +0 -1
- package/dist/esm/models/KadminTypeEnum.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/KadminTypeEnum.d.ts +0 -1
- package/dist/models/KadminTypeEnum.d.ts.map +1 -1
- package/dist/models/KadminTypeEnum.js +0 -1
- package/dist/models/KadminTypeEnum.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/SourcesApi.md +2 -2
- package/docs/VendorEnum.md +32 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +0 -1
- package/src/models/DeviceFactSnapshot.ts +18 -1
- package/src/models/KadminTypeEnum.ts +0 -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)
|
package/docs/SourcesApi.md
CHANGED
|
@@ -4448,7 +4448,7 @@ async function example() {
|
|
|
4448
4448
|
const body = {
|
|
4449
4449
|
// boolean (optional)
|
|
4450
4450
|
enabled: true,
|
|
4451
|
-
// 'Heimdal' | 'MIT' |
|
|
4451
|
+
// 'Heimdal' | 'MIT' | KAdmin server type (optional)
|
|
4452
4452
|
kadminType: kadminType_example,
|
|
4453
4453
|
// string (optional)
|
|
4454
4454
|
name: name_example,
|
|
@@ -4496,7 +4496,7 @@ example().catch(console.error);
|
|
|
4496
4496
|
| Name | Type | Description | Notes |
|
|
4497
4497
|
|------------- | ------------- | ------------- | -------------|
|
|
4498
4498
|
| **enabled** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
4499
|
-
| **kadminType** | `Heimdal`, `MIT
|
|
4499
|
+
| **kadminType** | `Heimdal`, `MIT` | KAdmin server type | [Optional] [Defaults to `undefined`] [Enum: Heimdal, MIT] |
|
|
4500
4500
|
| **name** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
4501
4501
|
| **ordering** | `string` | Which field to use when ordering the results. | [Optional] [Defaults to `undefined`] |
|
|
4502
4502
|
| **page** | `number` | A page number within the paginated result set. | [Optional] [Defaults to `undefined`] |
|
|
@@ -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
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -10155,7 +10155,6 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
10155
10155
|
export const SourcesKerberosListKadminTypeEnum = {
|
|
10156
10156
|
Heimdal: 'Heimdal',
|
|
10157
10157
|
Mit: 'MIT',
|
|
10158
|
-
Other: 'other',
|
|
10159
10158
|
UnknownDefaultOpenApi: '11184809'
|
|
10160
10159
|
} as const;
|
|
10161
10160
|
export type SourcesKerberosListKadminTypeEnum = typeof SourcesKerberosListKadminTypeEnum[keyof typeof SourcesKerberosListKadminTypeEnum];
|
|
@@ -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';
|