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,166 +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 .upload import (
8
- UploadResource,
9
- AsyncUploadResource,
10
- UploadResourceWithRawResponse,
11
- AsyncUploadResourceWithRawResponse,
12
- UploadResourceWithStreamingResponse,
13
- AsyncUploadResourceWithStreamingResponse,
14
- )
15
- from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
16
- from ....._compat import cached_property
17
- from ....._resource import SyncAPIResource, AsyncAPIResource
18
- from ....._response import (
19
- to_raw_response_wrapper,
20
- to_streamed_response_wrapper,
21
- async_to_raw_response_wrapper,
22
- async_to_streamed_response_wrapper,
23
- )
24
- from ....._base_client import make_request_options
25
-
26
- __all__ = ["LogoResource", "AsyncLogoResource"]
27
-
28
-
29
- class LogoResource(SyncAPIResource):
30
- @cached_property
31
- def upload(self) -> UploadResource:
32
- return UploadResource(self._client)
33
-
34
- @cached_property
35
- def with_raw_response(self) -> LogoResourceWithRawResponse:
36
- """
37
- This property can be used as a prefix for any HTTP method call to return
38
- the raw response object instead of the parsed content.
39
-
40
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
41
- """
42
- return LogoResourceWithRawResponse(self)
43
-
44
- @cached_property
45
- def with_streaming_response(self) -> LogoResourceWithStreamingResponse:
46
- """
47
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
48
-
49
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
50
- """
51
- return LogoResourceWithStreamingResponse(self)
52
-
53
- def delete_all(
54
- self,
55
- *,
56
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
57
- # The extra values given here take precedence over values defined on the client or passed to this method.
58
- extra_headers: Headers | None = None,
59
- extra_query: Query | None = None,
60
- extra_body: Body | None = None,
61
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
62
- ) -> None:
63
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
64
- return self._delete(
65
- "/api/v1/organizations/logo",
66
- options=make_request_options(
67
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
68
- ),
69
- cast_to=NoneType,
70
- )
71
-
72
-
73
- class AsyncLogoResource(AsyncAPIResource):
74
- @cached_property
75
- def upload(self) -> AsyncUploadResource:
76
- return AsyncUploadResource(self._client)
77
-
78
- @cached_property
79
- def with_raw_response(self) -> AsyncLogoResourceWithRawResponse:
80
- """
81
- This property can be used as a prefix for any HTTP method call to return
82
- the raw response object instead of the parsed content.
83
-
84
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
85
- """
86
- return AsyncLogoResourceWithRawResponse(self)
87
-
88
- @cached_property
89
- def with_streaming_response(self) -> AsyncLogoResourceWithStreamingResponse:
90
- """
91
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
92
-
93
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
94
- """
95
- return AsyncLogoResourceWithStreamingResponse(self)
96
-
97
- async def delete_all(
98
- self,
99
- *,
100
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
101
- # The extra values given here take precedence over values defined on the client or passed to this method.
102
- extra_headers: Headers | None = None,
103
- extra_query: Query | None = None,
104
- extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
106
- ) -> None:
107
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
108
- return await self._delete(
109
- "/api/v1/organizations/logo",
110
- options=make_request_options(
111
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
112
- ),
113
- cast_to=NoneType,
114
- )
115
-
116
-
117
- class LogoResourceWithRawResponse:
118
- def __init__(self, logo: LogoResource) -> None:
119
- self._logo = logo
120
-
121
- self.delete_all = to_raw_response_wrapper(
122
- logo.delete_all,
123
- )
124
-
125
- @cached_property
126
- def upload(self) -> UploadResourceWithRawResponse:
127
- return UploadResourceWithRawResponse(self._logo.upload)
128
-
129
-
130
- class AsyncLogoResourceWithRawResponse:
131
- def __init__(self, logo: AsyncLogoResource) -> None:
132
- self._logo = logo
133
-
134
- self.delete_all = async_to_raw_response_wrapper(
135
- logo.delete_all,
136
- )
137
-
138
- @cached_property
139
- def upload(self) -> AsyncUploadResourceWithRawResponse:
140
- return AsyncUploadResourceWithRawResponse(self._logo.upload)
141
-
142
-
143
- class LogoResourceWithStreamingResponse:
144
- def __init__(self, logo: LogoResource) -> None:
145
- self._logo = logo
146
-
147
- self.delete_all = to_streamed_response_wrapper(
148
- logo.delete_all,
149
- )
150
-
151
- @cached_property
152
- def upload(self) -> UploadResourceWithStreamingResponse:
153
- return UploadResourceWithStreamingResponse(self._logo.upload)
154
-
155
-
156
- class AsyncLogoResourceWithStreamingResponse:
157
- def __init__(self, logo: AsyncLogoResource) -> None:
158
- self._logo = logo
159
-
160
- self.delete_all = async_to_streamed_response_wrapper(
161
- logo.delete_all,
162
- )
163
-
164
- @cached_property
165
- def upload(self) -> AsyncUploadResourceWithStreamingResponse:
166
- return AsyncUploadResourceWithStreamingResponse(self._logo.upload)
@@ -1,184 +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__ = ["UploadResource", "AsyncUploadResource"]
19
-
20
-
21
- class UploadResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> UploadResourceWithRawResponse:
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 UploadResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> UploadResourceWithStreamingResponse:
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 UploadResourceWithStreamingResponse(self)
40
-
41
- def complete(
42
- self,
43
- *,
44
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
45
- # The extra values given here take precedence over values defined on the client or passed to this method.
46
- extra_headers: Headers | None = None,
47
- extra_query: Query | None = None,
48
- extra_body: Body | None = None,
49
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
- ) -> None:
51
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
52
- return self._post(
53
- "/api/v1/organizations/logo/upload/complete",
54
- options=make_request_options(
55
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
56
- ),
57
- cast_to=NoneType,
58
- )
59
-
60
- def presigned_url(
61
- self,
62
- *,
63
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
64
- # The extra values given here take precedence over values defined on the client or passed to this method.
65
- extra_headers: Headers | None = None,
66
- extra_query: Query | None = None,
67
- extra_body: Body | None = None,
68
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
69
- ) -> None:
70
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
71
- return self._post(
72
- "/api/v1/organizations/logo/upload/presigned-url",
73
- options=make_request_options(
74
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
75
- ),
76
- cast_to=NoneType,
77
- )
78
-
79
-
80
- class AsyncUploadResource(AsyncAPIResource):
81
- @cached_property
82
- def with_raw_response(self) -> AsyncUploadResourceWithRawResponse:
83
- """
84
- This property can be used as a prefix for any HTTP method call to return
85
- the raw response object instead of the parsed content.
86
-
87
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
88
- """
89
- return AsyncUploadResourceWithRawResponse(self)
90
-
91
- @cached_property
92
- def with_streaming_response(self) -> AsyncUploadResourceWithStreamingResponse:
93
- """
94
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
95
-
96
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
97
- """
98
- return AsyncUploadResourceWithStreamingResponse(self)
99
-
100
- async def complete(
101
- self,
102
- *,
103
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
104
- # The extra values given here take precedence over values defined on the client or passed to this method.
105
- extra_headers: Headers | None = None,
106
- extra_query: Query | None = None,
107
- extra_body: Body | None = None,
108
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
109
- ) -> None:
110
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
111
- return await self._post(
112
- "/api/v1/organizations/logo/upload/complete",
113
- options=make_request_options(
114
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
115
- ),
116
- cast_to=NoneType,
117
- )
118
-
119
- async def presigned_url(
120
- self,
121
- *,
122
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
123
- # The extra values given here take precedence over values defined on the client or passed to this method.
124
- extra_headers: Headers | None = None,
125
- extra_query: Query | None = None,
126
- extra_body: Body | None = None,
127
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
128
- ) -> None:
129
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
130
- return await self._post(
131
- "/api/v1/organizations/logo/upload/presigned-url",
132
- options=make_request_options(
133
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
134
- ),
135
- cast_to=NoneType,
136
- )
137
-
138
-
139
- class UploadResourceWithRawResponse:
140
- def __init__(self, upload: UploadResource) -> None:
141
- self._upload = upload
142
-
143
- self.complete = to_raw_response_wrapper(
144
- upload.complete,
145
- )
146
- self.presigned_url = to_raw_response_wrapper(
147
- upload.presigned_url,
148
- )
149
-
150
-
151
- class AsyncUploadResourceWithRawResponse:
152
- def __init__(self, upload: AsyncUploadResource) -> None:
153
- self._upload = upload
154
-
155
- self.complete = async_to_raw_response_wrapper(
156
- upload.complete,
157
- )
158
- self.presigned_url = async_to_raw_response_wrapper(
159
- upload.presigned_url,
160
- )
161
-
162
-
163
- class UploadResourceWithStreamingResponse:
164
- def __init__(self, upload: UploadResource) -> None:
165
- self._upload = upload
166
-
167
- self.complete = to_streamed_response_wrapper(
168
- upload.complete,
169
- )
170
- self.presigned_url = to_streamed_response_wrapper(
171
- upload.presigned_url,
172
- )
173
-
174
-
175
- class AsyncUploadResourceWithStreamingResponse:
176
- def __init__(self, upload: AsyncUploadResource) -> None:
177
- self._upload = upload
178
-
179
- self.complete = async_to_streamed_response_wrapper(
180
- upload.complete,
181
- )
182
- self.presigned_url = async_to_streamed_response_wrapper(
183
- upload.presigned_url,
184
- )