@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.
Files changed (39) hide show
  1. package/dist/apis/EventsApi.d.ts +1 -1
  2. package/dist/apis/EventsApi.d.ts.map +1 -1
  3. package/dist/apis/EventsApi.js +2 -2
  4. package/dist/apis/EventsApi.js.map +1 -1
  5. package/dist/esm/apis/EventsApi.d.ts +1 -1
  6. package/dist/esm/apis/EventsApi.d.ts.map +1 -1
  7. package/dist/esm/apis/EventsApi.js +2 -2
  8. package/dist/esm/apis/EventsApi.js.map +1 -1
  9. package/dist/esm/models/NotificationRule.d.ts +9 -3
  10. package/dist/esm/models/NotificationRule.d.ts.map +1 -1
  11. package/dist/esm/models/NotificationRule.js +6 -4
  12. package/dist/esm/models/NotificationRule.js.map +1 -1
  13. package/dist/esm/models/NotificationRuleRequest.d.ts +7 -1
  14. package/dist/esm/models/NotificationRuleRequest.d.ts.map +1 -1
  15. package/dist/esm/models/NotificationRuleRequest.js +4 -2
  16. package/dist/esm/models/NotificationRuleRequest.js.map +1 -1
  17. package/dist/esm/models/PatchedNotificationRuleRequest.d.ts +7 -1
  18. package/dist/esm/models/PatchedNotificationRuleRequest.d.ts.map +1 -1
  19. package/dist/esm/models/PatchedNotificationRuleRequest.js +4 -2
  20. package/dist/esm/models/PatchedNotificationRuleRequest.js.map +1 -1
  21. package/dist/models/NotificationRule.d.ts +9 -3
  22. package/dist/models/NotificationRule.d.ts.map +1 -1
  23. package/dist/models/NotificationRule.js +6 -4
  24. package/dist/models/NotificationRule.js.map +1 -1
  25. package/dist/models/NotificationRuleRequest.d.ts +7 -1
  26. package/dist/models/NotificationRuleRequest.d.ts.map +1 -1
  27. package/dist/models/NotificationRuleRequest.js +4 -2
  28. package/dist/models/NotificationRuleRequest.js.map +1 -1
  29. package/dist/models/PatchedNotificationRuleRequest.d.ts +7 -1
  30. package/dist/models/PatchedNotificationRuleRequest.d.ts.map +1 -1
  31. package/dist/models/PatchedNotificationRuleRequest.js +4 -2
  32. package/dist/models/PatchedNotificationRuleRequest.js.map +1 -1
  33. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/src/apis/EventsApi.ts +3 -3
  36. package/src/models/NotificationRule.ts +15 -7
  37. package/src/models/NotificationRuleRequest.ts +11 -3
  38. package/src/models/PatchedNotificationRuleRequest.ts +11 -3
  39. 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-1750242193",
3
+ "version": "2025.6.2-1750246811",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -196,7 +196,7 @@ export interface EventsRulesDestroyRequest {
196
196
  }
197
197
 
198
198
  export interface EventsRulesListRequest {
199
- groupName?: string;
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['groupName'] != null) {
1162
- queryParameters['group__name'] = requestParameters['groupName'];
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
- group?: string | null;
66
+ destinationGroup?: string | null;
67
67
  /**
68
68
  *
69
69
  * @type {Group}
70
70
  * @memberof NotificationRule
71
71
  */
72
- readonly groupObj: Group;
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 (!('groupObj' in value) || value['groupObj'] === undefined) return false;
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
- 'group': json['group'] == null ? undefined : json['group'],
102
- 'groupObj': GroupFromJSON(json['group_obj']),
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'|'group_obj'> | null, ignoreDiscriminator: boolean = false): any {
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
- 'group': value['group'],
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
- group?: string | null;
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
- 'group': json['group'] == null ? undefined : json['group'],
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
- 'group': value['group'],
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
- group?: string | null;
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
- 'group': json['group'] == null ? undefined : json['group'],
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
- 'group': value['group'],
103
+ 'destination_group': value['destinationGroup'],
104
+ 'destination_event_user': value['destinationEventUser'],
97
105
  };
98
106
  }
99
107