studyfetch-sdk 0.1.0a2__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 +0 -504
  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.0a2.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/METADATA +11 -35
  11. {studyfetch_sdk-0.1.0a2.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 -210
  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.0a2.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/WHEEL +0 -0
  41. {studyfetch_sdk-0.1.0a2.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.2" # 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,188 +50,6 @@ 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(
168
- self,
169
- *,
170
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171
- # The extra values given here take precedence over values defined on the client or passed to this method.
172
- extra_headers: Headers | None = None,
173
- extra_query: Query | None = None,
174
- extra_body: Body | None = None,
175
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
176
- ) -> None:
177
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
178
- 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
- ),
255
- options=make_request_options(
256
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
257
- ),
258
- cast_to=NoneType,
259
- )
260
-
261
53
  def verify_reset_token(
262
54
  self,
263
55
  *,
@@ -280,18 +72,10 @@ class AuthResource(SyncAPIResource):
280
72
 
281
73
 
282
74
  class AsyncAuthResource(AsyncAPIResource):
283
- @cached_property
284
- def login(self) -> AsyncLoginResource:
285
- return AsyncLoginResource(self._client)
286
-
287
75
  @cached_property
288
76
  def number_2fa(self) -> AsyncNumber2faResource:
289
77
  return AsyncNumber2faResource(self._client)
290
78
 
291
- @cached_property
292
- def organization_invites(self) -> AsyncOrganizationInvitesResource:
293
- return AsyncOrganizationInvitesResource(self._client)
294
-
295
79
  @cached_property
296
80
  def with_raw_response(self) -> AsyncAuthResourceWithRawResponse:
297
81
  """
@@ -311,190 +95,6 @@ class AsyncAuthResource(AsyncAPIResource):
311
95
  """
312
96
  return AsyncAuthResourceWithStreamingResponse(self)
313
97
 
314
- async def get_profile(
315
- self,
316
- *,
317
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
318
- # The extra values given here take precedence over values defined on the client or passed to this method.
319
- extra_headers: Headers | None = None,
320
- extra_query: Query | None = None,
321
- extra_body: Body | None = None,
322
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
323
- ) -> None:
324
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
325
- return await self._get(
326
- "/api/v1/auth/profile",
327
- options=make_request_options(
328
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
329
- ),
330
- cast_to=NoneType,
331
- )
332
-
333
- async def register_new_user(
334
- self,
335
- *,
336
- email: str,
337
- name: str,
338
- organization_name: str,
339
- password: str,
340
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
341
- # The extra values given here take precedence over values defined on the client or passed to this method.
342
- extra_headers: Headers | None = None,
343
- extra_query: Query | None = None,
344
- extra_body: Body | None = None,
345
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
346
- ) -> None:
347
- """
348
- Args:
349
- email: User email address
350
-
351
- name: User full name
352
-
353
- organization_name: Organization name
354
-
355
- password: User password
356
-
357
- extra_headers: Send extra headers
358
-
359
- extra_query: Add additional query parameters to the request
360
-
361
- extra_body: Add additional JSON properties to the request
362
-
363
- timeout: Override the client-level default timeout for this request, in seconds
364
- """
365
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
366
- return await self._post(
367
- "/api/v1/auth/register",
368
- body=await async_maybe_transform(
369
- {
370
- "email": email,
371
- "name": name,
372
- "organization_name": organization_name,
373
- "password": password,
374
- },
375
- auth_register_new_user_params.AuthRegisterNewUserParams,
376
- ),
377
- options=make_request_options(
378
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
379
- ),
380
- cast_to=NoneType,
381
- )
382
-
383
- async def register_organization(
384
- self,
385
- *,
386
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
387
- # The extra values given here take precedence over values defined on the client or passed to this method.
388
- extra_headers: Headers | None = None,
389
- extra_query: Query | None = None,
390
- extra_body: Body | None = None,
391
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
392
- ) -> None:
393
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
394
- return await self._post(
395
- "/api/v1/auth/register-organization",
396
- options=make_request_options(
397
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
398
- ),
399
- cast_to=NoneType,
400
- )
401
-
402
- async def register_with_invite(
403
- self,
404
- *,
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
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
413
- return await self._post(
414
- "/api/v1/auth/register-with-invite",
415
- options=make_request_options(
416
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
417
- ),
418
- cast_to=NoneType,
419
- )
420
-
421
- async def request_password_reset(
422
- self,
423
- *,
424
- email: str,
425
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
426
- # The extra values given here take precedence over values defined on the client or passed to this method.
427
- extra_headers: Headers | None = None,
428
- extra_query: Query | None = None,
429
- extra_body: Body | None = None,
430
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
431
- ) -> None:
432
- """
433
- Args:
434
- email: Email address to send reset link
435
-
436
- extra_headers: Send extra headers
437
-
438
- extra_query: Add additional query parameters to the request
439
-
440
- extra_body: Add additional JSON properties to the request
441
-
442
- timeout: Override the client-level default timeout for this request, in seconds
443
- """
444
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
445
- return await self._post(
446
- "/api/v1/auth/forgot-password",
447
- body=await async_maybe_transform(
448
- {"email": email}, auth_request_password_reset_params.AuthRequestPasswordResetParams
449
- ),
450
- options=make_request_options(
451
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
452
- ),
453
- cast_to=NoneType,
454
- )
455
-
456
- async def reset_password(
457
- self,
458
- *,
459
- token: str,
460
- new_password: str,
461
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
462
- # The extra values given here take precedence over values defined on the client or passed to this method.
463
- extra_headers: Headers | None = None,
464
- extra_query: Query | None = None,
465
- extra_body: Body | None = None,
466
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
467
- ) -> None:
468
- """
469
- Args:
470
- token: Password reset token from email
471
-
472
- new_password: New password
473
-
474
- extra_headers: Send extra headers
475
-
476
- extra_query: Add additional query parameters to the request
477
-
478
- extra_body: Add additional JSON properties to the request
479
-
480
- timeout: Override the client-level default timeout for this request, in seconds
481
- """
482
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
483
- return await self._post(
484
- "/api/v1/auth/reset-password",
485
- body=await async_maybe_transform(
486
- {
487
- "token": token,
488
- "new_password": new_password,
489
- },
490
- auth_reset_password_params.AuthResetPasswordParams,
491
- ),
492
- options=make_request_options(
493
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
494
- ),
495
- cast_to=NoneType,
496
- )
497
-
498
98
  async def verify_reset_token(
499
99
  self,
500
100
  *,
@@ -520,153 +120,49 @@ class AuthResourceWithRawResponse:
520
120
  def __init__(self, auth: AuthResource) -> None:
521
121
  self._auth = auth
522
122
 
523
- self.get_profile = to_raw_response_wrapper(
524
- auth.get_profile,
525
- )
526
- self.register_new_user = to_raw_response_wrapper(
527
- auth.register_new_user,
528
- )
529
- self.register_organization = to_raw_response_wrapper(
530
- auth.register_organization,
531
- )
532
- self.register_with_invite = to_raw_response_wrapper(
533
- auth.register_with_invite,
534
- )
535
- self.request_password_reset = to_raw_response_wrapper(
536
- auth.request_password_reset,
537
- )
538
- self.reset_password = to_raw_response_wrapper(
539
- auth.reset_password,
540
- )
541
123
  self.verify_reset_token = to_raw_response_wrapper(
542
124
  auth.verify_reset_token,
543
125
  )
544
126
 
545
- @cached_property
546
- def login(self) -> LoginResourceWithRawResponse:
547
- return LoginResourceWithRawResponse(self._auth.login)
548
-
549
127
  @cached_property
550
128
  def number_2fa(self) -> Number2faResourceWithRawResponse:
551
129
  return Number2faResourceWithRawResponse(self._auth.number_2fa)
552
130
 
553
- @cached_property
554
- def organization_invites(self) -> OrganizationInvitesResourceWithRawResponse:
555
- return OrganizationInvitesResourceWithRawResponse(self._auth.organization_invites)
556
-
557
131
 
558
132
  class AsyncAuthResourceWithRawResponse:
559
133
  def __init__(self, auth: AsyncAuthResource) -> None:
560
134
  self._auth = auth
561
135
 
562
- self.get_profile = async_to_raw_response_wrapper(
563
- auth.get_profile,
564
- )
565
- self.register_new_user = async_to_raw_response_wrapper(
566
- auth.register_new_user,
567
- )
568
- self.register_organization = async_to_raw_response_wrapper(
569
- auth.register_organization,
570
- )
571
- self.register_with_invite = async_to_raw_response_wrapper(
572
- auth.register_with_invite,
573
- )
574
- self.request_password_reset = async_to_raw_response_wrapper(
575
- auth.request_password_reset,
576
- )
577
- self.reset_password = async_to_raw_response_wrapper(
578
- auth.reset_password,
579
- )
580
136
  self.verify_reset_token = async_to_raw_response_wrapper(
581
137
  auth.verify_reset_token,
582
138
  )
583
139
 
584
- @cached_property
585
- def login(self) -> AsyncLoginResourceWithRawResponse:
586
- return AsyncLoginResourceWithRawResponse(self._auth.login)
587
-
588
140
  @cached_property
589
141
  def number_2fa(self) -> AsyncNumber2faResourceWithRawResponse:
590
142
  return AsyncNumber2faResourceWithRawResponse(self._auth.number_2fa)
591
143
 
592
- @cached_property
593
- def organization_invites(self) -> AsyncOrganizationInvitesResourceWithRawResponse:
594
- return AsyncOrganizationInvitesResourceWithRawResponse(self._auth.organization_invites)
595
-
596
144
 
597
145
  class AuthResourceWithStreamingResponse:
598
146
  def __init__(self, auth: AuthResource) -> None:
599
147
  self._auth = auth
600
148
 
601
- self.get_profile = to_streamed_response_wrapper(
602
- auth.get_profile,
603
- )
604
- self.register_new_user = to_streamed_response_wrapper(
605
- auth.register_new_user,
606
- )
607
- self.register_organization = to_streamed_response_wrapper(
608
- auth.register_organization,
609
- )
610
- self.register_with_invite = to_streamed_response_wrapper(
611
- auth.register_with_invite,
612
- )
613
- self.request_password_reset = to_streamed_response_wrapper(
614
- auth.request_password_reset,
615
- )
616
- self.reset_password = to_streamed_response_wrapper(
617
- auth.reset_password,
618
- )
619
149
  self.verify_reset_token = to_streamed_response_wrapper(
620
150
  auth.verify_reset_token,
621
151
  )
622
152
 
623
- @cached_property
624
- def login(self) -> LoginResourceWithStreamingResponse:
625
- return LoginResourceWithStreamingResponse(self._auth.login)
626
-
627
153
  @cached_property
628
154
  def number_2fa(self) -> Number2faResourceWithStreamingResponse:
629
155
  return Number2faResourceWithStreamingResponse(self._auth.number_2fa)
630
156
 
631
- @cached_property
632
- def organization_invites(self) -> OrganizationInvitesResourceWithStreamingResponse:
633
- return OrganizationInvitesResourceWithStreamingResponse(self._auth.organization_invites)
634
-
635
157
 
636
158
  class AsyncAuthResourceWithStreamingResponse:
637
159
  def __init__(self, auth: AsyncAuthResource) -> None:
638
160
  self._auth = auth
639
161
 
640
- self.get_profile = async_to_streamed_response_wrapper(
641
- auth.get_profile,
642
- )
643
- self.register_new_user = async_to_streamed_response_wrapper(
644
- auth.register_new_user,
645
- )
646
- self.register_organization = async_to_streamed_response_wrapper(
647
- auth.register_organization,
648
- )
649
- self.register_with_invite = async_to_streamed_response_wrapper(
650
- auth.register_with_invite,
651
- )
652
- self.request_password_reset = async_to_streamed_response_wrapper(
653
- auth.request_password_reset,
654
- )
655
- self.reset_password = async_to_streamed_response_wrapper(
656
- auth.reset_password,
657
- )
658
162
  self.verify_reset_token = async_to_streamed_response_wrapper(
659
163
  auth.verify_reset_token,
660
164
  )
661
165
 
662
- @cached_property
663
- def login(self) -> AsyncLoginResourceWithStreamingResponse:
664
- return AsyncLoginResourceWithStreamingResponse(self._auth.login)
665
-
666
166
  @cached_property
667
167
  def number_2fa(self) -> AsyncNumber2faResourceWithStreamingResponse:
668
168
  return AsyncNumber2faResourceWithStreamingResponse(self._auth.number_2fa)
669
-
670
- @cached_property
671
- def organization_invites(self) -> AsyncOrganizationInvitesResourceWithStreamingResponse:
672
- return AsyncOrganizationInvitesResourceWithStreamingResponse(self._auth.organization_invites)