raccoonai 0.1.0a9__py3-none-any.whl → 0.1.0a11__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 +2 -9
- raccoonai/_version.py +1 -1
- raccoonai/resources/__init__.py +0 -14
- raccoonai/resources/fleet/__init__.py +47 -0
- raccoonai/resources/{extensions.py → fleet/extensions.py} +10 -10
- raccoonai/resources/fleet/fleet.py +134 -0
- raccoonai/resources/{fleet.py → fleet/sessions.py} +234 -151
- raccoonai/resources/lam/__init__.py +33 -0
- raccoonai/resources/{lam.py → lam/lam.py} +42 -173
- raccoonai/resources/lam/tasks.py +338 -0
- raccoonai/resources/tail/__init__.py +14 -14
- raccoonai/resources/tail/tail.py +27 -166
- raccoonai/resources/tail/users.py +405 -0
- raccoonai/types/__init__.py +0 -15
- raccoonai/types/fleet/__init__.py +16 -0
- raccoonai/types/{extension_all_response.py → fleet/extension_all_response.py} +1 -1
- raccoonai/types/{extension_get_response.py → fleet/extension_get_response.py} +1 -1
- raccoonai/types/{extension_upload_params.py → fleet/extension_upload_params.py} +1 -1
- raccoonai/types/{extension_upload_response.py → fleet/extension_upload_response.py} +1 -1
- raccoonai/types/{fleet_sessions_params.py → fleet/session_all_params.py} +3 -3
- raccoonai/types/{fleet_sessions_response.py → fleet/session_all_response.py} +3 -3
- raccoonai/types/{fleet_create_params.py → fleet/session_create_params.py} +2 -2
- raccoonai/types/{fleet_create_response.py → fleet/session_create_response.py} +3 -3
- raccoonai/types/{fleet_logs_response.py → fleet/session_logs_response.py} +3 -3
- raccoonai/types/fleet/session_media_response.py +42 -0
- raccoonai/types/{fleet_status_response.py → fleet/session_status_response.py} +3 -3
- raccoonai/types/{fleet_terminate_response.py → fleet/session_terminate_response.py} +3 -3
- raccoonai/types/lam/__init__.py +7 -0
- raccoonai/types/{lam_tasks_params.py → lam/task_all_params.py} +3 -3
- raccoonai/types/{lam_tasks_response.py → lam/task_all_response.py} +3 -3
- raccoonai/types/lam/task_media_response.py +50 -0
- raccoonai/types/tail/__init__.py +6 -2
- raccoonai/types/{tail_users_params.py → tail/user_all_params.py} +3 -3
- raccoonai/types/{tail_users_response.py → tail/user_all_response.py} +3 -3
- raccoonai/types/tail/user_create_params.py +15 -0
- raccoonai/types/tail/user_create_response.py +22 -0
- raccoonai/types/tail/{auth_status_params.py → user_status_params.py} +2 -2
- raccoonai/types/tail/{auth_status_response.py → user_status_response.py} +2 -2
- {raccoonai-0.1.0a9.dist-info → raccoonai-0.1.0a11.dist-info}/METADATA +30 -2
- raccoonai-0.1.0a11.dist-info/RECORD +71 -0
- raccoonai/resources/tail/auth.py +0 -186
- raccoonai-0.1.0a9.dist-info/RECORD +0 -61
- {raccoonai-0.1.0a9.dist-info → raccoonai-0.1.0a11.dist-info}/WHEEL +0 -0
- {raccoonai-0.1.0a9.dist-info → raccoonai-0.1.0a11.dist-info}/licenses/LICENSE +0 -0
raccoonai/resources/tail/tail.py
CHANGED
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Optional
|
|
6
|
-
from typing_extensions import Literal
|
|
7
|
-
|
|
8
|
-
import httpx
|
|
9
|
-
|
|
10
5
|
from .apps import (
|
|
11
6
|
AppsResource,
|
|
12
7
|
AsyncAppsResource,
|
|
@@ -15,42 +10,28 @@ from .apps import (
|
|
|
15
10
|
AppsResourceWithStreamingResponse,
|
|
16
11
|
AsyncAppsResourceWithStreamingResponse,
|
|
17
12
|
)
|
|
18
|
-
from .
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
26
|
-
from ...types import tail_users_params
|
|
27
|
-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
28
|
-
from ..._utils import (
|
|
29
|
-
maybe_transform,
|
|
30
|
-
async_maybe_transform,
|
|
13
|
+
from .users import (
|
|
14
|
+
UsersResource,
|
|
15
|
+
AsyncUsersResource,
|
|
16
|
+
UsersResourceWithRawResponse,
|
|
17
|
+
AsyncUsersResourceWithRawResponse,
|
|
18
|
+
UsersResourceWithStreamingResponse,
|
|
19
|
+
AsyncUsersResourceWithStreamingResponse,
|
|
31
20
|
)
|
|
32
21
|
from ..._compat import cached_property
|
|
33
22
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
34
|
-
from ..._response import (
|
|
35
|
-
to_raw_response_wrapper,
|
|
36
|
-
to_streamed_response_wrapper,
|
|
37
|
-
async_to_raw_response_wrapper,
|
|
38
|
-
async_to_streamed_response_wrapper,
|
|
39
|
-
)
|
|
40
|
-
from ..._base_client import make_request_options
|
|
41
|
-
from ...types.tail_users_response import TailUsersResponse
|
|
42
23
|
|
|
43
24
|
__all__ = ["TailResource", "AsyncTailResource"]
|
|
44
25
|
|
|
45
26
|
|
|
46
27
|
class TailResource(SyncAPIResource):
|
|
47
28
|
@cached_property
|
|
48
|
-
def
|
|
49
|
-
return
|
|
29
|
+
def users(self) -> UsersResource:
|
|
30
|
+
return UsersResource(self._client)
|
|
50
31
|
|
|
51
32
|
@cached_property
|
|
52
|
-
def
|
|
53
|
-
return
|
|
33
|
+
def apps(self) -> AppsResource:
|
|
34
|
+
return AppsResource(self._client)
|
|
54
35
|
|
|
55
36
|
@cached_property
|
|
56
37
|
def with_raw_response(self) -> TailResourceWithRawResponse:
|
|
@@ -71,67 +52,15 @@ class TailResource(SyncAPIResource):
|
|
|
71
52
|
"""
|
|
72
53
|
return TailResourceWithStreamingResponse(self)
|
|
73
54
|
|
|
74
|
-
def users(
|
|
75
|
-
self,
|
|
76
|
-
*,
|
|
77
|
-
email_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
78
|
-
limit: Optional[int] | NotGiven = NOT_GIVEN,
|
|
79
|
-
page: Optional[int] | NotGiven = NOT_GIVEN,
|
|
80
|
-
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
81
|
-
search_query: Optional[str] | NotGiven = NOT_GIVEN,
|
|
82
|
-
sort_by: Optional[Literal["createdAt", "name", "email", "raccoonPasscode"]] | NotGiven = NOT_GIVEN,
|
|
83
|
-
sort_order: Optional[Literal["ascend", "descend"]] | NotGiven = NOT_GIVEN,
|
|
84
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
85
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
86
|
-
extra_headers: Headers | None = None,
|
|
87
|
-
extra_query: Query | None = None,
|
|
88
|
-
extra_body: Body | None = None,
|
|
89
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
90
|
-
) -> TailUsersResponse:
|
|
91
|
-
"""
|
|
92
|
-
Get Users Endpoint
|
|
93
|
-
|
|
94
|
-
Args:
|
|
95
|
-
extra_headers: Send extra headers
|
|
96
|
-
|
|
97
|
-
extra_query: Add additional query parameters to the request
|
|
98
|
-
|
|
99
|
-
extra_body: Add additional JSON properties to the request
|
|
100
|
-
|
|
101
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
102
|
-
"""
|
|
103
|
-
return self._get(
|
|
104
|
-
"/tail/users",
|
|
105
|
-
options=make_request_options(
|
|
106
|
-
extra_headers=extra_headers,
|
|
107
|
-
extra_query=extra_query,
|
|
108
|
-
extra_body=extra_body,
|
|
109
|
-
timeout=timeout,
|
|
110
|
-
query=maybe_transform(
|
|
111
|
-
{
|
|
112
|
-
"email_id": email_id,
|
|
113
|
-
"limit": limit,
|
|
114
|
-
"page": page,
|
|
115
|
-
"raccoon_passcode": raccoon_passcode,
|
|
116
|
-
"search_query": search_query,
|
|
117
|
-
"sort_by": sort_by,
|
|
118
|
-
"sort_order": sort_order,
|
|
119
|
-
},
|
|
120
|
-
tail_users_params.TailUsersParams,
|
|
121
|
-
),
|
|
122
|
-
),
|
|
123
|
-
cast_to=TailUsersResponse,
|
|
124
|
-
)
|
|
125
|
-
|
|
126
55
|
|
|
127
56
|
class AsyncTailResource(AsyncAPIResource):
|
|
128
57
|
@cached_property
|
|
129
|
-
def
|
|
130
|
-
return
|
|
58
|
+
def users(self) -> AsyncUsersResource:
|
|
59
|
+
return AsyncUsersResource(self._client)
|
|
131
60
|
|
|
132
61
|
@cached_property
|
|
133
|
-
def
|
|
134
|
-
return
|
|
62
|
+
def apps(self) -> AsyncAppsResource:
|
|
63
|
+
return AsyncAppsResource(self._client)
|
|
135
64
|
|
|
136
65
|
@cached_property
|
|
137
66
|
def with_raw_response(self) -> AsyncTailResourceWithRawResponse:
|
|
@@ -152,122 +81,54 @@ class AsyncTailResource(AsyncAPIResource):
|
|
|
152
81
|
"""
|
|
153
82
|
return AsyncTailResourceWithStreamingResponse(self)
|
|
154
83
|
|
|
155
|
-
async def users(
|
|
156
|
-
self,
|
|
157
|
-
*,
|
|
158
|
-
email_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
159
|
-
limit: Optional[int] | NotGiven = NOT_GIVEN,
|
|
160
|
-
page: Optional[int] | NotGiven = NOT_GIVEN,
|
|
161
|
-
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
162
|
-
search_query: Optional[str] | NotGiven = NOT_GIVEN,
|
|
163
|
-
sort_by: Optional[Literal["createdAt", "name", "email", "raccoonPasscode"]] | NotGiven = NOT_GIVEN,
|
|
164
|
-
sort_order: Optional[Literal["ascend", "descend"]] | NotGiven = NOT_GIVEN,
|
|
165
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
166
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
167
|
-
extra_headers: Headers | None = None,
|
|
168
|
-
extra_query: Query | None = None,
|
|
169
|
-
extra_body: Body | None = None,
|
|
170
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
171
|
-
) -> TailUsersResponse:
|
|
172
|
-
"""
|
|
173
|
-
Get Users Endpoint
|
|
174
|
-
|
|
175
|
-
Args:
|
|
176
|
-
extra_headers: Send extra headers
|
|
177
|
-
|
|
178
|
-
extra_query: Add additional query parameters to the request
|
|
179
|
-
|
|
180
|
-
extra_body: Add additional JSON properties to the request
|
|
181
|
-
|
|
182
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
183
|
-
"""
|
|
184
|
-
return await self._get(
|
|
185
|
-
"/tail/users",
|
|
186
|
-
options=make_request_options(
|
|
187
|
-
extra_headers=extra_headers,
|
|
188
|
-
extra_query=extra_query,
|
|
189
|
-
extra_body=extra_body,
|
|
190
|
-
timeout=timeout,
|
|
191
|
-
query=await async_maybe_transform(
|
|
192
|
-
{
|
|
193
|
-
"email_id": email_id,
|
|
194
|
-
"limit": limit,
|
|
195
|
-
"page": page,
|
|
196
|
-
"raccoon_passcode": raccoon_passcode,
|
|
197
|
-
"search_query": search_query,
|
|
198
|
-
"sort_by": sort_by,
|
|
199
|
-
"sort_order": sort_order,
|
|
200
|
-
},
|
|
201
|
-
tail_users_params.TailUsersParams,
|
|
202
|
-
),
|
|
203
|
-
),
|
|
204
|
-
cast_to=TailUsersResponse,
|
|
205
|
-
)
|
|
206
|
-
|
|
207
84
|
|
|
208
85
|
class TailResourceWithRawResponse:
|
|
209
86
|
def __init__(self, tail: TailResource) -> None:
|
|
210
87
|
self._tail = tail
|
|
211
88
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
)
|
|
89
|
+
@cached_property
|
|
90
|
+
def users(self) -> UsersResourceWithRawResponse:
|
|
91
|
+
return UsersResourceWithRawResponse(self._tail.users)
|
|
215
92
|
|
|
216
93
|
@cached_property
|
|
217
94
|
def apps(self) -> AppsResourceWithRawResponse:
|
|
218
95
|
return AppsResourceWithRawResponse(self._tail.apps)
|
|
219
96
|
|
|
220
|
-
@cached_property
|
|
221
|
-
def auth(self) -> AuthResourceWithRawResponse:
|
|
222
|
-
return AuthResourceWithRawResponse(self._tail.auth)
|
|
223
|
-
|
|
224
97
|
|
|
225
98
|
class AsyncTailResourceWithRawResponse:
|
|
226
99
|
def __init__(self, tail: AsyncTailResource) -> None:
|
|
227
100
|
self._tail = tail
|
|
228
101
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
)
|
|
102
|
+
@cached_property
|
|
103
|
+
def users(self) -> AsyncUsersResourceWithRawResponse:
|
|
104
|
+
return AsyncUsersResourceWithRawResponse(self._tail.users)
|
|
232
105
|
|
|
233
106
|
@cached_property
|
|
234
107
|
def apps(self) -> AsyncAppsResourceWithRawResponse:
|
|
235
108
|
return AsyncAppsResourceWithRawResponse(self._tail.apps)
|
|
236
109
|
|
|
237
|
-
@cached_property
|
|
238
|
-
def auth(self) -> AsyncAuthResourceWithRawResponse:
|
|
239
|
-
return AsyncAuthResourceWithRawResponse(self._tail.auth)
|
|
240
|
-
|
|
241
110
|
|
|
242
111
|
class TailResourceWithStreamingResponse:
|
|
243
112
|
def __init__(self, tail: TailResource) -> None:
|
|
244
113
|
self._tail = tail
|
|
245
114
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
)
|
|
115
|
+
@cached_property
|
|
116
|
+
def users(self) -> UsersResourceWithStreamingResponse:
|
|
117
|
+
return UsersResourceWithStreamingResponse(self._tail.users)
|
|
249
118
|
|
|
250
119
|
@cached_property
|
|
251
120
|
def apps(self) -> AppsResourceWithStreamingResponse:
|
|
252
121
|
return AppsResourceWithStreamingResponse(self._tail.apps)
|
|
253
122
|
|
|
254
|
-
@cached_property
|
|
255
|
-
def auth(self) -> AuthResourceWithStreamingResponse:
|
|
256
|
-
return AuthResourceWithStreamingResponse(self._tail.auth)
|
|
257
|
-
|
|
258
123
|
|
|
259
124
|
class AsyncTailResourceWithStreamingResponse:
|
|
260
125
|
def __init__(self, tail: AsyncTailResource) -> None:
|
|
261
126
|
self._tail = tail
|
|
262
127
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
)
|
|
128
|
+
@cached_property
|
|
129
|
+
def users(self) -> AsyncUsersResourceWithStreamingResponse:
|
|
130
|
+
return AsyncUsersResourceWithStreamingResponse(self._tail.users)
|
|
266
131
|
|
|
267
132
|
@cached_property
|
|
268
133
|
def apps(self) -> AsyncAppsResourceWithStreamingResponse:
|
|
269
134
|
return AsyncAppsResourceWithStreamingResponse(self._tail.apps)
|
|
270
|
-
|
|
271
|
-
@cached_property
|
|
272
|
-
def auth(self) -> AsyncAuthResourceWithStreamingResponse:
|
|
273
|
-
return AsyncAuthResourceWithStreamingResponse(self._tail.auth)
|
|
@@ -0,0 +1,405 @@
|
|
|
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
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ..._utils import (
|
|
12
|
+
maybe_transform,
|
|
13
|
+
async_maybe_transform,
|
|
14
|
+
)
|
|
15
|
+
from ..._compat import cached_property
|
|
16
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
17
|
+
from ..._response import (
|
|
18
|
+
to_raw_response_wrapper,
|
|
19
|
+
to_streamed_response_wrapper,
|
|
20
|
+
async_to_raw_response_wrapper,
|
|
21
|
+
async_to_streamed_response_wrapper,
|
|
22
|
+
)
|
|
23
|
+
from ...types.tail import user_all_params, user_create_params, user_status_params
|
|
24
|
+
from ..._base_client import make_request_options
|
|
25
|
+
from ...types.tail.user_all_response import UserAllResponse
|
|
26
|
+
from ...types.tail.user_create_response import UserCreateResponse
|
|
27
|
+
from ...types.tail.user_status_response import UserStatusResponse
|
|
28
|
+
|
|
29
|
+
__all__ = ["UsersResource", "AsyncUsersResource"]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class UsersResource(SyncAPIResource):
|
|
33
|
+
@cached_property
|
|
34
|
+
def with_raw_response(self) -> UsersResourceWithRawResponse:
|
|
35
|
+
"""
|
|
36
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
37
|
+
the raw response object instead of the parsed content.
|
|
38
|
+
|
|
39
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
40
|
+
"""
|
|
41
|
+
return UsersResourceWithRawResponse(self)
|
|
42
|
+
|
|
43
|
+
@cached_property
|
|
44
|
+
def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
|
|
45
|
+
"""
|
|
46
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
47
|
+
|
|
48
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
49
|
+
"""
|
|
50
|
+
return UsersResourceWithStreamingResponse(self)
|
|
51
|
+
|
|
52
|
+
def create(
|
|
53
|
+
self,
|
|
54
|
+
*,
|
|
55
|
+
email: str,
|
|
56
|
+
name: str,
|
|
57
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
58
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
59
|
+
extra_headers: Headers | None = None,
|
|
60
|
+
extra_query: Query | None = None,
|
|
61
|
+
extra_body: Body | None = None,
|
|
62
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
63
|
+
) -> UserCreateResponse:
|
|
64
|
+
"""
|
|
65
|
+
Create User Endpoint
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
email: specify email of user.
|
|
69
|
+
|
|
70
|
+
name: specify name of user.
|
|
71
|
+
|
|
72
|
+
extra_headers: Send extra headers
|
|
73
|
+
|
|
74
|
+
extra_query: Add additional query parameters to the request
|
|
75
|
+
|
|
76
|
+
extra_body: Add additional JSON properties to the request
|
|
77
|
+
|
|
78
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
79
|
+
"""
|
|
80
|
+
return self._post(
|
|
81
|
+
"/tail/users/create",
|
|
82
|
+
body=maybe_transform(
|
|
83
|
+
{
|
|
84
|
+
"email": email,
|
|
85
|
+
"name": name,
|
|
86
|
+
},
|
|
87
|
+
user_create_params.UserCreateParams,
|
|
88
|
+
),
|
|
89
|
+
options=make_request_options(
|
|
90
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
91
|
+
),
|
|
92
|
+
cast_to=UserCreateResponse,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
def all(
|
|
96
|
+
self,
|
|
97
|
+
*,
|
|
98
|
+
email_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
99
|
+
limit: Optional[int] | NotGiven = NOT_GIVEN,
|
|
100
|
+
page: Optional[int] | NotGiven = NOT_GIVEN,
|
|
101
|
+
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
102
|
+
search_query: Optional[str] | NotGiven = NOT_GIVEN,
|
|
103
|
+
sort_by: Optional[Literal["createdAt", "name", "email", "raccoonPasscode"]] | NotGiven = NOT_GIVEN,
|
|
104
|
+
sort_order: Optional[Literal["ascend", "descend"]] | NotGiven = NOT_GIVEN,
|
|
105
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
106
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
107
|
+
extra_headers: Headers | None = None,
|
|
108
|
+
extra_query: Query | None = None,
|
|
109
|
+
extra_body: Body | None = None,
|
|
110
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
111
|
+
) -> UserAllResponse:
|
|
112
|
+
"""
|
|
113
|
+
Get Users Endpoint
|
|
114
|
+
|
|
115
|
+
Args:
|
|
116
|
+
extra_headers: Send extra headers
|
|
117
|
+
|
|
118
|
+
extra_query: Add additional query parameters to the request
|
|
119
|
+
|
|
120
|
+
extra_body: Add additional JSON properties to the request
|
|
121
|
+
|
|
122
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
123
|
+
"""
|
|
124
|
+
return self._get(
|
|
125
|
+
"/tail/users",
|
|
126
|
+
options=make_request_options(
|
|
127
|
+
extra_headers=extra_headers,
|
|
128
|
+
extra_query=extra_query,
|
|
129
|
+
extra_body=extra_body,
|
|
130
|
+
timeout=timeout,
|
|
131
|
+
query=maybe_transform(
|
|
132
|
+
{
|
|
133
|
+
"email_id": email_id,
|
|
134
|
+
"limit": limit,
|
|
135
|
+
"page": page,
|
|
136
|
+
"raccoon_passcode": raccoon_passcode,
|
|
137
|
+
"search_query": search_query,
|
|
138
|
+
"sort_by": sort_by,
|
|
139
|
+
"sort_order": sort_order,
|
|
140
|
+
},
|
|
141
|
+
user_all_params.UserAllParams,
|
|
142
|
+
),
|
|
143
|
+
),
|
|
144
|
+
cast_to=UserAllResponse,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
def status(
|
|
148
|
+
self,
|
|
149
|
+
*,
|
|
150
|
+
app_name: str,
|
|
151
|
+
raccoon_passcode: str,
|
|
152
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
153
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
154
|
+
extra_headers: Headers | None = None,
|
|
155
|
+
extra_query: Query | None = None,
|
|
156
|
+
extra_body: Body | None = None,
|
|
157
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
158
|
+
) -> UserStatusResponse:
|
|
159
|
+
"""
|
|
160
|
+
Get Auth Status Endpoint
|
|
161
|
+
|
|
162
|
+
Args:
|
|
163
|
+
extra_headers: Send extra headers
|
|
164
|
+
|
|
165
|
+
extra_query: Add additional query parameters to the request
|
|
166
|
+
|
|
167
|
+
extra_body: Add additional JSON properties to the request
|
|
168
|
+
|
|
169
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
170
|
+
"""
|
|
171
|
+
return self._get(
|
|
172
|
+
"/tail/app/auth-status",
|
|
173
|
+
options=make_request_options(
|
|
174
|
+
extra_headers=extra_headers,
|
|
175
|
+
extra_query=extra_query,
|
|
176
|
+
extra_body=extra_body,
|
|
177
|
+
timeout=timeout,
|
|
178
|
+
query=maybe_transform(
|
|
179
|
+
{
|
|
180
|
+
"app_name": app_name,
|
|
181
|
+
"raccoon_passcode": raccoon_passcode,
|
|
182
|
+
},
|
|
183
|
+
user_status_params.UserStatusParams,
|
|
184
|
+
),
|
|
185
|
+
),
|
|
186
|
+
cast_to=UserStatusResponse,
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class AsyncUsersResource(AsyncAPIResource):
|
|
191
|
+
@cached_property
|
|
192
|
+
def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
|
|
193
|
+
"""
|
|
194
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
195
|
+
the raw response object instead of the parsed content.
|
|
196
|
+
|
|
197
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
198
|
+
"""
|
|
199
|
+
return AsyncUsersResourceWithRawResponse(self)
|
|
200
|
+
|
|
201
|
+
@cached_property
|
|
202
|
+
def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
|
|
203
|
+
"""
|
|
204
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
205
|
+
|
|
206
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
207
|
+
"""
|
|
208
|
+
return AsyncUsersResourceWithStreamingResponse(self)
|
|
209
|
+
|
|
210
|
+
async def create(
|
|
211
|
+
self,
|
|
212
|
+
*,
|
|
213
|
+
email: str,
|
|
214
|
+
name: str,
|
|
215
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
216
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
217
|
+
extra_headers: Headers | None = None,
|
|
218
|
+
extra_query: Query | None = None,
|
|
219
|
+
extra_body: Body | None = None,
|
|
220
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
221
|
+
) -> UserCreateResponse:
|
|
222
|
+
"""
|
|
223
|
+
Create User Endpoint
|
|
224
|
+
|
|
225
|
+
Args:
|
|
226
|
+
email: specify email of user.
|
|
227
|
+
|
|
228
|
+
name: specify name of user.
|
|
229
|
+
|
|
230
|
+
extra_headers: Send extra headers
|
|
231
|
+
|
|
232
|
+
extra_query: Add additional query parameters to the request
|
|
233
|
+
|
|
234
|
+
extra_body: Add additional JSON properties to the request
|
|
235
|
+
|
|
236
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
237
|
+
"""
|
|
238
|
+
return await self._post(
|
|
239
|
+
"/tail/users/create",
|
|
240
|
+
body=await async_maybe_transform(
|
|
241
|
+
{
|
|
242
|
+
"email": email,
|
|
243
|
+
"name": name,
|
|
244
|
+
},
|
|
245
|
+
user_create_params.UserCreateParams,
|
|
246
|
+
),
|
|
247
|
+
options=make_request_options(
|
|
248
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
249
|
+
),
|
|
250
|
+
cast_to=UserCreateResponse,
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
async def all(
|
|
254
|
+
self,
|
|
255
|
+
*,
|
|
256
|
+
email_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
257
|
+
limit: Optional[int] | NotGiven = NOT_GIVEN,
|
|
258
|
+
page: Optional[int] | NotGiven = NOT_GIVEN,
|
|
259
|
+
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
260
|
+
search_query: Optional[str] | NotGiven = NOT_GIVEN,
|
|
261
|
+
sort_by: Optional[Literal["createdAt", "name", "email", "raccoonPasscode"]] | NotGiven = NOT_GIVEN,
|
|
262
|
+
sort_order: Optional[Literal["ascend", "descend"]] | NotGiven = NOT_GIVEN,
|
|
263
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
264
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
265
|
+
extra_headers: Headers | None = None,
|
|
266
|
+
extra_query: Query | None = None,
|
|
267
|
+
extra_body: Body | None = None,
|
|
268
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
269
|
+
) -> UserAllResponse:
|
|
270
|
+
"""
|
|
271
|
+
Get Users Endpoint
|
|
272
|
+
|
|
273
|
+
Args:
|
|
274
|
+
extra_headers: Send extra headers
|
|
275
|
+
|
|
276
|
+
extra_query: Add additional query parameters to the request
|
|
277
|
+
|
|
278
|
+
extra_body: Add additional JSON properties to the request
|
|
279
|
+
|
|
280
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
281
|
+
"""
|
|
282
|
+
return await self._get(
|
|
283
|
+
"/tail/users",
|
|
284
|
+
options=make_request_options(
|
|
285
|
+
extra_headers=extra_headers,
|
|
286
|
+
extra_query=extra_query,
|
|
287
|
+
extra_body=extra_body,
|
|
288
|
+
timeout=timeout,
|
|
289
|
+
query=await async_maybe_transform(
|
|
290
|
+
{
|
|
291
|
+
"email_id": email_id,
|
|
292
|
+
"limit": limit,
|
|
293
|
+
"page": page,
|
|
294
|
+
"raccoon_passcode": raccoon_passcode,
|
|
295
|
+
"search_query": search_query,
|
|
296
|
+
"sort_by": sort_by,
|
|
297
|
+
"sort_order": sort_order,
|
|
298
|
+
},
|
|
299
|
+
user_all_params.UserAllParams,
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
cast_to=UserAllResponse,
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
async def status(
|
|
306
|
+
self,
|
|
307
|
+
*,
|
|
308
|
+
app_name: str,
|
|
309
|
+
raccoon_passcode: str,
|
|
310
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
311
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
312
|
+
extra_headers: Headers | None = None,
|
|
313
|
+
extra_query: Query | None = None,
|
|
314
|
+
extra_body: Body | None = None,
|
|
315
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
316
|
+
) -> UserStatusResponse:
|
|
317
|
+
"""
|
|
318
|
+
Get Auth Status Endpoint
|
|
319
|
+
|
|
320
|
+
Args:
|
|
321
|
+
extra_headers: Send extra headers
|
|
322
|
+
|
|
323
|
+
extra_query: Add additional query parameters to the request
|
|
324
|
+
|
|
325
|
+
extra_body: Add additional JSON properties to the request
|
|
326
|
+
|
|
327
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
328
|
+
"""
|
|
329
|
+
return await self._get(
|
|
330
|
+
"/tail/app/auth-status",
|
|
331
|
+
options=make_request_options(
|
|
332
|
+
extra_headers=extra_headers,
|
|
333
|
+
extra_query=extra_query,
|
|
334
|
+
extra_body=extra_body,
|
|
335
|
+
timeout=timeout,
|
|
336
|
+
query=await async_maybe_transform(
|
|
337
|
+
{
|
|
338
|
+
"app_name": app_name,
|
|
339
|
+
"raccoon_passcode": raccoon_passcode,
|
|
340
|
+
},
|
|
341
|
+
user_status_params.UserStatusParams,
|
|
342
|
+
),
|
|
343
|
+
),
|
|
344
|
+
cast_to=UserStatusResponse,
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
class UsersResourceWithRawResponse:
|
|
349
|
+
def __init__(self, users: UsersResource) -> None:
|
|
350
|
+
self._users = users
|
|
351
|
+
|
|
352
|
+
self.create = to_raw_response_wrapper(
|
|
353
|
+
users.create,
|
|
354
|
+
)
|
|
355
|
+
self.all = to_raw_response_wrapper(
|
|
356
|
+
users.all,
|
|
357
|
+
)
|
|
358
|
+
self.status = to_raw_response_wrapper(
|
|
359
|
+
users.status,
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
class AsyncUsersResourceWithRawResponse:
|
|
364
|
+
def __init__(self, users: AsyncUsersResource) -> None:
|
|
365
|
+
self._users = users
|
|
366
|
+
|
|
367
|
+
self.create = async_to_raw_response_wrapper(
|
|
368
|
+
users.create,
|
|
369
|
+
)
|
|
370
|
+
self.all = async_to_raw_response_wrapper(
|
|
371
|
+
users.all,
|
|
372
|
+
)
|
|
373
|
+
self.status = async_to_raw_response_wrapper(
|
|
374
|
+
users.status,
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
class UsersResourceWithStreamingResponse:
|
|
379
|
+
def __init__(self, users: UsersResource) -> None:
|
|
380
|
+
self._users = users
|
|
381
|
+
|
|
382
|
+
self.create = to_streamed_response_wrapper(
|
|
383
|
+
users.create,
|
|
384
|
+
)
|
|
385
|
+
self.all = to_streamed_response_wrapper(
|
|
386
|
+
users.all,
|
|
387
|
+
)
|
|
388
|
+
self.status = to_streamed_response_wrapper(
|
|
389
|
+
users.status,
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
class AsyncUsersResourceWithStreamingResponse:
|
|
394
|
+
def __init__(self, users: AsyncUsersResource) -> None:
|
|
395
|
+
self._users = users
|
|
396
|
+
|
|
397
|
+
self.create = async_to_streamed_response_wrapper(
|
|
398
|
+
users.create,
|
|
399
|
+
)
|
|
400
|
+
self.all = async_to_streamed_response_wrapper(
|
|
401
|
+
users.all,
|
|
402
|
+
)
|
|
403
|
+
self.status = async_to_streamed_response_wrapper(
|
|
404
|
+
users.status,
|
|
405
|
+
)
|
raccoonai/types/__init__.py
CHANGED
|
@@ -4,18 +4,3 @@ 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
|
|
10
|
-
from .fleet_create_params import FleetCreateParams as FleetCreateParams
|
|
11
|
-
from .fleet_logs_response import FleetLogsResponse as FleetLogsResponse
|
|
12
|
-
from .tail_users_response import TailUsersResponse as TailUsersResponse
|
|
13
|
-
from .fleet_create_response import FleetCreateResponse as FleetCreateResponse
|
|
14
|
-
from .fleet_sessions_params import FleetSessionsParams as FleetSessionsParams
|
|
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
|
|
20
|
-
from .fleet_terminate_response import FleetTerminateResponse as FleetTerminateResponse
|
|
21
|
-
from .extension_upload_response import ExtensionUploadResponse as ExtensionUploadResponse
|