@model-match/api 3.109.0 → 3.110.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-CieihRcZ.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4507,6 +4507,42 @@ const getFileContent = (options) => (options.client ?? client).get({
4507
4507
  ...options
4508
4508
  });
4509
4509
  /**
4510
+ * A database file's tables
4511
+ *
4512
+ * 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.
4513
+ */
4514
+ const getFileDatabase = (options) => (options.client ?? client).get({
4515
+ security: [{
4516
+ name: "x-api-key",
4517
+ type: "apiKey"
4518
+ }, {
4519
+ scheme: "bearer",
4520
+ type: "http"
4521
+ }],
4522
+ url: "/v1/files/{id}/database",
4523
+ ...options
4524
+ });
4525
+ /**
4526
+ * Run a read-only query on a database file
4527
+ *
4528
+ * 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.
4529
+ */
4530
+ const queryFileDatabase = (options) => (options.client ?? client).post({
4531
+ security: [{
4532
+ name: "x-api-key",
4533
+ type: "apiKey"
4534
+ }, {
4535
+ scheme: "bearer",
4536
+ type: "http"
4537
+ }],
4538
+ url: "/v1/files/{id}/database/query",
4539
+ ...options,
4540
+ headers: {
4541
+ "Content-Type": "application/json",
4542
+ ...options.headers
4543
+ }
4544
+ });
4545
+ /**
4510
4546
  * Detach a file
4511
4547
  *
4512
4548
  * 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 +7625,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
7589
7625
  ...options
7590
7626
  });
7591
7627
  //#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 };
7628
+ 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, 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 };
@@ -5736,6 +5736,46 @@ var Files = class {
5736
5736
  });
5737
5737
  }
5738
5738
  /**
5739
+ * A database file's tables
5740
+ *
5741
+ * 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.
5742
+ */
5743
+ static getFileDatabase(options) {
5744
+ return (options.client ?? client).get({
5745
+ security: [{
5746
+ name: "x-api-key",
5747
+ type: "apiKey"
5748
+ }, {
5749
+ scheme: "bearer",
5750
+ type: "http"
5751
+ }],
5752
+ url: "/v1/files/{id}/database",
5753
+ ...options
5754
+ });
5755
+ }
5756
+ /**
5757
+ * Run a read-only query on a database file
5758
+ *
5759
+ * 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.
5760
+ */
5761
+ static queryFileDatabase(options) {
5762
+ return (options.client ?? client).post({
5763
+ security: [{
5764
+ name: "x-api-key",
5765
+ type: "apiKey"
5766
+ }, {
5767
+ scheme: "bearer",
5768
+ type: "http"
5769
+ }],
5770
+ url: "/v1/files/{id}/database/query",
5771
+ ...options,
5772
+ headers: {
5773
+ "Content-Type": "application/json",
5774
+ ...options.headers
5775
+ }
5776
+ });
5777
+ }
5778
+ /**
5739
5779
  * Detach a file
5740
5780
  *
5741
5781
  * The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.
package/openapi.json CHANGED
@@ -26533,6 +26533,43 @@
26533
26533
  ],
26534
26534
  "type": "object"
26535
26535
  },
26536
+ "DatabaseStatementResult": {
26537
+ "properties": {
26538
+ "changes": {
26539
+ "description": "For a write: the rows it changed.",
26540
+ "type": "integer"
26541
+ },
26542
+ "columns": {
26543
+ "items": {
26544
+ "type": "string"
26545
+ },
26546
+ "type": "array"
26547
+ },
26548
+ "lastInsertRowid": {
26549
+ "type": "integer"
26550
+ },
26551
+ "rows": {
26552
+ "description": "Each row's values in `columns` order. Text and blobs longer than 10,000 characters are cut; a blob is `{ blob: <base64>, bytes, truncated }`.",
26553
+ "items": {
26554
+ "items": {
26555
+ "nullable": true
26556
+ },
26557
+ "type": "array"
26558
+ },
26559
+ "type": "array"
26560
+ },
26561
+ "truncated": {
26562
+ "description": "True when there were more rows than were returned.",
26563
+ "type": "boolean"
26564
+ }
26565
+ },
26566
+ "required": [
26567
+ "columns",
26568
+ "rows",
26569
+ "truncated"
26570
+ ],
26571
+ "type": "object"
26572
+ },
26536
26573
  "DatabaseTable": {
26537
26574
  "properties": {
26538
26575
  "columns": {
@@ -28199,6 +28236,125 @@
28199
28236
  ],
28200
28237
  "type": "object"
28201
28238
  },
28239
+ "FileDatabaseQuery": {
28240
+ "additionalProperties": false,
28241
+ "properties": {
28242
+ "maxRows": {
28243
+ "description": "Rows to return (default 500, at most 5,000).",
28244
+ "maximum": 5000,
28245
+ "minimum": 1,
28246
+ "type": "integer"
28247
+ },
28248
+ "params": {
28249
+ "anyOf": [
28250
+ {
28251
+ "items": {
28252
+ "anyOf": [
28253
+ {
28254
+ "type": "string"
28255
+ },
28256
+ {
28257
+ "type": "number"
28258
+ },
28259
+ {
28260
+ "type": "boolean"
28261
+ },
28262
+ {
28263
+ "nullable": true
28264
+ }
28265
+ ]
28266
+ },
28267
+ "maxItems": 999,
28268
+ "type": "array"
28269
+ },
28270
+ {
28271
+ "additionalProperties": {
28272
+ "anyOf": [
28273
+ {
28274
+ "type": "string"
28275
+ },
28276
+ {
28277
+ "type": "number"
28278
+ },
28279
+ {
28280
+ "type": "boolean"
28281
+ },
28282
+ {
28283
+ "nullable": true
28284
+ }
28285
+ ]
28286
+ },
28287
+ "type": "object"
28288
+ }
28289
+ ],
28290
+ "description": "Values for the statement's parameters: an array for `?`, or an object for named ones (`:name`, `@name`, `$name`; the key includes the prefix). Text, numbers, true/false or null."
28291
+ },
28292
+ "sql": {
28293
+ "description": "One read-only statement: `SELECT`, `WITH … SELECT` or `VALUES`.",
28294
+ "example": "SELECT name, closed_on FROM deals ORDER BY closed_on DESC",
28295
+ "maxLength": 100000,
28296
+ "minLength": 1,
28297
+ "type": "string"
28298
+ }
28299
+ },
28300
+ "required": [
28301
+ "sql"
28302
+ ],
28303
+ "type": "object"
28304
+ },
28305
+ "FileDatabaseQueryResult": {
28306
+ "properties": {
28307
+ "data": {
28308
+ "allOf": [
28309
+ {
28310
+ "$ref": "#/components/schemas/DatabaseStatementResult"
28311
+ },
28312
+ {
28313
+ "properties": {
28314
+ "revision": {
28315
+ "description": "The revision of the database that answered.",
28316
+ "type": "integer"
28317
+ }
28318
+ },
28319
+ "required": [
28320
+ "revision"
28321
+ ],
28322
+ "type": "object"
28323
+ }
28324
+ ]
28325
+ }
28326
+ },
28327
+ "required": [
28328
+ "data"
28329
+ ],
28330
+ "type": "object"
28331
+ },
28332
+ "FileDatabaseResult": {
28333
+ "properties": {
28334
+ "data": {
28335
+ "properties": {
28336
+ "database": {
28337
+ "allOf": [
28338
+ {
28339
+ "$ref": "#/components/schemas/FileDatabase"
28340
+ },
28341
+ {
28342
+ "description": "A SQLite database's tables, columns and row counts, views, indexes and triggers — for its current revision."
28343
+ }
28344
+ ]
28345
+ }
28346
+ },
28347
+ "required": [
28348
+ "database"
28349
+ ],
28350
+ "type": "object"
28351
+ }
28352
+ },
28353
+ "required": [
28354
+ "data"
28355
+ ],
28356
+ "type": "object"
28357
+ },
28202
28358
  "FileError": {
28203
28359
  "properties": {
28204
28360
  "code": {
@@ -54124,7 +54280,7 @@
54124
54280
  "StudioModelError": {
54125
54281
  "properties": {
54126
54282
  "code": {
54127
- "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_unavailable`, `studio_unavailable`.",
54283
+ "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_disabled` (501: training is turned off here; do not retry), `studio_unavailable`.",
54128
54284
  "example": "match_rate_too_low",
54129
54285
  "type": "string"
54130
54286
  },
@@ -58608,7 +58764,7 @@
58608
58764
  "info": {
58609
58765
  "description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
58610
58766
  "title": "ModelMatch API",
58611
- "version": "3.213.0"
58767
+ "version": "3.214.0"
58612
58768
  },
58613
58769
  "openapi": "3.1.0",
58614
58770
  "paths": {
@@ -87644,6 +87800,248 @@
87644
87800
  ]
87645
87801
  }
87646
87802
  },
87803
+ "/v1/files/{id}/database": {
87804
+ "get": {
87805
+ "description": "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.",
87806
+ "operationId": "getFileDatabase",
87807
+ "parameters": [
87808
+ {
87809
+ "description": "The file's id.",
87810
+ "in": "path",
87811
+ "name": "id",
87812
+ "required": true,
87813
+ "schema": {
87814
+ "description": "The file's id.",
87815
+ "example": "file_3f2a…",
87816
+ "pattern": "^file_[0-9a-f]{32}$",
87817
+ "type": "string"
87818
+ }
87819
+ }
87820
+ ],
87821
+ "responses": {
87822
+ "200": {
87823
+ "content": {
87824
+ "application/json": {
87825
+ "schema": {
87826
+ "$ref": "#/components/schemas/FileDatabaseResult"
87827
+ }
87828
+ }
87829
+ },
87830
+ "description": "The database"
87831
+ },
87832
+ "400": {
87833
+ "content": {
87834
+ "application/json": {
87835
+ "schema": {
87836
+ "$ref": "#/components/schemas/FileError"
87837
+ }
87838
+ }
87839
+ },
87840
+ "description": "Invalid request"
87841
+ },
87842
+ "401": {
87843
+ "content": {
87844
+ "application/json": {
87845
+ "schema": {
87846
+ "$ref": "#/components/schemas/FileError"
87847
+ }
87848
+ }
87849
+ },
87850
+ "description": "Not signed in"
87851
+ },
87852
+ "403": {
87853
+ "content": {
87854
+ "application/json": {
87855
+ "schema": {
87856
+ "$ref": "#/components/schemas/FileError"
87857
+ }
87858
+ }
87859
+ },
87860
+ "description": "Not allowed"
87861
+ },
87862
+ "404": {
87863
+ "content": {
87864
+ "application/json": {
87865
+ "schema": {
87866
+ "$ref": "#/components/schemas/FileError"
87867
+ }
87868
+ }
87869
+ },
87870
+ "description": "No such file"
87871
+ },
87872
+ "409": {
87873
+ "content": {
87874
+ "application/json": {
87875
+ "schema": {
87876
+ "$ref": "#/components/schemas/FileError"
87877
+ }
87878
+ }
87879
+ },
87880
+ "description": "Conflicts with the file's state"
87881
+ },
87882
+ "422": {
87883
+ "content": {
87884
+ "application/json": {
87885
+ "schema": {
87886
+ "$ref": "#/components/schemas/FileError"
87887
+ }
87888
+ }
87889
+ },
87890
+ "description": "The upload did not match"
87891
+ },
87892
+ "502": {
87893
+ "content": {
87894
+ "application/json": {
87895
+ "schema": {
87896
+ "$ref": "#/components/schemas/FileError"
87897
+ }
87898
+ }
87899
+ },
87900
+ "description": "Could not check membership"
87901
+ },
87902
+ "503": {
87903
+ "content": {
87904
+ "application/json": {
87905
+ "schema": {
87906
+ "$ref": "#/components/schemas/FileError"
87907
+ }
87908
+ }
87909
+ },
87910
+ "description": "Storage or the access log unavailable"
87911
+ }
87912
+ },
87913
+ "summary": "A database file's tables",
87914
+ "tags": [
87915
+ "Files"
87916
+ ]
87917
+ }
87918
+ },
87919
+ "/v1/files/{id}/database/query": {
87920
+ "post": {
87921
+ "description": "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.",
87922
+ "operationId": "queryFileDatabase",
87923
+ "parameters": [
87924
+ {
87925
+ "description": "The file's id.",
87926
+ "in": "path",
87927
+ "name": "id",
87928
+ "required": true,
87929
+ "schema": {
87930
+ "description": "The file's id.",
87931
+ "example": "file_3f2a…",
87932
+ "pattern": "^file_[0-9a-f]{32}$",
87933
+ "type": "string"
87934
+ }
87935
+ }
87936
+ ],
87937
+ "requestBody": {
87938
+ "content": {
87939
+ "application/json": {
87940
+ "schema": {
87941
+ "$ref": "#/components/schemas/FileDatabaseQuery"
87942
+ }
87943
+ }
87944
+ },
87945
+ "required": true
87946
+ },
87947
+ "responses": {
87948
+ "200": {
87949
+ "content": {
87950
+ "application/json": {
87951
+ "schema": {
87952
+ "$ref": "#/components/schemas/FileDatabaseQueryResult"
87953
+ }
87954
+ }
87955
+ },
87956
+ "description": "The rows"
87957
+ },
87958
+ "400": {
87959
+ "content": {
87960
+ "application/json": {
87961
+ "schema": {
87962
+ "$ref": "#/components/schemas/FileError"
87963
+ }
87964
+ }
87965
+ },
87966
+ "description": "Invalid request"
87967
+ },
87968
+ "401": {
87969
+ "content": {
87970
+ "application/json": {
87971
+ "schema": {
87972
+ "$ref": "#/components/schemas/FileError"
87973
+ }
87974
+ }
87975
+ },
87976
+ "description": "Not signed in"
87977
+ },
87978
+ "403": {
87979
+ "content": {
87980
+ "application/json": {
87981
+ "schema": {
87982
+ "$ref": "#/components/schemas/FileError"
87983
+ }
87984
+ }
87985
+ },
87986
+ "description": "Not allowed"
87987
+ },
87988
+ "404": {
87989
+ "content": {
87990
+ "application/json": {
87991
+ "schema": {
87992
+ "$ref": "#/components/schemas/FileError"
87993
+ }
87994
+ }
87995
+ },
87996
+ "description": "No such file"
87997
+ },
87998
+ "409": {
87999
+ "content": {
88000
+ "application/json": {
88001
+ "schema": {
88002
+ "$ref": "#/components/schemas/FileError"
88003
+ }
88004
+ }
88005
+ },
88006
+ "description": "Conflicts with the file's state"
88007
+ },
88008
+ "422": {
88009
+ "content": {
88010
+ "application/json": {
88011
+ "schema": {
88012
+ "$ref": "#/components/schemas/FileError"
88013
+ }
88014
+ }
88015
+ },
88016
+ "description": "The upload did not match"
88017
+ },
88018
+ "502": {
88019
+ "content": {
88020
+ "application/json": {
88021
+ "schema": {
88022
+ "$ref": "#/components/schemas/FileError"
88023
+ }
88024
+ }
88025
+ },
88026
+ "description": "Could not check membership"
88027
+ },
88028
+ "503": {
88029
+ "content": {
88030
+ "application/json": {
88031
+ "schema": {
88032
+ "$ref": "#/components/schemas/FileError"
88033
+ }
88034
+ }
88035
+ },
88036
+ "description": "Storage or the access log unavailable"
88037
+ }
88038
+ },
88039
+ "summary": "Run a read-only query on a database file",
88040
+ "tags": [
88041
+ "Files"
88042
+ ]
88043
+ }
88044
+ },
87647
88045
  "/v1/files/{id}/links": {
87648
88046
  "delete": {
87649
88047
  "description": "The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.",
@@ -103575,7 +103973,7 @@
103575
103973
  }
103576
103974
  }
103577
103975
  },
103578
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
103976
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
103579
103977
  }
103580
103978
  },
103581
103979
  "summary": "Your organization's models",
@@ -103677,6 +104075,16 @@
103677
104075
  },
103678
104076
  "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
103679
104077
  },
104078
+ "501": {
104079
+ "content": {
104080
+ "application/json": {
104081
+ "schema": {
104082
+ "$ref": "#/components/schemas/StudioModelError"
104083
+ }
104084
+ }
104085
+ },
104086
+ "description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
104087
+ },
103680
104088
  "503": {
103681
104089
  "content": {
103682
104090
  "application/json": {
@@ -103685,7 +104093,7 @@
103685
104093
  }
103686
104094
  }
103687
104095
  },
103688
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104096
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
103689
104097
  }
103690
104098
  },
103691
104099
  "summary": "Create a prediction model and start training it",
@@ -103787,7 +104195,7 @@
103787
104195
  }
103788
104196
  }
103789
104197
  },
103790
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104198
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
103791
104199
  }
103792
104200
  },
103793
104201
  "summary": "What a prediction model can be built from",
@@ -103999,7 +104407,7 @@
103999
104407
  }
104000
104408
  }
104001
104409
  },
104002
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104410
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104003
104411
  }
104004
104412
  },
104005
104413
  "summary": "Delete a model, its report card and its scores, permanently",
@@ -104137,7 +104545,7 @@
104137
104545
  }
104138
104546
  }
104139
104547
  },
104140
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104548
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104141
104549
  }
104142
104550
  },
104143
104551
  "summary": "A model: its status and its report card",
@@ -104265,6 +104673,16 @@
104265
104673
  },
104266
104674
  "description": "`rate_limited` — too many model requests from your organization in the last minute; or `busy` — every training slot across all organizations is taken; try again later. Wait `details.retryAfterSeconds` (also sent as `Retry-After`)."
104267
104675
  },
104676
+ "501": {
104677
+ "content": {
104678
+ "application/json": {
104679
+ "schema": {
104680
+ "$ref": "#/components/schemas/StudioModelError"
104681
+ }
104682
+ }
104683
+ },
104684
+ "description": "`models_disabled` — model training is turned off in this environment, so nothing can be trained or refreshed here. A setting, not an outage: do not retry. Reading models and querying their scores still work."
104685
+ },
104268
104686
  "503": {
104269
104687
  "content": {
104270
104688
  "application/json": {
@@ -104273,7 +104691,7 @@
104273
104691
  }
104274
104692
  }
104275
104693
  },
104276
- "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `models_unavailable` — training is switched off right now (reading models and querying published scores still work); `studio_unavailable` — try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104694
+ "description": "`entitlement_unavailable` — we could not confirm whether your organization may use the age-related data points the model asks for; nothing was started, try again in a minute. `studio_unavailable` — Studio is down for a moment; try again in a minute. `billing_unavailable` — the model is finished but could not be charged for right now, so it is not published yet; read it again in a minute (it is never charged twice)."
104277
104695
  }
104278
104696
  },
104279
104697
  "summary": "Refresh a model's scores with the latest data",