raccoonai 0.1.0a6__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.

Files changed (44) hide show
  1. raccoonai/_base_client.py +7 -1
  2. raccoonai/_client.py +20 -3
  3. raccoonai/_files.py +1 -1
  4. raccoonai/_version.py +1 -1
  5. raccoonai/resources/__init__.py +28 -0
  6. raccoonai/resources/extensions.py +400 -0
  7. raccoonai/resources/fleet.py +176 -14
  8. raccoonai/resources/lam.py +219 -764
  9. raccoonai/resources/tail/__init__.py +47 -0
  10. raccoonai/resources/tail/apps.py +225 -0
  11. raccoonai/resources/tail/auth.py +186 -0
  12. raccoonai/resources/tail/tail.py +273 -0
  13. raccoonai/types/__init__.py +10 -4
  14. raccoonai/types/extension_all_response.py +22 -0
  15. raccoonai/types/extension_get_response.py +16 -0
  16. raccoonai/types/extension_upload_params.py +13 -0
  17. raccoonai/types/extension_upload_response.py +16 -0
  18. raccoonai/types/fleet_create_params.py +26 -12
  19. raccoonai/types/fleet_create_response.py +3 -5
  20. raccoonai/types/fleet_sessions_params.py +42 -0
  21. raccoonai/types/fleet_sessions_response.py +58 -0
  22. raccoonai/types/fleet_status_response.py +3 -5
  23. raccoonai/types/fleet_terminate_response.py +3 -5
  24. raccoonai/types/lam_run_params.py +36 -3
  25. raccoonai/types/lam_run_response.py +9 -1
  26. raccoonai/types/lam_tasks_params.py +39 -0
  27. raccoonai/types/lam_tasks_response.py +52 -0
  28. raccoonai/types/tail/__init__.py +9 -0
  29. raccoonai/types/tail/app_all_response.py +38 -0
  30. raccoonai/types/tail/app_linked_params.py +13 -0
  31. raccoonai/types/tail/app_linked_response.py +14 -0
  32. raccoonai/types/tail/auth_status_params.py +15 -0
  33. raccoonai/types/tail/auth_status_response.py +17 -0
  34. raccoonai/types/tail_users_params.py +26 -0
  35. raccoonai/types/tail_users_response.py +48 -0
  36. {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a8.dist-info}/METADATA +33 -16
  37. raccoonai-0.1.0a8.dist-info/RECORD +61 -0
  38. raccoonai/types/lam_extract_params.py +0 -68
  39. raccoonai/types/lam_extract_response.py +0 -31
  40. raccoonai/types/lam_integration_run_params.py +0 -57
  41. raccoonai/types/lam_integration_run_response.py +0 -53
  42. raccoonai-0.1.0a6.dist-info/RECORD +0 -44
  43. {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a8.dist-info}/WHEEL +0 -0
  44. {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a8.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,47 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .apps import (
4
+ AppsResource,
5
+ AsyncAppsResource,
6
+ AppsResourceWithRawResponse,
7
+ AsyncAppsResourceWithRawResponse,
8
+ AppsResourceWithStreamingResponse,
9
+ AsyncAppsResourceWithStreamingResponse,
10
+ )
11
+ from .auth import (
12
+ AuthResource,
13
+ AsyncAuthResource,
14
+ AuthResourceWithRawResponse,
15
+ AsyncAuthResourceWithRawResponse,
16
+ AuthResourceWithStreamingResponse,
17
+ AsyncAuthResourceWithStreamingResponse,
18
+ )
19
+ from .tail import (
20
+ TailResource,
21
+ AsyncTailResource,
22
+ TailResourceWithRawResponse,
23
+ AsyncTailResourceWithRawResponse,
24
+ TailResourceWithStreamingResponse,
25
+ AsyncTailResourceWithStreamingResponse,
26
+ )
27
+
28
+ __all__ = [
29
+ "AppsResource",
30
+ "AsyncAppsResource",
31
+ "AppsResourceWithRawResponse",
32
+ "AsyncAppsResourceWithRawResponse",
33
+ "AppsResourceWithStreamingResponse",
34
+ "AsyncAppsResourceWithStreamingResponse",
35
+ "AuthResource",
36
+ "AsyncAuthResource",
37
+ "AuthResourceWithRawResponse",
38
+ "AsyncAuthResourceWithRawResponse",
39
+ "AuthResourceWithStreamingResponse",
40
+ "AsyncAuthResourceWithStreamingResponse",
41
+ "TailResource",
42
+ "AsyncTailResource",
43
+ "TailResourceWithRawResponse",
44
+ "AsyncTailResourceWithRawResponse",
45
+ "TailResourceWithStreamingResponse",
46
+ "AsyncTailResourceWithStreamingResponse",
47
+ ]
@@ -0,0 +1,225 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._utils import (
9
+ maybe_transform,
10
+ async_maybe_transform,
11
+ )
12
+ from ..._compat import cached_property
13
+ from ..._resource import SyncAPIResource, AsyncAPIResource
14
+ from ..._response import (
15
+ to_raw_response_wrapper,
16
+ to_streamed_response_wrapper,
17
+ async_to_raw_response_wrapper,
18
+ async_to_streamed_response_wrapper,
19
+ )
20
+ from ...types.tail import app_linked_params
21
+ from ..._base_client import make_request_options
22
+ from ...types.tail.app_all_response import AppAllResponse
23
+ from ...types.tail.app_linked_response import AppLinkedResponse
24
+
25
+ __all__ = ["AppsResource", "AsyncAppsResource"]
26
+
27
+
28
+ class AppsResource(SyncAPIResource):
29
+ @cached_property
30
+ def with_raw_response(self) -> AppsResourceWithRawResponse:
31
+ """
32
+ This property can be used as a prefix for any HTTP method call to return
33
+ the raw response object instead of the parsed content.
34
+
35
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
36
+ """
37
+ return AppsResourceWithRawResponse(self)
38
+
39
+ @cached_property
40
+ def with_streaming_response(self) -> AppsResourceWithStreamingResponse:
41
+ """
42
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
43
+
44
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
45
+ """
46
+ return AppsResourceWithStreamingResponse(self)
47
+
48
+ def all(
49
+ self,
50
+ *,
51
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
+ # The extra values given here take precedence over values defined on the client or passed to this method.
53
+ extra_headers: Headers | None = None,
54
+ extra_query: Query | None = None,
55
+ extra_body: Body | None = None,
56
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ ) -> AppAllResponse:
58
+ """Get Apps Endpoint"""
59
+ return self._get(
60
+ "/tail/apps",
61
+ options=make_request_options(
62
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
63
+ ),
64
+ cast_to=AppAllResponse,
65
+ )
66
+
67
+ def linked(
68
+ self,
69
+ *,
70
+ raccoon_passcode: str,
71
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
72
+ # The extra values given here take precedence over values defined on the client or passed to this method.
73
+ extra_headers: Headers | None = None,
74
+ extra_query: Query | None = None,
75
+ extra_body: Body | None = None,
76
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
77
+ ) -> AppLinkedResponse:
78
+ """
79
+ Get Linked Apps Endpoint
80
+
81
+ Args:
82
+ extra_headers: Send extra headers
83
+
84
+ extra_query: Add additional query parameters to the request
85
+
86
+ extra_body: Add additional JSON properties to the request
87
+
88
+ timeout: Override the client-level default timeout for this request, in seconds
89
+ """
90
+ return self._get(
91
+ "/tail/linked-apps",
92
+ options=make_request_options(
93
+ extra_headers=extra_headers,
94
+ extra_query=extra_query,
95
+ extra_body=extra_body,
96
+ timeout=timeout,
97
+ query=maybe_transform({"raccoon_passcode": raccoon_passcode}, app_linked_params.AppLinkedParams),
98
+ ),
99
+ cast_to=AppLinkedResponse,
100
+ )
101
+
102
+
103
+ class AsyncAppsResource(AsyncAPIResource):
104
+ @cached_property
105
+ def with_raw_response(self) -> AsyncAppsResourceWithRawResponse:
106
+ """
107
+ This property can be used as a prefix for any HTTP method call to return
108
+ the raw response object instead of the parsed content.
109
+
110
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
111
+ """
112
+ return AsyncAppsResourceWithRawResponse(self)
113
+
114
+ @cached_property
115
+ def with_streaming_response(self) -> AsyncAppsResourceWithStreamingResponse:
116
+ """
117
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
118
+
119
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
120
+ """
121
+ return AsyncAppsResourceWithStreamingResponse(self)
122
+
123
+ async def all(
124
+ self,
125
+ *,
126
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
127
+ # The extra values given here take precedence over values defined on the client or passed to this method.
128
+ extra_headers: Headers | None = None,
129
+ extra_query: Query | None = None,
130
+ extra_body: Body | None = None,
131
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132
+ ) -> AppAllResponse:
133
+ """Get Apps Endpoint"""
134
+ return await self._get(
135
+ "/tail/apps",
136
+ options=make_request_options(
137
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
138
+ ),
139
+ cast_to=AppAllResponse,
140
+ )
141
+
142
+ async def linked(
143
+ self,
144
+ *,
145
+ raccoon_passcode: str,
146
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
147
+ # The extra values given here take precedence over values defined on the client or passed to this method.
148
+ extra_headers: Headers | None = None,
149
+ extra_query: Query | None = None,
150
+ extra_body: Body | None = None,
151
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
152
+ ) -> AppLinkedResponse:
153
+ """
154
+ Get Linked Apps Endpoint
155
+
156
+ Args:
157
+ extra_headers: Send extra headers
158
+
159
+ extra_query: Add additional query parameters to the request
160
+
161
+ extra_body: Add additional JSON properties to the request
162
+
163
+ timeout: Override the client-level default timeout for this request, in seconds
164
+ """
165
+ return await self._get(
166
+ "/tail/linked-apps",
167
+ options=make_request_options(
168
+ extra_headers=extra_headers,
169
+ extra_query=extra_query,
170
+ extra_body=extra_body,
171
+ timeout=timeout,
172
+ query=await async_maybe_transform(
173
+ {"raccoon_passcode": raccoon_passcode}, app_linked_params.AppLinkedParams
174
+ ),
175
+ ),
176
+ cast_to=AppLinkedResponse,
177
+ )
178
+
179
+
180
+ class AppsResourceWithRawResponse:
181
+ def __init__(self, apps: AppsResource) -> None:
182
+ self._apps = apps
183
+
184
+ self.all = to_raw_response_wrapper(
185
+ apps.all,
186
+ )
187
+ self.linked = to_raw_response_wrapper(
188
+ apps.linked,
189
+ )
190
+
191
+
192
+ class AsyncAppsResourceWithRawResponse:
193
+ def __init__(self, apps: AsyncAppsResource) -> None:
194
+ self._apps = apps
195
+
196
+ self.all = async_to_raw_response_wrapper(
197
+ apps.all,
198
+ )
199
+ self.linked = async_to_raw_response_wrapper(
200
+ apps.linked,
201
+ )
202
+
203
+
204
+ class AppsResourceWithStreamingResponse:
205
+ def __init__(self, apps: AppsResource) -> None:
206
+ self._apps = apps
207
+
208
+ self.all = to_streamed_response_wrapper(
209
+ apps.all,
210
+ )
211
+ self.linked = to_streamed_response_wrapper(
212
+ apps.linked,
213
+ )
214
+
215
+
216
+ class AsyncAppsResourceWithStreamingResponse:
217
+ def __init__(self, apps: AsyncAppsResource) -> None:
218
+ self._apps = apps
219
+
220
+ self.all = async_to_streamed_response_wrapper(
221
+ apps.all,
222
+ )
223
+ self.linked = async_to_streamed_response_wrapper(
224
+ apps.linked,
225
+ )
@@ -0,0 +1,186 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import httpx
6
+
7
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._utils import (
9
+ maybe_transform,
10
+ async_maybe_transform,
11
+ )
12
+ from ..._compat import cached_property
13
+ from ..._resource import SyncAPIResource, AsyncAPIResource
14
+ from ..._response import (
15
+ to_raw_response_wrapper,
16
+ to_streamed_response_wrapper,
17
+ async_to_raw_response_wrapper,
18
+ async_to_streamed_response_wrapper,
19
+ )
20
+ from ...types.tail import auth_status_params
21
+ from ..._base_client import make_request_options
22
+ from ...types.tail.auth_status_response import AuthStatusResponse
23
+
24
+ __all__ = ["AuthResource", "AsyncAuthResource"]
25
+
26
+
27
+ class AuthResource(SyncAPIResource):
28
+ @cached_property
29
+ def with_raw_response(self) -> AuthResourceWithRawResponse:
30
+ """
31
+ This property can be used as a prefix for any HTTP method call to return
32
+ the raw response object instead of the parsed content.
33
+
34
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
35
+ """
36
+ return AuthResourceWithRawResponse(self)
37
+
38
+ @cached_property
39
+ def with_streaming_response(self) -> AuthResourceWithStreamingResponse:
40
+ """
41
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42
+
43
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
44
+ """
45
+ return AuthResourceWithStreamingResponse(self)
46
+
47
+ def status(
48
+ self,
49
+ *,
50
+ app_name: str,
51
+ raccoon_passcode: str,
52
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
+ # The extra values given here take precedence over values defined on the client or passed to this method.
54
+ extra_headers: Headers | None = None,
55
+ extra_query: Query | None = None,
56
+ extra_body: Body | None = None,
57
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ ) -> AuthStatusResponse:
59
+ """
60
+ Get Auth Status Endpoint
61
+
62
+ Args:
63
+ extra_headers: Send extra headers
64
+
65
+ extra_query: Add additional query parameters to the request
66
+
67
+ extra_body: Add additional JSON properties to the request
68
+
69
+ timeout: Override the client-level default timeout for this request, in seconds
70
+ """
71
+ return self._get(
72
+ "/tail/app/auth-status",
73
+ options=make_request_options(
74
+ extra_headers=extra_headers,
75
+ extra_query=extra_query,
76
+ extra_body=extra_body,
77
+ timeout=timeout,
78
+ query=maybe_transform(
79
+ {
80
+ "app_name": app_name,
81
+ "raccoon_passcode": raccoon_passcode,
82
+ },
83
+ auth_status_params.AuthStatusParams,
84
+ ),
85
+ ),
86
+ cast_to=AuthStatusResponse,
87
+ )
88
+
89
+
90
+ class AsyncAuthResource(AsyncAPIResource):
91
+ @cached_property
92
+ def with_raw_response(self) -> AsyncAuthResourceWithRawResponse:
93
+ """
94
+ This property can be used as a prefix for any HTTP method call to return
95
+ the raw response object instead of the parsed content.
96
+
97
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
98
+ """
99
+ return AsyncAuthResourceWithRawResponse(self)
100
+
101
+ @cached_property
102
+ def with_streaming_response(self) -> AsyncAuthResourceWithStreamingResponse:
103
+ """
104
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
105
+
106
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
107
+ """
108
+ return AsyncAuthResourceWithStreamingResponse(self)
109
+
110
+ async def status(
111
+ self,
112
+ *,
113
+ app_name: str,
114
+ raccoon_passcode: str,
115
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
116
+ # The extra values given here take precedence over values defined on the client or passed to this method.
117
+ extra_headers: Headers | None = None,
118
+ extra_query: Query | None = None,
119
+ extra_body: Body | None = None,
120
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ ) -> AuthStatusResponse:
122
+ """
123
+ Get Auth Status Endpoint
124
+
125
+ Args:
126
+ extra_headers: Send extra headers
127
+
128
+ extra_query: Add additional query parameters to the request
129
+
130
+ extra_body: Add additional JSON properties to the request
131
+
132
+ timeout: Override the client-level default timeout for this request, in seconds
133
+ """
134
+ return await self._get(
135
+ "/tail/app/auth-status",
136
+ options=make_request_options(
137
+ extra_headers=extra_headers,
138
+ extra_query=extra_query,
139
+ extra_body=extra_body,
140
+ timeout=timeout,
141
+ query=await async_maybe_transform(
142
+ {
143
+ "app_name": app_name,
144
+ "raccoon_passcode": raccoon_passcode,
145
+ },
146
+ auth_status_params.AuthStatusParams,
147
+ ),
148
+ ),
149
+ cast_to=AuthStatusResponse,
150
+ )
151
+
152
+
153
+ class AuthResourceWithRawResponse:
154
+ def __init__(self, auth: AuthResource) -> None:
155
+ self._auth = auth
156
+
157
+ self.status = to_raw_response_wrapper(
158
+ auth.status,
159
+ )
160
+
161
+
162
+ class AsyncAuthResourceWithRawResponse:
163
+ def __init__(self, auth: AsyncAuthResource) -> None:
164
+ self._auth = auth
165
+
166
+ self.status = async_to_raw_response_wrapper(
167
+ auth.status,
168
+ )
169
+
170
+
171
+ class AuthResourceWithStreamingResponse:
172
+ def __init__(self, auth: AuthResource) -> None:
173
+ self._auth = auth
174
+
175
+ self.status = to_streamed_response_wrapper(
176
+ auth.status,
177
+ )
178
+
179
+
180
+ class AsyncAuthResourceWithStreamingResponse:
181
+ def __init__(self, auth: AsyncAuthResource) -> None:
182
+ self._auth = auth
183
+
184
+ self.status = async_to_streamed_response_wrapper(
185
+ auth.status,
186
+ )