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.
- studyfetch_sdk/_version.py +1 -1
- studyfetch_sdk/resources/v1/__init__.py +0 -14
- studyfetch_sdk/resources/v1/auth/__init__.py +0 -28
- studyfetch_sdk/resources/v1/auth/auth.py +14 -466
- studyfetch_sdk/resources/v1/auth/number_2fa.py +1 -294
- studyfetch_sdk/resources/v1/usage.py +1 -593
- studyfetch_sdk/resources/v1/v1.py +0 -32
- studyfetch_sdk/types/v1/__init__.py +0 -5
- studyfetch_sdk/types/v1/auth/__init__.py +0 -8
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/METADATA +11 -35
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/RECORD +13 -41
- studyfetch_sdk/resources/v1/auth/login.py +0 -374
- studyfetch_sdk/resources/v1/auth/organization_invites.py +0 -160
- studyfetch_sdk/resources/v1/organizations/__init__.py +0 -103
- studyfetch_sdk/resources/v1/organizations/api_keys.py +0 -260
- studyfetch_sdk/resources/v1/organizations/logo/__init__.py +0 -33
- studyfetch_sdk/resources/v1/organizations/logo/logo.py +0 -166
- studyfetch_sdk/resources/v1/organizations/logo/upload.py +0 -184
- studyfetch_sdk/resources/v1/organizations/organizations.py +0 -428
- studyfetch_sdk/resources/v1/organizations/profile/__init__.py +0 -47
- studyfetch_sdk/resources/v1/organizations/profile/models.py +0 -134
- studyfetch_sdk/resources/v1/organizations/profile/profile.py +0 -248
- studyfetch_sdk/resources/v1/organizations/profile/team.py +0 -462
- studyfetch_sdk/resources/v1/organizations/team/__init__.py +0 -33
- studyfetch_sdk/resources/v1/organizations/team/invite.py +0 -236
- studyfetch_sdk/resources/v1/organizations/team/team.py +0 -564
- studyfetch_sdk/resources/v1/organizations/theme.py +0 -184
- studyfetch_sdk/resources/v1/organizations/usage.py +0 -160
- studyfetch_sdk/types/v1/auth/login_authenticate_params.py +0 -15
- studyfetch_sdk/types/v1/auth/login_verify_2fa_params.py +0 -15
- studyfetch_sdk/types/v1/auth/login_verify_backup_code_params.py +0 -17
- studyfetch_sdk/types/v1/auth/number_2fa_disable_params.py +0 -12
- studyfetch_sdk/types/v1/auth/number_2fa_enable_params.py +0 -12
- studyfetch_sdk/types/v1/auth/number_2fa_regenerate_backup_codes_params.py +0 -12
- studyfetch_sdk/types/v1/auth_register_new_user_params.py +0 -23
- studyfetch_sdk/types/v1/auth_request_password_reset_params.py +0 -12
- studyfetch_sdk/types/v1/auth_reset_password_params.py +0 -17
- studyfetch_sdk/types/v1/usage_track_chat_params.py +0 -54
- studyfetch_sdk/types/v1/usage_track_event_params.py +0 -128
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a3.dist-info}/licenses/LICENSE +0 -0
@@ -1,374 +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 ...._utils import maybe_transform, async_maybe_transform
|
9
|
-
from ...._compat import cached_property
|
10
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
11
|
-
from ...._response import (
|
12
|
-
to_raw_response_wrapper,
|
13
|
-
to_streamed_response_wrapper,
|
14
|
-
async_to_raw_response_wrapper,
|
15
|
-
async_to_streamed_response_wrapper,
|
16
|
-
)
|
17
|
-
from ...._base_client import make_request_options
|
18
|
-
from ....types.v1.auth import login_verify_2fa_params, login_authenticate_params, login_verify_backup_code_params
|
19
|
-
|
20
|
-
__all__ = ["LoginResource", "AsyncLoginResource"]
|
21
|
-
|
22
|
-
|
23
|
-
class LoginResource(SyncAPIResource):
|
24
|
-
@cached_property
|
25
|
-
def with_raw_response(self) -> LoginResourceWithRawResponse:
|
26
|
-
"""
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
28
|
-
the raw response object instead of the parsed content.
|
29
|
-
|
30
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
31
|
-
"""
|
32
|
-
return LoginResourceWithRawResponse(self)
|
33
|
-
|
34
|
-
@cached_property
|
35
|
-
def with_streaming_response(self) -> LoginResourceWithStreamingResponse:
|
36
|
-
"""
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
38
|
-
|
39
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
40
|
-
"""
|
41
|
-
return LoginResourceWithStreamingResponse(self)
|
42
|
-
|
43
|
-
def authenticate(
|
44
|
-
self,
|
45
|
-
*,
|
46
|
-
email: str,
|
47
|
-
password: str,
|
48
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
49
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
50
|
-
extra_headers: Headers | None = None,
|
51
|
-
extra_query: Query | None = None,
|
52
|
-
extra_body: Body | None = None,
|
53
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
54
|
-
) -> None:
|
55
|
-
"""
|
56
|
-
Args:
|
57
|
-
email: User email address
|
58
|
-
|
59
|
-
password: User password
|
60
|
-
|
61
|
-
extra_headers: Send extra headers
|
62
|
-
|
63
|
-
extra_query: Add additional query parameters to the request
|
64
|
-
|
65
|
-
extra_body: Add additional JSON properties to the request
|
66
|
-
|
67
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
68
|
-
"""
|
69
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
70
|
-
return self._post(
|
71
|
-
"/api/v1/auth/login",
|
72
|
-
body=maybe_transform(
|
73
|
-
{
|
74
|
-
"email": email,
|
75
|
-
"password": password,
|
76
|
-
},
|
77
|
-
login_authenticate_params.LoginAuthenticateParams,
|
78
|
-
),
|
79
|
-
options=make_request_options(
|
80
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
81
|
-
),
|
82
|
-
cast_to=NoneType,
|
83
|
-
)
|
84
|
-
|
85
|
-
def verify_2fa(
|
86
|
-
self,
|
87
|
-
*,
|
88
|
-
code: str,
|
89
|
-
email: str,
|
90
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
91
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
92
|
-
extra_headers: Headers | None = None,
|
93
|
-
extra_query: Query | None = None,
|
94
|
-
extra_body: Body | None = None,
|
95
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
96
|
-
) -> None:
|
97
|
-
"""
|
98
|
-
Args:
|
99
|
-
code: 6-digit verification code
|
100
|
-
|
101
|
-
email: User email address
|
102
|
-
|
103
|
-
extra_headers: Send extra headers
|
104
|
-
|
105
|
-
extra_query: Add additional query parameters to the request
|
106
|
-
|
107
|
-
extra_body: Add additional JSON properties to the request
|
108
|
-
|
109
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
110
|
-
"""
|
111
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
112
|
-
return self._post(
|
113
|
-
"/api/v1/auth/login/verify-2fa",
|
114
|
-
body=maybe_transform(
|
115
|
-
{
|
116
|
-
"code": code,
|
117
|
-
"email": email,
|
118
|
-
},
|
119
|
-
login_verify_2fa_params.LoginVerify2faParams,
|
120
|
-
),
|
121
|
-
options=make_request_options(
|
122
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
123
|
-
),
|
124
|
-
cast_to=NoneType,
|
125
|
-
)
|
126
|
-
|
127
|
-
def verify_backup_code(
|
128
|
-
self,
|
129
|
-
*,
|
130
|
-
backup_code: str,
|
131
|
-
email: str,
|
132
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
133
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
134
|
-
extra_headers: Headers | None = None,
|
135
|
-
extra_query: Query | None = None,
|
136
|
-
extra_body: Body | None = None,
|
137
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
138
|
-
) -> None:
|
139
|
-
"""
|
140
|
-
Args:
|
141
|
-
backup_code: Backup code
|
142
|
-
|
143
|
-
email: User email address
|
144
|
-
|
145
|
-
extra_headers: Send extra headers
|
146
|
-
|
147
|
-
extra_query: Add additional query parameters to the request
|
148
|
-
|
149
|
-
extra_body: Add additional JSON properties to the request
|
150
|
-
|
151
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
152
|
-
"""
|
153
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
154
|
-
return self._post(
|
155
|
-
"/api/v1/auth/login/verify-backup-code",
|
156
|
-
body=maybe_transform(
|
157
|
-
{
|
158
|
-
"backup_code": backup_code,
|
159
|
-
"email": email,
|
160
|
-
},
|
161
|
-
login_verify_backup_code_params.LoginVerifyBackupCodeParams,
|
162
|
-
),
|
163
|
-
options=make_request_options(
|
164
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
165
|
-
),
|
166
|
-
cast_to=NoneType,
|
167
|
-
)
|
168
|
-
|
169
|
-
|
170
|
-
class AsyncLoginResource(AsyncAPIResource):
|
171
|
-
@cached_property
|
172
|
-
def with_raw_response(self) -> AsyncLoginResourceWithRawResponse:
|
173
|
-
"""
|
174
|
-
This property can be used as a prefix for any HTTP method call to return
|
175
|
-
the raw response object instead of the parsed content.
|
176
|
-
|
177
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
178
|
-
"""
|
179
|
-
return AsyncLoginResourceWithRawResponse(self)
|
180
|
-
|
181
|
-
@cached_property
|
182
|
-
def with_streaming_response(self) -> AsyncLoginResourceWithStreamingResponse:
|
183
|
-
"""
|
184
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
185
|
-
|
186
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
187
|
-
"""
|
188
|
-
return AsyncLoginResourceWithStreamingResponse(self)
|
189
|
-
|
190
|
-
async def authenticate(
|
191
|
-
self,
|
192
|
-
*,
|
193
|
-
email: str,
|
194
|
-
password: str,
|
195
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
196
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
197
|
-
extra_headers: Headers | None = None,
|
198
|
-
extra_query: Query | None = None,
|
199
|
-
extra_body: Body | None = None,
|
200
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
201
|
-
) -> None:
|
202
|
-
"""
|
203
|
-
Args:
|
204
|
-
email: User email address
|
205
|
-
|
206
|
-
password: User password
|
207
|
-
|
208
|
-
extra_headers: Send extra headers
|
209
|
-
|
210
|
-
extra_query: Add additional query parameters to the request
|
211
|
-
|
212
|
-
extra_body: Add additional JSON properties to the request
|
213
|
-
|
214
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
215
|
-
"""
|
216
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
217
|
-
return await self._post(
|
218
|
-
"/api/v1/auth/login",
|
219
|
-
body=await async_maybe_transform(
|
220
|
-
{
|
221
|
-
"email": email,
|
222
|
-
"password": password,
|
223
|
-
},
|
224
|
-
login_authenticate_params.LoginAuthenticateParams,
|
225
|
-
),
|
226
|
-
options=make_request_options(
|
227
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
228
|
-
),
|
229
|
-
cast_to=NoneType,
|
230
|
-
)
|
231
|
-
|
232
|
-
async def verify_2fa(
|
233
|
-
self,
|
234
|
-
*,
|
235
|
-
code: str,
|
236
|
-
email: str,
|
237
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
238
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
239
|
-
extra_headers: Headers | None = None,
|
240
|
-
extra_query: Query | None = None,
|
241
|
-
extra_body: Body | None = None,
|
242
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
243
|
-
) -> None:
|
244
|
-
"""
|
245
|
-
Args:
|
246
|
-
code: 6-digit verification code
|
247
|
-
|
248
|
-
email: User email address
|
249
|
-
|
250
|
-
extra_headers: Send extra headers
|
251
|
-
|
252
|
-
extra_query: Add additional query parameters to the request
|
253
|
-
|
254
|
-
extra_body: Add additional JSON properties to the request
|
255
|
-
|
256
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
257
|
-
"""
|
258
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
259
|
-
return await self._post(
|
260
|
-
"/api/v1/auth/login/verify-2fa",
|
261
|
-
body=await async_maybe_transform(
|
262
|
-
{
|
263
|
-
"code": code,
|
264
|
-
"email": email,
|
265
|
-
},
|
266
|
-
login_verify_2fa_params.LoginVerify2faParams,
|
267
|
-
),
|
268
|
-
options=make_request_options(
|
269
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
270
|
-
),
|
271
|
-
cast_to=NoneType,
|
272
|
-
)
|
273
|
-
|
274
|
-
async def verify_backup_code(
|
275
|
-
self,
|
276
|
-
*,
|
277
|
-
backup_code: str,
|
278
|
-
email: str,
|
279
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
280
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
281
|
-
extra_headers: Headers | None = None,
|
282
|
-
extra_query: Query | None = None,
|
283
|
-
extra_body: Body | None = None,
|
284
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
285
|
-
) -> None:
|
286
|
-
"""
|
287
|
-
Args:
|
288
|
-
backup_code: Backup code
|
289
|
-
|
290
|
-
email: User email address
|
291
|
-
|
292
|
-
extra_headers: Send extra headers
|
293
|
-
|
294
|
-
extra_query: Add additional query parameters to the request
|
295
|
-
|
296
|
-
extra_body: Add additional JSON properties to the request
|
297
|
-
|
298
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
299
|
-
"""
|
300
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
301
|
-
return await self._post(
|
302
|
-
"/api/v1/auth/login/verify-backup-code",
|
303
|
-
body=await async_maybe_transform(
|
304
|
-
{
|
305
|
-
"backup_code": backup_code,
|
306
|
-
"email": email,
|
307
|
-
},
|
308
|
-
login_verify_backup_code_params.LoginVerifyBackupCodeParams,
|
309
|
-
),
|
310
|
-
options=make_request_options(
|
311
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
312
|
-
),
|
313
|
-
cast_to=NoneType,
|
314
|
-
)
|
315
|
-
|
316
|
-
|
317
|
-
class LoginResourceWithRawResponse:
|
318
|
-
def __init__(self, login: LoginResource) -> None:
|
319
|
-
self._login = login
|
320
|
-
|
321
|
-
self.authenticate = to_raw_response_wrapper(
|
322
|
-
login.authenticate,
|
323
|
-
)
|
324
|
-
self.verify_2fa = to_raw_response_wrapper(
|
325
|
-
login.verify_2fa,
|
326
|
-
)
|
327
|
-
self.verify_backup_code = to_raw_response_wrapper(
|
328
|
-
login.verify_backup_code,
|
329
|
-
)
|
330
|
-
|
331
|
-
|
332
|
-
class AsyncLoginResourceWithRawResponse:
|
333
|
-
def __init__(self, login: AsyncLoginResource) -> None:
|
334
|
-
self._login = login
|
335
|
-
|
336
|
-
self.authenticate = async_to_raw_response_wrapper(
|
337
|
-
login.authenticate,
|
338
|
-
)
|
339
|
-
self.verify_2fa = async_to_raw_response_wrapper(
|
340
|
-
login.verify_2fa,
|
341
|
-
)
|
342
|
-
self.verify_backup_code = async_to_raw_response_wrapper(
|
343
|
-
login.verify_backup_code,
|
344
|
-
)
|
345
|
-
|
346
|
-
|
347
|
-
class LoginResourceWithStreamingResponse:
|
348
|
-
def __init__(self, login: LoginResource) -> None:
|
349
|
-
self._login = login
|
350
|
-
|
351
|
-
self.authenticate = to_streamed_response_wrapper(
|
352
|
-
login.authenticate,
|
353
|
-
)
|
354
|
-
self.verify_2fa = to_streamed_response_wrapper(
|
355
|
-
login.verify_2fa,
|
356
|
-
)
|
357
|
-
self.verify_backup_code = to_streamed_response_wrapper(
|
358
|
-
login.verify_backup_code,
|
359
|
-
)
|
360
|
-
|
361
|
-
|
362
|
-
class AsyncLoginResourceWithStreamingResponse:
|
363
|
-
def __init__(self, login: AsyncLoginResource) -> None:
|
364
|
-
self._login = login
|
365
|
-
|
366
|
-
self.authenticate = async_to_streamed_response_wrapper(
|
367
|
-
login.authenticate,
|
368
|
-
)
|
369
|
-
self.verify_2fa = async_to_streamed_response_wrapper(
|
370
|
-
login.verify_2fa,
|
371
|
-
)
|
372
|
-
self.verify_backup_code = async_to_streamed_response_wrapper(
|
373
|
-
login.verify_backup_code,
|
374
|
-
)
|
@@ -1,160 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
import httpx
|
6
|
-
|
7
|
-
from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
8
|
-
from ...._compat import cached_property
|
9
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
10
|
-
from ...._response import (
|
11
|
-
to_raw_response_wrapper,
|
12
|
-
to_streamed_response_wrapper,
|
13
|
-
async_to_raw_response_wrapper,
|
14
|
-
async_to_streamed_response_wrapper,
|
15
|
-
)
|
16
|
-
from ...._base_client import make_request_options
|
17
|
-
|
18
|
-
__all__ = ["OrganizationInvitesResource", "AsyncOrganizationInvitesResource"]
|
19
|
-
|
20
|
-
|
21
|
-
class OrganizationInvitesResource(SyncAPIResource):
|
22
|
-
@cached_property
|
23
|
-
def with_raw_response(self) -> OrganizationInvitesResourceWithRawResponse:
|
24
|
-
"""
|
25
|
-
This property can be used as a prefix for any HTTP method call to return
|
26
|
-
the raw response object instead of the parsed content.
|
27
|
-
|
28
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
29
|
-
"""
|
30
|
-
return OrganizationInvitesResourceWithRawResponse(self)
|
31
|
-
|
32
|
-
@cached_property
|
33
|
-
def with_streaming_response(self) -> OrganizationInvitesResourceWithStreamingResponse:
|
34
|
-
"""
|
35
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
36
|
-
|
37
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
38
|
-
"""
|
39
|
-
return OrganizationInvitesResourceWithStreamingResponse(self)
|
40
|
-
|
41
|
-
def preview(
|
42
|
-
self,
|
43
|
-
token: str,
|
44
|
-
*,
|
45
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
46
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
47
|
-
extra_headers: Headers | None = None,
|
48
|
-
extra_query: Query | None = None,
|
49
|
-
extra_body: Body | None = None,
|
50
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
51
|
-
) -> None:
|
52
|
-
"""
|
53
|
-
Args:
|
54
|
-
extra_headers: Send extra headers
|
55
|
-
|
56
|
-
extra_query: Add additional query parameters to the request
|
57
|
-
|
58
|
-
extra_body: Add additional JSON properties to the request
|
59
|
-
|
60
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
61
|
-
"""
|
62
|
-
if not token:
|
63
|
-
raise ValueError(f"Expected a non-empty value for `token` but received {token!r}")
|
64
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
65
|
-
return self._get(
|
66
|
-
f"/api/v1/auth/organization-invites/preview/{token}",
|
67
|
-
options=make_request_options(
|
68
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
69
|
-
),
|
70
|
-
cast_to=NoneType,
|
71
|
-
)
|
72
|
-
|
73
|
-
|
74
|
-
class AsyncOrganizationInvitesResource(AsyncAPIResource):
|
75
|
-
@cached_property
|
76
|
-
def with_raw_response(self) -> AsyncOrganizationInvitesResourceWithRawResponse:
|
77
|
-
"""
|
78
|
-
This property can be used as a prefix for any HTTP method call to return
|
79
|
-
the raw response object instead of the parsed content.
|
80
|
-
|
81
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
82
|
-
"""
|
83
|
-
return AsyncOrganizationInvitesResourceWithRawResponse(self)
|
84
|
-
|
85
|
-
@cached_property
|
86
|
-
def with_streaming_response(self) -> AsyncOrganizationInvitesResourceWithStreamingResponse:
|
87
|
-
"""
|
88
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
89
|
-
|
90
|
-
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
91
|
-
"""
|
92
|
-
return AsyncOrganizationInvitesResourceWithStreamingResponse(self)
|
93
|
-
|
94
|
-
async def preview(
|
95
|
-
self,
|
96
|
-
token: str,
|
97
|
-
*,
|
98
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
99
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
100
|
-
extra_headers: Headers | None = None,
|
101
|
-
extra_query: Query | None = None,
|
102
|
-
extra_body: Body | None = None,
|
103
|
-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
104
|
-
) -> None:
|
105
|
-
"""
|
106
|
-
Args:
|
107
|
-
extra_headers: Send extra headers
|
108
|
-
|
109
|
-
extra_query: Add additional query parameters to the request
|
110
|
-
|
111
|
-
extra_body: Add additional JSON properties to the request
|
112
|
-
|
113
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
114
|
-
"""
|
115
|
-
if not token:
|
116
|
-
raise ValueError(f"Expected a non-empty value for `token` but received {token!r}")
|
117
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
118
|
-
return await self._get(
|
119
|
-
f"/api/v1/auth/organization-invites/preview/{token}",
|
120
|
-
options=make_request_options(
|
121
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
122
|
-
),
|
123
|
-
cast_to=NoneType,
|
124
|
-
)
|
125
|
-
|
126
|
-
|
127
|
-
class OrganizationInvitesResourceWithRawResponse:
|
128
|
-
def __init__(self, organization_invites: OrganizationInvitesResource) -> None:
|
129
|
-
self._organization_invites = organization_invites
|
130
|
-
|
131
|
-
self.preview = to_raw_response_wrapper(
|
132
|
-
organization_invites.preview,
|
133
|
-
)
|
134
|
-
|
135
|
-
|
136
|
-
class AsyncOrganizationInvitesResourceWithRawResponse:
|
137
|
-
def __init__(self, organization_invites: AsyncOrganizationInvitesResource) -> None:
|
138
|
-
self._organization_invites = organization_invites
|
139
|
-
|
140
|
-
self.preview = async_to_raw_response_wrapper(
|
141
|
-
organization_invites.preview,
|
142
|
-
)
|
143
|
-
|
144
|
-
|
145
|
-
class OrganizationInvitesResourceWithStreamingResponse:
|
146
|
-
def __init__(self, organization_invites: OrganizationInvitesResource) -> None:
|
147
|
-
self._organization_invites = organization_invites
|
148
|
-
|
149
|
-
self.preview = to_streamed_response_wrapper(
|
150
|
-
organization_invites.preview,
|
151
|
-
)
|
152
|
-
|
153
|
-
|
154
|
-
class AsyncOrganizationInvitesResourceWithStreamingResponse:
|
155
|
-
def __init__(self, organization_invites: AsyncOrganizationInvitesResource) -> None:
|
156
|
-
self._organization_invites = organization_invites
|
157
|
-
|
158
|
-
self.preview = async_to_streamed_response_wrapper(
|
159
|
-
organization_invites.preview,
|
160
|
-
)
|
@@ -1,103 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from .logo import (
|
4
|
-
LogoResource,
|
5
|
-
AsyncLogoResource,
|
6
|
-
LogoResourceWithRawResponse,
|
7
|
-
AsyncLogoResourceWithRawResponse,
|
8
|
-
LogoResourceWithStreamingResponse,
|
9
|
-
AsyncLogoResourceWithStreamingResponse,
|
10
|
-
)
|
11
|
-
from .team import (
|
12
|
-
TeamResource,
|
13
|
-
AsyncTeamResource,
|
14
|
-
TeamResourceWithRawResponse,
|
15
|
-
AsyncTeamResourceWithRawResponse,
|
16
|
-
TeamResourceWithStreamingResponse,
|
17
|
-
AsyncTeamResourceWithStreamingResponse,
|
18
|
-
)
|
19
|
-
from .theme import (
|
20
|
-
ThemeResource,
|
21
|
-
AsyncThemeResource,
|
22
|
-
ThemeResourceWithRawResponse,
|
23
|
-
AsyncThemeResourceWithRawResponse,
|
24
|
-
ThemeResourceWithStreamingResponse,
|
25
|
-
AsyncThemeResourceWithStreamingResponse,
|
26
|
-
)
|
27
|
-
from .usage import (
|
28
|
-
UsageResource,
|
29
|
-
AsyncUsageResource,
|
30
|
-
UsageResourceWithRawResponse,
|
31
|
-
AsyncUsageResourceWithRawResponse,
|
32
|
-
UsageResourceWithStreamingResponse,
|
33
|
-
AsyncUsageResourceWithStreamingResponse,
|
34
|
-
)
|
35
|
-
from .profile import (
|
36
|
-
ProfileResource,
|
37
|
-
AsyncProfileResource,
|
38
|
-
ProfileResourceWithRawResponse,
|
39
|
-
AsyncProfileResourceWithRawResponse,
|
40
|
-
ProfileResourceWithStreamingResponse,
|
41
|
-
AsyncProfileResourceWithStreamingResponse,
|
42
|
-
)
|
43
|
-
from .api_keys import (
|
44
|
-
APIKeysResource,
|
45
|
-
AsyncAPIKeysResource,
|
46
|
-
APIKeysResourceWithRawResponse,
|
47
|
-
AsyncAPIKeysResourceWithRawResponse,
|
48
|
-
APIKeysResourceWithStreamingResponse,
|
49
|
-
AsyncAPIKeysResourceWithStreamingResponse,
|
50
|
-
)
|
51
|
-
from .organizations import (
|
52
|
-
OrganizationsResource,
|
53
|
-
AsyncOrganizationsResource,
|
54
|
-
OrganizationsResourceWithRawResponse,
|
55
|
-
AsyncOrganizationsResourceWithRawResponse,
|
56
|
-
OrganizationsResourceWithStreamingResponse,
|
57
|
-
AsyncOrganizationsResourceWithStreamingResponse,
|
58
|
-
)
|
59
|
-
|
60
|
-
__all__ = [
|
61
|
-
"ProfileResource",
|
62
|
-
"AsyncProfileResource",
|
63
|
-
"ProfileResourceWithRawResponse",
|
64
|
-
"AsyncProfileResourceWithRawResponse",
|
65
|
-
"ProfileResourceWithStreamingResponse",
|
66
|
-
"AsyncProfileResourceWithStreamingResponse",
|
67
|
-
"APIKeysResource",
|
68
|
-
"AsyncAPIKeysResource",
|
69
|
-
"APIKeysResourceWithRawResponse",
|
70
|
-
"AsyncAPIKeysResourceWithRawResponse",
|
71
|
-
"APIKeysResourceWithStreamingResponse",
|
72
|
-
"AsyncAPIKeysResourceWithStreamingResponse",
|
73
|
-
"UsageResource",
|
74
|
-
"AsyncUsageResource",
|
75
|
-
"UsageResourceWithRawResponse",
|
76
|
-
"AsyncUsageResourceWithRawResponse",
|
77
|
-
"UsageResourceWithStreamingResponse",
|
78
|
-
"AsyncUsageResourceWithStreamingResponse",
|
79
|
-
"ThemeResource",
|
80
|
-
"AsyncThemeResource",
|
81
|
-
"ThemeResourceWithRawResponse",
|
82
|
-
"AsyncThemeResourceWithRawResponse",
|
83
|
-
"ThemeResourceWithStreamingResponse",
|
84
|
-
"AsyncThemeResourceWithStreamingResponse",
|
85
|
-
"LogoResource",
|
86
|
-
"AsyncLogoResource",
|
87
|
-
"LogoResourceWithRawResponse",
|
88
|
-
"AsyncLogoResourceWithRawResponse",
|
89
|
-
"LogoResourceWithStreamingResponse",
|
90
|
-
"AsyncLogoResourceWithStreamingResponse",
|
91
|
-
"TeamResource",
|
92
|
-
"AsyncTeamResource",
|
93
|
-
"TeamResourceWithRawResponse",
|
94
|
-
"AsyncTeamResourceWithRawResponse",
|
95
|
-
"TeamResourceWithStreamingResponse",
|
96
|
-
"AsyncTeamResourceWithStreamingResponse",
|
97
|
-
"OrganizationsResource",
|
98
|
-
"AsyncOrganizationsResource",
|
99
|
-
"OrganizationsResourceWithRawResponse",
|
100
|
-
"AsyncOrganizationsResourceWithRawResponse",
|
101
|
-
"OrganizationsResourceWithStreamingResponse",
|
102
|
-
"AsyncOrganizationsResourceWithStreamingResponse",
|
103
|
-
]
|