Skip to content

Commit 98cfb28

Browse files
feat: Store and return a sha256 checksum for uploaded extensions (reland)
1 parent 58133f5 commit 98cfb28

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 125
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-4655211f0824a1eb5d534731697ea215c19e769e3c63ac61ca306c7a3140b0b4.yml
3-
openapi_spec_hash: 0a440e663f1704d4b9a3a3ac5fa75ffb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-f040d3f5c26d6e0d312206b294d3745b272e26b883e7d704f6b4c45dd438cd01.yml
3+
openapi_spec_hash: 56f4918d2e3f8d717ffe3643a20feb96
44
config_hash: 06186eb40e0058a2a87ac251fc07415d

src/kernel/types/extension_get_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ class ExtensionGetResponse(BaseModel):
2020
size_bytes: int
2121
"""Size of the extension archive in bytes"""
2222

23+
checksum: Optional[str] = None
24+
"""
25+
SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded
26+
extension archive bytes. This is not a normalized checksum of the extension
27+
contents; archive metadata, file ordering, and compression can change the
28+
checksum for otherwise identical contents. Omitted for legacy rows and
29+
server-repackaged Chrome Web Store extensions.
30+
"""
31+
2332
last_used_at: Optional[datetime] = None
2433
"""Timestamp when the extension was last used"""
2534

src/kernel/types/extension_list_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ class ExtensionListResponse(BaseModel):
2020
size_bytes: int
2121
"""Size of the extension archive in bytes"""
2222

23+
checksum: Optional[str] = None
24+
"""
25+
SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded
26+
extension archive bytes. This is not a normalized checksum of the extension
27+
contents; archive metadata, file ordering, and compression can change the
28+
checksum for otherwise identical contents. Omitted for legacy rows and
29+
server-repackaged Chrome Web Store extensions.
30+
"""
31+
2332
last_used_at: Optional[datetime] = None
2433
"""Timestamp when the extension was last used"""
2534

src/kernel/types/extension_upload_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ class ExtensionUploadResponse(BaseModel):
2020
size_bytes: int
2121
"""Size of the extension archive in bytes"""
2222

23+
checksum: Optional[str] = None
24+
"""
25+
SHA-256 checksum, encoded as lowercase hexadecimal, of the exact uploaded
26+
extension archive bytes. This is not a normalized checksum of the extension
27+
contents; archive metadata, file ordering, and compression can change the
28+
checksum for otherwise identical contents. Omitted for legacy rows and
29+
server-repackaged Chrome Web Store extensions.
30+
"""
31+
2332
last_used_at: Optional[datetime] = None
2433
"""Timestamp when the extension was last used"""
2534

0 commit comments

Comments
 (0)