diff --git a/.codegen.json b/.codegen.json index 8ea50428..ecc667a9 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "5a7add6", "specHash": "d028758", "version": "10.10.0" } +{ "engineHash": "2e559a0", "specHash": "d028758", "version": "10.10.0" } diff --git a/docs/notes.md b/docs/notes.md index e8127a28..c4f482b3 100644 --- a/docs/notes.md +++ b/docs/notes.md @@ -14,7 +14,7 @@ See the endpoint docs at ```python -downscoped_client.notes.create_note_convert_v2026_r0( +client.notes.create_note_convert_v2026_r0( markdown_content, FolderReferenceV2026R0(id="0"), note_name, diff --git a/test/notes.py b/test/notes.py index 6b013943..f5fd8a80 100644 --- a/test/notes.py +++ b/test/notes.py @@ -1,7 +1,5 @@ from box_sdk_gen.internal.utils import to_string -from box_sdk_gen.schemas.access_token import AccessToken - from box_sdk_gen.schemas.v2026_r0.notes_convert_response_v2026_r0 import ( NotesConvertResponseV2026R0, ) @@ -20,8 +18,6 @@ from box_sdk_gen.client import BoxClient -from box_sdk_gen.box.developer_token_auth import BoxDeveloperTokenAuth - from test.commons import get_default_client_with_user_subject client: BoxClient = get_default_client_with_user_subject(get_env_var('USER_ID')) @@ -32,17 +28,11 @@ def testConvertMarkdownToBoxNote(): markdown_content: str = r"""# Heading Some text""" - downscoped_token: AccessToken = client.auth.downscope_token(['item_upload']) - downscoped_client: BoxClient = BoxClient( - auth=BoxDeveloperTokenAuth(token=downscoped_token.access_token) - ) - response: NotesConvertResponseV2026R0 = ( - downscoped_client.notes.create_note_convert_v2026_r0( - markdown_content, - FolderReferenceV2026R0(id='0'), - note_name, - content_format=CreateNoteConvertV2026R0ContentFormat.MARKDOWN, - ) + response: NotesConvertResponseV2026R0 = client.notes.create_note_convert_v2026_r0( + markdown_content, + FolderReferenceV2026R0(id='0'), + note_name, + content_format=CreateNoteConvertV2026R0ContentFormat.MARKDOWN, ) assert not response.id == '' assert to_string(response.type) == 'file'