Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
1c196ea31a | |||
d1088270bc | |||
e7a11c2b54 | |||
9d8985d67a | |||
5afbf16906 | |||
1ef7737dc9 | |||
4d961003e8 | |||
24762468da | |||
4c57804da2 | |||
847f3a4f1c | |||
d5d896a91e | |||
53b732a3f7 | |||
f7f75a64db | |||
2a0aa6db07 | |||
6a4849f87d | |||
6ba521c1b9 | |||
267dca249f | |||
0b8249a21f | |||
cf4d90ecbd | |||
92d9f441d1 | |||
44d62df972 | |||
289ddfc153 | |||
a1cef67eee | |||
5b75506634 | |||
66ed64548a | |||
31888a7f07 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptime.link/interfaces",
|
"name": "@uptime.link/interfaces",
|
||||||
"version": "2.0.6",
|
"version": "2.0.19",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "TypeScript interface for the uptime.link API and modules",
|
"description": "TypeScript interface for the uptime.link API and modules",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -15,6 +15,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.65",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
"@gitzone/tstest": "^1.0.74",
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"@types/node": "^18.15.11"
|
"@types/node": "^18.15.11"
|
||||||
|
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@ -12,6 +12,9 @@ devDependencies:
|
|||||||
'@gitzone/tsbuild':
|
'@gitzone/tsbuild':
|
||||||
specifier: ^2.1.65
|
specifier: ^2.1.65
|
||||||
version: 2.1.65
|
version: 2.1.65
|
||||||
|
'@gitzone/tsrun':
|
||||||
|
specifier: ^1.2.39
|
||||||
|
version: 1.2.39(@types/node@18.15.11)
|
||||||
'@gitzone/tstest':
|
'@gitzone/tstest':
|
||||||
specifier: ^1.0.74
|
specifier: ^1.0.74
|
||||||
version: 1.0.74(@types/node@18.15.11)
|
version: 1.0.74(@types/node@18.15.11)
|
||||||
@ -1351,6 +1354,11 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@xmldom/xmldom@0.8.7:
|
||||||
|
resolution: {integrity: sha512-sI1Ly2cODlWStkINzqGrZ8K6n+MTSbAeQnAipGyL+KZCXuHaRlj2gyyy8B/9MvsFFqN7XHryQnB2QwhzvJXovg==}
|
||||||
|
engines: {node: '>=10.0.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/accepts@1.3.8:
|
/accepts@1.3.8:
|
||||||
resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}
|
resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}
|
||||||
engines: {node: '>= 0.6'}
|
engines: {node: '>= 0.6'}
|
||||||
@ -3515,6 +3523,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-mXF9AIgnvq1DP/ZM2R28tAfxP2wKZHYa2DjV0R1KCwcqSzm5Iqh1XQq9rdfAt6dp2DuPP0VHZIaCALc2v1cL5A==}
|
resolution: {integrity: sha512-mXF9AIgnvq1DP/ZM2R28tAfxP2wKZHYa2DjV0R1KCwcqSzm5Iqh1XQq9rdfAt6dp2DuPP0VHZIaCALc2v1cL5A==}
|
||||||
engines: {node: '>=14.18.0', npm: '>=6.14.15'}
|
engines: {node: '>=14.18.0', npm: '>=6.14.15'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
'@xmldom/xmldom': 0.8.7
|
||||||
dev: true
|
dev: true
|
||||||
bundledDependencies:
|
bundledDependencies:
|
||||||
- '@xmldom/xmldom'
|
- '@xmldom/xmldom'
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@uptime.link/interfaces',
|
name: '@uptime.link/interfaces',
|
||||||
version: '2.0.6',
|
version: '2.0.19',
|
||||||
description: 'TypeScript interface for the uptime.link API and modules'
|
description: 'TypeScript interface for the uptime.link API and modules'
|
||||||
}
|
}
|
||||||
|
29
ts/data/domainsnapshot.ts
Normal file
29
ts/data/domainsnapshot.ts
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import * as plugins from '../ul-interfaces.plugins.js';
|
||||||
|
|
||||||
|
export interface IDomainSnapshot {
|
||||||
|
registration: {
|
||||||
|
isRegistered: boolean;
|
||||||
|
updatedDate: number;
|
||||||
|
createdDate: number;
|
||||||
|
expiryDate: number;
|
||||||
|
};
|
||||||
|
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,11 @@
|
|||||||
export * from './checkcollection.js';
|
export * from './checkcollection.js';
|
||||||
|
export * from './domainsnapshot.js';
|
||||||
export * from './incident.js';
|
export * from './incident.js';
|
||||||
|
export * from './linksnapshot.js';
|
||||||
export * from './property.js';
|
export * from './property.js';
|
||||||
export * from './search.js';
|
export * from './search.js';
|
||||||
export * from './status.js';
|
export * from './status.js';
|
||||||
|
|
||||||
|
import * as checks from './checks/index.js';
|
||||||
|
|
||||||
|
export { checks };
|
||||||
|
14
ts/data/linksnapshot.ts
Normal file
14
ts/data/linksnapshot.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import * as plugins from '../ul-interfaces.plugins.js';
|
||||||
|
|
||||||
|
export interface ILinkSnapshot {
|
||||||
|
httpsSupport: boolean;
|
||||||
|
httpHttpsParity: boolean;
|
||||||
|
httpToHttpsRedirect: boolean;
|
||||||
|
wwwToRootRedirect: boolean;
|
||||||
|
rootToWwwRedirect: boolean;
|
||||||
|
statusCode: number;
|
||||||
|
fullPageLoadSize: number;
|
||||||
|
fullPageLoadTimeMs: number;
|
||||||
|
cookies: any[];
|
||||||
|
gdprCompliance: boolean;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
export * from './requests.checks.js';
|
export * from './requests.checks.js';
|
||||||
export * from './requests.incidents.js';
|
export * from './requests.incidents.js';
|
||||||
|
export * from './requests.snapshot.js';
|
||||||
export * from './requests.status.js';
|
export * from './requests.status.js';
|
||||||
|
18
ts/requests/requests.snapshot.ts
Normal file
18
ts/requests/requests.snapshot.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { IDomainSnapshot } from '../data/domainsnapshot.js';
|
||||||
|
import { ILinkSnapshot } from '../data/linksnapshot.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;
|
||||||
|
linkSnapshot: ILinkSnapshot;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user