@chainpatrol/sdk 1.2.0 → 1.3.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/index.mjs CHANGED
@@ -7326,10 +7326,17 @@ z.object({
7326
7326
  /** An array of assets with their content, type, status, and update timestamp. */
7327
7327
  assets: z.array(
7328
7328
  z.object({
7329
+ id: z.number().describe("Asset ID \u2014 use to reference the asset in follow-up calls"),
7329
7330
  content: z.string().describe("Asset content"),
7330
7331
  type: z.nativeEnum(AssetType).describe("Asset type"),
7331
7332
  status: z.nativeEnum(AssetStatus).describe("The result of the asset status check"),
7332
7333
  watchStatus: z.nativeEnum(WatchStatus).describe("The watch status of the asset"),
7334
+ livenessStatus: z.nativeEnum(LivenessStatus).nullable().describe(
7335
+ "Whether the asset is currently reachable (`ALIVE`), gone (`DEAD`), or hasn't been checked (`UNKNOWN`). `null` when liveness has never been evaluated."
7336
+ ),
7337
+ blockedAt: z.date().nullable().describe(
7338
+ "When the asset transitioned to BLOCKED status. `null` for non-blocked assets or blocks predating the field. Distinct from `updatedAt`, which changes on any mutation."
7339
+ ),
7333
7340
  updatedAt: z.date()
7334
7341
  })
7335
7342
  ),
@@ -7759,6 +7766,12 @@ var organizationAssetItemSchema = z.object({
7759
7766
  id: z.number().describe("Group ID"),
7760
7767
  name: z.string().describe("Group name")
7761
7768
  }).nullable().describe("Asset group information"),
7769
+ livenessStatus: z.nativeEnum(LivenessStatus).nullable().describe(
7770
+ "Whether the asset is currently reachable (`ALIVE`), gone (`DEAD`), or hasn't been checked (`UNKNOWN`). `null` when liveness has never been evaluated."
7771
+ ),
7772
+ blockedAt: z.date().nullable().describe(
7773
+ "When the asset transitioned to BLOCKED status. `null` for non-blocked assets. Distinct from `updatedAt`."
7774
+ ),
7762
7775
  createdAt: z.date().describe("When the asset was created"),
7763
7776
  updatedAt: z.date().describe("When the asset was last updated")
7764
7777
  });
@@ -11971,13 +11984,25 @@ for parsing the dates.`
11971
11984
  var takedownItemSchema = z.object({
11972
11985
  id: z.number().describe("Takedown ID"),
11973
11986
  status: z.nativeEnum(TakedownStatus).describe("Takedown status"),
11987
+ externalId: z.string().nullable().describe(
11988
+ "Provider's own reference for this takedown (e.g. CleanDNS report ID, registrar ticket number). Use this to reconcile a takedown against the vendor's dashboard. `null` when no vendor has picked it up yet."
11989
+ ),
11990
+ hasFilingDelay: z.boolean().describe(
11991
+ "Manually set by staff to exclude the takedown from median-time metrics when its filing was delayed for reasons unrelated to platform performance. Useful for explaining a stuck-looking takedown."
11992
+ ),
11993
+ hasLivenessCheckDelay: z.boolean().describe(
11994
+ "Manually set by staff to exclude the takedown from median-time metrics when the liveness-check step was delayed for reasons unrelated to platform performance."
11995
+ ),
11974
11996
  createdAt: z.date().describe("When the takedown was created"),
11975
11997
  updatedAt: z.date().describe("When the takedown was last updated"),
11976
11998
  asset: z.object({
11977
11999
  id: z.number().describe("Asset ID"),
11978
12000
  content: z.string().describe("Asset content (URL, handle, etc.)"),
11979
12001
  type: z.nativeEnum(AssetType).describe("Asset type"),
11980
- livenessStatus: z.nativeEnum(LivenessStatus).nullable().describe("Asset liveness status")
12002
+ livenessStatus: z.nativeEnum(LivenessStatus).nullable().describe("Asset liveness status"),
12003
+ blockedAt: z.date().nullable().describe(
12004
+ "When the asset was blocked (transitioned to BLOCKED status). `null` if the asset was never blocked (rare for takedown rows). Distinct from `updatedAt`, which changes on any mutation."
12005
+ )
11981
12006
  }).describe("Associated asset information"),
11982
12007
  assignee: z.object({
11983
12008
  id: z.number().describe("Assignee user ID"),
@@ -12079,6 +12104,9 @@ z.object({
12079
12104
  id: z.number().describe("Threat ID"),
12080
12105
  content: z.string().describe("Threat content"),
12081
12106
  type: z.nativeEnum(AssetType).describe("Asset type"),
12107
+ livenessStatus: z.nativeEnum(LivenessStatus).nullable().describe(
12108
+ "Whether the blocked threat is currently reachable (`ALIVE`), gone (`DEAD`), or unchecked (`UNKNOWN`). Use to filter out dead threats without a second call."
12109
+ ),
12082
12110
  blockedAt: z.date().describe("When the asset was blocked")
12083
12111
  })
12084
12112
  ),