@model-match/api 3.4.0 → 3.6.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 { h as client, n as createClient } from "../src-rXinkwPB.mjs";
1
+ import { g as client, n as createClient } from "../src-ClCFKW54.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -334,6 +334,210 @@ const getAgentsBulkDeliveryJob = (options) => {
334
334
  });
335
335
  };
336
336
  /**
337
+ * Get your alert settings
338
+ */
339
+ const getAlertConditions = (options) => {
340
+ return (options?.client ?? client).get({
341
+ security: [{
342
+ name: "x-api-key",
343
+ type: "apiKey"
344
+ }, {
345
+ scheme: "bearer",
346
+ type: "http"
347
+ }],
348
+ url: "/v1/alerts/conditions",
349
+ ...options
350
+ });
351
+ };
352
+ /**
353
+ * Update your alert settings
354
+ */
355
+ const updateAlertConditions = (options) => {
356
+ return (options?.client ?? client).put({
357
+ security: [{
358
+ name: "x-api-key",
359
+ type: "apiKey"
360
+ }, {
361
+ scheme: "bearer",
362
+ type: "http"
363
+ }],
364
+ url: "/v1/alerts/conditions",
365
+ ...options,
366
+ headers: {
367
+ "Content-Type": "application/json",
368
+ ...options?.headers
369
+ }
370
+ });
371
+ };
372
+ /**
373
+ * List the agents you watch
374
+ */
375
+ const listWatchedAgents = (options) => {
376
+ return (options?.client ?? client).get({
377
+ security: [{
378
+ name: "x-api-key",
379
+ type: "apiKey"
380
+ }, {
381
+ scheme: "bearer",
382
+ type: "http"
383
+ }],
384
+ url: "/v1/alerts/watched-agents",
385
+ ...options
386
+ });
387
+ };
388
+ /**
389
+ * Watch an agent
390
+ */
391
+ const addWatchedAgent = (options) => {
392
+ return (options?.client ?? client).post({
393
+ security: [{
394
+ name: "x-api-key",
395
+ type: "apiKey"
396
+ }, {
397
+ scheme: "bearer",
398
+ type: "http"
399
+ }],
400
+ url: "/v1/alerts/watched-agents",
401
+ ...options,
402
+ headers: {
403
+ "Content-Type": "application/json",
404
+ ...options?.headers
405
+ }
406
+ });
407
+ };
408
+ /**
409
+ * Stop watching an agent
410
+ */
411
+ const removeWatchedAgent = (options) => {
412
+ return (options.client ?? client).delete({
413
+ security: [{
414
+ name: "x-api-key",
415
+ type: "apiKey"
416
+ }, {
417
+ scheme: "bearer",
418
+ type: "http"
419
+ }],
420
+ url: "/v1/alerts/watched-agents/{id}",
421
+ ...options
422
+ });
423
+ };
424
+ /**
425
+ * List the areas you watch
426
+ */
427
+ const listWatchedAreas = (options) => {
428
+ return (options?.client ?? client).get({
429
+ security: [{
430
+ name: "x-api-key",
431
+ type: "apiKey"
432
+ }, {
433
+ scheme: "bearer",
434
+ type: "http"
435
+ }],
436
+ url: "/v1/alerts/watched-areas",
437
+ ...options
438
+ });
439
+ };
440
+ /**
441
+ * Watch an area
442
+ */
443
+ const addWatchedArea = (options) => {
444
+ return (options?.client ?? client).post({
445
+ security: [{
446
+ name: "x-api-key",
447
+ type: "apiKey"
448
+ }, {
449
+ scheme: "bearer",
450
+ type: "http"
451
+ }],
452
+ url: "/v1/alerts/watched-areas",
453
+ ...options,
454
+ headers: {
455
+ "Content-Type": "application/json",
456
+ ...options?.headers
457
+ }
458
+ });
459
+ };
460
+ /**
461
+ * Stop watching an area
462
+ */
463
+ const removeWatchedArea = (options) => {
464
+ return (options.client ?? client).delete({
465
+ security: [{
466
+ name: "x-api-key",
467
+ type: "apiKey"
468
+ }, {
469
+ scheme: "bearer",
470
+ type: "http"
471
+ }],
472
+ url: "/v1/alerts/watched-areas/{id}",
473
+ ...options
474
+ });
475
+ };
476
+ /**
477
+ * List your alerts (newest first)
478
+ */
479
+ const listAlertLog = (options) => {
480
+ return (options?.client ?? client).get({
481
+ security: [{
482
+ name: "x-api-key",
483
+ type: "apiKey"
484
+ }, {
485
+ scheme: "bearer",
486
+ type: "http"
487
+ }],
488
+ url: "/v1/alerts/log",
489
+ ...options
490
+ });
491
+ };
492
+ /**
493
+ * Clear the unread badge
494
+ */
495
+ const markAllAlertsRead = (options) => {
496
+ return (options?.client ?? client).post({
497
+ security: [{
498
+ name: "x-api-key",
499
+ type: "apiKey"
500
+ }, {
501
+ scheme: "bearer",
502
+ type: "http"
503
+ }],
504
+ url: "/v1/alerts/log/mark-all-read",
505
+ ...options
506
+ });
507
+ };
508
+ /**
509
+ * Mark one alert read
510
+ */
511
+ const markAlertRead = (options) => {
512
+ return (options.client ?? client).post({
513
+ security: [{
514
+ name: "x-api-key",
515
+ type: "apiKey"
516
+ }, {
517
+ scheme: "bearer",
518
+ type: "http"
519
+ }],
520
+ url: "/v1/alerts/log/{id}/read",
521
+ ...options
522
+ });
523
+ };
524
+ /**
525
+ * Get your unread alert count
526
+ */
527
+ const getAlertUnreadCount = (options) => {
528
+ return (options?.client ?? client).get({
529
+ security: [{
530
+ name: "x-api-key",
531
+ type: "apiKey"
532
+ }, {
533
+ scheme: "bearer",
534
+ type: "http"
535
+ }],
536
+ url: "/v1/alerts/unread-count",
537
+ ...options
538
+ });
539
+ };
540
+ /**
337
541
  * Search branches with filters
338
542
  * Search NMLS-registered mortgage company branch offices (not MLS real estate offices — use listOffices for those). Returns branch name, address, parent company, managers, and NMLS ID. Each row is enriched with the parent company's period production metrics.
339
543
  */
@@ -743,6 +947,23 @@ const instantSearch = (options) => {
743
947
  });
744
948
  };
745
949
  /**
950
+ * Mint a scoped search token
951
+ * 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).
952
+ */
953
+ const getSearchToken = (options) => {
954
+ return (options?.client ?? client).get({
955
+ security: [{
956
+ name: "x-api-key",
957
+ type: "apiKey"
958
+ }, {
959
+ scheme: "bearer",
960
+ type: "http"
961
+ }],
962
+ url: "/v1/search-token",
963
+ ...options
964
+ });
965
+ };
966
+ /**
746
967
  * Search lenders with filters
747
968
  */
748
969
  const listLenders = (options) => {
@@ -1696,4 +1917,4 @@ const salesAnalyticsChart = (options) => {
1696
1917
  });
1697
1918
  };
1698
1919
  //#endregion
1699
- export { client as _heyApiClient, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentCities, agentCompanies, agentCounties, agentLenders, agentOffices, agentOriginators, agentProperties, agentSales, agentStates, agentZipCodes, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyCities, companyCounties, companyLenders, companyOffices, companyOriginators, companySponsoredIndividuals, companySponsorshipMovement, companyStates, createClient, enrichPropertiesBulk, enrichProperty, getAgent, getAgentsBulkDeliveryJob, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getEnrichBulkJob, getLender, getLoan, getLoansBulkDeliveryJob, getOffice, getOriginator, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getSale, instantSearch, listAgents, listBranches, listCompanies, listEnrichments, listLenders, listLoans, listMarket, listOffices, listOriginators, listProperties, listSales, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, officeAgents, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorOffices, originatorStatesBreakdown, originatorZipCodes, propertiesAnalyticsChart, propertiesAnalyticsSummary, retrieveLocation, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, suggestLocations };
1920
+ export { client as _heyApiClient, addWatchedAgent, addWatchedArea, agentAnalyticsChart, agentAnalyticsSummary, agentAnalyticsTimeSeries, agentCities, agentCompanies, agentCounties, agentLenders, agentOffices, agentOriginators, agentProperties, agentSales, agentStates, agentZipCodes, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyCities, companyCounties, companyLenders, companyOffices, companyOriginators, companySponsoredIndividuals, companySponsorshipMovement, companyStates, createClient, enrichPropertiesBulk, enrichProperty, getAgent, getAgentsBulkDeliveryJob, getAlertConditions, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getEnrichBulkJob, getLender, getLoan, getLoansBulkDeliveryJob, getOffice, getOriginator, getOriginatorsBulkDeliveryJob, getPropertiesBulkDeliveryJob, getProperty, getSale, getSearchToken, instantSearch, listAgents, listAlertLog, listBranches, listCompanies, listEnrichments, listLenders, listLoans, listMarket, listOffices, listOriginators, listProperties, listSales, listWatchedAgents, listWatchedAreas, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, officeAgents, originatorAgents, originatorAnalyticsChart, originatorAnalyticsSummary, originatorAnalyticsTimeSeries, originatorBranches, originatorCitiesBreakdown, originatorCompanies, originatorCountiesBreakdown, originatorLenders, originatorLoans, originatorOffices, originatorStatesBreakdown, originatorZipCodes, propertiesAnalyticsChart, propertiesAnalyticsSummary, removeWatchedAgent, removeWatchedArea, retrieveLocation, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, submitAgentsBulkDelivery, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitPropertiesBulkDelivery, suggestLocations, updateAlertConditions };
@@ -345,6 +345,212 @@ var Agents = class {
345
345
  });
346
346
  }
347
347
  };
348
+ var Alerts = class {
349
+ /**
350
+ * Get your alert settings
351
+ */
352
+ static getAlertConditions(options) {
353
+ return (options?.client ?? client).get({
354
+ security: [{
355
+ name: "x-api-key",
356
+ type: "apiKey"
357
+ }, {
358
+ scheme: "bearer",
359
+ type: "http"
360
+ }],
361
+ url: "/v1/alerts/conditions",
362
+ ...options
363
+ });
364
+ }
365
+ /**
366
+ * Update your alert settings
367
+ */
368
+ static updateAlertConditions(options) {
369
+ return (options?.client ?? client).put({
370
+ security: [{
371
+ name: "x-api-key",
372
+ type: "apiKey"
373
+ }, {
374
+ scheme: "bearer",
375
+ type: "http"
376
+ }],
377
+ url: "/v1/alerts/conditions",
378
+ ...options,
379
+ headers: {
380
+ "Content-Type": "application/json",
381
+ ...options?.headers
382
+ }
383
+ });
384
+ }
385
+ /**
386
+ * List the agents you watch
387
+ */
388
+ static listWatchedAgents(options) {
389
+ return (options?.client ?? client).get({
390
+ security: [{
391
+ name: "x-api-key",
392
+ type: "apiKey"
393
+ }, {
394
+ scheme: "bearer",
395
+ type: "http"
396
+ }],
397
+ url: "/v1/alerts/watched-agents",
398
+ ...options
399
+ });
400
+ }
401
+ /**
402
+ * Watch an agent
403
+ */
404
+ static addWatchedAgent(options) {
405
+ return (options?.client ?? client).post({
406
+ security: [{
407
+ name: "x-api-key",
408
+ type: "apiKey"
409
+ }, {
410
+ scheme: "bearer",
411
+ type: "http"
412
+ }],
413
+ url: "/v1/alerts/watched-agents",
414
+ ...options,
415
+ headers: {
416
+ "Content-Type": "application/json",
417
+ ...options?.headers
418
+ }
419
+ });
420
+ }
421
+ /**
422
+ * Stop watching an agent
423
+ */
424
+ static removeWatchedAgent(options) {
425
+ return (options.client ?? client).delete({
426
+ security: [{
427
+ name: "x-api-key",
428
+ type: "apiKey"
429
+ }, {
430
+ scheme: "bearer",
431
+ type: "http"
432
+ }],
433
+ url: "/v1/alerts/watched-agents/{id}",
434
+ ...options
435
+ });
436
+ }
437
+ /**
438
+ * List the areas you watch
439
+ */
440
+ static listWatchedAreas(options) {
441
+ return (options?.client ?? client).get({
442
+ security: [{
443
+ name: "x-api-key",
444
+ type: "apiKey"
445
+ }, {
446
+ scheme: "bearer",
447
+ type: "http"
448
+ }],
449
+ url: "/v1/alerts/watched-areas",
450
+ ...options
451
+ });
452
+ }
453
+ /**
454
+ * Watch an area
455
+ */
456
+ static addWatchedArea(options) {
457
+ return (options?.client ?? client).post({
458
+ security: [{
459
+ name: "x-api-key",
460
+ type: "apiKey"
461
+ }, {
462
+ scheme: "bearer",
463
+ type: "http"
464
+ }],
465
+ url: "/v1/alerts/watched-areas",
466
+ ...options,
467
+ headers: {
468
+ "Content-Type": "application/json",
469
+ ...options?.headers
470
+ }
471
+ });
472
+ }
473
+ /**
474
+ * Stop watching an area
475
+ */
476
+ static removeWatchedArea(options) {
477
+ return (options.client ?? client).delete({
478
+ security: [{
479
+ name: "x-api-key",
480
+ type: "apiKey"
481
+ }, {
482
+ scheme: "bearer",
483
+ type: "http"
484
+ }],
485
+ url: "/v1/alerts/watched-areas/{id}",
486
+ ...options
487
+ });
488
+ }
489
+ /**
490
+ * List your alerts (newest first)
491
+ */
492
+ static listAlertLog(options) {
493
+ return (options?.client ?? client).get({
494
+ security: [{
495
+ name: "x-api-key",
496
+ type: "apiKey"
497
+ }, {
498
+ scheme: "bearer",
499
+ type: "http"
500
+ }],
501
+ url: "/v1/alerts/log",
502
+ ...options
503
+ });
504
+ }
505
+ /**
506
+ * Clear the unread badge
507
+ */
508
+ static markAllAlertsRead(options) {
509
+ return (options?.client ?? client).post({
510
+ security: [{
511
+ name: "x-api-key",
512
+ type: "apiKey"
513
+ }, {
514
+ scheme: "bearer",
515
+ type: "http"
516
+ }],
517
+ url: "/v1/alerts/log/mark-all-read",
518
+ ...options
519
+ });
520
+ }
521
+ /**
522
+ * Mark one alert read
523
+ */
524
+ static markAlertRead(options) {
525
+ return (options.client ?? client).post({
526
+ security: [{
527
+ name: "x-api-key",
528
+ type: "apiKey"
529
+ }, {
530
+ scheme: "bearer",
531
+ type: "http"
532
+ }],
533
+ url: "/v1/alerts/log/{id}/read",
534
+ ...options
535
+ });
536
+ }
537
+ /**
538
+ * Get your unread alert count
539
+ */
540
+ static getAlertUnreadCount(options) {
541
+ return (options?.client ?? client).get({
542
+ security: [{
543
+ name: "x-api-key",
544
+ type: "apiKey"
545
+ }, {
546
+ scheme: "bearer",
547
+ type: "http"
548
+ }],
549
+ url: "/v1/alerts/unread-count",
550
+ ...options
551
+ });
552
+ }
553
+ };
348
554
  var Branches = class {
349
555
  /**
350
556
  * Search branches with filters
@@ -759,6 +965,23 @@ var Search = class {
759
965
  }
760
966
  });
761
967
  }
968
+ /**
969
+ * Mint a scoped search token
970
+ * 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).
971
+ */
972
+ static getSearchToken(options) {
973
+ return (options?.client ?? client).get({
974
+ security: [{
975
+ name: "x-api-key",
976
+ type: "apiKey"
977
+ }, {
978
+ scheme: "bearer",
979
+ type: "http"
980
+ }],
981
+ url: "/v1/search-token",
982
+ ...options
983
+ });
984
+ }
762
985
  };
763
986
  var Lenders = class {
764
987
  /**
@@ -1752,6 +1975,7 @@ function createClient$1(config = {}) {
1752
1975
  }
1753
1976
  return {
1754
1977
  agents: Agents,
1978
+ alerts: Alerts,
1755
1979
  branches: Branches,
1756
1980
  companies: Companies,
1757
1981
  lenders: Lenders,
@@ -1766,4 +1990,4 @@ function createClient$1(config = {}) {
1766
1990
  };
1767
1991
  }
1768
1992
  //#endregion
1769
- export { Companies as a, Locations as c, Originators as d, Properties as f, client as h, Branches as i, Market as l, Search as m, createClient$1 as n, Lenders as o, Sales as p, Agents as r, Loans as s, createApiClient as t, Offices as u };
1993
+ export { Branches as a, Loans as c, Offices as d, Originators as f, client as g, Search as h, Alerts as i, Locations as l, Sales as m, createClient$1 as n, Companies as o, Properties as p, Agents as r, Lenders as s, createApiClient as t, Market as u };