UNPKG

originstamp-client-fetch

Version:
84 lines (72 loc) 2.8 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'; import type { Notification } from './Notification'; import { NotificationFromJSON, NotificationFromJSONTyped, NotificationToJSON, NotificationToJSONTyped, } from './Notification'; /** * * @export * @interface KeySettingResponseNotification */ export interface KeySettingResponseNotification { /** * * @type {Notification} * @memberof KeySettingResponseNotification */ proof: Notification; /** * * @type {Notification} * @memberof KeySettingResponseNotification */ tree: Notification; } /** * Check if a given object implements the KeySettingResponseNotification interface. */ export function instanceOfKeySettingResponseNotification(value: object): value is KeySettingResponseNotification { if (!('proof' in value) || value['proof'] === undefined) return false; if (!('tree' in value) || value['tree'] === undefined) return false; return true; } export function KeySettingResponseNotificationFromJSON(json: any): KeySettingResponseNotification { return KeySettingResponseNotificationFromJSONTyped(json, false); } export function KeySettingResponseNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeySettingResponseNotification { if (json == null) { return json; } return { 'proof': NotificationFromJSON(json['proof']), 'tree': NotificationFromJSON(json['tree']), }; } export function KeySettingResponseNotificationToJSON(json: any): KeySettingResponseNotification { return KeySettingResponseNotificationToJSONTyped(json, false); } export function KeySettingResponseNotificationToJSONTyped(value?: KeySettingResponseNotification | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'proof': NotificationToJSON(value['proof']), 'tree': NotificationToJSON(value['tree']), }; }