diff --git a/src/resources/ApiKeys/ApiKeysInterfaces.ts b/src/resources/ApiKeys/ApiKeysInterfaces.ts index a2d291c3..2b7ccf21 100644 --- a/src/resources/ApiKeys/ApiKeysInterfaces.ts +++ b/src/resources/ApiKeys/ApiKeysInterfaces.ts @@ -1,5 +1,5 @@ import {GranularResource, PrivilegeModel} from '../BaseInterfaces.js'; -import {ApiKeyExposureReportSeverity, ApiKeyReportCreationType, ApiKeyStatus} from '../Enums.js'; +import {ApiKeyStatus, ApiKeyExposureReportSeverity, ApiKeyReportCreationType} from '../Enums.js'; import {UserModel} from '../Users/UserInterfaces.js'; export interface ApiKeyBaseModel extends GranularResource { @@ -106,6 +106,32 @@ export interface ApiKeyModel extends ApiKeyBaseModel { exposureReport?: ExposureReport; } +export interface ExposureReport { + /** + * API Key logger id associated to the Exposure Report + */ + apiKeyLoggerId: string; + /** + * The severity of the exposure + */ + severity: ApiKeyExposureReportSeverity; + /** + * The reason behind the exposure report for a given API key + */ + reason: string; + /** + * The date the key should be deactivated + */ + deactivationDate: number; + /** + * The way the API key report has been created + */ + creationType: ApiKeyReportCreationType; + /** + * Represents the user that has created the report + */ + createdBy: UserModel; +} export interface CreateApiKeyModel extends ApiKeyBaseModel { /** * The duration of the API key in ISO-8601 format. Once the duration is reached the key expires and cannot be used anymore. @@ -189,30 +215,3 @@ interface EnforceQueryPipelineConfigurationModel { interface ImpersonationRestrictionsModel { allowedUserIds: QueryAuthenticationModel[]; } - -interface ExposureReport { - /** - * API Key logger id associated to the Exposure Report - */ - apiKeyLoggerId: string; - /** - * The severity of the exposure - */ - severity: ApiKeyExposureReportSeverity; - /** - * The reason behind the exposure report for a given API key - */ - reason: string; - /** - * The date the key should be deactivated - */ - deactivationDate: number; - /** - * The way the API key report has been created - */ - creationType: ApiKeyReportCreationType; - /** - * Represents the user that has created the report - */ - createdBy: UserModel; -}