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,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__ = ["ThemeResource", "AsyncThemeResource"]
19
-
20
-
21
- class ThemeResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> ThemeResourceWithRawResponse:
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 ThemeResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> ThemeResourceWithStreamingResponse:
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 ThemeResourceWithStreamingResponse(self)
40
-
41
- def create(
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._put(
53
- "/api/v1/organizations/theme",
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 list(
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._get(
72
- "/api/v1/organizations/theme",
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 AsyncThemeResource(AsyncAPIResource):
81
- @cached_property
82
- def with_raw_response(self) -> AsyncThemeResourceWithRawResponse:
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 AsyncThemeResourceWithRawResponse(self)
90
-
91
- @cached_property
92
- def with_streaming_response(self) -> AsyncThemeResourceWithStreamingResponse:
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 AsyncThemeResourceWithStreamingResponse(self)
99
-
100
- async def create(
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._put(
112
- "/api/v1/organizations/theme",
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 list(
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._get(
131
- "/api/v1/organizations/theme",
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 ThemeResourceWithRawResponse:
140
- def __init__(self, theme: ThemeResource) -> None:
141
- self._theme = theme
142
-
143
- self.create = to_raw_response_wrapper(
144
- theme.create,
145
- )
146
- self.list = to_raw_response_wrapper(
147
- theme.list,
148
- )
149
-
150
-
151
- class AsyncThemeResourceWithRawResponse:
152
- def __init__(self, theme: AsyncThemeResource) -> None:
153
- self._theme = theme
154
-
155
- self.create = async_to_raw_response_wrapper(
156
- theme.create,
157
- )
158
- self.list = async_to_raw_response_wrapper(
159
- theme.list,
160
- )
161
-
162
-
163
- class ThemeResourceWithStreamingResponse:
164
- def __init__(self, theme: ThemeResource) -> None:
165
- self._theme = theme
166
-
167
- self.create = to_streamed_response_wrapper(
168
- theme.create,
169
- )
170
- self.list = to_streamed_response_wrapper(
171
- theme.list,
172
- )
173
-
174
-
175
- class AsyncThemeResourceWithStreamingResponse:
176
- def __init__(self, theme: AsyncThemeResource) -> None:
177
- self._theme = theme
178
-
179
- self.create = async_to_streamed_response_wrapper(
180
- theme.create,
181
- )
182
- self.list = async_to_streamed_response_wrapper(
183
- theme.list,
184
- )
@@ -1,210 +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__ = ["UsageResource", "AsyncUsageResource"]
19
-
20
-
21
- class UsageResource(SyncAPIResource):
22
- @cached_property
23
- def with_raw_response(self) -> UsageResourceWithRawResponse:
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 UsageResourceWithRawResponse(self)
31
-
32
- @cached_property
33
- def with_streaming_response(self) -> UsageResourceWithStreamingResponse:
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 UsageResourceWithStreamingResponse(self)
40
-
41
- def retrieve(
42
- self,
43
- 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 id:
63
- raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
64
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
65
- return self._get(
66
- f"/api/v1/organizations/{id}/usage",
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 list(
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._get(
85
- "/api/v1/organizations/usage",
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
-
93
- class AsyncUsageResource(AsyncAPIResource):
94
- @cached_property
95
- def with_raw_response(self) -> AsyncUsageResourceWithRawResponse:
96
- """
97
- This property can be used as a prefix for any HTTP method call to return
98
- the raw response object instead of the parsed content.
99
-
100
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
101
- """
102
- return AsyncUsageResourceWithRawResponse(self)
103
-
104
- @cached_property
105
- def with_streaming_response(self) -> AsyncUsageResourceWithStreamingResponse:
106
- """
107
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
108
-
109
- For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
110
- """
111
- return AsyncUsageResourceWithStreamingResponse(self)
112
-
113
- async def retrieve(
114
- self,
115
- id: str,
116
- *,
117
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
- # The extra values given here take precedence over values defined on the client or passed to this method.
119
- extra_headers: Headers | None = None,
120
- extra_query: Query | None = None,
121
- extra_body: Body | None = None,
122
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
123
- ) -> None:
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
- if not id:
135
- raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
136
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
137
- return await self._get(
138
- f"/api/v1/organizations/{id}/usage",
139
- options=make_request_options(
140
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
141
- ),
142
- cast_to=NoneType,
143
- )
144
-
145
- async def list(
146
- self,
147
- *,
148
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
149
- # The extra values given here take precedence over values defined on the client or passed to this method.
150
- extra_headers: Headers | None = None,
151
- extra_query: Query | None = None,
152
- extra_body: Body | None = None,
153
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
154
- ) -> None:
155
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
156
- return await self._get(
157
- "/api/v1/organizations/usage",
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
-
165
- class UsageResourceWithRawResponse:
166
- def __init__(self, usage: UsageResource) -> None:
167
- self._usage = usage
168
-
169
- self.retrieve = to_raw_response_wrapper(
170
- usage.retrieve,
171
- )
172
- self.list = to_raw_response_wrapper(
173
- usage.list,
174
- )
175
-
176
-
177
- class AsyncUsageResourceWithRawResponse:
178
- def __init__(self, usage: AsyncUsageResource) -> None:
179
- self._usage = usage
180
-
181
- self.retrieve = async_to_raw_response_wrapper(
182
- usage.retrieve,
183
- )
184
- self.list = async_to_raw_response_wrapper(
185
- usage.list,
186
- )
187
-
188
-
189
- class UsageResourceWithStreamingResponse:
190
- def __init__(self, usage: UsageResource) -> None:
191
- self._usage = usage
192
-
193
- self.retrieve = to_streamed_response_wrapper(
194
- usage.retrieve,
195
- )
196
- self.list = to_streamed_response_wrapper(
197
- usage.list,
198
- )
199
-
200
-
201
- class AsyncUsageResourceWithStreamingResponse:
202
- def __init__(self, usage: AsyncUsageResource) -> None:
203
- self._usage = usage
204
-
205
- self.retrieve = async_to_streamed_response_wrapper(
206
- usage.retrieve,
207
- )
208
- self.list = async_to_streamed_response_wrapper(
209
- usage.list,
210
- )
@@ -1,15 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["LoginAuthenticateParams"]
8
-
9
-
10
- class LoginAuthenticateParams(TypedDict, total=False):
11
- email: Required[str]
12
- """User email address"""
13
-
14
- password: Required[str]
15
- """User password"""
@@ -1,15 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["LoginVerify2faParams"]
8
-
9
-
10
- class LoginVerify2faParams(TypedDict, total=False):
11
- code: Required[str]
12
- """6-digit verification code"""
13
-
14
- email: Required[str]
15
- """User email address"""
@@ -1,17 +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_extensions import Required, Annotated, TypedDict
6
-
7
- from ...._utils import PropertyInfo
8
-
9
- __all__ = ["LoginVerifyBackupCodeParams"]
10
-
11
-
12
- class LoginVerifyBackupCodeParams(TypedDict, total=False):
13
- backup_code: Required[Annotated[str, PropertyInfo(alias="backupCode")]]
14
- """Backup code"""
15
-
16
- email: Required[str]
17
- """User email address"""
@@ -1,12 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["Number2faDisableParams"]
8
-
9
-
10
- class Number2faDisableParams(TypedDict, total=False):
11
- password: Required[str]
12
- """User password for verification"""
@@ -1,12 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["Number2faEnableParams"]
8
-
9
-
10
- class Number2faEnableParams(TypedDict, total=False):
11
- password: Required[str]
12
- """User password for verification"""
@@ -1,12 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["Number2faRegenerateBackupCodesParams"]
8
-
9
-
10
- class Number2faRegenerateBackupCodesParams(TypedDict, total=False):
11
- password: Required[str]
12
- """User password for verification"""
@@ -1,23 +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_extensions import Required, Annotated, TypedDict
6
-
7
- from ..._utils import PropertyInfo
8
-
9
- __all__ = ["AuthRegisterNewUserParams"]
10
-
11
-
12
- class AuthRegisterNewUserParams(TypedDict, total=False):
13
- email: Required[str]
14
- """User email address"""
15
-
16
- name: Required[str]
17
- """User full name"""
18
-
19
- organization_name: Required[Annotated[str, PropertyInfo(alias="organizationName")]]
20
- """Organization name"""
21
-
22
- password: Required[str]
23
- """User password"""
@@ -1,12 +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_extensions import Required, TypedDict
6
-
7
- __all__ = ["AuthRequestPasswordResetParams"]
8
-
9
-
10
- class AuthRequestPasswordResetParams(TypedDict, total=False):
11
- email: Required[str]
12
- """Email address to send reset link"""
@@ -1,17 +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_extensions import Required, Annotated, TypedDict
6
-
7
- from ..._utils import PropertyInfo
8
-
9
- __all__ = ["AuthResetPasswordParams"]
10
-
11
-
12
- class AuthResetPasswordParams(TypedDict, total=False):
13
- token: Required[str]
14
- """Password reset token from email"""
15
-
16
- new_password: Required[Annotated[str, PropertyInfo(alias="newPassword")]]
17
- """New password"""
@@ -1,54 +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_extensions import Literal, Required, Annotated, TypedDict
6
-
7
- from ..._utils import PropertyInfo
8
-
9
- __all__ = ["UsageTrackChatParams"]
10
-
11
-
12
- class UsageTrackChatParams(TypedDict, total=False):
13
- input_tokens: Required[Annotated[float, PropertyInfo(alias="inputTokens")]]
14
- """Number of input tokens"""
15
-
16
- model: Required[
17
- Literal[
18
- "openai:gpt-4.1",
19
- "openai:gpt-4o",
20
- "openai:gpt-4o-mini",
21
- "openai:gpt-4",
22
- "openai:gpt-3.5-turbo",
23
- "openai:o1",
24
- "openai:o1-mini",
25
- "openai:o3-mini",
26
- "anthropic:claude-3-opus",
27
- "anthropic:claude-3-sonnet",
28
- "anthropic:claude-3-haiku",
29
- "google:gemini-pro",
30
- "meta:llama-3",
31
- ]
32
- ]
33
- """AI model used"""
34
-
35
- output_tokens: Required[Annotated[float, PropertyInfo(alias="outputTokens")]]
36
- """Number of output tokens"""
37
-
38
- session_id: Required[Annotated[str, PropertyInfo(alias="sessionId")]]
39
- """Chat session ID"""
40
-
41
- component_id: Annotated[str, PropertyInfo(alias="componentId")]
42
- """Component ID"""
43
-
44
- group_id: Annotated[str, PropertyInfo(alias="groupId")]
45
- """Group ID"""
46
-
47
- metadata: object
48
- """Additional metadata"""
49
-
50
- reasoning_tokens: Annotated[float, PropertyInfo(alias="reasoningTokens")]
51
- """Number of reasoning tokens"""
52
-
53
- user_id: Annotated[str, PropertyInfo(alias="userId")]
54
- """User ID"""