studyfetch-sdk 0.1.0a1__py3-none-any.whl → 0.1.0a3__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 (41) 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 +14 -466
  5. studyfetch_sdk/resources/v1/auth/number_2fa.py +1 -294
  6. studyfetch_sdk/resources/v1/usage.py +1 -593
  7. studyfetch_sdk/resources/v1/v1.py +0 -32
  8. studyfetch_sdk/types/v1/__init__.py +0 -5
  9. studyfetch_sdk/types/v1/auth/__init__.py +0 -8
  10. {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/METADATA +11 -35
  11. {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/RECORD +13 -41
  12. studyfetch_sdk/resources/v1/auth/login.py +0 -374
  13. studyfetch_sdk/resources/v1/auth/organization_invites.py +0 -160
  14. studyfetch_sdk/resources/v1/organizations/__init__.py +0 -103
  15. studyfetch_sdk/resources/v1/organizations/api_keys.py +0 -260
  16. studyfetch_sdk/resources/v1/organizations/logo/__init__.py +0 -33
  17. studyfetch_sdk/resources/v1/organizations/logo/logo.py +0 -166
  18. studyfetch_sdk/resources/v1/organizations/logo/upload.py +0 -184
  19. studyfetch_sdk/resources/v1/organizations/organizations.py +0 -428
  20. studyfetch_sdk/resources/v1/organizations/profile/__init__.py +0 -47
  21. studyfetch_sdk/resources/v1/organizations/profile/models.py +0 -134
  22. studyfetch_sdk/resources/v1/organizations/profile/profile.py +0 -248
  23. studyfetch_sdk/resources/v1/organizations/profile/team.py +0 -462
  24. studyfetch_sdk/resources/v1/organizations/team/__init__.py +0 -33
  25. studyfetch_sdk/resources/v1/organizations/team/invite.py +0 -236
  26. studyfetch_sdk/resources/v1/organizations/team/team.py +0 -564
  27. studyfetch_sdk/resources/v1/organizations/theme.py +0 -184
  28. studyfetch_sdk/resources/v1/organizations/usage.py +0 -160
  29. studyfetch_sdk/types/v1/auth/login_authenticate_params.py +0 -15
  30. studyfetch_sdk/types/v1/auth/login_verify_2fa_params.py +0 -15
  31. studyfetch_sdk/types/v1/auth/login_verify_backup_code_params.py +0 -17
  32. studyfetch_sdk/types/v1/auth/number_2fa_disable_params.py +0 -12
  33. studyfetch_sdk/types/v1/auth/number_2fa_enable_params.py +0 -12
  34. studyfetch_sdk/types/v1/auth/number_2fa_regenerate_backup_codes_params.py +0 -12
  35. studyfetch_sdk/types/v1/auth_register_new_user_params.py +0 -23
  36. studyfetch_sdk/types/v1/auth_request_password_reset_params.py +0 -12
  37. studyfetch_sdk/types/v1/auth_reset_password_params.py +0 -17
  38. studyfetch_sdk/types/v1/usage_track_chat_params.py +0 -54
  39. studyfetch_sdk/types/v1/usage_track_event_params.py +0 -128
  40. {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/WHEEL +0 -0
  41. {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/licenses/LICENSE +0 -0
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "studyfetch_sdk"
4
- __version__ = "0.1.0-alpha.1" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.3" # x-release-please-version
@@ -112,14 +112,6 @@ from .audio_recaps import (
112
112
  AudioRecapsResourceWithStreamingResponse,
113
113
  AsyncAudioRecapsResourceWithStreamingResponse,
114
114
  )
115
- from .organizations import (
116
- OrganizationsResource,
117
- AsyncOrganizationsResource,
118
- OrganizationsResourceWithRawResponse,
119
- AsyncOrganizationsResourceWithRawResponse,
120
- OrganizationsResourceWithStreamingResponse,
121
- AsyncOrganizationsResourceWithStreamingResponse,
122
- )
123
115
 
124
116
  __all__ = [
125
117
  "AuthResource",
@@ -128,12 +120,6 @@ __all__ = [
128
120
  "AsyncAuthResourceWithRawResponse",
129
121
  "AuthResourceWithStreamingResponse",
130
122
  "AsyncAuthResourceWithStreamingResponse",
131
- "OrganizationsResource",
132
- "AsyncOrganizationsResource",
133
- "OrganizationsResourceWithRawResponse",
134
- "AsyncOrganizationsResourceWithRawResponse",
135
- "OrganizationsResourceWithStreamingResponse",
136
- "AsyncOrganizationsResourceWithStreamingResponse",
137
123
  "MaterialsResource",
138
124
  "AsyncMaterialsResource",
139
125
  "MaterialsResourceWithRawResponse",
@@ -8,14 +8,6 @@ from .auth import (
8
8
  AuthResourceWithStreamingResponse,
9
9
  AsyncAuthResourceWithStreamingResponse,
10
10
  )
11
- from .login import (
12
- LoginResource,
13
- AsyncLoginResource,
14
- LoginResourceWithRawResponse,
15
- AsyncLoginResourceWithRawResponse,
16
- LoginResourceWithStreamingResponse,
17
- AsyncLoginResourceWithStreamingResponse,
18
- )
19
11
  from .number_2fa import (
20
12
  Number2faResource,
21
13
  AsyncNumber2faResource,
@@ -24,34 +16,14 @@ from .number_2fa import (
24
16
  Number2faResourceWithStreamingResponse,
25
17
  AsyncNumber2faResourceWithStreamingResponse,
26
18
  )
27
- from .organization_invites import (
28
- OrganizationInvitesResource,
29
- AsyncOrganizationInvitesResource,
30
- OrganizationInvitesResourceWithRawResponse,
31
- AsyncOrganizationInvitesResourceWithRawResponse,
32
- OrganizationInvitesResourceWithStreamingResponse,
33
- AsyncOrganizationInvitesResourceWithStreamingResponse,
34
- )
35
19
 
36
20
  __all__ = [
37
- "LoginResource",
38
- "AsyncLoginResource",
39
- "LoginResourceWithRawResponse",
40
- "AsyncLoginResourceWithRawResponse",
41
- "LoginResourceWithStreamingResponse",
42
- "AsyncLoginResourceWithStreamingResponse",
43
21
  "Number2faResource",
44
22
  "AsyncNumber2faResource",
45
23
  "Number2faResourceWithRawResponse",
46
24
  "AsyncNumber2faResourceWithRawResponse",
47
25
  "Number2faResourceWithStreamingResponse",
48
26
  "AsyncNumber2faResourceWithStreamingResponse",
49
- "OrganizationInvitesResource",
50
- "AsyncOrganizationInvitesResource",
51
- "OrganizationInvitesResourceWithRawResponse",
52
- "AsyncOrganizationInvitesResourceWithRawResponse",
53
- "OrganizationInvitesResourceWithStreamingResponse",
54
- "AsyncOrganizationInvitesResourceWithStreamingResponse",
55
27
  "AuthResource",
56
28
  "AsyncAuthResource",
57
29
  "AuthResourceWithRawResponse",
@@ -4,16 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .login import (
8
- LoginResource,
9
- AsyncLoginResource,
10
- LoginResourceWithRawResponse,
11
- AsyncLoginResourceWithRawResponse,
12
- LoginResourceWithStreamingResponse,
13
- AsyncLoginResourceWithStreamingResponse,
14
- )
15
7
  from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
16
- from ...._utils import maybe_transform, async_maybe_transform
17
8
  from ...._compat import cached_property
18
9
  from .number_2fa import (
19
10
  Number2faResource,
@@ -23,7 +14,6 @@ from .number_2fa import (
23
14
  Number2faResourceWithStreamingResponse,
24
15
  AsyncNumber2faResourceWithStreamingResponse,
25
16
  )
26
- from ....types.v1 import auth_reset_password_params, auth_register_new_user_params, auth_request_password_reset_params
27
17
  from ...._resource import SyncAPIResource, AsyncAPIResource
28
18
  from ...._response import (
29
19
  to_raw_response_wrapper,
@@ -32,31 +22,15 @@ from ...._response import (
32
22
  async_to_streamed_response_wrapper,
33
23
  )
34
24
  from ...._base_client import make_request_options
35
- from .organization_invites import (
36
- OrganizationInvitesResource,
37
- AsyncOrganizationInvitesResource,
38
- OrganizationInvitesResourceWithRawResponse,
39
- AsyncOrganizationInvitesResourceWithRawResponse,
40
- OrganizationInvitesResourceWithStreamingResponse,
41
- AsyncOrganizationInvitesResourceWithStreamingResponse,
42
- )
43
25
 
44
26
  __all__ = ["AuthResource", "AsyncAuthResource"]
45
27
 
46
28
 
47
29
  class AuthResource(SyncAPIResource):
48
- @cached_property
49
- def login(self) -> LoginResource:
50
- return LoginResource(self._client)
51
-
52
30
  @cached_property
53
31
  def number_2fa(self) -> Number2faResource:
54
32
  return Number2faResource(self._client)
55
33
 
56
- @cached_property
57
- def organization_invites(self) -> OrganizationInvitesResource:
58
- return OrganizationInvitesResource(self._client)
59
-
60
34
  @cached_property
61
35
  def with_raw_response(self) -> AuthResourceWithRawResponse:
62
36
  """
@@ -76,95 +50,7 @@ class AuthResource(SyncAPIResource):
76
50
  """
77
51
  return AuthResourceWithStreamingResponse(self)
78
52
 
79
- def get_profile(
80
- self,
81
- *,
82
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
83
- # The extra values given here take precedence over values defined on the client or passed to this method.
84
- extra_headers: Headers | None = None,
85
- extra_query: Query | None = None,
86
- extra_body: Body | None = None,
87
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
88
- ) -> None:
89
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
90
- return self._get(
91
- "/api/v1/auth/profile",
92
- options=make_request_options(
93
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
94
- ),
95
- cast_to=NoneType,
96
- )
97
-
98
- def register_new_user(
99
- self,
100
- *,
101
- email: str,
102
- name: str,
103
- organization_name: str,
104
- password: str,
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
- ) -> None:
112
- """
113
- Args:
114
- email: User email address
115
-
116
- name: User full name
117
-
118
- organization_name: Organization name
119
-
120
- password: User password
121
-
122
- extra_headers: Send extra headers
123
-
124
- extra_query: Add additional query parameters to the request
125
-
126
- extra_body: Add additional JSON properties to the request
127
-
128
- timeout: Override the client-level default timeout for this request, in seconds
129
- """
130
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
131
- return self._post(
132
- "/api/v1/auth/register",
133
- body=maybe_transform(
134
- {
135
- "email": email,
136
- "name": name,
137
- "organization_name": organization_name,
138
- "password": password,
139
- },
140
- auth_register_new_user_params.AuthRegisterNewUserParams,
141
- ),
142
- options=make_request_options(
143
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
144
- ),
145
- cast_to=NoneType,
146
- )
147
-
148
- def register_organization(
149
- self,
150
- *,
151
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
152
- # The extra values given here take precedence over values defined on the client or passed to this method.
153
- extra_headers: Headers | None = None,
154
- extra_query: Query | None = None,
155
- extra_body: Body | None = None,
156
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
157
- ) -> None:
158
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
159
- return self._post(
160
- "/api/v1/auth/register-organization",
161
- options=make_request_options(
162
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
163
- ),
164
- cast_to=NoneType,
165
- )
166
-
167
- def register_with_invite(
53
+ def verify_reset_token(
168
54
  self,
169
55
  *,
170
56
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -174,84 +60,10 @@ class AuthResource(SyncAPIResource):
174
60
  extra_body: Body | None = None,
175
61
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
176
62
  ) -> None:
63
+ """Verify password reset token"""
177
64
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
178
65
  return self._post(
179
- "/api/v1/auth/register-with-invite",
180
- options=make_request_options(
181
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
182
- ),
183
- cast_to=NoneType,
184
- )
185
-
186
- def request_password_reset(
187
- self,
188
- *,
189
- email: str,
190
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
191
- # The extra values given here take precedence over values defined on the client or passed to this method.
192
- extra_headers: Headers | None = None,
193
- extra_query: Query | None = None,
194
- extra_body: Body | None = None,
195
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
196
- ) -> None:
197
- """
198
- Args:
199
- email: Email address to send reset link
200
-
201
- extra_headers: Send extra headers
202
-
203
- extra_query: Add additional query parameters to the request
204
-
205
- extra_body: Add additional JSON properties to the request
206
-
207
- timeout: Override the client-level default timeout for this request, in seconds
208
- """
209
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
210
- return self._post(
211
- "/api/v1/auth/forgot-password",
212
- body=maybe_transform({"email": email}, auth_request_password_reset_params.AuthRequestPasswordResetParams),
213
- options=make_request_options(
214
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
215
- ),
216
- cast_to=NoneType,
217
- )
218
-
219
- def reset_password(
220
- self,
221
- *,
222
- token: str,
223
- new_password: str,
224
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
225
- # The extra values given here take precedence over values defined on the client or passed to this method.
226
- extra_headers: Headers | None = None,
227
- extra_query: Query | None = None,
228
- extra_body: Body | None = None,
229
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
230
- ) -> None:
231
- """
232
- Args:
233
- token: Password reset token from email
234
-
235
- new_password: New password
236
-
237
- extra_headers: Send extra headers
238
-
239
- extra_query: Add additional query parameters to the request
240
-
241
- extra_body: Add additional JSON properties to the request
242
-
243
- timeout: Override the client-level default timeout for this request, in seconds
244
- """
245
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
246
- return self._post(
247
- "/api/v1/auth/reset-password",
248
- body=maybe_transform(
249
- {
250
- "token": token,
251
- "new_password": new_password,
252
- },
253
- auth_reset_password_params.AuthResetPasswordParams,
254
- ),
66
+ "/api/v1/auth/verify-reset-token",
255
67
  options=make_request_options(
256
68
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
257
69
  ),
@@ -260,18 +72,10 @@ class AuthResource(SyncAPIResource):
260
72
 
261
73
 
262
74
  class AsyncAuthResource(AsyncAPIResource):
263
- @cached_property
264
- def login(self) -> AsyncLoginResource:
265
- return AsyncLoginResource(self._client)
266
-
267
75
  @cached_property
268
76
  def number_2fa(self) -> AsyncNumber2faResource:
269
77
  return AsyncNumber2faResource(self._client)
270
78
 
271
- @cached_property
272
- def organization_invites(self) -> AsyncOrganizationInvitesResource:
273
- return AsyncOrganizationInvitesResource(self._client)
274
-
275
79
  @cached_property
276
80
  def with_raw_response(self) -> AsyncAuthResourceWithRawResponse:
277
81
  """
@@ -291,95 +95,7 @@ class AsyncAuthResource(AsyncAPIResource):
291
95
  """
292
96
  return AsyncAuthResourceWithStreamingResponse(self)
293
97
 
294
- async def get_profile(
295
- self,
296
- *,
297
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
298
- # The extra values given here take precedence over values defined on the client or passed to this method.
299
- extra_headers: Headers | None = None,
300
- extra_query: Query | None = None,
301
- extra_body: Body | None = None,
302
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
303
- ) -> None:
304
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
305
- return await self._get(
306
- "/api/v1/auth/profile",
307
- options=make_request_options(
308
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
309
- ),
310
- cast_to=NoneType,
311
- )
312
-
313
- async def register_new_user(
314
- self,
315
- *,
316
- email: str,
317
- name: str,
318
- organization_name: str,
319
- password: str,
320
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
321
- # The extra values given here take precedence over values defined on the client or passed to this method.
322
- extra_headers: Headers | None = None,
323
- extra_query: Query | None = None,
324
- extra_body: Body | None = None,
325
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
326
- ) -> None:
327
- """
328
- Args:
329
- email: User email address
330
-
331
- name: User full name
332
-
333
- organization_name: Organization name
334
-
335
- password: User password
336
-
337
- extra_headers: Send extra headers
338
-
339
- extra_query: Add additional query parameters to the request
340
-
341
- extra_body: Add additional JSON properties to the request
342
-
343
- timeout: Override the client-level default timeout for this request, in seconds
344
- """
345
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
346
- return await self._post(
347
- "/api/v1/auth/register",
348
- body=await async_maybe_transform(
349
- {
350
- "email": email,
351
- "name": name,
352
- "organization_name": organization_name,
353
- "password": password,
354
- },
355
- auth_register_new_user_params.AuthRegisterNewUserParams,
356
- ),
357
- options=make_request_options(
358
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
359
- ),
360
- cast_to=NoneType,
361
- )
362
-
363
- async def register_organization(
364
- self,
365
- *,
366
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
367
- # The extra values given here take precedence over values defined on the client or passed to this method.
368
- extra_headers: Headers | None = None,
369
- extra_query: Query | None = None,
370
- extra_body: Body | None = None,
371
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
372
- ) -> None:
373
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
374
- return await self._post(
375
- "/api/v1/auth/register-organization",
376
- options=make_request_options(
377
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
378
- ),
379
- cast_to=NoneType,
380
- )
381
-
382
- async def register_with_invite(
98
+ async def verify_reset_token(
383
99
  self,
384
100
  *,
385
101
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -389,86 +105,10 @@ class AsyncAuthResource(AsyncAPIResource):
389
105
  extra_body: Body | None = None,
390
106
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
391
107
  ) -> None:
108
+ """Verify password reset token"""
392
109
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
393
110
  return await self._post(
394
- "/api/v1/auth/register-with-invite",
395
- options=make_request_options(
396
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
397
- ),
398
- cast_to=NoneType,
399
- )
400
-
401
- async def request_password_reset(
402
- self,
403
- *,
404
- email: str,
405
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
406
- # The extra values given here take precedence over values defined on the client or passed to this method.
407
- extra_headers: Headers | None = None,
408
- extra_query: Query | None = None,
409
- extra_body: Body | None = None,
410
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
411
- ) -> None:
412
- """
413
- Args:
414
- email: Email address to send reset link
415
-
416
- extra_headers: Send extra headers
417
-
418
- extra_query: Add additional query parameters to the request
419
-
420
- extra_body: Add additional JSON properties to the request
421
-
422
- timeout: Override the client-level default timeout for this request, in seconds
423
- """
424
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
425
- return await self._post(
426
- "/api/v1/auth/forgot-password",
427
- body=await async_maybe_transform(
428
- {"email": email}, auth_request_password_reset_params.AuthRequestPasswordResetParams
429
- ),
430
- options=make_request_options(
431
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
432
- ),
433
- cast_to=NoneType,
434
- )
435
-
436
- async def reset_password(
437
- self,
438
- *,
439
- token: str,
440
- new_password: str,
441
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
442
- # The extra values given here take precedence over values defined on the client or passed to this method.
443
- extra_headers: Headers | None = None,
444
- extra_query: Query | None = None,
445
- extra_body: Body | None = None,
446
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
447
- ) -> None:
448
- """
449
- Args:
450
- token: Password reset token from email
451
-
452
- new_password: New password
453
-
454
- extra_headers: Send extra headers
455
-
456
- extra_query: Add additional query parameters to the request
457
-
458
- extra_body: Add additional JSON properties to the request
459
-
460
- timeout: Override the client-level default timeout for this request, in seconds
461
- """
462
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
463
- return await self._post(
464
- "/api/v1/auth/reset-password",
465
- body=await async_maybe_transform(
466
- {
467
- "token": token,
468
- "new_password": new_password,
469
- },
470
- auth_reset_password_params.AuthResetPasswordParams,
471
- ),
111
+ "/api/v1/auth/verify-reset-token",
472
112
  options=make_request_options(
473
113
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
474
114
  ),
@@ -480,141 +120,49 @@ class AuthResourceWithRawResponse:
480
120
  def __init__(self, auth: AuthResource) -> None:
481
121
  self._auth = auth
482
122
 
483
- self.get_profile = to_raw_response_wrapper(
484
- auth.get_profile,
485
- )
486
- self.register_new_user = to_raw_response_wrapper(
487
- auth.register_new_user,
488
- )
489
- self.register_organization = to_raw_response_wrapper(
490
- auth.register_organization,
491
- )
492
- self.register_with_invite = to_raw_response_wrapper(
493
- auth.register_with_invite,
494
- )
495
- self.request_password_reset = to_raw_response_wrapper(
496
- auth.request_password_reset,
123
+ self.verify_reset_token = to_raw_response_wrapper(
124
+ auth.verify_reset_token,
497
125
  )
498
- self.reset_password = to_raw_response_wrapper(
499
- auth.reset_password,
500
- )
501
-
502
- @cached_property
503
- def login(self) -> LoginResourceWithRawResponse:
504
- return LoginResourceWithRawResponse(self._auth.login)
505
126
 
506
127
  @cached_property
507
128
  def number_2fa(self) -> Number2faResourceWithRawResponse:
508
129
  return Number2faResourceWithRawResponse(self._auth.number_2fa)
509
130
 
510
- @cached_property
511
- def organization_invites(self) -> OrganizationInvitesResourceWithRawResponse:
512
- return OrganizationInvitesResourceWithRawResponse(self._auth.organization_invites)
513
-
514
131
 
515
132
  class AsyncAuthResourceWithRawResponse:
516
133
  def __init__(self, auth: AsyncAuthResource) -> None:
517
134
  self._auth = auth
518
135
 
519
- self.get_profile = async_to_raw_response_wrapper(
520
- auth.get_profile,
521
- )
522
- self.register_new_user = async_to_raw_response_wrapper(
523
- auth.register_new_user,
524
- )
525
- self.register_organization = async_to_raw_response_wrapper(
526
- auth.register_organization,
527
- )
528
- self.register_with_invite = async_to_raw_response_wrapper(
529
- auth.register_with_invite,
136
+ self.verify_reset_token = async_to_raw_response_wrapper(
137
+ auth.verify_reset_token,
530
138
  )
531
- self.request_password_reset = async_to_raw_response_wrapper(
532
- auth.request_password_reset,
533
- )
534
- self.reset_password = async_to_raw_response_wrapper(
535
- auth.reset_password,
536
- )
537
-
538
- @cached_property
539
- def login(self) -> AsyncLoginResourceWithRawResponse:
540
- return AsyncLoginResourceWithRawResponse(self._auth.login)
541
139
 
542
140
  @cached_property
543
141
  def number_2fa(self) -> AsyncNumber2faResourceWithRawResponse:
544
142
  return AsyncNumber2faResourceWithRawResponse(self._auth.number_2fa)
545
143
 
546
- @cached_property
547
- def organization_invites(self) -> AsyncOrganizationInvitesResourceWithRawResponse:
548
- return AsyncOrganizationInvitesResourceWithRawResponse(self._auth.organization_invites)
549
-
550
144
 
551
145
  class AuthResourceWithStreamingResponse:
552
146
  def __init__(self, auth: AuthResource) -> None:
553
147
  self._auth = auth
554
148
 
555
- self.get_profile = to_streamed_response_wrapper(
556
- auth.get_profile,
557
- )
558
- self.register_new_user = to_streamed_response_wrapper(
559
- auth.register_new_user,
560
- )
561
- self.register_organization = to_streamed_response_wrapper(
562
- auth.register_organization,
149
+ self.verify_reset_token = to_streamed_response_wrapper(
150
+ auth.verify_reset_token,
563
151
  )
564
- self.register_with_invite = to_streamed_response_wrapper(
565
- auth.register_with_invite,
566
- )
567
- self.request_password_reset = to_streamed_response_wrapper(
568
- auth.request_password_reset,
569
- )
570
- self.reset_password = to_streamed_response_wrapper(
571
- auth.reset_password,
572
- )
573
-
574
- @cached_property
575
- def login(self) -> LoginResourceWithStreamingResponse:
576
- return LoginResourceWithStreamingResponse(self._auth.login)
577
152
 
578
153
  @cached_property
579
154
  def number_2fa(self) -> Number2faResourceWithStreamingResponse:
580
155
  return Number2faResourceWithStreamingResponse(self._auth.number_2fa)
581
156
 
582
- @cached_property
583
- def organization_invites(self) -> OrganizationInvitesResourceWithStreamingResponse:
584
- return OrganizationInvitesResourceWithStreamingResponse(self._auth.organization_invites)
585
-
586
157
 
587
158
  class AsyncAuthResourceWithStreamingResponse:
588
159
  def __init__(self, auth: AsyncAuthResource) -> None:
589
160
  self._auth = auth
590
161
 
591
- self.get_profile = async_to_streamed_response_wrapper(
592
- auth.get_profile,
593
- )
594
- self.register_new_user = async_to_streamed_response_wrapper(
595
- auth.register_new_user,
596
- )
597
- self.register_organization = async_to_streamed_response_wrapper(
598
- auth.register_organization,
599
- )
600
- self.register_with_invite = async_to_streamed_response_wrapper(
601
- auth.register_with_invite,
602
- )
603
- self.request_password_reset = async_to_streamed_response_wrapper(
604
- auth.request_password_reset,
605
- )
606
- self.reset_password = async_to_streamed_response_wrapper(
607
- auth.reset_password,
162
+ self.verify_reset_token = async_to_streamed_response_wrapper(
163
+ auth.verify_reset_token,
608
164
  )
609
165
 
610
- @cached_property
611
- def login(self) -> AsyncLoginResourceWithStreamingResponse:
612
- return AsyncLoginResourceWithStreamingResponse(self._auth.login)
613
-
614
166
  @cached_property
615
167
  def number_2fa(self) -> AsyncNumber2faResourceWithStreamingResponse:
616
168
  return AsyncNumber2faResourceWithStreamingResponse(self._auth.number_2fa)
617
-
618
- @cached_property
619
- def organization_invites(self) -> AsyncOrganizationInvitesResourceWithStreamingResponse:
620
- return AsyncOrganizationInvitesResourceWithStreamingResponse(self._auth.organization_invites)