@chainpatrol/sdk 1.7.0 → 1.9.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/CHANGELOG.md +28 -0
- package/dist/api/index.d.mts +36 -2
- package/dist/api/index.d.ts +36 -2
- package/dist/api/index.js +8 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +8 -0
- package/dist/api/index.mjs.map +1 -1
- package/dist/{chunk-ZTE6QNOQ.mjs → chunk-O5IZ7M5X.mjs} +10 -8
- package/dist/chunk-O5IZ7M5X.mjs.map +1 -0
- package/dist/index.js +738 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +738 -76
- package/dist/index.mjs.map +1 -1
- package/dist/skill/cli.js +8 -6
- package/dist/skill/cli.js.map +1 -1
- package/dist/skill/cli.mjs +1 -1
- package/dist/skill/index.js +8 -6
- package/dist/skill/index.js.map +1 -1
- package/dist/skill/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZTE6QNOQ.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @chainpatrol/sdk
|
|
2
2
|
|
|
3
|
+
## 1.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9347b6a: Add `takedownsInProgress` and `takedownsCancelled` to the `/organization/metrics` endpoint, available as `--include` values and as fields on the metrics payload.
|
|
8
|
+
|
|
9
|
+
## 1.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 33ba556: Adds time-to-takedown trends: `client.getMetricsTakedownTimeTrend()` in the SDK
|
|
14
|
+
and `chainpatrol metrics takedown-time-trend --org <slug>` in the CLI, both
|
|
15
|
+
backed by the new `POST /metrics/takedown-time/trend` endpoint. Returns the
|
|
16
|
+
median time from takedown start to completion bucketed by the month a takedown
|
|
17
|
+
completed, over a trailing window of whole months, plus the month-over-month
|
|
18
|
+
change for each series. Pass `assetTypes` (max 5) to get one series per asset
|
|
19
|
+
type instead of a single pooled series.
|
|
20
|
+
|
|
21
|
+
The month-over-month comparison uses the two most recent months that actually
|
|
22
|
+
had completed takedowns, so a quiet month in between doesn't read as "no
|
|
23
|
+
change", and `direction` reads lower-is-better: `"improved"` means the median
|
|
24
|
+
fell. Months with no completed takedowns carry a `null` median rather than zero.
|
|
25
|
+
|
|
26
|
+
Server-side work lives in @chainpatrol/external-trpc, @chainpatrol/validation
|
|
27
|
+
and @chainpatrol/metrics; all three are private packages and don't need version
|
|
28
|
+
bumps. The endpoint is gated on the new `median-time-to-takedown-trends-api`
|
|
29
|
+
feature flag, separate from the flag on `POST /metrics/takedown-time`.
|
|
30
|
+
|
|
3
31
|
## 1.7.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/dist/api/index.d.mts
CHANGED
|
@@ -66,6 +66,7 @@ interface ApiClient {
|
|
|
66
66
|
getMetricsFound: (input: MetricsFoundInput) => Promise<MetricsFoundResult>;
|
|
67
67
|
getMetricsBreakdown: (input: MetricsBreakdownInput) => Promise<MetricsBreakdownResult>;
|
|
68
68
|
getMetricsTakedownTime: (input: MetricsTakedownTimeInput) => Promise<MetricsTakedownTimeResult>;
|
|
69
|
+
getMetricsTakedownTimeTrend: (input: MetricsTakedownTimeTrendInput) => Promise<MetricsTakedownTimeTrendResult>;
|
|
69
70
|
createReport: (input: ReportCreateInput) => Promise<ReportCreateResult>;
|
|
70
71
|
listOrganizationReports: (input: OrganizationReportsListInput) => Promise<OrganizationReportsListResult>;
|
|
71
72
|
reviewOrganizationProposal: (input: OrganizationProposalsReviewInput) => Promise<OrganizationProposalsReviewResult>;
|
|
@@ -440,6 +441,36 @@ interface MetricsTakedownTimeResult {
|
|
|
440
441
|
count: number;
|
|
441
442
|
}>;
|
|
442
443
|
}
|
|
444
|
+
interface MetricsTakedownTimeTrendInput {
|
|
445
|
+
slug: string;
|
|
446
|
+
months?: number;
|
|
447
|
+
assetTypes?: string[];
|
|
448
|
+
blockLabel?: string;
|
|
449
|
+
brandType?: "INDIVIDUAL" | "ORGANIZATION" | "PRODUCT";
|
|
450
|
+
countryCodes?: string[];
|
|
451
|
+
brandIds?: number[];
|
|
452
|
+
}
|
|
453
|
+
interface MetricsTakedownTimeTrendPoint {
|
|
454
|
+
period: string;
|
|
455
|
+
medianTakedownMinutes: number | null;
|
|
456
|
+
medianTakedownHours: number | null;
|
|
457
|
+
medianTakedownDays: number | null;
|
|
458
|
+
count: number;
|
|
459
|
+
}
|
|
460
|
+
interface MetricsTakedownTimeTrendResult {
|
|
461
|
+
months: number;
|
|
462
|
+
periods: string[];
|
|
463
|
+
series: Array<{
|
|
464
|
+
assetType: string | null;
|
|
465
|
+
points: MetricsTakedownTimeTrendPoint[];
|
|
466
|
+
change: {
|
|
467
|
+
latest: MetricsTakedownTimeTrendPoint | null;
|
|
468
|
+
previous: MetricsTakedownTimeTrendPoint | null;
|
|
469
|
+
percentChange: number | null;
|
|
470
|
+
direction: "improved" | "worsened" | "unchanged" | null;
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
}
|
|
443
474
|
interface ReportAssetInput {
|
|
444
475
|
content: string;
|
|
445
476
|
status?: "BLOCKED" | "ALLOWED" | "UNKNOWN";
|
|
@@ -1011,7 +1042,7 @@ interface TakedownsListResult {
|
|
|
1011
1042
|
takedowns: TakedownItem[];
|
|
1012
1043
|
next_page: string | null;
|
|
1013
1044
|
}
|
|
1014
|
-
declare const ORGANIZATION_METRICS_INCLUDE_FIELDS: readonly ["reports", "newThreats", "threatsWatchlisted", "takedownsFiled", "takedownsCompleted", "domainThreats", "twitterThreats", "telegramThreats", "otherThreats", "blockedByType", "blockedByDay"];
|
|
1045
|
+
declare const ORGANIZATION_METRICS_INCLUDE_FIELDS: readonly ["reports", "newThreats", "threatsWatchlisted", "takedownsFiled", "takedownsInProgress", "takedownsCompleted", "takedownsCancelled", "domainThreats", "twitterThreats", "telegramThreats", "otherThreats", "blockedByType", "blockedByDay"];
|
|
1015
1046
|
type OrganizationMetricsIncludeField = (typeof ORGANIZATION_METRICS_INCLUDE_FIELDS)[number];
|
|
1016
1047
|
interface OrganizationMetricsServicesFilter {
|
|
1017
1048
|
reporting?: {
|
|
@@ -1050,7 +1081,9 @@ interface OrganizationMetricsResultMetrics {
|
|
|
1050
1081
|
newThreats: number | null;
|
|
1051
1082
|
threatsWatchlisted: number | null;
|
|
1052
1083
|
takedownsFiled: number | null;
|
|
1084
|
+
takedownsInProgress: number | null;
|
|
1053
1085
|
takedownsCompleted: number | null;
|
|
1086
|
+
takedownsCancelled: number | null;
|
|
1054
1087
|
domainThreats: number | null;
|
|
1055
1088
|
twitterThreats: number | null;
|
|
1056
1089
|
telegramThreats: number | null;
|
|
@@ -1342,6 +1375,7 @@ declare class ChainPatrolApiClient implements ApiClient {
|
|
|
1342
1375
|
getMetricsFound(input: MetricsFoundInput): Promise<MetricsFoundResult>;
|
|
1343
1376
|
getMetricsBreakdown(input: MetricsBreakdownInput): Promise<MetricsBreakdownResult>;
|
|
1344
1377
|
getMetricsTakedownTime(input: MetricsTakedownTimeInput): Promise<MetricsTakedownTimeResult>;
|
|
1378
|
+
getMetricsTakedownTimeTrend(input: MetricsTakedownTimeTrendInput): Promise<MetricsTakedownTimeTrendResult>;
|
|
1345
1379
|
createReport(input: ReportCreateInput): Promise<ReportCreateResult>;
|
|
1346
1380
|
listOrganizationReports(input: OrganizationReportsListInput): Promise<OrganizationReportsListResult>;
|
|
1347
1381
|
reviewOrganizationProposal(input: OrganizationProposalsReviewInput): Promise<OrganizationProposalsReviewResult>;
|
|
@@ -1372,4 +1406,4 @@ declare function parseIsoDateString(value: string | undefined): string | undefin
|
|
|
1372
1406
|
*/
|
|
1373
1407
|
declare function parseIsoDateEndOfDay(value: string | undefined): Date | undefined;
|
|
1374
1408
|
|
|
1375
|
-
export { ACTOR_KINDS, type ActorKind, type ApiClient, type ApiCredential, type AssetCheckInput, type AssetCheckResult, type AssetCheckSourceEntry, type AssetCheckStatus, type AssetGroupItem, type AssetListInput, type AssetListItem, type AssetListResult, type AssetSearchInput, type AssetSearchResult, type AssetSearchResultItem, type BrandItem, type BrandLegalDocument, type BrandLegalDocuments, type BrandTrademarkRegistrationItem, type BrandType, ChainPatrolApiClient, type ChainPatrolApiClientOptions, type ConfigEntry, type CredentialProvider, type CustomerReviewDecision, DETECTION_CONFIDENCE_LEVELS, DETECTION_REPORTED_FILTERS, type DetectionBrand, type DetectionConfidence, type DetectionConfigRunInput, type DetectionConfigRunResult, type DetectionConfigUpdateInput, type DetectionConfigUpdateResult, type DetectionConfigValidateInput, type DetectionConfigValidateResult, type DetectionDriftInput, type DetectionDriftResult, type DetectionListInput, type DetectionListItem, type DetectionListResult, type DetectionReportStatus, type DetectionReportedFilter, type DetectionSource, type HealthcheckCategory, type HealthcheckFinding, type HealthcheckRegistryEntry, type HealthcheckResult, type HealthcheckSeverity, type HealthchecksListResult, LIVENESS_FILTER_VALUES, LIVENESS_STATUSES, type LivenessFilterValue, type LivenessStatus, type MetricsBreakdownInput, type MetricsBreakdownResult, type MetricsFoundInput, type MetricsFoundResult, type MetricsSummaryInput, type MetricsSummaryResult, type MetricsTakedownTimeInput, type MetricsTakedownTimeResult, ORGANIZATION_METRICS_INCLUDE_FIELDS, type OperationsQueuesSnapshotInput, type OperationsQueuesSnapshotResult, type OrganizationAssetGroupsListResult, type OrganizationAssetItem, type OrganizationAssetsListInput, type OrganizationAssetsListResult, type OrganizationBrandsListResult, type OrganizationMetricsIncludeField, type OrganizationMetricsInput, type OrganizationMetricsResult, type OrganizationMetricsResultMetrics, type OrganizationMetricsServicesFilter, type OrganizationMetricsVisibility, type OrganizationPortalVisibility, type OrganizationProposalsReviewInput, type OrganizationProposalsReviewResult, type OrganizationReportAssetScan, type OrganizationReportAssetScanEnrichment, type OrganizationReportAttachment, type OrganizationReportVisibility, type OrganizationReportsListInput, type OrganizationReportsListResult, PROPOSAL_REJECT_REASONS, PROPOSAL_WATCHLIST_REASONS, type PendingApprovalService, type PendingServiceApproval, type ProposalRejectReason, type ProposalWatchlistReason, REPORT_REVIEW_DECISIONS, REPORT_STATUSES, type ReportAssetInput, type ReportCreateInput, type ReportCreateResult, type ReportReviewDecision, type ReportStatus, type ReportsSearchInput, type ReportsSearchResult, type ReportsSearchResultItem, TAKEDOWN_SORT_KEYS, TAKEDOWN_STATUSES, type TakedownItem, type TakedownProviderRef, type TakedownSortKey, type TakedownStatus, type TakedownsListInput, type TakedownsListResult, type ThreatItem, type ThreatsListInput, type ThreatsListResult, type UserMeResult, type UserOrg, type UserOrgBrandMetadata, type UserOrgGetInput, type UserOrgGetResult, type UserOrgIntegrations, type UserOrgLegalDocument, type UserOrgLegalDocuments, type UserOrgPortalCustomization, type UserOrgTrademarkRegistration, type UserOrgsInput, type UserOrgsObligatoryAdminApprovalFilter, type UserOrgsPendingServiceApprovalFilter, type UserOrgsResult, type UserOrgsServiceFilters, type UserOrgsSubscriptionStatus, type ValidateApiKeyResult, WATCHLIST_FILTER_VALUES, type WatchlistFilterValue, parseIsoDate, parseIsoDateEndOfDay, parseIsoDateString, staticApiKey, staticBearerToken };
|
|
1409
|
+
export { ACTOR_KINDS, type ActorKind, type ApiClient, type ApiCredential, type AssetCheckInput, type AssetCheckResult, type AssetCheckSourceEntry, type AssetCheckStatus, type AssetGroupItem, type AssetListInput, type AssetListItem, type AssetListResult, type AssetSearchInput, type AssetSearchResult, type AssetSearchResultItem, type BrandItem, type BrandLegalDocument, type BrandLegalDocuments, type BrandTrademarkRegistrationItem, type BrandType, ChainPatrolApiClient, type ChainPatrolApiClientOptions, type ConfigEntry, type CredentialProvider, type CustomerReviewDecision, DETECTION_CONFIDENCE_LEVELS, DETECTION_REPORTED_FILTERS, type DetectionBrand, type DetectionConfidence, type DetectionConfigRunInput, type DetectionConfigRunResult, type DetectionConfigUpdateInput, type DetectionConfigUpdateResult, type DetectionConfigValidateInput, type DetectionConfigValidateResult, type DetectionDriftInput, type DetectionDriftResult, type DetectionListInput, type DetectionListItem, type DetectionListResult, type DetectionReportStatus, type DetectionReportedFilter, type DetectionSource, type HealthcheckCategory, type HealthcheckFinding, type HealthcheckRegistryEntry, type HealthcheckResult, type HealthcheckSeverity, type HealthchecksListResult, LIVENESS_FILTER_VALUES, LIVENESS_STATUSES, type LivenessFilterValue, type LivenessStatus, type MetricsBreakdownInput, type MetricsBreakdownResult, type MetricsFoundInput, type MetricsFoundResult, type MetricsSummaryInput, type MetricsSummaryResult, type MetricsTakedownTimeInput, type MetricsTakedownTimeResult, type MetricsTakedownTimeTrendInput, type MetricsTakedownTimeTrendPoint, type MetricsTakedownTimeTrendResult, ORGANIZATION_METRICS_INCLUDE_FIELDS, type OperationsQueuesSnapshotInput, type OperationsQueuesSnapshotResult, type OrganizationAssetGroupsListResult, type OrganizationAssetItem, type OrganizationAssetsListInput, type OrganizationAssetsListResult, type OrganizationBrandsListResult, type OrganizationMetricsIncludeField, type OrganizationMetricsInput, type OrganizationMetricsResult, type OrganizationMetricsResultMetrics, type OrganizationMetricsServicesFilter, type OrganizationMetricsVisibility, type OrganizationPortalVisibility, type OrganizationProposalsReviewInput, type OrganizationProposalsReviewResult, type OrganizationReportAssetScan, type OrganizationReportAssetScanEnrichment, type OrganizationReportAttachment, type OrganizationReportVisibility, type OrganizationReportsListInput, type OrganizationReportsListResult, PROPOSAL_REJECT_REASONS, PROPOSAL_WATCHLIST_REASONS, type PendingApprovalService, type PendingServiceApproval, type ProposalRejectReason, type ProposalWatchlistReason, REPORT_REVIEW_DECISIONS, REPORT_STATUSES, type ReportAssetInput, type ReportCreateInput, type ReportCreateResult, type ReportReviewDecision, type ReportStatus, type ReportsSearchInput, type ReportsSearchResult, type ReportsSearchResultItem, TAKEDOWN_SORT_KEYS, TAKEDOWN_STATUSES, type TakedownItem, type TakedownProviderRef, type TakedownSortKey, type TakedownStatus, type TakedownsListInput, type TakedownsListResult, type ThreatItem, type ThreatsListInput, type ThreatsListResult, type UserMeResult, type UserOrg, type UserOrgBrandMetadata, type UserOrgGetInput, type UserOrgGetResult, type UserOrgIntegrations, type UserOrgLegalDocument, type UserOrgLegalDocuments, type UserOrgPortalCustomization, type UserOrgTrademarkRegistration, type UserOrgsInput, type UserOrgsObligatoryAdminApprovalFilter, type UserOrgsPendingServiceApprovalFilter, type UserOrgsResult, type UserOrgsServiceFilters, type UserOrgsSubscriptionStatus, type ValidateApiKeyResult, WATCHLIST_FILTER_VALUES, type WatchlistFilterValue, parseIsoDate, parseIsoDateEndOfDay, parseIsoDateString, staticApiKey, staticBearerToken };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ interface ApiClient {
|
|
|
66
66
|
getMetricsFound: (input: MetricsFoundInput) => Promise<MetricsFoundResult>;
|
|
67
67
|
getMetricsBreakdown: (input: MetricsBreakdownInput) => Promise<MetricsBreakdownResult>;
|
|
68
68
|
getMetricsTakedownTime: (input: MetricsTakedownTimeInput) => Promise<MetricsTakedownTimeResult>;
|
|
69
|
+
getMetricsTakedownTimeTrend: (input: MetricsTakedownTimeTrendInput) => Promise<MetricsTakedownTimeTrendResult>;
|
|
69
70
|
createReport: (input: ReportCreateInput) => Promise<ReportCreateResult>;
|
|
70
71
|
listOrganizationReports: (input: OrganizationReportsListInput) => Promise<OrganizationReportsListResult>;
|
|
71
72
|
reviewOrganizationProposal: (input: OrganizationProposalsReviewInput) => Promise<OrganizationProposalsReviewResult>;
|
|
@@ -440,6 +441,36 @@ interface MetricsTakedownTimeResult {
|
|
|
440
441
|
count: number;
|
|
441
442
|
}>;
|
|
442
443
|
}
|
|
444
|
+
interface MetricsTakedownTimeTrendInput {
|
|
445
|
+
slug: string;
|
|
446
|
+
months?: number;
|
|
447
|
+
assetTypes?: string[];
|
|
448
|
+
blockLabel?: string;
|
|
449
|
+
brandType?: "INDIVIDUAL" | "ORGANIZATION" | "PRODUCT";
|
|
450
|
+
countryCodes?: string[];
|
|
451
|
+
brandIds?: number[];
|
|
452
|
+
}
|
|
453
|
+
interface MetricsTakedownTimeTrendPoint {
|
|
454
|
+
period: string;
|
|
455
|
+
medianTakedownMinutes: number | null;
|
|
456
|
+
medianTakedownHours: number | null;
|
|
457
|
+
medianTakedownDays: number | null;
|
|
458
|
+
count: number;
|
|
459
|
+
}
|
|
460
|
+
interface MetricsTakedownTimeTrendResult {
|
|
461
|
+
months: number;
|
|
462
|
+
periods: string[];
|
|
463
|
+
series: Array<{
|
|
464
|
+
assetType: string | null;
|
|
465
|
+
points: MetricsTakedownTimeTrendPoint[];
|
|
466
|
+
change: {
|
|
467
|
+
latest: MetricsTakedownTimeTrendPoint | null;
|
|
468
|
+
previous: MetricsTakedownTimeTrendPoint | null;
|
|
469
|
+
percentChange: number | null;
|
|
470
|
+
direction: "improved" | "worsened" | "unchanged" | null;
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
}
|
|
443
474
|
interface ReportAssetInput {
|
|
444
475
|
content: string;
|
|
445
476
|
status?: "BLOCKED" | "ALLOWED" | "UNKNOWN";
|
|
@@ -1011,7 +1042,7 @@ interface TakedownsListResult {
|
|
|
1011
1042
|
takedowns: TakedownItem[];
|
|
1012
1043
|
next_page: string | null;
|
|
1013
1044
|
}
|
|
1014
|
-
declare const ORGANIZATION_METRICS_INCLUDE_FIELDS: readonly ["reports", "newThreats", "threatsWatchlisted", "takedownsFiled", "takedownsCompleted", "domainThreats", "twitterThreats", "telegramThreats", "otherThreats", "blockedByType", "blockedByDay"];
|
|
1045
|
+
declare const ORGANIZATION_METRICS_INCLUDE_FIELDS: readonly ["reports", "newThreats", "threatsWatchlisted", "takedownsFiled", "takedownsInProgress", "takedownsCompleted", "takedownsCancelled", "domainThreats", "twitterThreats", "telegramThreats", "otherThreats", "blockedByType", "blockedByDay"];
|
|
1015
1046
|
type OrganizationMetricsIncludeField = (typeof ORGANIZATION_METRICS_INCLUDE_FIELDS)[number];
|
|
1016
1047
|
interface OrganizationMetricsServicesFilter {
|
|
1017
1048
|
reporting?: {
|
|
@@ -1050,7 +1081,9 @@ interface OrganizationMetricsResultMetrics {
|
|
|
1050
1081
|
newThreats: number | null;
|
|
1051
1082
|
threatsWatchlisted: number | null;
|
|
1052
1083
|
takedownsFiled: number | null;
|
|
1084
|
+
takedownsInProgress: number | null;
|
|
1053
1085
|
takedownsCompleted: number | null;
|
|
1086
|
+
takedownsCancelled: number | null;
|
|
1054
1087
|
domainThreats: number | null;
|
|
1055
1088
|
twitterThreats: number | null;
|
|
1056
1089
|
telegramThreats: number | null;
|
|
@@ -1342,6 +1375,7 @@ declare class ChainPatrolApiClient implements ApiClient {
|
|
|
1342
1375
|
getMetricsFound(input: MetricsFoundInput): Promise<MetricsFoundResult>;
|
|
1343
1376
|
getMetricsBreakdown(input: MetricsBreakdownInput): Promise<MetricsBreakdownResult>;
|
|
1344
1377
|
getMetricsTakedownTime(input: MetricsTakedownTimeInput): Promise<MetricsTakedownTimeResult>;
|
|
1378
|
+
getMetricsTakedownTimeTrend(input: MetricsTakedownTimeTrendInput): Promise<MetricsTakedownTimeTrendResult>;
|
|
1345
1379
|
createReport(input: ReportCreateInput): Promise<ReportCreateResult>;
|
|
1346
1380
|
listOrganizationReports(input: OrganizationReportsListInput): Promise<OrganizationReportsListResult>;
|
|
1347
1381
|
reviewOrganizationProposal(input: OrganizationProposalsReviewInput): Promise<OrganizationProposalsReviewResult>;
|
|
@@ -1372,4 +1406,4 @@ declare function parseIsoDateString(value: string | undefined): string | undefin
|
|
|
1372
1406
|
*/
|
|
1373
1407
|
declare function parseIsoDateEndOfDay(value: string | undefined): Date | undefined;
|
|
1374
1408
|
|
|
1375
|
-
export { ACTOR_KINDS, type ActorKind, type ApiClient, type ApiCredential, type AssetCheckInput, type AssetCheckResult, type AssetCheckSourceEntry, type AssetCheckStatus, type AssetGroupItem, type AssetListInput, type AssetListItem, type AssetListResult, type AssetSearchInput, type AssetSearchResult, type AssetSearchResultItem, type BrandItem, type BrandLegalDocument, type BrandLegalDocuments, type BrandTrademarkRegistrationItem, type BrandType, ChainPatrolApiClient, type ChainPatrolApiClientOptions, type ConfigEntry, type CredentialProvider, type CustomerReviewDecision, DETECTION_CONFIDENCE_LEVELS, DETECTION_REPORTED_FILTERS, type DetectionBrand, type DetectionConfidence, type DetectionConfigRunInput, type DetectionConfigRunResult, type DetectionConfigUpdateInput, type DetectionConfigUpdateResult, type DetectionConfigValidateInput, type DetectionConfigValidateResult, type DetectionDriftInput, type DetectionDriftResult, type DetectionListInput, type DetectionListItem, type DetectionListResult, type DetectionReportStatus, type DetectionReportedFilter, type DetectionSource, type HealthcheckCategory, type HealthcheckFinding, type HealthcheckRegistryEntry, type HealthcheckResult, type HealthcheckSeverity, type HealthchecksListResult, LIVENESS_FILTER_VALUES, LIVENESS_STATUSES, type LivenessFilterValue, type LivenessStatus, type MetricsBreakdownInput, type MetricsBreakdownResult, type MetricsFoundInput, type MetricsFoundResult, type MetricsSummaryInput, type MetricsSummaryResult, type MetricsTakedownTimeInput, type MetricsTakedownTimeResult, ORGANIZATION_METRICS_INCLUDE_FIELDS, type OperationsQueuesSnapshotInput, type OperationsQueuesSnapshotResult, type OrganizationAssetGroupsListResult, type OrganizationAssetItem, type OrganizationAssetsListInput, type OrganizationAssetsListResult, type OrganizationBrandsListResult, type OrganizationMetricsIncludeField, type OrganizationMetricsInput, type OrganizationMetricsResult, type OrganizationMetricsResultMetrics, type OrganizationMetricsServicesFilter, type OrganizationMetricsVisibility, type OrganizationPortalVisibility, type OrganizationProposalsReviewInput, type OrganizationProposalsReviewResult, type OrganizationReportAssetScan, type OrganizationReportAssetScanEnrichment, type OrganizationReportAttachment, type OrganizationReportVisibility, type OrganizationReportsListInput, type OrganizationReportsListResult, PROPOSAL_REJECT_REASONS, PROPOSAL_WATCHLIST_REASONS, type PendingApprovalService, type PendingServiceApproval, type ProposalRejectReason, type ProposalWatchlistReason, REPORT_REVIEW_DECISIONS, REPORT_STATUSES, type ReportAssetInput, type ReportCreateInput, type ReportCreateResult, type ReportReviewDecision, type ReportStatus, type ReportsSearchInput, type ReportsSearchResult, type ReportsSearchResultItem, TAKEDOWN_SORT_KEYS, TAKEDOWN_STATUSES, type TakedownItem, type TakedownProviderRef, type TakedownSortKey, type TakedownStatus, type TakedownsListInput, type TakedownsListResult, type ThreatItem, type ThreatsListInput, type ThreatsListResult, type UserMeResult, type UserOrg, type UserOrgBrandMetadata, type UserOrgGetInput, type UserOrgGetResult, type UserOrgIntegrations, type UserOrgLegalDocument, type UserOrgLegalDocuments, type UserOrgPortalCustomization, type UserOrgTrademarkRegistration, type UserOrgsInput, type UserOrgsObligatoryAdminApprovalFilter, type UserOrgsPendingServiceApprovalFilter, type UserOrgsResult, type UserOrgsServiceFilters, type UserOrgsSubscriptionStatus, type ValidateApiKeyResult, WATCHLIST_FILTER_VALUES, type WatchlistFilterValue, parseIsoDate, parseIsoDateEndOfDay, parseIsoDateString, staticApiKey, staticBearerToken };
|
|
1409
|
+
export { ACTOR_KINDS, type ActorKind, type ApiClient, type ApiCredential, type AssetCheckInput, type AssetCheckResult, type AssetCheckSourceEntry, type AssetCheckStatus, type AssetGroupItem, type AssetListInput, type AssetListItem, type AssetListResult, type AssetSearchInput, type AssetSearchResult, type AssetSearchResultItem, type BrandItem, type BrandLegalDocument, type BrandLegalDocuments, type BrandTrademarkRegistrationItem, type BrandType, ChainPatrolApiClient, type ChainPatrolApiClientOptions, type ConfigEntry, type CredentialProvider, type CustomerReviewDecision, DETECTION_CONFIDENCE_LEVELS, DETECTION_REPORTED_FILTERS, type DetectionBrand, type DetectionConfidence, type DetectionConfigRunInput, type DetectionConfigRunResult, type DetectionConfigUpdateInput, type DetectionConfigUpdateResult, type DetectionConfigValidateInput, type DetectionConfigValidateResult, type DetectionDriftInput, type DetectionDriftResult, type DetectionListInput, type DetectionListItem, type DetectionListResult, type DetectionReportStatus, type DetectionReportedFilter, type DetectionSource, type HealthcheckCategory, type HealthcheckFinding, type HealthcheckRegistryEntry, type HealthcheckResult, type HealthcheckSeverity, type HealthchecksListResult, LIVENESS_FILTER_VALUES, LIVENESS_STATUSES, type LivenessFilterValue, type LivenessStatus, type MetricsBreakdownInput, type MetricsBreakdownResult, type MetricsFoundInput, type MetricsFoundResult, type MetricsSummaryInput, type MetricsSummaryResult, type MetricsTakedownTimeInput, type MetricsTakedownTimeResult, type MetricsTakedownTimeTrendInput, type MetricsTakedownTimeTrendPoint, type MetricsTakedownTimeTrendResult, ORGANIZATION_METRICS_INCLUDE_FIELDS, type OperationsQueuesSnapshotInput, type OperationsQueuesSnapshotResult, type OrganizationAssetGroupsListResult, type OrganizationAssetItem, type OrganizationAssetsListInput, type OrganizationAssetsListResult, type OrganizationBrandsListResult, type OrganizationMetricsIncludeField, type OrganizationMetricsInput, type OrganizationMetricsResult, type OrganizationMetricsResultMetrics, type OrganizationMetricsServicesFilter, type OrganizationMetricsVisibility, type OrganizationPortalVisibility, type OrganizationProposalsReviewInput, type OrganizationProposalsReviewResult, type OrganizationReportAssetScan, type OrganizationReportAssetScanEnrichment, type OrganizationReportAttachment, type OrganizationReportVisibility, type OrganizationReportsListInput, type OrganizationReportsListResult, PROPOSAL_REJECT_REASONS, PROPOSAL_WATCHLIST_REASONS, type PendingApprovalService, type PendingServiceApproval, type ProposalRejectReason, type ProposalWatchlistReason, REPORT_REVIEW_DECISIONS, REPORT_STATUSES, type ReportAssetInput, type ReportCreateInput, type ReportCreateResult, type ReportReviewDecision, type ReportStatus, type ReportsSearchInput, type ReportsSearchResult, type ReportsSearchResultItem, TAKEDOWN_SORT_KEYS, TAKEDOWN_STATUSES, type TakedownItem, type TakedownProviderRef, type TakedownSortKey, type TakedownStatus, type TakedownsListInput, type TakedownsListResult, type ThreatItem, type ThreatsListInput, type ThreatsListResult, type UserMeResult, type UserOrg, type UserOrgBrandMetadata, type UserOrgGetInput, type UserOrgGetResult, type UserOrgIntegrations, type UserOrgLegalDocument, type UserOrgLegalDocuments, type UserOrgPortalCustomization, type UserOrgTrademarkRegistration, type UserOrgsInput, type UserOrgsObligatoryAdminApprovalFilter, type UserOrgsPendingServiceApprovalFilter, type UserOrgsResult, type UserOrgsServiceFilters, type UserOrgsSubscriptionStatus, type ValidateApiKeyResult, WATCHLIST_FILTER_VALUES, type WatchlistFilterValue, parseIsoDate, parseIsoDateEndOfDay, parseIsoDateString, staticApiKey, staticBearerToken };
|
package/dist/api/index.js
CHANGED
|
@@ -97,7 +97,9 @@ var ORGANIZATION_METRICS_INCLUDE_FIELDS = [
|
|
|
97
97
|
"newThreats",
|
|
98
98
|
"threatsWatchlisted",
|
|
99
99
|
"takedownsFiled",
|
|
100
|
+
"takedownsInProgress",
|
|
100
101
|
"takedownsCompleted",
|
|
102
|
+
"takedownsCancelled",
|
|
101
103
|
"domainThreats",
|
|
102
104
|
"twitterThreats",
|
|
103
105
|
"telegramThreats",
|
|
@@ -331,6 +333,12 @@ var ChainPatrolApiClient = class {
|
|
|
331
333
|
endDate: parseIsoDateEndOfDay(input.endDate)
|
|
332
334
|
}));
|
|
333
335
|
}
|
|
336
|
+
getMetricsTakedownTimeTrend(input) {
|
|
337
|
+
return this.request(
|
|
338
|
+
"/metrics/takedown-time/trend",
|
|
339
|
+
input
|
|
340
|
+
);
|
|
341
|
+
}
|
|
334
342
|
createReport(input) {
|
|
335
343
|
return this.request("/report/create", input);
|
|
336
344
|
}
|