Skip to content

Commit 1fafe08

Browse files
authored
Merge pull request #46 from datocms/c14/feat/antivirus
Introduce antivirus scanning feature for assets
2 parents 853fc06 + 472cfe7 commit 1fafe08

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

packages/cma-client/src/generated/ApiTypes.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8422,11 +8422,37 @@ export type Upload = {
84228422
| UserData
84238423
| SsoUserData
84248424
| OrganizationData;
8425+
meta: UploadMeta;
84258426
};
84268427
export type UploadCreateJobSchema = Upload;
84278428
export type UploadSelfTargetSchema = Upload;
84288429
export type UploadDestroyTargetSchema = Upload;
84298430
export type UploadUpdateJobSchema = Upload;
8431+
/**
8432+
* Meta attributes
8433+
*
8434+
* This interface was referenced by `Upload`'s JSON-Schema
8435+
* via the `definition` "meta".
8436+
*/
8437+
export type UploadMeta = {
8438+
/**
8439+
* Antivirus scan information
8440+
*/
8441+
antivirus: {
8442+
/**
8443+
* Antivirus scan status of the asset
8444+
*/
8445+
status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8446+
/**
8447+
* Date of the last antivirus scan
8448+
*/
8449+
checked_at: string | null;
8450+
/**
8451+
* Name of the threat detected by the antivirus scan, if any
8452+
*/
8453+
threat_name: string | null;
8454+
};
8455+
};
84308456
/**
84318457
* JSON API data
84328458
*

packages/cma-client/src/generated/RawApiTypes.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8437,6 +8437,7 @@ export type Upload = {
84378437
id: UploadIdentity;
84388438
attributes: UploadAttributes;
84398439
relationships: UploadRelationships;
8440+
meta: UploadMeta;
84408441
};
84418442
/**
84428443
* JSON API attributes
@@ -8632,6 +8633,31 @@ export type UploadRelationships = {
86328633
| OrganizationData;
86338634
};
86348635
};
8636+
/**
8637+
* Meta attributes
8638+
*
8639+
* This interface was referenced by `Upload`'s JSON-Schema
8640+
* via the `definition` "meta".
8641+
*/
8642+
export type UploadMeta = {
8643+
/**
8644+
* Antivirus scan information
8645+
*/
8646+
antivirus: {
8647+
/**
8648+
* Antivirus scan status of the asset
8649+
*/
8650+
status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
8651+
/**
8652+
* Date of the last antivirus scan
8653+
*/
8654+
checked_at: string | null;
8655+
/**
8656+
* Name of the threat detected by the antivirus scan, if any
8657+
*/
8658+
threat_name: string | null;
8659+
};
8660+
};
86358661
/**
86368662
* JSON API data
86378663
*

0 commit comments

Comments
 (0)