@goauthentik/api 2025.12.0-rc1-1764947013 → 2025.12.0-rc1-1765152822
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/EndpointsApi.d.ts +14 -14
- package/dist/apis/EndpointsApi.d.ts.map +1 -1
- package/dist/apis/EndpointsApi.js +12 -12
- package/dist/apis/EndpointsApi.js.map +1 -1
- package/dist/esm/apis/EndpointsApi.d.ts +14 -14
- package/dist/esm/apis/EndpointsApi.d.ts.map +1 -1
- package/dist/esm/apis/EndpointsApi.js +12 -12
- package/dist/esm/apis/EndpointsApi.js.map +1 -1
- package/dist/esm/models/DeviceUserBinding.d.ts +127 -0
- package/dist/esm/models/DeviceUserBinding.d.ts.map +1 -0
- package/dist/esm/models/DeviceUserBinding.js +93 -0
- package/dist/esm/models/DeviceUserBinding.js.map +1 -0
- package/dist/esm/models/DeviceUserBindingRequest.d.ts +87 -0
- package/dist/esm/models/DeviceUserBindingRequest.d.ts.map +1 -0
- package/dist/esm/models/DeviceUserBindingRequest.js +71 -0
- package/dist/esm/models/DeviceUserBindingRequest.js.map +1 -0
- package/dist/esm/models/MDMConfigResponse.d.ts +12 -0
- package/dist/esm/models/MDMConfigResponse.d.ts.map +1 -1
- package/dist/esm/models/MDMConfigResponse.js +8 -0
- package/dist/esm/models/MDMConfigResponse.js.map +1 -1
- package/dist/esm/models/PaginatedDeviceUserBindingList.d.ts +49 -0
- package/dist/esm/models/PaginatedDeviceUserBindingList.d.ts.map +1 -0
- package/dist/esm/models/PaginatedDeviceUserBindingList.js +61 -0
- package/dist/esm/models/PaginatedDeviceUserBindingList.js.map +1 -0
- package/dist/esm/models/PatchedDeviceUserBindingRequest.d.ts +87 -0
- package/dist/esm/models/PatchedDeviceUserBindingRequest.d.ts.map +1 -0
- package/dist/esm/models/PatchedDeviceUserBindingRequest.js +67 -0
- package/dist/esm/models/PatchedDeviceUserBindingRequest.js.map +1 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/DeviceUserBinding.d.ts +127 -0
- package/dist/models/DeviceUserBinding.d.ts.map +1 -0
- package/dist/models/DeviceUserBinding.js +93 -0
- package/dist/models/DeviceUserBinding.js.map +1 -0
- package/dist/models/DeviceUserBindingRequest.d.ts +87 -0
- package/dist/models/DeviceUserBindingRequest.d.ts.map +1 -0
- package/dist/models/DeviceUserBindingRequest.js +71 -0
- package/dist/models/DeviceUserBindingRequest.js.map +1 -0
- package/dist/models/MDMConfigResponse.d.ts +12 -0
- package/dist/models/MDMConfigResponse.d.ts.map +1 -1
- package/dist/models/MDMConfigResponse.js +8 -0
- package/dist/models/MDMConfigResponse.js.map +1 -1
- package/dist/models/PaginatedDeviceUserBindingList.d.ts +49 -0
- package/dist/models/PaginatedDeviceUserBindingList.d.ts.map +1 -0
- package/dist/models/PaginatedDeviceUserBindingList.js +61 -0
- package/dist/models/PaginatedDeviceUserBindingList.js.map +1 -0
- package/dist/models/PatchedDeviceUserBindingRequest.d.ts +87 -0
- package/dist/models/PatchedDeviceUserBindingRequest.d.ts.map +1 -0
- package/dist/models/PatchedDeviceUserBindingRequest.js +67 -0
- package/dist/models/PatchedDeviceUserBindingRequest.js.map +1 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +4 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/EndpointsApi.ts +39 -39
- package/src/models/DeviceUserBinding.ts +216 -0
- package/src/models/DeviceUserBindingRequest.ts +139 -0
- package/src/models/MDMConfigResponse.ts +18 -0
- package/src/models/PaginatedDeviceUserBindingList.ts +99 -0
- package/src/models/PatchedDeviceUserBindingRequest.ts +137 -0
- package/src/models/index.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/apis/EndpointsApi.ts
CHANGED
|
@@ -28,6 +28,8 @@ import type {
|
|
|
28
28
|
DeviceAccessGroupRequest,
|
|
29
29
|
DeviceFactsRequest,
|
|
30
30
|
DeviceSummary,
|
|
31
|
+
DeviceUserBinding,
|
|
32
|
+
DeviceUserBindingRequest,
|
|
31
33
|
EndpointDevice,
|
|
32
34
|
EndpointDeviceDetails,
|
|
33
35
|
EndpointDeviceRequest,
|
|
@@ -40,16 +42,14 @@ import type {
|
|
|
40
42
|
PaginatedAgentConnectorList,
|
|
41
43
|
PaginatedConnectorList,
|
|
42
44
|
PaginatedDeviceAccessGroupList,
|
|
45
|
+
PaginatedDeviceUserBindingList,
|
|
43
46
|
PaginatedEndpointDeviceList,
|
|
44
47
|
PaginatedEnrollmentTokenList,
|
|
45
|
-
PaginatedPolicyBindingList,
|
|
46
48
|
PatchedAgentConnectorRequest,
|
|
47
49
|
PatchedDeviceAccessGroupRequest,
|
|
50
|
+
PatchedDeviceUserBindingRequest,
|
|
48
51
|
PatchedEndpointDeviceRequest,
|
|
49
52
|
PatchedEnrollmentTokenRequest,
|
|
50
|
-
PatchedPolicyBindingRequest,
|
|
51
|
-
PolicyBinding,
|
|
52
|
-
PolicyBindingRequest,
|
|
53
53
|
TokenView,
|
|
54
54
|
TypeCreate,
|
|
55
55
|
UsedBy,
|
|
@@ -83,6 +83,10 @@ import {
|
|
|
83
83
|
DeviceFactsRequestToJSON,
|
|
84
84
|
DeviceSummaryFromJSON,
|
|
85
85
|
DeviceSummaryToJSON,
|
|
86
|
+
DeviceUserBindingFromJSON,
|
|
87
|
+
DeviceUserBindingToJSON,
|
|
88
|
+
DeviceUserBindingRequestFromJSON,
|
|
89
|
+
DeviceUserBindingRequestToJSON,
|
|
86
90
|
EndpointDeviceFromJSON,
|
|
87
91
|
EndpointDeviceToJSON,
|
|
88
92
|
EndpointDeviceDetailsFromJSON,
|
|
@@ -107,26 +111,22 @@ import {
|
|
|
107
111
|
PaginatedConnectorListToJSON,
|
|
108
112
|
PaginatedDeviceAccessGroupListFromJSON,
|
|
109
113
|
PaginatedDeviceAccessGroupListToJSON,
|
|
114
|
+
PaginatedDeviceUserBindingListFromJSON,
|
|
115
|
+
PaginatedDeviceUserBindingListToJSON,
|
|
110
116
|
PaginatedEndpointDeviceListFromJSON,
|
|
111
117
|
PaginatedEndpointDeviceListToJSON,
|
|
112
118
|
PaginatedEnrollmentTokenListFromJSON,
|
|
113
119
|
PaginatedEnrollmentTokenListToJSON,
|
|
114
|
-
PaginatedPolicyBindingListFromJSON,
|
|
115
|
-
PaginatedPolicyBindingListToJSON,
|
|
116
120
|
PatchedAgentConnectorRequestFromJSON,
|
|
117
121
|
PatchedAgentConnectorRequestToJSON,
|
|
118
122
|
PatchedDeviceAccessGroupRequestFromJSON,
|
|
119
123
|
PatchedDeviceAccessGroupRequestToJSON,
|
|
124
|
+
PatchedDeviceUserBindingRequestFromJSON,
|
|
125
|
+
PatchedDeviceUserBindingRequestToJSON,
|
|
120
126
|
PatchedEndpointDeviceRequestFromJSON,
|
|
121
127
|
PatchedEndpointDeviceRequestToJSON,
|
|
122
128
|
PatchedEnrollmentTokenRequestFromJSON,
|
|
123
129
|
PatchedEnrollmentTokenRequestToJSON,
|
|
124
|
-
PatchedPolicyBindingRequestFromJSON,
|
|
125
|
-
PatchedPolicyBindingRequestToJSON,
|
|
126
|
-
PolicyBindingFromJSON,
|
|
127
|
-
PolicyBindingToJSON,
|
|
128
|
-
PolicyBindingRequestFromJSON,
|
|
129
|
-
PolicyBindingRequestToJSON,
|
|
130
130
|
TokenViewFromJSON,
|
|
131
131
|
TokenViewToJSON,
|
|
132
132
|
TypeCreateFromJSON,
|
|
@@ -293,7 +293,7 @@ export interface EndpointsDeviceAccessGroupsUsedByListRequest {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
export interface EndpointsDeviceBindingsCreateRequest {
|
|
296
|
-
|
|
296
|
+
deviceUserBindingRequest: DeviceUserBindingRequest;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
export interface EndpointsDeviceBindingsDestroyRequest {
|
|
@@ -316,7 +316,7 @@ export interface EndpointsDeviceBindingsListRequest {
|
|
|
316
316
|
|
|
317
317
|
export interface EndpointsDeviceBindingsPartialUpdateRequest {
|
|
318
318
|
policyBindingUuid: string;
|
|
319
|
-
|
|
319
|
+
patchedDeviceUserBindingRequest?: PatchedDeviceUserBindingRequest;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
export interface EndpointsDeviceBindingsRetrieveRequest {
|
|
@@ -325,7 +325,7 @@ export interface EndpointsDeviceBindingsRetrieveRequest {
|
|
|
325
325
|
|
|
326
326
|
export interface EndpointsDeviceBindingsUpdateRequest {
|
|
327
327
|
policyBindingUuid: string;
|
|
328
|
-
|
|
328
|
+
deviceUserBindingRequest: DeviceUserBindingRequest;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
export interface EndpointsDeviceBindingsUsedByListRequest {
|
|
@@ -1972,11 +1972,11 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
1972
1972
|
/**
|
|
1973
1973
|
* PolicyBinding Viewset
|
|
1974
1974
|
*/
|
|
1975
|
-
async endpointsDeviceBindingsCreateRaw(requestParameters: EndpointsDeviceBindingsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1976
|
-
if (requestParameters['
|
|
1975
|
+
async endpointsDeviceBindingsCreateRaw(requestParameters: EndpointsDeviceBindingsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceUserBinding>> {
|
|
1976
|
+
if (requestParameters['deviceUserBindingRequest'] == null) {
|
|
1977
1977
|
throw new runtime.RequiredError(
|
|
1978
|
-
'
|
|
1979
|
-
'Required parameter "
|
|
1978
|
+
'deviceUserBindingRequest',
|
|
1979
|
+
'Required parameter "deviceUserBindingRequest" was null or undefined when calling endpointsDeviceBindingsCreate().'
|
|
1980
1980
|
);
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
@@ -2002,16 +2002,16 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2002
2002
|
method: 'POST',
|
|
2003
2003
|
headers: headerParameters,
|
|
2004
2004
|
query: queryParameters,
|
|
2005
|
-
body:
|
|
2005
|
+
body: DeviceUserBindingRequestToJSON(requestParameters['deviceUserBindingRequest']),
|
|
2006
2006
|
}, initOverrides);
|
|
2007
2007
|
|
|
2008
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2008
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceUserBindingFromJSON(jsonValue));
|
|
2009
2009
|
}
|
|
2010
2010
|
|
|
2011
2011
|
/**
|
|
2012
2012
|
* PolicyBinding Viewset
|
|
2013
2013
|
*/
|
|
2014
|
-
async endpointsDeviceBindingsCreate(requestParameters: EndpointsDeviceBindingsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2014
|
+
async endpointsDeviceBindingsCreate(requestParameters: EndpointsDeviceBindingsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceUserBinding> {
|
|
2015
2015
|
const response = await this.endpointsDeviceBindingsCreateRaw(requestParameters, initOverrides);
|
|
2016
2016
|
return await response.value();
|
|
2017
2017
|
}
|
|
@@ -2063,7 +2063,7 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2063
2063
|
/**
|
|
2064
2064
|
* PolicyBinding Viewset
|
|
2065
2065
|
*/
|
|
2066
|
-
async endpointsDeviceBindingsListRaw(requestParameters: EndpointsDeviceBindingsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2066
|
+
async endpointsDeviceBindingsListRaw(requestParameters: EndpointsDeviceBindingsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedDeviceUserBindingList>> {
|
|
2067
2067
|
const queryParameters: any = {};
|
|
2068
2068
|
|
|
2069
2069
|
if (requestParameters['enabled'] != null) {
|
|
@@ -2130,13 +2130,13 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2130
2130
|
query: queryParameters,
|
|
2131
2131
|
}, initOverrides);
|
|
2132
2132
|
|
|
2133
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedDeviceUserBindingListFromJSON(jsonValue));
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
/**
|
|
2137
2137
|
* PolicyBinding Viewset
|
|
2138
2138
|
*/
|
|
2139
|
-
async endpointsDeviceBindingsList(requestParameters: EndpointsDeviceBindingsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2139
|
+
async endpointsDeviceBindingsList(requestParameters: EndpointsDeviceBindingsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedDeviceUserBindingList> {
|
|
2140
2140
|
const response = await this.endpointsDeviceBindingsListRaw(requestParameters, initOverrides);
|
|
2141
2141
|
return await response.value();
|
|
2142
2142
|
}
|
|
@@ -2144,7 +2144,7 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2144
2144
|
/**
|
|
2145
2145
|
* PolicyBinding Viewset
|
|
2146
2146
|
*/
|
|
2147
|
-
async endpointsDeviceBindingsPartialUpdateRaw(requestParameters: EndpointsDeviceBindingsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2147
|
+
async endpointsDeviceBindingsPartialUpdateRaw(requestParameters: EndpointsDeviceBindingsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceUserBinding>> {
|
|
2148
2148
|
if (requestParameters['policyBindingUuid'] == null) {
|
|
2149
2149
|
throw new runtime.RequiredError(
|
|
2150
2150
|
'policyBindingUuid',
|
|
@@ -2175,16 +2175,16 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2175
2175
|
method: 'PATCH',
|
|
2176
2176
|
headers: headerParameters,
|
|
2177
2177
|
query: queryParameters,
|
|
2178
|
-
body:
|
|
2178
|
+
body: PatchedDeviceUserBindingRequestToJSON(requestParameters['patchedDeviceUserBindingRequest']),
|
|
2179
2179
|
}, initOverrides);
|
|
2180
2180
|
|
|
2181
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceUserBindingFromJSON(jsonValue));
|
|
2182
2182
|
}
|
|
2183
2183
|
|
|
2184
2184
|
/**
|
|
2185
2185
|
* PolicyBinding Viewset
|
|
2186
2186
|
*/
|
|
2187
|
-
async endpointsDeviceBindingsPartialUpdate(requestParameters: EndpointsDeviceBindingsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2187
|
+
async endpointsDeviceBindingsPartialUpdate(requestParameters: EndpointsDeviceBindingsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceUserBinding> {
|
|
2188
2188
|
const response = await this.endpointsDeviceBindingsPartialUpdateRaw(requestParameters, initOverrides);
|
|
2189
2189
|
return await response.value();
|
|
2190
2190
|
}
|
|
@@ -2192,7 +2192,7 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2192
2192
|
/**
|
|
2193
2193
|
* PolicyBinding Viewset
|
|
2194
2194
|
*/
|
|
2195
|
-
async endpointsDeviceBindingsRetrieveRaw(requestParameters: EndpointsDeviceBindingsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2195
|
+
async endpointsDeviceBindingsRetrieveRaw(requestParameters: EndpointsDeviceBindingsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceUserBinding>> {
|
|
2196
2196
|
if (requestParameters['policyBindingUuid'] == null) {
|
|
2197
2197
|
throw new runtime.RequiredError(
|
|
2198
2198
|
'policyBindingUuid',
|
|
@@ -2223,13 +2223,13 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2223
2223
|
query: queryParameters,
|
|
2224
2224
|
}, initOverrides);
|
|
2225
2225
|
|
|
2226
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceUserBindingFromJSON(jsonValue));
|
|
2227
2227
|
}
|
|
2228
2228
|
|
|
2229
2229
|
/**
|
|
2230
2230
|
* PolicyBinding Viewset
|
|
2231
2231
|
*/
|
|
2232
|
-
async endpointsDeviceBindingsRetrieve(requestParameters: EndpointsDeviceBindingsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2232
|
+
async endpointsDeviceBindingsRetrieve(requestParameters: EndpointsDeviceBindingsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceUserBinding> {
|
|
2233
2233
|
const response = await this.endpointsDeviceBindingsRetrieveRaw(requestParameters, initOverrides);
|
|
2234
2234
|
return await response.value();
|
|
2235
2235
|
}
|
|
@@ -2237,7 +2237,7 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2237
2237
|
/**
|
|
2238
2238
|
* PolicyBinding Viewset
|
|
2239
2239
|
*/
|
|
2240
|
-
async endpointsDeviceBindingsUpdateRaw(requestParameters: EndpointsDeviceBindingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2240
|
+
async endpointsDeviceBindingsUpdateRaw(requestParameters: EndpointsDeviceBindingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceUserBinding>> {
|
|
2241
2241
|
if (requestParameters['policyBindingUuid'] == null) {
|
|
2242
2242
|
throw new runtime.RequiredError(
|
|
2243
2243
|
'policyBindingUuid',
|
|
@@ -2245,10 +2245,10 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2245
2245
|
);
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
|
-
if (requestParameters['
|
|
2248
|
+
if (requestParameters['deviceUserBindingRequest'] == null) {
|
|
2249
2249
|
throw new runtime.RequiredError(
|
|
2250
|
-
'
|
|
2251
|
-
'Required parameter "
|
|
2250
|
+
'deviceUserBindingRequest',
|
|
2251
|
+
'Required parameter "deviceUserBindingRequest" was null or undefined when calling endpointsDeviceBindingsUpdate().'
|
|
2252
2252
|
);
|
|
2253
2253
|
}
|
|
2254
2254
|
|
|
@@ -2275,16 +2275,16 @@ export class EndpointsApi extends runtime.BaseAPI {
|
|
|
2275
2275
|
method: 'PUT',
|
|
2276
2276
|
headers: headerParameters,
|
|
2277
2277
|
query: queryParameters,
|
|
2278
|
-
body:
|
|
2278
|
+
body: DeviceUserBindingRequestToJSON(requestParameters['deviceUserBindingRequest']),
|
|
2279
2279
|
}, initOverrides);
|
|
2280
2280
|
|
|
2281
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2281
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceUserBindingFromJSON(jsonValue));
|
|
2282
2282
|
}
|
|
2283
2283
|
|
|
2284
2284
|
/**
|
|
2285
2285
|
* PolicyBinding Viewset
|
|
2286
2286
|
*/
|
|
2287
|
-
async endpointsDeviceBindingsUpdate(requestParameters: EndpointsDeviceBindingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2287
|
+
async endpointsDeviceBindingsUpdate(requestParameters: EndpointsDeviceBindingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceUserBinding> {
|
|
2288
2288
|
const response = await this.endpointsDeviceBindingsUpdateRaw(requestParameters, initOverrides);
|
|
2289
2289
|
return await response.value();
|
|
2290
2290
|
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.12.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PartialUser } from './PartialUser';
|
|
17
|
+
import {
|
|
18
|
+
PartialUserFromJSON,
|
|
19
|
+
PartialUserFromJSONTyped,
|
|
20
|
+
PartialUserToJSON,
|
|
21
|
+
PartialUserToJSONTyped,
|
|
22
|
+
} from './PartialUser';
|
|
23
|
+
import type { Policy } from './Policy';
|
|
24
|
+
import {
|
|
25
|
+
PolicyFromJSON,
|
|
26
|
+
PolicyFromJSONTyped,
|
|
27
|
+
PolicyToJSON,
|
|
28
|
+
PolicyToJSONTyped,
|
|
29
|
+
} from './Policy';
|
|
30
|
+
import type { Connector } from './Connector';
|
|
31
|
+
import {
|
|
32
|
+
ConnectorFromJSON,
|
|
33
|
+
ConnectorFromJSONTyped,
|
|
34
|
+
ConnectorToJSON,
|
|
35
|
+
ConnectorToJSONTyped,
|
|
36
|
+
} from './Connector';
|
|
37
|
+
import type { PartialGroup } from './PartialGroup';
|
|
38
|
+
import {
|
|
39
|
+
PartialGroupFromJSON,
|
|
40
|
+
PartialGroupFromJSONTyped,
|
|
41
|
+
PartialGroupToJSON,
|
|
42
|
+
PartialGroupToJSONTyped,
|
|
43
|
+
} from './PartialGroup';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* PolicyBinding Serializer
|
|
47
|
+
* @export
|
|
48
|
+
* @interface DeviceUserBinding
|
|
49
|
+
*/
|
|
50
|
+
export interface DeviceUserBinding {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof DeviceUserBinding
|
|
55
|
+
*/
|
|
56
|
+
readonly pk: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof DeviceUserBinding
|
|
61
|
+
*/
|
|
62
|
+
policy?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof DeviceUserBinding
|
|
67
|
+
*/
|
|
68
|
+
group?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof DeviceUserBinding
|
|
73
|
+
*/
|
|
74
|
+
user?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Policy}
|
|
78
|
+
* @memberof DeviceUserBinding
|
|
79
|
+
*/
|
|
80
|
+
readonly policyObj: Policy;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {PartialGroup}
|
|
84
|
+
* @memberof DeviceUserBinding
|
|
85
|
+
*/
|
|
86
|
+
readonly groupObj: PartialGroup;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {PartialUser}
|
|
90
|
+
* @memberof DeviceUserBinding
|
|
91
|
+
*/
|
|
92
|
+
readonly userObj: PartialUser;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof DeviceUserBinding
|
|
97
|
+
*/
|
|
98
|
+
target: string;
|
|
99
|
+
/**
|
|
100
|
+
* Negates the outcome of the policy. Messages are unaffected.
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof DeviceUserBinding
|
|
103
|
+
*/
|
|
104
|
+
negate?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof DeviceUserBinding
|
|
109
|
+
*/
|
|
110
|
+
enabled?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof DeviceUserBinding
|
|
115
|
+
*/
|
|
116
|
+
order: number;
|
|
117
|
+
/**
|
|
118
|
+
* Timeout after which Policy execution is terminated.
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof DeviceUserBinding
|
|
121
|
+
*/
|
|
122
|
+
timeout?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Result if the Policy execution fails.
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @memberof DeviceUserBinding
|
|
127
|
+
*/
|
|
128
|
+
failureResult?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof DeviceUserBinding
|
|
133
|
+
*/
|
|
134
|
+
isPrimary?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof DeviceUserBinding
|
|
139
|
+
*/
|
|
140
|
+
readonly connector: string | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Connector}
|
|
144
|
+
* @memberof DeviceUserBinding
|
|
145
|
+
*/
|
|
146
|
+
readonly connectorObj: Connector;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Check if a given object implements the DeviceUserBinding interface.
|
|
151
|
+
*/
|
|
152
|
+
export function instanceOfDeviceUserBinding(value: object): value is DeviceUserBinding {
|
|
153
|
+
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
154
|
+
if (!('policyObj' in value) || value['policyObj'] === undefined) return false;
|
|
155
|
+
if (!('groupObj' in value) || value['groupObj'] === undefined) return false;
|
|
156
|
+
if (!('userObj' in value) || value['userObj'] === undefined) return false;
|
|
157
|
+
if (!('target' in value) || value['target'] === undefined) return false;
|
|
158
|
+
if (!('order' in value) || value['order'] === undefined) return false;
|
|
159
|
+
if (!('connector' in value) || value['connector'] === undefined) return false;
|
|
160
|
+
if (!('connectorObj' in value) || value['connectorObj'] === undefined) return false;
|
|
161
|
+
return true;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function DeviceUserBindingFromJSON(json: any): DeviceUserBinding {
|
|
165
|
+
return DeviceUserBindingFromJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function DeviceUserBindingFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceUserBinding {
|
|
169
|
+
if (json == null) {
|
|
170
|
+
return json;
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
|
|
174
|
+
'pk': json['pk'],
|
|
175
|
+
'policy': json['policy'] == null ? undefined : json['policy'],
|
|
176
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
177
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
178
|
+
'policyObj': PolicyFromJSON(json['policy_obj']),
|
|
179
|
+
'groupObj': PartialGroupFromJSON(json['group_obj']),
|
|
180
|
+
'userObj': PartialUserFromJSON(json['user_obj']),
|
|
181
|
+
'target': json['target'],
|
|
182
|
+
'negate': json['negate'] == null ? undefined : json['negate'],
|
|
183
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
184
|
+
'order': json['order'],
|
|
185
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
186
|
+
'failureResult': json['failure_result'] == null ? undefined : json['failure_result'],
|
|
187
|
+
'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'],
|
|
188
|
+
'connector': json['connector'],
|
|
189
|
+
'connectorObj': ConnectorFromJSON(json['connector_obj']),
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function DeviceUserBindingToJSON(json: any): DeviceUserBinding {
|
|
194
|
+
return DeviceUserBindingToJSONTyped(json, false);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export function DeviceUserBindingToJSONTyped(value?: Omit<DeviceUserBinding, 'pk'|'policy_obj'|'group_obj'|'user_obj'|'connector'|'connector_obj'> | null, ignoreDiscriminator: boolean = false): any {
|
|
198
|
+
if (value == null) {
|
|
199
|
+
return value;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
|
|
204
|
+
'policy': value['policy'],
|
|
205
|
+
'group': value['group'],
|
|
206
|
+
'user': value['user'],
|
|
207
|
+
'target': value['target'],
|
|
208
|
+
'negate': value['negate'],
|
|
209
|
+
'enabled': value['enabled'],
|
|
210
|
+
'order': value['order'],
|
|
211
|
+
'timeout': value['timeout'],
|
|
212
|
+
'failure_result': value['failureResult'],
|
|
213
|
+
'is_primary': value['isPrimary'],
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.12.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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* PolicyBinding Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DeviceUserBindingRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DeviceUserBindingRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DeviceUserBindingRequest
|
|
26
|
+
*/
|
|
27
|
+
policy?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DeviceUserBindingRequest
|
|
32
|
+
*/
|
|
33
|
+
group?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof DeviceUserBindingRequest
|
|
38
|
+
*/
|
|
39
|
+
user?: number | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DeviceUserBindingRequest
|
|
44
|
+
*/
|
|
45
|
+
target: string;
|
|
46
|
+
/**
|
|
47
|
+
* Negates the outcome of the policy. Messages are unaffected.
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof DeviceUserBindingRequest
|
|
50
|
+
*/
|
|
51
|
+
negate?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof DeviceUserBindingRequest
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof DeviceUserBindingRequest
|
|
62
|
+
*/
|
|
63
|
+
order: number;
|
|
64
|
+
/**
|
|
65
|
+
* Timeout after which Policy execution is terminated.
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof DeviceUserBindingRequest
|
|
68
|
+
*/
|
|
69
|
+
timeout?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Result if the Policy execution fails.
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof DeviceUserBindingRequest
|
|
74
|
+
*/
|
|
75
|
+
failureResult?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof DeviceUserBindingRequest
|
|
80
|
+
*/
|
|
81
|
+
isPrimary?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the DeviceUserBindingRequest interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfDeviceUserBindingRequest(value: object): value is DeviceUserBindingRequest {
|
|
88
|
+
if (!('target' in value) || value['target'] === undefined) return false;
|
|
89
|
+
if (!('order' in value) || value['order'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function DeviceUserBindingRequestFromJSON(json: any): DeviceUserBindingRequest {
|
|
94
|
+
return DeviceUserBindingRequestFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function DeviceUserBindingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceUserBindingRequest {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'policy': json['policy'] == null ? undefined : json['policy'],
|
|
104
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
105
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
106
|
+
'target': json['target'],
|
|
107
|
+
'negate': json['negate'] == null ? undefined : json['negate'],
|
|
108
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
109
|
+
'order': json['order'],
|
|
110
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
111
|
+
'failureResult': json['failure_result'] == null ? undefined : json['failure_result'],
|
|
112
|
+
'isPrimary': json['is_primary'] == null ? undefined : json['is_primary'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function DeviceUserBindingRequestToJSON(json: any): DeviceUserBindingRequest {
|
|
117
|
+
return DeviceUserBindingRequestToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function DeviceUserBindingRequestToJSONTyped(value?: DeviceUserBindingRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'policy': value['policy'],
|
|
128
|
+
'group': value['group'],
|
|
129
|
+
'user': value['user'],
|
|
130
|
+
'target': value['target'],
|
|
131
|
+
'negate': value['negate'],
|
|
132
|
+
'enabled': value['enabled'],
|
|
133
|
+
'order': value['order'],
|
|
134
|
+
'timeout': value['timeout'],
|
|
135
|
+
'failure_result': value['failureResult'],
|
|
136
|
+
'is_primary': value['isPrimary'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -25,6 +25,18 @@ export interface MDMConfigResponse {
|
|
|
25
25
|
* @memberof MDMConfigResponse
|
|
26
26
|
*/
|
|
27
27
|
config: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MDMConfigResponse
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MDMConfigResponse
|
|
38
|
+
*/
|
|
39
|
+
filename: string;
|
|
28
40
|
}
|
|
29
41
|
|
|
30
42
|
/**
|
|
@@ -32,6 +44,8 @@ export interface MDMConfigResponse {
|
|
|
32
44
|
*/
|
|
33
45
|
export function instanceOfMDMConfigResponse(value: object): value is MDMConfigResponse {
|
|
34
46
|
if (!('config' in value) || value['config'] === undefined) return false;
|
|
47
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
48
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
35
49
|
return true;
|
|
36
50
|
}
|
|
37
51
|
|
|
@@ -46,6 +60,8 @@ export function MDMConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
46
60
|
return {
|
|
47
61
|
|
|
48
62
|
'config': json['config'],
|
|
63
|
+
'mimeType': json['mime_type'],
|
|
64
|
+
'filename': json['filename'],
|
|
49
65
|
};
|
|
50
66
|
}
|
|
51
67
|
|
|
@@ -61,6 +77,8 @@ export function MDMConfigResponseToJSONTyped(value?: MDMConfigResponse | null, i
|
|
|
61
77
|
return {
|
|
62
78
|
|
|
63
79
|
'config': value['config'],
|
|
80
|
+
'mime_type': value['mimeType'],
|
|
81
|
+
'filename': value['filename'],
|
|
64
82
|
};
|
|
65
83
|
}
|
|
66
84
|
|