@model-match/api 3.109.0 → 3.111.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-bgEYN6JC.mjs";
1
+ import { D as client, n as createClient } from "../src-CcvbR87G.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4351,6 +4351,26 @@ const redeemFileDownload = (options) => (options.client ?? client).get({
4351
4351
  ...options
4352
4352
  });
4353
4353
  /**
4354
+ * Create a database file
4355
+ *
4356
+ * Create a new SQLite database in your files library, empty or from a schema (`statements`, run in order in one transaction, with the same rules as a write). It is yours, `kind: "sqlite"`, revision 1, and ready at once: query it, write to it, share it and load it into Studio like any database file. Free.
4357
+ */
4358
+ const createFileDatabase = (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/databases",
4367
+ ...options,
4368
+ headers: {
4369
+ "Content-Type": "application/json",
4370
+ ...options.headers
4371
+ }
4372
+ });
4373
+ /**
4354
4374
  * Add a link to something in another app
4355
4375
  *
4356
4376
  * 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.
@@ -4507,6 +4527,62 @@ const getFileContent = (options) => (options.client ?? client).get({
4507
4527
  ...options
4508
4528
  });
4509
4529
  /**
4530
+ * A database file's tables
4531
+ *
4532
+ * For a SQLite database in your files library (`kind: "sqlite"`): its tables with their columns and row counts, views, indexes and triggers, for its current revision. You need any role on the file. Read now if it has not been yet. A file that is not a database answers `409 not_a_database`; a protected one `403 protected_not_enabled`. Free.
4533
+ */
4534
+ const getFileDatabase = (options) => (options.client ?? client).get({
4535
+ security: [{
4536
+ name: "x-api-key",
4537
+ type: "apiKey"
4538
+ }, {
4539
+ scheme: "bearer",
4540
+ type: "http"
4541
+ }],
4542
+ url: "/v1/files/{id}/database",
4543
+ ...options
4544
+ });
4545
+ /**
4546
+ * Run a read-only query on a database file
4547
+ *
4548
+ * Run ONE read-only statement (`SELECT`, `WITH … SELECT` or `VALUES`) on a SQLite database in your files library, with optional `params`. You need any role on the file. The database is opened read-only: nothing can change it, and its triggers never run. At most `maxRows` rows (default 500, up to 5,000; `truncated` says there were more), and 5 seconds. ATTACH, PRAGMA, extension loading and file functions are refused (`400 sql_not_allowed`); an error in the statement is `400 sql_error` with what to fix; a statement that runs too long is `422 timeout`. Free.
4549
+ */
4550
+ const queryFileDatabase = (options) => (options.client ?? client).post({
4551
+ security: [{
4552
+ name: "x-api-key",
4553
+ type: "apiKey"
4554
+ }, {
4555
+ scheme: "bearer",
4556
+ type: "http"
4557
+ }],
4558
+ url: "/v1/files/{id}/database/query",
4559
+ ...options,
4560
+ headers: {
4561
+ "Content-Type": "application/json",
4562
+ ...options.headers
4563
+ }
4564
+ });
4565
+ /**
4566
+ * Change a database file
4567
+ *
4568
+ * Run a batch of statements on a SQLite database in your files library, in ONE transaction, and save the result as the file's next revision. You need to own the file or be able to edit it. Allowed: CREATE / ALTER / DROP of tables, indexes, views and triggers, and INSERT, REPLACE, UPDATE, DELETE (and SELECT, WITH, RETURNING). Refused, anywhere in a statement or a trigger: ATTACH, DETACH, PRAGMA, VACUUM, transaction statements, virtual and temporary tables, extension loading and file functions (`400 sql_not_allowed`). The database's own triggers run. If any statement fails (`400 sql_error`, or `422 timeout` past 8 seconds, or `422 database_too_large` past 100 MB), nothing is kept. Pass `expectRevision` to write only if nobody saved a newer revision since you read it; whenever someone did, the answer is `409 revision_conflict` with `latestRevision`. Every write is a revision on the file and on its access log. Tables loaded into Studio from the database are read again. Free.
4569
+ */
4570
+ const writeFileDatabase = (options) => (options.client ?? client).post({
4571
+ security: [{
4572
+ name: "x-api-key",
4573
+ type: "apiKey"
4574
+ }, {
4575
+ scheme: "bearer",
4576
+ type: "http"
4577
+ }],
4578
+ url: "/v1/files/{id}/database/write",
4579
+ ...options,
4580
+ headers: {
4581
+ "Content-Type": "application/json",
4582
+ ...options.headers
4583
+ }
4584
+ });
4585
+ /**
4510
4586
  * Detach a file
4511
4587
  *
4512
4588
  * The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.
@@ -7589,4 +7665,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
7589
7665
  ...options
7590
7666
  });
7591
7667
  //#endregion
7592
- 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, reloadStudioTables, 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 };
7668
+ 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, createFileDatabase, 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, getFileDatabase, 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, queryFileDatabase, reconcileCrmMeetings, redeemFileDownload, refreshCrmRecordMirror, refreshStudioModel, reloadStudioTables, 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, writeFileDatabase };
@@ -5562,6 +5562,28 @@ var Files = class {
5562
5562
  });
5563
5563
  }
5564
5564
  /**
5565
+ * Create a database file
5566
+ *
5567
+ * Create a new SQLite database in your files library, empty or from a schema (`statements`, run in order in one transaction, with the same rules as a write). It is yours, `kind: "sqlite"`, revision 1, and ready at once: query it, write to it, share it and load it into Studio like any database file. Free.
5568
+ */
5569
+ static createFileDatabase(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/databases",
5579
+ ...options,
5580
+ headers: {
5581
+ "Content-Type": "application/json",
5582
+ ...options.headers
5583
+ }
5584
+ });
5585
+ }
5586
+ /**
5565
5587
  * Add a link to something in another app
5566
5588
  *
5567
5589
  * 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.
@@ -5736,6 +5758,68 @@ var Files = class {
5736
5758
  });
5737
5759
  }
5738
5760
  /**
5761
+ * A database file's tables
5762
+ *
5763
+ * For a SQLite database in your files library (`kind: "sqlite"`): its tables with their columns and row counts, views, indexes and triggers, for its current revision. You need any role on the file. Read now if it has not been yet. A file that is not a database answers `409 not_a_database`; a protected one `403 protected_not_enabled`. Free.
5764
+ */
5765
+ static getFileDatabase(options) {
5766
+ return (options.client ?? client).get({
5767
+ security: [{
5768
+ name: "x-api-key",
5769
+ type: "apiKey"
5770
+ }, {
5771
+ scheme: "bearer",
5772
+ type: "http"
5773
+ }],
5774
+ url: "/v1/files/{id}/database",
5775
+ ...options
5776
+ });
5777
+ }
5778
+ /**
5779
+ * Run a read-only query on a database file
5780
+ *
5781
+ * Run ONE read-only statement (`SELECT`, `WITH … SELECT` or `VALUES`) on a SQLite database in your files library, with optional `params`. You need any role on the file. The database is opened read-only: nothing can change it, and its triggers never run. At most `maxRows` rows (default 500, up to 5,000; `truncated` says there were more), and 5 seconds. ATTACH, PRAGMA, extension loading and file functions are refused (`400 sql_not_allowed`); an error in the statement is `400 sql_error` with what to fix; a statement that runs too long is `422 timeout`. Free.
5782
+ */
5783
+ static queryFileDatabase(options) {
5784
+ return (options.client ?? client).post({
5785
+ security: [{
5786
+ name: "x-api-key",
5787
+ type: "apiKey"
5788
+ }, {
5789
+ scheme: "bearer",
5790
+ type: "http"
5791
+ }],
5792
+ url: "/v1/files/{id}/database/query",
5793
+ ...options,
5794
+ headers: {
5795
+ "Content-Type": "application/json",
5796
+ ...options.headers
5797
+ }
5798
+ });
5799
+ }
5800
+ /**
5801
+ * Change a database file
5802
+ *
5803
+ * Run a batch of statements on a SQLite database in your files library, in ONE transaction, and save the result as the file's next revision. You need to own the file or be able to edit it. Allowed: CREATE / ALTER / DROP of tables, indexes, views and triggers, and INSERT, REPLACE, UPDATE, DELETE (and SELECT, WITH, RETURNING). Refused, anywhere in a statement or a trigger: ATTACH, DETACH, PRAGMA, VACUUM, transaction statements, virtual and temporary tables, extension loading and file functions (`400 sql_not_allowed`). The database's own triggers run. If any statement fails (`400 sql_error`, or `422 timeout` past 8 seconds, or `422 database_too_large` past 100 MB), nothing is kept. Pass `expectRevision` to write only if nobody saved a newer revision since you read it; whenever someone did, the answer is `409 revision_conflict` with `latestRevision`. Every write is a revision on the file and on its access log. Tables loaded into Studio from the database are read again. Free.
5804
+ */
5805
+ static writeFileDatabase(options) {
5806
+ return (options.client ?? client).post({
5807
+ security: [{
5808
+ name: "x-api-key",
5809
+ type: "apiKey"
5810
+ }, {
5811
+ scheme: "bearer",
5812
+ type: "http"
5813
+ }],
5814
+ url: "/v1/files/{id}/database/write",
5815
+ ...options,
5816
+ headers: {
5817
+ "Content-Type": "application/json",
5818
+ ...options.headers
5819
+ }
5820
+ });
5821
+ }
5822
+ /**
5739
5823
  * Detach a file
5740
5824
  *
5741
5825
  * The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.