studyfetch-sdk 0.1.0a10__py3-none-any.whl → 0.1.0a11__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.
@@ -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.10" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.11" # x-release-please-version
@@ -78,9 +78,8 @@ class ComponentResource(SyncAPIResource):
78
78
 
79
79
  def update(
80
80
  self,
81
- path_component_id: str,
81
+ component_id: str,
82
82
  *,
83
- body_component_id: str,
84
83
  name: str,
85
84
  characters: Iterable[object] | NotGiven = NOT_GIVEN,
86
85
  context: str | NotGiven = NOT_GIVEN,
@@ -103,8 +102,6 @@ class ComponentResource(SyncAPIResource):
103
102
  Update scenario by component ID
104
103
 
105
104
  Args:
106
- body_component_id: Associated component ID
107
-
108
105
  name: Scenario name
109
106
 
110
107
  characters: Scenario characters
@@ -135,14 +132,13 @@ class ComponentResource(SyncAPIResource):
135
132
 
136
133
  timeout: Override the client-level default timeout for this request, in seconds
137
134
  """
138
- if not path_component_id:
139
- raise ValueError(f"Expected a non-empty value for `path_component_id` but received {path_component_id!r}")
135
+ if not component_id:
136
+ raise ValueError(f"Expected a non-empty value for `component_id` but received {component_id!r}")
140
137
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
141
138
  return self._put(
142
- f"/api/v1/scenarios/component/{path_component_id}",
139
+ f"/api/v1/scenarios/component/{component_id}",
143
140
  body=maybe_transform(
144
141
  {
145
- "body_component_id": body_component_id,
146
142
  "name": name,
147
143
  "characters": characters,
148
144
  "context": context,
@@ -254,9 +250,8 @@ class AsyncComponentResource(AsyncAPIResource):
254
250
 
255
251
  async def update(
256
252
  self,
257
- path_component_id: str,
253
+ component_id: str,
258
254
  *,
259
- body_component_id: str,
260
255
  name: str,
261
256
  characters: Iterable[object] | NotGiven = NOT_GIVEN,
262
257
  context: str | NotGiven = NOT_GIVEN,
@@ -279,8 +274,6 @@ class AsyncComponentResource(AsyncAPIResource):
279
274
  Update scenario by component ID
280
275
 
281
276
  Args:
282
- body_component_id: Associated component ID
283
-
284
277
  name: Scenario name
285
278
 
286
279
  characters: Scenario characters
@@ -311,14 +304,13 @@ class AsyncComponentResource(AsyncAPIResource):
311
304
 
312
305
  timeout: Override the client-level default timeout for this request, in seconds
313
306
  """
314
- if not path_component_id:
315
- raise ValueError(f"Expected a non-empty value for `path_component_id` but received {path_component_id!r}")
307
+ if not component_id:
308
+ raise ValueError(f"Expected a non-empty value for `component_id` but received {component_id!r}")
316
309
  extra_headers = {"Accept": "*/*", **(extra_headers or {})}
317
310
  return await self._put(
318
- f"/api/v1/scenarios/component/{path_component_id}",
311
+ f"/api/v1/scenarios/component/{component_id}",
319
312
  body=await async_maybe_transform(
320
313
  {
321
- "body_component_id": body_component_id,
322
314
  "name": name,
323
315
  "characters": characters,
324
316
  "context": context,
@@ -200,7 +200,6 @@ class ScenariosResource(SyncAPIResource):
200
200
  self,
201
201
  id: str,
202
202
  *,
203
- component_id: str,
204
203
  name: str,
205
204
  characters: Iterable[object] | NotGiven = NOT_GIVEN,
206
205
  context: str | NotGiven = NOT_GIVEN,
@@ -223,8 +222,6 @@ class ScenariosResource(SyncAPIResource):
223
222
  Update scenario
224
223
 
225
224
  Args:
226
- component_id: Associated component ID
227
-
228
225
  name: Scenario name
229
226
 
230
227
  characters: Scenario characters
@@ -262,7 +259,6 @@ class ScenariosResource(SyncAPIResource):
262
259
  f"/api/v1/scenarios/{id}",
263
260
  body=maybe_transform(
264
261
  {
265
- "component_id": component_id,
266
262
  "name": name,
267
263
  "characters": characters,
268
264
  "context": context,
@@ -571,7 +567,6 @@ class AsyncScenariosResource(AsyncAPIResource):
571
567
  self,
572
568
  id: str,
573
569
  *,
574
- component_id: str,
575
570
  name: str,
576
571
  characters: Iterable[object] | NotGiven = NOT_GIVEN,
577
572
  context: str | NotGiven = NOT_GIVEN,
@@ -594,8 +589,6 @@ class AsyncScenariosResource(AsyncAPIResource):
594
589
  Update scenario
595
590
 
596
591
  Args:
597
- component_id: Associated component ID
598
-
599
592
  name: Scenario name
600
593
 
601
594
  characters: Scenario characters
@@ -633,7 +626,6 @@ class AsyncScenariosResource(AsyncAPIResource):
633
626
  f"/api/v1/scenarios/{id}",
634
627
  body=await async_maybe_transform(
635
628
  {
636
- "component_id": component_id,
637
629
  "name": name,
638
630
  "characters": characters,
639
631
  "context": context,
@@ -174,6 +174,7 @@ class UsageResource(SyncAPIResource):
174
174
  "test_question_answered",
175
175
  "test_retaken",
176
176
  "audio_recap_create",
177
+ "assignment_grader_create",
177
178
  "api_call",
178
179
  "cache_hit",
179
180
  "sso_login",
@@ -400,6 +401,7 @@ class AsyncUsageResource(AsyncAPIResource):
400
401
  "test_question_answered",
401
402
  "test_retaken",
402
403
  "audio_recap_create",
404
+ "assignment_grader_create",
403
405
  "api_call",
404
406
  "cache_hit",
405
407
  "sso_login",
@@ -11,9 +11,6 @@ __all__ = ["ScenarioUpdateParams"]
11
11
 
12
12
 
13
13
  class ScenarioUpdateParams(TypedDict, total=False):
14
- component_id: Required[Annotated[str, PropertyInfo(alias="componentId")]]
15
- """Associated component ID"""
16
-
17
14
  name: Required[str]
18
15
  """Scenario name"""
19
16
 
@@ -11,9 +11,6 @@ __all__ = ["ComponentUpdateParams"]
11
11
 
12
12
 
13
13
  class ComponentUpdateParams(TypedDict, total=False):
14
- body_component_id: Required[Annotated[str, PropertyInfo(alias="componentId")]]
15
- """Associated component ID"""
16
-
17
14
  name: Required[str]
18
15
  """Scenario name"""
19
16
 
@@ -32,6 +32,7 @@ class UsageListEventsParams(TypedDict, total=False):
32
32
  "test_question_answered",
33
33
  "test_retaken",
34
34
  "audio_recap_create",
35
+ "assignment_grader_create",
35
36
  "api_call",
36
37
  "cache_hit",
37
38
  "sso_login",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: studyfetch_sdk
3
- Version: 0.1.0a10
3
+ Version: 0.1.0a11
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=2RMmEarsUmjhmJ2q-V2DRZhuNbc2P2-fxWoUuZRsrbE,175
14
+ studyfetch_sdk/_version.py,sha256=CIR50UEkj5rsPvtfCnuNpTsXB62LyhoaQbkV51FaFyg,175
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
@@ -30,7 +30,7 @@ studyfetch_sdk/resources/v1/components.py,sha256=iU4cy-l8k6_RBtsMvjag0E29nWJpSyk
30
30
  studyfetch_sdk/resources/v1/explainers.py,sha256=W5Kq3Gpwqw3kBy9v-qpV5FKxH1HAm5_yk1NgACM-Mec,16047
31
31
  studyfetch_sdk/resources/v1/flashcards.py,sha256=_-zZUd8Ja9k2895cxLJsLbN73ZTIrkJaComGCSMkbCk,29242
32
32
  studyfetch_sdk/resources/v1/folders.py,sha256=o43HhcVhqF3t7xWMFFNIiMPElhoqkXtaCTVjEE5s5so,27436
33
- studyfetch_sdk/resources/v1/usage.py,sha256=78OlA8pT13Ggja84nHdJJQoKSn7GjDO3SefPyxsCYWo,18513
33
+ studyfetch_sdk/resources/v1/usage.py,sha256=kdLuuMOLm9pPitXcV3JGpQaQ5pGDqtzLlGTZZrlrfiQ,18593
34
34
  studyfetch_sdk/resources/v1/v1.py,sha256=7A5sAf4Z7xjyXJ18BRzEa-W2Vf5kWLb_YR6ZaGosaRM,15705
35
35
  studyfetch_sdk/resources/v1/audio_recaps/__init__.py,sha256=X6oJGmyaqUBFChSn8l0r-EHjCZos36O10zfFYWuid2w,1094
36
36
  studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py,sha256=XAfSWFDbjUSp9bKjDVHqLyrEv3kNtTYSaLtWPRFIzdc,12630
@@ -48,8 +48,8 @@ studyfetch_sdk/resources/v1/materials/materials.py,sha256=dHx9epoBs9-Q2gFm08RMHx
48
48
  studyfetch_sdk/resources/v1/materials/test.py,sha256=eGcjGYvPlrlZGrU6AnvZZX5qZ3aLgZgxIrNspXC1rnE,11355
49
49
  studyfetch_sdk/resources/v1/materials/upload.py,sha256=vXbsicx0pVlrx3LPr7rqOkqHmzBoxFI6lIBScM29zr8,15476
50
50
  studyfetch_sdk/resources/v1/scenarios/__init__.py,sha256=WrMn3vQJgHGQzWKq5SRUTMMvRd4p15Bt5JjZpHhKHZs,2071
51
- studyfetch_sdk/resources/v1/scenarios/component.py,sha256=RvB07dib9WtMY3Irr5UPjQIG1Bue9vGVPyhMrSKxwqk,16333
52
- studyfetch_sdk/resources/v1/scenarios/scenarios.py,sha256=BX4XaOFi-8AbP_75RIlfM26qBxfKt1pzTrC_plEu-04,34910
51
+ studyfetch_sdk/resources/v1/scenarios/component.py,sha256=ipHZj58PQfD1q1mNHLR0-zRNl6okOsMrqYaez5Bmn6c,15991
52
+ studyfetch_sdk/resources/v1/scenarios/scenarios.py,sha256=q_gX2IdWAogGNy6G0WsdNpgvNE0_Cf3GeKy7ukKc4M0,34658
53
53
  studyfetch_sdk/resources/v1/scenarios/sessions.py,sha256=nTa6kBd5SoCBTm4DoIdH_u_nj1bM5dIbo2yAy-rMzKg,8949
54
54
  studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py,sha256=rTtsEfGVta9DIHDkyL4p32yLV21bFcxkE-LRb_bpFvU,1041
55
55
  studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py,sha256=2wj6bWW4NXw3EjsCDQySGYOAym64QIUzLqp6UelJsqo,3773
@@ -94,14 +94,14 @@ studyfetch_sdk/types/v1/material_list_params.py,sha256=8yd556-GB4Xw-NFGshxm_Hx-n
94
94
  studyfetch_sdk/types/v1/material_list_response.py,sha256=mYCoEQJT6sxJd35nchrBf7BJpRHWWH1CbgZNz3QBPQg,269
95
95
  studyfetch_sdk/types/v1/scenario_create_params.py,sha256=anCK913P4vYEtgY6GnxxxCxRnUazeV1H1NoyBV78sT8,1281
96
96
  studyfetch_sdk/types/v1/scenario_submit_answer_params.py,sha256=g1idbU9OxRC_qrU7bOVNuFcXtKa2ZiJgy7KBR2mJWSM,597
97
- studyfetch_sdk/types/v1/scenario_update_params.py,sha256=q-PB0dS3s2S9q_JCm46UWB-Dy2WVSUiAw3C6v6lq7XA,1281
97
+ studyfetch_sdk/types/v1/scenario_update_params.py,sha256=F83xky9wzolK2VmTkTUqfrNwXB-h-H__8YYy7oXLz8A,1168
98
98
  studyfetch_sdk/types/v1/test_create_params.py,sha256=-MrR4d4Igyp7FD9xni5Rh_Gn3JgCZyYGagXUG3GDvQc,537
99
99
  studyfetch_sdk/types/v1/test_retake_params.py,sha256=pSxTOQ8Io9D_ZquvrbwdbUGtpjG-idDfBd-28i6gQVM,379
100
100
  studyfetch_sdk/types/v1/test_submit_answer_params.py,sha256=KnXliGsq5TTCZIno5It7rK5pi_qttEavBw86X_yhyj0,549
101
101
  studyfetch_sdk/types/v1/test_submit_params.py,sha256=ra-n9uNBDSqkkiomBt_y3RtGMpVyVJXiAqMajtZBSk4,379
102
102
  studyfetch_sdk/types/v1/usage_get_stats_params.py,sha256=TQwpTxrPjfa7OA-UdYOVppbZZjE9cx04VajXk-Pgvvc,682
103
103
  studyfetch_sdk/types/v1/usage_get_summary_params.py,sha256=ZFd6VwpQxL59a2akaJDRZbJJcNbZ88KU4S6UreCZr4U,768
104
- studyfetch_sdk/types/v1/usage_list_events_params.py,sha256=iMhwqdlaEbtyBqlTpAEcTdYCQumwWVmYBo8czDPLm74,1729
104
+ studyfetch_sdk/types/v1/usage_list_events_params.py,sha256=exIPdq6GwwDs5KmjzHE5EJc7dslgfCDqL08b89hl3m8,1769
105
105
  studyfetch_sdk/types/v1/audio_recaps/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
106
106
  studyfetch_sdk/types/v1/chat/__init__.py,sha256=wYABOEkbpJ2giFls8t8N32vNezDWQvFRnPw_giWy58g,207
107
107
  studyfetch_sdk/types/v1/chat/session_retrieve_params.py,sha256=G9P18vHLjgrLTVyWyKv8KGr0Pa4W9e8ZubMysxpty6I,290
@@ -112,11 +112,11 @@ studyfetch_sdk/types/v1/materials/__init__.py,sha256=dUjFp8sMxIHguGTJiFUSn-94pC0
112
112
  studyfetch_sdk/types/v1/materials/upload_upload_file_params.py,sha256=gfWhDYiYupBpxiSkJoJ2asgcBpYaXaMsZ55NxM-7rVg,521
113
113
  studyfetch_sdk/types/v1/materials/upload_upload_from_url_params.py,sha256=q4F7cBkJ7srXSkBosfiiApDETBz_lFJ0tPIUyHIUJXA,523
114
114
  studyfetch_sdk/types/v1/scenarios/__init__.py,sha256=2DyrawNlb-TstNKw0gUMlQaNSq-UAUcLhmOGElM0l0U,207
115
- studyfetch_sdk/types/v1/scenarios/component_update_params.py,sha256=_Rs0wRJtrLMKyQCGH3hrpMjWG1fHJwD3QaTyeOfdZMA,1289
115
+ studyfetch_sdk/types/v1/scenarios/component_update_params.py,sha256=0wsa-_gN17TKmvhQBbCIQmN2gSEuCq2HBWjQaTqhFdk,1171
116
116
  studyfetch_sdk/types/v1/scenarios/submissions/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
117
117
  studyfetch_sdk/types/v1/tests/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
118
118
  studyfetch_sdk/types/v1/upload/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
119
- studyfetch_sdk-0.1.0a10.dist-info/METADATA,sha256=NfCS9XEMpju7-5DA1qFNo9MudtCCPPiTr8aGMBlXq34,15991
120
- studyfetch_sdk-0.1.0a10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
121
- studyfetch_sdk-0.1.0a10.dist-info/licenses/LICENSE,sha256=CsdbJMegH_AAWljUmVcwW0Cj_GyIm1hjw6qPqPnmdn4,11344
122
- studyfetch_sdk-0.1.0a10.dist-info/RECORD,,
119
+ studyfetch_sdk-0.1.0a11.dist-info/METADATA,sha256=SSecD7VD9CsTHi6z21CLXwHRhbzmTsDU6fH_s0LcdrY,15991
120
+ studyfetch_sdk-0.1.0a11.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
121
+ studyfetch_sdk-0.1.0a11.dist-info/licenses/LICENSE,sha256=CsdbJMegH_AAWljUmVcwW0Cj_GyIm1hjw6qPqPnmdn4,11344
122
+ studyfetch_sdk-0.1.0a11.dist-info/RECORD,,