shiftaiagenticinfra-sdk-python 0.0.8__tar.gz → 0.0.9__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.
Files changed (27) hide show
  1. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/PKG-INFO +17 -1
  2. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/README.md +16 -0
  3. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/pyproject.toml +1 -1
  4. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/conversations_api.py +69 -3
  5. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/models/__init__.py +12 -0
  6. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftaiagenticinfra_sdk_python.egg-info/PKG-INFO +17 -1
  7. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/setup.cfg +0 -0
  8. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/setup.py +0 -0
  9. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/__init__.py +0 -0
  10. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/__init__.py +0 -0
  11. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/agents_api.py +0 -0
  12. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/analytics_api.py +0 -0
  13. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/internal/__init__.py +0 -0
  14. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/internal/trulens_api.py +0 -0
  15. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/messages_api.py +0 -0
  16. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/platform_api.py +0 -0
  17. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/platform_session_api.py +0 -0
  18. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/api/users_api.py +0 -0
  19. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/client.py +0 -0
  20. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/http/__init__.py +0 -0
  21. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/http/exceptions.py +0 -0
  22. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftai/http/http_client.py +0 -0
  23. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftaiagenticinfra_sdk_python.egg-info/SOURCES.txt +0 -0
  24. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftaiagenticinfra_sdk_python.egg-info/dependency_links.txt +0 -0
  25. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftaiagenticinfra_sdk_python.egg-info/requires.txt +0 -0
  26. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/shiftaiagenticinfra_sdk_python.egg-info/top_level.txt +0 -0
  27. {shiftaiagenticinfra_sdk_python-0.0.8 → shiftaiagenticinfra_sdk_python-0.0.9}/tests/test_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shiftaiagenticinfra-sdk-python
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Shiftai Agentic Infra Python SDK
5
5
  Author: ShiftAI
6
6
  Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
@@ -458,6 +458,22 @@ Get all conversations for a specific user.
458
458
 
459
459
  **Return Type:** `List[ConversationSummaryResponse]`
460
460
 
461
+ #### `await conversations.get_conversations_by_email(email)`
462
+ Get all conversations for a specific user by email.
463
+
464
+ **Parameters:**
465
+ - `email` (str, required): User's email address
466
+
467
+ **Return Type:** `List[ConversationSummaryResponse]`
468
+
469
+ #### `await conversations.delete_conversation(conversation_id)`
470
+ Delete a conversation.
471
+
472
+ **Parameters:**
473
+ - `conversation_id` (UUID, required): Conversation identifier
474
+
475
+ **Return Type:** `Dict[str, Any]`
476
+
461
477
  ## Error Handling
462
478
 
463
479
  The SDK surfaces HTTP errors as typed exceptions:
@@ -429,6 +429,22 @@ Get all conversations for a specific user.
429
429
 
430
430
  **Return Type:** `List[ConversationSummaryResponse]`
431
431
 
432
+ #### `await conversations.get_conversations_by_email(email)`
433
+ Get all conversations for a specific user by email.
434
+
435
+ **Parameters:**
436
+ - `email` (str, required): User's email address
437
+
438
+ **Return Type:** `List[ConversationSummaryResponse]`
439
+
440
+ #### `await conversations.delete_conversation(conversation_id)`
441
+ Delete a conversation.
442
+
443
+ **Parameters:**
444
+ - `conversation_id` (UUID, required): Conversation identifier
445
+
446
+ **Return Type:** `Dict[str, Any]`
447
+
432
448
  ## Error Handling
433
449
 
434
450
  The SDK surfaces HTTP errors as typed exceptions:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "shiftaiagenticinfra-sdk-python"
7
- version = "0.0.8"
7
+ version = "0.0.9"
8
8
  description = "Shiftai Agentic Infra Python SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,12 +1,17 @@
1
1
  """
2
2
  API for platform conversation operations.
3
- Provides methods for retrieving conversation messages and listing conversations.
3
+ Provides methods for retrieving and managing conversations.
4
4
  """
5
5
 
6
- from typing import List
6
+ from typing import List, Dict, Any
7
7
  from uuid import UUID
8
8
  from ..http import HttpClient
9
- from ..models import ConversationMessageResponse, ConversationSummaryResponse
9
+ from ..models import (
10
+ ConversationMessageResponse,
11
+ ConversationSummaryResponse,
12
+ GetConversationsByEmailRequest,
13
+ DeleteConversationRequest,
14
+ )
10
15
 
11
16
 
12
17
  class ConversationsApi:
@@ -106,4 +111,65 @@ class ConversationsApi:
106
111
  request,
107
112
  ConversationSummaryResponse
108
113
  )
114
+
115
+ async def get_conversations_by_email(
116
+ self,
117
+ email: str,
118
+ ) -> List[ConversationSummaryResponse]:
119
+ """
120
+ Get all conversations for a specific user by email within the authenticated project.
121
+
122
+ POST /api/platform/conversations/email
123
+
124
+ Args:
125
+ email: User's email address (required)
126
+
127
+ Returns:
128
+ List of conversation summaries for the user
129
+
130
+ Raises:
131
+ ValueError: If email is missing or API key is not configured
132
+ ApiException: If the API request fails
133
+ """
134
+ self._http_client.ensure_authenticated()
135
+
136
+ if not email or not email.strip():
137
+ raise ValueError("email is required")
138
+
139
+ request = GetConversationsByEmailRequest(email=email.strip())
140
+
141
+ return await self._http_client.post_list(
142
+ "/api/platform/conversations/email",
143
+ request,
144
+ ConversationSummaryResponse,
145
+ )
146
+
147
+ async def delete_conversation(
148
+ self,
149
+ conversation_id: UUID,
150
+ ) -> Dict[str, Any]:
151
+ """
152
+ Delete a conversation.
153
+
154
+ POST /api/platform/conversation/delete
155
+
156
+ Args:
157
+ conversation_id: UUID of the conversation to delete (required)
158
+
159
+ Returns:
160
+ Dict with:
161
+ - On success (200): success, message, timestamp
162
+ - On errors (4xx/5xx): error, message, status, timestamp
163
+ """
164
+ self._http_client.ensure_authenticated()
165
+
166
+ if conversation_id is None:
167
+ raise ValueError("conversation_id is required")
168
+
169
+ request = DeleteConversationRequest(conversationId=conversation_id)
170
+
171
+ return await self._http_client.post_map(
172
+ "/api/platform/conversation/delete",
173
+ request,
174
+ )
109
175
 
@@ -335,6 +335,18 @@ class ConversationSummaryResponse:
335
335
  conversationTitle: Optional[str] = None # LLM-generated conversation title
336
336
 
337
337
 
338
+ @dataclass
339
+ class GetConversationsByEmailRequest:
340
+ """Request object for retrieving conversations by user email."""
341
+ email: str
342
+
343
+
344
+ @dataclass
345
+ class DeleteConversationRequest:
346
+ """Request object for deleting a conversation."""
347
+ conversationId: UUID
348
+
349
+
338
350
  @dataclass
339
351
  class ConversationMessageResponse:
340
352
  """Simplified message response for conversation messages.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shiftaiagenticinfra-sdk-python
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Shiftai Agentic Infra Python SDK
5
5
  Author: ShiftAI
6
6
  Author-email: ShiftAI <s.tadakamalla@theshiftai.in>
@@ -458,6 +458,22 @@ Get all conversations for a specific user.
458
458
 
459
459
  **Return Type:** `List[ConversationSummaryResponse]`
460
460
 
461
+ #### `await conversations.get_conversations_by_email(email)`
462
+ Get all conversations for a specific user by email.
463
+
464
+ **Parameters:**
465
+ - `email` (str, required): User's email address
466
+
467
+ **Return Type:** `List[ConversationSummaryResponse]`
468
+
469
+ #### `await conversations.delete_conversation(conversation_id)`
470
+ Delete a conversation.
471
+
472
+ **Parameters:**
473
+ - `conversation_id` (UUID, required): Conversation identifier
474
+
475
+ **Return Type:** `Dict[str, Any]`
476
+
461
477
  ## Error Handling
462
478
 
463
479
  The SDK surfaces HTTP errors as typed exceptions: