@model-match/api 3.98.0 → 3.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { D as client, n as createClient } from "../src-C7phaMzR.mjs";
1
+ import { D as client, n as createClient } from "../src-lZgFLTz5.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -4367,6 +4367,26 @@ const linkFile = (options) => (options.client ?? client).post({
4367
4367
  }
4368
4368
  });
4369
4369
  /**
4370
+ * Replace a file's contents
4371
+ *
4372
+ * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and SHA-256, PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.
4373
+ */
4374
+ const createFileRevision = (options) => (options.client ?? client).post({
4375
+ security: [{
4376
+ name: "x-api-key",
4377
+ type: "apiKey"
4378
+ }, {
4379
+ scheme: "bearer",
4380
+ type: "http"
4381
+ }],
4382
+ url: "/v1/files/{id}/revisions",
4383
+ ...options,
4384
+ headers: {
4385
+ "Content-Type": "application/json",
4386
+ ...options.headers
4387
+ }
4388
+ });
4389
+ /**
4370
4390
  * Stop sharing a file
4371
4391
  *
4372
4392
  * The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
@@ -7273,4 +7293,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
7273
7293
  ...options
7274
7294
  });
7275
7295
  //#endregion
7276
- export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, checkMonitor, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companyRetentionLikelyToSell, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, completeFile, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createFile, createMonitor, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteFile, deleteMonitor, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioUpload, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getFile, getFileContent, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getMonitor, getMonitorCheck, getMonitorEmailTokens, getNetwork, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioProgramRun, getStudioPublishedModel, getStudioQueryResult, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, linkFile, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListActivity, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listFiles, listLenders, listLoMoveSignals, listLoans, listMonitorRunUpdates, listMonitorTemplates, listMonitorUpdates, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, listStudioUploads, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, mapSales, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMonitor, previewMonitorEmail, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, refreshStudioModel, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, runStudioJob, runStudioQuery, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, salesMarketStats, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchFiles, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, shareFile, startStudioProgramRun, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unlinkFile, unshareCrmTemplate, unshareFile, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateFile, updateMe, updateMonitor, updateMyAlertRecipe, updateSavedFilter, updateStudioJob };
7296
+ export { client as _heyApiClient, actionCrmCallerId, addCrmContactMethod, addCrmListMember, addCrmListMembersBulk, addCrmNote, addCrmRecord, addCrmRecordsBulk, addWatchedAgent, addWatchedArea, addWatchedDocument, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentBuilders, agentCities, agentCompanies, agentCounties, agentLenders, agentLoanMix, agentMarkets, agentMortgagedTimeSeries, agentOffices, agentOriginators, agentProperties, agentRelated, agentSales, agentStates, agentTitleCompanies, agentTitleCompaniesTimeSeries, agentZipCodes, analyzeCrmCall, applyCrmEnrichment, applyCrmListMiUpdates, applyCrmListTemplate, applyCrmMiUpdates, branchAnalyticsChart, branchAnalyticsSummary, branchAnalyticsTimeSeries, branchCities, branchCommunityLendingMap, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchStats, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, checkMonitor, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCommunityLendingBenchmark, companyCommunityLendingMap, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companyRetentionActiveListings, companyRetentionCaptured, companyRetentionLikelyToSell, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, completeFile, completeStudioUpload, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createFile, createFileRevision, createMonitor, createMyAlertRecipe, createOriginatorContactSubmission, createPropertyTransactionFlag, createSavedFilter, createStudioJob, createStudioModel, createStudioUpload, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteFile, deleteMonitor, deleteMyAlertRecipe, deleteSavedFilter, deleteStudioJob, deleteStudioModel, deleteStudioUpload, describeCrmRecordsOnAdd, dismissCrmListMiUpdates, dismissCrmMiUpdates, editCrmLoggedActivity, editCrmNote, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, filterCrmListMembers, findCrmRecordByNmls, generateCrmRecordDescription, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertEmailTokens, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getCrmActiveCall, getCrmActivityReport, getCrmCall, getCrmCallTranscript, getCrmCustomValues, getCrmImport, getCrmImportJob, getCrmList, getCrmListMemberIds, getCrmListMiUpdates, getCrmListShares, getCrmMiUpdates, getCrmOutcomesReport, getCrmOverrides, getCrmProductionEnrichJob, getCrmRecordAccess, getCrmRecordAccessRequest, getCrmRecordConnections, getCrmRecordMemberIds, getCrmRecordProfile, getCrmTemplate, getCrmTemplateShares, getEnrichBulkJob, getFile, getFileContent, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getMonitor, getMonitorCheck, getMonitorEmailTokens, getNetwork, getOffice, getOriginator, getOriginatorAgentPulseSignals, getOriginatorClientRetentionSignals, getOriginatorLoMoveSignal, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, getStudioCatalog, getStudioJob, getStudioModel, getStudioModelOptions, getStudioProgramRun, getStudioPublishedModel, getStudioQueryResult, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, linkFile, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmContactMethods, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListActivity, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listFiles, listLenders, listLoMoveSignals, listLoans, listMonitorRunUpdates, listMonitorTemplates, listMonitorUpdates, listMonitors, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listStudioJobs, listStudioModels, listStudioProgramRuns, listStudioPrograms, listStudioUploads, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, mapSales, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, marketSignals, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCommunityLendingBenchmark, originatorCommunityLendingMap, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorRetentionCaptured, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMonitor, previewMonitorEmail, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, refreshStudioModel, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, runStudioJob, runStudioQuery, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, salesMarketStats, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchFiles, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, shareFile, startStudioProgramRun, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unlinkFile, unshareCrmTemplate, unshareFile, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateFile, updateMe, updateMonitor, updateMyAlertRecipe, updateSavedFilter, updateStudioJob };
@@ -5578,6 +5578,28 @@ var Files = class {
5578
5578
  });
5579
5579
  }
5580
5580
  /**
5581
+ * Replace a file's contents
5582
+ *
5583
+ * The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and SHA-256, PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.
5584
+ */
5585
+ static createFileRevision(options) {
5586
+ return (options.client ?? client).post({
5587
+ security: [{
5588
+ name: "x-api-key",
5589
+ type: "apiKey"
5590
+ }, {
5591
+ scheme: "bearer",
5592
+ type: "http"
5593
+ }],
5594
+ url: "/v1/files/{id}/revisions",
5595
+ ...options,
5596
+ headers: {
5597
+ "Content-Type": "application/json",
5598
+ ...options.headers
5599
+ }
5600
+ });
5601
+ }
5602
+ /**
5581
5603
  * Stop sharing a file
5582
5604
  *
5583
5605
  * The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.
package/openapi.json CHANGED
@@ -27771,6 +27771,10 @@
27771
27771
  "nullable": true,
27772
27772
  "type": "string"
27773
27773
  },
27774
+ "revision": {
27775
+ "description": "Goes up by one each time the contents are replaced.",
27776
+ "type": "integer"
27777
+ },
27774
27778
  "role": {
27775
27779
  "description": "Your role on the file; `null` when you see it as an organization admin.",
27776
27780
  "enum": [
@@ -27802,6 +27806,7 @@
27802
27806
  "mediaType",
27803
27807
  "sizeBytes",
27804
27808
  "sha256",
27809
+ "revision",
27805
27810
  "origin",
27806
27811
  "kind",
27807
27812
  "class",
@@ -27956,6 +27961,33 @@
27956
27961
  },
27957
27962
  "type": "object"
27958
27963
  },
27964
+ "FileRevisionCreate": {
27965
+ "additionalProperties": false,
27966
+ "properties": {
27967
+ "mediaType": {
27968
+ "description": "The new type, if it changed.",
27969
+ "maxLength": 255,
27970
+ "minLength": 1,
27971
+ "type": "string"
27972
+ },
27973
+ "sha256": {
27974
+ "description": "Hex SHA-256 of the new bytes.",
27975
+ "pattern": "^[0-9a-fA-F]{64}$",
27976
+ "type": "string"
27977
+ },
27978
+ "sizeBytes": {
27979
+ "description": "Exact size of the new bytes.",
27980
+ "maximum": 5368709120,
27981
+ "minimum": 1,
27982
+ "type": "integer"
27983
+ }
27984
+ },
27985
+ "required": [
27986
+ "sizeBytes",
27987
+ "sha256"
27988
+ ],
27989
+ "type": "object"
27990
+ },
27959
27991
  "FileShare": {
27960
27992
  "properties": {
27961
27993
  "createdAt": {
@@ -57445,7 +57477,7 @@
57445
57477
  "info": {
57446
57478
  "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.",
57447
57479
  "title": "ModelMatch API",
57448
- "version": "3.194.0"
57480
+ "version": "3.195.0"
57449
57481
  },
57450
57482
  "openapi": "3.1.0",
57451
57483
  "paths": {
@@ -85437,6 +85469,180 @@
85437
85469
  ]
85438
85470
  }
85439
85471
  },
85472
+ "/v1/files/{id}/revisions": {
85473
+ "post": {
85474
+ "description": "The owner or an editor replaces a ready file's bytes and keeps its id, shares and links. Declare the new size and SHA-256, PUT the bytes to `upload` with the headers given, then call complete. Until complete succeeds the file keeps its current contents; a mismatch leaves it unchanged. Free.",
85475
+ "operationId": "createFileRevision",
85476
+ "parameters": [
85477
+ {
85478
+ "description": "The file's id.",
85479
+ "in": "path",
85480
+ "name": "id",
85481
+ "required": true,
85482
+ "schema": {
85483
+ "description": "The file's id.",
85484
+ "example": "file_3f2a…",
85485
+ "pattern": "^file_[0-9a-f]{32}$",
85486
+ "type": "string"
85487
+ }
85488
+ }
85489
+ ],
85490
+ "requestBody": {
85491
+ "content": {
85492
+ "application/json": {
85493
+ "schema": {
85494
+ "$ref": "#/components/schemas/FileRevisionCreate"
85495
+ }
85496
+ }
85497
+ },
85498
+ "required": true
85499
+ },
85500
+ "responses": {
85501
+ "201": {
85502
+ "content": {
85503
+ "application/json": {
85504
+ "schema": {
85505
+ "properties": {
85506
+ "data": {
85507
+ "properties": {
85508
+ "file": {
85509
+ "$ref": "#/components/schemas/File"
85510
+ },
85511
+ "upload": {
85512
+ "properties": {
85513
+ "expiresAt": {
85514
+ "type": "string"
85515
+ },
85516
+ "headers": {
85517
+ "additionalProperties": {
85518
+ "type": "string"
85519
+ },
85520
+ "description": "Send these headers with the PUT, exactly as given.",
85521
+ "type": "object"
85522
+ },
85523
+ "method": {
85524
+ "enum": [
85525
+ "PUT"
85526
+ ],
85527
+ "type": "string"
85528
+ },
85529
+ "url": {
85530
+ "description": "Send the bytes here with HTTP PUT.",
85531
+ "type": "string"
85532
+ }
85533
+ },
85534
+ "required": [
85535
+ "url",
85536
+ "method",
85537
+ "headers",
85538
+ "expiresAt"
85539
+ ],
85540
+ "type": "object"
85541
+ }
85542
+ },
85543
+ "required": [
85544
+ "file",
85545
+ "upload"
85546
+ ],
85547
+ "type": "object"
85548
+ }
85549
+ },
85550
+ "required": [
85551
+ "data"
85552
+ ],
85553
+ "type": "object"
85554
+ }
85555
+ }
85556
+ },
85557
+ "description": "The file and the URL for its new bytes"
85558
+ },
85559
+ "400": {
85560
+ "content": {
85561
+ "application/json": {
85562
+ "schema": {
85563
+ "$ref": "#/components/schemas/FileError"
85564
+ }
85565
+ }
85566
+ },
85567
+ "description": "Invalid request"
85568
+ },
85569
+ "401": {
85570
+ "content": {
85571
+ "application/json": {
85572
+ "schema": {
85573
+ "$ref": "#/components/schemas/FileError"
85574
+ }
85575
+ }
85576
+ },
85577
+ "description": "Not signed in"
85578
+ },
85579
+ "403": {
85580
+ "content": {
85581
+ "application/json": {
85582
+ "schema": {
85583
+ "$ref": "#/components/schemas/FileError"
85584
+ }
85585
+ }
85586
+ },
85587
+ "description": "Not allowed"
85588
+ },
85589
+ "404": {
85590
+ "content": {
85591
+ "application/json": {
85592
+ "schema": {
85593
+ "$ref": "#/components/schemas/FileError"
85594
+ }
85595
+ }
85596
+ },
85597
+ "description": "No such file"
85598
+ },
85599
+ "409": {
85600
+ "content": {
85601
+ "application/json": {
85602
+ "schema": {
85603
+ "$ref": "#/components/schemas/FileError"
85604
+ }
85605
+ }
85606
+ },
85607
+ "description": "Conflicts with the file's state"
85608
+ },
85609
+ "422": {
85610
+ "content": {
85611
+ "application/json": {
85612
+ "schema": {
85613
+ "$ref": "#/components/schemas/FileError"
85614
+ }
85615
+ }
85616
+ },
85617
+ "description": "The upload did not match"
85618
+ },
85619
+ "502": {
85620
+ "content": {
85621
+ "application/json": {
85622
+ "schema": {
85623
+ "$ref": "#/components/schemas/FileError"
85624
+ }
85625
+ }
85626
+ },
85627
+ "description": "Could not check membership"
85628
+ },
85629
+ "503": {
85630
+ "content": {
85631
+ "application/json": {
85632
+ "schema": {
85633
+ "$ref": "#/components/schemas/FileError"
85634
+ }
85635
+ }
85636
+ },
85637
+ "description": "Storage unavailable"
85638
+ }
85639
+ },
85640
+ "summary": "Replace a file's contents",
85641
+ "tags": [
85642
+ "Files"
85643
+ ]
85644
+ }
85645
+ },
85440
85646
  "/v1/files/{id}/shares": {
85441
85647
  "delete": {
85442
85648
  "description": "The owner removes a share. Anyone can remove a share to themselves (`user:<their id>`) to leave a file shared with them. Free.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.98.0",
3
+ "version": "3.99.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [