originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
64 lines • 2.85 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.instanceOfKeyUsageResponse = instanceOfKeyUsageResponse;
exports.KeyUsageResponseFromJSON = KeyUsageResponseFromJSON;
exports.KeyUsageResponseFromJSONTyped = KeyUsageResponseFromJSONTyped;
exports.KeyUsageResponseToJSON = KeyUsageResponseToJSON;
exports.KeyUsageResponseToJSONTyped = KeyUsageResponseToJSONTyped;
const KeyUsageResponseReportsInner_1 = require("./KeyUsageResponseReportsInner");
/**
* Check if a given object implements the KeyUsageResponse interface.
*/
function instanceOfKeyUsageResponse(value) {
if (!('limitTimestamps' in value) || value['limitTimestamps'] === undefined)
return false;
if (!('limitProofs' in value) || value['limitProofs'] === undefined)
return false;
if (!('limitStatus' in value) || value['limitStatus'] === undefined)
return false;
if (!('reports' in value) || value['reports'] === undefined)
return false;
return true;
}
function KeyUsageResponseFromJSON(json) {
return KeyUsageResponseFromJSONTyped(json, false);
}
function KeyUsageResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'limitTimestamps': json['limitTimestamps'],
'limitProofs': json['limitProofs'],
'limitStatus': json['limitStatus'],
'reports': (json['reports'].map(KeyUsageResponseReportsInner_1.KeyUsageResponseReportsInnerFromJSON)),
};
}
function KeyUsageResponseToJSON(json) {
return KeyUsageResponseToJSONTyped(json, false);
}
function KeyUsageResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'limitTimestamps': value['limitTimestamps'],
'limitProofs': value['limitProofs'],
'limitStatus': value['limitStatus'],
'reports': (value['reports'].map(KeyUsageResponseReportsInner_1.KeyUsageResponseReportsInnerToJSON)),
};
}
//# sourceMappingURL=KeyUsageResponse.js.map
;