@model-match/api 3.97.0 → 3.98.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.
- package/RELEASE_NOTES.md +5 -0
- package/dist/{index-BC-Ge-9w.d.mts → index-Cc88T4yz.d.mts} +1127 -71
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/slim/index.d.mts +75 -3
- package/dist/slim/index.mjs +211 -3
- package/dist/{src-CW1du8h5.mjs → src-C7phaMzR.mjs} +237 -2
- package/openapi.json +11686 -8997
- package/package.json +1 -1
package/dist/slim/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as client, n as createClient } from "../src-C7phaMzR.mjs";
|
|
2
2
|
//#region src/slim/sdk.gen.ts
|
|
3
3
|
/**
|
|
4
4
|
* Search agents with filters
|
|
@@ -4195,6 +4195,214 @@ const shareCrmTemplate = (options) => (options.client ?? client).post({
|
|
|
4195
4195
|
}
|
|
4196
4196
|
});
|
|
4197
4197
|
/**
|
|
4198
|
+
* Your files
|
|
4199
|
+
*
|
|
4200
|
+
* Files you own and files shared with you, newest first. Filter by origin, kind, class, status, what a file is linked to (`linkedTo`), or only files others shared with you (`sharedWithMe=true`). Pass `facets=true` for counts per origin and kind. Page with `cursor` (from `nextCursor`). Organization admins can pass `scope=org` to list every file in the organization. Free.
|
|
4201
|
+
*/
|
|
4202
|
+
const listFiles = (options) => (options?.client ?? client).get({
|
|
4203
|
+
security: [{
|
|
4204
|
+
name: "x-api-key",
|
|
4205
|
+
type: "apiKey"
|
|
4206
|
+
}, {
|
|
4207
|
+
scheme: "bearer",
|
|
4208
|
+
type: "http"
|
|
4209
|
+
}],
|
|
4210
|
+
url: "/v1/files",
|
|
4211
|
+
...options
|
|
4212
|
+
});
|
|
4213
|
+
/**
|
|
4214
|
+
* Start an upload
|
|
4215
|
+
*
|
|
4216
|
+
* Step one of two: declare the file (name, type, exact size and SHA-256) and get `upload`, a URL to PUT the bytes to with the headers given. Step two: call complete. A new file is visible only to you until you share it. Free.
|
|
4217
|
+
*/
|
|
4218
|
+
const createFile = (options) => (options.client ?? client).post({
|
|
4219
|
+
security: [{
|
|
4220
|
+
name: "x-api-key",
|
|
4221
|
+
type: "apiKey"
|
|
4222
|
+
}, {
|
|
4223
|
+
scheme: "bearer",
|
|
4224
|
+
type: "http"
|
|
4225
|
+
}],
|
|
4226
|
+
url: "/v1/files",
|
|
4227
|
+
...options,
|
|
4228
|
+
headers: {
|
|
4229
|
+
"Content-Type": "application/json",
|
|
4230
|
+
...options.headers
|
|
4231
|
+
}
|
|
4232
|
+
});
|
|
4233
|
+
/**
|
|
4234
|
+
* Search your files by name
|
|
4235
|
+
*
|
|
4236
|
+
* Files you can see whose name contains `q`, names that start with it first. Free.
|
|
4237
|
+
*/
|
|
4238
|
+
const searchFiles = (options) => (options.client ?? client).get({
|
|
4239
|
+
security: [{
|
|
4240
|
+
name: "x-api-key",
|
|
4241
|
+
type: "apiKey"
|
|
4242
|
+
}, {
|
|
4243
|
+
scheme: "bearer",
|
|
4244
|
+
type: "http"
|
|
4245
|
+
}],
|
|
4246
|
+
url: "/v1/files/search",
|
|
4247
|
+
...options
|
|
4248
|
+
});
|
|
4249
|
+
/**
|
|
4250
|
+
* Delete a file
|
|
4251
|
+
*
|
|
4252
|
+
* The owner or an organization admin can delete a file. Its contents are removed; a record that it existed is kept. Refused while a retention date or a legal hold applies. Data already loaded from the file elsewhere (a Studio table) is not deleted. Free.
|
|
4253
|
+
*/
|
|
4254
|
+
const deleteFile = (options) => (options.client ?? client).delete({
|
|
4255
|
+
security: [{
|
|
4256
|
+
name: "x-api-key",
|
|
4257
|
+
type: "apiKey"
|
|
4258
|
+
}, {
|
|
4259
|
+
scheme: "bearer",
|
|
4260
|
+
type: "http"
|
|
4261
|
+
}],
|
|
4262
|
+
url: "/v1/files/{id}",
|
|
4263
|
+
...options
|
|
4264
|
+
});
|
|
4265
|
+
/**
|
|
4266
|
+
* One file: its details, shares and links
|
|
4267
|
+
*
|
|
4268
|
+
* A file you can see, with who it is shared with and what it is attached to. A file you cannot see answers 404, the same as one that does not exist. Free.
|
|
4269
|
+
*/
|
|
4270
|
+
const getFile = (options) => (options.client ?? client).get({
|
|
4271
|
+
security: [{
|
|
4272
|
+
name: "x-api-key",
|
|
4273
|
+
type: "apiKey"
|
|
4274
|
+
}, {
|
|
4275
|
+
scheme: "bearer",
|
|
4276
|
+
type: "http"
|
|
4277
|
+
}],
|
|
4278
|
+
url: "/v1/files/{id}",
|
|
4279
|
+
...options
|
|
4280
|
+
});
|
|
4281
|
+
/**
|
|
4282
|
+
* Rename a file or edit its metadata
|
|
4283
|
+
*
|
|
4284
|
+
* The owner and editors can rename a file or replace its `metadata`. Free.
|
|
4285
|
+
*/
|
|
4286
|
+
const updateFile = (options) => (options.client ?? client).patch({
|
|
4287
|
+
security: [{
|
|
4288
|
+
name: "x-api-key",
|
|
4289
|
+
type: "apiKey"
|
|
4290
|
+
}, {
|
|
4291
|
+
scheme: "bearer",
|
|
4292
|
+
type: "http"
|
|
4293
|
+
}],
|
|
4294
|
+
url: "/v1/files/{id}",
|
|
4295
|
+
...options,
|
|
4296
|
+
headers: {
|
|
4297
|
+
"Content-Type": "application/json",
|
|
4298
|
+
...options.headers
|
|
4299
|
+
}
|
|
4300
|
+
});
|
|
4301
|
+
/**
|
|
4302
|
+
* Finish an upload
|
|
4303
|
+
*
|
|
4304
|
+
* Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.
|
|
4305
|
+
*/
|
|
4306
|
+
const completeFile = (options) => (options.client ?? client).post({
|
|
4307
|
+
security: [{
|
|
4308
|
+
name: "x-api-key",
|
|
4309
|
+
type: "apiKey"
|
|
4310
|
+
}, {
|
|
4311
|
+
scheme: "bearer",
|
|
4312
|
+
type: "http"
|
|
4313
|
+
}],
|
|
4314
|
+
url: "/v1/files/{id}/complete",
|
|
4315
|
+
...options
|
|
4316
|
+
});
|
|
4317
|
+
/**
|
|
4318
|
+
* Open a file
|
|
4319
|
+
*
|
|
4320
|
+
* Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.
|
|
4321
|
+
*/
|
|
4322
|
+
const getFileContent = (options) => (options.client ?? client).get({
|
|
4323
|
+
security: [{
|
|
4324
|
+
name: "x-api-key",
|
|
4325
|
+
type: "apiKey"
|
|
4326
|
+
}, {
|
|
4327
|
+
scheme: "bearer",
|
|
4328
|
+
type: "http"
|
|
4329
|
+
}],
|
|
4330
|
+
url: "/v1/files/{id}/content",
|
|
4331
|
+
...options
|
|
4332
|
+
});
|
|
4333
|
+
/**
|
|
4334
|
+
* Detach a file
|
|
4335
|
+
*
|
|
4336
|
+
* The owner or an editor removes a link. Free.
|
|
4337
|
+
*/
|
|
4338
|
+
const unlinkFile = (options) => (options.client ?? client).delete({
|
|
4339
|
+
security: [{
|
|
4340
|
+
name: "x-api-key",
|
|
4341
|
+
type: "apiKey"
|
|
4342
|
+
}, {
|
|
4343
|
+
scheme: "bearer",
|
|
4344
|
+
type: "http"
|
|
4345
|
+
}],
|
|
4346
|
+
url: "/v1/files/{id}/links",
|
|
4347
|
+
...options
|
|
4348
|
+
});
|
|
4349
|
+
/**
|
|
4350
|
+
* Attach a file to something
|
|
4351
|
+
*
|
|
4352
|
+
* The owner or an editor attaches a file to a Studio table, a chat, a project or an export. A link does not share the file with anyone. Free.
|
|
4353
|
+
*/
|
|
4354
|
+
const linkFile = (options) => (options.client ?? client).post({
|
|
4355
|
+
security: [{
|
|
4356
|
+
name: "x-api-key",
|
|
4357
|
+
type: "apiKey"
|
|
4358
|
+
}, {
|
|
4359
|
+
scheme: "bearer",
|
|
4360
|
+
type: "http"
|
|
4361
|
+
}],
|
|
4362
|
+
url: "/v1/files/{id}/links",
|
|
4363
|
+
...options,
|
|
4364
|
+
headers: {
|
|
4365
|
+
"Content-Type": "application/json",
|
|
4366
|
+
...options.headers
|
|
4367
|
+
}
|
|
4368
|
+
});
|
|
4369
|
+
/**
|
|
4370
|
+
* Stop sharing a file
|
|
4371
|
+
*
|
|
4372
|
+
* The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
|
|
4373
|
+
*/
|
|
4374
|
+
const unshareFile = (options) => (options.client ?? client).delete({
|
|
4375
|
+
security: [{
|
|
4376
|
+
name: "x-api-key",
|
|
4377
|
+
type: "apiKey"
|
|
4378
|
+
}, {
|
|
4379
|
+
scheme: "bearer",
|
|
4380
|
+
type: "http"
|
|
4381
|
+
}],
|
|
4382
|
+
url: "/v1/files/{id}/shares",
|
|
4383
|
+
...options
|
|
4384
|
+
});
|
|
4385
|
+
/**
|
|
4386
|
+
* Share a file
|
|
4387
|
+
*
|
|
4388
|
+
* The owner shares a file with a person (`user:<id>`), a team (`team:<id>`) or the whole organization (`org`), as `viewer` (default) or `editor`. Sharing again changes the role. Free.
|
|
4389
|
+
*/
|
|
4390
|
+
const shareFile = (options) => (options.client ?? client).post({
|
|
4391
|
+
security: [{
|
|
4392
|
+
name: "x-api-key",
|
|
4393
|
+
type: "apiKey"
|
|
4394
|
+
}, {
|
|
4395
|
+
scheme: "bearer",
|
|
4396
|
+
type: "http"
|
|
4397
|
+
}],
|
|
4398
|
+
url: "/v1/files/{id}/shares",
|
|
4399
|
+
...options,
|
|
4400
|
+
headers: {
|
|
4401
|
+
"Content-Type": "application/json",
|
|
4402
|
+
...options.headers
|
|
4403
|
+
}
|
|
4404
|
+
});
|
|
4405
|
+
/**
|
|
4198
4406
|
* One entity's relationship network
|
|
4199
4407
|
*
|
|
4200
4408
|
* 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`.
|
|
@@ -5041,7 +5249,7 @@ const getMonitorEmailTokens = (options) => (options?.client ?? client).get({
|
|
|
5041
5249
|
/**
|
|
5042
5250
|
* Preview a monitor
|
|
5043
5251
|
*
|
|
5044
|
-
* What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything.
|
|
5252
|
+
* What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything. Answers within about 12 seconds, else `running` with a `checkId`: poll `GET /v1/monitors/checks/{checkId}` until it has `succeeded`, then read `preview`. One at a time, shared with checks. Free.
|
|
5045
5253
|
*/
|
|
5046
5254
|
const previewMonitor = (options) => (options.client ?? client).post({
|
|
5047
5255
|
security: [{
|
|
@@ -7065,4 +7273,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
|
|
|
7065
7273
|
...options
|
|
7066
7274
|
});
|
|
7067
7275
|
//#endregion
|
|
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 };
|
|
7276
|
+
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, completeFile, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createFile, 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, deleteFile, 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, getFile, getFileContent, 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, 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, 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, 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 };
|
|
@@ -5384,6 +5384,240 @@ var Crm = class {
|
|
|
5384
5384
|
});
|
|
5385
5385
|
}
|
|
5386
5386
|
};
|
|
5387
|
+
var Files = class {
|
|
5388
|
+
/**
|
|
5389
|
+
* Your files
|
|
5390
|
+
*
|
|
5391
|
+
* Files you own and files shared with you, newest first. Filter by origin, kind, class, status, what a file is linked to (`linkedTo`), or only files others shared with you (`sharedWithMe=true`). Pass `facets=true` for counts per origin and kind. Page with `cursor` (from `nextCursor`). Organization admins can pass `scope=org` to list every file in the organization. Free.
|
|
5392
|
+
*/
|
|
5393
|
+
static list(options) {
|
|
5394
|
+
return (options?.client ?? client).get({
|
|
5395
|
+
security: [{
|
|
5396
|
+
name: "x-api-key",
|
|
5397
|
+
type: "apiKey"
|
|
5398
|
+
}, {
|
|
5399
|
+
scheme: "bearer",
|
|
5400
|
+
type: "http"
|
|
5401
|
+
}],
|
|
5402
|
+
url: "/v1/files",
|
|
5403
|
+
...options
|
|
5404
|
+
});
|
|
5405
|
+
}
|
|
5406
|
+
/**
|
|
5407
|
+
* Start an upload
|
|
5408
|
+
*
|
|
5409
|
+
* Step one of two: declare the file (name, type, exact size and SHA-256) and get `upload`, a URL to PUT the bytes to with the headers given. Step two: call complete. A new file is visible only to you until you share it. Free.
|
|
5410
|
+
*/
|
|
5411
|
+
static create(options) {
|
|
5412
|
+
return (options.client ?? client).post({
|
|
5413
|
+
security: [{
|
|
5414
|
+
name: "x-api-key",
|
|
5415
|
+
type: "apiKey"
|
|
5416
|
+
}, {
|
|
5417
|
+
scheme: "bearer",
|
|
5418
|
+
type: "http"
|
|
5419
|
+
}],
|
|
5420
|
+
url: "/v1/files",
|
|
5421
|
+
...options,
|
|
5422
|
+
headers: {
|
|
5423
|
+
"Content-Type": "application/json",
|
|
5424
|
+
...options.headers
|
|
5425
|
+
}
|
|
5426
|
+
});
|
|
5427
|
+
}
|
|
5428
|
+
/**
|
|
5429
|
+
* Search your files by name
|
|
5430
|
+
*
|
|
5431
|
+
* Files you can see whose name contains `q`, names that start with it first. Free.
|
|
5432
|
+
*/
|
|
5433
|
+
static search(options) {
|
|
5434
|
+
return (options.client ?? client).get({
|
|
5435
|
+
security: [{
|
|
5436
|
+
name: "x-api-key",
|
|
5437
|
+
type: "apiKey"
|
|
5438
|
+
}, {
|
|
5439
|
+
scheme: "bearer",
|
|
5440
|
+
type: "http"
|
|
5441
|
+
}],
|
|
5442
|
+
url: "/v1/files/search",
|
|
5443
|
+
...options
|
|
5444
|
+
});
|
|
5445
|
+
}
|
|
5446
|
+
/**
|
|
5447
|
+
* Delete a file
|
|
5448
|
+
*
|
|
5449
|
+
* The owner or an organization admin can delete a file. Its contents are removed; a record that it existed is kept. Refused while a retention date or a legal hold applies. Data already loaded from the file elsewhere (a Studio table) is not deleted. Free.
|
|
5450
|
+
*/
|
|
5451
|
+
static delete(options) {
|
|
5452
|
+
return (options.client ?? client).delete({
|
|
5453
|
+
security: [{
|
|
5454
|
+
name: "x-api-key",
|
|
5455
|
+
type: "apiKey"
|
|
5456
|
+
}, {
|
|
5457
|
+
scheme: "bearer",
|
|
5458
|
+
type: "http"
|
|
5459
|
+
}],
|
|
5460
|
+
url: "/v1/files/{id}",
|
|
5461
|
+
...options
|
|
5462
|
+
});
|
|
5463
|
+
}
|
|
5464
|
+
/**
|
|
5465
|
+
* One file: its details, shares and links
|
|
5466
|
+
*
|
|
5467
|
+
* A file you can see, with who it is shared with and what it is attached to. A file you cannot see answers 404, the same as one that does not exist. Free.
|
|
5468
|
+
*/
|
|
5469
|
+
static get(options) {
|
|
5470
|
+
return (options.client ?? client).get({
|
|
5471
|
+
security: [{
|
|
5472
|
+
name: "x-api-key",
|
|
5473
|
+
type: "apiKey"
|
|
5474
|
+
}, {
|
|
5475
|
+
scheme: "bearer",
|
|
5476
|
+
type: "http"
|
|
5477
|
+
}],
|
|
5478
|
+
url: "/v1/files/{id}",
|
|
5479
|
+
...options
|
|
5480
|
+
});
|
|
5481
|
+
}
|
|
5482
|
+
/**
|
|
5483
|
+
* Rename a file or edit its metadata
|
|
5484
|
+
*
|
|
5485
|
+
* The owner and editors can rename a file or replace its `metadata`. Free.
|
|
5486
|
+
*/
|
|
5487
|
+
static update(options) {
|
|
5488
|
+
return (options.client ?? client).patch({
|
|
5489
|
+
security: [{
|
|
5490
|
+
name: "x-api-key",
|
|
5491
|
+
type: "apiKey"
|
|
5492
|
+
}, {
|
|
5493
|
+
scheme: "bearer",
|
|
5494
|
+
type: "http"
|
|
5495
|
+
}],
|
|
5496
|
+
url: "/v1/files/{id}",
|
|
5497
|
+
...options,
|
|
5498
|
+
headers: {
|
|
5499
|
+
"Content-Type": "application/json",
|
|
5500
|
+
...options.headers
|
|
5501
|
+
}
|
|
5502
|
+
});
|
|
5503
|
+
}
|
|
5504
|
+
/**
|
|
5505
|
+
* Finish an upload
|
|
5506
|
+
*
|
|
5507
|
+
* Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.
|
|
5508
|
+
*/
|
|
5509
|
+
static complete(options) {
|
|
5510
|
+
return (options.client ?? client).post({
|
|
5511
|
+
security: [{
|
|
5512
|
+
name: "x-api-key",
|
|
5513
|
+
type: "apiKey"
|
|
5514
|
+
}, {
|
|
5515
|
+
scheme: "bearer",
|
|
5516
|
+
type: "http"
|
|
5517
|
+
}],
|
|
5518
|
+
url: "/v1/files/{id}/complete",
|
|
5519
|
+
...options
|
|
5520
|
+
});
|
|
5521
|
+
}
|
|
5522
|
+
/**
|
|
5523
|
+
* Open a file
|
|
5524
|
+
*
|
|
5525
|
+
* Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.
|
|
5526
|
+
*/
|
|
5527
|
+
static getFileContent(options) {
|
|
5528
|
+
return (options.client ?? client).get({
|
|
5529
|
+
security: [{
|
|
5530
|
+
name: "x-api-key",
|
|
5531
|
+
type: "apiKey"
|
|
5532
|
+
}, {
|
|
5533
|
+
scheme: "bearer",
|
|
5534
|
+
type: "http"
|
|
5535
|
+
}],
|
|
5536
|
+
url: "/v1/files/{id}/content",
|
|
5537
|
+
...options
|
|
5538
|
+
});
|
|
5539
|
+
}
|
|
5540
|
+
/**
|
|
5541
|
+
* Detach a file
|
|
5542
|
+
*
|
|
5543
|
+
* The owner or an editor removes a link. Free.
|
|
5544
|
+
*/
|
|
5545
|
+
static unlink(options) {
|
|
5546
|
+
return (options.client ?? client).delete({
|
|
5547
|
+
security: [{
|
|
5548
|
+
name: "x-api-key",
|
|
5549
|
+
type: "apiKey"
|
|
5550
|
+
}, {
|
|
5551
|
+
scheme: "bearer",
|
|
5552
|
+
type: "http"
|
|
5553
|
+
}],
|
|
5554
|
+
url: "/v1/files/{id}/links",
|
|
5555
|
+
...options
|
|
5556
|
+
});
|
|
5557
|
+
}
|
|
5558
|
+
/**
|
|
5559
|
+
* Attach a file to something
|
|
5560
|
+
*
|
|
5561
|
+
* The owner or an editor attaches a file to a Studio table, a chat, a project or an export. A link does not share the file with anyone. Free.
|
|
5562
|
+
*/
|
|
5563
|
+
static link(options) {
|
|
5564
|
+
return (options.client ?? client).post({
|
|
5565
|
+
security: [{
|
|
5566
|
+
name: "x-api-key",
|
|
5567
|
+
type: "apiKey"
|
|
5568
|
+
}, {
|
|
5569
|
+
scheme: "bearer",
|
|
5570
|
+
type: "http"
|
|
5571
|
+
}],
|
|
5572
|
+
url: "/v1/files/{id}/links",
|
|
5573
|
+
...options,
|
|
5574
|
+
headers: {
|
|
5575
|
+
"Content-Type": "application/json",
|
|
5576
|
+
...options.headers
|
|
5577
|
+
}
|
|
5578
|
+
});
|
|
5579
|
+
}
|
|
5580
|
+
/**
|
|
5581
|
+
* Stop sharing a file
|
|
5582
|
+
*
|
|
5583
|
+
* The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
|
|
5584
|
+
*/
|
|
5585
|
+
static unshare(options) {
|
|
5586
|
+
return (options.client ?? client).delete({
|
|
5587
|
+
security: [{
|
|
5588
|
+
name: "x-api-key",
|
|
5589
|
+
type: "apiKey"
|
|
5590
|
+
}, {
|
|
5591
|
+
scheme: "bearer",
|
|
5592
|
+
type: "http"
|
|
5593
|
+
}],
|
|
5594
|
+
url: "/v1/files/{id}/shares",
|
|
5595
|
+
...options
|
|
5596
|
+
});
|
|
5597
|
+
}
|
|
5598
|
+
/**
|
|
5599
|
+
* Share a file
|
|
5600
|
+
*
|
|
5601
|
+
* The owner shares a file with a person (`user:<id>`), a team (`team:<id>`) or the whole organization (`org`), as `viewer` (default) or `editor`. Sharing again changes the role. Free.
|
|
5602
|
+
*/
|
|
5603
|
+
static share(options) {
|
|
5604
|
+
return (options.client ?? client).post({
|
|
5605
|
+
security: [{
|
|
5606
|
+
name: "x-api-key",
|
|
5607
|
+
type: "apiKey"
|
|
5608
|
+
}, {
|
|
5609
|
+
scheme: "bearer",
|
|
5610
|
+
type: "http"
|
|
5611
|
+
}],
|
|
5612
|
+
url: "/v1/files/{id}/shares",
|
|
5613
|
+
...options,
|
|
5614
|
+
headers: {
|
|
5615
|
+
"Content-Type": "application/json",
|
|
5616
|
+
...options.headers
|
|
5617
|
+
}
|
|
5618
|
+
});
|
|
5619
|
+
}
|
|
5620
|
+
};
|
|
5387
5621
|
var Graph = class {
|
|
5388
5622
|
/**
|
|
5389
5623
|
* One entity's relationship network
|
|
@@ -6342,7 +6576,7 @@ var Monitors = class {
|
|
|
6342
6576
|
/**
|
|
6343
6577
|
* Preview a monitor
|
|
6344
6578
|
*
|
|
6345
|
-
* What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything.
|
|
6579
|
+
* What a monitor from a template would hold right now, with a sample of its rows, without saving anything or sending anything. Answers within about 12 seconds, else `running` with a `checkId`: poll `GET /v1/monitors/checks/{checkId}` until it has `succeeded`, then read `preview`. One at a time, shared with checks. Free.
|
|
6346
6580
|
*/
|
|
6347
6581
|
static preview(options) {
|
|
6348
6582
|
return (options.client ?? client).post({
|
|
@@ -8574,6 +8808,7 @@ function createClient(config = {}) {
|
|
|
8574
8808
|
alerts: Alerts,
|
|
8575
8809
|
branches: Branches,
|
|
8576
8810
|
companies: Companies,
|
|
8811
|
+
files: Files,
|
|
8577
8812
|
lenders: Lenders,
|
|
8578
8813
|
loans: Loans,
|
|
8579
8814
|
locations: Locations,
|
|
@@ -8587,4 +8822,4 @@ function createClient(config = {}) {
|
|
|
8587
8822
|
};
|
|
8588
8823
|
}
|
|
8589
8824
|
//#endregion
|
|
8590
|
-
export {
|
|
8825
|
+
export { SavedFilters as C, client as D, Studio as E, Sales as S, Signals as T, Offices as _, Branches as a, Realtime as b, Files as c, Lenders as d, Loans as f, Monitors as g, Me as h, Alerts as i, Graph as l, Market as m, createClient as n, Companies as o, Locations as p, Agents as r, Crm as s, createApiClient as t, Integrations as u, Originators as v, Search as w, Related as x, Properties as y };
|