Hi @Ayase Morita,
Hope everything is going well.
Question 1: Specifically, will both the shared folder itself and the items within that folder appear as separate entries in the response?
The shared folder itself will appear as a shared item in the "GET /me/drive/sharedWithMe" response.
Items within the shared folder will not automatically appear in the response unless they are explicitly shared with you.
In short, each file or subfolder needs to be shared separately for it to appear in the "sharedWithMe" response.
I test it in my environment:
Someone Share a folder with me. This folder contains a subfolder and a file.
In the response, I could only find the folder that was shared, its subfolders and files did not appear in the response.
Question2: When a folder is designated as a shared folder, are the items contained within that folder also treated as shared items?
When a folder is shared, the items within that folder inherit the sharing permissions of the parent folder. This means that if you have access to a shared folder, you will also have access to the items within it. However, they are not returned in the response. These items are not treated as individually shared items unless explicitly shared with you.
If you have any questions, please do not hesitate to contact me.
Moreover, if the issue can be fixed successfully, please click "Accept Answer" so that we can better archive the case and the other community members who are suffering the same issue can benefit from it.
Your kind contribution is much appreciated.