@model-match/api 3.7.0 → 3.9.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.
- package/dist/{index-B_dYa7m6.d.mts → index-D8xvXyWF.d.mts} +7715 -2532
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/slim/index.d.mts +422 -73
- package/dist/slim/index.mjs +2010 -321
- package/dist/{src-CwTkvxPw.mjs → src-s-lb9hS_.mjs} +1932 -243
- package/openapi.json +20588 -6765
- package/package.json +2 -2
|
@@ -29,195 +29,6 @@ var AdminJobs = class {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
var AdminObservability = class {
|
|
33
|
-
/**
|
|
34
|
-
* List recent task runs (admin)
|
|
35
|
-
* Recent run traces across the background tasks, newest first, with status and duration. Filter by service, status, and time window.
|
|
36
|
-
*/
|
|
37
|
-
static adminListObservabilityRuns(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/admin/observability/runs",
|
|
47
|
-
...options
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Get the span waterfall for one run (admin)
|
|
52
|
-
* All spans for a run, paired into start/end with durations and the parent links needed to render the waterfall.
|
|
53
|
-
*/
|
|
54
|
-
static adminGetObservabilityTrace(options) {
|
|
55
|
-
return (options.client ?? client).get({
|
|
56
|
-
security: [{
|
|
57
|
-
name: "x-api-key",
|
|
58
|
-
type: "apiKey"
|
|
59
|
-
}, {
|
|
60
|
-
scheme: "bearer",
|
|
61
|
-
type: "http"
|
|
62
|
-
}],
|
|
63
|
-
url: "/v1/admin/observability/runs/{runId}/trace",
|
|
64
|
-
...options
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Get the full cross-platform trace for any anchor (admin)
|
|
69
|
-
* 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.
|
|
70
|
-
*/
|
|
71
|
-
static adminGetUnifiedTrace(options) {
|
|
72
|
-
return (options.client ?? client).get({
|
|
73
|
-
security: [{
|
|
74
|
-
name: "x-api-key",
|
|
75
|
-
type: "apiKey"
|
|
76
|
-
}, {
|
|
77
|
-
scheme: "bearer",
|
|
78
|
-
type: "http"
|
|
79
|
-
}],
|
|
80
|
-
url: "/v1/admin/observability/trace/{anchorId}",
|
|
81
|
-
...options
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* List recent API requests (admin)
|
|
86
|
-
* Recent per-request telemetry, newest first. Filter by route, method, status, actor kind, and time window.
|
|
87
|
-
*/
|
|
88
|
-
static adminListApiRequests(options) {
|
|
89
|
-
return (options?.client ?? client).get({
|
|
90
|
-
security: [{
|
|
91
|
-
name: "x-api-key",
|
|
92
|
-
type: "apiKey"
|
|
93
|
-
}, {
|
|
94
|
-
scheme: "bearer",
|
|
95
|
-
type: "http"
|
|
96
|
-
}],
|
|
97
|
-
url: "/v1/admin/observability/requests",
|
|
98
|
-
...options
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* API request trends and performance (admin)
|
|
103
|
-
* Volume, error rate, and latency percentiles over a time window — overall, per route, and bucketed over time.
|
|
104
|
-
*/
|
|
105
|
-
static adminGetApiRequestStats(options) {
|
|
106
|
-
return (options?.client ?? client).get({
|
|
107
|
-
security: [{
|
|
108
|
-
name: "x-api-key",
|
|
109
|
-
type: "apiKey"
|
|
110
|
-
}, {
|
|
111
|
-
scheme: "bearer",
|
|
112
|
-
type: "http"
|
|
113
|
-
}],
|
|
114
|
-
url: "/v1/admin/observability/requests/stats",
|
|
115
|
-
...options
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Get one API request (admin)
|
|
120
|
-
* One request's full row, enriched with the MCP tool call that produced it when the request was MCP-originated.
|
|
121
|
-
*/
|
|
122
|
-
static adminGetApiRequest(options) {
|
|
123
|
-
return (options.client ?? client).get({
|
|
124
|
-
security: [{
|
|
125
|
-
name: "x-api-key",
|
|
126
|
-
type: "apiKey"
|
|
127
|
-
}, {
|
|
128
|
-
scheme: "bearer",
|
|
129
|
-
type: "http"
|
|
130
|
-
}],
|
|
131
|
-
url: "/v1/admin/observability/requests/{requestId}",
|
|
132
|
-
...options
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Get the span waterfall for one request (admin)
|
|
137
|
-
* Spans a request emitted (e.g. a search: filters → build query → fetch → shape). 404 when the request emitted no spans.
|
|
138
|
-
*/
|
|
139
|
-
static adminGetApiRequestTrace(options) {
|
|
140
|
-
return (options.client ?? client).get({
|
|
141
|
-
security: [{
|
|
142
|
-
name: "x-api-key",
|
|
143
|
-
type: "apiKey"
|
|
144
|
-
}, {
|
|
145
|
-
scheme: "bearer",
|
|
146
|
-
type: "http"
|
|
147
|
-
}],
|
|
148
|
-
url: "/v1/admin/observability/requests/{requestId}/trace",
|
|
149
|
-
...options
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* MCP tool usage and performance (admin)
|
|
154
|
-
* Per-tool call counts, error rate, latency percentiles, and last-used time over a time window.
|
|
155
|
-
*/
|
|
156
|
-
static adminGetMcpToolStats(options) {
|
|
157
|
-
return (options?.client ?? client).get({
|
|
158
|
-
security: [{
|
|
159
|
-
name: "x-api-key",
|
|
160
|
-
type: "apiKey"
|
|
161
|
-
}, {
|
|
162
|
-
scheme: "bearer",
|
|
163
|
-
type: "http"
|
|
164
|
-
}],
|
|
165
|
-
url: "/v1/admin/observability/mcp/tools",
|
|
166
|
-
...options
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* List recent individual MCP tool calls (admin)
|
|
171
|
-
* Recent per-call MCP telemetry, newest first — the clickable feed behind the per-tool aggregates. Filter by tool, status, and time window.
|
|
172
|
-
*/
|
|
173
|
-
static adminListMcpCalls(options) {
|
|
174
|
-
return (options?.client ?? client).get({
|
|
175
|
-
security: [{
|
|
176
|
-
name: "x-api-key",
|
|
177
|
-
type: "apiKey"
|
|
178
|
-
}, {
|
|
179
|
-
scheme: "bearer",
|
|
180
|
-
type: "http"
|
|
181
|
-
}],
|
|
182
|
-
url: "/v1/admin/observability/mcp/calls",
|
|
183
|
-
...options
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Alert decision counts by type and outcome (admin)
|
|
188
|
-
* Decision counts grouped by alert type and outcome (written / deduped / dry_run_match), over a window or scoped to one run via correlationId.
|
|
189
|
-
*/
|
|
190
|
-
static adminGetAlertDecisionStats(options) {
|
|
191
|
-
return (options?.client ?? client).get({
|
|
192
|
-
security: [{
|
|
193
|
-
name: "x-api-key",
|
|
194
|
-
type: "apiKey"
|
|
195
|
-
}, {
|
|
196
|
-
scheme: "bearer",
|
|
197
|
-
type: "http"
|
|
198
|
-
}],
|
|
199
|
-
url: "/v1/admin/observability/alerts/stats",
|
|
200
|
-
...options
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* List every evaluated alert decision (admin)
|
|
205
|
-
* 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.
|
|
206
|
-
*/
|
|
207
|
-
static adminListAlertDecisions(options) {
|
|
208
|
-
return (options?.client ?? client).get({
|
|
209
|
-
security: [{
|
|
210
|
-
name: "x-api-key",
|
|
211
|
-
type: "apiKey"
|
|
212
|
-
}, {
|
|
213
|
-
scheme: "bearer",
|
|
214
|
-
type: "http"
|
|
215
|
-
}],
|
|
216
|
-
url: "/v1/admin/observability/alerts",
|
|
217
|
-
...options
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
32
|
var Agents = class {
|
|
222
33
|
/**
|
|
223
34
|
* Search agents with filters
|
|
@@ -241,7 +52,7 @@ var Agents = class {
|
|
|
241
52
|
});
|
|
242
53
|
}
|
|
243
54
|
/**
|
|
244
|
-
* Get agent by ID
|
|
55
|
+
* Get agent by ID
|
|
245
56
|
*/
|
|
246
57
|
static get(options) {
|
|
247
58
|
return (options.client ?? client).get({
|
|
@@ -575,7 +386,7 @@ var Agents = class {
|
|
|
575
386
|
});
|
|
576
387
|
}
|
|
577
388
|
/**
|
|
578
|
-
* Get agent by ID
|
|
389
|
+
* Get agent by ID
|
|
579
390
|
*/
|
|
580
391
|
static getAgent2(options) {
|
|
581
392
|
return (options.client ?? client).get({
|
|
@@ -1030,6 +841,58 @@ var Alerts = class {
|
|
|
1030
841
|
});
|
|
1031
842
|
}
|
|
1032
843
|
/**
|
|
844
|
+
* List the documents you watch
|
|
845
|
+
*/
|
|
846
|
+
static listWatchedDocuments(options) {
|
|
847
|
+
return (options?.client ?? client).get({
|
|
848
|
+
security: [{
|
|
849
|
+
name: "x-api-key",
|
|
850
|
+
type: "apiKey"
|
|
851
|
+
}, {
|
|
852
|
+
scheme: "bearer",
|
|
853
|
+
type: "http"
|
|
854
|
+
}],
|
|
855
|
+
url: "/v1/alerts/watched-documents",
|
|
856
|
+
...options
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Watch a document
|
|
861
|
+
*/
|
|
862
|
+
static addWatchedDocument(options) {
|
|
863
|
+
return (options?.client ?? client).post({
|
|
864
|
+
security: [{
|
|
865
|
+
name: "x-api-key",
|
|
866
|
+
type: "apiKey"
|
|
867
|
+
}, {
|
|
868
|
+
scheme: "bearer",
|
|
869
|
+
type: "http"
|
|
870
|
+
}],
|
|
871
|
+
url: "/v1/alerts/watched-documents",
|
|
872
|
+
...options,
|
|
873
|
+
headers: {
|
|
874
|
+
"Content-Type": "application/json",
|
|
875
|
+
...options?.headers
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Stop watching a document
|
|
881
|
+
*/
|
|
882
|
+
static removeWatchedDocument(options) {
|
|
883
|
+
return (options.client ?? client).delete({
|
|
884
|
+
security: [{
|
|
885
|
+
name: "x-api-key",
|
|
886
|
+
type: "apiKey"
|
|
887
|
+
}, {
|
|
888
|
+
scheme: "bearer",
|
|
889
|
+
type: "http"
|
|
890
|
+
}],
|
|
891
|
+
url: "/v1/alerts/watched-documents/{documentType}/{documentId}",
|
|
892
|
+
...options
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
1033
896
|
* List your alerts (newest first)
|
|
1034
897
|
*/
|
|
1035
898
|
static listAlertLog(options) {
|
|
@@ -1403,6 +1266,26 @@ var Companies = class {
|
|
|
1403
1266
|
});
|
|
1404
1267
|
}
|
|
1405
1268
|
/**
|
|
1269
|
+
* Broker shops that originated loans funding through this company. For a wholesale/TPO lender this is its top broker partners.
|
|
1270
|
+
*/
|
|
1271
|
+
static brokers(options) {
|
|
1272
|
+
return (options.client ?? client).post({
|
|
1273
|
+
security: [{
|
|
1274
|
+
name: "x-api-key",
|
|
1275
|
+
type: "apiKey"
|
|
1276
|
+
}, {
|
|
1277
|
+
scheme: "bearer",
|
|
1278
|
+
type: "http"
|
|
1279
|
+
}],
|
|
1280
|
+
url: "/v1/companies/{nmlsId}/breakdowns/brokers",
|
|
1281
|
+
...options,
|
|
1282
|
+
headers: {
|
|
1283
|
+
"Content-Type": "application/json",
|
|
1284
|
+
...options?.headers
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1406
1289
|
* Broker offices this company originated through
|
|
1407
1290
|
*/
|
|
1408
1291
|
static offices(options) {
|
|
@@ -1540,12 +1423,27 @@ var Companies = class {
|
|
|
1540
1423
|
});
|
|
1541
1424
|
}
|
|
1542
1425
|
};
|
|
1543
|
-
var
|
|
1426
|
+
var Crm = class {
|
|
1544
1427
|
/**
|
|
1545
|
-
*
|
|
1546
|
-
* 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).
|
|
1428
|
+
* Find an existing CRM record by NMLS id
|
|
1547
1429
|
*/
|
|
1548
|
-
static
|
|
1430
|
+
static findCrmRecordByNmls(options) {
|
|
1431
|
+
return (options.client ?? client).get({
|
|
1432
|
+
security: [{
|
|
1433
|
+
name: "x-api-key",
|
|
1434
|
+
type: "apiKey"
|
|
1435
|
+
}, {
|
|
1436
|
+
scheme: "bearer",
|
|
1437
|
+
type: "http"
|
|
1438
|
+
}],
|
|
1439
|
+
url: "/v1/crm/records/by-nmls",
|
|
1440
|
+
...options
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Add a record to the CRM (and optionally a list)
|
|
1445
|
+
*/
|
|
1446
|
+
static addCrmRecord(options) {
|
|
1549
1447
|
return (options?.client ?? client).post({
|
|
1550
1448
|
security: [{
|
|
1551
1449
|
name: "x-api-key",
|
|
@@ -1554,7 +1452,7 @@ var Search = class {
|
|
|
1554
1452
|
scheme: "bearer",
|
|
1555
1453
|
type: "http"
|
|
1556
1454
|
}],
|
|
1557
|
-
url: "/v1/
|
|
1455
|
+
url: "/v1/crm/records/add",
|
|
1558
1456
|
...options,
|
|
1559
1457
|
headers: {
|
|
1560
1458
|
"Content-Type": "application/json",
|
|
@@ -1563,11 +1461,10 @@ var Search = class {
|
|
|
1563
1461
|
});
|
|
1564
1462
|
}
|
|
1565
1463
|
/**
|
|
1566
|
-
*
|
|
1567
|
-
* 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).
|
|
1464
|
+
* Remove one or more records from the CRM
|
|
1568
1465
|
*/
|
|
1569
|
-
static
|
|
1570
|
-
return (options?.client ?? client).
|
|
1466
|
+
static deleteCrmRecords(options) {
|
|
1467
|
+
return (options?.client ?? client).post({
|
|
1571
1468
|
security: [{
|
|
1572
1469
|
name: "x-api-key",
|
|
1573
1470
|
type: "apiKey"
|
|
@@ -1575,17 +1472,18 @@ var Search = class {
|
|
|
1575
1472
|
scheme: "bearer",
|
|
1576
1473
|
type: "http"
|
|
1577
1474
|
}],
|
|
1578
|
-
url: "/v1/
|
|
1579
|
-
...options
|
|
1475
|
+
url: "/v1/crm/records/delete",
|
|
1476
|
+
...options,
|
|
1477
|
+
headers: {
|
|
1478
|
+
"Content-Type": "application/json",
|
|
1479
|
+
...options?.headers
|
|
1480
|
+
}
|
|
1580
1481
|
});
|
|
1581
1482
|
}
|
|
1582
|
-
};
|
|
1583
|
-
var Lenders = class {
|
|
1584
1483
|
/**
|
|
1585
|
-
*
|
|
1586
|
-
* 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.
|
|
1484
|
+
* Create a manual (unmatched) CRM record
|
|
1587
1485
|
*/
|
|
1588
|
-
static
|
|
1486
|
+
static createCrmManualRecord(options) {
|
|
1589
1487
|
return (options?.client ?? client).post({
|
|
1590
1488
|
security: [{
|
|
1591
1489
|
name: "x-api-key",
|
|
@@ -1594,7 +1492,7 @@ var Lenders = class {
|
|
|
1594
1492
|
scheme: "bearer",
|
|
1595
1493
|
type: "http"
|
|
1596
1494
|
}],
|
|
1597
|
-
url: "/v1/
|
|
1495
|
+
url: "/v1/crm/records/create",
|
|
1598
1496
|
...options,
|
|
1599
1497
|
headers: {
|
|
1600
1498
|
"Content-Type": "application/json",
|
|
@@ -1603,10 +1501,10 @@ var Lenders = class {
|
|
|
1603
1501
|
});
|
|
1604
1502
|
}
|
|
1605
1503
|
/**
|
|
1606
|
-
*
|
|
1504
|
+
* Remove a record from the workspace CRM
|
|
1607
1505
|
*/
|
|
1608
|
-
static
|
|
1609
|
-
return (options.client ?? client).
|
|
1506
|
+
static deleteCrmRecord(options) {
|
|
1507
|
+
return (options.client ?? client).delete({
|
|
1610
1508
|
security: [{
|
|
1611
1509
|
name: "x-api-key",
|
|
1612
1510
|
type: "apiKey"
|
|
@@ -1614,18 +1512,15 @@ var Lenders = class {
|
|
|
1614
1512
|
scheme: "bearer",
|
|
1615
1513
|
type: "http"
|
|
1616
1514
|
}],
|
|
1617
|
-
url: "/v1/
|
|
1515
|
+
url: "/v1/crm/records",
|
|
1618
1516
|
...options
|
|
1619
1517
|
});
|
|
1620
1518
|
}
|
|
1621
|
-
};
|
|
1622
|
-
var Loans = class {
|
|
1623
1519
|
/**
|
|
1624
|
-
*
|
|
1625
|
-
* 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.)
|
|
1520
|
+
* (Re)assign a record's working owner
|
|
1626
1521
|
*/
|
|
1627
|
-
static
|
|
1628
|
-
return (options?.client ?? client).
|
|
1522
|
+
static setCrmRecordOwner(options) {
|
|
1523
|
+
return (options?.client ?? client).patch({
|
|
1629
1524
|
security: [{
|
|
1630
1525
|
name: "x-api-key",
|
|
1631
1526
|
type: "apiKey"
|
|
@@ -1633,7 +1528,7 @@ var Loans = class {
|
|
|
1633
1528
|
scheme: "bearer",
|
|
1634
1529
|
type: "http"
|
|
1635
1530
|
}],
|
|
1636
|
-
url: "/v1/
|
|
1531
|
+
url: "/v1/crm/records",
|
|
1637
1532
|
...options,
|
|
1638
1533
|
headers: {
|
|
1639
1534
|
"Content-Type": "application/json",
|
|
@@ -1642,10 +1537,1764 @@ var Loans = class {
|
|
|
1642
1537
|
});
|
|
1643
1538
|
}
|
|
1644
1539
|
/**
|
|
1645
|
-
*
|
|
1540
|
+
* Create (or refresh) a canonical record from a match
|
|
1646
1541
|
*/
|
|
1647
|
-
static
|
|
1648
|
-
return (options
|
|
1542
|
+
static createCrmRecord(options) {
|
|
1543
|
+
return (options?.client ?? client).post({
|
|
1544
|
+
security: [{
|
|
1545
|
+
name: "x-api-key",
|
|
1546
|
+
type: "apiKey"
|
|
1547
|
+
}, {
|
|
1548
|
+
scheme: "bearer",
|
|
1549
|
+
type: "http"
|
|
1550
|
+
}],
|
|
1551
|
+
url: "/v1/crm/records",
|
|
1552
|
+
...options,
|
|
1553
|
+
headers: {
|
|
1554
|
+
"Content-Type": "application/json",
|
|
1555
|
+
...options?.headers
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Free-text search over CRM records
|
|
1561
|
+
*/
|
|
1562
|
+
static searchCrmRecords(options) {
|
|
1563
|
+
return (options?.client ?? client).post({
|
|
1564
|
+
security: [{
|
|
1565
|
+
name: "x-api-key",
|
|
1566
|
+
type: "apiKey"
|
|
1567
|
+
}, {
|
|
1568
|
+
scheme: "bearer",
|
|
1569
|
+
type: "http"
|
|
1570
|
+
}],
|
|
1571
|
+
url: "/v1/crm/records/search",
|
|
1572
|
+
...options,
|
|
1573
|
+
headers: {
|
|
1574
|
+
"Content-Type": "application/json",
|
|
1575
|
+
...options?.headers
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Bulk add records to the canonical CRM (listless)
|
|
1581
|
+
*/
|
|
1582
|
+
static addCrmRecordsBulk(options) {
|
|
1583
|
+
return (options?.client ?? client).post({
|
|
1584
|
+
security: [{
|
|
1585
|
+
name: "x-api-key",
|
|
1586
|
+
type: "apiKey"
|
|
1587
|
+
}, {
|
|
1588
|
+
scheme: "bearer",
|
|
1589
|
+
type: "http"
|
|
1590
|
+
}],
|
|
1591
|
+
url: "/v1/crm/records/add/bulk",
|
|
1592
|
+
...options,
|
|
1593
|
+
headers: {
|
|
1594
|
+
"Content-Type": "application/json",
|
|
1595
|
+
...options?.headers
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Get an add-time production-enrich job's status
|
|
1601
|
+
*/
|
|
1602
|
+
static getCrmProductionEnrichJob(options) {
|
|
1603
|
+
return (options.client ?? client).get({
|
|
1604
|
+
security: [{
|
|
1605
|
+
name: "x-api-key",
|
|
1606
|
+
type: "apiKey"
|
|
1607
|
+
}, {
|
|
1608
|
+
scheme: "bearer",
|
|
1609
|
+
type: "http"
|
|
1610
|
+
}],
|
|
1611
|
+
url: "/v1/crm/production-enrich/{jobId}",
|
|
1612
|
+
...options
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Relationship cross-reference for a record (in-CRM partners + colleagues)
|
|
1617
|
+
*/
|
|
1618
|
+
static getCrmRecordConnections(options) {
|
|
1619
|
+
return (options?.client ?? client).post({
|
|
1620
|
+
security: [{
|
|
1621
|
+
name: "x-api-key",
|
|
1622
|
+
type: "apiKey"
|
|
1623
|
+
}, {
|
|
1624
|
+
scheme: "bearer",
|
|
1625
|
+
type: "http"
|
|
1626
|
+
}],
|
|
1627
|
+
url: "/v1/crm/records/connections",
|
|
1628
|
+
...options,
|
|
1629
|
+
headers: {
|
|
1630
|
+
"Content-Type": "application/json",
|
|
1631
|
+
...options?.headers
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Name-first search over visible CRM records for the mention picker
|
|
1637
|
+
*/
|
|
1638
|
+
static searchCrmMentionRecords(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/crm/records/mention-search",
|
|
1648
|
+
...options,
|
|
1649
|
+
headers: {
|
|
1650
|
+
"Content-Type": "application/json",
|
|
1651
|
+
...options?.headers
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Aggregate profile read for a CRM record
|
|
1657
|
+
*/
|
|
1658
|
+
static getCrmRecordProfile(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/crm/profile",
|
|
1668
|
+
...options
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* List curated CRM records of an object type
|
|
1673
|
+
*/
|
|
1674
|
+
static listCrmMembers(options) {
|
|
1675
|
+
return (options.client ?? client).get({
|
|
1676
|
+
security: [{
|
|
1677
|
+
name: "x-api-key",
|
|
1678
|
+
type: "apiKey"
|
|
1679
|
+
}, {
|
|
1680
|
+
scheme: "bearer",
|
|
1681
|
+
type: "http"
|
|
1682
|
+
}],
|
|
1683
|
+
url: "/v1/crm/members",
|
|
1684
|
+
...options
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* Batch-read record overrides
|
|
1689
|
+
*/
|
|
1690
|
+
static getCrmOverrides(options) {
|
|
1691
|
+
return (options.client ?? client).get({
|
|
1692
|
+
security: [{
|
|
1693
|
+
name: "x-api-key",
|
|
1694
|
+
type: "apiKey"
|
|
1695
|
+
}, {
|
|
1696
|
+
scheme: "bearer",
|
|
1697
|
+
type: "http"
|
|
1698
|
+
}],
|
|
1699
|
+
url: "/v1/crm/overrides",
|
|
1700
|
+
...options
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* Set a single override field on a record
|
|
1705
|
+
*/
|
|
1706
|
+
static setCrmOverride(options) {
|
|
1707
|
+
return (options?.client ?? client).patch({
|
|
1708
|
+
security: [{
|
|
1709
|
+
name: "x-api-key",
|
|
1710
|
+
type: "apiKey"
|
|
1711
|
+
}, {
|
|
1712
|
+
scheme: "bearer",
|
|
1713
|
+
type: "http"
|
|
1714
|
+
}],
|
|
1715
|
+
url: "/v1/crm/overrides",
|
|
1716
|
+
...options,
|
|
1717
|
+
headers: {
|
|
1718
|
+
"Content-Type": "application/json",
|
|
1719
|
+
...options?.headers
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
/**
|
|
1724
|
+
* Auto-generate a record's description from the web
|
|
1725
|
+
*/
|
|
1726
|
+
static generateCrmRecordDescription(options) {
|
|
1727
|
+
return (options?.client ?? client).post({
|
|
1728
|
+
security: [{
|
|
1729
|
+
name: "x-api-key",
|
|
1730
|
+
type: "apiKey"
|
|
1731
|
+
}, {
|
|
1732
|
+
scheme: "bearer",
|
|
1733
|
+
type: "http"
|
|
1734
|
+
}],
|
|
1735
|
+
url: "/v1/crm/records/generate-description",
|
|
1736
|
+
...options,
|
|
1737
|
+
headers: {
|
|
1738
|
+
"Content-Type": "application/json",
|
|
1739
|
+
...options?.headers
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
/**
|
|
1744
|
+
* List the caller's lists (picker mode with ?entityId adds hasMember)
|
|
1745
|
+
*/
|
|
1746
|
+
static listCrmLists(options) {
|
|
1747
|
+
return (options?.client ?? client).get({
|
|
1748
|
+
security: [{
|
|
1749
|
+
name: "x-api-key",
|
|
1750
|
+
type: "apiKey"
|
|
1751
|
+
}, {
|
|
1752
|
+
scheme: "bearer",
|
|
1753
|
+
type: "http"
|
|
1754
|
+
}],
|
|
1755
|
+
url: "/v1/crm/lists",
|
|
1756
|
+
...options
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* Create a list
|
|
1761
|
+
*/
|
|
1762
|
+
static createCrmList(options) {
|
|
1763
|
+
return (options?.client ?? client).post({
|
|
1764
|
+
security: [{
|
|
1765
|
+
name: "x-api-key",
|
|
1766
|
+
type: "apiKey"
|
|
1767
|
+
}, {
|
|
1768
|
+
scheme: "bearer",
|
|
1769
|
+
type: "http"
|
|
1770
|
+
}],
|
|
1771
|
+
url: "/v1/crm/lists",
|
|
1772
|
+
...options,
|
|
1773
|
+
headers: {
|
|
1774
|
+
"Content-Type": "application/json",
|
|
1775
|
+
...options?.headers
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Batched list-membership lookup for many entities
|
|
1781
|
+
*/
|
|
1782
|
+
static listCrmListMemberships(options) {
|
|
1783
|
+
return (options.client ?? client).get({
|
|
1784
|
+
security: [{
|
|
1785
|
+
name: "x-api-key",
|
|
1786
|
+
type: "apiKey"
|
|
1787
|
+
}, {
|
|
1788
|
+
scheme: "bearer",
|
|
1789
|
+
type: "http"
|
|
1790
|
+
}],
|
|
1791
|
+
url: "/v1/crm/lists/memberships",
|
|
1792
|
+
...options
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* Delete a list
|
|
1797
|
+
*/
|
|
1798
|
+
static deleteCrmList(options) {
|
|
1799
|
+
return (options.client ?? client).delete({
|
|
1800
|
+
security: [{
|
|
1801
|
+
name: "x-api-key",
|
|
1802
|
+
type: "apiKey"
|
|
1803
|
+
}, {
|
|
1804
|
+
scheme: "bearer",
|
|
1805
|
+
type: "http"
|
|
1806
|
+
}],
|
|
1807
|
+
url: "/v1/crm/lists/{id}",
|
|
1808
|
+
...options
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Get a list with its members
|
|
1813
|
+
*/
|
|
1814
|
+
static getCrmList(options) {
|
|
1815
|
+
return (options.client ?? client).get({
|
|
1816
|
+
security: [{
|
|
1817
|
+
name: "x-api-key",
|
|
1818
|
+
type: "apiKey"
|
|
1819
|
+
}, {
|
|
1820
|
+
scheme: "bearer",
|
|
1821
|
+
type: "http"
|
|
1822
|
+
}],
|
|
1823
|
+
url: "/v1/crm/lists/{id}",
|
|
1824
|
+
...options
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
/**
|
|
1828
|
+
* Update a list's name, visibility, or whole-org role
|
|
1829
|
+
*/
|
|
1830
|
+
static updateCrmList(options) {
|
|
1831
|
+
return (options.client ?? client).patch({
|
|
1832
|
+
security: [{
|
|
1833
|
+
name: "x-api-key",
|
|
1834
|
+
type: "apiKey"
|
|
1835
|
+
}, {
|
|
1836
|
+
scheme: "bearer",
|
|
1837
|
+
type: "http"
|
|
1838
|
+
}],
|
|
1839
|
+
url: "/v1/crm/lists/{id}",
|
|
1840
|
+
...options,
|
|
1841
|
+
headers: {
|
|
1842
|
+
"Content-Type": "application/json",
|
|
1843
|
+
...options?.headers
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Remove a member from a list
|
|
1849
|
+
*/
|
|
1850
|
+
static removeCrmListMember(options) {
|
|
1851
|
+
return (options.client ?? client).delete({
|
|
1852
|
+
security: [{
|
|
1853
|
+
name: "x-api-key",
|
|
1854
|
+
type: "apiKey"
|
|
1855
|
+
}, {
|
|
1856
|
+
scheme: "bearer",
|
|
1857
|
+
type: "http"
|
|
1858
|
+
}],
|
|
1859
|
+
url: "/v1/crm/lists/{id}/members",
|
|
1860
|
+
...options,
|
|
1861
|
+
headers: {
|
|
1862
|
+
"Content-Type": "application/json",
|
|
1863
|
+
...options?.headers
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Add a member to a list
|
|
1869
|
+
*/
|
|
1870
|
+
static addCrmListMember(options) {
|
|
1871
|
+
return (options.client ?? client).post({
|
|
1872
|
+
security: [{
|
|
1873
|
+
name: "x-api-key",
|
|
1874
|
+
type: "apiKey"
|
|
1875
|
+
}, {
|
|
1876
|
+
scheme: "bearer",
|
|
1877
|
+
type: "http"
|
|
1878
|
+
}],
|
|
1879
|
+
url: "/v1/crm/lists/{id}/members",
|
|
1880
|
+
...options,
|
|
1881
|
+
headers: {
|
|
1882
|
+
"Content-Type": "application/json",
|
|
1883
|
+
...options?.headers
|
|
1884
|
+
}
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Filter a list's members by entity attributes (read)
|
|
1889
|
+
*/
|
|
1890
|
+
static filterCrmListMembers(options) {
|
|
1891
|
+
return (options.client ?? client).post({
|
|
1892
|
+
security: [{
|
|
1893
|
+
name: "x-api-key",
|
|
1894
|
+
type: "apiKey"
|
|
1895
|
+
}, {
|
|
1896
|
+
scheme: "bearer",
|
|
1897
|
+
type: "http"
|
|
1898
|
+
}],
|
|
1899
|
+
url: "/v1/crm/lists/{id}/filter-members",
|
|
1900
|
+
...options,
|
|
1901
|
+
headers: {
|
|
1902
|
+
"Content-Type": "application/json",
|
|
1903
|
+
...options?.headers
|
|
1904
|
+
}
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Add many members to a list
|
|
1909
|
+
*/
|
|
1910
|
+
static addCrmListMembersBulk(options) {
|
|
1911
|
+
return (options.client ?? client).post({
|
|
1912
|
+
security: [{
|
|
1913
|
+
name: "x-api-key",
|
|
1914
|
+
type: "apiKey"
|
|
1915
|
+
}, {
|
|
1916
|
+
scheme: "bearer",
|
|
1917
|
+
type: "http"
|
|
1918
|
+
}],
|
|
1919
|
+
url: "/v1/crm/lists/{id}/members/bulk",
|
|
1920
|
+
...options,
|
|
1921
|
+
headers: {
|
|
1922
|
+
"Content-Type": "application/json",
|
|
1923
|
+
...options?.headers
|
|
1924
|
+
}
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* Revoke a member's access to a list
|
|
1929
|
+
*/
|
|
1930
|
+
static revokeCrmListAccess(options) {
|
|
1931
|
+
return (options.client ?? client).delete({
|
|
1932
|
+
security: [{
|
|
1933
|
+
name: "x-api-key",
|
|
1934
|
+
type: "apiKey"
|
|
1935
|
+
}, {
|
|
1936
|
+
scheme: "bearer",
|
|
1937
|
+
type: "http"
|
|
1938
|
+
}],
|
|
1939
|
+
url: "/v1/crm/lists/{id}/shares",
|
|
1940
|
+
...options,
|
|
1941
|
+
headers: {
|
|
1942
|
+
"Content-Type": "application/json",
|
|
1943
|
+
...options?.headers
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Get a list's sharing state (+ owner display, canManageSharing)
|
|
1949
|
+
*/
|
|
1950
|
+
static getCrmListShares(options) {
|
|
1951
|
+
return (options.client ?? client).get({
|
|
1952
|
+
security: [{
|
|
1953
|
+
name: "x-api-key",
|
|
1954
|
+
type: "apiKey"
|
|
1955
|
+
}, {
|
|
1956
|
+
scheme: "bearer",
|
|
1957
|
+
type: "http"
|
|
1958
|
+
}],
|
|
1959
|
+
url: "/v1/crm/lists/{id}/shares",
|
|
1960
|
+
...options
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Transfer a list's ownership to another member
|
|
1965
|
+
*/
|
|
1966
|
+
static transferCrmListOwnership(options) {
|
|
1967
|
+
return (options.client ?? client).patch({
|
|
1968
|
+
security: [{
|
|
1969
|
+
name: "x-api-key",
|
|
1970
|
+
type: "apiKey"
|
|
1971
|
+
}, {
|
|
1972
|
+
scheme: "bearer",
|
|
1973
|
+
type: "http"
|
|
1974
|
+
}],
|
|
1975
|
+
url: "/v1/crm/lists/{id}/shares",
|
|
1976
|
+
...options,
|
|
1977
|
+
headers: {
|
|
1978
|
+
"Content-Type": "application/json",
|
|
1979
|
+
...options?.headers
|
|
1980
|
+
}
|
|
1981
|
+
});
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Grant a member access to a list
|
|
1985
|
+
*/
|
|
1986
|
+
static grantCrmListAccess(options) {
|
|
1987
|
+
return (options.client ?? client).post({
|
|
1988
|
+
security: [{
|
|
1989
|
+
name: "x-api-key",
|
|
1990
|
+
type: "apiKey"
|
|
1991
|
+
}, {
|
|
1992
|
+
scheme: "bearer",
|
|
1993
|
+
type: "http"
|
|
1994
|
+
}],
|
|
1995
|
+
url: "/v1/crm/lists/{id}/shares",
|
|
1996
|
+
...options,
|
|
1997
|
+
headers: {
|
|
1998
|
+
"Content-Type": "application/json",
|
|
1999
|
+
...options?.headers
|
|
2000
|
+
}
|
|
2001
|
+
});
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* Delete a custom field
|
|
2005
|
+
*/
|
|
2006
|
+
static deleteCrmListField(options) {
|
|
2007
|
+
return (options.client ?? client).delete({
|
|
2008
|
+
security: [{
|
|
2009
|
+
name: "x-api-key",
|
|
2010
|
+
type: "apiKey"
|
|
2011
|
+
}, {
|
|
2012
|
+
scheme: "bearer",
|
|
2013
|
+
type: "http"
|
|
2014
|
+
}],
|
|
2015
|
+
url: "/v1/crm/lists/{id}/fields",
|
|
2016
|
+
...options,
|
|
2017
|
+
headers: {
|
|
2018
|
+
"Content-Type": "application/json",
|
|
2019
|
+
...options?.headers
|
|
2020
|
+
}
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* List the custom fields applicable to a list
|
|
2025
|
+
*/
|
|
2026
|
+
static listCrmListFields(options) {
|
|
2027
|
+
return (options.client ?? client).get({
|
|
2028
|
+
security: [{
|
|
2029
|
+
name: "x-api-key",
|
|
2030
|
+
type: "apiKey"
|
|
2031
|
+
}, {
|
|
2032
|
+
scheme: "bearer",
|
|
2033
|
+
type: "http"
|
|
2034
|
+
}],
|
|
2035
|
+
url: "/v1/crm/lists/{id}/fields",
|
|
2036
|
+
...options
|
|
2037
|
+
});
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* Update a custom field's mutable props
|
|
2041
|
+
*/
|
|
2042
|
+
static updateCrmListField(options) {
|
|
2043
|
+
return (options.client ?? client).patch({
|
|
2044
|
+
security: [{
|
|
2045
|
+
name: "x-api-key",
|
|
2046
|
+
type: "apiKey"
|
|
2047
|
+
}, {
|
|
2048
|
+
scheme: "bearer",
|
|
2049
|
+
type: "http"
|
|
2050
|
+
}],
|
|
2051
|
+
url: "/v1/crm/lists/{id}/fields",
|
|
2052
|
+
...options,
|
|
2053
|
+
headers: {
|
|
2054
|
+
"Content-Type": "application/json",
|
|
2055
|
+
...options?.headers
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Create a list-scoped custom field
|
|
2061
|
+
*/
|
|
2062
|
+
static createCrmListField(options) {
|
|
2063
|
+
return (options.client ?? client).post({
|
|
2064
|
+
security: [{
|
|
2065
|
+
name: "x-api-key",
|
|
2066
|
+
type: "apiKey"
|
|
2067
|
+
}, {
|
|
2068
|
+
scheme: "bearer",
|
|
2069
|
+
type: "http"
|
|
2070
|
+
}],
|
|
2071
|
+
url: "/v1/crm/lists/{id}/fields",
|
|
2072
|
+
...options,
|
|
2073
|
+
headers: {
|
|
2074
|
+
"Content-Type": "application/json",
|
|
2075
|
+
...options?.headers
|
|
2076
|
+
}
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Replay a template's fields onto a list
|
|
2081
|
+
*/
|
|
2082
|
+
static applyCrmListTemplate(options) {
|
|
2083
|
+
return (options.client ?? client).post({
|
|
2084
|
+
security: [{
|
|
2085
|
+
name: "x-api-key",
|
|
2086
|
+
type: "apiKey"
|
|
2087
|
+
}, {
|
|
2088
|
+
scheme: "bearer",
|
|
2089
|
+
type: "http"
|
|
2090
|
+
}],
|
|
2091
|
+
url: "/v1/crm/lists/{id}/apply-template",
|
|
2092
|
+
...options,
|
|
2093
|
+
headers: {
|
|
2094
|
+
"Content-Type": "application/json",
|
|
2095
|
+
...options?.headers
|
|
2096
|
+
}
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
* List the active org's members
|
|
2101
|
+
*/
|
|
2102
|
+
static listCrmOrgMembers(options) {
|
|
2103
|
+
return (options?.client ?? client).get({
|
|
2104
|
+
security: [{
|
|
2105
|
+
name: "x-api-key",
|
|
2106
|
+
type: "apiKey"
|
|
2107
|
+
}, {
|
|
2108
|
+
scheme: "bearer",
|
|
2109
|
+
type: "http"
|
|
2110
|
+
}],
|
|
2111
|
+
url: "/v1/crm/org-members",
|
|
2112
|
+
...options
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* List who can be assigned on a list (access-filtered by visibility)
|
|
2117
|
+
*/
|
|
2118
|
+
static listCrmListAssignees(options) {
|
|
2119
|
+
return (options.client ?? client).get({
|
|
2120
|
+
security: [{
|
|
2121
|
+
name: "x-api-key",
|
|
2122
|
+
type: "apiKey"
|
|
2123
|
+
}, {
|
|
2124
|
+
scheme: "bearer",
|
|
2125
|
+
type: "http"
|
|
2126
|
+
}],
|
|
2127
|
+
url: "/v1/crm/lists/{id}/assignees",
|
|
2128
|
+
...options
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Soft-delete a note
|
|
2133
|
+
*/
|
|
2134
|
+
static deleteCrmNote(options) {
|
|
2135
|
+
return (options?.client ?? client).delete({
|
|
2136
|
+
security: [{
|
|
2137
|
+
name: "x-api-key",
|
|
2138
|
+
type: "apiKey"
|
|
2139
|
+
}, {
|
|
2140
|
+
scheme: "bearer",
|
|
2141
|
+
type: "http"
|
|
2142
|
+
}],
|
|
2143
|
+
url: "/v1/crm/activity",
|
|
2144
|
+
...options,
|
|
2145
|
+
headers: {
|
|
2146
|
+
"Content-Type": "application/json",
|
|
2147
|
+
...options?.headers
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* List a record's activity timeline (newest first)
|
|
2153
|
+
*/
|
|
2154
|
+
static listCrmActivity(options) {
|
|
2155
|
+
return (options.client ?? client).get({
|
|
2156
|
+
security: [{
|
|
2157
|
+
name: "x-api-key",
|
|
2158
|
+
type: "apiKey"
|
|
2159
|
+
}, {
|
|
2160
|
+
scheme: "bearer",
|
|
2161
|
+
type: "http"
|
|
2162
|
+
}],
|
|
2163
|
+
url: "/v1/crm/activity",
|
|
2164
|
+
...options
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Edit a note's body
|
|
2169
|
+
*/
|
|
2170
|
+
static editCrmNote(options) {
|
|
2171
|
+
return (options?.client ?? client).patch({
|
|
2172
|
+
security: [{
|
|
2173
|
+
name: "x-api-key",
|
|
2174
|
+
type: "apiKey"
|
|
2175
|
+
}, {
|
|
2176
|
+
scheme: "bearer",
|
|
2177
|
+
type: "http"
|
|
2178
|
+
}],
|
|
2179
|
+
url: "/v1/crm/activity",
|
|
2180
|
+
...options,
|
|
2181
|
+
headers: {
|
|
2182
|
+
"Content-Type": "application/json",
|
|
2183
|
+
...options?.headers
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* Append a note to a record's timeline
|
|
2189
|
+
*/
|
|
2190
|
+
static addCrmNote(options) {
|
|
2191
|
+
return (options?.client ?? client).post({
|
|
2192
|
+
security: [{
|
|
2193
|
+
name: "x-api-key",
|
|
2194
|
+
type: "apiKey"
|
|
2195
|
+
}, {
|
|
2196
|
+
scheme: "bearer",
|
|
2197
|
+
type: "http"
|
|
2198
|
+
}],
|
|
2199
|
+
url: "/v1/crm/activity",
|
|
2200
|
+
...options,
|
|
2201
|
+
headers: {
|
|
2202
|
+
"Content-Type": "application/json",
|
|
2203
|
+
...options?.headers
|
|
2204
|
+
}
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Delete a task
|
|
2209
|
+
*/
|
|
2210
|
+
static deleteCrmTask(options) {
|
|
2211
|
+
return (options?.client ?? client).delete({
|
|
2212
|
+
security: [{
|
|
2213
|
+
name: "x-api-key",
|
|
2214
|
+
type: "apiKey"
|
|
2215
|
+
}, {
|
|
2216
|
+
scheme: "bearer",
|
|
2217
|
+
type: "http"
|
|
2218
|
+
}],
|
|
2219
|
+
url: "/v1/crm/tasks",
|
|
2220
|
+
...options,
|
|
2221
|
+
headers: {
|
|
2222
|
+
"Content-Type": "application/json",
|
|
2223
|
+
...options?.headers
|
|
2224
|
+
}
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* List tasks for a record or for an assignee
|
|
2229
|
+
*/
|
|
2230
|
+
static listCrmTasks(options) {
|
|
2231
|
+
return (options?.client ?? client).get({
|
|
2232
|
+
security: [{
|
|
2233
|
+
name: "x-api-key",
|
|
2234
|
+
type: "apiKey"
|
|
2235
|
+
}, {
|
|
2236
|
+
scheme: "bearer",
|
|
2237
|
+
type: "http"
|
|
2238
|
+
}],
|
|
2239
|
+
url: "/v1/crm/tasks",
|
|
2240
|
+
...options
|
|
2241
|
+
});
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* Edit a task, or transition it to completed/cancelled
|
|
2245
|
+
*/
|
|
2246
|
+
static updateCrmTask(options) {
|
|
2247
|
+
return (options?.client ?? client).patch({
|
|
2248
|
+
security: [{
|
|
2249
|
+
name: "x-api-key",
|
|
2250
|
+
type: "apiKey"
|
|
2251
|
+
}, {
|
|
2252
|
+
scheme: "bearer",
|
|
2253
|
+
type: "http"
|
|
2254
|
+
}],
|
|
2255
|
+
url: "/v1/crm/tasks",
|
|
2256
|
+
...options,
|
|
2257
|
+
headers: {
|
|
2258
|
+
"Content-Type": "application/json",
|
|
2259
|
+
...options?.headers
|
|
2260
|
+
}
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
/**
|
|
2264
|
+
* Create a task on a record
|
|
2265
|
+
*/
|
|
2266
|
+
static createCrmTask(options) {
|
|
2267
|
+
return (options?.client ?? client).post({
|
|
2268
|
+
security: [{
|
|
2269
|
+
name: "x-api-key",
|
|
2270
|
+
type: "apiKey"
|
|
2271
|
+
}, {
|
|
2272
|
+
scheme: "bearer",
|
|
2273
|
+
type: "http"
|
|
2274
|
+
}],
|
|
2275
|
+
url: "/v1/crm/tasks",
|
|
2276
|
+
...options,
|
|
2277
|
+
headers: {
|
|
2278
|
+
"Content-Type": "application/json",
|
|
2279
|
+
...options?.headers
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* Cross-record task inbox for the caller's visible records
|
|
2285
|
+
*/
|
|
2286
|
+
static listCrmWorkspaceTasks(options) {
|
|
2287
|
+
return (options?.client ?? client).get({
|
|
2288
|
+
security: [{
|
|
2289
|
+
name: "x-api-key",
|
|
2290
|
+
type: "apiKey"
|
|
2291
|
+
}, {
|
|
2292
|
+
scheme: "bearer",
|
|
2293
|
+
type: "http"
|
|
2294
|
+
}],
|
|
2295
|
+
url: "/v1/crm/tasks/workspace",
|
|
2296
|
+
...options
|
|
2297
|
+
});
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* Pull calendar changes and apply them (one record, or user-wide)
|
|
2301
|
+
*/
|
|
2302
|
+
static reconcileCrmMeetings(options) {
|
|
2303
|
+
return (options?.client ?? client).post({
|
|
2304
|
+
security: [{
|
|
2305
|
+
name: "x-api-key",
|
|
2306
|
+
type: "apiKey"
|
|
2307
|
+
}, {
|
|
2308
|
+
scheme: "bearer",
|
|
2309
|
+
type: "http"
|
|
2310
|
+
}],
|
|
2311
|
+
url: "/v1/crm/meetings/reconcile",
|
|
2312
|
+
...options,
|
|
2313
|
+
headers: {
|
|
2314
|
+
"Content-Type": "application/json",
|
|
2315
|
+
...options?.headers
|
|
2316
|
+
}
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
/**
|
|
2320
|
+
* Delete a meeting (and its provider event)
|
|
2321
|
+
*/
|
|
2322
|
+
static deleteCrmMeeting(options) {
|
|
2323
|
+
return (options.client ?? client).delete({
|
|
2324
|
+
security: [{
|
|
2325
|
+
name: "x-api-key",
|
|
2326
|
+
type: "apiKey"
|
|
2327
|
+
}, {
|
|
2328
|
+
scheme: "bearer",
|
|
2329
|
+
type: "http"
|
|
2330
|
+
}],
|
|
2331
|
+
url: "/v1/crm/meetings",
|
|
2332
|
+
...options
|
|
2333
|
+
});
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* List meetings for a record
|
|
2337
|
+
*/
|
|
2338
|
+
static listCrmMeetings(options) {
|
|
2339
|
+
return (options.client ?? client).get({
|
|
2340
|
+
security: [{
|
|
2341
|
+
name: "x-api-key",
|
|
2342
|
+
type: "apiKey"
|
|
2343
|
+
}, {
|
|
2344
|
+
scheme: "bearer",
|
|
2345
|
+
type: "http"
|
|
2346
|
+
}],
|
|
2347
|
+
url: "/v1/crm/meetings",
|
|
2348
|
+
...options
|
|
2349
|
+
});
|
|
2350
|
+
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Update, cancel, complete, or re-sync a meeting
|
|
2353
|
+
*/
|
|
2354
|
+
static updateCrmMeeting(options) {
|
|
2355
|
+
return (options?.client ?? client).patch({
|
|
2356
|
+
security: [{
|
|
2357
|
+
name: "x-api-key",
|
|
2358
|
+
type: "apiKey"
|
|
2359
|
+
}, {
|
|
2360
|
+
scheme: "bearer",
|
|
2361
|
+
type: "http"
|
|
2362
|
+
}],
|
|
2363
|
+
url: "/v1/crm/meetings",
|
|
2364
|
+
...options,
|
|
2365
|
+
headers: {
|
|
2366
|
+
"Content-Type": "application/json",
|
|
2367
|
+
...options?.headers
|
|
2368
|
+
}
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
/**
|
|
2372
|
+
* Create a meeting (optionally syncing it to a calendar provider)
|
|
2373
|
+
*/
|
|
2374
|
+
static createCrmMeeting(options) {
|
|
2375
|
+
return (options?.client ?? client).post({
|
|
2376
|
+
security: [{
|
|
2377
|
+
name: "x-api-key",
|
|
2378
|
+
type: "apiKey"
|
|
2379
|
+
}, {
|
|
2380
|
+
scheme: "bearer",
|
|
2381
|
+
type: "http"
|
|
2382
|
+
}],
|
|
2383
|
+
url: "/v1/crm/meetings",
|
|
2384
|
+
...options,
|
|
2385
|
+
headers: {
|
|
2386
|
+
"Content-Type": "application/json",
|
|
2387
|
+
...options?.headers
|
|
2388
|
+
}
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2391
|
+
/**
|
|
2392
|
+
* Apply the Market-Insights updates the user accepted
|
|
2393
|
+
*/
|
|
2394
|
+
static applyCrmMiUpdates(options) {
|
|
2395
|
+
return (options?.client ?? client).post({
|
|
2396
|
+
security: [{
|
|
2397
|
+
name: "x-api-key",
|
|
2398
|
+
type: "apiKey"
|
|
2399
|
+
}, {
|
|
2400
|
+
scheme: "bearer",
|
|
2401
|
+
type: "http"
|
|
2402
|
+
}],
|
|
2403
|
+
url: "/v1/crm/records/apply-mi-updates",
|
|
2404
|
+
...options,
|
|
2405
|
+
headers: {
|
|
2406
|
+
"Content-Type": "application/json",
|
|
2407
|
+
...options?.headers
|
|
2408
|
+
}
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2411
|
+
/**
|
|
2412
|
+
* Dismiss surfaced MI updates (remember them in the seen-ledger)
|
|
2413
|
+
*/
|
|
2414
|
+
static dismissCrmMiUpdates(options) {
|
|
2415
|
+
return (options?.client ?? client).post({
|
|
2416
|
+
security: [{
|
|
2417
|
+
name: "x-api-key",
|
|
2418
|
+
type: "apiKey"
|
|
2419
|
+
}, {
|
|
2420
|
+
scheme: "bearer",
|
|
2421
|
+
type: "http"
|
|
2422
|
+
}],
|
|
2423
|
+
url: "/v1/crm/records/dismiss-mi-updates",
|
|
2424
|
+
...options,
|
|
2425
|
+
headers: {
|
|
2426
|
+
"Content-Type": "application/json",
|
|
2427
|
+
...options?.headers
|
|
2428
|
+
}
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
/**
|
|
2432
|
+
* Compute which Market-Insights fields differ from a record snapshot
|
|
2433
|
+
*/
|
|
2434
|
+
static getCrmMiUpdates(options) {
|
|
2435
|
+
return (options?.client ?? client).post({
|
|
2436
|
+
security: [{
|
|
2437
|
+
name: "x-api-key",
|
|
2438
|
+
type: "apiKey"
|
|
2439
|
+
}, {
|
|
2440
|
+
scheme: "bearer",
|
|
2441
|
+
type: "http"
|
|
2442
|
+
}],
|
|
2443
|
+
url: "/v1/crm/records/mi-updates",
|
|
2444
|
+
...options,
|
|
2445
|
+
headers: {
|
|
2446
|
+
"Content-Type": "application/json",
|
|
2447
|
+
...options?.headers
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* Ask the org owner(s) to enable the CRM (membership-gated)
|
|
2453
|
+
*/
|
|
2454
|
+
static requestCrmAccess(options) {
|
|
2455
|
+
return (options?.client ?? client).post({
|
|
2456
|
+
security: [{
|
|
2457
|
+
name: "x-api-key",
|
|
2458
|
+
type: "apiKey"
|
|
2459
|
+
}, {
|
|
2460
|
+
scheme: "bearer",
|
|
2461
|
+
type: "http"
|
|
2462
|
+
}],
|
|
2463
|
+
url: "/v1/crm/request-access",
|
|
2464
|
+
...options,
|
|
2465
|
+
headers: {
|
|
2466
|
+
"Content-Type": "application/json",
|
|
2467
|
+
...options?.headers
|
|
2468
|
+
}
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Remove a user-added contact method
|
|
2473
|
+
*/
|
|
2474
|
+
static removeCrmContactMethod(options) {
|
|
2475
|
+
return (options?.client ?? client).delete({
|
|
2476
|
+
security: [{
|
|
2477
|
+
name: "x-api-key",
|
|
2478
|
+
type: "apiKey"
|
|
2479
|
+
}, {
|
|
2480
|
+
scheme: "bearer",
|
|
2481
|
+
type: "http"
|
|
2482
|
+
}],
|
|
2483
|
+
url: "/v1/crm/contacts",
|
|
2484
|
+
...options,
|
|
2485
|
+
headers: {
|
|
2486
|
+
"Content-Type": "application/json",
|
|
2487
|
+
...options?.headers
|
|
2488
|
+
}
|
|
2489
|
+
});
|
|
2490
|
+
}
|
|
2491
|
+
/**
|
|
2492
|
+
* Update or suppress a contact method
|
|
2493
|
+
*/
|
|
2494
|
+
static updateCrmContactMethod(options) {
|
|
2495
|
+
return (options?.client ?? client).patch({
|
|
2496
|
+
security: [{
|
|
2497
|
+
name: "x-api-key",
|
|
2498
|
+
type: "apiKey"
|
|
2499
|
+
}, {
|
|
2500
|
+
scheme: "bearer",
|
|
2501
|
+
type: "http"
|
|
2502
|
+
}],
|
|
2503
|
+
url: "/v1/crm/contacts",
|
|
2504
|
+
...options,
|
|
2505
|
+
headers: {
|
|
2506
|
+
"Content-Type": "application/json",
|
|
2507
|
+
...options?.headers
|
|
2508
|
+
}
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
/**
|
|
2512
|
+
* Add a contact method to a record
|
|
2513
|
+
*/
|
|
2514
|
+
static addCrmContactMethod(options) {
|
|
2515
|
+
return (options?.client ?? client).post({
|
|
2516
|
+
security: [{
|
|
2517
|
+
name: "x-api-key",
|
|
2518
|
+
type: "apiKey"
|
|
2519
|
+
}, {
|
|
2520
|
+
scheme: "bearer",
|
|
2521
|
+
type: "http"
|
|
2522
|
+
}],
|
|
2523
|
+
url: "/v1/crm/contacts",
|
|
2524
|
+
...options,
|
|
2525
|
+
headers: {
|
|
2526
|
+
"Content-Type": "application/json",
|
|
2527
|
+
...options?.headers
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
/**
|
|
2532
|
+
* List custom fields applicable to a view
|
|
2533
|
+
*/
|
|
2534
|
+
static listCrmCustomFields(options) {
|
|
2535
|
+
return (options.client ?? client).get({
|
|
2536
|
+
security: [{
|
|
2537
|
+
name: "x-api-key",
|
|
2538
|
+
type: "apiKey"
|
|
2539
|
+
}, {
|
|
2540
|
+
scheme: "bearer",
|
|
2541
|
+
type: "http"
|
|
2542
|
+
}],
|
|
2543
|
+
url: "/v1/crm/fields",
|
|
2544
|
+
...options
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
/**
|
|
2548
|
+
* Get custom-field values for one or many records
|
|
2549
|
+
*/
|
|
2550
|
+
static getCrmCustomValues(options) {
|
|
2551
|
+
return (options?.client ?? client).get({
|
|
2552
|
+
security: [{
|
|
2553
|
+
name: "x-api-key",
|
|
2554
|
+
type: "apiKey"
|
|
2555
|
+
}, {
|
|
2556
|
+
scheme: "bearer",
|
|
2557
|
+
type: "http"
|
|
2558
|
+
}],
|
|
2559
|
+
url: "/v1/crm/custom-values",
|
|
2560
|
+
...options
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
/**
|
|
2564
|
+
* Set a record's value for one custom field
|
|
2565
|
+
*/
|
|
2566
|
+
static setCrmCustomValue(options) {
|
|
2567
|
+
return (options?.client ?? client).patch({
|
|
2568
|
+
security: [{
|
|
2569
|
+
name: "x-api-key",
|
|
2570
|
+
type: "apiKey"
|
|
2571
|
+
}, {
|
|
2572
|
+
scheme: "bearer",
|
|
2573
|
+
type: "http"
|
|
2574
|
+
}],
|
|
2575
|
+
url: "/v1/crm/custom-values",
|
|
2576
|
+
...options,
|
|
2577
|
+
headers: {
|
|
2578
|
+
"Content-Type": "application/json",
|
|
2579
|
+
...options?.headers
|
|
2580
|
+
}
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* Send an outbound email via the user's connected Gmail or Outlook
|
|
2585
|
+
*/
|
|
2586
|
+
static sendCrmEmail(options) {
|
|
2587
|
+
return (options?.client ?? client).post({
|
|
2588
|
+
security: [{
|
|
2589
|
+
name: "x-api-key",
|
|
2590
|
+
type: "apiKey"
|
|
2591
|
+
}, {
|
|
2592
|
+
scheme: "bearer",
|
|
2593
|
+
type: "http"
|
|
2594
|
+
}],
|
|
2595
|
+
url: "/v1/crm/email/send",
|
|
2596
|
+
...options,
|
|
2597
|
+
headers: {
|
|
2598
|
+
"Content-Type": "application/json",
|
|
2599
|
+
...options?.headers
|
|
2600
|
+
}
|
|
2601
|
+
});
|
|
2602
|
+
}
|
|
2603
|
+
/**
|
|
2604
|
+
* List attribute templates the caller can load
|
|
2605
|
+
*/
|
|
2606
|
+
static listCrmTemplates(options) {
|
|
2607
|
+
return (options?.client ?? client).get({
|
|
2608
|
+
security: [{
|
|
2609
|
+
name: "x-api-key",
|
|
2610
|
+
type: "apiKey"
|
|
2611
|
+
}, {
|
|
2612
|
+
scheme: "bearer",
|
|
2613
|
+
type: "http"
|
|
2614
|
+
}],
|
|
2615
|
+
url: "/v1/crm/templates",
|
|
2616
|
+
...options
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
/**
|
|
2620
|
+
* Create a template (optionally captured from a list)
|
|
2621
|
+
*/
|
|
2622
|
+
static createCrmTemplate(options) {
|
|
2623
|
+
return (options?.client ?? client).post({
|
|
2624
|
+
security: [{
|
|
2625
|
+
name: "x-api-key",
|
|
2626
|
+
type: "apiKey"
|
|
2627
|
+
}, {
|
|
2628
|
+
scheme: "bearer",
|
|
2629
|
+
type: "http"
|
|
2630
|
+
}],
|
|
2631
|
+
url: "/v1/crm/templates",
|
|
2632
|
+
...options,
|
|
2633
|
+
headers: {
|
|
2634
|
+
"Content-Type": "application/json",
|
|
2635
|
+
...options?.headers
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* Delete a template (its fields + shares cascade)
|
|
2641
|
+
*/
|
|
2642
|
+
static deleteCrmTemplate(options) {
|
|
2643
|
+
return (options.client ?? client).delete({
|
|
2644
|
+
security: [{
|
|
2645
|
+
name: "x-api-key",
|
|
2646
|
+
type: "apiKey"
|
|
2647
|
+
}, {
|
|
2648
|
+
scheme: "bearer",
|
|
2649
|
+
type: "http"
|
|
2650
|
+
}],
|
|
2651
|
+
url: "/v1/crm/templates/{id}",
|
|
2652
|
+
...options
|
|
2653
|
+
});
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* Load one template with its fields
|
|
2657
|
+
*/
|
|
2658
|
+
static getCrmTemplate(options) {
|
|
2659
|
+
return (options.client ?? client).get({
|
|
2660
|
+
security: [{
|
|
2661
|
+
name: "x-api-key",
|
|
2662
|
+
type: "apiKey"
|
|
2663
|
+
}, {
|
|
2664
|
+
scheme: "bearer",
|
|
2665
|
+
type: "http"
|
|
2666
|
+
}],
|
|
2667
|
+
url: "/v1/crm/templates/{id}",
|
|
2668
|
+
...options
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* Rename a template
|
|
2673
|
+
*/
|
|
2674
|
+
static updateCrmTemplate(options) {
|
|
2675
|
+
return (options.client ?? client).patch({
|
|
2676
|
+
security: [{
|
|
2677
|
+
name: "x-api-key",
|
|
2678
|
+
type: "apiKey"
|
|
2679
|
+
}, {
|
|
2680
|
+
scheme: "bearer",
|
|
2681
|
+
type: "http"
|
|
2682
|
+
}],
|
|
2683
|
+
url: "/v1/crm/templates/{id}",
|
|
2684
|
+
...options,
|
|
2685
|
+
headers: {
|
|
2686
|
+
"Content-Type": "application/json",
|
|
2687
|
+
...options?.headers
|
|
2688
|
+
}
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* Revoke a teammate's template grant
|
|
2693
|
+
*/
|
|
2694
|
+
static unshareCrmTemplate(options) {
|
|
2695
|
+
return (options.client ?? client).delete({
|
|
2696
|
+
security: [{
|
|
2697
|
+
name: "x-api-key",
|
|
2698
|
+
type: "apiKey"
|
|
2699
|
+
}, {
|
|
2700
|
+
scheme: "bearer",
|
|
2701
|
+
type: "http"
|
|
2702
|
+
}],
|
|
2703
|
+
url: "/v1/crm/templates/{id}/shares",
|
|
2704
|
+
...options
|
|
2705
|
+
});
|
|
2706
|
+
}
|
|
2707
|
+
/**
|
|
2708
|
+
* A template's share panel (owner display, canManage, grantees)
|
|
2709
|
+
*/
|
|
2710
|
+
static getCrmTemplateShares(options) {
|
|
2711
|
+
return (options.client ?? client).get({
|
|
2712
|
+
security: [{
|
|
2713
|
+
name: "x-api-key",
|
|
2714
|
+
type: "apiKey"
|
|
2715
|
+
}, {
|
|
2716
|
+
scheme: "bearer",
|
|
2717
|
+
type: "http"
|
|
2718
|
+
}],
|
|
2719
|
+
url: "/v1/crm/templates/{id}/shares",
|
|
2720
|
+
...options
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
/**
|
|
2724
|
+
* Grant a teammate load access to a template
|
|
2725
|
+
*/
|
|
2726
|
+
static shareCrmTemplate(options) {
|
|
2727
|
+
return (options.client ?? client).post({
|
|
2728
|
+
security: [{
|
|
2729
|
+
name: "x-api-key",
|
|
2730
|
+
type: "apiKey"
|
|
2731
|
+
}, {
|
|
2732
|
+
scheme: "bearer",
|
|
2733
|
+
type: "http"
|
|
2734
|
+
}],
|
|
2735
|
+
url: "/v1/crm/templates/{id}/shares",
|
|
2736
|
+
...options,
|
|
2737
|
+
headers: {
|
|
2738
|
+
"Content-Type": "application/json",
|
|
2739
|
+
...options?.headers
|
|
2740
|
+
}
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
/**
|
|
2744
|
+
* Revoke a user's access to a record
|
|
2745
|
+
*/
|
|
2746
|
+
static revokeCrmRecordAccess(options) {
|
|
2747
|
+
return (options?.client ?? client).delete({
|
|
2748
|
+
security: [{
|
|
2749
|
+
name: "x-api-key",
|
|
2750
|
+
type: "apiKey"
|
|
2751
|
+
}, {
|
|
2752
|
+
scheme: "bearer",
|
|
2753
|
+
type: "http"
|
|
2754
|
+
}],
|
|
2755
|
+
url: "/v1/crm/record-shares",
|
|
2756
|
+
...options,
|
|
2757
|
+
headers: {
|
|
2758
|
+
"Content-Type": "application/json",
|
|
2759
|
+
...options?.headers
|
|
2760
|
+
}
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2763
|
+
/**
|
|
2764
|
+
* List the direct shares on a record (+ display, canManageShares)
|
|
2765
|
+
*/
|
|
2766
|
+
static listCrmRecordShares(options) {
|
|
2767
|
+
return (options.client ?? client).get({
|
|
2768
|
+
security: [{
|
|
2769
|
+
name: "x-api-key",
|
|
2770
|
+
type: "apiKey"
|
|
2771
|
+
}, {
|
|
2772
|
+
scheme: "bearer",
|
|
2773
|
+
type: "http"
|
|
2774
|
+
}],
|
|
2775
|
+
url: "/v1/crm/record-shares",
|
|
2776
|
+
...options
|
|
2777
|
+
});
|
|
2778
|
+
}
|
|
2779
|
+
/**
|
|
2780
|
+
* Grant a user access to a record
|
|
2781
|
+
*/
|
|
2782
|
+
static grantCrmRecordAccess(options) {
|
|
2783
|
+
return (options?.client ?? client).post({
|
|
2784
|
+
security: [{
|
|
2785
|
+
name: "x-api-key",
|
|
2786
|
+
type: "apiKey"
|
|
2787
|
+
}, {
|
|
2788
|
+
scheme: "bearer",
|
|
2789
|
+
type: "http"
|
|
2790
|
+
}],
|
|
2791
|
+
url: "/v1/crm/record-shares",
|
|
2792
|
+
...options,
|
|
2793
|
+
headers: {
|
|
2794
|
+
"Content-Type": "application/json",
|
|
2795
|
+
...options?.headers
|
|
2796
|
+
}
|
|
2797
|
+
});
|
|
2798
|
+
}
|
|
2799
|
+
/**
|
|
2800
|
+
* Who can access a record, and whether the caller may manage shares
|
|
2801
|
+
*/
|
|
2802
|
+
static getCrmRecordAccess(options) {
|
|
2803
|
+
return (options.client ?? client).get({
|
|
2804
|
+
security: [{
|
|
2805
|
+
name: "x-api-key",
|
|
2806
|
+
type: "apiKey"
|
|
2807
|
+
}, {
|
|
2808
|
+
scheme: "bearer",
|
|
2809
|
+
type: "http"
|
|
2810
|
+
}],
|
|
2811
|
+
url: "/v1/crm/record-access",
|
|
2812
|
+
...options
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
* Typeahead search for email recipients the caller can see
|
|
2817
|
+
*/
|
|
2818
|
+
static searchCrmEmailRecipients(options) {
|
|
2819
|
+
return (options.client ?? client).get({
|
|
2820
|
+
security: [{
|
|
2821
|
+
name: "x-api-key",
|
|
2822
|
+
type: "apiKey"
|
|
2823
|
+
}, {
|
|
2824
|
+
scheme: "bearer",
|
|
2825
|
+
type: "http"
|
|
2826
|
+
}],
|
|
2827
|
+
url: "/v1/crm/recipients",
|
|
2828
|
+
...options
|
|
2829
|
+
});
|
|
2830
|
+
}
|
|
2831
|
+
/**
|
|
2832
|
+
* Bulk import records (create or update), optionally into a list
|
|
2833
|
+
*/
|
|
2834
|
+
static importCrmRecords(options) {
|
|
2835
|
+
return (options?.client ?? client).post({
|
|
2836
|
+
security: [{
|
|
2837
|
+
name: "x-api-key",
|
|
2838
|
+
type: "apiKey"
|
|
2839
|
+
}, {
|
|
2840
|
+
scheme: "bearer",
|
|
2841
|
+
type: "http"
|
|
2842
|
+
}],
|
|
2843
|
+
url: "/v1/crm/import",
|
|
2844
|
+
...options,
|
|
2845
|
+
headers: {
|
|
2846
|
+
"Content-Type": "application/json",
|
|
2847
|
+
...options?.headers
|
|
2848
|
+
}
|
|
2849
|
+
});
|
|
2850
|
+
}
|
|
2851
|
+
/**
|
|
2852
|
+
* Apply a match to an imported record (link + seed contacts)
|
|
2853
|
+
*/
|
|
2854
|
+
static applyCrmEnrichment(options) {
|
|
2855
|
+
return (options?.client ?? client).post({
|
|
2856
|
+
security: [{
|
|
2857
|
+
name: "x-api-key",
|
|
2858
|
+
type: "apiKey"
|
|
2859
|
+
}, {
|
|
2860
|
+
scheme: "bearer",
|
|
2861
|
+
type: "http"
|
|
2862
|
+
}],
|
|
2863
|
+
url: "/v1/crm/enrich/apply",
|
|
2864
|
+
...options,
|
|
2865
|
+
headers: {
|
|
2866
|
+
"Content-Type": "application/json",
|
|
2867
|
+
...options?.headers
|
|
2868
|
+
}
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Link a record to a chosen candidate
|
|
2873
|
+
*/
|
|
2874
|
+
static linkCrmRecord(options) {
|
|
2875
|
+
return (options?.client ?? client).patch({
|
|
2876
|
+
security: [{
|
|
2877
|
+
name: "x-api-key",
|
|
2878
|
+
type: "apiKey"
|
|
2879
|
+
}, {
|
|
2880
|
+
scheme: "bearer",
|
|
2881
|
+
type: "http"
|
|
2882
|
+
}],
|
|
2883
|
+
url: "/v1/crm/match",
|
|
2884
|
+
...options,
|
|
2885
|
+
headers: {
|
|
2886
|
+
"Content-Type": "application/json",
|
|
2887
|
+
...options?.headers
|
|
2888
|
+
}
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* Find candidate entities to link an unmatched record to
|
|
2893
|
+
*/
|
|
2894
|
+
static searchCrmMatchCandidates(options) {
|
|
2895
|
+
return (options?.client ?? client).post({
|
|
2896
|
+
security: [{
|
|
2897
|
+
name: "x-api-key",
|
|
2898
|
+
type: "apiKey"
|
|
2899
|
+
}, {
|
|
2900
|
+
scheme: "bearer",
|
|
2901
|
+
type: "http"
|
|
2902
|
+
}],
|
|
2903
|
+
url: "/v1/crm/match",
|
|
2904
|
+
...options,
|
|
2905
|
+
headers: {
|
|
2906
|
+
"Content-Type": "application/json",
|
|
2907
|
+
...options?.headers
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* Recent-vs-prior 3-month closed-loan units for a set of LOs (by NMLS)
|
|
2913
|
+
*/
|
|
2914
|
+
static crmLoMomentum(options) {
|
|
2915
|
+
return (options?.client ?? client).post({
|
|
2916
|
+
security: [{
|
|
2917
|
+
name: "x-api-key",
|
|
2918
|
+
type: "apiKey"
|
|
2919
|
+
}, {
|
|
2920
|
+
scheme: "bearer",
|
|
2921
|
+
type: "http"
|
|
2922
|
+
}],
|
|
2923
|
+
url: "/v1/crm/lo-momentum",
|
|
2924
|
+
...options,
|
|
2925
|
+
headers: {
|
|
2926
|
+
"Content-Type": "application/json",
|
|
2927
|
+
...options?.headers
|
|
2928
|
+
}
|
|
2929
|
+
});
|
|
2930
|
+
}
|
|
2931
|
+
/**
|
|
2932
|
+
* Loan-type mix (percentage + top type) for a single LO (by NMLS)
|
|
2933
|
+
*/
|
|
2934
|
+
static crmLoLoanMix(options) {
|
|
2935
|
+
return (options?.client ?? client).post({
|
|
2936
|
+
security: [{
|
|
2937
|
+
name: "x-api-key",
|
|
2938
|
+
type: "apiKey"
|
|
2939
|
+
}, {
|
|
2940
|
+
scheme: "bearer",
|
|
2941
|
+
type: "http"
|
|
2942
|
+
}],
|
|
2943
|
+
url: "/v1/crm/lo-loan-mix",
|
|
2944
|
+
...options,
|
|
2945
|
+
headers: {
|
|
2946
|
+
"Content-Type": "application/json",
|
|
2947
|
+
...options?.headers
|
|
2948
|
+
}
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
/**
|
|
2952
|
+
* Rank an agent's LO partners by product-mix + size similarity to a viewing LO
|
|
2953
|
+
*/
|
|
2954
|
+
static crmSimilarOriginators(options) {
|
|
2955
|
+
return (options?.client ?? client).post({
|
|
2956
|
+
security: [{
|
|
2957
|
+
name: "x-api-key",
|
|
2958
|
+
type: "apiKey"
|
|
2959
|
+
}, {
|
|
2960
|
+
scheme: "bearer",
|
|
2961
|
+
type: "http"
|
|
2962
|
+
}],
|
|
2963
|
+
url: "/v1/crm/similar-originators",
|
|
2964
|
+
...options,
|
|
2965
|
+
headers: {
|
|
2966
|
+
"Content-Type": "application/json",
|
|
2967
|
+
...options?.headers
|
|
2968
|
+
}
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2971
|
+
/**
|
|
2972
|
+
* Current-sponsor office location + sponsored flag for a set of LOs
|
|
2973
|
+
*/
|
|
2974
|
+
static crmLoSponsorLocation(options) {
|
|
2975
|
+
return (options?.client ?? client).post({
|
|
2976
|
+
security: [{
|
|
2977
|
+
name: "x-api-key",
|
|
2978
|
+
type: "apiKey"
|
|
2979
|
+
}, {
|
|
2980
|
+
scheme: "bearer",
|
|
2981
|
+
type: "http"
|
|
2982
|
+
}],
|
|
2983
|
+
url: "/v1/crm/lo-sponsor-location",
|
|
2984
|
+
...options,
|
|
2985
|
+
headers: {
|
|
2986
|
+
"Content-Type": "application/json",
|
|
2987
|
+
...options?.headers
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Bank / Credit Union / Broker / Retail channel per LO (by NMLS)
|
|
2993
|
+
*/
|
|
2994
|
+
static crmLenderChannels(options) {
|
|
2995
|
+
return (options?.client ?? client).post({
|
|
2996
|
+
security: [{
|
|
2997
|
+
name: "x-api-key",
|
|
2998
|
+
type: "apiKey"
|
|
2999
|
+
}, {
|
|
3000
|
+
scheme: "bearer",
|
|
3001
|
+
type: "http"
|
|
3002
|
+
}],
|
|
3003
|
+
url: "/v1/crm/lender-channels",
|
|
3004
|
+
...options,
|
|
3005
|
+
headers: {
|
|
3006
|
+
"Content-Type": "application/json",
|
|
3007
|
+
...options?.headers
|
|
3008
|
+
}
|
|
3009
|
+
});
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* The current user's still-live call (for reload resume)
|
|
3013
|
+
*/
|
|
3014
|
+
static getCrmActiveCall(options) {
|
|
3015
|
+
return (options?.client ?? client).get({
|
|
3016
|
+
security: [{
|
|
3017
|
+
name: "x-api-key",
|
|
3018
|
+
type: "apiKey"
|
|
3019
|
+
}, {
|
|
3020
|
+
scheme: "bearer",
|
|
3021
|
+
type: "http"
|
|
3022
|
+
}],
|
|
3023
|
+
url: "/v1/crm/calls/active",
|
|
3024
|
+
...options
|
|
3025
|
+
});
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* Persist an AI analysis of a recorded call
|
|
3029
|
+
*/
|
|
3030
|
+
static setCrmCallAnalysis(options) {
|
|
3031
|
+
return (options?.client ?? client).post({
|
|
3032
|
+
security: [{
|
|
3033
|
+
name: "x-api-key",
|
|
3034
|
+
type: "apiKey"
|
|
3035
|
+
}, {
|
|
3036
|
+
scheme: "bearer",
|
|
3037
|
+
type: "http"
|
|
3038
|
+
}],
|
|
3039
|
+
url: "/v1/crm/calls/analysis",
|
|
3040
|
+
...options,
|
|
3041
|
+
headers: {
|
|
3042
|
+
"Content-Type": "application/json",
|
|
3043
|
+
...options?.headers
|
|
3044
|
+
}
|
|
3045
|
+
});
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Poll a recorded call's transcript (advances the pipeline)
|
|
3049
|
+
*/
|
|
3050
|
+
static getCrmCallTranscript(options) {
|
|
3051
|
+
return (options.client ?? client).get({
|
|
3052
|
+
security: [{
|
|
3053
|
+
name: "x-api-key",
|
|
3054
|
+
type: "apiKey"
|
|
3055
|
+
}, {
|
|
3056
|
+
scheme: "bearer",
|
|
3057
|
+
type: "http"
|
|
3058
|
+
}],
|
|
3059
|
+
url: "/v1/crm/calls/transcript",
|
|
3060
|
+
...options
|
|
3061
|
+
});
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* Remove a caller ID from the registry
|
|
3065
|
+
*/
|
|
3066
|
+
static deleteCrmCallerId(options) {
|
|
3067
|
+
return (options.client ?? client).delete({
|
|
3068
|
+
security: [{
|
|
3069
|
+
name: "x-api-key",
|
|
3070
|
+
type: "apiKey"
|
|
3071
|
+
}, {
|
|
3072
|
+
scheme: "bearer",
|
|
3073
|
+
type: "http"
|
|
3074
|
+
}],
|
|
3075
|
+
url: "/v1/crm/caller-ids",
|
|
3076
|
+
...options
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* List the current user's caller IDs
|
|
3081
|
+
*/
|
|
3082
|
+
static listCrmCallerIds(options) {
|
|
3083
|
+
return (options?.client ?? client).get({
|
|
3084
|
+
security: [{
|
|
3085
|
+
name: "x-api-key",
|
|
3086
|
+
type: "apiKey"
|
|
3087
|
+
}, {
|
|
3088
|
+
scheme: "bearer",
|
|
3089
|
+
type: "http"
|
|
3090
|
+
}],
|
|
3091
|
+
url: "/v1/crm/caller-ids",
|
|
3092
|
+
...options
|
|
3093
|
+
});
|
|
3094
|
+
}
|
|
3095
|
+
/**
|
|
3096
|
+
* Make a verified caller ID the default
|
|
3097
|
+
*/
|
|
3098
|
+
static setDefaultCrmCallerId(options) {
|
|
3099
|
+
return (options?.client ?? client).patch({
|
|
3100
|
+
security: [{
|
|
3101
|
+
name: "x-api-key",
|
|
3102
|
+
type: "apiKey"
|
|
3103
|
+
}, {
|
|
3104
|
+
scheme: "bearer",
|
|
3105
|
+
type: "http"
|
|
3106
|
+
}],
|
|
3107
|
+
url: "/v1/crm/caller-ids",
|
|
3108
|
+
...options,
|
|
3109
|
+
headers: {
|
|
3110
|
+
"Content-Type": "application/json",
|
|
3111
|
+
...options?.headers
|
|
3112
|
+
}
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
/**
|
|
3116
|
+
* Start caller-ID verification or re-check its outcome
|
|
3117
|
+
*/
|
|
3118
|
+
static actionCrmCallerId(options) {
|
|
3119
|
+
return (options?.client ?? client).post({
|
|
3120
|
+
security: [{
|
|
3121
|
+
name: "x-api-key",
|
|
3122
|
+
type: "apiKey"
|
|
3123
|
+
}, {
|
|
3124
|
+
scheme: "bearer",
|
|
3125
|
+
type: "http"
|
|
3126
|
+
}],
|
|
3127
|
+
url: "/v1/crm/caller-ids",
|
|
3128
|
+
...options,
|
|
3129
|
+
headers: {
|
|
3130
|
+
"Content-Type": "application/json",
|
|
3131
|
+
...options?.headers
|
|
3132
|
+
}
|
|
3133
|
+
});
|
|
3134
|
+
}
|
|
3135
|
+
/**
|
|
3136
|
+
* Poll one call's status (syncs + finalizes on terminal)
|
|
3137
|
+
*/
|
|
3138
|
+
static getCrmCall(options) {
|
|
3139
|
+
return (options.client ?? client).get({
|
|
3140
|
+
security: [{
|
|
3141
|
+
name: "x-api-key",
|
|
3142
|
+
type: "apiKey"
|
|
3143
|
+
}, {
|
|
3144
|
+
scheme: "bearer",
|
|
3145
|
+
type: "http"
|
|
3146
|
+
}],
|
|
3147
|
+
url: "/v1/crm/calls",
|
|
3148
|
+
...options
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* Hang up an in-flight call
|
|
3153
|
+
*/
|
|
3154
|
+
static hangupCrmCall(options) {
|
|
3155
|
+
return (options?.client ?? client).patch({
|
|
3156
|
+
security: [{
|
|
3157
|
+
name: "x-api-key",
|
|
3158
|
+
type: "apiKey"
|
|
3159
|
+
}, {
|
|
3160
|
+
scheme: "bearer",
|
|
3161
|
+
type: "http"
|
|
3162
|
+
}],
|
|
3163
|
+
url: "/v1/crm/calls",
|
|
3164
|
+
...options,
|
|
3165
|
+
headers: {
|
|
3166
|
+
"Content-Type": "application/json",
|
|
3167
|
+
...options?.headers
|
|
3168
|
+
}
|
|
3169
|
+
});
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Place an outbound bridge call
|
|
3173
|
+
*/
|
|
3174
|
+
static placeCrmCall(options) {
|
|
3175
|
+
return (options?.client ?? client).post({
|
|
3176
|
+
security: [{
|
|
3177
|
+
name: "x-api-key",
|
|
3178
|
+
type: "apiKey"
|
|
3179
|
+
}, {
|
|
3180
|
+
scheme: "bearer",
|
|
3181
|
+
type: "http"
|
|
3182
|
+
}],
|
|
3183
|
+
url: "/v1/crm/calls",
|
|
3184
|
+
...options,
|
|
3185
|
+
headers: {
|
|
3186
|
+
"Content-Type": "application/json",
|
|
3187
|
+
...options?.headers
|
|
3188
|
+
}
|
|
3189
|
+
});
|
|
3190
|
+
}
|
|
3191
|
+
};
|
|
3192
|
+
var Search = class {
|
|
3193
|
+
/**
|
|
3194
|
+
* Instant multi-entity typeahead search
|
|
3195
|
+
* 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).
|
|
3196
|
+
*/
|
|
3197
|
+
static instant(options) {
|
|
3198
|
+
return (options?.client ?? client).post({
|
|
3199
|
+
security: [{
|
|
3200
|
+
name: "x-api-key",
|
|
3201
|
+
type: "apiKey"
|
|
3202
|
+
}, {
|
|
3203
|
+
scheme: "bearer",
|
|
3204
|
+
type: "http"
|
|
3205
|
+
}],
|
|
3206
|
+
url: "/v1/instant-search",
|
|
3207
|
+
...options,
|
|
3208
|
+
headers: {
|
|
3209
|
+
"Content-Type": "application/json",
|
|
3210
|
+
...options?.headers
|
|
3211
|
+
}
|
|
3212
|
+
});
|
|
3213
|
+
}
|
|
3214
|
+
/**
|
|
3215
|
+
* Mint a scoped search token
|
|
3216
|
+
* 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).
|
|
3217
|
+
*/
|
|
3218
|
+
static getSearchToken(options) {
|
|
3219
|
+
return (options?.client ?? client).get({
|
|
3220
|
+
security: [{
|
|
3221
|
+
name: "x-api-key",
|
|
3222
|
+
type: "apiKey"
|
|
3223
|
+
}, {
|
|
3224
|
+
scheme: "bearer",
|
|
3225
|
+
type: "http"
|
|
3226
|
+
}],
|
|
3227
|
+
url: "/v1/search-token",
|
|
3228
|
+
...options
|
|
3229
|
+
});
|
|
3230
|
+
}
|
|
3231
|
+
};
|
|
3232
|
+
var Lenders = class {
|
|
3233
|
+
/**
|
|
3234
|
+
* Search lenders with filters
|
|
3235
|
+
* 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.
|
|
3236
|
+
*/
|
|
3237
|
+
static list(options) {
|
|
3238
|
+
return (options?.client ?? client).post({
|
|
3239
|
+
security: [{
|
|
3240
|
+
name: "x-api-key",
|
|
3241
|
+
type: "apiKey"
|
|
3242
|
+
}, {
|
|
3243
|
+
scheme: "bearer",
|
|
3244
|
+
type: "http"
|
|
3245
|
+
}],
|
|
3246
|
+
url: "/v1/lenders",
|
|
3247
|
+
...options,
|
|
3248
|
+
headers: {
|
|
3249
|
+
"Content-Type": "application/json",
|
|
3250
|
+
...options?.headers
|
|
3251
|
+
}
|
|
3252
|
+
});
|
|
3253
|
+
}
|
|
3254
|
+
/**
|
|
3255
|
+
* Get lender by ID
|
|
3256
|
+
*/
|
|
3257
|
+
static get(options) {
|
|
3258
|
+
return (options.client ?? client).get({
|
|
3259
|
+
security: [{
|
|
3260
|
+
name: "x-api-key",
|
|
3261
|
+
type: "apiKey"
|
|
3262
|
+
}, {
|
|
3263
|
+
scheme: "bearer",
|
|
3264
|
+
type: "http"
|
|
3265
|
+
}],
|
|
3266
|
+
url: "/v1/lenders/{id}",
|
|
3267
|
+
...options
|
|
3268
|
+
});
|
|
3269
|
+
}
|
|
3270
|
+
};
|
|
3271
|
+
var Loans = class {
|
|
3272
|
+
/**
|
|
3273
|
+
* Search individual loan records with filters
|
|
3274
|
+
* 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.)
|
|
3275
|
+
*/
|
|
3276
|
+
static list(options) {
|
|
3277
|
+
return (options?.client ?? client).post({
|
|
3278
|
+
security: [{
|
|
3279
|
+
name: "x-api-key",
|
|
3280
|
+
type: "apiKey"
|
|
3281
|
+
}, {
|
|
3282
|
+
scheme: "bearer",
|
|
3283
|
+
type: "http"
|
|
3284
|
+
}],
|
|
3285
|
+
url: "/v1/loans",
|
|
3286
|
+
...options,
|
|
3287
|
+
headers: {
|
|
3288
|
+
"Content-Type": "application/json",
|
|
3289
|
+
...options?.headers
|
|
3290
|
+
}
|
|
3291
|
+
});
|
|
3292
|
+
}
|
|
3293
|
+
/**
|
|
3294
|
+
* Get loan by ID
|
|
3295
|
+
*/
|
|
3296
|
+
static get(options) {
|
|
3297
|
+
return (options.client ?? client).get({
|
|
1649
3298
|
security: [{
|
|
1650
3299
|
name: "x-api-key",
|
|
1651
3300
|
type: "apiKey"
|
|
@@ -2132,6 +3781,26 @@ var Originators = class {
|
|
|
2132
3781
|
});
|
|
2133
3782
|
}
|
|
2134
3783
|
/**
|
|
3784
|
+
* Broker shops this LO originated loans through (name-resolved)
|
|
3785
|
+
*/
|
|
3786
|
+
static brokers(options) {
|
|
3787
|
+
return (options.client ?? client).post({
|
|
3788
|
+
security: [{
|
|
3789
|
+
name: "x-api-key",
|
|
3790
|
+
type: "apiKey"
|
|
3791
|
+
}, {
|
|
3792
|
+
scheme: "bearer",
|
|
3793
|
+
type: "http"
|
|
3794
|
+
}],
|
|
3795
|
+
url: "/v1/originators/{nmlsId}/breakdowns/brokers",
|
|
3796
|
+
...options,
|
|
3797
|
+
headers: {
|
|
3798
|
+
"Content-Type": "application/json",
|
|
3799
|
+
...options?.headers
|
|
3800
|
+
}
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
/**
|
|
2135
3804
|
* Branch (broker) history for this LO
|
|
2136
3805
|
*/
|
|
2137
3806
|
static branches(options) {
|
|
@@ -2152,9 +3821,9 @@ var Originators = class {
|
|
|
2152
3821
|
});
|
|
2153
3822
|
}
|
|
2154
3823
|
/**
|
|
2155
|
-
*
|
|
3824
|
+
* City volume breakdown across this LO's loans
|
|
2156
3825
|
*/
|
|
2157
|
-
static
|
|
3826
|
+
static citiesBreakdown(options) {
|
|
2158
3827
|
return (options.client ?? client).post({
|
|
2159
3828
|
security: [{
|
|
2160
3829
|
name: "x-api-key",
|
|
@@ -2163,7 +3832,7 @@ var Originators = class {
|
|
|
2163
3832
|
scheme: "bearer",
|
|
2164
3833
|
type: "http"
|
|
2165
3834
|
}],
|
|
2166
|
-
url: "/v1/originators/{nmlsId}/breakdowns/
|
|
3835
|
+
url: "/v1/originators/{nmlsId}/breakdowns/cities",
|
|
2167
3836
|
...options,
|
|
2168
3837
|
headers: {
|
|
2169
3838
|
"Content-Type": "application/json",
|
|
@@ -2172,9 +3841,9 @@ var Originators = class {
|
|
|
2172
3841
|
});
|
|
2173
3842
|
}
|
|
2174
3843
|
/**
|
|
2175
|
-
*
|
|
3844
|
+
* State volume breakdown across this LO's loans
|
|
2176
3845
|
*/
|
|
2177
|
-
static
|
|
3846
|
+
static statesBreakdown(options) {
|
|
2178
3847
|
return (options.client ?? client).post({
|
|
2179
3848
|
security: [{
|
|
2180
3849
|
name: "x-api-key",
|
|
@@ -2183,7 +3852,7 @@ var Originators = class {
|
|
|
2183
3852
|
scheme: "bearer",
|
|
2184
3853
|
type: "http"
|
|
2185
3854
|
}],
|
|
2186
|
-
url: "/v1/originators/{nmlsId}/breakdowns/
|
|
3855
|
+
url: "/v1/originators/{nmlsId}/breakdowns/states",
|
|
2187
3856
|
...options,
|
|
2188
3857
|
headers: {
|
|
2189
3858
|
"Content-Type": "application/json",
|
|
@@ -2192,7 +3861,7 @@ var Originators = class {
|
|
|
2192
3861
|
});
|
|
2193
3862
|
}
|
|
2194
3863
|
/**
|
|
2195
|
-
*
|
|
3864
|
+
* County (FIPS) volume breakdown across this LO's loans
|
|
2196
3865
|
*/
|
|
2197
3866
|
static countiesBreakdown(options) {
|
|
2198
3867
|
return (options.client ?? client).post({
|
|
@@ -2212,9 +3881,9 @@ var Originators = class {
|
|
|
2212
3881
|
});
|
|
2213
3882
|
}
|
|
2214
3883
|
/**
|
|
2215
|
-
*
|
|
3884
|
+
* Real-estate offices this LO closed through (with sponsoring company)
|
|
2216
3885
|
*/
|
|
2217
|
-
static
|
|
3886
|
+
static offices(options) {
|
|
2218
3887
|
return (options.client ?? client).post({
|
|
2219
3888
|
security: [{
|
|
2220
3889
|
name: "x-api-key",
|
|
@@ -2223,7 +3892,7 @@ var Originators = class {
|
|
|
2223
3892
|
scheme: "bearer",
|
|
2224
3893
|
type: "http"
|
|
2225
3894
|
}],
|
|
2226
|
-
url: "/v1/originators/{nmlsId}/breakdowns/
|
|
3895
|
+
url: "/v1/originators/{nmlsId}/breakdowns/offices",
|
|
2227
3896
|
...options,
|
|
2228
3897
|
headers: {
|
|
2229
3898
|
"Content-Type": "application/json",
|
|
@@ -2466,6 +4135,26 @@ var Originators = class {
|
|
|
2466
4135
|
});
|
|
2467
4136
|
}
|
|
2468
4137
|
/**
|
|
4138
|
+
* Broker shops this LO originated loans through (name-resolved)
|
|
4139
|
+
*/
|
|
4140
|
+
static brokers2(options) {
|
|
4141
|
+
return (options.client ?? client).post({
|
|
4142
|
+
security: [{
|
|
4143
|
+
name: "x-api-key",
|
|
4144
|
+
type: "apiKey"
|
|
4145
|
+
}, {
|
|
4146
|
+
scheme: "bearer",
|
|
4147
|
+
type: "http"
|
|
4148
|
+
}],
|
|
4149
|
+
url: "/originators/{nmlsId}/breakdowns/brokers",
|
|
4150
|
+
...options,
|
|
4151
|
+
headers: {
|
|
4152
|
+
"Content-Type": "application/json",
|
|
4153
|
+
...options?.headers
|
|
4154
|
+
}
|
|
4155
|
+
});
|
|
4156
|
+
}
|
|
4157
|
+
/**
|
|
2469
4158
|
* Branch (broker) history for this LO
|
|
2470
4159
|
*/
|
|
2471
4160
|
static branches2(options) {
|
|
@@ -2486,9 +4175,9 @@ var Originators = class {
|
|
|
2486
4175
|
});
|
|
2487
4176
|
}
|
|
2488
4177
|
/**
|
|
2489
|
-
*
|
|
4178
|
+
* City volume breakdown across this LO's loans
|
|
2490
4179
|
*/
|
|
2491
|
-
static
|
|
4180
|
+
static citiesBreakdown2(options) {
|
|
2492
4181
|
return (options.client ?? client).post({
|
|
2493
4182
|
security: [{
|
|
2494
4183
|
name: "x-api-key",
|
|
@@ -2497,7 +4186,7 @@ var Originators = class {
|
|
|
2497
4186
|
scheme: "bearer",
|
|
2498
4187
|
type: "http"
|
|
2499
4188
|
}],
|
|
2500
|
-
url: "/originators/{nmlsId}/breakdowns/
|
|
4189
|
+
url: "/originators/{nmlsId}/breakdowns/cities",
|
|
2501
4190
|
...options,
|
|
2502
4191
|
headers: {
|
|
2503
4192
|
"Content-Type": "application/json",
|
|
@@ -2506,9 +4195,9 @@ var Originators = class {
|
|
|
2506
4195
|
});
|
|
2507
4196
|
}
|
|
2508
4197
|
/**
|
|
2509
|
-
*
|
|
4198
|
+
* State volume breakdown across this LO's loans
|
|
2510
4199
|
*/
|
|
2511
|
-
static
|
|
4200
|
+
static statesBreakdown2(options) {
|
|
2512
4201
|
return (options.client ?? client).post({
|
|
2513
4202
|
security: [{
|
|
2514
4203
|
name: "x-api-key",
|
|
@@ -2517,7 +4206,7 @@ var Originators = class {
|
|
|
2517
4206
|
scheme: "bearer",
|
|
2518
4207
|
type: "http"
|
|
2519
4208
|
}],
|
|
2520
|
-
url: "/originators/{nmlsId}/breakdowns/
|
|
4209
|
+
url: "/originators/{nmlsId}/breakdowns/states",
|
|
2521
4210
|
...options,
|
|
2522
4211
|
headers: {
|
|
2523
4212
|
"Content-Type": "application/json",
|
|
@@ -2526,7 +4215,7 @@ var Originators = class {
|
|
|
2526
4215
|
});
|
|
2527
4216
|
}
|
|
2528
4217
|
/**
|
|
2529
|
-
*
|
|
4218
|
+
* County (FIPS) volume breakdown across this LO's loans
|
|
2530
4219
|
*/
|
|
2531
4220
|
static countiesBreakdown2(options) {
|
|
2532
4221
|
return (options.client ?? client).post({
|
|
@@ -2546,9 +4235,9 @@ var Originators = class {
|
|
|
2546
4235
|
});
|
|
2547
4236
|
}
|
|
2548
4237
|
/**
|
|
2549
|
-
*
|
|
4238
|
+
* Real-estate offices this LO closed through (with sponsoring company)
|
|
2550
4239
|
*/
|
|
2551
|
-
static
|
|
4240
|
+
static offices2(options) {
|
|
2552
4241
|
return (options.client ?? client).post({
|
|
2553
4242
|
security: [{
|
|
2554
4243
|
name: "x-api-key",
|
|
@@ -2557,7 +4246,7 @@ var Originators = class {
|
|
|
2557
4246
|
scheme: "bearer",
|
|
2558
4247
|
type: "http"
|
|
2559
4248
|
}],
|
|
2560
|
-
url: "/originators/{nmlsId}/breakdowns/
|
|
4249
|
+
url: "/originators/{nmlsId}/breakdowns/offices",
|
|
2561
4250
|
...options,
|
|
2562
4251
|
headers: {
|
|
2563
4252
|
"Content-Type": "application/json",
|
|
@@ -2966,4 +4655,4 @@ function createClient$1(config = {}) {
|
|
|
2966
4655
|
};
|
|
2967
4656
|
}
|
|
2968
4657
|
//#endregion
|
|
2969
|
-
export { Sales as _,
|
|
4658
|
+
export { Sales as _, Alerts as a, Crm as c, Locations as d, Market as f, Realtime as g, Properties as h, Agents as i, Lenders as l, Originators as m, createClient$1 as n, Branches as o, Offices as p, AdminJobs as r, Companies as s, createApiClient as t, Loans as u, Search as v, client as y };
|