@model-match/api 3.60.0 → 3.62.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/openapi.json CHANGED
@@ -11912,6 +11912,11 @@
11912
11912
  },
11913
11913
  "propertyId": {
11914
11914
  "type": "string"
11915
+ },
11916
+ "writtenAt": {
11917
+ "description": "`view=team` only: the previous employer the LO wrote this loan at. Null on a loan written at the company (and on every `view=company` row).",
11918
+ "nullable": true,
11919
+ "type": "string"
11915
11920
  }
11916
11921
  },
11917
11922
  "required": [
@@ -11989,6 +11994,38 @@
11989
11994
  ],
11990
11995
  "type": "string"
11991
11996
  },
11997
+ "team": {
11998
+ "description": "The current-team view's counts; null until the batch has checked it for this company.",
11999
+ "nullable": true,
12000
+ "properties": {
12001
+ "roster": {
12002
+ "description": "Current LOs (active sponsorships) checked.",
12003
+ "type": "integer"
12004
+ },
12005
+ "status": {
12006
+ "enum": [
12007
+ "ok",
12008
+ "timeout"
12009
+ ],
12010
+ "type": "string"
12011
+ },
12012
+ "total": {
12013
+ "description": "Rows in `view=team`: listings on loans by the company's current LOs, written at the company or at a previous employer.",
12014
+ "type": "integer"
12015
+ },
12016
+ "writtenElsewhere": {
12017
+ "description": "Of those, loans the LOs wrote at a previous employer.",
12018
+ "type": "integer"
12019
+ }
12020
+ },
12021
+ "required": [
12022
+ "status",
12023
+ "total",
12024
+ "writtenElsewhere",
12025
+ "roster"
12026
+ ],
12027
+ "type": "object"
12028
+ },
11992
12029
  "topOriginators": {
11993
12030
  "description": "Top 10 LOs by active listings.",
11994
12031
  "items": {
@@ -20245,6 +20282,34 @@
20245
20282
  "description": {
20246
20283
  "nullable": true,
20247
20284
  "type": "string"
20285
+ },
20286
+ "sources": {
20287
+ "description": "Web pages the description was built from (http/https, at most 8). Empty when no description was produced.",
20288
+ "items": {
20289
+ "properties": {
20290
+ "href": {
20291
+ "type": "string"
20292
+ },
20293
+ "title": {
20294
+ "type": "string"
20295
+ }
20296
+ },
20297
+ "required": [
20298
+ "title",
20299
+ "href"
20300
+ ],
20301
+ "type": "object"
20302
+ },
20303
+ "type": "array"
20304
+ },
20305
+ "status": {
20306
+ "description": "`cached` = a description was produced; `no_match` = researched but nothing reliably matched this record; `none` = the research run failed and can be retried.",
20307
+ "enum": [
20308
+ "cached",
20309
+ "no_match",
20310
+ "none"
20311
+ ],
20312
+ "type": "string"
20248
20313
  }
20249
20314
  },
20250
20315
  "required": [
@@ -21334,6 +21399,36 @@
21334
21399
  "objectType": {
21335
21400
  "$ref": "#/components/schemas/CrmObjectType"
21336
21401
  },
21402
+ "sourceTemplate": {
21403
+ "nullable": true,
21404
+ "properties": {
21405
+ "canManage": {
21406
+ "description": "Caller may edit/share it (owner or workspace admin). Always false for library templates.",
21407
+ "type": "boolean"
21408
+ },
21409
+ "id": {
21410
+ "type": "string"
21411
+ },
21412
+ "kind": {
21413
+ "enum": [
21414
+ "saved",
21415
+ "library"
21416
+ ],
21417
+ "type": "string"
21418
+ },
21419
+ "name": {
21420
+ "description": "Resolved at read time.",
21421
+ "type": "string"
21422
+ }
21423
+ },
21424
+ "required": [
21425
+ "id",
21426
+ "kind",
21427
+ "name",
21428
+ "canManage"
21429
+ ],
21430
+ "type": "object"
21431
+ },
21337
21432
  "visibility": {
21338
21433
  "enum": [
21339
21434
  "private",
@@ -21350,7 +21445,8 @@
21350
21445
  "visibility",
21351
21446
  "memberCount",
21352
21447
  "createdAt",
21353
- "defaultView"
21448
+ "defaultView",
21449
+ "sourceTemplate"
21354
21450
  ],
21355
21451
  "type": "object"
21356
21452
  },
@@ -42714,6 +42810,25 @@
42714
42810
  }
42715
42811
  ]
42716
42812
  },
42813
+ "RateLimited": {
42814
+ "properties": {
42815
+ "error": {
42816
+ "enum": [
42817
+ "rate_limited"
42818
+ ],
42819
+ "type": "string"
42820
+ },
42821
+ "retryAfterSeconds": {
42822
+ "description": "Seconds until this caller may try again.",
42823
+ "type": "number"
42824
+ }
42825
+ },
42826
+ "required": [
42827
+ "error",
42828
+ "retryAfterSeconds"
42829
+ ],
42830
+ "type": "object"
42831
+ },
42717
42832
  "RealtimeConfigResponse": {
42718
42833
  "properties": {
42719
42834
  "app": {
@@ -45398,7 +45513,7 @@
45398
45513
  "info": {
45399
45514
  "description": "ModelMatch API — mortgage and real-estate market data.\n\n## Bulk delivery limits\n\nThe `POST /{entity}/bulk-delivery` endpoints export a full result set to\nS3 as NDJSON, JSON, CSV, or Parquet.\n\n- **Up to 5,000 rows per delivery: no entitlement required.** Available to\n every authenticated caller.\n- **Above 5,000 rows: requires the entity's `bulk-delivery.{entity}`\n entitlement** (e.g. `bulk-delivery.loans`). The grant's scope sets your\n row ceiling and may also restrict which rows and fields you receive.\n\nA delivery that would exceed the limit available to you is rejected with\n`403 entitlement_missing`, reporting the matched row count and the ceiling\nthat applied. To stay under the limit, pass `limit` — the job then delivers\n(and bills for) only the first `limit` rows of a broader query.\n\n**Need a higher limit?** Email support@modelmatch.com to request the\nentitlement. Limits are raised per organization and per entity.\n\nBulk delivery is billed at 1 credit per delivered row whether or not\nan entitlement is held.\n\nInstead of a download, a delivery can be sent to a push target configured\non your workspace: pass `destination: { type: \"push-target\", targetId }`.\nThe same limits and billing apply.",
45400
45515
  "title": "ModelMatch API",
45401
- "version": "3.126.0"
45516
+ "version": "3.128.0"
45402
45517
  },
45403
45518
  "openapi": "3.1.0",
45404
45519
  "paths": {
@@ -56600,6 +56715,20 @@
56600
56715
  "type": "string"
56601
56716
  }
56602
56717
  },
56718
+ {
56719
+ "description": "`company` (default): loans written at the company. `team`: the company's CURRENT loan officers' borrowers — loans they wrote at the company or at a previous employer (`writtenAt`), e.g. a recruit's book.",
56720
+ "in": "query",
56721
+ "name": "view",
56722
+ "required": false,
56723
+ "schema": {
56724
+ "description": "`company` (default): loans written at the company. `team`: the company's CURRENT loan officers' borrowers — loans they wrote at the company or at a previous employer (`writtenAt`), e.g. a recruit's book.",
56725
+ "enum": [
56726
+ "company",
56727
+ "team"
56728
+ ],
56729
+ "type": "string"
56730
+ }
56731
+ },
56603
56732
  {
56604
56733
  "description": "Only rows whose loan was written by this LO (NMLS id) — e.g. one of `activeListings.topOriginators`.",
56605
56734
  "in": "query",
@@ -68528,6 +68657,16 @@
68528
68657
  },
68529
68658
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
68530
68659
  },
68660
+ "429": {
68661
+ "content": {
68662
+ "application/json": {
68663
+ "schema": {
68664
+ "$ref": "#/components/schemas/RateLimited"
68665
+ }
68666
+ }
68667
+ },
68668
+ "description": "`rate_limited` — too many AI requests from this user in the last minute. Wait `retryAfterSeconds` (also sent as the `Retry-After` header)."
68669
+ },
68531
68670
  "503": {
68532
68671
  "content": {
68533
68672
  "application/json": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.60.0",
3
+ "version": "3.62.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [