/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { notificationsGetNotifications } from "../funcs/notificationsGetNotifications.js"; import { notificationsMarkNotificationsAsRead } from "../funcs/notificationsMarkNotificationsAsRead.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "./models/operations/index.js"; import { unwrapAsync } from "./types/fp.js"; export class Notifications extends ClientSDK { /** * Get the notifications that belong to the current user */ async getNotifications( options?: RequestOptions, ): Promise { return unwrapAsync(notificationsGetNotifications( this, options, )); } /** * Mark notifications as read */ async markNotificationsAsRead( request?: operations.MarkNotificationsAsReadRequestBody | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(notificationsMarkNotificationsAsRead( this, request, options, )); } }