@detectant-api/sdk 0.0.4 → 0.0.6

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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -1
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/api/resources/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/index.js +1 -0
  6. package/dist/cjs/api/resources/scans/client/Client.js +5 -1
  7. package/dist/cjs/api/resources/scans/client/requests/ListScansRequest.d.ts +9 -0
  8. package/dist/cjs/api/resources/scans/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/scans/index.js +1 -0
  10. package/dist/cjs/api/resources/scans/types/ListScansRequestFailure.d.ts +7 -0
  11. package/dist/cjs/api/resources/scans/types/ListScansRequestFailure.js +10 -0
  12. package/dist/cjs/api/resources/scans/types/ListScansRequestSourceType.d.ts +5 -0
  13. package/dist/cjs/api/resources/scans/types/ListScansRequestSourceType.js +8 -0
  14. package/dist/cjs/api/resources/scans/types/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/scans/types/index.js +18 -0
  16. package/dist/cjs/api/types/Scan.d.ts +2 -0
  17. package/dist/cjs/api/types/ScanSource.d.ts +14 -0
  18. package/dist/cjs/api/types/ScanSource.js +11 -0
  19. package/dist/cjs/api/types/ScanTimings.d.ts +4 -0
  20. package/dist/cjs/api/types/ScanTimings.js +3 -0
  21. package/dist/cjs/api/types/TypeAnalysisReason.d.ts +2 -0
  22. package/dist/cjs/api/types/TypeAnalysisReason.js +2 -0
  23. package/dist/cjs/api/types/index.d.ts +2 -0
  24. package/dist/cjs/api/types/index.js +2 -0
  25. package/dist/cjs/version.d.ts +1 -1
  26. package/dist/cjs/version.js +1 -1
  27. package/dist/esm/BaseClient.mjs +2 -2
  28. package/dist/esm/api/resources/index.d.mts +1 -0
  29. package/dist/esm/api/resources/index.mjs +1 -0
  30. package/dist/esm/api/resources/scans/client/Client.mjs +5 -1
  31. package/dist/esm/api/resources/scans/client/requests/ListScansRequest.d.mts +9 -0
  32. package/dist/esm/api/resources/scans/index.d.mts +1 -0
  33. package/dist/esm/api/resources/scans/index.mjs +1 -0
  34. package/dist/esm/api/resources/scans/types/ListScansRequestFailure.d.mts +7 -0
  35. package/dist/esm/api/resources/scans/types/ListScansRequestFailure.mjs +7 -0
  36. package/dist/esm/api/resources/scans/types/ListScansRequestSourceType.d.mts +5 -0
  37. package/dist/esm/api/resources/scans/types/ListScansRequestSourceType.mjs +5 -0
  38. package/dist/esm/api/resources/scans/types/index.d.mts +2 -0
  39. package/dist/esm/api/resources/scans/types/index.mjs +2 -0
  40. package/dist/esm/api/types/Scan.d.mts +2 -0
  41. package/dist/esm/api/types/ScanSource.d.mts +14 -0
  42. package/dist/esm/api/types/ScanSource.mjs +8 -0
  43. package/dist/esm/api/types/ScanTimings.d.mts +4 -0
  44. package/dist/esm/api/types/ScanTimings.mjs +2 -0
  45. package/dist/esm/api/types/TypeAnalysisReason.d.mts +2 -0
  46. package/dist/esm/api/types/TypeAnalysisReason.mjs +2 -0
  47. package/dist/esm/api/types/index.d.mts +2 -0
  48. package/dist/esm/api/types/index.mjs +2 -0
  49. package/dist/esm/version.d.mts +1 -1
  50. package/dist/esm/version.mjs +1 -1
  51. package/package.json +2 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Detectant.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  <p align="center">
2
- <img src="../../app/dashboard/public/images/detectant-github-banner.png" alt="Detectant" width="100%">
2
+ <img src="https://www.detectant.com/images/detectant-github-banner.png" alt="Detectant" width="100%">
3
3
  </p>
4
4
 
5
5
  # Detectant TypeScript SDK
6
6
 
7
+ [Detectant is a malware scanning API with support for TypeScript](https://www.detectant.com)
8
+
7
9
  Scan files for malware from Node.js and TypeScript.
8
10
 
9
11
  ## Install
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@detectant-api/sdk",
46
- "X-Fern-SDK-Version": "0.0.4",
47
- "User-Agent": "@detectant-api/sdk/0.0.4",
46
+ "X-Fern-SDK-Version": "0.0.6",
47
+ "User-Agent": "@detectant-api/sdk/0.0.6",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,3 +1,4 @@
1
1
  export * as health from "./health/index.js";
2
2
  export * from "./scans/client/requests/index.js";
3
3
  export * as scans from "./scans/index.js";
4
+ export * from "./scans/types/index.js";
@@ -40,3 +40,4 @@ exports.scans = exports.health = void 0;
40
40
  exports.health = __importStar(require("./health/index.js"));
41
41
  __exportStar(require("./scans/client/requests/index.js"), exports);
42
42
  exports.scans = __importStar(require("./scans/index.js"));
43
+ __exportStar(require("./scans/types/index.js"), exports);
@@ -80,11 +80,15 @@ class ScansClient {
80
80
  __listScans() {
81
81
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
82
82
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
83
- const { limit, cursor, verdict, filename, engine_signature: engineSignature, detection_rule: detectionRule, } = request;
83
+ const { limit, cursor, verdict, scan_id: scanId, source_type: sourceType, storage_integration_id: storageIntegrationId, failure, filename, engine_signature: engineSignature, detection_rule: detectionRule, } = request;
84
84
  const _queryParams = {
85
85
  limit,
86
86
  cursor,
87
87
  verdict,
88
+ scan_id: scanId,
89
+ source_type: sourceType != null ? sourceType : undefined,
90
+ storage_integration_id: storageIntegrationId,
91
+ failure: failure != null ? failure : undefined,
88
92
  filename,
89
93
  engine_signature: engineSignature,
90
94
  detection_rule: detectionRule,
@@ -1,3 +1,4 @@
1
+ import type * as DetectantApi from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {}
@@ -9,6 +10,14 @@ export interface ListScansRequest {
9
10
  cursor?: string;
10
11
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored verdict; `%` and `_` act as wildcards. */
11
12
  verdict?: string;
13
+ /** Case-insensitive fragment matched against the scan identifier. */
14
+ scan_id?: string;
15
+ /** Return direct API scans or scans submitted by an S3 integration. */
16
+ source_type?: DetectantApi.ListScansRequestSourceType;
17
+ /** Return scans submitted by this S3 integration. */
18
+ storage_integration_id?: string;
19
+ /** Return scans by failure presence or customer-facing failure code. */
20
+ failure?: DetectantApi.ListScansRequestFailure;
12
21
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored filename; `%` and `_` act as wildcards. */
13
22
  filename?: string;
14
23
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored engine signature; `%` and `_` act as wildcards. */
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,7 @@
1
+ export declare const ListScansRequestFailure: {
2
+ readonly Any: "any";
3
+ readonly None: "none";
4
+ readonly ScannerUnavailable: "SCANNER_UNAVAILABLE";
5
+ readonly ContentExpansionLimitExceeded: "CONTENT_EXPANSION_LIMIT_EXCEEDED";
6
+ };
7
+ export type ListScansRequestFailure = (typeof ListScansRequestFailure)[keyof typeof ListScansRequestFailure];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListScansRequestFailure = void 0;
5
+ exports.ListScansRequestFailure = {
6
+ Any: "any",
7
+ None: "none",
8
+ ScannerUnavailable: "SCANNER_UNAVAILABLE",
9
+ ContentExpansionLimitExceeded: "CONTENT_EXPANSION_LIMIT_EXCEEDED",
10
+ };
@@ -0,0 +1,5 @@
1
+ export declare const ListScansRequestSourceType: {
2
+ readonly Api: "api";
3
+ readonly S3: "s3";
4
+ };
5
+ export type ListScansRequestSourceType = (typeof ListScansRequestSourceType)[keyof typeof ListScansRequestSourceType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ListScansRequestSourceType = void 0;
5
+ exports.ListScansRequestSourceType = {
6
+ Api: "api",
7
+ S3: "s3",
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./ListScansRequestFailure.js";
2
+ export * from "./ListScansRequestSourceType.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ListScansRequestFailure.js"), exports);
18
+ __exportStar(require("./ListScansRequestSourceType.js"), exports);
@@ -10,11 +10,13 @@ export interface Scan {
10
10
  sha256: string;
11
11
  size_bytes: number;
12
12
  duration_ms: number;
13
+ timings: DetectantApi.ScanTimings;
13
14
  /** Failure information, or `null` when the scan completed. */
14
15
  failure: DetectantApi.ScanFailure | null;
15
16
  /** Detection names reported for the file. Empty when no threats were detected. */
16
17
  detections: string[];
17
18
  type_analysis: DetectantApi.TypeAnalysis;
19
+ source: DetectantApi.ScanSource;
18
20
  }
19
21
  export declare namespace Scan {
20
22
  const Status: {
@@ -0,0 +1,14 @@
1
+ export interface ScanSource {
2
+ type: ScanSource.Type;
3
+ /** S3 integration identifier, or `null` for direct API scans. */
4
+ integration_id: string | null;
5
+ /** S3 integration name, or `null` for direct API scans. */
6
+ integration_name: string | null;
7
+ }
8
+ export declare namespace ScanSource {
9
+ const Type: {
10
+ readonly Api: "api";
11
+ readonly S3: "s3";
12
+ };
13
+ type Type = (typeof Type)[keyof typeof Type];
14
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ScanSource = void 0;
5
+ var ScanSource;
6
+ (function (ScanSource) {
7
+ ScanSource.Type = {
8
+ Api: "api",
9
+ S3: "s3",
10
+ };
11
+ })(ScanSource || (exports.ScanSource = ScanSource = {}));
@@ -0,0 +1,4 @@
1
+ export interface ScanTimings {
2
+ file_type_ms: number;
3
+ malware_scan_ms: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,8 @@ export declare namespace TypeAnalysisReason {
7
7
  const Code: {
8
8
  readonly MalformedFile: "malformed_file";
9
9
  readonly EncryptedArchive: "encrypted_archive";
10
+ readonly UnsupportedArchive: "unsupported_archive";
11
+ readonly ContentExpansionLimitExceeded: "content_expansion_limit_exceeded";
10
12
  readonly FileTypeMismatch: "file_type_mismatch";
11
13
  };
12
14
  type Code = (typeof Code)[keyof typeof Code];
@@ -7,6 +7,8 @@ var TypeAnalysisReason;
7
7
  TypeAnalysisReason.Code = {
8
8
  MalformedFile: "malformed_file",
9
9
  EncryptedArchive: "encrypted_archive",
10
+ UnsupportedArchive: "unsupported_archive",
11
+ ContentExpansionLimitExceeded: "content_expansion_limit_exceeded",
10
12
  FileTypeMismatch: "file_type_mismatch",
11
13
  };
12
14
  })(TypeAnalysisReason || (exports.TypeAnalysisReason = TypeAnalysisReason = {}));
@@ -6,6 +6,8 @@ export * from "./ScanBatchResponse.js";
6
6
  export * from "./ScanBatchResult.js";
7
7
  export * from "./ScanFailure.js";
8
8
  export * from "./ScanList.js";
9
+ export * from "./ScanSource.js";
10
+ export * from "./ScanTimings.js";
9
11
  export * from "./TypeAnalysis.js";
10
12
  export * from "./TypeAnalysisReason.js";
11
13
  export * from "./TypeDeclaration.js";
@@ -22,6 +22,8 @@ __exportStar(require("./ScanBatchResponse.js"), exports);
22
22
  __exportStar(require("./ScanBatchResult.js"), exports);
23
23
  __exportStar(require("./ScanFailure.js"), exports);
24
24
  __exportStar(require("./ScanList.js"), exports);
25
+ __exportStar(require("./ScanSource.js"), exports);
26
+ __exportStar(require("./ScanTimings.js"), exports);
25
27
  __exportStar(require("./TypeAnalysis.js"), exports);
26
28
  __exportStar(require("./TypeAnalysisReason.js"), exports);
27
29
  __exportStar(require("./TypeDeclaration.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.4";
1
+ export declare const SDK_VERSION = "0.0.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.4";
4
+ exports.SDK_VERSION = "0.0.6";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@detectant-api/sdk",
9
- "X-Fern-SDK-Version": "0.0.4",
10
- "User-Agent": "@detectant-api/sdk/0.0.4",
9
+ "X-Fern-SDK-Version": "0.0.6",
10
+ "User-Agent": "@detectant-api/sdk/0.0.6",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,3 +1,4 @@
1
1
  export * as health from "./health/index.mjs";
2
2
  export * from "./scans/client/requests/index.mjs";
3
3
  export * as scans from "./scans/index.mjs";
4
+ export * from "./scans/types/index.mjs";
@@ -1,3 +1,4 @@
1
1
  export * as health from "./health/index.mjs";
2
2
  export * from "./scans/client/requests/index.mjs";
3
3
  export * as scans from "./scans/index.mjs";
4
+ export * from "./scans/types/index.mjs";
@@ -44,11 +44,15 @@ export class ScansClient {
44
44
  __listScans() {
45
45
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
46
46
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
47
- const { limit, cursor, verdict, filename, engine_signature: engineSignature, detection_rule: detectionRule, } = request;
47
+ const { limit, cursor, verdict, scan_id: scanId, source_type: sourceType, storage_integration_id: storageIntegrationId, failure, filename, engine_signature: engineSignature, detection_rule: detectionRule, } = request;
48
48
  const _queryParams = {
49
49
  limit,
50
50
  cursor,
51
51
  verdict,
52
+ scan_id: scanId,
53
+ source_type: sourceType != null ? sourceType : undefined,
54
+ storage_integration_id: storageIntegrationId,
55
+ failure: failure != null ? failure : undefined,
52
56
  filename,
53
57
  engine_signature: engineSignature,
54
58
  detection_rule: detectionRule,
@@ -1,3 +1,4 @@
1
+ import type * as DetectantApi from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {}
@@ -9,6 +10,14 @@ export interface ListScansRequest {
9
10
  cursor?: string;
10
11
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored verdict; `%` and `_` act as wildcards. */
11
12
  verdict?: string;
13
+ /** Case-insensitive fragment matched against the scan identifier. */
14
+ scan_id?: string;
15
+ /** Return direct API scans or scans submitted by an S3 integration. */
16
+ source_type?: DetectantApi.ListScansRequestSourceType;
17
+ /** Return scans submitted by this S3 integration. */
18
+ storage_integration_id?: string;
19
+ /** Return scans by failure presence or customer-facing failure code. */
20
+ failure?: DetectantApi.ListScansRequestFailure;
12
21
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored filename; `%` and `_` act as wildcards. */
13
22
  filename?: string;
14
23
  /** Case-sensitive PostgreSQL `LIKE` fragment matched against the stored engine signature; `%` and `_` act as wildcards. */
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,7 @@
1
+ export declare const ListScansRequestFailure: {
2
+ readonly Any: "any";
3
+ readonly None: "none";
4
+ readonly ScannerUnavailable: "SCANNER_UNAVAILABLE";
5
+ readonly ContentExpansionLimitExceeded: "CONTENT_EXPANSION_LIMIT_EXCEEDED";
6
+ };
7
+ export type ListScansRequestFailure = (typeof ListScansRequestFailure)[keyof typeof ListScansRequestFailure];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ListScansRequestFailure = {
3
+ Any: "any",
4
+ None: "none",
5
+ ScannerUnavailable: "SCANNER_UNAVAILABLE",
6
+ ContentExpansionLimitExceeded: "CONTENT_EXPANSION_LIMIT_EXCEEDED",
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare const ListScansRequestSourceType: {
2
+ readonly Api: "api";
3
+ readonly S3: "s3";
4
+ };
5
+ export type ListScansRequestSourceType = (typeof ListScansRequestSourceType)[keyof typeof ListScansRequestSourceType];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ListScansRequestSourceType = {
3
+ Api: "api",
4
+ S3: "s3",
5
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./ListScansRequestFailure.mjs";
2
+ export * from "./ListScansRequestSourceType.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./ListScansRequestFailure.mjs";
2
+ export * from "./ListScansRequestSourceType.mjs";
@@ -10,11 +10,13 @@ export interface Scan {
10
10
  sha256: string;
11
11
  size_bytes: number;
12
12
  duration_ms: number;
13
+ timings: DetectantApi.ScanTimings;
13
14
  /** Failure information, or `null` when the scan completed. */
14
15
  failure: DetectantApi.ScanFailure | null;
15
16
  /** Detection names reported for the file. Empty when no threats were detected. */
16
17
  detections: string[];
17
18
  type_analysis: DetectantApi.TypeAnalysis;
19
+ source: DetectantApi.ScanSource;
18
20
  }
19
21
  export declare namespace Scan {
20
22
  const Status: {
@@ -0,0 +1,14 @@
1
+ export interface ScanSource {
2
+ type: ScanSource.Type;
3
+ /** S3 integration identifier, or `null` for direct API scans. */
4
+ integration_id: string | null;
5
+ /** S3 integration name, or `null` for direct API scans. */
6
+ integration_name: string | null;
7
+ }
8
+ export declare namespace ScanSource {
9
+ const Type: {
10
+ readonly Api: "api";
11
+ readonly S3: "s3";
12
+ };
13
+ type Type = (typeof Type)[keyof typeof Type];
14
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var ScanSource;
3
+ (function (ScanSource) {
4
+ ScanSource.Type = {
5
+ Api: "api",
6
+ S3: "s3",
7
+ };
8
+ })(ScanSource || (ScanSource = {}));
@@ -0,0 +1,4 @@
1
+ export interface ScanTimings {
2
+ file_type_ms: number;
3
+ malware_scan_ms: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,6 +7,8 @@ export declare namespace TypeAnalysisReason {
7
7
  const Code: {
8
8
  readonly MalformedFile: "malformed_file";
9
9
  readonly EncryptedArchive: "encrypted_archive";
10
+ readonly UnsupportedArchive: "unsupported_archive";
11
+ readonly ContentExpansionLimitExceeded: "content_expansion_limit_exceeded";
10
12
  readonly FileTypeMismatch: "file_type_mismatch";
11
13
  };
12
14
  type Code = (typeof Code)[keyof typeof Code];
@@ -4,6 +4,8 @@ export var TypeAnalysisReason;
4
4
  TypeAnalysisReason.Code = {
5
5
  MalformedFile: "malformed_file",
6
6
  EncryptedArchive: "encrypted_archive",
7
+ UnsupportedArchive: "unsupported_archive",
8
+ ContentExpansionLimitExceeded: "content_expansion_limit_exceeded",
7
9
  FileTypeMismatch: "file_type_mismatch",
8
10
  };
9
11
  })(TypeAnalysisReason || (TypeAnalysisReason = {}));
@@ -6,6 +6,8 @@ export * from "./ScanBatchResponse.mjs";
6
6
  export * from "./ScanBatchResult.mjs";
7
7
  export * from "./ScanFailure.mjs";
8
8
  export * from "./ScanList.mjs";
9
+ export * from "./ScanSource.mjs";
10
+ export * from "./ScanTimings.mjs";
9
11
  export * from "./TypeAnalysis.mjs";
10
12
  export * from "./TypeAnalysisReason.mjs";
11
13
  export * from "./TypeDeclaration.mjs";
@@ -6,6 +6,8 @@ export * from "./ScanBatchResponse.mjs";
6
6
  export * from "./ScanBatchResult.mjs";
7
7
  export * from "./ScanFailure.mjs";
8
8
  export * from "./ScanList.mjs";
9
+ export * from "./ScanSource.mjs";
10
+ export * from "./ScanTimings.mjs";
9
11
  export * from "./TypeAnalysis.mjs";
10
12
  export * from "./TypeAnalysisReason.mjs";
11
13
  export * from "./TypeDeclaration.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.4";
1
+ export declare const SDK_VERSION = "0.0.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.4";
1
+ export const SDK_VERSION = "0.0.6";
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@detectant-api/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Detectant/typescript-sdk.git"
8
8
  },
9
+ "license": "MIT",
9
10
  "type": "commonjs",
10
11
  "main": "./dist/cjs/index.js",
11
12
  "module": "./dist/esm/index.mjs",