socketdev 3.5.0__tar.gz → 3.6.1__tar.gz

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 (89) hide show
  1. socketdev-3.6.1/.gitattributes +29 -0
  2. {socketdev-3.5.0 → socketdev-3.6.1}/.github/actions/setup-hatch/action.yml +1 -2
  3. {socketdev-3.5.0 → socketdev-3.6.1}/.github/actions/setup-sfw/action.yml +1 -1
  4. socketdev-3.6.1/.github/workflows/api-drift-check.yml +37 -0
  5. {socketdev-3.5.0 → socketdev-3.6.1}/.github/workflows/dependency-review.yml +2 -2
  6. {socketdev-3.5.0 → socketdev-3.6.1}/.github/workflows/package-check.yml +2 -2
  7. {socketdev-3.5.0 → socketdev-3.6.1}/.github/workflows/pr-preview.yml +3 -3
  8. {socketdev-3.5.0 → socketdev-3.6.1}/.github/workflows/release.yml +1 -1
  9. {socketdev-3.5.0 → socketdev-3.6.1}/.github/workflows/version-check.yml +57 -13
  10. {socketdev-3.5.0 → socketdev-3.6.1}/CHANGELOG.md +66 -0
  11. {socketdev-3.5.0 → socketdev-3.6.1}/PKG-INFO +11 -5
  12. {socketdev-3.5.0 → socketdev-3.6.1}/README.rst +1490 -1485
  13. {socketdev-3.5.0 → socketdev-3.6.1}/pyproject.toml +13 -8
  14. socketdev-3.6.1/scripts/check_api_enum_drift.py +148 -0
  15. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/__init__.py +115 -115
  16. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/core/classes.py +148 -148
  17. socketdev-3.6.1/socketdev/core/enums.py +35 -0
  18. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/dependencies/__init__.py +53 -53
  19. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/fullscans/__init__.py +40 -19
  20. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/npm/__init__.py +28 -28
  21. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/openapi/__init__.py +19 -19
  22. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/org/__init__.py +34 -34
  23. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/quota/__init__.py +19 -19
  24. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/report/__init__.py +87 -87
  25. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/repositories/__init__.py +31 -31
  26. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/settings/__init__.py +182 -172
  27. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/tools/__init__.py +65 -65
  28. socketdev-3.6.1/socketdev/version.py +1 -0
  29. socketdev-3.6.1/tests/unit/test_enum_forward_compat.py +136 -0
  30. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_socket_alert_category.py +1 -1
  31. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_socket_purl_type.py +1 -1
  32. {socketdev-3.5.0 → socketdev-3.6.1}/uv.lock +225 -648
  33. socketdev-3.5.0/socketdev/version.py +0 -1
  34. {socketdev-3.5.0 → socketdev-3.6.1}/.github/CODEOWNERS +0 -0
  35. {socketdev-3.5.0 → socketdev-3.6.1}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
  36. {socketdev-3.5.0 → socketdev-3.6.1}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
  37. {socketdev-3.5.0 → socketdev-3.6.1}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
  38. {socketdev-3.5.0 → socketdev-3.6.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  39. {socketdev-3.5.0 → socketdev-3.6.1}/.github/dependabot.yml +0 -0
  40. {socketdev-3.5.0 → socketdev-3.6.1}/.gitignore +0 -0
  41. {socketdev-3.5.0 → socketdev-3.6.1}/.hooks/sync_version.py +0 -0
  42. {socketdev-3.5.0 → socketdev-3.6.1}/.python-version +0 -0
  43. {socketdev-3.5.0 → socketdev-3.6.1}/CONTRIBUTING.md +0 -0
  44. {socketdev-3.5.0 → socketdev-3.6.1}/LICENSE +0 -0
  45. {socketdev-3.5.0 → socketdev-3.6.1}/scripts/build.sh +0 -0
  46. {socketdev-3.5.0 → socketdev-3.6.1}/scripts/deploy-test-pypi.sh +0 -0
  47. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/alertfullscansearch/__init__.py +0 -0
  48. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/alerts/__init__.py +0 -0
  49. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/alerttypes/__init__.py +0 -0
  50. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/analytics/__init__.py +0 -0
  51. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/apitokens/__init__.py +0 -0
  52. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/auditlog/__init__.py +0 -0
  53. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/basics/__init__.py +0 -0
  54. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/core/api.py +0 -0
  55. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/core/dedupe.py +0 -0
  56. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/core/issues.py +0 -0
  57. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/diffscans/__init__.py +0 -0
  58. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/exceptions.py +0 -0
  59. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/export/__init__.py +0 -0
  60. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/fixes/__init__.py +0 -0
  61. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/historical/__init__.py +0 -0
  62. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/labels/__init__.py +0 -0
  63. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/licensemetadata/__init__.py +0 -0
  64. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/log.py +0 -0
  65. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/purl/__init__.py +0 -0
  66. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/repos/__init__.py +0 -0
  67. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/sbom/__init__.py +0 -0
  68. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/supportedfiles/__init__.py +0 -0
  69. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/telemetry/__init__.py +0 -0
  70. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/threatfeed/__init__.py +0 -0
  71. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/triage/__init__.py +0 -0
  72. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/uploadmanifests/__init__.py +0 -0
  73. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/utils/__init__.py +0 -0
  74. {socketdev-3.5.0 → socketdev-3.6.1}/socketdev/webhooks/__init__.py +0 -0
  75. {socketdev-3.5.0 → socketdev-3.6.1}/tests/README.md +0 -0
  76. {socketdev-3.5.0 → socketdev-3.6.1}/tests/conftest.py +0 -0
  77. {socketdev-3.5.0 → socketdev-3.6.1}/tests/integration/test_all_endpoints.py +0 -0
  78. {socketdev-3.5.0 → socketdev-3.6.1}/tests/integration/test_comprehensive_integration.py +0 -0
  79. {socketdev-3.5.0 → socketdev-3.6.1}/tests/integration/test_diffscans_integration.py +0 -0
  80. {socketdev-3.5.0 → socketdev-3.6.1}/tests/integration/test_new_endpoints.py +0 -0
  81. {socketdev-3.5.0 → socketdev-3.6.1}/tests/run_tests.py +0 -0
  82. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/__init__.py +0 -0
  83. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_all_endpoints_unit.py +0 -0
  84. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_dedupe.py +0 -0
  85. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_exceptions.py +0 -0
  86. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_issues_did_you_mean_props.py +0 -0
  87. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_socket_sdk_unit.py +0 -0
  88. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_upload_manifests.py +0 -0
  89. {socketdev-3.5.0 → socketdev-3.6.1}/tests/unit/test_working_endpoints_unit.py +0 -0
@@ -0,0 +1,29 @@
1
+ # Normalize line endings to LF in the repository.
2
+ #
3
+ # Eleven Python files were committed with CRLF, socketdev/__init__.py among
4
+ # them. Any tooling that reads and rewrites one of those files converts it to
5
+ # LF on the way out, which turns a two-line change into a whole-file diff and
6
+ # buries the actual edit. Normalizing once and pinning the setting here stops
7
+ # that from recurring.
8
+ * text=auto
9
+
10
+ *.py text eol=lf
11
+ *.pyi text eol=lf
12
+ *.md text eol=lf
13
+ *.rst text eol=lf
14
+ *.toml text eol=lf
15
+ *.cfg text eol=lf
16
+ *.yml text eol=lf
17
+ *.yaml text eol=lf
18
+ *.json text eol=lf
19
+ *.sh text eol=lf
20
+ *.lock text eol=lf
21
+
22
+ # Byte-exact, never line-ending-normalized.
23
+ *.png binary
24
+ *.jpg binary
25
+ *.jpeg binary
26
+ *.gif binary
27
+ *.ico binary
28
+ *.whl binary
29
+ *.gz binary
@@ -9,5 +9,4 @@ runs:
9
9
  - shell: bash
10
10
  run: |
11
11
  python -m pip install --upgrade pip
12
- pip install "virtualenv<20.36"
13
- pip install hatchling==1.27.0 hatch==1.14.0
12
+ python -m pip install "hatch==1.18.1" "hatchling==1.32.4" "virtualenv==21.14.7"
@@ -24,7 +24,7 @@ runs:
24
24
  using: "composite"
25
25
  steps:
26
26
  - if: ${{ inputs.python == 'true' || inputs.uv == 'true' }}
27
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
27
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
28
28
  with:
29
29
  python-version: "3.12"
30
30
 
@@ -0,0 +1,37 @@
1
+ name: API Drift Check
2
+
3
+ # Compares this SDK's hand-maintained enums against the live Socket OpenAPI
4
+ # spec. The spec is public and unauthenticated, so this job needs no secrets,
5
+ # no org and no fixture data.
6
+ #
7
+ # Deliberately NOT a pull_request trigger: it tests the API, not the diff, and a
8
+ # backend change must never block an unrelated SDK pull request.
9
+ #
10
+ # TODO: once this has run green manually a few times, uncomment the schedule
11
+ # below to turn it into an early-warning signal instead of a manual check.
12
+ on:
13
+ workflow_dispatch:
14
+ # schedule:
15
+ # - cron: '0 14 * * 1' # Mondays, 14:00 UTC
16
+
17
+ permissions:
18
+ contents: read
19
+
20
+ jobs:
21
+ enum-drift:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25
+ with:
26
+ fetch-depth: 1
27
+ persist-credentials: false
28
+
29
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
30
+ with:
31
+ python-version: "3.12"
32
+
33
+ - name: Install the SDK
34
+ run: python -m pip install .
35
+
36
+ - name: Compare SDK enums against the live OpenAPI spec
37
+ run: python scripts/check_api_enum_drift.py
@@ -181,7 +181,7 @@ jobs:
181
181
 
182
182
  - name: Upload SFW report artifact
183
183
  if: always()
184
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
184
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
185
185
  with:
186
186
  name: socket-firewall-free-${{ github.event.pull_request.number }}
187
187
  path: sfw-artifacts/
@@ -259,7 +259,7 @@ jobs:
259
259
 
260
260
  - name: Upload SFW report artifact
261
261
  if: always()
262
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
262
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
263
263
  with:
264
264
  name: socket-firewall-enterprise-${{ github.event.pull_request.number }}
265
265
  path: sfw-artifacts/
@@ -23,7 +23,7 @@ jobs:
23
23
  fetch-depth: 1
24
24
  persist-credentials: false
25
25
 
26
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
26
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
27
27
  with:
28
28
  python-version: "3.12"
29
29
 
@@ -50,7 +50,7 @@ jobs:
50
50
  "$RUNNER_TEMP/package-check/bin/python" -c "import socketdev; from socketdev.version import __version__; print('wheel smoke OK', __version__)"
51
51
 
52
52
  - name: Upload distributions
53
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
53
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
54
54
  with:
55
55
  name: socketdev-${{ github.sha }}
56
56
  path: dist/*
@@ -92,7 +92,7 @@ jobs:
92
92
  fetch-depth: 0
93
93
  persist-credentials: false
94
94
 
95
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
95
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
96
96
  with:
97
97
  python-version: "3.12"
98
98
 
@@ -127,7 +127,7 @@ jobs:
127
127
  "$RUNNER_TEMP/preview-check/bin/python" -c "import socketdev; from socketdev.version import __version__; print('preview wheel smoke OK', __version__)"
128
128
 
129
129
  - name: Upload preview distributions
130
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
130
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
131
131
  with:
132
132
  name: socketdev-preview-${{ github.run_id }}-${{ github.run_attempt }}
133
133
  path: dist/*
@@ -144,7 +144,7 @@ jobs:
144
144
  pull-requests: write
145
145
  steps:
146
146
  - name: Download preview distributions
147
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
147
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
148
148
  with:
149
149
  name: socketdev-preview-${{ github.run_id }}-${{ github.run_attempt }}
150
150
  path: dist
@@ -14,7 +14,7 @@ jobs:
14
14
  with:
15
15
  fetch-depth: 0
16
16
  persist-credentials: false
17
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
17
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
18
18
  with:
19
19
  python-version: '3.13'
20
20
 
@@ -6,6 +6,8 @@ on:
6
6
  - 'socketdev/**'
7
7
  - 'pyproject.toml'
8
8
  - 'uv.lock'
9
+ # Included so a change to the check itself is exercised by its own PR.
10
+ - '.github/workflows/version-check.yml'
9
11
 
10
12
  permissions:
11
13
  contents: read
@@ -32,15 +34,29 @@ jobs:
32
34
  PR_VERSION=$(grep -o "__version__.*" socketdev/version.py | awk '{print $3}' | tr -d '"' | tr -d "'")
33
35
  echo "PR_VERSION=$PR_VERSION" >> $GITHUB_ENV
34
36
 
35
- # Get version from main branch
36
- git checkout origin/main
37
- MAIN_VERSION=$(grep -o "__version__.*" socketdev/version.py | awk '{print $3}' | tr -d '"' | tr -d "'")
37
+ # Get version from main branch. Read it straight out of the ref:
38
+ # `git checkout origin/main` leaves the working tree detached on main,
39
+ # so the uv.lock guard below ends up diffing main against itself and
40
+ # never fires.
41
+ MAIN_VERSION=$(git show origin/main:socketdev/version.py | grep -o "__version__.*" | awk '{print $3}' | tr -d '"' | tr -d "'")
38
42
  echo "MAIN_VERSION=$MAIN_VERSION" >> $GITHUB_ENV
39
43
 
40
44
  export PR_VERSION
41
45
  export MAIN_VERSION
42
46
 
43
- # Compare against both main and latest published PyPI release.
47
+ # Only enforce a bump when the PR actually changes shipped content.
48
+ # This workflow sits in its own paths filter so edits to it are
49
+ # exercised, but a CI-only change ships nothing and must not be told
50
+ # to cut a release. The comparison still runs and reports either way.
51
+ if git diff --name-only origin/main...HEAD \
52
+ | grep -qE '^(socketdev/|pyproject\.toml$|uv\.lock$)'; then
53
+ PACKAGE_CHANGED=true
54
+ else
55
+ PACKAGE_CHANGED=false
56
+ fi
57
+ export PACKAGE_CHANGED
58
+
59
+ # Compare against the latest published PyPI release.
44
60
  python3 <<'PY'
45
61
  import json
46
62
  import os
@@ -60,19 +76,47 @@ jobs:
60
76
  published_versions.append(parsed)
61
77
 
62
78
  pypi_ver = max(published_versions) if published_versions else version.parse("0.0.0")
63
- required_floor = max(main_ver, pypi_ver)
64
79
 
65
- if pr_ver <= required_floor:
80
+ enforced = os.environ["PACKAGE_CHANGED"] == "true"
81
+
82
+ def reject(message):
83
+ print(message)
84
+ if enforced:
85
+ raise SystemExit(1)
66
86
  print(
67
- f"❌ Version must be greater than main and PyPI! "
68
- f"Main: {main_ver}, PyPI: {pypi_ver}, PR: {pr_ver}"
87
+ "ℹ️ Not enforced: this PR changes no packaged files, "
88
+ "so it ships nothing that needs a new version."
89
+ )
90
+ raise SystemExit(0)
91
+
92
+ # The only hard requirement is that the version is ahead of what is
93
+ # actually released. Treating main's version as a second floor breaks
94
+ # the legitimate case where several PRs share one unreleased release:
95
+ # the first bumps main to the new version and the rest ride it without
96
+ # bumping again, which is what keeps them under a single changelog
97
+ # header. Main is therefore only a floor when this PR moves the
98
+ # version -- a change to it must go forwards, never backwards.
99
+ if pr_ver <= pypi_ver:
100
+ reject(
101
+ f"❌ Version {pr_ver} is already published on PyPI "
102
+ f"(latest release: {pypi_ver}). Bump it."
103
+ )
104
+
105
+ if pr_ver < main_ver:
106
+ reject(
107
+ f"❌ Version moves backwards: main is {main_ver}, PR is {pr_ver}."
69
108
  )
70
- raise SystemExit(1)
71
109
 
72
- print(
73
- f"✅ Version properly incremented. "
74
- f"Main: {main_ver}, PyPI: {pypi_ver}, PR: {pr_ver}"
75
- )
110
+ if pr_ver == main_ver:
111
+ print(
112
+ f"✅ Riding main's unreleased {pr_ver} "
113
+ f"(latest PyPI release: {pypi_ver})."
114
+ )
115
+ else:
116
+ print(
117
+ f"✅ Version properly incremented. "
118
+ f"Main: {main_ver}, PyPI: {pypi_ver}, PR: {pr_ver}"
119
+ )
76
120
  PY
77
121
 
78
122
  - name: Require uv.lock update when pyproject changes
@@ -1,5 +1,71 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.1
4
+
5
+ ### Security: patched releases of certifi, uv and virtualenv
6
+
7
+ - Updated the locked versions of `certifi` (2025.11.12 → 2026.10.19), `uv`
8
+ (0.11.17 → 0.13.4) and `virtualenv` (20.36.1 → 21.14.7) to pick up fixes for
9
+ critical vulnerabilities. These versions are pinned in `uv.lock`, which
10
+ controls the development and CI environment.
11
+ - socketdev now requires `certifi>=2026.10.19`, so installing it also upgrades
12
+ the CA bundle `requests` uses. Older bundles trust the compromised eMudhra
13
+ intermediate CAs.
14
+ - The release build toolchain (`.github/actions/setup-hatch`) now installs
15
+ `virtualenv==21.14.7` and `hatchling==1.32.4`, matching `uv.lock` and the
16
+ `[build-system]` pin. Published artifacts are built with the patched versions.
17
+ - Raised the `requests` floor to `>=2.33.0`.
18
+
19
+ ### Changed: Python 3.10 or newer is required
20
+
21
+ - `requires-python` is now `>=3.10` (previously `>=3.9`). The patched
22
+ dependency releases no longer support Python 3.9, which reached end of life
23
+ in October 2025. On Python 3.9, pip continues to resolve socketdev 3.6.0.
24
+
25
+ ### Maintenance
26
+
27
+ - Pinned the `hatchling` build backend to 1.32.4 and capped built
28
+ distributions at core metadata 2.4 so the locked Twine can validate them.
29
+ - Raised the dev and test extras floors to `hatch>=1.18.1` and
30
+ `pytest>=9.0.3`.
31
+
32
+ ## 3.6.0
33
+
34
+ ### Changed: every API-sourced enum now tolerates unknown values
35
+
36
+ - `SocketIssueSeverity`, `SocketCategory`, `DiffType` and `SecurityAction`
37
+ now fall back to a documented member instead of raising
38
+ `ValueError` when the API sends a value this release does not know about.
39
+ `SocketPURL_Type` already behaved this way; the others did not, so each was
40
+ one backend addition away from emptying a response the same way issue #78 and
41
+ the unknown `generic` purl type did. `ScanType` is deliberately left strict:
42
+ it is only ever urlencoded onto the create-scan request, so an unrecognized
43
+ value is a caller typo rather than API drift.
44
+ - Fallbacks are deliberate rather than convenient. `SocketIssueSeverity` and
45
+ `DiffType` gained an explicit `UNKNOWN` member because guessing an existing
46
+ level would either hide a real finding or invent one, and `SecurityAction`
47
+ falls back to `DEFER` because that already means "use the configured
48
+ default". Every fallback logs a warning naming the unrecognized value.
49
+ - Added the 10 purl types the API defines that this SDK was missing: `alpm`,
50
+ `chrome`, `clawhub`, `edge-extension`, `firefox-extension`, `qpkg`, `socket`,
51
+ `swid`, `vscode` and `vscode-extension`. Artifacts with those types were
52
+ being flattened to `unknown`.
53
+
54
+ ### Added: enum forward-compatibility is now an enforced invariant
55
+
56
+ - `tests/unit/test_enum_forward_compat.py` discovers every enum in the package,
57
+ including ones added later, and fails if any raises on an unrecognized value.
58
+ The two prior incidents were each fixed with a bespoke test on the single
59
+ enum that happened to fire; this replaces that pattern.
60
+
61
+ ### Added: scheduled check for enum drift against the live API
62
+
63
+ - `scripts/check_api_enum_drift.py` compares the SDK's enums against
64
+ `https://api.socket.dev/v0/openapi`. The spec is public, so the check needs no
65
+ token, org or fixture data. Run by `.github/workflows/api-drift-check.yml`,
66
+ which is manual-dispatch only for now and is not a pull request check --- it
67
+ tests the API rather than the diff.
68
+
3
69
  ## 3.5.0
4
70
 
5
71
  ### Changed: bound runtime dependency ranges and pin build backend
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: socketdev
3
- Version: 3.5.0
3
+ Version: 3.6.1
4
4
  Summary: Socket Security Python SDK
5
5
  Project-URL: Homepage, https://github.com/SocketDev/socket-sdk-python
6
6
  Author-email: Douglas Coburn <douglas@socket.dev>
@@ -35,23 +35,29 @@ Classifier: Programming Language :: Python :: 3.11
35
35
  Classifier: Programming Language :: Python :: 3.12
36
36
  Classifier: Programming Language :: Python :: 3.13
37
37
  Classifier: Programming Language :: Python :: 3.14
38
- Requires-Python: >=3.9
39
- Requires-Dist: requests<3,>=2.32.5
38
+ Requires-Python: >=3.10
39
+ Requires-Dist: certifi>=2026.10.19
40
+ Requires-Dist: requests<3,>=2.33.0
40
41
  Requires-Dist: typing-extensions<5,>=4.12.2
41
42
  Provides-Extra: dev
42
- Requires-Dist: hatch>=1.14.0; extra == 'dev'
43
+ Requires-Dist: hatch>=1.18.1; extra == 'dev'
43
44
  Requires-Dist: hatchling>=1.27.0; extra == 'dev'
44
45
  Requires-Dist: ruff>=0.3.0; extra == 'dev'
45
46
  Requires-Dist: twine>=4.0.0; extra == 'dev'
46
47
  Provides-Extra: test
47
48
  Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
48
- Requires-Dist: pytest>=7.0.0; extra == 'test'
49
+ Requires-Dist: pytest>=9.0.3; extra == 'test'
49
50
  Description-Content-Type: text/x-rst
50
51
 
51
52
 
52
53
  socketdev
53
54
  #########
54
55
 
56
+ Supported Python versions
57
+ -------------------------
58
+
59
+ This SDK supports Python 3.10 and newer.
60
+
55
61
  Purpose
56
62
  -------
57
63