originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
103 lines (92 loc) • 3.53 kB
text/typescript
/* 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 KeyUsageResponseReportsInner
*/
export interface KeyUsageResponseReportsInner {
/**
*
* @type {number}
* @memberof KeyUsageResponseReportsInner
*/
year: number;
/**
* Month starting with 0 for January.
* @type {number}
* @memberof KeyUsageResponseReportsInner
*/
month: number;
/**
* Number of proof requests for the current month.
* @type {number}
* @memberof KeyUsageResponseReportsInner
*/
usedProofs: number;
/**
* Number of status requested for the current month.
* @type {number}
* @memberof KeyUsageResponseReportsInner
*/
usedStatus: number;
/**
* Number of timestamp requests for the current month.
* @type {number}
* @memberof KeyUsageResponseReportsInner
*/
usedTimestamps: number;
}
/**
* Check if a given object implements the KeyUsageResponseReportsInner interface.
*/
export function instanceOfKeyUsageResponseReportsInner(value: object): value is KeyUsageResponseReportsInner {
if (!('year' in value) || value['year'] === undefined) return false;
if (!('month' in value) || value['month'] === undefined) return false;
if (!('usedProofs' in value) || value['usedProofs'] === undefined) return false;
if (!('usedStatus' in value) || value['usedStatus'] === undefined) return false;
if (!('usedTimestamps' in value) || value['usedTimestamps'] === undefined) return false;
return true;
}
export function KeyUsageResponseReportsInnerFromJSON(json: any): KeyUsageResponseReportsInner {
return KeyUsageResponseReportsInnerFromJSONTyped(json, false);
}
export function KeyUsageResponseReportsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyUsageResponseReportsInner {
if (json == null) {
return json;
}
return {
'year': json['year'],
'month': json['month'],
'usedProofs': json['usedProofs'],
'usedStatus': json['usedStatus'],
'usedTimestamps': json['usedTimestamps'],
};
}
export function KeyUsageResponseReportsInnerToJSON(json: any): KeyUsageResponseReportsInner {
return KeyUsageResponseReportsInnerToJSONTyped(json, false);
}
export function KeyUsageResponseReportsInnerToJSONTyped(value?: KeyUsageResponseReportsInner | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'year': value['year'],
'month': value['month'],
'usedProofs': value['usedProofs'],
'usedStatus': value['usedStatus'],
'usedTimestamps': value['usedTimestamps'],
};
}