@vepler/sdk 2.24.1 → 2.28.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.
Files changed (215) hide show
  1. package/README.md +4 -0
  2. package/dist/commonjs/funcs/avmGetValuationAnalysis.d.ts +18 -0
  3. package/dist/commonjs/funcs/avmGetValuationAnalysis.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/avmGetValuationAnalysis.js +115 -0
  5. package/dist/commonjs/funcs/avmGetValuationAnalysis.js.map +1 -0
  6. package/dist/commonjs/funcs/propertyAggregateProperties.d.ts +18 -0
  7. package/dist/commonjs/funcs/propertyAggregateProperties.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/propertyAggregateProperties.js +117 -0
  9. package/dist/commonjs/funcs/propertyAggregateProperties.js.map +1 -0
  10. package/dist/commonjs/hooks/registration.d.ts +2 -2
  11. package/dist/commonjs/hooks/registration.d.ts.map +1 -1
  12. package/dist/commonjs/hooks/registration.js +1 -2
  13. package/dist/commonjs/hooks/registration.js.map +1 -1
  14. package/dist/commonjs/lib/config.d.ts +3 -3
  15. package/dist/commonjs/lib/config.js +3 -3
  16. package/dist/commonjs/sdk/avm.d.ts +7 -0
  17. package/dist/commonjs/sdk/avm.d.ts.map +1 -1
  18. package/dist/commonjs/sdk/avm.js +10 -0
  19. package/dist/commonjs/sdk/avm.js.map +1 -1
  20. package/dist/commonjs/sdk/models/operations/aggregateproperties.d.ts +108 -0
  21. package/dist/commonjs/sdk/models/operations/aggregateproperties.d.ts.map +1 -0
  22. package/dist/commonjs/sdk/models/operations/aggregateproperties.js +124 -0
  23. package/dist/commonjs/sdk/models/operations/aggregateproperties.js.map +1 -0
  24. package/dist/commonjs/sdk/models/operations/getvaluationanalysis.d.ts +206 -0
  25. package/dist/commonjs/sdk/models/operations/getvaluationanalysis.d.ts.map +1 -0
  26. package/dist/commonjs/sdk/models/operations/getvaluationanalysis.js +197 -0
  27. package/dist/commonjs/sdk/models/operations/getvaluationanalysis.js.map +1 -0
  28. package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
  29. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/models/operations/index.js +2 -0
  31. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  32. package/dist/commonjs/sdk/models/operations/predictpropertyvalue.d.ts +24 -24
  33. package/dist/commonjs/sdk/models/operations/predictpropertyvalue.d.ts.map +1 -1
  34. package/dist/commonjs/sdk/models/operations/predictpropertyvalue.js +25 -26
  35. package/dist/commonjs/sdk/models/operations/predictpropertyvalue.js.map +1 -1
  36. package/dist/commonjs/sdk/models/shared/aggregationinput.d.ts +118 -0
  37. package/dist/commonjs/sdk/models/shared/aggregationinput.d.ts.map +1 -0
  38. package/dist/commonjs/sdk/models/shared/aggregationinput.js +90 -0
  39. package/dist/commonjs/sdk/models/shared/aggregationinput.js.map +1 -0
  40. package/dist/commonjs/sdk/models/shared/analysiscomparable.d.ts +72 -0
  41. package/dist/commonjs/sdk/models/shared/analysiscomparable.d.ts.map +1 -0
  42. package/dist/commonjs/sdk/models/shared/analysiscomparable.js +71 -0
  43. package/dist/commonjs/sdk/models/shared/analysiscomparable.js.map +1 -0
  44. package/dist/commonjs/sdk/models/shared/avmanalysisrequest.d.ts +47 -0
  45. package/dist/commonjs/sdk/models/shared/avmanalysisrequest.d.ts.map +1 -0
  46. package/dist/commonjs/sdk/models/shared/avmanalysisrequest.js +61 -0
  47. package/dist/commonjs/sdk/models/shared/avmanalysisrequest.js.map +1 -0
  48. package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts +234 -0
  49. package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -0
  50. package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js +209 -0
  51. package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js.map +1 -0
  52. package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts +4 -4
  53. package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -1
  54. package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js +6 -4
  55. package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -1
  56. package/dist/commonjs/sdk/models/shared/council.d.ts +4 -4
  57. package/dist/commonjs/sdk/models/shared/council.d.ts.map +1 -1
  58. package/dist/commonjs/sdk/models/shared/council.js +5 -4
  59. package/dist/commonjs/sdk/models/shared/council.js.map +1 -1
  60. package/dist/commonjs/sdk/models/shared/historicalvaluation.d.ts +42 -0
  61. package/dist/commonjs/sdk/models/shared/historicalvaluation.d.ts.map +1 -0
  62. package/dist/commonjs/sdk/models/shared/historicalvaluation.js +63 -0
  63. package/dist/commonjs/sdk/models/shared/historicalvaluation.js.map +1 -0
  64. package/dist/commonjs/sdk/models/shared/index.d.ts +10 -0
  65. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  66. package/dist/commonjs/sdk/models/shared/index.js +10 -0
  67. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  68. package/dist/commonjs/sdk/models/shared/leafaggregation.d.ts +112 -0
  69. package/dist/commonjs/sdk/models/shared/leafaggregation.d.ts.map +1 -0
  70. package/dist/commonjs/sdk/models/shared/leafaggregation.js +88 -0
  71. package/dist/commonjs/sdk/models/shared/leafaggregation.js.map +1 -0
  72. package/dist/commonjs/sdk/models/shared/nestedaggregation.d.ts +118 -0
  73. package/dist/commonjs/sdk/models/shared/nestedaggregation.d.ts.map +1 -0
  74. package/dist/commonjs/sdk/models/shared/nestedaggregation.js +90 -0
  75. package/dist/commonjs/sdk/models/shared/nestedaggregation.js.map +1 -0
  76. package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.d.ts +28 -0
  77. package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.d.ts.map +1 -0
  78. package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.js +54 -0
  79. package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.js.map +1 -0
  80. package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.d.ts +24 -0
  81. package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.d.ts.map +1 -0
  82. package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.js +53 -0
  83. package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.js.map +1 -0
  84. package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
  85. package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
  86. package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js +4 -4
  87. package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js.map +1 -1
  88. package/dist/commonjs/sdk/models/shared/rangedefinition.d.ts +25 -0
  89. package/dist/commonjs/sdk/models/shared/rangedefinition.d.ts.map +1 -0
  90. package/dist/commonjs/sdk/models/shared/rangedefinition.js +51 -0
  91. package/dist/commonjs/sdk/models/shared/rangedefinition.js.map +1 -0
  92. package/dist/commonjs/sdk/property.d.ts +7 -0
  93. package/dist/commonjs/sdk/property.d.ts.map +1 -1
  94. package/dist/commonjs/sdk/property.js +10 -0
  95. package/dist/commonjs/sdk/property.js.map +1 -1
  96. package/dist/esm/funcs/avmGetValuationAnalysis.d.ts +18 -0
  97. package/dist/esm/funcs/avmGetValuationAnalysis.d.ts.map +1 -0
  98. package/dist/esm/funcs/avmGetValuationAnalysis.js +79 -0
  99. package/dist/esm/funcs/avmGetValuationAnalysis.js.map +1 -0
  100. package/dist/esm/funcs/propertyAggregateProperties.d.ts +18 -0
  101. package/dist/esm/funcs/propertyAggregateProperties.d.ts.map +1 -0
  102. package/dist/esm/funcs/propertyAggregateProperties.js +81 -0
  103. package/dist/esm/funcs/propertyAggregateProperties.js.map +1 -0
  104. package/dist/esm/hooks/registration.d.ts +2 -2
  105. package/dist/esm/hooks/registration.d.ts.map +1 -1
  106. package/dist/esm/hooks/registration.js +1 -2
  107. package/dist/esm/hooks/registration.js.map +1 -1
  108. package/dist/esm/lib/config.d.ts +3 -3
  109. package/dist/esm/lib/config.js +3 -3
  110. package/dist/esm/sdk/avm.d.ts +7 -0
  111. package/dist/esm/sdk/avm.d.ts.map +1 -1
  112. package/dist/esm/sdk/avm.js +10 -0
  113. package/dist/esm/sdk/avm.js.map +1 -1
  114. package/dist/esm/sdk/models/operations/aggregateproperties.d.ts +108 -0
  115. package/dist/esm/sdk/models/operations/aggregateproperties.d.ts.map +1 -0
  116. package/dist/esm/sdk/models/operations/aggregateproperties.js +83 -0
  117. package/dist/esm/sdk/models/operations/aggregateproperties.js.map +1 -0
  118. package/dist/esm/sdk/models/operations/getvaluationanalysis.d.ts +206 -0
  119. package/dist/esm/sdk/models/operations/getvaluationanalysis.d.ts.map +1 -0
  120. package/dist/esm/sdk/models/operations/getvaluationanalysis.js +152 -0
  121. package/dist/esm/sdk/models/operations/getvaluationanalysis.js.map +1 -0
  122. package/dist/esm/sdk/models/operations/index.d.ts +2 -0
  123. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  124. package/dist/esm/sdk/models/operations/index.js +2 -0
  125. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  126. package/dist/esm/sdk/models/operations/predictpropertyvalue.d.ts +24 -24
  127. package/dist/esm/sdk/models/operations/predictpropertyvalue.d.ts.map +1 -1
  128. package/dist/esm/sdk/models/operations/predictpropertyvalue.js +21 -22
  129. package/dist/esm/sdk/models/operations/predictpropertyvalue.js.map +1 -1
  130. package/dist/esm/sdk/models/shared/aggregationinput.d.ts +118 -0
  131. package/dist/esm/sdk/models/shared/aggregationinput.d.ts.map +1 -0
  132. package/dist/esm/sdk/models/shared/aggregationinput.js +53 -0
  133. package/dist/esm/sdk/models/shared/aggregationinput.js.map +1 -0
  134. package/dist/esm/sdk/models/shared/analysiscomparable.d.ts +72 -0
  135. package/dist/esm/sdk/models/shared/analysiscomparable.d.ts.map +1 -0
  136. package/dist/esm/sdk/models/shared/analysiscomparable.js +34 -0
  137. package/dist/esm/sdk/models/shared/analysiscomparable.js.map +1 -0
  138. package/dist/esm/sdk/models/shared/avmanalysisrequest.d.ts +47 -0
  139. package/dist/esm/sdk/models/shared/avmanalysisrequest.d.ts.map +1 -0
  140. package/dist/esm/sdk/models/shared/avmanalysisrequest.js +24 -0
  141. package/dist/esm/sdk/models/shared/avmanalysisrequest.js.map +1 -0
  142. package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts +234 -0
  143. package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -0
  144. package/dist/esm/sdk/models/shared/avmanalysisresponse.js +159 -0
  145. package/dist/esm/sdk/models/shared/avmanalysisresponse.js.map +1 -0
  146. package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts +4 -4
  147. package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -1
  148. package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js +5 -3
  149. package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -1
  150. package/dist/esm/sdk/models/shared/council.d.ts +4 -4
  151. package/dist/esm/sdk/models/shared/council.d.ts.map +1 -1
  152. package/dist/esm/sdk/models/shared/council.js +4 -3
  153. package/dist/esm/sdk/models/shared/council.js.map +1 -1
  154. package/dist/esm/sdk/models/shared/historicalvaluation.d.ts +42 -0
  155. package/dist/esm/sdk/models/shared/historicalvaluation.d.ts.map +1 -0
  156. package/dist/esm/sdk/models/shared/historicalvaluation.js +25 -0
  157. package/dist/esm/sdk/models/shared/historicalvaluation.js.map +1 -0
  158. package/dist/esm/sdk/models/shared/index.d.ts +10 -0
  159. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  160. package/dist/esm/sdk/models/shared/index.js +10 -0
  161. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  162. package/dist/esm/sdk/models/shared/leafaggregation.d.ts +112 -0
  163. package/dist/esm/sdk/models/shared/leafaggregation.d.ts.map +1 -0
  164. package/dist/esm/sdk/models/shared/leafaggregation.js +51 -0
  165. package/dist/esm/sdk/models/shared/leafaggregation.js.map +1 -0
  166. package/dist/esm/sdk/models/shared/nestedaggregation.d.ts +118 -0
  167. package/dist/esm/sdk/models/shared/nestedaggregation.d.ts.map +1 -0
  168. package/dist/esm/sdk/models/shared/nestedaggregation.js +53 -0
  169. package/dist/esm/sdk/models/shared/nestedaggregation.js.map +1 -0
  170. package/dist/esm/sdk/models/shared/propertyaggregaterequest.d.ts +28 -0
  171. package/dist/esm/sdk/models/shared/propertyaggregaterequest.d.ts.map +1 -0
  172. package/dist/esm/sdk/models/shared/propertyaggregaterequest.js +17 -0
  173. package/dist/esm/sdk/models/shared/propertyaggregaterequest.js.map +1 -0
  174. package/dist/esm/sdk/models/shared/propertyaggregateresponse.d.ts +24 -0
  175. package/dist/esm/sdk/models/shared/propertyaggregateresponse.d.ts.map +1 -0
  176. package/dist/esm/sdk/models/shared/propertyaggregateresponse.js +16 -0
  177. package/dist/esm/sdk/models/shared/propertyaggregateresponse.js.map +1 -0
  178. package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
  179. package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
  180. package/dist/esm/sdk/models/shared/propertyqueryrequest.js +3 -3
  181. package/dist/esm/sdk/models/shared/propertyqueryrequest.js.map +1 -1
  182. package/dist/esm/sdk/models/shared/rangedefinition.d.ts +25 -0
  183. package/dist/esm/sdk/models/shared/rangedefinition.d.ts.map +1 -0
  184. package/dist/esm/sdk/models/shared/rangedefinition.js +14 -0
  185. package/dist/esm/sdk/models/shared/rangedefinition.js.map +1 -0
  186. package/dist/esm/sdk/property.d.ts +7 -0
  187. package/dist/esm/sdk/property.d.ts.map +1 -1
  188. package/dist/esm/sdk/property.js +10 -0
  189. package/dist/esm/sdk/property.js.map +1 -1
  190. package/openapi.json +12446 -1
  191. package/package.json +1 -1
  192. package/src/funcs/avmGetValuationAnalysis.ts +163 -0
  193. package/src/funcs/propertyAggregateProperties.ts +164 -0
  194. package/src/hooks/registration.ts +2 -3
  195. package/src/lib/config.ts +3 -3
  196. package/src/sdk/avm.ts +18 -0
  197. package/src/sdk/models/operations/aggregateproperties.ts +237 -0
  198. package/src/sdk/models/operations/getvaluationanalysis.ts +443 -0
  199. package/src/sdk/models/operations/index.ts +2 -0
  200. package/src/sdk/models/operations/predictpropertyvalue.ts +63 -59
  201. package/src/sdk/models/shared/aggregationinput.ts +162 -0
  202. package/src/sdk/models/shared/analysiscomparable.ts +107 -0
  203. package/src/sdk/models/shared/avmanalysisrequest.ts +73 -0
  204. package/src/sdk/models/shared/avmanalysisresponse.ts +519 -0
  205. package/src/sdk/models/shared/avmpredictbylocationrequest.ts +10 -7
  206. package/src/sdk/models/shared/council.ts +6 -7
  207. package/src/sdk/models/shared/historicalvaluation.ts +85 -0
  208. package/src/sdk/models/shared/index.ts +10 -0
  209. package/src/sdk/models/shared/leafaggregation.ts +149 -0
  210. package/src/sdk/models/shared/nestedaggregation.ts +162 -0
  211. package/src/sdk/models/shared/propertyaggregaterequest.ts +61 -0
  212. package/src/sdk/models/shared/propertyaggregateresponse.ts +46 -0
  213. package/src/sdk/models/shared/propertyqueryrequest.ts +9 -7
  214. package/src/sdk/models/shared/rangedefinition.ts +44 -0
  215. package/src/sdk/property.ts +18 -0
@@ -13,7 +13,7 @@ import * as shared from "../shared/index.js";
13
13
  /**
14
14
  * Error type category
15
15
  */
16
- export const PredictPropertyValueAVMType = {
16
+ export const PredictPropertyValueAVMResponseType = {
17
17
  ApiError: "api_error",
18
18
  InvalidRequestError: "invalid_request_error",
19
19
  AuthenticationError: "authentication_error",
@@ -22,11 +22,11 @@ export const PredictPropertyValueAVMType = {
22
22
  /**
23
23
  * Error type category
24
24
  */
25
- export type PredictPropertyValueAVMType = ClosedEnum<
26
- typeof PredictPropertyValueAVMType
25
+ export type PredictPropertyValueAVMResponseType = ClosedEnum<
26
+ typeof PredictPropertyValueAVMResponseType
27
27
  >;
28
28
 
29
- export type PredictPropertyValueAVMError = {
29
+ export type PredictPropertyValueAVMResponseError = {
30
30
  /**
31
31
  * Machine-readable error code
32
32
  */
@@ -46,20 +46,20 @@ export type PredictPropertyValueAVMError = {
46
46
  /**
47
47
  * Error type category
48
48
  */
49
- type: PredictPropertyValueAVMType;
49
+ type: PredictPropertyValueAVMResponseType;
50
50
  };
51
51
 
52
52
  /**
53
53
  * Error response
54
54
  */
55
55
  export type PredictPropertyValueAVMResponseResponseBody = {
56
- error: PredictPropertyValueAVMError;
56
+ error: PredictPropertyValueAVMResponseError;
57
57
  };
58
58
 
59
59
  /**
60
60
  * Error type category
61
61
  */
62
- export const PredictPropertyValueType = {
62
+ export const PredictPropertyValueAVMType = {
63
63
  ApiError: "api_error",
64
64
  InvalidRequestError: "invalid_request_error",
65
65
  AuthenticationError: "authentication_error",
@@ -68,11 +68,11 @@ export const PredictPropertyValueType = {
68
68
  /**
69
69
  * Error type category
70
70
  */
71
- export type PredictPropertyValueType = ClosedEnum<
72
- typeof PredictPropertyValueType
71
+ export type PredictPropertyValueAVMType = ClosedEnum<
72
+ typeof PredictPropertyValueAVMType
73
73
  >;
74
74
 
75
- export type PredictPropertyValueError = {
75
+ export type PredictPropertyValueAVMError = {
76
76
  /**
77
77
  * Machine-readable error code
78
78
  */
@@ -92,20 +92,20 @@ export type PredictPropertyValueError = {
92
92
  /**
93
93
  * Error type category
94
94
  */
95
- type: PredictPropertyValueType;
95
+ type: PredictPropertyValueAVMType;
96
96
  };
97
97
 
98
98
  /**
99
99
  * Error response
100
100
  */
101
101
  export type PredictPropertyValueAVMResponseBody = {
102
- error: PredictPropertyValueError;
102
+ error: PredictPropertyValueAVMError;
103
103
  };
104
104
 
105
105
  /**
106
106
  * Error type category
107
107
  */
108
- export const PredictPropertyValueAVMResponseType = {
108
+ export const PredictPropertyValueType = {
109
109
  ApiError: "api_error",
110
110
  InvalidRequestError: "invalid_request_error",
111
111
  AuthenticationError: "authentication_error",
@@ -114,11 +114,11 @@ export const PredictPropertyValueAVMResponseType = {
114
114
  /**
115
115
  * Error type category
116
116
  */
117
- export type PredictPropertyValueAVMResponseType = ClosedEnum<
118
- typeof PredictPropertyValueAVMResponseType
117
+ export type PredictPropertyValueType = ClosedEnum<
118
+ typeof PredictPropertyValueType
119
119
  >;
120
120
 
121
- export type ErrorT = {
121
+ export type PredictPropertyValueError = {
122
122
  /**
123
123
  * Machine-readable error code
124
124
  */
@@ -138,14 +138,14 @@ export type ErrorT = {
138
138
  /**
139
139
  * Error type category
140
140
  */
141
- type: PredictPropertyValueAVMResponseType;
141
+ type: PredictPropertyValueType;
142
142
  };
143
143
 
144
144
  /**
145
145
  * Error response
146
146
  */
147
147
  export type PredictPropertyValueResponseBody = {
148
- error: ErrorT;
148
+ error: PredictPropertyValueError;
149
149
  };
150
150
 
151
151
  export type PredictPropertyValueResponse =
@@ -155,13 +155,13 @@ export type PredictPropertyValueResponse =
155
155
  | PredictPropertyValueAVMResponseResponseBody;
156
156
 
157
157
  /** @internal */
158
- export const PredictPropertyValueAVMType$inboundSchema: z.ZodNativeEnum<
159
- typeof PredictPropertyValueAVMType
160
- > = z.nativeEnum(PredictPropertyValueAVMType);
158
+ export const PredictPropertyValueAVMResponseType$inboundSchema: z.ZodNativeEnum<
159
+ typeof PredictPropertyValueAVMResponseType
160
+ > = z.nativeEnum(PredictPropertyValueAVMResponseType);
161
161
 
162
162
  /** @internal */
163
- export const PredictPropertyValueAVMError$inboundSchema: z.ZodType<
164
- PredictPropertyValueAVMError,
163
+ export const PredictPropertyValueAVMResponseError$inboundSchema: z.ZodType<
164
+ PredictPropertyValueAVMResponseError,
165
165
  z.ZodTypeDef,
166
166
  unknown
167
167
  > = z.object({
@@ -169,20 +169,21 @@ export const PredictPropertyValueAVMError$inboundSchema: z.ZodType<
169
169
  doc_url: z.string().optional(),
170
170
  message: z.string(),
171
171
  param: z.string().optional(),
172
- type: PredictPropertyValueAVMType$inboundSchema,
172
+ type: PredictPropertyValueAVMResponseType$inboundSchema,
173
173
  }).transform((v) => {
174
174
  return remap$(v, {
175
175
  "doc_url": "docUrl",
176
176
  });
177
177
  });
178
178
 
179
- export function predictPropertyValueAVMErrorFromJSON(
179
+ export function predictPropertyValueAVMResponseErrorFromJSON(
180
180
  jsonString: string,
181
- ): SafeParseResult<PredictPropertyValueAVMError, SDKValidationError> {
181
+ ): SafeParseResult<PredictPropertyValueAVMResponseError, SDKValidationError> {
182
182
  return safeParse(
183
183
  jsonString,
184
- (x) => PredictPropertyValueAVMError$inboundSchema.parse(JSON.parse(x)),
185
- `Failed to parse 'PredictPropertyValueAVMError' from JSON`,
184
+ (x) =>
185
+ PredictPropertyValueAVMResponseError$inboundSchema.parse(JSON.parse(x)),
186
+ `Failed to parse 'PredictPropertyValueAVMResponseError' from JSON`,
186
187
  );
187
188
  }
188
189
 
@@ -193,7 +194,7 @@ export const PredictPropertyValueAVMResponseResponseBody$inboundSchema:
193
194
  z.ZodTypeDef,
194
195
  unknown
195
196
  > = z.object({
196
- error: z.lazy(() => PredictPropertyValueAVMError$inboundSchema),
197
+ error: z.lazy(() => PredictPropertyValueAVMResponseError$inboundSchema),
197
198
  });
198
199
 
199
200
  export function predictPropertyValueAVMResponseResponseBodyFromJSON(
@@ -213,13 +214,13 @@ export function predictPropertyValueAVMResponseResponseBodyFromJSON(
213
214
  }
214
215
 
215
216
  /** @internal */
216
- export const PredictPropertyValueType$inboundSchema: z.ZodNativeEnum<
217
- typeof PredictPropertyValueType
218
- > = z.nativeEnum(PredictPropertyValueType);
217
+ export const PredictPropertyValueAVMType$inboundSchema: z.ZodNativeEnum<
218
+ typeof PredictPropertyValueAVMType
219
+ > = z.nativeEnum(PredictPropertyValueAVMType);
219
220
 
220
221
  /** @internal */
221
- export const PredictPropertyValueError$inboundSchema: z.ZodType<
222
- PredictPropertyValueError,
222
+ export const PredictPropertyValueAVMError$inboundSchema: z.ZodType<
223
+ PredictPropertyValueAVMError,
223
224
  z.ZodTypeDef,
224
225
  unknown
225
226
  > = z.object({
@@ -227,20 +228,20 @@ export const PredictPropertyValueError$inboundSchema: z.ZodType<
227
228
  doc_url: z.string().optional(),
228
229
  message: z.string(),
229
230
  param: z.string().optional(),
230
- type: PredictPropertyValueType$inboundSchema,
231
+ type: PredictPropertyValueAVMType$inboundSchema,
231
232
  }).transform((v) => {
232
233
  return remap$(v, {
233
234
  "doc_url": "docUrl",
234
235
  });
235
236
  });
236
237
 
237
- export function predictPropertyValueErrorFromJSON(
238
+ export function predictPropertyValueAVMErrorFromJSON(
238
239
  jsonString: string,
239
- ): SafeParseResult<PredictPropertyValueError, SDKValidationError> {
240
+ ): SafeParseResult<PredictPropertyValueAVMError, SDKValidationError> {
240
241
  return safeParse(
241
242
  jsonString,
242
- (x) => PredictPropertyValueError$inboundSchema.parse(JSON.parse(x)),
243
- `Failed to parse 'PredictPropertyValueError' from JSON`,
243
+ (x) => PredictPropertyValueAVMError$inboundSchema.parse(JSON.parse(x)),
244
+ `Failed to parse 'PredictPropertyValueAVMError' from JSON`,
244
245
  );
245
246
  }
246
247
 
@@ -250,7 +251,7 @@ export const PredictPropertyValueAVMResponseBody$inboundSchema: z.ZodType<
250
251
  z.ZodTypeDef,
251
252
  unknown
252
253
  > = z.object({
253
- error: z.lazy(() => PredictPropertyValueError$inboundSchema),
254
+ error: z.lazy(() => PredictPropertyValueAVMError$inboundSchema),
254
255
  });
255
256
 
256
257
  export function predictPropertyValueAVMResponseBodyFromJSON(
@@ -265,31 +266,34 @@ export function predictPropertyValueAVMResponseBodyFromJSON(
265
266
  }
266
267
 
267
268
  /** @internal */
268
- export const PredictPropertyValueAVMResponseType$inboundSchema: z.ZodNativeEnum<
269
- typeof PredictPropertyValueAVMResponseType
270
- > = z.nativeEnum(PredictPropertyValueAVMResponseType);
269
+ export const PredictPropertyValueType$inboundSchema: z.ZodNativeEnum<
270
+ typeof PredictPropertyValueType
271
+ > = z.nativeEnum(PredictPropertyValueType);
271
272
 
272
273
  /** @internal */
273
- export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
274
- .object({
275
- code: z.string().optional(),
276
- doc_url: z.string().optional(),
277
- message: z.string(),
278
- param: z.string().optional(),
279
- type: PredictPropertyValueAVMResponseType$inboundSchema,
280
- }).transform((v) => {
281
- return remap$(v, {
282
- "doc_url": "docUrl",
283
- });
274
+ export const PredictPropertyValueError$inboundSchema: z.ZodType<
275
+ PredictPropertyValueError,
276
+ z.ZodTypeDef,
277
+ unknown
278
+ > = z.object({
279
+ code: z.string().optional(),
280
+ doc_url: z.string().optional(),
281
+ message: z.string(),
282
+ param: z.string().optional(),
283
+ type: PredictPropertyValueType$inboundSchema,
284
+ }).transform((v) => {
285
+ return remap$(v, {
286
+ "doc_url": "docUrl",
284
287
  });
288
+ });
285
289
 
286
- export function errorFromJSON(
290
+ export function predictPropertyValueErrorFromJSON(
287
291
  jsonString: string,
288
- ): SafeParseResult<ErrorT, SDKValidationError> {
292
+ ): SafeParseResult<PredictPropertyValueError, SDKValidationError> {
289
293
  return safeParse(
290
294
  jsonString,
291
- (x) => ErrorT$inboundSchema.parse(JSON.parse(x)),
292
- `Failed to parse 'ErrorT' from JSON`,
295
+ (x) => PredictPropertyValueError$inboundSchema.parse(JSON.parse(x)),
296
+ `Failed to parse 'PredictPropertyValueError' from JSON`,
293
297
  );
294
298
  }
295
299
 
@@ -299,7 +303,7 @@ export const PredictPropertyValueResponseBody$inboundSchema: z.ZodType<
299
303
  z.ZodTypeDef,
300
304
  unknown
301
305
  > = z.object({
302
- error: z.lazy(() => ErrorT$inboundSchema),
306
+ error: z.lazy(() => PredictPropertyValueError$inboundSchema),
303
307
  });
304
308
 
305
309
  export function predictPropertyValueResponseBodyFromJSON(
@@ -0,0 +1,162 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ NestedAggregation,
9
+ NestedAggregation$Outbound,
10
+ NestedAggregation$outboundSchema,
11
+ } from "./nestedaggregation.js";
12
+ import {
13
+ RangeDefinition,
14
+ RangeDefinition$Outbound,
15
+ RangeDefinition$outboundSchema,
16
+ } from "./rangedefinition.js";
17
+
18
+ export const Order = {
19
+ Asc: "asc",
20
+ Desc: "desc",
21
+ } as const;
22
+ export type Order = ClosedEnum<typeof Order>;
23
+
24
+ /**
25
+ * Type of aggregation
26
+ */
27
+ export const Type = {
28
+ Terms: "terms",
29
+ Range: "range",
30
+ Histogram: "histogram",
31
+ DateHistogram: "date_histogram",
32
+ Stats: "stats",
33
+ ExtendedStats: "extended_stats",
34
+ Min: "min",
35
+ Max: "max",
36
+ Avg: "avg",
37
+ Sum: "sum",
38
+ Count: "count",
39
+ Cardinality: "cardinality",
40
+ Percentiles: "percentiles",
41
+ } as const;
42
+ /**
43
+ * Type of aggregation
44
+ */
45
+ export type Type = ClosedEnum<typeof Type>;
46
+
47
+ export type AggregationInput = {
48
+ /**
49
+ * Nested sub-aggregations (max 10, up to 2 levels deep)
50
+ */
51
+ aggs?: Array<NestedAggregation> | undefined;
52
+ /**
53
+ * Calendar interval for date_histogram (1d, 1w, 1M, etc.)
54
+ */
55
+ calendarInterval?: string | undefined;
56
+ /**
57
+ * Field to aggregate on (must be in allowed field list)
58
+ */
59
+ field: string;
60
+ /**
61
+ * Fixed interval for date_histogram (1h, 90m, etc.)
62
+ */
63
+ fixedInterval?: string | undefined;
64
+ /**
65
+ * Date format for date_histogram
66
+ */
67
+ format?: string | undefined;
68
+ /**
69
+ * Interval for histogram aggregation
70
+ */
71
+ interval?: number | undefined;
72
+ /**
73
+ * Minimum document count for bucket to be returned
74
+ */
75
+ minDocCount?: number | undefined;
76
+ /**
77
+ * Unique name for this aggregation
78
+ */
79
+ name: string;
80
+ /**
81
+ * Sort order for terms buckets
82
+ */
83
+ order?: { [k: string]: Order } | undefined;
84
+ /**
85
+ * Percentiles to calculate
86
+ */
87
+ percents?: Array<number> | undefined;
88
+ /**
89
+ * Custom ranges for range aggregation
90
+ */
91
+ ranges?: Array<RangeDefinition> | undefined;
92
+ /**
93
+ * Max buckets for terms aggregation
94
+ */
95
+ size?: number | undefined;
96
+ /**
97
+ * Timezone for date_histogram
98
+ */
99
+ timeZone?: string | undefined;
100
+ /**
101
+ * Type of aggregation
102
+ */
103
+ type: Type;
104
+ };
105
+
106
+ /** @internal */
107
+ export const Order$outboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
108
+ Order,
109
+ );
110
+
111
+ /** @internal */
112
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
113
+ Type,
114
+ );
115
+
116
+ /** @internal */
117
+ export type AggregationInput$Outbound = {
118
+ aggs?: Array<NestedAggregation$Outbound> | undefined;
119
+ calendarInterval?: string | undefined;
120
+ field: string;
121
+ fixedInterval?: string | undefined;
122
+ format?: string | undefined;
123
+ interval?: number | undefined;
124
+ minDocCount?: number | undefined;
125
+ name: string;
126
+ order?: { [k: string]: string } | undefined;
127
+ percents?: Array<number> | undefined;
128
+ ranges?: Array<RangeDefinition$Outbound> | undefined;
129
+ size?: number | undefined;
130
+ timeZone?: string | undefined;
131
+ type: string;
132
+ };
133
+
134
+ /** @internal */
135
+ export const AggregationInput$outboundSchema: z.ZodType<
136
+ AggregationInput$Outbound,
137
+ z.ZodTypeDef,
138
+ AggregationInput
139
+ > = z.object({
140
+ aggs: z.array(NestedAggregation$outboundSchema).optional(),
141
+ calendarInterval: z.string().optional(),
142
+ field: z.string(),
143
+ fixedInterval: z.string().optional(),
144
+ format: z.string().optional(),
145
+ interval: z.number().optional(),
146
+ minDocCount: z.number().int().optional(),
147
+ name: z.string(),
148
+ order: z.record(Order$outboundSchema).optional(),
149
+ percents: z.array(z.number()).optional(),
150
+ ranges: z.array(RangeDefinition$outboundSchema).optional(),
151
+ size: z.number().int().optional(),
152
+ timeZone: z.string().optional(),
153
+ type: Type$outboundSchema,
154
+ });
155
+
156
+ export function aggregationInputToJSON(
157
+ aggregationInput: AggregationInput,
158
+ ): string {
159
+ return JSON.stringify(
160
+ AggregationInput$outboundSchema.parse(aggregationInput),
161
+ );
162
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Quality tier based on similarity to subject
13
+ */
14
+ export const Tier = {
15
+ Excellent: "excellent",
16
+ Good: "good",
17
+ Acceptable: "acceptable",
18
+ Excluded: "excluded",
19
+ } as const;
20
+ /**
21
+ * Quality tier based on similarity to subject
22
+ */
23
+ export type Tier = ClosedEnum<typeof Tier>;
24
+
25
+ /**
26
+ * Comparable property with tier assessment
27
+ */
28
+ export type AnalysisComparable = {
29
+ /**
30
+ * Number of bathrooms
31
+ */
32
+ baths?: number | undefined;
33
+ /**
34
+ * Number of bedrooms
35
+ */
36
+ beds?: number | undefined;
37
+ /**
38
+ * Distance from subject property in metres
39
+ */
40
+ distanceMeters?: number | undefined;
41
+ /**
42
+ * Floor area in square metres
43
+ */
44
+ floorArea?: number | undefined;
45
+ /**
46
+ * Transaction price in GBP
47
+ */
48
+ price: number;
49
+ /**
50
+ * Unique property identifier
51
+ */
52
+ propertyId: string;
53
+ /**
54
+ * Property type
55
+ */
56
+ propertyType?: string | undefined;
57
+ /**
58
+ * Quality tier based on similarity to subject
59
+ */
60
+ tier: Tier;
61
+ /**
62
+ * Reasons for tier assignment
63
+ */
64
+ tierReasons: Array<string>;
65
+ /**
66
+ * Days since transaction
67
+ */
68
+ transactionAge?: number | undefined;
69
+ /**
70
+ * Weighting factor used in valuation
71
+ */
72
+ weight?: number | undefined;
73
+ };
74
+
75
+ /** @internal */
76
+ export const Tier$inboundSchema: z.ZodNativeEnum<typeof Tier> = z.nativeEnum(
77
+ Tier,
78
+ );
79
+
80
+ /** @internal */
81
+ export const AnalysisComparable$inboundSchema: z.ZodType<
82
+ AnalysisComparable,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ baths: z.number().int().optional(),
87
+ beds: z.number().int().optional(),
88
+ distanceMeters: z.number().optional(),
89
+ floorArea: z.number().optional(),
90
+ price: z.number(),
91
+ propertyId: z.string(),
92
+ propertyType: z.string().optional(),
93
+ tier: Tier$inboundSchema,
94
+ tierReasons: z.array(z.string()),
95
+ transactionAge: z.number().optional(),
96
+ weight: z.number().optional(),
97
+ });
98
+
99
+ export function analysisComparableFromJSON(
100
+ jsonString: string,
101
+ ): SafeParseResult<AnalysisComparable, SDKValidationError> {
102
+ return safeParse(
103
+ jsonString,
104
+ (x) => AnalysisComparable$inboundSchema.parse(JSON.parse(x)),
105
+ `Failed to parse 'AnalysisComparable' from JSON`,
106
+ );
107
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Type of transaction - sale or rental valuation
10
+ */
11
+ export const TransactionType = {
12
+ Sale: "sale",
13
+ Rent: "rent",
14
+ } as const;
15
+ /**
16
+ * Type of transaction - sale or rental valuation
17
+ */
18
+ export type TransactionType = ClosedEnum<typeof TransactionType>;
19
+
20
+ /**
21
+ * Request for detailed AVM analysis with comparables and history
22
+ */
23
+ export type AVMAnalysisRequest = {
24
+ /**
25
+ * Number of months of historical data to include
26
+ */
27
+ historyMonths?: number | undefined;
28
+ /**
29
+ * Whether to include historical valuations
30
+ */
31
+ includeHistory?: boolean | undefined;
32
+ /**
33
+ * Property location identifier
34
+ */
35
+ locationId: string;
36
+ /**
37
+ * Type of transaction - sale or rental valuation
38
+ */
39
+ transactionType?: TransactionType | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const TransactionType$outboundSchema: z.ZodNativeEnum<
44
+ typeof TransactionType
45
+ > = z.nativeEnum(TransactionType);
46
+
47
+ /** @internal */
48
+ export type AVMAnalysisRequest$Outbound = {
49
+ historyMonths: number;
50
+ includeHistory: boolean;
51
+ locationId: string;
52
+ transactionType: string;
53
+ };
54
+
55
+ /** @internal */
56
+ export const AVMAnalysisRequest$outboundSchema: z.ZodType<
57
+ AVMAnalysisRequest$Outbound,
58
+ z.ZodTypeDef,
59
+ AVMAnalysisRequest
60
+ > = z.object({
61
+ historyMonths: z.number().int().default(12),
62
+ includeHistory: z.boolean().default(true),
63
+ locationId: z.string(),
64
+ transactionType: TransactionType$outboundSchema.default("sale"),
65
+ });
66
+
67
+ export function avmAnalysisRequestToJSON(
68
+ avmAnalysisRequest: AVMAnalysisRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ AVMAnalysisRequest$outboundSchema.parse(avmAnalysisRequest),
72
+ );
73
+ }