Maintain local ⭤ remote in sync with automatic AT Protocol parity for Laravel (alpha & unstable)

Merge branch 'refs/heads/dev'

Changed files
+6 -6
src
+1 -1
src/Discovery/DiscoveryService.php
··· 29 $count = 0; 30 31 do { 32 - $response = Atp::atproto->sync->listReposByCollection( 33 collection: $collection, 34 limit: min(500, $limit ? $limit - $count : 500), 35 cursor: $cursor,
··· 29 $count = 0; 30 31 do { 32 + $response = Atp::public()->atproto->sync->listReposByCollection( 33 collection: $collection, 34 limit: min(500, $limit ? $limit - $count : 500), 35 cursor: $cursor,
+5 -5
src/Export/ExportService.php
··· 24 */ 25 public function downloadRepo(string $did, ?string $since = null): RepoExport 26 { 27 - $response = Atp::atproto->sync->getRepo($did, $since); 28 $carData = $response->body(); 29 30 return new RepoExport( ··· 92 $cursor = null; 93 94 do { 95 - $response = Atp::atproto->sync->listBlobs( 96 did: $did, 97 since: $since, 98 limit: 500, ··· 112 */ 113 public function downloadBlob(string $did, string $cid): string 114 { 115 - $response = Atp::atproto->sync->getBlob($did, $cid); 116 117 return $response->body(); 118 } ··· 122 */ 123 public function getLatestCommit(string $did): array 124 { 125 - $commit = Atp::atproto->sync->getLatestCommit($did); 126 127 return [ 128 'cid' => $commit->cid, ··· 135 */ 136 public function getRepoStatus(string $did): array 137 { 138 - $status = Atp::atproto->sync->getRepoStatus($did); 139 140 return $status->toArray(); 141 }
··· 24 */ 25 public function downloadRepo(string $did, ?string $since = null): RepoExport 26 { 27 + $response = Atp::public()->atproto->sync->getRepo($did, $since); 28 $carData = $response->body(); 29 30 return new RepoExport( ··· 92 $cursor = null; 93 94 do { 95 + $response = Atp::public()->atproto->sync->listBlobs( 96 did: $did, 97 since: $since, 98 limit: 500, ··· 112 */ 113 public function downloadBlob(string $did, string $cid): string 114 { 115 + $response = Atp::public()->atproto->sync->getBlob($did, $cid); 116 117 return $response->body(); 118 } ··· 122 */ 123 public function getLatestCommit(string $did): array 124 { 125 + $commit = Atp::public()->atproto->sync->getLatestCommit($did); 126 127 return [ 128 'cid' => $commit->cid, ··· 135 */ 136 public function getRepoStatus(string $did): array 137 { 138 + $status = Atp::public()->atproto->sync->getRepoStatus($did); 139 140 return $status->toArray(); 141 }