@model-match/api 3.111.0 → 3.113.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
@@ -48452,346 +48452,6 @@
48452
48452
  ],
48453
48453
  "type": "object"
48454
48454
  },
48455
- "RecruitingActiveCall": {
48456
- "nullable": true,
48457
- "properties": {
48458
- "engagementId": {
48459
- "type": "string"
48460
- },
48461
- "entityId": {
48462
- "type": "string"
48463
- },
48464
- "id": {
48465
- "type": "string"
48466
- },
48467
- "organizationId": {
48468
- "type": "string"
48469
- },
48470
- "recordName": {
48471
- "nullable": true,
48472
- "type": "string"
48473
- },
48474
- "toNumber": {
48475
- "type": "string"
48476
- },
48477
- "workspace": {
48478
- "$ref": "#/components/schemas/RecruitingWorkspace"
48479
- }
48480
- },
48481
- "required": [
48482
- "id",
48483
- "organizationId",
48484
- "entityId",
48485
- "toNumber",
48486
- "recordName",
48487
- "workspace",
48488
- "engagementId"
48489
- ],
48490
- "type": "object"
48491
- },
48492
- "RecruitingActiveCallResult": {
48493
- "properties": {
48494
- "data": {
48495
- "$ref": "#/components/schemas/RecruitingActiveCall"
48496
- }
48497
- },
48498
- "required": [
48499
- "data"
48500
- ],
48501
- "type": "object"
48502
- },
48503
- "RecruitingEngagement": {
48504
- "properties": {
48505
- "engagementId": {
48506
- "type": "string"
48507
- },
48508
- "engagementName": {
48509
- "type": "string"
48510
- },
48511
- "kind": {
48512
- "type": "string"
48513
- },
48514
- "role": {
48515
- "type": "string"
48516
- },
48517
- "workspace": {
48518
- "$ref": "#/components/schemas/RecruitingWorkspace"
48519
- }
48520
- },
48521
- "required": [
48522
- "engagementId",
48523
- "engagementName",
48524
- "kind",
48525
- "role",
48526
- "workspace"
48527
- ],
48528
- "type": "object"
48529
- },
48530
- "RecruitingEngagementList": {
48531
- "properties": {
48532
- "data": {
48533
- "items": {
48534
- "$ref": "#/components/schemas/RecruitingEngagement"
48535
- },
48536
- "type": "array"
48537
- }
48538
- },
48539
- "required": [
48540
- "data"
48541
- ],
48542
- "type": "object"
48543
- },
48544
- "RecruitingLists": {
48545
- "properties": {
48546
- "items": {
48547
- "items": {
48548
- "allOf": [
48549
- {
48550
- "$ref": "#/components/schemas/CrmList"
48551
- },
48552
- {
48553
- "properties": {
48554
- "engagementId": {
48555
- "type": "string"
48556
- },
48557
- "workspace": {
48558
- "$ref": "#/components/schemas/RecruitingWorkspace"
48559
- }
48560
- },
48561
- "required": [
48562
- "workspace",
48563
- "engagementId"
48564
- ],
48565
- "type": "object"
48566
- }
48567
- ]
48568
- },
48569
- "type": "array"
48570
- },
48571
- "unavailable": {
48572
- "description": "Customers whose read failed; their rows are missing. Retry later.",
48573
- "items": {
48574
- "$ref": "#/components/schemas/RecruitingWorkspace"
48575
- },
48576
- "type": "array"
48577
- }
48578
- },
48579
- "required": [
48580
- "items",
48581
- "unavailable"
48582
- ],
48583
- "type": "object"
48584
- },
48585
- "RecruitingListsResult": {
48586
- "properties": {
48587
- "data": {
48588
- "$ref": "#/components/schemas/RecruitingLists"
48589
- }
48590
- },
48591
- "required": [
48592
- "data"
48593
- ],
48594
- "type": "object"
48595
- },
48596
- "RecruitingPeople": {
48597
- "properties": {
48598
- "items": {
48599
- "items": {
48600
- "allOf": [
48601
- {
48602
- "$ref": "#/components/schemas/CrmListMember"
48603
- },
48604
- {
48605
- "properties": {
48606
- "engagementId": {
48607
- "type": "string"
48608
- },
48609
- "workspace": {
48610
- "$ref": "#/components/schemas/RecruitingWorkspace"
48611
- }
48612
- },
48613
- "required": [
48614
- "workspace",
48615
- "engagementId"
48616
- ],
48617
- "type": "object"
48618
- }
48619
- ]
48620
- },
48621
- "type": "array"
48622
- },
48623
- "unavailable": {
48624
- "description": "Customers whose read failed; their rows are missing. Retry later.",
48625
- "items": {
48626
- "$ref": "#/components/schemas/RecruitingWorkspace"
48627
- },
48628
- "type": "array"
48629
- }
48630
- },
48631
- "required": [
48632
- "items",
48633
- "unavailable"
48634
- ],
48635
- "type": "object"
48636
- },
48637
- "RecruitingPeopleResult": {
48638
- "properties": {
48639
- "data": {
48640
- "$ref": "#/components/schemas/RecruitingPeople"
48641
- }
48642
- },
48643
- "required": [
48644
- "data"
48645
- ],
48646
- "type": "object"
48647
- },
48648
- "RecruitingPeopleSearch": {
48649
- "properties": {
48650
- "items": {
48651
- "items": {
48652
- "allOf": [
48653
- {
48654
- "$ref": "#/components/schemas/CrmMentionRecord"
48655
- },
48656
- {
48657
- "properties": {
48658
- "engagementId": {
48659
- "type": "string"
48660
- },
48661
- "workspace": {
48662
- "$ref": "#/components/schemas/RecruitingWorkspace"
48663
- }
48664
- },
48665
- "required": [
48666
- "workspace",
48667
- "engagementId"
48668
- ],
48669
- "type": "object"
48670
- }
48671
- ]
48672
- },
48673
- "type": "array"
48674
- },
48675
- "unavailable": {
48676
- "description": "Customers whose read failed; their rows are missing. Retry later.",
48677
- "items": {
48678
- "$ref": "#/components/schemas/RecruitingWorkspace"
48679
- },
48680
- "type": "array"
48681
- }
48682
- },
48683
- "required": [
48684
- "items",
48685
- "unavailable"
48686
- ],
48687
- "type": "object"
48688
- },
48689
- "RecruitingPeopleSearchResult": {
48690
- "properties": {
48691
- "data": {
48692
- "$ref": "#/components/schemas/RecruitingPeopleSearch"
48693
- }
48694
- },
48695
- "required": [
48696
- "data"
48697
- ],
48698
- "type": "object"
48699
- },
48700
- "RecruitingQueue": {
48701
- "properties": {
48702
- "meetings": {
48703
- "items": {
48704
- "allOf": [
48705
- {
48706
- "$ref": "#/components/schemas/CrmWorkspaceMeeting"
48707
- },
48708
- {
48709
- "properties": {
48710
- "engagementId": {
48711
- "type": "string"
48712
- },
48713
- "workspace": {
48714
- "$ref": "#/components/schemas/RecruitingWorkspace"
48715
- }
48716
- },
48717
- "required": [
48718
- "workspace",
48719
- "engagementId"
48720
- ],
48721
- "type": "object"
48722
- }
48723
- ]
48724
- },
48725
- "type": "array"
48726
- },
48727
- "tasks": {
48728
- "items": {
48729
- "allOf": [
48730
- {
48731
- "$ref": "#/components/schemas/CrmWorkspaceTask"
48732
- },
48733
- {
48734
- "properties": {
48735
- "engagementId": {
48736
- "type": "string"
48737
- },
48738
- "workspace": {
48739
- "$ref": "#/components/schemas/RecruitingWorkspace"
48740
- }
48741
- },
48742
- "required": [
48743
- "workspace",
48744
- "engagementId"
48745
- ],
48746
- "type": "object"
48747
- }
48748
- ]
48749
- },
48750
- "type": "array"
48751
- }
48752
- },
48753
- "required": [
48754
- "tasks",
48755
- "meetings"
48756
- ],
48757
- "type": "object"
48758
- },
48759
- "RecruitingQueueResult": {
48760
- "properties": {
48761
- "data": {
48762
- "$ref": "#/components/schemas/RecruitingQueue"
48763
- }
48764
- },
48765
- "required": [
48766
- "data"
48767
- ],
48768
- "type": "object"
48769
- },
48770
- "RecruitingWorkspace": {
48771
- "properties": {
48772
- "id": {
48773
- "type": "string"
48774
- },
48775
- "logo": {
48776
- "nullable": true,
48777
- "type": "string"
48778
- },
48779
- "name": {
48780
- "type": "string"
48781
- },
48782
- "slug": {
48783
- "nullable": true,
48784
- "type": "string"
48785
- }
48786
- },
48787
- "required": [
48788
- "id",
48789
- "name",
48790
- "slug",
48791
- "logo"
48792
- ],
48793
- "type": "object"
48794
- },
48795
48455
  "RelatedResponse": {
48796
48456
  "properties": {
48797
48457
  "data": {
@@ -53502,6 +53162,46 @@
53502
53162
  "description": "True when the data points were picked; false when the model uses every market data point.",
53503
53163
  "type": "boolean"
53504
53164
  },
53165
+ "focus": {
53166
+ "description": "Widened (`widen: \"auto\"`): the area the person asked about, where the model is read, while `scope` is the wider area it learned from. Same form as `scope`, with `label`. `null` when the model learned from the area asked about.",
53167
+ "nullable": true,
53168
+ "properties": {
53169
+ "counties": {
53170
+ "description": "Counties: their five-digit county codes.",
53171
+ "items": {
53172
+ "type": "string"
53173
+ },
53174
+ "type": "array"
53175
+ },
53176
+ "label": {
53177
+ "description": "Where the model looks, in plain words: \"TX\", \"OK and TX\", \"12 counties\", \"the whole country\". Show a person this.",
53178
+ "type": "string"
53179
+ },
53180
+ "national": {
53181
+ "description": "True: the whole country.",
53182
+ "type": "boolean"
53183
+ },
53184
+ "state": {
53185
+ "description": "One state: its two-letter code.",
53186
+ "type": "string"
53187
+ },
53188
+ "states": {
53189
+ "description": "Several states: their two-letter codes.",
53190
+ "items": {
53191
+ "type": "string"
53192
+ },
53193
+ "type": "array"
53194
+ },
53195
+ "zipCodes": {
53196
+ "description": "ZIP codes: five digits each.",
53197
+ "items": {
53198
+ "type": "string"
53199
+ },
53200
+ "type": "array"
53201
+ }
53202
+ },
53203
+ "type": "object"
53204
+ },
53505
53205
  "horizonMonths": {
53506
53206
  "nullable": true,
53507
53207
  "type": "number"
@@ -54081,6 +53781,16 @@
54081
53781
  },
54082
53782
  "type": "object"
54083
53783
  },
53784
+ "scoreArea": {
53785
+ "description": "Widened: what the scores cover, `focus` (the area asked about) or `training` (everything it learned from; `inFocus` marks the focus rows). `null` when not widened.",
53786
+ "enum": [
53787
+ "focus",
53788
+ "training",
53789
+ null
53790
+ ],
53791
+ "nullable": true,
53792
+ "type": "string"
53793
+ },
54084
53794
  "scores": {
54085
53795
  "description": "Where the scores are. Null: this model has no scores table.",
54086
53796
  "nullable": true,
@@ -54373,12 +54083,29 @@
54373
54083
  },
54374
54084
  "type": "object"
54375
54085
  },
54086
+ "scoreArea": {
54087
+ "description": "A widened model: `focus` (default) scores the area asked about; `training` scores everything it learned from, with `inFocus` on each row.",
54088
+ "enum": [
54089
+ "focus",
54090
+ "training"
54091
+ ],
54092
+ "type": "string"
54093
+ },
54376
54094
  "subject": {
54377
54095
  "description": "Who or what the model scores: `home` (default), `loan_officer`, `agent`, `agent_lo_pair` (an agent and a loan officer together) or `company`, a `subjects[].id` from getStudioModelOptions (which lists only the subjects available). Each subject has its own outcomes, populations, data points and upload keys.",
54378
54096
  "example": "loan_officer",
54379
54097
  "maxLength": 40,
54380
54098
  "minLength": 1,
54381
54099
  "type": "string"
54100
+ },
54101
+ "widen": {
54102
+ "description": "ZIP codes or counties with too few past cases: `suggest` (default) refuses first, free, with a wider area to train on (`422 scope_too_small`); `auto` trains on that area and scores the one asked about (`focus`); `off` trains as asked.",
54103
+ "enum": [
54104
+ "suggest",
54105
+ "auto",
54106
+ "off"
54107
+ ],
54108
+ "type": "string"
54382
54109
  }
54383
54110
  },
54384
54111
  "required": [
@@ -54502,12 +54229,12 @@
54502
54229
  "StudioModelError": {
54503
54230
  "properties": {
54504
54231
  "code": {
54505
- "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_disabled` (501: training is turned off here; do not retry), `studio_unavailable`.",
54232
+ "description": "Stable code. The request: `invalid_request`, `invalid_model`, `invalid_model_name`, `unknown_outcome`, `unknown_data_point`, `blocked_data_point` (a data point that describes today, not the as-of date), `unknown_table`, `unknown_column`, `unsupported_key`, `direction_not_allowed` (a direction on a data point that is not a number), `invalid_boost`. The model: `model_not_found`, `published_model_not_found` (`basedOnPublished` names no published model), `model_exists`, `model_limit_reached`, `model_training_in_progress`, `model_not_ready`. Your own data: `no_date_column`, `data_point_is_outcome`, `data_point_is_key`, `data_point_after_outcome`, `data_point_needs_outcomes_table`, `data_points_missing_for_population`, `too_few_examples`, `too_few_positives`, `outcomes_all_one_class`, `outcome_dates_in_future`, `match_rate_too_low`. The area: `scope_too_small` (422: too few past cases in the ZIP codes or counties; `details.suggestedScope` is the wider area to train on, `details.scopeSizes` each area's count). Never allowed: `protected_characteristic` (400: a data point, own column, direction rule or boost about race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance; `details.fields`, `details.characteristics`; also when refreshing a model that has one). Shared: `busy`, `rate_limited`, `no_organization`, `models_disabled` (501: training is turned off here; do not retry), `studio_unavailable`.",
54506
54233
  "example": "match_rate_too_low",
54507
54234
  "type": "string"
54508
54235
  },
54509
54236
  "details": {
54510
- "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `protected_characteristic`, every offending field (`fields`) and what they are about (`characteristics`).",
54237
+ "description": "What the error is about, when known: the `table`, `column` or `dataPoint`, `suggestions`, and the numbers behind a refusal (`examples`, `positives`, `minimum`, `rows`, `matched`, `matchRate`, `limit`, `retryAfterSeconds`); for `protected_characteristic`, every offending field (`fields`) and what they are about (`characteristics`); for `scope_too_small`, `suggestedScope` and `scopeSizes`.",
54511
54238
  "properties": {
54512
54239
  "availableTables": {
54513
54240
  "items": {
@@ -54566,6 +54293,35 @@
54566
54293
  "running": {
54567
54294
  "type": "number"
54568
54295
  },
54296
+ "scopeSizes": {
54297
+ "items": {
54298
+ "properties": {
54299
+ "cases": {
54300
+ "type": "number"
54301
+ },
54302
+ "enough": {
54303
+ "type": "boolean"
54304
+ },
54305
+ "label": {
54306
+ "type": "string"
54307
+ },
54308
+ "scope": {
54309
+ "$ref": "#/components/schemas/StudioModelScopeRef"
54310
+ }
54311
+ },
54312
+ "required": [
54313
+ "scope",
54314
+ "label",
54315
+ "cases",
54316
+ "enough"
54317
+ ],
54318
+ "type": "object"
54319
+ },
54320
+ "type": "array"
54321
+ },
54322
+ "suggestedScope": {
54323
+ "$ref": "#/components/schemas/StudioModelScopeRef"
54324
+ },
54569
54325
  "suggestions": {
54570
54326
  "items": {
54571
54327
  "type": "string"
@@ -55846,241 +55602,299 @@
55846
55602
  ],
55847
55603
  "type": "object"
55848
55604
  },
55849
- "StudioPaymentRequired": {
55850
- "properties": {
55851
- "balance": {
55852
- "description": "Credits available.",
55853
- "type": "number"
55854
- },
55855
- "cost": {
55856
- "description": "What the answer costs.",
55857
- "type": "number"
55858
- },
55859
- "error": {
55860
- "enum": [
55861
- "payment_required"
55862
- ],
55863
- "type": "string"
55864
- },
55865
- "message": {
55866
- "type": "string"
55867
- },
55868
- "reason": {
55869
- "type": "string"
55870
- }
55871
- },
55872
- "required": [
55873
- "error",
55874
- "balance",
55875
- "cost"
55876
- ],
55877
- "type": "object"
55878
- },
55879
- "StudioProgram": {
55605
+ "StudioModelScopeRef": {
55880
55606
  "properties": {
55881
- "available": {
55882
- "description": "True when your organization can run programs. False: ask your ModelMatch admin to enable them.",
55883
- "type": "boolean"
55884
- },
55885
- "name": {
55886
- "example": "company_retention",
55887
- "type": "string"
55888
- },
55889
- "options": {
55890
- "description": "The switches you can set, with their defaults.",
55607
+ "counties": {
55891
55608
  "items": {
55892
- "properties": {
55893
- "default": {
55894
- "description": "Used when left out.",
55895
- "nullable": true
55896
- },
55897
- "description": {
55898
- "type": "string"
55899
- },
55900
- "name": {
55901
- "type": "string"
55902
- }
55903
- },
55904
- "required": [
55905
- "name",
55906
- "description"
55907
- ],
55908
- "type": "object"
55609
+ "type": "string"
55909
55610
  },
55910
55611
  "type": "array"
55911
55612
  },
55912
- "price": {
55913
- "properties": {
55914
- "credits": {
55915
- "description": "Credits charged once for a run that succeeds, when it has finished. A run that fails or times out is free.",
55916
- "type": "number"
55917
- }
55918
- },
55919
- "required": [
55920
- "credits"
55921
- ],
55922
- "type": "object"
55613
+ "national": {
55614
+ "type": "boolean"
55923
55615
  },
55924
- "summary": {
55616
+ "state": {
55925
55617
  "type": "string"
55926
55618
  },
55927
- "tables": {
55928
- "description": "The tables a run leaves in your organization: your `name` plus each `suffix` (empty for the first).",
55619
+ "states": {
55929
55620
  "items": {
55930
- "properties": {
55931
- "description": {
55932
- "type": "string"
55933
- },
55934
- "suffix": {
55935
- "type": "string"
55936
- }
55937
- },
55938
- "required": [
55939
- "suffix",
55940
- "description"
55941
- ],
55942
- "type": "object"
55621
+ "type": "string"
55943
55622
  },
55944
55623
  "type": "array"
55945
55624
  },
55946
- "title": {
55947
- "type": "string"
55948
- }
55949
- },
55950
- "required": [
55951
- "name",
55952
- "title",
55953
- "summary",
55954
- "options",
55955
- "tables",
55956
- "price",
55957
- "available"
55958
- ],
55959
- "type": "object"
55960
- },
55961
- "StudioProgramCredits": {
55962
- "properties": {
55963
- "charged": {
55964
- "description": "Credits this call charged: the program's price when it is the first to read a run that succeeded (its tables are then delivered), otherwise 0. A run is charged once.",
55965
- "type": "number"
55966
- },
55967
- "pending": {
55968
- "description": "Where a run was just started: what it will cost when it succeeds.",
55969
- "type": "number"
55970
- },
55971
- "remaining": {
55972
- "description": "Your balance after the charge, when one was made.",
55973
- "type": "number"
55974
- }
55975
- },
55976
- "required": [
55977
- "charged"
55978
- ],
55979
- "type": "object"
55980
- },
55981
- "StudioProgramError": {
55982
- "properties": {
55983
- "code": {
55984
- "description": "`invalid_request` (a switch the program does not list, or a bad value), `invalid_name`, `program_not_found`, `run_not_found`, `table_exists`, `program_running`, `busy`, `rate_limited`, `entitlement_missing`, `entitlement_unavailable`, `billing_unavailable`, `no_organization`, `studio_not_enabled`, `studio_unavailable`.",
55985
- "type": "string"
55986
- },
55987
- "details": {
55988
- "description": "What the error is about: `retryAfterSeconds` and `limit` for a refusal to start now, `entitlementKey` for `entitlement_missing`.",
55989
- "properties": {
55990
- "availableTables": {
55991
- "items": {
55992
- "type": "string"
55993
- },
55994
- "type": "array"
55995
- },
55996
- "characteristics": {
55997
- "items": {
55998
- "type": "string"
55999
- },
56000
- "type": "array"
56001
- },
56002
- "column": {
56003
- "type": "string"
56004
- },
56005
- "dataPoint": {
56006
- "type": "string"
56007
- },
56008
- "entitlementKey": {
56009
- "type": "string"
56010
- },
56011
- "examples": {
56012
- "type": "number"
56013
- },
56014
- "fields": {
56015
- "items": {
56016
- "type": "string"
56017
- },
56018
- "type": "array"
56019
- },
56020
- "function": {
56021
- "type": "string"
56022
- },
56023
- "limit": {
56024
- "type": "number"
56025
- },
56026
- "matchRate": {
56027
- "type": "number"
56028
- },
56029
- "matched": {
56030
- "type": "number"
56031
- },
56032
- "minimum": {
56033
- "type": "number"
56034
- },
56035
- "positives": {
56036
- "type": "number"
56037
- },
56038
- "retryAfterSeconds": {
56039
- "type": "number"
56040
- },
56041
- "rows": {
56042
- "type": "number"
56043
- },
56044
- "running": {
56045
- "type": "number"
56046
- },
56047
- "suggestions": {
56048
- "items": {
56049
- "type": "string"
56050
- },
56051
- "type": "array"
56052
- },
56053
- "table": {
56054
- "type": "string"
56055
- }
56056
- },
56057
- "type": "object"
56058
- },
56059
- "error": {
56060
- "type": "string"
56061
- }
56062
- },
56063
- "required": [
56064
- "error",
56065
- "code"
56066
- ],
56067
- "type": "object"
56068
- },
56069
- "StudioProgramList": {
56070
- "properties": {
56071
- "data": {
55625
+ "zipCodes": {
56072
55626
  "items": {
56073
- "$ref": "#/components/schemas/StudioProgram"
55627
+ "type": "string"
56074
55628
  },
56075
55629
  "type": "array"
56076
55630
  }
56077
55631
  },
56078
- "required": [
56079
- "data"
56080
- ],
56081
55632
  "type": "object"
56082
55633
  },
56083
- "StudioProgramPaymentRequired": {
55634
+ "StudioPaymentRequired": {
55635
+ "properties": {
55636
+ "balance": {
55637
+ "description": "Credits available.",
55638
+ "type": "number"
55639
+ },
55640
+ "cost": {
55641
+ "description": "What the answer costs.",
55642
+ "type": "number"
55643
+ },
55644
+ "error": {
55645
+ "enum": [
55646
+ "payment_required"
55647
+ ],
55648
+ "type": "string"
55649
+ },
55650
+ "message": {
55651
+ "type": "string"
55652
+ },
55653
+ "reason": {
55654
+ "type": "string"
55655
+ }
55656
+ },
55657
+ "required": [
55658
+ "error",
55659
+ "balance",
55660
+ "cost"
55661
+ ],
55662
+ "type": "object"
55663
+ },
55664
+ "StudioProgram": {
55665
+ "properties": {
55666
+ "available": {
55667
+ "description": "True when your organization can run programs. False: ask your ModelMatch admin to enable them.",
55668
+ "type": "boolean"
55669
+ },
55670
+ "name": {
55671
+ "example": "company_retention",
55672
+ "type": "string"
55673
+ },
55674
+ "options": {
55675
+ "description": "The switches you can set, with their defaults.",
55676
+ "items": {
55677
+ "properties": {
55678
+ "default": {
55679
+ "description": "Used when left out.",
55680
+ "nullable": true
55681
+ },
55682
+ "description": {
55683
+ "type": "string"
55684
+ },
55685
+ "name": {
55686
+ "type": "string"
55687
+ }
55688
+ },
55689
+ "required": [
55690
+ "name",
55691
+ "description"
55692
+ ],
55693
+ "type": "object"
55694
+ },
55695
+ "type": "array"
55696
+ },
55697
+ "price": {
55698
+ "properties": {
55699
+ "credits": {
55700
+ "description": "Credits charged once for a run that succeeds, when it has finished. A run that fails or times out is free.",
55701
+ "type": "number"
55702
+ }
55703
+ },
55704
+ "required": [
55705
+ "credits"
55706
+ ],
55707
+ "type": "object"
55708
+ },
55709
+ "summary": {
55710
+ "type": "string"
55711
+ },
55712
+ "tables": {
55713
+ "description": "The tables a run leaves in your organization: your `name` plus each `suffix` (empty for the first).",
55714
+ "items": {
55715
+ "properties": {
55716
+ "description": {
55717
+ "type": "string"
55718
+ },
55719
+ "suffix": {
55720
+ "type": "string"
55721
+ }
55722
+ },
55723
+ "required": [
55724
+ "suffix",
55725
+ "description"
55726
+ ],
55727
+ "type": "object"
55728
+ },
55729
+ "type": "array"
55730
+ },
55731
+ "title": {
55732
+ "type": "string"
55733
+ }
55734
+ },
55735
+ "required": [
55736
+ "name",
55737
+ "title",
55738
+ "summary",
55739
+ "options",
55740
+ "tables",
55741
+ "price",
55742
+ "available"
55743
+ ],
55744
+ "type": "object"
55745
+ },
55746
+ "StudioProgramCredits": {
55747
+ "properties": {
55748
+ "charged": {
55749
+ "description": "Credits this call charged: the program's price when it is the first to read a run that succeeded (its tables are then delivered), otherwise 0. A run is charged once.",
55750
+ "type": "number"
55751
+ },
55752
+ "pending": {
55753
+ "description": "Where a run was just started: what it will cost when it succeeds.",
55754
+ "type": "number"
55755
+ },
55756
+ "remaining": {
55757
+ "description": "Your balance after the charge, when one was made.",
55758
+ "type": "number"
55759
+ }
55760
+ },
55761
+ "required": [
55762
+ "charged"
55763
+ ],
55764
+ "type": "object"
55765
+ },
55766
+ "StudioProgramError": {
55767
+ "properties": {
55768
+ "code": {
55769
+ "description": "`invalid_request` (a switch the program does not list, or a bad value), `invalid_name`, `program_not_found`, `run_not_found`, `table_exists`, `program_running`, `busy`, `rate_limited`, `entitlement_missing`, `entitlement_unavailable`, `billing_unavailable`, `no_organization`, `studio_not_enabled`, `studio_unavailable`.",
55770
+ "type": "string"
55771
+ },
55772
+ "details": {
55773
+ "description": "What the error is about: `retryAfterSeconds` and `limit` for a refusal to start now, `entitlementKey` for `entitlement_missing`.",
55774
+ "properties": {
55775
+ "availableTables": {
55776
+ "items": {
55777
+ "type": "string"
55778
+ },
55779
+ "type": "array"
55780
+ },
55781
+ "characteristics": {
55782
+ "items": {
55783
+ "type": "string"
55784
+ },
55785
+ "type": "array"
55786
+ },
55787
+ "column": {
55788
+ "type": "string"
55789
+ },
55790
+ "dataPoint": {
55791
+ "type": "string"
55792
+ },
55793
+ "entitlementKey": {
55794
+ "type": "string"
55795
+ },
55796
+ "examples": {
55797
+ "type": "number"
55798
+ },
55799
+ "fields": {
55800
+ "items": {
55801
+ "type": "string"
55802
+ },
55803
+ "type": "array"
55804
+ },
55805
+ "function": {
55806
+ "type": "string"
55807
+ },
55808
+ "limit": {
55809
+ "type": "number"
55810
+ },
55811
+ "matchRate": {
55812
+ "type": "number"
55813
+ },
55814
+ "matched": {
55815
+ "type": "number"
55816
+ },
55817
+ "minimum": {
55818
+ "type": "number"
55819
+ },
55820
+ "positives": {
55821
+ "type": "number"
55822
+ },
55823
+ "retryAfterSeconds": {
55824
+ "type": "number"
55825
+ },
55826
+ "rows": {
55827
+ "type": "number"
55828
+ },
55829
+ "running": {
55830
+ "type": "number"
55831
+ },
55832
+ "scopeSizes": {
55833
+ "items": {
55834
+ "properties": {
55835
+ "cases": {
55836
+ "type": "number"
55837
+ },
55838
+ "enough": {
55839
+ "type": "boolean"
55840
+ },
55841
+ "label": {
55842
+ "type": "string"
55843
+ },
55844
+ "scope": {
55845
+ "$ref": "#/components/schemas/StudioModelScopeRef"
55846
+ }
55847
+ },
55848
+ "required": [
55849
+ "scope",
55850
+ "label",
55851
+ "cases",
55852
+ "enough"
55853
+ ],
55854
+ "type": "object"
55855
+ },
55856
+ "type": "array"
55857
+ },
55858
+ "suggestedScope": {
55859
+ "$ref": "#/components/schemas/StudioModelScopeRef"
55860
+ },
55861
+ "suggestions": {
55862
+ "items": {
55863
+ "type": "string"
55864
+ },
55865
+ "type": "array"
55866
+ },
55867
+ "table": {
55868
+ "type": "string"
55869
+ }
55870
+ },
55871
+ "type": "object"
55872
+ },
55873
+ "error": {
55874
+ "type": "string"
55875
+ }
55876
+ },
55877
+ "required": [
55878
+ "error",
55879
+ "code"
55880
+ ],
55881
+ "type": "object"
55882
+ },
55883
+ "StudioProgramList": {
55884
+ "properties": {
55885
+ "data": {
55886
+ "items": {
55887
+ "$ref": "#/components/schemas/StudioProgram"
55888
+ },
55889
+ "type": "array"
55890
+ }
55891
+ },
55892
+ "required": [
55893
+ "data"
55894
+ ],
55895
+ "type": "object"
55896
+ },
55897
+ "StudioProgramPaymentRequired": {
56084
55898
  "properties": {
56085
55899
  "balance": {
56086
55900
  "type": "number"
@@ -58986,7 +58800,7 @@
58986
58800
  "info": {
58987
58801
  "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.",
58988
58802
  "title": "ModelMatch API",
58989
- "version": "3.215.0"
58803
+ "version": "3.217.0"
58990
58804
  },
58991
58805
  "openapi": "3.1.0",
58992
58806
  "paths": {
@@ -82088,712 +81902,58 @@
82088
81902
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82089
81903
  }
82090
81904
  },
82091
- "summary": "Create a manual (unmatched) CRM record",
82092
- "tags": [
82093
- "CRM"
82094
- ]
82095
- }
82096
- },
82097
- "/v1/crm/records/decline-mi-update": {
82098
- "post": {
82099
- "operationId": "declineCrmMiUpdate",
82100
- "requestBody": {
82101
- "content": {
82102
- "application/json": {
82103
- "schema": {
82104
- "properties": {
82105
- "entityId": {
82106
- "type": "string"
82107
- },
82108
- "entityType": {
82109
- "$ref": "#/components/schemas/CrmEntityType"
82110
- },
82111
- "fields": {
82112
- "description": "The diverging override fields to keep, e.g. `[\"company\", \"location\"]`. Batched because the review dialog can select several rows at once. Only the fields the server still sees diverging are suppressed.",
82113
- "items": {
82114
- "maxLength": 64,
82115
- "minLength": 1,
82116
- "type": "string"
82117
- },
82118
- "maxItems": 16,
82119
- "minItems": 1,
82120
- "type": "array"
82121
- }
82122
- },
82123
- "required": [
82124
- "entityId",
82125
- "entityType",
82126
- "fields"
82127
- ],
82128
- "type": "object"
82129
- }
82130
- }
82131
- }
82132
- },
82133
- "responses": {
82134
- "200": {
82135
- "content": {
82136
- "application/json": {
82137
- "schema": {
82138
- "$ref": "#/components/schemas/CrmDeclineMiUpdateResult"
82139
- }
82140
- }
82141
- },
82142
- "description": "The subset of the requested fields that actually diverged and are now suppressed. A field absent from this list no longer disagrees with MI, so there was nothing to decline."
82143
- },
82144
- "400": {
82145
- "content": {
82146
- "application/json": {
82147
- "schema": {
82148
- "$ref": "#/components/schemas/ErrorResponse"
82149
- }
82150
- }
82151
- },
82152
- "description": "Validation error"
82153
- },
82154
- "401": {
82155
- "content": {
82156
- "application/json": {
82157
- "schema": {
82158
- "$ref": "#/components/schemas/ErrorResponse"
82159
- }
82160
- }
82161
- },
82162
- "description": "Unauthorized"
82163
- },
82164
- "403": {
82165
- "content": {
82166
- "application/json": {
82167
- "schema": {
82168
- "$ref": "#/components/schemas/ErrorResponse"
82169
- }
82170
- }
82171
- },
82172
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82173
- },
82174
- "404": {
82175
- "content": {
82176
- "application/json": {
82177
- "schema": {
82178
- "$ref": "#/components/schemas/ErrorResponse"
82179
- }
82180
- }
82181
- },
82182
- "description": "Not found"
82183
- },
82184
- "413": {
82185
- "content": {
82186
- "application/json": {
82187
- "schema": {
82188
- "$ref": "#/components/schemas/PayloadTooLarge"
82189
- }
82190
- }
82191
- },
82192
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82193
- },
82194
- "503": {
82195
- "content": {
82196
- "application/json": {
82197
- "schema": {
82198
- "$ref": "#/components/schemas/SearchUnavailable"
82199
- }
82200
- }
82201
- },
82202
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82203
- }
82204
- },
82205
- "summary": "Keep the pinned values — suppress divergence proposals",
82206
- "tags": [
82207
- "CRM"
82208
- ]
82209
- }
82210
- },
82211
- "/v1/crm/records/delete": {
82212
- "post": {
82213
- "operationId": "deleteCrmRecords",
82214
- "requestBody": {
82215
- "content": {
82216
- "application/json": {
82217
- "schema": {
82218
- "properties": {
82219
- "entityIds": {
82220
- "items": {
82221
- "type": "string"
82222
- },
82223
- "minItems": 1,
82224
- "type": "array"
82225
- }
82226
- },
82227
- "required": [
82228
- "entityIds"
82229
- ],
82230
- "type": "object"
82231
- }
82232
- }
82233
- }
82234
- },
82235
- "responses": {
82236
- "200": {
82237
- "content": {
82238
- "application/json": {
82239
- "schema": {
82240
- "$ref": "#/components/schemas/CrmDeleteRecordsResult"
82241
- }
82242
- }
82243
- },
82244
- "description": "Ids actually removed vs. skipped (not owned / not found)."
82245
- },
82246
- "400": {
82247
- "content": {
82248
- "application/json": {
82249
- "schema": {
82250
- "$ref": "#/components/schemas/ErrorResponse"
82251
- }
82252
- }
82253
- },
82254
- "description": "Validation error"
82255
- },
82256
- "401": {
82257
- "content": {
82258
- "application/json": {
82259
- "schema": {
82260
- "$ref": "#/components/schemas/ErrorResponse"
82261
- }
82262
- }
82263
- },
82264
- "description": "Unauthorized"
82265
- },
82266
- "403": {
82267
- "content": {
82268
- "application/json": {
82269
- "schema": {
82270
- "$ref": "#/components/schemas/ErrorResponse"
82271
- }
82272
- }
82273
- },
82274
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82275
- },
82276
- "404": {
82277
- "content": {
82278
- "application/json": {
82279
- "schema": {
82280
- "$ref": "#/components/schemas/ErrorResponse"
82281
- }
82282
- }
82283
- },
82284
- "description": "Not found"
82285
- },
82286
- "413": {
82287
- "content": {
82288
- "application/json": {
82289
- "schema": {
82290
- "$ref": "#/components/schemas/PayloadTooLarge"
82291
- }
82292
- }
82293
- },
82294
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82295
- },
82296
- "503": {
82297
- "content": {
82298
- "application/json": {
82299
- "schema": {
82300
- "$ref": "#/components/schemas/SearchUnavailable"
82301
- }
82302
- }
82303
- },
82304
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82305
- }
82306
- },
82307
- "summary": "Remove one or more records from the CRM",
82308
- "tags": [
82309
- "CRM"
82310
- ]
82311
- }
82312
- },
82313
- "/v1/crm/records/describe-on-add": {
82314
- "post": {
82315
- "operationId": "describeCrmRecordsOnAdd",
82316
- "requestBody": {
82317
- "content": {
82318
- "application/json": {
82319
- "schema": {
82320
- "properties": {
82321
- "created": {
82322
- "items": {
82323
- "properties": {
82324
- "entityId": {
82325
- "type": "string"
82326
- },
82327
- "entityType": {
82328
- "$ref": "#/components/schemas/CrmEntityType"
82329
- }
82330
- },
82331
- "required": [
82332
- "entityId",
82333
- "entityType"
82334
- ],
82335
- "type": "object"
82336
- },
82337
- "maxItems": 500,
82338
- "minItems": 1,
82339
- "type": "array"
82340
- }
82341
- },
82342
- "required": [
82343
- "created"
82344
- ],
82345
- "type": "object"
82346
- }
82347
- }
82348
- }
82349
- },
82350
- "responses": {
82351
- "200": {
82352
- "content": {
82353
- "application/json": {
82354
- "schema": {
82355
- "$ref": "#/components/schemas/CrmDescribeOnAddResult"
82356
- }
82357
- }
82358
- },
82359
- "description": "The created entity ids that need a generate-description run (cache misses this caller claimed)."
82360
- },
82361
- "400": {
82362
- "content": {
82363
- "application/json": {
82364
- "schema": {
82365
- "$ref": "#/components/schemas/ErrorResponse"
82366
- }
82367
- }
82368
- },
82369
- "description": "Validation error"
82370
- },
82371
- "401": {
82372
- "content": {
82373
- "application/json": {
82374
- "schema": {
82375
- "$ref": "#/components/schemas/ErrorResponse"
82376
- }
82377
- }
82378
- },
82379
- "description": "Unauthorized"
82380
- },
82381
- "403": {
82382
- "content": {
82383
- "application/json": {
82384
- "schema": {
82385
- "$ref": "#/components/schemas/ErrorResponse"
82386
- }
82387
- }
82388
- },
82389
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82390
- },
82391
- "404": {
82392
- "content": {
82393
- "application/json": {
82394
- "schema": {
82395
- "$ref": "#/components/schemas/ErrorResponse"
82396
- }
82397
- }
82398
- },
82399
- "description": "Not found"
82400
- },
82401
- "413": {
82402
- "content": {
82403
- "application/json": {
82404
- "schema": {
82405
- "$ref": "#/components/schemas/PayloadTooLarge"
82406
- }
82407
- }
82408
- },
82409
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82410
- },
82411
- "503": {
82412
- "content": {
82413
- "application/json": {
82414
- "schema": {
82415
- "$ref": "#/components/schemas/SearchUnavailable"
82416
- }
82417
- }
82418
- },
82419
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82420
- }
82421
- },
82422
- "summary": "Resolve descriptions for just-created records (cache-first)",
82423
- "tags": [
82424
- "CRM"
82425
- ]
82426
- }
82427
- },
82428
- "/v1/crm/records/dismiss-mi-updates": {
82429
- "post": {
82430
- "operationId": "dismissCrmMiUpdates",
82431
- "requestBody": {
82432
- "content": {
82433
- "application/json": {
82434
- "schema": {
82435
- "properties": {
82436
- "entityId": {
82437
- "type": "string"
82438
- },
82439
- "seen": {
82440
- "additionalProperties": {
82441
- "items": {
82442
- "maxLength": 512,
82443
- "type": "string"
82444
- },
82445
- "maxItems": 50,
82446
- "type": "array"
82447
- },
82448
- "type": "object"
82449
- }
82450
- },
82451
- "required": [
82452
- "entityId"
82453
- ],
82454
- "type": "object"
82455
- }
82456
- }
82457
- }
82458
- },
82459
- "responses": {
82460
- "200": {
82461
- "content": {
82462
- "application/json": {
82463
- "schema": {
82464
- "$ref": "#/components/schemas/CrmDismissMiUpdatesResult"
82465
- }
82466
- }
82467
- },
82468
- "description": "Confirmation the check window was restarted. The seen-ledger is untouched."
82469
- },
82470
- "400": {
82471
- "content": {
82472
- "application/json": {
82473
- "schema": {
82474
- "$ref": "#/components/schemas/ErrorResponse"
82475
- }
82476
- }
82477
- },
82478
- "description": "Validation error"
82479
- },
82480
- "401": {
82481
- "content": {
82482
- "application/json": {
82483
- "schema": {
82484
- "$ref": "#/components/schemas/ErrorResponse"
82485
- }
82486
- }
82487
- },
82488
- "description": "Unauthorized"
82489
- },
82490
- "403": {
82491
- "content": {
82492
- "application/json": {
82493
- "schema": {
82494
- "$ref": "#/components/schemas/ErrorResponse"
82495
- }
82496
- }
82497
- },
82498
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82499
- },
82500
- "404": {
82501
- "content": {
82502
- "application/json": {
82503
- "schema": {
82504
- "$ref": "#/components/schemas/ErrorResponse"
82505
- }
82506
- }
82507
- },
82508
- "description": "Not found"
82509
- },
82510
- "413": {
82511
- "content": {
82512
- "application/json": {
82513
- "schema": {
82514
- "$ref": "#/components/schemas/PayloadTooLarge"
82515
- }
82516
- }
82517
- },
82518
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82519
- },
82520
- "503": {
82521
- "content": {
82522
- "application/json": {
82523
- "schema": {
82524
- "$ref": "#/components/schemas/SearchUnavailable"
82525
- }
82526
- }
82527
- },
82528
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82529
- }
82530
- },
82531
- "summary": "Snooze surfaced MI updates for the check window",
82532
- "tags": [
82533
- "CRM"
82534
- ]
82535
- }
82536
- },
82537
- "/v1/crm/records/generate-description": {
82538
- "post": {
82539
- "operationId": "generateCrmRecordDescription",
82540
- "requestBody": {
82541
- "content": {
82542
- "application/json": {
82543
- "schema": {
82544
- "properties": {
82545
- "company": {
82546
- "description": "Ignored.",
82547
- "type": "string"
82548
- },
82549
- "entityId": {
82550
- "type": "string"
82551
- },
82552
- "entityType": {
82553
- "$ref": "#/components/schemas/CrmEntityType"
82554
- },
82555
- "location": {
82556
- "description": "Ignored.",
82557
- "type": "string"
82558
- },
82559
- "name": {
82560
- "description": "Ignored. Who is researched comes from the market-data record, not the request.",
82561
- "type": "string"
82562
- },
82563
- "title": {
82564
- "description": "Ignored.",
82565
- "type": "string"
82566
- }
82567
- },
82568
- "required": [
82569
- "entityId",
82570
- "entityType"
82571
- ],
82572
- "type": "object"
82573
- }
82574
- }
82575
- }
82576
- },
82577
- "responses": {
82578
- "200": {
82579
- "content": {
82580
- "application/json": {
82581
- "schema": {
82582
- "$ref": "#/components/schemas/CrmGenerateDescriptionResult"
82583
- }
82584
- }
82585
- },
82586
- "description": "The generated description, or null when no usable source was found."
82587
- },
82588
- "400": {
82589
- "content": {
82590
- "application/json": {
82591
- "schema": {
82592
- "$ref": "#/components/schemas/ErrorResponse"
82593
- }
82594
- }
82595
- },
82596
- "description": "Validation error"
82597
- },
82598
- "401": {
82599
- "content": {
82600
- "application/json": {
82601
- "schema": {
82602
- "$ref": "#/components/schemas/ErrorResponse"
82603
- }
82604
- }
82605
- },
82606
- "description": "Unauthorized"
82607
- },
82608
- "403": {
82609
- "content": {
82610
- "application/json": {
82611
- "schema": {
82612
- "$ref": "#/components/schemas/ErrorResponse"
82613
- }
82614
- }
82615
- },
82616
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82617
- },
82618
- "404": {
82619
- "content": {
82620
- "application/json": {
82621
- "schema": {
82622
- "$ref": "#/components/schemas/ErrorResponse"
82623
- }
82624
- }
82625
- },
82626
- "description": "Not found"
82627
- },
82628
- "413": {
82629
- "content": {
82630
- "application/json": {
82631
- "schema": {
82632
- "$ref": "#/components/schemas/PayloadTooLarge"
82633
- }
82634
- }
82635
- },
82636
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82637
- },
82638
- "429": {
82639
- "content": {
82640
- "application/json": {
82641
- "schema": {
82642
- "$ref": "#/components/schemas/RateLimited"
82643
- }
82644
- }
82645
- },
82646
- "description": "`rate_limited` — too many AI requests from this user in the last minute. Wait `retryAfterSeconds` (also sent as the `Retry-After` header)."
82647
- },
82648
- "503": {
82649
- "content": {
82650
- "application/json": {
82651
- "schema": {
82652
- "$ref": "#/components/schemas/SearchUnavailable"
82653
- }
82654
- }
82655
- },
82656
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82657
- }
82658
- },
82659
- "summary": "Auto-generate a record's description from the web",
82660
- "tags": [
82661
- "CRM"
82662
- ]
82663
- }
82664
- },
82665
- "/v1/crm/records/grant-access": {
82666
- "post": {
82667
- "operationId": "grantCrmRecordAccessRequest",
82668
- "requestBody": {
82669
- "content": {
82670
- "application/json": {
82671
- "schema": {
82672
- "properties": {
82673
- "requestId": {
82674
- "minLength": 1,
82675
- "type": "string"
82676
- }
82677
- },
82678
- "required": [
82679
- "requestId"
82680
- ],
82681
- "type": "object"
82682
- }
82683
- }
82684
- }
82685
- },
82686
- "responses": {
82687
- "200": {
82688
- "content": {
82689
- "application/json": {
82690
- "schema": {
82691
- "$ref": "#/components/schemas/CrmGrantRecordAccessRequestResult"
82692
- }
82693
- }
82694
- },
82695
- "description": "The requester was granted access (idempotent) and the ask closed."
82696
- },
82697
- "400": {
82698
- "content": {
82699
- "application/json": {
82700
- "schema": {
82701
- "$ref": "#/components/schemas/ErrorResponse"
82702
- }
82703
- }
82704
- },
82705
- "description": "Validation error"
82706
- },
82707
- "401": {
82708
- "content": {
82709
- "application/json": {
82710
- "schema": {
82711
- "$ref": "#/components/schemas/ErrorResponse"
82712
- }
82713
- }
82714
- },
82715
- "description": "Unauthorized"
82716
- },
82717
- "403": {
82718
- "content": {
82719
- "application/json": {
82720
- "schema": {
82721
- "$ref": "#/components/schemas/ErrorResponse"
82722
- }
82723
- }
82724
- },
82725
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82726
- },
82727
- "404": {
82728
- "content": {
82729
- "application/json": {
82730
- "schema": {
82731
- "$ref": "#/components/schemas/ErrorResponse"
82732
- }
82733
- }
82734
- },
82735
- "description": "Not found"
82736
- },
82737
- "413": {
82738
- "content": {
82739
- "application/json": {
82740
- "schema": {
82741
- "$ref": "#/components/schemas/PayloadTooLarge"
82742
- }
82743
- }
82744
- },
82745
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82746
- },
82747
- "502": {
82748
- "content": {
82749
- "application/json": {
82750
- "schema": {
82751
- "$ref": "#/components/schemas/ErrorResponse"
82752
- }
82753
- }
82754
- },
82755
- "description": "Auth service unavailable (roster needed for the gate)."
82756
- },
82757
- "503": {
82758
- "content": {
82759
- "application/json": {
82760
- "schema": {
82761
- "$ref": "#/components/schemas/SearchUnavailable"
82762
- }
82763
- }
82764
- },
82765
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82766
- }
82767
- },
82768
- "summary": "Grant a pending record access request (owner/admin, one tap)",
81905
+ "summary": "Create a manual (unmatched) CRM record",
82769
81906
  "tags": [
82770
81907
  "CRM"
82771
81908
  ]
82772
81909
  }
82773
81910
  },
82774
- "/v1/crm/records/member-ids": {
82775
- "get": {
82776
- "operationId": "getCrmRecordMemberIds",
82777
- "parameters": [
82778
- {
82779
- "in": "query",
82780
- "name": "objectType",
82781
- "required": true,
82782
- "schema": {
82783
- "$ref": "#/components/schemas/CrmObjectType"
81911
+ "/v1/crm/records/decline-mi-update": {
81912
+ "post": {
81913
+ "operationId": "declineCrmMiUpdate",
81914
+ "requestBody": {
81915
+ "content": {
81916
+ "application/json": {
81917
+ "schema": {
81918
+ "properties": {
81919
+ "entityId": {
81920
+ "type": "string"
81921
+ },
81922
+ "entityType": {
81923
+ "$ref": "#/components/schemas/CrmEntityType"
81924
+ },
81925
+ "fields": {
81926
+ "description": "The diverging override fields to keep, e.g. `[\"company\", \"location\"]`. Batched because the review dialog can select several rows at once. Only the fields the server still sees diverging are suppressed.",
81927
+ "items": {
81928
+ "maxLength": 64,
81929
+ "minLength": 1,
81930
+ "type": "string"
81931
+ },
81932
+ "maxItems": 16,
81933
+ "minItems": 1,
81934
+ "type": "array"
81935
+ }
81936
+ },
81937
+ "required": [
81938
+ "entityId",
81939
+ "entityType",
81940
+ "fields"
81941
+ ],
81942
+ "type": "object"
81943
+ }
82784
81944
  }
82785
81945
  }
82786
- ],
81946
+ },
82787
81947
  "responses": {
82788
81948
  "200": {
82789
81949
  "content": {
82790
81950
  "application/json": {
82791
81951
  "schema": {
82792
- "$ref": "#/components/schemas/CrmMemberIdsResult"
81952
+ "$ref": "#/components/schemas/CrmDeclineMiUpdateResult"
82793
81953
  }
82794
81954
  }
82795
81955
  },
82796
- "description": "Every workspace record id of the object type."
81956
+ "description": "The subset of the requested fields that actually diverged and are now suppressed. A field absent from this list no longer disagrees with MI, so there was nothing to decline."
82797
81957
  },
82798
81958
  "400": {
82799
81959
  "content": {
@@ -82856,25 +82016,31 @@
82856
82016
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82857
82017
  }
82858
82018
  },
82859
- "summary": "List the workspace's record entity ids of an object type (ids only)",
82019
+ "summary": "Keep the pinned values — suppress divergence proposals",
82860
82020
  "tags": [
82861
82021
  "CRM"
82862
82022
  ]
82863
82023
  }
82864
82024
  },
82865
- "/v1/crm/records/mention-search": {
82025
+ "/v1/crm/records/delete": {
82866
82026
  "post": {
82867
- "operationId": "searchCrmMentionRecords",
82027
+ "operationId": "deleteCrmRecords",
82868
82028
  "requestBody": {
82869
82029
  "content": {
82870
82030
  "application/json": {
82871
82031
  "schema": {
82872
82032
  "properties": {
82873
- "q": {
82874
- "default": "",
82875
- "type": "string"
82033
+ "entityIds": {
82034
+ "items": {
82035
+ "type": "string"
82036
+ },
82037
+ "minItems": 1,
82038
+ "type": "array"
82876
82039
  }
82877
82040
  },
82041
+ "required": [
82042
+ "entityIds"
82043
+ ],
82878
82044
  "type": "object"
82879
82045
  }
82880
82046
  }
@@ -82885,11 +82051,11 @@
82885
82051
  "content": {
82886
82052
  "application/json": {
82887
82053
  "schema": {
82888
- "$ref": "#/components/schemas/CrmMentionSearch"
82054
+ "$ref": "#/components/schemas/CrmDeleteRecordsResult"
82889
82055
  }
82890
82056
  }
82891
82057
  },
82892
- "description": "The viewer-visible records matching the query (or recent)."
82058
+ "description": "Ids actually removed vs. skipped (not owned / not found)."
82893
82059
  },
82894
82060
  "400": {
82895
82061
  "content": {
@@ -82952,32 +82118,43 @@
82952
82118
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82953
82119
  }
82954
82120
  },
82955
- "summary": "Name-first search over visible CRM records for the mention picker",
82121
+ "summary": "Remove one or more records from the CRM",
82956
82122
  "tags": [
82957
82123
  "CRM"
82958
82124
  ]
82959
82125
  }
82960
82126
  },
82961
- "/v1/crm/records/mi-updates": {
82127
+ "/v1/crm/records/describe-on-add": {
82962
82128
  "post": {
82963
- "operationId": "getCrmMiUpdates",
82129
+ "operationId": "describeCrmRecordsOnAdd",
82964
82130
  "requestBody": {
82965
82131
  "content": {
82966
82132
  "application/json": {
82967
82133
  "schema": {
82968
82134
  "properties": {
82969
- "entityId": {
82970
- "maxLength": 128,
82971
- "minLength": 1,
82972
- "type": "string"
82973
- },
82974
- "entityType": {
82975
- "$ref": "#/components/schemas/CrmEntityType"
82135
+ "created": {
82136
+ "items": {
82137
+ "properties": {
82138
+ "entityId": {
82139
+ "type": "string"
82140
+ },
82141
+ "entityType": {
82142
+ "$ref": "#/components/schemas/CrmEntityType"
82143
+ }
82144
+ },
82145
+ "required": [
82146
+ "entityId",
82147
+ "entityType"
82148
+ ],
82149
+ "type": "object"
82150
+ },
82151
+ "maxItems": 500,
82152
+ "minItems": 1,
82153
+ "type": "array"
82976
82154
  }
82977
82155
  },
82978
82156
  "required": [
82979
- "entityId",
82980
- "entityType"
82157
+ "created"
82981
82158
  ],
82982
82159
  "type": "object"
82983
82160
  }
@@ -82989,11 +82166,11 @@
82989
82166
  "content": {
82990
82167
  "application/json": {
82991
82168
  "schema": {
82992
- "$ref": "#/components/schemas/CrmMiUpdatesResult"
82169
+ "$ref": "#/components/schemas/CrmDescribeOnAddResult"
82993
82170
  }
82994
82171
  }
82995
82172
  },
82996
- "description": "The available per-field updates + the check timestamp (null when skipped)."
82173
+ "description": "The created entity ids that need a generate-description run (cache misses this caller claimed)."
82997
82174
  },
82998
82175
  "400": {
82999
82176
  "content": {
@@ -83056,24 +82233,33 @@
83056
82233
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83057
82234
  }
83058
82235
  },
83059
- "summary": "Compute which Market-Insights fields differ from a record snapshot",
82236
+ "summary": "Resolve descriptions for just-created records (cache-first)",
83060
82237
  "tags": [
83061
82238
  "CRM"
83062
82239
  ]
83063
82240
  }
83064
82241
  },
83065
- "/v1/crm/records/refresh-mirror": {
82242
+ "/v1/crm/records/dismiss-mi-updates": {
83066
82243
  "post": {
83067
- "operationId": "refreshCrmRecordMirror",
82244
+ "operationId": "dismissCrmMiUpdates",
83068
82245
  "requestBody": {
83069
82246
  "content": {
83070
82247
  "application/json": {
83071
82248
  "schema": {
83072
82249
  "properties": {
83073
82250
  "entityId": {
83074
- "maxLength": 128,
83075
- "minLength": 1,
83076
82251
  "type": "string"
82252
+ },
82253
+ "seen": {
82254
+ "additionalProperties": {
82255
+ "items": {
82256
+ "maxLength": 512,
82257
+ "type": "string"
82258
+ },
82259
+ "maxItems": 50,
82260
+ "type": "array"
82261
+ },
82262
+ "type": "object"
83077
82263
  }
83078
82264
  },
83079
82265
  "required": [
@@ -83089,11 +82275,11 @@
83089
82275
  "content": {
83090
82276
  "application/json": {
83091
82277
  "schema": {
83092
- "$ref": "#/components/schemas/CrmRefreshMirrorResult"
82278
+ "$ref": "#/components/schemas/CrmDismissMiUpdatesResult"
83093
82279
  }
83094
82280
  }
83095
82281
  },
83096
- "description": "Whether the mirror moved, and the display after the attempt. Never errors on a record that cannot be refreshed."
82282
+ "description": "Confirmation the check window was restarted. The seen-ledger is untouched."
83097
82283
  },
83098
82284
  "400": {
83099
82285
  "content": {
@@ -83156,32 +82342,46 @@
83156
82342
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83157
82343
  }
83158
82344
  },
83159
- "summary": "Freshen a record's mirrored Market-Insights row on demand",
82345
+ "summary": "Snooze surfaced MI updates for the check window",
83160
82346
  "tags": [
83161
82347
  "CRM"
83162
82348
  ]
83163
82349
  }
83164
82350
  },
83165
- "/v1/crm/records/request-access": {
82351
+ "/v1/crm/records/generate-description": {
83166
82352
  "post": {
83167
- "operationId": "requestCrmRecordAccess",
82353
+ "operationId": "generateCrmRecordDescription",
83168
82354
  "requestBody": {
83169
82355
  "content": {
83170
82356
  "application/json": {
83171
82357
  "schema": {
83172
82358
  "properties": {
82359
+ "company": {
82360
+ "description": "Ignored.",
82361
+ "type": "string"
82362
+ },
83173
82363
  "entityId": {
83174
- "minLength": 1,
83175
82364
  "type": "string"
83176
82365
  },
83177
- "organizationId": {
83178
- "minLength": 1,
82366
+ "entityType": {
82367
+ "$ref": "#/components/schemas/CrmEntityType"
82368
+ },
82369
+ "location": {
82370
+ "description": "Ignored.",
82371
+ "type": "string"
82372
+ },
82373
+ "name": {
82374
+ "description": "Ignored. Who is researched comes from the market-data record, not the request.",
82375
+ "type": "string"
82376
+ },
82377
+ "title": {
82378
+ "description": "Ignored.",
83179
82379
  "type": "string"
83180
82380
  }
83181
82381
  },
83182
82382
  "required": [
83183
- "organizationId",
83184
- "entityId"
82383
+ "entityId",
82384
+ "entityType"
83185
82385
  ],
83186
82386
  "type": "object"
83187
82387
  }
@@ -83193,11 +82393,11 @@
83193
82393
  "content": {
83194
82394
  "application/json": {
83195
82395
  "schema": {
83196
- "$ref": "#/components/schemas/CrmRecordRequestAccessResult"
82396
+ "$ref": "#/components/schemas/CrmGenerateDescriptionResult"
83197
82397
  }
83198
82398
  }
83199
82399
  },
83200
- "description": "The owner was emailed, a recent request still stands, or the caller already has access."
82400
+ "description": "The generated description, or null when no usable source was found."
83201
82401
  },
83202
82402
  "400": {
83203
82403
  "content": {
@@ -83249,25 +82449,15 @@
83249
82449
  },
83250
82450
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83251
82451
  },
83252
- "422": {
83253
- "content": {
83254
- "application/json": {
83255
- "schema": {
83256
- "$ref": "#/components/schemas/ErrorResponse"
83257
- }
83258
- }
83259
- },
83260
- "description": "The record has no owner/admin to notify."
83261
- },
83262
- "502": {
82452
+ "429": {
83263
82453
  "content": {
83264
82454
  "application/json": {
83265
82455
  "schema": {
83266
- "$ref": "#/components/schemas/ErrorResponse"
82456
+ "$ref": "#/components/schemas/RateLimited"
83267
82457
  }
83268
82458
  }
83269
82459
  },
83270
- "description": "Owner-roster lookup or email send failed — safe to retry."
82460
+ "description": "`rate_limited` — too many AI requests from this user in the last minute. Wait `retryAfterSeconds` (also sent as the `Retry-After` header)."
83271
82461
  },
83272
82462
  "503": {
83273
82463
  "content": {
@@ -83280,35 +82470,27 @@
83280
82470
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83281
82471
  }
83282
82472
  },
83283
- "summary": "Ask a record's owner to share it (membership-gated, notify-only)",
82473
+ "summary": "Auto-generate a record's description from the web",
83284
82474
  "tags": [
83285
82475
  "CRM"
83286
82476
  ]
83287
82477
  }
83288
82478
  },
83289
- "/v1/crm/records/search": {
82479
+ "/v1/crm/records/grant-access": {
83290
82480
  "post": {
83291
- "operationId": "searchCrmRecords",
82481
+ "operationId": "grantCrmRecordAccessRequest",
83292
82482
  "requestBody": {
83293
82483
  "content": {
83294
82484
  "application/json": {
83295
82485
  "schema": {
83296
82486
  "properties": {
83297
- "listId": {
83298
- "description": "Scope to one list's members; omit for the full CRM.",
83299
- "type": "string"
83300
- },
83301
- "objectType": {
83302
- "$ref": "#/components/schemas/CrmObjectType"
83303
- },
83304
- "q": {
83305
- "description": "Free-text query.",
82487
+ "requestId": {
82488
+ "minLength": 1,
83306
82489
  "type": "string"
83307
82490
  }
83308
82491
  },
83309
82492
  "required": [
83310
- "objectType",
83311
- "q"
82493
+ "requestId"
83312
82494
  ],
83313
82495
  "type": "object"
83314
82496
  }
@@ -83320,92 +82502,11 @@
83320
82502
  "content": {
83321
82503
  "application/json": {
83322
82504
  "schema": {
83323
- "$ref": "#/components/schemas/CrmRecordSearchResult"
83324
- }
83325
- }
83326
- },
83327
- "description": "The matching namespaced entity ids."
83328
- },
83329
- "400": {
83330
- "content": {
83331
- "application/json": {
83332
- "schema": {
83333
- "$ref": "#/components/schemas/ErrorResponse"
83334
- }
83335
- }
83336
- },
83337
- "description": "Validation error"
83338
- },
83339
- "401": {
83340
- "content": {
83341
- "application/json": {
83342
- "schema": {
83343
- "$ref": "#/components/schemas/ErrorResponse"
83344
- }
83345
- }
83346
- },
83347
- "description": "Unauthorized"
83348
- },
83349
- "403": {
83350
- "content": {
83351
- "application/json": {
83352
- "schema": {
83353
- "$ref": "#/components/schemas/ErrorResponse"
83354
- }
83355
- }
83356
- },
83357
- "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
83358
- },
83359
- "404": {
83360
- "content": {
83361
- "application/json": {
83362
- "schema": {
83363
- "$ref": "#/components/schemas/ErrorResponse"
83364
- }
83365
- }
83366
- },
83367
- "description": "Not found"
83368
- },
83369
- "413": {
83370
- "content": {
83371
- "application/json": {
83372
- "schema": {
83373
- "$ref": "#/components/schemas/PayloadTooLarge"
83374
- }
83375
- }
83376
- },
83377
- "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83378
- },
83379
- "503": {
83380
- "content": {
83381
- "application/json": {
83382
- "schema": {
83383
- "$ref": "#/components/schemas/SearchUnavailable"
83384
- }
83385
- }
83386
- },
83387
- "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83388
- }
83389
- },
83390
- "summary": "Free-text search over CRM records",
83391
- "tags": [
83392
- "CRM"
83393
- ]
83394
- }
83395
- },
83396
- "/v1/crm/recruiting/calls/active": {
83397
- "get": {
83398
- "operationId": "getRecruitingActiveCall",
83399
- "responses": {
83400
- "200": {
83401
- "content": {
83402
- "application/json": {
83403
- "schema": {
83404
- "$ref": "#/components/schemas/RecruitingActiveCallResult"
82505
+ "$ref": "#/components/schemas/CrmGrantRecordAccessRequestResult"
83405
82506
  }
83406
82507
  }
83407
82508
  },
83408
- "description": "The most recent live call across my engagements, or null."
82509
+ "description": "The requester was granted access (idempotent) and the ask closed."
83409
82510
  },
83410
82511
  "400": {
83411
82512
  "content": {
@@ -83465,7 +82566,7 @@
83465
82566
  }
83466
82567
  }
83467
82568
  },
83468
- "description": "Auth service unavailable."
82569
+ "description": "Auth service unavailable (roster needed for the gate)."
83469
82570
  },
83470
82571
  "503": {
83471
82572
  "content": {
@@ -83478,25 +82579,35 @@
83478
82579
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83479
82580
  }
83480
82581
  },
83481
- "summary": "My still-live call in any customer workspace (reload resume)",
82582
+ "summary": "Grant a pending record access request (owner/admin, one tap)",
83482
82583
  "tags": [
83483
82584
  "CRM"
83484
82585
  ]
83485
82586
  }
83486
82587
  },
83487
- "/v1/crm/recruiting/engagements": {
82588
+ "/v1/crm/records/member-ids": {
83488
82589
  "get": {
83489
- "operationId": "listRecruitingEngagements",
82590
+ "operationId": "getCrmRecordMemberIds",
82591
+ "parameters": [
82592
+ {
82593
+ "in": "query",
82594
+ "name": "objectType",
82595
+ "required": true,
82596
+ "schema": {
82597
+ "$ref": "#/components/schemas/CrmObjectType"
82598
+ }
82599
+ }
82600
+ ],
83490
82601
  "responses": {
83491
82602
  "200": {
83492
82603
  "content": {
83493
82604
  "application/json": {
83494
82605
  "schema": {
83495
- "$ref": "#/components/schemas/RecruitingEngagementList"
82606
+ "$ref": "#/components/schemas/CrmMemberIdsResult"
83496
82607
  }
83497
82608
  }
83498
82609
  },
83499
- "description": "Active engagements, oldest first. Pass a `workspace.id` as `x-mm-organization-id` (MCP: `workspaceId`) to work that customer's CRM."
82610
+ "description": "Every workspace record id of the object type."
83500
82611
  },
83501
82612
  "400": {
83502
82613
  "content": {
@@ -83548,16 +82659,6 @@
83548
82659
  },
83549
82660
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83550
82661
  },
83551
- "502": {
83552
- "content": {
83553
- "application/json": {
83554
- "schema": {
83555
- "$ref": "#/components/schemas/ErrorResponse"
83556
- }
83557
- }
83558
- },
83559
- "description": "Auth service unavailable."
83560
- },
83561
82662
  "503": {
83562
82663
  "content": {
83563
82664
  "application/json": {
@@ -83569,35 +82670,40 @@
83569
82670
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83570
82671
  }
83571
82672
  },
83572
- "summary": "Customer workspaces I can work through a service engagement",
82673
+ "summary": "List the workspace's record entity ids of an object type (ids only)",
83573
82674
  "tags": [
83574
82675
  "CRM"
83575
82676
  ]
83576
82677
  }
83577
82678
  },
83578
- "/v1/crm/recruiting/lists": {
83579
- "get": {
83580
- "operationId": "listRecruitingLists",
83581
- "parameters": [
83582
- {
83583
- "in": "query",
83584
- "name": "objectType",
83585
- "required": false,
83586
- "schema": {
83587
- "$ref": "#/components/schemas/CrmObjectType"
82679
+ "/v1/crm/records/mention-search": {
82680
+ "post": {
82681
+ "operationId": "searchCrmMentionRecords",
82682
+ "requestBody": {
82683
+ "content": {
82684
+ "application/json": {
82685
+ "schema": {
82686
+ "properties": {
82687
+ "q": {
82688
+ "default": "",
82689
+ "type": "string"
82690
+ }
82691
+ },
82692
+ "type": "object"
82693
+ }
83588
82694
  }
83589
82695
  }
83590
- ],
82696
+ },
83591
82697
  "responses": {
83592
82698
  "200": {
83593
82699
  "content": {
83594
82700
  "application/json": {
83595
82701
  "schema": {
83596
- "$ref": "#/components/schemas/RecruitingListsResult"
82702
+ "$ref": "#/components/schemas/CrmMentionSearch"
83597
82703
  }
83598
82704
  }
83599
82705
  },
83600
- "description": "The lists I can see in each customer, newest first, each tagged with its customer."
82706
+ "description": "The viewer-visible records matching the query (or recent)."
83601
82707
  },
83602
82708
  "400": {
83603
82709
  "content": {
@@ -83649,16 +82755,6 @@
83649
82755
  },
83650
82756
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83651
82757
  },
83652
- "502": {
83653
- "content": {
83654
- "application/json": {
83655
- "schema": {
83656
- "$ref": "#/components/schemas/ErrorResponse"
83657
- }
83658
- }
83659
- },
83660
- "description": "Auth service unavailable."
83661
- },
83662
82758
  "503": {
83663
82759
  "content": {
83664
82760
  "application/json": {
@@ -83670,35 +82766,48 @@
83670
82766
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83671
82767
  }
83672
82768
  },
83673
- "summary": "My lists across every customer I work",
82769
+ "summary": "Name-first search over visible CRM records for the mention picker",
83674
82770
  "tags": [
83675
82771
  "CRM"
83676
82772
  ]
83677
82773
  }
83678
82774
  },
83679
- "/v1/crm/recruiting/people": {
83680
- "get": {
83681
- "operationId": "listRecruitingPeople",
83682
- "parameters": [
83683
- {
83684
- "in": "query",
83685
- "name": "objectType",
83686
- "required": false,
83687
- "schema": {
83688
- "$ref": "#/components/schemas/CrmObjectType"
82775
+ "/v1/crm/records/mi-updates": {
82776
+ "post": {
82777
+ "operationId": "getCrmMiUpdates",
82778
+ "requestBody": {
82779
+ "content": {
82780
+ "application/json": {
82781
+ "schema": {
82782
+ "properties": {
82783
+ "entityId": {
82784
+ "maxLength": 128,
82785
+ "minLength": 1,
82786
+ "type": "string"
82787
+ },
82788
+ "entityType": {
82789
+ "$ref": "#/components/schemas/CrmEntityType"
82790
+ }
82791
+ },
82792
+ "required": [
82793
+ "entityId",
82794
+ "entityType"
82795
+ ],
82796
+ "type": "object"
82797
+ }
83689
82798
  }
83690
82799
  }
83691
- ],
82800
+ },
83692
82801
  "responses": {
83693
82802
  "200": {
83694
82803
  "content": {
83695
82804
  "application/json": {
83696
82805
  "schema": {
83697
- "$ref": "#/components/schemas/RecruitingPeopleResult"
82806
+ "$ref": "#/components/schemas/CrmMiUpdatesResult"
83698
82807
  }
83699
82808
  }
83700
82809
  },
83701
- "description": "Records whose working owner is me, most recently active first, each tagged with its customer."
82810
+ "description": "The available per-field updates + the check timestamp (null when skipped)."
83702
82811
  },
83703
82812
  "400": {
83704
82813
  "content": {
@@ -83750,7 +82859,57 @@
83750
82859
  },
83751
82860
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83752
82861
  },
83753
- "502": {
82862
+ "503": {
82863
+ "content": {
82864
+ "application/json": {
82865
+ "schema": {
82866
+ "$ref": "#/components/schemas/SearchUnavailable"
82867
+ }
82868
+ }
82869
+ },
82870
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
82871
+ }
82872
+ },
82873
+ "summary": "Compute which Market-Insights fields differ from a record snapshot",
82874
+ "tags": [
82875
+ "CRM"
82876
+ ]
82877
+ }
82878
+ },
82879
+ "/v1/crm/records/refresh-mirror": {
82880
+ "post": {
82881
+ "operationId": "refreshCrmRecordMirror",
82882
+ "requestBody": {
82883
+ "content": {
82884
+ "application/json": {
82885
+ "schema": {
82886
+ "properties": {
82887
+ "entityId": {
82888
+ "maxLength": 128,
82889
+ "minLength": 1,
82890
+ "type": "string"
82891
+ }
82892
+ },
82893
+ "required": [
82894
+ "entityId"
82895
+ ],
82896
+ "type": "object"
82897
+ }
82898
+ }
82899
+ }
82900
+ },
82901
+ "responses": {
82902
+ "200": {
82903
+ "content": {
82904
+ "application/json": {
82905
+ "schema": {
82906
+ "$ref": "#/components/schemas/CrmRefreshMirrorResult"
82907
+ }
82908
+ }
82909
+ },
82910
+ "description": "Whether the mirror moved, and the display after the attempt. Never errors on a record that cannot be refreshed."
82911
+ },
82912
+ "400": {
83754
82913
  "content": {
83755
82914
  "application/json": {
83756
82915
  "schema": {
@@ -83758,7 +82917,47 @@
83758
82917
  }
83759
82918
  }
83760
82919
  },
83761
- "description": "Auth service unavailable."
82920
+ "description": "Validation error"
82921
+ },
82922
+ "401": {
82923
+ "content": {
82924
+ "application/json": {
82925
+ "schema": {
82926
+ "$ref": "#/components/schemas/ErrorResponse"
82927
+ }
82928
+ }
82929
+ },
82930
+ "description": "Unauthorized"
82931
+ },
82932
+ "403": {
82933
+ "content": {
82934
+ "application/json": {
82935
+ "schema": {
82936
+ "$ref": "#/components/schemas/ErrorResponse"
82937
+ }
82938
+ }
82939
+ },
82940
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82941
+ },
82942
+ "404": {
82943
+ "content": {
82944
+ "application/json": {
82945
+ "schema": {
82946
+ "$ref": "#/components/schemas/ErrorResponse"
82947
+ }
82948
+ }
82949
+ },
82950
+ "description": "Not found"
82951
+ },
82952
+ "413": {
82953
+ "content": {
82954
+ "application/json": {
82955
+ "schema": {
82956
+ "$ref": "#/components/schemas/PayloadTooLarge"
82957
+ }
82958
+ }
82959
+ },
82960
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83762
82961
  },
83763
82962
  "503": {
83764
82963
  "content": {
@@ -83771,28 +82970,32 @@
83771
82970
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83772
82971
  }
83773
82972
  },
83774
- "summary": "Records I own across every customer I work",
82973
+ "summary": "Freshen a record's mirrored Market-Insights row on demand",
83775
82974
  "tags": [
83776
82975
  "CRM"
83777
82976
  ]
83778
82977
  }
83779
82978
  },
83780
- "/v1/crm/recruiting/people/search": {
82979
+ "/v1/crm/records/request-access": {
83781
82980
  "post": {
83782
- "operationId": "searchRecruitingPeople",
82981
+ "operationId": "requestCrmRecordAccess",
83783
82982
  "requestBody": {
83784
82983
  "content": {
83785
82984
  "application/json": {
83786
82985
  "schema": {
83787
82986
  "properties": {
83788
- "q": {
83789
- "maxLength": 200,
82987
+ "entityId": {
82988
+ "minLength": 1,
82989
+ "type": "string"
82990
+ },
82991
+ "organizationId": {
83790
82992
  "minLength": 1,
83791
82993
  "type": "string"
83792
82994
  }
83793
82995
  },
83794
82996
  "required": [
83795
- "q"
82997
+ "organizationId",
82998
+ "entityId"
83796
82999
  ],
83797
83000
  "type": "object"
83798
83001
  }
@@ -83804,11 +83007,11 @@
83804
83007
  "content": {
83805
83008
  "application/json": {
83806
83009
  "schema": {
83807
- "$ref": "#/components/schemas/RecruitingPeopleSearchResult"
83010
+ "$ref": "#/components/schemas/CrmRecordRequestAccessResult"
83808
83011
  }
83809
83012
  }
83810
83013
  },
83811
- "description": "Name-first matches, up to 10 per customer, interleaved so no one customer crowds out the rest."
83014
+ "description": "The owner was emailed, a recent request still stands, or the caller already has access."
83812
83015
  },
83813
83016
  "400": {
83814
83017
  "content": {
@@ -83860,6 +83063,16 @@
83860
83063
  },
83861
83064
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83862
83065
  },
83066
+ "422": {
83067
+ "content": {
83068
+ "application/json": {
83069
+ "schema": {
83070
+ "$ref": "#/components/schemas/ErrorResponse"
83071
+ }
83072
+ }
83073
+ },
83074
+ "description": "The record has no owner/admin to notify."
83075
+ },
83863
83076
  "502": {
83864
83077
  "content": {
83865
83078
  "application/json": {
@@ -83868,7 +83081,7 @@
83868
83081
  }
83869
83082
  }
83870
83083
  },
83871
- "description": "Auth service unavailable."
83084
+ "description": "Owner-roster lookup or email send failed — safe to retry."
83872
83085
  },
83873
83086
  "503": {
83874
83087
  "content": {
@@ -83881,25 +83094,51 @@
83881
83094
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83882
83095
  }
83883
83096
  },
83884
- "summary": "Search the records I can see across every customer I work",
83097
+ "summary": "Ask a record's owner to share it (membership-gated, notify-only)",
83885
83098
  "tags": [
83886
83099
  "CRM"
83887
83100
  ]
83888
83101
  }
83889
83102
  },
83890
- "/v1/crm/recruiting/queue": {
83891
- "get": {
83892
- "operationId": "getRecruitingQueue",
83103
+ "/v1/crm/records/search": {
83104
+ "post": {
83105
+ "operationId": "searchCrmRecords",
83106
+ "requestBody": {
83107
+ "content": {
83108
+ "application/json": {
83109
+ "schema": {
83110
+ "properties": {
83111
+ "listId": {
83112
+ "description": "Scope to one list's members; omit for the full CRM.",
83113
+ "type": "string"
83114
+ },
83115
+ "objectType": {
83116
+ "$ref": "#/components/schemas/CrmObjectType"
83117
+ },
83118
+ "q": {
83119
+ "description": "Free-text query.",
83120
+ "type": "string"
83121
+ }
83122
+ },
83123
+ "required": [
83124
+ "objectType",
83125
+ "q"
83126
+ ],
83127
+ "type": "object"
83128
+ }
83129
+ }
83130
+ }
83131
+ },
83893
83132
  "responses": {
83894
83133
  "200": {
83895
83134
  "content": {
83896
83135
  "application/json": {
83897
83136
  "schema": {
83898
- "$ref": "#/components/schemas/RecruitingQueueResult"
83137
+ "$ref": "#/components/schemas/CrmRecordSearchResult"
83899
83138
  }
83900
83139
  }
83901
83140
  },
83902
- "description": "Open tasks assigned to me (due-soonest first) and meetings I organise that are still scheduled (soonest first), each tagged with its customer workspace."
83141
+ "description": "The matching namespaced entity ids."
83903
83142
  },
83904
83143
  "400": {
83905
83144
  "content": {
@@ -83951,16 +83190,6 @@
83951
83190
  },
83952
83191
  "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83953
83192
  },
83954
- "502": {
83955
- "content": {
83956
- "application/json": {
83957
- "schema": {
83958
- "$ref": "#/components/schemas/ErrorResponse"
83959
- }
83960
- }
83961
- },
83962
- "description": "Auth service unavailable."
83963
- },
83964
83193
  "503": {
83965
83194
  "content": {
83966
83195
  "application/json": {
@@ -83972,7 +83201,7 @@
83972
83201
  "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83973
83202
  }
83974
83203
  },
83975
- "summary": "My open tasks and scheduled meetings across every customer I work",
83204
+ "summary": "Free-text search over CRM records",
83976
83205
  "tags": [
83977
83206
  "CRM"
83978
83207
  ]
@@ -104413,7 +103642,7 @@
104413
103642
  }
104414
103643
  }
104415
103644
  },
104416
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
103645
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
104417
103646
  },
104418
103647
  "429": {
104419
103648
  "content": {
@@ -104442,7 +103671,7 @@
104442
103671
  ]
104443
103672
  },
104444
103673
  "post": {
104445
- "description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A model may never use a protected characteristic — race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance — as a data point, an own column, a direction rule or a boost: a column named for one is refused with `400 protected_characteristic`, naming them in `details.fields`; nothing unlocks it. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are allowed for everyone; the report card adds a fair-lending caveat. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
103674
+ "description": "Define a model — what to predict, for whom, in which state, and the data points to use — and start training it. It answers at once with `status: training` and `expectedMinutes`, a range that depends on the size of the state: a couple of minutes for a small state, 15 to 25 for the largest (an estimate; say the range, and say it is an estimate). Read the model with getStudioModel until it is `ready` or `refused`: `progress` gives the numbered step it is on and how long is left. `features` is the heart of it: the data points the person believes matter. Their own knowledge can be data points too — columns of their uploaded outcomes table such as a lead source or a rating their team gives. To learn from their own results instead of a market outcome, pass `outcomeSource` (an uploaded table with a home, a date and what happened on every row); that usually helps most. Everything a model learns from is taken strictly before each case's date, and a data point that could show it the answer is refused with the reason. To try a different list of data points, send the same `name` with `replace: true`, or a new name with `basedOn`: the new report card says what changed. An uploaded file's table is named `upload_<name>` (the upload `my_deals` is the table `upload_my_deals`); a wrong name is refused with the names that exist. A model may never use a protected characteristic — race, color, ethnicity, national origin, religion, sex or gender, familial status, disability, age, marital status or receipt of public assistance — as a data point, an own column, a direction rule or a boost: a column named for one is refused with `400 protected_characteristic`, naming them in `details.fields`; nothing unlocks it. Neighborhood data points (`needsFairLendingReview`), ZIP code and city boosts and directions on a place are allowed for everyone; the report card adds a fair-lending caveat. `basedOnPublished` starts from a model ModelMatch publishes (its `mm_model_*` table): its outcome, data points and weighting are copied into your organization as your own model — anything this request gives overrides them — and trained on your scope; its report card compares with the published original. Weighting is optional: `recencyWeighting` counts recent past cases more while learning (testing stays unweighted), a `direction` on a number data point holds the model to it, and `boosts` add `priorityScore` and `priorityRank` to the scores table after the model; the report card is about `score`, never the boosted order. A request that cannot work is refused now with a clear reason (`error`, `code`, and the numbers in `details`). A model of a few ZIP codes or counties is checked for enough past cases of the outcome first, in seconds and free: with too few it is refused (`422 scope_too_small`) with the smallest wider area that has enough — the county, the county and its neighbors, or the state, never another state — in `details.suggestedScope`, and each area's count in `details.scopeSizes`; `widen: \"auto\"` trains on that area instead and scores only the area asked about (the model's `focus`; `scoreArea: \"training\"` scores all of it, with `inFocus` on each row), priced like any model; a re-score keeps both areas and a retrain checks the size again. `widen: \"off\"` trains on the area as asked. An organization can have a few models running at once (3 by default; past that, `409 model_training_in_progress` says how many are running and the limit), and a model runs once at a time; up to 10 models. 50 credits for a model that passes its checks, charged once when it has finished: by the first call that reads it or, if nobody does, on its own within about two hours. A model that is refused or fails is free.",
104446
103675
  "operationId": "createStudioModel",
104447
103676
  "requestBody": {
104448
103677
  "content": {
@@ -104523,7 +103752,7 @@
104523
103752
  }
104524
103753
  }
104525
103754
  },
104526
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
103755
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
104527
103756
  },
104528
103757
  "429": {
104529
103758
  "content": {
@@ -104635,7 +103864,7 @@
104635
103864
  }
104636
103865
  }
104637
103866
  },
104638
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
103867
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
104639
103868
  },
104640
103869
  "429": {
104641
103870
  "content": {
@@ -104847,7 +104076,7 @@
104847
104076
  }
104848
104077
  }
104849
104078
  },
104850
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
104079
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
104851
104080
  },
104852
104081
  "429": {
104853
104082
  "content": {
@@ -104985,7 +104214,7 @@
104985
104214
  }
104986
104215
  }
104987
104216
  },
104988
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
104217
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
104989
104218
  },
104990
104219
  "429": {
104991
104220
  "content": {
@@ -105121,7 +104350,7 @@
105121
104350
  }
105122
104351
  }
105123
104352
  },
105124
- "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help."
104353
+ "description": "Your own data cannot support this model as asked: no date column, too few rows or too few of one outcome, every row the same outcome, dates in the future, too few rows matched to homes, or a data point that is the outcome or was recorded after it. `error` states the numbers and what would help. `scope_too_small` — the ZIP codes or counties have too few past cases of the outcome to learn from and test fairly: nothing was started or charged; `details.suggestedScope` is the smallest wider area with enough (its county, the county and its neighbors, or the state) and `details.scopeSizes` lists each area's past cases. Send the same request with `widen: \"auto\"` to train on it and score the area asked about, or `widen: \"off\"` to train on the area as asked."
105125
104354
  },
105126
104355
  "429": {
105127
104356
  "content": {