@model-match/api 3.99.0 → 3.101.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 +13 -0
- package/dist/{index-Bb5VRpvP.d.mts → index-Beyx3IUL.d.mts} +578 -23
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +54 -6
- package/dist/slim/index.mjs +142 -6
- package/dist/{src-lZgFLTz5.mjs → src-BHtp1hnU.mjs} +156 -4
- package/openapi.json +1443 -211
- 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-BHtp1hnU.mjs";
|
|
2
2
|
//#region src/slim/sdk.gen.ts
|
|
3
3
|
/**
|
|
4
4
|
* Search agents with filters
|
|
@@ -4231,6 +4231,38 @@ const createFile = (options) => (options.client ?? client).post({
|
|
|
4231
4231
|
}
|
|
4232
4232
|
});
|
|
4233
4233
|
/**
|
|
4234
|
+
* Who opened which protected files
|
|
4235
|
+
*
|
|
4236
|
+
* Organization admins: the access log across every protected file in the organization, newest first. Filter by file, person, event, result and time; pass `format=csv` for a spreadsheet. Free.
|
|
4237
|
+
*/
|
|
4238
|
+
const getFilesAccessReport = (options) => (options?.client ?? client).get({
|
|
4239
|
+
security: [{
|
|
4240
|
+
name: "x-api-key",
|
|
4241
|
+
type: "apiKey"
|
|
4242
|
+
}, {
|
|
4243
|
+
scheme: "bearer",
|
|
4244
|
+
type: "http"
|
|
4245
|
+
}],
|
|
4246
|
+
url: "/v1/files/access-report",
|
|
4247
|
+
...options
|
|
4248
|
+
});
|
|
4249
|
+
/**
|
|
4250
|
+
* Open a protected file's one-time link
|
|
4251
|
+
*
|
|
4252
|
+
* The link a protected file's content request hands out. It works once, within 5 minutes, needs no sign-in (the link itself is the permission) and redirects to a download that lasts at most a minute. A second use answers 410. Free.
|
|
4253
|
+
*/
|
|
4254
|
+
const redeemFileDownload = (options) => (options.client ?? client).get({
|
|
4255
|
+
security: [{
|
|
4256
|
+
name: "x-api-key",
|
|
4257
|
+
type: "apiKey"
|
|
4258
|
+
}, {
|
|
4259
|
+
scheme: "bearer",
|
|
4260
|
+
type: "http"
|
|
4261
|
+
}],
|
|
4262
|
+
url: "/v1/files/d/{token}",
|
|
4263
|
+
...options
|
|
4264
|
+
});
|
|
4265
|
+
/**
|
|
4234
4266
|
* Search your files by name
|
|
4235
4267
|
*
|
|
4236
4268
|
* Files you can see whose name contains `q`, names that start with it first. Free.
|
|
@@ -4299,6 +4331,42 @@ const updateFile = (options) => (options.client ?? client).patch({
|
|
|
4299
4331
|
}
|
|
4300
4332
|
});
|
|
4301
4333
|
/**
|
|
4334
|
+
* A protected file's access log
|
|
4335
|
+
*
|
|
4336
|
+
* Every access to a protected file, newest first: who opened, downloaded, shared or changed it, from which app, and every refused attempt. The owner and organization admins only. Free.
|
|
4337
|
+
*/
|
|
4338
|
+
const getFileAccessLog = (options) => (options.client ?? client).get({
|
|
4339
|
+
security: [{
|
|
4340
|
+
name: "x-api-key",
|
|
4341
|
+
type: "apiKey"
|
|
4342
|
+
}, {
|
|
4343
|
+
scheme: "bearer",
|
|
4344
|
+
type: "http"
|
|
4345
|
+
}],
|
|
4346
|
+
url: "/v1/files/{id}/access-log",
|
|
4347
|
+
...options
|
|
4348
|
+
});
|
|
4349
|
+
/**
|
|
4350
|
+
* Let an agent open a protected file in one conversation
|
|
4351
|
+
*
|
|
4352
|
+
* You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.
|
|
4353
|
+
*/
|
|
4354
|
+
const approveFileForAgent = (options) => (options.client ?? client).post({
|
|
4355
|
+
security: [{
|
|
4356
|
+
name: "x-api-key",
|
|
4357
|
+
type: "apiKey"
|
|
4358
|
+
}, {
|
|
4359
|
+
scheme: "bearer",
|
|
4360
|
+
type: "http"
|
|
4361
|
+
}],
|
|
4362
|
+
url: "/v1/files/{id}/agent-approvals",
|
|
4363
|
+
...options,
|
|
4364
|
+
headers: {
|
|
4365
|
+
"Content-Type": "application/json",
|
|
4366
|
+
...options.headers
|
|
4367
|
+
}
|
|
4368
|
+
});
|
|
4369
|
+
/**
|
|
4302
4370
|
* Finish an upload
|
|
4303
4371
|
*
|
|
4304
4372
|
* Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.
|
|
@@ -7225,9 +7293,77 @@ const runStudioQuery = (options) => (options.client ?? client).post({
|
|
|
7225
7293
|
}
|
|
7226
7294
|
});
|
|
7227
7295
|
/**
|
|
7296
|
+
* Your organization's tables made from files
|
|
7297
|
+
*
|
|
7298
|
+
* Every table your organization made from a file: its name, the table it is queried as, its columns and row count, when it was made and by whom, its status, and the file it was loaded from (`sourceFileId`; `sourceFileDeleted` is `true` once that file has been deleted — the table keeps working). Only your organization's tables are listed. Free.
|
|
7299
|
+
*/
|
|
7300
|
+
const listStudioTables = (options) => (options?.client ?? client).get({
|
|
7301
|
+
security: [{
|
|
7302
|
+
name: "x-api-key",
|
|
7303
|
+
type: "apiKey"
|
|
7304
|
+
}, {
|
|
7305
|
+
scheme: "bearer",
|
|
7306
|
+
type: "http"
|
|
7307
|
+
}],
|
|
7308
|
+
url: "/v1/studio/tables",
|
|
7309
|
+
...options
|
|
7310
|
+
});
|
|
7311
|
+
/**
|
|
7312
|
+
* Load a file from your files library into a table
|
|
7313
|
+
*
|
|
7314
|
+
* Turn a file of your own data that is already in your files library — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. Name the file (`fromFileId`: one you can open, whose status is `ready`) and the table (`name`; the table is `upload_<name>`). The file is read as it is: the table shows its source file (`sourceFileId`), and the file shows the table it feeds (it is linked to `studio_table:upload_<name>`). Deleting the file later does not delete the table; deleting the table does not delete the file. A small file answers `200` with `status: ready`, and the answer says what the table holds: `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints`. A large one answers `202` with `status: ingesting`: read it with `GET /v1/studio/tables/{name}` in a few seconds. A file that cannot be used is refused with the reason. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 tables and 1 GB in total. Free.
|
|
7315
|
+
*/
|
|
7316
|
+
const createStudioTable = (options) => (options.client ?? client).post({
|
|
7317
|
+
security: [{
|
|
7318
|
+
name: "x-api-key",
|
|
7319
|
+
type: "apiKey"
|
|
7320
|
+
}, {
|
|
7321
|
+
scheme: "bearer",
|
|
7322
|
+
type: "http"
|
|
7323
|
+
}],
|
|
7324
|
+
url: "/v1/studio/tables",
|
|
7325
|
+
...options,
|
|
7326
|
+
headers: {
|
|
7327
|
+
"Content-Type": "application/json",
|
|
7328
|
+
...options.headers
|
|
7329
|
+
}
|
|
7330
|
+
});
|
|
7331
|
+
/**
|
|
7332
|
+
* Delete a table, permanently
|
|
7333
|
+
*
|
|
7334
|
+
* Delete a table (`name`, without the `upload_` prefix) and its rows. It leaves the catalog at once, and questions, jobs and models that read it stop working. Its source file stays in your files library, no longer linked to the table. This cannot be undone — to get the table back, load the file again. Free.
|
|
7335
|
+
*/
|
|
7336
|
+
const deleteStudioTable = (options) => (options.client ?? client).delete({
|
|
7337
|
+
security: [{
|
|
7338
|
+
name: "x-api-key",
|
|
7339
|
+
type: "apiKey"
|
|
7340
|
+
}, {
|
|
7341
|
+
scheme: "bearer",
|
|
7342
|
+
type: "http"
|
|
7343
|
+
}],
|
|
7344
|
+
url: "/v1/studio/tables/{name}",
|
|
7345
|
+
...options
|
|
7346
|
+
});
|
|
7347
|
+
/**
|
|
7348
|
+
* One table made from a file
|
|
7349
|
+
*
|
|
7350
|
+
* One table (`name`, without the `upload_` prefix): its status — read it again while it is `ingesting` — columns, row count, warnings, join hints, and its source file (`sourceFileId`, `sourceFileDeleted`). Free.
|
|
7351
|
+
*/
|
|
7352
|
+
const getStudioTable = (options) => (options.client ?? client).get({
|
|
7353
|
+
security: [{
|
|
7354
|
+
name: "x-api-key",
|
|
7355
|
+
type: "apiKey"
|
|
7356
|
+
}, {
|
|
7357
|
+
scheme: "bearer",
|
|
7358
|
+
type: "http"
|
|
7359
|
+
}],
|
|
7360
|
+
url: "/v1/studio/tables/{name}",
|
|
7361
|
+
...options
|
|
7362
|
+
});
|
|
7363
|
+
/**
|
|
7228
7364
|
* Your organization's uploads
|
|
7229
7365
|
*
|
|
7230
|
-
* Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free.
|
|
7366
|
+
* Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
7231
7367
|
*/
|
|
7232
7368
|
const listStudioUploads = (options) => (options?.client ?? client).get({
|
|
7233
7369
|
security: [{
|
|
@@ -7243,7 +7379,7 @@ const listStudioUploads = (options) => (options?.client ?? client).get({
|
|
|
7243
7379
|
/**
|
|
7244
7380
|
* Start an upload: get a URL to send a file to
|
|
7245
7381
|
*
|
|
7246
|
-
* Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free.
|
|
7382
|
+
* Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
7247
7383
|
*/
|
|
7248
7384
|
const createStudioUpload = (options) => (options.client ?? client).post({
|
|
7249
7385
|
security: [{
|
|
@@ -7263,7 +7399,7 @@ const createStudioUpload = (options) => (options.client ?? client).post({
|
|
|
7263
7399
|
/**
|
|
7264
7400
|
* Delete an upload and its table, permanently
|
|
7265
7401
|
*
|
|
7266
|
-
* Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free.
|
|
7402
|
+
* Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
7267
7403
|
*/
|
|
7268
7404
|
const deleteStudioUpload = (options) => (options.client ?? client).delete({
|
|
7269
7405
|
security: [{
|
|
@@ -7279,7 +7415,7 @@ const deleteStudioUpload = (options) => (options.client ?? client).delete({
|
|
|
7279
7415
|
/**
|
|
7280
7416
|
* Finish an upload: turn the file into a table
|
|
7281
7417
|
*
|
|
7282
|
-
* Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free.
|
|
7418
|
+
* Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
7283
7419
|
*/
|
|
7284
7420
|
const completeStudioUpload = (options) => (options.client ?? client).post({
|
|
7285
7421
|
security: [{
|
|
@@ -7293,4 +7429,4 @@ const completeStudioUpload = (options) => (options.client ?? client).post({
|
|
|
7293
7429
|
...options
|
|
7294
7430
|
});
|
|
7295
7431
|
//#endregion
|
|
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 };
|
|
7432
|
+
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, 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, 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, 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, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMonitor, previewMonitorEmail, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, redeemFileDownload, 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 };
|
|
@@ -5426,6 +5426,42 @@ var Files = class {
|
|
|
5426
5426
|
});
|
|
5427
5427
|
}
|
|
5428
5428
|
/**
|
|
5429
|
+
* Who opened which protected files
|
|
5430
|
+
*
|
|
5431
|
+
* Organization admins: the access log across every protected file in the organization, newest first. Filter by file, person, event, result and time; pass `format=csv` for a spreadsheet. Free.
|
|
5432
|
+
*/
|
|
5433
|
+
static getFilesAccessReport(options) {
|
|
5434
|
+
return (options?.client ?? client).get({
|
|
5435
|
+
security: [{
|
|
5436
|
+
name: "x-api-key",
|
|
5437
|
+
type: "apiKey"
|
|
5438
|
+
}, {
|
|
5439
|
+
scheme: "bearer",
|
|
5440
|
+
type: "http"
|
|
5441
|
+
}],
|
|
5442
|
+
url: "/v1/files/access-report",
|
|
5443
|
+
...options
|
|
5444
|
+
});
|
|
5445
|
+
}
|
|
5446
|
+
/**
|
|
5447
|
+
* Open a protected file's one-time link
|
|
5448
|
+
*
|
|
5449
|
+
* The link a protected file's content request hands out. It works once, within 5 minutes, needs no sign-in (the link itself is the permission) and redirects to a download that lasts at most a minute. A second use answers 410. Free.
|
|
5450
|
+
*/
|
|
5451
|
+
static redeemFileDownload(options) {
|
|
5452
|
+
return (options.client ?? client).get({
|
|
5453
|
+
security: [{
|
|
5454
|
+
name: "x-api-key",
|
|
5455
|
+
type: "apiKey"
|
|
5456
|
+
}, {
|
|
5457
|
+
scheme: "bearer",
|
|
5458
|
+
type: "http"
|
|
5459
|
+
}],
|
|
5460
|
+
url: "/v1/files/d/{token}",
|
|
5461
|
+
...options
|
|
5462
|
+
});
|
|
5463
|
+
}
|
|
5464
|
+
/**
|
|
5429
5465
|
* Search your files by name
|
|
5430
5466
|
*
|
|
5431
5467
|
* Files you can see whose name contains `q`, names that start with it first. Free.
|
|
@@ -5502,6 +5538,46 @@ var Files = class {
|
|
|
5502
5538
|
});
|
|
5503
5539
|
}
|
|
5504
5540
|
/**
|
|
5541
|
+
* A protected file's access log
|
|
5542
|
+
*
|
|
5543
|
+
* Every access to a protected file, newest first: who opened, downloaded, shared or changed it, from which app, and every refused attempt. The owner and organization admins only. Free.
|
|
5544
|
+
*/
|
|
5545
|
+
static getFileAccessLog(options) {
|
|
5546
|
+
return (options.client ?? client).get({
|
|
5547
|
+
security: [{
|
|
5548
|
+
name: "x-api-key",
|
|
5549
|
+
type: "apiKey"
|
|
5550
|
+
}, {
|
|
5551
|
+
scheme: "bearer",
|
|
5552
|
+
type: "http"
|
|
5553
|
+
}],
|
|
5554
|
+
url: "/v1/files/{id}/access-log",
|
|
5555
|
+
...options
|
|
5556
|
+
});
|
|
5557
|
+
}
|
|
5558
|
+
/**
|
|
5559
|
+
* Let an agent open a protected file in one conversation
|
|
5560
|
+
*
|
|
5561
|
+
* You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.
|
|
5562
|
+
*/
|
|
5563
|
+
static approveFileForAgent(options) {
|
|
5564
|
+
return (options.client ?? client).post({
|
|
5565
|
+
security: [{
|
|
5566
|
+
name: "x-api-key",
|
|
5567
|
+
type: "apiKey"
|
|
5568
|
+
}, {
|
|
5569
|
+
scheme: "bearer",
|
|
5570
|
+
type: "http"
|
|
5571
|
+
}],
|
|
5572
|
+
url: "/v1/files/{id}/agent-approvals",
|
|
5573
|
+
...options,
|
|
5574
|
+
headers: {
|
|
5575
|
+
"Content-Type": "application/json",
|
|
5576
|
+
...options.headers
|
|
5577
|
+
}
|
|
5578
|
+
});
|
|
5579
|
+
}
|
|
5580
|
+
/**
|
|
5505
5581
|
* Finish an upload
|
|
5506
5582
|
*
|
|
5507
5583
|
* Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked; a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.
|
|
@@ -8716,9 +8792,85 @@ var Studio = class {
|
|
|
8716
8792
|
});
|
|
8717
8793
|
}
|
|
8718
8794
|
/**
|
|
8795
|
+
* Your organization's tables made from files
|
|
8796
|
+
*
|
|
8797
|
+
* Every table your organization made from a file: its name, the table it is queried as, its columns and row count, when it was made and by whom, its status, and the file it was loaded from (`sourceFileId`; `sourceFileDeleted` is `true` once that file has been deleted — the table keeps working). Only your organization's tables are listed. Free.
|
|
8798
|
+
*/
|
|
8799
|
+
static listStudioTables(options) {
|
|
8800
|
+
return (options?.client ?? client).get({
|
|
8801
|
+
security: [{
|
|
8802
|
+
name: "x-api-key",
|
|
8803
|
+
type: "apiKey"
|
|
8804
|
+
}, {
|
|
8805
|
+
scheme: "bearer",
|
|
8806
|
+
type: "http"
|
|
8807
|
+
}],
|
|
8808
|
+
url: "/v1/studio/tables",
|
|
8809
|
+
...options
|
|
8810
|
+
});
|
|
8811
|
+
}
|
|
8812
|
+
/**
|
|
8813
|
+
* Load a file from your files library into a table
|
|
8814
|
+
*
|
|
8815
|
+
* Turn a file of your own data that is already in your files library — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. Name the file (`fromFileId`: one you can open, whose status is `ready`) and the table (`name`; the table is `upload_<name>`). The file is read as it is: the table shows its source file (`sourceFileId`), and the file shows the table it feeds (it is linked to `studio_table:upload_<name>`). Deleting the file later does not delete the table; deleting the table does not delete the file. A small file answers `200` with `status: ready`, and the answer says what the table holds: `columns`, `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints`. A large one answers `202` with `status: ingesting`: read it with `GET /v1/studio/tables/{name}` in a few seconds. A file that cannot be used is refused with the reason. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 tables and 1 GB in total. Free.
|
|
8816
|
+
*/
|
|
8817
|
+
static createStudioTable(options) {
|
|
8818
|
+
return (options.client ?? client).post({
|
|
8819
|
+
security: [{
|
|
8820
|
+
name: "x-api-key",
|
|
8821
|
+
type: "apiKey"
|
|
8822
|
+
}, {
|
|
8823
|
+
scheme: "bearer",
|
|
8824
|
+
type: "http"
|
|
8825
|
+
}],
|
|
8826
|
+
url: "/v1/studio/tables",
|
|
8827
|
+
...options,
|
|
8828
|
+
headers: {
|
|
8829
|
+
"Content-Type": "application/json",
|
|
8830
|
+
...options.headers
|
|
8831
|
+
}
|
|
8832
|
+
});
|
|
8833
|
+
}
|
|
8834
|
+
/**
|
|
8835
|
+
* Delete a table, permanently
|
|
8836
|
+
*
|
|
8837
|
+
* Delete a table (`name`, without the `upload_` prefix) and its rows. It leaves the catalog at once, and questions, jobs and models that read it stop working. Its source file stays in your files library, no longer linked to the table. This cannot be undone — to get the table back, load the file again. Free.
|
|
8838
|
+
*/
|
|
8839
|
+
static deleteStudioTable(options) {
|
|
8840
|
+
return (options.client ?? client).delete({
|
|
8841
|
+
security: [{
|
|
8842
|
+
name: "x-api-key",
|
|
8843
|
+
type: "apiKey"
|
|
8844
|
+
}, {
|
|
8845
|
+
scheme: "bearer",
|
|
8846
|
+
type: "http"
|
|
8847
|
+
}],
|
|
8848
|
+
url: "/v1/studio/tables/{name}",
|
|
8849
|
+
...options
|
|
8850
|
+
});
|
|
8851
|
+
}
|
|
8852
|
+
/**
|
|
8853
|
+
* One table made from a file
|
|
8854
|
+
*
|
|
8855
|
+
* One table (`name`, without the `upload_` prefix): its status — read it again while it is `ingesting` — columns, row count, warnings, join hints, and its source file (`sourceFileId`, `sourceFileDeleted`). Free.
|
|
8856
|
+
*/
|
|
8857
|
+
static getStudioTable(options) {
|
|
8858
|
+
return (options.client ?? client).get({
|
|
8859
|
+
security: [{
|
|
8860
|
+
name: "x-api-key",
|
|
8861
|
+
type: "apiKey"
|
|
8862
|
+
}, {
|
|
8863
|
+
scheme: "bearer",
|
|
8864
|
+
type: "http"
|
|
8865
|
+
}],
|
|
8866
|
+
url: "/v1/studio/tables/{name}",
|
|
8867
|
+
...options
|
|
8868
|
+
});
|
|
8869
|
+
}
|
|
8870
|
+
/**
|
|
8719
8871
|
* Your organization's uploads
|
|
8720
8872
|
*
|
|
8721
|
-
* Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free.
|
|
8873
|
+
* Every file your organization has uploaded: its name, the table it is queried as, its columns and row count, when it was uploaded and by whom, and its status. Only your organization's uploads are listed; no other organization can see or query them. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
8722
8874
|
*/
|
|
8723
8875
|
static listStudioUploads(options) {
|
|
8724
8876
|
return (options?.client ?? client).get({
|
|
@@ -8736,7 +8888,7 @@ var Studio = class {
|
|
|
8736
8888
|
/**
|
|
8737
8889
|
* Start an upload: get a URL to send a file to
|
|
8738
8890
|
*
|
|
8739
|
-
* Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free.
|
|
8891
|
+
* Turn a file of your own data — leads, closed and lost loans, a client list — into a table only your organization can query and join to the market tables. This is step one of three: it reserves the name and answers with `uploadUrl`. Step two: send the file to `uploadUrl` with HTTP PUT (the file's bytes as the body; it must be exactly `sizeBytes` long). Step three: call complete. Files can be CSV, TSV, Excel (.xlsx) or Parquet, up to 100 MB, 2,000,000 rows and 200 columns; an organization can keep 25 uploads and 1 GB in total. The table will be `upload_<name>`. Asking again for a name whose file never arrived replaces the earlier request. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
8740
8892
|
*/
|
|
8741
8893
|
static createStudioUpload(options) {
|
|
8742
8894
|
return (options.client ?? client).post({
|
|
@@ -8758,7 +8910,7 @@ var Studio = class {
|
|
|
8758
8910
|
/**
|
|
8759
8911
|
* Delete an upload and its table, permanently
|
|
8760
8912
|
*
|
|
8761
|
-
* Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free.
|
|
8913
|
+
* Delete an upload: its table, the rows that were read from the file, and its record. It leaves the catalog at once, and questions and jobs that read the table stop working. This cannot be undone — to get the table back, upload the file again. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
8762
8914
|
*/
|
|
8763
8915
|
static deleteStudioUpload(options) {
|
|
8764
8916
|
return (options.client ?? client).delete({
|
|
@@ -8776,7 +8928,7 @@ var Studio = class {
|
|
|
8776
8928
|
/**
|
|
8777
8929
|
* Finish an upload: turn the file into a table
|
|
8778
8930
|
*
|
|
8779
|
-
* Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free.
|
|
8931
|
+
* Call this after the file has been sent to the upload URL. The file is read into the table `upload_<name>`, and the answer says what it holds: `columns` (names made safe for SQL, with a type each), `rowCount`, `warnings` (anything that was changed, skipped or kept as text — read them to the user) and `joinHints` (which columns line up with the market tables, with a join condition to copy). A small file answers `200` with `status: ready`. A large one answers `202` with `status: ingesting`: call complete again in a few seconds to collect the result. Calling it again on a ready upload is safe and answers with the same table. A file that cannot be used answers `422` and says why; create the upload again to send a corrected file. The original file is deleted once it has been read. Free. Deprecated: use `/v1/studio/tables` — add the file to your files library, then load it into a table. This route keeps working until 2026-12-23, and every answer carries `Deprecation`, `Sunset` and `Link: </v1/studio/tables>; rel="successor-version"` headers.
|
|
8780
8932
|
*/
|
|
8781
8933
|
static completeStudioUpload(options) {
|
|
8782
8934
|
return (options.client ?? client).post({
|