@goauthentik/api 2024.6.3-1723921843 → 2024.6.3-1724337552
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 +3 -0
- package/dist/apis/ProvidersApi.d.ts +37 -1
- package/dist/apis/ProvidersApi.js +120 -0
- package/dist/esm/apis/ProvidersApi.d.ts +37 -1
- package/dist/esm/apis/ProvidersApi.js +121 -1
- package/dist/esm/models/SyncObjectModelEnum.d.ts +24 -0
- package/dist/esm/models/SyncObjectModelEnum.js +31 -0
- package/dist/esm/models/SyncObjectRequest.d.ts +38 -0
- package/dist/esm/models/SyncObjectRequest.js +47 -0
- package/dist/esm/models/SyncObjectResult.d.ts +32 -0
- package/dist/esm/models/SyncObjectResult.js +42 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/SyncObjectModelEnum.d.ts +24 -0
- package/dist/models/SyncObjectModelEnum.js +37 -0
- package/dist/models/SyncObjectRequest.d.ts +38 -0
- package/dist/models/SyncObjectRequest.js +54 -0
- package/dist/models/SyncObjectResult.d.ts +32 -0
- package/dist/models/SyncObjectResult.js +49 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +156 -0
- package/src/models/SyncObjectModelEnum.ts +39 -0
- package/src/models/SyncObjectRequest.ts +82 -0
- package/src/models/SyncObjectResult.ts +72 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { LogEvent } from './LogEvent';
|
|
17
|
+
import {
|
|
18
|
+
LogEventFromJSON,
|
|
19
|
+
LogEventFromJSONTyped,
|
|
20
|
+
LogEventToJSON,
|
|
21
|
+
} from './LogEvent';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Result of a single object sync
|
|
25
|
+
* @export
|
|
26
|
+
* @interface SyncObjectResult
|
|
27
|
+
*/
|
|
28
|
+
export interface SyncObjectResult {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<LogEvent>}
|
|
32
|
+
* @memberof SyncObjectResult
|
|
33
|
+
*/
|
|
34
|
+
readonly messages: Array<LogEvent>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SyncObjectResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfSyncObjectResult(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "messages" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SyncObjectResultFromJSON(json: any): SyncObjectResult {
|
|
48
|
+
return SyncObjectResultFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SyncObjectResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncObjectResult {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'messages': ((json['messages'] as Array<any>).map(LogEventFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function SyncObjectResultToJSON(value?: SyncObjectResult | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -574,6 +574,9 @@ export * from './StaticDeviceRequest';
|
|
|
574
574
|
export * from './StaticDeviceToken';
|
|
575
575
|
export * from './StaticDeviceTokenRequest';
|
|
576
576
|
export * from './SubModeEnum';
|
|
577
|
+
export * from './SyncObjectModelEnum';
|
|
578
|
+
export * from './SyncObjectRequest';
|
|
579
|
+
export * from './SyncObjectResult';
|
|
577
580
|
export * from './SyncStatus';
|
|
578
581
|
export * from './SystemInfo';
|
|
579
582
|
export * from './SystemInfoRuntime';
|