@model-match/api 3.106.0 → 3.107.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
@@ -19157,15 +19157,21 @@
19157
19157
  "items": {
19158
19158
  "additionalProperties": false,
19159
19159
  "properties": {
19160
+ "by": {
19161
+ "exclusiveMinimum": true,
19162
+ "minimum": 0,
19163
+ "type": "number"
19164
+ },
19160
19165
  "column": {
19161
19166
  "type": "string"
19162
19167
  },
19163
19168
  "on": {
19164
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
19169
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
19165
19170
  "enum": [
19166
19171
  "rows_added",
19167
19172
  "rows_removed",
19168
- "threshold"
19173
+ "threshold",
19174
+ "changed"
19169
19175
  ],
19170
19176
  "type": "string"
19171
19177
  },
@@ -19178,6 +19184,11 @@
19178
19184
  ],
19179
19185
  "type": "string"
19180
19186
  },
19187
+ "percent": {
19188
+ "exclusiveMinimum": true,
19189
+ "minimum": 0,
19190
+ "type": "number"
19191
+ },
19181
19192
  "value": {
19182
19193
  "type": "number"
19183
19194
  }
@@ -26497,6 +26508,58 @@
26497
26508
  ],
26498
26509
  "type": "object"
26499
26510
  },
26511
+ "DatabaseColumn": {
26512
+ "properties": {
26513
+ "name": {
26514
+ "type": "string"
26515
+ },
26516
+ "notNull": {
26517
+ "type": "boolean"
26518
+ },
26519
+ "primaryKey": {
26520
+ "description": "Position in the primary key (1-based); 0 when not part of it.",
26521
+ "type": "integer"
26522
+ },
26523
+ "type": {
26524
+ "description": "The declared type, as written in the database (`\"\"` when none).",
26525
+ "type": "string"
26526
+ }
26527
+ },
26528
+ "required": [
26529
+ "name",
26530
+ "type",
26531
+ "notNull",
26532
+ "primaryKey"
26533
+ ],
26534
+ "type": "object"
26535
+ },
26536
+ "DatabaseTable": {
26537
+ "properties": {
26538
+ "columns": {
26539
+ "items": {
26540
+ "$ref": "#/components/schemas/DatabaseColumn"
26541
+ },
26542
+ "type": "array"
26543
+ },
26544
+ "name": {
26545
+ "type": "string"
26546
+ },
26547
+ "rowCount": {
26548
+ "type": "integer"
26549
+ },
26550
+ "rowCountExact": {
26551
+ "description": "False for a very large table: it holds at least `rowCount` rows.",
26552
+ "type": "boolean"
26553
+ }
26554
+ },
26555
+ "required": [
26556
+ "name",
26557
+ "columns",
26558
+ "rowCount",
26559
+ "rowCountExact"
26560
+ ],
26561
+ "type": "object"
26562
+ },
26500
26563
  "DateFilterValue": {
26501
26564
  "anyOf": [
26502
26565
  {
@@ -27725,6 +27788,9 @@
27725
27788
  "createdAt": {
27726
27789
  "type": "string"
27727
27790
  },
27791
+ "database": {
27792
+ "$ref": "#/components/schemas/FileDatabase"
27793
+ },
27728
27794
  "id": {
27729
27795
  "type": "string"
27730
27796
  },
@@ -27853,7 +27919,8 @@
27853
27919
  "updatedAt",
27854
27920
  "readyAt",
27855
27921
  "ref",
27856
- "pinnedAt"
27922
+ "pinnedAt",
27923
+ "database"
27857
27924
  ],
27858
27925
  "type": "object"
27859
27926
  },
@@ -28023,10 +28090,119 @@
28023
28090
  ],
28024
28091
  "type": "object"
28025
28092
  },
28093
+ "FileDatabase": {
28094
+ "description": "For a SQLite database (`kind: \"sqlite\"`, told from the file's bytes, not its name): its tables, columns and row counts for a preview, or why it cannot be used. `null` for every other file.",
28095
+ "nullable": true,
28096
+ "properties": {
28097
+ "code": {
28098
+ "enum": [
28099
+ "not_sqlite",
28100
+ "database_too_large",
28101
+ "database_damaged",
28102
+ "database_unsupported",
28103
+ "database_unsafe"
28104
+ ],
28105
+ "type": "string"
28106
+ },
28107
+ "indexes": {
28108
+ "items": {
28109
+ "properties": {
28110
+ "name": {
28111
+ "type": "string"
28112
+ },
28113
+ "table": {
28114
+ "type": "string"
28115
+ },
28116
+ "unique": {
28117
+ "type": "boolean"
28118
+ }
28119
+ },
28120
+ "required": [
28121
+ "name",
28122
+ "table",
28123
+ "unique"
28124
+ ],
28125
+ "type": "object"
28126
+ },
28127
+ "type": "array"
28128
+ },
28129
+ "inspectedAt": {
28130
+ "type": "string"
28131
+ },
28132
+ "message": {
28133
+ "type": "string"
28134
+ },
28135
+ "pageCount": {
28136
+ "type": "integer"
28137
+ },
28138
+ "pageSize": {
28139
+ "type": "integer"
28140
+ },
28141
+ "revision": {
28142
+ "description": "The revision this description is of.",
28143
+ "type": "integer"
28144
+ },
28145
+ "sizeBytes": {
28146
+ "type": "integer"
28147
+ },
28148
+ "status": {
28149
+ "description": "`ready`: described below. `pending`: not read yet (it is read on its next use, or while it is still being checked for malware). `unusable`: it cannot be opened as a database (`code`, `message`); it stays in the library as a file.",
28150
+ "enum": [
28151
+ "ready",
28152
+ "pending",
28153
+ "unusable"
28154
+ ],
28155
+ "type": "string"
28156
+ },
28157
+ "tables": {
28158
+ "items": {
28159
+ "$ref": "#/components/schemas/DatabaseTable"
28160
+ },
28161
+ "type": "array"
28162
+ },
28163
+ "triggers": {
28164
+ "items": {
28165
+ "properties": {
28166
+ "name": {
28167
+ "type": "string"
28168
+ },
28169
+ "table": {
28170
+ "type": "string"
28171
+ }
28172
+ },
28173
+ "required": [
28174
+ "name",
28175
+ "table"
28176
+ ],
28177
+ "type": "object"
28178
+ },
28179
+ "type": "array"
28180
+ },
28181
+ "views": {
28182
+ "items": {
28183
+ "properties": {
28184
+ "name": {
28185
+ "type": "string"
28186
+ }
28187
+ },
28188
+ "required": [
28189
+ "name"
28190
+ ],
28191
+ "type": "object"
28192
+ },
28193
+ "type": "array"
28194
+ }
28195
+ },
28196
+ "required": [
28197
+ "status",
28198
+ "revision"
28199
+ ],
28200
+ "type": "object"
28201
+ },
28026
28202
  "FileError": {
28027
28203
  "properties": {
28028
28204
  "code": {
28029
- "description": "Stable code: `not_found`, `forbidden`, `no_organization`, `unauthenticated`, `invalid_request`, `invalid_cursor`, `invalid_principal`, `principal_not_in_organization`, `invalid_link_target`, `link_target_not_supported`, `link_not_found`, `share_not_found`, `upload_missing`, `upload_rejected`, `size_mismatch`, `checksum_mismatch`, `not_ready`, `legal_hold`, `retention`, `protected_share_scope`, `agent_not_approved`, `human_required`, `not_protected`, `invalid_derived_from`, `malware`, `unscannable`, `file_busy`, `access_log_unavailable`, `scan_pending`, `revision_pending`, `storage_unavailable`, `membership_unavailable`, `no_content`, `not_reference`, `reference_not_supported`.",
28205
+ "description": "Stable code: `not_found`, `forbidden`, `no_organization`, `unauthenticated`, `invalid_request`, `invalid_cursor`, `invalid_principal`, `principal_not_in_organization`, `invalid_link_target`, `link_target_not_supported`, `link_not_found`, `share_not_found`, `upload_missing`, `upload_rejected`, `size_mismatch`, `checksum_mismatch`, `not_ready`, `legal_hold`, `retention`, `protected_share_scope`, `agent_not_approved`, `human_required`, `not_protected`, `invalid_derived_from`, `malware`, `unscannable`, `file_busy`, `access_log_unavailable`, `scan_pending`, `revision_pending`, `storage_unavailable`, `membership_unavailable`, `no_content`, `not_reference`, `reference_not_supported`, `database_too_large`.",
28030
28206
  "type": "string"
28031
28207
  },
28032
28208
  "error": {
@@ -34475,6 +34651,16 @@
34475
34651
  "description": "Rows it would hold now.",
34476
34652
  "type": "number"
34477
34653
  },
34654
+ "rows": {
34655
+ "description": "A query template (`type: sql`): up to 25 rows that would have fired in the window, in its own columns; `sample` is empty.",
34656
+ "items": {
34657
+ "additionalProperties": {
34658
+ "nullable": true
34659
+ },
34660
+ "type": "object"
34661
+ },
34662
+ "type": "array"
34663
+ },
34478
34664
  "sample": {
34479
34665
  "description": "Up to 25 rows of the table it would fill.",
34480
34666
  "items": {
@@ -35581,6 +35767,16 @@
35581
35767
  "description": "Rows it would hold now.",
35582
35768
  "type": "number"
35583
35769
  },
35770
+ "rows": {
35771
+ "description": "A query template (`type: sql`): up to 25 rows that would have fired in the window, in its own columns; `sample` is empty.",
35772
+ "items": {
35773
+ "additionalProperties": {
35774
+ "nullable": true
35775
+ },
35776
+ "type": "object"
35777
+ },
35778
+ "type": "array"
35779
+ },
35584
35780
  "sample": {
35585
35781
  "description": "Up to 25 rows of the table it would fill.",
35586
35782
  "items": {
@@ -35968,11 +36164,13 @@
35968
36164
  "type": "string"
35969
36165
  },
35970
36166
  "family": {
36167
+ "description": "`custom`: a query template; set up, it is a SQL monitor (`job:<name>`).",
35971
36168
  "enum": [
35972
36169
  "past-clients",
35973
36170
  "agent-partners",
35974
36171
  "farm-area",
35975
- "watch-record"
36172
+ "watch-record",
36173
+ "custom"
35976
36174
  ],
35977
36175
  "type": "string"
35978
36176
  },
@@ -36003,6 +36201,10 @@
36003
36201
  "min": {
36004
36202
  "type": "number"
36005
36203
  },
36204
+ "name": {
36205
+ "description": "A query template's input: its key in `inputs`.",
36206
+ "type": "string"
36207
+ },
36006
36208
  "required": {
36007
36209
  "type": "boolean"
36008
36210
  },
@@ -36011,7 +36213,11 @@
36011
36213
  "nmls",
36012
36214
  "agent",
36013
36215
  "area",
36014
- "document"
36216
+ "document",
36217
+ "nmlsList",
36218
+ "state",
36219
+ "brokerage",
36220
+ "count"
36015
36221
  ],
36016
36222
  "type": "string"
36017
36223
  }
@@ -36053,6 +36259,14 @@
36053
36259
  },
36054
36260
  "title": {
36055
36261
  "type": "string"
36262
+ },
36263
+ "type": {
36264
+ "description": "`sql`: its inputs are named (`inputs[].name`), and it is set up as a SQL monitor that is charged only when it finds something.",
36265
+ "enum": [
36266
+ "template",
36267
+ "sql"
36268
+ ],
36269
+ "type": "string"
36056
36270
  }
36057
36271
  },
36058
36272
  "required": [
@@ -36113,15 +36327,21 @@
36113
36327
  "rule": {
36114
36328
  "additionalProperties": false,
36115
36329
  "properties": {
36330
+ "by": {
36331
+ "exclusiveMinimum": true,
36332
+ "minimum": 0,
36333
+ "type": "number"
36334
+ },
36116
36335
  "column": {
36117
36336
  "type": "string"
36118
36337
  },
36119
36338
  "on": {
36120
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
36339
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
36121
36340
  "enum": [
36122
36341
  "rows_added",
36123
36342
  "rows_removed",
36124
- "threshold"
36343
+ "threshold",
36344
+ "changed"
36125
36345
  ],
36126
36346
  "type": "string"
36127
36347
  },
@@ -36134,6 +36354,11 @@
36134
36354
  ],
36135
36355
  "type": "string"
36136
36356
  },
36357
+ "percent": {
36358
+ "exclusiveMinimum": true,
36359
+ "minimum": 0,
36360
+ "type": "number"
36361
+ },
36137
36362
  "value": {
36138
36363
  "type": "number"
36139
36364
  }
@@ -51288,15 +51513,21 @@
51288
51513
  "items": {
51289
51514
  "additionalProperties": false,
51290
51515
  "properties": {
51516
+ "by": {
51517
+ "exclusiveMinimum": true,
51518
+ "minimum": 0,
51519
+ "type": "number"
51520
+ },
51291
51521
  "column": {
51292
51522
  "type": "string"
51293
51523
  },
51294
51524
  "on": {
51295
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
51525
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
51296
51526
  "enum": [
51297
51527
  "rows_added",
51298
51528
  "rows_removed",
51299
- "threshold"
51529
+ "threshold",
51530
+ "changed"
51300
51531
  ],
51301
51532
  "type": "string"
51302
51533
  },
@@ -51309,6 +51540,11 @@
51309
51540
  ],
51310
51541
  "type": "string"
51311
51542
  },
51543
+ "percent": {
51544
+ "exclusiveMinimum": true,
51545
+ "minimum": 0,
51546
+ "type": "number"
51547
+ },
51312
51548
  "value": {
51313
51549
  "type": "number"
51314
51550
  }
@@ -51718,21 +51954,26 @@
51718
51954
  "alerts": {
51719
51955
  "items": {
51720
51956
  "properties": {
51957
+ "by": {
51958
+ "exclusiveMinimum": true,
51959
+ "minimum": 0,
51960
+ "type": "number"
51961
+ },
51721
51962
  "column": {
51722
- "description": "For `threshold`: a numeric column of the result.",
51963
+ "description": "A numeric column of the result.",
51723
51964
  "type": "string"
51724
51965
  },
51725
51966
  "on": {
51726
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
51967
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
51727
51968
  "enum": [
51728
51969
  "rows_added",
51729
51970
  "rows_removed",
51730
- "threshold"
51971
+ "threshold",
51972
+ "changed"
51731
51973
  ],
51732
51974
  "type": "string"
51733
51975
  },
51734
51976
  "op": {
51735
- "description": "For `threshold`: the comparison.",
51736
51977
  "enum": [
51737
51978
  ">=",
51738
51979
  ">",
@@ -51741,8 +51982,12 @@
51741
51982
  ],
51742
51983
  "type": "string"
51743
51984
  },
51985
+ "percent": {
51986
+ "exclusiveMinimum": true,
51987
+ "minimum": 0,
51988
+ "type": "number"
51989
+ },
51744
51990
  "value": {
51745
- "description": "For `threshold`: the value to compare with.",
51746
51991
  "type": "number"
51747
51992
  }
51748
51993
  },
@@ -51945,21 +52190,26 @@
51945
52190
  },
51946
52191
  "rule": {
51947
52192
  "properties": {
52193
+ "by": {
52194
+ "exclusiveMinimum": true,
52195
+ "minimum": 0,
52196
+ "type": "number"
52197
+ },
51948
52198
  "column": {
51949
- "description": "For `threshold`: a numeric column of the result.",
52199
+ "description": "A numeric column of the result.",
51950
52200
  "type": "string"
51951
52201
  },
51952
52202
  "on": {
51953
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
52203
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
51954
52204
  "enum": [
51955
52205
  "rows_added",
51956
52206
  "rows_removed",
51957
- "threshold"
52207
+ "threshold",
52208
+ "changed"
51958
52209
  ],
51959
52210
  "type": "string"
51960
52211
  },
51961
52212
  "op": {
51962
- "description": "For `threshold`: the comparison.",
51963
52213
  "enum": [
51964
52214
  ">=",
51965
52215
  ">",
@@ -51968,8 +52218,12 @@
51968
52218
  ],
51969
52219
  "type": "string"
51970
52220
  },
52221
+ "percent": {
52222
+ "exclusiveMinimum": true,
52223
+ "minimum": 0,
52224
+ "type": "number"
52225
+ },
51971
52226
  "value": {
51972
- "description": "For `threshold`: the value to compare with.",
51973
52227
  "type": "number"
51974
52228
  }
51975
52229
  },
@@ -52204,21 +52458,26 @@
52204
52458
  "description": "Changes between runs to flag; on a scheduled run a match is emailed to the creator.",
52205
52459
  "items": {
52206
52460
  "properties": {
52461
+ "by": {
52462
+ "exclusiveMinimum": true,
52463
+ "minimum": 0,
52464
+ "type": "number"
52465
+ },
52207
52466
  "column": {
52208
- "description": "For `threshold`: a numeric column of the result.",
52467
+ "description": "A numeric column of the result.",
52209
52468
  "type": "string"
52210
52469
  },
52211
52470
  "on": {
52212
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
52471
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
52213
52472
  "enum": [
52214
52473
  "rows_added",
52215
52474
  "rows_removed",
52216
- "threshold"
52475
+ "threshold",
52476
+ "changed"
52217
52477
  ],
52218
52478
  "type": "string"
52219
52479
  },
52220
52480
  "op": {
52221
- "description": "For `threshold`: the comparison.",
52222
52481
  "enum": [
52223
52482
  ">=",
52224
52483
  ">",
@@ -52227,8 +52486,12 @@
52227
52486
  ],
52228
52487
  "type": "string"
52229
52488
  },
52489
+ "percent": {
52490
+ "exclusiveMinimum": true,
52491
+ "minimum": 0,
52492
+ "type": "number"
52493
+ },
52230
52494
  "value": {
52231
- "description": "For `threshold`: the value to compare with.",
52232
52495
  "type": "number"
52233
52496
  }
52234
52497
  },
@@ -52356,21 +52619,26 @@
52356
52619
  },
52357
52620
  "rule": {
52358
52621
  "properties": {
52622
+ "by": {
52623
+ "exclusiveMinimum": true,
52624
+ "minimum": 0,
52625
+ "type": "number"
52626
+ },
52359
52627
  "column": {
52360
- "description": "For `threshold`: a numeric column of the result.",
52628
+ "description": "A numeric column of the result.",
52361
52629
  "type": "string"
52362
52630
  },
52363
52631
  "on": {
52364
- "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds for a key now and did not before.",
52632
+ "description": "`rows_added`: a key new since the previous run. `rows_removed`: a key gone since. `threshold`: `column` `op` `value` holds now, not before. `changed`: a key's `column` moved by `by` or `percent` since the previous run.",
52365
52633
  "enum": [
52366
52634
  "rows_added",
52367
52635
  "rows_removed",
52368
- "threshold"
52636
+ "threshold",
52637
+ "changed"
52369
52638
  ],
52370
52639
  "type": "string"
52371
52640
  },
52372
52641
  "op": {
52373
- "description": "For `threshold`: the comparison.",
52374
52642
  "enum": [
52375
52643
  ">=",
52376
52644
  ">",
@@ -52379,8 +52647,12 @@
52379
52647
  ],
52380
52648
  "type": "string"
52381
52649
  },
52650
+ "percent": {
52651
+ "exclusiveMinimum": true,
52652
+ "minimum": 0,
52653
+ "type": "number"
52654
+ },
52382
52655
  "value": {
52383
- "description": "For `threshold`: the value to compare with.",
52384
52656
  "type": "number"
52385
52657
  }
52386
52658
  },
@@ -58235,7 +58507,7 @@
58235
58507
  "info": {
58236
58508
  "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.",
58237
58509
  "title": "ModelMatch API",
58238
- "version": "3.208.0"
58510
+ "version": "3.211.0"
58239
58511
  },
58240
58512
  "openapi": "3.1.0",
58241
58513
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-match/api",
3
- "version": "3.106.0",
3
+ "version": "3.107.0",
4
4
  "description": "TypeScript client for the ModelMatch API",
5
5
  "license": "MIT",
6
6
  "files": [