@model-match/api 3.28.0 → 3.29.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
@@ -4112,7 +4112,7 @@
4112
4112
  "nullable": true
4113
4113
  }
4114
4114
  ],
4115
- "description": "Production county, keyed by 5-digit county FIPS code (e.g. `06037` = Los Angeles, CA; `04013` = Maricopa, AZ). Matches agents who closed transactions in this county — NOT their office or listed address, which carry no county data at all. A county NAME is REJECTED with a 400 naming the expected format; resolve the name to its FIPS code first (via instantSearch), or use `city`/`state`, which do accept names. Location dimensions AND with each other, so `county` + `state` returns only agents matching both; what sets `county` apart from `city`/`state`/`zip` is its source — those are satisfied by an office address OR a production market, `county` by production alone."
4115
+ "description": "County, keyed by 5-digit county FIPS code (e.g. `06037` = Los Angeles, CA; `04013` = Maricopa, AZ). By default matches agents who closed transactions in this county (production alone — unlike `city`/`state`/`zip`, which an office address also satisfies); with `locationSource: \"office\"` it matches agents whose CURRENT office lies inside the county boundary. A county NAME is REJECTED with a 400 naming the expected format; resolve the name to its FIPS code first (via instantSearch), or use `city`/`state`, which do accept names. Location dimensions AND with each other, so `county` + `state` returns only agents matching both."
4116
4116
  },
4117
4117
  "AgentCrmListFilter": {
4118
4118
  "additionalProperties": false,
@@ -4408,7 +4408,7 @@
4408
4408
  "$ref": "#/components/schemas/TextFilterValue"
4409
4409
  },
4410
4410
  {
4411
- "description": "City — matches across ALL of an agent's location signals (listed city, office address, AND transaction/production markets), OR'd together. An agent can match this city while their row's displayed `city`/`state` (their primary market) is elsewhere."
4411
+ "description": "City — matches across ALL of an agent's location signals (listed city, office address, AND transaction/production markets), OR'd together. An agent can match this city while their row's displayed `city`/`state` (their primary market) is elsewhere. Cities in several states: write each as `\"City, ST\"` (`[\"Springfield, IL\", \"Austin, TX\"]`) — each binds to its own state; a bare name plus a `state` list cross-pairs."
4412
4412
  }
4413
4413
  ]
4414
4414
  },
@@ -4425,6 +4425,23 @@
4425
4425
  }
4426
4426
  ]
4427
4427
  },
4428
+ "currentOfficeKey": {
4429
+ "anyOf": [
4430
+ {
4431
+ "minLength": 1,
4432
+ "type": "string"
4433
+ },
4434
+ {
4435
+ "items": {
4436
+ "minLength": 1,
4437
+ "type": "string"
4438
+ },
4439
+ "minItems": 1,
4440
+ "type": "array"
4441
+ }
4442
+ ],
4443
+ "description": "Office roster: agents whose CURRENT office is this office id (the `id` from `listOffices` / `instantSearch`, raw or encoded). Several ids OR."
4444
+ },
4428
4445
  "dualUnits": {
4429
4446
  "$ref": "#/components/schemas/NumericFilterValue"
4430
4447
  },
@@ -4815,6 +4832,9 @@
4815
4832
  "losOnMyTeam": {
4816
4833
  "$ref": "#/components/schemas/AgentLosOnMyTeamFilter"
4817
4834
  },
4835
+ "near": {
4836
+ "$ref": "#/components/schemas/AgentNearFilter"
4837
+ },
4818
4838
  "pagination": {
4819
4839
  "$ref": "#/components/schemas/Pagination"
4820
4840
  },
@@ -5562,7 +5582,7 @@
5562
5582
  "type": "object"
5563
5583
  },
5564
5584
  "AgentLocationSource": {
5565
- "description": "Which location signal `city`/`state`/`zip`/`county` match. `any` (default) = an office OR a market they transacted in; `office` = their CURRENT office (a bare `state` also matches the state on their member record; a `county` filter is a 400 — offices carry no county); `production` = transaction markets only.",
5585
+ "description": "Which location signal `city`/`state`/`zip`/`county`, `geoPoint` and `near` match. `any` (default) = an office OR a market they transacted in (`geoPoint`: any office on record); `office` = their CURRENT office (a bare `state` also matches the state on their member record; `county` = the office inside the county boundary); `production` = transaction markets only.",
5566
5586
  "enum": [
5567
5587
  "any",
5568
5588
  "office",
@@ -6301,6 +6321,49 @@
6301
6321
  },
6302
6322
  "type": "object"
6303
6323
  },
6324
+ "AgentNearEntry": {
6325
+ "additionalProperties": false,
6326
+ "properties": {
6327
+ "city": {
6328
+ "minLength": 1,
6329
+ "type": "string"
6330
+ },
6331
+ "lat": {
6332
+ "maximum": 90,
6333
+ "minimum": -90,
6334
+ "type": "number"
6335
+ },
6336
+ "lon": {
6337
+ "maximum": 180,
6338
+ "minimum": -180,
6339
+ "type": "number"
6340
+ },
6341
+ "radius": {
6342
+ "example": "25mi",
6343
+ "minLength": 1,
6344
+ "type": "string"
6345
+ },
6346
+ "state": {
6347
+ "minLength": 1,
6348
+ "type": "string"
6349
+ }
6350
+ },
6351
+ "required": [
6352
+ "lat",
6353
+ "lon",
6354
+ "radius"
6355
+ ],
6356
+ "type": "object"
6357
+ },
6358
+ "AgentNearFilter": {
6359
+ "description": "Radius search, entries OR'd, on the `locationSource` points (current office / transactions / either). With `city`+`state` an entry also matches addresses in that city beyond the radius.",
6360
+ "items": {
6361
+ "$ref": "#/components/schemas/AgentNearEntry"
6362
+ },
6363
+ "maxItems": 50,
6364
+ "minItems": 1,
6365
+ "type": "array"
6366
+ },
6304
6367
  "AgentProductMixEntry": {
6305
6368
  "additionalProperties": false,
6306
6369
  "properties": {
@@ -27311,7 +27374,7 @@
27311
27374
  "type": "object"
27312
27375
  },
27313
27376
  "GeoFilterValue": {
27314
- "description": "Radius search around an agent's office — `{ lat, lon, radius }` (e.g. radius \"15mi\" or \"24km\").",
27377
+ "description": "Radius search — `{ lat, lon, radius }` (e.g. radius \"15mi\" or \"24km\") — around any office on the agent's record; with `locationSource` `office` the CURRENT office, `production` their transactions.",
27315
27378
  "nullable": true,
27316
27379
  "properties": {
27317
27380
  "lat": {
@@ -42464,7 +42527,7 @@
42464
42527
  "info": {
42465
42528
  "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.",
42466
42529
  "title": "ModelMatch API",
42467
- "version": "3.80.0"
42530
+ "version": "3.81.0"
42468
42531
  },
42469
42532
  "openapi": "3.1.0",
42470
42533
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.28.0",
3
+ "version": "3.29.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [