Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374<?php
declare(strict_types=1);
namespace Openstatus\Sdk\Services;
use Openstatus\Notification\V1 as N;use Openstatus\Sdk\Transport\JsonTransport;
final class NotificationServiceClient{ private const FQN = 'openstatus.notification.v1.NotificationService';
public function __construct(private readonly JsonTransport $transport) { }
/** * @param array<string, string> $headers */ public function createNotification(N\CreateNotificationRequest $request, array $headers = []): N\CreateNotificationResponse { return $this->transport->call(self::FQN, 'CreateNotification', $request, N\CreateNotificationResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function getNotification(N\GetNotificationRequest $request, array $headers = []): N\GetNotificationResponse { return $this->transport->call(self::FQN, 'GetNotification', $request, N\GetNotificationResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function listNotifications(N\ListNotificationsRequest $request, array $headers = []): N\ListNotificationsResponse { return $this->transport->call(self::FQN, 'ListNotifications', $request, N\ListNotificationsResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function updateNotification(N\UpdateNotificationRequest $request, array $headers = []): N\UpdateNotificationResponse { return $this->transport->call(self::FQN, 'UpdateNotification', $request, N\UpdateNotificationResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function deleteNotification(N\DeleteNotificationRequest $request, array $headers = []): N\DeleteNotificationResponse { return $this->transport->call(self::FQN, 'DeleteNotification', $request, N\DeleteNotificationResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function sendTestNotification(N\SendTestNotificationRequest $request, array $headers = []): N\SendTestNotificationResponse { return $this->transport->call(self::FQN, 'SendTestNotification', $request, N\SendTestNotificationResponse::class, $headers); }
/** * @param array<string, string> $headers */ public function checkNotificationLimit(N\CheckNotificationLimitRequest $request, array $headers = []): N\CheckNotificationLimitResponse { return $this->transport->call(self::FQN, 'CheckNotificationLimit', $request, N\CheckNotificationLimitResponse::class, $headers); }}