@goauthentik/api 2025.12.0-rc1-1764267850 → 2025.12.0-rc1-1764545300

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.
Files changed (130) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/dist/apis/EndpointsApi.d.ts +19 -1
  3. package/dist/apis/EndpointsApi.d.ts.map +1 -1
  4. package/dist/apis/EndpointsApi.js +50 -0
  5. package/dist/apis/EndpointsApi.js.map +1 -1
  6. package/dist/esm/apis/EndpointsApi.d.ts +19 -1
  7. package/dist/esm/apis/EndpointsApi.d.ts.map +1 -1
  8. package/dist/esm/apis/EndpointsApi.js +50 -0
  9. package/dist/esm/apis/EndpointsApi.js.map +1 -1
  10. package/dist/esm/models/AgentConfig.d.ts +2 -2
  11. package/dist/esm/models/AgentConfig.d.ts.map +1 -1
  12. package/dist/esm/models/AgentConfig.js +0 -1
  13. package/dist/esm/models/AgentConfig.js.map +1 -1
  14. package/dist/esm/models/AgentConnector.d.ts +6 -0
  15. package/dist/esm/models/AgentConnector.d.ts.map +1 -1
  16. package/dist/esm/models/AgentConnector.js +2 -0
  17. package/dist/esm/models/AgentConnector.js.map +1 -1
  18. package/dist/esm/models/AgentConnectorRequest.d.ts +6 -0
  19. package/dist/esm/models/AgentConnectorRequest.d.ts.map +1 -1
  20. package/dist/esm/models/AgentConnectorRequest.js +2 -0
  21. package/dist/esm/models/AgentConnectorRequest.js.map +1 -1
  22. package/dist/esm/models/AgentPSSODeviceRegistrationRequest.d.ts +51 -0
  23. package/dist/esm/models/AgentPSSODeviceRegistrationRequest.d.ts.map +1 -0
  24. package/dist/esm/models/AgentPSSODeviceRegistrationRequest.js +63 -0
  25. package/dist/esm/models/AgentPSSODeviceRegistrationRequest.js.map +1 -0
  26. package/dist/esm/models/AgentPSSODeviceRegistrationResponse.d.ts +63 -0
  27. package/dist/esm/models/AgentPSSODeviceRegistrationResponse.d.ts.map +1 -0
  28. package/dist/esm/models/AgentPSSODeviceRegistrationResponse.js +71 -0
  29. package/dist/esm/models/AgentPSSODeviceRegistrationResponse.js.map +1 -0
  30. package/dist/esm/models/AgentPSSOUserRegistrationRequest.d.ts +45 -0
  31. package/dist/esm/models/AgentPSSOUserRegistrationRequest.d.ts.map +1 -0
  32. package/dist/esm/models/AgentPSSOUserRegistrationRequest.js +59 -0
  33. package/dist/esm/models/AgentPSSOUserRegistrationRequest.js.map +1 -0
  34. package/dist/esm/models/EndpointDevice.d.ts +1 -1
  35. package/dist/esm/models/EndpointDevice.d.ts.map +1 -1
  36. package/dist/esm/models/EndpointDevice.js +1 -3
  37. package/dist/esm/models/EndpointDevice.js.map +1 -1
  38. package/dist/esm/models/EndpointDeviceDetails.d.ts +1 -1
  39. package/dist/esm/models/EndpointDeviceDetails.d.ts.map +1 -1
  40. package/dist/esm/models/EndpointDeviceDetails.js +1 -3
  41. package/dist/esm/models/EndpointDeviceDetails.js.map +1 -1
  42. package/dist/esm/models/EndpointDeviceRequest.d.ts +1 -1
  43. package/dist/esm/models/EndpointDeviceRequest.d.ts.map +1 -1
  44. package/dist/esm/models/EndpointDeviceRequest.js +1 -3
  45. package/dist/esm/models/EndpointDeviceRequest.js.map +1 -1
  46. package/dist/esm/models/Hardware.d.ts +2 -2
  47. package/dist/esm/models/Hardware.d.ts.map +1 -1
  48. package/dist/esm/models/Hardware.js +2 -6
  49. package/dist/esm/models/Hardware.js.map +1 -1
  50. package/dist/esm/models/HardwareRequest.d.ts +2 -2
  51. package/dist/esm/models/HardwareRequest.d.ts.map +1 -1
  52. package/dist/esm/models/HardwareRequest.js +2 -6
  53. package/dist/esm/models/HardwareRequest.js.map +1 -1
  54. package/dist/esm/models/PatchedAgentConnectorRequest.d.ts +6 -0
  55. package/dist/esm/models/PatchedAgentConnectorRequest.d.ts.map +1 -1
  56. package/dist/esm/models/PatchedAgentConnectorRequest.js +2 -0
  57. package/dist/esm/models/PatchedAgentConnectorRequest.js.map +1 -1
  58. package/dist/esm/models/index.d.ts +3 -0
  59. package/dist/esm/models/index.d.ts.map +1 -1
  60. package/dist/esm/models/index.js +3 -0
  61. package/dist/esm/models/index.js.map +1 -1
  62. package/dist/models/AgentConfig.d.ts +2 -2
  63. package/dist/models/AgentConfig.d.ts.map +1 -1
  64. package/dist/models/AgentConfig.js +0 -1
  65. package/dist/models/AgentConfig.js.map +1 -1
  66. package/dist/models/AgentConnector.d.ts +6 -0
  67. package/dist/models/AgentConnector.d.ts.map +1 -1
  68. package/dist/models/AgentConnector.js +2 -0
  69. package/dist/models/AgentConnector.js.map +1 -1
  70. package/dist/models/AgentConnectorRequest.d.ts +6 -0
  71. package/dist/models/AgentConnectorRequest.d.ts.map +1 -1
  72. package/dist/models/AgentConnectorRequest.js +2 -0
  73. package/dist/models/AgentConnectorRequest.js.map +1 -1
  74. package/dist/models/AgentPSSODeviceRegistrationRequest.d.ts +51 -0
  75. package/dist/models/AgentPSSODeviceRegistrationRequest.d.ts.map +1 -0
  76. package/dist/models/AgentPSSODeviceRegistrationRequest.js +63 -0
  77. package/dist/models/AgentPSSODeviceRegistrationRequest.js.map +1 -0
  78. package/dist/models/AgentPSSODeviceRegistrationResponse.d.ts +63 -0
  79. package/dist/models/AgentPSSODeviceRegistrationResponse.d.ts.map +1 -0
  80. package/dist/models/AgentPSSODeviceRegistrationResponse.js +71 -0
  81. package/dist/models/AgentPSSODeviceRegistrationResponse.js.map +1 -0
  82. package/dist/models/AgentPSSOUserRegistrationRequest.d.ts +45 -0
  83. package/dist/models/AgentPSSOUserRegistrationRequest.d.ts.map +1 -0
  84. package/dist/models/AgentPSSOUserRegistrationRequest.js +59 -0
  85. package/dist/models/AgentPSSOUserRegistrationRequest.js.map +1 -0
  86. package/dist/models/EndpointDevice.d.ts +1 -1
  87. package/dist/models/EndpointDevice.d.ts.map +1 -1
  88. package/dist/models/EndpointDevice.js +1 -3
  89. package/dist/models/EndpointDevice.js.map +1 -1
  90. package/dist/models/EndpointDeviceDetails.d.ts +1 -1
  91. package/dist/models/EndpointDeviceDetails.d.ts.map +1 -1
  92. package/dist/models/EndpointDeviceDetails.js +1 -3
  93. package/dist/models/EndpointDeviceDetails.js.map +1 -1
  94. package/dist/models/EndpointDeviceRequest.d.ts +1 -1
  95. package/dist/models/EndpointDeviceRequest.d.ts.map +1 -1
  96. package/dist/models/EndpointDeviceRequest.js +1 -3
  97. package/dist/models/EndpointDeviceRequest.js.map +1 -1
  98. package/dist/models/Hardware.d.ts +2 -2
  99. package/dist/models/Hardware.d.ts.map +1 -1
  100. package/dist/models/Hardware.js +2 -6
  101. package/dist/models/Hardware.js.map +1 -1
  102. package/dist/models/HardwareRequest.d.ts +2 -2
  103. package/dist/models/HardwareRequest.d.ts.map +1 -1
  104. package/dist/models/HardwareRequest.js +2 -6
  105. package/dist/models/HardwareRequest.js.map +1 -1
  106. package/dist/models/PatchedAgentConnectorRequest.d.ts +6 -0
  107. package/dist/models/PatchedAgentConnectorRequest.d.ts.map +1 -1
  108. package/dist/models/PatchedAgentConnectorRequest.js +2 -0
  109. package/dist/models/PatchedAgentConnectorRequest.js.map +1 -1
  110. package/dist/models/index.d.ts +3 -0
  111. package/dist/models/index.d.ts.map +1 -1
  112. package/dist/models/index.js +3 -0
  113. package/dist/models/index.js.map +1 -1
  114. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  115. package/package.json +1 -1
  116. package/src/apis/EndpointsApi.ts +94 -0
  117. package/src/models/AgentConfig.ts +2 -3
  118. package/src/models/AgentConnector.ts +8 -0
  119. package/src/models/AgentConnectorRequest.ts +8 -0
  120. package/src/models/AgentPSSODeviceRegistrationRequest.ts +93 -0
  121. package/src/models/AgentPSSODeviceRegistrationResponse.ts +111 -0
  122. package/src/models/AgentPSSOUserRegistrationRequest.ts +84 -0
  123. package/src/models/EndpointDevice.ts +2 -3
  124. package/src/models/EndpointDeviceDetails.ts +2 -3
  125. package/src/models/EndpointDeviceRequest.ts +2 -3
  126. package/src/models/Hardware.ts +4 -6
  127. package/src/models/HardwareRequest.ts +4 -6
  128. package/src/models/PatchedAgentConnectorRequest.ts +8 -0
  129. package/src/models/index.ts +3 -0
  130. package/tsconfig.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.12.0-rc1-1764267850",
3
+ "version": "2025.12.0-rc1-1764545300",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,6 +19,9 @@ import type {
19
19
  AgentConfig,
20
20
  AgentConnector,
21
21
  AgentConnectorRequest,
22
+ AgentPSSODeviceRegistrationRequest,
23
+ AgentPSSODeviceRegistrationResponse,
24
+ AgentPSSOUserRegistrationRequest,
22
25
  AgentTokenResponse,
23
26
  Connector,
24
27
  DeviceAccessGroup,
@@ -49,6 +52,7 @@ import type {
49
52
  TokenView,
50
53
  TypeCreate,
51
54
  UsedBy,
55
+ UserSelf,
52
56
  ValidationError,
53
57
  } from '../models/index';
54
58
  import {
@@ -60,6 +64,12 @@ import {
60
64
  AgentConnectorToJSON,
61
65
  AgentConnectorRequestFromJSON,
62
66
  AgentConnectorRequestToJSON,
67
+ AgentPSSODeviceRegistrationRequestFromJSON,
68
+ AgentPSSODeviceRegistrationRequestToJSON,
69
+ AgentPSSODeviceRegistrationResponseFromJSON,
70
+ AgentPSSODeviceRegistrationResponseToJSON,
71
+ AgentPSSOUserRegistrationRequestFromJSON,
72
+ AgentPSSOUserRegistrationRequestToJSON,
63
73
  AgentTokenResponseFromJSON,
64
74
  AgentTokenResponseToJSON,
65
75
  ConnectorFromJSON,
@@ -120,6 +130,8 @@ import {
120
130
  TypeCreateToJSON,
121
131
  UsedByFromJSON,
122
132
  UsedByToJSON,
133
+ UserSelfFromJSON,
134
+ UserSelfToJSON,
123
135
  ValidationErrorFromJSON,
124
136
  ValidationErrorToJSON,
125
137
  } from '../models/index';
@@ -215,6 +227,14 @@ export interface EndpointsAgentsEnrollmentTokensViewKeyRetrieveRequest {
215
227
  tokenUuid: string;
216
228
  }
217
229
 
230
+ export interface EndpointsAgentsPssoRegisterDeviceCreateRequest {
231
+ agentPSSODeviceRegistrationRequest: AgentPSSODeviceRegistrationRequest;
232
+ }
233
+
234
+ export interface EndpointsAgentsPssoRegisterUserCreateRequest {
235
+ agentPSSOUserRegistrationRequest: AgentPSSOUserRegistrationRequest;
236
+ }
237
+
218
238
  export interface EndpointsConnectorsDestroyRequest {
219
239
  connectorUuid: string;
220
240
  }
@@ -1303,6 +1323,80 @@ export class EndpointsApi extends runtime.BaseAPI {
1303
1323
  return await response.value();
1304
1324
  }
1305
1325
 
1326
+ /**
1327
+ */
1328
+ async endpointsAgentsPssoRegisterDeviceCreateRaw(requestParameters: EndpointsAgentsPssoRegisterDeviceCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentPSSODeviceRegistrationResponse>> {
1329
+ if (requestParameters['agentPSSODeviceRegistrationRequest'] == null) {
1330
+ throw new runtime.RequiredError(
1331
+ 'agentPSSODeviceRegistrationRequest',
1332
+ 'Required parameter "agentPSSODeviceRegistrationRequest" was null or undefined when calling endpointsAgentsPssoRegisterDeviceCreate().'
1333
+ );
1334
+ }
1335
+
1336
+ const queryParameters: any = {};
1337
+
1338
+ const headerParameters: runtime.HTTPHeaders = {};
1339
+
1340
+ headerParameters['Content-Type'] = 'application/json';
1341
+
1342
+
1343
+ let urlPath = `/endpoints/agents/psso/register/device/`;
1344
+
1345
+ const response = await this.request({
1346
+ path: urlPath,
1347
+ method: 'POST',
1348
+ headers: headerParameters,
1349
+ query: queryParameters,
1350
+ body: AgentPSSODeviceRegistrationRequestToJSON(requestParameters['agentPSSODeviceRegistrationRequest']),
1351
+ }, initOverrides);
1352
+
1353
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentPSSODeviceRegistrationResponseFromJSON(jsonValue));
1354
+ }
1355
+
1356
+ /**
1357
+ */
1358
+ async endpointsAgentsPssoRegisterDeviceCreate(requestParameters: EndpointsAgentsPssoRegisterDeviceCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentPSSODeviceRegistrationResponse> {
1359
+ const response = await this.endpointsAgentsPssoRegisterDeviceCreateRaw(requestParameters, initOverrides);
1360
+ return await response.value();
1361
+ }
1362
+
1363
+ /**
1364
+ */
1365
+ async endpointsAgentsPssoRegisterUserCreateRaw(requestParameters: EndpointsAgentsPssoRegisterUserCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserSelf>> {
1366
+ if (requestParameters['agentPSSOUserRegistrationRequest'] == null) {
1367
+ throw new runtime.RequiredError(
1368
+ 'agentPSSOUserRegistrationRequest',
1369
+ 'Required parameter "agentPSSOUserRegistrationRequest" was null or undefined when calling endpointsAgentsPssoRegisterUserCreate().'
1370
+ );
1371
+ }
1372
+
1373
+ const queryParameters: any = {};
1374
+
1375
+ const headerParameters: runtime.HTTPHeaders = {};
1376
+
1377
+ headerParameters['Content-Type'] = 'application/json';
1378
+
1379
+
1380
+ let urlPath = `/endpoints/agents/psso/register/user/`;
1381
+
1382
+ const response = await this.request({
1383
+ path: urlPath,
1384
+ method: 'POST',
1385
+ headers: headerParameters,
1386
+ query: queryParameters,
1387
+ body: AgentPSSOUserRegistrationRequestToJSON(requestParameters['agentPSSOUserRegistrationRequest']),
1388
+ }, initOverrides);
1389
+
1390
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserSelfFromJSON(jsonValue));
1391
+ }
1392
+
1393
+ /**
1394
+ */
1395
+ async endpointsAgentsPssoRegisterUserCreate(requestParameters: EndpointsAgentsPssoRegisterUserCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserSelf> {
1396
+ const response = await this.endpointsAgentsPssoRegisterUserCreateRaw(requestParameters, initOverrides);
1397
+ return await response.value();
1398
+ }
1399
+
1306
1400
  /**
1307
1401
  * Connector Viewset
1308
1402
  */
@@ -44,7 +44,7 @@ export interface AgentConfig {
44
44
  * @type {string}
45
45
  * @memberof AgentConfig
46
46
  */
47
- authorizationFlow: string;
47
+ readonly authorizationFlow: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {{ [key: string]: any; }}
@@ -117,14 +117,13 @@ export function AgentConfigToJSON(json: any): AgentConfig {
117
117
  return AgentConfigToJSONTyped(json, false);
118
118
  }
119
119
 
120
- export function AgentConfigToJSONTyped(value?: Omit<AgentConfig, 'device_id'|'refresh_interval'|'jwks'|'system_config'> | null, ignoreDiscriminator: boolean = false): any {
120
+ export function AgentConfigToJSONTyped(value?: Omit<AgentConfig, 'device_id'|'refresh_interval'|'authorization_flow'|'jwks'|'system_config'> | null, ignoreDiscriminator: boolean = false): any {
121
121
  if (value == null) {
122
122
  return value;
123
123
  }
124
124
 
125
125
  return {
126
126
 
127
- 'authorization_flow': value['authorizationFlow'],
128
127
  'nss_uid_offset': value['nssUidOffset'],
129
128
  'nss_gid_offset': value['nssGidOffset'],
130
129
  'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
@@ -67,6 +67,12 @@ export interface AgentConnector {
67
67
  * @memberof AgentConnector
68
68
  */
69
69
  snapshotExpiry?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof AgentConnector
74
+ */
75
+ authSessionDuration?: string;
70
76
  /**
71
77
  *
72
78
  * @type {boolean}
@@ -141,6 +147,7 @@ export function AgentConnectorFromJSONTyped(json: any, ignoreDiscriminator: bool
141
147
  'verboseNamePlural': json['verbose_name_plural'],
142
148
  'metaModelName': json['meta_model_name'],
143
149
  'snapshotExpiry': json['snapshot_expiry'] == null ? undefined : json['snapshot_expiry'],
150
+ 'authSessionDuration': json['auth_session_duration'] == null ? undefined : json['auth_session_duration'],
144
151
  'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'] == null ? undefined : json['auth_terminate_session_on_expiry'],
145
152
  'refreshInterval': json['refresh_interval'] == null ? undefined : json['refresh_interval'],
146
153
  'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
@@ -166,6 +173,7 @@ export function AgentConnectorToJSONTyped(value?: Omit<AgentConnector, 'componen
166
173
  'name': value['name'],
167
174
  'enabled': value['enabled'],
168
175
  'snapshot_expiry': value['snapshotExpiry'],
176
+ 'auth_session_duration': value['authSessionDuration'],
169
177
  'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
170
178
  'refresh_interval': value['refreshInterval'],
171
179
  'authorization_flow': value['authorizationFlow'],
@@ -43,6 +43,12 @@ export interface AgentConnectorRequest {
43
43
  * @memberof AgentConnectorRequest
44
44
  */
45
45
  snapshotExpiry?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AgentConnectorRequest
50
+ */
51
+ authSessionDuration?: string;
46
52
  /**
47
53
  *
48
54
  * @type {boolean}
@@ -109,6 +115,7 @@ export function AgentConnectorRequestFromJSONTyped(json: any, ignoreDiscriminato
109
115
  'name': json['name'],
110
116
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
111
117
  'snapshotExpiry': json['snapshot_expiry'] == null ? undefined : json['snapshot_expiry'],
118
+ 'authSessionDuration': json['auth_session_duration'] == null ? undefined : json['auth_session_duration'],
112
119
  'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'] == null ? undefined : json['auth_terminate_session_on_expiry'],
113
120
  'refreshInterval': json['refresh_interval'] == null ? undefined : json['refresh_interval'],
114
121
  'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
@@ -134,6 +141,7 @@ export function AgentConnectorRequestToJSONTyped(value?: AgentConnectorRequest |
134
141
  'name': value['name'],
135
142
  'enabled': value['enabled'],
136
143
  'snapshot_expiry': value['snapshotExpiry'],
144
+ 'auth_session_duration': value['authSessionDuration'],
137
145
  'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
138
146
  'refresh_interval': value['refreshInterval'],
139
147
  'authorization_flow': value['authorizationFlow'],
@@ -0,0 +1,93 @@
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
+ * Register Apple device via Platform SSO
18
+ * @export
19
+ * @interface AgentPSSODeviceRegistrationRequest
20
+ */
21
+ export interface AgentPSSODeviceRegistrationRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentPSSODeviceRegistrationRequest
26
+ */
27
+ deviceSigningKey: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AgentPSSODeviceRegistrationRequest
32
+ */
33
+ deviceEncryptionKey: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AgentPSSODeviceRegistrationRequest
38
+ */
39
+ signKeyId: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AgentPSSODeviceRegistrationRequest
44
+ */
45
+ encKeyId: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AgentPSSODeviceRegistrationRequest interface.
50
+ */
51
+ export function instanceOfAgentPSSODeviceRegistrationRequest(value: object): value is AgentPSSODeviceRegistrationRequest {
52
+ if (!('deviceSigningKey' in value) || value['deviceSigningKey'] === undefined) return false;
53
+ if (!('deviceEncryptionKey' in value) || value['deviceEncryptionKey'] === undefined) return false;
54
+ if (!('signKeyId' in value) || value['signKeyId'] === undefined) return false;
55
+ if (!('encKeyId' in value) || value['encKeyId'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AgentPSSODeviceRegistrationRequestFromJSON(json: any): AgentPSSODeviceRegistrationRequest {
60
+ return AgentPSSODeviceRegistrationRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AgentPSSODeviceRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSODeviceRegistrationRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'deviceSigningKey': json['device_signing_key'],
70
+ 'deviceEncryptionKey': json['device_encryption_key'],
71
+ 'signKeyId': json['sign_key_id'],
72
+ 'encKeyId': json['enc_key_id'],
73
+ };
74
+ }
75
+
76
+ export function AgentPSSODeviceRegistrationRequestToJSON(json: any): AgentPSSODeviceRegistrationRequest {
77
+ return AgentPSSODeviceRegistrationRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function AgentPSSODeviceRegistrationRequestToJSONTyped(value?: AgentPSSODeviceRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'device_signing_key': value['deviceSigningKey'],
88
+ 'device_encryption_key': value['deviceEncryptionKey'],
89
+ 'sign_key_id': value['signKeyId'],
90
+ 'enc_key_id': value['encKeyId'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,111 @@
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
+ * authentik settings for Platform SSO tokens
18
+ * @export
19
+ * @interface AgentPSSODeviceRegistrationResponse
20
+ */
21
+ export interface AgentPSSODeviceRegistrationResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentPSSODeviceRegistrationResponse
26
+ */
27
+ clientId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AgentPSSODeviceRegistrationResponse
32
+ */
33
+ issuer: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AgentPSSODeviceRegistrationResponse
38
+ */
39
+ tokenEndpoint: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AgentPSSODeviceRegistrationResponse
44
+ */
45
+ jwksEndpoint: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AgentPSSODeviceRegistrationResponse
50
+ */
51
+ audience: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AgentPSSODeviceRegistrationResponse
56
+ */
57
+ nonceEndpoint: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the AgentPSSODeviceRegistrationResponse interface.
62
+ */
63
+ export function instanceOfAgentPSSODeviceRegistrationResponse(value: object): value is AgentPSSODeviceRegistrationResponse {
64
+ if (!('clientId' in value) || value['clientId'] === undefined) return false;
65
+ if (!('issuer' in value) || value['issuer'] === undefined) return false;
66
+ if (!('tokenEndpoint' in value) || value['tokenEndpoint'] === undefined) return false;
67
+ if (!('jwksEndpoint' in value) || value['jwksEndpoint'] === undefined) return false;
68
+ if (!('audience' in value) || value['audience'] === undefined) return false;
69
+ if (!('nonceEndpoint' in value) || value['nonceEndpoint'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function AgentPSSODeviceRegistrationResponseFromJSON(json: any): AgentPSSODeviceRegistrationResponse {
74
+ return AgentPSSODeviceRegistrationResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function AgentPSSODeviceRegistrationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSODeviceRegistrationResponse {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'clientId': json['client_id'],
84
+ 'issuer': json['issuer'],
85
+ 'tokenEndpoint': json['token_endpoint'],
86
+ 'jwksEndpoint': json['jwks_endpoint'],
87
+ 'audience': json['audience'],
88
+ 'nonceEndpoint': json['nonce_endpoint'],
89
+ };
90
+ }
91
+
92
+ export function AgentPSSODeviceRegistrationResponseToJSON(json: any): AgentPSSODeviceRegistrationResponse {
93
+ return AgentPSSODeviceRegistrationResponseToJSONTyped(json, false);
94
+ }
95
+
96
+ export function AgentPSSODeviceRegistrationResponseToJSONTyped(value?: AgentPSSODeviceRegistrationResponse | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'client_id': value['clientId'],
104
+ 'issuer': value['issuer'],
105
+ 'token_endpoint': value['tokenEndpoint'],
106
+ 'jwks_endpoint': value['jwksEndpoint'],
107
+ 'audience': value['audience'],
108
+ 'nonce_endpoint': value['nonceEndpoint'],
109
+ };
110
+ }
111
+
@@ -0,0 +1,84 @@
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
+ * Register Apple device user via Platform SSO
18
+ * @export
19
+ * @interface AgentPSSOUserRegistrationRequest
20
+ */
21
+ export interface AgentPSSOUserRegistrationRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentPSSOUserRegistrationRequest
26
+ */
27
+ userAuth: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AgentPSSOUserRegistrationRequest
32
+ */
33
+ userSecureEnclaveKey: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AgentPSSOUserRegistrationRequest
38
+ */
39
+ enclaveKeyId: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AgentPSSOUserRegistrationRequest interface.
44
+ */
45
+ export function instanceOfAgentPSSOUserRegistrationRequest(value: object): value is AgentPSSOUserRegistrationRequest {
46
+ if (!('userAuth' in value) || value['userAuth'] === undefined) return false;
47
+ if (!('userSecureEnclaveKey' in value) || value['userSecureEnclaveKey'] === undefined) return false;
48
+ if (!('enclaveKeyId' in value) || value['enclaveKeyId'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AgentPSSOUserRegistrationRequestFromJSON(json: any): AgentPSSOUserRegistrationRequest {
53
+ return AgentPSSOUserRegistrationRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AgentPSSOUserRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSOUserRegistrationRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'userAuth': json['user_auth'],
63
+ 'userSecureEnclaveKey': json['user_secure_enclave_key'],
64
+ 'enclaveKeyId': json['enclave_key_id'],
65
+ };
66
+ }
67
+
68
+ export function AgentPSSOUserRegistrationRequestToJSON(json: any): AgentPSSOUserRegistrationRequest {
69
+ return AgentPSSOUserRegistrationRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AgentPSSOUserRegistrationRequestToJSONTyped(value?: AgentPSSOUserRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'user_auth': value['userAuth'],
80
+ 'user_secure_enclave_key': value['userSecureEnclaveKey'],
81
+ 'enclave_key_id': value['enclaveKeyId'],
82
+ };
83
+ }
84
+
@@ -63,7 +63,7 @@ export interface EndpointDevice {
63
63
  * @type {DeviceAccessGroup}
64
64
  * @memberof EndpointDevice
65
65
  */
66
- accessGroupObj: DeviceAccessGroup;
66
+ accessGroupObj?: DeviceAccessGroup;
67
67
  /**
68
68
  *
69
69
  * @type {boolean}
@@ -96,7 +96,6 @@ export interface EndpointDevice {
96
96
  export function instanceOfEndpointDevice(value: object): value is EndpointDevice {
97
97
  if (!('pbmUuid' in value) || value['pbmUuid'] === undefined) return false;
98
98
  if (!('name' in value) || value['name'] === undefined) return false;
99
- if (!('accessGroupObj' in value) || value['accessGroupObj'] === undefined) return false;
100
99
  if (!('facts' in value) || value['facts'] === undefined) return false;
101
100
  return true;
102
101
  }
@@ -115,7 +114,7 @@ export function EndpointDeviceFromJSONTyped(json: any, ignoreDiscriminator: bool
115
114
  'pbmUuid': json['pbm_uuid'],
116
115
  'name': json['name'],
117
116
  'accessGroup': json['access_group'] == null ? undefined : json['access_group'],
118
- 'accessGroupObj': DeviceAccessGroupFromJSON(json['access_group_obj']),
117
+ 'accessGroupObj': json['access_group_obj'] == null ? undefined : DeviceAccessGroupFromJSON(json['access_group_obj']),
119
118
  'expiring': json['expiring'] == null ? undefined : json['expiring'],
120
119
  'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
121
120
  'facts': DeviceFactSnapshotFromJSON(json['facts']),
@@ -70,7 +70,7 @@ export interface EndpointDeviceDetails {
70
70
  * @type {DeviceAccessGroup}
71
71
  * @memberof EndpointDeviceDetails
72
72
  */
73
- accessGroupObj: DeviceAccessGroup;
73
+ accessGroupObj?: DeviceAccessGroup;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -121,7 +121,6 @@ export interface EndpointDeviceDetails {
121
121
  export function instanceOfEndpointDeviceDetails(value: object): value is EndpointDeviceDetails {
122
122
  if (!('pbmUuid' in value) || value['pbmUuid'] === undefined) return false;
123
123
  if (!('name' in value) || value['name'] === undefined) return false;
124
- if (!('accessGroupObj' in value) || value['accessGroupObj'] === undefined) return false;
125
124
  if (!('facts' in value) || value['facts'] === undefined) return false;
126
125
  if (!('connectionsObj' in value) || value['connectionsObj'] === undefined) return false;
127
126
  if (!('policies' in value) || value['policies'] === undefined) return false;
@@ -143,7 +142,7 @@ export function EndpointDeviceDetailsFromJSONTyped(json: any, ignoreDiscriminato
143
142
  'pbmUuid': json['pbm_uuid'],
144
143
  'name': json['name'],
145
144
  'accessGroup': json['access_group'] == null ? undefined : json['access_group'],
146
- 'accessGroupObj': DeviceAccessGroupFromJSON(json['access_group_obj']),
145
+ 'accessGroupObj': json['access_group_obj'] == null ? undefined : DeviceAccessGroupFromJSON(json['access_group_obj']),
147
146
  'expiring': json['expiring'] == null ? undefined : json['expiring'],
148
147
  'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
149
148
  'facts': DeviceFactSnapshotFromJSON(json['facts']),
@@ -50,7 +50,7 @@ export interface EndpointDeviceRequest {
50
50
  * @type {DeviceAccessGroupRequest}
51
51
  * @memberof EndpointDeviceRequest
52
52
  */
53
- accessGroupObj: DeviceAccessGroupRequest;
53
+ accessGroupObj?: DeviceAccessGroupRequest;
54
54
  /**
55
55
  *
56
56
  * @type {boolean}
@@ -76,7 +76,6 @@ export interface EndpointDeviceRequest {
76
76
  */
77
77
  export function instanceOfEndpointDeviceRequest(value: object): value is EndpointDeviceRequest {
78
78
  if (!('name' in value) || value['name'] === undefined) return false;
79
- if (!('accessGroupObj' in value) || value['accessGroupObj'] === undefined) return false;
80
79
  return true;
81
80
  }
82
81
 
@@ -93,7 +92,7 @@ export function EndpointDeviceRequestFromJSONTyped(json: any, ignoreDiscriminato
93
92
  'deviceUuid': json['device_uuid'] == null ? undefined : json['device_uuid'],
94
93
  'name': json['name'],
95
94
  'accessGroup': json['access_group'] == null ? undefined : json['access_group'],
96
- 'accessGroupObj': DeviceAccessGroupRequestFromJSON(json['access_group_obj']),
95
+ 'accessGroupObj': json['access_group_obj'] == null ? undefined : DeviceAccessGroupRequestFromJSON(json['access_group_obj']),
97
96
  'expiring': json['expiring'] == null ? undefined : json['expiring'],
98
97
  'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
99
98
  'attributes': json['attributes'] == null ? undefined : json['attributes'],
@@ -24,13 +24,13 @@ export interface Hardware {
24
24
  * @type {string}
25
25
  * @memberof Hardware
26
26
  */
27
- model: string;
27
+ model?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof Hardware
32
32
  */
33
- manufacturer: string;
33
+ manufacturer?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -61,8 +61,6 @@ export interface Hardware {
61
61
  * Check if a given object implements the Hardware interface.
62
62
  */
63
63
  export function instanceOfHardware(value: object): value is Hardware {
64
- if (!('model' in value) || value['model'] === undefined) return false;
65
- if (!('manufacturer' in value) || value['manufacturer'] === undefined) return false;
66
64
  if (!('serial' in value) || value['serial'] === undefined) return false;
67
65
  return true;
68
66
  }
@@ -77,8 +75,8 @@ export function HardwareFromJSONTyped(json: any, ignoreDiscriminator: boolean):
77
75
  }
78
76
  return {
79
77
 
80
- 'model': json['model'],
81
- 'manufacturer': json['manufacturer'],
78
+ 'model': json['model'] == null ? undefined : json['model'],
79
+ 'manufacturer': json['manufacturer'] == null ? undefined : json['manufacturer'],
82
80
  'serial': json['serial'],
83
81
  'cpuName': json['cpu_name'] == null ? undefined : json['cpu_name'],
84
82
  'cpuCount': json['cpu_count'] == null ? undefined : json['cpu_count'],
@@ -24,13 +24,13 @@ export interface HardwareRequest {
24
24
  * @type {string}
25
25
  * @memberof HardwareRequest
26
26
  */
27
- model: string;
27
+ model?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
31
  * @memberof HardwareRequest
32
32
  */
33
- manufacturer: string;
33
+ manufacturer?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -61,8 +61,6 @@ export interface HardwareRequest {
61
61
  * Check if a given object implements the HardwareRequest interface.
62
62
  */
63
63
  export function instanceOfHardwareRequest(value: object): value is HardwareRequest {
64
- if (!('model' in value) || value['model'] === undefined) return false;
65
- if (!('manufacturer' in value) || value['manufacturer'] === undefined) return false;
66
64
  if (!('serial' in value) || value['serial'] === undefined) return false;
67
65
  return true;
68
66
  }
@@ -77,8 +75,8 @@ export function HardwareRequestFromJSONTyped(json: any, ignoreDiscriminator: boo
77
75
  }
78
76
  return {
79
77
 
80
- 'model': json['model'],
81
- 'manufacturer': json['manufacturer'],
78
+ 'model': json['model'] == null ? undefined : json['model'],
79
+ 'manufacturer': json['manufacturer'] == null ? undefined : json['manufacturer'],
82
80
  'serial': json['serial'],
83
81
  'cpuName': json['cpu_name'] == null ? undefined : json['cpu_name'],
84
82
  'cpuCount': json['cpu_count'] == null ? undefined : json['cpu_count'],