@socketsecurity/sdk 3.1.1 → 3.1.2

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,13 @@ 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
+ ## [3.1.2](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.1.2) - 2025-11-02
8
+
9
+ ### Fixed
10
+
11
+ - Add type aliases in `operations` interface to map SDK v3 method names to OpenAPI operation names for TypeScript compatibility
12
+ - Update `FileValidationCallback` to use `createFullScan` instead of `createOrgFullScan`
13
+
7
14
  ## [3.1.1](https://github.com/SocketDev/socket-sdk-js/releases/tag/v3.1.1) - 2025-11-02
8
15
 
9
16
  ### Fixed
package/dist/index.js CHANGED
@@ -20691,7 +20691,7 @@ module.exports = __toCommonJS(index_exports);
20691
20691
  // package.json
20692
20692
  var package_default = {
20693
20693
  name: "@socketsecurity/sdk",
20694
- version: "3.1.1",
20694
+ version: "3.1.2",
20695
20695
  license: "MIT",
20696
20696
  description: "SDK for the Socket API client",
20697
20697
  author: {
@@ -22202,7 +22202,7 @@ var SocketSdk = class {
22202
22202
  const { invalidPaths, validPaths } = (0, import_fs.validateFiles)(absFilepaths);
22203
22203
  if (this.#onFileValidation && invalidPaths.length > 0) {
22204
22204
  const result = await this.#onFileValidation(validPaths, invalidPaths, {
22205
- operation: "createOrgFullScan",
22205
+ operation: "createFullScan",
22206
22206
  orgSlug
22207
22207
  });
22208
22208
  if (!result.shouldContinue) {
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' | 'createOrgFullScan' | 'uploadManifestFiles';
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.1",
3
+ "version": "3.1.2",
4
4
  "license": "MIT",
5
5
  "description": "SDK for the Socket API client",
6
6
  "author": {
package/types/api.d.ts CHANGED
@@ -15278,4 +15278,18 @@ export interface operations {
15278
15278
  429: components['responses']['SocketTooManyRequestsResponse']
15279
15279
  }
15280
15280
  }
15281
+ // SDK v3 method name aliases for TypeScript compatibility.
15282
+ // These map the new SDK method names to their underlying OpenAPI operation names.
15283
+ listOrganizations: operations['getOrganizations']
15284
+ listRepositories: operations['getOrgRepoList']
15285
+ createRepository: operations['createOrgRepo']
15286
+ deleteRepository: operations['deleteOrgRepo']
15287
+ updateRepository: operations['updateOrgRepo']
15288
+ getRepository: operations['getOrgRepo']
15289
+ listFullScans: operations['getOrgFullScanList']
15290
+ createFullScan: operations['CreateOrgFullScan']
15291
+ getFullScan: operations['getOrgFullScan']
15292
+ streamFullScan: operations['getOrgFullScan']
15293
+ deleteFullScan: operations['deleteOrgFullScan']
15294
+ getFullScanMetadata: operations['getOrgFullScanMetadata']
15281
15295
  }