main
ts 107 lines 2.68 KB
Raw
1 // required: customer_code, customer_name, contact_last_name, contact_first_name
2 export interface Customer {
3 customer_code: string
4 customer_name: string
5 contact_last_name: string
6 contact_first_name: string
7 parent_customer_code: string | null
8 phone: string
9 address_line1: string
10 address_line2: string
11 city: string
12 state: string
13 postal_code: string
14 country: string
15 customer_type: string
16 // TODO-FE: consider removing it (logo_file)
17 logo_file: string
18 is_provisioned?: boolean
19 }
20
21 export interface CustomerMeta {
22 id: number
23 customer_code: string
24 customer_name: string
25 customer_meta_graylog_index: string
26 customer_meta_graylog_stream: string
27 customer_meta_grafana_org_id: string
28 customer_meta_wazuh_group: string
29 customer_meta_index_retention: string
30 customer_meta_wazuh_registration_port: string
31 customer_meta_wazuh_log_ingestion_port: string
32 customer_meta_wazuh_auth_password: string
33 customer_meta_iris_customer_id: number
34 customer_meta_office365_organization_id: string
35 customer_meta_wazuh_api_port: string
36 }
37
38 export type CustomerHealthcheckSource = "wazuh" | "velociraptor"
39
40 export interface CustomerAgentHealth {
41 id: number
42 os: string
43 label: string
44 wazuh_last_seen: string
45 velociraptor_last_seen: string
46 velociraptor_agent_version: string
47 ip_address: string
48 agent_id: string
49 hostname: string
50 critical_asset: boolean
51 velociraptor_id: string
52 wazuh_agent_version: string
53 customer_code: string
54 unhealthy_wazuh_agent: boolean | null
55 unhealthy_velociraptor_agent: boolean | null
56 unhealthy_recent_logs_collected: null
57 }
58
59 export interface CustomerProvision {
60 customer_name: string
61 customer_code: string
62 customer_index_name: string
63 customer_grafana_org_name: string
64 hot_data_retention: number
65 index_replicas: number
66 /** default this to 1 */
67 index_shards: number
68 /** default to Wazuh */
69 customer_subscription: string[] // ??
70 dashboards_to_include: {
71 dashboards: string[]
72 /** default to 0 */
73 organizationId: number
74 /** default to 0 */
75 folderId: number
76 /** default to "uid-to-be-replaced" */
77 datasourceUid: string
78 }
79 wazuh_auth_password: string
80 wazuh_registration_port: string
81 wazuh_logs_port: string
82 wazuh_api_port: string
83 wazuh_cluster_name: string
84 wazuh_cluster_key: string
85 wazuh_master_ip: string
86 grafana_url: string
87 provision_wazuh_worker: boolean
88 provision_ha_proxy: boolean
89 dfir_iris_username: string
90 wazuh_worker_hostname: string
91 }
92
93 export interface CustomerDecommissionedData {
94 agents_deleted: string[]
95 groups_deleted: string[]
96 stream_deleted: string
97 index_deleted: string
98 }
99
100 export interface CustomerProvisioningDefaultSettings {
101 id: number
102 cluster_name: string
103 cluster_key: string
104 master_ip: string
105 grafana_url: string
106 wazuh_worker_hostname: string
107 }