@goauthentik/api 2025.6.2-1750242193 → 2025.6.2-1750246811
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/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/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/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/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/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/models/NotificationRule.ts +15 -7
- package/src/models/NotificationRuleRequest.ts +11 -3
- 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) {
|
|
@@ -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
|
|
|
@@ -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
|
|