Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
4c57804da2 | |||
847f3a4f1c | |||
d5d896a91e | |||
53b732a3f7 | |||
f7f75a64db | |||
2a0aa6db07 | |||
6a4849f87d | |||
6ba521c1b9 | |||
267dca249f | |||
0b8249a21f | |||
cf4d90ecbd | |||
92d9f441d1 | |||
44d62df972 | |||
289ddfc153 | |||
a1cef67eee | |||
5b75506634 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@uptime.link/interfaces",
|
||||
"version": "2.0.7",
|
||||
"version": "2.0.15",
|
||||
"private": false,
|
||||
"description": "TypeScript interface for the uptime.link API and modules",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@uptime.link/interfaces',
|
||||
version: '2.0.7',
|
||||
version: '2.0.15',
|
||||
description: 'TypeScript interface for the uptime.link API and modules'
|
||||
}
|
||||
|
28
ts/data/domainsnapshot.ts
Normal file
28
ts/data/domainsnapshot.ts
Normal file
@ -0,0 +1,28 @@
|
||||
import * as plugins from '../ul-interfaces.plugins.js';
|
||||
|
||||
export interface IDomainSnapshot {
|
||||
registration: {
|
||||
isRegistered: boolean;
|
||||
createionDate: Date;
|
||||
expiryDate: Date;
|
||||
};
|
||||
delegation: {
|
||||
domainWithoutSuffix: string;
|
||||
publicSuffix: string;
|
||||
subdomain: string;
|
||||
isIcann: boolean;
|
||||
dnsSecEnabled: boolean;
|
||||
};
|
||||
phishingFlags: {
|
||||
listName: string;
|
||||
}[];
|
||||
nameservers: string[];
|
||||
aRecords: plugins.tsclass.network.IDnsRecord[];
|
||||
aaaaRecords: plugins.tsclass.network.IDnsRecord[];
|
||||
txtRecords: plugins.tsclass.network.IDnsRecord[];
|
||||
mxRecords: plugins.tsclass.network.IDnsRecord[];
|
||||
whoisServers: {
|
||||
serverUrl: string;
|
||||
content: string;
|
||||
}[];
|
||||
}
|
@ -1,5 +1,10 @@
|
||||
export * from './checkcollection.js';
|
||||
export * from './domainsnapshot.js';
|
||||
export * from './incident.js';
|
||||
export * from './property.js';
|
||||
export * from './search.js';
|
||||
export * from './status.js';
|
||||
|
||||
import * as checks from './checks/index.js';
|
||||
|
||||
export { checks };
|
||||
|
@ -1,3 +1,4 @@
|
||||
export * from './requests.checks.js';
|
||||
export * from './requests.incidents.js';
|
||||
export * from './requests.snapshot.js';
|
||||
export * from './requests.status.js';
|
||||
|
16
ts/requests/requests.snapshot.ts
Normal file
16
ts/requests/requests.snapshot.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { IDomainSnapshot } from '../data/domainsnapshot.js';
|
||||
import * as plugins from '../ul-interfaces.plugins.js';
|
||||
|
||||
export interface IReq_PerformDomainSnapshot
|
||||
extends plugins.typedRequestInterfaces.implementsTR<
|
||||
plugins.typedRequestInterfaces.ITypedRequest,
|
||||
IReq_PerformDomainSnapshot
|
||||
> {
|
||||
method: 'performDomainSnapshot';
|
||||
request: {
|
||||
domainName: string;
|
||||
};
|
||||
response: {
|
||||
domainSnapshot: IDomainSnapshot;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user