studyfetch-sdk 0.1.0a2__py3-none-any.whl → 0.1.0a4__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.
Files changed (54) hide show
  1. studyfetch_sdk/_version.py +1 -1
  2. studyfetch_sdk/resources/v1/__init__.py +0 -14
  3. studyfetch_sdk/resources/v1/auth/__init__.py +0 -28
  4. studyfetch_sdk/resources/v1/auth/auth.py +0 -504
  5. studyfetch_sdk/resources/v1/auth/number_2fa.py +1 -294
  6. studyfetch_sdk/resources/v1/chat/chat.py +7 -7
  7. studyfetch_sdk/resources/v1/components.py +9 -8
  8. studyfetch_sdk/resources/v1/flashcards.py +16 -16
  9. studyfetch_sdk/resources/v1/usage.py +1 -593
  10. studyfetch_sdk/resources/v1/v1.py +0 -32
  11. studyfetch_sdk/types/v1/__init__.py +0 -5
  12. studyfetch_sdk/types/v1/auth/__init__.py +0 -8
  13. studyfetch_sdk/types/v1/chat_send_message_params.py +3 -3
  14. studyfetch_sdk/types/v1/component_create_params.py +295 -3
  15. studyfetch_sdk/types/v1/component_create_response.py +3 -1
  16. studyfetch_sdk/types/v1/component_embed_params.py +3 -2
  17. studyfetch_sdk/types/v1/component_list_response.py +3 -1
  18. studyfetch_sdk/types/v1/component_retrieve_response.py +3 -1
  19. studyfetch_sdk/types/v1/component_update_response.py +3 -1
  20. studyfetch_sdk/types/v1/flashcard_get_all_params.py +2 -2
  21. studyfetch_sdk/types/v1/flashcard_get_due_params.py +1 -1
  22. studyfetch_sdk/types/v1/flashcard_get_stats_params.py +2 -2
  23. {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/METADATA +11 -35
  24. {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/RECORD +26 -54
  25. studyfetch_sdk/resources/v1/auth/login.py +0 -374
  26. studyfetch_sdk/resources/v1/auth/organization_invites.py +0 -160
  27. studyfetch_sdk/resources/v1/organizations/__init__.py +0 -103
  28. studyfetch_sdk/resources/v1/organizations/api_keys.py +0 -260
  29. studyfetch_sdk/resources/v1/organizations/logo/__init__.py +0 -33
  30. studyfetch_sdk/resources/v1/organizations/logo/logo.py +0 -166
  31. studyfetch_sdk/resources/v1/organizations/logo/upload.py +0 -184
  32. studyfetch_sdk/resources/v1/organizations/organizations.py +0 -428
  33. studyfetch_sdk/resources/v1/organizations/profile/__init__.py +0 -47
  34. studyfetch_sdk/resources/v1/organizations/profile/models.py +0 -134
  35. studyfetch_sdk/resources/v1/organizations/profile/profile.py +0 -248
  36. studyfetch_sdk/resources/v1/organizations/profile/team.py +0 -462
  37. studyfetch_sdk/resources/v1/organizations/team/__init__.py +0 -33
  38. studyfetch_sdk/resources/v1/organizations/team/invite.py +0 -236
  39. studyfetch_sdk/resources/v1/organizations/team/team.py +0 -564
  40. studyfetch_sdk/resources/v1/organizations/theme.py +0 -184
  41. studyfetch_sdk/resources/v1/organizations/usage.py +0 -210
  42. studyfetch_sdk/types/v1/auth/login_authenticate_params.py +0 -15
  43. studyfetch_sdk/types/v1/auth/login_verify_2fa_params.py +0 -15
  44. studyfetch_sdk/types/v1/auth/login_verify_backup_code_params.py +0 -17
  45. studyfetch_sdk/types/v1/auth/number_2fa_disable_params.py +0 -12
  46. studyfetch_sdk/types/v1/auth/number_2fa_enable_params.py +0 -12
  47. studyfetch_sdk/types/v1/auth/number_2fa_regenerate_backup_codes_params.py +0 -12
  48. studyfetch_sdk/types/v1/auth_register_new_user_params.py +0 -23
  49. studyfetch_sdk/types/v1/auth_request_password_reset_params.py +0 -12
  50. studyfetch_sdk/types/v1/auth_reset_password_params.py +0 -17
  51. studyfetch_sdk/types/v1/usage_track_chat_params.py +0 -54
  52. studyfetch_sdk/types/v1/usage_track_event_params.py +0 -128
  53. {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/WHEEL +0 -0
  54. {studyfetch_sdk-0.1.0a2.dist-info → studyfetch_sdk-0.1.0a4.dist-info}/licenses/LICENSE +0 -0
@@ -1,160 +0,0 @@
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, NoneType, NotGiven
8
- from ...._compat import cached_property
9
- from ...._resource import SyncAPIResource, AsyncAPIResource
10
- from ...._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ...._base_client import make_request_options
17
-
18
- __all__ = ["OrganizationInvitesResource", "AsyncOrganizationInvitesResource"]
19
-
20
-
21
- class OrganizationInvitesResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> OrganizationInvitesResourceWithRawResponse:
24
- """
25
- This property can be used as a prefix for any HTTP method call to return
26
- the raw response object instead of the parsed content.
27
-
28
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
29
- """
30
- return OrganizationInvitesResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> OrganizationInvitesResourceWithStreamingResponse:
34
- """
35
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
36
-
37
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
38
- """
39
- return OrganizationInvitesResourceWithStreamingResponse(self)
40
-
41
- def preview(
42
- self,
43
- token: str,
44
- *,
45
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
- # The extra values given here take precedence over values defined on the client or passed to this method.
47
- extra_headers: Headers | None = None,
48
- extra_query: Query | None = None,
49
- extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
- ) -> None:
52
- """
53
- Args:
54
- extra_headers: Send extra headers
55
-
56
- extra_query: Add additional query parameters to the request
57
-
58
- extra_body: Add additional JSON properties to the request
59
-
60
- timeout: Override the client-level default timeout for this request, in seconds
61
- """
62
- if not token:
63
- raise ValueError(f"Expected a non-empty value for `token` but received {token!r}")
64
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
65
- return self._get(
66
- f"/api/v1/auth/organization-invites/preview/{token}",
67
- options=make_request_options(
68
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
69
- ),
70
- cast_to=NoneType,
71
- )
72
-
73
-
74
- class AsyncOrganizationInvitesResource(AsyncAPIResource):
75
- @cached_property
76
- def with_raw_response(self) -> AsyncOrganizationInvitesResourceWithRawResponse:
77
- """
78
- This property can be used as a prefix for any HTTP method call to return
79
- the raw response object instead of the parsed content.
80
-
81
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
82
- """
83
- return AsyncOrganizationInvitesResourceWithRawResponse(self)
84
-
85
- @cached_property
86
- def with_streaming_response(self) -> AsyncOrganizationInvitesResourceWithStreamingResponse:
87
- """
88
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
89
-
90
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
91
- """
92
- return AsyncOrganizationInvitesResourceWithStreamingResponse(self)
93
-
94
- async def preview(
95
- self,
96
- token: str,
97
- *,
98
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
99
- # The extra values given here take precedence over values defined on the client or passed to this method.
100
- extra_headers: Headers | None = None,
101
- extra_query: Query | None = None,
102
- extra_body: Body | None = None,
103
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
104
- ) -> None:
105
- """
106
- Args:
107
- extra_headers: Send extra headers
108
-
109
- extra_query: Add additional query parameters to the request
110
-
111
- extra_body: Add additional JSON properties to the request
112
-
113
- timeout: Override the client-level default timeout for this request, in seconds
114
- """
115
- if not token:
116
- raise ValueError(f"Expected a non-empty value for `token` but received {token!r}")
117
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
118
- return await self._get(
119
- f"/api/v1/auth/organization-invites/preview/{token}",
120
- options=make_request_options(
121
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
122
- ),
123
- cast_to=NoneType,
124
- )
125
-
126
-
127
- class OrganizationInvitesResourceWithRawResponse:
128
- def __init__(self, organization_invites: OrganizationInvitesResource) -> None:
129
- self._organization_invites = organization_invites
130
-
131
- self.preview = to_raw_response_wrapper(
132
- organization_invites.preview,
133
- )
134
-
135
-
136
- class AsyncOrganizationInvitesResourceWithRawResponse:
137
- def __init__(self, organization_invites: AsyncOrganizationInvitesResource) -> None:
138
- self._organization_invites = organization_invites
139
-
140
- self.preview = async_to_raw_response_wrapper(
141
- organization_invites.preview,
142
- )
143
-
144
-
145
- class OrganizationInvitesResourceWithStreamingResponse:
146
- def __init__(self, organization_invites: OrganizationInvitesResource) -> None:
147
- self._organization_invites = organization_invites
148
-
149
- self.preview = to_streamed_response_wrapper(
150
- organization_invites.preview,
151
- )
152
-
153
-
154
- class AsyncOrganizationInvitesResourceWithStreamingResponse:
155
- def __init__(self, organization_invites: AsyncOrganizationInvitesResource) -> None:
156
- self._organization_invites = organization_invites
157
-
158
- self.preview = async_to_streamed_response_wrapper(
159
- organization_invites.preview,
160
- )
@@ -1,103 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .logo import (
4
- LogoResource,
5
- AsyncLogoResource,
6
- LogoResourceWithRawResponse,
7
- AsyncLogoResourceWithRawResponse,
8
- LogoResourceWithStreamingResponse,
9
- AsyncLogoResourceWithStreamingResponse,
10
- )
11
- from .team import (
12
- TeamResource,
13
- AsyncTeamResource,
14
- TeamResourceWithRawResponse,
15
- AsyncTeamResourceWithRawResponse,
16
- TeamResourceWithStreamingResponse,
17
- AsyncTeamResourceWithStreamingResponse,
18
- )
19
- from .theme import (
20
- ThemeResource,
21
- AsyncThemeResource,
22
- ThemeResourceWithRawResponse,
23
- AsyncThemeResourceWithRawResponse,
24
- ThemeResourceWithStreamingResponse,
25
- AsyncThemeResourceWithStreamingResponse,
26
- )
27
- from .usage import (
28
- UsageResource,
29
- AsyncUsageResource,
30
- UsageResourceWithRawResponse,
31
- AsyncUsageResourceWithRawResponse,
32
- UsageResourceWithStreamingResponse,
33
- AsyncUsageResourceWithStreamingResponse,
34
- )
35
- from .profile import (
36
- ProfileResource,
37
- AsyncProfileResource,
38
- ProfileResourceWithRawResponse,
39
- AsyncProfileResourceWithRawResponse,
40
- ProfileResourceWithStreamingResponse,
41
- AsyncProfileResourceWithStreamingResponse,
42
- )
43
- from .api_keys import (
44
- APIKeysResource,
45
- AsyncAPIKeysResource,
46
- APIKeysResourceWithRawResponse,
47
- AsyncAPIKeysResourceWithRawResponse,
48
- APIKeysResourceWithStreamingResponse,
49
- AsyncAPIKeysResourceWithStreamingResponse,
50
- )
51
- from .organizations import (
52
- OrganizationsResource,
53
- AsyncOrganizationsResource,
54
- OrganizationsResourceWithRawResponse,
55
- AsyncOrganizationsResourceWithRawResponse,
56
- OrganizationsResourceWithStreamingResponse,
57
- AsyncOrganizationsResourceWithStreamingResponse,
58
- )
59
-
60
- __all__ = [
61
- "ProfileResource",
62
- "AsyncProfileResource",
63
- "ProfileResourceWithRawResponse",
64
- "AsyncProfileResourceWithRawResponse",
65
- "ProfileResourceWithStreamingResponse",
66
- "AsyncProfileResourceWithStreamingResponse",
67
- "APIKeysResource",
68
- "AsyncAPIKeysResource",
69
- "APIKeysResourceWithRawResponse",
70
- "AsyncAPIKeysResourceWithRawResponse",
71
- "APIKeysResourceWithStreamingResponse",
72
- "AsyncAPIKeysResourceWithStreamingResponse",
73
- "UsageResource",
74
- "AsyncUsageResource",
75
- "UsageResourceWithRawResponse",
76
- "AsyncUsageResourceWithRawResponse",
77
- "UsageResourceWithStreamingResponse",
78
- "AsyncUsageResourceWithStreamingResponse",
79
- "ThemeResource",
80
- "AsyncThemeResource",
81
- "ThemeResourceWithRawResponse",
82
- "AsyncThemeResourceWithRawResponse",
83
- "ThemeResourceWithStreamingResponse",
84
- "AsyncThemeResourceWithStreamingResponse",
85
- "LogoResource",
86
- "AsyncLogoResource",
87
- "LogoResourceWithRawResponse",
88
- "AsyncLogoResourceWithRawResponse",
89
- "LogoResourceWithStreamingResponse",
90
- "AsyncLogoResourceWithStreamingResponse",
91
- "TeamResource",
92
- "AsyncTeamResource",
93
- "TeamResourceWithRawResponse",
94
- "AsyncTeamResourceWithRawResponse",
95
- "TeamResourceWithStreamingResponse",
96
- "AsyncTeamResourceWithStreamingResponse",
97
- "OrganizationsResource",
98
- "AsyncOrganizationsResource",
99
- "OrganizationsResourceWithRawResponse",
100
- "AsyncOrganizationsResourceWithRawResponse",
101
- "OrganizationsResourceWithStreamingResponse",
102
- "AsyncOrganizationsResourceWithStreamingResponse",
103
- ]
@@ -1,260 +0,0 @@
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, NoneType, NotGiven
8
- from ...._compat import cached_property
9
- from ...._resource import SyncAPIResource, AsyncAPIResource
10
- from ...._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ...._base_client import make_request_options
17
-
18
- __all__ = ["APIKeysResource", "AsyncAPIKeysResource"]
19
-
20
-
21
- class APIKeysResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> APIKeysResourceWithRawResponse:
24
- """
25
- This property can be used as a prefix for any HTTP method call to return
26
- the raw response object instead of the parsed content.
27
-
28
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
29
- """
30
- return APIKeysResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> APIKeysResourceWithStreamingResponse:
34
- """
35
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
36
-
37
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
38
- """
39
- return APIKeysResourceWithStreamingResponse(self)
40
-
41
- def delete(
42
- self,
43
- key_id: str,
44
- *,
45
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
- # The extra values given here take precedence over values defined on the client or passed to this method.
47
- extra_headers: Headers | None = None,
48
- extra_query: Query | None = None,
49
- extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
- ) -> None:
52
- """
53
- Args:
54
- extra_headers: Send extra headers
55
-
56
- extra_query: Add additional query parameters to the request
57
-
58
- extra_body: Add additional JSON properties to the request
59
-
60
- timeout: Override the client-level default timeout for this request, in seconds
61
- """
62
- if not key_id:
63
- raise ValueError(f"Expected a non-empty value for `key_id` but received {key_id!r}")
64
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
65
- return self._delete(
66
- f"/api/v1/organizations/api-keys/{key_id}",
67
- options=make_request_options(
68
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
69
- ),
70
- cast_to=NoneType,
71
- )
72
-
73
- def api_keys(
74
- self,
75
- *,
76
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
77
- # The extra values given here take precedence over values defined on the client or passed to this method.
78
- extra_headers: Headers | None = None,
79
- extra_query: Query | None = None,
80
- extra_body: Body | None = None,
81
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
82
- ) -> None:
83
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
84
- return self._post(
85
- "/api/v1/organizations/api-keys",
86
- options=make_request_options(
87
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
88
- ),
89
- cast_to=NoneType,
90
- )
91
-
92
- def retrieve_api_keys(
93
- self,
94
- *,
95
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
96
- # The extra values given here take precedence over values defined on the client or passed to this method.
97
- extra_headers: Headers | None = None,
98
- extra_query: Query | None = None,
99
- extra_body: Body | None = None,
100
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
101
- ) -> None:
102
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
103
- return self._get(
104
- "/api/v1/organizations/api-keys",
105
- options=make_request_options(
106
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
107
- ),
108
- cast_to=NoneType,
109
- )
110
-
111
-
112
- class AsyncAPIKeysResource(AsyncAPIResource):
113
- @cached_property
114
- def with_raw_response(self) -> AsyncAPIKeysResourceWithRawResponse:
115
- """
116
- This property can be used as a prefix for any HTTP method call to return
117
- the raw response object instead of the parsed content.
118
-
119
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
120
- """
121
- return AsyncAPIKeysResourceWithRawResponse(self)
122
-
123
- @cached_property
124
- def with_streaming_response(self) -> AsyncAPIKeysResourceWithStreamingResponse:
125
- """
126
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
127
-
128
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
129
- """
130
- return AsyncAPIKeysResourceWithStreamingResponse(self)
131
-
132
- async def delete(
133
- self,
134
- key_id: str,
135
- *,
136
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137
- # The extra values given here take precedence over values defined on the client or passed to this method.
138
- extra_headers: Headers | None = None,
139
- extra_query: Query | None = None,
140
- extra_body: Body | None = None,
141
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
142
- ) -> None:
143
- """
144
- Args:
145
- extra_headers: Send extra headers
146
-
147
- extra_query: Add additional query parameters to the request
148
-
149
- extra_body: Add additional JSON properties to the request
150
-
151
- timeout: Override the client-level default timeout for this request, in seconds
152
- """
153
- if not key_id:
154
- raise ValueError(f"Expected a non-empty value for `key_id` but received {key_id!r}")
155
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
156
- return await self._delete(
157
- f"/api/v1/organizations/api-keys/{key_id}",
158
- options=make_request_options(
159
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
160
- ),
161
- cast_to=NoneType,
162
- )
163
-
164
- async def api_keys(
165
- self,
166
- *,
167
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
168
- # The extra values given here take precedence over values defined on the client or passed to this method.
169
- extra_headers: Headers | None = None,
170
- extra_query: Query | None = None,
171
- extra_body: Body | None = None,
172
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
173
- ) -> None:
174
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
175
- return await self._post(
176
- "/api/v1/organizations/api-keys",
177
- options=make_request_options(
178
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
179
- ),
180
- cast_to=NoneType,
181
- )
182
-
183
- async def retrieve_api_keys(
184
- self,
185
- *,
186
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
187
- # The extra values given here take precedence over values defined on the client or passed to this method.
188
- extra_headers: Headers | None = None,
189
- extra_query: Query | None = None,
190
- extra_body: Body | None = None,
191
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
192
- ) -> None:
193
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
194
- return await self._get(
195
- "/api/v1/organizations/api-keys",
196
- options=make_request_options(
197
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
198
- ),
199
- cast_to=NoneType,
200
- )
201
-
202
-
203
- class APIKeysResourceWithRawResponse:
204
- def __init__(self, api_keys: APIKeysResource) -> None:
205
- self._api_keys = api_keys
206
-
207
- self.delete = to_raw_response_wrapper(
208
- api_keys.delete,
209
- )
210
- self.api_keys = to_raw_response_wrapper(
211
- api_keys.api_keys,
212
- )
213
- self.retrieve_api_keys = to_raw_response_wrapper(
214
- api_keys.retrieve_api_keys,
215
- )
216
-
217
-
218
- class AsyncAPIKeysResourceWithRawResponse:
219
- def __init__(self, api_keys: AsyncAPIKeysResource) -> None:
220
- self._api_keys = api_keys
221
-
222
- self.delete = async_to_raw_response_wrapper(
223
- api_keys.delete,
224
- )
225
- self.api_keys = async_to_raw_response_wrapper(
226
- api_keys.api_keys,
227
- )
228
- self.retrieve_api_keys = async_to_raw_response_wrapper(
229
- api_keys.retrieve_api_keys,
230
- )
231
-
232
-
233
- class APIKeysResourceWithStreamingResponse:
234
- def __init__(self, api_keys: APIKeysResource) -> None:
235
- self._api_keys = api_keys
236
-
237
- self.delete = to_streamed_response_wrapper(
238
- api_keys.delete,
239
- )
240
- self.api_keys = to_streamed_response_wrapper(
241
- api_keys.api_keys,
242
- )
243
- self.retrieve_api_keys = to_streamed_response_wrapper(
244
- api_keys.retrieve_api_keys,
245
- )
246
-
247
-
248
- class AsyncAPIKeysResourceWithStreamingResponse:
249
- def __init__(self, api_keys: AsyncAPIKeysResource) -> None:
250
- self._api_keys = api_keys
251
-
252
- self.delete = async_to_streamed_response_wrapper(
253
- api_keys.delete,
254
- )
255
- self.api_keys = async_to_streamed_response_wrapper(
256
- api_keys.api_keys,
257
- )
258
- self.retrieve_api_keys = async_to_streamed_response_wrapper(
259
- api_keys.retrieve_api_keys,
260
- )
@@ -1,33 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from .logo import (
4
- LogoResource,
5
- AsyncLogoResource,
6
- LogoResourceWithRawResponse,
7
- AsyncLogoResourceWithRawResponse,
8
- LogoResourceWithStreamingResponse,
9
- AsyncLogoResourceWithStreamingResponse,
10
- )
11
- from .upload import (
12
- UploadResource,
13
- AsyncUploadResource,
14
- UploadResourceWithRawResponse,
15
- AsyncUploadResourceWithRawResponse,
16
- UploadResourceWithStreamingResponse,
17
- AsyncUploadResourceWithStreamingResponse,
18
- )
19
-
20
- __all__ = [
21
- "UploadResource",
22
- "AsyncUploadResource",
23
- "UploadResourceWithRawResponse",
24
- "AsyncUploadResourceWithRawResponse",
25
- "UploadResourceWithStreamingResponse",
26
- "AsyncUploadResourceWithStreamingResponse",
27
- "LogoResource",
28
- "AsyncLogoResource",
29
- "LogoResourceWithRawResponse",
30
- "AsyncLogoResourceWithRawResponse",
31
- "LogoResourceWithStreamingResponse",
32
- "AsyncLogoResourceWithStreamingResponse",
33
- ]