diff --git a/src/icloudpd/autodelete.py b/src/icloudpd/autodelete.py index eeee84df1..540af959a 100644 --- a/src/icloudpd/autodelete.py +++ b/src/icloudpd/autodelete.py @@ -12,12 +12,19 @@ def delete_file(logger, path) -> bool: logger.info("Deleted %s", path) return True + def delete_file_dry_run(logger, path) -> bool: """ Dry run deletion of files """ logger.info("[DRY RUN] Would delete %s", path) return True -def autodelete_photos(logger, dry_run, icloud, folder_structure, directory): + +def autodelete_photos( + logger, + dry_run, + library_object, + folder_structure, + directory): """ Scans the "Recently Deleted" folder and deletes any matching files from the download directory. @@ -25,7 +32,7 @@ def autodelete_photos(logger, dry_run, icloud, folder_structure, directory): """ logger.info("Deleting any files found in 'Recently Deleted'...") - recently_deleted = icloud.photos.albums["Recently Deleted"] + recently_deleted = library_object.albums["Recently Deleted"] for media in recently_deleted: try: diff --git a/src/icloudpd/base.py b/src/icloudpd/base.py index 4be74f7bf..013e411a3 100644 --- a/src/icloudpd/base.py +++ b/src/icloudpd/base.py @@ -93,6 +93,17 @@ help="Lists the available albums", is_flag=True, ) +@click.option( + "--library", + help="Library to download (default: Personal Library)", + metavar="", + default="PrimarySync", +) +@click.option( + "--list-libraries", + help="Lists the available libraries", + is_flag=True, +) @click.option( "--skip-videos", help="Don't download any videos (default: Download all photos and videos)", @@ -122,12 +133,13 @@ + "(Does not download or delete any files.)", is_flag=True, ) -@click.option("--folder-structure", - help="Folder structure (default: {:%Y/%m/%d}). " - "If set to 'none' all photos will just be placed into the download directory", - metavar="", - default="{:%Y/%m/%d}", - ) +@click.option( + "--folder-structure", + help="Folder structure (default: {:%Y/%m/%d}). " + "If set to 'none' all photos will just be placed into the download directory", + metavar="", + default="{:%Y/%m/%d}", +) @click.option( "--set-exif-datetime", help="Write the DateTimeOriginal exif tag from file creation date, " + @@ -235,6 +247,8 @@ def main( until_found, album, list_albums, + library, + list_libraries, skip_videos, skip_live_photos, force_size, @@ -281,8 +295,8 @@ def main( with logging_redirect_tqdm(): # check required directory param only if not list albums - if not list_albums and not directory: - print('--directory or --list-albums are required') + if not list_albums and not list_libraries and not directory: + print('--directory, --list-libraries or --list-albums are required') sys.exit(2) if auto_delete and delete_after_download: @@ -318,6 +332,8 @@ def main( until_found, album, list_albums, + library, + list_libraries, skip_videos, auto_delete, only_print_filenames, @@ -691,6 +707,8 @@ def core( until_found, album, list_albums, + library, + list_libraries, skip_videos, auto_delete, only_print_filenames, @@ -742,143 +760,157 @@ def core( download_photo = downloader(icloud) - while True: + # Access to the selected library. Defaults to the primary photos object. + library_object = icloud.photos - # Default album is "All Photos", so this is the same as - # calling `icloud.photos.all`. - # After 6 or 7 runs within 1h Apple blocks the API for some time. In that - # case exit. - try: - photos = icloud.photos.albums[album] - except PyiCloudAPIResponseError as err: - # For later: come up with a nicer message to the user. For now take the - # exception text - print(err) - return 1 - - if list_albums: - albums_dict = icloud.photos.albums - albums = albums_dict.values() # pragma: no cover - album_titles = [str(a) for a in albums] - print(*album_titles, sep="\n") - return 0 - - directory = os.path.normpath(directory) - - videos_phrase = "" if skip_videos else " and videos" - logger.debug( - "Looking up all photos%s from album %s...", - videos_phrase, - album - ) + if list_libraries: + libraries_dict = icloud.photos.libraries + library_names = libraries_dict.keys() + print(*library_names, sep="\n") - session_exception_handler = session_error_handle_builder( - logger, icloud) - internal_error_handler = internal_error_handle_builder(logger) - - error_handler = compose_handlers([session_exception_handler, internal_error_handler - ]) - - photos.exception_handler = error_handler - - photos_count = len(photos) - - # Optional: Only download the x most recent photos. - if recent is not None: - photos_count = recent - photos = itertools.islice(photos, recent) - - tqdm_kwargs = {"total": photos_count} - - if until_found is not None: - del tqdm_kwargs["total"] - photos_count = "???" - # ensure photos iterator doesn't have a known length - photos = (p for p in photos) - - # Use only ASCII characters in progress bar - tqdm_kwargs["ascii"] = True - - tqdm_kwargs["leave"] = False - tqdm_kwargs["dynamic_ncols"] = True - - # Skip the one-line progress bar if we're only printing the filenames, - # or if the progress bar is explicitly disabled, - # or if this is not a terminal (e.g. cron or piping output to file) - skip_bar = not os.environ.get("FORCE_TQDM") and ( - only_print_filenames or no_progress_bar or not sys.stdout.isatty()) - if skip_bar: - photos_enumerator = photos - # logger.set_tqdm(None) - else: - photos_enumerator = tqdm(photos, **tqdm_kwargs) - # logger.set_tqdm(photos_enumerator) - - plural_suffix = "" if photos_count == 1 else "s" - video_suffix = "" - photos_count_str = "the first" if photos_count == 1 else photos_count - if not skip_videos: - video_suffix = " or video" if photos_count == 1 else " and videos" - logger.info( - ("Downloading %s %s" + - " photo%s%s to %s ..."), - photos_count_str, - size, - plural_suffix, - video_suffix, - directory - ) + else: + while True: + # Default album is "All Photos", so this is the same as + # calling `icloud.photos.all`. + # After 6 or 7 runs within 1h Apple blocks the API for some time. In that + # case exit. + try: + if library: + try: + library_object = icloud.photos.libraries[library] + except KeyError: + logger.error("Unknown library: %s", library) + return 1 + photos = library_object.albums[album] + except PyiCloudAPIResponseError as err: + # For later: come up with a nicer message to the user. For now take the + # exception text + logger.error("error?? %s", err) + return 1 + + if list_albums: + print("Albums:") + albums_dict = library_object.albums + albums = albums_dict.values() # pragma: no cover + album_titles = [str(a) for a in albums] + print(*album_titles, sep="\n") + return 0 + directory = os.path.normpath(directory) + + videos_phrase = "" if skip_videos else " and videos" + logger.debug( + "Looking up all photos%s from album %s...", + videos_phrase, + album + ) - consecutive_files_found = Counter(0) + session_exception_handler = session_error_handle_builder( + logger, icloud) + internal_error_handler = internal_error_handle_builder(logger) + + error_handler = compose_handlers([session_exception_handler, internal_error_handler + ]) + + photos.exception_handler = error_handler + + photos_count = len(photos) + + # Optional: Only download the x most recent photos. + if recent is not None: + photos_count = recent + photos = itertools.islice(photos, recent) + + tqdm_kwargs = {"total": photos_count} + + if until_found is not None: + del tqdm_kwargs["total"] + photos_count = "???" + # ensure photos iterator doesn't have a known length + photos = (p for p in photos) + + # Use only ASCII characters in progress bar + tqdm_kwargs["ascii"] = True + + tqdm_kwargs["leave"] = False + tqdm_kwargs["dynamic_ncols"] = True + + # Skip the one-line progress bar if we're only printing the filenames, + # or if the progress bar is explicitly disabled, + # or if this is not a terminal (e.g. cron or piping output to file) + skip_bar = not os.environ.get("FORCE_TQDM") and ( + only_print_filenames or no_progress_bar or not sys.stdout.isatty()) + if skip_bar: + photos_enumerator = photos + # logger.set_tqdm(None) + else: + photos_enumerator = tqdm(photos, **tqdm_kwargs) + # logger.set_tqdm(photos_enumerator) + + plural_suffix = "" if photos_count == 1 else "s" + video_suffix = "" + photos_count_str = "the first" if photos_count == 1 else photos_count + if not skip_videos: + video_suffix = " or video" if photos_count == 1 else " and videos" + logger.info( + ("Downloading %s %s" + + " photo%s%s to %s ..."), + photos_count_str, + size, + plural_suffix, + video_suffix, + directory + ) - def should_break(counter): - """Exit if until_found condition is reached""" - return until_found is not None and counter.value() >= until_found + consecutive_files_found = Counter(0) - photos_iterator = iter(photos_enumerator) - while True: - try: - if should_break(consecutive_files_found): - logger.info( - "Found %s consecutive previously downloaded photos. Exiting", - until_found - ) + def should_break(counter): + """Exit if until_found condition is reached""" + return until_found is not None and counter.value() >= until_found + + photos_iterator = iter(photos_enumerator) + while True: + try: + if should_break(consecutive_files_found): + logger.info( + "Found %s consecutive previously downloaded photos. Exiting", + until_found + ) + break + item = next(photos_iterator) + if download_photo( + consecutive_files_found, + item) and delete_after_download: + + def delete_cmd(): + delete_local = delete_photo_dry_run if dry_run else delete_photo + delete_local(logger, icloud, item) + + retrier(delete_cmd, error_handler) + + except StopIteration: break - item = next(photos_iterator) - if download_photo( - consecutive_files_found, - item) and delete_after_download: - - def delete_cmd(): - delete_local = delete_photo_dry_run if dry_run else delete_photo - delete_local(logger, icloud, item) - - retrier(delete_cmd, error_handler) - - except StopIteration: - break - - if only_print_filenames: - return 0 - - logger.info("All photos have been downloaded") - - if auto_delete: - autodelete_photos(logger, dry_run, icloud, - folder_structure, directory) - - if watch_interval: # pragma: no cover - logger.info(f"Waiting for {watch_interval} sec...") - interval = range(1, watch_interval) - for _ in interval if skip_bar else tqdm( - interval, - desc="Waiting...", - ascii=True, - leave=False, - dynamic_ncols=True - ): - time.sleep(1) - else: - break + + if only_print_filenames: + return 0 + + logger.info("All photos have been downloaded") + + if auto_delete: + autodelete_photos(logger, dry_run, library_object, + folder_structure, directory) + + if watch_interval: # pragma: no cover + logger.info(f"Waiting for {watch_interval} sec...") + interval = range(1, watch_interval) + for _ in interval if skip_bar else tqdm( + interval, + desc="Waiting...", + ascii=True, + leave=False, + dynamic_ncols=True + ): + time.sleep(1) + else: + break # pragma: no cover return 0 diff --git a/src/icloudpd/download.py b/src/icloudpd/download.py index 627939cdc..9f6b6ef6b 100644 --- a/src/icloudpd/download.py +++ b/src/icloudpd/download.py @@ -11,6 +11,7 @@ # Import the constants object so that we can mock WAIT_SECONDS in tests from icloudpd import constants + def update_mtime(created: datetime.datetime, download_path): """Set the modification time of the downloaded file to the photo creation date""" if created: @@ -31,13 +32,14 @@ def set_utime(download_path, created_date): ctime = time.mktime(created_date.timetuple()) os.utime(download_path, (ctime, ctime)) + def mkdirs_for_path(logger, download_path: str) -> bool: """ Creates hierarchy of folders for file path if it needed """ try: # get back the directory for the file to be downloaded and create it if # not there already download_dir = os.path.dirname(download_path) - os.makedirs(name = download_dir, exist_ok=True) + os.makedirs(name=download_dir, exist_ok=True) return True except OSError: logger.error( @@ -46,6 +48,7 @@ def mkdirs_for_path(logger, download_path: str) -> bool: ) return False + def mkdirs_for_path_dry_run(logger, download_path: str) -> bool: """ DRY Run for Creating hierarchy of folders for file path """ download_dir = os.path.dirname(download_path) @@ -56,6 +59,7 @@ def mkdirs_for_path_dry_run(logger, download_path: str) -> bool: ) return True + def download_response_to_path( _logger, response, @@ -71,6 +75,7 @@ def download_response_to_path( update_mtime(created_date, download_path) return True + def download_response_to_path_dry_run( logger, _response, @@ -84,7 +89,15 @@ def download_response_to_path_dry_run( return True # pylint: disable-msg=too-many-arguments -def download_media(logger, dry_run, icloud, photo, download_path, size) -> bool: + + +def download_media( + logger, + dry_run, + icloud, + photo, + download_path, + size) -> bool: """Download the photo to path, with retries and error handling""" mkdirs_local = mkdirs_for_path_dry_run if dry_run else mkdirs_for_path @@ -97,7 +110,8 @@ def download_media(logger, dry_run, icloud, photo, download_path, size) -> bool: try: photo_response = photo.download(size) if photo_response: - return download_local(logger, photo_response, download_path, photo.created) + return download_local( + logger, photo_response, download_path, photo.created) logger.error( "Could not find URL to download %s for size %s", @@ -132,13 +146,13 @@ def download_media(logger, dry_run, icloud, photo, download_path, size) -> bool: "IOError while writing file to %s. " + "You might have run out of disk space, or the file " + "might be too large for your OS. " + - "Skipping this file...", + "Skipping this file...", download_path ) break else: logger.error( - "Could not download %s. Please try again later.", + "Could not download %s. Please try again later.", photo.filename, ) diff --git a/src/pyicloud_ipd/services/photos.py b/src/pyicloud_ipd/services/photos.py index 19c9dce7b..455e3ed75 100644 --- a/src/pyicloud_ipd/services/photos.py +++ b/src/pyicloud_ipd/services/photos.py @@ -15,12 +15,15 @@ logger = logging.getLogger(__name__) -class PhotosService(object): - """ The 'Photos' iCloud service.""" +class PhotoLibrary(object): + """Represents a library in the user's photos. + + This provides access to all the albums as well as the photos. + """ SMART_FOLDERS = { "All Photos": { - "obj_type": "CPLAssetByAddedDate", - "list_type": "CPLAssetAndMasterByAddedDate", + "obj_type": "CPLAssetByAssetDateWithoutHiddenOrDeleted", + "list_type": "CPLAssetAndMasterByAssetDateWithoutHiddenOrDeleted", "direction": "ASCENDING", "query_filter": None }, @@ -135,26 +138,20 @@ class PhotosService(object): }, } - def __init__(self, service_root, session, params): - self.session = session - self.params = dict(params) - self._service_root = service_root - self._service_endpoint = \ - ('%s/database/1/com.apple.photos.cloud/production/private' - % self._service_root) + def __init__(self, service, zone_id): + self.service = service + self.zone_id = zone_id self._albums = None - self.params.update({ - 'remapEnums': True, - 'getCurrentSyncToken': True + url = ('%s/records/query?%s' % + (self.service._service_endpoint, urlencode(self.service.params))) + json_data = json.dumps({ + "query": {"recordType":"CheckIndexingState"}, + "zoneID": self.zone_id, }) - url = ('%s/records/query?%s' % - (self._service_endpoint, urlencode(self.params))) - json_data = ('{"query":{"recordType":"CheckIndexingState"},' - '"zoneID":{"zoneName":"PrimarySync"}}') - request = self.session.post( + request = self.service.session.post( url, data=json_data, headers={'Content-type': 'text/plain'} @@ -166,19 +163,13 @@ def __init__(self, service_root, session, params): ('iCloud Photo Library not finished indexing. Please try ' 'again in a few minutes'), None) - # TODO: Does syncToken ever change? - # self.params.update({ - # 'syncToken': response['syncToken'], - # 'clientInstanceId': self.params.pop('clientId') - # }) - - self._photo_assets = {} - @property def albums(self): if not self._albums: - self._albums = {name: PhotoAlbum(self, name, **props) - for (name, props) in self.SMART_FOLDERS.items()} + self._albums = { + name: PhotoAlbum(self.service, name, zone_id=self.zone_id, **props) + for (name, props) in self.SMART_FOLDERS.items() + } for folder in self._fetch_folders(): # FIXME: Handle subfolders @@ -202,20 +193,23 @@ def albums(self): } }] - album = PhotoAlbum(self, folder_name, + album = PhotoAlbum(self.service, folder_name, 'CPLContainerRelationLiveByAssetDate', - folder_obj_type, 'ASCENDING', query_filter) + folder_obj_type, 'ASCENDING', query_filter, + zone_id=self.zone_id) self._albums[folder_name] = album return self._albums def _fetch_folders(self): url = ('%s/records/query?%s' % - (self._service_endpoint, urlencode(self.params))) - json_data = ('{"query":{"recordType":"CPLAlbumByPositionLive"},' - '"zoneID":{"zoneName":"PrimarySync"}}') + (self.service._service_endpoint, urlencode(self.service.params))) + json_data = json.dumps({ + "query": {"recordType":"CPLAlbumByPositionLive"}, + "zoneID": self.zone_id, + }) - request = self.session.post( + request = self.service.session.post( url, data=json_data, headers={'Content-type': 'text/plain'} @@ -229,10 +223,73 @@ def all(self): return self.albums['All Photos'] +class PhotosService(PhotoLibrary): + """The 'Photos' iCloud service. + + This also acts as a way to access the user's primary library. + """ + def __init__(self, service_root, session, params): + self.session = session + self.params = dict(params) + self._service_root = service_root + self._service_endpoint = \ + ('%s/database/1/com.apple.photos.cloud/production/private' + % self._service_root) + + self._libraries = None + + self.params.update({ + 'remapEnums': True, + 'getCurrentSyncToken': True + }) + + # TODO: Does syncToken ever change? + # self.params.update({ + # 'syncToken': response['syncToken'], + # 'clientInstanceId': self.params.pop('clientId') + # }) + + self._photo_assets = {} + + super(PhotosService, self).__init__( + service=self, zone_id={u'zoneName': u'PrimarySync'}) + + @property + def libraries(self): + if not self._libraries: + try: + url = ('%s/changes/database' % + (self._service_endpoint, )) + request = self.session.post( + url, + data='{}', + headers={'Content-type': 'text/plain'} + ) + response = request.json() + zones = response['zones'] + except Exception as e: + logger.error("library exception: %s" % str(e)) + + libraries = {} + for zone in zones: + if not zone.get('deleted'): + zone_name = zone['zoneID']['zoneName'] + libraries[zone_name] = PhotoLibrary( + self, zone_id=zone['zoneID']) + # obj_type='CPLAssetByAssetDateWithoutHiddenOrDeleted', + # list_type="CPLAssetAndMasterByAssetDateWithoutHiddenOrDeleted", + # direction="ASCENDING", query_filter=None, + # zone_id=zone['zoneID']) + + self._libraries = libraries + + return self._libraries + + class PhotoAlbum(object): def __init__(self, service, name, list_type, obj_type, direction, - query_filter=None, page_size=100): + query_filter=None, page_size=100, zone_id=None): self.name = name self.service = service self.list_type = list_type @@ -240,10 +297,14 @@ def __init__(self, service, name, list_type, obj_type, direction, self.direction = direction self.query_filter = query_filter self.page_size = page_size - self.exception_handler = None self._len = None + if zone_id: + self._zone_id = zone_id + else: + self._zone_id = {u'zoneName': u'PrimarySync'} + @property def title(self): return self.name @@ -281,6 +342,7 @@ def photos_request(self, offset): headers={'Content-type': 'text/plain'} ) + @property def photos(self): if self.direction == "DESCENDING": @@ -304,6 +366,17 @@ def photos(self): raise exception_retries = 0 + +# url = ('%s/records/query?' % self.service._service_endpoint) + \ +# urlencode(self.service.params) +# request = self.service.session.post( +# url, +# data=json.dumps(self._list_query_gen( +# offset, self.list_type, self.direction, +# self.query_filter)), +# headers={'Content-type': 'text/plain'} +# ) + response = request.json() asset_records = {} @@ -348,9 +421,7 @@ def _count_query_gen(self, obj_type): u'recordType': u'HyperionIndexCountLookup' }, u'zoneWide': True, - u'zoneID': { - u'zoneName': u'PrimarySync' - } + u'zoneID': self._zone_id }] } @@ -411,7 +482,7 @@ def _list_query_gen(self, offset, list_type, direction, query_filter=None): u'vidComplVisibilityState', u'customRenderedValue', u'containerId', u'itemId', u'position', u'isKeyAsset' ], - u'zoneID': {u'zoneName': u'PrimarySync'} + u'zoneID': self._zone_id } if query_filter: @@ -427,7 +498,7 @@ def __str__(self): if sys.version_info[0] >= 3: return as_unicode else: - return as_unicode.encode('utf-8', 'ignore') + return as_unicode.encode('ascii', 'ignore') def __repr__(self): return "<%s: '%s'>" % ( diff --git a/tests/test_autodelete_photos.py b/tests/test_autodelete_photos.py index 09354c0d9..93dee6bde 100644 --- a/tests/test_autodelete_photos.py +++ b/tests/test_autodelete_photos.py @@ -68,7 +68,8 @@ def astimezone(self, tz=None): self.assertIn( "DEBUG Looking up all photos and videos from album All Photos...", self._caplog.text) self.assertIn( - f"INFO Downloading the first original photo or video to {base_dir} ...", +# f"INFO Downloading the first original photo or video to {base_dir} ...", + f"INFO Downloading the first original photo or video", self._caplog.text, ) self.assertIn( @@ -162,7 +163,8 @@ def test_download_autodelete_photos(self): self.assertIn( "DEBUG Looking up all photos and videos from album All Photos...", self._caplog.text) self.assertIn( - f"INFO Downloading the first original photo or video to {base_dir} ...", +# f"INFO Downloading the first original photo or video to {base_dir} ...", + f"INFO Downloading the first original photo or video", self._caplog.text, ) self.assertIn( diff --git a/tests/test_download_photos.py b/tests/test_download_photos.py index c477f4d14..16d7fa79f 100644 --- a/tests/test_download_photos.py +++ b/tests/test_download_photos.py @@ -11,7 +11,7 @@ import piexif from piexif._exceptions import InvalidImageDataError from icloudpd import constants -from pyicloud_ipd.services.photos import PhotoAsset, PhotoAlbum, PhotosService +from pyicloud_ipd.services.photos import PhotoAsset, PhotoAlbum, PhotoLibrary from pyicloud_ipd.base import PyiCloudService from pyicloud_ipd.exceptions import PyiCloudAPIResponseError from requests.exceptions import ConnectionError @@ -750,7 +750,7 @@ def test_handle_albums_error(self): def mock_raise_response_error(): raise PyiCloudAPIResponseError("Api Error", 100) - with mock.patch.object(PhotosService, "_fetch_folders") as pa_photos_request: + with mock.patch.object(PhotoLibrary, "_fetch_folders") as pa_photos_request: pa_photos_request.side_effect = mock_raise_response_error # Let the initial authenticate() call succeed, diff --git a/tests/test_listing_libraries.py b/tests/test_listing_libraries.py new file mode 100644 index 000000000..de9bc9764 --- /dev/null +++ b/tests/test_listing_libraries.py @@ -0,0 +1,87 @@ +from unittest import TestCase +import pytest +from vcr import VCR +import os +import shutil +import click +from click.testing import CliRunner +import json +import mock +from icloudpd.base import main +from tests.helpers import path_from_project_root, print_result_exception, recreate_path +import inspect +import glob + +vcr = VCR(decode_compressed_response=True) + +class ListingLibraryTestCase(TestCase): + + @pytest.fixture(autouse=True) + def inject_fixtures(self, caplog): + self._caplog = caplog + self.root_path = path_from_project_root(__file__) + self.fixtures_path = os.path.join(self.root_path, "fixtures") + self.vcr_path = os.path.join(self.root_path, "vcr_cassettes") + + def test_listing_library(self): + base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3]) + recreate_path(base_dir) + + with vcr.use_cassette(os.path.join(self.vcr_path, "listing_albums.yml")): + # Pass fixed client ID via environment variable + runner = CliRunner(env={ + "CLIENT_ID": "DE309E26-942E-11E8-92F5-14109FE0B321" + }) + result = runner.invoke( + main, + [ + "--username", + "jdoe@gmail.com", + "--password", + "password1", + "--list-libraries", + "--no-progress-bar" + ], + ) + + print_result_exception(result) + albums = result.output.splitlines() + + self.assertIn("PrimarySync", albums) +# self.assertIn("WhatsApp", albums) + + assert result.exit_code == 0 + + def test_listing_library_error(self): + base_dir = os.path.join(self.fixtures_path, inspect.stack()[0][3]) + recreate_path(base_dir) + + with vcr.use_cassette(os.path.join(self.vcr_path, "listing_albums.yml")): + # Pass fixed client ID via environment variable + runner = CliRunner(env={ + "CLIENT_ID": "DE309E26-942E-11E8-92F5-14109FE0B321" + }) + result = runner.invoke( + main, + [ + "--username", + "jdoe@gmail.com", + "--password", + "password1", + "--library", + "doesnotexist", + "--no-progress-bar", + "-d", + base_dir + ], + ) + + print_result_exception(result) + + self.assertIn( + "ERROR Unknown library: doesnotexist", + self._caplog.text, + ) + + + assert result.exit_code == 1 diff --git a/tests/vcr_cassettes/2sa_flow_valid_device.yml b/tests/vcr_cassettes/2sa_flow_valid_device.yml index 0c0f2993f..705e9fe34 100644 --- a/tests/vcr_cassettes/2sa_flow_valid_device.yml +++ b/tests/vcr_cassettes/2sa_flow_valid_device.yml @@ -179,7 +179,116 @@ interactions: via: ['xrail:nk11p00ic-ztdj02084001.me.com:8301:18H44:grp31', 'icloudedge:si03p00ic-zteu070523:7401:18RC341:Singapore'] status: {code: 200, message: OK} - request: - body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}, "ownerRecordName": "_bfc6dbbcc77b03e6cebefd28a28f7e2f", "zoneType": + "REGULAR_CUSTOM_ZONE"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_10829b61-3a3e-442f-ac2e-b045ac3776dc\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533031213686,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533031213686,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 10:00:13 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [5d3e3e67-e078-40dd-9d7f-e10e797f065d] + X-Responding-Instance: ['ckdatabasews:21002201:nk11p10me-ztbu40074101:8201:1813B216:nocommit'] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj02084001.me.com:8301:18H44:grp31', 'icloudedge:si03p00ic-zteu070523:7401:18RC341:Singapore'] + status: {code: 200, message: OK} +- request: + body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync", "ownerRecordName": "_bfc6dbbcc77b03e6cebefd28a28f7e2f", "zoneType": + "REGULAR_CUSTOM_ZONE"}}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -775,9 +884,10 @@ interactions: status: {code: 200, message: OK} - request: body: '{"batch": [{"resultsLimit": 1, "query": {"filterBy": {"fieldName": "indexCountID", - "fieldValue": {"type": "STRING_LIST", "value": ["CPLAssetByAddedDate"]}, "comparator": + "fieldValue": {"type": "STRING_LIST", "value": ["CPLAssetByAssetDateWithoutHiddenOrDeleted"]}, "comparator": "IN"}, "recordType": "HyperionIndexCountLookup"}, "zoneWide": true, "zoneID": - {"zoneName": "PrimarySync"}}]}' + {"zoneName": "PrimarySync", "ownerRecordName": "_bfc6dbbcc77b03e6cebefd28a28f7e2f", + "zoneType": "REGULAR_CUSTOM_ZONE"}}]}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -791,7 +901,7 @@ interactions: uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/internal/records/query/batch?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: body: {string: "{\n \"batch\" : [ {\n \"records\" : [ {\n \"recordName\" - : \"CPLAssetByAddedDate\",\n \"recordType\" : \"IndexCountResult\",\n + : \"CPLAssetByAssetDateWithoutHiddenOrDeleted\",\n \"recordType\" : \"IndexCountResult\",\n \ \"fields\" : {\n \"itemCount\" : {\n \"value\" : 33161,\n \ \"type\" : \"INT64\"\n }\n },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" : {\n \"timestamp\" diff --git a/tests/vcr_cassettes/2sa_flow_valid_sms.yml b/tests/vcr_cassettes/2sa_flow_valid_sms.yml index 24d23f224..c90de54af 100644 --- a/tests/vcr_cassettes/2sa_flow_valid_sms.yml +++ b/tests/vcr_cassettes/2sa_flow_valid_sms.yml @@ -169,6 +169,114 @@ interactions: content-length: ['4872'] via: ['icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_e53446cf-3885-4cd3-8f12-648289d79769\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533038368535,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533038368535,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 11:59:28 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [9ca52f84-cef3-4818-8beb-9ad71d062730] + X-Responding-Instance: ['ckdatabasews:21002602:nk11p10me-ztbu40074301:8202:1813B216:nocommit'] + access-control-expose-headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj17111701.me.com:8301:18H44:grp31', 'icloudedge:si03p00ic-zteu070515:7401:18RC341:Singapore'] + status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: diff --git a/tests/vcr_cassettes/autodelete_photos.yml b/tests/vcr_cassettes/autodelete_photos.yml index 60f8f6110..9b6e1094f 100644 --- a/tests/vcr_cassettes/autodelete_photos.yml +++ b/tests/vcr_cassettes/autodelete_photos.yml @@ -3,79 +3,269 @@ interactions: body: '{"apple_id": "jdoe@gmail.com", "password": "password1", "extended_login": false}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['88'] - Cookie: ['X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; - X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '88' + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://setup.icloud.com/setup/ws/1/login?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321 response: - body: {string: '{"dsInfo":{"lastName":"Broadbent","iCDPEnabled":false,"dsid":"185776146","hsaEnabled":true,"ironcadeMigrated":true,"locale":"en-us_US","brZoneConsolidated":false,"isManagedAppleID":false,"gilligan-invited":"true","appleIdAliases":["ndbroadbent@icloud.com"],"hsaVersion":2,"isPaidDeveloper":true,"countryCode":"USA","notificationId":"7f3b9694-5f5b-47cc-baa1-2887d1c3cb6a","primaryEmailVerified":true,"aDsID":"001640-05-8c09a45f-3769-4206-a0c2-d88f3b815680","locked":false,"hasICloudQualifyingDevice":true,"primaryEmail":"jdoe@gmail.com","appleIdEntries":[{"isPrimary":true,"type":"EMAIL","value":"jdoe@gmail.com"}],"gilligan-enabled":"true","fullName":"Nathan - Broadbent","languageCode":"en-us","appleId":"jdoe@gmail.com","firstName":"Nathan","iCloudAppleIdAlias":"ndbroadbent@icloud.com","notesMigrated":true,"hasPaymentInfo":false,"pcsDeleted":false,"appleIdAlias":"","brMigrated":true,"statusCode":2},"hasMinimumDeviceForPhotosWeb":true,"iCDPEnabled":false,"webservices":{"reminders":{"url":"https://p10-remindersws.icloud.com:443","status":"active"},"notes":{"url":"https://p10-notesws.icloud.com:443","status":"active"},"mail":{"url":"https://p10-mailws.icloud.com:443","status":"active"},"ckdatabasews":{"pcsRequired":true,"url":"https://p10-ckdatabasews.icloud.com:443","status":"active"},"photosupload":{"pcsRequired":true,"url":"https://p10-uploadphotosws.icloud.com:443","status":"active"},"photos":{"pcsRequired":true,"uploadUrl":"https://p10-uploadphotosws.icloud.com:443","url":"https://p10-photosws.icloud.com:443","status":"active"},"drivews":{"pcsRequired":true,"url":"https://p10-drivews.icloud.com:443","status":"active"},"uploadimagews":{"url":"https://p10-uploadimagews.icloud.com:443","status":"active"},"schoolwork":{},"cksharews":{"url":"https://p10-ckshare.icloud.com:443","status":"active"},"findme":{"url":"https://p10-fmipweb.icloud.com:443","status":"active"},"ckdeviceservice":{"url":"https://p10-ckdevice.icloud.com:443"},"iworkthumbnailws":{"url":"https://p10-iworkthumbnailws.icloud.com:443","status":"active"},"calendar":{"url":"https://p10-calendarws.icloud.com:443","status":"active"},"docws":{"pcsRequired":true,"url":"https://p10-docws.icloud.com:443","status":"active"},"settings":{"url":"https://p10-settingsws.icloud.com:443","status":"active"},"ubiquity":{"url":"https://p10-ubiquityws.icloud.com:443","status":"active"},"streams":{"url":"https://p10-streams.icloud.com:443","status":"active"},"keyvalue":{"url":"https://p10-keyvalueservice.icloud.com:443","status":"active"},"archivews":{"url":"https://p10-archivews.icloud.com:443","status":"active"},"push":{"url":"https://p10-pushws.icloud.com:443","status":"active"},"iwmb":{"url":"https://p10-iwmb.icloud.com:443","status":"active"},"iworkexportws":{"url":"https://p10-iworkexportws.icloud.com:443","status":"active"},"geows":{"url":"https://p10-geows.icloud.com:443","status":"active"},"account":{"iCloudEnv":{"shortId":"p","vipSuffix":"p"},"url":"https://p10-setup.icloud.com:443","status":"active"},"fmf":{"url":"https://p10-fmfweb.icloud.com:443","status":"active"},"contacts":{"url":"https://p10-contactsws.icloud.com:443","status":"active"}},"pcsEnabled":true,"configBag":{"urls":{"accountCreateUI":"https://appleid.apple.com/widget/account/?widgetKey=d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d#!create","accountLoginUI":"https://idmsa.apple.com/appleauth/auth/signin?widgetKey=83545bf919730e51dbfba24e7e8a78d2","accountLogin":"https://setup.icloud.com/setup/ws/1/accountLogin","accountRepairUI":"https://appleid.apple.com/widget/account/?widgetKey=d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d#!repair","downloadICloudTerms":"https://setup.icloud.com/setup/ws/1/downloadLiteTerms","repairDone":"https://setup.icloud.com/setup/ws/1/repairDone","vettingUrlForEmail":"https://id.apple.com/IDMSEmailVetting/vetShareEmail","accountCreate":"https://setup.icloud.com/setup/ws/1/createLiteAccount","getICloudTerms":"https://setup.icloud.com/setup/ws/1/getTerms","vettingUrlForPhone":"https://id.apple.com/IDMSEmailVetting/vetSharePhone"},"accountCreateEnabled":"true"},"hsaTrustedBrowser":true,"appsOrder":["mail","contacts","calendar","photos","iclouddrive","notes2","reminders","pages","numbers","keynote","newspublisher","fmf","find","settings"],"version":2,"isExtendedLogin":false,"pcsServiceIdentitiesIncluded":true,"hsaChallengeRequired":false,"requestInfo":{"country":"TH","timeZone":"GMT+7"},"pcsDeleted":false,"iCloudInfo":{"SafariBookmarksHasMigratedToCloudKit":false},"apps":{"calendar":{},"reminders":{},"keynote":{"isQualifiedForBeta":true},"settings":{"canLaunchWithOneFactor":true},"mail":{},"numbers":{"isQualifiedForBeta":true},"photos":{},"pages":{"isQualifiedForBeta":true},"find":{"canLaunchWithOneFactor":true},"notes2":{},"iclouddrive":{},"newspublisher":{"isHidden":true},"fmf":{},"contacts":{}}}'} + body: + string: '{"dsInfo":{"lastName":"Broadbent","iCDPEnabled":false,"dsid":"185776146","hsaEnabled":true,"ironcadeMigrated":true,"locale":"en-us_US","brZoneConsolidated":false,"isManagedAppleID":false,"gilligan-invited":"true","appleIdAliases":["ndbroadbent@icloud.com"],"hsaVersion":2,"isPaidDeveloper":true,"countryCode":"USA","notificationId":"7f3b9694-5f5b-47cc-baa1-2887d1c3cb6a","primaryEmailVerified":true,"aDsID":"001640-05-8c09a45f-3769-4206-a0c2-d88f3b815680","locked":false,"hasICloudQualifyingDevice":true,"primaryEmail":"jdoe@gmail.com","appleIdEntries":[{"isPrimary":true,"type":"EMAIL","value":"jdoe@gmail.com"}],"gilligan-enabled":"true","fullName":"Nathan + Broadbent","languageCode":"en-us","appleId":"jdoe@gmail.com","firstName":"Nathan","iCloudAppleIdAlias":"ndbroadbent@icloud.com","notesMigrated":true,"hasPaymentInfo":false,"pcsDeleted":false,"appleIdAlias":"","brMigrated":true,"statusCode":2},"hasMinimumDeviceForPhotosWeb":true,"iCDPEnabled":false,"webservices":{"reminders":{"url":"https://p10-remindersws.icloud.com:443","status":"active"},"notes":{"url":"https://p10-notesws.icloud.com:443","status":"active"},"mail":{"url":"https://p10-mailws.icloud.com:443","status":"active"},"ckdatabasews":{"pcsRequired":true,"url":"https://p10-ckdatabasews.icloud.com:443","status":"active"},"photosupload":{"pcsRequired":true,"url":"https://p10-uploadphotosws.icloud.com:443","status":"active"},"photos":{"pcsRequired":true,"uploadUrl":"https://p10-uploadphotosws.icloud.com:443","url":"https://p10-photosws.icloud.com:443","status":"active"},"drivews":{"pcsRequired":true,"url":"https://p10-drivews.icloud.com:443","status":"active"},"uploadimagews":{"url":"https://p10-uploadimagews.icloud.com:443","status":"active"},"schoolwork":{},"cksharews":{"url":"https://p10-ckshare.icloud.com:443","status":"active"},"findme":{"url":"https://p10-fmipweb.icloud.com:443","status":"active"},"ckdeviceservice":{"url":"https://p10-ckdevice.icloud.com:443"},"iworkthumbnailws":{"url":"https://p10-iworkthumbnailws.icloud.com:443","status":"active"},"calendar":{"url":"https://p10-calendarws.icloud.com:443","status":"active"},"docws":{"pcsRequired":true,"url":"https://p10-docws.icloud.com:443","status":"active"},"settings":{"url":"https://p10-settingsws.icloud.com:443","status":"active"},"ubiquity":{"url":"https://p10-ubiquityws.icloud.com:443","status":"active"},"streams":{"url":"https://p10-streams.icloud.com:443","status":"active"},"keyvalue":{"url":"https://p10-keyvalueservice.icloud.com:443","status":"active"},"archivews":{"url":"https://p10-archivews.icloud.com:443","status":"active"},"push":{"url":"https://p10-pushws.icloud.com:443","status":"active"},"iwmb":{"url":"https://p10-iwmb.icloud.com:443","status":"active"},"iworkexportws":{"url":"https://p10-iworkexportws.icloud.com:443","status":"active"},"geows":{"url":"https://p10-geows.icloud.com:443","status":"active"},"account":{"iCloudEnv":{"shortId":"p","vipSuffix":"p"},"url":"https://p10-setup.icloud.com:443","status":"active"},"fmf":{"url":"https://p10-fmfweb.icloud.com:443","status":"active"},"contacts":{"url":"https://p10-contactsws.icloud.com:443","status":"active"}},"pcsEnabled":true,"configBag":{"urls":{"accountCreateUI":"https://appleid.apple.com/widget/account/?widgetKey=d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d#!create","accountLoginUI":"https://idmsa.apple.com/appleauth/auth/signin?widgetKey=83545bf919730e51dbfba24e7e8a78d2","accountLogin":"https://setup.icloud.com/setup/ws/1/accountLogin","accountRepairUI":"https://appleid.apple.com/widget/account/?widgetKey=d39ba9916b7251055b22c7f910e2ea796ee65e98b2ddecea8f5dde8d9d1a815d#!repair","downloadICloudTerms":"https://setup.icloud.com/setup/ws/1/downloadLiteTerms","repairDone":"https://setup.icloud.com/setup/ws/1/repairDone","vettingUrlForEmail":"https://id.apple.com/IDMSEmailVetting/vetShareEmail","accountCreate":"https://setup.icloud.com/setup/ws/1/createLiteAccount","getICloudTerms":"https://setup.icloud.com/setup/ws/1/getTerms","vettingUrlForPhone":"https://id.apple.com/IDMSEmailVetting/vetSharePhone"},"accountCreateEnabled":"true"},"hsaTrustedBrowser":true,"appsOrder":["mail","contacts","calendar","photos","iclouddrive","notes2","reminders","pages","numbers","keynote","newspublisher","fmf","find","settings"],"version":2,"isExtendedLogin":false,"pcsServiceIdentitiesIncluded":true,"hsaChallengeRequired":false,"requestInfo":{"country":"TH","timeZone":"GMT+7"},"pcsDeleted":false,"iCloudInfo":{"SafariBookmarksHasMigratedToCloudKit":false},"apps":{"calendar":{},"reminders":{},"keynote":{"isQualifiedForBeta":true},"settings":{"canLaunchWithOneFactor":true},"mail":{},"numbers":{"isQualifiedForBeta":true},"photos":{},"pages":{"isQualifiedForBeta":true},"find":{"canLaunchWithOneFactor":true},"notes2":{},"iclouddrive":{},"newspublisher":{"isHidden":true},"fmf":{},"contacts":{}}}' headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Apple-Originating-System: [UnknownOriginatingSystem] - Cache-Control: ['no-cache, no-store, private'] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:29:52 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: [X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn+DxfQYVkwS4N9KSWo9wQz3FWFkhOsYhtozsSvmSzd7PIGBI28hdy+30alZ0AUg7l+WA+D+9KhtpVipJ7GtvAoYPrx7124rxYjRftdasTAPNOrWNCHxqZy75xdc47rq77SmFwFIMnv1U7bBTNy265B0hNRUv09mpWG/d9C0J6jEQlLvg==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Photos="TGlzdEFwcGw6MTpBcHBsOjE6AWQ4bYjEWsYHXMYLrWBIRmfrJwMzkLQBWuSjtiEIui2kPjTF2/B1F9q4yFFChr7jypvFPDUyu3XH5JHlsdF/a28XG7+ZepGlRTohsm3H+at7wEF1F8Tu/yBqWWZYrwCRVLwkKrOr2F7btMReNdv1TUxcRg1FP2jUG2x6/IZXyCX/Tb6nsf7nNg==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Safari="TGlzdEFwcGw6MTpBcHBsOjE6ASCZ+eIlHLwatjVRxaNVwjlvf2MYzsovmXIFRP0tttrPHaOIorHKT8O9B/qCbjooOF1Pt2kzHvqTVQ0g6GKARkun3jr0PUagg92+FvCYaQbcIwiNbkuaiz81tZBPuUbhOZO8DW2mVh2zZpZAyx2Xjf7ILX6+5BFZ3/orOUZxBqML8IRtwwHJPQ==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Mail="TGlzdEFwcGw6MTpBcHBsOjE6AWsK+EYkcW5oCncaZt7mWIyznpVvILbzwn2hjZGRXNVYALDgK/nbNLghifgSy5O8GjUJJdkt0P3j8PKXSMzJVa55N73DAdTxKkrR6l/lcC0O8mjdQ8vV0UDrXrf9HGfK2LxPHpCWHW2PfdT8LUYe2wLnNeV14aB3tyUwziedkrUeGoIw5Pvi4w==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Notes="TGlzdEFwcGw6MTpBcHBsOjE6AWan2dQt9tfWTC5I5fQOonqhGhamG+2LlwEaBwBZkZ1c2/KLfwBNNNOex8HPCAU/6QolXDmr0RjuxoUpXOV4M44SWk7x3y5VWOGUqXZRQC73dfYWlDeL7asORptevFBP0pjKNWTEsrydCJxgOFV/3zMmP2ttB0JMmgwgp/4GGbxZFFzNHKhlwA==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-News="TGlzdEFwcGw6MTpBcHBsOjE6AXWNsktajaYk/c4UbCAgakYtIfi3Qmt+vw4S7OA8RN24MSTDVchF2OwxXEEU7icP3nT9BnP5PaN/+ydABhh3fi80wSRjflsR2jvkPdErd+xI4KfAOmODK/XXlHjY1OlLwznJvwTqKtZ3xmjyuPWmc529eELcX7t9UnHiJ4UVzhDLIr+yWJQ+Ng==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - X-APPLE-WEBAUTH-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AYHVmzu2tyRHllqyh3u29IcXm+KFVtz8uYvdhCEiN7Ytdmpv0tX49lugS1T9DR5LkPT6+1Mh9iHqA2yH7KEkjZxZqse5CaW/5pLX9ZZqR+cD8AE8sGEzCgNMQaxg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A==";Path=/;Domain=.icloud.com;Secure;HttpOnly, - 'X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly', - 'X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~";Path=/;Domain=.icloud.com;Secure', - 'X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp7MjXSx4EjN0p_L5DxpOjCsGjbXnBqj7B0nziu-AUrqRgrqURQ~~";Path=/;Domain=.icloud.com;Secure;HttpOnly', - 'X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - X-Apple-Jingle-Correlation-Key: [P45ZNFC7LND4ZOVBFCD5DQ6LNI] - X-Apple-Request-UUID: [7f3b9694-5f5b-47cc-baa1-2887d1c3cb6a] - X-Responding-Instance: ['setupservice:44500303:pv37p45ic-tydg10112001:8003:1813B80:3b85e7d76'] - access-control-expose-headers: [X-Apple-Request-UUID, Via] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['4872'] - via: ['icloudedge:si03p00ic-ztde010303:7401:18RC341:Singapore'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Cache-Control: + - no-cache, no-store, private + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:29:52 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn+DxfQYVkwS4N9KSWo9wQz3FWFkhOsYhtozsSvmSzd7PIGBI28hdy+30alZ0AUg7l+WA+D+9KhtpVipJ7GtvAoYPrx7124rxYjRftdasTAPNOrWNCHxqZy75xdc47rq77SmFwFIMnv1U7bBTNy265B0hNRUv09mpWG/d9C0J6jEQlLvg==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Photos="TGlzdEFwcGw6MTpBcHBsOjE6AWQ4bYjEWsYHXMYLrWBIRmfrJwMzkLQBWuSjtiEIui2kPjTF2/B1F9q4yFFChr7jypvFPDUyu3XH5JHlsdF/a28XG7+ZepGlRTohsm3H+at7wEF1F8Tu/yBqWWZYrwCRVLwkKrOr2F7btMReNdv1TUxcRg1FP2jUG2x6/IZXyCX/Tb6nsf7nNg==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Safari="TGlzdEFwcGw6MTpBcHBsOjE6ASCZ+eIlHLwatjVRxaNVwjlvf2MYzsovmXIFRP0tttrPHaOIorHKT8O9B/qCbjooOF1Pt2kzHvqTVQ0g6GKARkun3jr0PUagg92+FvCYaQbcIwiNbkuaiz81tZBPuUbhOZO8DW2mVh2zZpZAyx2Xjf7ILX6+5BFZ3/orOUZxBqML8IRtwwHJPQ==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Mail="TGlzdEFwcGw6MTpBcHBsOjE6AWsK+EYkcW5oCncaZt7mWIyznpVvILbzwn2hjZGRXNVYALDgK/nbNLghifgSy5O8GjUJJdkt0P3j8PKXSMzJVa55N73DAdTxKkrR6l/lcC0O8mjdQ8vV0UDrXrf9HGfK2LxPHpCWHW2PfdT8LUYe2wLnNeV14aB3tyUwziedkrUeGoIw5Pvi4w==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Notes="TGlzdEFwcGw6MTpBcHBsOjE6AWan2dQt9tfWTC5I5fQOonqhGhamG+2LlwEaBwBZkZ1c2/KLfwBNNNOex8HPCAU/6QolXDmr0RjuxoUpXOV4M44SWk7x3y5VWOGUqXZRQC73dfYWlDeL7asORptevFBP0pjKNWTEsrydCJxgOFV/3zMmP2ttB0JMmgwgp/4GGbxZFFzNHKhlwA==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-News="TGlzdEFwcGw6MTpBcHBsOjE6AXWNsktajaYk/c4UbCAgakYtIfi3Qmt+vw4S7OA8RN24MSTDVchF2OwxXEEU7icP3nT9BnP5PaN/+ydABhh3fi80wSRjflsR2jvkPdErd+xI4KfAOmODK/XXlHjY1OlLwznJvwTqKtZ3xmjyuPWmc529eELcX7t9UnHiJ4UVzhDLIr+yWJQ+Ng==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AYHVmzu2tyRHllqyh3u29IcXm+KFVtz8uYvdhCEiN7Ytdmpv0tX49lugS1T9DR5LkPT6+1Mh9iHqA2yH7KEkjZxZqse5CaW/5pLX9ZZqR+cD8AE8sGEzCgNMQaxg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A==";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~";Path=/;Domain=.icloud.com;Secure + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp7MjXSx4EjN0p_L5DxpOjCsGjbXnBqj7B0nziu-AUrqRgrqURQ~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Apple-Jingle-Correlation-Key: + - P45ZNFC7LND4ZOVBFCD5DQ6LNI + X-Apple-Request-UUID: + - 7f3b9694-5f5b-47cc-baa1-2887d1c3cb6a + X-Responding-Instance: + - setupservice:44500303:pv37p45ic-tydg10112001:8003:1813B80:3b85e7d76 + access-control-expose-headers: + - X-Apple-Request-UUID + - Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '4872' + via: + - icloudedge:si03p00ic-ztde010303:7401:18RC341:Singapore + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAU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H-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AYHVmzu2tyRHllqyh3u29IcXm+KFVtz8uYvdhCEiN7Ytdmpv0tX49lugS1T9DR5LkPT6+1Mh9iHqA2yH7KEkjZxZqse5CaW/5pLX9ZZqR+cD8AE8sGEzCgNMQaxg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp7MjXSx4EjN0p_L5DxpOjCsGjbXnBqj7B0nziu-AUrqRgrqURQ~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_fe308b25-76d6-4760-b583-5280f5726844\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533068993436,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533068993436,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:29:53 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Via: + - xrail:nk11p00ic-ztdj17111601.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - e7963a5e-1a37-4732-8e46-914cddd30bb7 + X-Responding-Instance: + - ckdatabasews:21003601:nk11p10me-ztbu22071801:8201:1813B216:nocommit + access-control-expose-headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '804' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['81'] - Content-type: [text/plain] - Cookie: ['X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; - X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae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r8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; - X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; + X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyA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s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: - body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_fe308b25-76d6-4760-b583-5280f5726844\",\n + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_fe308b25-76d6-4760-b583-5280f5726844\",\n \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n @@ -85,55 +275,85 @@ interactions: : 1533068993436,\n \"userRecordName\" : \"_10\",\n \"deviceID\" : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n - \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}" headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Apple-Originating-System: [UnknownOriginatingSystem] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:29:53 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: ['X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains;] - Via: ['xrail:nk11p00ic-ztdj17111601.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore'] - X-Apple-CloudKit-Version: ['1.0'] - X-Apple-Request-UUID: [e7963a5e-1a37-4732-8e46-914cddd30bb7] - X-Responding-Instance: ['ckdatabasews:21003601:nk11p10me-ztbu22071801:8201:1813B216:nocommit'] - access-control-expose-headers: ['X-Apple-Request-UUID, X-Responding-Instance', - Via] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['804'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:29:53 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Via: + - xrail:nk11p00ic-ztdj17111601.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - e7963a5e-1a37-4732-8e46-914cddd30bb7 + X-Responding-Instance: + - ckdatabasews:21003601:nk11p10me-ztbu22071801:8201:1813B216:nocommit + access-control-expose-headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '804' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['85'] - Content-type: [text/plain] - Cookie: ['X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj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WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~"; - X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; - X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '85' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6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xg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: - body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"----Root-Folder----\",\n + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"----Root-Folder----\",\n \ \"recordType\" : \"CPLAlbum\",\n \"fields\" : {\n \"recordModificationDate\" : {\n \"value\" : 1502811072713,\n \"type\" : \"TIMESTAMP\"\n \ },\n \"sortAscending\" : {\n \"value\" : 1,\n \"type\" @@ -693,89 +913,138 @@ interactions: : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"deviceID\" : \"9DD832CBD916B81F61073DFC925ADA027CFA1477B567B104010F1107DFEC1367\"\n \ },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n - \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}" headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Apple-Originating-System: [UnknownOriginatingSystem] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:29:54 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: ['X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAgzr0VRc5N9Zz6KpDe-LFoNmooJeoxHRzbEEt9B1MKkzUNtzrfg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains;] - Via: ['xrail:nk11p00ic-ztdj17111501.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore'] - X-Apple-CloudKit-Version: ['1.0'] - X-Apple-Request-UUID: [3c06a7f4-057a-4794-913b-fbec8adb7559] - X-Responding-Instance: ['ckdatabasews:21002202:nk11p10me-ztbu40074101:8202:1813B216:nocommit'] - access-control-expose-headers: ['X-Apple-Request-UUID, X-Responding-Instance', - Via] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['43952'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:29:54 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAgzr0VRc5N9Zz6KpDe-LFoNmooJeoxHRzbEEt9B1MKkzUNtzrfg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Via: + - xrail:nk11p00ic-ztdj17111501.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - 3c06a7f4-057a-4794-913b-fbec8adb7559 + X-Responding-Instance: + - ckdatabasews:21002202:nk11p10me-ztbu40074101:8202:1813B216:nocommit + access-control-expose-headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '43952' + status: + code: 200 + message: OK - request: body: '{"batch": [{"resultsLimit": 1, "query": {"filterBy": {"fieldName": "indexCountID", "fieldValue": {"type": "STRING_LIST", "value": ["CPLAssetByAddedDate"]}, "comparator": "IN"}, "recordType": "HyperionIndexCountLookup"}, "zoneWide": true, "zoneID": {"zoneName": "PrimarySync"}}]}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['278'] - Content-type: [text/plain] - Cookie: ['X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; - X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ=="; - X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn+DxfQYVkwS4N9KSWo9wQz3FWFkhOsYhtozsSvmSzd7PIGBI28hdy+30alZ0AUg7l+WA+D+9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iz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '278' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; + X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ=="; + X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn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LwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/internal/records/query/batch?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: - body: {string: "{\n \"batch\" : [ {\n \"records\" : [ {\n \"recordName\" - : \"CPLAssetByAddedDate\",\n \"recordType\" : \"IndexCountResult\",\n - \ \"fields\" : {\n \"itemCount\" : {\n \"value\" : 33161,\n - \ \"type\" : \"INT64\"\n }\n },\n \"pluginFields\" - : { },\n \"recordChangeTag\" : \"0\",\n \"created\" : {\n \"timestamp\" - : 1533068994667,\n \"userRecordName\" : \"_10\",\n \"deviceID\" - : \"1\"\n },\n \"modified\" : {\n \"timestamp\" : 1533068994667,\n + body: + string: "{\n \"batch\" : [ {\n \"records\" : [ {\n \"recordName\" : + \"CPLAssetByAddedDate\",\n \"recordType\" : \"IndexCountResult\",\n \"fields\" + : {\n \"itemCount\" : {\n \"value\" : 33161,\n \"type\" + : \"INT64\"\n }\n },\n \"pluginFields\" : { },\n \"recordChangeTag\" + : \"0\",\n \"created\" : {\n \"timestamp\" : 1533068994667,\n \ \"userRecordName\" : \"_10\",\n \"deviceID\" : \"1\"\n },\n - \ \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n - \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n }\n - \ } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n - \ } ]\n}"} + \ \"modified\" : {\n \"timestamp\" : 1533068994667,\n \"userRecordName\" + : \"_10\",\n \"deviceID\" : \"1\"\n },\n \"deleted\" : false,\n + \ \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n \"ownerRecordName\" + : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n }\n } ],\n \"syncToken\" + : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n } ]\n}" headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Apple-Originating-System: [UnknownOriginatingSystem] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:29:54 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: ['X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsIRDmdzLmljbG91ZC5hdXRovQATO2B4z2VTRaTCfoPT3_QUyJR1VzJExvSBuTboezA7YnFjiIFJ3Sqcz1UX-RofcueNeifnW__1FSzDEjNeYOMdLupP3QLZBpOcKy61TNd328FO3zA5jlbNVYpFvQtRSFbr296VzdaxAshS4UMerwZVbzhqTA~~";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains;] - Via: ['xrail:nk11p00ic-ztdj02084501.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore'] - X-Apple-CloudKit-Version: ['1.0'] - X-Apple-Request-UUID: [50e218e1-4394-4bf9-900e-687549ab3fc4] - X-Responding-Instance: ['ckdatabasews:21000501:nk11p10me-ztbu05054001:8201:1813B216:nocommit'] - access-control-expose-headers: ['X-Apple-Request-UUID, X-Responding-Instance', - Via] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['782'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:29:54 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsIRDmdzLmljbG91ZC5hdXRovQATO2B4z2VTRaTCfoPT3_QUyJR1VzJExvSBuTboezA7YnFjiIFJ3Sqcz1UX-RofcueNeifnW__1FSzDEjNeYOMdLupP3QLZBpOcKy61TNd328FO3zA5jlbNVYpFvQtRSFbr296VzdaxAshS4UMerwZVbzhqTA~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Via: + - xrail:nk11p00ic-ztdj02084501.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070516:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - 50e218e1-4394-4bf9-900e-687549ab3fc4 + X-Responding-Instance: + - ckdatabasews:21000501:nk11p10me-ztbu05054001:8201:1813B216:nocommit + access-control-expose-headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '782' + status: + code: 200 + message: OK - request: body: '{"query": {"filterBy": [{"fieldName": "startRank", "fieldValue": {"type": "INT64", "value": 0}, "comparator": "EQUALS"}, {"fieldName": "direction", "fieldValue": @@ -805,31 +1074,41 @@ interactions: "vidComplDispScale", "vidComplVisibilityState", "customRenderedValue", "containerId", "itemId", "position", "isKeyAsset"], "zoneID": {"zoneName": "PrimarySync"}}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['2277'] - Content-type: [text/plain] - Cookie: ['X-APPLE-WEBAUT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-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AYHVmzu2tyRHllqyh3u29IcXm+KFVtz8uYvdhCEiN7Ytdmpv0tX49lugS1T9DR5LkPT6+1Mh9iHqA2yH7KEkjZxZqse5CaW/5pLX9ZZqR+cD8AE8sGEzCgNMQaxg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A=="; - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsIRDmdzLmljbG91ZC5hdXRovQATO2B4z2VTRaTCfoPT3_QUyJR1VzJExvSBuTboezA7YnFjiIFJ3Sqcz1UX-RofcueNeifnW__1FSzDEjNeYOMdLupP3QLZBpOcKy61TNd328FO3zA5jlbNVYpFvQtRSFbr296VzdaxAshS4UMerwZVbzhqTA~~"; - X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; - X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2277' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; + X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ=="; + X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn+DxfQYVkwS4N9KSWo9wQz3FWFkhOsYhtozsSvmSzd7PIGBI28hdy+30alZ0AUg7l+WA+D+9KhtpVipJ7GtvAoYPrx7124rxYjRftdasTAPNOrWNCHxqZy75xdc47rq77SmFwFIMnv1U7bBTNy265B0hNRUv09mpWG/d9C0J6jEQlLvg=="; + X-APPLE-WEBAUTH-PCS-Mail="TGlzdEFwcGw6MTpBcHBsOjE6AWsK+EYk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yx2Xjf7ILX6+5BFZ3/orOUZxBqML8IRtwwHJPQ=="; + X-APPLE-WEBAUTH-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AYHVmzu2tyRHllqyh3u29IcXm+KFVtz8uYvdhCEiN7Ytdmpv0tX49lugS1T9DR5LkPT6+1Mh9iHqA2yH7KEkjZxZqse5CaW/5pLX9ZZqR+cD8AE8sGEzCgNMQaxg4ewBKtwkXsmWwckJlGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsIRDmdzLmljbG91ZC5hdXRovQATO2B4z2VTRaTCfoPT3_QUyJR1VzJExvSBuTboezA7YnFjiIFJ3Sqcz1UX-RofcueNeifnW__1FSzDEjNeYOMdLupP3QLZBpOcKy61TNd328FO3zA5jlbNVYpFvQtRSFbr296VzdaxAshS4UMerwZVbzhqTA~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: - body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"AR1vLgJmrHgKtD5fayMY87VlA1FA\",\n + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"AR1vLgJmrHgKtD5fayMY87VlA1FA\",\n \ \"recordType\" : \"CPLMaster\",\n \"fields\" : {\n \"resVidSmallHeight\" : {\n \"value\" : 360,\n \"type\" : \"INT64\"\n },\n \"itemType\" : {\n \"value\" : \"com.apple.quicktime-movie\",\n \"type\" @@ -2255,27 +2534,47 @@ interactions: : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"deviceID\" : \"9DD832CBD916B81F61073DFC925ADA027CFA1477B567B104010F1107DFEC1367\"\n \ },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n - \ },\n \"expirationTime\" : 1534422333\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + \ },\n \"expirationTime\" : 1534422333\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}" headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', - Via] - Apple-Originating-System: [UnknownOriginatingSystem] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:34:22 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: ['X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgx80RDmdzLmljbG91ZC5hdXRovQBF54YTWIb2BKxftLMnQO7Y9gGftd8tRhNLj7yKkHJLMXmGR46AJdITwOPMPNGWHdu6c_6XW-sSs_onY4OoLa-JSuQrEaHdqjpcd4RsHPOBPVgwovqVSIiH1-EEhAhcwR34JkNyEJAOJW-G8L3ovliS6JKpww~~";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains;] - Via: ['xrail:nk11p00ic-ztdj17111501.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-zteu070410:7401:18RC341:Singapore'] - X-Apple-CloudKit-Version: ['1.0'] - X-Apple-Request-UUID: [be9b4d34-6888-4c6b-8329-e6610ed65d6c] - X-Responding-Instance: ['ckdatabasews:21002201:nk11p10me-ztbu40074101:8201:1813B216:nocommit'] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['130262'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Access-Control-Expose-Headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:34:22 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgx80RDmdzLmljbG91ZC5hdXRovQBF54YTWIb2BKxftLMnQO7Y9gGftd8tRhNLj7yKkHJLMXmGR46AJdITwOPMPNGWHdu6c_6XW-sSs_onY4OoLa-JSuQrEaHdqjpcd4RsHPOBPVgwovqVSIiH1-EEhAhcwR34JkNyEJAOJW-G8L3ovliS6JKpww~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Via: + - xrail:nk11p00ic-ztdj17111501.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070410:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - be9b4d34-6888-4c6b-8329-e6610ed65d6c + X-Responding-Instance: + - ckdatabasews:21002201:nk11p10me-ztbu40074101:8201:1813B216:nocommit + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '130262' + status: + code: 200 + message: OK - request: body: '{"query": {"filterBy": [{"fieldName": "startRank", "fieldValue": {"type": "INT64", "value": 32}, "comparator": "EQUALS"}, {"fieldName": "direction", "fieldValue": @@ -2305,50 +2604,149 @@ interactions: "vidComplDispScale", "vidComplVisibilityState", "customRenderedValue", "containerId", "itemId", "position", "isKeyAsset"], "zoneID": {"zoneName": "PrimarySync"}}' headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['2278'] - Content-type: [text/plain] - Cookie: ['X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; - X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A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8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; - X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~"'] - Origin: ['https://www.icloud.com'] - Referer: ['https://www.icloud.com/'] - User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2278' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-HSA-TRUST-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw_QRDmdzLmljbG91ZC5hdXRovQAx3w1q_UxzU0vxt735DpQX3lPqPLDEcH_HydfAdJ6nSTlLv7_ACh62ZB_L7LX51z-jimLnP6rYIaVbW-sCaw0C2u9CijiBmsb40JT3EHiw4oq5X8aKuOLYMk6rxLYo7gEYMGTeRYdHwj0YFwQDWrU3xnGVbQ~~"; + X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyA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:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~"; + X_APPLE_WEB_KB-G8OEZNFVULTVFHAMBBCQAU36-EO="v=1:t=IAAAAAAABLwIAAAAAFtgw2oRDmdzLmljbG91ZC5hdXRovQAK8qeElopQo2a1fKbYKsWG24Hvq7qce169gCfJiz-GsP7L8Fl1WrsSsT1N7WWRMUw52cCU_QSqb7L5dMwVF3Vt8VROD2wpfu7c9PElWtMuAI2gnSkJxKHsK9_ydbHYzElvlY-TMOnI3MDaaVjd04Oa7zRmcQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) method: POST uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: - body: {string: "{\n \"records\" : [ ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + body: + string: "{\n \"records\" : [ ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Access-Control-Expose-Headers: + - X-Apple-Request-UUID, X-Responding-Instance + - Via + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 31 Jul 2018 20:34:22 GMT + Server: + - AppleHttpServer/2f080fc0 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgx84RDmdzLmljbG91ZC5hdXRovQD40fawAqmNiRwQDZ6pDT4O-uvt4sOSaKhfwyCEMEbWmlIFjF00aFrbEv43jlC8JEu81pI8z5xfDVubnq1EGsNQBHZkPU_G6hYsh8du3tqMhuAt8B22kfedExyM1pn34cUaAuEMnJFHvx9wC-dPvBTTPjOAcw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + Via: + - xrail:nk11p00ic-ztdj17111301.me.com:8301:18H44:grp31 + - icloudedge:si03p01ic-zteu070410:7401:18RC341:Singapore + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Request-UUID: + - d6e42e20-81f1-408d-8608-156071288c5a + X-Responding-Instance: + - ckdatabasews:21002101:nk11p10me-ztbu05054301:8201:1813B216:nocommit + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '85' + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOE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EIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: '{"reason":"Invalid global session","error":2}' headers: - Access-Control-Allow-Credentials: ['true'] - Access-Control-Allow-Origin: ['https://www.icloud.com'] - Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', - Via] - Apple-Originating-System: [UnknownOriginatingSystem] - Connection: [keep-alive] - Content-Type: [application/json; charset=UTF-8] - Date: ['Tue, 31 Jul 2018 20:34:22 GMT'] - Server: [AppleHttpServer/2f080fc0] - Set-Cookie: ['X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgx84RDmdzLmljbG91ZC5hdXRovQD40fawAqmNiRwQDZ6pDT4O-uvt4sOSaKhfwyCEMEbWmlIFjF00aFrbEv43jlC8JEu81pI8z5xfDVubnq1EGsNQBHZkPU_G6hYsh8du3tqMhuAt8B22kfedExyM1pn34cUaAuEMnJFHvx9wC-dPvBTTPjOAcw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly'] - Strict-Transport-Security: [max-age=31536000; includeSubDomains;] - Transfer-Encoding: [chunked] - Via: ['xrail:nk11p00ic-ztdj17111301.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-zteu070410:7401:18RC341:Singapore'] - X-Apple-CloudKit-Version: ['1.0'] - X-Apple-Request-UUID: [d6e42e20-81f1-408d-8608-156071288c5a] - X-Responding-Instance: ['ckdatabasews:21002101:nk11p10me-ztbu05054301:8201:1813B216:nocommit'] - apple-seq: ['0'] - apple-tk: ['false'] - content-length: ['85'] - status: {code: 200, message: OK} + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 14:50:29 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-Edge-Response-Time: + - '392' + X-Apple-Request-UUID: + - 6116d0cb-bae3-491d-9945-17caa8950573 + X-Responding-Instance: + - ckdatabasews:10900201:st11p09me-ztbu17131601:8201:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '45' + via: + - xrail:st53p00ic-qujn12063402.me.com:8301:23R321:grp60,631194250daa17e24277dea86cf30319:8aa008d31cb9abc9547a19fdf667e0bf:nlhfd1 + x-apple-user-partition: + - '9' + status: + code: 421 + message: Misdirected Request version: 1 diff --git a/tests/vcr_cassettes/download_autodelete_photos.yml b/tests/vcr_cassettes/download_autodelete_photos.yml index e4be2c9a0..fbd4140de 100644 --- a/tests/vcr_cassettes/download_autodelete_photos.yml +++ b/tests/vcr_cassettes/download_autodelete_photos.yml @@ -144,8 +144,6 @@ interactions: - X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VYRDmdzLmljbG91ZC5hdXRovQDJyoT-b1YRarSOq9akhwi1jLCBzsdKxalcy0jn0LFE-Yh9Ds6uCupgCwoJVqjila6No3Ot2H4pHCa7gtRvDvDJSGBSEkHSUuLayc0iPphadFHi5h-UIXCNDY8-84M7nKsc5iO-PMkKOWmYD-Hr-zcNQHAiRg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly Strict-Transport-Security: - max-age=31536000; includeSubDomains; - Transfer-Encoding: - - chunked X-Apple-CloudKit-Version: - '1.0' X-Apple-Edge-Response-Time: @@ -165,6 +163,153 @@ interactions: status: code: 200 message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-DS-WEB-SESSION-TOKEN="AQGjo6uRjATQg6/UJ5sNohSgAp+64iccPjvILPsronCFDhyfxVAstfhBcOOedbhfdLjO0UHbPdOH2UEdBqicEkqt9CTHCdLH8rBVRD8teoRYZGiaa7SVJfcXnaKowf0L+AfFvPbbuK5Nbh/gZZ3zb+7nMOoY2fRhbwtGSUzlCq4FBe7lB5h7im2rDBMQ5d8wvYegyP53R9ZXL6DYARj7bqhOwYBYwxs0vryyzhlzqHPp+PUzbpSAwvX9fdIQHHRwQigs7QrAWJ5Iz1G6fBp9sNER9wtYj2egl7piVRtjSxtyhgVqe/6LsZIkBg9GB6j3DoY4J2CDgv+JdqLMNsMLqNrJk+hjDNCrTFoVKOHnhsE/cZS4d8mkFYBG9ZYy9wokT7NLV3lwmJg1Oe/giy/QXFnG8fS6BLJGODpAPUgWL5/VJOoi3D04yba3FYFo32Tx/wgF0VVChlOIuzqYyRsEetGl28Drr2vqivtMCbglFR/a/pDNW5qLHcmd3PG0uBxch5Yo/okV+pi5ATZSYBKNs+EogLXQ8MEPudulmVxY1BWbOQ83RhgYyAZ/K/2i6v/8M2vJqhUzeXHdp7ChzioxdrO+DIwkXdBLW2I7DpfdAPZsUkli41+9fs1G9LcpvhinHypv1LMEgbutQrSKvK0h2VPBmcc83uu9d7R84mRvbZRuwxZeHBRIFFs7JHz2tts+8R3fFHuD/jxFE86NoLNUfwU="; + X-APPLE-UNIQUE-CLIENT-ID="Bw=="; X-APPLE-WEBAUTH-HSA-TRUST-4WGKUPJCW9TNUKCLBDOXGDNDMWK="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR9JSMRDmdzLmljbG91ZC5hdXRovQCOzz9XpOVw2-pKv59MN-7OXGMrm7YEsJMlv4-UMP-bt1HMCAEEfPqw-5oyPcUw5GytAuUdq8DQI3zUWQ1hiBN_6YE96Ojsu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gq4/F+C3fhEwrkIO3o0U99rERbNZGmXFySDT9W5ZowRlDNKnplA=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI0_rx4MN8rwzyj40c7Z50QKmL5pV7ksC_2BAYwKclwD8nODPM3g~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=1389775224"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI08OqNC8TRuhzLlNWoo_Zlz7N2GqkHUqbWatD93Zn9IP3jmZdcw~~"; + X_APPLE_WEB_KB-4WGKUPJCW9TNUKCLBDOXGDNDMWK="v=1:t=Bg==BST_IAAAAAAABLwIAAAAAGR9JAwRDmdzLmljbG91ZC5hdXRovQChjrt-l9JHU7mS5LDcR_rfVsyjzgwn7Bqg-jUgpppgZxPPtg1N665XoDLrzq9aWRgxn99NKveyhdGeUHtYLXLQxZtI2XcMy6l0tOucKCR7e7PH9Y2CtIQMK-hd1XaLr5HD8BmtzfPKQEBj6nOIhT_wnu4tCA~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=1389775224&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_911a39bc-1c9a-4dcd-88be-6673de6d7b6e\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1686106454220,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1686106454220,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_cfcd54372a11173505ad48f023ba188d\",\n + \ \"zoneType\" : \"REGULAR_CUSTOM_ZONE\"\n }\n } ],\n \"syncToken\" + : \"AQAAAAAAAURbf/////////+LxHA1AvhAx66JMCtmgB8J\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 07 Jun 2023 02:54:14 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VYRDmdzLmljbG91ZC5hdXRovQDJyoT-b1YRarSOq9akhwi1jLCBzsdKxalcy0jn0LFE-Yh9Ds6uCupgCwoJVqjila6No3Ot2H4pHCa7gtRvDvDJSGBSEkHSUuLayc0iPphadFHi5h-UIXCNDY8-84M7nKsc5iO-PMkKOWmYD-Hr-zcNQHAiRg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '161' + X-Apple-Request-UUID: + - 02b0662b-d79e-40a9-8404-815996b48cf7 + X-Responding-Instance: + - ckdatabasews:35407501:mr90p54ic-zteg03191201:8807:2316B303:152c6124bda977460db222f8d882b1ee7ef1788d + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '846' + via: + - xrail:mr42p00ic-qujn08131301.me.com:8301:23R52:grp22,631194250daa17e24277dea86cf30319:7c2d36ece15e8020235c634629f6c0cf:uslax2 + x-apple-user-partition: + - '54' + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -10323,6 +10468,156 @@ interactions: status: code: 200 message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-DS-WEB-SESSION-TOKEN="AQHDU5XLib68GU3ldbG8moSiPgnpFbUKVAmbJl+GJchIwqDTBk+bXjGRTGUyCovYdBKh6awjp3oVC+DTM85eVv1Rt+a2P+05gHsJnaKiSM750TqA7kwq9kWyT7ljnvABM7wKODXXVF18ml37NHd/GL8/Bj2EUrkFQIEANrvj4j4AJzYT+fhCMmLH2JtTk/0y8liedvPzZCAZV+Nsj57ePBK3R+JWRAiTMVMZrSfd+428eU/j9h80YdiYXj6kVP1Zn+ci13PLj5aWW2coE100ug8Ytw296KANKDy9WqJpXd26rYxNwts+LNtwtoyqWOIUV9WkMiTFwfgQBenlgtHM4W8ffASTtC8cA62r3jiww+so10UTGbtAyYKFEP83ha1CSmdYkO5w9fEi3sYcdXAjz432aCs39g7ZPOMP5azjF6PQEOf2p/HTpxDMx1yFa7FVhYp9NY1UOXYWSJXTHR8fUv8ZnWThZRLUeX2cACALiZh5VjZKUFXc78B0R5oLdrqQmB9jLfLhtF+F0g5q5dbIFJccn++iFlN1xbt5BgIqS4qgWJpP77sSoXUJ+GMaHhlKDkF0e2QYN3dV2OhHg9kiphvu/OEasUHe4bXvA+fasxy89oZD0leM/lWuQvmfxjgFIsrVM+eSIBmerltvdq97KAD2QRxv2NIrtp6k5CuI/JIjL9+62h6KD0GJgijkGH/LgFRgVBuTg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j6nOIhT_wnu4tCA~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=1389775224&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_82b4e8ce-766a-4f0d-acfd-2d93166d9ae6\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1686106461398,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1686106461398,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_cfcd54372a11173505ad48f023ba188d\",\n + \ \"zoneType\" : \"REGULAR_CUSTOM_ZONE\"\n }\n } ],\n \"syncToken\" + : \"AQAAAAAAAURhf/////////+LxHA1AvhAx66JMCtmgB8J\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 07 Jun 2023 02:54:21 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8V0RDmdzLmljbG91ZC5hdXRovQABixnV9SSab1hkXueUTJtIEBd0bW1kHTby2yieKoCwFVV5Pumb5hlZGtWzXvlTwKFKlTiZLqRzk82sSf9gFYhVPlSQNvXl8J2VAZJQ9DOb1ya5RdJ-DxcDd2JOELG1xRZPPShkRB3ZZU3haFdyH3VZcuUd2w~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '240' + X-Apple-Request-UUID: + - 84042314-1685-4f6c-85f8-4f3487cf38ea + X-Responding-Instance: + - ckdatabasews:35405301:mr90p54ic-zteg03131701:8807:2316B303:152c6124bda977460db222f8d882b1ee7ef1788d + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '846' + via: + - xrail:mr47p00ic-qujn01121701.me.com:8301:23R52:grp22,631194250daa17e24277dea86cf30319:cbda876e0fb367676cca59478c67fb94:uslax2 + x-apple-user-partition: + - '54' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -18036,4 +18331,72 @@ interactions: status: code: 200 message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Cookie: + - X-APPLE-UNIQUE-CLIENT-ID="Bw=="; X-APPLE-WEBAUTH-LOGIN="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI06xlLUlX_8EV9uFj-QpAllL8ZGepYrHIv2dweiAfDRXAK0kqEA~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcG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v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI08OqNC8TRuhzLlNWoo_Zlz7N2GqkHUqbWatD93Zn9IP3jmZdcw~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: '{"reason":"Invalid global session","error":2}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 14:50:29 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-Edge-Response-Time: + - '403' + X-Apple-Request-UUID: + - 1c3f689c-50c1-4b4f-9ec3-2b2b6aa79198 + X-Responding-Instance: + - ckdatabasews:35410401:mr51p54ic-qukt03081101:8201:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '45' + via: + - xrail:mr42p00ic-qujn08141701.me.com:8301:23R321:grp22,631194250daa17e24277dea86cf30319:cfff28dc77a3011ced43e64244278f05:nlhfd1 + x-apple-user-partition: + - '54' + status: + code: 421 + message: Misdirected Request version: 1 diff --git a/tests/vcr_cassettes/download_live_photos.yml b/tests/vcr_cassettes/download_live_photos.yml index ea464fab5..c85411dea 100644 --- a/tests/vcr_cassettes/download_live_photos.yml +++ b/tests/vcr_cassettes/download_live_photos.yml @@ -238,6 +238,161 @@ interactions: status: code: 200 message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-UNIQUE-CLIENT-ID="Ag=="; X-APPLE-WEBAUTH-HSA-TRUST-MCKQA0JLHJTP6TJZRX7-IO-JETW="v=1:t=Ag==BST_IAAAAAAABLwIAAAAAF-jD4IRDmdzLmljbG91ZC5hdXRovQBe_HEqqF9aBTyDIH0aFHqxCTMdUrkC9gwBg9DUkDjruh1ynwgTAOmhoVF-jD1ijGUNqJMAksawXsEIo0UgKGnSlSrUik_fhMxUp48CZtS7Lu4XlW0vEFteX1XcPWPWV9bbeatJhMQ4iH0y59tt_htYCnHdIg~~"; + X-APPLE-WEBAUTH-LOGIN="v=1:t=Ag==BST_IAAAAAAABLwIAAAAAF-jEQwRDmdzLmljbG91ZC5hdXRovQDl_bGHZ22006a7OHSF_-9IaHcI-iPnH1qjk1VDiGGvLiwwVl9TM4OnAfT5A81Lx7lcJpRD9OgDowQc03ybD4ZX3XERHiHmiAHccDdwQM8tSDD30L7ZkJ10lh83h3RmU-0lU_Jw5AVkJiSTJbxf61ql_k-iCQ~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6AT6lHFhg8uBjq0PfNfh36ZqTYmQrpzlZ5CX/e21xWqq+YzeAE1Is225rFkZzMYxlP7K4hNu0Ilu6Q0lXAe/Z3lFrlAQgMP+80skHdzHVcHCX0oSVXocPcBIc83Yvy52xBQKhLPVzqw146xIpwCuqOp1dmvF8eIFLSAmMYaLmp4L1DM3sePHsnA=="; + X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AaRtIEBA1ay7/14ySSB8sAYXgCOhBADAuXNaXtDRbR70NDvdVi+y9FsG9NPkLucycUPuoEPpr6Ex2QnPnb3PTlo2dDFYblkeKiy/AlUIGB7RxqPGnJwXEbYSiKbgSgyPyRS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wfdRXtoqO-dlQye6-wId_rAta1Y0n0VskBvSVo0uIt4HecZ8zpJ3P7T_pBt0okIA8NX_2ji6wS4zWNZnFX7CslWNQ~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p53-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=220791670&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_3d67b7f2-dff0-4cbd-9475-7060d2d8e39e\"\ + ,\n \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \ + \ \"progress\" : {\n \"value\" : 100,\n \"type\" : \"INT64\"\ + \n },\n \"state\" : {\n \"value\" : \"FINISHED\",\n \ + \ \"type\" : \"STRING\"\n }\n },\n \"pluginFields\" : { },\n\ + \ \"recordChangeTag\" : \"0\",\n \"created\" : {\n \"timestamp\"\ + \ : 1604522253755,\n \"userRecordName\" : \"_10\",\n \"deviceID\"\ + \ : \"1\"\n },\n \"modified\" : {\n \"timestamp\" : 1604522253755,\n\ + \ \"userRecordName\" : \"_10\",\n \"deviceID\" : \"1\"\n },\n\ + \ \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\"\ + ,\n \"ownerRecordName\" : \"_ab776cbd7a4be817e6258511022b3e3c\",\n \ + \ \"zoneType\" : \"REGULAR_CUSTOM_ZONE\"\n }\n } ],\n \"syncToken\"\ + \ : \"AQAAAAAABEexf/////////+Yc23JwndEs5IcW5R32T2B\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Apple-Originating-System: + - UnknownOriginatingSystem + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 04 Nov 2020 20:37:33 GMT + Server: + - AppleHttpServer/4b0f4e40276cabbbae998f715d1fd1336e7478a2 + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=Ag==BST_IAAAAAAABLwIAAAAAF-jEQ0RDmdzLmljbG91ZC5hdXRovQBQDzuv81PV5krPXyCsfNZ_2r_Z-z0g-tY_O81PtPdf503MTNfBSCm8Zjw3JTzvIeCMK-hZHBmeAZvAuj5rcy0fSzmvtbKoae_ajpggFYIyvTaY_ZVRo_xA9aiIcIBaxZnqfMgv5Njvx33AIKtZBHsBBhokMw~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '324' + X-Apple-Request-UUID: + - ab87efee-9856-4615-866d-0e3bd54340be + X-Responding-Instance: + - ckdatabasews:45305001:pv43p53ic-zteg01083001:8807:2020B361:52d8d3c5028e21999fb3b3d26313b7e098f474ab + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + apple-seq: + - '0' + apple-tk: + - 'false' + content-length: + - '846' + via: + - xrail:pv54p00ic-qujn12151701.me.com:8301:19C1088:grp42,631194250daa17e24277dea86cf30319:9c54c2c0e2a4a005890453be21580e6e:Dusseldorf + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p53-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: diff --git a/tests/vcr_cassettes/listing_albums.yml b/tests/vcr_cassettes/listing_albums.yml index 83c75252e..f2959da02 100644 --- a/tests/vcr_cassettes/listing_albums.yml +++ b/tests/vcr_cassettes/listing_albums.yml @@ -25,7 +25,7 @@ interactions: response: body: string: "{\"dsInfo\":{\"lastName\":\"Doe\",\"iCDPEnabled\":false,\"tantorMigrated\"\ - :false,\"dsid\":\"220791670\",\"hsaEnabled\":true,\"ironcadeMigrated\":true,\"\ + :false,\"dsid\":\"185776146\",\"hsaEnabled\":true,\"ironcadeMigrated\":true,\"\ locale\":\"de-de_DE\",\"brZoneConsolidated\":false,\"isManagedAppleID\":false,\"\ gilligan-invited\":\"true\",\"appleIdAliases\":[\"jdoe@me.com\",\"\ jdoe@icloud.com\"],\"hsaVersion\":2,\"isPaidDeveloper\":false,\"countryCode\"\ @@ -120,7 +120,7 @@ interactions: - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTrdyLXuVSPEQTcWV5w50PS_Azhjbb-HFG_w6bQS7fObvGRYVdQ~~";Path=/;Domain=.icloud.com;Secure;HttpOnly - X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTiwy_dNCsqEDy7btI5YsusdyMvbR8x1wtHTH41xpCJ2T5DiGfQ~~";Path=/;Domain=.icloud.com;Secure - X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTn8e8w8cEKFkFglizdCuIac2hu4mY-ORpCJLg90bisJJTipVEA~~";Path=/;Domain=.icloud.com;Secure;HttpOnly - - X-APPLE-WEBAUTH-USER="v=1:s=0:d=220791670";Path=/;Domain=.icloud.com;Secure;HttpOnly + - X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146";Path=/;Domain=.icloud.com;Secure;HttpOnly Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Apple-Jingle-Correlation-Key: @@ -143,6 +143,116 @@ interactions: status: code: 200 message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_ac333066-5d55-4c42-b033-f05bb9d2873c\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533040623320,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533040623320,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 12:37:03 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + Transfer-Encoding: [chunked] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [4bdf08db-dcb1-421b-96be-648eb85521b6] + X-Responding-Instance: ['ckdatabasews:21000301:nk11p10me-ztbu22062301:8201:1813B216:nocommit'] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] + status: {code: 200, message: OK} + +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -168,7 +278,7 @@ interactions: X-APPLE-WEBAUTH-PCS-Safari="TGlzdEFwcGw6MTpBcHBsOjE6AbYqqDtTyT+1iBw09mXnbJkLgfk2Js0Uz34hBKAx6xub5M8neMiZaMSc15oS6KpI29jUZE6DKBTJIsX7aqIiwF6ps/FoG0oI3mQwqwZcCYvLz4T4QWOtY5+Gt47LbMfkyKW0e41JF4uqgntZBQyHhycE8WDcWNxzCOOVsGk1Rj1bVjiA5zp3ug=="; X-APPLE-WEBAUTH-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AXDzBhH/Uqo2sq+Saaqbg00cX5njb3+8b3GwX/4yeRRQ0/9j8WEDDT07ZS/6RXiNGZ4QIW+Dr8DjHEkZe1z+QSZxPle7eZUrqDoOOBvTMo336k0Rv/o6m873zMuXebZSvMsNFmmmV6h7EWC4wFQVmzA06yUsqfVaGnVS3MhQ1YdIO0yHAxnELw=="; X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTn8e8w8cEKFkFglizdCuIac2hu4mY-ORpCJLg90bisJJTipVEA~~"; - X-APPLE-WEBAUTH-USER="v=1:s=0:d=220791670"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTiwy_dNCsqEDy7btI5YsusdyMvbR8x1wtHTH41xpCJ2T5DiGfQ~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTiwy_dNCsqEDy7btI5YsusdyMvbR8x1wtHTH41xpCJ2T5DiGfQ~~"; X_APPLE_WEB_KB-MCKQA0JLHJTP6TJZRX7-IO-JETW="v=1:t=IAAAAAAABLwIAAAAAFyy8hMRDmdzLmljbG91ZC5hdXRovQDtcfU1UjxOfmatejqo4w0FyqgHkZVJ3uAC-YFwI6qda4pzUbK4pDCh6LpJZ2fE8lS_9ww3O3ol2gam2UDNq3qZQpZ7o0u0dVUynJvB27X--nuAt_tXpQJK5BeMoFxgh_cZjNsisF1vOJg1KXzQ5hPuVMXF3Q~~" Origin: - https://www.icloud.com @@ -177,7 +287,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=220791670&remapEnums=True&getCurrentSyncToken=True + uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: body: string: "{\n \"records\" : [ {\n \"recordName\" : \"_dfc991c9-6f13-4b37-846b-606e3f31186e\"\ @@ -260,7 +370,7 @@ interactions: X-APPLE-WEBAUTH-PCS-Safari="TGlzdEFwcGw6MTpBcHBsOjE6AbYqqDtTyT+1iBw09mXnbJkLgfk2Js0Uz34hBKAx6xub5M8neMiZaMSc15oS6KpI29jUZE6DKBTJIsX7aqIiwF6ps/FoG0oI3mQwqwZcCYvLz4T4QWOtY5+Gt47LbMfkyKW0e41JF4uqgntZBQyHhycE8WDcWNxzCOOVsGk1Rj1bVjiA5zp3ug=="; X-APPLE-WEBAUTH-PCS-Sharing="TGlzdEFwcGw6MTpBcHBsOjE6AXDzBhH/Uqo2sq+Saaqbg00cX5njb3+8b3GwX/4yeRRQ0/9j8WEDDT07ZS/6RXiNGZ4QIW+Dr8DjHEkZe1z+QSZxPle7eZUrqDoOOBvTMo336k0Rv/o6m873zMuXebZSvMsNFmmmV6h7EWC4wFQVmzA06yUsqfVaGnVS3MhQ1YdIO0yHAxnELw=="; X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFzUeqsRDmdzLmljbG91ZC5hdXRovQDLt0yBmlWeKEqUCK4Rb2q8PqCfrUifzfJJ8teReO_K45G1o0NcMXVUOA82EQfoxuHRTelz_j76GhB6arROQOtiEw5l-Gnkb3azTRqRLOy62fHR87-_1kOHvTu_lFJhNeMJcj5lL_vXw4xl_V9VRPGzw_bbyA~~"; - X-APPLE-WEBAUTH-USER="v=1:s=0:d=220791670"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTiwy_dNCsqEDy7btI5YsusdyMvbR8x1wtHTH41xpCJ2T5DiGfQ~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFzUeqgRDmdzLmljbG91ZC5hdXRovQAqM-hMbeOKEShIoy1yCDrtQKNtmZFVXlZePfIAlM4M1_354xZEwLFvGllmNkKoz1ZhYFurK-QwOPRtZBlMOANxZ-7761dyikERBSc_V5jNTiwy_dNCsqEDy7btI5YsusdyMvbR8x1wtHTH41xpCJ2T5DiGfQ~~"; X_APPLE_WEB_KB-MCKQA0JLHJTP6TJZRX7-IO-JETW="v=1:t=IAAAAAAABLwIAAAAAFyy8hMRDmdzLmljbG91ZC5hdXRovQDtcfU1UjxOfmatejqo4w0FyqgHkZVJ3uAC-YFwI6qda4pzUbK4pDCh6LpJZ2fE8lS_9ww3O3ol2gam2UDNq3qZQpZ7o0u0dVUynJvB27X--nuAt_tXpQJK5BeMoFxgh_cZjNsisF1vOJg1KXzQ5hPuVMXF3Q~~" Origin: - https://www.icloud.com @@ -269,7 +379,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=220791670&remapEnums=True&getCurrentSyncToken=True + uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True response: body: string: "{\n \"records\" : [ {\n \"recordName\" : \"----Root-Folder----\"\ @@ -654,4 +764,5 @@ interactions: status: code: 200 message: OK + version: 1 diff --git a/tests/vcr_cassettes/listing_photos.yml b/tests/vcr_cassettes/listing_photos.yml index 31cd097d7..2107ede1a 100644 --- a/tests/vcr_cassettes/listing_photos.yml +++ b/tests/vcr_cassettes/listing_photos.yml @@ -79,6 +79,113 @@ interactions: content-length: ['804'] via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_e53446cf-3885-4cd3-8f12-648289d79769\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533038368535,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533038368535,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 11:59:28 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [9ca52f84-cef3-4818-8beb-9ad71d062730] + X-Responding-Instance: ['ckdatabasews:21002602:nk11p10me-ztbu40074301:8202:1813B216:nocommit'] + access-control-expose-headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj17111701.me.com:8301:18H44:grp31', 'icloudedge:si03p00ic-zteu070515:7401:18RC341:Singapore'] + status: {code: 200, message: OK} - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: diff --git a/tests/vcr_cassettes/listing_photos_bad_filename.yml b/tests/vcr_cassettes/listing_photos_bad_filename.yml index bb9573b07..e8684e17b 100644 --- a/tests/vcr_cassettes/listing_photos_bad_filename.yml +++ b/tests/vcr_cassettes/listing_photos_bad_filename.yml @@ -79,6 +79,154 @@ interactions: content-length: ['804'] via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-DS-WEB-SESSION-TOKEN="AQGjo6uRjATQg6/UJ5sNohSgAp+64iccPjvILPsronCFDhyfxVAstfhBcOOedbhfdLjO0UHbPdOH2UEdBqicEkqt9CTHCdLH8rBVRD8teoRYZGiaa7SVJfcXnaKowf0L+AfFvPbbuK5Nbh/gZZ3zb+7nMOoY2fRhbwtGSUzlCq4FBe7lB5h7im2rDBMQ5d8wvYegyP53R9ZXL6DYARj7bqhOwYBYwxs0vryyzhlzqHPp+PUzbpSAwvX9fdIQHHRwQigs7QrAWJ5Iz1G6fBp9sNER9wtYj2egl7piVRtjSxtyhgVqe/6LsZIkBg9GB6j3DoY4J2CDgv+JdqLMNsMLqNrJk+hjDNCrTFoVKOHnhsE/cZS4d8mkFYBG9ZYy9wokT7NLV3lwmJg1Oe/giy/QXFnG8fS6BLJGODpAPUgWL5/VJOoi3D04yba3FYFo32Tx/wgF0VVChlOIuzqYyRsEetGl28Drr2vqivtMCbglFR/a/pDNW5qLHcmd3PG0uBxch5Yo/okV+pi5ATZSYBKNs+EogLXQ8MEPudulmVxY1BWbOQ83RhgYyAZ/K/2i6v/8M2vJqhUzeXHdp7ChzioxdrO+DIwkXdBLW2I7DpfdAPZsUkli41+9fs1G9LcpvhinHypv1LMEgbutQrSKvK0h2VPBmcc83uu9d7R84mRvbZRuwxZeHBRIFFs7JHz2tts+8R3fFHuD/jxFE86NoLNUfwU="; + X-APPLE-UNIQUE-CLIENT-ID="Bw=="; X-APPLE-WEBAUTH-HSA-TRUST-4WGKUPJCW9TNUKCLBDOXGDNDMWK="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR9JSMRDmdzLmljbG91ZC5hdXRovQCOzz9XpOVw2-pKv59MN-7OXGMrm7YEsJMlv4-UMP-bt1HMCAEEfPqw-5oyPcUw5GytAuUdq8DQI3zUWQ1hiBN_6YE96OjsuHqDfzj6t-1ugVZvcPXGLlf6Z6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XFySDT9W5ZowRlDNKnplA=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI0_rx4MN8rwzyj40c7Z50QKmL5pV7ksC_2BAYwKclwD8nODPM3g~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=1389775224"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI08OqNC8TRuhzLlNWoo_Zlz7N2GqkHUqbWatD93Zn9IP3jmZdcw~~"; + X_APPLE_WEB_KB-4WGKUPJCW9TNUKCLBDOXGDNDMWK="v=1:t=Bg==BST_IAAAAAAABLwIAAAAAGR9JAwRDmdzLmljbG91ZC5hdXRovQChjrt-l9JHU7mS5LDcR_rfVsyjzgwn7Bqg-jUgpppgZxPPtg1N665XoDLrzq9aWRgxn99NKveyhdGeUHtYLXLQxZtI2XcMy6l0tOucKCR7e7PH9Y2CtIQMK-hd1XaLr5HD8BmtzfPKQEBj6nOIhT_wnu4tCA~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_911a39bc-1c9a-4dcd-88be-6673de6d7b6e\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1686106454220,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1686106454220,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_cfcd54372a11173505ad48f023ba188d\",\n + \ \"zoneType\" : \"REGULAR_CUSTOM_ZONE\"\n }\n } ],\n \"syncToken\" + : \"AQAAAAAAAURbf/////////+LxHA1AvhAx66JMCtmgB8J\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 07 Jun 2023 02:54:14 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VYRDmdzLmljbG91ZC5hdXRovQDJyoT-b1YRarSOq9akhwi1jLCBzsdKxalcy0jn0LFE-Yh9Ds6uCupgCwoJVqjila6No3Ot2H4pHCa7gtRvDvDJSGBSEkHSUuLayc0iPphadFHi5h-UIXCNDY8-84M7nKsc5iO-PMkKOWmYD-Hr-zcNQHAiRg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '161' + X-Apple-Request-UUID: + - 02b0662b-d79e-40a9-8404-815996b48cf7 + X-Responding-Instance: + - ckdatabasews:35407501:mr90p54ic-zteg03191201:8807:2316B303:152c6124bda977460db222f8d882b1ee7ef1788d + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '846' + via: + - xrail:mr42p00ic-qujn08131301.me.com:8301:23R52:grp22,631194250daa17e24277dea86cf30319:7c2d36ece15e8020235c634629f6c0cf:uslax2 + x-apple-user-partition: + - '54' + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: diff --git a/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml b/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml index 42b6c870c..2f8361db5 100644 --- a/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml +++ b/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml @@ -34,6 +34,115 @@ interactions: content-length: ['4872'] via: ['icloudedge:si03p00ic-zteu070419:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_ac333066-5d55-4c42-b033-f05bb9d2873c\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533040623320,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533040623320,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 12:37:03 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + Transfer-Encoding: [chunked] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [4bdf08db-dcb1-421b-96be-648eb85521b6] + X-Responding-Instance: ['ckdatabasews:21000301:nk11p10me-ztbu22062301:8201:1813B216:nocommit'] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] + status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK + - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -674,6 +783,7 @@ interactions: content-length: ['43952'] via: ['xrail:nk11p00ic-ztdj17111601.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} + - request: body: '{"batch": [{"resultsLimit": 1, "query": {"filterBy": {"fieldName": "indexCountID", "fieldValue": {"type": "STRING_LIST", "value": ["CPLAssetByAddedDate"]}, "comparator": diff --git a/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml b/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml index 47c42e433..71f24d8e0 100644 --- a/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml +++ b/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml @@ -79,6 +79,115 @@ interactions: content-length: ['804'] via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Transfer-Encoding: + - chunked + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['81'] + Content-type: [text/plain] + Origin: ['https://www.icloud.com'] + Referer: ['https://www.icloud.com/'] + User-Agent: [Opera/9.52 (X11; Linux i686; U; en)] + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: {string: "{\n \"records\" : [ {\n \"recordName\" : \"_ac333066-5d55-4c42-b033-f05bb9d2873c\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1533040623320,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1533040623320,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\"\n + \ }\n } ],\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\"\n}"} + headers: + Access-Control-Allow-Credentials: ['true'] + Access-Control-Allow-Origin: ['https://www.icloud.com'] + Access-Control-Expose-Headers: ['X-Apple-Request-UUID, X-Responding-Instance', + Via] + Apple-Originating-System: [UnknownOriginatingSystem] + Connection: [keep-alive] + Content-Type: [application/json; charset=UTF-8] + Date: ['Tue, 31 Jul 2018 12:37:03 GMT'] + Server: [AppleHttpServer/2f080fc0] + Strict-Transport-Security: [max-age=31536000; includeSubDomains;] + Transfer-Encoding: [chunked] + X-Apple-CloudKit-Version: ['1.0'] + X-Apple-Request-UUID: [4bdf08db-dcb1-421b-96be-648eb85521b6] + X-Responding-Instance: ['ckdatabasews:21000301:nk11p10me-ztbu22062301:8201:1813B216:nocommit'] + apple-seq: ['0'] + apple-tk: ['false'] + content-length: ['804'] + via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] + status: {code: 200, message: OK} + - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: diff --git a/tests/vcr_cassettes/listing_photos_no_delete.yml b/tests/vcr_cassettes/listing_photos_no_delete.yml index 2f144edc0..402a9d5cf 100644 --- a/tests/vcr_cassettes/listing_photos_no_delete.yml +++ b/tests/vcr_cassettes/listing_photos_no_delete.yml @@ -79,6 +79,153 @@ interactions: content-length: ['804'] via: ['xrail:nk11p00ic-ztdj17111401.me.com:8301:18H44:grp31', 'icloudedge:si03p01ic-ztde010302:7401:18RC341:Singapore'] status: {code: 200, message: OK} +- request: + body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '81' + Content-type: + - text/plain + Cookie: + - X-APPLE-DS-WEB-SESSION-TOKEN="AQGjo6uR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QRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI0_rx4MN8rwzyj40c7Z50QKmL5pV7ksC_2BAYwKclwD8nODPM3g~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=1389775224"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI08OqNC8TRuhzLlNWoo_Zlz7N2GqkHUqbWatD93Zn9IP3jmZdcw~~"; + X_APPLE_WEB_KB-4WGKUPJCW9TNUKCLBDOXGDNDMWK="v=1:t=Bg==BST_IAAAAAAABLwIAAAAAGR9JAwRDmdzLmljbG91ZC5hdXRovQChjrt-l9JHU7mS5LDcR_rfVsyjzgwn7Bqg-jUgpppgZxPPtg1N665XoDLrzq9aWRgxn99NKveyhdGeUHtYLXLQxZtI2XcMy6l0tOucKCR7e7PH9Y2CtIQMK-hd1XaLr5HD8BmtzfPKQEBj6nOIhT_wnu4tCA~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/records/query?clientBuildNumber=17DHotfix5&clientMasteringNumber=17DHotfix5&ckjsBuildVersion=17DProjectDev77&ckjsVersion=2.0.5&clientId=DE309E26-942E-11E8-92F5-14109FE0B321&dsid=185776146&remapEnums=True&getCurrentSyncToken=True + response: + body: + string: "{\n \"records\" : [ {\n \"recordName\" : \"_911a39bc-1c9a-4dcd-88be-6673de6d7b6e\",\n + \ \"recordType\" : \"CheckIndexingState\",\n \"fields\" : {\n \"progress\" + : {\n \"value\" : 100,\n \"type\" : \"INT64\"\n },\n \"state\" + : {\n \"value\" : \"FINISHED\",\n \"type\" : \"STRING\"\n }\n + \ },\n \"pluginFields\" : { },\n \"recordChangeTag\" : \"0\",\n \"created\" + : {\n \"timestamp\" : 1686106454220,\n \"userRecordName\" : \"_10\",\n + \ \"deviceID\" : \"1\"\n },\n \"modified\" : {\n \"timestamp\" + : 1686106454220,\n \"userRecordName\" : \"_10\",\n \"deviceID\" + : \"1\"\n },\n \"deleted\" : false,\n \"zoneID\" : {\n \"zoneName\" + : \"PrimarySync\",\n \"ownerRecordName\" : \"_cfcd54372a11173505ad48f023ba188d\",\n + \ \"zoneType\" : \"REGULAR_CUSTOM_ZONE\"\n }\n } ],\n \"syncToken\" + : \"AQAAAAAAAURbf/////////+LxHA1AvhAx66JMCtmgB8J\"\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 07 Jun 2023 02:54:14 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Set-Cookie: + - X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VYRDmdzLmljbG91ZC5hdXRovQDJyoT-b1YRarSOq9akhwi1jLCBzsdKxalcy0jn0LFE-Yh9Ds6uCupgCwoJVqjila6No3Ot2H4pHCa7gtRvDvDJSGBSEkHSUuLayc0iPphadFHi5h-UIXCNDY8-84M7nKsc5iO-PMkKOWmYD-Hr-zcNQHAiRg~~";Path=/;Domain=.icloud.com;Secure;HttpOnly + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '161' + X-Apple-Request-UUID: + - 02b0662b-d79e-40a9-8404-815996b48cf7 + X-Responding-Instance: + - ckdatabasews:35407501:mr90p54ic-zteg03191201:8807:2316B303:152c6124bda977460db222f8d882b1ee7ef1788d + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '846' + via: + - xrail:mr42p00ic-qujn08131301.me.com:8301:23R52:grp22,631194250daa17e24277dea86cf30319:7c2d36ece15e8020235c634629f6c0cf:uslax2 + x-apple-user-partition: + - '54' + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + response: + body: + string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n + \ \"zones\" : [ {\n \"zoneID\" : {\n \"zoneName\" : \"PrimarySync\",\n + \ \"ownerRecordName\" : \"_bfc6dbbcc77b03e6cebefd28a28f7e2f\",\n \"zoneType\" + : \"REGULAR_CUSTOM_ZONE\"\n }\n } ]\n}" + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Tue, 29 Aug 2023 19:47:27 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + X-Apple-CloudKit-Version: + - '1.0' + X-Apple-Edge-Response-Time: + - '195' + X-Apple-Request-UUID: + - 34046027-8226-46f7-9960-4b0839c08b82 + X-Responding-Instance: + - ckdatabasews:966835083:prod-p121-ckdatabasews-100percent-79bfc6b95d-klrcc:8080:2322B333:13811c3d707a78576fcc7f8962567af12bdfeeb4 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '242' + via: + - xrail:icloud-xrail-group53-ext-84bc6d9cdc-z45hs:8301:23R321:grp53,631194250daa17e24277dea86cf30319:b99b663029a8c732254c763aa20830be:nlhfd1 + x-apple-user-partition: + - '121' + status: + code: 200 + message: OK - request: body: '{"query":{"recordType":"CPLAlbumByPositionLive"},"zoneID":{"zoneName":"PrimarySync"}}' headers: