@goauthentik/api 2025.6.2-1750242193 → 2025.6.2-1750636159
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/EventsApi.d.ts +1 -1
- package/dist/apis/EventsApi.d.ts.map +1 -1
- package/dist/apis/EventsApi.js +2 -2
- package/dist/apis/EventsApi.js.map +1 -1
- 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/EventsApi.d.ts +1 -1
- package/dist/esm/apis/EventsApi.d.ts.map +1 -1
- package/dist/esm/apis/EventsApi.js +2 -2
- package/dist/esm/apis/EventsApi.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/NotificationRule.d.ts +9 -3
- package/dist/esm/models/NotificationRule.d.ts.map +1 -1
- package/dist/esm/models/NotificationRule.js +6 -4
- package/dist/esm/models/NotificationRule.js.map +1 -1
- package/dist/esm/models/NotificationRuleRequest.d.ts +7 -1
- package/dist/esm/models/NotificationRuleRequest.d.ts.map +1 -1
- package/dist/esm/models/NotificationRuleRequest.js +4 -2
- package/dist/esm/models/NotificationRuleRequest.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/esm/models/PatchedNotificationRuleRequest.d.ts +7 -1
- package/dist/esm/models/PatchedNotificationRuleRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedNotificationRuleRequest.js +4 -2
- package/dist/esm/models/PatchedNotificationRuleRequest.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/NotificationRule.d.ts +9 -3
- package/dist/models/NotificationRule.d.ts.map +1 -1
- package/dist/models/NotificationRule.js +6 -4
- package/dist/models/NotificationRule.js.map +1 -1
- package/dist/models/NotificationRuleRequest.d.ts +7 -1
- package/dist/models/NotificationRuleRequest.d.ts.map +1 -1
- package/dist/models/NotificationRuleRequest.js +4 -2
- package/dist/models/NotificationRuleRequest.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/models/PatchedNotificationRuleRequest.d.ts +7 -1
- package/dist/models/PatchedNotificationRuleRequest.d.ts.map +1 -1
- package/dist/models/PatchedNotificationRuleRequest.js +4 -2
- package/dist/models/PatchedNotificationRuleRequest.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/EventsApi.ts +3 -3
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/AuthenticatorWebAuthnStage.ts +8 -0
- package/src/models/AuthenticatorWebAuthnStageRequest.ts +8 -0
- package/src/models/NotificationRule.ts +15 -7
- package/src/models/NotificationRuleRequest.ts +11 -3
- package/src/models/PatchedAuthenticatorWebAuthnStageRequest.ts +8 -0
- package/src/models/PatchedNotificationRuleRequest.ts +11 -3
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/apis/EventsApi.ts
CHANGED
|
@@ -196,7 +196,7 @@ export interface EventsRulesDestroyRequest {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export interface EventsRulesListRequest {
|
|
199
|
-
|
|
199
|
+
destinationGroupName?: string;
|
|
200
200
|
name?: string;
|
|
201
201
|
ordering?: string;
|
|
202
202
|
page?: number;
|
|
@@ -1158,8 +1158,8 @@ export class EventsApi extends runtime.BaseAPI {
|
|
|
1158
1158
|
async eventsRulesListRaw(requestParameters: EventsRulesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedNotificationRuleList>> {
|
|
1159
1159
|
const queryParameters: any = {};
|
|
1160
1160
|
|
|
1161
|
-
if (requestParameters['
|
|
1162
|
-
queryParameters['
|
|
1161
|
+
if (requestParameters['destinationGroupName'] != null) {
|
|
1162
|
+
queryParameters['destination_group__name'] = requestParameters['destinationGroupName'];
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
1165
|
if (requestParameters['name'] != null) {
|
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
|
|
|
@@ -63,13 +63,19 @@ export interface NotificationRule {
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof NotificationRule
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
destinationGroup?: string | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {Group}
|
|
70
70
|
* @memberof NotificationRule
|
|
71
71
|
*/
|
|
72
|
-
readonly
|
|
72
|
+
readonly destinationGroupObj: Group;
|
|
73
|
+
/**
|
|
74
|
+
* When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof NotificationRule
|
|
77
|
+
*/
|
|
78
|
+
destinationEventUser?: boolean;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
|
|
@@ -80,7 +86,7 @@ export interface NotificationRule {
|
|
|
80
86
|
export function instanceOfNotificationRule(value: object): value is NotificationRule {
|
|
81
87
|
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
82
88
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
83
|
-
if (!('
|
|
89
|
+
if (!('destinationGroupObj' in value) || value['destinationGroupObj'] === undefined) return false;
|
|
84
90
|
return true;
|
|
85
91
|
}
|
|
86
92
|
|
|
@@ -98,8 +104,9 @@ export function NotificationRuleFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
98
104
|
'name': json['name'],
|
|
99
105
|
'transports': json['transports'] == null ? undefined : json['transports'],
|
|
100
106
|
'severity': json['severity'] == null ? undefined : SeverityEnumFromJSON(json['severity']),
|
|
101
|
-
'
|
|
102
|
-
'
|
|
107
|
+
'destinationGroup': json['destination_group'] == null ? undefined : json['destination_group'],
|
|
108
|
+
'destinationGroupObj': GroupFromJSON(json['destination_group_obj']),
|
|
109
|
+
'destinationEventUser': json['destination_event_user'] == null ? undefined : json['destination_event_user'],
|
|
103
110
|
};
|
|
104
111
|
}
|
|
105
112
|
|
|
@@ -107,7 +114,7 @@ export function NotificationRuleToJSON(json: any): NotificationRule {
|
|
|
107
114
|
return NotificationRuleToJSONTyped(json, false);
|
|
108
115
|
}
|
|
109
116
|
|
|
110
|
-
export function NotificationRuleToJSONTyped(value?: Omit<NotificationRule, 'pk'|'
|
|
117
|
+
export function NotificationRuleToJSONTyped(value?: Omit<NotificationRule, 'pk'|'destination_group_obj'> | null, ignoreDiscriminator: boolean = false): any {
|
|
111
118
|
if (value == null) {
|
|
112
119
|
return value;
|
|
113
120
|
}
|
|
@@ -117,7 +124,8 @@ export function NotificationRuleToJSONTyped(value?: Omit<NotificationRule, 'pk'|
|
|
|
117
124
|
'name': value['name'],
|
|
118
125
|
'transports': value['transports'],
|
|
119
126
|
'severity': SeverityEnumToJSON(value['severity']),
|
|
120
|
-
'
|
|
127
|
+
'destination_group': value['destinationGroup'],
|
|
128
|
+
'destination_event_user': value['destinationEventUser'],
|
|
121
129
|
};
|
|
122
130
|
}
|
|
123
131
|
|
|
@@ -50,7 +50,13 @@ export interface NotificationRuleRequest {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof NotificationRuleRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
destinationGroup?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof NotificationRuleRequest
|
|
58
|
+
*/
|
|
59
|
+
destinationEventUser?: boolean;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
|
|
@@ -76,7 +82,8 @@ export function NotificationRuleRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
76
82
|
'name': json['name'],
|
|
77
83
|
'transports': json['transports'] == null ? undefined : json['transports'],
|
|
78
84
|
'severity': json['severity'] == null ? undefined : SeverityEnumFromJSON(json['severity']),
|
|
79
|
-
'
|
|
85
|
+
'destinationGroup': json['destination_group'] == null ? undefined : json['destination_group'],
|
|
86
|
+
'destinationEventUser': json['destination_event_user'] == null ? undefined : json['destination_event_user'],
|
|
80
87
|
};
|
|
81
88
|
}
|
|
82
89
|
|
|
@@ -94,7 +101,8 @@ export function NotificationRuleRequestToJSONTyped(value?: NotificationRuleReque
|
|
|
94
101
|
'name': value['name'],
|
|
95
102
|
'transports': value['transports'],
|
|
96
103
|
'severity': SeverityEnumToJSON(value['severity']),
|
|
97
|
-
'
|
|
104
|
+
'destination_group': value['destinationGroup'],
|
|
105
|
+
'destination_event_user': value['destinationEventUser'],
|
|
98
106
|
};
|
|
99
107
|
}
|
|
100
108
|
|
|
@@ -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
|
|
|
@@ -50,7 +50,13 @@ export interface PatchedNotificationRuleRequest {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PatchedNotificationRuleRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
destinationGroup?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof PatchedNotificationRuleRequest
|
|
58
|
+
*/
|
|
59
|
+
destinationEventUser?: boolean;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
|
|
@@ -75,7 +81,8 @@ export function PatchedNotificationRuleRequestFromJSONTyped(json: any, ignoreDis
|
|
|
75
81
|
'name': json['name'] == null ? undefined : json['name'],
|
|
76
82
|
'transports': json['transports'] == null ? undefined : json['transports'],
|
|
77
83
|
'severity': json['severity'] == null ? undefined : SeverityEnumFromJSON(json['severity']),
|
|
78
|
-
'
|
|
84
|
+
'destinationGroup': json['destination_group'] == null ? undefined : json['destination_group'],
|
|
85
|
+
'destinationEventUser': json['destination_event_user'] == null ? undefined : json['destination_event_user'],
|
|
79
86
|
};
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -93,7 +100,8 @@ export function PatchedNotificationRuleRequestToJSONTyped(value?: PatchedNotific
|
|
|
93
100
|
'name': value['name'],
|
|
94
101
|
'transports': value['transports'],
|
|
95
102
|
'severity': SeverityEnumToJSON(value['severity']),
|
|
96
|
-
'
|
|
103
|
+
'destination_group': value['destinationGroup'],
|
|
104
|
+
'destination_event_user': value['destinationEventUser'],
|
|
97
105
|
};
|
|
98
106
|
}
|
|
99
107
|
|