@model-match/api 3.95.0 → 3.97.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 { E as client, n as createClient } from "../src-_KoKdtg5.mjs";
1
+ import { E as client, n as createClient } from "../src-CW1du8h5.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4967,6 +4967,214 @@ const listMonitors = (options) => (options?.client ?? client).get({
4967
4967
  ...options
4968
4968
  });
4969
4969
  /**
4970
+ * Create a monitor
4971
+ *
4972
+ * Set up a monitor. From a ModelMatch template: send `watch: { template, inputs, options }` (see `GET /v1/monitors/templates`); it checks once right away, so updates from the last 90 days arrive with its first run, then weekly. From your own query: send `watch: { sql, keys, schedule }`, a `name` and at least one rule. Results land in a table in your organization's workspace. Free to set up; each weekly run of a template monitor costs credits.
4973
+ */
4974
+ const createMonitor = (options) => (options.client ?? client).post({
4975
+ security: [{
4976
+ name: "x-api-key",
4977
+ type: "apiKey"
4978
+ }, {
4979
+ scheme: "bearer",
4980
+ type: "http"
4981
+ }],
4982
+ url: "/v1/monitors",
4983
+ ...options,
4984
+ headers: {
4985
+ "Content-Type": "application/json",
4986
+ ...options.headers
4987
+ }
4988
+ });
4989
+ /**
4990
+ * Get a monitor check
4991
+ *
4992
+ * Where a check you started stands. Free.
4993
+ */
4994
+ const getMonitorCheck = (options) => (options.client ?? client).get({
4995
+ security: [{
4996
+ name: "x-api-key",
4997
+ type: "apiKey"
4998
+ }, {
4999
+ scheme: "bearer",
5000
+ type: "http"
5001
+ }],
5002
+ url: "/v1/monitors/checks/{checkId}",
5003
+ ...options
5004
+ });
5005
+ /**
5006
+ * Preview a monitor email
5007
+ *
5008
+ * Validates an email and returns what a run would send with it, filled with sample updates of the given kinds: your recent ones when you have any, else samples. Pass `template` or `monitorId` to preview under that template's copy and kinds. Writes nothing. Free.
5009
+ */
5010
+ const previewMonitorEmail = (options) => (options.client ?? client).post({
5011
+ security: [{
5012
+ name: "x-api-key",
5013
+ type: "apiKey"
5014
+ }, {
5015
+ scheme: "bearer",
5016
+ type: "http"
5017
+ }],
5018
+ url: "/v1/monitors/email-preview",
5019
+ ...options,
5020
+ headers: {
5021
+ "Content-Type": "application/json",
5022
+ ...options.headers
5023
+ }
5024
+ });
5025
+ /**
5026
+ * List the monitor email tokens
5027
+ *
5028
+ * The tokens a monitor's email can use: tokens usable anywhere, and the item tokens each kind of update offers (inside an `items` block), each with a label and a formatted example. Free.
5029
+ */
5030
+ const getMonitorEmailTokens = (options) => (options?.client ?? client).get({
5031
+ security: [{
5032
+ name: "x-api-key",
5033
+ type: "apiKey"
5034
+ }, {
5035
+ scheme: "bearer",
5036
+ type: "http"
5037
+ }],
5038
+ url: "/v1/monitors/email-tokens",
5039
+ ...options
5040
+ });
5041
+ /**
5042
+ * Preview a monitor
5043
+ *
5044
+ * What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything. Shares the daily check allowance. Free.
5045
+ */
5046
+ const previewMonitor = (options) => (options.client ?? client).post({
5047
+ security: [{
5048
+ name: "x-api-key",
5049
+ type: "apiKey"
5050
+ }, {
5051
+ scheme: "bearer",
5052
+ type: "http"
5053
+ }],
5054
+ url: "/v1/monitors/preview",
5055
+ ...options,
5056
+ headers: {
5057
+ "Content-Type": "application/json",
5058
+ ...options.headers
5059
+ }
5060
+ });
5061
+ /**
5062
+ * List monitor templates
5063
+ *
5064
+ * The ModelMatch templates you can set up a monitor from: what each watches, the kinds of update it sends and the inputs it asks for. Free.
5065
+ */
5066
+ const listMonitorTemplates = (options) => (options?.client ?? client).get({
5067
+ security: [{
5068
+ name: "x-api-key",
5069
+ type: "apiKey"
5070
+ }, {
5071
+ scheme: "bearer",
5072
+ type: "http"
5073
+ }],
5074
+ url: "/v1/monitors/templates",
5075
+ ...options
5076
+ });
5077
+ /**
5078
+ * List your monitor updates
5079
+ *
5080
+ * What your monitors found, newest first: each run that fired, with the rows it matched. Free.
5081
+ */
5082
+ const listMonitorUpdates = (options) => (options?.client ?? client).get({
5083
+ security: [{
5084
+ name: "x-api-key",
5085
+ type: "apiKey"
5086
+ }, {
5087
+ scheme: "bearer",
5088
+ type: "http"
5089
+ }],
5090
+ url: "/v1/monitors/updates",
5091
+ ...options
5092
+ });
5093
+ /**
5094
+ * Delete a monitor
5095
+ *
5096
+ * Stop a monitor and delete its table. Free.
5097
+ */
5098
+ const deleteMonitor = (options) => (options.client ?? client).delete({
5099
+ security: [{
5100
+ name: "x-api-key",
5101
+ type: "apiKey"
5102
+ }, {
5103
+ scheme: "bearer",
5104
+ type: "http"
5105
+ }],
5106
+ url: "/v1/monitors/{id}",
5107
+ ...options
5108
+ });
5109
+ /**
5110
+ * Get a monitor
5111
+ *
5112
+ * One of your monitors: what it watches, its rules, where its updates go and its status. Free.
5113
+ */
5114
+ const getMonitor = (options) => (options.client ?? client).get({
5115
+ security: [{
5116
+ name: "x-api-key",
5117
+ type: "apiKey"
5118
+ }, {
5119
+ scheme: "bearer",
5120
+ type: "http"
5121
+ }],
5122
+ url: "/v1/monitors/{id}",
5123
+ ...options
5124
+ });
5125
+ /**
5126
+ * Change a monitor
5127
+ *
5128
+ * Change what a template monitor watches (`inputs`), its switches (`options`), rules, delivery (`notify`), email or `status` (`paused` stops its updates). New inputs are checked right away. Send the `version` you read to avoid overwriting another change. A SQL monitor takes only `notify` here; change its query by saving the job again. Free.
5129
+ */
5130
+ const updateMonitor = (options) => (options.client ?? client).patch({
5131
+ security: [{
5132
+ name: "x-api-key",
5133
+ type: "apiKey"
5134
+ }, {
5135
+ scheme: "bearer",
5136
+ type: "http"
5137
+ }],
5138
+ url: "/v1/monitors/{id}",
5139
+ ...options,
5140
+ headers: {
5141
+ "Content-Type": "application/json",
5142
+ ...options.headers
5143
+ }
5144
+ });
5145
+ /**
5146
+ * Check a monitor now
5147
+ *
5148
+ * Run a monitor from a template now instead of waiting for its weekly run. Answers within about 12 seconds, else `running` with a `checkId` to poll. A few checks a day; free.
5149
+ */
5150
+ const checkMonitor = (options) => (options.client ?? client).post({
5151
+ security: [{
5152
+ name: "x-api-key",
5153
+ type: "apiKey"
5154
+ }, {
5155
+ scheme: "bearer",
5156
+ type: "http"
5157
+ }],
5158
+ url: "/v1/monitors/{id}/check",
5159
+ ...options
5160
+ });
5161
+ /**
5162
+ * List a monitor's runs
5163
+ *
5164
+ * Every kept run of one monitor, newest first, with what fired on each. `runId` narrows it to one run (the `runId` a `monitors.fired` webhook or a notification names). Free.
5165
+ */
5166
+ const listMonitorRunUpdates = (options) => (options.client ?? client).get({
5167
+ security: [{
5168
+ name: "x-api-key",
5169
+ type: "apiKey"
5170
+ }, {
5171
+ scheme: "bearer",
5172
+ type: "http"
5173
+ }],
5174
+ url: "/v1/monitors/{id}/updates",
5175
+ ...options
5176
+ });
5177
+ /**
4970
5178
  * Search real-estate offices with filters
4971
5179
  *
4972
5180
  * NOT NMLS mortgage branches — use `/branches` for those. Returns office name, address, agent count, coordinates, and office-level production for the selected period. Default sort is by agent count descending. If you only need how many offices match and not the records themselves, send the same request body to `countOffices`.
@@ -6857,4 +7065,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
6857
7065
  ...options
6858
7066
  });
6859
7067
  //#endregion
6860
- 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, getStudioProgramRun, 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, listCrmListActivity, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, 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, startStudioProgramRun, 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 };
7068
+ 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, checkMonitor, 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, createMonitor, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMonitor, 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, getMonitor, getMonitorCheck, getMonitorEmailTokens, getNetwork, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioProgramRun, 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, listCrmListActivity, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoMoveSignals, listLoans, listMonitorRunUpdates, listMonitorTemplates, listMonitorUpdates, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, 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, previewMonitor, previewMonitorEmail, 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, startStudioProgramRun, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMonitor, updateMyAlertRecipe, updateSavedFilter, updateStudioJob };
@@ -6259,6 +6259,238 @@ var Monitors = class {
6259
6259
  ...options
6260
6260
  });
6261
6261
  }
6262
+ /**
6263
+ * Create a monitor
6264
+ *
6265
+ * Set up a monitor. From a ModelMatch template: send `watch: { template, inputs, options }` (see `GET /v1/monitors/templates`); it checks once right away, so updates from the last 90 days arrive with its first run, then weekly. From your own query: send `watch: { sql, keys, schedule }`, a `name` and at least one rule. Results land in a table in your organization's workspace. Free to set up; each weekly run of a template monitor costs credits.
6266
+ */
6267
+ static create(options) {
6268
+ return (options.client ?? client).post({
6269
+ security: [{
6270
+ name: "x-api-key",
6271
+ type: "apiKey"
6272
+ }, {
6273
+ scheme: "bearer",
6274
+ type: "http"
6275
+ }],
6276
+ url: "/v1/monitors",
6277
+ ...options,
6278
+ headers: {
6279
+ "Content-Type": "application/json",
6280
+ ...options.headers
6281
+ }
6282
+ });
6283
+ }
6284
+ /**
6285
+ * Get a monitor check
6286
+ *
6287
+ * Where a check you started stands. Free.
6288
+ */
6289
+ static getMonitorCheck(options) {
6290
+ return (options.client ?? client).get({
6291
+ security: [{
6292
+ name: "x-api-key",
6293
+ type: "apiKey"
6294
+ }, {
6295
+ scheme: "bearer",
6296
+ type: "http"
6297
+ }],
6298
+ url: "/v1/monitors/checks/{checkId}",
6299
+ ...options
6300
+ });
6301
+ }
6302
+ /**
6303
+ * Preview a monitor email
6304
+ *
6305
+ * Validates an email and returns what a run would send with it, filled with sample updates of the given kinds: your recent ones when you have any, else samples. Pass `template` or `monitorId` to preview under that template's copy and kinds. Writes nothing. Free.
6306
+ */
6307
+ static previewMonitorEmail(options) {
6308
+ return (options.client ?? client).post({
6309
+ security: [{
6310
+ name: "x-api-key",
6311
+ type: "apiKey"
6312
+ }, {
6313
+ scheme: "bearer",
6314
+ type: "http"
6315
+ }],
6316
+ url: "/v1/monitors/email-preview",
6317
+ ...options,
6318
+ headers: {
6319
+ "Content-Type": "application/json",
6320
+ ...options.headers
6321
+ }
6322
+ });
6323
+ }
6324
+ /**
6325
+ * List the monitor email tokens
6326
+ *
6327
+ * The tokens a monitor's email can use: tokens usable anywhere, and the item tokens each kind of update offers (inside an `items` block), each with a label and a formatted example. Free.
6328
+ */
6329
+ static getMonitorEmailTokens(options) {
6330
+ return (options?.client ?? client).get({
6331
+ security: [{
6332
+ name: "x-api-key",
6333
+ type: "apiKey"
6334
+ }, {
6335
+ scheme: "bearer",
6336
+ type: "http"
6337
+ }],
6338
+ url: "/v1/monitors/email-tokens",
6339
+ ...options
6340
+ });
6341
+ }
6342
+ /**
6343
+ * Preview a monitor
6344
+ *
6345
+ * What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything. Shares the daily check allowance. Free.
6346
+ */
6347
+ static preview(options) {
6348
+ return (options.client ?? client).post({
6349
+ security: [{
6350
+ name: "x-api-key",
6351
+ type: "apiKey"
6352
+ }, {
6353
+ scheme: "bearer",
6354
+ type: "http"
6355
+ }],
6356
+ url: "/v1/monitors/preview",
6357
+ ...options,
6358
+ headers: {
6359
+ "Content-Type": "application/json",
6360
+ ...options.headers
6361
+ }
6362
+ });
6363
+ }
6364
+ /**
6365
+ * List monitor templates
6366
+ *
6367
+ * The ModelMatch templates you can set up a monitor from: what each watches, the kinds of update it sends and the inputs it asks for. Free.
6368
+ */
6369
+ static listMonitorTemplates(options) {
6370
+ return (options?.client ?? client).get({
6371
+ security: [{
6372
+ name: "x-api-key",
6373
+ type: "apiKey"
6374
+ }, {
6375
+ scheme: "bearer",
6376
+ type: "http"
6377
+ }],
6378
+ url: "/v1/monitors/templates",
6379
+ ...options
6380
+ });
6381
+ }
6382
+ /**
6383
+ * List your monitor updates
6384
+ *
6385
+ * What your monitors found, newest first: each run that fired, with the rows it matched. Free.
6386
+ */
6387
+ static listMonitorUpdates(options) {
6388
+ return (options?.client ?? client).get({
6389
+ security: [{
6390
+ name: "x-api-key",
6391
+ type: "apiKey"
6392
+ }, {
6393
+ scheme: "bearer",
6394
+ type: "http"
6395
+ }],
6396
+ url: "/v1/monitors/updates",
6397
+ ...options
6398
+ });
6399
+ }
6400
+ /**
6401
+ * Delete a monitor
6402
+ *
6403
+ * Stop a monitor and delete its table. Free.
6404
+ */
6405
+ static delete(options) {
6406
+ return (options.client ?? client).delete({
6407
+ security: [{
6408
+ name: "x-api-key",
6409
+ type: "apiKey"
6410
+ }, {
6411
+ scheme: "bearer",
6412
+ type: "http"
6413
+ }],
6414
+ url: "/v1/monitors/{id}",
6415
+ ...options
6416
+ });
6417
+ }
6418
+ /**
6419
+ * Get a monitor
6420
+ *
6421
+ * One of your monitors: what it watches, its rules, where its updates go and its status. Free.
6422
+ */
6423
+ static get(options) {
6424
+ return (options.client ?? client).get({
6425
+ security: [{
6426
+ name: "x-api-key",
6427
+ type: "apiKey"
6428
+ }, {
6429
+ scheme: "bearer",
6430
+ type: "http"
6431
+ }],
6432
+ url: "/v1/monitors/{id}",
6433
+ ...options
6434
+ });
6435
+ }
6436
+ /**
6437
+ * Change a monitor
6438
+ *
6439
+ * Change what a template monitor watches (`inputs`), its switches (`options`), rules, delivery (`notify`), email or `status` (`paused` stops its updates). New inputs are checked right away. Send the `version` you read to avoid overwriting another change. A SQL monitor takes only `notify` here; change its query by saving the job again. Free.
6440
+ */
6441
+ static update(options) {
6442
+ return (options.client ?? client).patch({
6443
+ security: [{
6444
+ name: "x-api-key",
6445
+ type: "apiKey"
6446
+ }, {
6447
+ scheme: "bearer",
6448
+ type: "http"
6449
+ }],
6450
+ url: "/v1/monitors/{id}",
6451
+ ...options,
6452
+ headers: {
6453
+ "Content-Type": "application/json",
6454
+ ...options.headers
6455
+ }
6456
+ });
6457
+ }
6458
+ /**
6459
+ * Check a monitor now
6460
+ *
6461
+ * Run a monitor from a template now instead of waiting for its weekly run. Answers within about 12 seconds, else `running` with a `checkId` to poll. A few checks a day; free.
6462
+ */
6463
+ static check(options) {
6464
+ return (options.client ?? client).post({
6465
+ security: [{
6466
+ name: "x-api-key",
6467
+ type: "apiKey"
6468
+ }, {
6469
+ scheme: "bearer",
6470
+ type: "http"
6471
+ }],
6472
+ url: "/v1/monitors/{id}/check",
6473
+ ...options
6474
+ });
6475
+ }
6476
+ /**
6477
+ * List a monitor's runs
6478
+ *
6479
+ * Every kept run of one monitor, newest first, with what fired on each. `runId` narrows it to one run (the `runId` a `monitors.fired` webhook or a notification names). Free.
6480
+ */
6481
+ static listMonitorRunUpdates(options) {
6482
+ return (options.client ?? client).get({
6483
+ security: [{
6484
+ name: "x-api-key",
6485
+ type: "apiKey"
6486
+ }, {
6487
+ scheme: "bearer",
6488
+ type: "http"
6489
+ }],
6490
+ url: "/v1/monitors/{id}/updates",
6491
+ ...options
6492
+ });
6493
+ }
6262
6494
  };
6263
6495
  var Offices = class {
6264
6496
  /**