lumera 0.5.0__tar.gz → 0.5.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lumera
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: SDK for building on Lumera platform
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: requests
@@ -26,7 +26,7 @@ Requires-Dist: openai-agents<1.0.0,>=0.6.5; extra == "full"
26
26
  Requires-Dist: openpyxl==3.1.5; extra == "full"
27
27
  Requires-Dist: pandas==2.3.0; extra == "full"
28
28
  Requires-Dist: pdfplumber; extra == "full"
29
- Requires-Dist: pydantic==2.11.7; extra == "full"
29
+ Requires-Dist: pydantic<3.0.0,>=2.12.3; extra == "full"
30
30
  Requires-Dist: PyGithub==2.6.1; extra == "full"
31
31
  Requires-Dist: python-dotenv==1.1.0; extra == "full"
32
32
  Requires-Dist: pyzmq; extra == "full"
@@ -268,15 +268,15 @@ def list_records(
268
268
  limit: Alternative to ``per_page`` for cursor-style queries.
269
269
  offset: Starting offset for cursor-style queries.
270
270
  sort: Optional sort expression (e.g. ``"-created"``).
271
- filter: Accepts either a raw filter string (e.g.
272
- ``"status = 'ok'"``) or a structured filter encoded as a mapping/
273
- sequence. Structured filters mirror the Page Builder helpers, e.g.:
271
+ filter: Filter as dict (JSON object). String filters are NOT supported.
272
+ Use dict syntax with optional comparison operators:
274
273
 
275
- * ``{"and": [{"status": {"eq": "active"}}, {"owner_id": user_id}]}``
276
- * ``{"or": [{"created": {"gt": "2024-01-01"}}, {"stage": "new"}]}``
274
+ * Simple equality: ``{"status": "pending"}``
275
+ * Comparison: ``{"amount": {"gt": 1000}}`` (gt, gte, lt, lte, eq)
276
+ * OR logic: ``{"or": [{"status": "a"}, {"status": "b"}]}``
277
+ * AND (implicit): ``{"status": "active", "amount": {"gt": 100}}``
277
278
 
278
- The SDK JSON-encodes structured filters so the API can build
279
- tenant-aware expressions automatically.
279
+ The SDK JSON-encodes the filter for the API.
280
280
  expand: Optional comma-separated list of relation fields to expand.
281
281
  Expanded relations are included inline in the record response.
282
282
  Example: ``"user_id,company_id"`` or ``"line_items_via_deposit_id"``
@@ -135,7 +135,7 @@ def upload(
135
135
  # Construct result
136
136
  result: UploadResult = {
137
137
  "url": data.get("download_url", ""),
138
- "object_key": data.get("object_key", ""),
138
+ "object_key": data.get("object_name", ""),
139
139
  "path": path,
140
140
  "size": size,
141
141
  "content_type": content_type,
@@ -260,7 +260,8 @@ def list_files(prefix: str | None = None) -> list[dict[str, Any]]:
260
260
  resp = requests.get(f"{API_BASE}/agent-runs/{run_id}/files", headers=headers, timeout=30)
261
261
  resp.raise_for_status()
262
262
 
263
- files = resp.json()
263
+ data = resp.json()
264
+ files = data.get("files", [])
264
265
 
265
266
  # Filter by prefix if provided
266
267
  if prefix:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lumera
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: SDK for building on Lumera platform
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: requests
@@ -26,7 +26,7 @@ Requires-Dist: openai-agents<1.0.0,>=0.6.5; extra == "full"
26
26
  Requires-Dist: openpyxl==3.1.5; extra == "full"
27
27
  Requires-Dist: pandas==2.3.0; extra == "full"
28
28
  Requires-Dist: pdfplumber; extra == "full"
29
- Requires-Dist: pydantic==2.11.7; extra == "full"
29
+ Requires-Dist: pydantic<3.0.0,>=2.12.3; extra == "full"
30
30
  Requires-Dist: PyGithub==2.6.1; extra == "full"
31
31
  Requires-Dist: python-dotenv==1.1.0; extra == "full"
32
32
  Requires-Dist: pyzmq; extra == "full"
@@ -23,7 +23,7 @@ openai-agents<1.0.0,>=0.6.5
23
23
  openpyxl==3.1.5
24
24
  pandas==2.3.0
25
25
  pdfplumber
26
- pydantic==2.11.7
26
+ pydantic<3.0.0,>=2.12.3
27
27
  PyGithub==2.6.1
28
28
  python-dotenv==1.1.0
29
29
  pyzmq
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lumera"
3
- version = "0.5.0"
3
+ version = "0.5.2"
4
4
  description = "SDK for building on Lumera platform"
5
5
  requires-python = ">=3.11"
6
6
  dependencies = [
@@ -34,7 +34,7 @@ full = [
34
34
  "openpyxl==3.1.5",
35
35
  "pandas==2.3.0",
36
36
  "pdfplumber",
37
- "pydantic==2.11.7",
37
+ "pydantic>=2.12.3,<3.0.0",
38
38
  "PyGithub==2.6.1",
39
39
  "python-dotenv==1.1.0",
40
40
  "pyzmq",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes