@socketsecurity/sdk 3.1.1 → 3.1.3
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 +17 -0
- package/README.md +16 -16
- package/dist/index.js +4423 -4688
- package/dist/types.d.ts +1 -1
- package/package.json +2 -4
- package/types/api.d.ts +14 -1
package/dist/types.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export interface FileValidationResult {
|
|
|
182
182
|
* @since v3.0.0
|
|
183
183
|
*/
|
|
184
184
|
export type FileValidationCallback = (validPaths: string[], invalidPaths: string[], context: {
|
|
185
|
-
operation: 'createDependenciesSnapshot' | '
|
|
185
|
+
operation: 'createDependenciesSnapshot' | 'createFullScan' | 'uploadManifestFiles';
|
|
186
186
|
orgSlug?: string | undefined;
|
|
187
187
|
[key: string]: unknown;
|
|
188
188
|
}) => FileValidationResult | Promise<FileValidationResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "SDK for the Socket API client",
|
|
6
6
|
"author": {
|
|
@@ -58,11 +58,10 @@
|
|
|
58
58
|
"@babel/traverse": "7.26.4",
|
|
59
59
|
"@babel/types": "7.26.3",
|
|
60
60
|
"@biomejs/biome": "2.2.4",
|
|
61
|
-
"@dotenvx/dotenvx": "1.49.0",
|
|
62
61
|
"@eslint/compat": "1.3.2",
|
|
63
62
|
"@eslint/js": "9.35.0",
|
|
64
63
|
"@socketregistry/packageurl-js": "1.3.5",
|
|
65
|
-
"@socketsecurity/lib": "3.
|
|
64
|
+
"@socketsecurity/lib": "3.2.4",
|
|
66
65
|
"@types/babel__traverse": "7.28.0",
|
|
67
66
|
"@types/node": "24.9.2",
|
|
68
67
|
"@typescript/native-preview": "7.0.0-dev.20250926.1",
|
|
@@ -83,7 +82,6 @@
|
|
|
83
82
|
"husky": "9.1.7",
|
|
84
83
|
"magic-string": "0.30.14",
|
|
85
84
|
"nock": "14.0.10",
|
|
86
|
-
"npm-run-all2": "8.0.4",
|
|
87
85
|
"openapi-typescript": "6.7.6",
|
|
88
86
|
"semver": "7.7.2",
|
|
89
87
|
"taze": "19.6.0",
|
package/types/api.d.ts
CHANGED
|
@@ -15277,5 +15277,18 @@ export interface operations {
|
|
|
15277
15277
|
404: components['responses']['SocketNotFoundResponse']
|
|
15278
15278
|
429: components['responses']['SocketTooManyRequestsResponse']
|
|
15279
15279
|
}
|
|
15280
|
-
}
|
|
15280
|
+
} // SDK v3 method name aliases for TypeScript compatibility.
|
|
15281
|
+
// These map the new SDK method names to their underlying OpenAPI operation names.
|
|
15282
|
+
listOrganizations: operations['getOrganizations']
|
|
15283
|
+
listRepositories: operations['getOrgRepoList']
|
|
15284
|
+
createRepository: operations['createOrgRepo']
|
|
15285
|
+
deleteRepository: operations['deleteOrgRepo']
|
|
15286
|
+
updateRepository: operations['updateOrgRepo']
|
|
15287
|
+
getRepository: operations['getOrgRepo']
|
|
15288
|
+
listFullScans: operations['getOrgFullScanList']
|
|
15289
|
+
createFullScan: operations['CreateOrgFullScan']
|
|
15290
|
+
getFullScan: operations['getOrgFullScan']
|
|
15291
|
+
streamFullScan: operations['getOrgFullScan']
|
|
15292
|
+
deleteFullScan: operations['deleteOrgFullScan']
|
|
15293
|
+
getFullScanMetadata: operations['getOrgFullScanMetadata']
|
|
15281
15294
|
}
|