nexttoken 0.3.0__tar.gz → 0.3.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.
- {nexttoken-0.3.0 → nexttoken-0.3.2}/PKG-INFO +1 -1
- {nexttoken-0.3.0 → nexttoken-0.3.2}/pyproject.toml +1 -1
- {nexttoken-0.3.0 → nexttoken-0.3.2}/src/nexttoken/integrations.py +12 -0
- {nexttoken-0.3.0 → nexttoken-0.3.2}/src/nexttoken/search.py +1 -1
- {nexttoken-0.3.0 → nexttoken-0.3.2}/.gitignore +0 -0
- {nexttoken-0.3.0 → nexttoken-0.3.2}/README.md +0 -0
- {nexttoken-0.3.0 → nexttoken-0.3.2}/src/nexttoken/__init__.py +0 -0
- {nexttoken-0.3.0 → nexttoken-0.3.2}/src/nexttoken/client.py +0 -0
|
@@ -53,6 +53,18 @@ class Integrations:
|
|
|
53
53
|
data = self._request("GET", "/integrations")
|
|
54
54
|
return data.get("data", {}).get("integrations", [])
|
|
55
55
|
|
|
56
|
+
def search(self, query: str) -> List[Dict[str, Any]]:
|
|
57
|
+
"""Search for available integrations by name or category.
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
query: Search query (e.g., "email", "crm", "slack").
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
List of matching app objects with slug, name, description, logo_url.
|
|
64
|
+
"""
|
|
65
|
+
data = self._request("GET", f"/integrations/search?q={query}")
|
|
66
|
+
return data.get("data", {}).get("apps", [])
|
|
67
|
+
|
|
56
68
|
def list_actions(self, app: str) -> List[Dict[str, Any]]:
|
|
57
69
|
"""List available actions for a connected app.
|
|
58
70
|
|
|
@@ -73,5 +73,5 @@ class Search:
|
|
|
73
73
|
if exclude_domains is not None:
|
|
74
74
|
payload["exclude_domains"] = exclude_domains
|
|
75
75
|
|
|
76
|
-
data = self._request("POST", "/
|
|
76
|
+
data = self._request("POST", "/search", json=payload)
|
|
77
77
|
return data.get("data", {}).get("results", [])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|