UNPKG

originstamp-client-fetch

Version:
67 lines (56 loc) 2.05 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 TimestampRequest */ export interface TimestampRequest { /** * * @type {Array<string>} * @memberof TimestampRequest */ sha256: Array<string>; } /** * Check if a given object implements the TimestampRequest interface. */ export function instanceOfTimestampRequest(value: object): value is TimestampRequest { if (!('sha256' in value) || value['sha256'] === undefined) return false; return true; } export function TimestampRequestFromJSON(json: any): TimestampRequest { return TimestampRequestFromJSONTyped(json, false); } export function TimestampRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimestampRequest { if (json == null) { return json; } return { 'sha256': json['sha256'], }; } export function TimestampRequestToJSON(json: any): TimestampRequest { return TimestampRequestToJSONTyped(json, false); } export function TimestampRequestToJSONTyped(value?: TimestampRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'sha256': value['sha256'], }; }