@model-match/api 3.97.0 → 3.99.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-CW1du8h5.mjs";
1
+ import { D as client, n as createClient } from "../src-lZgFLTz5.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4195,6 +4195,234 @@ 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
+ * Replace a file's contents
4371
+ *
4372
+ * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and 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.
4373
+ */
4374
+ const createFileRevision = (options) => (options.client ?? client).post({
4375
+ security: [{
4376
+ name: "x-api-key",
4377
+ type: "apiKey"
4378
+ }, {
4379
+ scheme: "bearer",
4380
+ type: "http"
4381
+ }],
4382
+ url: "/v1/files/{id}/revisions",
4383
+ ...options,
4384
+ headers: {
4385
+ "Content-Type": "application/json",
4386
+ ...options.headers
4387
+ }
4388
+ });
4389
+ /**
4390
+ * Stop sharing a file
4391
+ *
4392
+ * The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
4393
+ */
4394
+ const unshareFile = (options) => (options.client ?? client).delete({
4395
+ security: [{
4396
+ name: "x-api-key",
4397
+ type: "apiKey"
4398
+ }, {
4399
+ scheme: "bearer",
4400
+ type: "http"
4401
+ }],
4402
+ url: "/v1/files/{id}/shares",
4403
+ ...options
4404
+ });
4405
+ /**
4406
+ * Share a file
4407
+ *
4408
+ * 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.
4409
+ */
4410
+ const shareFile = (options) => (options.client ?? client).post({
4411
+ security: [{
4412
+ name: "x-api-key",
4413
+ type: "apiKey"
4414
+ }, {
4415
+ scheme: "bearer",
4416
+ type: "http"
4417
+ }],
4418
+ url: "/v1/files/{id}/shares",
4419
+ ...options,
4420
+ headers: {
4421
+ "Content-Type": "application/json",
4422
+ ...options.headers
4423
+ }
4424
+ });
4425
+ /**
4198
4426
  * One entity's relationship network
4199
4427
  *
4200
4428
  * 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 +5269,7 @@ const getMonitorEmailTokens = (options) => (options?.client ?? client).get({
5041
5269
  /**
5042
5270
  * Preview a monitor
5043
5271
  *
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.
5272
+ * 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
5273
  */
5046
5274
  const previewMonitor = (options) => (options.client ?? client).post({
5047
5275
  security: [{
@@ -7065,4 +7293,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
7065
7293
  ...options
7066
7294
  });
7067
7295
  //#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 };
7296
+ 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, createFileRevision, 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,262 @@ 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
+ * Replace a file's contents
5582
+ *
5583
+ * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and 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.
5584
+ */
5585
+ static createFileRevision(options) {
5586
+ return (options.client ?? client).post({
5587
+ security: [{
5588
+ name: "x-api-key",
5589
+ type: "apiKey"
5590
+ }, {
5591
+ scheme: "bearer",
5592
+ type: "http"
5593
+ }],
5594
+ url: "/v1/files/{id}/revisions",
5595
+ ...options,
5596
+ headers: {
5597
+ "Content-Type": "application/json",
5598
+ ...options.headers
5599
+ }
5600
+ });
5601
+ }
5602
+ /**
5603
+ * Stop sharing a file
5604
+ *
5605
+ * The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
5606
+ */
5607
+ static unshare(options) {
5608
+ return (options.client ?? client).delete({
5609
+ security: [{
5610
+ name: "x-api-key",
5611
+ type: "apiKey"
5612
+ }, {
5613
+ scheme: "bearer",
5614
+ type: "http"
5615
+ }],
5616
+ url: "/v1/files/{id}/shares",
5617
+ ...options
5618
+ });
5619
+ }
5620
+ /**
5621
+ * Share a file
5622
+ *
5623
+ * 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.
5624
+ */
5625
+ static share(options) {
5626
+ return (options.client ?? client).post({
5627
+ security: [{
5628
+ name: "x-api-key",
5629
+ type: "apiKey"
5630
+ }, {
5631
+ scheme: "bearer",
5632
+ type: "http"
5633
+ }],
5634
+ url: "/v1/files/{id}/shares",
5635
+ ...options,
5636
+ headers: {
5637
+ "Content-Type": "application/json",
5638
+ ...options.headers
5639
+ }
5640
+ });
5641
+ }
5642
+ };
5387
5643
  var Graph = class {
5388
5644
  /**
5389
5645
  * One entity's relationship network
@@ -6342,7 +6598,7 @@ var Monitors = class {
6342
6598
  /**
6343
6599
  * Preview a monitor
6344
6600
  *
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.
6601
+ * 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
6602
  */
6347
6603
  static preview(options) {
6348
6604
  return (options.client ?? client).post({
@@ -8574,6 +8830,7 @@ function createClient(config = {}) {
8574
8830
  alerts: Alerts,
8575
8831
  branches: Branches,
8576
8832
  companies: Companies,
8833
+ files: Files,
8577
8834
  lenders: Lenders,
8578
8835
  loans: Loans,
8579
8836
  locations: Locations,
@@ -8587,4 +8844,4 @@ function createClient(config = {}) {
8587
8844
  };
8588
8845
  }
8589
8846
  //#endregion
8590
- export { Search as C, client as E, SavedFilters as S, Studio as T, Originators as _, Branches as a, Related as b, Graph as c, Loans as d, Locations as f, Offices as g, Monitors as h, Alerts as i, Integrations as l, Me as m, createClient as n, Companies as o, Market as p, Agents as r, Crm as s, createApiClient as t, Lenders as u, Properties as v, Signals as w, Sales as x, Realtime as y };
8847
+ 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 };