studyfetch-sdk 0.1.0a1__py3-none-any.whl → 0.1.0a2__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/auth/auth.py +52 -0
- studyfetch_sdk/resources/v1/organizations/usage.py +52 -2
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a2.dist-info}/METADATA +1 -1
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a2.dist-info}/RECORD +7 -7
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a2.dist-info}/WHEEL +0 -0
- {studyfetch_sdk-0.1.0a1.dist-info → studyfetch_sdk-0.1.0a2.dist-info}/licenses/LICENSE +0 -0
studyfetch_sdk/_version.py
CHANGED
@@ -258,6 +258,26 @@ class AuthResource(SyncAPIResource):
|
|
258
258
|
cast_to=NoneType,
|
259
259
|
)
|
260
260
|
|
261
|
+
def verify_reset_token(
|
262
|
+
self,
|
263
|
+
*,
|
264
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
265
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
266
|
+
extra_headers: Headers | None = None,
|
267
|
+
extra_query: Query | None = None,
|
268
|
+
extra_body: Body | None = None,
|
269
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
270
|
+
) -> None:
|
271
|
+
"""Verify password reset token"""
|
272
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
273
|
+
return self._post(
|
274
|
+
"/api/v1/auth/verify-reset-token",
|
275
|
+
options=make_request_options(
|
276
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
277
|
+
),
|
278
|
+
cast_to=NoneType,
|
279
|
+
)
|
280
|
+
|
261
281
|
|
262
282
|
class AsyncAuthResource(AsyncAPIResource):
|
263
283
|
@cached_property
|
@@ -475,6 +495,26 @@ class AsyncAuthResource(AsyncAPIResource):
|
|
475
495
|
cast_to=NoneType,
|
476
496
|
)
|
477
497
|
|
498
|
+
async def verify_reset_token(
|
499
|
+
self,
|
500
|
+
*,
|
501
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
502
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
503
|
+
extra_headers: Headers | None = None,
|
504
|
+
extra_query: Query | None = None,
|
505
|
+
extra_body: Body | None = None,
|
506
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
507
|
+
) -> None:
|
508
|
+
"""Verify password reset token"""
|
509
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
510
|
+
return await self._post(
|
511
|
+
"/api/v1/auth/verify-reset-token",
|
512
|
+
options=make_request_options(
|
513
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
514
|
+
),
|
515
|
+
cast_to=NoneType,
|
516
|
+
)
|
517
|
+
|
478
518
|
|
479
519
|
class AuthResourceWithRawResponse:
|
480
520
|
def __init__(self, auth: AuthResource) -> None:
|
@@ -498,6 +538,9 @@ class AuthResourceWithRawResponse:
|
|
498
538
|
self.reset_password = to_raw_response_wrapper(
|
499
539
|
auth.reset_password,
|
500
540
|
)
|
541
|
+
self.verify_reset_token = to_raw_response_wrapper(
|
542
|
+
auth.verify_reset_token,
|
543
|
+
)
|
501
544
|
|
502
545
|
@cached_property
|
503
546
|
def login(self) -> LoginResourceWithRawResponse:
|
@@ -534,6 +577,9 @@ class AsyncAuthResourceWithRawResponse:
|
|
534
577
|
self.reset_password = async_to_raw_response_wrapper(
|
535
578
|
auth.reset_password,
|
536
579
|
)
|
580
|
+
self.verify_reset_token = async_to_raw_response_wrapper(
|
581
|
+
auth.verify_reset_token,
|
582
|
+
)
|
537
583
|
|
538
584
|
@cached_property
|
539
585
|
def login(self) -> AsyncLoginResourceWithRawResponse:
|
@@ -570,6 +616,9 @@ class AuthResourceWithStreamingResponse:
|
|
570
616
|
self.reset_password = to_streamed_response_wrapper(
|
571
617
|
auth.reset_password,
|
572
618
|
)
|
619
|
+
self.verify_reset_token = to_streamed_response_wrapper(
|
620
|
+
auth.verify_reset_token,
|
621
|
+
)
|
573
622
|
|
574
623
|
@cached_property
|
575
624
|
def login(self) -> LoginResourceWithStreamingResponse:
|
@@ -606,6 +655,9 @@ class AsyncAuthResourceWithStreamingResponse:
|
|
606
655
|
self.reset_password = async_to_streamed_response_wrapper(
|
607
656
|
auth.reset_password,
|
608
657
|
)
|
658
|
+
self.verify_reset_token = async_to_streamed_response_wrapper(
|
659
|
+
auth.verify_reset_token,
|
660
|
+
)
|
609
661
|
|
610
662
|
@cached_property
|
611
663
|
def login(self) -> AsyncLoginResourceWithStreamingResponse:
|
@@ -38,7 +38,7 @@ class UsageResource(SyncAPIResource):
|
|
38
38
|
"""
|
39
39
|
return UsageResourceWithStreamingResponse(self)
|
40
40
|
|
41
|
-
def
|
41
|
+
def retrieve(
|
42
42
|
self,
|
43
43
|
id: str,
|
44
44
|
*,
|
@@ -70,6 +70,25 @@ class UsageResource(SyncAPIResource):
|
|
70
70
|
cast_to=NoneType,
|
71
71
|
)
|
72
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
|
+
|
73
92
|
|
74
93
|
class AsyncUsageResource(AsyncAPIResource):
|
75
94
|
@cached_property
|
@@ -91,7 +110,7 @@ class AsyncUsageResource(AsyncAPIResource):
|
|
91
110
|
"""
|
92
111
|
return AsyncUsageResourceWithStreamingResponse(self)
|
93
112
|
|
94
|
-
async def
|
113
|
+
async def retrieve(
|
95
114
|
self,
|
96
115
|
id: str,
|
97
116
|
*,
|
@@ -123,11 +142,33 @@ class AsyncUsageResource(AsyncAPIResource):
|
|
123
142
|
cast_to=NoneType,
|
124
143
|
)
|
125
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
|
+
|
126
164
|
|
127
165
|
class UsageResourceWithRawResponse:
|
128
166
|
def __init__(self, usage: UsageResource) -> None:
|
129
167
|
self._usage = usage
|
130
168
|
|
169
|
+
self.retrieve = to_raw_response_wrapper(
|
170
|
+
usage.retrieve,
|
171
|
+
)
|
131
172
|
self.list = to_raw_response_wrapper(
|
132
173
|
usage.list,
|
133
174
|
)
|
@@ -137,6 +178,9 @@ class AsyncUsageResourceWithRawResponse:
|
|
137
178
|
def __init__(self, usage: AsyncUsageResource) -> None:
|
138
179
|
self._usage = usage
|
139
180
|
|
181
|
+
self.retrieve = async_to_raw_response_wrapper(
|
182
|
+
usage.retrieve,
|
183
|
+
)
|
140
184
|
self.list = async_to_raw_response_wrapper(
|
141
185
|
usage.list,
|
142
186
|
)
|
@@ -146,6 +190,9 @@ class UsageResourceWithStreamingResponse:
|
|
146
190
|
def __init__(self, usage: UsageResource) -> None:
|
147
191
|
self._usage = usage
|
148
192
|
|
193
|
+
self.retrieve = to_streamed_response_wrapper(
|
194
|
+
usage.retrieve,
|
195
|
+
)
|
149
196
|
self.list = to_streamed_response_wrapper(
|
150
197
|
usage.list,
|
151
198
|
)
|
@@ -155,6 +202,9 @@ class AsyncUsageResourceWithStreamingResponse:
|
|
155
202
|
def __init__(self, usage: AsyncUsageResource) -> None:
|
156
203
|
self._usage = usage
|
157
204
|
|
205
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
206
|
+
usage.retrieve,
|
207
|
+
)
|
158
208
|
self.list = async_to_streamed_response_wrapper(
|
159
209
|
usage.list,
|
160
210
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: studyfetch_sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a2
|
4
4
|
Summary: The official Python library for the studyfetch-sdk API
|
5
5
|
Project-URL: Homepage, https://github.com/GoStudyFetchGo/studyfetch-sdk-python
|
6
6
|
Project-URL: Repository, https://github.com/GoStudyFetchGo/studyfetch-sdk-python
|
@@ -11,7 +11,7 @@ studyfetch_sdk/_resource.py,sha256=y0aoAqMIYwTAwStuxbpO8XpTPnrSNQQ_ZcgiH5xcntg,1
|
|
11
11
|
studyfetch_sdk/_response.py,sha256=6ph8tSkqF5pNbTo_2Zhizhq2O-Eb67TcksHwyg3aXdc,28864
|
12
12
|
studyfetch_sdk/_streaming.py,sha256=HZoENuPVzWhBn24eH3lnMCvRbWN0EPwvhWYfdlJfw0A,10128
|
13
13
|
studyfetch_sdk/_types.py,sha256=6nvqHGarRGuhs_FL8tJ8sGXXD8XWajNynT2K78GxRUI,6205
|
14
|
-
studyfetch_sdk/_version.py,sha256=
|
14
|
+
studyfetch_sdk/_version.py,sha256=vWWjW8e1YYiVhuw5C0zO0kuXDa4zQpja_5UMpDc33pU,174
|
15
15
|
studyfetch_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
studyfetch_sdk/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
studyfetch_sdk/_utils/_logs.py,sha256=EoZgOiIkpf2WB_0Ts0Ti7G3o_25v7IsPf_q-yEU6sbY,798
|
@@ -36,7 +36,7 @@ studyfetch_sdk/resources/v1/audio_recaps/__init__.py,sha256=X6oJGmyaqUBFChSn8l0r
|
|
36
36
|
studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py,sha256=XAfSWFDbjUSp9bKjDVHqLyrEv3kNtTYSaLtWPRFIzdc,12630
|
37
37
|
studyfetch_sdk/resources/v1/audio_recaps/sections.py,sha256=AcYtFSNemNP2T-fJn2nZkrPNNpaEtqiwPNuTpual2Lw,9451
|
38
38
|
studyfetch_sdk/resources/v1/auth/__init__.py,sha256=3CLX0g3QnjIdaNdTFGlCYGCCEnl7uDLLe-smPJOM0xk,2073
|
39
|
-
studyfetch_sdk/resources/v1/auth/auth.py,sha256=
|
39
|
+
studyfetch_sdk/resources/v1/auth/auth.py,sha256=aaaw82FWSwygWL7u_7I80J575Xa-Zzapwwdh05OtGNY,26030
|
40
40
|
studyfetch_sdk/resources/v1/auth/login.py,sha256=T80Z9zmj-rPeQSWfkgBmMlAhRXdYDUml8B7hyYVAFGY,13393
|
41
41
|
studyfetch_sdk/resources/v1/auth/number_2fa.py,sha256=j-6RVRgmzE5inX5s03jYrImqpxSUBumfhj6RRM9uAfQ,17902
|
42
42
|
studyfetch_sdk/resources/v1/auth/organization_invites.py,sha256=oFIx5UyMBK2fylD_C41Oc4Hdv52Yk96B6TaoVseSLco,6373
|
@@ -56,7 +56,7 @@ studyfetch_sdk/resources/v1/organizations/__init__.py,sha256=nxwTfS8HPuQuQ0fXIX4
|
|
56
56
|
studyfetch_sdk/resources/v1/organizations/api_keys.py,sha256=Z2vGVlvYD1IwnKd8keZYhTq_5oy_qJS0sWbRJb3lNWs,10169
|
57
57
|
studyfetch_sdk/resources/v1/organizations/organizations.py,sha256=gBuAMUS08jDmlwbDk5x2SME4EREH80sqPrRm2syUz-I,15522
|
58
58
|
studyfetch_sdk/resources/v1/organizations/theme.py,sha256=xJSGkkwZ8XmNBPVF8H9QqqUrk5vbC0_I17s2NDQL1dA,6915
|
59
|
-
studyfetch_sdk/resources/v1/organizations/usage.py,sha256=
|
59
|
+
studyfetch_sdk/resources/v1/organizations/usage.py,sha256=bijjilTybOhseOIcvmvdmkI2vHTEXcCWEkpeEKjGRyI,7823
|
60
60
|
studyfetch_sdk/resources/v1/organizations/logo/__init__.py,sha256=l-2_gFYhRh9IRO1cQbrcmtIw1v1O8sQ4zZLzH8bpWyQ,976
|
61
61
|
studyfetch_sdk/resources/v1/organizations/logo/logo.py,sha256=6oiSbcPpTWKq2Wd0nKBvGtEAQp2JC96R6ziDT17RuLw,5971
|
62
62
|
studyfetch_sdk/resources/v1/organizations/logo/upload.py,sha256=_CuwXIv6-1j5mHOz-DoazRzbRvumOaACjSV1aYY2bco,7144
|
@@ -159,7 +159,7 @@ studyfetch_sdk/types/v1/scenarios/component_update_params.py,sha256=BDHJzJiiTVqS
|
|
159
159
|
studyfetch_sdk/types/v1/scenarios/submissions/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
160
160
|
studyfetch_sdk/types/v1/tests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
161
161
|
studyfetch_sdk/types/v1/upload/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
162
|
-
studyfetch_sdk-0.1.
|
163
|
-
studyfetch_sdk-0.1.
|
164
|
-
studyfetch_sdk-0.1.
|
165
|
-
studyfetch_sdk-0.1.
|
162
|
+
studyfetch_sdk-0.1.0a2.dist-info/METADATA,sha256=b6YGjfKX5ZHlkvFAfcxhFAsJ9Gprmc8f9YuAase_6cw,15348
|
163
|
+
studyfetch_sdk-0.1.0a2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
164
|
+
studyfetch_sdk-0.1.0a2.dist-info/licenses/LICENSE,sha256=CsdbJMegH_AAWljUmVcwW0Cj_GyIm1hjw6qPqPnmdn4,11344
|
165
|
+
studyfetch_sdk-0.1.0a2.dist-info/RECORD,,
|
File without changes
|
File without changes
|