@model-match/api 3.110.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.
- package/RELEASE_NOTES.md +5 -0
- package/dist/{index-D4yk3He3.d.mts → index-BDlga75E.d.mts} +185 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +14 -2
- package/dist/slim/index.mjs +42 -2
- package/dist/{src-CieihRcZ.mjs → src-CcvbR87G.mjs} +44 -0
- package/openapi.json +461 -1
- package/package.json +1 -1
package/dist/slim/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as client, n as createClient } from "../src-
|
|
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.
|
|
@@ -4543,6 +4563,26 @@ const queryFileDatabase = (options) => (options.client ?? client).post({
|
|
|
4543
4563
|
}
|
|
4544
4564
|
});
|
|
4545
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
|
+
/**
|
|
4546
4586
|
* Detach a file
|
|
4547
4587
|
*
|
|
4548
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.
|
|
@@ -7625,4 +7665,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
|
|
|
7625
7665
|
...options
|
|
7626
7666
|
});
|
|
7627
7667
|
//#endregion
|
|
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 };
|
|
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.
|
|
@@ -5776,6 +5798,28 @@ var Files = class {
|
|
|
5776
5798
|
});
|
|
5777
5799
|
}
|
|
5778
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
|
+
/**
|
|
5779
5823
|
* Detach a file
|
|
5780
5824
|
*
|
|
5781
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.
|
package/openapi.json
CHANGED
|
@@ -26533,6 +26533,66 @@
|
|
|
26533
26533
|
],
|
|
26534
26534
|
"type": "object"
|
|
26535
26535
|
},
|
|
26536
|
+
"DatabaseStatement": {
|
|
26537
|
+
"additionalProperties": false,
|
|
26538
|
+
"properties": {
|
|
26539
|
+
"params": {
|
|
26540
|
+
"anyOf": [
|
|
26541
|
+
{
|
|
26542
|
+
"items": {
|
|
26543
|
+
"anyOf": [
|
|
26544
|
+
{
|
|
26545
|
+
"type": "string"
|
|
26546
|
+
},
|
|
26547
|
+
{
|
|
26548
|
+
"type": "number"
|
|
26549
|
+
},
|
|
26550
|
+
{
|
|
26551
|
+
"type": "boolean"
|
|
26552
|
+
},
|
|
26553
|
+
{
|
|
26554
|
+
"nullable": true
|
|
26555
|
+
}
|
|
26556
|
+
]
|
|
26557
|
+
},
|
|
26558
|
+
"maxItems": 999,
|
|
26559
|
+
"type": "array"
|
|
26560
|
+
},
|
|
26561
|
+
{
|
|
26562
|
+
"additionalProperties": {
|
|
26563
|
+
"anyOf": [
|
|
26564
|
+
{
|
|
26565
|
+
"type": "string"
|
|
26566
|
+
},
|
|
26567
|
+
{
|
|
26568
|
+
"type": "number"
|
|
26569
|
+
},
|
|
26570
|
+
{
|
|
26571
|
+
"type": "boolean"
|
|
26572
|
+
},
|
|
26573
|
+
{
|
|
26574
|
+
"nullable": true
|
|
26575
|
+
}
|
|
26576
|
+
]
|
|
26577
|
+
},
|
|
26578
|
+
"type": "object"
|
|
26579
|
+
}
|
|
26580
|
+
],
|
|
26581
|
+
"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."
|
|
26582
|
+
},
|
|
26583
|
+
"sql": {
|
|
26584
|
+
"description": "ONE statement: CREATE TABLE / INDEX / VIEW / TRIGGER, ALTER TABLE, DROP TABLE / INDEX / VIEW / TRIGGER, INSERT, REPLACE, UPDATE, DELETE, WITH … or SELECT.",
|
|
26585
|
+
"example": "INSERT INTO deals (client, amount) VALUES (?, ?)",
|
|
26586
|
+
"maxLength": 100000,
|
|
26587
|
+
"minLength": 1,
|
|
26588
|
+
"type": "string"
|
|
26589
|
+
}
|
|
26590
|
+
},
|
|
26591
|
+
"required": [
|
|
26592
|
+
"sql"
|
|
26593
|
+
],
|
|
26594
|
+
"type": "object"
|
|
26595
|
+
},
|
|
26536
26596
|
"DatabaseStatementResult": {
|
|
26537
26597
|
"properties": {
|
|
26538
26598
|
"changes": {
|
|
@@ -28236,6 +28296,102 @@
|
|
|
28236
28296
|
],
|
|
28237
28297
|
"type": "object"
|
|
28238
28298
|
},
|
|
28299
|
+
"FileDatabaseConflict": {
|
|
28300
|
+
"properties": {
|
|
28301
|
+
"code": {
|
|
28302
|
+
"type": "string"
|
|
28303
|
+
},
|
|
28304
|
+
"error": {
|
|
28305
|
+
"type": "string"
|
|
28306
|
+
},
|
|
28307
|
+
"latestRevision": {
|
|
28308
|
+
"description": "For `revision_conflict`: the database's latest revision.",
|
|
28309
|
+
"type": "integer"
|
|
28310
|
+
}
|
|
28311
|
+
},
|
|
28312
|
+
"required": [
|
|
28313
|
+
"error",
|
|
28314
|
+
"code"
|
|
28315
|
+
],
|
|
28316
|
+
"type": "object"
|
|
28317
|
+
},
|
|
28318
|
+
"FileDatabaseCreate": {
|
|
28319
|
+
"additionalProperties": false,
|
|
28320
|
+
"properties": {
|
|
28321
|
+
"links": {
|
|
28322
|
+
"items": {
|
|
28323
|
+
"maxLength": 220,
|
|
28324
|
+
"minLength": 3,
|
|
28325
|
+
"type": "string"
|
|
28326
|
+
},
|
|
28327
|
+
"maxItems": 20,
|
|
28328
|
+
"type": "array"
|
|
28329
|
+
},
|
|
28330
|
+
"metadata": {
|
|
28331
|
+
"additionalProperties": {
|
|
28332
|
+
"nullable": true
|
|
28333
|
+
},
|
|
28334
|
+
"type": "object"
|
|
28335
|
+
},
|
|
28336
|
+
"name": {
|
|
28337
|
+
"description": "The file name.",
|
|
28338
|
+
"example": "pipeline.sqlite",
|
|
28339
|
+
"maxLength": 255,
|
|
28340
|
+
"minLength": 1,
|
|
28341
|
+
"type": "string"
|
|
28342
|
+
},
|
|
28343
|
+
"origin": {
|
|
28344
|
+
"description": "Defaults to `app`.",
|
|
28345
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
28346
|
+
"type": "string"
|
|
28347
|
+
},
|
|
28348
|
+
"provenance": {
|
|
28349
|
+
"additionalProperties": {
|
|
28350
|
+
"maxLength": 200,
|
|
28351
|
+
"type": "string"
|
|
28352
|
+
},
|
|
28353
|
+
"type": "object"
|
|
28354
|
+
},
|
|
28355
|
+
"statements": {
|
|
28356
|
+
"description": "The schema (and any rows) to start from, run in order in one transaction. Leave out for an empty database.",
|
|
28357
|
+
"items": {
|
|
28358
|
+
"$ref": "#/components/schemas/DatabaseStatement"
|
|
28359
|
+
},
|
|
28360
|
+
"maxItems": 200,
|
|
28361
|
+
"type": "array"
|
|
28362
|
+
}
|
|
28363
|
+
},
|
|
28364
|
+
"required": [
|
|
28365
|
+
"name"
|
|
28366
|
+
],
|
|
28367
|
+
"type": "object"
|
|
28368
|
+
},
|
|
28369
|
+
"FileDatabaseCreated": {
|
|
28370
|
+
"properties": {
|
|
28371
|
+
"data": {
|
|
28372
|
+
"properties": {
|
|
28373
|
+
"file": {
|
|
28374
|
+
"$ref": "#/components/schemas/File"
|
|
28375
|
+
},
|
|
28376
|
+
"results": {
|
|
28377
|
+
"items": {
|
|
28378
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28379
|
+
},
|
|
28380
|
+
"type": "array"
|
|
28381
|
+
}
|
|
28382
|
+
},
|
|
28383
|
+
"required": [
|
|
28384
|
+
"file",
|
|
28385
|
+
"results"
|
|
28386
|
+
],
|
|
28387
|
+
"type": "object"
|
|
28388
|
+
}
|
|
28389
|
+
},
|
|
28390
|
+
"required": [
|
|
28391
|
+
"data"
|
|
28392
|
+
],
|
|
28393
|
+
"type": "object"
|
|
28394
|
+
},
|
|
28239
28395
|
"FileDatabaseQuery": {
|
|
28240
28396
|
"additionalProperties": false,
|
|
28241
28397
|
"properties": {
|
|
@@ -28355,6 +28511,72 @@
|
|
|
28355
28511
|
],
|
|
28356
28512
|
"type": "object"
|
|
28357
28513
|
},
|
|
28514
|
+
"FileDatabaseWrite": {
|
|
28515
|
+
"additionalProperties": false,
|
|
28516
|
+
"properties": {
|
|
28517
|
+
"expectRevision": {
|
|
28518
|
+
"description": "The revision you read. When the database has moved on, nothing is written and the answer is `409 revision_conflict` with `latestRevision`.",
|
|
28519
|
+
"minimum": 1,
|
|
28520
|
+
"type": "integer"
|
|
28521
|
+
},
|
|
28522
|
+
"statements": {
|
|
28523
|
+
"description": "Run in order, in ONE transaction: if any fails, none of them is kept.",
|
|
28524
|
+
"items": {
|
|
28525
|
+
"$ref": "#/components/schemas/DatabaseStatement"
|
|
28526
|
+
},
|
|
28527
|
+
"maxItems": 200,
|
|
28528
|
+
"minItems": 1,
|
|
28529
|
+
"type": "array"
|
|
28530
|
+
}
|
|
28531
|
+
},
|
|
28532
|
+
"required": [
|
|
28533
|
+
"statements"
|
|
28534
|
+
],
|
|
28535
|
+
"type": "object"
|
|
28536
|
+
},
|
|
28537
|
+
"FileDatabaseWriteResult": {
|
|
28538
|
+
"properties": {
|
|
28539
|
+
"data": {
|
|
28540
|
+
"properties": {
|
|
28541
|
+
"database": {
|
|
28542
|
+
"allOf": [
|
|
28543
|
+
{
|
|
28544
|
+
"$ref": "#/components/schemas/FileDatabase"
|
|
28545
|
+
},
|
|
28546
|
+
{
|
|
28547
|
+
"description": "A SQLite database's tables, columns and row counts, views, indexes and triggers — for its current revision."
|
|
28548
|
+
}
|
|
28549
|
+
]
|
|
28550
|
+
},
|
|
28551
|
+
"results": {
|
|
28552
|
+
"description": "One per statement, in order: `changes` for a write (including rows the database's own triggers changed, on some versions), rows for a SELECT or RETURNING.",
|
|
28553
|
+
"items": {
|
|
28554
|
+
"$ref": "#/components/schemas/DatabaseStatementResult"
|
|
28555
|
+
},
|
|
28556
|
+
"type": "array"
|
|
28557
|
+
},
|
|
28558
|
+
"revision": {
|
|
28559
|
+
"description": "The new revision the change was saved as.",
|
|
28560
|
+
"type": "integer"
|
|
28561
|
+
},
|
|
28562
|
+
"sizeBytes": {
|
|
28563
|
+
"type": "integer"
|
|
28564
|
+
}
|
|
28565
|
+
},
|
|
28566
|
+
"required": [
|
|
28567
|
+
"revision",
|
|
28568
|
+
"sizeBytes",
|
|
28569
|
+
"results",
|
|
28570
|
+
"database"
|
|
28571
|
+
],
|
|
28572
|
+
"type": "object"
|
|
28573
|
+
}
|
|
28574
|
+
},
|
|
28575
|
+
"required": [
|
|
28576
|
+
"data"
|
|
28577
|
+
],
|
|
28578
|
+
"type": "object"
|
|
28579
|
+
},
|
|
28358
28580
|
"FileError": {
|
|
28359
28581
|
"properties": {
|
|
28360
28582
|
"code": {
|
|
@@ -58764,7 +58986,7 @@
|
|
|
58764
58986
|
"info": {
|
|
58765
58987
|
"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.",
|
|
58766
58988
|
"title": "ModelMatch API",
|
|
58767
|
-
"version": "3.
|
|
58989
|
+
"version": "3.215.0"
|
|
58768
58990
|
},
|
|
58769
58991
|
"openapi": "3.1.0",
|
|
58770
58992
|
"paths": {
|
|
@@ -86472,6 +86694,118 @@
|
|
|
86472
86694
|
]
|
|
86473
86695
|
}
|
|
86474
86696
|
},
|
|
86697
|
+
"/v1/files/databases": {
|
|
86698
|
+
"post": {
|
|
86699
|
+
"description": "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.",
|
|
86700
|
+
"operationId": "createFileDatabase",
|
|
86701
|
+
"requestBody": {
|
|
86702
|
+
"content": {
|
|
86703
|
+
"application/json": {
|
|
86704
|
+
"schema": {
|
|
86705
|
+
"$ref": "#/components/schemas/FileDatabaseCreate"
|
|
86706
|
+
}
|
|
86707
|
+
}
|
|
86708
|
+
},
|
|
86709
|
+
"required": true
|
|
86710
|
+
},
|
|
86711
|
+
"responses": {
|
|
86712
|
+
"201": {
|
|
86713
|
+
"content": {
|
|
86714
|
+
"application/json": {
|
|
86715
|
+
"schema": {
|
|
86716
|
+
"$ref": "#/components/schemas/FileDatabaseCreated"
|
|
86717
|
+
}
|
|
86718
|
+
}
|
|
86719
|
+
},
|
|
86720
|
+
"description": "The new database"
|
|
86721
|
+
},
|
|
86722
|
+
"400": {
|
|
86723
|
+
"content": {
|
|
86724
|
+
"application/json": {
|
|
86725
|
+
"schema": {
|
|
86726
|
+
"$ref": "#/components/schemas/FileError"
|
|
86727
|
+
}
|
|
86728
|
+
}
|
|
86729
|
+
},
|
|
86730
|
+
"description": "Invalid request"
|
|
86731
|
+
},
|
|
86732
|
+
"401": {
|
|
86733
|
+
"content": {
|
|
86734
|
+
"application/json": {
|
|
86735
|
+
"schema": {
|
|
86736
|
+
"$ref": "#/components/schemas/FileError"
|
|
86737
|
+
}
|
|
86738
|
+
}
|
|
86739
|
+
},
|
|
86740
|
+
"description": "Not signed in"
|
|
86741
|
+
},
|
|
86742
|
+
"403": {
|
|
86743
|
+
"content": {
|
|
86744
|
+
"application/json": {
|
|
86745
|
+
"schema": {
|
|
86746
|
+
"$ref": "#/components/schemas/FileError"
|
|
86747
|
+
}
|
|
86748
|
+
}
|
|
86749
|
+
},
|
|
86750
|
+
"description": "Not allowed"
|
|
86751
|
+
},
|
|
86752
|
+
"404": {
|
|
86753
|
+
"content": {
|
|
86754
|
+
"application/json": {
|
|
86755
|
+
"schema": {
|
|
86756
|
+
"$ref": "#/components/schemas/FileError"
|
|
86757
|
+
}
|
|
86758
|
+
}
|
|
86759
|
+
},
|
|
86760
|
+
"description": "No such file"
|
|
86761
|
+
},
|
|
86762
|
+
"409": {
|
|
86763
|
+
"content": {
|
|
86764
|
+
"application/json": {
|
|
86765
|
+
"schema": {
|
|
86766
|
+
"$ref": "#/components/schemas/FileError"
|
|
86767
|
+
}
|
|
86768
|
+
}
|
|
86769
|
+
},
|
|
86770
|
+
"description": "Conflicts with the file's state"
|
|
86771
|
+
},
|
|
86772
|
+
"422": {
|
|
86773
|
+
"content": {
|
|
86774
|
+
"application/json": {
|
|
86775
|
+
"schema": {
|
|
86776
|
+
"$ref": "#/components/schemas/FileError"
|
|
86777
|
+
}
|
|
86778
|
+
}
|
|
86779
|
+
},
|
|
86780
|
+
"description": "The upload did not match"
|
|
86781
|
+
},
|
|
86782
|
+
"502": {
|
|
86783
|
+
"content": {
|
|
86784
|
+
"application/json": {
|
|
86785
|
+
"schema": {
|
|
86786
|
+
"$ref": "#/components/schemas/FileError"
|
|
86787
|
+
}
|
|
86788
|
+
}
|
|
86789
|
+
},
|
|
86790
|
+
"description": "Could not check membership"
|
|
86791
|
+
},
|
|
86792
|
+
"503": {
|
|
86793
|
+
"content": {
|
|
86794
|
+
"application/json": {
|
|
86795
|
+
"schema": {
|
|
86796
|
+
"$ref": "#/components/schemas/FileError"
|
|
86797
|
+
}
|
|
86798
|
+
}
|
|
86799
|
+
},
|
|
86800
|
+
"description": "Storage or the access log unavailable"
|
|
86801
|
+
}
|
|
86802
|
+
},
|
|
86803
|
+
"summary": "Create a database file",
|
|
86804
|
+
"tags": [
|
|
86805
|
+
"Files"
|
|
86806
|
+
]
|
|
86807
|
+
}
|
|
86808
|
+
},
|
|
86475
86809
|
"/v1/files/references": {
|
|
86476
86810
|
"post": {
|
|
86477
86811
|
"description": "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.",
|
|
@@ -88042,6 +88376,132 @@
|
|
|
88042
88376
|
]
|
|
88043
88377
|
}
|
|
88044
88378
|
},
|
|
88379
|
+
"/v1/files/{id}/database/write": {
|
|
88380
|
+
"post": {
|
|
88381
|
+
"description": "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.",
|
|
88382
|
+
"operationId": "writeFileDatabase",
|
|
88383
|
+
"parameters": [
|
|
88384
|
+
{
|
|
88385
|
+
"description": "The file's id.",
|
|
88386
|
+
"in": "path",
|
|
88387
|
+
"name": "id",
|
|
88388
|
+
"required": true,
|
|
88389
|
+
"schema": {
|
|
88390
|
+
"description": "The file's id.",
|
|
88391
|
+
"example": "file_3f2a…",
|
|
88392
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
88393
|
+
"type": "string"
|
|
88394
|
+
}
|
|
88395
|
+
}
|
|
88396
|
+
],
|
|
88397
|
+
"requestBody": {
|
|
88398
|
+
"content": {
|
|
88399
|
+
"application/json": {
|
|
88400
|
+
"schema": {
|
|
88401
|
+
"$ref": "#/components/schemas/FileDatabaseWrite"
|
|
88402
|
+
}
|
|
88403
|
+
}
|
|
88404
|
+
},
|
|
88405
|
+
"required": true
|
|
88406
|
+
},
|
|
88407
|
+
"responses": {
|
|
88408
|
+
"200": {
|
|
88409
|
+
"content": {
|
|
88410
|
+
"application/json": {
|
|
88411
|
+
"schema": {
|
|
88412
|
+
"$ref": "#/components/schemas/FileDatabaseWriteResult"
|
|
88413
|
+
}
|
|
88414
|
+
}
|
|
88415
|
+
},
|
|
88416
|
+
"description": "Saved as the next revision"
|
|
88417
|
+
},
|
|
88418
|
+
"400": {
|
|
88419
|
+
"content": {
|
|
88420
|
+
"application/json": {
|
|
88421
|
+
"schema": {
|
|
88422
|
+
"$ref": "#/components/schemas/FileError"
|
|
88423
|
+
}
|
|
88424
|
+
}
|
|
88425
|
+
},
|
|
88426
|
+
"description": "Invalid request"
|
|
88427
|
+
},
|
|
88428
|
+
"401": {
|
|
88429
|
+
"content": {
|
|
88430
|
+
"application/json": {
|
|
88431
|
+
"schema": {
|
|
88432
|
+
"$ref": "#/components/schemas/FileError"
|
|
88433
|
+
}
|
|
88434
|
+
}
|
|
88435
|
+
},
|
|
88436
|
+
"description": "Not signed in"
|
|
88437
|
+
},
|
|
88438
|
+
"403": {
|
|
88439
|
+
"content": {
|
|
88440
|
+
"application/json": {
|
|
88441
|
+
"schema": {
|
|
88442
|
+
"$ref": "#/components/schemas/FileError"
|
|
88443
|
+
}
|
|
88444
|
+
}
|
|
88445
|
+
},
|
|
88446
|
+
"description": "Not allowed"
|
|
88447
|
+
},
|
|
88448
|
+
"404": {
|
|
88449
|
+
"content": {
|
|
88450
|
+
"application/json": {
|
|
88451
|
+
"schema": {
|
|
88452
|
+
"$ref": "#/components/schemas/FileError"
|
|
88453
|
+
}
|
|
88454
|
+
}
|
|
88455
|
+
},
|
|
88456
|
+
"description": "No such file"
|
|
88457
|
+
},
|
|
88458
|
+
"409": {
|
|
88459
|
+
"content": {
|
|
88460
|
+
"application/json": {
|
|
88461
|
+
"schema": {
|
|
88462
|
+
"$ref": "#/components/schemas/FileDatabaseConflict"
|
|
88463
|
+
}
|
|
88464
|
+
}
|
|
88465
|
+
},
|
|
88466
|
+
"description": "`revision_conflict` (`latestRevision`), `revision_pending`, `not_a_database` or `not_ready`"
|
|
88467
|
+
},
|
|
88468
|
+
"422": {
|
|
88469
|
+
"content": {
|
|
88470
|
+
"application/json": {
|
|
88471
|
+
"schema": {
|
|
88472
|
+
"$ref": "#/components/schemas/FileError"
|
|
88473
|
+
}
|
|
88474
|
+
}
|
|
88475
|
+
},
|
|
88476
|
+
"description": "The upload did not match"
|
|
88477
|
+
},
|
|
88478
|
+
"502": {
|
|
88479
|
+
"content": {
|
|
88480
|
+
"application/json": {
|
|
88481
|
+
"schema": {
|
|
88482
|
+
"$ref": "#/components/schemas/FileError"
|
|
88483
|
+
}
|
|
88484
|
+
}
|
|
88485
|
+
},
|
|
88486
|
+
"description": "Could not check membership"
|
|
88487
|
+
},
|
|
88488
|
+
"503": {
|
|
88489
|
+
"content": {
|
|
88490
|
+
"application/json": {
|
|
88491
|
+
"schema": {
|
|
88492
|
+
"$ref": "#/components/schemas/FileError"
|
|
88493
|
+
}
|
|
88494
|
+
}
|
|
88495
|
+
},
|
|
88496
|
+
"description": "Storage or the access log unavailable"
|
|
88497
|
+
}
|
|
88498
|
+
},
|
|
88499
|
+
"summary": "Change a database file",
|
|
88500
|
+
"tags": [
|
|
88501
|
+
"Files"
|
|
88502
|
+
]
|
|
88503
|
+
}
|
|
88504
|
+
},
|
|
88045
88505
|
"/v1/files/{id}/links": {
|
|
88046
88506
|
"delete": {
|
|
88047
88507
|
"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.",
|