@goauthentik/api 2025.6.2-1750246811 → 2025.6.2-1750801939

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 (48) hide show
  1. package/dist/apis/StagesApi.d.ts +1 -0
  2. package/dist/apis/StagesApi.d.ts.map +1 -1
  3. package/dist/apis/StagesApi.js +3 -0
  4. package/dist/apis/StagesApi.js.map +1 -1
  5. package/dist/esm/apis/StagesApi.d.ts +1 -0
  6. package/dist/esm/apis/StagesApi.d.ts.map +1 -1
  7. package/dist/esm/apis/StagesApi.js +3 -0
  8. package/dist/esm/apis/StagesApi.js.map +1 -1
  9. package/dist/esm/models/AuthenticatorWebAuthnStage.d.ts +6 -0
  10. package/dist/esm/models/AuthenticatorWebAuthnStage.d.ts.map +1 -1
  11. package/dist/esm/models/AuthenticatorWebAuthnStage.js +2 -0
  12. package/dist/esm/models/AuthenticatorWebAuthnStage.js.map +1 -1
  13. package/dist/esm/models/AuthenticatorWebAuthnStageRequest.d.ts +6 -0
  14. package/dist/esm/models/AuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
  15. package/dist/esm/models/AuthenticatorWebAuthnStageRequest.js +2 -0
  16. package/dist/esm/models/AuthenticatorWebAuthnStageRequest.js.map +1 -1
  17. package/dist/esm/models/Device.d.ts +9 -3
  18. package/dist/esm/models/Device.d.ts.map +1 -1
  19. package/dist/esm/models/Device.js +3 -0
  20. package/dist/esm/models/Device.js.map +1 -1
  21. package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts +6 -0
  22. package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
  23. package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.js +2 -0
  24. package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.js.map +1 -1
  25. package/dist/models/AuthenticatorWebAuthnStage.d.ts +6 -0
  26. package/dist/models/AuthenticatorWebAuthnStage.d.ts.map +1 -1
  27. package/dist/models/AuthenticatorWebAuthnStage.js +2 -0
  28. package/dist/models/AuthenticatorWebAuthnStage.js.map +1 -1
  29. package/dist/models/AuthenticatorWebAuthnStageRequest.d.ts +6 -0
  30. package/dist/models/AuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
  31. package/dist/models/AuthenticatorWebAuthnStageRequest.js +2 -0
  32. package/dist/models/AuthenticatorWebAuthnStageRequest.js.map +1 -1
  33. package/dist/models/Device.d.ts +9 -3
  34. package/dist/models/Device.d.ts.map +1 -1
  35. package/dist/models/Device.js +3 -0
  36. package/dist/models/Device.js.map +1 -1
  37. package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts +6 -0
  38. package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
  39. package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.js +2 -0
  40. package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.js.map +1 -1
  41. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  42. package/package.json +1 -1
  43. package/src/apis/StagesApi.ts +5 -0
  44. package/src/models/AuthenticatorWebAuthnStage.ts +8 -0
  45. package/src/models/AuthenticatorWebAuthnStageRequest.ts +8 -0
  46. package/src/models/Device.ts +11 -3
  47. package/src/models/PatchedAuthenticatorWebAuthnStageRequest.ts +8 -0
  48. package/tsconfig.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.6.2-1750246811",
3
+ "version": "2025.6.2-1750801939",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -709,6 +709,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
709
709
  configureFlow?: string;
710
710
  deviceTypeRestrictions?: Array<string>;
711
711
  friendlyName?: string;
712
+ maxAttempts?: number;
712
713
  name?: string;
713
714
  ordering?: string;
714
715
  page?: number;
@@ -4378,6 +4379,10 @@ export class StagesApi extends runtime.BaseAPI {
4378
4379
  queryParameters['friendly_name'] = requestParameters['friendlyName'];
4379
4380
  }
4380
4381
 
4382
+ if (requestParameters['maxAttempts'] != null) {
4383
+ queryParameters['max_attempts'] = requestParameters['maxAttempts'];
4384
+ }
4385
+
4381
4386
  if (requestParameters['name'] != null) {
4382
4387
  queryParameters['name'] = requestParameters['name'];
4383
4388
  }
@@ -139,6 +139,12 @@ export interface AuthenticatorWebAuthnStage {
139
139
  * @memberof AuthenticatorWebAuthnStage
140
140
  */
141
141
  readonly deviceTypeRestrictionsObj: Array<WebAuthnDeviceType>;
142
+ /**
143
+ *
144
+ * @type {number}
145
+ * @memberof AuthenticatorWebAuthnStage
146
+ */
147
+ maxAttempts?: number;
142
148
  }
143
149
 
144
150
 
@@ -181,6 +187,7 @@ export function AuthenticatorWebAuthnStageFromJSONTyped(json: any, ignoreDiscrim
181
187
  'residentKeyRequirement': json['resident_key_requirement'] == null ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
182
188
  'deviceTypeRestrictions': json['device_type_restrictions'] == null ? undefined : json['device_type_restrictions'],
183
189
  'deviceTypeRestrictionsObj': ((json['device_type_restrictions_obj'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
190
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
184
191
  };
185
192
  }
186
193
 
@@ -203,6 +210,7 @@ export function AuthenticatorWebAuthnStageToJSONTyped(value?: Omit<Authenticator
203
210
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value['authenticatorAttachment']),
204
211
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value['residentKeyRequirement']),
205
212
  'device_type_restrictions': value['deviceTypeRestrictions'],
213
+ 'max_attempts': value['maxAttempts'],
206
214
  };
207
215
  }
208
216
 
@@ -96,6 +96,12 @@ export interface AuthenticatorWebAuthnStageRequest {
96
96
  * @memberof AuthenticatorWebAuthnStageRequest
97
97
  */
98
98
  deviceTypeRestrictions?: Array<string>;
99
+ /**
100
+ *
101
+ * @type {number}
102
+ * @memberof AuthenticatorWebAuthnStageRequest
103
+ */
104
+ maxAttempts?: number;
99
105
  }
100
106
 
101
107
 
@@ -126,6 +132,7 @@ export function AuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignore
126
132
  'authenticatorAttachment': json['authenticator_attachment'] == null ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
127
133
  'residentKeyRequirement': json['resident_key_requirement'] == null ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
128
134
  'deviceTypeRestrictions': json['device_type_restrictions'] == null ? undefined : json['device_type_restrictions'],
135
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
129
136
  };
130
137
  }
131
138
 
@@ -148,6 +155,7 @@ export function AuthenticatorWebAuthnStageRequestToJSONTyped(value?: Authenticat
148
155
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value['authenticatorAttachment']),
149
156
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value['residentKeyRequirement']),
150
157
  'device_type_restrictions': value['deviceTypeRestrictions'],
158
+ 'max_attempts': value['maxAttempts'],
151
159
  };
152
160
  }
153
161
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { mapValues } from '../runtime';
16
16
  /**
17
- * Serializer for Duo authenticator devices
17
+ * Serializer for authenticator devices
18
18
  * @export
19
19
  * @interface Device
20
20
  */
@@ -84,7 +84,13 @@ export interface Device {
84
84
  * @type {string}
85
85
  * @memberof Device
86
86
  */
87
- readonly extraDescription: string;
87
+ readonly extraDescription: string | null;
88
+ /**
89
+ * Get external Device ID
90
+ * @type {string}
91
+ * @memberof Device
92
+ */
93
+ readonly externalId: string | null;
88
94
  }
89
95
 
90
96
  /**
@@ -102,6 +108,7 @@ export function instanceOfDevice(value: object): value is Device {
102
108
  if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
103
109
  if (!('lastUsed' in value) || value['lastUsed'] === undefined) return false;
104
110
  if (!('extraDescription' in value) || value['extraDescription'] === undefined) return false;
111
+ if (!('externalId' in value) || value['externalId'] === undefined) return false;
105
112
  return true;
106
113
  }
107
114
 
@@ -126,6 +133,7 @@ export function DeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): De
126
133
  'lastUpdated': (new Date(json['last_updated'])),
127
134
  'lastUsed': (json['last_used'] == null ? null : new Date(json['last_used'])),
128
135
  'extraDescription': json['extra_description'],
136
+ 'externalId': json['external_id'],
129
137
  };
130
138
  }
131
139
 
@@ -133,7 +141,7 @@ export function DeviceToJSON(json: any): Device {
133
141
  return DeviceToJSONTyped(json, false);
134
142
  }
135
143
 
136
- export function DeviceToJSONTyped(value?: Omit<Device, 'verbose_name'|'verbose_name_plural'|'meta_model_name'|'type'|'created'|'last_updated'|'last_used'|'extra_description'> | null, ignoreDiscriminator: boolean = false): any {
144
+ export function DeviceToJSONTyped(value?: Omit<Device, 'verbose_name'|'verbose_name_plural'|'meta_model_name'|'type'|'created'|'last_updated'|'last_used'|'extra_description'|'external_id'> | null, ignoreDiscriminator: boolean = false): any {
137
145
  if (value == null) {
138
146
  return value;
139
147
  }
@@ -96,6 +96,12 @@ export interface PatchedAuthenticatorWebAuthnStageRequest {
96
96
  * @memberof PatchedAuthenticatorWebAuthnStageRequest
97
97
  */
98
98
  deviceTypeRestrictions?: Array<string>;
99
+ /**
100
+ *
101
+ * @type {number}
102
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
103
+ */
104
+ maxAttempts?: number;
99
105
  }
100
106
 
101
107
 
@@ -125,6 +131,7 @@ export function PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json: any,
125
131
  'authenticatorAttachment': json['authenticator_attachment'] == null ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
126
132
  'residentKeyRequirement': json['resident_key_requirement'] == null ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
127
133
  'deviceTypeRestrictions': json['device_type_restrictions'] == null ? undefined : json['device_type_restrictions'],
134
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
128
135
  };
129
136
  }
130
137
 
@@ -147,6 +154,7 @@ export function PatchedAuthenticatorWebAuthnStageRequestToJSONTyped(value?: Patc
147
154
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value['authenticatorAttachment']),
148
155
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value['residentKeyRequirement']),
149
156
  'device_type_restrictions': value['deviceTypeRestrictions'],
157
+ 'max_attempts': value['maxAttempts'],
150
158
  };
151
159
  }
152
160