@model-match/api 3.104.0 → 3.106.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 { D as client, n as createClient } from "../src-Bv7R5w1N.mjs";
1
+ import { D as client, n as createClient } from "../src-DlIVTyg4.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -3921,6 +3921,94 @@ const searchCrmRecords = (options) => (options?.client ?? client).post({
3921
3921
  }
3922
3922
  });
3923
3923
  /**
3924
+ * My still-live call in any customer workspace (reload resume)
3925
+ */
3926
+ const getRecruitingActiveCall = (options) => (options?.client ?? client).get({
3927
+ security: [{
3928
+ name: "x-api-key",
3929
+ type: "apiKey"
3930
+ }, {
3931
+ scheme: "bearer",
3932
+ type: "http"
3933
+ }],
3934
+ url: "/v1/crm/recruiting/calls/active",
3935
+ ...options
3936
+ });
3937
+ /**
3938
+ * Customer workspaces I can work through a service engagement
3939
+ */
3940
+ const listRecruitingEngagements = (options) => (options?.client ?? client).get({
3941
+ security: [{
3942
+ name: "x-api-key",
3943
+ type: "apiKey"
3944
+ }, {
3945
+ scheme: "bearer",
3946
+ type: "http"
3947
+ }],
3948
+ url: "/v1/crm/recruiting/engagements",
3949
+ ...options
3950
+ });
3951
+ /**
3952
+ * My lists across every customer I work
3953
+ */
3954
+ const listRecruitingLists = (options) => (options?.client ?? client).get({
3955
+ security: [{
3956
+ name: "x-api-key",
3957
+ type: "apiKey"
3958
+ }, {
3959
+ scheme: "bearer",
3960
+ type: "http"
3961
+ }],
3962
+ url: "/v1/crm/recruiting/lists",
3963
+ ...options
3964
+ });
3965
+ /**
3966
+ * Records I own across every customer I work
3967
+ */
3968
+ const listRecruitingPeople = (options) => (options?.client ?? client).get({
3969
+ security: [{
3970
+ name: "x-api-key",
3971
+ type: "apiKey"
3972
+ }, {
3973
+ scheme: "bearer",
3974
+ type: "http"
3975
+ }],
3976
+ url: "/v1/crm/recruiting/people",
3977
+ ...options
3978
+ });
3979
+ /**
3980
+ * Search the records I can see across every customer I work
3981
+ */
3982
+ const searchRecruitingPeople = (options) => (options?.client ?? client).post({
3983
+ security: [{
3984
+ name: "x-api-key",
3985
+ type: "apiKey"
3986
+ }, {
3987
+ scheme: "bearer",
3988
+ type: "http"
3989
+ }],
3990
+ url: "/v1/crm/recruiting/people/search",
3991
+ ...options,
3992
+ headers: {
3993
+ "Content-Type": "application/json",
3994
+ ...options?.headers
3995
+ }
3996
+ });
3997
+ /**
3998
+ * My open tasks and scheduled meetings across every customer I work
3999
+ */
4000
+ const getRecruitingQueue = (options) => (options?.client ?? client).get({
4001
+ security: [{
4002
+ name: "x-api-key",
4003
+ type: "apiKey"
4004
+ }, {
4005
+ scheme: "bearer",
4006
+ type: "http"
4007
+ }],
4008
+ url: "/v1/crm/recruiting/queue",
4009
+ ...options
4010
+ });
4011
+ /**
3924
4012
  * Per-user, per-day activity counts with previous-period totals
3925
4013
  *
3926
4014
  * Human actions only, attributed to the actor (never the record owner). `previousTotals` covers the equal-length period immediately before `from`. Ratios (connect rate, show rate, win rate) are client-side divisions.
@@ -4263,6 +4351,26 @@ const redeemFileDownload = (options) => (options.client ?? client).get({
4263
4351
  ...options
4264
4352
  });
4265
4353
  /**
4354
+ * Add a link to something in another app
4355
+ *
4356
+ * Adds a library entry for something that stays live in another app (a dashboard, chart or table): its title, kind and where to open it (`ref`), not a copy of it. It is ready at once, has no contents, and is listed, searched, pinned, renamed, shared, linked and deleted like any file. Calling it again for the same `ref.app` and `ref.id` updates your entry (name, kind, URL, and metadata when sent; links sent are added) and answers `200` with the same id. To show a thumbnail, put an image on it with `POST /v1/files/{id}/revisions`; its contents are then that image. Free.
4357
+ */
4358
+ const createFileReference = (options) => (options.client ?? client).post({
4359
+ security: [{
4360
+ name: "x-api-key",
4361
+ type: "apiKey"
4362
+ }, {
4363
+ scheme: "bearer",
4364
+ type: "http"
4365
+ }],
4366
+ url: "/v1/files/references",
4367
+ ...options,
4368
+ headers: {
4369
+ "Content-Type": "application/json",
4370
+ ...options.headers
4371
+ }
4372
+ });
4373
+ /**
4266
4374
  * Search your files by name
4267
4375
  *
4268
4376
  * Files you can see whose name contains `q`, names that start with it first. Free.
@@ -4313,7 +4421,7 @@ const getFile = (options) => (options.client ?? client).get({
4313
4421
  /**
4314
4422
  * Rename a file or edit its metadata
4315
4423
  *
4316
- * The owner and editors can rename a file or replace its `metadata`. Free.
4424
+ * The owner and editors can rename a file, replace its `metadata`, or change where a link entry opens (`ref.url`). Free.
4317
4425
  */
4318
4426
  const updateFile = (options) => (options.client ?? client).patch({
4319
4427
  security: [{
@@ -4435,6 +4543,38 @@ const linkFile = (options) => (options.client ?? client).post({
4435
4543
  }
4436
4544
  });
4437
4545
  /**
4546
+ * Unpin a file
4547
+ *
4548
+ * Removes your pin. Succeeds when the file was not pinned. Free.
4549
+ */
4550
+ const unpinFile = (options) => (options.client ?? client).delete({
4551
+ security: [{
4552
+ name: "x-api-key",
4553
+ type: "apiKey"
4554
+ }, {
4555
+ scheme: "bearer",
4556
+ type: "http"
4557
+ }],
4558
+ url: "/v1/files/{id}/pin",
4559
+ ...options
4560
+ });
4561
+ /**
4562
+ * Pin a file
4563
+ *
4564
+ * Pins a file you can see, for you only (anyone with a role on it can). Pinning again keeps the first pin time. List your pins with `pinned=true`. Free.
4565
+ */
4566
+ const pinFile = (options) => (options.client ?? client).put({
4567
+ security: [{
4568
+ name: "x-api-key",
4569
+ type: "apiKey"
4570
+ }, {
4571
+ scheme: "bearer",
4572
+ type: "http"
4573
+ }],
4574
+ url: "/v1/files/{id}/pin",
4575
+ ...options
4576
+ });
4577
+ /**
4438
4578
  * Replace a file's contents
4439
4579
  *
4440
4580
  * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size (and, optionally, SHA-256), PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.
@@ -5265,7 +5405,7 @@ const listMonitors = (options) => (options?.client ?? client).get({
5265
5405
  /**
5266
5406
  * Create a monitor
5267
5407
  *
5268
- * 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.
5408
+ * 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; a monitor's run costs credits only when it finds something.
5269
5409
  */
5270
5410
  const createMonitor = (options) => (options.client ?? client).post({
5271
5411
  security: [{
@@ -6983,7 +7123,7 @@ const listStudioJobs = (options) => (options?.client ?? client).get({
6983
7123
  /**
6984
7124
  * Save a question as a job
6985
7125
  *
6986
- * Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same.
7126
+ * Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, scheduled runs included; with `alerts`, only a run where one matches. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same. A heavy run gets capacity of its own with more memory and takes minutes rather than seconds; the job's `limits` say how long a run may take. `perState: true` (heavy jobs only; off unless set) runs the SQL once for each state and puts the results together. It is correct ONLY when every row of the result depends on one state's data — a list of homes, a join per property. It is wrong for national rankings, totals or averages: a top 10 would become a top 10 in every state. SQL ending in `LIMIT` is refused for it. A state that fails is tried once more, and the run lists how each state went (`states`).
6987
7127
  */
6988
7128
  const createStudioJob = (options) => (options.client ?? client).post({
6989
7129
  security: [{
@@ -7055,7 +7195,7 @@ const updateStudioJob = (options) => (options.client ?? client).patch({
7055
7195
  /**
7056
7196
  * Run a job now
7057
7197
  *
7058
- * Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.
7198
+ * Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (a job with `alerts`: only when one matches; 100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes: `credits.charged` is 0 and `credits.pending` is the most it will cost.
7059
7199
  */
7060
7200
  const runStudioJob = (options) => (options.client ?? client).post({
7061
7201
  security: [{
@@ -7429,4 +7569,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
7429
7569
  ...options
7430
7570
  });
7431
7571
  //#endregion
7432
- 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, approveFileForAgent, 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, completeFile, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createFile, createFileRevision, createMonitor, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioTable, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteFile, deleteMonitor, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioTable, 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, getFile, getFileAccessLog, getFileContent, getFilesAccessReport, 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, getStudioTable, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, linkFile, 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, listFiles, listLenders, listLoMoveSignals, listLoans, listMonitorRunUpdates, listMonitorTemplates, listMonitorUpdates, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, listStudioTables, 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, redeemFileDownload, 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, searchFiles, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, shareFile, startStudioProgramRun, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unlinkFile, unshareCrmTemplate, unshareFile, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateFile, updateMe, updateMonitor, updateMyAlertRecipe, updateSavedFilter, updateStudioJob };
7572
+ 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, approveFileForAgent, 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, completeFile, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createFile, createFileReference, createFileRevision, createMonitor, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioTable, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteFile, deleteMonitor, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioTable, 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, getFile, getFileAccessLog, getFileContent, getFilesAccessReport, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getMonitor, getMonitorCheck, getMonitorEmailTokens, getNetwork, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getRecruitingActiveCall, getRecruitingQueue, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioProgramRun, getStudioPublishedModel, getStudioQueryResult, getStudioTable, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, linkFile, 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, listFiles, listLenders, listLoMoveSignals, listLoans, listMonitorRunUpdates, listMonitorTemplates, listMonitorUpdates, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listRecruitingEngagements, listRecruitingLists, listRecruitingPeople, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, listStudioTables, 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, pinFile, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMonitor, previewMonitorEmail, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, redeemFileDownload, 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, searchFiles, searchProperties, searchRecruitingPeople, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, shareFile, startStudioProgramRun, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unlinkFile, unpinFile, unshareCrmTemplate, unshareFile, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateFile, updateMe, updateMonitor, updateMyAlertRecipe, updateSavedFilter, updateStudioJob };
@@ -5076,6 +5076,106 @@ var Crm = class {
5076
5076
  });
5077
5077
  }
5078
5078
  /**
5079
+ * My still-live call in any customer workspace (reload resume)
5080
+ */
5081
+ static getRecruitingActiveCall(options) {
5082
+ return (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/crm/recruiting/calls/active",
5091
+ ...options
5092
+ });
5093
+ }
5094
+ /**
5095
+ * Customer workspaces I can work through a service engagement
5096
+ */
5097
+ static listRecruitingEngagements(options) {
5098
+ return (options?.client ?? client).get({
5099
+ security: [{
5100
+ name: "x-api-key",
5101
+ type: "apiKey"
5102
+ }, {
5103
+ scheme: "bearer",
5104
+ type: "http"
5105
+ }],
5106
+ url: "/v1/crm/recruiting/engagements",
5107
+ ...options
5108
+ });
5109
+ }
5110
+ /**
5111
+ * My lists across every customer I work
5112
+ */
5113
+ static listRecruitingLists(options) {
5114
+ return (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/crm/recruiting/lists",
5123
+ ...options
5124
+ });
5125
+ }
5126
+ /**
5127
+ * Records I own across every customer I work
5128
+ */
5129
+ static listRecruitingPeople(options) {
5130
+ return (options?.client ?? client).get({
5131
+ security: [{
5132
+ name: "x-api-key",
5133
+ type: "apiKey"
5134
+ }, {
5135
+ scheme: "bearer",
5136
+ type: "http"
5137
+ }],
5138
+ url: "/v1/crm/recruiting/people",
5139
+ ...options
5140
+ });
5141
+ }
5142
+ /**
5143
+ * Search the records I can see across every customer I work
5144
+ */
5145
+ static searchRecruitingPeople(options) {
5146
+ return (options?.client ?? client).post({
5147
+ security: [{
5148
+ name: "x-api-key",
5149
+ type: "apiKey"
5150
+ }, {
5151
+ scheme: "bearer",
5152
+ type: "http"
5153
+ }],
5154
+ url: "/v1/crm/recruiting/people/search",
5155
+ ...options,
5156
+ headers: {
5157
+ "Content-Type": "application/json",
5158
+ ...options?.headers
5159
+ }
5160
+ });
5161
+ }
5162
+ /**
5163
+ * My open tasks and scheduled meetings across every customer I work
5164
+ */
5165
+ static getRecruitingQueue(options) {
5166
+ return (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/crm/recruiting/queue",
5175
+ ...options
5176
+ });
5177
+ }
5178
+ /**
5079
5179
  * Per-user, per-day activity counts with previous-period totals
5080
5180
  *
5081
5181
  * Human actions only, attributed to the actor (never the record owner). `previousTotals` covers the equal-length period immediately before `from`. Ratios (connect rate, show rate, win rate) are client-side divisions.
@@ -5462,6 +5562,28 @@ var Files = class {
5462
5562
  });
5463
5563
  }
5464
5564
  /**
5565
+ * Add a link to something in another app
5566
+ *
5567
+ * Adds a library entry for something that stays live in another app (a dashboard, chart or table): its title, kind and where to open it (`ref`), not a copy of it. It is ready at once, has no contents, and is listed, searched, pinned, renamed, shared, linked and deleted like any file. Calling it again for the same `ref.app` and `ref.id` updates your entry (name, kind, URL, and metadata when sent; links sent are added) and answers `200` with the same id. To show a thumbnail, put an image on it with `POST /v1/files/{id}/revisions`; its contents are then that image. Free.
5568
+ */
5569
+ static createFileReference(options) {
5570
+ return (options.client ?? client).post({
5571
+ security: [{
5572
+ name: "x-api-key",
5573
+ type: "apiKey"
5574
+ }, {
5575
+ scheme: "bearer",
5576
+ type: "http"
5577
+ }],
5578
+ url: "/v1/files/references",
5579
+ ...options,
5580
+ headers: {
5581
+ "Content-Type": "application/json",
5582
+ ...options.headers
5583
+ }
5584
+ });
5585
+ }
5586
+ /**
5465
5587
  * Search your files by name
5466
5588
  *
5467
5589
  * Files you can see whose name contains `q`, names that start with it first. Free.
@@ -5518,7 +5640,7 @@ var Files = class {
5518
5640
  /**
5519
5641
  * Rename a file or edit its metadata
5520
5642
  *
5521
- * The owner and editors can rename a file or replace its `metadata`. Free.
5643
+ * The owner and editors can rename a file, replace its `metadata`, or change where a link entry opens (`ref.url`). Free.
5522
5644
  */
5523
5645
  static update(options) {
5524
5646
  return (options.client ?? client).patch({
@@ -5654,6 +5776,42 @@ var Files = class {
5654
5776
  });
5655
5777
  }
5656
5778
  /**
5779
+ * Unpin a file
5780
+ *
5781
+ * Removes your pin. Succeeds when the file was not pinned. Free.
5782
+ */
5783
+ static unpin(options) {
5784
+ return (options.client ?? client).delete({
5785
+ security: [{
5786
+ name: "x-api-key",
5787
+ type: "apiKey"
5788
+ }, {
5789
+ scheme: "bearer",
5790
+ type: "http"
5791
+ }],
5792
+ url: "/v1/files/{id}/pin",
5793
+ ...options
5794
+ });
5795
+ }
5796
+ /**
5797
+ * Pin a file
5798
+ *
5799
+ * Pins a file you can see, for you only (anyone with a role on it can). Pinning again keeps the first pin time. List your pins with `pinned=true`. Free.
5800
+ */
5801
+ static pin(options) {
5802
+ return (options.client ?? client).put({
5803
+ security: [{
5804
+ name: "x-api-key",
5805
+ type: "apiKey"
5806
+ }, {
5807
+ scheme: "bearer",
5808
+ type: "http"
5809
+ }],
5810
+ url: "/v1/files/{id}/pin",
5811
+ ...options
5812
+ });
5813
+ }
5814
+ /**
5657
5815
  * Replace a file's contents
5658
5816
  *
5659
5817
  * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size (and, optionally, SHA-256), PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.
@@ -6594,7 +6752,7 @@ var Monitors = class {
6594
6752
  /**
6595
6753
  * Create a monitor
6596
6754
  *
6597
- * 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.
6755
+ * 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; a monitor's run costs credits only when it finds something.
6598
6756
  */
6599
6757
  static create(options) {
6600
6758
  return (options.client ?? client).post({
@@ -8446,7 +8604,7 @@ var Studio = class {
8446
8604
  /**
8447
8605
  * Save a question as a job
8448
8606
  *
8449
- * Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same.
8607
+ * Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, scheduled runs included; with `alerts`, only a run where one matches. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same. A heavy run gets capacity of its own with more memory and takes minutes rather than seconds; the job's `limits` say how long a run may take. `perState: true` (heavy jobs only; off unless set) runs the SQL once for each state and puts the results together. It is correct ONLY when every row of the result depends on one state's data — a list of homes, a join per property. It is wrong for national rankings, totals or averages: a top 10 would become a top 10 in every state. SQL ending in `LIMIT` is refused for it. A state that fails is tried once more, and the run lists how each state went (`states`).
8450
8608
  */
8451
8609
  static createStudioJob(options) {
8452
8610
  return (options.client ?? client).post({
@@ -8526,7 +8684,7 @@ var Studio = class {
8526
8684
  /**
8527
8685
  * Run a job now
8528
8686
  *
8529
- * Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.
8687
+ * Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (a job with `alerts`: only when one matches; 100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes: `credits.charged` is 0 and `credits.pending` is the most it will cost.
8530
8688
  */
8531
8689
  static runStudioJob(options) {
8532
8690
  return (options.client ?? client).post({