@internetdata/internetdata 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +26 -19
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +12 -10
- package/dist/types.js +3 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { databaseChecksum, databaseChecksumV2, databaseDownload, databaseMetadata, databaseMetadataV2, downloadDatabaseV2, listDatabases, listDownloads, type Options } from './sdk.gen.js';
|
|
2
|
-
export type { ClientOptions, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseChecksumV2Data, DatabaseChecksumV2Error, DatabaseChecksumV2Errors, DatabaseChecksumV2Response, DatabaseChecksumV2Responses, DatabaseDownloadData, DatabaseDownloadError, DatabaseDownloadErrors, DatabaseDownloadResponse, DatabaseDownloadResponses, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseMetadataV2Data, DatabaseMetadataV2Error, DatabaseMetadataV2Errors, DatabaseMetadataV2Response, DatabaseMetadataV2Responses, DatabaseVersion, DbChecksums, DbChecksumSuccessResponse, DbFormat, DbId, DbInvalidApiKeyError, DbInvalidFormatError, DbInvalidIdError, DbMetadata, DbMetadataSuccessResponse, DbNotFoundError, DbUnauthorizedIdError, Download, DownloadDatabaseV2Data, DownloadDatabaseV2Error, DownloadDatabaseV2Errors, Error, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses } from './types.gen.js';
|
|
2
|
+
export type { ClientOptions, Database, DatabaseChecksumData, DatabaseChecksumError, DatabaseChecksumErrors, DatabaseChecksumResponse, DatabaseChecksumResponses, DatabaseChecksumV2Data, DatabaseChecksumV2Error, DatabaseChecksumV2Errors, DatabaseChecksumV2Response, DatabaseChecksumV2Responses, DatabaseDownloadData, DatabaseDownloadError, DatabaseDownloadErrors, DatabaseDownloadResponse, DatabaseDownloadResponses, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseMetadataData, DatabaseMetadataError, DatabaseMetadataErrors, DatabaseMetadataResponse, DatabaseMetadataResponses, DatabaseMetadataV2Data, DatabaseMetadataV2Error, DatabaseMetadataV2Errors, DatabaseMetadataV2Response, DatabaseMetadataV2Responses, DatabaseVersion, DbChecksums, DbChecksumSuccessResponse, DbFormat, DbId, DbInvalidApiKeyError, DbInvalidFormatError, DbInvalidIdError, DbMetadata, DbMetadataSuccessResponse, DbNotFoundError, DbUnauthorizedIdError, Download, DownloadDatabaseV2Data, DownloadDatabaseV2Error, DownloadDatabaseV2Errors, Error, LicenseType, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDownloadsData, ListDownloadsError, ListDownloadsErrors, ListDownloadsResponse, ListDownloadsResponses, Standing } from './types.gen.js';
|
|
@@ -9,6 +9,23 @@ export type Error = {
|
|
|
9
9
|
*/
|
|
10
10
|
rc: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* A file format a database version is published in.
|
|
14
|
+
*/
|
|
15
|
+
export type DatabaseFormat = 'csvgz' | 'mmdb';
|
|
16
|
+
/**
|
|
17
|
+
* Where your licence for a database family stands today. `licensed` is a
|
|
18
|
+
* live grant, `expired` one whose term has ended, and `unlicensed` a
|
|
19
|
+
* database published but never bought.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export type Standing = 'licensed' | 'expired' | 'unlicensed';
|
|
23
|
+
/**
|
|
24
|
+
* What your licence permits you to do with the data. Null when there is
|
|
25
|
+
* no licence, which is every family with standing `unlicensed`.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export type LicenseType = 'evaluation' | 'standard' | 'redistribute' | null;
|
|
12
29
|
/**
|
|
13
30
|
* One database FAMILY, with your organization's licence beside it. A
|
|
14
31
|
* licence covers the family, while a download names a specific version,
|
|
@@ -25,18 +42,8 @@ export type Database = {
|
|
|
25
42
|
* One line on what the newest version contains.
|
|
26
43
|
*/
|
|
27
44
|
summary: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* `unlicensed` a database published but never bought.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
standing: 'licensed' | 'expired' | 'unlicensed';
|
|
34
|
-
/**
|
|
35
|
-
* What your licence permits you to do with the data. Null when there
|
|
36
|
-
* is no licence.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
license_type: 'evaluation' | 'standard' | 'redistribute' | null;
|
|
45
|
+
standing: Standing;
|
|
46
|
+
license_type: LicenseType;
|
|
40
47
|
starts: string | null;
|
|
41
48
|
/**
|
|
42
49
|
* A hard stop. Null when the licence has no end date, which is the normal case for a rolling agreement, and when there is no licence. A rolling licence reports its turnover date in renews_at instead.
|
|
@@ -70,7 +77,7 @@ export type DatabaseVersion = {
|
|
|
70
77
|
* MMDB exists for them.
|
|
71
78
|
*
|
|
72
79
|
*/
|
|
73
|
-
formats: Array<
|
|
80
|
+
formats: Array<DatabaseFormat>;
|
|
74
81
|
};
|
|
75
82
|
/**
|
|
76
83
|
* One download ATTEMPT, refusals included.
|
|
@@ -209,7 +216,7 @@ export type DbId = string;
|
|
|
209
216
|
/**
|
|
210
217
|
* Database file format.
|
|
211
218
|
*/
|
|
212
|
-
export type DbFormat =
|
|
219
|
+
export type DbFormat = DatabaseFormat;
|
|
213
220
|
export type ListDatabasesData = {
|
|
214
221
|
body?: never;
|
|
215
222
|
path?: never;
|
|
@@ -246,7 +253,7 @@ export type DownloadDatabaseV2Data = {
|
|
|
246
253
|
/**
|
|
247
254
|
* Database file format.
|
|
248
255
|
*/
|
|
249
|
-
format:
|
|
256
|
+
format: DatabaseFormat;
|
|
250
257
|
};
|
|
251
258
|
url: '/api/v2/database/download';
|
|
252
259
|
};
|
|
@@ -341,7 +348,7 @@ export type DatabaseChecksumV2Data = {
|
|
|
341
348
|
/**
|
|
342
349
|
* Database file format.
|
|
343
350
|
*/
|
|
344
|
-
format:
|
|
351
|
+
format: DatabaseFormat;
|
|
345
352
|
};
|
|
346
353
|
url: '/api/v2/database/checksum';
|
|
347
354
|
};
|
|
@@ -384,7 +391,7 @@ export type DatabaseChecksumV2Responses = {
|
|
|
384
391
|
*/
|
|
385
392
|
200: {
|
|
386
393
|
id: string;
|
|
387
|
-
format:
|
|
394
|
+
format: DatabaseFormat;
|
|
388
395
|
checksums: DbChecksums;
|
|
389
396
|
};
|
|
390
397
|
};
|
|
@@ -430,7 +437,7 @@ export type DatabaseDownloadData = {
|
|
|
430
437
|
/**
|
|
431
438
|
* Database file format.
|
|
432
439
|
*/
|
|
433
|
-
format:
|
|
440
|
+
format: DatabaseFormat;
|
|
434
441
|
};
|
|
435
442
|
url: '/api/v1/database/download';
|
|
436
443
|
};
|
|
@@ -473,7 +480,7 @@ export type DatabaseChecksumData = {
|
|
|
473
480
|
/**
|
|
474
481
|
* Database file format.
|
|
475
482
|
*/
|
|
476
|
-
format:
|
|
483
|
+
format: DatabaseFormat;
|
|
477
484
|
};
|
|
478
485
|
url: '/api/v1/database/checksum';
|
|
479
486
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
|
|
|
2
2
|
export type { DownloadDestination, DownloadsOptions, Options } from './client.js';
|
|
3
3
|
export { InternetDataError } from './errors.js';
|
|
4
4
|
export type { ErrorKind } from './errors.js';
|
|
5
|
-
export { DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
|
|
6
|
-
export type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
|
|
5
|
+
export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
|
|
6
|
+
export type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
|
|
2
2
|
export { InternetDataError } from './errors.js';
|
|
3
|
-
export { DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
|
|
3
|
+
export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download } from './generated/types.gen.js';
|
|
2
|
-
export type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download, };
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
1
|
+
import type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download, LicenseType, Standing } from './generated/types.gen.js';
|
|
2
|
+
export type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download, LicenseType, Standing, };
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use {@link DatabaseFormat}. Kept so existing imports keep
|
|
5
|
+
* compiling; this brand's Java, .NET and Swift SDKs have always called it
|
|
6
|
+
* `DatabaseFormat`, and so does every VPNDetection SDK.
|
|
7
|
+
*/
|
|
8
|
+
export type DatasetFormat = DatabaseFormat;
|
|
9
|
+
export declare const DATABASE_FORMATS: readonly DatabaseFormat[];
|
|
10
|
+
/** @deprecated Use {@link DATABASE_FORMATS}. */
|
|
11
|
+
export declare const DATASET_FORMATS: readonly DatabaseFormat[];
|
|
10
12
|
export declare const STANDINGS: readonly Standing[];
|
|
11
|
-
export declare const LICENSE_TYPES: readonly LicenseType[];
|
|
13
|
+
export declare const LICENSE_TYPES: readonly NonNullable<LicenseType>[];
|
package/dist/types.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// wants to validate or enumerate rather than switch. Each is TYPED by the
|
|
3
3
|
// generated union, so a value the spec does not define will not compile; that a
|
|
4
4
|
// value is MISSING is what the shared conformance corpus pins.
|
|
5
|
-
export const
|
|
5
|
+
export const DATABASE_FORMATS = ['csvgz', 'mmdb'];
|
|
6
|
+
/** @deprecated Use {@link DATABASE_FORMATS}. */
|
|
7
|
+
export const DATASET_FORMATS = DATABASE_FORMATS;
|
|
6
8
|
export const STANDINGS = ['licensed', 'expired', 'unlicensed'];
|
|
7
9
|
export const LICENSE_TYPES = [
|
|
8
10
|
'evaluation', 'standard', 'redistribute',
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAiBA,+EAA+E;AAC/E,0EAA0E;AAC1E,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAiBA,+EAA+E;AAC/E,0EAA0E;AAC1E,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAE7E,gDAAgD;AAChD,MAAM,CAAC,MAAM,eAAe,GAA8B,gBAAgB,CAAC;AAC3E,MAAM,CAAC,MAAM,SAAS,GAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,aAAa,GAAwC;IAC9D,YAAY,EAAE,UAAU,EAAE,cAAc;CAC3C,CAAC"}
|
package/package.json
CHANGED