@0xpolygonid/js-sdk
Version:
SDK to work with Polygon ID
29 lines • 847 B
TypeScript
import { Service } from 'did-resolver';
import { DIDDocument } from '../types';
export declare enum NotificationServiceType {
Push = "push-notification"
}
export declare enum NotificationStatus {
Success = "success",
Failed = "failed"
}
export type NotificationRequest = {
didDocument: DIDDocument;
[key: string]: unknown;
};
export type NotificationResponse = {
status: NotificationStatus;
[key: string]: unknown;
};
export interface INotifier {
notify(msg: Uint8Array, options: NotificationRequest): Promise<NotificationResponse[]>;
}
export interface INotificationProvider {
type: NotificationServiceType;
send: ({ url, pushService, message }: {
url: string;
pushService: Service;
message: Uint8Array;
}) => Promise<NotificationResponse>;
}
//# sourceMappingURL=types.d.ts.map