@socketsecurity/sdk 3.4.1 → 4.0.0

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,46 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [4.0.0](https://github.com/SocketDev/socket-sdk-js/releases/tag/v4.0.0) - 2026-04-06
8
+
9
+ ### Breaking Changes
10
+
11
+ - **HTTP client refactored**: All HTTP methods (`createGetRequest`, `createDeleteRequest`, `createRequestWithJson`, `createUploadRequest`) now return `HttpResponse` from `@socketsecurity/lib/http-request` instead of Node.js `IncomingMessage`
12
+ - **`ResponseError.response`**: Changed from `IncomingMessage` to `HttpResponse` — access status via `.status`/`.statusText` instead of `.statusCode`/`.statusMessage`
13
+ - **Unified HTTP transport**: File uploads now use `httpRequest()` from `@socketsecurity/lib` — eliminated the dual `node:http`/`node:https` + `getResponse()` stack
14
+ - **Trimmed public API surface**: Removed internal helpers from the main entry point:
15
+ - HTTP functions: `createDeleteRequest`, `createGetRequest`, `createRequestWithJson`, `getErrorResponseBody`, `getResponseJson`, `isResponseOk`, `reshapeArtifactForPublicPolicy`
16
+ - File upload functions: `createRequestBodyForFilepaths`, `createRequestBodyForJson`, `createUploadRequest`
17
+ - Utilities: `calculateWordSetSimilarity`, `filterRedundantCause`, `normalizeBaseUrl`, `promiseWithResolvers`, `queryToSearchParams`, `resolveAbsPaths`, `resolveBasePath`, `shouldOmitReason`
18
+ - Constants: `DEFAULT_USER_AGENT`, `httpAgentNames`, `publicPolicy`
19
+ - **Removed exports**: `getHttpModule` and `getResponse` are fully removed (not just from index)
20
+ - **Removed `PromiseQueue`**: The `PromiseQueue` class has been removed entirely
21
+ - **Removed `getSupportedScanFiles()`**: Deprecated since 2023-01-15 — use `getSupportedFiles()` instead
22
+ - **Removed `http2-wrapper` type dependency**: `Agent` type now uses `ClientHttp2Session` from native `node:http2`
23
+
24
+ ### Changed
25
+
26
+ - Migrated HTTP internals to `@socketsecurity/lib/http-request` (`httpRequest`), reducing code duplication and consolidating response handling
27
+ - Retry logic improved: all 4xx client errors now bail immediately (previously only 401/403)
28
+ - New audit log action types: `CreateFirewallCustomRegistry`, `CreateFirewallDeploymentConfig`, `DeleteFirewallCustomRegistry`, `DeleteFirewallDeploymentConfig`, `UpdateFirewallCustomRegistry`, `UpdateFirewallDeploymentConfig`
29
+
30
+ ## [3.5.0](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.5.0) - 2026-04-03
31
+
32
+ ### Added
33
+
34
+ - **checkMalware**: New API method for normalized malware detection across public and org tokens
35
+ - Public tokens use the firewall API with client-side `publicPolicy` filtering
36
+ - Org tokens use the batch PURL API with full server-assigned org policy
37
+ - Both paths return the same normalized `MalwareCheckResult` shape
38
+ - New exported types: `MalwareCheckAlert`, `MalwareCheckPackage`, `MalwareCheckResult`, `MalwareCheckScore`
39
+ - New audit log action types: `CreateTicket`, `DisconnectJiraIntegration`, `JiraIntegrationConnected`
40
+ - New `alert-resolution` permission scope (list, create, read, delete)
41
+ - New `workspace` parameter for `createOrgFullScan` package entries
42
+ - New `SocketSBOMScore` schema for supply chain risk score breakdowns with formulas and components
43
+ - New `skillPreExecution` alert type and policy action
44
+ - Full scan `include_scores` and `include_scores_details` query parameters with `scores` ndjson event
45
+ - Batch PURL `timeoutSec` parameter for scan result timeout control
46
+
7
47
  ## [3.4.1](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.4.1) - 2026-03-12
8
48
 
9
49
  ### Changed
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Socket Badge](https://socket.dev/api/badge/npm/package/@socketsecurity/sdk)](https://socket.dev/npm/package/@socketsecurity/sdk)
4
4
  [![CI](https://github.com/SocketDev/socket-sdk-js/actions/workflows/ci.yml/badge.svg)](https://github.com/SocketDev/socket-sdk-js/actions/workflows/ci.yml)
5
- ![Coverage](https://img.shields.io/badge/coverage-40%25-orange)
5
+ ![Coverage](https://img.shields.io/badge/coverage-96%25-brightgreen)
6
6
 
7
7
  [![Follow @SocketSecurity](https://img.shields.io/twitter/follow/SocketSecurity?style=social)](https://twitter.com/SocketSecurity)
8
8
  [![Follow @socket.dev on Bluesky](https://img.shields.io/badge/Follow-@socket.dev-1DA1F2?style=social&logo=bluesky)](https://bsky.app/profile/socket.dev)
@@ -12,5 +12,7 @@ export declare const MIN_HTTP_TIMEOUT = 5000;
12
12
  export declare const MAX_RESPONSE_SIZE: number;
13
13
  export declare const MAX_STREAM_SIZE: number;
14
14
  export declare const SOCKET_PUBLIC_BLOB_STORE_URL = "https://socketusercontent.com";
15
+ export declare const MAX_FIREWALL_COMPONENTS = 8;
16
+ export declare const SOCKET_FIREWALL_API_URL = "https://firewall-api.socket.dev/purl";
15
17
  export declare const httpAgentNames: Set<string>;
16
- export declare const publicPolicy: Map<"ambiguousClassifier" | "badEncoding" | "badSemver" | "badSemverDependency" | "bidi" | "binScriptConfusion" | "chromeContentScript" | "chromeHostPermission" | "chromePermission" | "chromeWildcardHostPermission" | "chronoAnomaly" | "compromisedSSHKey" | "copyleftLicense" | "criticalCVE" | "cve" | "debugAccess" | "deprecated" | "deprecatedException" | "deprecatedLicense" | "didYouMean" | "dynamicRequire" | "emptyPackage" | "envVars" | "explicitlyUnlicensedItem" | "extraneousDependency" | "fileDependency" | "filesystemAccess" | "floatingDependency" | "generic" | "ghaArgToEnv" | "ghaArgToOutput" | "ghaArgToSink" | "ghaContextToEnv" | "ghaContextToOutput" | "ghaContextToSink" | "ghaEnvToSink" | "gitDependency" | "gitHubDependency" | "gptAnomaly" | "gptDidYouMean" | "gptMalware" | "gptSecurity" | "hasNativeCode" | "highEntropyStrings" | "homoglyphs" | "httpDependency" | "installScripts" | "invalidPackageJSON" | "invisibleChars" | "licenseChange" | "licenseException" | "licenseSpdxDisj" | "longStrings" | "majorRefactor" | "malware" | "manifestConfusion" | "mediumCVE" | "mildCVE" | "minifiedFile" | "miscLicenseIssues" | "missingAuthor" | "missingDependency" | "missingLicense" | "missingTarball" | "mixedLicense" | "modifiedException" | "modifiedLicense" | "networkAccess" | "newAuthor" | "noAuthorData" | "noBugTracker" | "noLicenseFound" | "noREADME" | "noRepository" | "noTests" | "noV1" | "noWebsite" | "nonOSILicense" | "nonSPDXLicense" | "nonpermissiveLicense" | "notice" | "obfuscatedFile" | "obfuscatedRequire" | "peerDependency" | "potentialVulnerability" | "recentlyPublished" | "semverAnomaly" | "shellAccess" | "shellScriptOverride" | "shrinkwrap" | "skillAutonomyAbuse" | "skillCommandInjection" | "skillDataExfiltration" | "skillDiscoveryAbuse" | "skillHardcodedSecrets" | "skillObfuscation" | "skillPromptInjection" | "skillResourceAbuse" | "skillSupplyChain" | "skillToolAbuse" | "skillToolChaining" | "skillTransitiveTrust" | "socketUpgradeAvailable" | "suspiciousStarActivity" | "suspiciousString" | "telemetry" | "tooManyFiles" | "trivialPackage" | "troll" | "typeModuleCompatibility" | "uncaughtOptionalDependency" | "unclearLicense" | "unidentifiedLicense" | "unmaintained" | "unpopularPackage" | "unpublished" | "unresolvedRequire" | "unsafeCopyright" | "unstableOwnership" | "unusedDependency" | "urlStrings" | "usesEval" | "vsxActivationWildcard" | "vsxDebuggerContribution" | "vsxExtensionDependency" | "vsxExtensionPack" | "vsxProposedApiUsage" | "vsxUntrustedWorkspaceSupported" | "vsxVirtualWorkspaceSupported" | "vsxWebviewContribution" | "vsxWorkspaceContainsActivation" | "zeroWidth", ALERT_ACTION>;
18
+ export declare const publicPolicy: Map<"ambiguousClassifier" | "badEncoding" | "badSemver" | "badSemverDependency" | "bidi" | "binScriptConfusion" | "chromeContentScript" | "chromeHostPermission" | "chromePermission" | "chromeWildcardHostPermission" | "chronoAnomaly" | "compromisedSSHKey" | "copyleftLicense" | "criticalCVE" | "cve" | "debugAccess" | "deprecated" | "deprecatedException" | "deprecatedLicense" | "didYouMean" | "dynamicRequire" | "emptyPackage" | "envVars" | "explicitlyUnlicensedItem" | "extraneousDependency" | "fileDependency" | "filesystemAccess" | "floatingDependency" | "generic" | "ghaArgToEnv" | "ghaArgToOutput" | "ghaArgToSink" | "ghaContextToEnv" | "ghaContextToOutput" | "ghaContextToSink" | "ghaEnvToSink" | "gitDependency" | "gitHubDependency" | "gptAnomaly" | "gptDidYouMean" | "gptMalware" | "gptSecurity" | "hasNativeCode" | "highEntropyStrings" | "homoglyphs" | "httpDependency" | "installScripts" | "invalidPackageJSON" | "invisibleChars" | "licenseChange" | "licenseException" | "licenseSpdxDisj" | "longStrings" | "majorRefactor" | "malware" | "manifestConfusion" | "mediumCVE" | "mildCVE" | "minifiedFile" | "miscLicenseIssues" | "missingAuthor" | "missingDependency" | "missingLicense" | "missingTarball" | "mixedLicense" | "modifiedException" | "modifiedLicense" | "networkAccess" | "newAuthor" | "noAuthorData" | "noBugTracker" | "noLicenseFound" | "noREADME" | "noRepository" | "noTests" | "noV1" | "noWebsite" | "nonOSILicense" | "nonSPDXLicense" | "nonpermissiveLicense" | "notice" | "obfuscatedFile" | "obfuscatedRequire" | "peerDependency" | "potentialVulnerability" | "recentlyPublished" | "semverAnomaly" | "shellAccess" | "shellScriptOverride" | "shrinkwrap" | "skillAutonomyAbuse" | "skillCommandInjection" | "skillDataExfiltration" | "skillDiscoveryAbuse" | "skillHardcodedSecrets" | "skillObfuscation" | "skillPreExecution" | "skillPromptInjection" | "skillResourceAbuse" | "skillSupplyChain" | "skillToolAbuse" | "skillToolChaining" | "skillTransitiveTrust" | "socketUpgradeAvailable" | "suspiciousStarActivity" | "suspiciousString" | "telemetry" | "tooManyFiles" | "trivialPackage" | "troll" | "typeModuleCompatibility" | "uncaughtOptionalDependency" | "unclearLicense" | "unidentifiedLicense" | "unmaintained" | "unpopularPackage" | "unpublished" | "unresolvedRequire" | "unsafeCopyright" | "unstableOwnership" | "unusedDependency" | "urlStrings" | "usesEval" | "vsxActivationWildcard" | "vsxDebuggerContribution" | "vsxExtensionDependency" | "vsxExtensionPack" | "vsxProposedApiUsage" | "vsxUntrustedWorkspaceSupported" | "vsxVirtualWorkspaceSupported" | "vsxWebviewContribution" | "vsxWorkspaceContainsActivation" | "zeroWidth", ALERT_ACTION>;
@@ -1,22 +1,5 @@
1
1
  import FormData from 'form-data';
2
2
  import type { RequestOptionsWithHooks } from './types';
3
- import type { IncomingMessage } from 'node:http';
4
- /**
5
- * Create multipart form-data body parts for file uploads.
6
- * Converts file paths to readable streams with proper multipart headers.
7
- *
8
- * @throws {Error} When file cannot be read (ENOENT, EACCES, EISDIR, etc.)
9
- */
3
+ import type { HttpResponse } from '@socketsecurity/lib/http-request';
10
4
  export declare function createRequestBodyForFilepaths(filepaths: string[], basePath: string): FormData;
11
- /**
12
- * Create multipart form-data body part for JSON data.
13
- * Converts JSON object to readable stream with appropriate headers.
14
- */
15
- export declare function createRequestBodyForJson(jsonData: unknown, basename?: string): FormData;
16
- /**
17
- * Create and execute a multipart/form-data upload request using form-data library.
18
- * Streams large files efficiently with automatic backpressure handling and early server validation.
19
- *
20
- * @throws {Error} When network errors occur or stream processing fails
21
- */
22
- export declare function createUploadRequest(baseUrl: string, urlPath: string, form: FormData, options?: RequestOptionsWithHooks | undefined): Promise<IncomingMessage>;
5
+ export declare function createUploadRequest(baseUrl: string, urlPath: string, form: FormData, options?: RequestOptionsWithHooks | undefined): Promise<HttpResponse>;
@@ -1,123 +1,14 @@
1
- /**
2
- * @fileoverview HTTP client utilities for Socket API communication.
3
- * Provides low-level HTTP request handling with proper error management and response parsing.
4
- */
5
- import http from 'node:http';
6
- import https from 'node:https';
7
1
  import type { RequestOptionsWithHooks, SendMethod } from './types';
2
+ import type { HttpResponse } from '@socketsecurity/lib/http-request';
8
3
  import type { JsonValue } from '@socketsecurity/lib/json/types';
9
- import type { ClientRequest, IncomingMessage } from 'node:http';
10
- /**
11
- * Array of sensitive header names that should be redacted in logs
12
- */
13
- /**
14
- * HTTP response error for Socket API requests.
15
- * Extends Error with response details for debugging failed API calls.
16
- */
17
4
  export declare class ResponseError extends Error {
18
- response: IncomingMessage;
5
+ response: HttpResponse;
19
6
  url?: string | undefined;
20
- /**
21
- * Create a new ResponseError from an HTTP response.
22
- * Automatically formats error message with status code and message.
23
- */
24
- constructor(response: IncomingMessage, message?: string, url?: string | undefined);
7
+ constructor(response: HttpResponse, message?: string, url?: string | undefined);
25
8
  }
26
- /**
27
- * Create and execute an HTTP DELETE request.
28
- * Returns the response stream for further processing.
29
- *
30
- * @throws {Error} When network or timeout errors occur
31
- */
32
- export declare function createDeleteRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise<IncomingMessage>;
33
- /**
34
- * Create and execute an HTTP GET request.
35
- * Returns the response stream for further processing.
36
- * Performance tracking enabled with DEBUG=perf.
37
- *
38
- * @throws {Error} When network or timeout errors occur
39
- */
40
- export declare function createGetRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise<IncomingMessage>;
41
- /**
42
- * Create and execute an HTTP request with JSON payload.
43
- * Automatically sets appropriate content headers and serializes the body.
44
- * Performance tracking enabled with DEBUG=perf.
45
- *
46
- * @throws {Error} When network or timeout errors occur
47
- */
48
- export declare function createRequestWithJson(method: SendMethod, baseUrl: string, urlPath: string, json: unknown, options?: RequestOptionsWithHooks | undefined): Promise<IncomingMessage>;
49
- /**
50
- * Read the response body from an HTTP error response.
51
- * Accumulates all chunks into a complete string for error handling.
52
- * Enforces maximum response size to prevent memory exhaustion.
53
- *
54
- * @throws {Error} When stream errors occur during reading
55
- * @throws {Error} When response exceeds maximum size limit
56
- */
57
- export declare function getErrorResponseBody(response: IncomingMessage): Promise<string>;
58
- /**
59
- * Get the appropriate HTTP module based on URL protocol.
60
- * Returns http module for http: URLs, https module for https: URLs.
61
- */
62
- export declare function getHttpModule(url: string): typeof http | typeof https;
63
- /**
64
- * Wait for and return the HTTP response from a request.
65
- * Handles timeout and error conditions during request processing.
66
- *
67
- * @throws {Error} When request times out or network errors occur
68
- */
69
- export declare function getResponse(req: ClientRequest): Promise<IncomingMessage>;
70
- /**
71
- * Parse HTTP response body as JSON.
72
- * Validates response status and handles empty responses gracefully.
73
- * Performance tracking enabled with DEBUG=perf.
74
- *
75
- * @throws {ResponseError} When response has non-2xx status code
76
- * @throws {SyntaxError} When response body contains invalid JSON
77
- */
78
- export declare function getResponseJson(response: IncomingMessage, method?: string | undefined, url?: string | undefined): Promise<JsonValue | undefined>;
79
- /**
80
- * Create DELETE request with automatic retry logic.
81
- * Retries on network errors and 5xx responses.
82
- *
83
- * @param retries - Number of retry attempts (default: 0, retries disabled)
84
- * @param retryDelay - Initial delay in ms (default: 100)
85
- */
86
- export declare function createDeleteRequestWithRetry(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined, retries?: number, retryDelay?: number): Promise<IncomingMessage>;
87
- /**
88
- * Create GET request with automatic retry logic.
89
- * Retries on network errors and 5xx responses.
90
- *
91
- * @param retries - Number of retry attempts (default: 0, retries disabled)
92
- * @param retryDelay - Initial delay in ms (default: 100)
93
- */
94
- export declare function createGetRequestWithRetry(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined, retries?: number, retryDelay?: number): Promise<IncomingMessage>;
95
- /**
96
- * Create request with JSON payload and automatic retry logic.
97
- * Retries on network errors and 5xx responses.
98
- *
99
- * @param retries - Number of retry attempts (default: 0, retries disabled)
100
- * @param retryDelay - Initial delay in ms (default: 100)
101
- */
102
- export declare function createRequestWithJsonAndRetry(method: SendMethod, baseUrl: string, urlPath: string, json: unknown, options?: RequestOptionsWithHooks | undefined, retries?: number, retryDelay?: number): Promise<IncomingMessage>;
103
- /**
104
- * Check if HTTP response has a successful status code (2xx range).
105
- * Returns true for status codes between 200-299, false otherwise.
106
- */
107
- export declare function isResponseOk(response: IncomingMessage): boolean;
108
- /**
109
- * Transform artifact data based on authentication status.
110
- * Filters and compacts response data for public/free-tier users.
111
- */
112
- export declare function reshapeArtifactForPublicPolicy<T extends Record<string, unknown>>(data: T, isAuthenticated: boolean, actions?: string | undefined): T;
113
- /**
114
- * Retry helper for HTTP requests with exponential backoff.
115
- * Wraps any async HTTP function and retries on failure.
116
- *
117
- * @param fn - Async function to retry
118
- * @param retries - Number of retry attempts (default: 0, retries disabled)
119
- * @param retryDelay - Initial delay in ms (default: 100)
120
- * @returns Result of the function call
121
- * @throws {Error} Last error if all retries exhausted
122
- */
123
- export declare function withRetry<T>(fn: () => Promise<T>, retries?: number, retryDelay?: number): Promise<T>;
9
+ export declare function createDeleteRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise<HttpResponse>;
10
+ export declare function createGetRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise<HttpResponse>;
11
+ export declare function createRequestWithJson(method: SendMethod, baseUrl: string, urlPath: string, json: unknown, options?: RequestOptionsWithHooks | undefined): Promise<HttpResponse>;
12
+ export declare function getResponseJson(response: HttpResponse, method?: string | undefined, url?: string | undefined): Promise<JsonValue | undefined>;
13
+ export declare function isResponseOk(response: HttpResponse): boolean;
14
+ export declare function reshapeArtifactForPublicPolicy<T extends Record<string, unknown>>(data: T, isAuthenticated: boolean, actions?: string | undefined, policy?: Map<string, string> | undefined): T;
package/dist/index.d.ts CHANGED
@@ -2,14 +2,9 @@
2
2
  * @fileoverview Main entry point for the Socket SDK.
3
3
  * Provides the SocketSdk class and utility functions for Socket security analysis API interactions.
4
4
  */
5
- import { DEFAULT_USER_AGENT, httpAgentNames, publicPolicy } from './constants';
6
- import { calculateWordSetSimilarity, filterRedundantCause, normalizeBaseUrl, promiseWithResolvers, queryToSearchParams, resolveAbsPaths, resolveBasePath, shouldOmitReason } from './utils';
7
- export { createRequestBodyForFilepaths, createRequestBodyForJson, createUploadRequest, } from './file-upload';
8
- export { createDeleteRequest, createGetRequest, createRequestWithJson, getErrorResponseBody, getHttpModule, getResponse, getResponseJson, isResponseOk, ResponseError, reshapeArtifactForPublicPolicy, } from './http-client';
5
+ export { ResponseError } from './http-client';
9
6
  export { calculateTotalQuotaCost, getAllMethodRequirements, getMethodRequirements, getMethodsByPermissions, getMethodsByQuotaCost, getQuotaCost, getQuotaUsageSummary, getRequiredPermissions, hasQuotaForMethods, } from './quota-utils';
10
7
  export { SocketSdk } from './socket-sdk-class';
11
- export type { ALERT_ACTION, ALERT_TYPE, Agent, ArtifactPatches, BatchPackageFetchResultType, BatchPackageStreamOptions, CompactSocketArtifact, CompactSocketArtifactAlert, CreateDependenciesSnapshotOptions, CreateOrgFullScanOptions, CreateScanFromFilepathsOptions, CustomResponseType, Entitlement, EntitlementsResponse, FileValidationCallback, FileValidationResult, GetOptions, GotOptions, HeadersRecord, PatchFile, PatchRecord, PatchViewResponse, TelemetryConfig, PostOrgTelemetryPayload, PostOrgTelemetryResponse, QueryParams, RequestInfo, RequestOptions, RequestOptionsWithHooks, ResponseInfo, SecurityAlert, SendMethod, SendOptions, SocketArtifact, SocketArtifactAlert, SocketArtifactWithExtras, SocketId, SocketMetricSchema, SocketSdkArrayElement, SocketSdkData, SocketSdkErrorResult, SocketSdkGenericResult, SocketSdkOperations, SocketSdkOptions, SocketSdkResult, SocketSdkSuccessResult, StreamOrgFullScanOptions, UploadManifestFilesError, UploadManifestFilesOptions, UploadManifestFilesResponse, UploadManifestFilesReturnType, Vulnerability, } from './types';
8
+ export type { ALERT_ACTION, ALERT_TYPE, Agent, ArtifactPatches, BatchPackageFetchResultType, BatchPackageStreamOptions, CompactSocketArtifact, CompactSocketArtifactAlert, CreateDependenciesSnapshotOptions, CustomResponseType, Entitlement, EntitlementsResponse, FileValidationCallback, FileValidationResult, GetOptions, GotOptions, HeadersRecord, MalwareCheckAlert, MalwareCheckPackage, MalwareCheckResult, MalwareCheckScore, PatchFile, PatchRecord, PatchViewResponse, TelemetryConfig, PostOrgTelemetryPayload, PostOrgTelemetryResponse, QueryParams, RequestInfo, RequestOptions, RequestOptionsWithHooks, ResponseInfo, SecurityAlert, SendMethod, SendOptions, SocketArtifact, SocketArtifactAlert, SocketArtifactWithExtras, SocketId, SocketMetricSchema, SocketSdkArrayElement, SocketSdkData, SocketSdkErrorResult, SocketSdkGenericResult, SocketSdkOperations, SocketSdkOptions, SocketSdkResult, SocketSdkSuccessResult, StreamOrgFullScanOptions, UploadManifestFilesError, UploadManifestFilesOptions, UploadManifestFilesResponse, UploadManifestFilesReturnType, Vulnerability, } from './types';
12
9
  export type { CreateFullScanOptions, DeleteRepositoryLabelResult, DeleteResult, FullScanItem, FullScanListData, FullScanListResult, FullScanResult, GetRepositoryOptions, ListFullScansOptions, ListRepositoriesOptions, OrganizationItem, OrganizationsResult, RepositoriesListData, RepositoriesListResult, RepositoryItem, RepositoryLabelItem, RepositoryLabelResult, RepositoryLabelsListData, RepositoryLabelsListResult, RepositoryListItem, RepositoryResult, StreamFullScanOptions, StrictErrorResult, StrictResult, } from './types-strict';
13
10
  export { createUserAgentFromPkgJson } from './user-agent';
14
- export { calculateWordSetSimilarity, filterRedundantCause, normalizeBaseUrl, promiseWithResolvers, queryToSearchParams, resolveAbsPaths, resolveBasePath, shouldOmitReason, };
15
- export { DEFAULT_USER_AGENT, httpAgentNames, publicPolicy };