licos-dev-sdk 0.4.7__tar.gz → 0.4.8__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.
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/PKG-INFO +1 -1
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/pyproject.toml +1 -1
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/_usage_identity.py +1 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_usage_identity.py +4 -1
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/.gitignore +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/DOCX.md +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/__init__.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/_utils.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/archive.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/chart.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/data.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/diagram.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_common.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_edit.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_expectations.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_inspect.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_layout.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_package.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_preservation.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_structure.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_table.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_table_actions.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_read.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_table_export.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/image.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/model.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/observability.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/pdf_inspect.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/ppt_master_runtime.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/presentation.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/presentation_canvas.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/presentation_inspect.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/spreadsheet.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/spreadsheet_edit.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/spreadsheet_html.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/spreadsheet_inspect.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/web.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_document_read.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_document_spreadsheet.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_document_table_export.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_docx_inspect.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_docx_structure.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_docx_table_edit.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_html_docx_features.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_langchain_protocol.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_model.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_observability.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_output_paths.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_ppt_master_runtime.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_presentation.py +0 -0
- {licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/tests/test_spreadsheet_html_edit.py +0 -0
|
@@ -26,6 +26,7 @@ def detail(context: str, expires_at: float) -> dict:
|
|
|
26
26
|
IDENTITY_HEADERS[1]: f"{context}-signature",
|
|
27
27
|
IDENTITY_HEADERS[2]: f"{context}-credential",
|
|
28
28
|
IDENTITY_HEADERS[3]: f"{context}-workspace",
|
|
29
|
+
IDENTITY_HEADERS[4]: "prod",
|
|
29
30
|
"X-Provider-Unrelated": "must-not-merge",
|
|
30
31
|
"X-Licos-Owner-User-Id": "must-not-replace",
|
|
31
32
|
},
|
|
@@ -49,6 +50,7 @@ class UsageIdentityTests(unittest.TestCase):
|
|
|
49
50
|
self.runtime = model.ModelRuntime(
|
|
50
51
|
base_url="http://platform.example", token="user-token", workspace_id="workspace-1",
|
|
51
52
|
user_id="owner-1", current_user_id="caller-1", owner_project_id="project-1",
|
|
53
|
+
runtime_env="deploy",
|
|
52
54
|
)
|
|
53
55
|
|
|
54
56
|
def test_valid_lease_reuses_signed_snapshot(self) -> None:
|
|
@@ -97,7 +99,7 @@ class UsageIdentityTests(unittest.TestCase):
|
|
|
97
99
|
model._post_model_json(selected, self.runtime, {"model": "qwen-test"})
|
|
98
100
|
request.assert_not_called()
|
|
99
101
|
|
|
100
|
-
def
|
|
102
|
+
def test_submit_replaces_trusted_headers_and_retains_owner_and_caller(self) -> None:
|
|
101
103
|
with mock.patch("time.time", return_value=100):
|
|
102
104
|
selected = endpoint(120)
|
|
103
105
|
with mock.patch.object(model, "_fetch_model_detail", return_value=detail("renewed", 200)) as fetch, \
|
|
@@ -107,6 +109,7 @@ class UsageIdentityTests(unittest.TestCase):
|
|
|
107
109
|
fetch.assert_called_once_with(self.runtime, "qwen-test", refresh=True)
|
|
108
110
|
headers = request.call_args.kwargs["headers"]
|
|
109
111
|
self.assertEqual(headers[IDENTITY_HEADERS[0]], "renewed")
|
|
112
|
+
self.assertEqual(headers[IDENTITY_HEADERS[4]], "prod")
|
|
110
113
|
self.assertNotIn(IDENTITY_HEADERS[0].lower(), headers)
|
|
111
114
|
self.assertEqual(headers["X-Licos-Owner-User-Id"], "owner-1")
|
|
112
115
|
self.assertEqual(headers["X-Licos-Current-User-Id"], "caller-1")
|
|
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
|
|
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
|
|
File without changes
|
{licos_dev_sdk-0.4.7 → licos_dev_sdk-0.4.8}/src/licos_dev_sdk/document_docx_table_actions.py
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|