@model-match/api 3.73.0 → 3.74.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.
@@ -1,4 +1,4 @@
1
- import { C as client, n as createClient } from "../src-BjReUrCJ.mjs";
1
+ import { C as client, n as createClient } from "../src-DZvh-WnI.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -6065,6 +6065,26 @@ const salesAnalyticsChart = (options) => (options?.client ?? client).post({
6065
6065
  }
6066
6066
  });
6067
6067
  /**
6068
+ * Neighborhood market stats for a ZIP, city, county or area
6069
+ *
6070
+ * Median sold price, price per sqft, days to sell and sale-to-list ratio over the closed sales in `period` (default `last12Months`), plus active inventory, median list price and the share of active listings with a price cut. Requires a geography (`zipCode`, `city`, `county`, `fips`, `geoPoint` or `geoBounds`). Rentals and prices under $25,000 are excluded, and active listings not touched within `activeWithinDays` are dropped. Medians are approximate and each carries the sample size it is computed from (`sold.samples`). **Property type:** the listing property-type field is populated only on recent rows, so a `propertyType` filter (and the rental exclusion by type) is reliable for recent months only; the price floor is what keeps rentals out of older periods. Billed as one analytics call.
6071
+ */
6072
+ const salesMarketStats = (options) => (options?.client ?? client).post({
6073
+ security: [{
6074
+ name: "x-api-key",
6075
+ type: "apiKey"
6076
+ }, {
6077
+ scheme: "bearer",
6078
+ type: "http"
6079
+ }],
6080
+ url: "/v1/sales/analytics/market-stats",
6081
+ ...options,
6082
+ headers: {
6083
+ "Content-Type": "application/json",
6084
+ ...options?.headers
6085
+ }
6086
+ });
6087
+ /**
6068
6088
  * Market summary with buyer/seller/dual split + previous period
6069
6089
  */
6070
6090
  const salesAnalyticsSummary = (options) => (options?.client ?? client).post({
@@ -6363,4 +6383,4 @@ const listLoMoveSignals = (options) => (options.client ?? client).get({
6363
6383
  ...options
6364
6384
  });
6365
6385
  //#endregion
6366
- export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, mapSales, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
6386
+ export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, mapSales, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, salesMarketStats, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
@@ -7466,6 +7466,28 @@ var Sales = class {
7466
7466
  });
7467
7467
  }
7468
7468
  /**
7469
+ * Neighborhood market stats for a ZIP, city, county or area
7470
+ *
7471
+ * Median sold price, price per sqft, days to sell and sale-to-list ratio over the closed sales in `period` (default `last12Months`), plus active inventory, median list price and the share of active listings with a price cut. Requires a geography (`zipCode`, `city`, `county`, `fips`, `geoPoint` or `geoBounds`). Rentals and prices under $25,000 are excluded, and active listings not touched within `activeWithinDays` are dropped. Medians are approximate and each carries the sample size it is computed from (`sold.samples`). **Property type:** the listing property-type field is populated only on recent rows, so a `propertyType` filter (and the rental exclusion by type) is reliable for recent months only; the price floor is what keeps rentals out of older periods. Billed as one analytics call.
7472
+ */
7473
+ static marketStats(options) {
7474
+ return (options?.client ?? client).post({
7475
+ security: [{
7476
+ name: "x-api-key",
7477
+ type: "apiKey"
7478
+ }, {
7479
+ scheme: "bearer",
7480
+ type: "http"
7481
+ }],
7482
+ url: "/v1/sales/analytics/market-stats",
7483
+ ...options,
7484
+ headers: {
7485
+ "Content-Type": "application/json",
7486
+ ...options?.headers
7487
+ }
7488
+ });
7489
+ }
7490
+ /**
7469
7491
  * Market summary with buyer/seller/dual split + previous period
7470
7492
  */
7471
7493
  static analyticsSummary(options) {
package/openapi.json CHANGED
@@ -45030,6 +45030,180 @@
45030
45030
  ],
45031
45031
  "type": "object"
45032
45032
  },
45033
+ "SaleMarketStatsActive": {
45034
+ "properties": {
45035
+ "count": {
45036
+ "description": "Active inventory: status `ACT`, price at least $25,000, not a rental, touched within `scope.activeWithinDays`",
45037
+ "type": "integer"
45038
+ },
45039
+ "medianListPrice": {
45040
+ "description": "Dollars",
45041
+ "nullable": true,
45042
+ "type": "number"
45043
+ },
45044
+ "priceCutCount": {
45045
+ "description": "Active listings whose current list price is below the original list price",
45046
+ "type": "integer"
45047
+ },
45048
+ "priceCutShare": {
45049
+ "description": "`priceCutCount` / `count`, 0-1; null when `count` is 0",
45050
+ "nullable": true,
45051
+ "type": "number"
45052
+ }
45053
+ },
45054
+ "required": [
45055
+ "count",
45056
+ "medianListPrice",
45057
+ "priceCutCount",
45058
+ "priceCutShare"
45059
+ ],
45060
+ "type": "object"
45061
+ },
45062
+ "SaleMarketStatsRequest": {
45063
+ "additionalProperties": false,
45064
+ "properties": {
45065
+ "activeWithinDays": {
45066
+ "description": "An active listing counts only if its status was last touched within this many days (default 180). Active rows are not removed from the index when they go stale, so without this the inventory includes listings that sold or expired years ago.",
45067
+ "maximum": 365,
45068
+ "minimum": 1,
45069
+ "type": "integer"
45070
+ },
45071
+ "advancedFilters": {
45072
+ "$ref": "#/components/schemas/FilterNode"
45073
+ },
45074
+ "filters": {
45075
+ "$ref": "#/components/schemas/FilterNode"
45076
+ },
45077
+ "flatFilters": {
45078
+ "$ref": "#/components/schemas/SaleFlatFilters"
45079
+ },
45080
+ "period": {
45081
+ "allOf": [
45082
+ {
45083
+ "$ref": "#/components/schemas/DatedPeriod"
45084
+ },
45085
+ {
45086
+ "description": "Window for the SOLD figures, on the sale date. Defaults to `last12Months`. Does not apply to the ACTIVE figures, which describe the market now."
45087
+ }
45088
+ ]
45089
+ }
45090
+ },
45091
+ "type": "object"
45092
+ },
45093
+ "SaleMarketStatsResponse": {
45094
+ "properties": {
45095
+ "active": {
45096
+ "$ref": "#/components/schemas/SaleMarketStatsActive"
45097
+ },
45098
+ "locationNormalizations": {
45099
+ "description": "How each location filter value resolved, as on the list route.",
45100
+ "items": {
45101
+ "$ref": "#/components/schemas/LocationNormalization"
45102
+ },
45103
+ "type": "array"
45104
+ },
45105
+ "scope": {
45106
+ "$ref": "#/components/schemas/SaleMarketStatsScope"
45107
+ },
45108
+ "sold": {
45109
+ "$ref": "#/components/schemas/SaleMarketStatsSold"
45110
+ }
45111
+ },
45112
+ "required": [
45113
+ "sold",
45114
+ "active",
45115
+ "scope"
45116
+ ],
45117
+ "type": "object"
45118
+ },
45119
+ "SaleMarketStatsScope": {
45120
+ "properties": {
45121
+ "activeSince": {
45122
+ "description": "`YYYY-MM-DD`",
45123
+ "type": "string"
45124
+ },
45125
+ "activeWithinDays": {
45126
+ "type": "integer"
45127
+ },
45128
+ "period": {
45129
+ "type": "string"
45130
+ },
45131
+ "soldFrom": {
45132
+ "description": "`YYYY-MM-DD`; null for `allTime`",
45133
+ "nullable": true,
45134
+ "type": "string"
45135
+ },
45136
+ "soldTo": {
45137
+ "nullable": true,
45138
+ "type": "string"
45139
+ }
45140
+ },
45141
+ "required": [
45142
+ "period",
45143
+ "soldFrom",
45144
+ "soldTo",
45145
+ "activeWithinDays",
45146
+ "activeSince"
45147
+ ],
45148
+ "type": "object"
45149
+ },
45150
+ "SaleMarketStatsSold": {
45151
+ "properties": {
45152
+ "count": {
45153
+ "description": "Closed sales (status `SLD`, price at least $25,000, not a rental) in `scope.soldFrom`..`scope.soldTo`",
45154
+ "type": "integer"
45155
+ },
45156
+ "medianDaysToSell": {
45157
+ "description": "Median days from MLS list date to MLS sold date, over sales carrying both (`samples.daysToSell`)",
45158
+ "nullable": true,
45159
+ "type": "number"
45160
+ },
45161
+ "medianPricePerSqft": {
45162
+ "description": "Median of sold price / living area, over the sales with a living area of at least 300 sqft (`samples.pricePerSqft`). Living area is missing on a large share of sold records.",
45163
+ "nullable": true,
45164
+ "type": "number"
45165
+ },
45166
+ "medianSaleToListRatio": {
45167
+ "description": "Median of sold price / final list price (0.95 = 5% under list), over sales carrying both (`samples.saleToList`)",
45168
+ "nullable": true,
45169
+ "type": "number"
45170
+ },
45171
+ "medianSoldPrice": {
45172
+ "description": "Dollars",
45173
+ "nullable": true,
45174
+ "type": "number"
45175
+ },
45176
+ "samples": {
45177
+ "description": "How many sales each median above is computed from. Read these before trusting a median: a neighborhood with a handful of sales has a noisy one.",
45178
+ "properties": {
45179
+ "daysToSell": {
45180
+ "type": "integer"
45181
+ },
45182
+ "pricePerSqft": {
45183
+ "type": "integer"
45184
+ },
45185
+ "saleToList": {
45186
+ "type": "integer"
45187
+ }
45188
+ },
45189
+ "required": [
45190
+ "pricePerSqft",
45191
+ "daysToSell",
45192
+ "saleToList"
45193
+ ],
45194
+ "type": "object"
45195
+ }
45196
+ },
45197
+ "required": [
45198
+ "count",
45199
+ "medianSoldPrice",
45200
+ "medianPricePerSqft",
45201
+ "medianDaysToSell",
45202
+ "medianSaleToListRatio",
45203
+ "samples"
45204
+ ],
45205
+ "type": "object"
45206
+ },
45033
45207
  "SaleMiddleSchoolFilterValue": {
45034
45208
  "anyOf": [
45035
45209
  {
@@ -47408,7 +47582,7 @@
47408
47582
  "info": {
47409
47583
  "description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
47410
47584
  "title": "ModelMatch API",
47411
- "version": "3.151.0"
47585
+ "version": "3.152.0"
47412
47586
  },
47413
47587
  "openapi": "3.1.0",
47414
47588
  "paths": {
@@ -84358,6 +84532,97 @@
84358
84532
  ]
84359
84533
  }
84360
84534
  },
84535
+ "/v1/sales/analytics/market-stats": {
84536
+ "post": {
84537
+ "description": "Median sold price, price per sqft, days to sell and sale-to-list ratio over the closed sales in `period` (default `last12Months`), plus active inventory, median list price and the share of active listings with a price cut. Requires a geography (`zipCode`, `city`, `county`, `fips`, `geoPoint` or `geoBounds`). Rentals and prices under $25,000 are excluded, and active listings not touched within `activeWithinDays` are dropped. Medians are approximate and each carries the sample size it is computed from (`sold.samples`). **Property type:** the listing property-type field is populated only on recent rows, so a `propertyType` filter (and the rental exclusion by type) is reliable for recent months only; the price floor is what keeps rentals out of older periods. Billed as one analytics call.",
84538
+ "operationId": "salesMarketStats",
84539
+ "requestBody": {
84540
+ "content": {
84541
+ "application/json": {
84542
+ "schema": {
84543
+ "$ref": "#/components/schemas/SaleMarketStatsRequest"
84544
+ }
84545
+ }
84546
+ }
84547
+ },
84548
+ "responses": {
84549
+ "200": {
84550
+ "content": {
84551
+ "application/json": {
84552
+ "schema": {
84553
+ "$ref": "#/components/schemas/SaleMarketStatsResponse"
84554
+ }
84555
+ }
84556
+ },
84557
+ "description": "Sold and active market figures"
84558
+ },
84559
+ "400": {
84560
+ "content": {
84561
+ "application/json": {
84562
+ "schema": {
84563
+ "$ref": "#/components/schemas/ErrorResponse"
84564
+ }
84565
+ }
84566
+ },
84567
+ "description": "Validation error. Includes unresolvable location filters: a `city`/`county`/`state`/`zip` value that does not match a recognized location returns 400 rather than an empty result set. Resolve the name with `instantSearch` (use an id from its `results.locations[]`) or `suggestLocations` (use the `id` of a `source: \"dictionary\"` result), then pass that id back as the filter value."
84568
+ },
84569
+ "401": {
84570
+ "content": {
84571
+ "application/json": {
84572
+ "schema": {
84573
+ "$ref": "#/components/schemas/ErrorResponse"
84574
+ }
84575
+ }
84576
+ },
84577
+ "description": "Unauthorized"
84578
+ },
84579
+ "403": {
84580
+ "content": {
84581
+ "application/json": {
84582
+ "schema": {
84583
+ "$ref": "#/components/schemas/ErrorResponse"
84584
+ }
84585
+ }
84586
+ },
84587
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
84588
+ },
84589
+ "404": {
84590
+ "content": {
84591
+ "application/json": {
84592
+ "schema": {
84593
+ "$ref": "#/components/schemas/ErrorResponse"
84594
+ }
84595
+ }
84596
+ },
84597
+ "description": "Not found"
84598
+ },
84599
+ "413": {
84600
+ "content": {
84601
+ "application/json": {
84602
+ "schema": {
84603
+ "$ref": "#/components/schemas/PayloadTooLarge"
84604
+ }
84605
+ }
84606
+ },
84607
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
84608
+ },
84609
+ "503": {
84610
+ "content": {
84611
+ "application/json": {
84612
+ "schema": {
84613
+ "$ref": "#/components/schemas/SearchUnavailable"
84614
+ }
84615
+ }
84616
+ },
84617
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
84618
+ }
84619
+ },
84620
+ "summary": "Neighborhood market stats for a ZIP, city, county or area",
84621
+ "tags": [
84622
+ "Sales"
84623
+ ]
84624
+ }
84625
+ },
84361
84626
  "/v1/sales/analytics/summary": {
84362
84627
  "post": {
84363
84628
  "operationId": "salesAnalyticsSummary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.73.0",
3
+ "version": "3.74.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [