@sjunepark/landprice 0.0.2 → 0.0.3
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.
- package/README.md +5 -2
- package/dist/app/get-available-years.d.ts +14 -0
- package/dist/app/get-standard-land-price-detail.d.ts +14 -0
- package/dist/app/list-areas.d.ts +14 -0
- package/dist/app/search-individual-land-prices.d.ts +14 -0
- package/dist/app/search-standard-land-prices.d.ts +14 -0
- package/dist/capabilities/get-available-years/contract.d.ts +78 -0
- package/dist/capabilities/get-available-years/execute.d.ts +7 -0
- package/dist/capabilities/get-available-years/provider.d.ts +7 -0
- package/dist/capabilities/get-standard-land-price-detail/contract.d.ts +152 -0
- package/dist/capabilities/get-standard-land-price-detail/execute.d.ts +5 -0
- package/dist/capabilities/get-standard-land-price-detail/provider.d.ts +5 -0
- package/dist/capabilities/list-areas/contract.d.ts +106 -0
- package/dist/capabilities/list-areas/execute.d.ts +5 -0
- package/dist/capabilities/list-areas/provider.d.ts +5 -0
- package/dist/capabilities/request-validation.d.ts +14 -0
- package/dist/capabilities/search-individual-land-prices/contract.d.ts +279 -0
- package/dist/capabilities/search-individual-land-prices/execute.d.ts +5 -0
- package/dist/capabilities/search-individual-land-prices/provider.d.ts +5 -0
- package/dist/capabilities/search-standard-land-prices/contract.d.ts +194 -0
- package/dist/capabilities/search-standard-land-prices/execute.d.ts +5 -0
- package/dist/capabilities/search-standard-land-prices/provider.d.ts +5 -0
- package/dist/capabilities/types.d.ts +143 -0
- package/dist/cli.js +23979 -54
- package/dist/pi-extension.d.ts +6 -0
- package/dist/pi-extension.js +21740 -0
- package/dist/pi.d.ts +33 -0
- package/dist/pi.js +21736 -0
- package/dist/sources/realtyprice/constants.d.ts +2 -0
- package/dist/sources/realtyprice/endpoints.d.ts +14 -0
- package/dist/sources/realtyprice/fetch.d.ts +2 -0
- package/dist/sources/realtyprice/metadata.d.ts +2 -0
- package/dist/sources/realtyprice/provider.d.ts +6 -0
- package/dist/sources/realtyprice/source-helpers.d.ts +19 -0
- package/dist/toolset.d.ts +216 -0
- package/dist/toolset.js +21694 -0
- package/package.json +18 -2
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type ResponseDetail, type SuccessEnvelope } from "../types.ts";
|
|
3
|
+
export declare const SearchIndividualLandPricesInputSchema: Schema.Struct<{
|
|
4
|
+
year: Schema.optional<typeof Schema.Int>;
|
|
5
|
+
years: Schema.optional<Schema.filter<Schema.Array$<typeof Schema.Int>>>;
|
|
6
|
+
districtCode: typeof Schema.String;
|
|
7
|
+
legalDongCode: typeof Schema.String;
|
|
8
|
+
parcel: Schema.optional<typeof Schema.String>;
|
|
9
|
+
sourceSanFlag: Schema.optional<typeof Schema.String>;
|
|
10
|
+
bun1: Schema.optional<typeof Schema.String>;
|
|
11
|
+
bun2: Schema.optional<typeof Schema.String>;
|
|
12
|
+
page: Schema.optional<typeof Schema.Int>;
|
|
13
|
+
responseDetail: Schema.optional<Schema.Literal<["concise", "raw"]>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type SearchIndividualLandPricesRawInput = typeof SearchIndividualLandPricesInputSchema.Encoded;
|
|
16
|
+
export type SearchIndividualLandPricesRequest = {
|
|
17
|
+
readonly years: readonly number[];
|
|
18
|
+
readonly districtCode: string;
|
|
19
|
+
readonly legalDongCode: string;
|
|
20
|
+
readonly sourceSanFlag: string;
|
|
21
|
+
readonly bun1: string;
|
|
22
|
+
readonly bun2: string;
|
|
23
|
+
readonly parcel: string;
|
|
24
|
+
readonly page: number;
|
|
25
|
+
readonly responseDetail: ResponseDetail;
|
|
26
|
+
};
|
|
27
|
+
export declare const IndividualLandCoordinatesSchema: Schema.Struct<{
|
|
28
|
+
x: typeof Schema.Number;
|
|
29
|
+
y: typeof Schema.Number;
|
|
30
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
31
|
+
proj4: typeof Schema.String;
|
|
32
|
+
}>;
|
|
33
|
+
export type IndividualLandCoordinates = typeof IndividualLandCoordinatesSchema.Type;
|
|
34
|
+
export declare const IndividualLandPriceRecordSchema: Schema.Struct<{
|
|
35
|
+
year: typeof Schema.Int;
|
|
36
|
+
address: typeof Schema.String;
|
|
37
|
+
parcel: typeof Schema.String;
|
|
38
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
39
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
40
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
41
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
42
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
43
|
+
note: Schema.optional<typeof Schema.String>;
|
|
44
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
45
|
+
x: typeof Schema.Number;
|
|
46
|
+
y: typeof Schema.Number;
|
|
47
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
48
|
+
proj4: typeof Schema.String;
|
|
49
|
+
}>>;
|
|
50
|
+
individualLandReference: Schema.Struct<{
|
|
51
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
52
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
53
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
54
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
55
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
56
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
57
|
+
}>;
|
|
58
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
59
|
+
}>;
|
|
60
|
+
export type IndividualLandPriceRecord = typeof IndividualLandPriceRecordSchema.Type;
|
|
61
|
+
export declare const IndividualLandYearResultSchema: Schema.Struct<{
|
|
62
|
+
year: typeof Schema.Int;
|
|
63
|
+
page: typeof Schema.Int;
|
|
64
|
+
pageSize: typeof Schema.Int;
|
|
65
|
+
totalCount: typeof Schema.Int;
|
|
66
|
+
sourceTotalCount: typeof Schema.Int;
|
|
67
|
+
records: Schema.Array$<Schema.Struct<{
|
|
68
|
+
year: typeof Schema.Int;
|
|
69
|
+
address: typeof Schema.String;
|
|
70
|
+
parcel: typeof Schema.String;
|
|
71
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
72
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
73
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
74
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
75
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
76
|
+
note: Schema.optional<typeof Schema.String>;
|
|
77
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
78
|
+
x: typeof Schema.Number;
|
|
79
|
+
y: typeof Schema.Number;
|
|
80
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
81
|
+
proj4: typeof Schema.String;
|
|
82
|
+
}>>;
|
|
83
|
+
individualLandReference: Schema.Struct<{
|
|
84
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
85
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
86
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
87
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
88
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
89
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
90
|
+
}>;
|
|
91
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
92
|
+
}>>;
|
|
93
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
94
|
+
}>;
|
|
95
|
+
export type IndividualLandYearResult = typeof IndividualLandYearResultSchema.Type;
|
|
96
|
+
export declare const SearchIndividualLandPricesResultPayloadSchema: Schema.Struct<{
|
|
97
|
+
year: Schema.optional<typeof Schema.Int>;
|
|
98
|
+
years: Schema.optional<Schema.filter<Schema.Array$<typeof Schema.Int>>>;
|
|
99
|
+
page: typeof Schema.Int;
|
|
100
|
+
pageSize: typeof Schema.Int;
|
|
101
|
+
totalCount: typeof Schema.Int;
|
|
102
|
+
sourceTotalCount: typeof Schema.Int;
|
|
103
|
+
records: Schema.Array$<Schema.Struct<{
|
|
104
|
+
year: typeof Schema.Int;
|
|
105
|
+
address: typeof Schema.String;
|
|
106
|
+
parcel: typeof Schema.String;
|
|
107
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
108
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
109
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
110
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
111
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
112
|
+
note: Schema.optional<typeof Schema.String>;
|
|
113
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
114
|
+
x: typeof Schema.Number;
|
|
115
|
+
y: typeof Schema.Number;
|
|
116
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
117
|
+
proj4: typeof Schema.String;
|
|
118
|
+
}>>;
|
|
119
|
+
individualLandReference: Schema.Struct<{
|
|
120
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
121
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
122
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
123
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
124
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
125
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
126
|
+
}>;
|
|
127
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
128
|
+
}>>;
|
|
129
|
+
yearResults: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
130
|
+
year: typeof Schema.Int;
|
|
131
|
+
page: typeof Schema.Int;
|
|
132
|
+
pageSize: typeof Schema.Int;
|
|
133
|
+
totalCount: typeof Schema.Int;
|
|
134
|
+
sourceTotalCount: typeof Schema.Int;
|
|
135
|
+
records: Schema.Array$<Schema.Struct<{
|
|
136
|
+
year: typeof Schema.Int;
|
|
137
|
+
address: typeof Schema.String;
|
|
138
|
+
parcel: typeof Schema.String;
|
|
139
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
140
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
141
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
142
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
143
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
144
|
+
note: Schema.optional<typeof Schema.String>;
|
|
145
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
146
|
+
x: typeof Schema.Number;
|
|
147
|
+
y: typeof Schema.Number;
|
|
148
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
149
|
+
proj4: typeof Schema.String;
|
|
150
|
+
}>>;
|
|
151
|
+
individualLandReference: Schema.Struct<{
|
|
152
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
153
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
154
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
155
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
156
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
157
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
158
|
+
}>;
|
|
159
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
160
|
+
}>>;
|
|
161
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
162
|
+
}>>>;
|
|
163
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
164
|
+
}>;
|
|
165
|
+
export type SearchIndividualLandPricesResultPayload = typeof SearchIndividualLandPricesResultPayloadSchema.Type;
|
|
166
|
+
export declare const IndividualLandReferenceInputSchema: Schema.Struct<{
|
|
167
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
168
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
169
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
170
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
171
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
172
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
173
|
+
}>;
|
|
174
|
+
export declare const SearchIndividualLandPricesResultSchema: Schema.Struct<{
|
|
175
|
+
result: Schema.Struct<{
|
|
176
|
+
year: Schema.optional<typeof Schema.Int>;
|
|
177
|
+
years: Schema.optional<Schema.filter<Schema.Array$<typeof Schema.Int>>>;
|
|
178
|
+
page: typeof Schema.Int;
|
|
179
|
+
pageSize: typeof Schema.Int;
|
|
180
|
+
totalCount: typeof Schema.Int;
|
|
181
|
+
sourceTotalCount: typeof Schema.Int;
|
|
182
|
+
records: Schema.Array$<Schema.Struct<{
|
|
183
|
+
year: typeof Schema.Int;
|
|
184
|
+
address: typeof Schema.String;
|
|
185
|
+
parcel: typeof Schema.String;
|
|
186
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
187
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
188
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
189
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
190
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
191
|
+
note: Schema.optional<typeof Schema.String>;
|
|
192
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
193
|
+
x: typeof Schema.Number;
|
|
194
|
+
y: typeof Schema.Number;
|
|
195
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
196
|
+
proj4: typeof Schema.String;
|
|
197
|
+
}>>;
|
|
198
|
+
individualLandReference: Schema.Struct<{
|
|
199
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
200
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
201
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
202
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
203
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
204
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
205
|
+
}>;
|
|
206
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
207
|
+
}>>;
|
|
208
|
+
yearResults: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
209
|
+
year: typeof Schema.Int;
|
|
210
|
+
page: typeof Schema.Int;
|
|
211
|
+
pageSize: typeof Schema.Int;
|
|
212
|
+
totalCount: typeof Schema.Int;
|
|
213
|
+
sourceTotalCount: typeof Schema.Int;
|
|
214
|
+
records: Schema.Array$<Schema.Struct<{
|
|
215
|
+
year: typeof Schema.Int;
|
|
216
|
+
address: typeof Schema.String;
|
|
217
|
+
parcel: typeof Schema.String;
|
|
218
|
+
fullAddress: Schema.optional<typeof Schema.String>;
|
|
219
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
220
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
221
|
+
baseDateDisplay: Schema.optional<typeof Schema.String>;
|
|
222
|
+
noticeDate: Schema.optional<typeof Schema.String>;
|
|
223
|
+
note: Schema.optional<typeof Schema.String>;
|
|
224
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
225
|
+
x: typeof Schema.Number;
|
|
226
|
+
y: typeof Schema.Number;
|
|
227
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
228
|
+
proj4: typeof Schema.String;
|
|
229
|
+
}>>;
|
|
230
|
+
individualLandReference: Schema.Struct<{
|
|
231
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
232
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
233
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
234
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
235
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
236
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
237
|
+
}>;
|
|
238
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
239
|
+
}>>;
|
|
240
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
241
|
+
}>>>;
|
|
242
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
243
|
+
}>;
|
|
244
|
+
metadata: Schema.Struct<{
|
|
245
|
+
sourceSystem: Schema.Literal<["realtyprice"]>;
|
|
246
|
+
sourcePage: Schema.Literal<["https://www.realtyprice.kr/notice/gsstandard/search.htm", "https://www.realtyprice.kr/notice/gsindividual/search.htm"]>;
|
|
247
|
+
endpoint: typeof Schema.String;
|
|
248
|
+
query: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
249
|
+
retrievedAt: typeof Schema.String;
|
|
250
|
+
completeness: Schema.Literal<["complete", "empty", "partial", "unknown"]>;
|
|
251
|
+
sourceBehavior: typeof Schema.String;
|
|
252
|
+
}>;
|
|
253
|
+
references: Schema.Array$<Schema.Struct<{
|
|
254
|
+
type: Schema.Literal<["sourcePage", "endpoint", "area", "standardLandRecord", "individualLandRecord", "detail"]>;
|
|
255
|
+
sourceUrl: typeof Schema.String;
|
|
256
|
+
standardLandReference: Schema.optional<Schema.Struct<{
|
|
257
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
258
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
259
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
260
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
261
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
262
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
263
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
264
|
+
}>>;
|
|
265
|
+
individualLandReference: Schema.optional<Schema.Struct<{
|
|
266
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
267
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
268
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
269
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
270
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
271
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
272
|
+
}>>;
|
|
273
|
+
}>>;
|
|
274
|
+
warnings: Schema.Array$<Schema.Union<[typeof Schema.String, Schema.Struct<{
|
|
275
|
+
code: typeof Schema.String;
|
|
276
|
+
message: typeof Schema.String;
|
|
277
|
+
}>]>>;
|
|
278
|
+
}>;
|
|
279
|
+
export type SearchIndividualLandPricesResult = SuccessEnvelope<SearchIndividualLandPricesResultPayload>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ToolRunContext } from "../types.ts";
|
|
2
|
+
import type { SearchIndividualLandPricesRequest, SearchIndividualLandPricesResult } from "./contract.ts";
|
|
3
|
+
import type { SearchIndividualLandPricesProvider } from "./provider.ts";
|
|
4
|
+
export declare const resolveSearchIndividualLandPricesRequest: (input: Record<string, unknown>) => SearchIndividualLandPricesRequest;
|
|
5
|
+
export declare const executeSearchIndividualLandPrices: (input: Record<string, unknown>, provider: SearchIndividualLandPricesProvider, context?: ToolRunContext) => Promise<SearchIndividualLandPricesResult>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ToolRunContext } from "../types.ts";
|
|
2
|
+
import type { SearchIndividualLandPricesRequest, SearchIndividualLandPricesResult } from "./contract.ts";
|
|
3
|
+
export type SearchIndividualLandPricesProvider = {
|
|
4
|
+
readonly searchIndividualLandPrices: (request: SearchIndividualLandPricesRequest, context?: ToolRunContext) => Promise<SearchIndividualLandPricesResult>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type ResponseDetail, type SearchMode, type SuccessEnvelope } from "../types.ts";
|
|
3
|
+
export declare const SearchStandardLandPricesInputSchema: Schema.Struct<{
|
|
4
|
+
year: typeof Schema.Int;
|
|
5
|
+
searchMode: Schema.optional<Schema.Literal<["current-address", "notice-date"]>>;
|
|
6
|
+
districtCode: typeof Schema.String;
|
|
7
|
+
legalDongCode: typeof Schema.String;
|
|
8
|
+
regionName: Schema.optional<typeof Schema.String>;
|
|
9
|
+
page: Schema.optional<typeof Schema.Int>;
|
|
10
|
+
responseDetail: Schema.optional<Schema.Literal<["concise", "raw"]>>;
|
|
11
|
+
}>;
|
|
12
|
+
export type SearchStandardLandPricesRawInput = typeof SearchStandardLandPricesInputSchema.Encoded;
|
|
13
|
+
export type SearchStandardLandPricesRequest = {
|
|
14
|
+
readonly year: number;
|
|
15
|
+
readonly searchMode: SearchMode;
|
|
16
|
+
readonly districtCode: string;
|
|
17
|
+
readonly legalDongCode: string;
|
|
18
|
+
readonly regionName?: string;
|
|
19
|
+
readonly page: number;
|
|
20
|
+
readonly responseDetail: ResponseDetail;
|
|
21
|
+
};
|
|
22
|
+
export declare const CoordinatesSchema: Schema.Struct<{
|
|
23
|
+
x: typeof Schema.Number;
|
|
24
|
+
y: typeof Schema.Number;
|
|
25
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
26
|
+
proj4: typeof Schema.String;
|
|
27
|
+
}>;
|
|
28
|
+
export type Coordinates = typeof CoordinatesSchema.Type;
|
|
29
|
+
export declare const StandardLandPriceRecordSchema: Schema.Struct<{
|
|
30
|
+
standardLandNumber: typeof Schema.String;
|
|
31
|
+
address: typeof Schema.String;
|
|
32
|
+
parcel: Schema.optional<typeof Schema.String>;
|
|
33
|
+
areaSquareMeters: Schema.optional<typeof Schema.Number>;
|
|
34
|
+
areaDisplay: Schema.optional<typeof Schema.String>;
|
|
35
|
+
landCategory: Schema.optional<typeof Schema.String>;
|
|
36
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
37
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
38
|
+
locationDescription: Schema.optional<typeof Schema.String>;
|
|
39
|
+
useStatus: Schema.optional<typeof Schema.String>;
|
|
40
|
+
zoning: Schema.optional<typeof Schema.String>;
|
|
41
|
+
surroundingEnvironment: Schema.optional<typeof Schema.String>;
|
|
42
|
+
roadFrontage: Schema.optional<typeof Schema.String>;
|
|
43
|
+
shape: Schema.optional<typeof Schema.String>;
|
|
44
|
+
elevation: Schema.optional<typeof Schema.String>;
|
|
45
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
46
|
+
x: typeof Schema.Number;
|
|
47
|
+
y: typeof Schema.Number;
|
|
48
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
49
|
+
proj4: typeof Schema.String;
|
|
50
|
+
}>>;
|
|
51
|
+
detailAvailable: typeof Schema.Boolean;
|
|
52
|
+
standardLandReference: Schema.Struct<{
|
|
53
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
54
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
55
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
56
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
57
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
58
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
59
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
60
|
+
}>;
|
|
61
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
62
|
+
}>;
|
|
63
|
+
export type StandardLandPriceRecord = typeof StandardLandPriceRecordSchema.Type;
|
|
64
|
+
export declare const SearchStandardLandPricesResultPayloadSchema: Schema.Struct<{
|
|
65
|
+
year: typeof Schema.Int;
|
|
66
|
+
searchMode: Schema.Literal<["current-address", "notice-date"]>;
|
|
67
|
+
page: typeof Schema.Int;
|
|
68
|
+
pageSize: typeof Schema.Int;
|
|
69
|
+
totalCount: typeof Schema.Int;
|
|
70
|
+
records: Schema.Array$<Schema.Struct<{
|
|
71
|
+
standardLandNumber: typeof Schema.String;
|
|
72
|
+
address: typeof Schema.String;
|
|
73
|
+
parcel: Schema.optional<typeof Schema.String>;
|
|
74
|
+
areaSquareMeters: Schema.optional<typeof Schema.Number>;
|
|
75
|
+
areaDisplay: Schema.optional<typeof Schema.String>;
|
|
76
|
+
landCategory: Schema.optional<typeof Schema.String>;
|
|
77
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
78
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
79
|
+
locationDescription: Schema.optional<typeof Schema.String>;
|
|
80
|
+
useStatus: Schema.optional<typeof Schema.String>;
|
|
81
|
+
zoning: Schema.optional<typeof Schema.String>;
|
|
82
|
+
surroundingEnvironment: Schema.optional<typeof Schema.String>;
|
|
83
|
+
roadFrontage: Schema.optional<typeof Schema.String>;
|
|
84
|
+
shape: Schema.optional<typeof Schema.String>;
|
|
85
|
+
elevation: Schema.optional<typeof Schema.String>;
|
|
86
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
87
|
+
x: typeof Schema.Number;
|
|
88
|
+
y: typeof Schema.Number;
|
|
89
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
90
|
+
proj4: typeof Schema.String;
|
|
91
|
+
}>>;
|
|
92
|
+
detailAvailable: typeof Schema.Boolean;
|
|
93
|
+
standardLandReference: Schema.Struct<{
|
|
94
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
95
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
96
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
97
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
98
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
99
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
100
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
101
|
+
}>;
|
|
102
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
103
|
+
}>>;
|
|
104
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
105
|
+
}>;
|
|
106
|
+
export type SearchStandardLandPricesResultPayload = typeof SearchStandardLandPricesResultPayloadSchema.Type;
|
|
107
|
+
export declare const StandardLandReferenceInputSchema: Schema.Struct<{
|
|
108
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
109
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
110
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
111
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
112
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
113
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
114
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const SearchStandardLandPricesResultSchema: Schema.Struct<{
|
|
117
|
+
result: Schema.Struct<{
|
|
118
|
+
year: typeof Schema.Int;
|
|
119
|
+
searchMode: Schema.Literal<["current-address", "notice-date"]>;
|
|
120
|
+
page: typeof Schema.Int;
|
|
121
|
+
pageSize: typeof Schema.Int;
|
|
122
|
+
totalCount: typeof Schema.Int;
|
|
123
|
+
records: Schema.Array$<Schema.Struct<{
|
|
124
|
+
standardLandNumber: typeof Schema.String;
|
|
125
|
+
address: typeof Schema.String;
|
|
126
|
+
parcel: Schema.optional<typeof Schema.String>;
|
|
127
|
+
areaSquareMeters: Schema.optional<typeof Schema.Number>;
|
|
128
|
+
areaDisplay: Schema.optional<typeof Schema.String>;
|
|
129
|
+
landCategory: Schema.optional<typeof Schema.String>;
|
|
130
|
+
officialPricePerSquareMeter: Schema.optional<typeof Schema.Number>;
|
|
131
|
+
officialPricePerSquareMeterDisplay: Schema.optional<typeof Schema.String>;
|
|
132
|
+
locationDescription: Schema.optional<typeof Schema.String>;
|
|
133
|
+
useStatus: Schema.optional<typeof Schema.String>;
|
|
134
|
+
zoning: Schema.optional<typeof Schema.String>;
|
|
135
|
+
surroundingEnvironment: Schema.optional<typeof Schema.String>;
|
|
136
|
+
roadFrontage: Schema.optional<typeof Schema.String>;
|
|
137
|
+
shape: Schema.optional<typeof Schema.String>;
|
|
138
|
+
elevation: Schema.optional<typeof Schema.String>;
|
|
139
|
+
coordinates: Schema.optional<Schema.Struct<{
|
|
140
|
+
x: typeof Schema.Number;
|
|
141
|
+
y: typeof Schema.Number;
|
|
142
|
+
crs: Schema.Literal<["realtyprice-tm-bessel-source"]>;
|
|
143
|
+
proj4: typeof Schema.String;
|
|
144
|
+
}>>;
|
|
145
|
+
detailAvailable: typeof Schema.Boolean;
|
|
146
|
+
standardLandReference: Schema.Struct<{
|
|
147
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
148
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
149
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
150
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
151
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
152
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
153
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
154
|
+
}>;
|
|
155
|
+
raw: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
156
|
+
}>>;
|
|
157
|
+
raw: Schema.optional<typeof Schema.Any>;
|
|
158
|
+
}>;
|
|
159
|
+
metadata: Schema.Struct<{
|
|
160
|
+
sourceSystem: Schema.Literal<["realtyprice"]>;
|
|
161
|
+
sourcePage: Schema.Literal<["https://www.realtyprice.kr/notice/gsstandard/search.htm", "https://www.realtyprice.kr/notice/gsindividual/search.htm"]>;
|
|
162
|
+
endpoint: typeof Schema.String;
|
|
163
|
+
query: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
164
|
+
retrievedAt: typeof Schema.String;
|
|
165
|
+
completeness: Schema.Literal<["complete", "empty", "partial", "unknown"]>;
|
|
166
|
+
sourceBehavior: typeof Schema.String;
|
|
167
|
+
}>;
|
|
168
|
+
references: Schema.Array$<Schema.Struct<{
|
|
169
|
+
type: Schema.Literal<["sourcePage", "endpoint", "area", "standardLandRecord", "individualLandRecord", "detail"]>;
|
|
170
|
+
sourceUrl: typeof Schema.String;
|
|
171
|
+
standardLandReference: Schema.optional<Schema.Struct<{
|
|
172
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
173
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
174
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
175
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
176
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
177
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
178
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
179
|
+
}>>;
|
|
180
|
+
individualLandReference: Schema.optional<Schema.Struct<{
|
|
181
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
182
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
183
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
184
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
185
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
186
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
187
|
+
}>>;
|
|
188
|
+
}>>;
|
|
189
|
+
warnings: Schema.Array$<Schema.Union<[typeof Schema.String, Schema.Struct<{
|
|
190
|
+
code: typeof Schema.String;
|
|
191
|
+
message: typeof Schema.String;
|
|
192
|
+
}>]>>;
|
|
193
|
+
}>;
|
|
194
|
+
export type SearchStandardLandPricesResult = SuccessEnvelope<SearchStandardLandPricesResultPayload>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ToolRunContext } from "../types.ts";
|
|
2
|
+
import type { SearchStandardLandPricesRequest, SearchStandardLandPricesResult } from "./contract.ts";
|
|
3
|
+
import type { SearchStandardLandPricesProvider } from "./provider.ts";
|
|
4
|
+
export declare const resolveSearchStandardLandPricesRequest: (input: Record<string, unknown>) => SearchStandardLandPricesRequest;
|
|
5
|
+
export declare const executeSearchStandardLandPrices: (input: Record<string, unknown>, provider: SearchStandardLandPricesProvider, context?: ToolRunContext) => Promise<SearchStandardLandPricesResult>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ToolRunContext } from "../types.ts";
|
|
2
|
+
import type { SearchStandardLandPricesRequest, SearchStandardLandPricesResult } from "./contract.ts";
|
|
3
|
+
export type SearchStandardLandPricesProvider = {
|
|
4
|
+
readonly searchStandardLandPrices: (request: SearchStandardLandPricesRequest, context?: ToolRunContext) => Promise<SearchStandardLandPricesResult>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { JSONSchema, Schema } from "effect";
|
|
2
|
+
export declare const capabilitySchemaToJsonSchema: <A, I, R>(schema: Schema.Schema<A, I, R>) => JSONSchema.JsonSchema7Root;
|
|
3
|
+
export declare const ResponseDetailSchema: Schema.Literal<["concise", "raw"]>;
|
|
4
|
+
export type ResponseDetail = typeof ResponseDetailSchema.Type;
|
|
5
|
+
export declare const SearchModeSchema: Schema.Literal<["current-address", "notice-date"]>;
|
|
6
|
+
export type SearchMode = typeof SearchModeSchema.Type;
|
|
7
|
+
export declare const AreaSurfaceSchema: Schema.Literal<["standard-land", "individual-land"]>;
|
|
8
|
+
export type AreaSurface = typeof AreaSurfaceSchema.Type;
|
|
9
|
+
export declare const AreaLevelSchema: Schema.Literal<["sido", "district", "legal-dong"]>;
|
|
10
|
+
export type AreaLevel = typeof AreaLevelSchema.Type;
|
|
11
|
+
export declare const CompletenessSchema: Schema.Literal<["complete", "empty", "partial", "unknown"]>;
|
|
12
|
+
export type Completeness = typeof CompletenessSchema.Type;
|
|
13
|
+
export declare const UnknownRecordSchema: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
14
|
+
export declare const StringRecordSchema: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
15
|
+
export declare const StandardLandReferenceSchema: Schema.Struct<{
|
|
16
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
17
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
18
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
19
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
20
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
21
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
22
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type StandardLandReference = typeof StandardLandReferenceSchema.Type;
|
|
25
|
+
export declare const IndividualLandReferenceSchema: Schema.Struct<{
|
|
26
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
27
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
28
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
29
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
30
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
31
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
32
|
+
}>;
|
|
33
|
+
export type IndividualLandReference = typeof IndividualLandReferenceSchema.Type;
|
|
34
|
+
export declare const SourceReferenceSchema: Schema.Struct<{
|
|
35
|
+
type: Schema.Literal<["sourcePage", "endpoint", "area", "standardLandRecord", "individualLandRecord", "detail"]>;
|
|
36
|
+
sourceUrl: typeof Schema.String;
|
|
37
|
+
standardLandReference: Schema.optional<Schema.Struct<{
|
|
38
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
39
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
40
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
41
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
42
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
43
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
44
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
45
|
+
}>>;
|
|
46
|
+
individualLandReference: Schema.optional<Schema.Struct<{
|
|
47
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
48
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
49
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
50
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
51
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
52
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
53
|
+
}>>;
|
|
54
|
+
}>;
|
|
55
|
+
export type SourceReference = typeof SourceReferenceSchema.Type;
|
|
56
|
+
export declare const RealtypriceSourcePageSchema: Schema.Literal<["https://www.realtyprice.kr/notice/gsstandard/search.htm", "https://www.realtyprice.kr/notice/gsindividual/search.htm"]>;
|
|
57
|
+
export type RealtypriceSourcePage = typeof RealtypriceSourcePageSchema.Type;
|
|
58
|
+
export declare const ResultMetadataSchema: Schema.Struct<{
|
|
59
|
+
sourceSystem: Schema.Literal<["realtyprice"]>;
|
|
60
|
+
sourcePage: Schema.Literal<["https://www.realtyprice.kr/notice/gsstandard/search.htm", "https://www.realtyprice.kr/notice/gsindividual/search.htm"]>;
|
|
61
|
+
endpoint: typeof Schema.String;
|
|
62
|
+
query: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
63
|
+
retrievedAt: typeof Schema.String;
|
|
64
|
+
completeness: Schema.Literal<["complete", "empty", "partial", "unknown"]>;
|
|
65
|
+
sourceBehavior: typeof Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
export type ResultMetadata = typeof ResultMetadataSchema.Type;
|
|
68
|
+
export declare const WarningSchema: Schema.Union<[typeof Schema.String, Schema.Struct<{
|
|
69
|
+
code: typeof Schema.String;
|
|
70
|
+
message: typeof Schema.String;
|
|
71
|
+
}>]>;
|
|
72
|
+
export type Warning = typeof WarningSchema.Type;
|
|
73
|
+
export declare const SuccessEnvelopeSchema: <Result extends Schema.Schema.Any>(result: Result) => Schema.Struct<{
|
|
74
|
+
result: Result;
|
|
75
|
+
metadata: Schema.Struct<{
|
|
76
|
+
sourceSystem: Schema.Literal<["realtyprice"]>;
|
|
77
|
+
sourcePage: Schema.Literal<["https://www.realtyprice.kr/notice/gsstandard/search.htm", "https://www.realtyprice.kr/notice/gsindividual/search.htm"]>;
|
|
78
|
+
endpoint: typeof Schema.String;
|
|
79
|
+
query: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
80
|
+
retrievedAt: typeof Schema.String;
|
|
81
|
+
completeness: Schema.Literal<["complete", "empty", "partial", "unknown"]>;
|
|
82
|
+
sourceBehavior: typeof Schema.String;
|
|
83
|
+
}>;
|
|
84
|
+
references: Schema.Array$<Schema.Struct<{
|
|
85
|
+
type: Schema.Literal<["sourcePage", "endpoint", "area", "standardLandRecord", "individualLandRecord", "detail"]>;
|
|
86
|
+
sourceUrl: typeof Schema.String;
|
|
87
|
+
standardLandReference: Schema.optional<Schema.Struct<{
|
|
88
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
89
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
90
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
91
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
92
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
93
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
94
|
+
standardLandNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
95
|
+
}>>;
|
|
96
|
+
individualLandReference: Schema.optional<Schema.Struct<{
|
|
97
|
+
year: Schema.refine<number, typeof Schema.Number>;
|
|
98
|
+
regCode: Schema.SchemaClass<string, string, never>;
|
|
99
|
+
eubCode: Schema.SchemaClass<string, string, never>;
|
|
100
|
+
sourceSanFlag: Schema.SchemaClass<string, string, never>;
|
|
101
|
+
bun1: Schema.SchemaClass<string, string, never>;
|
|
102
|
+
bun2: Schema.SchemaClass<string, string, never>;
|
|
103
|
+
}>>;
|
|
104
|
+
}>>;
|
|
105
|
+
warnings: Schema.Array$<Schema.Union<[typeof Schema.String, Schema.Struct<{
|
|
106
|
+
code: typeof Schema.String;
|
|
107
|
+
message: typeof Schema.String;
|
|
108
|
+
}>]>>;
|
|
109
|
+
}>;
|
|
110
|
+
export type SuccessEnvelope<Result> = {
|
|
111
|
+
readonly result: Result;
|
|
112
|
+
readonly metadata: ResultMetadata;
|
|
113
|
+
readonly references: readonly SourceReference[];
|
|
114
|
+
readonly warnings: readonly Warning[];
|
|
115
|
+
};
|
|
116
|
+
export type ToolRunContext = {
|
|
117
|
+
readonly signal?: AbortSignal;
|
|
118
|
+
};
|
|
119
|
+
export type LandpriceFailureCode = "invalid_request" | "not_found" | "source_unavailable" | "source_changed" | "source_parse_failure" | "aborted" | "internal_error";
|
|
120
|
+
export type LandpriceFailureInput = {
|
|
121
|
+
readonly code: LandpriceFailureCode;
|
|
122
|
+
readonly message: string;
|
|
123
|
+
readonly retryable: boolean;
|
|
124
|
+
readonly parameter?: string;
|
|
125
|
+
readonly sourceUrl?: string;
|
|
126
|
+
readonly recoveryHint?: string;
|
|
127
|
+
};
|
|
128
|
+
export declare class LandpriceFailure extends Error {
|
|
129
|
+
readonly code: LandpriceFailureCode;
|
|
130
|
+
readonly retryable: boolean;
|
|
131
|
+
readonly parameter?: string;
|
|
132
|
+
readonly sourceUrl?: string;
|
|
133
|
+
readonly recoveryHint?: string;
|
|
134
|
+
constructor(input: LandpriceFailureInput);
|
|
135
|
+
}
|
|
136
|
+
export declare class InvalidCapabilityRequest extends LandpriceFailure {
|
|
137
|
+
constructor(input: {
|
|
138
|
+
readonly parameter: string;
|
|
139
|
+
readonly message: string;
|
|
140
|
+
readonly recoveryHint?: string;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
export declare const toLandpriceFailure: (error: unknown, fallbackMessage: string) => LandpriceFailure;
|