@model-match/api 3.82.0 → 3.83.1

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 { n as createClient, w as client } from "../src-BY9XwetN.mjs";
1
+ import { T as client, n as createClient } from "../src-hzB8r_3G.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4181,6 +4181,22 @@ const shareCrmTemplate = (options) => (options.client ?? client).post({
4181
4181
  }
4182
4182
  });
4183
4183
  /**
4184
+ * One entity's relationship network
4185
+ *
4186
+ * Who an agent, loan officer, mortgage company or lender does the most deals with, and where: the top related entities of each kind with shared deals, dollar volume, deals in the last 12 months and the last deal date, plus the top counties and ZIP codes. Agent: loan officers, other agents, counties, ZIPs. Loan officer: agents, companies (past and current), lenders, counties, ZIPs. Company: loan officers, lenders, counties, ZIPs. Lender: loan officers, companies. Counts are recorded deals that could be tied to both sides. 1 credit per row of `data`.
4187
+ */
4188
+ const getNetwork = (options) => (options.client ?? client).get({
4189
+ security: [{
4190
+ name: "x-api-key",
4191
+ type: "apiKey"
4192
+ }, {
4193
+ scheme: "bearer",
4194
+ type: "http"
4195
+ }],
4196
+ url: "/v1/graph/{entityType}/{id}/network",
4197
+ ...options
4198
+ });
4199
+ /**
4184
4200
  * Instant multi-entity typeahead search
4185
4201
  *
4186
4202
  * Fast typeahead/autocomplete search across agents, originators, companies, and offices. Returns top matches per entity type. A bare NMLS ID resolves directly to its originator, company, or branch — including an originator who is in the NMLS registry with no production record yet (returned with `hasScoredData: false`). Use this for quick name lookups, not for filtered searches (use the entity-specific list endpoints for those). If you already have an entity ID, prefer getOriginator / getCompany / getBranch.
@@ -6743,4 +6759,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
6743
6759
  ...options
6744
6760
  });
6745
6761
  //#endregion
6746
- 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, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioUpload, 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, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioPublishedModel, getStudioQueryResult, 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, listStudioJobs, listStudioModels, listStudioUploads, 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, refreshStudioModel, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, runStudioJob, runStudioQuery, 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, updateStudioJob };
6762
+ 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, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioUpload, 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, getNetwork, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioPublishedModel, getStudioQueryResult, 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, listStudioJobs, listStudioModels, listStudioUploads, 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, refreshStudioModel, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, runStudioJob, runStudioQuery, 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, updateStudioJob };
@@ -5368,6 +5368,26 @@ var Crm = class {
5368
5368
  });
5369
5369
  }
5370
5370
  };
5371
+ var Graph = class {
5372
+ /**
5373
+ * One entity's relationship network
5374
+ *
5375
+ * Who an agent, loan officer, mortgage company or lender does the most deals with, and where: the top related entities of each kind with shared deals, dollar volume, deals in the last 12 months and the last deal date, plus the top counties and ZIP codes. Agent: loan officers, other agents, counties, ZIPs. Loan officer: agents, companies (past and current), lenders, counties, ZIPs. Company: loan officers, lenders, counties, ZIPs. Lender: loan officers, companies. Counts are recorded deals that could be tied to both sides. 1 credit per row of `data`.
5376
+ */
5377
+ static getNetwork(options) {
5378
+ return (options.client ?? client).get({
5379
+ security: [{
5380
+ name: "x-api-key",
5381
+ type: "apiKey"
5382
+ }, {
5383
+ scheme: "bearer",
5384
+ type: "http"
5385
+ }],
5386
+ url: "/v1/graph/{entityType}/{id}/network",
5387
+ ...options
5388
+ });
5389
+ }
5390
+ };
5371
5391
  var Search = class {
5372
5392
  /**
5373
5393
  * Instant multi-entity typeahead search
@@ -8222,4 +8242,4 @@ function createClient(config = {}) {
8222
8242
  };
8223
8243
  }
8224
8244
  //#endregion
8225
- export { Studio as C, Signals as S, Realtime as _, Branches as a, SavedFilters as b, Integrations as c, Locations as d, Market as f, Properties as g, Originators as h, Alerts as i, Lenders as l, Offices as m, createClient as n, Companies as o, Me as p, Agents as r, Crm as s, createApiClient as t, Loans as u, Related as v, client as w, Search as x, Sales as y };
8245
+ export { Signals as C, Search as S, client as T, Properties as _, Branches as a, Sales as b, Graph as c, Loans as d, Locations as f, Originators as g, Offices as h, Alerts as i, Integrations as l, Me as m, createClient as n, Companies as o, Market as p, Agents as r, Crm as s, createApiClient as t, Lenders as u, Realtime as v, Studio as w, SavedFilters as x, Related as y };
package/openapi.json CHANGED
@@ -33795,6 +33795,208 @@
33795
33795
  ],
33796
33796
  "type": "object"
33797
33797
  },
33798
+ "NetworkError": {
33799
+ "properties": {
33800
+ "code": {
33801
+ "description": "`invalid_request`, `not_found`, `rate_limited`, `busy`, `network_unavailable`.",
33802
+ "example": "not_found",
33803
+ "type": "string"
33804
+ },
33805
+ "error": {
33806
+ "description": "What went wrong, in plain language.",
33807
+ "type": "string"
33808
+ }
33809
+ },
33810
+ "required": [
33811
+ "error",
33812
+ "code"
33813
+ ],
33814
+ "type": "object"
33815
+ },
33816
+ "NetworkRelationship": {
33817
+ "properties": {
33818
+ "dealCount": {
33819
+ "description": "Deals the two share in the period: all time, or with `period=last12Months` the 12 months up to the latest data load (then the same as `dealsLast12Months`).",
33820
+ "type": "number"
33821
+ },
33822
+ "dealsLast12Months": {
33823
+ "description": "The deals in the 12 months up to the latest data load (whatever the period).",
33824
+ "type": "number"
33825
+ },
33826
+ "firstDealDate": {
33827
+ "description": "Date of the earliest shared deal (YYYY-MM-DD).",
33828
+ "nullable": true,
33829
+ "type": "string"
33830
+ },
33831
+ "id": {
33832
+ "description": "The related entity's id: an agent id, an NMLS id (loan officers and companies), a lender id, a five-digit county code or a ZIP code.",
33833
+ "type": "string"
33834
+ },
33835
+ "isCurrentCompany": {
33836
+ "description": "Between a loan officer and a company: true when it is the company the loan officer is registered with today, false for a past one. Null when unknown or not applicable.",
33837
+ "nullable": true,
33838
+ "type": "boolean"
33839
+ },
33840
+ "lastDealDate": {
33841
+ "description": "Date of the most recent shared deal (YYYY-MM-DD).",
33842
+ "nullable": true,
33843
+ "type": "string"
33844
+ },
33845
+ "name": {
33846
+ "description": "The related entity's name, or the county's name. Null when no profile names it, and for ZIP codes.",
33847
+ "nullable": true,
33848
+ "type": "string"
33849
+ },
33850
+ "rank": {
33851
+ "description": "Position within its relationship kind, 1 = the strongest for the period.",
33852
+ "type": "integer"
33853
+ },
33854
+ "relation": {
33855
+ "description": "The kind of relationship: `agents`, `loanOfficers`, `companies`, `lenders` (related people and firms), `counties` or `zipCodes` (where the deals were).",
33856
+ "enum": [
33857
+ "agents",
33858
+ "loanOfficers",
33859
+ "companies",
33860
+ "lenders",
33861
+ "counties",
33862
+ "zipCodes"
33863
+ ],
33864
+ "type": "string"
33865
+ },
33866
+ "sides": {
33867
+ "description": "Where an agent is involved: the agent's side(s) on these deals — `buyer`, `listing`, `co_listing` (for an agent's own network, that agent's side). Null otherwise.",
33868
+ "items": {
33869
+ "type": "string"
33870
+ },
33871
+ "nullable": true,
33872
+ "type": "array"
33873
+ },
33874
+ "state": {
33875
+ "description": "For counties and ZIP codes, the two-letter state. Null otherwise.",
33876
+ "nullable": true,
33877
+ "type": "string"
33878
+ },
33879
+ "volume": {
33880
+ "description": "Dollar volume of those deals, for the same period as `dealCount` (loan amount for loans, sold price for sales). Null when none records an amount.",
33881
+ "nullable": true,
33882
+ "type": "number"
33883
+ },
33884
+ "volumeLast12Months": {
33885
+ "description": "Dollar volume of the deals in `dealsLast12Months`.",
33886
+ "nullable": true,
33887
+ "type": "number"
33888
+ }
33889
+ },
33890
+ "required": [
33891
+ "relation",
33892
+ "rank",
33893
+ "id",
33894
+ "name",
33895
+ "state",
33896
+ "dealCount",
33897
+ "volume",
33898
+ "dealsLast12Months",
33899
+ "volumeLast12Months",
33900
+ "firstDealDate",
33901
+ "lastDealDate",
33902
+ "sides",
33903
+ "isCurrentCompany"
33904
+ ],
33905
+ "type": "object"
33906
+ },
33907
+ "NetworkResponse": {
33908
+ "properties": {
33909
+ "data": {
33910
+ "description": "The related entities, grouped by `relation` and ordered by `rank`: at most `limit` of each kind. Each row is billed as one row of data.",
33911
+ "items": {
33912
+ "$ref": "#/components/schemas/NetworkRelationship"
33913
+ },
33914
+ "type": "array"
33915
+ },
33916
+ "entity": {
33917
+ "description": "Whose network this is.",
33918
+ "properties": {
33919
+ "id": {
33920
+ "description": "The entity's id. For a lender, the id the lender's spellings add up under.",
33921
+ "type": "string"
33922
+ },
33923
+ "name": {
33924
+ "nullable": true,
33925
+ "type": "string"
33926
+ },
33927
+ "type": {
33928
+ "enum": [
33929
+ "agent",
33930
+ "loan-officer",
33931
+ "company",
33932
+ "lender"
33933
+ ],
33934
+ "type": "string"
33935
+ }
33936
+ },
33937
+ "required": [
33938
+ "type",
33939
+ "id",
33940
+ "name"
33941
+ ],
33942
+ "type": "object"
33943
+ },
33944
+ "period": {
33945
+ "enum": [
33946
+ "allTime",
33947
+ "last12Months"
33948
+ ],
33949
+ "type": "string"
33950
+ },
33951
+ "relations": {
33952
+ "description": "Every kind of relationship this entity type has, including the empty ones.",
33953
+ "items": {
33954
+ "properties": {
33955
+ "relation": {
33956
+ "description": "The kind of relationship: `agents`, `loanOfficers`, `companies`, `lenders` (related people and firms), `counties` or `zipCodes` (where the deals were).",
33957
+ "enum": [
33958
+ "agents",
33959
+ "loanOfficers",
33960
+ "companies",
33961
+ "lenders",
33962
+ "counties",
33963
+ "zipCodes"
33964
+ ],
33965
+ "type": "string"
33966
+ },
33967
+ "returned": {
33968
+ "description": "How many are in `data`.",
33969
+ "type": "integer"
33970
+ },
33971
+ "total": {
33972
+ "description": "How many related entities of this kind there are for the period, before `limit`.",
33973
+ "type": "integer"
33974
+ }
33975
+ },
33976
+ "required": [
33977
+ "relation",
33978
+ "total",
33979
+ "returned"
33980
+ ],
33981
+ "type": "object"
33982
+ },
33983
+ "type": "array"
33984
+ },
33985
+ "state": {
33986
+ "description": "The state the deals were counted in; null for every state.",
33987
+ "nullable": true,
33988
+ "type": "string"
33989
+ }
33990
+ },
33991
+ "required": [
33992
+ "data",
33993
+ "entity",
33994
+ "period",
33995
+ "state",
33996
+ "relations"
33997
+ ],
33998
+ "type": "object"
33999
+ },
33798
34000
  "NormalizedLocation": {
33799
34001
  "nullable": true,
33800
34002
  "properties": {
@@ -51428,7 +51630,7 @@
51428
51630
  "info": {
51429
51631
  "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.",
51430
51632
  "title": "ModelMatch API",
51431
- "version": "3.166.0"
51633
+ "version": "3.167.1"
51432
51634
  },
51433
51635
  "openapi": "3.1.0",
51434
51636
  "paths": {
@@ -77710,6 +77912,147 @@
77710
77912
  ]
77711
77913
  }
77712
77914
  },
77915
+ "/v1/graph/{entityType}/{id}/network": {
77916
+ "get": {
77917
+ "description": "Who an agent, loan officer, mortgage company or lender does the most deals with, and where: the top related entities of each kind with shared deals, dollar volume, deals in the last 12 months and the last deal date, plus the top counties and ZIP codes. Agent: loan officers, other agents, counties, ZIPs. Loan officer: agents, companies (past and current), lenders, counties, ZIPs. Company: loan officers, lenders, counties, ZIPs. Lender: loan officers, companies. Counts are recorded deals that could be tied to both sides. 1 credit per row of `data`.",
77918
+ "operationId": "getNetwork",
77919
+ "parameters": [
77920
+ {
77921
+ "description": "Whose network.",
77922
+ "in": "path",
77923
+ "name": "entityType",
77924
+ "required": true,
77925
+ "schema": {
77926
+ "description": "Whose network.",
77927
+ "enum": [
77928
+ "agent",
77929
+ "loan-officer",
77930
+ "company",
77931
+ "lender"
77932
+ ],
77933
+ "example": "loan-officer",
77934
+ "type": "string"
77935
+ }
77936
+ },
77937
+ {
77938
+ "description": "Agent id, NMLS id (loan officer, company) or lender id.",
77939
+ "in": "path",
77940
+ "name": "id",
77941
+ "required": true,
77942
+ "schema": {
77943
+ "description": "Agent id, NMLS id (loan officer, company) or lender id.",
77944
+ "example": "151263",
77945
+ "pattern": "^\\P{Cc}{1,200}$",
77946
+ "type": "string"
77947
+ }
77948
+ },
77949
+ {
77950
+ "description": "`allTime` (default), or `last12Months`: only relationships active in the last 12 months, ranked by those deals.",
77951
+ "in": "query",
77952
+ "name": "period",
77953
+ "required": false,
77954
+ "schema": {
77955
+ "description": "`allTime` (default), or `last12Months`: only relationships active in the last 12 months, ranked by those deals.",
77956
+ "enum": [
77957
+ "allTime",
77958
+ "last12Months"
77959
+ ],
77960
+ "type": "string"
77961
+ }
77962
+ },
77963
+ {
77964
+ "description": "Per kind of relationship (1–50, default 10).",
77965
+ "in": "query",
77966
+ "name": "limit",
77967
+ "required": false,
77968
+ "schema": {
77969
+ "description": "Per kind of relationship (1–50, default 10).",
77970
+ "maximum": 50,
77971
+ "minimum": 1,
77972
+ "type": "integer"
77973
+ }
77974
+ },
77975
+ {
77976
+ "description": "Two-letter state: count only deals in it. Default: every state.",
77977
+ "in": "query",
77978
+ "name": "state",
77979
+ "required": false,
77980
+ "schema": {
77981
+ "description": "Two-letter state: count only deals in it. Default: every state.",
77982
+ "example": "TX",
77983
+ "pattern": "^[A-Za-z]{2}$",
77984
+ "type": "string"
77985
+ }
77986
+ }
77987
+ ],
77988
+ "responses": {
77989
+ "200": {
77990
+ "content": {
77991
+ "application/json": {
77992
+ "schema": {
77993
+ "$ref": "#/components/schemas/NetworkResponse"
77994
+ }
77995
+ }
77996
+ },
77997
+ "description": "The entity's network"
77998
+ },
77999
+ "400": {
78000
+ "content": {
78001
+ "application/json": {
78002
+ "schema": {
78003
+ "$ref": "#/components/schemas/NetworkError"
78004
+ }
78005
+ }
78006
+ },
78007
+ "description": "`invalid_request` — the request is malformed."
78008
+ },
78009
+ "401": {
78010
+ "content": {
78011
+ "application/json": {
78012
+ "schema": {
78013
+ "$ref": "#/components/schemas/NetworkError"
78014
+ }
78015
+ }
78016
+ },
78017
+ "description": "Authentication required."
78018
+ },
78019
+ "404": {
78020
+ "content": {
78021
+ "application/json": {
78022
+ "schema": {
78023
+ "$ref": "#/components/schemas/NetworkError"
78024
+ }
78025
+ }
78026
+ },
78027
+ "description": "`not_found` — nothing on record for that id: no profile and no relationship."
78028
+ },
78029
+ "429": {
78030
+ "content": {
78031
+ "application/json": {
78032
+ "schema": {
78033
+ "$ref": "#/components/schemas/NetworkError"
78034
+ }
78035
+ }
78036
+ },
78037
+ "description": "`rate_limited` — too many requests from your organization in the last minute; `busy` — try again shortly. Wait `Retry-After` seconds."
78038
+ },
78039
+ "503": {
78040
+ "content": {
78041
+ "application/json": {
78042
+ "schema": {
78043
+ "$ref": "#/components/schemas/NetworkError"
78044
+ }
78045
+ }
78046
+ },
78047
+ "description": "`network_unavailable` — relationship data is not available right now. Try again later."
78048
+ }
78049
+ },
78050
+ "summary": "One entity's relationship network",
78051
+ "tags": [
78052
+ "Graph"
78053
+ ]
78054
+ }
78055
+ },
77713
78056
  "/v1/instant-search": {
77714
78057
  "post": {
77715
78058
  "description": "Fast typeahead/autocomplete search across agents, originators, companies, and offices. Returns top matches per entity type. A bare NMLS ID resolves directly to its originator, company, or branch — including an originator who is in the NMLS registry with no production record yet (returned with `hasScoredData: false`). Use this for quick name lookups, not for filtered searches (use the entity-specific list endpoints for those). If you already have an entity ID, prefer getOriginator / getCompany / getBranch.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.82.0",
3
+ "version": "3.83.1",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [