raccoonai 0.1.0a7__py3-none-any.whl → 0.1.0a8__py3-none-any.whl
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 raccoonai might be problematic. Click here for more details.
- raccoonai/_client.py +18 -1
- raccoonai/_files.py +1 -1
- raccoonai/_version.py +1 -1
- raccoonai/resources/__init__.py +28 -0
- raccoonai/resources/extensions.py +400 -0
- raccoonai/resources/fleet.py +173 -2
- raccoonai/resources/lam.py +151 -347
- raccoonai/resources/tail/__init__.py +47 -0
- raccoonai/resources/tail/apps.py +225 -0
- raccoonai/resources/tail/auth.py +186 -0
- raccoonai/resources/tail/tail.py +273 -0
- raccoonai/types/__init__.py +10 -2
- raccoonai/types/extension_all_response.py +22 -0
- raccoonai/types/extension_get_response.py +16 -0
- raccoonai/types/extension_upload_params.py +13 -0
- raccoonai/types/extension_upload_response.py +16 -0
- raccoonai/types/fleet_sessions_params.py +42 -0
- raccoonai/types/fleet_sessions_response.py +58 -0
- raccoonai/types/lam_tasks_params.py +39 -0
- raccoonai/types/lam_tasks_response.py +52 -0
- raccoonai/types/tail/__init__.py +9 -0
- raccoonai/types/tail/app_all_response.py +38 -0
- raccoonai/types/tail/app_linked_params.py +13 -0
- raccoonai/types/tail/app_linked_response.py +14 -0
- raccoonai/types/tail/auth_status_params.py +15 -0
- raccoonai/types/tail/auth_status_response.py +17 -0
- raccoonai/types/tail_users_params.py +26 -0
- raccoonai/types/tail_users_response.py +48 -0
- {raccoonai-0.1.0a7.dist-info → raccoonai-0.1.0a8.dist-info}/METADATA +18 -1
- raccoonai-0.1.0a8.dist-info/RECORD +61 -0
- raccoonai/types/lam_integration_run_params.py +0 -78
- raccoonai/types/lam_integration_run_response.py +0 -53
- raccoonai-0.1.0a7.dist-info/RECORD +0 -42
- {raccoonai-0.1.0a7.dist-info → raccoonai-0.1.0a8.dist-info}/WHEEL +0 -0
- {raccoonai-0.1.0a7.dist-info → raccoonai-0.1.0a8.dist-info}/licenses/LICENSE +0 -0
raccoonai/types/__init__.py
CHANGED
|
@@ -4,10 +4,18 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .lam_run_params import LamRunParams as LamRunParams
|
|
6
6
|
from .lam_run_response import LamRunResponse as LamRunResponse
|
|
7
|
+
from .lam_tasks_params import LamTasksParams as LamTasksParams
|
|
8
|
+
from .tail_users_params import TailUsersParams as TailUsersParams
|
|
9
|
+
from .lam_tasks_response import LamTasksResponse as LamTasksResponse
|
|
7
10
|
from .fleet_create_params import FleetCreateParams as FleetCreateParams
|
|
8
11
|
from .fleet_logs_response import FleetLogsResponse as FleetLogsResponse
|
|
12
|
+
from .tail_users_response import TailUsersResponse as TailUsersResponse
|
|
9
13
|
from .fleet_create_response import FleetCreateResponse as FleetCreateResponse
|
|
14
|
+
from .fleet_sessions_params import FleetSessionsParams as FleetSessionsParams
|
|
10
15
|
from .fleet_status_response import FleetStatusResponse as FleetStatusResponse
|
|
16
|
+
from .extension_all_response import ExtensionAllResponse as ExtensionAllResponse
|
|
17
|
+
from .extension_get_response import ExtensionGetResponse as ExtensionGetResponse
|
|
18
|
+
from .extension_upload_params import ExtensionUploadParams as ExtensionUploadParams
|
|
19
|
+
from .fleet_sessions_response import FleetSessionsResponse as FleetSessionsResponse
|
|
11
20
|
from .fleet_terminate_response import FleetTerminateResponse as FleetTerminateResponse
|
|
12
|
-
from .
|
|
13
|
-
from .lam_integration_run_response import LamIntegrationRunResponse as LamIntegrationRunResponse
|
|
21
|
+
from .extension_upload_response import ExtensionUploadResponse as ExtensionUploadResponse
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["ExtensionAllResponse", "Extension"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Extension(BaseModel):
|
|
13
|
+
extension_id: str = FieldInfo(alias="extensionId")
|
|
14
|
+
"""Unique identifier for the extension."""
|
|
15
|
+
|
|
16
|
+
filename: str
|
|
17
|
+
"""Name of the extension file."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ExtensionAllResponse(BaseModel):
|
|
21
|
+
extensions: List[Extension]
|
|
22
|
+
"""List of extensions."""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from pydantic import Field as FieldInfo
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ExtensionGetResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ExtensionGetResponse(BaseModel):
|
|
12
|
+
extension_id: str = FieldInfo(alias="extensionId")
|
|
13
|
+
"""Unique identifier for the extension."""
|
|
14
|
+
|
|
15
|
+
filename: str
|
|
16
|
+
"""Name of the extension file."""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
from .._types import FileTypes
|
|
8
|
+
|
|
9
|
+
__all__ = ["ExtensionUploadParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ExtensionUploadParams(TypedDict, total=False):
|
|
13
|
+
file: Required[FileTypes]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from pydantic import Field as FieldInfo
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ExtensionUploadResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ExtensionUploadResponse(BaseModel):
|
|
12
|
+
extension_id: str = FieldInfo(alias="extensionId")
|
|
13
|
+
"""Unique identifier for the extension."""
|
|
14
|
+
|
|
15
|
+
filename: str
|
|
16
|
+
"""Name of the extension file."""
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["FleetSessionsParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FleetSessionsParams(TypedDict, total=False):
|
|
14
|
+
end_time: Optional[int]
|
|
15
|
+
"""Filter sessions created before this Unix timestamp (in milliseconds)."""
|
|
16
|
+
|
|
17
|
+
execution_type: Annotated[Optional[List[Literal["run", "extract", "fleet"]]], PropertyInfo(alias="executionType")]
|
|
18
|
+
"""Filter sessions by execution type (e.g., 'run', 'extract')."""
|
|
19
|
+
|
|
20
|
+
limit: Optional[int]
|
|
21
|
+
"""Number of sessions per page (maximum 100)."""
|
|
22
|
+
|
|
23
|
+
page: Optional[int]
|
|
24
|
+
"""Page number for pagination."""
|
|
25
|
+
|
|
26
|
+
raccoon_passcode: Optional[str]
|
|
27
|
+
"""Filter sessions by Raccoon passcode."""
|
|
28
|
+
|
|
29
|
+
session_id: Optional[str]
|
|
30
|
+
"""Filter sessions by a specific session ID."""
|
|
31
|
+
|
|
32
|
+
sort_by: Optional[Literal["timestamp", "executionTime", "taskId", "status", "executionType"]]
|
|
33
|
+
"""Field to sort sessions by (e.g., 'timestamp', 'executionTime')."""
|
|
34
|
+
|
|
35
|
+
sort_order: Optional[Literal["ascend", "descend"]]
|
|
36
|
+
"""Sort order ('ascend' or 'descend')."""
|
|
37
|
+
|
|
38
|
+
start_time: Optional[int]
|
|
39
|
+
"""Filter sessions created after this Unix timestamp (in milliseconds)."""
|
|
40
|
+
|
|
41
|
+
task_id: Optional[str]
|
|
42
|
+
"""Filter sessions by a specific task ID."""
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["FleetSessionsResponse", "Meta", "Session"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Meta(BaseModel):
|
|
14
|
+
current_page: int = FieldInfo(alias="currentPage")
|
|
15
|
+
"""The current page number."""
|
|
16
|
+
|
|
17
|
+
total_pages: int = FieldInfo(alias="totalPages")
|
|
18
|
+
"""Total number of pages available."""
|
|
19
|
+
|
|
20
|
+
total_records: int = FieldInfo(alias="totalRecords")
|
|
21
|
+
"""Total number of records across all pages."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Session(BaseModel):
|
|
25
|
+
execution_time: int = FieldInfo(alias="executionTime")
|
|
26
|
+
"""Time taken for the session execution (in milliseconds)."""
|
|
27
|
+
|
|
28
|
+
execution_type: Literal["run", "extract", "fleet"] = FieldInfo(alias="executionType")
|
|
29
|
+
"""The type of execution performed (e.g., 'run', 'extract')."""
|
|
30
|
+
|
|
31
|
+
inputs: object
|
|
32
|
+
"""Input parameters used for the session."""
|
|
33
|
+
|
|
34
|
+
output: List[object]
|
|
35
|
+
"""Output generated by the session."""
|
|
36
|
+
|
|
37
|
+
raccoon_passcode: str = FieldInfo(alias="raccoonPasscode")
|
|
38
|
+
"""Passcode associated with the user."""
|
|
39
|
+
|
|
40
|
+
session_id: str = FieldInfo(alias="sessionId")
|
|
41
|
+
"""Unique identifier for the session."""
|
|
42
|
+
|
|
43
|
+
status: Literal["success", "failure", "running"]
|
|
44
|
+
"""Current status of the session."""
|
|
45
|
+
|
|
46
|
+
task_id: str = FieldInfo(alias="taskId")
|
|
47
|
+
"""Unique identifier for the associated task."""
|
|
48
|
+
|
|
49
|
+
timestamp: int
|
|
50
|
+
"""Unix timestamp (in milliseconds) indicating when the session was created."""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class FleetSessionsResponse(BaseModel):
|
|
54
|
+
meta: Meta
|
|
55
|
+
"""Metadata about the session list."""
|
|
56
|
+
|
|
57
|
+
sessions: List[Session]
|
|
58
|
+
"""List of sessions."""
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["LamTasksParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class LamTasksParams(TypedDict, total=False):
|
|
14
|
+
end_time: Optional[int]
|
|
15
|
+
"""Filter tasks created before this Unix timestamp (in milliseconds)."""
|
|
16
|
+
|
|
17
|
+
execution_type: Annotated[Optional[List[Literal["run", "extract", "fleet"]]], PropertyInfo(alias="executionType")]
|
|
18
|
+
"""Filter tasks by execution type (e.g., 'run', 'extract')."""
|
|
19
|
+
|
|
20
|
+
limit: Optional[int]
|
|
21
|
+
"""Number of tasks per page (maximum 100)."""
|
|
22
|
+
|
|
23
|
+
page: Optional[int]
|
|
24
|
+
"""Page number for pagination."""
|
|
25
|
+
|
|
26
|
+
raccoon_passcode: Optional[str]
|
|
27
|
+
"""Filter tasks by Raccoon passcode."""
|
|
28
|
+
|
|
29
|
+
sort_by: Optional[Literal["timestamp", "executionTime", "taskId", "status", "executionType"]]
|
|
30
|
+
"""Field to sort tasks by (e.g., 'timestamp', 'executionTime')."""
|
|
31
|
+
|
|
32
|
+
sort_order: Optional[Literal["ascend", "descend"]]
|
|
33
|
+
"""Sort order ('ascend' or 'descend')."""
|
|
34
|
+
|
|
35
|
+
start_time: Optional[int]
|
|
36
|
+
"""Filter tasks created after this Unix timestamp (in milliseconds)."""
|
|
37
|
+
|
|
38
|
+
task_id: Optional[str]
|
|
39
|
+
"""Filter tasks by a specific task ID."""
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["LamTasksResponse", "Meta", "Task"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Meta(BaseModel):
|
|
14
|
+
current_page: int = FieldInfo(alias="currentPage")
|
|
15
|
+
"""The current page number."""
|
|
16
|
+
|
|
17
|
+
total_pages: int = FieldInfo(alias="totalPages")
|
|
18
|
+
"""Total number of pages available."""
|
|
19
|
+
|
|
20
|
+
total_records: int = FieldInfo(alias="totalRecords")
|
|
21
|
+
"""Total number of records across all pages."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Task(BaseModel):
|
|
25
|
+
execution_time: int = FieldInfo(alias="executionTime")
|
|
26
|
+
"""Time taken for the task execution (in seconds)."""
|
|
27
|
+
|
|
28
|
+
execution_type: Literal["run", "extract"] = FieldInfo(alias="executionType")
|
|
29
|
+
"""The type of execution performed (e.g., 'run', 'extract')."""
|
|
30
|
+
|
|
31
|
+
inputs: object
|
|
32
|
+
"""Input parameters used for the task execution."""
|
|
33
|
+
|
|
34
|
+
output: List[object]
|
|
35
|
+
"""Output generated by the task execution."""
|
|
36
|
+
|
|
37
|
+
raccoon_passcode: str = FieldInfo(alias="raccoonPasscode")
|
|
38
|
+
"""Passcode associated with the user."""
|
|
39
|
+
|
|
40
|
+
task_id: str = FieldInfo(alias="taskId")
|
|
41
|
+
"""Unique identifier for the task."""
|
|
42
|
+
|
|
43
|
+
timestamp: int
|
|
44
|
+
"""Unix timestamp (in seconds) indicating when the task was created."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class LamTasksResponse(BaseModel):
|
|
48
|
+
meta: Meta
|
|
49
|
+
"""Metadata about the task list."""
|
|
50
|
+
|
|
51
|
+
tasks: List[Task]
|
|
52
|
+
"""List of tasks."""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .app_all_response import AppAllResponse as AppAllResponse
|
|
6
|
+
from .app_linked_params import AppLinkedParams as AppLinkedParams
|
|
7
|
+
from .auth_status_params import AuthStatusParams as AuthStatusParams
|
|
8
|
+
from .app_linked_response import AppLinkedResponse as AppLinkedResponse
|
|
9
|
+
from .auth_status_response import AuthStatusResponse as AuthStatusResponse
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["AppAllResponse", "AvailableApp"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AvailableApp(BaseModel):
|
|
14
|
+
app_name: str = FieldInfo(alias="appName")
|
|
15
|
+
"""Unique identifier for the application."""
|
|
16
|
+
|
|
17
|
+
category: str
|
|
18
|
+
"""Category of the application (e.g., 'Productivity', 'Social')."""
|
|
19
|
+
|
|
20
|
+
display_name: str = FieldInfo(alias="displayName")
|
|
21
|
+
"""Display name of the application."""
|
|
22
|
+
|
|
23
|
+
status: Literal["Active", "In Review", "Not Accepted"]
|
|
24
|
+
"""Status of the application."""
|
|
25
|
+
|
|
26
|
+
app_description: Optional[str] = FieldInfo(alias="appDescription", default=None)
|
|
27
|
+
"""A brief description of the application."""
|
|
28
|
+
|
|
29
|
+
app_url: Optional[str] = FieldInfo(alias="appUrl", default=None)
|
|
30
|
+
"""URL of the application."""
|
|
31
|
+
|
|
32
|
+
icon: Optional[str] = None
|
|
33
|
+
"""URL of the application icon."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class AppAllResponse(BaseModel):
|
|
37
|
+
available_apps: List[AvailableApp] = FieldInfo(alias="availableApps")
|
|
38
|
+
"""List of available applications."""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["AppLinkedParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AppLinkedParams(TypedDict, total=False):
|
|
13
|
+
raccoon_passcode: Required[Annotated[str, PropertyInfo(alias="raccoonPasscode")]]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["AppLinkedResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AppLinkedResponse(BaseModel):
|
|
13
|
+
linked_apps: List[str] = FieldInfo(alias="linkedApps")
|
|
14
|
+
"""List of linked application names."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["AuthStatusParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AuthStatusParams(TypedDict, total=False):
|
|
13
|
+
app_name: Required[Annotated[str, PropertyInfo(alias="appName")]]
|
|
14
|
+
|
|
15
|
+
raccoon_passcode: Required[Annotated[str, PropertyInfo(alias="raccoonPasscode")]]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["AuthStatusResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AuthStatusResponse(BaseModel):
|
|
13
|
+
app_name: str = FieldInfo(alias="appName")
|
|
14
|
+
"""The name of the app for which the authentication status is checked"""
|
|
15
|
+
|
|
16
|
+
status: Literal["unliked", "active"]
|
|
17
|
+
"""Authentication status."""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["TailUsersParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TailUsersParams(TypedDict, total=False):
|
|
14
|
+
email_id: Annotated[Optional[str], PropertyInfo(alias="emailId")]
|
|
15
|
+
|
|
16
|
+
limit: Optional[int]
|
|
17
|
+
|
|
18
|
+
page: Optional[int]
|
|
19
|
+
|
|
20
|
+
raccoon_passcode: Annotated[Optional[str], PropertyInfo(alias="raccoonPasscode")]
|
|
21
|
+
|
|
22
|
+
search_query: Annotated[Optional[str], PropertyInfo(alias="searchQuery")]
|
|
23
|
+
|
|
24
|
+
sort_by: Annotated[Optional[Literal["createdAt", "name", "email", "raccoonPasscode"]], PropertyInfo(alias="sortBy")]
|
|
25
|
+
|
|
26
|
+
sort_order: Annotated[Optional[Literal["ascend", "descend"]], PropertyInfo(alias="sortOrder")]
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["TailUsersResponse", "Meta", "User"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Meta(BaseModel):
|
|
13
|
+
current_page: int = FieldInfo(alias="currentPage")
|
|
14
|
+
"""The current page number."""
|
|
15
|
+
|
|
16
|
+
total_pages: int = FieldInfo(alias="totalPages")
|
|
17
|
+
"""Total number of pages available."""
|
|
18
|
+
|
|
19
|
+
total_records: int = FieldInfo(alias="totalRecords")
|
|
20
|
+
"""Total number of records across all pages."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class User(BaseModel):
|
|
24
|
+
avatar: str
|
|
25
|
+
"""URL of the user's avatar image."""
|
|
26
|
+
|
|
27
|
+
created_at: int = FieldInfo(alias="createdAt")
|
|
28
|
+
"""Unix timestamp (in milliseconds) indicating when the user account was created."""
|
|
29
|
+
|
|
30
|
+
email: str
|
|
31
|
+
"""User's email address."""
|
|
32
|
+
|
|
33
|
+
name: str
|
|
34
|
+
"""User's full name."""
|
|
35
|
+
|
|
36
|
+
raccoon_passcode: str = FieldInfo(alias="raccoonPasscode")
|
|
37
|
+
"""Passcode associated with the user."""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class TailUsersResponse(BaseModel):
|
|
41
|
+
admin_raccoon_passcode: str = FieldInfo(alias="adminRaccoonPasscode")
|
|
42
|
+
"""Admin Raccoon passcode."""
|
|
43
|
+
|
|
44
|
+
meta: Meta
|
|
45
|
+
"""Metadata about the user list."""
|
|
46
|
+
|
|
47
|
+
users: List[User]
|
|
48
|
+
"""List of users."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: raccoonai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a8
|
|
4
4
|
Summary: The official Python library for the raccoonAI API
|
|
5
5
|
Project-URL: Homepage, https://github.com/raccoonaihq/raccoonai-python
|
|
6
6
|
Project-URL: Repository, https://github.com/raccoonaihq/raccoonai-python
|
|
@@ -149,6 +149,23 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
|
|
|
149
149
|
|
|
150
150
|
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
|
|
151
151
|
|
|
152
|
+
## File uploads
|
|
153
|
+
|
|
154
|
+
Request parameters that correspond to file uploads can be passed as `bytes`, a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
|
|
155
|
+
|
|
156
|
+
```python
|
|
157
|
+
from pathlib import Path
|
|
158
|
+
from raccoonai import RaccoonAI
|
|
159
|
+
|
|
160
|
+
client = RaccoonAI()
|
|
161
|
+
|
|
162
|
+
client.extensions.upload(
|
|
163
|
+
file=Path("/path/to/file"),
|
|
164
|
+
)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
|
|
168
|
+
|
|
152
169
|
## Handling errors
|
|
153
170
|
|
|
154
171
|
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `raccoonai.APIConnectionError` is raised.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
raccoonai/__init__.py,sha256=ut5jCAExi9IzT9pzrjpsJoVhn6bzWI6jIXNXB-fXBY4,2523
|
|
2
|
+
raccoonai/_base_client.py,sha256=u8s3PM-sDfScKytBJRlCxNiVuOz_Dbhwm-At4yS3DoQ,68824
|
|
3
|
+
raccoonai/_client.py,sha256=phUGWrD1eewY7TMOV_arr6g4W3Sf7Ih5qPhSoS15b8I,19495
|
|
4
|
+
raccoonai/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
|
+
raccoonai/_constants.py,sha256=FkmVVcfVS3gR69v_fTrqA_qjakyxJHOWJcw3jpEck8Y,465
|
|
6
|
+
raccoonai/_exceptions.py,sha256=Y-DcD2M8xkSw8IEkk4KHj73O8GQxCtWm4HWYQ02j7z8,3226
|
|
7
|
+
raccoonai/_files.py,sha256=a0SHeBu6FT5rt_CKotWZyna5GpgB42go35AUK5sEiD4,3624
|
|
8
|
+
raccoonai/_models.py,sha256=PDLSNsn3Umxm3UMZPgyBiyN308rRzzPX6F9NO9FU2vs,28943
|
|
9
|
+
raccoonai/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
|
+
raccoonai/_resource.py,sha256=zfxyYCvzutc1dvCP-j9UPc1sn9U8F-X9gGyqleOvCxY,1118
|
|
11
|
+
raccoonai/_response.py,sha256=q3bfYfS84vvIRPz_wL8djh6ir9UHGDzzF2l3gKDOWX8,28807
|
|
12
|
+
raccoonai/_streaming.py,sha256=zHnkREZO5v33YJ7P0YZ7KhJET4ZzevGw1JzRY2-Mls4,10112
|
|
13
|
+
raccoonai/_types.py,sha256=sN2zE-vBl9KBlBKL8fkN2DNZnItdjDl-3fTpP9cg69w,6146
|
|
14
|
+
raccoonai/_version.py,sha256=F-dnFPuLxeusPZXR7CLwj-EAzdQJOGL-veK9mnW3vcU,169
|
|
15
|
+
raccoonai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
+
raccoonai/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
|
+
raccoonai/_utils/_logs.py,sha256=Af3FKkE-LAPzYTl8bnFD4yPvPBIO-QyCra-r9_dSmOM,784
|
|
18
|
+
raccoonai/_utils/_proxy.py,sha256=z3zsateHtb0EARTWKk8QZNHfPkqJbqwd1lM993LBwGE,1902
|
|
19
|
+
raccoonai/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
|
20
|
+
raccoonai/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
|
21
|
+
raccoonai/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
|
22
|
+
raccoonai/_utils/_transform.py,sha256=tsSFOIZ7iczaUsMSGBD_iSFOOdUyT2xtkcq1xyF0L9o,13986
|
|
23
|
+
raccoonai/_utils/_typing.py,sha256=nTJz0jcrQbEgxwy4TtAkNxuU0QHHlmc6mQtA6vIR8tg,4501
|
|
24
|
+
raccoonai/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
|
25
|
+
raccoonai/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
26
|
+
raccoonai/resources/__init__.py,sha256=mcxCKZbIVQmducoB6dyk5DhiIT6d4pNqijZsBkQvsWQ,1876
|
|
27
|
+
raccoonai/resources/extensions.py,sha256=GdrbCYm8XvdNyuTHsgy2XktEX7dCLHtyFhGHd7owY64,15284
|
|
28
|
+
raccoonai/resources/fleet.py,sha256=XbRdnFHiugwdSn0y2xlIRGNyi5-OLEitL85S-Vth63Q,25186
|
|
29
|
+
raccoonai/resources/lam.py,sha256=VjR3IgkK0FPACdBswZ-ij7bOmEshxugQmv0XaS-6HiA,27784
|
|
30
|
+
raccoonai/resources/tail/__init__.py,sha256=trNhHsbhJU6Cu15C6ZrAOBcDSSTcWvvcLyRYGFMqmnw,1374
|
|
31
|
+
raccoonai/resources/tail/apps.py,sha256=532sI0g2sLUrLV3z_8qfbW8qnTTc8HyyQax1PD52BrA,8008
|
|
32
|
+
raccoonai/resources/tail/auth.py,sha256=Xi4nf7WBIyVuYeOb9iUKFDH-cKNPJHJ-U9JsEAwFLLg,6349
|
|
33
|
+
raccoonai/resources/tail/tail.py,sha256=SuVjNyUK2ZsA1bf48eDtsABtreHiboB-CUpVR8Gy0DU,9655
|
|
34
|
+
raccoonai/types/__init__.py,sha256=ak2Fi4Jm3eVvoX41aEu9MBRCtqkBdgB7qDfCTkcmuT8,1398
|
|
35
|
+
raccoonai/types/extension_all_response.py,sha256=GC5j55CVmwj4YN3Qofj6BrpnsX0t2fYVN7qnQEEHxso,526
|
|
36
|
+
raccoonai/types/extension_get_response.py,sha256=POG1qVfkWVyK2bzY_Ggc8MydSPVExi-THE3gtrQLYVo,397
|
|
37
|
+
raccoonai/types/extension_upload_params.py,sha256=L6M6Tl--dpGVjm158iYNpVF6tKiOap-Z6jMkZ22oomc,327
|
|
38
|
+
raccoonai/types/extension_upload_response.py,sha256=z83kt_Yq3jIiu11Kjvp1CrjPnyIbIgn4I4U9KOPdi58,403
|
|
39
|
+
raccoonai/types/fleet_create_params.py,sha256=mqUxuv01Y3uSI-DM5EMzLIEzSu-rQBBRkcpRxXvc3nE,2453
|
|
40
|
+
raccoonai/types/fleet_create_response.py,sha256=eJ6GPZY7hqQ2XktCgXq4ui-pKWxhsVz1otFsos_l-b4,575
|
|
41
|
+
raccoonai/types/fleet_logs_response.py,sha256=Lzamw3eqPNXzArU0ujxnXav2AwmIM8OZd7McMzheVNA,360
|
|
42
|
+
raccoonai/types/fleet_sessions_params.py,sha256=Co5GBqC_po4y4Fa3nRPRzo69SJ2xkrJqZ2UIeQV3JA0,1409
|
|
43
|
+
raccoonai/types/fleet_sessions_response.py,sha256=WCiXvYijimwvXeiQl4oGlDNueG5RtM1w8WQWA-dV4zg,1712
|
|
44
|
+
raccoonai/types/fleet_status_response.py,sha256=TPbSlxg2ldPuTnH575D48AnKaMn6Aq7uBHK-264wceE,427
|
|
45
|
+
raccoonai/types/fleet_terminate_response.py,sha256=AYadrUN5RGkT6RGVohNZg3c63Hf0JIZ4W6Drgw6rh6I,433
|
|
46
|
+
raccoonai/types/lam_run_params.py,sha256=jwWRy1P8iV6_nsGhMUPv4BMI2IfDDsLO0W7ZmCHvH5Q,2603
|
|
47
|
+
raccoonai/types/lam_run_response.py,sha256=pOBB0xmGZou7vMG-dmhUk6v5pMyJF4dXWnNWXAHvfW0,891
|
|
48
|
+
raccoonai/types/lam_tasks_params.py,sha256=cpcGDr0QVRjtLKVLHbfqy1sdLKngXtsosTureD8S6lM,1295
|
|
49
|
+
raccoonai/types/lam_tasks_response.py,sha256=4PZn0tYmyHw7K1Ujwsd6grVw24y6rFlg-ZaOHZbt-f8,1470
|
|
50
|
+
raccoonai/types/tail_users_params.py,sha256=isyMVl0CjCx6jjLaVTHKrOedscqlhXTIb5ZtDgEFGQs,835
|
|
51
|
+
raccoonai/types/tail_users_response.py,sha256=d_NvMKgrTLiLQrSN0oLDgyvNAmAzYwbzHlzbm1VmhOg,1230
|
|
52
|
+
raccoonai/types/tail/__init__.py,sha256=AoQlqI2mGMA9UON9JKGd_ekJjME8lcJnYfB43xt6kHU,468
|
|
53
|
+
raccoonai/types/tail/app_all_response.py,sha256=BJ3eYZZYKcrwRvJwt3DNuTBpADvoUmUG7g9rLofRpYw,1158
|
|
54
|
+
raccoonai/types/tail/app_linked_params.py,sha256=2MXvTBrWmyJDPfqfPh4vPARrSS1NRSMVD1keMqjnEHs,386
|
|
55
|
+
raccoonai/types/tail/app_linked_response.py,sha256=i7ox4Z5UsJhQMQm8DkB9YTz9chqNsj8TV91RSvU5OtA,360
|
|
56
|
+
raccoonai/types/tail/auth_status_params.py,sha256=Mim7abERBraHHEvPrz--Z348BeAd4gxQFvlx-QpkCl0,459
|
|
57
|
+
raccoonai/types/tail/auth_status_response.py,sha256=6T-hcIL7JpLdmgXTpRSEz5KxRoXe59VEbrRsNkWtabA,472
|
|
58
|
+
raccoonai-0.1.0a8.dist-info/METADATA,sha256=JPCN1Tbm-dh6tiyIBlmuqB5wJQFoZ3otuArnXl-w_rs,14936
|
|
59
|
+
raccoonai-0.1.0a8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
60
|
+
raccoonai-0.1.0a8.dist-info/licenses/LICENSE,sha256=enGvZ2fGU7wGgMPWkgyWhnsFhCpxwdeG_selO_ovoTM,11340
|
|
61
|
+
raccoonai-0.1.0a8.dist-info/RECORD,,
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Union, Iterable, Optional
|
|
6
|
-
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = [
|
|
9
|
-
"LamIntegrationRunParamsBase",
|
|
10
|
-
"Advanced",
|
|
11
|
-
"AdvancedProxy",
|
|
12
|
-
"LamIntegrationRunParamsNonStreaming",
|
|
13
|
-
"LamIntegrationRunParamsStreaming",
|
|
14
|
-
]
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class LamIntegrationRunParamsBase(TypedDict, total=False):
|
|
18
|
-
raccoon_passcode: Required[str]
|
|
19
|
-
"""
|
|
20
|
-
The raccoon passcode associated with the end user on behalf of which the call is
|
|
21
|
-
being made.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
advanced: Optional[Advanced]
|
|
25
|
-
"""
|
|
26
|
-
Advanced configuration options for the session, such as ad-blocking and CAPTCHA
|
|
27
|
-
solving.
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
integration_id: Optional[str]
|
|
31
|
-
"""The unique identifier for the integration being called."""
|
|
32
|
-
|
|
33
|
-
properties: Optional[object]
|
|
34
|
-
"""Additional properties or data related to the particular integration."""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class AdvancedProxy(TypedDict, total=False):
|
|
38
|
-
city: Optional[str]
|
|
39
|
-
"""Target city."""
|
|
40
|
-
|
|
41
|
-
country: Optional[str]
|
|
42
|
-
"""Target country (2-letter ISO code)."""
|
|
43
|
-
|
|
44
|
-
enable: bool
|
|
45
|
-
"""Whether to use a proxy for the browser session."""
|
|
46
|
-
|
|
47
|
-
state: Optional[str]
|
|
48
|
-
"""Target state (2-letter code)."""
|
|
49
|
-
|
|
50
|
-
zip: Optional[int]
|
|
51
|
-
"""Target postal code."""
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class Advanced(TypedDict, total=False):
|
|
55
|
-
block_ads: Optional[bool]
|
|
56
|
-
"""Whether to block advertisements during the browser session."""
|
|
57
|
-
|
|
58
|
-
extension_ids: Optional[Iterable[object]]
|
|
59
|
-
"""list of extension ids"""
|
|
60
|
-
|
|
61
|
-
proxy: Optional[AdvancedProxy]
|
|
62
|
-
"""Proxy details for the browser session."""
|
|
63
|
-
|
|
64
|
-
solve_captchas: Optional[bool]
|
|
65
|
-
"""Whether to attempt automatic CAPTCHA solving."""
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
class LamIntegrationRunParamsNonStreaming(LamIntegrationRunParamsBase, total=False):
|
|
69
|
-
stream: Optional[Literal[False]]
|
|
70
|
-
"""Whether the response should be streamed back or not."""
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class LamIntegrationRunParamsStreaming(LamIntegrationRunParamsBase):
|
|
74
|
-
stream: Required[Literal[True]]
|
|
75
|
-
"""Whether the response should be streamed back or not."""
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
LamIntegrationRunParams = Union[LamIntegrationRunParamsNonStreaming, LamIntegrationRunParamsStreaming]
|