@model-match/api 3.5.0 → 3.6.1

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 { _ as client, n as createClient } from "../src-DLvn1DCD.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
4
  * Search agents with filters
@@ -334,6 +334,242 @@ 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
+ /**
541
+ * List your alert digests (newest first)
542
+ */
543
+ const listAlertDigests = (options) => {
544
+ return (options?.client ?? client).get({
545
+ security: [{
546
+ name: "x-api-key",
547
+ type: "apiKey"
548
+ }, {
549
+ scheme: "bearer",
550
+ type: "http"
551
+ }],
552
+ url: "/v1/alerts/digests",
553
+ ...options
554
+ });
555
+ };
556
+ /**
557
+ * Mark one digest read
558
+ */
559
+ const markAlertDigestRead = (options) => {
560
+ return (options.client ?? client).post({
561
+ security: [{
562
+ name: "x-api-key",
563
+ type: "apiKey"
564
+ }, {
565
+ scheme: "bearer",
566
+ type: "http"
567
+ }],
568
+ url: "/v1/alerts/digests/{id}/read",
569
+ ...options
570
+ });
571
+ };
572
+ /**
337
573
  * Search branches with filters
338
574
  * 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
575
  */
@@ -743,6 +979,23 @@ const instantSearch = (options) => {
743
979
  });
744
980
  };
745
981
  /**
982
+ * Mint a scoped search token
983
+ * 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).
984
+ */
985
+ const getSearchToken = (options) => {
986
+ return (options?.client ?? client).get({
987
+ security: [{
988
+ name: "x-api-key",
989
+ type: "apiKey"
990
+ }, {
991
+ scheme: "bearer",
992
+ type: "http"
993
+ }],
994
+ url: "/v1/search-token",
995
+ ...options
996
+ });
997
+ };
998
+ /**
746
999
  * Search lenders with filters
747
1000
  */
748
1001
  const listLenders = (options) => {
@@ -1600,6 +1853,23 @@ const getPropertiesBulkDeliveryJob = (options) => {
1600
1853
  });
1601
1854
  };
1602
1855
  /**
1856
+ * Get realtime connection config
1857
+ * Returns the realtime/notifications connection info (endpoint, authorizer, app, stage) merged with the caller's userId, so a trusted client can connect to its per-user IoT MQTT topic.
1858
+ */
1859
+ const getRealtimeConfig = (options) => {
1860
+ return (options?.client ?? client).get({
1861
+ security: [{
1862
+ name: "x-api-key",
1863
+ type: "apiKey"
1864
+ }, {
1865
+ scheme: "bearer",
1866
+ type: "http"
1867
+ }],
1868
+ url: "/v1/realtime/config",
1869
+ ...options
1870
+ });
1871
+ };
1872
+ /**
1603
1873
  * Search sales with filters
1604
1874
  */
1605
1875
  const listSales = (options) => {
@@ -1696,4 +1966,4 @@ const salesAnalyticsChart = (options) => {
1696
1966
  });
1697
1967
  };
1698
1968
  //#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 };
1969
+ 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, getRealtimeConfig, getSale, getSearchToken, instantSearch, listAgents, listAlertDigests, listAlertLog, listBranches, listCompanies, listEnrichments, listLenders, listLoans, listMarket, listOffices, listOriginators, listProperties, listSales, listWatchedAgents, listWatchedAreas, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, markAlertDigestRead, 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,244 @@ 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
+ /**
554
+ * List your alert digests (newest first)
555
+ */
556
+ static listAlertDigests(options) {
557
+ return (options?.client ?? client).get({
558
+ security: [{
559
+ name: "x-api-key",
560
+ type: "apiKey"
561
+ }, {
562
+ scheme: "bearer",
563
+ type: "http"
564
+ }],
565
+ url: "/v1/alerts/digests",
566
+ ...options
567
+ });
568
+ }
569
+ /**
570
+ * Mark one digest read
571
+ */
572
+ static markAlertDigestRead(options) {
573
+ return (options.client ?? client).post({
574
+ security: [{
575
+ name: "x-api-key",
576
+ type: "apiKey"
577
+ }, {
578
+ scheme: "bearer",
579
+ type: "http"
580
+ }],
581
+ url: "/v1/alerts/digests/{id}/read",
582
+ ...options
583
+ });
584
+ }
585
+ };
348
586
  var Branches = class {
349
587
  /**
350
588
  * Search branches with filters
@@ -759,6 +997,23 @@ var Search = class {
759
997
  }
760
998
  });
761
999
  }
1000
+ /**
1001
+ * Mint a scoped search token
1002
+ * 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).
1003
+ */
1004
+ static getSearchToken(options) {
1005
+ return (options?.client ?? client).get({
1006
+ security: [{
1007
+ name: "x-api-key",
1008
+ type: "apiKey"
1009
+ }, {
1010
+ scheme: "bearer",
1011
+ type: "http"
1012
+ }],
1013
+ url: "/v1/search-token",
1014
+ ...options
1015
+ });
1016
+ }
762
1017
  };
763
1018
  var Lenders = class {
764
1019
  /**
@@ -1631,6 +1886,25 @@ var Properties = class {
1631
1886
  });
1632
1887
  }
1633
1888
  };
1889
+ var Realtime = class {
1890
+ /**
1891
+ * Get realtime connection config
1892
+ * Returns the realtime/notifications connection info (endpoint, authorizer, app, stage) merged with the caller's userId, so a trusted client can connect to its per-user IoT MQTT topic.
1893
+ */
1894
+ static getRealtimeConfig(options) {
1895
+ return (options?.client ?? client).get({
1896
+ security: [{
1897
+ name: "x-api-key",
1898
+ type: "apiKey"
1899
+ }, {
1900
+ scheme: "bearer",
1901
+ type: "http"
1902
+ }],
1903
+ url: "/v1/realtime/config",
1904
+ ...options
1905
+ });
1906
+ }
1907
+ };
1634
1908
  var Sales = class {
1635
1909
  /**
1636
1910
  * Search sales with filters
@@ -1752,6 +2026,7 @@ function createClient$1(config = {}) {
1752
2026
  }
1753
2027
  return {
1754
2028
  agents: Agents,
2029
+ alerts: Alerts,
1755
2030
  branches: Branches,
1756
2031
  companies: Companies,
1757
2032
  lenders: Lenders,
@@ -1766,4 +2041,4 @@ function createClient$1(config = {}) {
1766
2041
  };
1767
2042
  }
1768
2043
  //#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 };
2044
+ export { client as _, Branches as a, Loans as c, Offices as d, Originators as f, Search as g, Sales as h, Alerts as i, Locations as l, Realtime as m, createClient$1 as n, Companies as o, Properties as p, Agents as r, Lenders as s, createApiClient as t, Market as u };