@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,3 @@
1
+ export * from "./models.js";
2
+ export * from "./client-config.js";
3
+ export * from "./client.js";
@@ -0,0 +1,4 @@
1
+ // This file is auto-generated by openapi-zod-ts — do not edit
2
+ export * from "./models.js";
3
+ export * from "./client-config.js";
4
+ export * from "./client.js";
@@ -0,0 +1,247 @@
1
+ export type CoverageFlag = "full" | "notary_only" | "incomplete";
2
+ export declare const CoverageFlagValues: readonly ["full", "notary_only", "incomplete"];
3
+ export interface Error {
4
+ error: {
5
+ type: "invalid_request" | "authentication_error" | "permission_error" | "not_found" | "method_not_allowed" | "conflict" | "rate_limit_error" | "api_error";
6
+ code: string;
7
+ message: string;
8
+ param?: string;
9
+ details?: Record<string, unknown>;
10
+ request_id: string;
11
+ doc_url: string;
12
+ };
13
+ }
14
+ export interface Export {
15
+ id: string;
16
+ dataset: "listings" | "listing_changes" | "registered_transactions" | "registered_rents";
17
+ format: "ndjson" | "csv";
18
+ compression: "gzip" | "none";
19
+ status: "queued" | "running" | "completed" | "failed" | "expired";
20
+ filters: Record<string, unknown> | null;
21
+ price_source: "asking" | "registered";
22
+ rows_estimated: number | null;
23
+ row_count: number | null;
24
+ units: number;
25
+ progress: {
26
+ rows_written: number;
27
+ parts_written: number;
28
+ };
29
+ error: {
30
+ code: string;
31
+ message: string;
32
+ } | null;
33
+ attribution: {
34
+ notice: string;
35
+ license_url: string;
36
+ } | null;
37
+ files: {
38
+ name: string;
39
+ kind: "data" | "manifest" | "attribution";
40
+ rows: number | null;
41
+ bytes: number;
42
+ url: string;
43
+ url_expires_at: string;
44
+ }[];
45
+ created_at: string;
46
+ started_at: string | null;
47
+ completed_at: string | null;
48
+ expires_at: string | null;
49
+ }
50
+ export type ExportRequest = {
51
+ dataset: "listings";
52
+ filters?: ListingExportFilters;
53
+ format?: "ndjson" | "csv";
54
+ compression?: "gzip" | "none";
55
+ } | {
56
+ dataset: "listing_changes";
57
+ filters: ListingChangeExportFilters;
58
+ format?: "ndjson" | "csv";
59
+ compression?: "gzip" | "none";
60
+ } | {
61
+ dataset: "registered_transactions";
62
+ filters?: TransactionExportFilters;
63
+ format?: "ndjson" | "csv";
64
+ compression?: "gzip" | "none";
65
+ } | {
66
+ dataset: "registered_rents";
67
+ filters?: RentExportFilters;
68
+ format?: "ndjson" | "csv";
69
+ compression?: "gzip" | "none";
70
+ };
71
+ export interface Listing {
72
+ id: number;
73
+ url: string;
74
+ title: string | null;
75
+ headline: string;
76
+ description: string | null;
77
+ description_en: string | null;
78
+ listing_type: string;
79
+ listing_category: string | null;
80
+ property_type: string;
81
+ price: {
82
+ yearly_sar: number | null;
83
+ as_posted: {
84
+ amount: number | null;
85
+ frequency: string | null;
86
+ };
87
+ previous_yearly_sar: number | null;
88
+ changed_at: string | null;
89
+ price_basis: "yearly_rent" | "sale_price";
90
+ price_source: "asking" | "registered";
91
+ };
92
+ financing: {
93
+ rent_now_pay_later_monthly_sar: number | null;
94
+ accepts_bank_financing: boolean | null;
95
+ landlord_payment_plans: {
96
+ monthly: boolean | null;
97
+ quarterly: boolean | null;
98
+ semiannually: boolean | null;
99
+ };
100
+ };
101
+ bedrooms: number | null;
102
+ bathrooms: number | null;
103
+ livings: number | null;
104
+ area_sqm: number | null;
105
+ floor: string | null;
106
+ age_years: number | null;
107
+ furnished: boolean | null;
108
+ amenities: string[];
109
+ photo_features: {
110
+ feature: "real_photos" | "kitchen_installed" | "ac_split" | "pool" | "roof_terrace" | "balcony" | "large_windows";
111
+ image_index: number | null;
112
+ }[] | null;
113
+ location: {
114
+ city: string | null;
115
+ city_name_en: string | null;
116
+ neighborhood_id: number | null;
117
+ neighborhood_name_ar: string | null;
118
+ neighborhood_name_en: string | null;
119
+ lat: number | null;
120
+ lng: number | null;
121
+ street_width_m: number | null;
122
+ };
123
+ compound_name: string | null;
124
+ project_id: number | null;
125
+ images: string[];
126
+ image_count: number;
127
+ advertiser: {
128
+ type: string | null;
129
+ };
130
+ verified_by_source: boolean | null;
131
+ source: {
132
+ name: string;
133
+ listing_id: string | null;
134
+ url: string | null;
135
+ };
136
+ also_listed_on: string[];
137
+ first_seen_at: string | null;
138
+ updated_at: string | null;
139
+ last_seen_at: string | null;
140
+ days_on_market: number | null;
141
+ }
142
+ export interface ListingChangeExportFilters {
143
+ city?: string[];
144
+ listing_type?: "rent" | "sale"[];
145
+ listing_category?: "residential" | "commercial";
146
+ property_type?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building"[];
147
+ neighborhood_id?: number[];
148
+ beds_min?: number;
149
+ beds_max?: number;
150
+ price_min?: number;
151
+ price_max?: number;
152
+ area_min?: number;
153
+ area_max?: number;
154
+ source?: string[];
155
+ furnished?: boolean;
156
+ from: string;
157
+ to?: string;
158
+ event_type?: "created" | "price_changed" | "delisted"[];
159
+ }
160
+ export interface ListingExportFilters {
161
+ city?: string[];
162
+ listing_type?: "rent" | "sale"[];
163
+ listing_category?: "residential" | "commercial";
164
+ property_type?: "apartment" | "villa" | "floor" | "duplex" | "office" | "shop" | "warehouse" | "land" | "building"[];
165
+ neighborhood_id?: number[];
166
+ beds_min?: number;
167
+ beds_max?: number;
168
+ price_min?: number;
169
+ price_max?: number;
170
+ area_min?: number;
171
+ area_max?: number;
172
+ source?: string[];
173
+ furnished?: boolean;
174
+ updated_since?: string;
175
+ }
176
+ export interface Pagination {
177
+ limit: number;
178
+ next_cursor: string | null;
179
+ has_more: boolean;
180
+ result_window_reached: boolean;
181
+ }
182
+ export interface RentExportFilters {
183
+ city?: string[];
184
+ property_type?: "apartment" | "studio" | "floor" | "villa" | "duplex"[];
185
+ period_from?: string;
186
+ period_to?: string;
187
+ }
188
+ export interface Transaction {
189
+ id: string;
190
+ month: string;
191
+ source_quarter: string;
192
+ city: string;
193
+ city_name_ar: string | null;
194
+ district_name_ar: string | null;
195
+ neighborhood: TransactionNeighborhood | null;
196
+ land_use: "residential" | "commercial" | "agricultural" | "industrial" | "mixed_use" | "other";
197
+ land_use_ar: string | null;
198
+ area_sqm: number | null;
199
+ price_sar: number;
200
+ price_per_sqm_sar: number | null;
201
+ property_count: number | null;
202
+ }
203
+ export interface TransactionAttribution {
204
+ notice: string;
205
+ license: {
206
+ name: string;
207
+ url: string;
208
+ base_license: string;
209
+ base_license_url: string;
210
+ };
211
+ datasets: {
212
+ source: "rega_rent_index" | "moj_transactions";
213
+ title: string;
214
+ title_en: string;
215
+ publisher: string;
216
+ urls: string[];
217
+ }[];
218
+ quarters: {
219
+ quarter: string;
220
+ url: string;
221
+ }[];
222
+ modifications: string;
223
+ }
224
+ export interface TransactionCoverage {
225
+ city: string;
226
+ first_deal_date: string | null;
227
+ last_deal_date: string | null;
228
+ latest_quarter: string | null;
229
+ complete_through_quarter: string | null;
230
+ notary_only_from_quarter: string | null;
231
+ excluded_quarters: {
232
+ quarter: string;
233
+ reason: string;
234
+ }[];
235
+ notes: string[];
236
+ }
237
+ export interface TransactionExportFilters {
238
+ city?: string[];
239
+ land_use?: "residential" | "commercial" | "agricultural" | "industrial" | "mixed_use" | "other"[];
240
+ month_from?: string;
241
+ month_to?: string;
242
+ }
243
+ export interface TransactionNeighborhood {
244
+ id: number;
245
+ name_ar: string;
246
+ name_en: string;
247
+ }
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated by openapi-zod-ts - do not edit
2
+ export const CoverageFlagValues = ["full", "notary_only", "incomplete"];