@kite-sa/sdk 0.0.0-stage → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1888 @@
1
+ import type { CoverageFlag, Export, ExportRequest, Listing, Pagination, Transaction, TransactionAttribution, TransactionCoverage } from "./models.js";
2
+ import { type ClientConfig } from "./client-config.js";
3
+ export declare class ApiError<Status extends number = number, Body = unknown> extends Error {
4
+ readonly status: Status;
5
+ readonly body: Body;
6
+ constructor(status: Status, body: Body);
7
+ }
8
+ /**
9
+ * @throws {ApiError<400, Error>}
10
+ * @throws {ApiError<401, Error>}
11
+ * @throws {ApiError<403, Error>}
12
+ * @throws {ApiError<429, Error>}
13
+ * @throws {ApiError<500, Error>}
14
+ */
15
+ export declare function referenceCities(config?: Partial<ClientConfig>): Promise<{
16
+ data: {
17
+ slug: string;
18
+ name_en: string;
19
+ name_ar: string;
20
+ }[];
21
+ }>;
22
+ /**
23
+ * @throws {ApiError<400, Error>}
24
+ * @throws {ApiError<401, Error>}
25
+ * @throws {ApiError<403, Error>}
26
+ * @throws {ApiError<404, Error>}
27
+ * @throws {ApiError<429, Error>}
28
+ * @throws {ApiError<500, Error>}
29
+ */
30
+ export declare function referenceNeighborhoods(city: string, config?: Partial<ClientConfig>): Promise<{
31
+ data: {
32
+ id: number;
33
+ slug: string;
34
+ name_ar: string;
35
+ name_en: string;
36
+ direction_id: unknown;
37
+ center: unknown;
38
+ }[];
39
+ }>;
40
+ /**
41
+ * @throws {ApiError<400, Error>}
42
+ * @throws {ApiError<401, Error>}
43
+ * @throws {ApiError<403, Error>}
44
+ * @throws {ApiError<404, Error>}
45
+ * @throws {ApiError<429, Error>}
46
+ * @throws {ApiError<500, Error>}
47
+ */
48
+ export declare function referenceDirections(city: string, config?: Partial<ClientConfig>): Promise<{
49
+ data: {
50
+ id: number;
51
+ name_en: string;
52
+ name_ar: string;
53
+ neighborhood_ids: number[];
54
+ }[];
55
+ }>;
56
+ /**
57
+ * @throws {ApiError<400, Error>}
58
+ * @throws {ApiError<401, Error>}
59
+ * @throws {ApiError<403, Error>}
60
+ * @throws {ApiError<429, Error>}
61
+ * @throws {ApiError<500, Error>}
62
+ */
63
+ export declare function referenceEnums(config?: Partial<ClientConfig>): Promise<{
64
+ data: {
65
+ listing_types: string[];
66
+ listing_categories: string[];
67
+ property_types: {
68
+ residential: string[];
69
+ commercial: string[];
70
+ };
71
+ rent_frequencies: string[];
72
+ advertiser_types: string[];
73
+ amenities: string[];
74
+ project_features: string[];
75
+ project_banks: string[];
76
+ sources: {
77
+ id: string;
78
+ name: string;
79
+ }[];
80
+ };
81
+ }>;
82
+ /**
83
+ * @throws {ApiError<400, Error>}
84
+ * @throws {ApiError<401, Error>}
85
+ * @throws {ApiError<403, Error>}
86
+ * @throws {ApiError<429, Error>}
87
+ * @throws {ApiError<500, Error>}
88
+ */
89
+ export declare function referenceLimits(config?: Partial<ClientConfig>): Promise<{
90
+ data: {
91
+ plan: string;
92
+ scopes: string[];
93
+ rate_limit_per_minute: number;
94
+ monthly_quota_units: unknown;
95
+ max_page_size: number;
96
+ max_result_depth: number;
97
+ };
98
+ }>;
99
+ /**
100
+ * @throws {ApiError<400, Error>}
101
+ * @throws {ApiError<401, Error>}
102
+ * @throws {ApiError<403, Error>}
103
+ * @throws {ApiError<429, Error>}
104
+ * @throws {ApiError<500, Error>}
105
+ */
106
+ export declare function referenceCoverage(params?: {
107
+ city?: string;
108
+ }, config?: Partial<ClientConfig>): Promise<{
109
+ data: {
110
+ computed_at: string;
111
+ cities: {
112
+ city: string;
113
+ name_en: string;
114
+ name_ar: string;
115
+ listings: {
116
+ listing_type: string;
117
+ property_family: string;
118
+ property_types: string[];
119
+ active_listings: number;
120
+ neighborhoods_with_10_listings: number;
121
+ price_band_ready_pct: number | null;
122
+ }[];
123
+ registered_deals: {
124
+ latest_quarter: string | null;
125
+ neighborhood_mapped_pct: number | null;
126
+ mappable_deals: number;
127
+ };
128
+ registered_rents: {
129
+ available: boolean;
130
+ latest_quarter: string | null;
131
+ };
132
+ }[];
133
+ };
134
+ }>;
135
+ /**
136
+ * @throws {ApiError<400, Error>}
137
+ * @throws {ApiError<401, Error>}
138
+ * @throws {ApiError<403, Error>}
139
+ * @throws {ApiError<429, Error>}
140
+ * @throws {ApiError<500, Error>}
141
+ */
142
+ export declare function listingsSearch(params: {
143
+ city: string;
144
+ listingType: "rent" | "sale";
145
+ listingCategory?: "residential" | "commercial";
146
+ propertyType?: string[];
147
+ neighborhoodId?: number[];
148
+ beds?: number;
149
+ bedsMin?: number;
150
+ bedsMax?: number;
151
+ bathroomsMin?: number;
152
+ priceMin?: number;
153
+ priceMax?: number;
154
+ areaMin?: number;
155
+ areaMax?: number;
156
+ furnished?: "true" | "false";
157
+ source?: string[];
158
+ bbox?: string;
159
+ updatedSince?: string;
160
+ bathrooms?: number;
161
+ bathroomsMax?: number;
162
+ livingsMin?: number;
163
+ neighborhoodIdExclude?: number[];
164
+ q?: string;
165
+ amenities?: string[];
166
+ amenitiesExclude?: string[];
167
+ photoFeatures?: string[];
168
+ floor?: "ground" | "upper";
169
+ sourceExclude?: string[];
170
+ maxAge?: number;
171
+ verified?: "true" | "false";
172
+ advertiserType?: "company" | "individual";
173
+ compound?: string;
174
+ inCompound?: "true" | "false";
175
+ rentFrequency?: "monthly" | "yearly";
176
+ daysOnMarketMin?: number;
177
+ daysOnMarketMax?: number;
178
+ sort?: "newest" | "updated_desc" | "updated_asc" | "price_asc" | "price_desc" | "price_drop" | "days_on_market_desc" | "recommended";
179
+ limit?: number;
180
+ cursor?: string;
181
+ }, config?: Partial<ClientConfig>): Promise<{
182
+ data: Listing[];
183
+ pagination: Pagination;
184
+ }>;
185
+ /**
186
+ * @throws {ApiError<400, Error>}
187
+ * @throws {ApiError<401, Error>}
188
+ * @throws {ApiError<403, Error>}
189
+ * @throws {ApiError<429, Error>}
190
+ * @throws {ApiError<500, Error>}
191
+ */
192
+ export declare function listingsCount(params: {
193
+ city: string;
194
+ listingType: "rent" | "sale";
195
+ listingCategory?: "residential" | "commercial";
196
+ propertyType?: string[];
197
+ neighborhoodId?: number[];
198
+ beds?: number;
199
+ bedsMin?: number;
200
+ bedsMax?: number;
201
+ bathroomsMin?: number;
202
+ priceMin?: number;
203
+ priceMax?: number;
204
+ areaMin?: number;
205
+ areaMax?: number;
206
+ furnished?: "true" | "false";
207
+ source?: string[];
208
+ bbox?: string;
209
+ updatedSince?: string;
210
+ bathrooms?: number;
211
+ bathroomsMax?: number;
212
+ livingsMin?: number;
213
+ neighborhoodIdExclude?: number[];
214
+ q?: string;
215
+ amenities?: string[];
216
+ amenitiesExclude?: string[];
217
+ photoFeatures?: string[];
218
+ floor?: "ground" | "upper";
219
+ sourceExclude?: string[];
220
+ maxAge?: number;
221
+ verified?: "true" | "false";
222
+ advertiserType?: "company" | "individual";
223
+ compound?: string;
224
+ inCompound?: "true" | "false";
225
+ rentFrequency?: "monthly" | "yearly";
226
+ daysOnMarketMin?: number;
227
+ daysOnMarketMax?: number;
228
+ }, config?: Partial<ClientConfig>): Promise<{
229
+ data: {
230
+ total: number;
231
+ };
232
+ }>;
233
+ /**
234
+ * @throws {ApiError<400, Error>}
235
+ * @throws {ApiError<401, Error>}
236
+ * @throws {ApiError<403, Error>}
237
+ * @throws {ApiError<429, Error>}
238
+ * @throws {ApiError<500, Error>}
239
+ */
240
+ export declare function listingsBatch(params: {
241
+ ids: number[];
242
+ }, config?: Partial<ClientConfig>): Promise<{
243
+ data: Listing[];
244
+ missing_ids: number[];
245
+ }>;
246
+ /**
247
+ * @throws {ApiError<400, Error>}
248
+ * @throws {ApiError<401, Error>}
249
+ * @throws {ApiError<403, Error>}
250
+ * @throws {ApiError<404, Error>}
251
+ * @throws {ApiError<429, Error>}
252
+ * @throws {ApiError<500, Error>}
253
+ */
254
+ export declare function listingsGet(id: number, config?: Partial<ClientConfig>): Promise<{
255
+ data: Listing;
256
+ }>;
257
+ /**
258
+ * @throws {ApiError<400, Error>}
259
+ * @throws {ApiError<401, Error>}
260
+ * @throws {ApiError<403, Error>}
261
+ * @throws {ApiError<404, Error>}
262
+ * @throws {ApiError<429, Error>}
263
+ * @throws {ApiError<500, Error>}
264
+ */
265
+ export declare function listingsPriceHistory(id: number, config?: Partial<ClientConfig>): Promise<{
266
+ data: {
267
+ listing_id: number;
268
+ current_price_yearly_sar: unknown;
269
+ first_seen_at: unknown;
270
+ history_window_days: unknown;
271
+ changes: {
272
+ changed_at: string;
273
+ from_yearly_sar: number;
274
+ to_yearly_sar: unknown;
275
+ }[];
276
+ };
277
+ }>;
278
+ /**
279
+ * @throws {ApiError<400, Error>}
280
+ * @throws {ApiError<401, Error>}
281
+ * @throws {ApiError<403, Error>}
282
+ * @throws {ApiError<429, Error>}
283
+ * @throws {ApiError<500, Error>}
284
+ */
285
+ export declare function marketSummary(params: {
286
+ city: string;
287
+ listingType: "rent" | "sale";
288
+ listingCategory?: "residential" | "commercial";
289
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
290
+ beds?: number;
291
+ neighborhoodId?: number[];
292
+ }, config?: Partial<ClientConfig>): Promise<{
293
+ data: {
294
+ filters: {
295
+ city: string;
296
+ listing_type: string;
297
+ listing_category: unknown;
298
+ property_type: string | null;
299
+ neighborhood_ids: unknown;
300
+ beds: unknown;
301
+ };
302
+ price_basis: string;
303
+ price_source: string;
304
+ sample_size: number;
305
+ median_price_sar: unknown;
306
+ p25_price_sar: unknown;
307
+ p75_price_sar: unknown;
308
+ median_area_sqm: unknown;
309
+ median_price_per_sqm_sar: unknown;
310
+ area_sample_size: number;
311
+ updated_last_3_days: number;
312
+ updated_last_7_days: number;
313
+ by_property_type: {
314
+ property_type: string;
315
+ sample_size: number;
316
+ median_price_sar: unknown;
317
+ }[];
318
+ top_neighborhoods: {
319
+ neighborhood_id: number;
320
+ name_ar: string;
321
+ name_en: string;
322
+ sample_size: number;
323
+ median_price_sar: unknown;
324
+ }[];
325
+ sources: {
326
+ source: string;
327
+ count: number;
328
+ }[];
329
+ window: {
330
+ updated_within_days: number;
331
+ from: string;
332
+ to: string;
333
+ };
334
+ };
335
+ }>;
336
+ /**
337
+ * @throws {ApiError<400, Error>}
338
+ * @throws {ApiError<401, Error>}
339
+ * @throws {ApiError<403, Error>}
340
+ * @throws {ApiError<429, Error>}
341
+ * @throws {ApiError<500, Error>}
342
+ */
343
+ export declare function marketPriceDistribution(params: {
344
+ city: string;
345
+ listingType: "rent" | "sale";
346
+ listingCategory?: "residential" | "commercial";
347
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
348
+ beds?: number;
349
+ neighborhoodId?: number[];
350
+ bucketCount?: number;
351
+ }, config?: Partial<ClientConfig>): Promise<{
352
+ data: {
353
+ filters: {
354
+ city: string;
355
+ listing_type: string;
356
+ listing_category: unknown;
357
+ property_type: string | null;
358
+ neighborhood_ids: unknown;
359
+ beds: unknown;
360
+ };
361
+ price_basis: string;
362
+ price_source: string;
363
+ sample_size: number;
364
+ median_price_sar: unknown;
365
+ mean_price_sar: unknown;
366
+ percentiles_sar: {
367
+ p10: unknown;
368
+ p25: unknown;
369
+ p75: unknown;
370
+ p90: unknown;
371
+ };
372
+ range_sar: {
373
+ min: number;
374
+ max: number;
375
+ };
376
+ buckets: {
377
+ min_sar: number;
378
+ max_sar: number;
379
+ count: number;
380
+ }[];
381
+ below_range_count: number;
382
+ above_range_count: number;
383
+ window: {
384
+ updated_within_days: number;
385
+ from: string;
386
+ to: string;
387
+ };
388
+ };
389
+ }>;
390
+ /**
391
+ * @throws {ApiError<400, Error>}
392
+ * @throws {ApiError<401, Error>}
393
+ * @throws {ApiError<403, Error>}
394
+ * @throws {ApiError<429, Error>}
395
+ * @throws {ApiError<500, Error>}
396
+ */
397
+ export declare function marketAreaDistribution(params: {
398
+ city: string;
399
+ listingType: "rent" | "sale";
400
+ listingCategory?: "residential" | "commercial";
401
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
402
+ beds?: number;
403
+ neighborhoodId?: number[];
404
+ bucketCount?: number;
405
+ }, config?: Partial<ClientConfig>): Promise<{
406
+ data: {
407
+ filters: {
408
+ city: string;
409
+ listing_type: string;
410
+ listing_category: unknown;
411
+ property_type: string | null;
412
+ neighborhood_ids: unknown;
413
+ beds: unknown;
414
+ };
415
+ sample_size: number;
416
+ without_area_count: number;
417
+ median_area_sqm: unknown;
418
+ mean_area_sqm: unknown;
419
+ percentiles_sqm: {
420
+ p10: unknown;
421
+ p25: unknown;
422
+ p75: unknown;
423
+ p90: unknown;
424
+ };
425
+ range_sqm: {
426
+ min: number;
427
+ max: number;
428
+ };
429
+ buckets: {
430
+ min_sqm: number;
431
+ max_sqm: number;
432
+ count: number;
433
+ }[];
434
+ above_range_count: number;
435
+ window: {
436
+ updated_within_days: number;
437
+ from: string;
438
+ to: string;
439
+ };
440
+ };
441
+ }>;
442
+ /**
443
+ * @throws {ApiError<400, Error>}
444
+ * @throws {ApiError<401, Error>}
445
+ * @throws {ApiError<403, Error>}
446
+ * @throws {ApiError<429, Error>}
447
+ * @throws {ApiError<500, Error>}
448
+ */
449
+ export declare function marketSupply(params: {
450
+ city: string;
451
+ listingType: "rent" | "sale";
452
+ listingCategory?: "residential" | "commercial";
453
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
454
+ beds?: number;
455
+ neighborhoodId?: number[];
456
+ }, config?: Partial<ClientConfig>): Promise<{
457
+ data: {
458
+ filters: {
459
+ city: string;
460
+ listing_type: string;
461
+ listing_category: unknown;
462
+ property_type: string | null;
463
+ neighborhood_ids: unknown;
464
+ beds: unknown;
465
+ };
466
+ sample_size: number;
467
+ last_7_days: {
468
+ new_listings: number;
469
+ previous_new_listings: number;
470
+ change_pct: number | null;
471
+ };
472
+ last_30_days: {
473
+ new_listings: number;
474
+ previous_new_listings: number;
475
+ change_pct: number | null;
476
+ };
477
+ window: {
478
+ updated_within_days: number;
479
+ from: string;
480
+ to: string;
481
+ };
482
+ };
483
+ }>;
484
+ /**
485
+ * @throws {ApiError<400, Error>}
486
+ * @throws {ApiError<401, Error>}
487
+ * @throws {ApiError<403, Error>}
488
+ * @throws {ApiError<429, Error>}
489
+ * @throws {ApiError<500, Error>}
490
+ */
491
+ export declare function marketVacancy(params: {
492
+ city: string;
493
+ listingType: "rent" | "sale";
494
+ listingCategory?: "residential" | "commercial";
495
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
496
+ beds?: number;
497
+ neighborhoodId?: number[];
498
+ }, config?: Partial<ClientConfig>): Promise<{
499
+ data: {
500
+ filters: {
501
+ city: string;
502
+ listing_type: string;
503
+ listing_category: unknown;
504
+ property_type: string | null;
505
+ neighborhood_ids: unknown;
506
+ beds: unknown;
507
+ };
508
+ sample_size: number;
509
+ median_days_on_market: unknown;
510
+ on_market_over_30_days: {
511
+ count: number;
512
+ pct: number | null;
513
+ };
514
+ on_market_over_60_days: {
515
+ count: number;
516
+ pct: number | null;
517
+ };
518
+ on_market_over_90_days: {
519
+ count: number;
520
+ pct: number | null;
521
+ };
522
+ window: {
523
+ updated_within_days: number;
524
+ from: string;
525
+ to: string;
526
+ };
527
+ };
528
+ }>;
529
+ /**
530
+ * @throws {ApiError<400, Error>}
531
+ * @throws {ApiError<401, Error>}
532
+ * @throws {ApiError<403, Error>}
533
+ * @throws {ApiError<429, Error>}
534
+ * @throws {ApiError<500, Error>}
535
+ */
536
+ export declare function marketNeighborhoods(params: {
537
+ city: string;
538
+ listingType: "rent" | "sale";
539
+ listingCategory?: "residential" | "commercial";
540
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
541
+ beds?: number;
542
+ minSampleSize?: number;
543
+ }, config?: Partial<ClientConfig>): Promise<{
544
+ data: {
545
+ filters: {
546
+ city: string;
547
+ listing_type: string;
548
+ listing_category: unknown;
549
+ property_type: string | null;
550
+ neighborhood_ids: unknown;
551
+ beds: unknown;
552
+ };
553
+ price_basis: string;
554
+ price_source: string;
555
+ min_sample_size: number;
556
+ neighborhoods: {
557
+ neighborhood_id: number;
558
+ name_ar: string;
559
+ name_en: string;
560
+ center: unknown;
561
+ sample_size: number;
562
+ median_price_sar: unknown;
563
+ p25_price_sar: unknown;
564
+ p75_price_sar: unknown;
565
+ median_price_per_sqm_sar: unknown;
566
+ }[];
567
+ suppressed_neighborhoods: number;
568
+ suppressed_sample_size: number;
569
+ window: {
570
+ updated_within_days: number;
571
+ from: string;
572
+ to: string;
573
+ };
574
+ };
575
+ }>;
576
+ /**
577
+ * @throws {ApiError<400, Error>}
578
+ * @throws {ApiError<401, Error>}
579
+ * @throws {ApiError<403, Error>}
580
+ * @throws {ApiError<429, Error>}
581
+ * @throws {ApiError<500, Error>}
582
+ */
583
+ export declare function marketCommercialRents(params: {
584
+ city: string;
585
+ propertyType?: string[];
586
+ neighborhoodId?: number[];
587
+ areaMin?: number;
588
+ areaMax?: number;
589
+ minSampleSize?: number;
590
+ }, config?: Partial<ClientConfig>): Promise<{
591
+ data: {
592
+ filters: {
593
+ city: string;
594
+ listing_type: string;
595
+ listing_category: string;
596
+ property_types: string[];
597
+ neighborhood_ids: unknown;
598
+ area_min: unknown;
599
+ area_max: unknown;
600
+ };
601
+ price_basis: string;
602
+ price_source: string;
603
+ min_sample_size: number;
604
+ city_totals: {
605
+ property_type: string;
606
+ sample_size: number;
607
+ median_rent_per_sqm_sar: unknown;
608
+ p25_rent_per_sqm_sar: unknown;
609
+ p75_rent_per_sqm_sar: unknown;
610
+ median_area_sqm: unknown;
611
+ median_rent_sar: unknown;
612
+ street_width: {
613
+ sample_size: number;
614
+ median_m: number | null;
615
+ };
616
+ exclusions: {
617
+ listings_in_scope: number;
618
+ lease_takeover: number;
619
+ implausible_area_or_price: number;
620
+ repeated_listing: number;
621
+ outside_price_per_sqm_fence: number;
622
+ };
623
+ price_per_sqm_fence_sar: {
624
+ lower: number;
625
+ upper: unknown;
626
+ };
627
+ }[];
628
+ neighborhoods: {
629
+ neighborhood_id: number;
630
+ name_ar: string;
631
+ name_en: string;
632
+ center: unknown;
633
+ property_type: string;
634
+ sample_size: number;
635
+ median_rent_per_sqm_sar: unknown;
636
+ p25_rent_per_sqm_sar: unknown;
637
+ p75_rent_per_sqm_sar: unknown;
638
+ median_area_sqm: unknown;
639
+ median_rent_sar: unknown;
640
+ street_width: {
641
+ sample_size: number;
642
+ median_m: number | null;
643
+ };
644
+ }[];
645
+ window: {
646
+ updated_within_days: number;
647
+ from: string;
648
+ to: string;
649
+ };
650
+ };
651
+ }>;
652
+ /**
653
+ * @throws {ApiError<400, Error>}
654
+ * @throws {ApiError<401, Error>}
655
+ * @throws {ApiError<403, Error>}
656
+ * @throws {ApiError<429, Error>}
657
+ * @throws {ApiError<500, Error>}
658
+ */
659
+ export declare function officialRegisteredRents(params: {
660
+ city: string;
661
+ neighborhoodId?: number[];
662
+ propertyType?: string[];
663
+ period?: string;
664
+ minSampleSize?: number;
665
+ }, config?: Partial<ClientConfig>): Promise<{
666
+ data: {
667
+ filters: {
668
+ city: string;
669
+ neighborhood_ids: unknown;
670
+ property_types: string[];
671
+ };
672
+ period: {
673
+ label: string;
674
+ start: string;
675
+ end: string;
676
+ };
677
+ available_periods: string[];
678
+ price_source: string;
679
+ price_basis: string;
680
+ statistic: string;
681
+ min_sample_size: number;
682
+ cells: {
683
+ neighborhood_id: unknown;
684
+ neighborhood_name_ar: string;
685
+ neighborhood_name_en: string | null;
686
+ town_ar: string;
687
+ property_type: string;
688
+ property_type_ar: string;
689
+ contract_count: number;
690
+ mean_rent_sar: number;
691
+ mean_rent_per_sqm_sar: number | null;
692
+ source_url: string | null;
693
+ }[];
694
+ coverage: {
695
+ cells: number;
696
+ cells_served: number;
697
+ cells_withheld: number;
698
+ contracts: number;
699
+ contracts_withheld: number;
700
+ cells_served_with_neighborhood_id: number;
701
+ };
702
+ city_totals: {
703
+ property_type: string;
704
+ contract_count: number;
705
+ mean_rent_sar: unknown;
706
+ cells: number;
707
+ towns: number;
708
+ }[];
709
+ attribution: {
710
+ notice: string;
711
+ license: {
712
+ name: string;
713
+ url: string;
714
+ base_license: string;
715
+ base_license_url: string;
716
+ };
717
+ datasets: {
718
+ source: string;
719
+ title: string;
720
+ title_en: string;
721
+ publisher: string;
722
+ urls: string[];
723
+ }[];
724
+ };
725
+ };
726
+ }>;
727
+ /**
728
+ * @throws {ApiError<400, Error>}
729
+ * @throws {ApiError<401, Error>}
730
+ * @throws {ApiError<403, Error>}
731
+ * @throws {ApiError<429, Error>}
732
+ * @throws {ApiError<500, Error>}
733
+ */
734
+ export declare function officialMarketIndex(params?: {
735
+ series?: string[];
736
+ city?: string;
737
+ release?: string;
738
+ }, config?: Partial<ClientConfig>): Promise<{
739
+ data: {
740
+ release: {
741
+ slug: string;
742
+ revision: number;
743
+ published_at: string;
744
+ methodology_version: string;
745
+ revision_note: string | null;
746
+ headline: string | null;
747
+ url: string;
748
+ methodology_url: string;
749
+ };
750
+ available_releases: string[];
751
+ notes: string[];
752
+ series: {
753
+ series: string;
754
+ label: string;
755
+ metric: string;
756
+ statistic: string;
757
+ kind: string;
758
+ unit: string;
759
+ price_source: string;
760
+ property: string;
761
+ source_key: string;
762
+ source: string;
763
+ geography: string;
764
+ city: string | null;
765
+ granularity: string;
766
+ sample_unit: string;
767
+ min_sample_size: number;
768
+ withheld_periods: string[];
769
+ points: {
770
+ period: string;
771
+ period_start: string;
772
+ value: number;
773
+ sample_size: number;
774
+ coverage_flag: CoverageFlag;
775
+ }[];
776
+ }[];
777
+ attribution: unknown;
778
+ };
779
+ }>;
780
+ /**
781
+ * @throws {ApiError<400, Error>}
782
+ * @throws {ApiError<401, Error>}
783
+ * @throws {ApiError<403, Error>}
784
+ * @throws {ApiError<404, Error>}
785
+ * @throws {ApiError<429, Error>}
786
+ * @throws {ApiError<500, Error>}
787
+ */
788
+ export declare function analyticsListingComparables(id: number, params?: {
789
+ limit?: number;
790
+ }, config?: Partial<ClientConfig>): Promise<{
791
+ data: {
792
+ listing_id: number;
793
+ price_basis: string;
794
+ price_source: string;
795
+ unavailable_reason: unknown;
796
+ criteria: {
797
+ max_distance_m: number;
798
+ area_range_sqm: unknown;
799
+ same_bedrooms: boolean;
800
+ };
801
+ summary: {
802
+ sample_size: number;
803
+ median_price_sar: unknown;
804
+ listing_price_sar: unknown;
805
+ diff_from_median_pct: number | null;
806
+ };
807
+ comparables: {
808
+ listing: Listing;
809
+ similarity: {
810
+ distance_m: unknown;
811
+ area_diff_pct: number | null;
812
+ price_diff_pct: number | null;
813
+ };
814
+ }[];
815
+ };
816
+ }>;
817
+ /**
818
+ * @throws {ApiError<400, Error>}
819
+ * @throws {ApiError<401, Error>}
820
+ * @throws {ApiError<403, Error>}
821
+ * @throws {ApiError<404, Error>}
822
+ * @throws {ApiError<429, Error>}
823
+ * @throws {ApiError<500, Error>}
824
+ */
825
+ export declare function analyticsListingMarketPosition(id: number, config?: Partial<ClientConfig>): Promise<{
826
+ data: {
827
+ listing_id: number;
828
+ price_basis: string;
829
+ price_source: string;
830
+ price_sar: unknown;
831
+ price_per_sqm_sar: unknown;
832
+ cohort: {
833
+ city: string;
834
+ listing_type: unknown;
835
+ listing_category: unknown;
836
+ property_type: string | null;
837
+ neighborhood_ids: unknown;
838
+ beds: unknown;
839
+ };
840
+ basis: unknown;
841
+ price_percentile: unknown;
842
+ diff_from_median_pct: number | null;
843
+ neighborhood: unknown;
844
+ city: unknown;
845
+ listing_in_sample: boolean;
846
+ window: {
847
+ updated_within_days: number;
848
+ from: string;
849
+ to: string;
850
+ };
851
+ };
852
+ }>;
853
+ /**
854
+ * @throws {ApiError<400, Error>}
855
+ * @throws {ApiError<401, Error>}
856
+ * @throws {ApiError<403, Error>}
857
+ * @throws {ApiError<404, Error>}
858
+ * @throws {ApiError<429, Error>}
859
+ * @throws {ApiError<500, Error>}
860
+ */
861
+ export declare function analyticsListingPriceBand(id: number, config?: Partial<ClientConfig>): Promise<{
862
+ data: {
863
+ listing_id: number;
864
+ status: string;
865
+ price_basis: string;
866
+ price_source: string;
867
+ price_sar: unknown;
868
+ price_per_sqm_sar: unknown;
869
+ band: unknown;
870
+ position: unknown;
871
+ stability: unknown;
872
+ cohort: unknown;
873
+ methodology: unknown;
874
+ };
875
+ }>;
876
+ /**
877
+ * @throws {ApiError<400, Error>}
878
+ * @throws {ApiError<401, Error>}
879
+ * @throws {ApiError<403, Error>}
880
+ * @throws {ApiError<429, Error>}
881
+ * @throws {ApiError<500, Error>}
882
+ */
883
+ export declare function analyticsBelowMarket(params: {
884
+ city: string;
885
+ listingType: "rent" | "sale";
886
+ propertyType?: "apartment" | "villa" | "floor" | "duplex";
887
+ beds?: number;
888
+ neighborhoodId?: number[];
889
+ minDiscountPct?: number;
890
+ maxDiscountPct?: number;
891
+ limit?: number;
892
+ cursor?: string;
893
+ }, config?: Partial<ClientConfig>): Promise<{
894
+ data: {
895
+ listing: Listing;
896
+ comparison: {
897
+ median_price_sar: unknown;
898
+ p25_price_sar: unknown;
899
+ p75_price_sar: unknown;
900
+ percent_vs_median: number | null;
901
+ sample_size: number;
902
+ radius_m: unknown;
903
+ look_back_days: unknown;
904
+ price_basis: string;
905
+ price_source: string;
906
+ };
907
+ }[];
908
+ pagination: Pagination;
909
+ }>;
910
+ /**
911
+ * @deprecated
912
+ * @throws {ApiError<400, Error>}
913
+ * @throws {ApiError<401, Error>}
914
+ * @throws {ApiError<403, Error>}
915
+ * @throws {ApiError<429, Error>}
916
+ * @throws {ApiError<500, Error>}
917
+ */
918
+ export declare function analyticsDeals(params: {
919
+ city: string;
920
+ listingType: "rent" | "sale";
921
+ propertyType?: "apartment" | "villa" | "floor" | "duplex";
922
+ beds?: number;
923
+ neighborhoodId?: number[];
924
+ minDiscountPct?: number;
925
+ maxDiscountPct?: number;
926
+ limit?: number;
927
+ cursor?: string;
928
+ }, config?: Partial<ClientConfig>): Promise<{
929
+ data: {
930
+ listing: Listing;
931
+ comparison: {
932
+ median_price_sar: unknown;
933
+ p25_price_sar: unknown;
934
+ p75_price_sar: unknown;
935
+ percent_vs_median: number | null;
936
+ sample_size: number;
937
+ radius_m: unknown;
938
+ look_back_days: unknown;
939
+ price_basis: string;
940
+ price_source: string;
941
+ };
942
+ }[];
943
+ pagination: Pagination;
944
+ }>;
945
+ /**
946
+ * @throws {ApiError<400, Error>}
947
+ * @throws {ApiError<401, Error>}
948
+ * @throws {ApiError<403, Error>}
949
+ * @throws {ApiError<429, Error>}
950
+ * @throws {ApiError<500, Error>}
951
+ */
952
+ export declare function analyticsRentalYield(params: {
953
+ city: string;
954
+ propertyType: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
955
+ beds?: number;
956
+ neighborhoodId?: number[];
957
+ minSampleSize?: number;
958
+ }, config?: Partial<ClientConfig>): Promise<{
959
+ data: {
960
+ filters: {
961
+ city: string;
962
+ listing_type: unknown;
963
+ listing_category: unknown;
964
+ property_type: string | null;
965
+ neighborhood_ids: unknown;
966
+ beds: unknown;
967
+ };
968
+ overall: {
969
+ median_yearly_rent_sar: unknown;
970
+ median_sale_price_sar: unknown;
971
+ gross_yield_pct: number | null;
972
+ rent_sample_size: number;
973
+ sale_sample_size: number;
974
+ };
975
+ neighborhoods: {
976
+ median_yearly_rent_sar: unknown;
977
+ median_sale_price_sar: unknown;
978
+ gross_yield_pct: number | null;
979
+ rent_sample_size: number;
980
+ sale_sample_size: number;
981
+ neighborhood_id: number;
982
+ name_en: string | null;
983
+ name_ar: string | null;
984
+ }[];
985
+ price_source: string;
986
+ window: {
987
+ updated_within_days: number;
988
+ from: string;
989
+ to: string;
990
+ };
991
+ };
992
+ }>;
993
+ /**
994
+ * @throws {ApiError<400, Error>}
995
+ * @throws {ApiError<401, Error>}
996
+ * @throws {ApiError<403, Error>}
997
+ * @throws {ApiError<429, Error>}
998
+ * @throws {ApiError<500, Error>}
999
+ */
1000
+ export declare function analyticsTrends(params: {
1001
+ city: string;
1002
+ listingType: "rent" | "sale";
1003
+ listingCategory?: "residential" | "commercial";
1004
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
1005
+ beds?: number;
1006
+ neighborhoodId?: number[];
1007
+ months?: number;
1008
+ basis?: "on_market" | "new_listings";
1009
+ }, config?: Partial<ClientConfig>): Promise<{
1010
+ data: {
1011
+ filters: {
1012
+ city: string;
1013
+ listing_type: unknown;
1014
+ listing_category: unknown;
1015
+ property_type: string | null;
1016
+ neighborhood_ids: unknown;
1017
+ beds: unknown;
1018
+ };
1019
+ price_basis: string;
1020
+ price_source: string;
1021
+ basis: string;
1022
+ series: {
1023
+ neighborhood_id: unknown;
1024
+ name_en: string | null;
1025
+ name_ar: string | null;
1026
+ change_pct: number | null;
1027
+ index_change_pct: number | null;
1028
+ index_base_month: string | null;
1029
+ points: {
1030
+ month: string;
1031
+ sample_size: number;
1032
+ median_price_sar: unknown;
1033
+ p25_price_sar: unknown;
1034
+ p75_price_sar: unknown;
1035
+ price_index: number | null;
1036
+ index_cells: number;
1037
+ index_sample_size: number;
1038
+ partial: boolean;
1039
+ coverage: string;
1040
+ }[];
1041
+ }[];
1042
+ history: {
1043
+ starts_on: string;
1044
+ first_complete_month: string;
1045
+ };
1046
+ methodology: string;
1047
+ };
1048
+ }>;
1049
+ /**
1050
+ * @throws {ApiError<400, Error>}
1051
+ * @throws {ApiError<401, Error>}
1052
+ * @throws {ApiError<403, Error>}
1053
+ * @throws {ApiError<429, Error>}
1054
+ * @throws {ApiError<500, Error>}
1055
+ */
1056
+ export declare function analyticsNeighborhoodsCompare(params: {
1057
+ city: string;
1058
+ listingType: "rent" | "sale";
1059
+ listingCategory?: "residential" | "commercial";
1060
+ propertyType?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building";
1061
+ beds?: number;
1062
+ neighborhoodId: number[];
1063
+ }, config?: Partial<ClientConfig>): Promise<{
1064
+ data: {
1065
+ filters: {
1066
+ city: string;
1067
+ listing_type: unknown;
1068
+ listing_category: unknown;
1069
+ property_type: string | null;
1070
+ neighborhood_ids: unknown;
1071
+ beds: unknown;
1072
+ };
1073
+ price_basis: string;
1074
+ price_source: string;
1075
+ neighborhoods: {
1076
+ neighborhood_id: number;
1077
+ name_en: string;
1078
+ name_ar: string;
1079
+ sample_size: number;
1080
+ median_price_sar: unknown;
1081
+ p25_price_sar: unknown;
1082
+ p75_price_sar: unknown;
1083
+ median_area_sqm: unknown;
1084
+ median_price_per_sqm_sar: unknown;
1085
+ amenity_share_pct: {
1086
+ ac: number | null;
1087
+ parking: number | null;
1088
+ pool: number | null;
1089
+ lift: number | null;
1090
+ furnished: number | null;
1091
+ };
1092
+ bedrooms_mix: {
1093
+ "0": number;
1094
+ "1": number;
1095
+ "2": number;
1096
+ "3": number;
1097
+ "4": number;
1098
+ "5_plus": number;
1099
+ };
1100
+ property_type_mix: Record<string, number>;
1101
+ median_sale_price_sar?: unknown;
1102
+ sale_sample_size?: number;
1103
+ gross_yield_pct?: number | null;
1104
+ }[];
1105
+ window: {
1106
+ updated_within_days: number;
1107
+ from: string;
1108
+ to: string;
1109
+ };
1110
+ };
1111
+ }>;
1112
+ /**
1113
+ * @throws {ApiError<400, Error>}
1114
+ * @throws {ApiError<401, Error>}
1115
+ * @throws {ApiError<403, Error>}
1116
+ * @throws {ApiError<429, Error>}
1117
+ * @throws {ApiError<500, Error>}
1118
+ */
1119
+ export declare function transactionsSearch(params: {
1120
+ city: string;
1121
+ neighborhoodId?: number[];
1122
+ landUse?: string[];
1123
+ monthFrom?: string;
1124
+ monthTo?: string;
1125
+ priceMin?: number;
1126
+ priceMax?: number;
1127
+ areaMin?: number;
1128
+ areaMax?: number;
1129
+ pricePerSqmMin?: number;
1130
+ pricePerSqmMax?: number;
1131
+ sort?: "month_desc" | "month_asc";
1132
+ limit?: number;
1133
+ cursor?: string;
1134
+ }, config?: Partial<ClientConfig>): Promise<{
1135
+ data: Transaction[];
1136
+ pagination: Pagination;
1137
+ price_basis: string;
1138
+ price_source: string;
1139
+ coverage: TransactionCoverage;
1140
+ attribution: TransactionAttribution;
1141
+ }>;
1142
+ /**
1143
+ * @throws {ApiError<400, Error>}
1144
+ * @throws {ApiError<401, Error>}
1145
+ * @throws {ApiError<403, Error>}
1146
+ * @throws {ApiError<429, Error>}
1147
+ * @throws {ApiError<500, Error>}
1148
+ */
1149
+ export declare function marketTransactions(params: {
1150
+ city: string;
1151
+ neighborhoodId?: number[];
1152
+ groupBy?: "city" | "neighborhood";
1153
+ landUse?: string[];
1154
+ quarterFrom?: string;
1155
+ quarterTo?: string;
1156
+ minSampleSize?: number;
1157
+ }, config?: Partial<ClientConfig>): Promise<{
1158
+ data: {
1159
+ filters: {
1160
+ city: string;
1161
+ neighborhood_ids: unknown;
1162
+ group_by: string;
1163
+ land_use: unknown;
1164
+ };
1165
+ price_basis: string;
1166
+ price_source: string;
1167
+ window: {
1168
+ quarter_from: string;
1169
+ quarter_to: string;
1170
+ };
1171
+ min_sample_size: number;
1172
+ cells: {
1173
+ quarter: string;
1174
+ period_start: string;
1175
+ neighborhood: unknown;
1176
+ land_use: string;
1177
+ deal_count: number;
1178
+ suppressed: boolean;
1179
+ complete: boolean;
1180
+ coverage_flag: CoverageFlag;
1181
+ median_price_per_sqm_sar: unknown;
1182
+ p25_price_per_sqm_sar: unknown;
1183
+ p75_price_per_sqm_sar: unknown;
1184
+ price_per_sqm_sample_size: number;
1185
+ median_price_sar: unknown;
1186
+ p25_price_sar: unknown;
1187
+ p75_price_sar: unknown;
1188
+ median_area_sqm: unknown;
1189
+ }[];
1190
+ coverage: TransactionCoverage;
1191
+ attribution: TransactionAttribution;
1192
+ };
1193
+ }>;
1194
+ /**
1195
+ * @throws {ApiError<400, Error>}
1196
+ * @throws {ApiError<401, Error>}
1197
+ * @throws {ApiError<403, Error>}
1198
+ * @throws {ApiError<429, Error>}
1199
+ * @throws {ApiError<500, Error>}
1200
+ */
1201
+ export declare function marketLandPrices(params: {
1202
+ city: string;
1203
+ neighborhoodId?: number[];
1204
+ groupBy?: "city" | "neighborhood";
1205
+ landUse?: "residential" | "commercial";
1206
+ quarterFrom?: string;
1207
+ quarterTo?: string;
1208
+ minSampleSize?: number;
1209
+ }, config?: Partial<ClientConfig>): Promise<{
1210
+ data: {
1211
+ filters: {
1212
+ city: string;
1213
+ neighborhood_ids: unknown;
1214
+ group_by: string;
1215
+ land_use: string;
1216
+ };
1217
+ asset: string;
1218
+ price_basis: string;
1219
+ price_source: string;
1220
+ window: {
1221
+ quarter_from: string;
1222
+ quarter_to: string;
1223
+ };
1224
+ min_sample_size: number;
1225
+ series: {
1226
+ neighborhood: unknown;
1227
+ points: {
1228
+ quarter: string;
1229
+ period_start: string;
1230
+ deal_count: number;
1231
+ suppressed: boolean;
1232
+ complete: boolean;
1233
+ coverage_flag: CoverageFlag;
1234
+ median_price_per_sqm_sar: unknown;
1235
+ p25_price_per_sqm_sar: unknown;
1236
+ p75_price_per_sqm_sar: unknown;
1237
+ median_plot_area_sqm: unknown;
1238
+ change_qoq_pct: number | null;
1239
+ change_yoy_pct: number | null;
1240
+ }[];
1241
+ latest: unknown;
1242
+ }[];
1243
+ coverage: TransactionCoverage;
1244
+ attribution: TransactionAttribution;
1245
+ };
1246
+ }>;
1247
+ /**
1248
+ * @throws {ApiError<400, Error>}
1249
+ * @throws {ApiError<401, Error>}
1250
+ * @throws {ApiError<403, Error>}
1251
+ * @throws {ApiError<429, Error>}
1252
+ * @throws {ApiError<500, Error>}
1253
+ */
1254
+ export declare function projectsSearch(params?: {
1255
+ city?: string;
1256
+ neighborhoodId?: number[];
1257
+ developer?: string;
1258
+ status?: string[];
1259
+ projectType?: "off_plan" | "ready";
1260
+ listingCategory?: "residential" | "commercial";
1261
+ features?: string[];
1262
+ banks?: string[];
1263
+ q?: string;
1264
+ priceMin?: number;
1265
+ priceMax?: number;
1266
+ sort?: "updated_desc" | "price_asc" | "price_desc";
1267
+ limit?: number;
1268
+ cursor?: string;
1269
+ }, config?: Partial<ClientConfig>): Promise<{
1270
+ data: {
1271
+ id: number;
1272
+ url: string | null;
1273
+ name_ar: string | null;
1274
+ name_en: string | null;
1275
+ developer: string | null;
1276
+ status: unknown;
1277
+ project_type: unknown;
1278
+ listing_category: string;
1279
+ location: {
1280
+ city: string | null;
1281
+ city_name_en: string | null;
1282
+ neighborhood_id: unknown;
1283
+ neighborhood_name_ar: string | null;
1284
+ neighborhood_name_en: string | null;
1285
+ lat: number | null;
1286
+ lng: number | null;
1287
+ };
1288
+ price: {
1289
+ starting_sar: unknown;
1290
+ from_sar: unknown;
1291
+ to_sar: unknown;
1292
+ };
1293
+ area_sqm: {
1294
+ min: number | null;
1295
+ max: number | null;
1296
+ };
1297
+ advertised_unit_count: unknown;
1298
+ linked_units: {
1299
+ count: number;
1300
+ bedrooms_min: unknown;
1301
+ bedrooms_max: unknown;
1302
+ };
1303
+ cover_image: string | null;
1304
+ last_seen_at: unknown;
1305
+ }[];
1306
+ pagination: Pagination;
1307
+ }>;
1308
+ /**
1309
+ * @throws {ApiError<400, Error>}
1310
+ * @throws {ApiError<401, Error>}
1311
+ * @throws {ApiError<403, Error>}
1312
+ * @throws {ApiError<404, Error>}
1313
+ * @throws {ApiError<429, Error>}
1314
+ * @throws {ApiError<500, Error>}
1315
+ */
1316
+ export declare function projectsGet(id: number, config?: Partial<ClientConfig>): Promise<{
1317
+ data: {
1318
+ id: number;
1319
+ url: string | null;
1320
+ name_ar: string | null;
1321
+ name_en: string | null;
1322
+ developer: string | null;
1323
+ status: unknown;
1324
+ project_type: unknown;
1325
+ listing_category: string;
1326
+ location: {
1327
+ city: string | null;
1328
+ city_name_en: string | null;
1329
+ neighborhood_id: unknown;
1330
+ neighborhood_name_ar: string | null;
1331
+ neighborhood_name_en: string | null;
1332
+ lat: number | null;
1333
+ lng: number | null;
1334
+ };
1335
+ price: {
1336
+ starting_sar: unknown;
1337
+ from_sar: unknown;
1338
+ to_sar: unknown;
1339
+ };
1340
+ area_sqm: {
1341
+ min: number | null;
1342
+ max: number | null;
1343
+ };
1344
+ advertised_unit_count: unknown;
1345
+ last_seen_at: unknown;
1346
+ description: string | null;
1347
+ description_en: string | null;
1348
+ address: string | null;
1349
+ boundary: unknown;
1350
+ images: string[];
1351
+ features: string[];
1352
+ supported_banks: string[];
1353
+ warranty: {
1354
+ item: string;
1355
+ duration: string | null;
1356
+ }[];
1357
+ links: {
1358
+ brochure: string | null;
1359
+ virtual_tour: string | null;
1360
+ video: string | null;
1361
+ };
1362
+ source: {
1363
+ name: string;
1364
+ url: string | null;
1365
+ };
1366
+ linked_units: {
1367
+ count: number;
1368
+ for_sale: number;
1369
+ for_rent: number;
1370
+ bedrooms_min: unknown;
1371
+ bedrooms_max: unknown;
1372
+ area_sqm_min: number | null;
1373
+ area_sqm_max: number | null;
1374
+ sale_price_sar_min: unknown;
1375
+ sale_price_sar_max: unknown;
1376
+ yearly_rent_sar_min: unknown;
1377
+ yearly_rent_sar_max: unknown;
1378
+ };
1379
+ };
1380
+ }>;
1381
+ /**
1382
+ * @throws {ApiError<400, Error>}
1383
+ * @throws {ApiError<401, Error>}
1384
+ * @throws {ApiError<403, Error>}
1385
+ * @throws {ApiError<404, Error>}
1386
+ * @throws {ApiError<429, Error>}
1387
+ * @throws {ApiError<500, Error>}
1388
+ */
1389
+ export declare function projectsUnits(id: number, params?: {
1390
+ listingType?: "sale" | "rent";
1391
+ propertyType?: string[];
1392
+ bedrooms?: number;
1393
+ bedroomsMin?: number;
1394
+ bedroomsMax?: number;
1395
+ bathrooms?: number;
1396
+ bathroomsMin?: number;
1397
+ priceMin?: number;
1398
+ priceMax?: number;
1399
+ areaMin?: number;
1400
+ areaMax?: number;
1401
+ sort?: "price_asc" | "price_desc" | "newest" | "area_desc" | "bedrooms_desc";
1402
+ limit?: number;
1403
+ cursor?: string;
1404
+ }, config?: Partial<ClientConfig>): Promise<{
1405
+ data: {
1406
+ id: number;
1407
+ url: string;
1408
+ project: {
1409
+ id: number;
1410
+ name_ar: string | null;
1411
+ name_en: string | null;
1412
+ };
1413
+ link: {
1414
+ type: string;
1415
+ confidence: number;
1416
+ };
1417
+ title: string | null;
1418
+ listing_type: string;
1419
+ property_type: string;
1420
+ sale_price_sar: unknown;
1421
+ yearly_rent_sar: unknown;
1422
+ bedrooms: unknown;
1423
+ bathrooms: unknown;
1424
+ area_sqm: number | null;
1425
+ floor: string | null;
1426
+ location: {
1427
+ city: string | null;
1428
+ city_name_en: string | null;
1429
+ neighborhood_id: unknown;
1430
+ neighborhood_name_ar: string | null;
1431
+ neighborhood_name_en: string | null;
1432
+ lat: number | null;
1433
+ lng: number | null;
1434
+ };
1435
+ images: string[];
1436
+ source: {
1437
+ name: string;
1438
+ url: string | null;
1439
+ };
1440
+ first_seen_at: unknown;
1441
+ last_seen_at: unknown;
1442
+ }[];
1443
+ pagination: Pagination;
1444
+ }>;
1445
+ /**
1446
+ * @throws {ApiError<400, Error>}
1447
+ * @throws {ApiError<401, Error>}
1448
+ * @throws {ApiError<403, Error>}
1449
+ * @throws {ApiError<429, Error>}
1450
+ * @throws {ApiError<500, Error>}
1451
+ */
1452
+ export declare function projectsUnitsSearch(params?: {
1453
+ city?: string;
1454
+ neighborhoodId?: number[];
1455
+ developer?: string;
1456
+ status?: string[];
1457
+ projectType?: "off_plan" | "ready";
1458
+ listingCategory?: "residential" | "commercial";
1459
+ features?: string[];
1460
+ banks?: string[];
1461
+ listingType?: "sale" | "rent";
1462
+ propertyType?: string[];
1463
+ bedrooms?: number;
1464
+ bedroomsMin?: number;
1465
+ bedroomsMax?: number;
1466
+ bathrooms?: number;
1467
+ bathroomsMin?: number;
1468
+ priceMin?: number;
1469
+ priceMax?: number;
1470
+ areaMin?: number;
1471
+ areaMax?: number;
1472
+ sort?: "price_asc" | "price_desc" | "newest" | "area_desc" | "bedrooms_desc";
1473
+ limit?: number;
1474
+ cursor?: string;
1475
+ }, config?: Partial<ClientConfig>): Promise<{
1476
+ data: {
1477
+ id: number;
1478
+ url: string;
1479
+ project: {
1480
+ id: number;
1481
+ name_ar: string | null;
1482
+ name_en: string | null;
1483
+ };
1484
+ link: {
1485
+ type: string;
1486
+ confidence: number;
1487
+ };
1488
+ title: string | null;
1489
+ listing_type: string;
1490
+ property_type: string;
1491
+ sale_price_sar: unknown;
1492
+ yearly_rent_sar: unknown;
1493
+ bedrooms: unknown;
1494
+ bathrooms: unknown;
1495
+ area_sqm: number | null;
1496
+ floor: string | null;
1497
+ location: {
1498
+ city: string | null;
1499
+ city_name_en: string | null;
1500
+ neighborhood_id: unknown;
1501
+ neighborhood_name_ar: string | null;
1502
+ neighborhood_name_en: string | null;
1503
+ lat: number | null;
1504
+ lng: number | null;
1505
+ };
1506
+ images: string[];
1507
+ source: {
1508
+ name: string;
1509
+ url: string | null;
1510
+ };
1511
+ first_seen_at: unknown;
1512
+ last_seen_at: unknown;
1513
+ }[];
1514
+ pagination: Pagination;
1515
+ }>;
1516
+ /**
1517
+ * @throws {ApiError<400, Error>}
1518
+ * @throws {ApiError<401, Error>}
1519
+ * @throws {ApiError<403, Error>}
1520
+ * @throws {ApiError<429, Error>}
1521
+ * @throws {ApiError<500, Error>}
1522
+ */
1523
+ export declare function projectsDevelopers(params?: {
1524
+ city?: string;
1525
+ limit?: number;
1526
+ cursor?: string;
1527
+ }, config?: Partial<ClientConfig>): Promise<{
1528
+ data: {
1529
+ name: string;
1530
+ project_count: number;
1531
+ active_project_count: number;
1532
+ cities: string[];
1533
+ }[];
1534
+ pagination: Pagination;
1535
+ }>;
1536
+ /**
1537
+ * @throws {ApiError<400, Error>}
1538
+ * @throws {ApiError<401, Error>}
1539
+ * @throws {ApiError<403, Error>}
1540
+ * @throws {ApiError<429, Error>}
1541
+ * @throws {ApiError<500, Error>}
1542
+ */
1543
+ export declare function exportsList(params?: {
1544
+ limit?: number;
1545
+ }, config?: Partial<ClientConfig>): Promise<{
1546
+ data: Export[];
1547
+ }>;
1548
+ /**
1549
+ * @throws {ApiError<400, Error>}
1550
+ * @throws {ApiError<401, Error>}
1551
+ * @throws {ApiError<403, Error>}
1552
+ * @throws {ApiError<409, Error>}
1553
+ * @throws {ApiError<429, Error>}
1554
+ * @throws {ApiError<500, Error>}
1555
+ */
1556
+ export declare function exportsCreate(body: ExportRequest, params?: {
1557
+ idempotencyKey?: string;
1558
+ }, config?: Partial<ClientConfig>): Promise<{
1559
+ data: Export;
1560
+ }>;
1561
+ /**
1562
+ * @throws {ApiError<400, Error>}
1563
+ * @throws {ApiError<401, Error>}
1564
+ * @throws {ApiError<403, Error>}
1565
+ * @throws {ApiError<404, Error>}
1566
+ * @throws {ApiError<429, Error>}
1567
+ * @throws {ApiError<500, Error>}
1568
+ */
1569
+ export declare function exportsGet(exportId: string, config?: Partial<ClientConfig>): Promise<{
1570
+ data: Export;
1571
+ }>;
1572
+ /**
1573
+ * @throws {ApiError<400, Error>}
1574
+ * @throws {ApiError<401, Error>}
1575
+ * @throws {ApiError<403, Error>}
1576
+ * @throws {ApiError<429, Error>}
1577
+ * @throws {ApiError<500, Error>}
1578
+ */
1579
+ export declare function organizationGet(config?: Partial<ClientConfig>): Promise<{
1580
+ data: {
1581
+ id: string;
1582
+ name: string;
1583
+ slug: string;
1584
+ status: string;
1585
+ plan: {
1586
+ id: string;
1587
+ name: string;
1588
+ scopes: string[];
1589
+ rate_limit_per_minute: number;
1590
+ monthly_quota_units: unknown;
1591
+ max_page_size: number;
1592
+ max_active_keys: number;
1593
+ };
1594
+ usage: {
1595
+ month_units: number;
1596
+ resets_in_seconds: number;
1597
+ };
1598
+ };
1599
+ }>;
1600
+ /**
1601
+ * @throws {ApiError<400, Error>}
1602
+ * @throws {ApiError<401, Error>}
1603
+ * @throws {ApiError<403, Error>}
1604
+ * @throws {ApiError<429, Error>}
1605
+ * @throws {ApiError<500, Error>}
1606
+ */
1607
+ export declare function organizationKeysList(config?: Partial<ClientConfig>): Promise<{
1608
+ data: {
1609
+ id: string;
1610
+ name: string;
1611
+ hint: string;
1612
+ project_id: string;
1613
+ scopes: unknown;
1614
+ expires_at: unknown;
1615
+ created_at: string;
1616
+ last_used_at: unknown;
1617
+ }[];
1618
+ }>;
1619
+ /**
1620
+ * @throws {ApiError<400, Error>}
1621
+ * @throws {ApiError<401, Error>}
1622
+ * @throws {ApiError<403, Error>}
1623
+ * @throws {ApiError<409, Error>}
1624
+ * @throws {ApiError<429, Error>}
1625
+ * @throws {ApiError<500, Error>}
1626
+ */
1627
+ export declare function organizationKeysCreate(body: {
1628
+ name: string;
1629
+ project_id?: string;
1630
+ scopes?: string[];
1631
+ expires_at?: string;
1632
+ }, params?: {
1633
+ idempotencyKey?: string;
1634
+ }, config?: Partial<ClientConfig>): Promise<{
1635
+ data: {
1636
+ id: string;
1637
+ name: string;
1638
+ key: string;
1639
+ hint: string;
1640
+ };
1641
+ }>;
1642
+ /**
1643
+ * @throws {ApiError<400, Error>}
1644
+ * @throws {ApiError<401, Error>}
1645
+ * @throws {ApiError<403, Error>}
1646
+ * @throws {ApiError<404, Error>}
1647
+ * @throws {ApiError<409, Error>}
1648
+ * @throws {ApiError<429, Error>}
1649
+ * @throws {ApiError<500, Error>}
1650
+ */
1651
+ export declare function organizationKeysRevoke(keyId: string, params?: {
1652
+ idempotencyKey?: string;
1653
+ }, config?: Partial<ClientConfig>): Promise<{
1654
+ data: {
1655
+ id: string;
1656
+ revoked: boolean;
1657
+ };
1658
+ }>;
1659
+ /**
1660
+ * @throws {ApiError<400, Error>}
1661
+ * @throws {ApiError<401, Error>}
1662
+ * @throws {ApiError<403, Error>}
1663
+ * @throws {ApiError<429, Error>}
1664
+ * @throws {ApiError<500, Error>}
1665
+ */
1666
+ export declare function organizationProjectsList(config?: Partial<ClientConfig>): Promise<{
1667
+ data: {
1668
+ id: string;
1669
+ name: string;
1670
+ monthly_unit_cap: unknown;
1671
+ active_keys: number;
1672
+ month_units: number;
1673
+ created_at: string;
1674
+ }[];
1675
+ }>;
1676
+ /**
1677
+ * @throws {ApiError<400, Error>}
1678
+ * @throws {ApiError<401, Error>}
1679
+ * @throws {ApiError<403, Error>}
1680
+ * @throws {ApiError<429, Error>}
1681
+ * @throws {ApiError<500, Error>}
1682
+ */
1683
+ export declare function organizationUsage(params?: {
1684
+ days?: "7" | "30" | "90";
1685
+ }, config?: Partial<ClientConfig>): Promise<{
1686
+ data: {
1687
+ day: string;
1688
+ key_id: string | null;
1689
+ endpoint: string;
1690
+ status_class: number;
1691
+ requests: number;
1692
+ units: number;
1693
+ }[];
1694
+ }>;
1695
+ /**
1696
+ * @throws {ApiError<400, Error>}
1697
+ * @throws {ApiError<401, Error>}
1698
+ * @throws {ApiError<403, Error>}
1699
+ * @throws {ApiError<429, Error>}
1700
+ * @throws {ApiError<500, Error>}
1701
+ */
1702
+ export declare function organizationMembersList(config?: Partial<ClientConfig>): Promise<{
1703
+ data: {
1704
+ members: {
1705
+ email: string;
1706
+ name: string | null;
1707
+ role: string;
1708
+ joined_at: string;
1709
+ }[];
1710
+ invitations: {
1711
+ email: string;
1712
+ role: string;
1713
+ expires_at: string;
1714
+ }[];
1715
+ };
1716
+ }>;
1717
+ /**
1718
+ * @throws {ApiError<400, Error>}
1719
+ * @throws {ApiError<401, Error>}
1720
+ * @throws {ApiError<403, Error>}
1721
+ * @throws {ApiError<429, Error>}
1722
+ * @throws {ApiError<500, Error>}
1723
+ */
1724
+ export declare function organizationAuditEventsList(params?: {
1725
+ cursor?: string;
1726
+ }, config?: Partial<ClientConfig>): Promise<{
1727
+ data: {
1728
+ action: string;
1729
+ target: string | null;
1730
+ actor: string | null;
1731
+ actor_key_id: string | null;
1732
+ ip: string | null;
1733
+ created_at: string;
1734
+ }[];
1735
+ pagination: {
1736
+ next_cursor: string | null;
1737
+ has_more: boolean;
1738
+ };
1739
+ }>;
1740
+ /**
1741
+ * @throws {ApiError<400, Error>}
1742
+ * @throws {ApiError<401, Error>}
1743
+ * @throws {ApiError<403, Error>}
1744
+ * @throws {ApiError<429, Error>}
1745
+ * @throws {ApiError<500, Error>}
1746
+ */
1747
+ export declare function organizationRequestLogsList(params?: {
1748
+ requestId?: string;
1749
+ keyId?: string;
1750
+ route?: string;
1751
+ status?: "errors" | "2xx" | "4xx" | "5xx";
1752
+ since?: string;
1753
+ until?: string;
1754
+ limit?: number;
1755
+ cursor?: string;
1756
+ }, config?: Partial<ClientConfig>): Promise<{
1757
+ data: {
1758
+ request_id: string | null;
1759
+ at: string;
1760
+ route: string;
1761
+ status: number;
1762
+ units: unknown;
1763
+ duration_ms: number;
1764
+ key_id: string | null;
1765
+ error: unknown;
1766
+ params: unknown;
1767
+ }[];
1768
+ pagination: Pagination;
1769
+ }>;
1770
+ /**
1771
+ * @throws {ApiError<400, Error>}
1772
+ * @throws {ApiError<401, Error>}
1773
+ * @throws {ApiError<403, Error>}
1774
+ * @throws {ApiError<429, Error>}
1775
+ * @throws {ApiError<500, Error>}
1776
+ */
1777
+ export declare function organizationWebhooksList(config?: Partial<ClientConfig>): Promise<{
1778
+ data: {
1779
+ id: string;
1780
+ url: string;
1781
+ event_types: string[];
1782
+ filters: Record<string, unknown>;
1783
+ description: string | null;
1784
+ status: string;
1785
+ disabled_reason: string | null;
1786
+ consecutive_failures: number;
1787
+ created_at: string;
1788
+ }[];
1789
+ }>;
1790
+ /**
1791
+ * @throws {ApiError<400, Error>}
1792
+ * @throws {ApiError<401, Error>}
1793
+ * @throws {ApiError<403, Error>}
1794
+ * @throws {ApiError<409, Error>}
1795
+ * @throws {ApiError<429, Error>}
1796
+ * @throws {ApiError<500, Error>}
1797
+ */
1798
+ export declare function organizationWebhooksCreate(body: {
1799
+ url: string;
1800
+ event_types: string[];
1801
+ filters: {
1802
+ city: string;
1803
+ listing_type?: string;
1804
+ listing_category?: string;
1805
+ property_type?: string;
1806
+ neighborhood?: string;
1807
+ beds?: string;
1808
+ beds_min?: string;
1809
+ price_min?: string;
1810
+ price_max?: string;
1811
+ area_min?: string;
1812
+ area_max?: string;
1813
+ };
1814
+ description?: string;
1815
+ }, params?: {
1816
+ idempotencyKey?: string;
1817
+ }, config?: Partial<ClientConfig>): Promise<{
1818
+ data: {
1819
+ id: string;
1820
+ url: string;
1821
+ event_types: string[];
1822
+ filters: Record<string, unknown>;
1823
+ description: string | null;
1824
+ status: string;
1825
+ disabled_reason: string | null;
1826
+ consecutive_failures: number;
1827
+ created_at: string;
1828
+ secret: string;
1829
+ };
1830
+ }>;
1831
+ /**
1832
+ * @throws {ApiError<400, Error>}
1833
+ * @throws {ApiError<401, Error>}
1834
+ * @throws {ApiError<403, Error>}
1835
+ * @throws {ApiError<404, Error>}
1836
+ * @throws {ApiError<409, Error>}
1837
+ * @throws {ApiError<429, Error>}
1838
+ * @throws {ApiError<500, Error>}
1839
+ */
1840
+ export declare function organizationWebhooksDelete(webhookId: string, params?: {
1841
+ idempotencyKey?: string;
1842
+ }, config?: Partial<ClientConfig>): Promise<{
1843
+ data: {
1844
+ id: string;
1845
+ deleted: boolean;
1846
+ };
1847
+ }>;
1848
+ /**
1849
+ * @throws {ApiError<400, Error>}
1850
+ * @throws {ApiError<401, Error>}
1851
+ * @throws {ApiError<403, Error>}
1852
+ * @throws {ApiError<404, Error>}
1853
+ * @throws {ApiError<429, Error>}
1854
+ * @throws {ApiError<500, Error>}
1855
+ */
1856
+ export declare function organizationWebhooksDeliveries(webhookId: string, params?: {
1857
+ limit?: number;
1858
+ }, config?: Partial<ClientConfig>): Promise<{
1859
+ data: {
1860
+ id: number;
1861
+ event_id: string;
1862
+ event_type: string;
1863
+ status: string;
1864
+ attempts: number;
1865
+ response_status: unknown;
1866
+ response_snippet: string | null;
1867
+ next_attempt_at: unknown;
1868
+ delivered_at: unknown;
1869
+ created_at: string;
1870
+ }[];
1871
+ }>;
1872
+ /**
1873
+ * @throws {ApiError<400, Error>}
1874
+ * @throws {ApiError<401, Error>}
1875
+ * @throws {ApiError<403, Error>}
1876
+ * @throws {ApiError<404, Error>}
1877
+ * @throws {ApiError<409, Error>}
1878
+ * @throws {ApiError<429, Error>}
1879
+ * @throws {ApiError<500, Error>}
1880
+ */
1881
+ export declare function organizationWebhooksReplay(webhookId: string, deliveryId: string, params?: {
1882
+ idempotencyKey?: string;
1883
+ }, config?: Partial<ClientConfig>): Promise<{
1884
+ data: {
1885
+ id: number;
1886
+ status: string;
1887
+ };
1888
+ }>;