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