originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
60 lines • 2.45 kB
JavaScript
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProofWebhook = instanceOfProofWebhook;
exports.ProofWebhookFromJSON = ProofWebhookFromJSON;
exports.ProofWebhookFromJSONTyped = ProofWebhookFromJSONTyped;
exports.ProofWebhookToJSON = ProofWebhookToJSON;
exports.ProofWebhookToJSONTyped = ProofWebhookToJSONTyped;
const TimestampData_1 = require("./TimestampData");
/**
* Check if a given object implements the ProofWebhook interface.
*/
function instanceOfProofWebhook(value) {
if (!('sha256' in value) || value['sha256'] === undefined)
return false;
if (!('tree' in value) || value['tree'] === undefined)
return false;
return true;
}
function ProofWebhookFromJSON(json) {
return ProofWebhookFromJSONTyped(json, false);
}
function ProofWebhookFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'sha256': json['sha256'],
'tree': (0, TimestampData_1.TimestampDataFromJSON)(json['tree']),
'branch': json['branch'] == null ? undefined : json['branch'],
'plain': json['plain'] == null ? undefined : json['plain'],
};
}
function ProofWebhookToJSON(json) {
return ProofWebhookToJSONTyped(json, false);
}
function ProofWebhookToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'sha256': value['sha256'],
'tree': (0, TimestampData_1.TimestampDataToJSON)(value['tree']),
'branch': value['branch'],
'plain': value['plain'],
};
}
//# sourceMappingURL=ProofWebhook.js.map
;