@model-match/api 3.47.0 → 3.49.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 { S as client, n as createClient } from "../src-D2hEr2wd.mjs";
1
+ import { S as client, n as createClient } from "../src-CvwNdqc1.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -1917,6 +1917,22 @@ const companyMoverProduction = (options) => (options.client ?? client).get({
1917
1917
  ...options
1918
1918
  });
1919
1919
  /**
1920
+ * Company borrower retention (weekly snapshot)
1921
+ *
1922
+ * How well a company keeps its borrowers when they refinance: kept (refinanced again by ANY LO at the company) vs lost to other companies, with the capturing companies and LOs, timing, the trend, a verdict, and the company's leakiest LOs. Precomputed weekly — `computedAt` says when. 404 means not computed (no loans since 2017, or not reached yet), never zero retention.
1923
+ */
1924
+ const companyRetention = (options) => (options.client ?? client).get({
1925
+ security: [{
1926
+ name: "x-api-key",
1927
+ type: "apiKey"
1928
+ }, {
1929
+ scheme: "bearer",
1930
+ type: "http"
1931
+ }],
1932
+ url: "/v1/companies/{nmlsId}/retention",
1933
+ ...options
1934
+ });
1935
+ /**
1920
1936
  * Loan originators sponsored by this company
1921
1937
  */
1922
1938
  const companySponsoredIndividuals = (options) => (options.client ?? client).post({
@@ -5905,7 +5921,7 @@ const saleRelated = (options) => (options.client ?? client).get({
5905
5921
  /**
5906
5922
  * List your saved filters
5907
5923
  *
5908
- * The caller's saved filters (and saved CRM views) in the active organization, oldest first, optionally narrowed by target and kind.
5924
+ * The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.
5909
5925
  */
5910
5926
  const listSavedFilters = (options) => (options?.client ?? client).get({
5911
5927
  security: [{
@@ -5921,7 +5937,7 @@ const listSavedFilters = (options) => (options?.client ?? client).get({
5921
5937
  /**
5922
5938
  * Save a filter
5923
5939
  *
5924
- * Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. Limit: 25 per target.
5940
+ * Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. New filters are private. Limit: 25 you own per target (filters shared with you do not count).
5925
5941
  */
5926
5942
  const createSavedFilter = (options) => (options?.client ?? client).post({
5927
5943
  security: [{
@@ -5940,6 +5956,8 @@ const createSavedFilter = (options) => (options?.client ?? client).post({
5940
5956
  });
5941
5957
  /**
5942
5958
  * Delete a saved filter
5959
+ *
5960
+ * Owner or workspace admin only; its shares go with it. A filter shared with you cannot be deleted by you.
5943
5961
  */
5944
5962
  const deleteSavedFilter = (options) => (options.client ?? client).delete({
5945
5963
  security: [{
@@ -5955,7 +5973,7 @@ const deleteSavedFilter = (options) => (options.client ?? client).delete({
5955
5973
  /**
5956
5974
  * Get a saved filter (with the operation to run it)
5957
5975
  *
5958
- * Returns the saved `query` and the `operationId` to run it with. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
5976
+ * Returns the saved `query` and the `operationId` to run it with — your own filter or one shared with you. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
5959
5977
  */
5960
5978
  const getSavedFilter = (options) => (options.client ?? client).get({
5961
5979
  security: [{
@@ -5971,7 +5989,7 @@ const getSavedFilter = (options) => (options.client ?? client).get({
5971
5989
  /**
5972
5990
  * Update a saved filter
5973
5991
  *
5974
- * Rename, re-icon, or replace the query / UI state. The target is fixed. A new `query` is validated like on create.
5992
+ * Rename, re-icon, or replace the query / UI state (owner, `editor`, or workspace admin). The target is fixed. A new `query` is validated like on create. `visibility` / `orgWidePermission` change who can see it (owner or workspace admin only).
5975
5993
  */
5976
5994
  const updateSavedFilter = (options) => (options.client ?? client).patch({
5977
5995
  security: [{
@@ -5989,6 +6007,78 @@ const updateSavedFilter = (options) => (options.client ?? client).patch({
5989
6007
  }
5990
6008
  });
5991
6009
  /**
6010
+ * List the workspace members a saved filter can be shared with
6011
+ *
6012
+ * Owner or workspace admin only. Every member of the workspace, the owner and existing shares included — subtract them for the picker.
6013
+ */
6014
+ const listSavedFilterShareableMembers = (options) => (options.client ?? client).get({
6015
+ security: [{
6016
+ name: "x-api-key",
6017
+ type: "apiKey"
6018
+ }, {
6019
+ scheme: "bearer",
6020
+ type: "http"
6021
+ }],
6022
+ url: "/v1/saved-filters/{id}/shareable-members",
6023
+ ...options
6024
+ });
6025
+ /**
6026
+ * Stop sharing a saved filter with a member
6027
+ *
6028
+ * Owner or workspace admin only. Removes that member's share; a no-op (`revoked: false`) when there was none.
6029
+ */
6030
+ const revokeSavedFilterAccess = (options) => (options.client ?? client).delete({
6031
+ security: [{
6032
+ name: "x-api-key",
6033
+ type: "apiKey"
6034
+ }, {
6035
+ scheme: "bearer",
6036
+ type: "http"
6037
+ }],
6038
+ url: "/v1/saved-filters/{id}/shares",
6039
+ ...options,
6040
+ headers: {
6041
+ "Content-Type": "application/json",
6042
+ ...options.headers
6043
+ }
6044
+ });
6045
+ /**
6046
+ * Get who a saved filter is shared with
6047
+ *
6048
+ * Visibility, owner, the workspace-wide role and every per-user share. Readable by the owner, an `editor`, or a workspace admin.
6049
+ */
6050
+ const getSavedFilterShares = (options) => (options.client ?? client).get({
6051
+ security: [{
6052
+ name: "x-api-key",
6053
+ type: "apiKey"
6054
+ }, {
6055
+ scheme: "bearer",
6056
+ type: "http"
6057
+ }],
6058
+ url: "/v1/saved-filters/{id}/shares",
6059
+ ...options
6060
+ });
6061
+ /**
6062
+ * Share a saved filter with a workspace member
6063
+ *
6064
+ * Owner or workspace admin only. Re-sharing updates the member's role. Sharing a private filter makes it `shared`. Sharing with the owner is a no-op (`granted: false`).
6065
+ */
6066
+ const grantSavedFilterAccess = (options) => (options.client ?? client).post({
6067
+ security: [{
6068
+ name: "x-api-key",
6069
+ type: "apiKey"
6070
+ }, {
6071
+ scheme: "bearer",
6072
+ type: "http"
6073
+ }],
6074
+ url: "/v1/saved-filters/{id}/shares",
6075
+ ...options,
6076
+ headers: {
6077
+ "Content-Type": "application/json",
6078
+ ...options.headers
6079
+ }
6080
+ });
6081
+ /**
5992
6082
  * Mint a scoped search token
5993
6083
  *
5994
6084
  * Returns a short-lived scoped search token plus the host to query, so a trusted client can search the entity indexes directly with per-query controls (e.g. attributesToSearchOn for name-only matching).
@@ -6005,4 +6095,4 @@ const getSearchToken = (options) => (options?.client ?? client).get({
6005
6095
  ...options
6006
6096
  });
6007
6097
  //#endregion
6008
- 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, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, 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, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoans, listMarket, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
6098
+ 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, branchCounties, branchLenders, branchLoans, branchOriginators, branchRoster, branchStates, branchTitleCompanies, cancelAgentsBulkDeliveryJob, cancelBranchesBulkDeliveryJob, cancelCompaniesBulkDeliveryJob, cancelEnrichBulkJob, cancelLoansBulkDeliveryJob, cancelOriginatorsBulkDeliveryJob, cancelPropertiesBulkDeliveryJob, checkCrmImport, companyAgents, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyBrokers, companyCities, companyCounties, companyDepartureStatus, companyEarlyExits, companyEmployeeStats, companyEmployment, companyHeadcount, companyLenders, companyMarkets, companyMoverProduction, companyOffices, companyOriginators, companyRelated, companyRetention, companySponsoredIndividuals, companySponsorshipMovement, companyStates, companyTalentFlow, companyTitleCompanies, companyZipCodes, countAgents, countBranches, countCompanies, countLenders, countLoans, countOffices, countOriginators, countProperties, countSales, createAgentContactSubmission, createAlertSubscription, createClient, createCrmList, createCrmListField, createCrmManualRecord, createCrmMeeting, createCrmObjectField, createCrmRecord, createCrmTask, createCrmTemplate, createMyAlertRecipe, createOriginatorContactSubmission, createSavedFilter, crmLenderChannels, crmLoLoanMix, crmLoMomentum, crmLoSponsorLocation, crmSimilarOriginators, declineCrmMiUpdate, deleteAlertSubscription, deleteCrmCallerId, deleteCrmList, deleteCrmListField, deleteCrmMeeting, deleteCrmNote, deleteCrmObjectField, deleteCrmRecord, deleteCrmRecords, deleteCrmTask, deleteCrmTemplate, deleteMyAlertRecipe, deleteSavedFilter, 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, getHubspotPushStatus, getLender, getLoan, getLoansBulkDeliveryJob, getMe, getMeCredits, getMePlan, getOffice, getOriginator, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSavedFilter, getSavedFilterShares, getSearchToken, grantCrmListAccess, grantCrmRecordAccess, grantCrmRecordAccessRequest, grantSavedFilterAccess, hangupCrmCall, importCrmRecords, instantSearch, lenderCities, lenderCompanies, lenderCounties, lenderOriginators, lenderStates, linkCrmRecord, listAgentOfficeGroups, listAgents, listAlertDigests, listAlertLog, listAlertRecipes, listAlertSubscriptions, listBranches, listCompanies, listCrmActivity, listCrmCallerIds, listCrmCustomFields, listCrmImportRows, listCrmImports, listCrmListAssignees, listCrmListFields, listCrmListMemberships, listCrmListShareableMembers, listCrmLists, listCrmMeetings, listCrmMembers, listCrmOrgMembers, listCrmRecordShareableMembers, listCrmRecordShares, listCrmReferencedActivity, listCrmTasks, listCrmTemplates, listCrmWorkspaceMeetings, listCrmWorkspaceTasks, listEnrichments, listLenders, listLoans, listMarket, listMyAlertRecipes, listOffices, listOriginators, listProperties, listSales, listSavedFilterShareableMembers, listSavedFilters, listWatchedAgents, listWatchedAreas, listWatchedDocuments, loanRelated, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, logCrmActivity, lookupCompanies, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, marketCommunityLending, marketMovementActivity, marketMovementByState, marketMovementCohortPayoff, marketMovementMostGained, marketMovementMostLost, marketMovementMovers, marketMovementRankings, marketMovementStats, marketMovementTransitions, officeAgents, officeBuilders, officeLenders, officeLoanTypes, officeOriginators, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorBrokers, originatorBuilders, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorMarkets, originatorOffices, originatorProperties, originatorRelated, originatorRetention, originatorStatesBreakdown, originatorTitleCompanies, originatorZipCodes, placeCrmCall, previewAlertEmailTemplate, previewAlertRecipe, previewAlerts, previewMyAlertRecipe, propertiesAnalyticsChart, propertiesAnalyticsSummary, propertyRelated, pushToHubspot, reconcileCrmMeetings, refreshCrmRecordMirror, removeCrmContactMethod, removeCrmListMember, removeWatchedAgent, removeWatchedArea, removeWatchedDocument, requestCrmAccess, requestCrmRecordAccess, resolveProperties, retrieveLocation, revokeCrmListAccess, revokeCrmRecordAccess, revokeSavedFilterAccess, saleRelated, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, searchCrmEmailRecipients, searchCrmMatchCandidates, searchCrmMentionRecords, searchCrmRecords, searchProperties, sendCrmEmail, setCrmCallAnalysis, setCrmCustomValue, setCrmOverride, setCrmRecordOwner, setDefaultCrmCallerId, shareCrmTemplate, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, subscribeAlertRecipe, suggestLocations, suggestOfficeNames, transcribeCrmCall, transferCrmListOwnership, undoCrmImport, unshareCrmTemplate, unsubscribeAlertRecipe, updateAlertConditions, updateCrmContactMethod, updateCrmList, updateCrmListField, updateCrmMeeting, updateCrmObjectField, updateCrmTask, updateCrmTemplate, updateMe, updateMyAlertRecipe, updateSavedFilter };
@@ -2828,6 +2828,24 @@ var Companies = class {
2828
2828
  });
2829
2829
  }
2830
2830
  /**
2831
+ * Company borrower retention (weekly snapshot)
2832
+ *
2833
+ * How well a company keeps its borrowers when they refinance: kept (refinanced again by ANY LO at the company) vs lost to other companies, with the capturing companies and LOs, timing, the trend, a verdict, and the company's leakiest LOs. Precomputed weekly — `computedAt` says when. 404 means not computed (no loans since 2017, or not reached yet), never zero retention.
2834
+ */
2835
+ static retention(options) {
2836
+ return (options.client ?? client).get({
2837
+ security: [{
2838
+ name: "x-api-key",
2839
+ type: "apiKey"
2840
+ }, {
2841
+ scheme: "bearer",
2842
+ type: "http"
2843
+ }],
2844
+ url: "/v1/companies/{nmlsId}/retention",
2845
+ ...options
2846
+ });
2847
+ }
2848
+ /**
2831
2849
  * Loan originators sponsored by this company
2832
2850
  */
2833
2851
  static sponsoredIndividuals(options) {
@@ -7250,7 +7268,7 @@ var SavedFilters = class {
7250
7268
  /**
7251
7269
  * List your saved filters
7252
7270
  *
7253
- * The caller's saved filters (and saved CRM views) in the active organization, oldest first, optionally narrowed by target and kind.
7271
+ * The caller's saved filters (and saved CRM views) in the active organization plus the ones shared with them, oldest first, optionally narrowed by target, kind and ownership. `isOwner` / `permission` / `canEdit` on each row say whose it is and what the caller may do.
7254
7272
  */
7255
7273
  static listSavedFilters(options) {
7256
7274
  return (options?.client ?? client).get({
@@ -7268,7 +7286,7 @@ var SavedFilters = class {
7268
7286
  /**
7269
7287
  * Save a filter
7270
7288
  *
7271
- * Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. Limit: 25 per target.
7289
+ * Save a named filter for a list target. For a market target, `query` is the target operation's request body without `pagination` (e.g. the body you would send to listOriginators) and is validated against it. New filters are private. Limit: 25 you own per target (filters shared with you do not count).
7272
7290
  */
7273
7291
  static createSavedFilter(options) {
7274
7292
  return (options?.client ?? client).post({
@@ -7289,6 +7307,8 @@ var SavedFilters = class {
7289
7307
  }
7290
7308
  /**
7291
7309
  * Delete a saved filter
7310
+ *
7311
+ * Owner or workspace admin only; its shares go with it. A filter shared with you cannot be deleted by you.
7292
7312
  */
7293
7313
  static deleteSavedFilter(options) {
7294
7314
  return (options.client ?? client).delete({
@@ -7306,7 +7326,7 @@ var SavedFilters = class {
7306
7326
  /**
7307
7327
  * Get a saved filter (with the operation to run it)
7308
7328
  *
7309
- * Returns the saved `query` and the `operationId` to run it with. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
7329
+ * Returns the saved `query` and the `operationId` to run it with — your own filter or one shared with you. Check `fidelity` (`partial` → `unmapped` lists what the query omits; `ui_only` → nothing to run) and `stale` (the query no longer validates) before running.
7310
7330
  */
7311
7331
  static getSavedFilter(options) {
7312
7332
  return (options.client ?? client).get({
@@ -7324,7 +7344,7 @@ var SavedFilters = class {
7324
7344
  /**
7325
7345
  * Update a saved filter
7326
7346
  *
7327
- * Rename, re-icon, or replace the query / UI state. The target is fixed. A new `query` is validated like on create.
7347
+ * Rename, re-icon, or replace the query / UI state (owner, `editor`, or workspace admin). The target is fixed. A new `query` is validated like on create. `visibility` / `orgWidePermission` change who can see it (owner or workspace admin only).
7328
7348
  */
7329
7349
  static updateSavedFilter(options) {
7330
7350
  return (options.client ?? client).patch({
@@ -7343,6 +7363,86 @@ var SavedFilters = class {
7343
7363
  }
7344
7364
  });
7345
7365
  }
7366
+ /**
7367
+ * List the workspace members a saved filter can be shared with
7368
+ *
7369
+ * Owner or workspace admin only. Every member of the workspace, the owner and existing shares included — subtract them for the picker.
7370
+ */
7371
+ static listSavedFilterShareableMembers(options) {
7372
+ return (options.client ?? client).get({
7373
+ security: [{
7374
+ name: "x-api-key",
7375
+ type: "apiKey"
7376
+ }, {
7377
+ scheme: "bearer",
7378
+ type: "http"
7379
+ }],
7380
+ url: "/v1/saved-filters/{id}/shareable-members",
7381
+ ...options
7382
+ });
7383
+ }
7384
+ /**
7385
+ * Stop sharing a saved filter with a member
7386
+ *
7387
+ * Owner or workspace admin only. Removes that member's share; a no-op (`revoked: false`) when there was none.
7388
+ */
7389
+ static revokeSavedFilterAccess(options) {
7390
+ return (options.client ?? client).delete({
7391
+ security: [{
7392
+ name: "x-api-key",
7393
+ type: "apiKey"
7394
+ }, {
7395
+ scheme: "bearer",
7396
+ type: "http"
7397
+ }],
7398
+ url: "/v1/saved-filters/{id}/shares",
7399
+ ...options,
7400
+ headers: {
7401
+ "Content-Type": "application/json",
7402
+ ...options.headers
7403
+ }
7404
+ });
7405
+ }
7406
+ /**
7407
+ * Get who a saved filter is shared with
7408
+ *
7409
+ * Visibility, owner, the workspace-wide role and every per-user share. Readable by the owner, an `editor`, or a workspace admin.
7410
+ */
7411
+ static getSavedFilterShares(options) {
7412
+ return (options.client ?? client).get({
7413
+ security: [{
7414
+ name: "x-api-key",
7415
+ type: "apiKey"
7416
+ }, {
7417
+ scheme: "bearer",
7418
+ type: "http"
7419
+ }],
7420
+ url: "/v1/saved-filters/{id}/shares",
7421
+ ...options
7422
+ });
7423
+ }
7424
+ /**
7425
+ * Share a saved filter with a workspace member
7426
+ *
7427
+ * Owner or workspace admin only. Re-sharing updates the member's role. Sharing a private filter makes it `shared`. Sharing with the owner is a no-op (`granted: false`).
7428
+ */
7429
+ static grantSavedFilterAccess(options) {
7430
+ return (options.client ?? client).post({
7431
+ security: [{
7432
+ name: "x-api-key",
7433
+ type: "apiKey"
7434
+ }, {
7435
+ scheme: "bearer",
7436
+ type: "http"
7437
+ }],
7438
+ url: "/v1/saved-filters/{id}/shares",
7439
+ ...options,
7440
+ headers: {
7441
+ "Content-Type": "application/json",
7442
+ ...options.headers
7443
+ }
7444
+ });
7445
+ }
7346
7446
  };
7347
7447
  //#endregion
7348
7448
  //#region src/index.ts