@goauthentik/api 2023.8.3-1694716726 → 2023.8.3-1694987749
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 +4 -0
- package/dist/apis/CoreApi.d.ts +12 -1
- package/dist/apis/CoreApi.js +33 -0
- package/dist/esm/apis/CoreApi.d.ts +12 -1
- package/dist/esm/apis/CoreApi.js +34 -1
- package/dist/esm/models/ModelRequest.d.ts +38 -0
- package/dist/esm/models/ModelRequest.js +67 -0
- package/dist/esm/models/ProviderModelEnum.d.ts +33 -0
- package/dist/esm/models/ProviderModelEnum.js +40 -0
- package/dist/esm/models/TransactionApplicationRequest.d.ts +46 -0
- package/dist/esm/models/TransactionApplicationRequest.js +52 -0
- package/dist/esm/models/TransactionApplicationResponse.d.ts +37 -0
- package/dist/esm/models/TransactionApplicationResponse.js +46 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ModelRequest.d.ts +38 -0
- package/dist/models/ModelRequest.js +73 -0
- package/dist/models/ProviderModelEnum.d.ts +33 -0
- package/dist/models/ProviderModelEnum.js +46 -0
- package/dist/models/TransactionApplicationRequest.d.ts +46 -0
- package/dist/models/TransactionApplicationRequest.js +59 -0
- package/dist/models/TransactionApplicationResponse.d.ts +37 -0
- package/dist/models/TransactionApplicationResponse.js +53 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +47 -0
- package/src/models/ModelRequest.ts +116 -0
- package/src/models/ProviderModelEnum.ts +48 -0
- package/src/models/TransactionApplicationRequest.ts +103 -0
- package/src/models/TransactionApplicationResponse.ts +75 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.8.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 { ApplicationRequest } from './ApplicationRequest';
|
|
17
|
+
import {
|
|
18
|
+
ApplicationRequestFromJSON,
|
|
19
|
+
ApplicationRequestFromJSONTyped,
|
|
20
|
+
ApplicationRequestToJSON,
|
|
21
|
+
} from './ApplicationRequest';
|
|
22
|
+
import type { ModelRequest } from './ModelRequest';
|
|
23
|
+
import {
|
|
24
|
+
ModelRequestFromJSON,
|
|
25
|
+
ModelRequestFromJSONTyped,
|
|
26
|
+
ModelRequestToJSON,
|
|
27
|
+
} from './ModelRequest';
|
|
28
|
+
import type { ProviderModelEnum } from './ProviderModelEnum';
|
|
29
|
+
import {
|
|
30
|
+
ProviderModelEnumFromJSON,
|
|
31
|
+
ProviderModelEnumFromJSONTyped,
|
|
32
|
+
ProviderModelEnumToJSON,
|
|
33
|
+
} from './ProviderModelEnum';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Serializer for creating a provider and an application in one transaction
|
|
37
|
+
* @export
|
|
38
|
+
* @interface TransactionApplicationRequest
|
|
39
|
+
*/
|
|
40
|
+
export interface TransactionApplicationRequest {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ApplicationRequest}
|
|
44
|
+
* @memberof TransactionApplicationRequest
|
|
45
|
+
*/
|
|
46
|
+
app: ApplicationRequest;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ProviderModelEnum}
|
|
50
|
+
* @memberof TransactionApplicationRequest
|
|
51
|
+
*/
|
|
52
|
+
providerModel: ProviderModelEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ModelRequest}
|
|
56
|
+
* @memberof TransactionApplicationRequest
|
|
57
|
+
*/
|
|
58
|
+
provider: ModelRequest;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TransactionApplicationRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfTransactionApplicationRequest(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "app" in value;
|
|
67
|
+
isInstance = isInstance && "providerModel" in value;
|
|
68
|
+
isInstance = isInstance && "provider" in value;
|
|
69
|
+
|
|
70
|
+
return isInstance;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function TransactionApplicationRequestFromJSON(json: any): TransactionApplicationRequest {
|
|
74
|
+
return TransactionApplicationRequestFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationRequest {
|
|
78
|
+
if ((json === undefined) || (json === null)) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'app': ApplicationRequestFromJSON(json['app']),
|
|
84
|
+
'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
|
|
85
|
+
'provider': ModelRequestFromJSON(json['provider']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function TransactionApplicationRequestToJSON(value?: TransactionApplicationRequest | null): any {
|
|
90
|
+
if (value === undefined) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
if (value === null) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'app': ApplicationRequestToJSON(value.app),
|
|
99
|
+
'provider_model': ProviderModelEnumToJSON(value.providerModel),
|
|
100
|
+
'provider': ModelRequestToJSON(value.provider),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.8.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
|
+
/**
|
|
17
|
+
* Transactional creation response
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TransactionApplicationResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface TransactionApplicationResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof TransactionApplicationResponse
|
|
26
|
+
*/
|
|
27
|
+
applied: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof TransactionApplicationResponse
|
|
32
|
+
*/
|
|
33
|
+
logs: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TransactionApplicationResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTransactionApplicationResponse(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "applied" in value;
|
|
42
|
+
isInstance = isInstance && "logs" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TransactionApplicationResponseFromJSON(json: any): TransactionApplicationResponse {
|
|
48
|
+
return TransactionApplicationResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TransactionApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'applied': json['applied'],
|
|
58
|
+
'logs': json['logs'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function TransactionApplicationResponseToJSON(value?: TransactionApplicationResponse | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'applied': value.applied,
|
|
72
|
+
'logs': value.logs,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -162,6 +162,7 @@ export * from './LoginMetrics';
|
|
|
162
162
|
export * from './LoginSource';
|
|
163
163
|
export * from './Metadata';
|
|
164
164
|
export * from './ModelEnum';
|
|
165
|
+
export * from './ModelRequest';
|
|
165
166
|
export * from './NameIdPolicyEnum';
|
|
166
167
|
export * from './NotConfiguredActionEnum';
|
|
167
168
|
export * from './Notification';
|
|
@@ -376,6 +377,7 @@ export * from './PropertyMappingPreview';
|
|
|
376
377
|
export * from './PropertyMappingTestResult';
|
|
377
378
|
export * from './Provider';
|
|
378
379
|
export * from './ProviderEnum';
|
|
380
|
+
export * from './ProviderModelEnum';
|
|
379
381
|
export * from './ProviderRequest';
|
|
380
382
|
export * from './ProviderTypeEnum';
|
|
381
383
|
export * from './ProxyMode';
|
|
@@ -438,6 +440,8 @@ export * from './TokenModel';
|
|
|
438
440
|
export * from './TokenRequest';
|
|
439
441
|
export * from './TokenSetKeyRequest';
|
|
440
442
|
export * from './TokenView';
|
|
443
|
+
export * from './TransactionApplicationRequest';
|
|
444
|
+
export * from './TransactionApplicationResponse';
|
|
441
445
|
export * from './TypeCreate';
|
|
442
446
|
export * from './UiThemeEnum';
|
|
443
447
|
export * from './UsedBy';
|