UNPKG

originstamp-client-fetch

Version:
67 lines (56 loc) 2.06 kB
/* tslint:disable */ /* eslint-disable */ /** * OriginStamp Timestamping * OriginStamp Timestamping leverages decentralized blockchain technology to create anonymous, tamper-proof timestamps for digital content. This service enables users to timestamp files, emails, or plain text, and store the resulting hashes on the blockchain. Users can also retrieve and verify timestamps that have been committed. The trusted timestamping mechanism ensures that a hash fingerprint can be generated and used as proof that specific data existed at a given point in time. * * The version of the OpenAPI document: 1.0.0 * Contact: support@originstamp.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface Notification */ export interface Notification { /** * The webhook URL will receive a POST request after the timestamp was successfully verified. * @type {string} * @memberof Notification */ target: string; } /** * Check if a given object implements the Notification interface. */ export function instanceOfNotification(value: object): value is Notification { if (!('target' in value) || value['target'] === undefined) return false; return true; } export function NotificationFromJSON(json: any): Notification { return NotificationFromJSONTyped(json, false); } export function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification { if (json == null) { return json; } return { 'target': json['target'], }; } export function NotificationToJSON(json: any): Notification { return NotificationToJSONTyped(json, false); } export function NotificationToJSONTyped(value?: Notification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'target': value['target'], }; }