studyfetch-sdk 0.1.0a12__tar.gz → 0.1.0a14__tar.gz
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-0.1.0a14/.release-please-manifest.json +3 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/CHANGELOG.md +17 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/PKG-INFO +1 -1
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/api.md +15 -11
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/pyproject.toml +1 -1
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_version.py +1 -1
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/assignment_grader.py +9 -10
- studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/resources/v1/usage/__init__.py +33 -0
- studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/resources/v1/usage/analyst.py +354 -0
- {studyfetch_sdk-0.1.0a12/src/studyfetch_sdk/resources/v1 → studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/resources/v1/usage}/usage.py +39 -7
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/v1.py +8 -8
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/__init__.py +1 -2
- studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/types/v1/assignment_grader_get_all_response.py +10 -0
- studyfetch_sdk-0.1.0a12/src/studyfetch_sdk/types/v1/assignment_grader_create_response.py → studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/types/v1/assignment_grader_response.py +2 -2
- studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/types/v1/usage/__init__.py +5 -0
- studyfetch_sdk-0.1.0a14/src/studyfetch_sdk/types/v1/usage/analyst_list_events_params.py +49 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_assignment_grader.py +15 -16
- studyfetch_sdk-0.1.0a14/tests/api_resources/v1/usage/__init__.py +1 -0
- studyfetch_sdk-0.1.0a14/tests/api_resources/v1/usage/test_analyst.py +214 -0
- studyfetch_sdk-0.1.0a12/.release-please-manifest.json +0 -3
- studyfetch_sdk-0.1.0a12/src/studyfetch_sdk/types/v1/assignment_grader_get_all_response.py +0 -31
- studyfetch_sdk-0.1.0a12/src/studyfetch_sdk/types/v1/assignment_grader_get_by_id_response.py +0 -26
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/.gitignore +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/CONTRIBUTING.md +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/LICENSE +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/README.md +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/SECURITY.md +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/bin/check-release-environment +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/bin/publish-pypi +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/examples/.keep +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/mypy.ini +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/noxfile.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/release-please-config.json +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/requirements-dev.lock +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/requirements.lock +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_base_client.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_client.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_compat.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_constants.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_exceptions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_files.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_models.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_qs.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_resource.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_streaming.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_types.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_logs.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_proxy.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_reflection.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_resources_proxy.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_streams.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_sync.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_transform.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_typing.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/_utils/_utils.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/lib/.keep +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/py.typed +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/audio_recaps/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/audio_recaps/sections.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/chat/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/chat/chat.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/chat/sessions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/chat/test.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/components.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/embed/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/embed/component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/embed/embed.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/explainers.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/flashcards.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/folders.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/materials/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/materials/bulk.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/materials/materials.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/materials/test.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/materials/upload.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/scenarios.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/sessions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/scenarios/submissions/user.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/tests/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/tests/component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/tests/tests.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/upload/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/upload/component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/resources/v1/upload/upload.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/assignment_grader_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/audio_recaps/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/chat/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/chat/session_retrieve_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/chat_get_session_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/chat_send_message_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/chat_stream_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_generate_embed_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_generate_embed_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_list_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_list_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/component_update_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/embed/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/embed/component_interact_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/embed/component_retrieve_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/embed_get_theme_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/embed_verify_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/explainer_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_batch_process_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_batch_process_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_get_algorithm_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_get_all_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_get_due_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_get_stats_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_get_types_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/flashcard_rate_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/folder_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/folder_list_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/folder_update_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/material.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/material_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/material_get_download_url_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/material_list_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/material_list_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/materials/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/materials/upload_upload_from_url_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenario_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenario_submit_answer_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenario_update_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenarios/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenarios/component_update_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/test_create_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/test_retake_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/test_submit_answer_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/test_submit_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/tests/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/upload/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/usage_get_stats_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/usage_get_summary_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/src/studyfetch_sdk/types/v1/usage_list_events_params.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/audio_recaps/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/audio_recaps/test_sections.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/chat/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/chat/test_sessions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/chat/test_test.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/embed/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/embed/test_component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/materials/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/materials/test_bulk.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/materials/test_test.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/materials/test_upload.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/scenarios/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/scenarios/submissions/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/scenarios/submissions/test_user.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/scenarios/test_component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/scenarios/test_sessions.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_audio_recaps.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_chat.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_components.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_embed.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_explainers.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_flashcards.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_folders.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_materials.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_scenarios.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_tests.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/test_usage.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/tests/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/tests/test_component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/upload/__init__.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/api_resources/v1/upload/test_component.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/conftest.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/sample_file.txt +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_client.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_deepcopy.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_extract_files.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_files.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_models.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_qs.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_required_args.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_response.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_streaming.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_transform.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_utils/test_proxy.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/test_utils/test_typing.py +0 -0
- {studyfetch_sdk-0.1.0a12 → studyfetch_sdk-0.1.0a14}/tests/utils.py +0 -0
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.14 (2025-07-21)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([2dd5413](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/commit/2dd54130011d1f04067243e24b68be34640ca859))
|
10
|
+
* **api:** manual updates ([fc702e4](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/commit/fc702e4ee49f7d9766b4b3fb0fc364ad1acfbdc9))
|
11
|
+
|
12
|
+
## 0.1.0-alpha.13 (2025-07-21)
|
13
|
+
|
14
|
+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
* **api:** manual updates ([86545fd](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/commit/86545fdf0acc6a6bcb663903d5377fa5d28baedc))
|
19
|
+
|
3
20
|
## 0.1.0-alpha.12 (2025-07-20)
|
4
21
|
|
5
22
|
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/GoStudyFetchGo/studyfetch-sdk-python/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: studyfetch_sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a14
|
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
|
@@ -83,9 +83,17 @@ Methods:
|
|
83
83
|
|
84
84
|
Methods:
|
85
85
|
|
86
|
-
- <code title="get /api/v1/usage/stats">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage.py">get_stats</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_get_stats_params.py">params</a>) -> None</code>
|
87
|
-
- <code title="get /api/v1/usage/summary">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage.py">get_summary</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_get_summary_params.py">params</a>) -> None</code>
|
88
|
-
- <code title="get /api/v1/usage/events">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage.py">list_events</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_list_events_params.py">params</a>) -> None</code>
|
86
|
+
- <code title="get /api/v1/usage/stats">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage/usage.py">get_stats</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_get_stats_params.py">params</a>) -> None</code>
|
87
|
+
- <code title="get /api/v1/usage/summary">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage/usage.py">get_summary</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_get_summary_params.py">params</a>) -> None</code>
|
88
|
+
- <code title="get /api/v1/usage/events">client.v1.usage.<a href="./src/studyfetch_sdk/resources/v1/usage/usage.py">list_events</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage_list_events_params.py">params</a>) -> None</code>
|
89
|
+
|
90
|
+
### Analyst
|
91
|
+
|
92
|
+
Methods:
|
93
|
+
|
94
|
+
- <code title="get /api/v1/usage-analyst/test-questions">client.v1.usage.analyst.<a href="./src/studyfetch_sdk/resources/v1/usage/analyst.py">get_test_questions</a>() -> None</code>
|
95
|
+
- <code title="get /api/v1/usage-analyst/chat-messages">client.v1.usage.analyst.<a href="./src/studyfetch_sdk/resources/v1/usage/analyst.py">list_chat_messages</a>() -> None</code>
|
96
|
+
- <code title="get /api/v1/usage-analyst/events">client.v1.usage.analyst.<a href="./src/studyfetch_sdk/resources/v1/usage/analyst.py">list_events</a>(\*\*<a href="src/studyfetch_sdk/types/v1/usage/analyst_list_events_params.py">params</a>) -> None</code>
|
89
97
|
|
90
98
|
## Embed
|
91
99
|
|
@@ -185,7 +193,7 @@ Methods:
|
|
185
193
|
Types:
|
186
194
|
|
187
195
|
```python
|
188
|
-
from studyfetch_sdk.types.v1 import Scenario
|
196
|
+
from studyfetch_sdk.types.v1 import Scenario, UpdateScenario
|
189
197
|
```
|
190
198
|
|
191
199
|
Methods:
|
@@ -246,15 +254,11 @@ Methods:
|
|
246
254
|
Types:
|
247
255
|
|
248
256
|
```python
|
249
|
-
from studyfetch_sdk.types.v1 import
|
250
|
-
AssignmentGraderCreateResponse,
|
251
|
-
AssignmentGraderGetAllResponse,
|
252
|
-
AssignmentGraderGetByIDResponse,
|
253
|
-
)
|
257
|
+
from studyfetch_sdk.types.v1 import AssignmentGraderResponse, AssignmentGraderGetAllResponse
|
254
258
|
```
|
255
259
|
|
256
260
|
Methods:
|
257
261
|
|
258
|
-
- <code title="post /api/v1/assignment-grader/create">client.v1.assignment_grader.<a href="./src/studyfetch_sdk/resources/v1/assignment_grader.py">create</a>(\*\*<a href="src/studyfetch_sdk/types/v1/assignment_grader_create_params.py">params</a>) -> <a href="./src/studyfetch_sdk/types/v1/
|
262
|
+
- <code title="post /api/v1/assignment-grader/create">client.v1.assignment_grader.<a href="./src/studyfetch_sdk/resources/v1/assignment_grader.py">create</a>(\*\*<a href="src/studyfetch_sdk/types/v1/assignment_grader_create_params.py">params</a>) -> <a href="./src/studyfetch_sdk/types/v1/assignment_grader_response.py">AssignmentGraderResponse</a></code>
|
259
263
|
- <code title="get /api/v1/assignment-grader/get">client.v1.assignment_grader.<a href="./src/studyfetch_sdk/resources/v1/assignment_grader.py">get_all</a>() -> <a href="./src/studyfetch_sdk/types/v1/assignment_grader_get_all_response.py">AssignmentGraderGetAllResponse</a></code>
|
260
|
-
- <code title="get /api/v1/assignment-grader/get/{id}">client.v1.assignment_grader.<a href="./src/studyfetch_sdk/resources/v1/assignment_grader.py">get_by_id</a>(id) -> <a href="./src/studyfetch_sdk/types/v1/
|
264
|
+
- <code title="get /api/v1/assignment-grader/get/{id}">client.v1.assignment_grader.<a href="./src/studyfetch_sdk/resources/v1/assignment_grader.py">get_by_id</a>(id) -> <a href="./src/studyfetch_sdk/types/v1/assignment_grader_response.py">AssignmentGraderResponse</a></code>
|
@@ -16,9 +16,8 @@ from ..._response import (
|
|
16
16
|
async_to_streamed_response_wrapper,
|
17
17
|
)
|
18
18
|
from ..._base_client import make_request_options
|
19
|
-
from ...types.v1.
|
19
|
+
from ...types.v1.assignment_grader_response import AssignmentGraderResponse
|
20
20
|
from ...types.v1.assignment_grader_get_all_response import AssignmentGraderGetAllResponse
|
21
|
-
from ...types.v1.assignment_grader_get_by_id_response import AssignmentGraderGetByIDResponse
|
22
21
|
|
23
22
|
__all__ = ["AssignmentGraderResource", "AsyncAssignmentGraderResource"]
|
24
23
|
|
@@ -58,7 +57,7 @@ class AssignmentGraderResource(SyncAPIResource):
|
|
58
57
|
extra_query: Query | None = None,
|
59
58
|
extra_body: Body | None = None,
|
60
59
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
61
|
-
) ->
|
60
|
+
) -> AssignmentGraderResponse:
|
62
61
|
"""
|
63
62
|
Grade a new assignment
|
64
63
|
|
@@ -99,7 +98,7 @@ class AssignmentGraderResource(SyncAPIResource):
|
|
99
98
|
options=make_request_options(
|
100
99
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
101
100
|
),
|
102
|
-
cast_to=
|
101
|
+
cast_to=AssignmentGraderResponse,
|
103
102
|
)
|
104
103
|
|
105
104
|
def get_all(
|
@@ -131,7 +130,7 @@ class AssignmentGraderResource(SyncAPIResource):
|
|
131
130
|
extra_query: Query | None = None,
|
132
131
|
extra_body: Body | None = None,
|
133
132
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
134
|
-
) ->
|
133
|
+
) -> AssignmentGraderResponse:
|
135
134
|
"""
|
136
135
|
Get an assignment grader by ID
|
137
136
|
|
@@ -151,7 +150,7 @@ class AssignmentGraderResource(SyncAPIResource):
|
|
151
150
|
options=make_request_options(
|
152
151
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
153
152
|
),
|
154
|
-
cast_to=
|
153
|
+
cast_to=AssignmentGraderResponse,
|
155
154
|
)
|
156
155
|
|
157
156
|
|
@@ -190,7 +189,7 @@ class AsyncAssignmentGraderResource(AsyncAPIResource):
|
|
190
189
|
extra_query: Query | None = None,
|
191
190
|
extra_body: Body | None = None,
|
192
191
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
193
|
-
) ->
|
192
|
+
) -> AssignmentGraderResponse:
|
194
193
|
"""
|
195
194
|
Grade a new assignment
|
196
195
|
|
@@ -231,7 +230,7 @@ class AsyncAssignmentGraderResource(AsyncAPIResource):
|
|
231
230
|
options=make_request_options(
|
232
231
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
233
232
|
),
|
234
|
-
cast_to=
|
233
|
+
cast_to=AssignmentGraderResponse,
|
235
234
|
)
|
236
235
|
|
237
236
|
async def get_all(
|
@@ -263,7 +262,7 @@ class AsyncAssignmentGraderResource(AsyncAPIResource):
|
|
263
262
|
extra_query: Query | None = None,
|
264
263
|
extra_body: Body | None = None,
|
265
264
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
266
|
-
) ->
|
265
|
+
) -> AssignmentGraderResponse:
|
267
266
|
"""
|
268
267
|
Get an assignment grader by ID
|
269
268
|
|
@@ -283,7 +282,7 @@ class AsyncAssignmentGraderResource(AsyncAPIResource):
|
|
283
282
|
options=make_request_options(
|
284
283
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
285
284
|
),
|
286
|
-
cast_to=
|
285
|
+
cast_to=AssignmentGraderResponse,
|
287
286
|
)
|
288
287
|
|
289
288
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from .usage import (
|
4
|
+
UsageResource,
|
5
|
+
AsyncUsageResource,
|
6
|
+
UsageResourceWithRawResponse,
|
7
|
+
AsyncUsageResourceWithRawResponse,
|
8
|
+
UsageResourceWithStreamingResponse,
|
9
|
+
AsyncUsageResourceWithStreamingResponse,
|
10
|
+
)
|
11
|
+
from .analyst import (
|
12
|
+
AnalystResource,
|
13
|
+
AsyncAnalystResource,
|
14
|
+
AnalystResourceWithRawResponse,
|
15
|
+
AsyncAnalystResourceWithRawResponse,
|
16
|
+
AnalystResourceWithStreamingResponse,
|
17
|
+
AsyncAnalystResourceWithStreamingResponse,
|
18
|
+
)
|
19
|
+
|
20
|
+
__all__ = [
|
21
|
+
"AnalystResource",
|
22
|
+
"AsyncAnalystResource",
|
23
|
+
"AnalystResourceWithRawResponse",
|
24
|
+
"AsyncAnalystResourceWithRawResponse",
|
25
|
+
"AnalystResourceWithStreamingResponse",
|
26
|
+
"AsyncAnalystResourceWithStreamingResponse",
|
27
|
+
"UsageResource",
|
28
|
+
"AsyncUsageResource",
|
29
|
+
"UsageResourceWithRawResponse",
|
30
|
+
"AsyncUsageResourceWithRawResponse",
|
31
|
+
"UsageResourceWithStreamingResponse",
|
32
|
+
"AsyncUsageResourceWithStreamingResponse",
|
33
|
+
]
|
@@ -0,0 +1,354 @@
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
from typing_extensions import Literal
|
6
|
+
|
7
|
+
import httpx
|
8
|
+
|
9
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
10
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
11
|
+
from ...._compat import cached_property
|
12
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
13
|
+
from ...._response import (
|
14
|
+
to_raw_response_wrapper,
|
15
|
+
to_streamed_response_wrapper,
|
16
|
+
async_to_raw_response_wrapper,
|
17
|
+
async_to_streamed_response_wrapper,
|
18
|
+
)
|
19
|
+
from ...._base_client import make_request_options
|
20
|
+
from ....types.v1.usage import analyst_list_events_params
|
21
|
+
|
22
|
+
__all__ = ["AnalystResource", "AsyncAnalystResource"]
|
23
|
+
|
24
|
+
|
25
|
+
class AnalystResource(SyncAPIResource):
|
26
|
+
@cached_property
|
27
|
+
def with_raw_response(self) -> AnalystResourceWithRawResponse:
|
28
|
+
"""
|
29
|
+
This property can be used as a prefix for any HTTP method call to return
|
30
|
+
the raw response object instead of the parsed content.
|
31
|
+
|
32
|
+
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
33
|
+
"""
|
34
|
+
return AnalystResourceWithRawResponse(self)
|
35
|
+
|
36
|
+
@cached_property
|
37
|
+
def with_streaming_response(self) -> AnalystResourceWithStreamingResponse:
|
38
|
+
"""
|
39
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
40
|
+
|
41
|
+
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
42
|
+
"""
|
43
|
+
return AnalystResourceWithStreamingResponse(self)
|
44
|
+
|
45
|
+
def get_test_questions(
|
46
|
+
self,
|
47
|
+
*,
|
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
|
+
"""Get test results for users and groups in JWT"""
|
56
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
57
|
+
return self._get(
|
58
|
+
"/api/v1/usage-analyst/test-questions",
|
59
|
+
options=make_request_options(
|
60
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
61
|
+
),
|
62
|
+
cast_to=NoneType,
|
63
|
+
)
|
64
|
+
|
65
|
+
def list_chat_messages(
|
66
|
+
self,
|
67
|
+
*,
|
68
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
69
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
70
|
+
extra_headers: Headers | None = None,
|
71
|
+
extra_query: Query | None = None,
|
72
|
+
extra_body: Body | None = None,
|
73
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
74
|
+
) -> None:
|
75
|
+
"""Get chat messages for users and groups in JWT"""
|
76
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
77
|
+
return self._get(
|
78
|
+
"/api/v1/usage-analyst/chat-messages",
|
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 list_events(
|
86
|
+
self,
|
87
|
+
*,
|
88
|
+
end_date: str,
|
89
|
+
event_type: Literal[
|
90
|
+
"material_created",
|
91
|
+
"material_uploaded",
|
92
|
+
"material_processed",
|
93
|
+
"material_deleted",
|
94
|
+
"component_created",
|
95
|
+
"component_accessed",
|
96
|
+
"component_deleted",
|
97
|
+
"component_usage",
|
98
|
+
"chat_message_sent",
|
99
|
+
"chat_session_started",
|
100
|
+
"chat_session_ended",
|
101
|
+
"test_created",
|
102
|
+
"test_started",
|
103
|
+
"test_completed",
|
104
|
+
"test_question_answered",
|
105
|
+
"test_retaken",
|
106
|
+
"audio_recap_create",
|
107
|
+
"assignment_grader_create",
|
108
|
+
"api_call",
|
109
|
+
"cache_hit",
|
110
|
+
"sso_login",
|
111
|
+
"sso_logout",
|
112
|
+
"student_performance",
|
113
|
+
],
|
114
|
+
start_date: str,
|
115
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
116
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
117
|
+
extra_headers: Headers | None = None,
|
118
|
+
extra_query: Query | None = None,
|
119
|
+
extra_body: Body | None = None,
|
120
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
121
|
+
) -> None:
|
122
|
+
"""
|
123
|
+
Get all events based on filters
|
124
|
+
|
125
|
+
Args:
|
126
|
+
end_date: End date for filtering (ISO 8601)
|
127
|
+
|
128
|
+
event_type: Type of usage event to filter
|
129
|
+
|
130
|
+
start_date: Start date for filtering (ISO 8601)
|
131
|
+
|
132
|
+
extra_headers: Send extra headers
|
133
|
+
|
134
|
+
extra_query: Add additional query parameters to the request
|
135
|
+
|
136
|
+
extra_body: Add additional JSON properties to the request
|
137
|
+
|
138
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
139
|
+
"""
|
140
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
141
|
+
return self._get(
|
142
|
+
"/api/v1/usage-analyst/events",
|
143
|
+
options=make_request_options(
|
144
|
+
extra_headers=extra_headers,
|
145
|
+
extra_query=extra_query,
|
146
|
+
extra_body=extra_body,
|
147
|
+
timeout=timeout,
|
148
|
+
query=maybe_transform(
|
149
|
+
{
|
150
|
+
"end_date": end_date,
|
151
|
+
"event_type": event_type,
|
152
|
+
"start_date": start_date,
|
153
|
+
},
|
154
|
+
analyst_list_events_params.AnalystListEventsParams,
|
155
|
+
),
|
156
|
+
),
|
157
|
+
cast_to=NoneType,
|
158
|
+
)
|
159
|
+
|
160
|
+
|
161
|
+
class AsyncAnalystResource(AsyncAPIResource):
|
162
|
+
@cached_property
|
163
|
+
def with_raw_response(self) -> AsyncAnalystResourceWithRawResponse:
|
164
|
+
"""
|
165
|
+
This property can be used as a prefix for any HTTP method call to return
|
166
|
+
the raw response object instead of the parsed content.
|
167
|
+
|
168
|
+
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
|
169
|
+
"""
|
170
|
+
return AsyncAnalystResourceWithRawResponse(self)
|
171
|
+
|
172
|
+
@cached_property
|
173
|
+
def with_streaming_response(self) -> AsyncAnalystResourceWithStreamingResponse:
|
174
|
+
"""
|
175
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
176
|
+
|
177
|
+
For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
|
178
|
+
"""
|
179
|
+
return AsyncAnalystResourceWithStreamingResponse(self)
|
180
|
+
|
181
|
+
async def get_test_questions(
|
182
|
+
self,
|
183
|
+
*,
|
184
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
185
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
186
|
+
extra_headers: Headers | None = None,
|
187
|
+
extra_query: Query | None = None,
|
188
|
+
extra_body: Body | None = None,
|
189
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
190
|
+
) -> None:
|
191
|
+
"""Get test results for users and groups in JWT"""
|
192
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
193
|
+
return await self._get(
|
194
|
+
"/api/v1/usage-analyst/test-questions",
|
195
|
+
options=make_request_options(
|
196
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
197
|
+
),
|
198
|
+
cast_to=NoneType,
|
199
|
+
)
|
200
|
+
|
201
|
+
async def list_chat_messages(
|
202
|
+
self,
|
203
|
+
*,
|
204
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
205
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
206
|
+
extra_headers: Headers | None = None,
|
207
|
+
extra_query: Query | None = None,
|
208
|
+
extra_body: Body | None = None,
|
209
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
210
|
+
) -> None:
|
211
|
+
"""Get chat messages for users and groups in JWT"""
|
212
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
213
|
+
return await self._get(
|
214
|
+
"/api/v1/usage-analyst/chat-messages",
|
215
|
+
options=make_request_options(
|
216
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
217
|
+
),
|
218
|
+
cast_to=NoneType,
|
219
|
+
)
|
220
|
+
|
221
|
+
async def list_events(
|
222
|
+
self,
|
223
|
+
*,
|
224
|
+
end_date: str,
|
225
|
+
event_type: Literal[
|
226
|
+
"material_created",
|
227
|
+
"material_uploaded",
|
228
|
+
"material_processed",
|
229
|
+
"material_deleted",
|
230
|
+
"component_created",
|
231
|
+
"component_accessed",
|
232
|
+
"component_deleted",
|
233
|
+
"component_usage",
|
234
|
+
"chat_message_sent",
|
235
|
+
"chat_session_started",
|
236
|
+
"chat_session_ended",
|
237
|
+
"test_created",
|
238
|
+
"test_started",
|
239
|
+
"test_completed",
|
240
|
+
"test_question_answered",
|
241
|
+
"test_retaken",
|
242
|
+
"audio_recap_create",
|
243
|
+
"assignment_grader_create",
|
244
|
+
"api_call",
|
245
|
+
"cache_hit",
|
246
|
+
"sso_login",
|
247
|
+
"sso_logout",
|
248
|
+
"student_performance",
|
249
|
+
],
|
250
|
+
start_date: str,
|
251
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
252
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
253
|
+
extra_headers: Headers | None = None,
|
254
|
+
extra_query: Query | None = None,
|
255
|
+
extra_body: Body | None = None,
|
256
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
257
|
+
) -> None:
|
258
|
+
"""
|
259
|
+
Get all events based on filters
|
260
|
+
|
261
|
+
Args:
|
262
|
+
end_date: End date for filtering (ISO 8601)
|
263
|
+
|
264
|
+
event_type: Type of usage event to filter
|
265
|
+
|
266
|
+
start_date: Start date for filtering (ISO 8601)
|
267
|
+
|
268
|
+
extra_headers: Send extra headers
|
269
|
+
|
270
|
+
extra_query: Add additional query parameters to the request
|
271
|
+
|
272
|
+
extra_body: Add additional JSON properties to the request
|
273
|
+
|
274
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
275
|
+
"""
|
276
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
277
|
+
return await self._get(
|
278
|
+
"/api/v1/usage-analyst/events",
|
279
|
+
options=make_request_options(
|
280
|
+
extra_headers=extra_headers,
|
281
|
+
extra_query=extra_query,
|
282
|
+
extra_body=extra_body,
|
283
|
+
timeout=timeout,
|
284
|
+
query=await async_maybe_transform(
|
285
|
+
{
|
286
|
+
"end_date": end_date,
|
287
|
+
"event_type": event_type,
|
288
|
+
"start_date": start_date,
|
289
|
+
},
|
290
|
+
analyst_list_events_params.AnalystListEventsParams,
|
291
|
+
),
|
292
|
+
),
|
293
|
+
cast_to=NoneType,
|
294
|
+
)
|
295
|
+
|
296
|
+
|
297
|
+
class AnalystResourceWithRawResponse:
|
298
|
+
def __init__(self, analyst: AnalystResource) -> None:
|
299
|
+
self._analyst = analyst
|
300
|
+
|
301
|
+
self.get_test_questions = to_raw_response_wrapper(
|
302
|
+
analyst.get_test_questions,
|
303
|
+
)
|
304
|
+
self.list_chat_messages = to_raw_response_wrapper(
|
305
|
+
analyst.list_chat_messages,
|
306
|
+
)
|
307
|
+
self.list_events = to_raw_response_wrapper(
|
308
|
+
analyst.list_events,
|
309
|
+
)
|
310
|
+
|
311
|
+
|
312
|
+
class AsyncAnalystResourceWithRawResponse:
|
313
|
+
def __init__(self, analyst: AsyncAnalystResource) -> None:
|
314
|
+
self._analyst = analyst
|
315
|
+
|
316
|
+
self.get_test_questions = async_to_raw_response_wrapper(
|
317
|
+
analyst.get_test_questions,
|
318
|
+
)
|
319
|
+
self.list_chat_messages = async_to_raw_response_wrapper(
|
320
|
+
analyst.list_chat_messages,
|
321
|
+
)
|
322
|
+
self.list_events = async_to_raw_response_wrapper(
|
323
|
+
analyst.list_events,
|
324
|
+
)
|
325
|
+
|
326
|
+
|
327
|
+
class AnalystResourceWithStreamingResponse:
|
328
|
+
def __init__(self, analyst: AnalystResource) -> None:
|
329
|
+
self._analyst = analyst
|
330
|
+
|
331
|
+
self.get_test_questions = to_streamed_response_wrapper(
|
332
|
+
analyst.get_test_questions,
|
333
|
+
)
|
334
|
+
self.list_chat_messages = to_streamed_response_wrapper(
|
335
|
+
analyst.list_chat_messages,
|
336
|
+
)
|
337
|
+
self.list_events = to_streamed_response_wrapper(
|
338
|
+
analyst.list_events,
|
339
|
+
)
|
340
|
+
|
341
|
+
|
342
|
+
class AsyncAnalystResourceWithStreamingResponse:
|
343
|
+
def __init__(self, analyst: AsyncAnalystResource) -> None:
|
344
|
+
self._analyst = analyst
|
345
|
+
|
346
|
+
self.get_test_questions = async_to_streamed_response_wrapper(
|
347
|
+
analyst.get_test_questions,
|
348
|
+
)
|
349
|
+
self.list_chat_messages = async_to_streamed_response_wrapper(
|
350
|
+
analyst.list_chat_messages,
|
351
|
+
)
|
352
|
+
self.list_events = async_to_streamed_response_wrapper(
|
353
|
+
analyst.list_events,
|
354
|
+
)
|
@@ -6,23 +6,35 @@ from typing_extensions import Literal
|
|
6
6
|
|
7
7
|
import httpx
|
8
8
|
|
9
|
-
from
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
from .analyst import (
|
10
|
+
AnalystResource,
|
11
|
+
AsyncAnalystResource,
|
12
|
+
AnalystResourceWithRawResponse,
|
13
|
+
AsyncAnalystResourceWithRawResponse,
|
14
|
+
AnalystResourceWithStreamingResponse,
|
15
|
+
AsyncAnalystResourceWithStreamingResponse,
|
16
|
+
)
|
17
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
18
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
19
|
+
from ...._compat import cached_property
|
20
|
+
from ....types.v1 import usage_get_stats_params, usage_get_summary_params, usage_list_events_params
|
21
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
22
|
+
from ...._response import (
|
15
23
|
to_raw_response_wrapper,
|
16
24
|
to_streamed_response_wrapper,
|
17
25
|
async_to_raw_response_wrapper,
|
18
26
|
async_to_streamed_response_wrapper,
|
19
27
|
)
|
20
|
-
from
|
28
|
+
from ...._base_client import make_request_options
|
21
29
|
|
22
30
|
__all__ = ["UsageResource", "AsyncUsageResource"]
|
23
31
|
|
24
32
|
|
25
33
|
class UsageResource(SyncAPIResource):
|
34
|
+
@cached_property
|
35
|
+
def analyst(self) -> AnalystResource:
|
36
|
+
return AnalystResource(self._client)
|
37
|
+
|
26
38
|
@cached_property
|
27
39
|
def with_raw_response(self) -> UsageResourceWithRawResponse:
|
28
40
|
"""
|
@@ -250,6 +262,10 @@ class UsageResource(SyncAPIResource):
|
|
250
262
|
|
251
263
|
|
252
264
|
class AsyncUsageResource(AsyncAPIResource):
|
265
|
+
@cached_property
|
266
|
+
def analyst(self) -> AsyncAnalystResource:
|
267
|
+
return AsyncAnalystResource(self._client)
|
268
|
+
|
253
269
|
@cached_property
|
254
270
|
def with_raw_response(self) -> AsyncUsageResourceWithRawResponse:
|
255
271
|
"""
|
@@ -490,6 +506,10 @@ class UsageResourceWithRawResponse:
|
|
490
506
|
usage.list_events,
|
491
507
|
)
|
492
508
|
|
509
|
+
@cached_property
|
510
|
+
def analyst(self) -> AnalystResourceWithRawResponse:
|
511
|
+
return AnalystResourceWithRawResponse(self._usage.analyst)
|
512
|
+
|
493
513
|
|
494
514
|
class AsyncUsageResourceWithRawResponse:
|
495
515
|
def __init__(self, usage: AsyncUsageResource) -> None:
|
@@ -505,6 +525,10 @@ class AsyncUsageResourceWithRawResponse:
|
|
505
525
|
usage.list_events,
|
506
526
|
)
|
507
527
|
|
528
|
+
@cached_property
|
529
|
+
def analyst(self) -> AsyncAnalystResourceWithRawResponse:
|
530
|
+
return AsyncAnalystResourceWithRawResponse(self._usage.analyst)
|
531
|
+
|
508
532
|
|
509
533
|
class UsageResourceWithStreamingResponse:
|
510
534
|
def __init__(self, usage: UsageResource) -> None:
|
@@ -520,6 +544,10 @@ class UsageResourceWithStreamingResponse:
|
|
520
544
|
usage.list_events,
|
521
545
|
)
|
522
546
|
|
547
|
+
@cached_property
|
548
|
+
def analyst(self) -> AnalystResourceWithStreamingResponse:
|
549
|
+
return AnalystResourceWithStreamingResponse(self._usage.analyst)
|
550
|
+
|
523
551
|
|
524
552
|
class AsyncUsageResourceWithStreamingResponse:
|
525
553
|
def __init__(self, usage: AsyncUsageResource) -> None:
|
@@ -534,3 +562,7 @@ class AsyncUsageResourceWithStreamingResponse:
|
|
534
562
|
self.list_events = async_to_streamed_response_wrapper(
|
535
563
|
usage.list_events,
|
536
564
|
)
|
565
|
+
|
566
|
+
@cached_property
|
567
|
+
def analyst(self) -> AsyncAnalystResourceWithStreamingResponse:
|
568
|
+
return AsyncAnalystResourceWithStreamingResponse(self._usage.analyst)
|