@model-match/api 3.3.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.
@@ -0,0 +1,1769 @@
1
+ import { createClient, createClient as createApiClient, createConfig } from "@hey-api/client-fetch";
2
+ //#region src/runtime-config.ts
3
+ const createClientConfig = (config) => ({
4
+ ...config,
5
+ throwOnError: true,
6
+ baseUrl: config?.baseUrl ?? (typeof process === "undefined" ? void 0 : process.env?.MMR_API_URL) ?? "http://localhost:3001"
7
+ });
8
+ //#endregion
9
+ //#region src/client.gen.ts
10
+ const client = createClient(createClientConfig(createConfig()));
11
+ //#endregion
12
+ //#region src/sdk.gen.ts
13
+ var Agents = class {
14
+ /**
15
+ * Search agents with filters
16
+ */
17
+ static list(options) {
18
+ return (options?.client ?? client).post({
19
+ security: [{
20
+ name: "x-api-key",
21
+ type: "apiKey"
22
+ }, {
23
+ scheme: "bearer",
24
+ type: "http"
25
+ }],
26
+ url: "/v1/agents",
27
+ ...options,
28
+ headers: {
29
+ "Content-Type": "application/json",
30
+ ...options?.headers
31
+ }
32
+ });
33
+ }
34
+ /**
35
+ * Get agent by ID (with legacy_mma_ids fallback)
36
+ */
37
+ static get(options) {
38
+ return (options.client ?? client).get({
39
+ security: [{
40
+ name: "x-api-key",
41
+ type: "apiKey"
42
+ }, {
43
+ scheme: "bearer",
44
+ type: "http"
45
+ }],
46
+ url: "/v1/agents/{id}",
47
+ ...options
48
+ });
49
+ }
50
+ /**
51
+ * Production summary with buyer/seller/dual split + previous period
52
+ */
53
+ static analyticsSummary(options) {
54
+ return (options?.client ?? client).post({
55
+ security: [{
56
+ name: "x-api-key",
57
+ type: "apiKey"
58
+ }, {
59
+ scheme: "bearer",
60
+ type: "http"
61
+ }],
62
+ url: "/v1/agents/analytics/summary",
63
+ ...options,
64
+ headers: {
65
+ "Content-Type": "application/json",
66
+ ...options?.headers
67
+ }
68
+ });
69
+ }
70
+ /**
71
+ * Agent volume/units over time with buyer/seller/dual split
72
+ */
73
+ static analyticsTimeSeries(options) {
74
+ return (options?.client ?? client).post({
75
+ security: [{
76
+ name: "x-api-key",
77
+ type: "apiKey"
78
+ }, {
79
+ scheme: "bearer",
80
+ type: "http"
81
+ }],
82
+ url: "/v1/agents/analytics/time-series",
83
+ ...options,
84
+ headers: {
85
+ "Content-Type": "application/json",
86
+ ...options?.headers
87
+ }
88
+ });
89
+ }
90
+ /**
91
+ * Configurable chart (measure × slice) over the agent's sales
92
+ */
93
+ static analyticsChart(options) {
94
+ return (options?.client ?? client).post({
95
+ security: [{
96
+ name: "x-api-key",
97
+ type: "apiKey"
98
+ }, {
99
+ scheme: "bearer",
100
+ type: "http"
101
+ }],
102
+ url: "/v1/agents/analytics/chart",
103
+ ...options,
104
+ headers: {
105
+ "Content-Type": "application/json",
106
+ ...options?.headers
107
+ }
108
+ });
109
+ }
110
+ /**
111
+ * Sales transactions where this agent was listing or selling side
112
+ */
113
+ static sales(options) {
114
+ return (options.client ?? client).post({
115
+ security: [{
116
+ name: "x-api-key",
117
+ type: "apiKey"
118
+ }, {
119
+ scheme: "bearer",
120
+ type: "http"
121
+ }],
122
+ url: "/v1/agents/{id}/sales",
123
+ ...options,
124
+ headers: {
125
+ "Content-Type": "application/json",
126
+ ...options?.headers
127
+ }
128
+ });
129
+ }
130
+ /**
131
+ * Properties this agent has transacted on
132
+ */
133
+ static properties(options) {
134
+ return (options.client ?? client).post({
135
+ security: [{
136
+ name: "x-api-key",
137
+ type: "apiKey"
138
+ }, {
139
+ scheme: "bearer",
140
+ type: "http"
141
+ }],
142
+ url: "/v1/agents/{id}/properties",
143
+ ...options,
144
+ headers: {
145
+ "Content-Type": "application/json",
146
+ ...options?.headers
147
+ }
148
+ });
149
+ }
150
+ /**
151
+ * Listing offices the agent has closed through
152
+ */
153
+ static offices(options) {
154
+ return (options.client ?? client).post({
155
+ security: [{
156
+ name: "x-api-key",
157
+ type: "apiKey"
158
+ }, {
159
+ scheme: "bearer",
160
+ type: "http"
161
+ }],
162
+ url: "/v1/agents/{id}/breakdowns/offices",
163
+ ...options,
164
+ headers: {
165
+ "Content-Type": "application/json",
166
+ ...options?.headers
167
+ }
168
+ });
169
+ }
170
+ /**
171
+ * City volume breakdown across the agent's sales
172
+ */
173
+ static cities(options) {
174
+ return (options.client ?? client).post({
175
+ security: [{
176
+ name: "x-api-key",
177
+ type: "apiKey"
178
+ }, {
179
+ scheme: "bearer",
180
+ type: "http"
181
+ }],
182
+ url: "/v1/agents/{id}/breakdowns/cities",
183
+ ...options,
184
+ headers: {
185
+ "Content-Type": "application/json",
186
+ ...options?.headers
187
+ }
188
+ });
189
+ }
190
+ /**
191
+ * County (FIPS) volume breakdown
192
+ */
193
+ static counties(options) {
194
+ return (options.client ?? client).post({
195
+ security: [{
196
+ name: "x-api-key",
197
+ type: "apiKey"
198
+ }, {
199
+ scheme: "bearer",
200
+ type: "http"
201
+ }],
202
+ url: "/v1/agents/{id}/breakdowns/counties",
203
+ ...options,
204
+ headers: {
205
+ "Content-Type": "application/json",
206
+ ...options?.headers
207
+ }
208
+ });
209
+ }
210
+ /**
211
+ * State volume breakdown
212
+ */
213
+ static states(options) {
214
+ return (options.client ?? client).post({
215
+ security: [{
216
+ name: "x-api-key",
217
+ type: "apiKey"
218
+ }, {
219
+ scheme: "bearer",
220
+ type: "http"
221
+ }],
222
+ url: "/v1/agents/{id}/breakdowns/states",
223
+ ...options,
224
+ headers: {
225
+ "Content-Type": "application/json",
226
+ ...options?.headers
227
+ }
228
+ });
229
+ }
230
+ /**
231
+ * Zip-code volume breakdown
232
+ */
233
+ static zipCodes(options) {
234
+ return (options.client ?? client).post({
235
+ security: [{
236
+ name: "x-api-key",
237
+ type: "apiKey"
238
+ }, {
239
+ scheme: "bearer",
240
+ type: "http"
241
+ }],
242
+ url: "/v1/agents/{id}/breakdowns/zip-codes",
243
+ ...options,
244
+ headers: {
245
+ "Content-Type": "application/json",
246
+ ...options?.headers
247
+ }
248
+ });
249
+ }
250
+ /**
251
+ * Loan officers the agent worked with (pre-aggregated)
252
+ */
253
+ static originators(options) {
254
+ return (options.client ?? client).post({
255
+ security: [{
256
+ name: "x-api-key",
257
+ type: "apiKey"
258
+ }, {
259
+ scheme: "bearer",
260
+ type: "http"
261
+ }],
262
+ url: "/v1/agents/{id}/breakdowns/originators",
263
+ ...options,
264
+ headers: {
265
+ "Content-Type": "application/json",
266
+ ...options?.headers
267
+ }
268
+ });
269
+ }
270
+ /**
271
+ * Mortgage companies the agent dealt with (pre-aggregated)
272
+ */
273
+ static companies(options) {
274
+ return (options.client ?? client).post({
275
+ security: [{
276
+ name: "x-api-key",
277
+ type: "apiKey"
278
+ }, {
279
+ scheme: "bearer",
280
+ type: "http"
281
+ }],
282
+ url: "/v1/agents/{id}/breakdowns/companies",
283
+ ...options,
284
+ headers: {
285
+ "Content-Type": "application/json",
286
+ ...options?.headers
287
+ }
288
+ });
289
+ }
290
+ /**
291
+ * Raw-name lenders encountered (pre-aggregated)
292
+ */
293
+ static lenders(options) {
294
+ return (options.client ?? client).post({
295
+ security: [{
296
+ name: "x-api-key",
297
+ type: "apiKey"
298
+ }, {
299
+ scheme: "bearer",
300
+ type: "http"
301
+ }],
302
+ url: "/v1/agents/{id}/breakdowns/lenders",
303
+ ...options,
304
+ headers: {
305
+ "Content-Type": "application/json",
306
+ ...options?.headers
307
+ }
308
+ });
309
+ }
310
+ /**
311
+ * Submit a bulk-delivery job for agents
312
+ * Queues an ECS task that dumps every matching agents document (subject to the org's `bulk-delivery.agents` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /agents/bulk-delivery/{jobId}` for status + the signed download URL.
313
+ */
314
+ static submitAgentsBulkDelivery(options) {
315
+ return (options?.client ?? client).post({
316
+ security: [{
317
+ name: "x-api-key",
318
+ type: "apiKey"
319
+ }, {
320
+ scheme: "bearer",
321
+ type: "http"
322
+ }],
323
+ url: "/v1/agents/bulk-delivery",
324
+ ...options,
325
+ headers: {
326
+ "Content-Type": "application/json",
327
+ ...options?.headers
328
+ }
329
+ });
330
+ }
331
+ /**
332
+ * Get bulk-delivery job status for agents
333
+ */
334
+ static getAgentsBulkDeliveryJob(options) {
335
+ return (options.client ?? client).get({
336
+ security: [{
337
+ name: "x-api-key",
338
+ type: "apiKey"
339
+ }, {
340
+ scheme: "bearer",
341
+ type: "http"
342
+ }],
343
+ url: "/v1/agents/bulk-delivery/{jobId}",
344
+ ...options
345
+ });
346
+ }
347
+ };
348
+ var Branches = class {
349
+ /**
350
+ * Search branches with filters
351
+ * 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.
352
+ */
353
+ static list(options) {
354
+ return (options?.client ?? client).post({
355
+ security: [{
356
+ name: "x-api-key",
357
+ type: "apiKey"
358
+ }, {
359
+ scheme: "bearer",
360
+ type: "http"
361
+ }],
362
+ url: "/v1/branches",
363
+ ...options,
364
+ headers: {
365
+ "Content-Type": "application/json",
366
+ ...options?.headers
367
+ }
368
+ });
369
+ }
370
+ /**
371
+ * Get branch by NMLS ID
372
+ * Retrieve full details for a single NMLS mortgage branch including name, address, parent company, managers, trade names, and licensing.
373
+ */
374
+ static get(options) {
375
+ return (options.client ?? client).get({
376
+ security: [{
377
+ name: "x-api-key",
378
+ type: "apiKey"
379
+ }, {
380
+ scheme: "bearer",
381
+ type: "http"
382
+ }],
383
+ url: "/v1/branches/{nmlsId}",
384
+ ...options
385
+ });
386
+ }
387
+ /**
388
+ * Submit a bulk-delivery job for branches
389
+ * Queues an ECS task that dumps every matching branches document (subject to the org's `bulk-delivery.branches` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /branches/bulk-delivery/{jobId}` for status + the signed download URL.
390
+ */
391
+ static submitBranchesBulkDelivery(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/branches/bulk-delivery",
401
+ ...options,
402
+ headers: {
403
+ "Content-Type": "application/json",
404
+ ...options?.headers
405
+ }
406
+ });
407
+ }
408
+ /**
409
+ * Get bulk-delivery job status for branches
410
+ */
411
+ static getBranchesBulkDeliveryJob(options) {
412
+ return (options.client ?? client).get({
413
+ security: [{
414
+ name: "x-api-key",
415
+ type: "apiKey"
416
+ }, {
417
+ scheme: "bearer",
418
+ type: "http"
419
+ }],
420
+ url: "/v1/branches/bulk-delivery/{jobId}",
421
+ ...options
422
+ });
423
+ }
424
+ };
425
+ var Companies = class {
426
+ /**
427
+ * Search companies with filters
428
+ */
429
+ static list(options) {
430
+ return (options?.client ?? client).post({
431
+ security: [{
432
+ name: "x-api-key",
433
+ type: "apiKey"
434
+ }, {
435
+ scheme: "bearer",
436
+ type: "http"
437
+ }],
438
+ url: "/v1/companies",
439
+ ...options,
440
+ headers: {
441
+ "Content-Type": "application/json",
442
+ ...options?.headers
443
+ }
444
+ });
445
+ }
446
+ /**
447
+ * Get company by NMLS ID
448
+ */
449
+ static get(options) {
450
+ return (options.client ?? client).get({
451
+ security: [{
452
+ name: "x-api-key",
453
+ type: "apiKey"
454
+ }, {
455
+ scheme: "bearer",
456
+ type: "http"
457
+ }],
458
+ url: "/v1/companies/{nmlsId}",
459
+ ...options
460
+ });
461
+ }
462
+ /**
463
+ * Production summary with previous-period comparison
464
+ */
465
+ static analyticsSummary(options) {
466
+ return (options?.client ?? client).post({
467
+ security: [{
468
+ name: "x-api-key",
469
+ type: "apiKey"
470
+ }, {
471
+ scheme: "bearer",
472
+ type: "http"
473
+ }],
474
+ url: "/v1/companies/analytics/summary",
475
+ ...options,
476
+ headers: {
477
+ "Content-Type": "application/json",
478
+ ...options?.headers
479
+ }
480
+ });
481
+ }
482
+ /**
483
+ * Company volume / units over time
484
+ */
485
+ static analyticsTimeSeries(options) {
486
+ return (options?.client ?? client).post({
487
+ security: [{
488
+ name: "x-api-key",
489
+ type: "apiKey"
490
+ }, {
491
+ scheme: "bearer",
492
+ type: "http"
493
+ }],
494
+ url: "/v1/companies/analytics/time-series",
495
+ ...options,
496
+ headers: {
497
+ "Content-Type": "application/json",
498
+ ...options?.headers
499
+ }
500
+ });
501
+ }
502
+ /**
503
+ * Configurable chart (measure × slice) over company's loans
504
+ */
505
+ static analyticsChart(options) {
506
+ return (options?.client ?? client).post({
507
+ security: [{
508
+ name: "x-api-key",
509
+ type: "apiKey"
510
+ }, {
511
+ scheme: "bearer",
512
+ type: "http"
513
+ }],
514
+ url: "/v1/companies/analytics/chart",
515
+ ...options,
516
+ headers: {
517
+ "Content-Type": "application/json",
518
+ ...options?.headers
519
+ }
520
+ });
521
+ }
522
+ /**
523
+ * Loan originators sponsored by this company
524
+ */
525
+ static sponsoredIndividuals(options) {
526
+ return (options.client ?? client).post({
527
+ security: [{
528
+ name: "x-api-key",
529
+ type: "apiKey"
530
+ }, {
531
+ scheme: "bearer",
532
+ type: "http"
533
+ }],
534
+ url: "/v1/companies/{nmlsId}/sponsored-individuals",
535
+ ...options,
536
+ headers: {
537
+ "Content-Type": "application/json",
538
+ ...options?.headers
539
+ }
540
+ });
541
+ }
542
+ /**
543
+ * Branch locations for this company
544
+ */
545
+ static branches(options) {
546
+ return (options.client ?? client).post({
547
+ security: [{
548
+ name: "x-api-key",
549
+ type: "apiKey"
550
+ }, {
551
+ scheme: "bearer",
552
+ type: "http"
553
+ }],
554
+ url: "/v1/companies/{nmlsId}/branches",
555
+ ...options,
556
+ headers: {
557
+ "Content-Type": "application/json",
558
+ ...options?.headers
559
+ }
560
+ });
561
+ }
562
+ /**
563
+ * Loan officers who originated through this company
564
+ */
565
+ static originators(options) {
566
+ return (options.client ?? client).post({
567
+ security: [{
568
+ name: "x-api-key",
569
+ type: "apiKey"
570
+ }, {
571
+ scheme: "bearer",
572
+ type: "http"
573
+ }],
574
+ url: "/v1/companies/{nmlsId}/breakdowns/originators",
575
+ ...options,
576
+ headers: {
577
+ "Content-Type": "application/json",
578
+ ...options?.headers
579
+ }
580
+ });
581
+ }
582
+ /**
583
+ * Lenders this company originated through
584
+ */
585
+ static lenders(options) {
586
+ return (options.client ?? client).post({
587
+ security: [{
588
+ name: "x-api-key",
589
+ type: "apiKey"
590
+ }, {
591
+ scheme: "bearer",
592
+ type: "http"
593
+ }],
594
+ url: "/v1/companies/{nmlsId}/breakdowns/lenders",
595
+ ...options,
596
+ headers: {
597
+ "Content-Type": "application/json",
598
+ ...options?.headers
599
+ }
600
+ });
601
+ }
602
+ /**
603
+ * Broker offices this company originated through
604
+ */
605
+ static offices(options) {
606
+ return (options.client ?? client).post({
607
+ security: [{
608
+ name: "x-api-key",
609
+ type: "apiKey"
610
+ }, {
611
+ scheme: "bearer",
612
+ type: "http"
613
+ }],
614
+ url: "/v1/companies/{nmlsId}/breakdowns/offices",
615
+ ...options,
616
+ headers: {
617
+ "Content-Type": "application/json",
618
+ ...options?.headers
619
+ }
620
+ });
621
+ }
622
+ /**
623
+ * City volume breakdown across this company's loans
624
+ */
625
+ static cities(options) {
626
+ return (options.client ?? client).post({
627
+ security: [{
628
+ name: "x-api-key",
629
+ type: "apiKey"
630
+ }, {
631
+ scheme: "bearer",
632
+ type: "http"
633
+ }],
634
+ url: "/v1/companies/{nmlsId}/breakdowns/cities",
635
+ ...options,
636
+ headers: {
637
+ "Content-Type": "application/json",
638
+ ...options?.headers
639
+ }
640
+ });
641
+ }
642
+ /**
643
+ * State volume breakdown across this company's loans
644
+ */
645
+ static states(options) {
646
+ return (options.client ?? client).post({
647
+ security: [{
648
+ name: "x-api-key",
649
+ type: "apiKey"
650
+ }, {
651
+ scheme: "bearer",
652
+ type: "http"
653
+ }],
654
+ url: "/v1/companies/{nmlsId}/breakdowns/states",
655
+ ...options,
656
+ headers: {
657
+ "Content-Type": "application/json",
658
+ ...options?.headers
659
+ }
660
+ });
661
+ }
662
+ /**
663
+ * County (FIPS) volume breakdown across this company's loans
664
+ */
665
+ static counties(options) {
666
+ return (options.client ?? client).post({
667
+ security: [{
668
+ name: "x-api-key",
669
+ type: "apiKey"
670
+ }, {
671
+ scheme: "bearer",
672
+ type: "http"
673
+ }],
674
+ url: "/v1/companies/{nmlsId}/breakdowns/counties",
675
+ ...options,
676
+ headers: {
677
+ "Content-Type": "application/json",
678
+ ...options?.headers
679
+ }
680
+ });
681
+ }
682
+ /**
683
+ * Analyze LO arrivals and departures for a company
684
+ */
685
+ static sponsorshipMovement(options) {
686
+ return (options.client ?? client).post({
687
+ security: [{
688
+ name: "x-api-key",
689
+ type: "apiKey"
690
+ }, {
691
+ scheme: "bearer",
692
+ type: "http"
693
+ }],
694
+ url: "/v1/companies/{nmlsId}/sponsorship-movement",
695
+ ...options,
696
+ headers: {
697
+ "Content-Type": "application/json",
698
+ ...options?.headers
699
+ }
700
+ });
701
+ }
702
+ /**
703
+ * Submit a bulk-delivery job for companies
704
+ * Queues an ECS task that dumps every matching companies document (subject to the org's `bulk-delivery.companies` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /companies/bulk-delivery/{jobId}` for status + the signed download URL.
705
+ */
706
+ static submitCompaniesBulkDelivery(options) {
707
+ return (options?.client ?? client).post({
708
+ security: [{
709
+ name: "x-api-key",
710
+ type: "apiKey"
711
+ }, {
712
+ scheme: "bearer",
713
+ type: "http"
714
+ }],
715
+ url: "/v1/companies/bulk-delivery",
716
+ ...options,
717
+ headers: {
718
+ "Content-Type": "application/json",
719
+ ...options?.headers
720
+ }
721
+ });
722
+ }
723
+ /**
724
+ * Get bulk-delivery job status for companies
725
+ */
726
+ static getCompaniesBulkDeliveryJob(options) {
727
+ return (options.client ?? client).get({
728
+ security: [{
729
+ name: "x-api-key",
730
+ type: "apiKey"
731
+ }, {
732
+ scheme: "bearer",
733
+ type: "http"
734
+ }],
735
+ url: "/v1/companies/bulk-delivery/{jobId}",
736
+ ...options
737
+ });
738
+ }
739
+ };
740
+ var Search = class {
741
+ /**
742
+ * Instant multi-entity typeahead search
743
+ * Fast typeahead/autocomplete search across agents, originators, companies, and offices. Returns top matches per entity type. Use this for quick name lookups, not for filtered searches (use the entity-specific list endpoints for those).
744
+ */
745
+ static instant(options) {
746
+ return (options?.client ?? client).post({
747
+ security: [{
748
+ name: "x-api-key",
749
+ type: "apiKey"
750
+ }, {
751
+ scheme: "bearer",
752
+ type: "http"
753
+ }],
754
+ url: "/v1/instant-search",
755
+ ...options,
756
+ headers: {
757
+ "Content-Type": "application/json",
758
+ ...options?.headers
759
+ }
760
+ });
761
+ }
762
+ };
763
+ var Lenders = class {
764
+ /**
765
+ * Search lenders with filters
766
+ */
767
+ static list(options) {
768
+ return (options?.client ?? client).post({
769
+ security: [{
770
+ name: "x-api-key",
771
+ type: "apiKey"
772
+ }, {
773
+ scheme: "bearer",
774
+ type: "http"
775
+ }],
776
+ url: "/v1/lenders",
777
+ ...options,
778
+ headers: {
779
+ "Content-Type": "application/json",
780
+ ...options?.headers
781
+ }
782
+ });
783
+ }
784
+ /**
785
+ * Get lender by ID
786
+ */
787
+ static get(options) {
788
+ return (options.client ?? client).get({
789
+ security: [{
790
+ name: "x-api-key",
791
+ type: "apiKey"
792
+ }, {
793
+ scheme: "bearer",
794
+ type: "http"
795
+ }],
796
+ url: "/v1/lenders/{id}",
797
+ ...options
798
+ });
799
+ }
800
+ };
801
+ var Loans = class {
802
+ /**
803
+ * Search loans with filters
804
+ */
805
+ static list(options) {
806
+ return (options?.client ?? client).post({
807
+ security: [{
808
+ name: "x-api-key",
809
+ type: "apiKey"
810
+ }, {
811
+ scheme: "bearer",
812
+ type: "http"
813
+ }],
814
+ url: "/v1/loans",
815
+ ...options,
816
+ headers: {
817
+ "Content-Type": "application/json",
818
+ ...options?.headers
819
+ }
820
+ });
821
+ }
822
+ /**
823
+ * Get loan by ID
824
+ */
825
+ static get(options) {
826
+ return (options.client ?? client).get({
827
+ security: [{
828
+ name: "x-api-key",
829
+ type: "apiKey"
830
+ }, {
831
+ scheme: "bearer",
832
+ type: "http"
833
+ }],
834
+ url: "/v1/loans/{id}",
835
+ ...options
836
+ });
837
+ }
838
+ /**
839
+ * Market summary with previous-period comparison
840
+ */
841
+ static analyticsSummary(options) {
842
+ return (options?.client ?? client).post({
843
+ security: [{
844
+ name: "x-api-key",
845
+ type: "apiKey"
846
+ }, {
847
+ scheme: "bearer",
848
+ type: "http"
849
+ }],
850
+ url: "/v1/loans/analytics/summary",
851
+ ...options,
852
+ headers: {
853
+ "Content-Type": "application/json",
854
+ ...options?.headers
855
+ }
856
+ });
857
+ }
858
+ /**
859
+ * Volume / units over time
860
+ */
861
+ static analyticsTimeSeries(options) {
862
+ return (options?.client ?? client).post({
863
+ security: [{
864
+ name: "x-api-key",
865
+ type: "apiKey"
866
+ }, {
867
+ scheme: "bearer",
868
+ type: "http"
869
+ }],
870
+ url: "/v1/loans/analytics/time-series",
871
+ ...options,
872
+ headers: {
873
+ "Content-Type": "application/json",
874
+ ...options?.headers
875
+ }
876
+ });
877
+ }
878
+ /**
879
+ * Configurable chart data (measure × slice)
880
+ */
881
+ static analyticsChart(options) {
882
+ return (options?.client ?? client).post({
883
+ security: [{
884
+ name: "x-api-key",
885
+ type: "apiKey"
886
+ }, {
887
+ scheme: "bearer",
888
+ type: "http"
889
+ }],
890
+ url: "/v1/loans/analytics/chart",
891
+ ...options,
892
+ headers: {
893
+ "Content-Type": "application/json",
894
+ ...options?.headers
895
+ }
896
+ });
897
+ }
898
+ /**
899
+ * Submit a bulk-delivery job for loans
900
+ * Queues an ECS task that dumps every matching loans document (subject to the org's `bulk-delivery.loans` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /loans/bulk-delivery/{jobId}` for status + the signed download URL.
901
+ */
902
+ static submitLoansBulkDelivery(options) {
903
+ return (options?.client ?? client).post({
904
+ security: [{
905
+ name: "x-api-key",
906
+ type: "apiKey"
907
+ }, {
908
+ scheme: "bearer",
909
+ type: "http"
910
+ }],
911
+ url: "/v1/loans/bulk-delivery",
912
+ ...options,
913
+ headers: {
914
+ "Content-Type": "application/json",
915
+ ...options?.headers
916
+ }
917
+ });
918
+ }
919
+ /**
920
+ * Get bulk-delivery job status for loans
921
+ */
922
+ static getLoansBulkDeliveryJob(options) {
923
+ return (options.client ?? client).get({
924
+ security: [{
925
+ name: "x-api-key",
926
+ type: "apiKey"
927
+ }, {
928
+ scheme: "bearer",
929
+ type: "http"
930
+ }],
931
+ url: "/v1/loans/bulk-delivery/{jobId}",
932
+ ...options
933
+ });
934
+ }
935
+ };
936
+ var Locations = class {
937
+ /**
938
+ * Autocomplete location search
939
+ * Autocomplete location search powered by Mapbox. Returns location suggestions (cities, states, counties, zip codes, addresses) for a query string. Use the `mapbox_id` from a suggestion with `retrieveLocation` to get normalized geographic details for filtering.
940
+ */
941
+ static suggest(options) {
942
+ return (options.client ?? client).get({
943
+ security: [{
944
+ name: "x-api-key",
945
+ type: "apiKey"
946
+ }, {
947
+ scheme: "bearer",
948
+ type: "http"
949
+ }],
950
+ url: "/v1/locations/suggest",
951
+ ...options
952
+ });
953
+ }
954
+ /**
955
+ * Retrieve normalized location details
956
+ * Retrieve normalized location details (city, state, county, zip, coordinates) for a Mapbox suggestion ID. Use this after `suggestLocations` to get structured geographic data for filtering other endpoints.
957
+ */
958
+ static retrieve(options) {
959
+ return (options.client ?? client).get({
960
+ security: [{
961
+ name: "x-api-key",
962
+ type: "apiKey"
963
+ }, {
964
+ scheme: "bearer",
965
+ type: "http"
966
+ }],
967
+ url: "/v1/locations/retrieve/{mapboxId}",
968
+ ...options
969
+ });
970
+ }
971
+ };
972
+ var Market = class {
973
+ /**
974
+ * Search aggregated market data with filters
975
+ * Search aggregated loan origination market data. Filterable dimensions cover geography (state, county, zip), product (loan purpose / type / amortization), borrower demographics, and loan numerics.
976
+ */
977
+ static list(options) {
978
+ return (options?.client ?? client).post({
979
+ security: [{
980
+ name: "x-api-key",
981
+ type: "apiKey"
982
+ }, {
983
+ scheme: "bearer",
984
+ type: "http"
985
+ }],
986
+ url: "/v1/market",
987
+ ...options,
988
+ headers: {
989
+ "Content-Type": "application/json",
990
+ ...options?.headers
991
+ }
992
+ });
993
+ }
994
+ /**
995
+ * Market summary (volume, units, rate, loan amount, credit score, LTV, DTI, income, etc.) with previous-period comparison
996
+ */
997
+ static analyticsSummary(options) {
998
+ return (options?.client ?? client).post({
999
+ security: [{
1000
+ name: "x-api-key",
1001
+ type: "apiKey"
1002
+ }, {
1003
+ scheme: "bearer",
1004
+ type: "http"
1005
+ }],
1006
+ url: "/v1/market/analytics/summary",
1007
+ ...options,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...options?.headers
1011
+ }
1012
+ });
1013
+ }
1014
+ /**
1015
+ * Market metrics over time
1016
+ */
1017
+ static analyticsTimeSeries(options) {
1018
+ return (options?.client ?? client).post({
1019
+ security: [{
1020
+ name: "x-api-key",
1021
+ type: "apiKey"
1022
+ }, {
1023
+ scheme: "bearer",
1024
+ type: "http"
1025
+ }],
1026
+ url: "/v1/market/analytics/time-series",
1027
+ ...options,
1028
+ headers: {
1029
+ "Content-Type": "application/json",
1030
+ ...options?.headers
1031
+ }
1032
+ });
1033
+ }
1034
+ /**
1035
+ * Market measure by dimension breakdown
1036
+ */
1037
+ static analyticsChart(options) {
1038
+ return (options?.client ?? client).post({
1039
+ security: [{
1040
+ name: "x-api-key",
1041
+ type: "apiKey"
1042
+ }, {
1043
+ scheme: "bearer",
1044
+ type: "http"
1045
+ }],
1046
+ url: "/v1/market/analytics/chart",
1047
+ ...options,
1048
+ headers: {
1049
+ "Content-Type": "application/json",
1050
+ ...options?.headers
1051
+ }
1052
+ });
1053
+ }
1054
+ };
1055
+ var Offices = class {
1056
+ /**
1057
+ * Agents at an office
1058
+ */
1059
+ static agents(options) {
1060
+ return (options?.client ?? client).post({
1061
+ security: [{
1062
+ name: "x-api-key",
1063
+ type: "apiKey"
1064
+ }, {
1065
+ scheme: "bearer",
1066
+ type: "http"
1067
+ }],
1068
+ url: "/v1/offices/agents",
1069
+ ...options,
1070
+ headers: {
1071
+ "Content-Type": "application/json",
1072
+ ...options?.headers
1073
+ }
1074
+ });
1075
+ }
1076
+ /**
1077
+ * Search real-estate offices with filters
1078
+ * NOT NMLS mortgage branches — use `/branches` for those. Returns office company, address, agent count, and coordinates. Default sort is by agent count descending.
1079
+ */
1080
+ static list(options) {
1081
+ return (options?.client ?? client).post({
1082
+ security: [{
1083
+ name: "x-api-key",
1084
+ type: "apiKey"
1085
+ }, {
1086
+ scheme: "bearer",
1087
+ type: "http"
1088
+ }],
1089
+ url: "/v1/offices",
1090
+ ...options,
1091
+ headers: {
1092
+ "Content-Type": "application/json",
1093
+ ...options?.headers
1094
+ }
1095
+ });
1096
+ }
1097
+ /**
1098
+ * Get office by ID with best-effort production enrichment
1099
+ */
1100
+ static get(options) {
1101
+ return (options.client ?? client).get({
1102
+ security: [{
1103
+ name: "x-api-key",
1104
+ type: "apiKey"
1105
+ }, {
1106
+ scheme: "bearer",
1107
+ type: "http"
1108
+ }],
1109
+ url: "/v1/offices/{id}",
1110
+ ...options
1111
+ });
1112
+ }
1113
+ };
1114
+ var Originators = class {
1115
+ /**
1116
+ * Search originators with filters
1117
+ */
1118
+ static list(options) {
1119
+ return (options?.client ?? client).post({
1120
+ security: [{
1121
+ name: "x-api-key",
1122
+ type: "apiKey"
1123
+ }, {
1124
+ scheme: "bearer",
1125
+ type: "http"
1126
+ }],
1127
+ url: "/v1/originators",
1128
+ ...options,
1129
+ headers: {
1130
+ "Content-Type": "application/json",
1131
+ ...options?.headers
1132
+ }
1133
+ });
1134
+ }
1135
+ /**
1136
+ * Get originator by NMLS ID
1137
+ */
1138
+ static get(options) {
1139
+ return (options.client ?? client).get({
1140
+ security: [{
1141
+ name: "x-api-key",
1142
+ type: "apiKey"
1143
+ }, {
1144
+ scheme: "bearer",
1145
+ type: "http"
1146
+ }],
1147
+ url: "/v1/originators/{nmlsId}",
1148
+ ...options
1149
+ });
1150
+ }
1151
+ /**
1152
+ * Production summary with previous-period comparison
1153
+ */
1154
+ static analyticsSummary(options) {
1155
+ return (options?.client ?? client).post({
1156
+ security: [{
1157
+ name: "x-api-key",
1158
+ type: "apiKey"
1159
+ }, {
1160
+ scheme: "bearer",
1161
+ type: "http"
1162
+ }],
1163
+ url: "/v1/originators/analytics/summary",
1164
+ ...options,
1165
+ headers: {
1166
+ "Content-Type": "application/json",
1167
+ ...options?.headers
1168
+ }
1169
+ });
1170
+ }
1171
+ /**
1172
+ * Originator volume / units over time
1173
+ */
1174
+ static analyticsTimeSeries(options) {
1175
+ return (options?.client ?? client).post({
1176
+ security: [{
1177
+ name: "x-api-key",
1178
+ type: "apiKey"
1179
+ }, {
1180
+ scheme: "bearer",
1181
+ type: "http"
1182
+ }],
1183
+ url: "/v1/originators/analytics/time-series",
1184
+ ...options,
1185
+ headers: {
1186
+ "Content-Type": "application/json",
1187
+ ...options?.headers
1188
+ }
1189
+ });
1190
+ }
1191
+ /**
1192
+ * Configurable chart (measure × slice) over one LO's loans
1193
+ */
1194
+ static analyticsChart(options) {
1195
+ return (options?.client ?? client).post({
1196
+ security: [{
1197
+ name: "x-api-key",
1198
+ type: "apiKey"
1199
+ }, {
1200
+ scheme: "bearer",
1201
+ type: "http"
1202
+ }],
1203
+ url: "/v1/originators/analytics/chart",
1204
+ ...options,
1205
+ headers: {
1206
+ "Content-Type": "application/json",
1207
+ ...options?.headers
1208
+ }
1209
+ });
1210
+ }
1211
+ /**
1212
+ * Loans originated by this LO
1213
+ */
1214
+ static loans(options) {
1215
+ return (options.client ?? client).post({
1216
+ security: [{
1217
+ name: "x-api-key",
1218
+ type: "apiKey"
1219
+ }, {
1220
+ scheme: "bearer",
1221
+ type: "http"
1222
+ }],
1223
+ url: "/v1/originators/{nmlsId}/loans",
1224
+ ...options,
1225
+ headers: {
1226
+ "Content-Type": "application/json",
1227
+ ...options?.headers
1228
+ }
1229
+ });
1230
+ }
1231
+ /**
1232
+ * Real-estate agents this LO co-closed with
1233
+ */
1234
+ static agents(options) {
1235
+ return (options.client ?? client).post({
1236
+ security: [{
1237
+ name: "x-api-key",
1238
+ type: "apiKey"
1239
+ }, {
1240
+ scheme: "bearer",
1241
+ type: "http"
1242
+ }],
1243
+ url: "/v1/originators/{nmlsId}/breakdowns/agents",
1244
+ ...options,
1245
+ headers: {
1246
+ "Content-Type": "application/json",
1247
+ ...options?.headers
1248
+ }
1249
+ });
1250
+ }
1251
+ /**
1252
+ * Funding companies (employer history) for this LO
1253
+ */
1254
+ static companies(options) {
1255
+ return (options.client ?? client).post({
1256
+ security: [{
1257
+ name: "x-api-key",
1258
+ type: "apiKey"
1259
+ }, {
1260
+ scheme: "bearer",
1261
+ type: "http"
1262
+ }],
1263
+ url: "/v1/originators/{nmlsId}/breakdowns/companies",
1264
+ ...options,
1265
+ headers: {
1266
+ "Content-Type": "application/json",
1267
+ ...options?.headers
1268
+ }
1269
+ });
1270
+ }
1271
+ /**
1272
+ * Lenders this LO has originated through
1273
+ */
1274
+ static lenders(options) {
1275
+ return (options.client ?? client).post({
1276
+ security: [{
1277
+ name: "x-api-key",
1278
+ type: "apiKey"
1279
+ }, {
1280
+ scheme: "bearer",
1281
+ type: "http"
1282
+ }],
1283
+ url: "/v1/originators/{nmlsId}/breakdowns/lenders",
1284
+ ...options,
1285
+ headers: {
1286
+ "Content-Type": "application/json",
1287
+ ...options?.headers
1288
+ }
1289
+ });
1290
+ }
1291
+ /**
1292
+ * Zip-code volume breakdown
1293
+ */
1294
+ static zipCodes(options) {
1295
+ return (options.client ?? client).post({
1296
+ security: [{
1297
+ name: "x-api-key",
1298
+ type: "apiKey"
1299
+ }, {
1300
+ scheme: "bearer",
1301
+ type: "http"
1302
+ }],
1303
+ url: "/v1/originators/{nmlsId}/breakdowns/zip-codes",
1304
+ ...options,
1305
+ headers: {
1306
+ "Content-Type": "application/json",
1307
+ ...options?.headers
1308
+ }
1309
+ });
1310
+ }
1311
+ /**
1312
+ * Branch (broker) history for this LO
1313
+ */
1314
+ static branches(options) {
1315
+ return (options.client ?? client).post({
1316
+ security: [{
1317
+ name: "x-api-key",
1318
+ type: "apiKey"
1319
+ }, {
1320
+ scheme: "bearer",
1321
+ type: "http"
1322
+ }],
1323
+ url: "/v1/originators/{nmlsId}/breakdowns/branches",
1324
+ ...options,
1325
+ headers: {
1326
+ "Content-Type": "application/json",
1327
+ ...options?.headers
1328
+ }
1329
+ });
1330
+ }
1331
+ /**
1332
+ * Real-estate offices this LO closed through (with sponsoring company)
1333
+ */
1334
+ static offices(options) {
1335
+ return (options.client ?? client).post({
1336
+ security: [{
1337
+ name: "x-api-key",
1338
+ type: "apiKey"
1339
+ }, {
1340
+ scheme: "bearer",
1341
+ type: "http"
1342
+ }],
1343
+ url: "/v1/originators/{nmlsId}/breakdowns/offices",
1344
+ ...options,
1345
+ headers: {
1346
+ "Content-Type": "application/json",
1347
+ ...options?.headers
1348
+ }
1349
+ });
1350
+ }
1351
+ /**
1352
+ * Per-city volume breakdown (pre-aggregated)
1353
+ */
1354
+ static citiesBreakdown(options) {
1355
+ return (options.client ?? client).post({
1356
+ security: [{
1357
+ name: "x-api-key",
1358
+ type: "apiKey"
1359
+ }, {
1360
+ scheme: "bearer",
1361
+ type: "http"
1362
+ }],
1363
+ url: "/v1/originators/{nmlsId}/breakdowns/cities",
1364
+ ...options,
1365
+ headers: {
1366
+ "Content-Type": "application/json",
1367
+ ...options?.headers
1368
+ }
1369
+ });
1370
+ }
1371
+ /**
1372
+ * Per-county volume breakdown (pre-aggregated)
1373
+ */
1374
+ static countiesBreakdown(options) {
1375
+ return (options.client ?? client).post({
1376
+ security: [{
1377
+ name: "x-api-key",
1378
+ type: "apiKey"
1379
+ }, {
1380
+ scheme: "bearer",
1381
+ type: "http"
1382
+ }],
1383
+ url: "/v1/originators/{nmlsId}/breakdowns/counties",
1384
+ ...options,
1385
+ headers: {
1386
+ "Content-Type": "application/json",
1387
+ ...options?.headers
1388
+ }
1389
+ });
1390
+ }
1391
+ /**
1392
+ * Per-state volume breakdown (pre-aggregated)
1393
+ */
1394
+ static statesBreakdown(options) {
1395
+ return (options.client ?? client).post({
1396
+ security: [{
1397
+ name: "x-api-key",
1398
+ type: "apiKey"
1399
+ }, {
1400
+ scheme: "bearer",
1401
+ type: "http"
1402
+ }],
1403
+ url: "/v1/originators/{nmlsId}/breakdowns/states",
1404
+ ...options,
1405
+ headers: {
1406
+ "Content-Type": "application/json",
1407
+ ...options?.headers
1408
+ }
1409
+ });
1410
+ }
1411
+ /**
1412
+ * Submit a bulk-delivery job for originators
1413
+ * Queues an ECS task that dumps every matching originators document (subject to the org's `bulk-delivery.originators` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /originators/bulk-delivery/{jobId}` for status + the signed download URL.
1414
+ */
1415
+ static submitOriginatorsBulkDelivery(options) {
1416
+ return (options?.client ?? client).post({
1417
+ security: [{
1418
+ name: "x-api-key",
1419
+ type: "apiKey"
1420
+ }, {
1421
+ scheme: "bearer",
1422
+ type: "http"
1423
+ }],
1424
+ url: "/v1/originators/bulk-delivery",
1425
+ ...options,
1426
+ headers: {
1427
+ "Content-Type": "application/json",
1428
+ ...options?.headers
1429
+ }
1430
+ });
1431
+ }
1432
+ /**
1433
+ * Get bulk-delivery job status for originators
1434
+ */
1435
+ static getOriginatorsBulkDeliveryJob(options) {
1436
+ return (options.client ?? client).get({
1437
+ security: [{
1438
+ name: "x-api-key",
1439
+ type: "apiKey"
1440
+ }, {
1441
+ scheme: "bearer",
1442
+ type: "http"
1443
+ }],
1444
+ url: "/v1/originators/bulk-delivery/{jobId}",
1445
+ ...options
1446
+ });
1447
+ }
1448
+ };
1449
+ var Properties = class {
1450
+ /**
1451
+ * List enriched properties for the current user
1452
+ */
1453
+ static listEnrichments(options) {
1454
+ return (options?.client ?? client).get({
1455
+ security: [{
1456
+ name: "x-api-key",
1457
+ type: "apiKey"
1458
+ }, {
1459
+ scheme: "bearer",
1460
+ type: "http"
1461
+ }],
1462
+ url: "/v1/properties/enrichments",
1463
+ ...options
1464
+ });
1465
+ }
1466
+ /**
1467
+ * Enrich a property with owner contact info
1468
+ * Looks up owner contact information via skip-trace. Uses the canonical address first; falls back to an associated loan or sale record address if the canonical is missing.
1469
+ */
1470
+ static enrich(options) {
1471
+ return (options.client ?? client).post({
1472
+ security: [{
1473
+ name: "x-api-key",
1474
+ type: "apiKey"
1475
+ }, {
1476
+ scheme: "bearer",
1477
+ type: "http"
1478
+ }],
1479
+ url: "/v1/properties/{id}/enrich",
1480
+ ...options
1481
+ });
1482
+ }
1483
+ /**
1484
+ * Submit a bulk skip-trace job
1485
+ * Queues an ECS task that enriches up to 50000 properties. Returns 202 with a jobId; poll `GET /enrich-bulk/{jobId}` or subscribe to the `enrichment.bulk.*` EventBridge / webhook events for completion.
1486
+ */
1487
+ static enrichPropertiesBulk(options) {
1488
+ return (options?.client ?? client).post({
1489
+ security: [{
1490
+ name: "x-api-key",
1491
+ type: "apiKey"
1492
+ }, {
1493
+ scheme: "bearer",
1494
+ type: "http"
1495
+ }],
1496
+ url: "/v1/properties/enrich-bulk",
1497
+ ...options,
1498
+ headers: {
1499
+ "Content-Type": "application/json",
1500
+ ...options?.headers
1501
+ }
1502
+ });
1503
+ }
1504
+ /**
1505
+ * Get bulk enrichment job status
1506
+ */
1507
+ static getEnrichBulkJob(options) {
1508
+ return (options.client ?? client).get({
1509
+ security: [{
1510
+ name: "x-api-key",
1511
+ type: "apiKey"
1512
+ }, {
1513
+ scheme: "bearer",
1514
+ type: "http"
1515
+ }],
1516
+ url: "/v1/properties/enrich-bulk/{jobId}",
1517
+ ...options
1518
+ });
1519
+ }
1520
+ /**
1521
+ * Search properties with filters
1522
+ */
1523
+ static list(options) {
1524
+ return (options?.client ?? client).post({
1525
+ security: [{
1526
+ name: "x-api-key",
1527
+ type: "apiKey"
1528
+ }, {
1529
+ scheme: "bearer",
1530
+ type: "http"
1531
+ }],
1532
+ url: "/v1/properties",
1533
+ ...options,
1534
+ headers: {
1535
+ "Content-Type": "application/json",
1536
+ ...options?.headers
1537
+ }
1538
+ });
1539
+ }
1540
+ /**
1541
+ * Get property by ID (with mm_property_id fallback)
1542
+ */
1543
+ static get(options) {
1544
+ return (options.client ?? client).get({
1545
+ security: [{
1546
+ name: "x-api-key",
1547
+ type: "apiKey"
1548
+ }, {
1549
+ scheme: "bearer",
1550
+ type: "http"
1551
+ }],
1552
+ url: "/v1/properties/{id}",
1553
+ ...options
1554
+ });
1555
+ }
1556
+ /**
1557
+ * Property count and average AVM
1558
+ */
1559
+ static analyticsSummary(options) {
1560
+ return (options?.client ?? client).post({
1561
+ security: [{
1562
+ name: "x-api-key",
1563
+ type: "apiKey"
1564
+ }, {
1565
+ scheme: "bearer",
1566
+ type: "http"
1567
+ }],
1568
+ url: "/v1/properties/analytics/summary",
1569
+ ...options,
1570
+ headers: {
1571
+ "Content-Type": "application/json",
1572
+ ...options?.headers
1573
+ }
1574
+ });
1575
+ }
1576
+ /**
1577
+ * Configurable chart data (measure × slice)
1578
+ */
1579
+ static analyticsChart(options) {
1580
+ return (options?.client ?? client).post({
1581
+ security: [{
1582
+ name: "x-api-key",
1583
+ type: "apiKey"
1584
+ }, {
1585
+ scheme: "bearer",
1586
+ type: "http"
1587
+ }],
1588
+ url: "/v1/properties/analytics/chart",
1589
+ ...options,
1590
+ headers: {
1591
+ "Content-Type": "application/json",
1592
+ ...options?.headers
1593
+ }
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Submit a bulk-delivery job for properties
1598
+ * Queues an ECS task that dumps every matching properties document (subject to the org's `bulk-delivery.properties` entitlement scope) to S3 in the requested format. Returns 202 with a jobId; poll `GET /properties/bulk-delivery/{jobId}` for status + the signed download URL.
1599
+ */
1600
+ static submitPropertiesBulkDelivery(options) {
1601
+ return (options?.client ?? client).post({
1602
+ security: [{
1603
+ name: "x-api-key",
1604
+ type: "apiKey"
1605
+ }, {
1606
+ scheme: "bearer",
1607
+ type: "http"
1608
+ }],
1609
+ url: "/v1/properties/bulk-delivery",
1610
+ ...options,
1611
+ headers: {
1612
+ "Content-Type": "application/json",
1613
+ ...options?.headers
1614
+ }
1615
+ });
1616
+ }
1617
+ /**
1618
+ * Get bulk-delivery job status for properties
1619
+ */
1620
+ static getPropertiesBulkDeliveryJob(options) {
1621
+ return (options.client ?? client).get({
1622
+ security: [{
1623
+ name: "x-api-key",
1624
+ type: "apiKey"
1625
+ }, {
1626
+ scheme: "bearer",
1627
+ type: "http"
1628
+ }],
1629
+ url: "/v1/properties/bulk-delivery/{jobId}",
1630
+ ...options
1631
+ });
1632
+ }
1633
+ };
1634
+ var Sales = class {
1635
+ /**
1636
+ * Search sales with filters
1637
+ */
1638
+ static list(options) {
1639
+ return (options?.client ?? client).post({
1640
+ security: [{
1641
+ name: "x-api-key",
1642
+ type: "apiKey"
1643
+ }, {
1644
+ scheme: "bearer",
1645
+ type: "http"
1646
+ }],
1647
+ url: "/v1/sales",
1648
+ ...options,
1649
+ headers: {
1650
+ "Content-Type": "application/json",
1651
+ ...options?.headers
1652
+ }
1653
+ });
1654
+ }
1655
+ /**
1656
+ * Get sale by ID
1657
+ */
1658
+ static get(options) {
1659
+ return (options.client ?? client).get({
1660
+ security: [{
1661
+ name: "x-api-key",
1662
+ type: "apiKey"
1663
+ }, {
1664
+ scheme: "bearer",
1665
+ type: "http"
1666
+ }],
1667
+ url: "/v1/sales/{id}",
1668
+ ...options
1669
+ });
1670
+ }
1671
+ /**
1672
+ * Market summary with buyer/seller/dual split + previous period
1673
+ */
1674
+ static analyticsSummary(options) {
1675
+ return (options?.client ?? client).post({
1676
+ security: [{
1677
+ name: "x-api-key",
1678
+ type: "apiKey"
1679
+ }, {
1680
+ scheme: "bearer",
1681
+ type: "http"
1682
+ }],
1683
+ url: "/v1/sales/analytics/summary",
1684
+ ...options,
1685
+ headers: {
1686
+ "Content-Type": "application/json",
1687
+ ...options?.headers
1688
+ }
1689
+ });
1690
+ }
1691
+ /**
1692
+ * Volume/units over time with buyer/seller/dual split
1693
+ */
1694
+ static analyticsTimeSeries(options) {
1695
+ return (options?.client ?? client).post({
1696
+ security: [{
1697
+ name: "x-api-key",
1698
+ type: "apiKey"
1699
+ }, {
1700
+ scheme: "bearer",
1701
+ type: "http"
1702
+ }],
1703
+ url: "/v1/sales/analytics/time-series",
1704
+ ...options,
1705
+ headers: {
1706
+ "Content-Type": "application/json",
1707
+ ...options?.headers
1708
+ }
1709
+ });
1710
+ }
1711
+ /**
1712
+ * Configurable chart (measure × slice) over the market
1713
+ */
1714
+ static analyticsChart(options) {
1715
+ return (options?.client ?? client).post({
1716
+ security: [{
1717
+ name: "x-api-key",
1718
+ type: "apiKey"
1719
+ }, {
1720
+ scheme: "bearer",
1721
+ type: "http"
1722
+ }],
1723
+ url: "/v1/sales/analytics/chart",
1724
+ ...options,
1725
+ headers: {
1726
+ "Content-Type": "application/json",
1727
+ ...options?.headers
1728
+ }
1729
+ });
1730
+ }
1731
+ };
1732
+ //#endregion
1733
+ //#region src/index.ts
1734
+ /**
1735
+ * Configures the singleton hey-api fetch client and returns a namespace-grouped
1736
+ * facade. The static service classes share the global client, so a process
1737
+ * should call `createClient()` once at startup. For multi-tenant scenarios,
1738
+ * pass a custom `client` per call via the per-method `Options.client` field.
1739
+ */
1740
+ function createClient$1(config = {}) {
1741
+ if (config.baseUrl || config.headers || config.token) client.setConfig({
1742
+ ...config.baseUrl ? { baseUrl: config.baseUrl } : {},
1743
+ ...config.headers ? { headers: config.headers } : {},
1744
+ ...config.token ? { auth: config.token } : {}
1745
+ });
1746
+ if (config.apiKey) {
1747
+ const apiKey = config.apiKey;
1748
+ client.interceptors.request.use((req) => {
1749
+ req.headers.set("x-api-key", apiKey);
1750
+ return req;
1751
+ });
1752
+ }
1753
+ return {
1754
+ agents: Agents,
1755
+ branches: Branches,
1756
+ companies: Companies,
1757
+ lenders: Lenders,
1758
+ loans: Loans,
1759
+ locations: Locations,
1760
+ market: Market,
1761
+ offices: Offices,
1762
+ originators: Originators,
1763
+ properties: Properties,
1764
+ sales: Sales,
1765
+ search: Search
1766
+ };
1767
+ }
1768
+ //#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 };