@socketsecurity/sdk
Advanced tools
+2
-2
| { | ||
| "name": "@socketsecurity/sdk", | ||
| "version": "0.7.0", | ||
| "version": "0.7.2", | ||
| "license": "MIT", | ||
@@ -85,2 +85,2 @@ "description": "SDK for the Socket API client", | ||
| } | ||
| } | ||
| } |
+124
-8
@@ -128,2 +128,24 @@ /** | ||
| }; | ||
| "/dependencies/search": { | ||
| /** | ||
| * @description . | ||
| * | ||
| * This endpoint consumes 0 units of your quota. | ||
| */ | ||
| post: operations["searchDependencies"]; | ||
| }; | ||
| "/dependencies/upload": { | ||
| /** | ||
| * Create a snapshot of all dependencies from manifest information | ||
| * @description Upload a set of manifest or lockfiles to get your dependency tree analyzed by Socket. | ||
| * You can upload multiple lockfiles in the same request, but each filename must be unique. | ||
| * | ||
| * The name of the file must be in the supported list. | ||
| * | ||
| * For example, these are valid filenames: "requirements.txt", "package.json", "folder/package.json", and "deep/nested/folder/package.json". | ||
| * | ||
| * This endpoint consumes 100 units of your quota. | ||
| */ | ||
| post: operations["createDependenciesSnapshot"]; | ||
| }; | ||
| } | ||
@@ -721,3 +743,8 @@ | ||
| description: string; | ||
| props: Record<string, never>; | ||
| props: { | ||
| /** @default */ | ||
| key: string; | ||
| /** @default */ | ||
| description: string; | ||
| }; | ||
| usage?: components["schemas"]["SocketUsageRef"]; | ||
@@ -1219,2 +1246,6 @@ }; | ||
| value?: components["schemas"]["SocketRefPyPI"]; | ||
| } | { | ||
| /** @enum {string} */ | ||
| type?: "go"; | ||
| value?: components["schemas"]["SocketRefGo"]; | ||
| }; | ||
@@ -1267,2 +1298,9 @@ SocketRefTextRange: { | ||
| }; | ||
| SocketRefGo: { | ||
| /** @default */ | ||
| package: string; | ||
| /** @default */ | ||
| version?: string; | ||
| file?: components["schemas"]["SocketRefFile"]; | ||
| }; | ||
| }; | ||
@@ -1332,2 +1370,13 @@ responses: { | ||
| }; | ||
| /** @description Internal server error */ | ||
| SocketInternalServerError: { | ||
| content: { | ||
| "application/json": { | ||
| error: { | ||
| /** @default */ | ||
| message: string; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
@@ -1653,9 +1702,11 @@ parameters: never; | ||
| settings: { | ||
| deferTo?: string | null; | ||
| issueRules?: { | ||
| [key: string]: ({ | ||
| /** @enum {string} */ | ||
| action?: "defer" | "error" | "ignore" | "warn"; | ||
| }) | undefined; | ||
| }; | ||
| [key: string]: ({ | ||
| deferTo: string | null; | ||
| issueRules: { | ||
| [key: string]: ({ | ||
| /** @enum {string} */ | ||
| action: "defer" | "error" | "ignore" | "warn"; | ||
| }) | undefined; | ||
| }; | ||
| }) | undefined; | ||
| }; | ||
@@ -1717,3 +1768,68 @@ })[]; | ||
| }; | ||
| /** | ||
| * @description . | ||
| * | ||
| * This endpoint consumes 0 units of your quota. | ||
| */ | ||
| searchDependencies: { | ||
| requestBody?: { | ||
| content: { | ||
| "application/json": Record<string, never>; | ||
| }; | ||
| }; | ||
| responses: { | ||
| /** @description List of repos and their latest project report for the organization associated with the token used */ | ||
| 200: { | ||
| content: { | ||
| "application/json": unknown; | ||
| }; | ||
| }; | ||
| 400: components["responses"]["SocketBadRequest"]; | ||
| 401: components["responses"]["SocketUnauthorized"]; | ||
| 403: components["responses"]["SocketForbidden"]; | ||
| 404: components["responses"]["SocketNotFoundResponse"]; | ||
| 429: components["responses"]["SocketTooManyRequestsResponse"]; | ||
| }; | ||
| }; | ||
| /** | ||
| * Create a snapshot of all dependencies from manifest information | ||
| * @description Upload a set of manifest or lockfiles to get your dependency tree analyzed by Socket. | ||
| * You can upload multiple lockfiles in the same request, but each filename must be unique. | ||
| * | ||
| * The name of the file must be in the supported list. | ||
| * | ||
| * For example, these are valid filenames: "requirements.txt", "package.json", "folder/package.json", and "deep/nested/folder/package.json". | ||
| * | ||
| * This endpoint consumes 100 units of your quota. | ||
| */ | ||
| createDependenciesSnapshot: { | ||
| requestBody?: { | ||
| content: { | ||
| "multipart/form-data": { | ||
| /** @default */ | ||
| repository?: string; | ||
| /** @default */ | ||
| branch?: string; | ||
| [key: string]: undefined; | ||
| }; | ||
| }; | ||
| }; | ||
| responses: { | ||
| /** @description ID of the dependencies snapshot */ | ||
| 200: { | ||
| content: { | ||
| "application/json": { | ||
| /** @default */ | ||
| id: string; | ||
| }; | ||
| }; | ||
| }; | ||
| 400: components["responses"]["SocketBadRequest"]; | ||
| 401: components["responses"]["SocketUnauthorized"]; | ||
| 403: components["responses"]["SocketForbidden"]; | ||
| 429: components["responses"]["SocketTooManyRequestsResponse"]; | ||
| 500: components["responses"]["SocketInternalServerError"]; | ||
| }; | ||
| }; | ||
| } | ||
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
74309
5.18%2135
5.75%