codemie-sdk-python 0.1.68__tar.gz → 0.1.70__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.
Potentially problematic release.
This version of codemie-sdk-python might be problematic. Click here for more details.
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/PKG-INFO +1 -1
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/pyproject.toml +1 -1
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/__init__.py +1 -1
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/integration.py +19 -1
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/integration.py +21 -1
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/README.md +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/auth/__init__.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/auth/credentials.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/client/__init__.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/client/client.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/exceptions.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/assistant.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/common.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/datasource.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/llm.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/task.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/user.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/workflow.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/workflow_state.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/assistant.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/datasource.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/llm.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/task.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/user.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/workflow.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/workflow_execution.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/workflow_execution_state.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/utils/__init__.py +0 -0
- {codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/utils/http.py +0 -0
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/integration.py
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Models for assistant-related data structures."""
|
|
2
2
|
|
|
3
|
+
from datetime import datetime
|
|
3
4
|
from enum import Enum
|
|
4
5
|
from typing import List, Optional, Any
|
|
5
|
-
from datetime import datetime
|
|
6
6
|
|
|
7
7
|
from pydantic import BaseModel, Field, ConfigDict, field_serializer
|
|
8
8
|
|
|
@@ -75,3 +75,21 @@ class Integration(BaseModel):
|
|
|
75
75
|
@field_serializer("date", "update_date")
|
|
76
76
|
def serialize_dt(self, dt: datetime, _info):
|
|
77
77
|
return dt.isoformat()
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class TestIntegrationRequest(BaseModel):
|
|
81
|
+
"""Model for test integration request."""
|
|
82
|
+
|
|
83
|
+
credential_type: str
|
|
84
|
+
credential_values: Optional[List[CredentialValues]] = None
|
|
85
|
+
setting_id: Optional[str] = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class TestIntegrationResponse(BaseModel):
|
|
89
|
+
"""Model for test integration response."""
|
|
90
|
+
|
|
91
|
+
def __getitem__(self, key):
|
|
92
|
+
return getattr(self, key)
|
|
93
|
+
|
|
94
|
+
message: str
|
|
95
|
+
success: bool
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/integration.py
RENAMED
|
@@ -5,7 +5,11 @@ from typing import List, Optional, Dict, Any
|
|
|
5
5
|
|
|
6
6
|
from ..exceptions import NotFoundError
|
|
7
7
|
from ..models.common import PaginationParams
|
|
8
|
-
from ..models.integration import
|
|
8
|
+
from ..models.integration import (
|
|
9
|
+
Integration,
|
|
10
|
+
IntegrationType,
|
|
11
|
+
TestIntegrationRequest,
|
|
12
|
+
)
|
|
9
13
|
from ..utils import ApiRequestHandler
|
|
10
14
|
|
|
11
15
|
|
|
@@ -150,3 +154,19 @@ class IntegrationService:
|
|
|
150
154
|
return self._api.delete(
|
|
151
155
|
f"{self._get_base_path(setting_type)}/{setting_id}", dict
|
|
152
156
|
)
|
|
157
|
+
|
|
158
|
+
def test(self, integration: TestIntegrationRequest, response_type: Any) -> Any:
|
|
159
|
+
"""Test an integration.
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
integration: TestIntegrationRequest - integration to test
|
|
163
|
+
response_type: Type of response expected
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
Test integration response
|
|
167
|
+
"""
|
|
168
|
+
return self._api.post(
|
|
169
|
+
"/v1/settings/test/",
|
|
170
|
+
response_model=response_type,
|
|
171
|
+
json_data=integration.model_dump(exclude_none=True),
|
|
172
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/models/workflow_state.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/assistant.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.68 → codemie_sdk_python-0.1.70}/src/codemie_sdk/services/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|