@virusis/api-client 0.1.13 → 0.1.14

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.
@@ -67,6 +67,7 @@ export declare function getServices(): {
67
67
  scanTimingRunsService: import("./index.js").ScanTimingRunsClient;
68
68
  scanTypesService: import("./index.js").ScanTypesClient;
69
69
  scanVisibilityTypesService: import("./index.js").ScanVisibilityTypesClient;
70
+ apiService: import("./index.js").ApiClient;
70
71
  internalService: import("./index.js").InternalClient;
71
72
  threatConceptsService: import("./index.js").ThreatConceptsClient;
72
73
  threatFrameworksService: import("./index.js").ThreatFrameworksClient;
@@ -143,6 +144,7 @@ export declare function getServicesRx(): {
143
144
  scanTimingRunsService: import("./index.js").ScanTimingRunsClient;
144
145
  scanTypesService: import("./index.js").ScanTypesClient;
145
146
  scanVisibilityTypesService: import("./index.js").ScanVisibilityTypesClient;
147
+ apiService: import("./index.js").ApiClient;
146
148
  internalService: import("./index.js").InternalClient;
147
149
  threatConceptsService: import("./index.js").ThreatConceptsClient;
148
150
  threatFrameworksService: import("./index.js").ThreatFrameworksClient;
@@ -220,6 +222,7 @@ export declare function getServicesByMode(mode?: ClientMode): {
220
222
  scanTimingRunsService: import("./index.js").ScanTimingRunsClient;
221
223
  scanTypesService: import("./index.js").ScanTypesClient;
222
224
  scanVisibilityTypesService: import("./index.js").ScanVisibilityTypesClient;
225
+ apiService: import("./index.js").ApiClient;
223
226
  internalService: import("./index.js").InternalClient;
224
227
  threatConceptsService: import("./index.js").ThreatConceptsClient;
225
228
  threatFrameworksService: import("./index.js").ThreatFrameworksClient;
@@ -0,0 +1,2 @@
1
+ export { ApiClient, ApiClient as ApiService, IApiClient } from "../index.js";
2
+ export { ApiClient as apiService, IApiClient as iApiClient } from "../index.js";
@@ -0,0 +1,2 @@
1
+ export { ApiClient, ApiClient as ApiService } from "../index.js";
2
+ export { ApiClient as apiService } from "../index.js";
@@ -54,6 +54,7 @@ export * from "./scan-timing-events-service.js";
54
54
  export * from "./scan-timing-runs-service.js";
55
55
  export * from "./scan-types-service.js";
56
56
  export * from "./scan-visibility-types-service.js";
57
+ export * from "./api-service.js";
57
58
  export * from "./internal-service.js";
58
59
  export * from "./threat-concepts-service.js";
59
60
  export * from "./threat-frameworks-service.js";
@@ -54,6 +54,7 @@ export * from "./scan-timing-events-service.js";
54
54
  export * from "./scan-timing-runs-service.js";
55
55
  export * from "./scan-types-service.js";
56
56
  export * from "./scan-visibility-types-service.js";
57
+ export * from "./api-service.js";
57
58
  export * from "./internal-service.js";
58
59
  export * from "./threat-concepts-service.js";
59
60
  export * from "./threat-frameworks-service.js";
@@ -0,0 +1,16 @@
1
+ import { ApiClient } from "../index.js";
2
+ import type { ApiClientConfig } from "../../base.js";
3
+ export declare function createApiServiceRx(config: ApiClientConfig, baseUrl?: string, http?: {
4
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
5
+ }): import("../../rx.js").Rxified<ApiClient>;
6
+ export type ApiServiceRx = ReturnType<typeof createApiServiceRx>;
7
+ export declare const apiServiceRx: (config: ApiClientConfig, baseUrl?: string, http?: {
8
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
9
+ }) => import("../../rx.js").Rxified<ApiClient>;
10
+ export declare class ApiServiceRxClass {
11
+ constructor(config: ApiClientConfig, baseUrl?: string, http?: {
12
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
13
+ });
14
+ }
15
+ export interface ApiServiceRxClass extends ApiServiceRx {
16
+ }
@@ -0,0 +1,12 @@
1
+ import { ApiClient } from "../index.js";
2
+ import { rxifyClient } from "../../rx.js";
3
+ export function createApiServiceRx(config, baseUrl, http) {
4
+ return rxifyClient(new ApiClient(config, baseUrl, http));
5
+ }
6
+ export const apiServiceRx = (config, baseUrl, http) => createApiServiceRx(config, baseUrl, http);
7
+ // Angular DI icin: class token kullandiginda Observable donen wrapper
8
+ export class ApiServiceRxClass {
9
+ constructor(config, baseUrl, http) {
10
+ return createApiServiceRx(config, baseUrl, http);
11
+ }
12
+ }
@@ -54,6 +54,7 @@ export * from "./scan-timing-events-service-rx.js";
54
54
  export * from "./scan-timing-runs-service-rx.js";
55
55
  export * from "./scan-types-service-rx.js";
56
56
  export * from "./scan-visibility-types-service-rx.js";
57
+ export * from "./api-service-rx.js";
57
58
  export * from "./internal-service-rx.js";
58
59
  export * from "./threat-concepts-service-rx.js";
59
60
  export * from "./threat-frameworks-service-rx.js";
@@ -54,6 +54,7 @@ export * from "./scan-timing-events-service-rx.js";
54
54
  export * from "./scan-timing-runs-service-rx.js";
55
55
  export * from "./scan-types-service-rx.js";
56
56
  export * from "./scan-visibility-types-service-rx.js";
57
+ export * from "./api-service-rx.js";
57
58
  export * from "./internal-service-rx.js";
58
59
  export * from "./threat-concepts-service-rx.js";
59
60
  export * from "./threat-frameworks-service-rx.js";
@@ -1409,6 +1409,10 @@ export interface IQueueMonitorClient extends IEntity {
1409
1409
  * @return OK
1410
1410
  */
1411
1411
  metrics(signal?: AbortSignal): Promise<any>;
1412
+ /**
1413
+ * @return OK
1414
+ */
1415
+ workers(signal?: AbortSignal): Promise<any>;
1412
1416
  /**
1413
1417
  * @return OK
1414
1418
  */
@@ -1426,6 +1430,11 @@ export declare class QueueMonitorClient extends BaseApiClient implements IQueueM
1426
1430
  */
1427
1431
  metrics(signal?: AbortSignal): Promise<any>;
1428
1432
  protected processMetrics(response: Response): Promise<any>;
1433
+ /**
1434
+ * @return OK
1435
+ */
1436
+ workers(signal?: AbortSignal): Promise<any>;
1437
+ protected processWorkers(response: Response): Promise<any>;
1429
1438
  /**
1430
1439
  * @return OK
1431
1440
  */
@@ -3444,6 +3453,11 @@ export interface IScanDatasClient extends IEntity {
3444
3453
  * @return OK
3445
3454
  */
3446
3455
  getScanDataForAnalysisDtoByGuid(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAnalysisDtoIDataResult>;
3456
+ /**
3457
+ * @param scanGuid (optional)
3458
+ * @return OK
3459
+ */
3460
+ getScanSummary(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanSummaryDtoIDataResult>;
3447
3461
  /**
3448
3462
  * @param scanGuid (optional)
3449
3463
  * @param skip (optional)
@@ -3543,6 +3557,12 @@ export declare class ScanDatasClient extends BaseApiClient implements IScanDatas
3543
3557
  */
3544
3558
  getScanDataForAnalysisDtoByGuid(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanDataForAnalysisDtoIDataResult>;
3545
3559
  protected processGetScanDataForAnalysisDtoByGuid(response: Response): Promise<ScanDataForAnalysisDtoIDataResult>;
3560
+ /**
3561
+ * @param scanGuid (optional)
3562
+ * @return OK
3563
+ */
3564
+ getScanSummary(scanGuid?: string | undefined, signal?: AbortSignal): Promise<ScanSummaryDtoIDataResult>;
3565
+ protected processGetScanSummary(response: Response): Promise<ScanSummaryDtoIDataResult>;
3546
3566
  /**
3547
3567
  * @param scanGuid (optional)
3548
3568
  * @param skip (optional)
@@ -3768,11 +3788,11 @@ export interface IScanEngineImagesClient extends IEntity {
3768
3788
  * @param imageName (optional)
3769
3789
  * @return OK
3770
3790
  */
3771
- saveImageBySearch(imageName?: string | undefined, signal?: AbortSignal): Promise<IResultTask>;
3791
+ saveImageBySearch(imageName?: string | undefined, signal?: AbortSignal): Promise<IResult>;
3772
3792
  /**
3773
3793
  * @return OK
3774
3794
  */
3775
- saveImagesBySearch(signal?: AbortSignal): Promise<IResultTask>;
3795
+ saveImagesBySearch(signal?: AbortSignal): Promise<IResult>;
3776
3796
  /**
3777
3797
  * @param id (optional)
3778
3798
  * @param scanEngineId (optional)
@@ -3856,13 +3876,13 @@ export declare class ScanEngineImagesClient extends BaseApiClient implements ISc
3856
3876
  * @param imageName (optional)
3857
3877
  * @return OK
3858
3878
  */
3859
- saveImageBySearch(imageName?: string | undefined, signal?: AbortSignal): Promise<IResultTask>;
3860
- protected processSaveImageBySearch(response: Response): Promise<IResultTask>;
3879
+ saveImageBySearch(imageName?: string | undefined, signal?: AbortSignal): Promise<IResult>;
3880
+ protected processSaveImageBySearch(response: Response): Promise<IResult>;
3861
3881
  /**
3862
3882
  * @return OK
3863
3883
  */
3864
- saveImagesBySearch(signal?: AbortSignal): Promise<IResultTask>;
3865
- protected processSaveImagesBySearch(response: Response): Promise<IResultTask>;
3884
+ saveImagesBySearch(signal?: AbortSignal): Promise<IResult>;
3885
+ protected processSaveImagesBySearch(response: Response): Promise<IResult>;
3866
3886
  /**
3867
3887
  * @param id (optional)
3868
3888
  * @param scanEngineId (optional)
@@ -4467,6 +4487,11 @@ export interface IScanScoreResultsClient extends IEntity {
4467
4487
  * @return OK
4468
4488
  */
4469
4489
  process(body?: ProcessScanScoresRequest | undefined, signal?: AbortSignal): Promise<BooleanIDataResult>;
4490
+ /**
4491
+ * @param body (optional)
4492
+ * @return OK
4493
+ */
4494
+ processInternal(body?: ProcessScanScoresRequest | undefined, signal?: AbortSignal): Promise<BooleanIDataResult>;
4470
4495
  /**
4471
4496
  * @param body (optional)
4472
4497
  * @return OK
@@ -4526,6 +4551,12 @@ export declare class ScanScoreResultsClient extends BaseApiClient implements ISc
4526
4551
  */
4527
4552
  process(body?: ProcessScanScoresRequest | undefined, signal?: AbortSignal): Promise<BooleanIDataResult>;
4528
4553
  protected processProcess(response: Response): Promise<BooleanIDataResult>;
4554
+ /**
4555
+ * @param body (optional)
4556
+ * @return OK
4557
+ */
4558
+ processInternal(body?: ProcessScanScoresRequest | undefined, signal?: AbortSignal): Promise<BooleanIDataResult>;
4559
+ protected processProcessInternal(response: Response): Promise<BooleanIDataResult>;
4529
4560
  /**
4530
4561
  * @param body (optional)
4531
4562
  * @return OK
@@ -5252,6 +5283,11 @@ export interface IScanStaticResultsClient extends IEntity {
5252
5283
  * @return OK
5253
5284
  */
5254
5285
  process(body?: ProcessScanStaticResultRequest | undefined, signal?: AbortSignal): Promise<ScanStaticResultReportDtoIDataResult>;
5286
+ /**
5287
+ * @param body (optional)
5288
+ * @return OK
5289
+ */
5290
+ processInternal(body?: ProcessScanStaticResultRequest | undefined, signal?: AbortSignal): Promise<ScanStaticResultReportDtoIDataResult>;
5255
5291
  /**
5256
5292
  * @param guid (optional)
5257
5293
  * @return OK
@@ -5316,6 +5352,12 @@ export declare class ScanStaticResultsClient extends BaseApiClient implements IS
5316
5352
  */
5317
5353
  process(body?: ProcessScanStaticResultRequest | undefined, signal?: AbortSignal): Promise<ScanStaticResultReportDtoIDataResult>;
5318
5354
  protected processProcess(response: Response): Promise<ScanStaticResultReportDtoIDataResult>;
5355
+ /**
5356
+ * @param body (optional)
5357
+ * @return OK
5358
+ */
5359
+ processInternal(body?: ProcessScanStaticResultRequest | undefined, signal?: AbortSignal): Promise<ScanStaticResultReportDtoIDataResult>;
5360
+ protected processProcessInternal(response: Response): Promise<ScanStaticResultReportDtoIDataResult>;
5319
5361
  /**
5320
5362
  * @param guid (optional)
5321
5363
  * @return OK
@@ -6210,6 +6252,36 @@ export declare class ScanVisibilityTypesClient extends BaseApiClient implements
6210
6252
  getFiltersBase(body?: ScanVisibilityTypeForTableFilterDataTableQuery | undefined, signal?: AbortSignal): Promise<ScanVisibilityTypeForTableDtoListResultFilterIDataResult>;
6211
6253
  protected processGetFiltersBase(response: Response): Promise<ScanVisibilityTypeForTableDtoListResultFilterIDataResult>;
6212
6254
  }
6255
+ export interface IApiClient extends IEntity {
6256
+ /**
6257
+ * @param body (optional)
6258
+ * @return OK
6259
+ */
6260
+ shareLinksPost(body?: CreateShareLinkRequest | undefined, signal?: AbortSignal): Promise<any>;
6261
+ /**
6262
+ * @return OK
6263
+ */
6264
+ shareLinksGet(code: string, signal?: AbortSignal): Promise<any>;
6265
+ }
6266
+ export declare class ApiClient extends BaseApiClient implements IApiClient {
6267
+ private http;
6268
+ private baseUrl;
6269
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
6270
+ constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
6271
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
6272
+ });
6273
+ /**
6274
+ * @param body (optional)
6275
+ * @return OK
6276
+ */
6277
+ shareLinksPost(body?: CreateShareLinkRequest | undefined, signal?: AbortSignal): Promise<any>;
6278
+ protected processShareLinksPost(response: Response): Promise<any>;
6279
+ /**
6280
+ * @return OK
6281
+ */
6282
+ shareLinksGet(code: string, signal?: AbortSignal): Promise<any>;
6283
+ protected processShareLinksGet(response: Response): Promise<any>;
6284
+ }
6213
6285
  export interface IInternalClient extends IEntity {
6214
6286
  /**
6215
6287
  * @return OK
@@ -7897,6 +7969,10 @@ export interface ConstructorInfo extends IEntity {
7897
7969
  readonly isSecurityTransparent?: boolean;
7898
7970
  memberType?: MemberTypes;
7899
7971
  }
7972
+ export interface CreateShareLinkRequest extends IEntity {
7973
+ url?: string | undefined;
7974
+ ttlMinutes?: number;
7975
+ }
7900
7976
  export interface CurlTask extends IEntity {
7901
7977
  id?: number;
7902
7978
  name?: string | undefined;
@@ -8152,18 +8228,6 @@ export interface IResult extends IEntity {
8152
8228
  readonly success?: boolean;
8153
8229
  readonly message?: string | undefined;
8154
8230
  }
8155
- export interface IResultTask extends IEntity {
8156
- readonly id?: number;
8157
- exception?: AggregateException;
8158
- status?: TaskStatus;
8159
- readonly isCanceled?: boolean;
8160
- readonly isCompleted?: boolean;
8161
- readonly isCompletedSuccessfully?: boolean;
8162
- creationOptions?: TaskCreationOptions;
8163
- readonly asyncState?: any | undefined;
8164
- readonly isFaulted?: boolean;
8165
- result?: IResult;
8166
- }
8167
8231
  export interface Int32IDataResult extends IEntity {
8168
8232
  readonly success?: boolean;
8169
8233
  readonly message?: string | undefined;
@@ -9809,6 +9873,7 @@ export interface ScanDataForAlgorithmAnalysisDto extends IDto {
9809
9873
  scanData?: ScanDataForAlgorithmAnalysis[] | undefined;
9810
9874
  scanType?: ScanTypeForAlgorithmAnalysis;
9811
9875
  scanDataMeta?: ScanDataMetaForAlgorithmAnalysis;
9876
+ scanStaticDetail?: ScanStaticDetailForAlgorithmAnalysis;
9812
9877
  updateTime?: Date | undefined;
9813
9878
  status?: boolean | undefined;
9814
9879
  }
@@ -10691,9 +10756,18 @@ export interface ScanStaticDetail extends IEntity {
10691
10756
  entryPointRva?: number | undefined;
10692
10757
  imageBase?: number | undefined;
10693
10758
  numberOfSections?: number | undefined;
10759
+ format?: string | undefined;
10760
+ zipType?: string | undefined;
10761
+ entryCount?: number | undefined;
10694
10762
  updateTime?: Date | undefined;
10695
10763
  status?: boolean | undefined;
10696
10764
  }
10765
+ export interface ScanStaticDetailForAlgorithmAnalysis extends IEntity {
10766
+ riskScore?: number | undefined;
10767
+ globalEntropy?: number | undefined;
10768
+ architecture?: string | undefined;
10769
+ fileType?: string | undefined;
10770
+ }
10697
10771
  export interface ScanStaticDetailForTableDto extends IDto {
10698
10772
  id?: number;
10699
10773
  scanStaticResultId?: number;
@@ -10709,6 +10783,9 @@ export interface ScanStaticDetailForTableDto extends IDto {
10709
10783
  entryPointRva?: number | undefined;
10710
10784
  imageBase?: number | undefined;
10711
10785
  numberOfSections?: number | undefined;
10786
+ format?: string | undefined;
10787
+ zipType?: string | undefined;
10788
+ entryCount?: number | undefined;
10712
10789
  updateTime?: string | undefined;
10713
10790
  status?: boolean | undefined;
10714
10791
  }
@@ -10959,6 +11036,11 @@ export interface ScanStaticResultDetailsDto extends IDto {
10959
11036
  suspicious_tags?: string[] | undefined;
10960
11037
  matches?: string[] | undefined;
10961
11038
  image_info?: ScanStaticResultImageInfoDto;
11039
+ zip_type?: string | undefined;
11040
+ entry_count?: number | undefined;
11041
+ entries?: string[] | undefined;
11042
+ entry_point?: string | undefined;
11043
+ section_count?: number | undefined;
10962
11044
  }
10963
11045
  export interface ScanStaticResultForTableDto extends IDto {
10964
11046
  id?: number;
@@ -11120,6 +11202,34 @@ export interface ScanStaticSectionListIDataResult extends IEntity {
11120
11202
  readonly message?: string | undefined;
11121
11203
  readonly data?: ScanStaticSection[] | undefined;
11122
11204
  }
11205
+ export interface ScanSummaryDto extends IDto {
11206
+ scanGuid?: string | undefined;
11207
+ submissionName?: string | undefined;
11208
+ scanTypeName?: string | undefined;
11209
+ completedAt?: Date | undefined;
11210
+ totalEngineCount?: number;
11211
+ flaggedCount?: number;
11212
+ cleanCount?: number;
11213
+ errorCount?: number;
11214
+ overallScore?: number | undefined;
11215
+ algorithmScore?: number | undefined;
11216
+ llmScore?: number | undefined;
11217
+ staticScore?: number | undefined;
11218
+ threatIntelAvailable?: boolean;
11219
+ threatIntelSuccess?: boolean;
11220
+ threatDetectionCount?: number;
11221
+ staticAnalysisAvailable?: boolean;
11222
+ staticAnalysisSuccess?: boolean;
11223
+ md5?: string | undefined;
11224
+ sha1?: string | undefined;
11225
+ sha256?: string | undefined;
11226
+ fileSize?: number | undefined;
11227
+ }
11228
+ export interface ScanSummaryDtoIDataResult extends IEntity {
11229
+ readonly success?: boolean;
11230
+ readonly message?: string | undefined;
11231
+ data?: ScanSummaryDto;
11232
+ }
11123
11233
  export interface ScanThreatDetection extends IEntity {
11124
11234
  id?: number;
11125
11235
  scanId?: number;
@@ -5041,6 +5041,41 @@ export class QueueMonitorClient extends BaseApiClient {
5041
5041
  }
5042
5042
  return Promise.resolve(null);
5043
5043
  }
5044
+ /**
5045
+ * @return OK
5046
+ */
5047
+ workers(signal) {
5048
+ let url_ = this.baseUrl + "/api/QueueMonitor/workers";
5049
+ url_ = url_.replace(/[?&]$/, "");
5050
+ let options_ = {
5051
+ method: "GET",
5052
+ signal,
5053
+ headers: {}
5054
+ };
5055
+ return this.http.fetch(url_, options_).then((_response) => {
5056
+ return this.processWorkers(_response);
5057
+ });
5058
+ }
5059
+ processWorkers(response) {
5060
+ const status = response.status;
5061
+ let _headers = {};
5062
+ if (response.headers && response.headers.forEach) {
5063
+ response.headers.forEach((v, k) => _headers[k] = v);
5064
+ }
5065
+ ;
5066
+ if (status === 200) {
5067
+ return response.text().then((_responseText) => {
5068
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5069
+ return result200;
5070
+ });
5071
+ }
5072
+ else if (status !== 200 && status !== 204) {
5073
+ return response.text().then((_responseText) => {
5074
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5075
+ });
5076
+ }
5077
+ return Promise.resolve(null);
5078
+ }
5044
5079
  /**
5045
5080
  * @return OK
5046
5081
  */
@@ -12281,6 +12316,49 @@ export class ScanDatasClient extends BaseApiClient {
12281
12316
  }
12282
12317
  return Promise.resolve(null);
12283
12318
  }
12319
+ /**
12320
+ * @param scanGuid (optional)
12321
+ * @return OK
12322
+ */
12323
+ getScanSummary(scanGuid, signal) {
12324
+ let url_ = this.baseUrl + "/api/ScanDatas/GetScanSummary?";
12325
+ if (scanGuid === null)
12326
+ throw new globalThis.Error("The parameter 'scanGuid' cannot be null.");
12327
+ else if (scanGuid !== undefined)
12328
+ url_ += "scanGuid=" + encodeURIComponent("" + scanGuid) + "&";
12329
+ url_ = url_.replace(/[?&]$/, "");
12330
+ let options_ = {
12331
+ method: "GET",
12332
+ signal,
12333
+ headers: {
12334
+ "Accept": "application/json"
12335
+ }
12336
+ };
12337
+ return this.http.fetch(url_, options_).then((_response) => {
12338
+ return this.processGetScanSummary(_response);
12339
+ });
12340
+ }
12341
+ processGetScanSummary(response) {
12342
+ const status = response.status;
12343
+ let _headers = {};
12344
+ if (response.headers && response.headers.forEach) {
12345
+ response.headers.forEach((v, k) => _headers[k] = v);
12346
+ }
12347
+ ;
12348
+ if (status === 200) {
12349
+ return response.text().then((_responseText) => {
12350
+ let result200 = null;
12351
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12352
+ return result200;
12353
+ });
12354
+ }
12355
+ else if (status !== 200 && status !== 204) {
12356
+ return response.text().then((_responseText) => {
12357
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12358
+ });
12359
+ }
12360
+ return Promise.resolve(null);
12361
+ }
12284
12362
  /**
12285
12363
  * @param scanGuid (optional)
12286
12364
  * @param skip (optional)
@@ -15954,6 +16032,48 @@ export class ScanScoreResultsClient extends BaseApiClient {
15954
16032
  }
15955
16033
  return Promise.resolve(null);
15956
16034
  }
16035
+ /**
16036
+ * @param body (optional)
16037
+ * @return OK
16038
+ */
16039
+ processInternal(body, signal) {
16040
+ let url_ = this.baseUrl + "/api/ScanScoreResults/ProcessInternal";
16041
+ url_ = url_.replace(/[?&]$/, "");
16042
+ const content_ = JSON.stringify(body);
16043
+ let options_ = {
16044
+ body: content_,
16045
+ method: "POST",
16046
+ signal,
16047
+ headers: {
16048
+ "Content-Type": "application/json",
16049
+ "Accept": "application/json"
16050
+ }
16051
+ };
16052
+ return this.http.fetch(url_, options_).then((_response) => {
16053
+ return this.processProcessInternal(_response);
16054
+ });
16055
+ }
16056
+ processProcessInternal(response) {
16057
+ const status = response.status;
16058
+ let _headers = {};
16059
+ if (response.headers && response.headers.forEach) {
16060
+ response.headers.forEach((v, k) => _headers[k] = v);
16061
+ }
16062
+ ;
16063
+ if (status === 200) {
16064
+ return response.text().then((_responseText) => {
16065
+ let result200 = null;
16066
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16067
+ return result200;
16068
+ });
16069
+ }
16070
+ else if (status !== 200 && status !== 204) {
16071
+ return response.text().then((_responseText) => {
16072
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16073
+ });
16074
+ }
16075
+ return Promise.resolve(null);
16076
+ }
15957
16077
  /**
15958
16078
  * @param body (optional)
15959
16079
  * @return OK
@@ -18762,6 +18882,48 @@ export class ScanStaticResultsClient extends BaseApiClient {
18762
18882
  }
18763
18883
  return Promise.resolve(null);
18764
18884
  }
18885
+ /**
18886
+ * @param body (optional)
18887
+ * @return OK
18888
+ */
18889
+ processInternal(body, signal) {
18890
+ let url_ = this.baseUrl + "/api/ScanStaticResults/ProcessInternal";
18891
+ url_ = url_.replace(/[?&]$/, "");
18892
+ const content_ = JSON.stringify(body);
18893
+ let options_ = {
18894
+ body: content_,
18895
+ method: "POST",
18896
+ signal,
18897
+ headers: {
18898
+ "Content-Type": "application/json",
18899
+ "Accept": "application/json"
18900
+ }
18901
+ };
18902
+ return this.http.fetch(url_, options_).then((_response) => {
18903
+ return this.processProcessInternal(_response);
18904
+ });
18905
+ }
18906
+ processProcessInternal(response) {
18907
+ const status = response.status;
18908
+ let _headers = {};
18909
+ if (response.headers && response.headers.forEach) {
18910
+ response.headers.forEach((v, k) => _headers[k] = v);
18911
+ }
18912
+ ;
18913
+ if (status === 200) {
18914
+ return response.text().then((_responseText) => {
18915
+ let result200 = null;
18916
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18917
+ return result200;
18918
+ });
18919
+ }
18920
+ else if (status !== 200 && status !== 204) {
18921
+ return response.text().then((_responseText) => {
18922
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18923
+ });
18924
+ }
18925
+ return Promise.resolve(null);
18926
+ }
18765
18927
  /**
18766
18928
  * @param guid (optional)
18767
18929
  * @return OK
@@ -22177,6 +22339,92 @@ export class ScanVisibilityTypesClient extends BaseApiClient {
22177
22339
  return Promise.resolve(null);
22178
22340
  }
22179
22341
  }
22342
+ export class ApiClient extends BaseApiClient {
22343
+ constructor(configuration, baseUrl, http) {
22344
+ super(configuration);
22345
+ this.jsonParseReviver = undefined;
22346
+ this.http = http ? http : { fetch: buildAuthFetch(configuration) };
22347
+ this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
22348
+ }
22349
+ /**
22350
+ * @param body (optional)
22351
+ * @return OK
22352
+ */
22353
+ shareLinksPost(body, signal) {
22354
+ let url_ = this.baseUrl + "/api/share-links";
22355
+ url_ = url_.replace(/[?&]$/, "");
22356
+ const content_ = JSON.stringify(body);
22357
+ let options_ = {
22358
+ body: content_,
22359
+ method: "POST",
22360
+ signal,
22361
+ headers: {
22362
+ "Content-Type": "application/json",
22363
+ }
22364
+ };
22365
+ return this.http.fetch(url_, options_).then((_response) => {
22366
+ return this.processShareLinksPost(_response);
22367
+ });
22368
+ }
22369
+ processShareLinksPost(response) {
22370
+ const status = response.status;
22371
+ let _headers = {};
22372
+ if (response.headers && response.headers.forEach) {
22373
+ response.headers.forEach((v, k) => _headers[k] = v);
22374
+ }
22375
+ ;
22376
+ if (status === 200) {
22377
+ return response.text().then((_responseText) => {
22378
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22379
+ return result200;
22380
+ });
22381
+ }
22382
+ else if (status !== 200 && status !== 204) {
22383
+ return response.text().then((_responseText) => {
22384
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22385
+ });
22386
+ }
22387
+ return Promise.resolve(null);
22388
+ }
22389
+ /**
22390
+ * @return OK
22391
+ */
22392
+ shareLinksGet(code, signal) {
22393
+ let url_ = this.baseUrl + "/api/share-links/{code}";
22394
+ if (code === undefined || code === null)
22395
+ throw new globalThis.Error("The parameter 'code' must be defined.");
22396
+ url_ = url_.replace("{code}", encodeURIComponent("" + code));
22397
+ url_ = url_.replace(/[?&]$/, "");
22398
+ let options_ = {
22399
+ method: "GET",
22400
+ signal,
22401
+ headers: {}
22402
+ };
22403
+ return this.http.fetch(url_, options_).then((_response) => {
22404
+ return this.processShareLinksGet(_response);
22405
+ });
22406
+ }
22407
+ processShareLinksGet(response) {
22408
+ const status = response.status;
22409
+ let _headers = {};
22410
+ if (response.headers && response.headers.forEach) {
22411
+ response.headers.forEach((v, k) => _headers[k] = v);
22412
+ }
22413
+ ;
22414
+ if (status === 200) {
22415
+ return response.text().then((_responseText) => {
22416
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22417
+ return result200;
22418
+ });
22419
+ }
22420
+ else if (status !== 200 && status !== 204) {
22421
+ return response.text().then((_responseText) => {
22422
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22423
+ });
22424
+ }
22425
+ return Promise.resolve(null);
22426
+ }
22427
+ }
22180
22428
  export class InternalClient extends BaseApiClient {
22181
22429
  constructor(configuration, baseUrl, http) {
22182
22430
  super(configuration);
@@ -0,0 +1,4 @@
1
+ import type { CreateShareLinkRequest as __CreateShareLinkRequest } from "../index.js";
2
+ export declare const CreateShareLinkRequest: __CreateShareLinkRequest;
3
+ export type CreateShareLinkRequest = __CreateShareLinkRequest;
4
+ export type createShareLinkRequest = __CreateShareLinkRequest;
@@ -0,0 +1 @@
1
+ export const CreateShareLinkRequest = {};
@@ -30,6 +30,7 @@ export * from "./base-user-device-list-i-data-result.js";
30
30
  export * from "./boolean-i-data-result.js";
31
31
  export * from "./calling-conventions.js";
32
32
  export * from "./constructor-info.js";
33
+ export * from "./create-share-link-request.js";
33
34
  export * from "./curl-task.js";
34
35
  export * from "./curl-task-for-table-dto.js";
35
36
  export * from "./curl-task-for-table-dto-list-i-data-result.js";
@@ -62,7 +63,6 @@ export * from "./file-stream-i-data-result.js";
62
63
  export * from "./generic-parameter-attributes.js";
63
64
  export * from "./i-custom-attribute-provider.js";
64
65
  export * from "./i-result.js";
65
- export * from "./i-result-task.js";
66
66
  export * from "./int32-i-data-result.js";
67
67
  export * from "./int-ptr.js";
68
68
  export * from "./interaction-tracker.js";
@@ -424,6 +424,7 @@ export * from "./scan-score-type-for-table-filter-data-table-query.js";
424
424
  export * from "./scan-score-type-i-data-result.js";
425
425
  export * from "./scan-score-type-list-i-data-result.js";
426
426
  export * from "./scan-static-detail.js";
427
+ export * from "./scan-static-detail-for-algorithm-analysis.js";
427
428
  export * from "./scan-static-detail-for-table-dto.js";
428
429
  export * from "./scan-static-detail-for-table-dto-list-i-data-result.js";
429
430
  export * from "./scan-static-detail-for-table-dto-list-result-filter.js";
@@ -486,6 +487,8 @@ export * from "./scan-static-section-for-table-filter.js";
486
487
  export * from "./scan-static-section-for-table-filter-data-table-query.js";
487
488
  export * from "./scan-static-section-i-data-result.js";
488
489
  export * from "./scan-static-section-list-i-data-result.js";
490
+ export * from "./scan-summary-dto.js";
491
+ export * from "./scan-summary-dto-i-data-result.js";
489
492
  export * from "./scan-threat-detection.js";
490
493
  export * from "./scan-threat-detection-for-table-dto.js";
491
494
  export * from "./scan-threat-detection-for-table-dto-list-i-data-result.js";
@@ -30,6 +30,7 @@ export * from "./base-user-device-list-i-data-result.js";
30
30
  export * from "./boolean-i-data-result.js";
31
31
  export * from "./calling-conventions.js";
32
32
  export * from "./constructor-info.js";
33
+ export * from "./create-share-link-request.js";
33
34
  export * from "./curl-task.js";
34
35
  export * from "./curl-task-for-table-dto.js";
35
36
  export * from "./curl-task-for-table-dto-list-i-data-result.js";
@@ -62,7 +63,6 @@ export * from "./file-stream-i-data-result.js";
62
63
  export * from "./generic-parameter-attributes.js";
63
64
  export * from "./i-custom-attribute-provider.js";
64
65
  export * from "./i-result.js";
65
- export * from "./i-result-task.js";
66
66
  export * from "./int32-i-data-result.js";
67
67
  export * from "./int-ptr.js";
68
68
  export * from "./interaction-tracker.js";
@@ -424,6 +424,7 @@ export * from "./scan-score-type-for-table-filter-data-table-query.js";
424
424
  export * from "./scan-score-type-i-data-result.js";
425
425
  export * from "./scan-score-type-list-i-data-result.js";
426
426
  export * from "./scan-static-detail.js";
427
+ export * from "./scan-static-detail-for-algorithm-analysis.js";
427
428
  export * from "./scan-static-detail-for-table-dto.js";
428
429
  export * from "./scan-static-detail-for-table-dto-list-i-data-result.js";
429
430
  export * from "./scan-static-detail-for-table-dto-list-result-filter.js";
@@ -486,6 +487,8 @@ export * from "./scan-static-section-for-table-filter.js";
486
487
  export * from "./scan-static-section-for-table-filter-data-table-query.js";
487
488
  export * from "./scan-static-section-i-data-result.js";
488
489
  export * from "./scan-static-section-list-i-data-result.js";
490
+ export * from "./scan-summary-dto.js";
491
+ export * from "./scan-summary-dto-i-data-result.js";
489
492
  export * from "./scan-threat-detection.js";
490
493
  export * from "./scan-threat-detection-for-table-dto.js";
491
494
  export * from "./scan-threat-detection-for-table-dto-list-i-data-result.js";
@@ -0,0 +1,4 @@
1
+ import type { ScanStaticDetailForAlgorithmAnalysis as __ScanStaticDetailForAlgorithmAnalysis } from "../index.js";
2
+ export declare const ScanStaticDetailForAlgorithmAnalysis: __ScanStaticDetailForAlgorithmAnalysis;
3
+ export type ScanStaticDetailForAlgorithmAnalysis = __ScanStaticDetailForAlgorithmAnalysis;
4
+ export type scanStaticDetailForAlgorithmAnalysis = __ScanStaticDetailForAlgorithmAnalysis;
@@ -0,0 +1 @@
1
+ export const ScanStaticDetailForAlgorithmAnalysis = {};
@@ -0,0 +1,4 @@
1
+ import type { ScanSummaryDtoIDataResult as __ScanSummaryDtoIDataResult } from "../index.js";
2
+ export declare const ScanSummaryDtoIDataResult: __ScanSummaryDtoIDataResult;
3
+ export type ScanSummaryDtoIDataResult = __ScanSummaryDtoIDataResult;
4
+ export type scanSummaryDtoIDataResult = __ScanSummaryDtoIDataResult;
@@ -0,0 +1 @@
1
+ export const ScanSummaryDtoIDataResult = {};
@@ -0,0 +1,4 @@
1
+ import type { ScanSummaryDto as __ScanSummaryDto } from "../index.js";
2
+ export declare const ScanSummaryDto: __ScanSummaryDto;
3
+ export type ScanSummaryDto = __ScanSummaryDto;
4
+ export type scanSummaryDto = __ScanSummaryDto;
@@ -0,0 +1 @@
1
+ export const ScanSummaryDto = {};
package/dist/rx.d.ts CHANGED
@@ -183,6 +183,9 @@ export declare function createAllClients(cfg: ApiClientConfig, baseUrl?: string,
183
183
  ScanVisibilityTypesClient: ClientCtors.ScanVisibilityTypesClient;
184
184
  ScanVisibilityTypesService: ClientCtors.ScanVisibilityTypesClient;
185
185
  scanVisibilityTypesService: ClientCtors.ScanVisibilityTypesClient;
186
+ ApiClient: ClientCtors.ApiClient;
187
+ ApiService: ClientCtors.ApiClient;
188
+ apiService: ClientCtors.ApiClient;
186
189
  InternalClient: ClientCtors.InternalClient;
187
190
  InternalService: ClientCtors.InternalClient;
188
191
  internalService: ClientCtors.InternalClient;
@@ -407,6 +410,9 @@ export declare function createAllRxClients(cfg: ApiClientConfig, baseUrl?: strin
407
410
  ScanVisibilityTypesClient: Rxified<ClientCtors.ScanVisibilityTypesClient>;
408
411
  ScanVisibilityTypesService: Rxified<ClientCtors.ScanVisibilityTypesClient>;
409
412
  scanVisibilityTypesService: Rxified<ClientCtors.ScanVisibilityTypesClient>;
413
+ ApiClient: Rxified<ClientCtors.ApiClient>;
414
+ ApiService: Rxified<ClientCtors.ApiClient>;
415
+ apiService: Rxified<ClientCtors.ApiClient>;
410
416
  InternalClient: Rxified<ClientCtors.InternalClient>;
411
417
  InternalService: Rxified<ClientCtors.InternalClient>;
412
418
  internalService: Rxified<ClientCtors.InternalClient>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virusis/api-client",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",