@model-match/api 3.6.0 → 3.7.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,7 +1,212 @@
1
- import { g as client, n as createClient } from "../src-ClCFKW54.mjs";
1
+ import { n as createClient, y as client } from "../src-CwTkvxPw.mjs";
2
2
  //#region src/slim/sdk.gen.ts
3
3
  /**
4
+ * Get a bulk job and a signed download URL (admin)
5
+ * Returns any org's bulk job (delivery or enrichment) with a freshly signed download URL for its result file. Cross-org: signs against the job's own stored org. `resultsUrl` is null until the job is completed.
6
+ */
7
+ const adminGetBulkJob = (options) => {
8
+ return (options.client ?? client).get({
9
+ security: [{
10
+ name: "x-api-key",
11
+ type: "apiKey"
12
+ }, {
13
+ scheme: "bearer",
14
+ type: "http"
15
+ }],
16
+ url: "/v1/admin/jobs/{jobId}",
17
+ ...options
18
+ });
19
+ };
20
+ /**
21
+ * List recent task runs (admin)
22
+ * Recent run traces across the background tasks, newest first, with status and duration. Filter by service, status, and time window.
23
+ */
24
+ const adminListObservabilityRuns = (options) => {
25
+ return (options?.client ?? client).get({
26
+ security: [{
27
+ name: "x-api-key",
28
+ type: "apiKey"
29
+ }, {
30
+ scheme: "bearer",
31
+ type: "http"
32
+ }],
33
+ url: "/v1/admin/observability/runs",
34
+ ...options
35
+ });
36
+ };
37
+ /**
38
+ * Get the span waterfall for one run (admin)
39
+ * All spans for a run, paired into start/end with durations and the parent links needed to render the waterfall.
40
+ */
41
+ const adminGetObservabilityTrace = (options) => {
42
+ return (options.client ?? client).get({
43
+ security: [{
44
+ name: "x-api-key",
45
+ type: "apiKey"
46
+ }, {
47
+ scheme: "bearer",
48
+ type: "http"
49
+ }],
50
+ url: "/v1/admin/observability/runs/{runId}/trace",
51
+ ...options
52
+ });
53
+ };
54
+ /**
55
+ * Get the full cross-platform trace for any anchor (admin)
56
+ * One stitched waterfall across MCP → API → job, entered from any id (an API request id, an MCP tool-call id, or a job/run id). The same view backs a run's, a request's, and an MCP call's Traces tab. 404 when the id matches nothing.
57
+ */
58
+ const adminGetUnifiedTrace = (options) => {
59
+ return (options.client ?? client).get({
60
+ security: [{
61
+ name: "x-api-key",
62
+ type: "apiKey"
63
+ }, {
64
+ scheme: "bearer",
65
+ type: "http"
66
+ }],
67
+ url: "/v1/admin/observability/trace/{anchorId}",
68
+ ...options
69
+ });
70
+ };
71
+ /**
72
+ * List recent API requests (admin)
73
+ * Recent per-request telemetry, newest first. Filter by route, method, status, actor kind, and time window.
74
+ */
75
+ const adminListApiRequests = (options) => {
76
+ return (options?.client ?? client).get({
77
+ security: [{
78
+ name: "x-api-key",
79
+ type: "apiKey"
80
+ }, {
81
+ scheme: "bearer",
82
+ type: "http"
83
+ }],
84
+ url: "/v1/admin/observability/requests",
85
+ ...options
86
+ });
87
+ };
88
+ /**
89
+ * API request trends and performance (admin)
90
+ * Volume, error rate, and latency percentiles over a time window — overall, per route, and bucketed over time.
91
+ */
92
+ const adminGetApiRequestStats = (options) => {
93
+ return (options?.client ?? client).get({
94
+ security: [{
95
+ name: "x-api-key",
96
+ type: "apiKey"
97
+ }, {
98
+ scheme: "bearer",
99
+ type: "http"
100
+ }],
101
+ url: "/v1/admin/observability/requests/stats",
102
+ ...options
103
+ });
104
+ };
105
+ /**
106
+ * Get one API request (admin)
107
+ * One request's full row, enriched with the MCP tool call that produced it when the request was MCP-originated.
108
+ */
109
+ const adminGetApiRequest = (options) => {
110
+ return (options.client ?? client).get({
111
+ security: [{
112
+ name: "x-api-key",
113
+ type: "apiKey"
114
+ }, {
115
+ scheme: "bearer",
116
+ type: "http"
117
+ }],
118
+ url: "/v1/admin/observability/requests/{requestId}",
119
+ ...options
120
+ });
121
+ };
122
+ /**
123
+ * Get the span waterfall for one request (admin)
124
+ * Spans a request emitted (e.g. a search: filters → build query → fetch → shape). 404 when the request emitted no spans.
125
+ */
126
+ const adminGetApiRequestTrace = (options) => {
127
+ return (options.client ?? client).get({
128
+ security: [{
129
+ name: "x-api-key",
130
+ type: "apiKey"
131
+ }, {
132
+ scheme: "bearer",
133
+ type: "http"
134
+ }],
135
+ url: "/v1/admin/observability/requests/{requestId}/trace",
136
+ ...options
137
+ });
138
+ };
139
+ /**
140
+ * MCP tool usage and performance (admin)
141
+ * Per-tool call counts, error rate, latency percentiles, and last-used time over a time window.
142
+ */
143
+ const adminGetMcpToolStats = (options) => {
144
+ return (options?.client ?? client).get({
145
+ security: [{
146
+ name: "x-api-key",
147
+ type: "apiKey"
148
+ }, {
149
+ scheme: "bearer",
150
+ type: "http"
151
+ }],
152
+ url: "/v1/admin/observability/mcp/tools",
153
+ ...options
154
+ });
155
+ };
156
+ /**
157
+ * List recent individual MCP tool calls (admin)
158
+ * Recent per-call MCP telemetry, newest first — the clickable feed behind the per-tool aggregates. Filter by tool, status, and time window.
159
+ */
160
+ const adminListMcpCalls = (options) => {
161
+ return (options?.client ?? client).get({
162
+ security: [{
163
+ name: "x-api-key",
164
+ type: "apiKey"
165
+ }, {
166
+ scheme: "bearer",
167
+ type: "http"
168
+ }],
169
+ url: "/v1/admin/observability/mcp/calls",
170
+ ...options
171
+ });
172
+ };
173
+ /**
174
+ * Alert decision counts by type and outcome (admin)
175
+ * Decision counts grouped by alert type and outcome (written / deduped / dry_run_match), over a window or scoped to one run via correlationId.
176
+ */
177
+ const adminGetAlertDecisionStats = (options) => {
178
+ return (options?.client ?? client).get({
179
+ security: [{
180
+ name: "x-api-key",
181
+ type: "apiKey"
182
+ }, {
183
+ scheme: "bearer",
184
+ type: "http"
185
+ }],
186
+ url: "/v1/admin/observability/alerts/stats",
187
+ ...options
188
+ });
189
+ };
190
+ /**
191
+ * List every evaluated alert decision (admin)
192
+ * The global alert feed across all users, newest first. Each row's outcome traces to its run via correlationId: a fire (written), a suppressed dupe (deduped), a dry-run preview (dry_run_match), or a configured user who got nothing — no_match (watched items scanned, none matched) / no_subjects (enabled but nothing to scan). Filter by type, outcome, user, workspace, run, or window.
193
+ */
194
+ const adminListAlertDecisions = (options) => {
195
+ return (options?.client ?? client).get({
196
+ security: [{
197
+ name: "x-api-key",
198
+ type: "apiKey"
199
+ }, {
200
+ scheme: "bearer",
201
+ type: "http"
202
+ }],
203
+ url: "/v1/admin/observability/alerts",
204
+ ...options
205
+ });
206
+ };
207
+ /**
4
208
  * Search agents with filters
209
+ * Search and list individual real-estate agents with filters — one row per agent. Filter by name, location (state, city, zip), brokerage/office, and production metrics (sales volume, transaction units, price range), with sorting and cursor pagination. LOCATION SEMANTICS: the state/city/zip filters match ANY of an agent's location signals — their listed city/state, their office address(es), AND the markets where they actually closed transactions (production) — combined with OR. So an agent matches a searched location if their office OR their production is there. A search for city "Long Beach" can therefore return agents whose office or displayed primary market is in a different city/state, because they transacted in Long Beach. The `state`/`city` returned on each row reflect the agent's primary market and may differ from the searched location. (Use the `office` filter to match by brokerage/office name, and the per-agent city/county/state breakdown endpoints to rank an agent's volume within a specific market.) This is the per-agent record search: use it to find specific real-estate agents or build a filtered agent list. (For a single agent by ID use the agent detail endpoint.)
5
210
  */
6
211
  const listAgents = (options) => {
7
212
  return (options?.client ?? client).post({
@@ -538,8 +743,61 @@ const getAlertUnreadCount = (options) => {
538
743
  });
539
744
  };
540
745
  /**
746
+ * List your alert digests (newest first)
747
+ */
748
+ const listAlertDigests = (options) => {
749
+ return (options?.client ?? client).get({
750
+ security: [{
751
+ name: "x-api-key",
752
+ type: "apiKey"
753
+ }, {
754
+ scheme: "bearer",
755
+ type: "http"
756
+ }],
757
+ url: "/v1/alerts/digests",
758
+ ...options
759
+ });
760
+ };
761
+ /**
762
+ * Mark one digest read
763
+ */
764
+ const markAlertDigestRead = (options) => {
765
+ return (options.client ?? client).post({
766
+ security: [{
767
+ name: "x-api-key",
768
+ type: "apiKey"
769
+ }, {
770
+ scheme: "bearer",
771
+ type: "http"
772
+ }],
773
+ url: "/v1/alerts/digests/{id}/read",
774
+ ...options
775
+ });
776
+ };
777
+ /**
778
+ * Preview the alerts that would fire for you
779
+ * Runs all six detectors scoped to your own token, in-process and synchronously, as a dry-run: returns the alerts that WOULD fire (per detector, with the decision payloads) without writing the feed, publishing events, or sending email.
780
+ */
781
+ const previewAlerts = (options) => {
782
+ return (options?.client ?? client).post({
783
+ security: [{
784
+ name: "x-api-key",
785
+ type: "apiKey"
786
+ }, {
787
+ scheme: "bearer",
788
+ type: "http"
789
+ }],
790
+ url: "/v1/alerts/preview",
791
+ ...options,
792
+ headers: {
793
+ "Content-Type": "application/json",
794
+ ...options?.headers
795
+ }
796
+ });
797
+ };
798
+ /**
541
799
  * Search branches with filters
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.
800
+ * 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 carries branch-level production metrics for the selected period.
543
801
  */
544
802
  const listBranches = (options) => {
545
803
  return (options?.client ?? client).post({
@@ -560,7 +818,7 @@ const listBranches = (options) => {
560
818
  };
561
819
  /**
562
820
  * Get branch by NMLS ID
563
- * Retrieve full details for a single NMLS mortgage branch including name, address, parent company, managers, trade names, and licensing.
821
+ * Retrieve full details for a single NMLS mortgage branch including name, address, parent company, managers, trade names, licensing, and branch-level production for the selected period.
564
822
  */
565
823
  const getBranch = (options) => {
566
824
  return (options.client ?? client).get({
@@ -614,6 +872,7 @@ const getBranchesBulkDeliveryJob = (options) => {
614
872
  };
615
873
  /**
616
874
  * Search companies with filters
875
+ * Search and list individual mortgage companies with filters — one row per company. Filter by name, NMLS ID, location (state, county, city, zip), and production metrics (loan volume, units, market share) by period and geography, with sorting and cursor pagination. This is the per-company record search: use it to find specific mortgage lenders/companies or build a filtered company list. (For a single company by ID use the company detail endpoint.)
617
876
  */
618
877
  const listCompanies = (options) => {
619
878
  return (options?.client ?? client).post({
@@ -965,6 +1224,7 @@ const getSearchToken = (options) => {
965
1224
  };
966
1225
  /**
967
1226
  * Search lenders with filters
1227
+ * Search and list normalized lender names/identities with filters — resolves raw or variant lender names to canonical lender records. Use it to look up a lender by name or reconcile lender-name variants to a single canonical entity.
968
1228
  */
969
1229
  const listLenders = (options) => {
970
1230
  return (options?.client ?? client).post({
@@ -1000,7 +1260,8 @@ const getLender = (options) => {
1000
1260
  });
1001
1261
  };
1002
1262
  /**
1003
- * Search loans with filters
1263
+ * Search individual loan records with filters
1264
+ * Search and list individual public-record mortgage and deed loan records — one row per loan (purchase, refinance, origination). Filter by geography (state, county, city, zip), lender, originator, loan amount, interest rate, loan type/purpose, and recording date, with sorting and cursor pagination. This is the discrete per-loan record search: use it to find specific loans or build a filtered loan list. (For aggregate market rates and volumes use the market search; for one loan by its ID use the loan detail endpoint.)
1004
1265
  */
1005
1266
  const listLoans = (options) => {
1006
1267
  return (options?.client ?? client).post({
@@ -1269,7 +1530,7 @@ const officeAgents = (options) => {
1269
1530
  };
1270
1531
  /**
1271
1532
  * Search real-estate offices with filters
1272
- * NOT NMLS mortgage branches — use `/branches` for those. Returns office company, address, agent count, and coordinates. Default sort is by agent count descending.
1533
+ * NOT NMLS mortgage branches — use `/branches` for those. Returns office name, address, agent count, coordinates, and office-level production for the selected period. Default sort is by agent count descending.
1273
1534
  */
1274
1535
  const listOffices = (options) => {
1275
1536
  return (options?.client ?? client).post({
@@ -1289,7 +1550,7 @@ const listOffices = (options) => {
1289
1550
  });
1290
1551
  };
1291
1552
  /**
1292
- * Get office by ID with best-effort production enrichment
1553
+ * Get office by key with office-level production
1293
1554
  */
1294
1555
  const getOffice = (options) => {
1295
1556
  return (options.client ?? client).get({
@@ -1306,6 +1567,7 @@ const getOffice = (options) => {
1306
1567
  };
1307
1568
  /**
1308
1569
  * Search originators with filters
1570
+ * Search and list individual loan originators (LOs — NMLS-registered mortgage loan officers) with filters — one row per originator. Filter by name, NMLS ID, location (state, city), employer/company, and production metrics (loan volume, units, product mix), with sorting and cursor pagination. LOCATION SEMANTICS: the state/city filters match an originator's PRODUCTION GEOGRAPHY — the markets where they actually originated loans in the selected period — not where their office or employer sits. An LO who lends across several markets matches a filter for ANY of those markets, while the `state`/`city` returned on each row reflect only their PRIMARY (highest-volume) market. So a search for city "Long Beach" can return an LO whose displayed location is a different city/state (e.g. their top market is in Arizona) — they still originated loans in Long Beach, it just isn't their #1 market. To rank originators by their volume within a specific market, sort by volume after filtering, or use the per-originator city/county/state breakdown endpoints. This is the per-originator record search: use it to find specific loan officers or build a filtered LO list. (For a single originator by NMLS ID use the originator detail endpoint.)
1309
1571
  */
1310
1572
  const listOriginators = (options) => {
1311
1573
  return (options?.client ?? client).post({
@@ -1671,6 +1933,27 @@ const enrichProperty = (options) => {
1671
1933
  });
1672
1934
  };
1673
1935
  /**
1936
+ * Enrich several properties with owner contact info in one request
1937
+ * Looks up owner contact information for up to 50 properties in a single synchronous request. Each id is resolved independently and returned in the `results` array with its own status — a bad id never fails the batch. Each match debits one credit; cache hits and no-matches are free. For larger sets use the asynchronous bulk job.
1938
+ */
1939
+ const enrichPropertiesBatch = (options) => {
1940
+ return (options?.client ?? client).post({
1941
+ security: [{
1942
+ name: "x-api-key",
1943
+ type: "apiKey"
1944
+ }, {
1945
+ scheme: "bearer",
1946
+ type: "http"
1947
+ }],
1948
+ url: "/v1/properties/enrich",
1949
+ ...options,
1950
+ headers: {
1951
+ "Content-Type": "application/json",
1952
+ ...options?.headers
1953
+ }
1954
+ });
1955
+ };
1956
+ /**
1674
1957
  * Submit a bulk skip-trace job
1675
1958
  * 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.
1676
1959
  */
@@ -1709,6 +1992,7 @@ const getEnrichBulkJob = (options) => {
1709
1992
  };
1710
1993
  /**
1711
1994
  * Search properties with filters
1995
+ * Search and list individual properties/parcels with filters — one row per parcel. Filter by location (state, county, city, zip, address), owner name, property characteristics (beds, baths, square footage, year built, property type), value, and ownership or transaction history, with sorting and cursor pagination. This is the discrete per-property record search: use it to find specific properties or build a filtered property list. (For a single property by its ID use the property detail endpoint.)
1712
1996
  */
1713
1997
  const listProperties = (options) => {
1714
1998
  return (options?.client ?? client).post({
@@ -1821,7 +2105,25 @@ const getPropertiesBulkDeliveryJob = (options) => {
1821
2105
  });
1822
2106
  };
1823
2107
  /**
2108
+ * Get realtime connection config
2109
+ * 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.
2110
+ */
2111
+ const getRealtimeConfig = (options) => {
2112
+ return (options?.client ?? client).get({
2113
+ security: [{
2114
+ name: "x-api-key",
2115
+ type: "apiKey"
2116
+ }, {
2117
+ scheme: "bearer",
2118
+ type: "http"
2119
+ }],
2120
+ url: "/v1/realtime/config",
2121
+ ...options
2122
+ });
2123
+ };
2124
+ /**
1824
2125
  * Search sales with filters
2126
+ * Search and list individual real-estate sale transactions and active listings with filters — one row per sale/listing. Filter by location (state, county, city, zip), sale price, sale or listing date, property characteristics (beds, baths, square footage, property type), and listing status, with sorting and cursor pagination. This is the discrete per-transaction sales-record search: use it to find specific sales or build a filtered list of sold/active listings.
1825
2127
  */
1826
2128
  const listSales = (options) => {
1827
2129
  return (options?.client ?? client).post({
@@ -1916,5 +2218,673 @@ const salesAnalyticsChart = (options) => {
1916
2218
  }
1917
2219
  });
1918
2220
  };
2221
+ /**
2222
+ * Search agents with filters
2223
+ * Search and list individual real-estate agents with filters — one row per agent. Filter by name, location (state, city, zip), brokerage/office, and production metrics (sales volume, transaction units, price range), with sorting and cursor pagination. LOCATION SEMANTICS: the state/city/zip filters match ANY of an agent's location signals — their listed city/state, their office address(es), AND the markets where they actually closed transactions (production) — combined with OR. So an agent matches a searched location if their office OR their production is there. A search for city "Long Beach" can therefore return agents whose office or displayed primary market is in a different city/state, because they transacted in Long Beach. The `state`/`city` returned on each row reflect the agent's primary market and may differ from the searched location. (Use the `office` filter to match by brokerage/office name, and the per-agent city/county/state breakdown endpoints to rank an agent's volume within a specific market.) This is the per-agent record search: use it to find specific real-estate agents or build a filtered agent list. (For a single agent by ID use the agent detail endpoint.)
2224
+ */
2225
+ const listAgents2 = (options) => {
2226
+ return (options?.client ?? client).post({
2227
+ security: [{
2228
+ name: "x-api-key",
2229
+ type: "apiKey"
2230
+ }, {
2231
+ scheme: "bearer",
2232
+ type: "http"
2233
+ }],
2234
+ url: "/agents",
2235
+ ...options,
2236
+ headers: {
2237
+ "Content-Type": "application/json",
2238
+ ...options?.headers
2239
+ }
2240
+ });
2241
+ };
2242
+ /**
2243
+ * Get agent by ID (with legacy_mma_ids fallback)
2244
+ */
2245
+ const getAgent2 = (options) => {
2246
+ return (options.client ?? client).get({
2247
+ security: [{
2248
+ name: "x-api-key",
2249
+ type: "apiKey"
2250
+ }, {
2251
+ scheme: "bearer",
2252
+ type: "http"
2253
+ }],
2254
+ url: "/agents/{id}",
2255
+ ...options
2256
+ });
2257
+ };
2258
+ /**
2259
+ * Production summary with buyer/seller/dual split + previous period
2260
+ */
2261
+ const agentAnalyticsSummary2 = (options) => {
2262
+ return (options?.client ?? client).post({
2263
+ security: [{
2264
+ name: "x-api-key",
2265
+ type: "apiKey"
2266
+ }, {
2267
+ scheme: "bearer",
2268
+ type: "http"
2269
+ }],
2270
+ url: "/agents/analytics/summary",
2271
+ ...options,
2272
+ headers: {
2273
+ "Content-Type": "application/json",
2274
+ ...options?.headers
2275
+ }
2276
+ });
2277
+ };
2278
+ /**
2279
+ * Agent volume/units over time with buyer/seller/dual split
2280
+ */
2281
+ const agentAnalyticsTimeSeries2 = (options) => {
2282
+ return (options?.client ?? client).post({
2283
+ security: [{
2284
+ name: "x-api-key",
2285
+ type: "apiKey"
2286
+ }, {
2287
+ scheme: "bearer",
2288
+ type: "http"
2289
+ }],
2290
+ url: "/agents/analytics/time-series",
2291
+ ...options,
2292
+ headers: {
2293
+ "Content-Type": "application/json",
2294
+ ...options?.headers
2295
+ }
2296
+ });
2297
+ };
2298
+ /**
2299
+ * Configurable chart (measure × slice) over the agent's sales
2300
+ */
2301
+ const agentAnalyticsChart2 = (options) => {
2302
+ return (options?.client ?? client).post({
2303
+ security: [{
2304
+ name: "x-api-key",
2305
+ type: "apiKey"
2306
+ }, {
2307
+ scheme: "bearer",
2308
+ type: "http"
2309
+ }],
2310
+ url: "/agents/analytics/chart",
2311
+ ...options,
2312
+ headers: {
2313
+ "Content-Type": "application/json",
2314
+ ...options?.headers
2315
+ }
2316
+ });
2317
+ };
2318
+ /**
2319
+ * Sales transactions where this agent was listing or selling side
2320
+ */
2321
+ const agentSales2 = (options) => {
2322
+ return (options.client ?? client).post({
2323
+ security: [{
2324
+ name: "x-api-key",
2325
+ type: "apiKey"
2326
+ }, {
2327
+ scheme: "bearer",
2328
+ type: "http"
2329
+ }],
2330
+ url: "/agents/{id}/sales",
2331
+ ...options,
2332
+ headers: {
2333
+ "Content-Type": "application/json",
2334
+ ...options?.headers
2335
+ }
2336
+ });
2337
+ };
2338
+ /**
2339
+ * Properties this agent has transacted on
2340
+ */
2341
+ const agentProperties2 = (options) => {
2342
+ return (options.client ?? client).post({
2343
+ security: [{
2344
+ name: "x-api-key",
2345
+ type: "apiKey"
2346
+ }, {
2347
+ scheme: "bearer",
2348
+ type: "http"
2349
+ }],
2350
+ url: "/agents/{id}/properties",
2351
+ ...options,
2352
+ headers: {
2353
+ "Content-Type": "application/json",
2354
+ ...options?.headers
2355
+ }
2356
+ });
2357
+ };
2358
+ /**
2359
+ * Listing offices the agent has closed through
2360
+ */
2361
+ const agentOffices2 = (options) => {
2362
+ return (options.client ?? client).post({
2363
+ security: [{
2364
+ name: "x-api-key",
2365
+ type: "apiKey"
2366
+ }, {
2367
+ scheme: "bearer",
2368
+ type: "http"
2369
+ }],
2370
+ url: "/agents/{id}/breakdowns/offices",
2371
+ ...options,
2372
+ headers: {
2373
+ "Content-Type": "application/json",
2374
+ ...options?.headers
2375
+ }
2376
+ });
2377
+ };
2378
+ /**
2379
+ * City volume breakdown across the agent's sales
2380
+ */
2381
+ const agentCities2 = (options) => {
2382
+ return (options.client ?? client).post({
2383
+ security: [{
2384
+ name: "x-api-key",
2385
+ type: "apiKey"
2386
+ }, {
2387
+ scheme: "bearer",
2388
+ type: "http"
2389
+ }],
2390
+ url: "/agents/{id}/breakdowns/cities",
2391
+ ...options,
2392
+ headers: {
2393
+ "Content-Type": "application/json",
2394
+ ...options?.headers
2395
+ }
2396
+ });
2397
+ };
2398
+ /**
2399
+ * County (FIPS) volume breakdown
2400
+ */
2401
+ const agentCounties2 = (options) => {
2402
+ return (options.client ?? client).post({
2403
+ security: [{
2404
+ name: "x-api-key",
2405
+ type: "apiKey"
2406
+ }, {
2407
+ scheme: "bearer",
2408
+ type: "http"
2409
+ }],
2410
+ url: "/agents/{id}/breakdowns/counties",
2411
+ ...options,
2412
+ headers: {
2413
+ "Content-Type": "application/json",
2414
+ ...options?.headers
2415
+ }
2416
+ });
2417
+ };
2418
+ /**
2419
+ * State volume breakdown
2420
+ */
2421
+ const agentStates2 = (options) => {
2422
+ return (options.client ?? client).post({
2423
+ security: [{
2424
+ name: "x-api-key",
2425
+ type: "apiKey"
2426
+ }, {
2427
+ scheme: "bearer",
2428
+ type: "http"
2429
+ }],
2430
+ url: "/agents/{id}/breakdowns/states",
2431
+ ...options,
2432
+ headers: {
2433
+ "Content-Type": "application/json",
2434
+ ...options?.headers
2435
+ }
2436
+ });
2437
+ };
2438
+ /**
2439
+ * Zip-code volume breakdown
2440
+ */
2441
+ const agentZipCodes2 = (options) => {
2442
+ return (options.client ?? client).post({
2443
+ security: [{
2444
+ name: "x-api-key",
2445
+ type: "apiKey"
2446
+ }, {
2447
+ scheme: "bearer",
2448
+ type: "http"
2449
+ }],
2450
+ url: "/agents/{id}/breakdowns/zip-codes",
2451
+ ...options,
2452
+ headers: {
2453
+ "Content-Type": "application/json",
2454
+ ...options?.headers
2455
+ }
2456
+ });
2457
+ };
2458
+ /**
2459
+ * Loan officers the agent worked with (pre-aggregated)
2460
+ */
2461
+ const agentOriginators2 = (options) => {
2462
+ return (options.client ?? client).post({
2463
+ security: [{
2464
+ name: "x-api-key",
2465
+ type: "apiKey"
2466
+ }, {
2467
+ scheme: "bearer",
2468
+ type: "http"
2469
+ }],
2470
+ url: "/agents/{id}/breakdowns/originators",
2471
+ ...options,
2472
+ headers: {
2473
+ "Content-Type": "application/json",
2474
+ ...options?.headers
2475
+ }
2476
+ });
2477
+ };
2478
+ /**
2479
+ * Mortgage companies the agent dealt with (pre-aggregated)
2480
+ */
2481
+ const agentCompanies2 = (options) => {
2482
+ return (options.client ?? client).post({
2483
+ security: [{
2484
+ name: "x-api-key",
2485
+ type: "apiKey"
2486
+ }, {
2487
+ scheme: "bearer",
2488
+ type: "http"
2489
+ }],
2490
+ url: "/agents/{id}/breakdowns/companies",
2491
+ ...options,
2492
+ headers: {
2493
+ "Content-Type": "application/json",
2494
+ ...options?.headers
2495
+ }
2496
+ });
2497
+ };
2498
+ /**
2499
+ * Raw-name lenders encountered (pre-aggregated)
2500
+ */
2501
+ const agentLenders2 = (options) => {
2502
+ return (options.client ?? client).post({
2503
+ security: [{
2504
+ name: "x-api-key",
2505
+ type: "apiKey"
2506
+ }, {
2507
+ scheme: "bearer",
2508
+ type: "http"
2509
+ }],
2510
+ url: "/agents/{id}/breakdowns/lenders",
2511
+ ...options,
2512
+ headers: {
2513
+ "Content-Type": "application/json",
2514
+ ...options?.headers
2515
+ }
2516
+ });
2517
+ };
2518
+ /**
2519
+ * Submit a bulk-delivery job for agents
2520
+ * 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.
2521
+ */
2522
+ const submitAgentsBulkDelivery2 = (options) => {
2523
+ return (options?.client ?? client).post({
2524
+ security: [{
2525
+ name: "x-api-key",
2526
+ type: "apiKey"
2527
+ }, {
2528
+ scheme: "bearer",
2529
+ type: "http"
2530
+ }],
2531
+ url: "/agents/bulk-delivery",
2532
+ ...options,
2533
+ headers: {
2534
+ "Content-Type": "application/json",
2535
+ ...options?.headers
2536
+ }
2537
+ });
2538
+ };
2539
+ /**
2540
+ * Get bulk-delivery job status for agents
2541
+ */
2542
+ const getAgentsBulkDeliveryJob2 = (options) => {
2543
+ return (options.client ?? client).get({
2544
+ security: [{
2545
+ name: "x-api-key",
2546
+ type: "apiKey"
2547
+ }, {
2548
+ scheme: "bearer",
2549
+ type: "http"
2550
+ }],
2551
+ url: "/agents/bulk-delivery/{jobId}",
2552
+ ...options
2553
+ });
2554
+ };
2555
+ /**
2556
+ * Search originators with filters
2557
+ * Search and list individual loan originators (LOs — NMLS-registered mortgage loan officers) with filters — one row per originator. Filter by name, NMLS ID, location (state, city), employer/company, and production metrics (loan volume, units, product mix), with sorting and cursor pagination. LOCATION SEMANTICS: the state/city filters match an originator's PRODUCTION GEOGRAPHY — the markets where they actually originated loans in the selected period — not where their office or employer sits. An LO who lends across several markets matches a filter for ANY of those markets, while the `state`/`city` returned on each row reflect only their PRIMARY (highest-volume) market. So a search for city "Long Beach" can return an LO whose displayed location is a different city/state (e.g. their top market is in Arizona) — they still originated loans in Long Beach, it just isn't their #1 market. To rank originators by their volume within a specific market, sort by volume after filtering, or use the per-originator city/county/state breakdown endpoints. This is the per-originator record search: use it to find specific loan officers or build a filtered LO list. (For a single originator by NMLS ID use the originator detail endpoint.)
2558
+ */
2559
+ const listOriginators2 = (options) => {
2560
+ return (options?.client ?? client).post({
2561
+ security: [{
2562
+ name: "x-api-key",
2563
+ type: "apiKey"
2564
+ }, {
2565
+ scheme: "bearer",
2566
+ type: "http"
2567
+ }],
2568
+ url: "/originators",
2569
+ ...options,
2570
+ headers: {
2571
+ "Content-Type": "application/json",
2572
+ ...options?.headers
2573
+ }
2574
+ });
2575
+ };
2576
+ /**
2577
+ * Get originator by NMLS ID
2578
+ */
2579
+ const getOriginator2 = (options) => {
2580
+ return (options.client ?? client).get({
2581
+ security: [{
2582
+ name: "x-api-key",
2583
+ type: "apiKey"
2584
+ }, {
2585
+ scheme: "bearer",
2586
+ type: "http"
2587
+ }],
2588
+ url: "/originators/{nmlsId}",
2589
+ ...options
2590
+ });
2591
+ };
2592
+ /**
2593
+ * Production summary with previous-period comparison
2594
+ */
2595
+ const originatorAnalyticsSummary2 = (options) => {
2596
+ return (options?.client ?? client).post({
2597
+ security: [{
2598
+ name: "x-api-key",
2599
+ type: "apiKey"
2600
+ }, {
2601
+ scheme: "bearer",
2602
+ type: "http"
2603
+ }],
2604
+ url: "/originators/analytics/summary",
2605
+ ...options,
2606
+ headers: {
2607
+ "Content-Type": "application/json",
2608
+ ...options?.headers
2609
+ }
2610
+ });
2611
+ };
2612
+ /**
2613
+ * Originator volume / units over time
2614
+ */
2615
+ const originatorAnalyticsTimeSeries2 = (options) => {
2616
+ return (options?.client ?? client).post({
2617
+ security: [{
2618
+ name: "x-api-key",
2619
+ type: "apiKey"
2620
+ }, {
2621
+ scheme: "bearer",
2622
+ type: "http"
2623
+ }],
2624
+ url: "/originators/analytics/time-series",
2625
+ ...options,
2626
+ headers: {
2627
+ "Content-Type": "application/json",
2628
+ ...options?.headers
2629
+ }
2630
+ });
2631
+ };
2632
+ /**
2633
+ * Configurable chart (measure × slice) over one LO's loans
2634
+ */
2635
+ const originatorAnalyticsChart2 = (options) => {
2636
+ return (options?.client ?? client).post({
2637
+ security: [{
2638
+ name: "x-api-key",
2639
+ type: "apiKey"
2640
+ }, {
2641
+ scheme: "bearer",
2642
+ type: "http"
2643
+ }],
2644
+ url: "/originators/analytics/chart",
2645
+ ...options,
2646
+ headers: {
2647
+ "Content-Type": "application/json",
2648
+ ...options?.headers
2649
+ }
2650
+ });
2651
+ };
2652
+ /**
2653
+ * Loans originated by this LO
2654
+ */
2655
+ const originatorLoans2 = (options) => {
2656
+ return (options.client ?? client).post({
2657
+ security: [{
2658
+ name: "x-api-key",
2659
+ type: "apiKey"
2660
+ }, {
2661
+ scheme: "bearer",
2662
+ type: "http"
2663
+ }],
2664
+ url: "/originators/{nmlsId}/loans",
2665
+ ...options,
2666
+ headers: {
2667
+ "Content-Type": "application/json",
2668
+ ...options?.headers
2669
+ }
2670
+ });
2671
+ };
2672
+ /**
2673
+ * Real-estate agents this LO co-closed with
2674
+ */
2675
+ const originatorAgents2 = (options) => {
2676
+ return (options.client ?? client).post({
2677
+ security: [{
2678
+ name: "x-api-key",
2679
+ type: "apiKey"
2680
+ }, {
2681
+ scheme: "bearer",
2682
+ type: "http"
2683
+ }],
2684
+ url: "/originators/{nmlsId}/breakdowns/agents",
2685
+ ...options,
2686
+ headers: {
2687
+ "Content-Type": "application/json",
2688
+ ...options?.headers
2689
+ }
2690
+ });
2691
+ };
2692
+ /**
2693
+ * Funding companies (employer history) for this LO
2694
+ */
2695
+ const originatorCompanies2 = (options) => {
2696
+ return (options.client ?? client).post({
2697
+ security: [{
2698
+ name: "x-api-key",
2699
+ type: "apiKey"
2700
+ }, {
2701
+ scheme: "bearer",
2702
+ type: "http"
2703
+ }],
2704
+ url: "/originators/{nmlsId}/breakdowns/companies",
2705
+ ...options,
2706
+ headers: {
2707
+ "Content-Type": "application/json",
2708
+ ...options?.headers
2709
+ }
2710
+ });
2711
+ };
2712
+ /**
2713
+ * Lenders this LO has originated through
2714
+ */
2715
+ const originatorLenders2 = (options) => {
2716
+ return (options.client ?? client).post({
2717
+ security: [{
2718
+ name: "x-api-key",
2719
+ type: "apiKey"
2720
+ }, {
2721
+ scheme: "bearer",
2722
+ type: "http"
2723
+ }],
2724
+ url: "/originators/{nmlsId}/breakdowns/lenders",
2725
+ ...options,
2726
+ headers: {
2727
+ "Content-Type": "application/json",
2728
+ ...options?.headers
2729
+ }
2730
+ });
2731
+ };
2732
+ /**
2733
+ * Zip-code volume breakdown
2734
+ */
2735
+ const originatorZipCodes2 = (options) => {
2736
+ return (options.client ?? client).post({
2737
+ security: [{
2738
+ name: "x-api-key",
2739
+ type: "apiKey"
2740
+ }, {
2741
+ scheme: "bearer",
2742
+ type: "http"
2743
+ }],
2744
+ url: "/originators/{nmlsId}/breakdowns/zip-codes",
2745
+ ...options,
2746
+ headers: {
2747
+ "Content-Type": "application/json",
2748
+ ...options?.headers
2749
+ }
2750
+ });
2751
+ };
2752
+ /**
2753
+ * Branch (broker) history for this LO
2754
+ */
2755
+ const originatorBranches2 = (options) => {
2756
+ return (options.client ?? client).post({
2757
+ security: [{
2758
+ name: "x-api-key",
2759
+ type: "apiKey"
2760
+ }, {
2761
+ scheme: "bearer",
2762
+ type: "http"
2763
+ }],
2764
+ url: "/originators/{nmlsId}/breakdowns/branches",
2765
+ ...options,
2766
+ headers: {
2767
+ "Content-Type": "application/json",
2768
+ ...options?.headers
2769
+ }
2770
+ });
2771
+ };
2772
+ /**
2773
+ * Real-estate offices this LO closed through (with sponsoring company)
2774
+ */
2775
+ const originatorOffices2 = (options) => {
2776
+ return (options.client ?? client).post({
2777
+ security: [{
2778
+ name: "x-api-key",
2779
+ type: "apiKey"
2780
+ }, {
2781
+ scheme: "bearer",
2782
+ type: "http"
2783
+ }],
2784
+ url: "/originators/{nmlsId}/breakdowns/offices",
2785
+ ...options,
2786
+ headers: {
2787
+ "Content-Type": "application/json",
2788
+ ...options?.headers
2789
+ }
2790
+ });
2791
+ };
2792
+ /**
2793
+ * Per-city volume breakdown (pre-aggregated)
2794
+ */
2795
+ const originatorCitiesBreakdown2 = (options) => {
2796
+ return (options.client ?? client).post({
2797
+ security: [{
2798
+ name: "x-api-key",
2799
+ type: "apiKey"
2800
+ }, {
2801
+ scheme: "bearer",
2802
+ type: "http"
2803
+ }],
2804
+ url: "/originators/{nmlsId}/breakdowns/cities",
2805
+ ...options,
2806
+ headers: {
2807
+ "Content-Type": "application/json",
2808
+ ...options?.headers
2809
+ }
2810
+ });
2811
+ };
2812
+ /**
2813
+ * Per-county volume breakdown (pre-aggregated)
2814
+ */
2815
+ const originatorCountiesBreakdown2 = (options) => {
2816
+ return (options.client ?? client).post({
2817
+ security: [{
2818
+ name: "x-api-key",
2819
+ type: "apiKey"
2820
+ }, {
2821
+ scheme: "bearer",
2822
+ type: "http"
2823
+ }],
2824
+ url: "/originators/{nmlsId}/breakdowns/counties",
2825
+ ...options,
2826
+ headers: {
2827
+ "Content-Type": "application/json",
2828
+ ...options?.headers
2829
+ }
2830
+ });
2831
+ };
2832
+ /**
2833
+ * Per-state volume breakdown (pre-aggregated)
2834
+ */
2835
+ const originatorStatesBreakdown2 = (options) => {
2836
+ return (options.client ?? client).post({
2837
+ security: [{
2838
+ name: "x-api-key",
2839
+ type: "apiKey"
2840
+ }, {
2841
+ scheme: "bearer",
2842
+ type: "http"
2843
+ }],
2844
+ url: "/originators/{nmlsId}/breakdowns/states",
2845
+ ...options,
2846
+ headers: {
2847
+ "Content-Type": "application/json",
2848
+ ...options?.headers
2849
+ }
2850
+ });
2851
+ };
2852
+ /**
2853
+ * Submit a bulk-delivery job for originators
2854
+ * 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.
2855
+ */
2856
+ const submitOriginatorsBulkDelivery2 = (options) => {
2857
+ return (options?.client ?? client).post({
2858
+ security: [{
2859
+ name: "x-api-key",
2860
+ type: "apiKey"
2861
+ }, {
2862
+ scheme: "bearer",
2863
+ type: "http"
2864
+ }],
2865
+ url: "/originators/bulk-delivery",
2866
+ ...options,
2867
+ headers: {
2868
+ "Content-Type": "application/json",
2869
+ ...options?.headers
2870
+ }
2871
+ });
2872
+ };
2873
+ /**
2874
+ * Get bulk-delivery job status for originators
2875
+ */
2876
+ const getOriginatorsBulkDeliveryJob2 = (options) => {
2877
+ return (options.client ?? client).get({
2878
+ security: [{
2879
+ name: "x-api-key",
2880
+ type: "apiKey"
2881
+ }, {
2882
+ scheme: "bearer",
2883
+ type: "http"
2884
+ }],
2885
+ url: "/originators/bulk-delivery/{jobId}",
2886
+ ...options
2887
+ });
2888
+ };
1919
2889
  //#endregion
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 };
2890
+ export { client as _heyApiClient, addWatchedAgent, addWatchedArea, adminGetAlertDecisionStats, adminGetApiRequest, adminGetApiRequestStats, adminGetApiRequestTrace, adminGetBulkJob, adminGetMcpToolStats, adminGetObservabilityTrace, adminGetUnifiedTrace, adminListAlertDecisions, adminListApiRequests, adminListMcpCalls, adminListObservabilityRuns, agentAnalyticsChart, agentAnalyticsChart2, agentAnalyticsSummary, agentAnalyticsSummary2, agentAnalyticsTimeSeries, agentAnalyticsTimeSeries2, agentCities, agentCities2, agentCompanies, agentCompanies2, agentCounties, agentCounties2, agentLenders, agentLenders2, agentOffices, agentOffices2, agentOriginators, agentOriginators2, agentProperties, agentProperties2, agentSales, agentSales2, agentStates, agentStates2, agentZipCodes, agentZipCodes2, companyAnalyticsChart, companyAnalyticsSummary, companyAnalyticsTimeSeries, companyBranches, companyCities, companyCounties, companyLenders, companyOffices, companyOriginators, companySponsoredIndividuals, companySponsorshipMovement, companyStates, createClient, enrichPropertiesBatch, enrichPropertiesBulk, enrichProperty, getAgent, getAgent2, getAgentsBulkDeliveryJob, getAgentsBulkDeliveryJob2, getAlertConditions, getAlertUnreadCount, getBranch, getBranchesBulkDeliveryJob, getCompaniesBulkDeliveryJob, getCompany, getEnrichBulkJob, getLender, getLoan, getLoansBulkDeliveryJob, getOffice, getOriginator, getOriginator2, getOriginatorsBulkDeliveryJob, getOriginatorsBulkDeliveryJob2, getPropertiesBulkDeliveryJob, getProperty, getRealtimeConfig, getSale, getSearchToken, instantSearch, listAgents, listAgents2, listAlertDigests, listAlertLog, listBranches, listCompanies, listEnrichments, listLenders, listLoans, listMarket, listOffices, listOriginators, listOriginators2, listProperties, listSales, listWatchedAgents, listWatchedAreas, loansAnalyticsChart, loansAnalyticsSummary, loansAnalyticsTimeSeries, markAlertDigestRead, markAlertRead, markAllAlertsRead, marketAnalyticsChart, marketAnalyticsSummary, marketAnalyticsTimeSeries, officeAgents, originatorAgents, originatorAgents2, originatorAnalyticsChart, originatorAnalyticsChart2, originatorAnalyticsSummary, originatorAnalyticsSummary2, originatorAnalyticsTimeSeries, originatorAnalyticsTimeSeries2, originatorBranches, originatorBranches2, originatorCitiesBreakdown, originatorCitiesBreakdown2, originatorCompanies, originatorCompanies2, originatorCountiesBreakdown, originatorCountiesBreakdown2, originatorLenders, originatorLenders2, originatorLoans, originatorLoans2, originatorOffices, originatorOffices2, originatorStatesBreakdown, originatorStatesBreakdown2, originatorZipCodes, originatorZipCodes2, previewAlerts, propertiesAnalyticsChart, propertiesAnalyticsSummary, removeWatchedAgent, removeWatchedArea, retrieveLocation, salesAnalyticsChart, salesAnalyticsSummary, salesAnalyticsTimeSeries, submitAgentsBulkDelivery, submitAgentsBulkDelivery2, submitBranchesBulkDelivery, submitCompaniesBulkDelivery, submitLoansBulkDelivery, submitOriginatorsBulkDelivery, submitOriginatorsBulkDelivery2, submitPropertiesBulkDelivery, suggestLocations, updateAlertConditions };