elevenlabs_client 0.8.0 → 0.8.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 165b9737c40e5e121765cd1b279343d95a5bdf263aaf94c0d44f8205d1ba6f6d
4
- data.tar.gz: e87f64475a509af9f4c5a8fc0080cc589e88a284cf5101ffe101694a188dc5f4
3
+ metadata.gz: e5d07e9e3fe474540a23a42b42a96747e9e3dd3e17a6153df716f940aff72d37
4
+ data.tar.gz: 22ac0f66c064c51bc5ae145cde35dc22fde3fd96fbe3999cf74aa29b43f970ec
5
5
  SHA512:
6
- metadata.gz: 15e3fc076b5421b37c8c137c154ce3d31e9ed1e07c366ffa47ed4b50337307da942b17ea75fe63a73805679cd07b76eeb2c56011b1ebc4ba5acbc0e477401b05
7
- data.tar.gz: a8abacc7184134652c94e24a37a8f111b5a99dfb284b380f07b1a03ce945b62da5253e661f54101877a6aba2fbfd9c49dc6450cfe43fb3b728a8d07935f2f5b5
6
+ metadata.gz: 922bcdfbc466fe0feb260ab103e15a6047b2e9af9e281c978561c7e17fca10cff9420a70a117eb32513a30b51c072ea2bf7b133b8efface1b7c15cb31630f583
7
+ data.tar.gz: bfbe4871e45a213e08e7b46f2799418e43b1e26c1b5b585565a27a7bf6c5b1bfef8b5b505c3226d9e9f59299b333b59488e84ad380ff9b70bbd044fb3b8a6f9e
data/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.1] - 2025-12-03
11
+
12
+ ### Fixed
13
+ - **🔧 Document Upload MIME Types** - Fixed `invalid_file_type` errors when uploading documents to knowledge base
14
+ - Added support for document MIME types in `HttpClient#mime_for` method:
15
+ - PDF: `application/pdf`
16
+ - EPUB: `application/epub+zip`
17
+ - DOCX: `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
18
+ - DOC: `application/msword`
19
+ - TXT: `text/plain`
20
+ - HTML/HTM: `text/html`
21
+ - Markdown: `text/markdown`
22
+ - Previously, all document types defaulted to `application/octet-stream`, causing ElevenLabs API to reject valid files
23
+ - Added comprehensive test coverage for MIME type detection
24
+
10
25
  ## [0.8.0] - 2024-09-17
11
26
 
12
27
  ### Added
@@ -318,6 +318,13 @@ module ElevenlabsClient
318
318
  when ".wav" then "audio/wav"
319
319
  when ".flac" then "audio/flac"
320
320
  when ".m4a" then "audio/mp4"
321
+ when ".pdf" then "application/pdf"
322
+ when ".epub" then "application/epub+zip"
323
+ when ".docx" then "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
324
+ when ".doc" then "application/msword"
325
+ when ".txt" then "text/plain"
326
+ when ".html", ".htm" then "text/html"
327
+ when ".md" then "text/markdown"
321
328
  else "application/octet-stream"
322
329
  end
323
330
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ElevenlabsClient
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elevenlabs_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitor Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-17 00:00:00.000000000 Z
11
+ date: 2025-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday