[BUG] Photos shared library does not work if I am not the owner of the shared library
Describe the bug If I am part of an iCloud family and I am not the owner of a shared library, I am not able to list the photos in the shared library.
To Reproduce Receive an invitation to a Photos shared library. Try to list the libraries by calling:
print(api.photos.libraries)
You will receive only the list of your personal library and not the shared library.
Expected behavior
When calling api.photos.libraries I obtain a PhotoLibrary object for my private and shared libraries even if I'm not the owner of the shared library.
Additional context
I've playing around with this one a little bit and it appears that if I am not the owner of a shared library, but I was shared the library instead, the shared library won't show up when calling /database/1/com.apple.photos.cloud/production/private/zones/list but it will show up when calling /database/1/com.apple.photos.cloud/production/shared/zones/list.
There also seems to be a few additional endpoints to obtain the list of items in the shared library if I do not own it, such as /sharedlibrary/federated-query.
I've also noticed a few limitations on iCloud.com, such as it does not allow to list the content of folders, in my personal library (so not shared folders) if that folder contains pictures from both shared library and personal library. Which means that there isn't, at the moment, a way to know if a picture in a shared library belongs to a certain album in my personal library.
Please feel free to submit a PR. Thanks for initial investigation.