@binalyze/air-sdk 5.15.2 → 5.17.2
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.
|
@@ -390,6 +390,16 @@ export type AddTagsToEndpointsByFilterDto = {
|
|
|
390
390
|
*/
|
|
391
391
|
tags: Array<string>;
|
|
392
392
|
};
|
|
393
|
+
export type SetMitreAttackDatabaseVersionDto = {
|
|
394
|
+
/**
|
|
395
|
+
* Filter to select assets to update
|
|
396
|
+
*/
|
|
397
|
+
filter: FilterEndpointDto;
|
|
398
|
+
/**
|
|
399
|
+
* MITRE ATT&CK database version to set as demanded for selected agents
|
|
400
|
+
*/
|
|
401
|
+
version: string;
|
|
402
|
+
};
|
|
393
403
|
export type RemoveTagsFromEndpointsByFilterDto = {
|
|
394
404
|
/**
|
|
395
405
|
* Filter to select assets/endpoints to remove tags from
|
|
@@ -642,6 +652,14 @@ export type FilterTasksDto = {
|
|
|
642
652
|
* Organization IDs to scope results
|
|
643
653
|
*/
|
|
644
654
|
organizationIds: Array<Array<unknown>>;
|
|
655
|
+
/**
|
|
656
|
+
* Filter by task created by
|
|
657
|
+
*/
|
|
658
|
+
createdBy?: string;
|
|
659
|
+
/**
|
|
660
|
+
* Created at date range
|
|
661
|
+
*/
|
|
662
|
+
createdAt?: DateRangeDto;
|
|
645
663
|
};
|
|
646
664
|
export type TaskNameDto = {
|
|
647
665
|
[key: string]: unknown;
|
|
@@ -675,6 +693,14 @@ export type DeleteTasksByFilterDto = {
|
|
|
675
693
|
* Organization IDs to scope results
|
|
676
694
|
*/
|
|
677
695
|
organizationIds: Array<Array<unknown>>;
|
|
696
|
+
/**
|
|
697
|
+
* Filter by task created by
|
|
698
|
+
*/
|
|
699
|
+
createdBy?: string;
|
|
700
|
+
/**
|
|
701
|
+
* Created at date range
|
|
702
|
+
*/
|
|
703
|
+
createdAt?: DateRangeDto;
|
|
678
704
|
};
|
|
679
705
|
export type CancelTasksByFilterDto = {
|
|
680
706
|
[key: string]: unknown;
|
|
@@ -752,7 +778,7 @@ export type FilterEndpointTasksDto = {
|
|
|
752
778
|
/**
|
|
753
779
|
* Task type list
|
|
754
780
|
*/
|
|
755
|
-
type?: Array<'triage' | 'acquisition' | 'shutdown' | 'reboot' | 'uninstall' | 'isolation' | 'cancel' | 'investigation' | 'log-retrieval' | 'auto-tagging' | 'version-update' | 'offline-acquisition' | 'offline-triage' | 'migration' | 'interact-shell' | 'baseline-comparison' | 'baseline-acquisition' | 'agent-deployment' | 'acquire-image' | 'purge-local-data' | 'retry-upload' | 'calculate-hash' | 'drone-analysis' | 'full-text-search' | 'cloud-acquisition' | 'image-evidence-acquisition' | 'portable-disk-image'>;
|
|
781
|
+
type?: Array<'triage' | 'acquisition' | 'shutdown' | 'reboot' | 'uninstall' | 'isolation' | 'cancel' | 'investigation' | 'log-retrieval' | 'auto-tagging' | 'version-update' | 'mitre-attack-database-update' | 'offline-acquisition' | 'offline-triage' | 'migration' | 'interact-shell' | 'baseline-comparison' | 'baseline-acquisition' | 'agent-deployment' | 'acquire-image' | 'purge-local-data' | 'retry-upload' | 'calculate-hash' | 'drone-analysis' | 'full-text-search' | 'cloud-acquisition' | 'image-evidence-acquisition' | 'portable-disk-image'>;
|
|
756
782
|
/**
|
|
757
783
|
* Task status list
|
|
758
784
|
*/
|
|
@@ -1042,6 +1068,26 @@ export type MitreAttackVersionItemDto = {
|
|
|
1042
1068
|
*/
|
|
1043
1069
|
metadataPath: string;
|
|
1044
1070
|
};
|
|
1071
|
+
export type MitreAttackReleaseNotesSectionDto = {
|
|
1072
|
+
/**
|
|
1073
|
+
* Section name (e.g., Dynamo Analyzer, Sigma)
|
|
1074
|
+
*/
|
|
1075
|
+
section: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* List of changes in this section
|
|
1078
|
+
*/
|
|
1079
|
+
items: Array<string>;
|
|
1080
|
+
};
|
|
1081
|
+
export type MitreAttackReleaseNotesResponseDto = {
|
|
1082
|
+
/**
|
|
1083
|
+
* ISO 8601 timestamp indicating when this version was released
|
|
1084
|
+
*/
|
|
1085
|
+
releasedAt: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* Release notes sections
|
|
1088
|
+
*/
|
|
1089
|
+
sections: Array<MitreAttackReleaseNotesSectionDto>;
|
|
1090
|
+
};
|
|
1045
1091
|
export type MandatoryCaseSelectionDto = {
|
|
1046
1092
|
[key: string]: unknown;
|
|
1047
1093
|
};
|
|
@@ -1137,6 +1183,10 @@ export type UserDto = {
|
|
|
1137
1183
|
* Last login time
|
|
1138
1184
|
*/
|
|
1139
1185
|
lastLogin: string;
|
|
1186
|
+
/**
|
|
1187
|
+
* Last seen time (updated by browser heartbeat)
|
|
1188
|
+
*/
|
|
1189
|
+
lastSeen: string | null;
|
|
1140
1190
|
/**
|
|
1141
1191
|
* Online status
|
|
1142
1192
|
*/
|
|
@@ -2487,6 +2537,9 @@ export type ValidateAzureStorageDto = {
|
|
|
2487
2537
|
export type ValidateFtpsRepositoryDto = {
|
|
2488
2538
|
[key: string]: unknown;
|
|
2489
2539
|
};
|
|
2540
|
+
export type ValidateSftpRepositoryDto = {
|
|
2541
|
+
[key: string]: unknown;
|
|
2542
|
+
};
|
|
2490
2543
|
export type ValidateGoogleCloudStorageDto = {
|
|
2491
2544
|
[key: string]: unknown;
|
|
2492
2545
|
};
|
|
@@ -3868,6 +3921,10 @@ export type FilterApiTokenRequestDto = {
|
|
|
3868
3921
|
* The search term to filter the API tokens
|
|
3869
3922
|
*/
|
|
3870
3923
|
searchTerm?: string;
|
|
3924
|
+
/**
|
|
3925
|
+
* The type of the API tokens to filter
|
|
3926
|
+
*/
|
|
3927
|
+
type?: 'USER' | 'SYSTEM';
|
|
3871
3928
|
};
|
|
3872
3929
|
export type ApiTokenResponseDto = {
|
|
3873
3930
|
/**
|
|
@@ -3875,9 +3932,21 @@ export type ApiTokenResponseDto = {
|
|
|
3875
3932
|
*/
|
|
3876
3933
|
_id: string;
|
|
3877
3934
|
/**
|
|
3878
|
-
* The username of the
|
|
3935
|
+
* The username of the associated user (null for SYSTEM tokens)
|
|
3879
3936
|
*/
|
|
3880
|
-
username
|
|
3937
|
+
username?: string | null;
|
|
3938
|
+
/**
|
|
3939
|
+
* Who created the API token (audit field)
|
|
3940
|
+
*/
|
|
3941
|
+
createdBy: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The type of the API token
|
|
3944
|
+
*/
|
|
3945
|
+
type: 'USER' | 'SYSTEM';
|
|
3946
|
+
/**
|
|
3947
|
+
* Organization IDs the API token is scoped to (empty array means ALL)
|
|
3948
|
+
*/
|
|
3949
|
+
organizationIds: Array<number>;
|
|
3881
3950
|
/**
|
|
3882
3951
|
* The name of the API token
|
|
3883
3952
|
*/
|
|
@@ -3932,6 +4001,10 @@ export type CreateApiTokenRequestDto = {
|
|
|
3932
4001
|
* The role tag of the API token
|
|
3933
4002
|
*/
|
|
3934
4003
|
roleTag?: string;
|
|
4004
|
+
/**
|
|
4005
|
+
* Organization IDs the API token is scoped to (empty array or omit for ALL)
|
|
4006
|
+
*/
|
|
4007
|
+
organizationIds?: Array<number>;
|
|
3935
4008
|
};
|
|
3936
4009
|
export type UpdateApiTokenRequestDto = {
|
|
3937
4010
|
/**
|
|
@@ -3950,6 +4023,10 @@ export type UpdateApiTokenRequestDto = {
|
|
|
3950
4023
|
* The role tag of the API token
|
|
3951
4024
|
*/
|
|
3952
4025
|
roleTag?: string;
|
|
4026
|
+
/**
|
|
4027
|
+
* Organization IDs the API token is scoped to (empty array or omit for ALL)
|
|
4028
|
+
*/
|
|
4029
|
+
organizationIds?: Array<number>;
|
|
3953
4030
|
};
|
|
3954
4031
|
export type BulkDeleteApiTokensRequestDto = {
|
|
3955
4032
|
/**
|
|
@@ -3957,6 +4034,12 @@ export type BulkDeleteApiTokensRequestDto = {
|
|
|
3957
4034
|
*/
|
|
3958
4035
|
ids: Array<string>;
|
|
3959
4036
|
};
|
|
4037
|
+
export type FilterSystemApiTokensRequestDto = {
|
|
4038
|
+
/**
|
|
4039
|
+
* The search term to filter the system API tokens
|
|
4040
|
+
*/
|
|
4041
|
+
searchTerm?: string;
|
|
4042
|
+
};
|
|
3960
4043
|
export type FilterCloudAccountsRequestDto = {
|
|
3961
4044
|
[key: string]: unknown;
|
|
3962
4045
|
};
|
|
@@ -5212,6 +5295,10 @@ export type UserDtoWritable = {
|
|
|
5212
5295
|
* Last login time
|
|
5213
5296
|
*/
|
|
5214
5297
|
lastLogin: string;
|
|
5298
|
+
/**
|
|
5299
|
+
* Last seen time (updated by browser heartbeat)
|
|
5300
|
+
*/
|
|
5301
|
+
lastSeen: string | null;
|
|
5215
5302
|
/**
|
|
5216
5303
|
* Online status
|
|
5217
5304
|
*/
|
|
@@ -5313,6 +5400,9 @@ export type ValidateAzureStorageDtoWritable = {
|
|
|
5313
5400
|
export type ValidateFtpsRepositoryDtoWritable = {
|
|
5314
5401
|
[key: string]: unknown;
|
|
5315
5402
|
};
|
|
5403
|
+
export type ValidateSftpRepositoryDtoWritable = {
|
|
5404
|
+
[key: string]: unknown;
|
|
5405
|
+
};
|
|
5316
5406
|
export type ValidateGoogleCloudStorageDtoWritable = {
|
|
5317
5407
|
[key: string]: unknown;
|
|
5318
5408
|
};
|
|
@@ -6117,6 +6207,30 @@ export type AssetsAddTags2Responses = {
|
|
|
6117
6207
|
*/
|
|
6118
6208
|
201: unknown;
|
|
6119
6209
|
};
|
|
6210
|
+
export type AssetsSetMitreAttackDatabaseVersionData = {
|
|
6211
|
+
body: SetMitreAttackDatabaseVersionDto;
|
|
6212
|
+
path?: never;
|
|
6213
|
+
query?: never;
|
|
6214
|
+
url: '/api/public/endpoints/mitre-attack-database/version';
|
|
6215
|
+
};
|
|
6216
|
+
export type AssetsSetMitreAttackDatabaseVersionResponses = {
|
|
6217
|
+
/**
|
|
6218
|
+
* MITRE ATT&CK database version update applied
|
|
6219
|
+
*/
|
|
6220
|
+
201: unknown;
|
|
6221
|
+
};
|
|
6222
|
+
export type AssetsSetMitreAttackDatabaseVersion2Data = {
|
|
6223
|
+
body: SetMitreAttackDatabaseVersionDto;
|
|
6224
|
+
path?: never;
|
|
6225
|
+
query?: never;
|
|
6226
|
+
url: '/api/public/assets/mitre-attack-database/version';
|
|
6227
|
+
};
|
|
6228
|
+
export type AssetsSetMitreAttackDatabaseVersion2Responses = {
|
|
6229
|
+
/**
|
|
6230
|
+
* MITRE ATT&CK database version update applied
|
|
6231
|
+
*/
|
|
6232
|
+
201: unknown;
|
|
6233
|
+
};
|
|
6120
6234
|
export type EndpointFilterDisksData = {
|
|
6121
6235
|
body?: never;
|
|
6122
6236
|
path?: never;
|
|
@@ -7463,6 +7577,18 @@ export type SettingsGetMitreAttackDatabaseVersionsResponses = {
|
|
|
7463
7577
|
200: Array<MitreAttackVersionItemDto>;
|
|
7464
7578
|
};
|
|
7465
7579
|
export type SettingsGetMitreAttackDatabaseVersionsResponse = SettingsGetMitreAttackDatabaseVersionsResponses[keyof SettingsGetMitreAttackDatabaseVersionsResponses];
|
|
7580
|
+
export type SettingsGetMitreAttackDatabaseReleaseNotesData = {
|
|
7581
|
+
body?: never;
|
|
7582
|
+
path: {
|
|
7583
|
+
version: string;
|
|
7584
|
+
};
|
|
7585
|
+
query?: never;
|
|
7586
|
+
url: '/api/public/settings/mitre-attack-database/release-notes/{version}';
|
|
7587
|
+
};
|
|
7588
|
+
export type SettingsGetMitreAttackDatabaseReleaseNotesResponses = {
|
|
7589
|
+
200: MitreAttackReleaseNotesResponseDto;
|
|
7590
|
+
};
|
|
7591
|
+
export type SettingsGetMitreAttackDatabaseReleaseNotesResponse = SettingsGetMitreAttackDatabaseReleaseNotesResponses[keyof SettingsGetMitreAttackDatabaseReleaseNotesResponses];
|
|
7466
7592
|
export type SettingsSaveMandatoryCaseSelectionData = {
|
|
7467
7593
|
body: MandatoryCaseSelectionDtoWritable;
|
|
7468
7594
|
path?: never;
|
|
@@ -8717,6 +8843,15 @@ export type EvidenceRepositoryValidateFtpsRepositoryData = {
|
|
|
8717
8843
|
export type EvidenceRepositoryValidateFtpsRepositoryResponses = {
|
|
8718
8844
|
201: unknown;
|
|
8719
8845
|
};
|
|
8846
|
+
export type EvidenceRepositoryValidateSftpRepositoryData = {
|
|
8847
|
+
body: ValidateSftpRepositoryDtoWritable;
|
|
8848
|
+
path?: never;
|
|
8849
|
+
query?: never;
|
|
8850
|
+
url: '/api/public/evidences/repositories/validate/sftp';
|
|
8851
|
+
};
|
|
8852
|
+
export type EvidenceRepositoryValidateSftpRepositoryResponses = {
|
|
8853
|
+
201: unknown;
|
|
8854
|
+
};
|
|
8720
8855
|
export type EvidenceRepositoryValidateGoogleCloudStorageData = {
|
|
8721
8856
|
body: ValidateGoogleCloudStorageDtoWritable;
|
|
8722
8857
|
path?: never;
|
|
@@ -10620,6 +10755,94 @@ export type ApiTokensBulkDeleteResponses = {
|
|
|
10620
10755
|
*/
|
|
10621
10756
|
200: unknown;
|
|
10622
10757
|
};
|
|
10758
|
+
export type SystemApiTokensGetManyData = {
|
|
10759
|
+
body?: never;
|
|
10760
|
+
path?: never;
|
|
10761
|
+
query: {
|
|
10762
|
+
/**
|
|
10763
|
+
* Number of items per page
|
|
10764
|
+
*/
|
|
10765
|
+
pageSize?: number;
|
|
10766
|
+
/**
|
|
10767
|
+
* Page number to retrieve
|
|
10768
|
+
*/
|
|
10769
|
+
pageNumber?: number;
|
|
10770
|
+
/**
|
|
10771
|
+
* Sort direction
|
|
10772
|
+
*/
|
|
10773
|
+
sortType?: 'ASC' | 'DESC';
|
|
10774
|
+
/**
|
|
10775
|
+
* Field name to sort by
|
|
10776
|
+
*/
|
|
10777
|
+
sortBy?: string;
|
|
10778
|
+
filter: FilterSystemApiTokensRequestDto;
|
|
10779
|
+
};
|
|
10780
|
+
url: '/api/public/system-tokens';
|
|
10781
|
+
};
|
|
10782
|
+
export type SystemApiTokensGetManyResponses = {
|
|
10783
|
+
/**
|
|
10784
|
+
* The records have been successfully retrieved.
|
|
10785
|
+
*/
|
|
10786
|
+
200: PagingQueryResultDto;
|
|
10787
|
+
};
|
|
10788
|
+
export type SystemApiTokensGetManyResponse = SystemApiTokensGetManyResponses[keyof SystemApiTokensGetManyResponses];
|
|
10789
|
+
export type SystemApiTokensCreateData = {
|
|
10790
|
+
body: CreateApiTokenRequestDto;
|
|
10791
|
+
path?: never;
|
|
10792
|
+
query?: never;
|
|
10793
|
+
url: '/api/public/system-tokens';
|
|
10794
|
+
};
|
|
10795
|
+
export type SystemApiTokensCreateResponses = {
|
|
10796
|
+
/**
|
|
10797
|
+
* The record has been successfully created.
|
|
10798
|
+
*/
|
|
10799
|
+
200: ApiTokenResponseDto;
|
|
10800
|
+
};
|
|
10801
|
+
export type SystemApiTokensCreateResponse = SystemApiTokensCreateResponses[keyof SystemApiTokensCreateResponses];
|
|
10802
|
+
export type SystemApiTokensDeleteData = {
|
|
10803
|
+
body?: never;
|
|
10804
|
+
path: {
|
|
10805
|
+
id: string;
|
|
10806
|
+
};
|
|
10807
|
+
query?: never;
|
|
10808
|
+
url: '/api/public/system-tokens/{id}';
|
|
10809
|
+
};
|
|
10810
|
+
export type SystemApiTokensDeleteResponses = {
|
|
10811
|
+
/**
|
|
10812
|
+
* The record has been successfully deleted.
|
|
10813
|
+
*/
|
|
10814
|
+
200: unknown;
|
|
10815
|
+
};
|
|
10816
|
+
export type SystemApiTokensGetOneData = {
|
|
10817
|
+
body?: never;
|
|
10818
|
+
path: {
|
|
10819
|
+
id: string;
|
|
10820
|
+
};
|
|
10821
|
+
query?: never;
|
|
10822
|
+
url: '/api/public/system-tokens/{id}';
|
|
10823
|
+
};
|
|
10824
|
+
export type SystemApiTokensGetOneResponses = {
|
|
10825
|
+
/**
|
|
10826
|
+
* The record has been successfully retrieved.
|
|
10827
|
+
*/
|
|
10828
|
+
200: ApiTokenResponseDto;
|
|
10829
|
+
};
|
|
10830
|
+
export type SystemApiTokensGetOneResponse = SystemApiTokensGetOneResponses[keyof SystemApiTokensGetOneResponses];
|
|
10831
|
+
export type SystemApiTokensUpdateData = {
|
|
10832
|
+
body: UpdateApiTokenRequestDto;
|
|
10833
|
+
path: {
|
|
10834
|
+
id: string;
|
|
10835
|
+
};
|
|
10836
|
+
query?: never;
|
|
10837
|
+
url: '/api/public/system-tokens/{id}';
|
|
10838
|
+
};
|
|
10839
|
+
export type SystemApiTokensUpdateResponses = {
|
|
10840
|
+
/**
|
|
10841
|
+
* The record has been successfully updated.
|
|
10842
|
+
*/
|
|
10843
|
+
200: ApiTokenResponseDto;
|
|
10844
|
+
};
|
|
10845
|
+
export type SystemApiTokensUpdateResponse = SystemApiTokensUpdateResponses[keyof SystemApiTokensUpdateResponses];
|
|
10623
10846
|
export type CloudAccountsFilterData = {
|
|
10624
10847
|
body?: never;
|
|
10625
10848
|
path?: never;
|
package/dist/types/assets.d.ts
CHANGED