@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.
- package/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.d.ts.map +1 -1
- package/dist/apis/StagesApi.js +3 -0
- package/dist/apis/StagesApi.js.map +1 -1
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.d.ts.map +1 -1
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/apis/StagesApi.js.map +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorWebAuthnStage.d.ts.map +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnStage.js +2 -0
- package/dist/esm/models/AuthenticatorWebAuthnStage.js.map +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnStageRequest.js +2 -0
- package/dist/esm/models/AuthenticatorWebAuthnStageRequest.js.map +1 -1
- package/dist/esm/models/Device.d.ts +9 -3
- package/dist/esm/models/Device.d.ts.map +1 -1
- package/dist/esm/models/Device.js +3 -0
- package/dist/esm/models/Device.js.map +1 -1
- package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.js +2 -0
- package/dist/esm/models/PatchedAuthenticatorWebAuthnStageRequest.js.map +1 -1
- package/dist/models/AuthenticatorWebAuthnStage.d.ts +6 -0
- package/dist/models/AuthenticatorWebAuthnStage.d.ts.map +1 -1
- package/dist/models/AuthenticatorWebAuthnStage.js +2 -0
- package/dist/models/AuthenticatorWebAuthnStage.js.map +1 -1
- package/dist/models/AuthenticatorWebAuthnStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
- package/dist/models/AuthenticatorWebAuthnStageRequest.js +2 -0
- package/dist/models/AuthenticatorWebAuthnStageRequest.js.map +1 -1
- package/dist/models/Device.d.ts +9 -3
- package/dist/models/Device.d.ts.map +1 -1
- package/dist/models/Device.js +3 -0
- package/dist/models/Device.js.map +1 -1
- package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts.map +1 -1
- package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.js +2 -0
- package/dist/models/PatchedAuthenticatorWebAuthnStageRequest.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/AuthenticatorWebAuthnStage.ts +8 -0
- package/src/models/AuthenticatorWebAuthnStageRequest.ts +8 -0
- package/src/models/Device.ts +11 -3
- package/src/models/PatchedAuthenticatorWebAuthnStageRequest.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/apis/StagesApi.ts
CHANGED
|
@@ -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
|
|
package/src/models/Device.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Serializer for
|
|
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
|
|