Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0"
".": "0.2.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/linq%2Flinq-api-v3-f8792c6b363e576dac7e828e06a800eb52eaf45c1ea653ae6db16289e64b575d.yml
openapi_spec_hash: 2f0f5e232bdf9c4e2021773575354fdb
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/linq%2Flinq-api-v3-c5bcd9ca6063e60608524c34230d29b3d85e3d44b43edb686540e3400692fda7.yml
openapi_spec_hash: 887410236b624086a0e22a9fa8d468be
config_hash: be5410c6c4d8f36a7cd93c8950bc90d6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.2.1 (2026-04-07)

Full Changelog: [v0.2.0...v0.2.1](https://github.com/linq-team/linq-python/compare/v0.2.0...v0.2.1)

### Bug Fixes

* add SVG support to synapse attachments ([c329c0a](https://github.com/linq-team/linq-python/commit/c329c0a19f398623d5035d1ff9e60375fc368f23))

## 0.2.0 (2026-04-04)

Full Changelog: [v0.1.0...v0.2.0](https://github.com/linq-team/linq-python/compare/v0.1.0...v0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "linq-python"
version = "0.2.0"
version = "0.2.1"
description = "The official Python library for the linq-api-v3 API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/linq/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "linq"
__version__ = "0.2.0" # x-release-please-version
__version__ = "0.2.1" # x-release-please-version
60 changes: 42 additions & 18 deletions src/linq/resources/attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,25 +199,37 @@ def create(
content_type: Supported MIME types for file attachments and media URLs.

**Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
image/tiff, image/bmp
image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon

**Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
**Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
video/x-msvideo, video/3gpp

**Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
audio/aiff, audio/aac, audio/amr
**Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
audio/aac, audio/midi, audio/amr

**Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
text/csv, text/html, text/calendar, application/msword,
text/csv, text/html, text/calendar, text/xml, application/json,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-powerpoint,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.apple.pages, application/vnd.apple.numbers,
application/vnd.apple.keynote, application/epub+zip, application/zip
application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
application/x-gzip

**Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
rejected.
**Deprecated (accepted but transcoded):**

- `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
will be delivered as audio/mpeg.
- `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
will be delivered as audio/x-m4a.
- `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
audio/aiff will be delivered as audio/x-aiff.
- `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.

**Unsupported:** FLAC, OGG, and executable files are explicitly rejected.

filename: Name of the file to upload

Expand Down Expand Up @@ -458,25 +470,37 @@ async def create(
content_type: Supported MIME types for file attachments and media URLs.

**Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
image/tiff, image/bmp
image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon

**Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
**Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
video/x-msvideo, video/3gpp

**Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
audio/aiff, audio/aac, audio/amr
**Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
audio/aac, audio/midi, audio/amr

**Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
text/csv, text/html, text/calendar, application/msword,
text/csv, text/html, text/calendar, text/xml, application/json,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-powerpoint,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.apple.pages, application/vnd.apple.numbers,
application/vnd.apple.keynote, application/epub+zip, application/zip
application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
application/x-gzip

**Deprecated (accepted but transcoded):**

- `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
will be delivered as audio/mpeg.
- `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
will be delivered as audio/x-m4a.
- `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
audio/aiff will be delivered as audio/x-aiff.
- `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.

**Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
rejected.
**Unsupported:** FLAC, OGG, and executable files are explicitly rejected.

filename: Name of the file to upload

Expand Down
30 changes: 21 additions & 9 deletions src/linq/types/attachment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,37 @@ class AttachmentCreateParams(TypedDict, total=False):
"""Supported MIME types for file attachments and media URLs.

**Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
image/tiff, image/bmp
image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon

**Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
**Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
video/x-msvideo, video/3gpp

**Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
audio/aiff, audio/aac, audio/amr
**Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
audio/aac, audio/midi, audio/amr

**Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
text/csv, text/html, text/calendar, application/msword,
text/csv, text/html, text/calendar, text/xml, application/json,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-powerpoint,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.apple.pages, application/vnd.apple.numbers,
application/vnd.apple.keynote, application/epub+zip, application/zip
application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
application/x-gzip

**Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
rejected.
**Deprecated (accepted but transcoded):**

- `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
will be delivered as audio/mpeg.
- `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
will be delivered as audio/x-m4a.
- `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
audio/aiff will be delivered as audio/x-aiff.
- `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.

**Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
"""

filename: Required[str]
Expand Down
30 changes: 21 additions & 9 deletions src/linq/types/attachment_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,37 @@ class AttachmentRetrieveResponse(BaseModel):
"""Supported MIME types for file attachments and media URLs.

**Images:** image/jpeg, image/png, image/gif, image/heic, image/heif,
image/tiff, image/bmp
image/tiff, image/bmp, image/svg+xml, image/webp, image/x-icon

**Videos:** video/mp4, video/quicktime, video/mpeg, video/3gpp
**Videos:** video/mp4, video/quicktime, video/mpeg, video/mpeg2,
video/x-msvideo, video/3gpp

**Audio:** audio/mpeg, audio/mp4, audio/x-m4a, audio/x-caf, audio/wav,
audio/aiff, audio/aac, audio/amr
**Audio:** audio/mpeg, audio/x-m4a, audio/x-caf, audio/x-wav, audio/x-aiff,
audio/aac, audio/midi, audio/amr

**Documents:** application/pdf, text/plain, text/markdown, text/vcard, text/rtf,
text/csv, text/html, text/calendar, application/msword,
text/csv, text/html, text/calendar, text/xml, application/json,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-powerpoint,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.apple.pages, application/vnd.apple.numbers,
application/vnd.apple.keynote, application/epub+zip, application/zip
application/x-iwork-pages-sffpages, application/x-iwork-numbers-sffnumbers,
application/x-iwork-keynote-sffkey, application/epub+zip, application/zip,
application/x-gzip

**Unsupported:** WebP, SVG, FLAC, OGG, and executable files are explicitly
rejected.
**Deprecated (accepted but transcoded):**

- `audio/mp3` — Deprecated. Use `audio/mpeg` instead. Files sent as audio/mp3
will be delivered as audio/mpeg.
- `audio/mp4` — Deprecated. Use `audio/x-m4a` instead. Files sent as audio/mp4
will be delivered as audio/x-m4a.
- `audio/aiff` — Deprecated. Use `audio/x-aiff` instead. Files sent as
audio/aiff will be delivered as audio/x-aiff.
- `image/tiff` — Accepted, but TIFF images are transcoded to JPEG for delivery.

**Unsupported:** FLAC, OGG, and executable files are explicitly rejected.
"""

created_at: datetime
Expand Down
24 changes: 11 additions & 13 deletions src/linq/types/supported_content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,38 @@

SupportedContentType: TypeAlias = Literal[
"image/jpeg",
"image/jpg",
"image/png",
"image/gif",
"image/heic",
"image/heif",
"image/tiff",
"image/bmp",
"image/x-ms-bmp",
"image/svg+xml",
"image/webp",
"image/x-icon",
"video/mp4",
"video/quicktime",
"video/mpeg",
"video/mpeg2",
"video/x-m4v",
"video/x-msvideo",
"video/3gpp",
"audio/mpeg",
"audio/mp3",
"audio/mp4",
"audio/x-m4a",
"audio/m4a",
"audio/mp4",
"audio/x-caf",
"audio/wav",
"audio/x-wav",
"audio/aiff",
"audio/x-aiff",
"audio/aiff",
"audio/aac",
"audio/x-aac",
"audio/midi",
"audio/amr",
"application/pdf",
"text/plain",
"text/markdown",
"text/vcard",
"text/x-vcard",
"text/rtf",
"application/rtf",
"text/csv",
"text/html",
"text/calendar",
Expand All @@ -48,13 +47,12 @@
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.apple.pages",
"application/x-iwork-pages-sffpages",
"application/vnd.apple.numbers",
"application/x-iwork-numbers-sffnumbers",
"application/vnd.apple.keynote",
"application/x-iwork-keynote-sffkey",
"application/epub+zip",
"text/xml",
"application/json",
"application/zip",
"application/x-zip-compressed",
"application/x-gzip",
]
Loading