@iblai/iblai-api 4.250.4-core → 4.250.5-core

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.
@@ -1,3 +1,4 @@
1
+ import type { AvailableNotificationType } from '../models/AvailableNotificationType';
1
2
  import type { CampaignEnablement } from '../models/CampaignEnablement';
2
3
  import type { CampaignExclusion } from '../models/CampaignExclusion';
3
4
  import type { ContextResponse } from '../models/ContextResponse';
@@ -13,15 +14,19 @@ import type { NotificationTemplateList } from '../models/NotificationTemplateLis
13
14
  import type { NotificationTemplateTest } from '../models/NotificationTemplateTest';
14
15
  import type { NotificationTemplateTestResponse } from '../models/NotificationTemplateTestResponse';
15
16
  import type { NotificationToggle } from '../models/NotificationToggle';
17
+ import type { NotificationTypePreference } from '../models/NotificationTypePreference';
16
18
  import type { PatchedNotification } from '../models/PatchedNotification';
17
19
  import type { PatchedNotificationTemplateDetail } from '../models/PatchedNotificationTemplateDetail';
18
20
  import type { PatchedNotificationToggle } from '../models/PatchedNotificationToggle';
21
+ import type { PatchedNotificationTypePreference } from '../models/PatchedNotificationTypePreference';
22
+ import type { PatchedUserNotificationPreferences } from '../models/PatchedUserNotificationPreferences';
19
23
  import type { PreviewResponse } from '../models/PreviewResponse';
20
24
  import type { Recipient } from '../models/Recipient';
21
25
  import type { SendNotification } from '../models/SendNotification';
22
26
  import type { SendResponse } from '../models/SendResponse';
23
27
  import type { TestSMTPCredentials } from '../models/TestSMTPCredentials';
24
28
  import type { TestSMTPResponse } from '../models/TestSMTPResponse';
29
+ import type { UserNotificationPreferences } from '../models/UserNotificationPreferences';
25
30
  import type { ValidateSourceResponse } from '../models/ValidateSourceResponse';
26
31
  import type { CancelablePromise } from '../core/CancelablePromise';
27
32
  export declare class NotificationsService {
@@ -261,6 +266,77 @@ export declare class NotificationsService {
261
266
  platformKey: string;
262
267
  requestBody: TestSMTPCredentials;
263
268
  }): CancelablePromise<TestSMTPResponse>;
269
+ /**
270
+ * Get user notification preferences
271
+ * Retrieve notification preferences for the authenticated user (or another user via ?username= for admins). Auto-creates preferences with defaults on first access. RBAC: Ibl.Notifications/Notification/read
272
+ * @returns UserNotificationPreferences
273
+ * @throws ApiError
274
+ */
275
+ static notificationV1PlatformsNotificationPreferencesRetrieve({ platformKey, tags, username, }: {
276
+ platformKey: string;
277
+ /**
278
+ * Comma-separated tags to filter by (e.g. 'learning,activity'). Returns types matching ANY tag.
279
+ */
280
+ tags?: string;
281
+ /**
282
+ * Username to manage preferences for (admin only). Defaults to authenticated user.
283
+ */
284
+ username?: string;
285
+ }): CancelablePromise<UserNotificationPreferences>;
286
+ /**
287
+ * Update user notification preferences
288
+ * Partially update global notification preferences. Per-type overrides use the /types/{notification_type}/ endpoint. RBAC: Ibl.Notifications/Notification/write
289
+ * @returns UserNotificationPreferences
290
+ * @throws ApiError
291
+ */
292
+ static notificationV1PlatformsNotificationPreferencesPartialUpdate({ platformKey, tags, username, requestBody, }: {
293
+ platformKey: string;
294
+ /**
295
+ * Comma-separated tags to filter by (e.g. 'learning,activity'). Returns types matching ANY tag.
296
+ */
297
+ tags?: string;
298
+ /**
299
+ * Username to manage preferences for (admin only). Defaults to authenticated user.
300
+ */
301
+ username?: string;
302
+ requestBody?: PatchedUserNotificationPreferences;
303
+ }): CancelablePromise<UserNotificationPreferences>;
304
+ /**
305
+ * List available notification types
306
+ * Returns notification types enabled for this platform, annotated with the user's per-type preferences. RBAC: Ibl.Notifications/Notification/read
307
+ * @returns AvailableNotificationType
308
+ * @throws ApiError
309
+ */
310
+ static notificationV1PlatformsNotificationPreferencesAvailableTypesList({ platformKey, tags, username, }: {
311
+ platformKey: string;
312
+ /**
313
+ * Comma-separated tags to filter by (e.g. 'learning,activity'). Returns types matching ANY tag.
314
+ */
315
+ tags?: string;
316
+ /**
317
+ * Username to manage preferences for (admin only). Defaults to authenticated user.
318
+ */
319
+ username?: string;
320
+ }): CancelablePromise<Array<AvailableNotificationType>>;
321
+ /**
322
+ * Update per-type notification preference
323
+ * Set enabled/frequency for a single notification type. RBAC: Ibl.Notifications/Notification/write
324
+ * @returns NotificationTypePreference
325
+ * @throws ApiError
326
+ */
327
+ static notificationV1PlatformsNotificationPreferencesTypesPartialUpdate({ notificationType, platformKey, tags, username, requestBody, }: {
328
+ notificationType: string;
329
+ platformKey: string;
330
+ /**
331
+ * Comma-separated tags to filter by (e.g. 'learning,activity'). Returns types matching ANY tag.
332
+ */
333
+ tags?: string;
334
+ /**
335
+ * Username to manage preferences for (admin only). Defaults to authenticated user.
336
+ */
337
+ username?: string;
338
+ requestBody?: PatchedNotificationTypePreference;
339
+ }): CancelablePromise<NotificationTypePreference>;
264
340
  /**
265
341
  * List notification templates
266
342
  * Get all notification templates for the platform. Includes both platform-specific and inherited templates from main. Filter by tags with ?tags=learning,activity (comma-separated, OR logic). Requires permission: Ibl.Notifications/NotificationTemplate/list
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.250.4-core",
3
+ "version": "4.250.5-core",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",