assistant-runtime-sdk 1.3.0__tar.gz → 1.4.0__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.
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/PKG-INFO +1 -1
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/__init__.py +1 -1
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/async_client.py +44 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/pyproject.toml +1 -1
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/LICENSE +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/README.md +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/auth.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/base.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/client.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/exceptions.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/skills.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/streaming.py +0 -0
- {assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/types.py +0 -0
{assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/async_client.py
RENAMED
|
@@ -461,6 +461,11 @@ class AsyncAssistantRuntimeClient(BaseAssistantRuntimeClient):
|
|
|
461
461
|
endpoint, payload = self._prepare_accept_terms(terms_version, accepted_by)
|
|
462
462
|
return await self._request_post_json(endpoint, payload)
|
|
463
463
|
|
|
464
|
+
async def get_terms_status(self, timeout: Optional[float] = None) -> Optional[Dict[str, Any]]:
|
|
465
|
+
"""Async version of AssistantRuntimeClient.get_terms_status."""
|
|
466
|
+
endpoint, params = self._prepare_get_terms_status()
|
|
467
|
+
return await self._request_get(endpoint, params, timeout=timeout)
|
|
468
|
+
|
|
464
469
|
# =========================================================================
|
|
465
470
|
# Model APIs
|
|
466
471
|
# =========================================================================
|
|
@@ -1956,6 +1961,45 @@ class AsyncAssistantRuntimeClient(BaseAssistantRuntimeClient):
|
|
|
1956
1961
|
endpoint, payload = self._prepare_dismiss_pack_recommendation(user_id)
|
|
1957
1962
|
return await self._request_post_json(endpoint, payload, api_base=self.marketplace_api_base)
|
|
1958
1963
|
|
|
1964
|
+
async def initiate_pack_checkout(self, pack_id: str) -> Optional[Dict[str, Any]]:
|
|
1965
|
+
"""Async version of AssistantRuntimeClient.initiate_pack_checkout."""
|
|
1966
|
+
endpoint, payload = self._prepare_initiate_pack_checkout(pack_id)
|
|
1967
|
+
return await self._request_post_json(endpoint, payload, api_base=self.billing_api_base)
|
|
1968
|
+
|
|
1969
|
+
async def verify_razorpay_pack_payment(
|
|
1970
|
+
self,
|
|
1971
|
+
razorpay_payment_id: str,
|
|
1972
|
+
razorpay_order_id: str,
|
|
1973
|
+
razorpay_signature: str,
|
|
1974
|
+
) -> Optional[Dict[str, Any]]:
|
|
1975
|
+
"""Async version of AssistantRuntimeClient.verify_razorpay_pack_payment."""
|
|
1976
|
+
endpoint, payload = self._prepare_verify_razorpay_pack_payment(
|
|
1977
|
+
razorpay_payment_id, razorpay_order_id, razorpay_signature
|
|
1978
|
+
)
|
|
1979
|
+
return await self._request_post_json(endpoint, payload, api_base=self.billing_api_base)
|
|
1980
|
+
|
|
1981
|
+
async def list_pack_purchases(self) -> Optional[Dict[str, Any]]:
|
|
1982
|
+
"""Async version of AssistantRuntimeClient.list_pack_purchases."""
|
|
1983
|
+
endpoint, params = self._prepare_list_pack_purchases()
|
|
1984
|
+
return await self._request_get(endpoint, params, api_base=self.marketplace_api_base)
|
|
1985
|
+
|
|
1986
|
+
async def toggle_purchased_pack(self, pack_id: str, enabled: bool) -> Optional[Dict[str, Any]]:
|
|
1987
|
+
"""Async version of AssistantRuntimeClient.toggle_purchased_pack."""
|
|
1988
|
+
endpoint, payload = self._prepare_toggle_purchased_pack(pack_id, enabled)
|
|
1989
|
+
return await self._request_post_json(endpoint, payload, api_base=self.marketplace_api_base)
|
|
1990
|
+
|
|
1991
|
+
async def grant_pack_as_admin(
|
|
1992
|
+
self, pack_id: str, granted_by_user: Optional[str] = None
|
|
1993
|
+
) -> Optional[Dict[str, Any]]:
|
|
1994
|
+
"""Async version of AssistantRuntimeClient.grant_pack_as_admin."""
|
|
1995
|
+
endpoint, payload = self._prepare_grant_pack_as_admin(pack_id, granted_by_user)
|
|
1996
|
+
return await self._request_post_json(endpoint, payload, api_base=self.marketplace_api_base)
|
|
1997
|
+
|
|
1998
|
+
async def enable_pack_as_free_grant(self, pack_id: str) -> Optional[Dict[str, Any]]:
|
|
1999
|
+
"""Async version of AssistantRuntimeClient.enable_pack_as_free_grant."""
|
|
2000
|
+
endpoint, payload = self._prepare_enable_pack_as_free_grant(pack_id)
|
|
2001
|
+
return await self._request_post_json(endpoint, payload, api_base=self.marketplace_api_base)
|
|
2002
|
+
|
|
1959
2003
|
# =========================================================================
|
|
1960
2004
|
# HITL APIs
|
|
1961
2005
|
# =========================================================================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{assistant_runtime_sdk-1.3.0 → assistant_runtime_sdk-1.4.0}/assistant_runtime_sdk/streaming.py
RENAMED
|
File without changes
|
|
File without changes
|