@model-match/api 3.74.0 → 3.76.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-DZvh-WnI.mjs";
1
+ import { C as client, n as createClient } from "../src-BYgQ-O4-.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -2033,6 +2033,22 @@ const companyRetentionCaptured = (options) => (options.client ?? client).get({
2033
2033
  ...options
2034
2034
  });
2035
2035
  /**
2036
+ * Retained borrowers likely to list their home (weekly)
2037
+ *
2038
+ * The company's retained borrowers (their latest loan is still the company's) whose home looks likely to be listed for sale soon, each with the company loan officer who wrote that loan — only LOs the company employed on the loan, not brokers' LOs on loans it only funded. Each row carries a likely-to-list score from 0 to 100: a priority / likelihood ranking, not a probability. Highest score first; filter to one LO with `originator`. "Likely to list" is the LO Borrower Retention tab's rule: a score of 90 or more, and not listed for sale or under contract now (those are in `active-listings`). Checked weekly with the retention snapshot — `computedAt` says when. 404 means not computed for this company yet.
2039
+ */
2040
+ const companyRetentionLikelyToSell = (options) => (options.client ?? client).get({
2041
+ security: [{
2042
+ name: "x-api-key",
2043
+ type: "apiKey"
2044
+ }, {
2045
+ scheme: "bearer",
2046
+ type: "http"
2047
+ }],
2048
+ url: "/v1/companies/{nmlsId}/retention/likely-to-sell",
2049
+ ...options
2050
+ });
2051
+ /**
2036
2052
  * Loan originators sponsored by this company
2037
2053
  */
2038
2054
  const companySponsoredIndividuals = (options) => (options.client ?? client).post({
@@ -6383,4 +6399,4 @@ const listLoMoveSignals = (options) => (options.client ?? client).get({
6383
6399
  ...options
6384
6400
  });
6385
6401
  //#endregion
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 };
6402
+ 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, companyRetentionLikelyToSell, 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 };
@@ -2958,6 +2958,24 @@ var Companies = class {
2958
2958
  });
2959
2959
  }
2960
2960
  /**
2961
+ * Retained borrowers likely to list their home (weekly)
2962
+ *
2963
+ * The company's retained borrowers (their latest loan is still the company's) whose home looks likely to be listed for sale soon, each with the company loan officer who wrote that loan — only LOs the company employed on the loan, not brokers' LOs on loans it only funded. Each row carries a likely-to-list score from 0 to 100: a priority / likelihood ranking, not a probability. Highest score first; filter to one LO with `originator`. "Likely to list" is the LO Borrower Retention tab's rule: a score of 90 or more, and not listed for sale or under contract now (those are in `active-listings`). Checked weekly with the retention snapshot — `computedAt` says when. 404 means not computed for this company yet.
2964
+ */
2965
+ static retentionLikelyToSell(options) {
2966
+ return (options.client ?? client).get({
2967
+ security: [{
2968
+ name: "x-api-key",
2969
+ type: "apiKey"
2970
+ }, {
2971
+ scheme: "bearer",
2972
+ type: "http"
2973
+ }],
2974
+ url: "/v1/companies/{nmlsId}/retention/likely-to-sell",
2975
+ ...options
2976
+ });
2977
+ }
2978
+ /**
2961
2979
  * Loan originators sponsored by this company
2962
2980
  */
2963
2981
  static sponsoredIndividuals(options) {
package/openapi.json CHANGED
@@ -14154,6 +14154,199 @@
14154
14154
  ],
14155
14155
  "type": "object"
14156
14156
  },
14157
+ "CompanyLikelyToSell": {
14158
+ "properties": {
14159
+ "address": {
14160
+ "description": "From the company's loan record on the parcel.",
14161
+ "type": "string"
14162
+ },
14163
+ "lender": {
14164
+ "description": "Current lender of record: the lender on that loan, which is still the borrower's latest (retained).",
14165
+ "nullable": true,
14166
+ "type": "string"
14167
+ },
14168
+ "loanAmount": {
14169
+ "description": "Original amount of that loan.",
14170
+ "type": "number"
14171
+ },
14172
+ "loanDate": {
14173
+ "description": "Date of the company's latest loan on the parcel.",
14174
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
14175
+ "type": "string"
14176
+ },
14177
+ "originatorName": {
14178
+ "type": "string"
14179
+ },
14180
+ "originatorNmlsId": {
14181
+ "description": "The LO who wrote the company's latest loan on the parcel — employed by the company on that loan.",
14182
+ "type": "string"
14183
+ },
14184
+ "propensityCategory": {
14185
+ "description": "The score's band label (e.g. `High`).",
14186
+ "nullable": true,
14187
+ "type": "string"
14188
+ },
14189
+ "propertyId": {
14190
+ "type": "string"
14191
+ },
14192
+ "salePropensity": {
14193
+ "description": "Likely-to-list score, 0–100: a priority / likelihood ranking (higher = more likely to list soon), not a probability. Every row is 90 or more.",
14194
+ "type": "number"
14195
+ },
14196
+ "writtenAt": {
14197
+ "description": "`view=team` only: the previous employer the LO wrote this loan at. Null on a loan written at the company (and on every `view=company` row).",
14198
+ "nullable": true,
14199
+ "type": "string"
14200
+ }
14201
+ },
14202
+ "required": [
14203
+ "propertyId",
14204
+ "address",
14205
+ "salePropensity",
14206
+ "propensityCategory",
14207
+ "originatorNmlsId",
14208
+ "originatorName",
14209
+ "loanDate",
14210
+ "loanAmount",
14211
+ "lender"
14212
+ ],
14213
+ "type": "object"
14214
+ },
14215
+ "CompanyLikelyToSellResponse": {
14216
+ "properties": {
14217
+ "companyNmlsId": {
14218
+ "type": "string"
14219
+ },
14220
+ "computedAt": {
14221
+ "description": "When the weekly batch checked these borrowers (ISO-8601). Rows are as of this time, not live.",
14222
+ "type": "string"
14223
+ },
14224
+ "cursor": {
14225
+ "description": "Cursor for the next page; absent on the last page.",
14226
+ "type": "string"
14227
+ },
14228
+ "data": {
14229
+ "items": {
14230
+ "$ref": "#/components/schemas/CompanyLikelyToSell"
14231
+ },
14232
+ "type": "array"
14233
+ },
14234
+ "status": {
14235
+ "description": "`timeout`: the check did not finish in this run, so the previous run's rows and counts are kept (or none, on a first run).",
14236
+ "enum": [
14237
+ "ok",
14238
+ "timeout"
14239
+ ],
14240
+ "type": "string"
14241
+ },
14242
+ "total": {
14243
+ "description": "Rows matching the filter, across all pages.",
14244
+ "type": "integer"
14245
+ }
14246
+ },
14247
+ "required": [
14248
+ "companyNmlsId",
14249
+ "computedAt",
14250
+ "status",
14251
+ "data",
14252
+ "total"
14253
+ ],
14254
+ "type": "object"
14255
+ },
14256
+ "CompanyLikelyToSellSummary": {
14257
+ "description": "Retained borrowers likely to list their home for sale (likely-to-list score 90+, not listed now), on loans by the company's own LOs: the count and top LOs (rows: `GET /companies/{nmlsId}/retention/likely-to-sell`). Same for every window. Null until the weekly batch has checked this company.",
14258
+ "nullable": true,
14259
+ "properties": {
14260
+ "computedAt": {
14261
+ "description": "When the batch checked these borrowers (ISO-8601) — the run that wrote the rows. As of this time, not live.",
14262
+ "type": "string"
14263
+ },
14264
+ "parcelsChecked": {
14265
+ "description": "Retained parcels whose latest company loan was written by an LO the company employed on it — the population checked (the same one active listings checks).",
14266
+ "type": "integer"
14267
+ },
14268
+ "parcelsScored": {
14269
+ "description": "Of those, parcels with a likely-to-list score on file. A parcel without one is unknown, not unlikely.",
14270
+ "type": "integer"
14271
+ },
14272
+ "status": {
14273
+ "description": "`timeout`: the check did not finish in this run, so the previous run's rows and counts are kept (or none, on a first run).",
14274
+ "enum": [
14275
+ "ok",
14276
+ "timeout"
14277
+ ],
14278
+ "type": "string"
14279
+ },
14280
+ "team": {
14281
+ "description": "The current-team view's counts; null until the batch has checked it for this company.",
14282
+ "nullable": true,
14283
+ "properties": {
14284
+ "roster": {
14285
+ "description": "Current LOs (active sponsorships) checked.",
14286
+ "type": "integer"
14287
+ },
14288
+ "status": {
14289
+ "enum": [
14290
+ "ok",
14291
+ "timeout"
14292
+ ],
14293
+ "type": "string"
14294
+ },
14295
+ "total": {
14296
+ "description": "Rows in `view=team`: borrowers likely to list on loans by the company's current LOs, written at the company or at a previous employer.",
14297
+ "type": "integer"
14298
+ },
14299
+ "writtenElsewhere": {
14300
+ "description": "Of those, loans the LOs wrote at a previous employer.",
14301
+ "type": "integer"
14302
+ }
14303
+ },
14304
+ "required": [
14305
+ "status",
14306
+ "total",
14307
+ "writtenElsewhere",
14308
+ "roster"
14309
+ ],
14310
+ "type": "object"
14311
+ },
14312
+ "topOriginators": {
14313
+ "description": "Top 10 LOs by borrowers likely to list.",
14314
+ "items": {
14315
+ "properties": {
14316
+ "count": {
14317
+ "type": "integer"
14318
+ },
14319
+ "name": {
14320
+ "type": "string"
14321
+ },
14322
+ "nmlsId": {
14323
+ "type": "string"
14324
+ }
14325
+ },
14326
+ "required": [
14327
+ "nmlsId",
14328
+ "name",
14329
+ "count"
14330
+ ],
14331
+ "type": "object"
14332
+ },
14333
+ "type": "array"
14334
+ },
14335
+ "total": {
14336
+ "description": "Retained borrowers, on loans written by the company's own LOs, whose home has a likely-to-list score of 90 or more and is not listed for sale or under contract now.",
14337
+ "type": "integer"
14338
+ }
14339
+ },
14340
+ "required": [
14341
+ "computedAt",
14342
+ "status",
14343
+ "total",
14344
+ "parcelsChecked",
14345
+ "parcelsScored",
14346
+ "topOriginators"
14347
+ ],
14348
+ "type": "object"
14349
+ },
14157
14350
  "CompanyListRequest": {
14158
14351
  "additionalProperties": false,
14159
14352
  "properties": {
@@ -16399,6 +16592,9 @@
16399
16592
  ],
16400
16593
  "type": "object"
16401
16594
  },
16595
+ "likelyToSell": {
16596
+ "$ref": "#/components/schemas/CompanyLikelyToSellSummary"
16597
+ },
16402
16598
  "originatorRetention": {
16403
16599
  "description": "Refinance retention for the company's own loan officers, ranked by borrowers who refinanced at another company (top 10; only LOs with at least 10 refi events in the window).",
16404
16600
  "items": {
@@ -16817,6 +17013,7 @@
16817
17013
  "originatorRetention",
16818
17014
  "previous",
16819
17015
  "activeListings",
17016
+ "likelyToSell",
16820
17017
  "book"
16821
17018
  ],
16822
17019
  "type": "object"
@@ -44208,6 +44405,9 @@
44208
44405
  "listingContact": {
44209
44406
  "$ref": "#/components/schemas/SaleListingContact"
44210
44407
  },
44408
+ "media": {
44409
+ "$ref": "#/components/schemas/SaleMedia"
44410
+ },
44211
44411
  "mlsBoards": {
44212
44412
  "nullable": true
44213
44413
  },
@@ -44894,6 +45094,9 @@
44894
45094
  "lon": {
44895
45095
  "type": "number"
44896
45096
  },
45097
+ "media": {
45098
+ "$ref": "#/components/schemas/SaleMediaSummary"
45099
+ },
44897
45100
  "price": {
44898
45101
  "description": "Sold price for a closed sale (`SLD`), otherwise the list price, in dollars",
44899
45102
  "nullable": true,
@@ -45204,6 +45407,117 @@
45204
45407
  ],
45205
45408
  "type": "object"
45206
45409
  },
45410
+ "SaleMedia": {
45411
+ "description": "Listing photos found on the open web and stored by a partner app: links to images hosted by the source (no image bytes are stored here), plus where they came from. Present only while a non-expired `found` record exists for THIS listing (a relist gets its own), so it is `null` for most listings. Not MLS data and not necessarily the listing broker's photos: attribute them to `source.host` and link to `source.pageUrl`; they can stop resolving at any time.",
45412
+ "nullable": true,
45413
+ "properties": {
45414
+ "foundAt": {
45415
+ "description": "When the photos were found (ISO-8601)",
45416
+ "type": "string"
45417
+ },
45418
+ "photos": {
45419
+ "items": {
45420
+ "properties": {
45421
+ "bytes": {
45422
+ "type": "number"
45423
+ },
45424
+ "height": {
45425
+ "type": "number"
45426
+ },
45427
+ "url": {
45428
+ "description": "https URL of the image",
45429
+ "type": "string"
45430
+ },
45431
+ "width": {
45432
+ "type": "number"
45433
+ }
45434
+ },
45435
+ "required": [
45436
+ "url",
45437
+ "width",
45438
+ "height"
45439
+ ],
45440
+ "type": "object"
45441
+ },
45442
+ "type": "array"
45443
+ },
45444
+ "source": {
45445
+ "properties": {
45446
+ "host": {
45447
+ "description": "Host the photos came from",
45448
+ "type": "string"
45449
+ },
45450
+ "pageUrl": {
45451
+ "description": "Page the photos were read from",
45452
+ "type": "string"
45453
+ }
45454
+ },
45455
+ "required": [
45456
+ "host",
45457
+ "pageUrl"
45458
+ ],
45459
+ "type": "object"
45460
+ }
45461
+ },
45462
+ "required": [
45463
+ "photos",
45464
+ "source",
45465
+ "foundAt"
45466
+ ],
45467
+ "type": "object"
45468
+ },
45469
+ "SaleMediaSummary": {
45470
+ "description": "The first listing photo found on the open web, how many were found, and where from. Present on a list or map row only while a non-expired `found` record exists for THIS listing, otherwise the key is absent. Same caveats as `SaleMedia`: third-party links, attribute to `source.host`, they can stop resolving.",
45471
+ "properties": {
45472
+ "count": {
45473
+ "description": "How many photos exist for this listing (the full list is on `GET /v1/sales/{id}`)",
45474
+ "type": "integer"
45475
+ },
45476
+ "cover": {
45477
+ "properties": {
45478
+ "height": {
45479
+ "type": "number"
45480
+ },
45481
+ "url": {
45482
+ "description": "https URL of the cover image",
45483
+ "type": "string"
45484
+ },
45485
+ "width": {
45486
+ "type": "number"
45487
+ }
45488
+ },
45489
+ "required": [
45490
+ "url",
45491
+ "width",
45492
+ "height"
45493
+ ],
45494
+ "type": "object"
45495
+ },
45496
+ "source": {
45497
+ "properties": {
45498
+ "host": {
45499
+ "description": "Host the photos came from",
45500
+ "type": "string"
45501
+ },
45502
+ "pageUrl": {
45503
+ "description": "Page the photos were read from",
45504
+ "type": "string"
45505
+ }
45506
+ },
45507
+ "required": [
45508
+ "host",
45509
+ "pageUrl"
45510
+ ],
45511
+ "type": "object"
45512
+ }
45513
+ },
45514
+ "required": [
45515
+ "cover",
45516
+ "count",
45517
+ "source"
45518
+ ],
45519
+ "type": "object"
45520
+ },
45207
45521
  "SaleMiddleSchoolFilterValue": {
45208
45522
  "anyOf": [
45209
45523
  {
@@ -45474,6 +45788,9 @@
45474
45788
  "nullable": true,
45475
45789
  "type": "string"
45476
45790
  },
45791
+ "media": {
45792
+ "$ref": "#/components/schemas/SaleMediaSummary"
45793
+ },
45477
45794
  "mlsDaysOnMarket": {
45478
45795
  "description": "Days on market as the MLS states it for this listing. Distinct from `daysOnMarket`, which is only filled on some sold rows.",
45479
45796
  "nullable": true,
@@ -47582,7 +47899,7 @@
47582
47899
  "info": {
47583
47900
  "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.",
47584
47901
  "title": "ModelMatch API",
47585
- "version": "3.152.0"
47902
+ "version": "3.155.0"
47586
47903
  },
47587
47904
  "openapi": "3.1.0",
47588
47905
  "paths": {
@@ -59069,6 +59386,148 @@
59069
59386
  ]
59070
59387
  }
59071
59388
  },
59389
+ "/v1/companies/{nmlsId}/retention/likely-to-sell": {
59390
+ "get": {
59391
+ "description": "The company's retained borrowers (their latest loan is still the company's) whose home looks likely to be listed for sale soon, each with the company loan officer who wrote that loan — only LOs the company employed on the loan, not brokers' LOs on loans it only funded. Each row carries a likely-to-list score from 0 to 100: a priority / likelihood ranking, not a probability. Highest score first; filter to one LO with `originator`. \"Likely to list\" is the LO Borrower Retention tab's rule: a score of 90 or more, and not listed for sale or under contract now (those are in `active-listings`). Checked weekly with the retention snapshot — `computedAt` says when. 404 means not computed for this company yet.",
59392
+ "operationId": "companyRetentionLikelyToSell",
59393
+ "parameters": [
59394
+ {
59395
+ "description": "Company NMLS ID",
59396
+ "in": "path",
59397
+ "name": "nmlsId",
59398
+ "required": true,
59399
+ "schema": {
59400
+ "description": "Company NMLS ID",
59401
+ "type": "string"
59402
+ }
59403
+ },
59404
+ {
59405
+ "description": "`company` (default): loans written at the company. `team`: the company's CURRENT loan officers' borrowers — loans they wrote at the company or at a previous employer (`writtenAt`), e.g. a recruit's book.",
59406
+ "in": "query",
59407
+ "name": "view",
59408
+ "required": false,
59409
+ "schema": {
59410
+ "description": "`company` (default): loans written at the company. `team`: the company's CURRENT loan officers' borrowers — loans they wrote at the company or at a previous employer (`writtenAt`), e.g. a recruit's book.",
59411
+ "enum": [
59412
+ "company",
59413
+ "team"
59414
+ ],
59415
+ "type": "string"
59416
+ }
59417
+ },
59418
+ {
59419
+ "description": "Only rows whose loan was written by this LO (NMLS id) — e.g. one of `likelyToSell.topOriginators`.",
59420
+ "in": "query",
59421
+ "name": "originator",
59422
+ "required": false,
59423
+ "schema": {
59424
+ "description": "Only rows whose loan was written by this LO (NMLS id) — e.g. one of `likelyToSell.topOriginators`.",
59425
+ "pattern": "^\\d+$",
59426
+ "type": "string"
59427
+ }
59428
+ },
59429
+ {
59430
+ "description": "Page size (1-100, default 25).",
59431
+ "in": "query",
59432
+ "name": "size",
59433
+ "required": false,
59434
+ "schema": {
59435
+ "description": "Page size (1-100, default 25).",
59436
+ "example": 25,
59437
+ "maximum": 100,
59438
+ "minimum": 1,
59439
+ "type": "integer"
59440
+ }
59441
+ },
59442
+ {
59443
+ "description": "Opaque cursor from the previous page's `cursor`.",
59444
+ "in": "query",
59445
+ "name": "cursor",
59446
+ "required": false,
59447
+ "schema": {
59448
+ "description": "Opaque cursor from the previous page's `cursor`.",
59449
+ "type": "string"
59450
+ }
59451
+ }
59452
+ ],
59453
+ "responses": {
59454
+ "200": {
59455
+ "content": {
59456
+ "application/json": {
59457
+ "schema": {
59458
+ "$ref": "#/components/schemas/CompanyLikelyToSellResponse"
59459
+ }
59460
+ }
59461
+ },
59462
+ "description": "One page of likely-to-list rows"
59463
+ },
59464
+ "400": {
59465
+ "content": {
59466
+ "application/json": {
59467
+ "schema": {
59468
+ "$ref": "#/components/schemas/ErrorResponse"
59469
+ }
59470
+ }
59471
+ },
59472
+ "description": "Validation error"
59473
+ },
59474
+ "401": {
59475
+ "content": {
59476
+ "application/json": {
59477
+ "schema": {
59478
+ "$ref": "#/components/schemas/ErrorResponse"
59479
+ }
59480
+ }
59481
+ },
59482
+ "description": "Unauthorized"
59483
+ },
59484
+ "403": {
59485
+ "content": {
59486
+ "application/json": {
59487
+ "schema": {
59488
+ "$ref": "#/components/schemas/ErrorResponse"
59489
+ }
59490
+ }
59491
+ },
59492
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
59493
+ },
59494
+ "404": {
59495
+ "content": {
59496
+ "application/json": {
59497
+ "schema": {
59498
+ "$ref": "#/components/schemas/ErrorResponse"
59499
+ }
59500
+ }
59501
+ },
59502
+ "description": "Not found"
59503
+ },
59504
+ "413": {
59505
+ "content": {
59506
+ "application/json": {
59507
+ "schema": {
59508
+ "$ref": "#/components/schemas/PayloadTooLarge"
59509
+ }
59510
+ }
59511
+ },
59512
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
59513
+ },
59514
+ "503": {
59515
+ "content": {
59516
+ "application/json": {
59517
+ "schema": {
59518
+ "$ref": "#/components/schemas/SearchUnavailable"
59519
+ }
59520
+ }
59521
+ },
59522
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
59523
+ }
59524
+ },
59525
+ "summary": "Retained borrowers likely to list their home (weekly)",
59526
+ "tags": [
59527
+ "Companies"
59528
+ ]
59529
+ }
59530
+ },
59072
59531
  "/v1/companies/{nmlsId}/sponsored-individuals": {
59073
59532
  "post": {
59074
59533
  "operationId": "companySponsoredIndividuals",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.74.0",
3
+ "version": "3.76.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [