55namespace Typesense ;
66
77use Psr \Http \Client \ClientInterface ;
8+ use Typesense \Requests \Alias ;
9+ use Typesense \Requests \Analytic ;
10+ use Typesense \Requests \Cluster ;
811use Typesense \Requests \Collection ;
12+ use Typesense \Requests \Curation ;
913use Typesense \Requests \Document ;
14+ use Typesense \Requests \Key ;
15+ use Typesense \Requests \Synonym ;
1016
1117/**
1218 * @phpstan-type TypesenseConfiguration array{
1723 */
1824class Typesense
1925{
20- public Http $ http ;
26+ public readonly Http $ http ;
2127
22- public Collection $ collection ;
28+ public readonly Collection $ collection ;
2329
24- public Document $ document ;
30+ public readonly Document $ document ;
31+
32+ public readonly Analytic $ analytic ;
33+
34+ public readonly Key $ key ;
35+
36+ public readonly Curation $ curation ;
37+
38+ public readonly Alias $ alias ;
39+
40+ public readonly Synonym $ synonym ;
41+
42+ public readonly Cluster $ cluster ;
2543
2644 /**
2745 * @param TypesenseConfiguration $config
@@ -33,6 +51,18 @@ public function __construct(array $config)
3351 $ this ->collection = new Collection ($ this ->http );
3452
3553 $ this ->document = new Document ($ this ->http );
54+
55+ $ this ->analytic = new Analytic ($ this ->http );
56+
57+ $ this ->key = new Key ($ this ->http );
58+
59+ $ this ->curation = new Curation ($ this ->http );
60+
61+ $ this ->alias = new Alias ($ this ->http );
62+
63+ $ this ->synonym = new Synonym ($ this ->http );
64+
65+ $ this ->cluster = new Cluster ($ this ->http );
3666 }
3767
3868 public function setUrl (string $ url ): static
0 commit comments