@model-match/api 3.105.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
  }
@@ -19719,6 +19730,10 @@
19719
19730
  "nullable": true,
19720
19731
  "type": "string"
19721
19732
  },
19733
+ "actorEngagementId": {
19734
+ "nullable": true,
19735
+ "type": "string"
19736
+ },
19722
19737
  "actorImage": {
19723
19738
  "nullable": true,
19724
19739
  "type": "string"
@@ -22569,6 +22584,10 @@
22569
22584
  "nullable": true,
22570
22585
  "type": "string"
22571
22586
  },
22587
+ "actorEngagementId": {
22588
+ "nullable": true,
22589
+ "type": "string"
22590
+ },
22572
22591
  "actorMode": {
22573
22592
  "enum": [
22574
22593
  "user",
@@ -22618,6 +22637,7 @@
22618
22637
  "actorRunId",
22619
22638
  "actorChatId",
22620
22639
  "auditRef",
22640
+ "actorEngagementId",
22621
22641
  "createdAt"
22622
22642
  ],
22623
22643
  "type": "object"
@@ -26488,6 +26508,58 @@
26488
26508
  ],
26489
26509
  "type": "object"
26490
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
+ },
26491
26563
  "DateFilterValue": {
26492
26564
  "anyOf": [
26493
26565
  {
@@ -27716,6 +27788,9 @@
27716
27788
  "createdAt": {
27717
27789
  "type": "string"
27718
27790
  },
27791
+ "database": {
27792
+ "$ref": "#/components/schemas/FileDatabase"
27793
+ },
27719
27794
  "id": {
27720
27795
  "type": "string"
27721
27796
  },
@@ -27756,6 +27831,11 @@
27756
27831
  "ownerId": {
27757
27832
  "type": "string"
27758
27833
  },
27834
+ "pinnedAt": {
27835
+ "description": "When you pinned the file; `null` when you have not. Pins are personal.",
27836
+ "nullable": true,
27837
+ "type": "string"
27838
+ },
27759
27839
  "provenance": {
27760
27840
  "additionalProperties": {
27761
27841
  "type": "string"
@@ -27767,6 +27847,9 @@
27767
27847
  "nullable": true,
27768
27848
  "type": "string"
27769
27849
  },
27850
+ "ref": {
27851
+ "$ref": "#/components/schemas/FileRef"
27852
+ },
27770
27853
  "retainUntil": {
27771
27854
  "nullable": true,
27772
27855
  "type": "string"
@@ -27834,7 +27917,10 @@
27834
27917
  "legalHold",
27835
27918
  "createdAt",
27836
27919
  "updatedAt",
27837
- "readyAt"
27920
+ "readyAt",
27921
+ "ref",
27922
+ "pinnedAt",
27923
+ "database"
27838
27924
  ],
27839
27925
  "type": "object"
27840
27926
  },
@@ -28004,10 +28090,119 @@
28004
28090
  ],
28005
28091
  "type": "object"
28006
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
+ },
28007
28202
  "FileError": {
28008
28203
  "properties": {
28009
28204
  "code": {
28010
- "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`.",
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`.",
28011
28206
  "type": "string"
28012
28207
  },
28013
28208
  "error": {
@@ -28062,6 +28257,23 @@
28062
28257
  "minLength": 1,
28063
28258
  "type": "string"
28064
28259
  },
28260
+ "ref": {
28261
+ "additionalProperties": false,
28262
+ "description": "A link entry only (owner or editor): where it opens now. Its app and id never change.",
28263
+ "properties": {
28264
+ "url": {
28265
+ "description": "Where to open it (http or https).",
28266
+ "example": "https://ask.modelmatch.com/dashboards/dash_123",
28267
+ "format": "uri",
28268
+ "maxLength": 2000,
28269
+ "type": "string"
28270
+ }
28271
+ },
28272
+ "required": [
28273
+ "url"
28274
+ ],
28275
+ "type": "object"
28276
+ },
28065
28277
  "retainUntil": {
28066
28278
  "description": "Keep the file until this time (the owner or an organization admin); `null` clears it. The file cannot be deleted before then.",
28067
28279
  "format": "date-time",
@@ -28071,6 +28283,94 @@
28071
28283
  },
28072
28284
  "type": "object"
28073
28285
  },
28286
+ "FileRef": {
28287
+ "additionalProperties": false,
28288
+ "description": "Set when the entry is a link to something that lives in another app (a dashboard, chart or table that stays live there): the app, its id there, and where to open it. Such an entry has no contents (`sizeBytes` 0) unless a thumbnail image was put on it; `null` for an ordinary file.",
28289
+ "nullable": true,
28290
+ "properties": {
28291
+ "app": {
28292
+ "description": "The app the entry points into, e.g. `ask`.",
28293
+ "example": "ask",
28294
+ "pattern": "^[a-z][a-z0-9_]{0,31}$",
28295
+ "type": "string"
28296
+ },
28297
+ "id": {
28298
+ "description": "Its id in that app.",
28299
+ "example": "dash_123",
28300
+ "pattern": "^[A-Za-z0-9_.:-]{1,200}$",
28301
+ "type": "string"
28302
+ },
28303
+ "url": {
28304
+ "description": "Where to open it (http or https).",
28305
+ "example": "https://ask.modelmatch.com/dashboards/dash_123",
28306
+ "format": "uri",
28307
+ "maxLength": 2000,
28308
+ "type": "string"
28309
+ }
28310
+ },
28311
+ "required": [
28312
+ "app",
28313
+ "id",
28314
+ "url"
28315
+ ],
28316
+ "type": "object"
28317
+ },
28318
+ "FileReferenceCreate": {
28319
+ "additionalProperties": false,
28320
+ "properties": {
28321
+ "kind": {
28322
+ "description": "What it is: `dashboard`, `chart`, `table`…",
28323
+ "example": "dashboard",
28324
+ "pattern": "^[a-z][a-z0-9_]{0,31}$",
28325
+ "type": "string"
28326
+ },
28327
+ "links": {
28328
+ "items": {
28329
+ "description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
28330
+ "example": "ask_chat:chat_123",
28331
+ "maxLength": 220,
28332
+ "minLength": 3,
28333
+ "type": "string"
28334
+ },
28335
+ "maxItems": 20,
28336
+ "type": "array"
28337
+ },
28338
+ "metadata": {
28339
+ "additionalProperties": {
28340
+ "nullable": true
28341
+ },
28342
+ "type": "object"
28343
+ },
28344
+ "name": {
28345
+ "description": "The title shown in the library.",
28346
+ "example": "Austin purchase volume",
28347
+ "maxLength": 255,
28348
+ "minLength": 1,
28349
+ "type": "string"
28350
+ },
28351
+ "origin": {
28352
+ "description": "Defaults to `app`.",
28353
+ "pattern": "^[a-z][a-z0-9_]{0,31}$",
28354
+ "type": "string"
28355
+ },
28356
+ "provenance": {
28357
+ "additionalProperties": {
28358
+ "maxLength": 200,
28359
+ "type": "string"
28360
+ },
28361
+ "type": "object"
28362
+ },
28363
+ "ref": {
28364
+ "$ref": "#/components/schemas/FileRef"
28365
+ }
28366
+ },
28367
+ "required": [
28368
+ "name",
28369
+ "kind",
28370
+ "ref"
28371
+ ],
28372
+ "type": "object"
28373
+ },
28074
28374
  "FileRevisionCreate": {
28075
28375
  "additionalProperties": false,
28076
28376
  "properties": {
@@ -34351,6 +34651,16 @@
34351
34651
  "description": "Rows it would hold now.",
34352
34652
  "type": "number"
34353
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
+ },
34354
34664
  "sample": {
34355
34665
  "description": "Up to 25 rows of the table it would fill.",
34356
34666
  "items": {
@@ -35457,6 +35767,16 @@
35457
35767
  "description": "Rows it would hold now.",
35458
35768
  "type": "number"
35459
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
+ },
35460
35780
  "sample": {
35461
35781
  "description": "Up to 25 rows of the table it would fill.",
35462
35782
  "items": {
@@ -35844,11 +36164,13 @@
35844
36164
  "type": "string"
35845
36165
  },
35846
36166
  "family": {
36167
+ "description": "`custom`: a query template; set up, it is a SQL monitor (`job:<name>`).",
35847
36168
  "enum": [
35848
36169
  "past-clients",
35849
36170
  "agent-partners",
35850
36171
  "farm-area",
35851
- "watch-record"
36172
+ "watch-record",
36173
+ "custom"
35852
36174
  ],
35853
36175
  "type": "string"
35854
36176
  },
@@ -35879,6 +36201,10 @@
35879
36201
  "min": {
35880
36202
  "type": "number"
35881
36203
  },
36204
+ "name": {
36205
+ "description": "A query template's input: its key in `inputs`.",
36206
+ "type": "string"
36207
+ },
35882
36208
  "required": {
35883
36209
  "type": "boolean"
35884
36210
  },
@@ -35887,7 +36213,11 @@
35887
36213
  "nmls",
35888
36214
  "agent",
35889
36215
  "area",
35890
- "document"
36216
+ "document",
36217
+ "nmlsList",
36218
+ "state",
36219
+ "brokerage",
36220
+ "count"
35891
36221
  ],
35892
36222
  "type": "string"
35893
36223
  }
@@ -35929,6 +36259,14 @@
35929
36259
  },
35930
36260
  "title": {
35931
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"
35932
36270
  }
35933
36271
  },
35934
36272
  "required": [
@@ -35989,15 +36327,21 @@
35989
36327
  "rule": {
35990
36328
  "additionalProperties": false,
35991
36329
  "properties": {
36330
+ "by": {
36331
+ "exclusiveMinimum": true,
36332
+ "minimum": 0,
36333
+ "type": "number"
36334
+ },
35992
36335
  "column": {
35993
36336
  "type": "string"
35994
36337
  },
35995
36338
  "on": {
35996
- "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.",
35997
36340
  "enum": [
35998
36341
  "rows_added",
35999
36342
  "rows_removed",
36000
- "threshold"
36343
+ "threshold",
36344
+ "changed"
36001
36345
  ],
36002
36346
  "type": "string"
36003
36347
  },
@@ -36010,6 +36354,11 @@
36010
36354
  ],
36011
36355
  "type": "string"
36012
36356
  },
36357
+ "percent": {
36358
+ "exclusiveMinimum": true,
36359
+ "minimum": 0,
36360
+ "type": "number"
36361
+ },
36013
36362
  "value": {
36014
36363
  "type": "number"
36015
36364
  }
@@ -47725,6 +48074,346 @@
47725
48074
  ],
47726
48075
  "type": "object"
47727
48076
  },
48077
+ "RecruitingActiveCall": {
48078
+ "nullable": true,
48079
+ "properties": {
48080
+ "engagementId": {
48081
+ "type": "string"
48082
+ },
48083
+ "entityId": {
48084
+ "type": "string"
48085
+ },
48086
+ "id": {
48087
+ "type": "string"
48088
+ },
48089
+ "organizationId": {
48090
+ "type": "string"
48091
+ },
48092
+ "recordName": {
48093
+ "nullable": true,
48094
+ "type": "string"
48095
+ },
48096
+ "toNumber": {
48097
+ "type": "string"
48098
+ },
48099
+ "workspace": {
48100
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48101
+ }
48102
+ },
48103
+ "required": [
48104
+ "id",
48105
+ "organizationId",
48106
+ "entityId",
48107
+ "toNumber",
48108
+ "recordName",
48109
+ "workspace",
48110
+ "engagementId"
48111
+ ],
48112
+ "type": "object"
48113
+ },
48114
+ "RecruitingActiveCallResult": {
48115
+ "properties": {
48116
+ "data": {
48117
+ "$ref": "#/components/schemas/RecruitingActiveCall"
48118
+ }
48119
+ },
48120
+ "required": [
48121
+ "data"
48122
+ ],
48123
+ "type": "object"
48124
+ },
48125
+ "RecruitingEngagement": {
48126
+ "properties": {
48127
+ "engagementId": {
48128
+ "type": "string"
48129
+ },
48130
+ "engagementName": {
48131
+ "type": "string"
48132
+ },
48133
+ "kind": {
48134
+ "type": "string"
48135
+ },
48136
+ "role": {
48137
+ "type": "string"
48138
+ },
48139
+ "workspace": {
48140
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48141
+ }
48142
+ },
48143
+ "required": [
48144
+ "engagementId",
48145
+ "engagementName",
48146
+ "kind",
48147
+ "role",
48148
+ "workspace"
48149
+ ],
48150
+ "type": "object"
48151
+ },
48152
+ "RecruitingEngagementList": {
48153
+ "properties": {
48154
+ "data": {
48155
+ "items": {
48156
+ "$ref": "#/components/schemas/RecruitingEngagement"
48157
+ },
48158
+ "type": "array"
48159
+ }
48160
+ },
48161
+ "required": [
48162
+ "data"
48163
+ ],
48164
+ "type": "object"
48165
+ },
48166
+ "RecruitingLists": {
48167
+ "properties": {
48168
+ "items": {
48169
+ "items": {
48170
+ "allOf": [
48171
+ {
48172
+ "$ref": "#/components/schemas/CrmList"
48173
+ },
48174
+ {
48175
+ "properties": {
48176
+ "engagementId": {
48177
+ "type": "string"
48178
+ },
48179
+ "workspace": {
48180
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48181
+ }
48182
+ },
48183
+ "required": [
48184
+ "workspace",
48185
+ "engagementId"
48186
+ ],
48187
+ "type": "object"
48188
+ }
48189
+ ]
48190
+ },
48191
+ "type": "array"
48192
+ },
48193
+ "unavailable": {
48194
+ "description": "Customers whose read failed; their rows are missing. Retry later.",
48195
+ "items": {
48196
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48197
+ },
48198
+ "type": "array"
48199
+ }
48200
+ },
48201
+ "required": [
48202
+ "items",
48203
+ "unavailable"
48204
+ ],
48205
+ "type": "object"
48206
+ },
48207
+ "RecruitingListsResult": {
48208
+ "properties": {
48209
+ "data": {
48210
+ "$ref": "#/components/schemas/RecruitingLists"
48211
+ }
48212
+ },
48213
+ "required": [
48214
+ "data"
48215
+ ],
48216
+ "type": "object"
48217
+ },
48218
+ "RecruitingPeople": {
48219
+ "properties": {
48220
+ "items": {
48221
+ "items": {
48222
+ "allOf": [
48223
+ {
48224
+ "$ref": "#/components/schemas/CrmListMember"
48225
+ },
48226
+ {
48227
+ "properties": {
48228
+ "engagementId": {
48229
+ "type": "string"
48230
+ },
48231
+ "workspace": {
48232
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48233
+ }
48234
+ },
48235
+ "required": [
48236
+ "workspace",
48237
+ "engagementId"
48238
+ ],
48239
+ "type": "object"
48240
+ }
48241
+ ]
48242
+ },
48243
+ "type": "array"
48244
+ },
48245
+ "unavailable": {
48246
+ "description": "Customers whose read failed; their rows are missing. Retry later.",
48247
+ "items": {
48248
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48249
+ },
48250
+ "type": "array"
48251
+ }
48252
+ },
48253
+ "required": [
48254
+ "items",
48255
+ "unavailable"
48256
+ ],
48257
+ "type": "object"
48258
+ },
48259
+ "RecruitingPeopleResult": {
48260
+ "properties": {
48261
+ "data": {
48262
+ "$ref": "#/components/schemas/RecruitingPeople"
48263
+ }
48264
+ },
48265
+ "required": [
48266
+ "data"
48267
+ ],
48268
+ "type": "object"
48269
+ },
48270
+ "RecruitingPeopleSearch": {
48271
+ "properties": {
48272
+ "items": {
48273
+ "items": {
48274
+ "allOf": [
48275
+ {
48276
+ "$ref": "#/components/schemas/CrmMentionRecord"
48277
+ },
48278
+ {
48279
+ "properties": {
48280
+ "engagementId": {
48281
+ "type": "string"
48282
+ },
48283
+ "workspace": {
48284
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48285
+ }
48286
+ },
48287
+ "required": [
48288
+ "workspace",
48289
+ "engagementId"
48290
+ ],
48291
+ "type": "object"
48292
+ }
48293
+ ]
48294
+ },
48295
+ "type": "array"
48296
+ },
48297
+ "unavailable": {
48298
+ "description": "Customers whose read failed; their rows are missing. Retry later.",
48299
+ "items": {
48300
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48301
+ },
48302
+ "type": "array"
48303
+ }
48304
+ },
48305
+ "required": [
48306
+ "items",
48307
+ "unavailable"
48308
+ ],
48309
+ "type": "object"
48310
+ },
48311
+ "RecruitingPeopleSearchResult": {
48312
+ "properties": {
48313
+ "data": {
48314
+ "$ref": "#/components/schemas/RecruitingPeopleSearch"
48315
+ }
48316
+ },
48317
+ "required": [
48318
+ "data"
48319
+ ],
48320
+ "type": "object"
48321
+ },
48322
+ "RecruitingQueue": {
48323
+ "properties": {
48324
+ "meetings": {
48325
+ "items": {
48326
+ "allOf": [
48327
+ {
48328
+ "$ref": "#/components/schemas/CrmWorkspaceMeeting"
48329
+ },
48330
+ {
48331
+ "properties": {
48332
+ "engagementId": {
48333
+ "type": "string"
48334
+ },
48335
+ "workspace": {
48336
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48337
+ }
48338
+ },
48339
+ "required": [
48340
+ "workspace",
48341
+ "engagementId"
48342
+ ],
48343
+ "type": "object"
48344
+ }
48345
+ ]
48346
+ },
48347
+ "type": "array"
48348
+ },
48349
+ "tasks": {
48350
+ "items": {
48351
+ "allOf": [
48352
+ {
48353
+ "$ref": "#/components/schemas/CrmWorkspaceTask"
48354
+ },
48355
+ {
48356
+ "properties": {
48357
+ "engagementId": {
48358
+ "type": "string"
48359
+ },
48360
+ "workspace": {
48361
+ "$ref": "#/components/schemas/RecruitingWorkspace"
48362
+ }
48363
+ },
48364
+ "required": [
48365
+ "workspace",
48366
+ "engagementId"
48367
+ ],
48368
+ "type": "object"
48369
+ }
48370
+ ]
48371
+ },
48372
+ "type": "array"
48373
+ }
48374
+ },
48375
+ "required": [
48376
+ "tasks",
48377
+ "meetings"
48378
+ ],
48379
+ "type": "object"
48380
+ },
48381
+ "RecruitingQueueResult": {
48382
+ "properties": {
48383
+ "data": {
48384
+ "$ref": "#/components/schemas/RecruitingQueue"
48385
+ }
48386
+ },
48387
+ "required": [
48388
+ "data"
48389
+ ],
48390
+ "type": "object"
48391
+ },
48392
+ "RecruitingWorkspace": {
48393
+ "properties": {
48394
+ "id": {
48395
+ "type": "string"
48396
+ },
48397
+ "logo": {
48398
+ "nullable": true,
48399
+ "type": "string"
48400
+ },
48401
+ "name": {
48402
+ "type": "string"
48403
+ },
48404
+ "slug": {
48405
+ "nullable": true,
48406
+ "type": "string"
48407
+ }
48408
+ },
48409
+ "required": [
48410
+ "id",
48411
+ "name",
48412
+ "slug",
48413
+ "logo"
48414
+ ],
48415
+ "type": "object"
48416
+ },
47728
48417
  "RelatedResponse": {
47729
48418
  "properties": {
47730
48419
  "data": {
@@ -50824,15 +51513,21 @@
50824
51513
  "items": {
50825
51514
  "additionalProperties": false,
50826
51515
  "properties": {
51516
+ "by": {
51517
+ "exclusiveMinimum": true,
51518
+ "minimum": 0,
51519
+ "type": "number"
51520
+ },
50827
51521
  "column": {
50828
51522
  "type": "string"
50829
51523
  },
50830
51524
  "on": {
50831
- "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.",
50832
51526
  "enum": [
50833
51527
  "rows_added",
50834
51528
  "rows_removed",
50835
- "threshold"
51529
+ "threshold",
51530
+ "changed"
50836
51531
  ],
50837
51532
  "type": "string"
50838
51533
  },
@@ -50845,6 +51540,11 @@
50845
51540
  ],
50846
51541
  "type": "string"
50847
51542
  },
51543
+ "percent": {
51544
+ "exclusiveMinimum": true,
51545
+ "minimum": 0,
51546
+ "type": "number"
51547
+ },
50848
51548
  "value": {
50849
51549
  "type": "number"
50850
51550
  }
@@ -51254,21 +51954,26 @@
51254
51954
  "alerts": {
51255
51955
  "items": {
51256
51956
  "properties": {
51957
+ "by": {
51958
+ "exclusiveMinimum": true,
51959
+ "minimum": 0,
51960
+ "type": "number"
51961
+ },
51257
51962
  "column": {
51258
- "description": "For `threshold`: a numeric column of the result.",
51963
+ "description": "A numeric column of the result.",
51259
51964
  "type": "string"
51260
51965
  },
51261
51966
  "on": {
51262
- "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.",
51263
51968
  "enum": [
51264
51969
  "rows_added",
51265
51970
  "rows_removed",
51266
- "threshold"
51971
+ "threshold",
51972
+ "changed"
51267
51973
  ],
51268
51974
  "type": "string"
51269
51975
  },
51270
51976
  "op": {
51271
- "description": "For `threshold`: the comparison.",
51272
51977
  "enum": [
51273
51978
  ">=",
51274
51979
  ">",
@@ -51277,8 +51982,12 @@
51277
51982
  ],
51278
51983
  "type": "string"
51279
51984
  },
51985
+ "percent": {
51986
+ "exclusiveMinimum": true,
51987
+ "minimum": 0,
51988
+ "type": "number"
51989
+ },
51280
51990
  "value": {
51281
- "description": "For `threshold`: the value to compare with.",
51282
51991
  "type": "number"
51283
51992
  }
51284
51993
  },
@@ -51481,21 +52190,26 @@
51481
52190
  },
51482
52191
  "rule": {
51483
52192
  "properties": {
52193
+ "by": {
52194
+ "exclusiveMinimum": true,
52195
+ "minimum": 0,
52196
+ "type": "number"
52197
+ },
51484
52198
  "column": {
51485
- "description": "For `threshold`: a numeric column of the result.",
52199
+ "description": "A numeric column of the result.",
51486
52200
  "type": "string"
51487
52201
  },
51488
52202
  "on": {
51489
- "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.",
51490
52204
  "enum": [
51491
52205
  "rows_added",
51492
52206
  "rows_removed",
51493
- "threshold"
52207
+ "threshold",
52208
+ "changed"
51494
52209
  ],
51495
52210
  "type": "string"
51496
52211
  },
51497
52212
  "op": {
51498
- "description": "For `threshold`: the comparison.",
51499
52213
  "enum": [
51500
52214
  ">=",
51501
52215
  ">",
@@ -51504,8 +52218,12 @@
51504
52218
  ],
51505
52219
  "type": "string"
51506
52220
  },
52221
+ "percent": {
52222
+ "exclusiveMinimum": true,
52223
+ "minimum": 0,
52224
+ "type": "number"
52225
+ },
51507
52226
  "value": {
51508
- "description": "For `threshold`: the value to compare with.",
51509
52227
  "type": "number"
51510
52228
  }
51511
52229
  },
@@ -51740,21 +52458,26 @@
51740
52458
  "description": "Changes between runs to flag; on a scheduled run a match is emailed to the creator.",
51741
52459
  "items": {
51742
52460
  "properties": {
52461
+ "by": {
52462
+ "exclusiveMinimum": true,
52463
+ "minimum": 0,
52464
+ "type": "number"
52465
+ },
51743
52466
  "column": {
51744
- "description": "For `threshold`: a numeric column of the result.",
52467
+ "description": "A numeric column of the result.",
51745
52468
  "type": "string"
51746
52469
  },
51747
52470
  "on": {
51748
- "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.",
51749
52472
  "enum": [
51750
52473
  "rows_added",
51751
52474
  "rows_removed",
51752
- "threshold"
52475
+ "threshold",
52476
+ "changed"
51753
52477
  ],
51754
52478
  "type": "string"
51755
52479
  },
51756
52480
  "op": {
51757
- "description": "For `threshold`: the comparison.",
51758
52481
  "enum": [
51759
52482
  ">=",
51760
52483
  ">",
@@ -51763,8 +52486,12 @@
51763
52486
  ],
51764
52487
  "type": "string"
51765
52488
  },
52489
+ "percent": {
52490
+ "exclusiveMinimum": true,
52491
+ "minimum": 0,
52492
+ "type": "number"
52493
+ },
51766
52494
  "value": {
51767
- "description": "For `threshold`: the value to compare with.",
51768
52495
  "type": "number"
51769
52496
  }
51770
52497
  },
@@ -51892,21 +52619,26 @@
51892
52619
  },
51893
52620
  "rule": {
51894
52621
  "properties": {
52622
+ "by": {
52623
+ "exclusiveMinimum": true,
52624
+ "minimum": 0,
52625
+ "type": "number"
52626
+ },
51895
52627
  "column": {
51896
- "description": "For `threshold`: a numeric column of the result.",
52628
+ "description": "A numeric column of the result.",
51897
52629
  "type": "string"
51898
52630
  },
51899
52631
  "on": {
51900
- "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.",
51901
52633
  "enum": [
51902
52634
  "rows_added",
51903
52635
  "rows_removed",
51904
- "threshold"
52636
+ "threshold",
52637
+ "changed"
51905
52638
  ],
51906
52639
  "type": "string"
51907
52640
  },
51908
52641
  "op": {
51909
- "description": "For `threshold`: the comparison.",
51910
52642
  "enum": [
51911
52643
  ">=",
51912
52644
  ">",
@@ -51915,8 +52647,12 @@
51915
52647
  ],
51916
52648
  "type": "string"
51917
52649
  },
52650
+ "percent": {
52651
+ "exclusiveMinimum": true,
52652
+ "minimum": 0,
52653
+ "type": "number"
52654
+ },
51918
52655
  "value": {
51919
- "description": "For `threshold`: the value to compare with.",
51920
52656
  "type": "number"
51921
52657
  }
51922
52658
  },
@@ -52084,6 +52820,10 @@
52084
52820
  "finishedAt": {
52085
52821
  "type": "string"
52086
52822
  },
52823
+ "free": {
52824
+ "description": "True: a monitor's run (a job with alert rules) that matched none, which is not charged.",
52825
+ "type": "boolean"
52826
+ },
52087
52827
  "limits": {
52088
52828
  "description": "The limits this run had.",
52089
52829
  "properties": {
@@ -57767,7 +58507,7 @@
57767
58507
  "info": {
57768
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.",
57769
58509
  "title": "ModelMatch API",
57770
- "version": "3.202.0"
58510
+ "version": "3.211.0"
57771
58511
  },
57772
58512
  "openapi": "3.1.0",
57773
58513
  "paths": {
@@ -82174,73 +82914,198 @@
82174
82914
  ]
82175
82915
  }
82176
82916
  },
82177
- "/v1/crm/reports/activity": {
82917
+ "/v1/crm/recruiting/calls/active": {
82178
82918
  "get": {
82179
- "description": "Human actions only, attributed to the actor (never the record owner). `previousTotals` covers the equal-length period immediately before `from`. Ratios (connect rate, show rate, win rate) are client-side divisions.",
82180
- "operationId": "getCrmActivityReport",
82181
- "parameters": [
82182
- {
82183
- "description": "Inclusive start of the range (epoch ms).",
82184
- "in": "query",
82185
- "name": "from",
82186
- "required": false,
82187
- "schema": {
82188
- "description": "Inclusive start of the range (epoch ms).",
82189
- "minimum": 0,
82190
- "nullable": true,
82191
- "type": "integer"
82192
- }
82919
+ "operationId": "getRecruitingActiveCall",
82920
+ "responses": {
82921
+ "200": {
82922
+ "content": {
82923
+ "application/json": {
82924
+ "schema": {
82925
+ "$ref": "#/components/schemas/RecruitingActiveCallResult"
82926
+ }
82927
+ }
82928
+ },
82929
+ "description": "The most recent live call across my engagements, or null."
82193
82930
  },
82194
- {
82195
- "description": "Exclusive end of the range (epoch ms).",
82196
- "in": "query",
82197
- "name": "to",
82198
- "required": false,
82199
- "schema": {
82200
- "description": "Exclusive end of the range (epoch ms).",
82201
- "minimum": 0,
82202
- "nullable": true,
82203
- "type": "integer"
82204
- }
82931
+ "400": {
82932
+ "content": {
82933
+ "application/json": {
82934
+ "schema": {
82935
+ "$ref": "#/components/schemas/ErrorResponse"
82936
+ }
82937
+ }
82938
+ },
82939
+ "description": "Validation error"
82205
82940
  },
82206
- {
82207
- "description": "Omit = the caller's own metrics. `team` = one entry per workspace member (owner/admin only). A member id = that member (owner/admin only).",
82208
- "in": "query",
82209
- "name": "userId",
82210
- "required": false,
82211
- "schema": {
82212
- "description": "Omit = the caller's own metrics. `team` = one entry per workspace member (owner/admin only). A member id = that member (owner/admin only).",
82213
- "type": "string"
82214
- }
82941
+ "401": {
82942
+ "content": {
82943
+ "application/json": {
82944
+ "schema": {
82945
+ "$ref": "#/components/schemas/ErrorResponse"
82946
+ }
82947
+ }
82948
+ },
82949
+ "description": "Unauthorized"
82215
82950
  },
82216
- {
82217
- "description": "IANA zone the day buckets are cut in (default America/New_York).",
82218
- "in": "query",
82219
- "name": "tz",
82220
- "required": false,
82221
- "schema": {
82222
- "description": "IANA zone the day buckets are cut in (default America/New_York).",
82223
- "type": "string"
82224
- }
82951
+ "403": {
82952
+ "content": {
82953
+ "application/json": {
82954
+ "schema": {
82955
+ "$ref": "#/components/schemas/ErrorResponse"
82956
+ }
82957
+ }
82958
+ },
82959
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82225
82960
  },
82226
- {
82227
- "description": "Scope every metric to that list's members and vocabulary. A 1-element alias for `listIds` — do not pass both.",
82228
- "in": "query",
82229
- "name": "listId",
82230
- "required": false,
82231
- "schema": {
82232
- "description": "Scope every metric to that list's members and vocabulary. A 1-element alias for `listIds` — do not pass both.",
82233
- "type": "string"
82234
- }
82961
+ "404": {
82962
+ "content": {
82963
+ "application/json": {
82964
+ "schema": {
82965
+ "$ref": "#/components/schemas/ErrorResponse"
82966
+ }
82967
+ }
82968
+ },
82969
+ "description": "Not found"
82970
+ },
82971
+ "413": {
82972
+ "content": {
82973
+ "application/json": {
82974
+ "schema": {
82975
+ "$ref": "#/components/schemas/PayloadTooLarge"
82976
+ }
82977
+ }
82978
+ },
82979
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
82980
+ },
82981
+ "502": {
82982
+ "content": {
82983
+ "application/json": {
82984
+ "schema": {
82985
+ "$ref": "#/components/schemas/ErrorResponse"
82986
+ }
82987
+ }
82988
+ },
82989
+ "description": "Auth service unavailable."
82990
+ },
82991
+ "503": {
82992
+ "content": {
82993
+ "application/json": {
82994
+ "schema": {
82995
+ "$ref": "#/components/schemas/SearchUnavailable"
82996
+ }
82997
+ }
82998
+ },
82999
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83000
+ }
83001
+ },
83002
+ "summary": "My still-live call in any customer workspace (reload resume)",
83003
+ "tags": [
83004
+ "CRM"
83005
+ ]
83006
+ }
83007
+ },
83008
+ "/v1/crm/recruiting/engagements": {
83009
+ "get": {
83010
+ "operationId": "listRecruitingEngagements",
83011
+ "responses": {
83012
+ "200": {
83013
+ "content": {
83014
+ "application/json": {
83015
+ "schema": {
83016
+ "$ref": "#/components/schemas/RecruitingEngagementList"
83017
+ }
83018
+ }
83019
+ },
83020
+ "description": "Active engagements, oldest first. Pass a `workspace.id` as `x-mm-organization-id` (MCP: `workspaceId`) to work that customer's CRM."
83021
+ },
83022
+ "400": {
83023
+ "content": {
83024
+ "application/json": {
83025
+ "schema": {
83026
+ "$ref": "#/components/schemas/ErrorResponse"
83027
+ }
83028
+ }
83029
+ },
83030
+ "description": "Validation error"
83031
+ },
83032
+ "401": {
83033
+ "content": {
83034
+ "application/json": {
83035
+ "schema": {
83036
+ "$ref": "#/components/schemas/ErrorResponse"
83037
+ }
83038
+ }
83039
+ },
83040
+ "description": "Unauthorized"
83041
+ },
83042
+ "403": {
83043
+ "content": {
83044
+ "application/json": {
83045
+ "schema": {
83046
+ "$ref": "#/components/schemas/ErrorResponse"
83047
+ }
83048
+ }
83049
+ },
83050
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
82235
83051
  },
83052
+ "404": {
83053
+ "content": {
83054
+ "application/json": {
83055
+ "schema": {
83056
+ "$ref": "#/components/schemas/ErrorResponse"
83057
+ }
83058
+ }
83059
+ },
83060
+ "description": "Not found"
83061
+ },
83062
+ "413": {
83063
+ "content": {
83064
+ "application/json": {
83065
+ "schema": {
83066
+ "$ref": "#/components/schemas/PayloadTooLarge"
83067
+ }
83068
+ }
83069
+ },
83070
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83071
+ },
83072
+ "502": {
83073
+ "content": {
83074
+ "application/json": {
83075
+ "schema": {
83076
+ "$ref": "#/components/schemas/ErrorResponse"
83077
+ }
83078
+ }
83079
+ },
83080
+ "description": "Auth service unavailable."
83081
+ },
83082
+ "503": {
83083
+ "content": {
83084
+ "application/json": {
83085
+ "schema": {
83086
+ "$ref": "#/components/schemas/SearchUnavailable"
83087
+ }
83088
+ }
83089
+ },
83090
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83091
+ }
83092
+ },
83093
+ "summary": "Customer workspaces I can work through a service engagement",
83094
+ "tags": [
83095
+ "CRM"
83096
+ ]
83097
+ }
83098
+ },
83099
+ "/v1/crm/recruiting/lists": {
83100
+ "get": {
83101
+ "operationId": "listRecruitingLists",
83102
+ "parameters": [
82236
83103
  {
82237
- "description": "CSV of list ids to scope to (union, not intersection — a record that's a member of more than one selected list is still counted once in every distinct-record metric and once per day-bucket). A list id the caller can't see is silently dropped, not an error. Do not pass alongside `listId`.",
82238
83104
  "in": "query",
82239
- "name": "listIds",
83105
+ "name": "objectType",
82240
83106
  "required": false,
82241
83107
  "schema": {
82242
- "description": "CSV of list ids to scope to (union, not intersection — a record that's a member of more than one selected list is still counted once in every distinct-record metric and once per day-bucket). A list id the caller can't see is silently dropped, not an error. Do not pass alongside `listId`.",
82243
- "type": "string"
83108
+ "$ref": "#/components/schemas/CrmObjectType"
82244
83109
  }
82245
83110
  }
82246
83111
  ],
@@ -82249,11 +83114,471 @@
82249
83114
  "content": {
82250
83115
  "application/json": {
82251
83116
  "schema": {
82252
- "$ref": "#/components/schemas/CrmActivityReportResult"
83117
+ "$ref": "#/components/schemas/RecruitingListsResult"
82253
83118
  }
82254
83119
  }
82255
83120
  },
82256
- "description": "The activity report."
83121
+ "description": "The lists I can see in each customer, newest first, each tagged with its customer."
83122
+ },
83123
+ "400": {
83124
+ "content": {
83125
+ "application/json": {
83126
+ "schema": {
83127
+ "$ref": "#/components/schemas/ErrorResponse"
83128
+ }
83129
+ }
83130
+ },
83131
+ "description": "Validation error"
83132
+ },
83133
+ "401": {
83134
+ "content": {
83135
+ "application/json": {
83136
+ "schema": {
83137
+ "$ref": "#/components/schemas/ErrorResponse"
83138
+ }
83139
+ }
83140
+ },
83141
+ "description": "Unauthorized"
83142
+ },
83143
+ "403": {
83144
+ "content": {
83145
+ "application/json": {
83146
+ "schema": {
83147
+ "$ref": "#/components/schemas/ErrorResponse"
83148
+ }
83149
+ }
83150
+ },
83151
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
83152
+ },
83153
+ "404": {
83154
+ "content": {
83155
+ "application/json": {
83156
+ "schema": {
83157
+ "$ref": "#/components/schemas/ErrorResponse"
83158
+ }
83159
+ }
83160
+ },
83161
+ "description": "Not found"
83162
+ },
83163
+ "413": {
83164
+ "content": {
83165
+ "application/json": {
83166
+ "schema": {
83167
+ "$ref": "#/components/schemas/PayloadTooLarge"
83168
+ }
83169
+ }
83170
+ },
83171
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83172
+ },
83173
+ "502": {
83174
+ "content": {
83175
+ "application/json": {
83176
+ "schema": {
83177
+ "$ref": "#/components/schemas/ErrorResponse"
83178
+ }
83179
+ }
83180
+ },
83181
+ "description": "Auth service unavailable."
83182
+ },
83183
+ "503": {
83184
+ "content": {
83185
+ "application/json": {
83186
+ "schema": {
83187
+ "$ref": "#/components/schemas/SearchUnavailable"
83188
+ }
83189
+ }
83190
+ },
83191
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83192
+ }
83193
+ },
83194
+ "summary": "My lists across every customer I work",
83195
+ "tags": [
83196
+ "CRM"
83197
+ ]
83198
+ }
83199
+ },
83200
+ "/v1/crm/recruiting/people": {
83201
+ "get": {
83202
+ "operationId": "listRecruitingPeople",
83203
+ "parameters": [
83204
+ {
83205
+ "in": "query",
83206
+ "name": "objectType",
83207
+ "required": false,
83208
+ "schema": {
83209
+ "$ref": "#/components/schemas/CrmObjectType"
83210
+ }
83211
+ }
83212
+ ],
83213
+ "responses": {
83214
+ "200": {
83215
+ "content": {
83216
+ "application/json": {
83217
+ "schema": {
83218
+ "$ref": "#/components/schemas/RecruitingPeopleResult"
83219
+ }
83220
+ }
83221
+ },
83222
+ "description": "Records whose working owner is me, most recently active first, each tagged with its customer."
83223
+ },
83224
+ "400": {
83225
+ "content": {
83226
+ "application/json": {
83227
+ "schema": {
83228
+ "$ref": "#/components/schemas/ErrorResponse"
83229
+ }
83230
+ }
83231
+ },
83232
+ "description": "Validation error"
83233
+ },
83234
+ "401": {
83235
+ "content": {
83236
+ "application/json": {
83237
+ "schema": {
83238
+ "$ref": "#/components/schemas/ErrorResponse"
83239
+ }
83240
+ }
83241
+ },
83242
+ "description": "Unauthorized"
83243
+ },
83244
+ "403": {
83245
+ "content": {
83246
+ "application/json": {
83247
+ "schema": {
83248
+ "$ref": "#/components/schemas/ErrorResponse"
83249
+ }
83250
+ }
83251
+ },
83252
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
83253
+ },
83254
+ "404": {
83255
+ "content": {
83256
+ "application/json": {
83257
+ "schema": {
83258
+ "$ref": "#/components/schemas/ErrorResponse"
83259
+ }
83260
+ }
83261
+ },
83262
+ "description": "Not found"
83263
+ },
83264
+ "413": {
83265
+ "content": {
83266
+ "application/json": {
83267
+ "schema": {
83268
+ "$ref": "#/components/schemas/PayloadTooLarge"
83269
+ }
83270
+ }
83271
+ },
83272
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83273
+ },
83274
+ "502": {
83275
+ "content": {
83276
+ "application/json": {
83277
+ "schema": {
83278
+ "$ref": "#/components/schemas/ErrorResponse"
83279
+ }
83280
+ }
83281
+ },
83282
+ "description": "Auth service unavailable."
83283
+ },
83284
+ "503": {
83285
+ "content": {
83286
+ "application/json": {
83287
+ "schema": {
83288
+ "$ref": "#/components/schemas/SearchUnavailable"
83289
+ }
83290
+ }
83291
+ },
83292
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83293
+ }
83294
+ },
83295
+ "summary": "Records I own across every customer I work",
83296
+ "tags": [
83297
+ "CRM"
83298
+ ]
83299
+ }
83300
+ },
83301
+ "/v1/crm/recruiting/people/search": {
83302
+ "post": {
83303
+ "operationId": "searchRecruitingPeople",
83304
+ "requestBody": {
83305
+ "content": {
83306
+ "application/json": {
83307
+ "schema": {
83308
+ "properties": {
83309
+ "q": {
83310
+ "maxLength": 200,
83311
+ "minLength": 1,
83312
+ "type": "string"
83313
+ }
83314
+ },
83315
+ "required": [
83316
+ "q"
83317
+ ],
83318
+ "type": "object"
83319
+ }
83320
+ }
83321
+ }
83322
+ },
83323
+ "responses": {
83324
+ "200": {
83325
+ "content": {
83326
+ "application/json": {
83327
+ "schema": {
83328
+ "$ref": "#/components/schemas/RecruitingPeopleSearchResult"
83329
+ }
83330
+ }
83331
+ },
83332
+ "description": "Name-first matches, up to 10 per customer, interleaved so no one customer crowds out the rest."
83333
+ },
83334
+ "400": {
83335
+ "content": {
83336
+ "application/json": {
83337
+ "schema": {
83338
+ "$ref": "#/components/schemas/ErrorResponse"
83339
+ }
83340
+ }
83341
+ },
83342
+ "description": "Validation error"
83343
+ },
83344
+ "401": {
83345
+ "content": {
83346
+ "application/json": {
83347
+ "schema": {
83348
+ "$ref": "#/components/schemas/ErrorResponse"
83349
+ }
83350
+ }
83351
+ },
83352
+ "description": "Unauthorized"
83353
+ },
83354
+ "403": {
83355
+ "content": {
83356
+ "application/json": {
83357
+ "schema": {
83358
+ "$ref": "#/components/schemas/ErrorResponse"
83359
+ }
83360
+ }
83361
+ },
83362
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
83363
+ },
83364
+ "404": {
83365
+ "content": {
83366
+ "application/json": {
83367
+ "schema": {
83368
+ "$ref": "#/components/schemas/ErrorResponse"
83369
+ }
83370
+ }
83371
+ },
83372
+ "description": "Not found"
83373
+ },
83374
+ "413": {
83375
+ "content": {
83376
+ "application/json": {
83377
+ "schema": {
83378
+ "$ref": "#/components/schemas/PayloadTooLarge"
83379
+ }
83380
+ }
83381
+ },
83382
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83383
+ },
83384
+ "502": {
83385
+ "content": {
83386
+ "application/json": {
83387
+ "schema": {
83388
+ "$ref": "#/components/schemas/ErrorResponse"
83389
+ }
83390
+ }
83391
+ },
83392
+ "description": "Auth service unavailable."
83393
+ },
83394
+ "503": {
83395
+ "content": {
83396
+ "application/json": {
83397
+ "schema": {
83398
+ "$ref": "#/components/schemas/SearchUnavailable"
83399
+ }
83400
+ }
83401
+ },
83402
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83403
+ }
83404
+ },
83405
+ "summary": "Search the records I can see across every customer I work",
83406
+ "tags": [
83407
+ "CRM"
83408
+ ]
83409
+ }
83410
+ },
83411
+ "/v1/crm/recruiting/queue": {
83412
+ "get": {
83413
+ "operationId": "getRecruitingQueue",
83414
+ "responses": {
83415
+ "200": {
83416
+ "content": {
83417
+ "application/json": {
83418
+ "schema": {
83419
+ "$ref": "#/components/schemas/RecruitingQueueResult"
83420
+ }
83421
+ }
83422
+ },
83423
+ "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."
83424
+ },
83425
+ "400": {
83426
+ "content": {
83427
+ "application/json": {
83428
+ "schema": {
83429
+ "$ref": "#/components/schemas/ErrorResponse"
83430
+ }
83431
+ }
83432
+ },
83433
+ "description": "Validation error"
83434
+ },
83435
+ "401": {
83436
+ "content": {
83437
+ "application/json": {
83438
+ "schema": {
83439
+ "$ref": "#/components/schemas/ErrorResponse"
83440
+ }
83441
+ }
83442
+ },
83443
+ "description": "Unauthorized"
83444
+ },
83445
+ "403": {
83446
+ "content": {
83447
+ "application/json": {
83448
+ "schema": {
83449
+ "$ref": "#/components/schemas/ErrorResponse"
83450
+ }
83451
+ }
83452
+ },
83453
+ "description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
83454
+ },
83455
+ "404": {
83456
+ "content": {
83457
+ "application/json": {
83458
+ "schema": {
83459
+ "$ref": "#/components/schemas/ErrorResponse"
83460
+ }
83461
+ }
83462
+ },
83463
+ "description": "Not found"
83464
+ },
83465
+ "413": {
83466
+ "content": {
83467
+ "application/json": {
83468
+ "schema": {
83469
+ "$ref": "#/components/schemas/PayloadTooLarge"
83470
+ }
83471
+ }
83472
+ },
83473
+ "description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
83474
+ },
83475
+ "502": {
83476
+ "content": {
83477
+ "application/json": {
83478
+ "schema": {
83479
+ "$ref": "#/components/schemas/ErrorResponse"
83480
+ }
83481
+ }
83482
+ },
83483
+ "description": "Auth service unavailable."
83484
+ },
83485
+ "503": {
83486
+ "content": {
83487
+ "application/json": {
83488
+ "schema": {
83489
+ "$ref": "#/components/schemas/SearchUnavailable"
83490
+ }
83491
+ }
83492
+ },
83493
+ "description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
83494
+ }
83495
+ },
83496
+ "summary": "My open tasks and scheduled meetings across every customer I work",
83497
+ "tags": [
83498
+ "CRM"
83499
+ ]
83500
+ }
83501
+ },
83502
+ "/v1/crm/reports/activity": {
83503
+ "get": {
83504
+ "description": "Human actions only, attributed to the actor (never the record owner). `previousTotals` covers the equal-length period immediately before `from`. Ratios (connect rate, show rate, win rate) are client-side divisions.",
83505
+ "operationId": "getCrmActivityReport",
83506
+ "parameters": [
83507
+ {
83508
+ "description": "Inclusive start of the range (epoch ms).",
83509
+ "in": "query",
83510
+ "name": "from",
83511
+ "required": false,
83512
+ "schema": {
83513
+ "description": "Inclusive start of the range (epoch ms).",
83514
+ "minimum": 0,
83515
+ "nullable": true,
83516
+ "type": "integer"
83517
+ }
83518
+ },
83519
+ {
83520
+ "description": "Exclusive end of the range (epoch ms).",
83521
+ "in": "query",
83522
+ "name": "to",
83523
+ "required": false,
83524
+ "schema": {
83525
+ "description": "Exclusive end of the range (epoch ms).",
83526
+ "minimum": 0,
83527
+ "nullable": true,
83528
+ "type": "integer"
83529
+ }
83530
+ },
83531
+ {
83532
+ "description": "Omit = the caller's own metrics. `team` = one entry per workspace member (owner/admin only). A member id = that member (owner/admin only).",
83533
+ "in": "query",
83534
+ "name": "userId",
83535
+ "required": false,
83536
+ "schema": {
83537
+ "description": "Omit = the caller's own metrics. `team` = one entry per workspace member (owner/admin only). A member id = that member (owner/admin only).",
83538
+ "type": "string"
83539
+ }
83540
+ },
83541
+ {
83542
+ "description": "IANA zone the day buckets are cut in (default America/New_York).",
83543
+ "in": "query",
83544
+ "name": "tz",
83545
+ "required": false,
83546
+ "schema": {
83547
+ "description": "IANA zone the day buckets are cut in (default America/New_York).",
83548
+ "type": "string"
83549
+ }
83550
+ },
83551
+ {
83552
+ "description": "Scope every metric to that list's members and vocabulary. A 1-element alias for `listIds` — do not pass both.",
83553
+ "in": "query",
83554
+ "name": "listId",
83555
+ "required": false,
83556
+ "schema": {
83557
+ "description": "Scope every metric to that list's members and vocabulary. A 1-element alias for `listIds` — do not pass both.",
83558
+ "type": "string"
83559
+ }
83560
+ },
83561
+ {
83562
+ "description": "CSV of list ids to scope to (union, not intersection — a record that's a member of more than one selected list is still counted once in every distinct-record metric and once per day-bucket). A list id the caller can't see is silently dropped, not an error. Do not pass alongside `listId`.",
83563
+ "in": "query",
83564
+ "name": "listIds",
83565
+ "required": false,
83566
+ "schema": {
83567
+ "description": "CSV of list ids to scope to (union, not intersection — a record that's a member of more than one selected list is still counted once in every distinct-record metric and once per day-bucket). A list id the caller can't see is silently dropped, not an error. Do not pass alongside `listId`.",
83568
+ "type": "string"
83569
+ }
83570
+ }
83571
+ ],
83572
+ "responses": {
83573
+ "200": {
83574
+ "content": {
83575
+ "application/json": {
83576
+ "schema": {
83577
+ "$ref": "#/components/schemas/CrmActivityReportResult"
83578
+ }
83579
+ }
83580
+ },
83581
+ "description": "The activity report."
82257
83582
  },
82258
83583
  "400": {
82259
83584
  "content": {
@@ -84272,6 +85597,20 @@
84272
85597
  "type": "string"
84273
85598
  }
84274
85599
  },
85600
+ {
85601
+ "description": "Only files you pinned.",
85602
+ "in": "query",
85603
+ "name": "pinned",
85604
+ "required": false,
85605
+ "schema": {
85606
+ "description": "Only files you pinned.",
85607
+ "enum": [
85608
+ "true",
85609
+ "false"
85610
+ ],
85611
+ "type": "string"
85612
+ }
85613
+ },
84275
85614
  {
84276
85615
  "description": "`org` lists every file in the organization (organization admins only).",
84277
85616
  "in": "query",
@@ -84876,6 +86215,144 @@
84876
86215
  ]
84877
86216
  }
84878
86217
  },
86218
+ "/v1/files/references": {
86219
+ "post": {
86220
+ "description": "Adds a library entry for something that stays live in another app (a dashboard, chart or table): its title, kind and where to open it (`ref`), not a copy of it. It is ready at once, has no contents, and is listed, searched, pinned, renamed, shared, linked and deleted like any file. Calling it again for the same `ref.app` and `ref.id` updates your entry (name, kind, URL, and metadata when sent; links sent are added) and answers `200` with the same id. To show a thumbnail, put an image on it with `POST /v1/files/{id}/revisions`; its contents are then that image. Free.",
86221
+ "operationId": "createFileReference",
86222
+ "requestBody": {
86223
+ "content": {
86224
+ "application/json": {
86225
+ "schema": {
86226
+ "$ref": "#/components/schemas/FileReferenceCreate"
86227
+ }
86228
+ }
86229
+ },
86230
+ "required": true
86231
+ },
86232
+ "responses": {
86233
+ "200": {
86234
+ "content": {
86235
+ "application/json": {
86236
+ "schema": {
86237
+ "properties": {
86238
+ "data": {
86239
+ "$ref": "#/components/schemas/File"
86240
+ }
86241
+ },
86242
+ "required": [
86243
+ "data"
86244
+ ],
86245
+ "type": "object"
86246
+ }
86247
+ }
86248
+ },
86249
+ "description": "Your existing entry, updated"
86250
+ },
86251
+ "201": {
86252
+ "content": {
86253
+ "application/json": {
86254
+ "schema": {
86255
+ "properties": {
86256
+ "data": {
86257
+ "$ref": "#/components/schemas/File"
86258
+ }
86259
+ },
86260
+ "required": [
86261
+ "data"
86262
+ ],
86263
+ "type": "object"
86264
+ }
86265
+ }
86266
+ },
86267
+ "description": "The new entry"
86268
+ },
86269
+ "400": {
86270
+ "content": {
86271
+ "application/json": {
86272
+ "schema": {
86273
+ "$ref": "#/components/schemas/FileError"
86274
+ }
86275
+ }
86276
+ },
86277
+ "description": "Invalid request"
86278
+ },
86279
+ "401": {
86280
+ "content": {
86281
+ "application/json": {
86282
+ "schema": {
86283
+ "$ref": "#/components/schemas/FileError"
86284
+ }
86285
+ }
86286
+ },
86287
+ "description": "Not signed in"
86288
+ },
86289
+ "403": {
86290
+ "content": {
86291
+ "application/json": {
86292
+ "schema": {
86293
+ "$ref": "#/components/schemas/FileError"
86294
+ }
86295
+ }
86296
+ },
86297
+ "description": "Not allowed"
86298
+ },
86299
+ "404": {
86300
+ "content": {
86301
+ "application/json": {
86302
+ "schema": {
86303
+ "$ref": "#/components/schemas/FileError"
86304
+ }
86305
+ }
86306
+ },
86307
+ "description": "No such file"
86308
+ },
86309
+ "409": {
86310
+ "content": {
86311
+ "application/json": {
86312
+ "schema": {
86313
+ "$ref": "#/components/schemas/FileError"
86314
+ }
86315
+ }
86316
+ },
86317
+ "description": "Conflicts with the file's state"
86318
+ },
86319
+ "422": {
86320
+ "content": {
86321
+ "application/json": {
86322
+ "schema": {
86323
+ "$ref": "#/components/schemas/FileError"
86324
+ }
86325
+ }
86326
+ },
86327
+ "description": "The upload did not match"
86328
+ },
86329
+ "502": {
86330
+ "content": {
86331
+ "application/json": {
86332
+ "schema": {
86333
+ "$ref": "#/components/schemas/FileError"
86334
+ }
86335
+ }
86336
+ },
86337
+ "description": "Could not check membership"
86338
+ },
86339
+ "503": {
86340
+ "content": {
86341
+ "application/json": {
86342
+ "schema": {
86343
+ "$ref": "#/components/schemas/FileError"
86344
+ }
86345
+ }
86346
+ },
86347
+ "description": "Storage or the access log unavailable"
86348
+ }
86349
+ },
86350
+ "summary": "Add a link to something in another app",
86351
+ "tags": [
86352
+ "Files"
86353
+ ]
86354
+ }
86355
+ },
84879
86356
  "/v1/files/search": {
84880
86357
  "get": {
84881
86358
  "description": "Files you can see whose name contains `q`, names that start with it first. Free.",
@@ -85306,7 +86783,7 @@
85306
86783
  ]
85307
86784
  },
85308
86785
  "patch": {
85309
- "description": "The owner and editors can rename a file or replace its `metadata`. Free.",
86786
+ "description": "The owner and editors can rename a file, replace its `metadata`, or change where a link entry opens (`ref.url`). Free.",
85310
86787
  "operationId": "updateFile",
85311
86788
  "parameters": [
85312
86789
  {
@@ -85584,16 +87061,312 @@
85584
87061
  "description": "Storage or the access log unavailable"
85585
87062
  }
85586
87063
  },
85587
- "summary": "A protected file's access log",
87064
+ "summary": "A protected file's access log",
87065
+ "tags": [
87066
+ "Files"
87067
+ ]
87068
+ }
87069
+ },
87070
+ "/v1/files/{id}/agent-approvals": {
87071
+ "post": {
87072
+ "description": "You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.",
87073
+ "operationId": "approveFileForAgent",
87074
+ "parameters": [
87075
+ {
87076
+ "description": "The file's id.",
87077
+ "in": "path",
87078
+ "name": "id",
87079
+ "required": true,
87080
+ "schema": {
87081
+ "description": "The file's id.",
87082
+ "example": "file_3f2a…",
87083
+ "pattern": "^file_[0-9a-f]{32}$",
87084
+ "type": "string"
87085
+ }
87086
+ }
87087
+ ],
87088
+ "requestBody": {
87089
+ "content": {
87090
+ "application/json": {
87091
+ "schema": {
87092
+ "$ref": "#/components/schemas/FileAgentApprovalCreate"
87093
+ }
87094
+ }
87095
+ },
87096
+ "required": true
87097
+ },
87098
+ "responses": {
87099
+ "201": {
87100
+ "content": {
87101
+ "application/json": {
87102
+ "schema": {
87103
+ "properties": {
87104
+ "data": {
87105
+ "properties": {
87106
+ "approvedAt": {
87107
+ "type": "string"
87108
+ },
87109
+ "chatId": {
87110
+ "type": "string"
87111
+ },
87112
+ "fileId": {
87113
+ "type": "string"
87114
+ },
87115
+ "userId": {
87116
+ "type": "string"
87117
+ }
87118
+ },
87119
+ "required": [
87120
+ "fileId",
87121
+ "chatId",
87122
+ "userId",
87123
+ "approvedAt"
87124
+ ],
87125
+ "type": "object"
87126
+ }
87127
+ },
87128
+ "required": [
87129
+ "data"
87130
+ ],
87131
+ "type": "object"
87132
+ }
87133
+ }
87134
+ },
87135
+ "description": "Approved"
87136
+ },
87137
+ "400": {
87138
+ "content": {
87139
+ "application/json": {
87140
+ "schema": {
87141
+ "$ref": "#/components/schemas/FileError"
87142
+ }
87143
+ }
87144
+ },
87145
+ "description": "Invalid request"
87146
+ },
87147
+ "401": {
87148
+ "content": {
87149
+ "application/json": {
87150
+ "schema": {
87151
+ "$ref": "#/components/schemas/FileError"
87152
+ }
87153
+ }
87154
+ },
87155
+ "description": "Not signed in"
87156
+ },
87157
+ "403": {
87158
+ "content": {
87159
+ "application/json": {
87160
+ "schema": {
87161
+ "$ref": "#/components/schemas/FileError"
87162
+ }
87163
+ }
87164
+ },
87165
+ "description": "Not allowed"
87166
+ },
87167
+ "404": {
87168
+ "content": {
87169
+ "application/json": {
87170
+ "schema": {
87171
+ "$ref": "#/components/schemas/FileError"
87172
+ }
87173
+ }
87174
+ },
87175
+ "description": "No such file"
87176
+ },
87177
+ "409": {
87178
+ "content": {
87179
+ "application/json": {
87180
+ "schema": {
87181
+ "$ref": "#/components/schemas/FileError"
87182
+ }
87183
+ }
87184
+ },
87185
+ "description": "Conflicts with the file's state"
87186
+ },
87187
+ "422": {
87188
+ "content": {
87189
+ "application/json": {
87190
+ "schema": {
87191
+ "$ref": "#/components/schemas/FileError"
87192
+ }
87193
+ }
87194
+ },
87195
+ "description": "The upload did not match"
87196
+ },
87197
+ "502": {
87198
+ "content": {
87199
+ "application/json": {
87200
+ "schema": {
87201
+ "$ref": "#/components/schemas/FileError"
87202
+ }
87203
+ }
87204
+ },
87205
+ "description": "Could not check membership"
87206
+ },
87207
+ "503": {
87208
+ "content": {
87209
+ "application/json": {
87210
+ "schema": {
87211
+ "$ref": "#/components/schemas/FileError"
87212
+ }
87213
+ }
87214
+ },
87215
+ "description": "Storage or the access log unavailable"
87216
+ }
87217
+ },
87218
+ "summary": "Let an agent open a protected file in one conversation",
87219
+ "tags": [
87220
+ "Files"
87221
+ ]
87222
+ }
87223
+ },
87224
+ "/v1/files/{id}/complete": {
87225
+ "post": {
87226
+ "description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked (when no SHA-256 was declared it is computed now); a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.",
87227
+ "operationId": "completeFile",
87228
+ "parameters": [
87229
+ {
87230
+ "description": "The file's id.",
87231
+ "in": "path",
87232
+ "name": "id",
87233
+ "required": true,
87234
+ "schema": {
87235
+ "description": "The file's id.",
87236
+ "example": "file_3f2a…",
87237
+ "pattern": "^file_[0-9a-f]{32}$",
87238
+ "type": "string"
87239
+ }
87240
+ }
87241
+ ],
87242
+ "responses": {
87243
+ "200": {
87244
+ "content": {
87245
+ "application/json": {
87246
+ "schema": {
87247
+ "properties": {
87248
+ "data": {
87249
+ "$ref": "#/components/schemas/File"
87250
+ }
87251
+ },
87252
+ "required": [
87253
+ "data"
87254
+ ],
87255
+ "type": "object"
87256
+ }
87257
+ }
87258
+ },
87259
+ "description": "The file is ready"
87260
+ },
87261
+ "202": {
87262
+ "content": {
87263
+ "application/json": {
87264
+ "schema": {
87265
+ "properties": {
87266
+ "data": {
87267
+ "$ref": "#/components/schemas/File"
87268
+ }
87269
+ },
87270
+ "required": [
87271
+ "data"
87272
+ ],
87273
+ "type": "object"
87274
+ }
87275
+ }
87276
+ },
87277
+ "description": "The file is being scanned"
87278
+ },
87279
+ "400": {
87280
+ "content": {
87281
+ "application/json": {
87282
+ "schema": {
87283
+ "$ref": "#/components/schemas/FileError"
87284
+ }
87285
+ }
87286
+ },
87287
+ "description": "Invalid request"
87288
+ },
87289
+ "401": {
87290
+ "content": {
87291
+ "application/json": {
87292
+ "schema": {
87293
+ "$ref": "#/components/schemas/FileError"
87294
+ }
87295
+ }
87296
+ },
87297
+ "description": "Not signed in"
87298
+ },
87299
+ "403": {
87300
+ "content": {
87301
+ "application/json": {
87302
+ "schema": {
87303
+ "$ref": "#/components/schemas/FileError"
87304
+ }
87305
+ }
87306
+ },
87307
+ "description": "Not allowed"
87308
+ },
87309
+ "404": {
87310
+ "content": {
87311
+ "application/json": {
87312
+ "schema": {
87313
+ "$ref": "#/components/schemas/FileError"
87314
+ }
87315
+ }
87316
+ },
87317
+ "description": "No such file"
87318
+ },
87319
+ "409": {
87320
+ "content": {
87321
+ "application/json": {
87322
+ "schema": {
87323
+ "$ref": "#/components/schemas/FileError"
87324
+ }
87325
+ }
87326
+ },
87327
+ "description": "Conflicts with the file's state"
87328
+ },
87329
+ "422": {
87330
+ "content": {
87331
+ "application/json": {
87332
+ "schema": {
87333
+ "$ref": "#/components/schemas/FileError"
87334
+ }
87335
+ }
87336
+ },
87337
+ "description": "The upload did not match"
87338
+ },
87339
+ "502": {
87340
+ "content": {
87341
+ "application/json": {
87342
+ "schema": {
87343
+ "$ref": "#/components/schemas/FileError"
87344
+ }
87345
+ }
87346
+ },
87347
+ "description": "Could not check membership"
87348
+ },
87349
+ "503": {
87350
+ "content": {
87351
+ "application/json": {
87352
+ "schema": {
87353
+ "$ref": "#/components/schemas/FileError"
87354
+ }
87355
+ }
87356
+ },
87357
+ "description": "Storage or the access log unavailable"
87358
+ }
87359
+ },
87360
+ "summary": "Finish an upload",
85588
87361
  "tags": [
85589
87362
  "Files"
85590
87363
  ]
85591
87364
  }
85592
87365
  },
85593
- "/v1/files/{id}/agent-approvals": {
85594
- "post": {
85595
- "description": "You approve an agent to open this protected file in the conversation `chatId`, and nowhere else. Only you can approve, from your own session: an agent cannot approve itself. Each approval is recorded in the file's access log. Free.",
85596
- "operationId": "approveFileForAgent",
87366
+ "/v1/files/{id}/content": {
87367
+ "get": {
87368
+ "description": "Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.",
87369
+ "operationId": "getFileContent",
85597
87370
  "parameters": [
85598
87371
  {
85599
87372
  "description": "The file's id.",
@@ -85606,44 +87379,59 @@
85606
87379
  "pattern": "^file_[0-9a-f]{32}$",
85607
87380
  "type": "string"
85608
87381
  }
85609
- }
85610
- ],
85611
- "requestBody": {
85612
- "content": {
85613
- "application/json": {
85614
- "schema": {
85615
- "$ref": "#/components/schemas/FileAgentApprovalCreate"
85616
- }
87382
+ },
87383
+ {
87384
+ "in": "query",
87385
+ "name": "disposition",
87386
+ "required": false,
87387
+ "schema": {
87388
+ "default": "attachment",
87389
+ "enum": [
87390
+ "inline",
87391
+ "attachment"
87392
+ ],
87393
+ "type": "string"
85617
87394
  }
85618
87395
  },
85619
- "required": true
85620
- },
87396
+ {
87397
+ "description": "`false` answers with the link as JSON instead of redirecting.",
87398
+ "in": "query",
87399
+ "name": "redirect",
87400
+ "required": false,
87401
+ "schema": {
87402
+ "default": "true",
87403
+ "description": "`false` answers with the link as JSON instead of redirecting.",
87404
+ "enum": [
87405
+ "true",
87406
+ "false"
87407
+ ],
87408
+ "type": "string"
87409
+ }
87410
+ }
87411
+ ],
85621
87412
  "responses": {
85622
- "201": {
87413
+ "200": {
85623
87414
  "content": {
85624
87415
  "application/json": {
85625
87416
  "schema": {
85626
87417
  "properties": {
85627
87418
  "data": {
85628
87419
  "properties": {
85629
- "approvedAt": {
85630
- "type": "string"
85631
- },
85632
- "chatId": {
87420
+ "expiresAt": {
85633
87421
  "type": "string"
85634
87422
  },
85635
- "fileId": {
85636
- "type": "string"
87423
+ "oneTime": {
87424
+ "description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
87425
+ "type": "boolean"
85637
87426
  },
85638
- "userId": {
87427
+ "url": {
85639
87428
  "type": "string"
85640
87429
  }
85641
87430
  },
85642
87431
  "required": [
85643
- "fileId",
85644
- "chatId",
85645
- "userId",
85646
- "approvedAt"
87432
+ "url",
87433
+ "expiresAt",
87434
+ "oneTime"
85647
87435
  ],
85648
87436
  "type": "object"
85649
87437
  }
@@ -85655,7 +87443,18 @@
85655
87443
  }
85656
87444
  }
85657
87445
  },
85658
- "description": "Approved"
87446
+ "description": "The download link (with `redirect=false`)"
87447
+ },
87448
+ "302": {
87449
+ "description": "Redirect to the download link",
87450
+ "headers": {
87451
+ "location": {
87452
+ "required": true,
87453
+ "schema": {
87454
+ "type": "string"
87455
+ }
87456
+ }
87457
+ }
85659
87458
  },
85660
87459
  "400": {
85661
87460
  "content": {
@@ -85738,16 +87537,16 @@
85738
87537
  "description": "Storage or the access log unavailable"
85739
87538
  }
85740
87539
  },
85741
- "summary": "Let an agent open a protected file in one conversation",
87540
+ "summary": "Open a file",
85742
87541
  "tags": [
85743
87542
  "Files"
85744
87543
  ]
85745
87544
  }
85746
87545
  },
85747
- "/v1/files/{id}/complete": {
85748
- "post": {
85749
- "description": "Call after the bytes were PUT to the upload URL. The size and SHA-256 are checked (when no SHA-256 was declared it is computed now); a match makes the file ready (`200`), or `scanning` while it is checked for malware (`202`, call again shortly). A mismatch answers `422` and the upload must be started again. Calling it again is safe. Free.",
85750
- "operationId": "completeFile",
87546
+ "/v1/files/{id}/links": {
87547
+ "delete": {
87548
+ "description": "The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.",
87549
+ "operationId": "unlinkFile",
85751
87550
  "parameters": [
85752
87551
  {
85753
87552
  "description": "The file's id.",
@@ -85760,6 +87559,19 @@
85760
87559
  "pattern": "^file_[0-9a-f]{32}$",
85761
87560
  "type": "string"
85762
87561
  }
87562
+ },
87563
+ {
87564
+ "description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
87565
+ "in": "query",
87566
+ "name": "target",
87567
+ "required": true,
87568
+ "schema": {
87569
+ "description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
87570
+ "example": "ask_chat:chat_123",
87571
+ "maxLength": 220,
87572
+ "minLength": 3,
87573
+ "type": "string"
87574
+ }
85763
87575
  }
85764
87576
  ],
85765
87577
  "responses": {
@@ -85769,25 +87581,10 @@
85769
87581
  "schema": {
85770
87582
  "properties": {
85771
87583
  "data": {
85772
- "$ref": "#/components/schemas/File"
85773
- }
85774
- },
85775
- "required": [
85776
- "data"
85777
- ],
85778
- "type": "object"
85779
- }
85780
- }
85781
- },
85782
- "description": "The file is ready"
85783
- },
85784
- "202": {
85785
- "content": {
85786
- "application/json": {
85787
- "schema": {
85788
- "properties": {
85789
- "data": {
85790
- "$ref": "#/components/schemas/File"
87584
+ "items": {
87585
+ "type": "string"
87586
+ },
87587
+ "type": "array"
85791
87588
  }
85792
87589
  },
85793
87590
  "required": [
@@ -85797,7 +87594,7 @@
85797
87594
  }
85798
87595
  }
85799
87596
  },
85800
- "description": "The file is being scanned"
87597
+ "description": "The file's links"
85801
87598
  },
85802
87599
  "400": {
85803
87600
  "content": {
@@ -85880,16 +87677,14 @@
85880
87677
  "description": "Storage or the access log unavailable"
85881
87678
  }
85882
87679
  },
85883
- "summary": "Finish an upload",
87680
+ "summary": "Detach a file",
85884
87681
  "tags": [
85885
87682
  "Files"
85886
87683
  ]
85887
- }
85888
- },
85889
- "/v1/files/{id}/content": {
85890
- "get": {
85891
- "description": "Redirects to a short-lived download link for a ready file. This path is the file's permanent link: it never expires, because each open is checked again. Pass `redirect=false` to get the link as JSON instead. Free.",
85892
- "operationId": "getFileContent",
87684
+ },
87685
+ "post": {
87686
+ "description": "The owner or an editor attaches a file to a CRM record, a Studio table, a chat, a project or an export. Linking to a CRM record needs you to be able to see the record, and lets anyone who can see the record view the file if it is standard (a protected file stays shared person by person). Other links share the file with no one. Free.",
87687
+ "operationId": "linkFile",
85893
87688
  "parameters": [
85894
87689
  {
85895
87690
  "description": "The file's id.",
@@ -85902,36 +87697,18 @@
85902
87697
  "pattern": "^file_[0-9a-f]{32}$",
85903
87698
  "type": "string"
85904
87699
  }
85905
- },
85906
- {
85907
- "in": "query",
85908
- "name": "disposition",
85909
- "required": false,
85910
- "schema": {
85911
- "default": "attachment",
85912
- "enum": [
85913
- "inline",
85914
- "attachment"
85915
- ],
85916
- "type": "string"
85917
- }
85918
- },
85919
- {
85920
- "description": "`false` answers with the link as JSON instead of redirecting.",
85921
- "in": "query",
85922
- "name": "redirect",
85923
- "required": false,
85924
- "schema": {
85925
- "default": "true",
85926
- "description": "`false` answers with the link as JSON instead of redirecting.",
85927
- "enum": [
85928
- "true",
85929
- "false"
85930
- ],
85931
- "type": "string"
85932
- }
85933
87700
  }
85934
87701
  ],
87702
+ "requestBody": {
87703
+ "content": {
87704
+ "application/json": {
87705
+ "schema": {
87706
+ "$ref": "#/components/schemas/FileLinkCreate"
87707
+ }
87708
+ }
87709
+ },
87710
+ "required": true
87711
+ },
85935
87712
  "responses": {
85936
87713
  "200": {
85937
87714
  "content": {
@@ -85939,24 +87716,10 @@
85939
87716
  "schema": {
85940
87717
  "properties": {
85941
87718
  "data": {
85942
- "properties": {
85943
- "expiresAt": {
85944
- "type": "string"
85945
- },
85946
- "oneTime": {
85947
- "description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
85948
- "type": "boolean"
85949
- },
85950
- "url": {
85951
- "type": "string"
85952
- }
87719
+ "items": {
87720
+ "type": "string"
85953
87721
  },
85954
- "required": [
85955
- "url",
85956
- "expiresAt",
85957
- "oneTime"
85958
- ],
85959
- "type": "object"
87722
+ "type": "array"
85960
87723
  }
85961
87724
  },
85962
87725
  "required": [
@@ -85966,18 +87729,7 @@
85966
87729
  }
85967
87730
  }
85968
87731
  },
85969
- "description": "The download link (with `redirect=false`)"
85970
- },
85971
- "302": {
85972
- "description": "Redirect to the download link",
85973
- "headers": {
85974
- "location": {
85975
- "required": true,
85976
- "schema": {
85977
- "type": "string"
85978
- }
85979
- }
85980
- }
87732
+ "description": "The file's links"
85981
87733
  },
85982
87734
  "400": {
85983
87735
  "content": {
@@ -86060,16 +87812,16 @@
86060
87812
  "description": "Storage or the access log unavailable"
86061
87813
  }
86062
87814
  },
86063
- "summary": "Open a file",
87815
+ "summary": "Attach a file to something",
86064
87816
  "tags": [
86065
87817
  "Files"
86066
87818
  ]
86067
87819
  }
86068
87820
  },
86069
- "/v1/files/{id}/links": {
87821
+ "/v1/files/{id}/pin": {
86070
87822
  "delete": {
86071
- "description": "The owner or an editor removes a link. Removing a CRM record link also needs you to be able to see the record. Free.",
86072
- "operationId": "unlinkFile",
87823
+ "description": "Removes your pin. Succeeds when the file was not pinned. Free.",
87824
+ "operationId": "unpinFile",
86073
87825
  "parameters": [
86074
87826
  {
86075
87827
  "description": "The file's id.",
@@ -86082,19 +87834,6 @@
86082
87834
  "pattern": "^file_[0-9a-f]{32}$",
86083
87835
  "type": "string"
86084
87836
  }
86085
- },
86086
- {
86087
- "description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
86088
- "in": "query",
86089
- "name": "target",
86090
- "required": true,
86091
- "schema": {
86092
- "description": "What the file belongs to, as `<type>:<id>`: `crm_record` (a CRM person or company, by its record id, e.g. `crm_record:lo:123`), `studio_table`, `ask_chat`, `ask_project` or `export_job`. You must be able to see a CRM record to link a file to it, and anyone who can see the record can view the standard files linked to it.",
86093
- "example": "ask_chat:chat_123",
86094
- "maxLength": 220,
86095
- "minLength": 3,
86096
- "type": "string"
86097
- }
86098
87837
  }
86099
87838
  ],
86100
87839
  "responses": {
@@ -86104,10 +87843,7 @@
86104
87843
  "schema": {
86105
87844
  "properties": {
86106
87845
  "data": {
86107
- "items": {
86108
- "type": "string"
86109
- },
86110
- "type": "array"
87846
+ "$ref": "#/components/schemas/File"
86111
87847
  }
86112
87848
  },
86113
87849
  "required": [
@@ -86117,7 +87853,7 @@
86117
87853
  }
86118
87854
  }
86119
87855
  },
86120
- "description": "The file's links"
87856
+ "description": "The file"
86121
87857
  },
86122
87858
  "400": {
86123
87859
  "content": {
@@ -86200,14 +87936,14 @@
86200
87936
  "description": "Storage or the access log unavailable"
86201
87937
  }
86202
87938
  },
86203
- "summary": "Detach a file",
87939
+ "summary": "Unpin a file",
86204
87940
  "tags": [
86205
87941
  "Files"
86206
87942
  ]
86207
87943
  },
86208
- "post": {
86209
- "description": "The owner or an editor attaches a file to a CRM record, a Studio table, a chat, a project or an export. Linking to a CRM record needs you to be able to see the record, and lets anyone who can see the record view the file if it is standard (a protected file stays shared person by person). Other links share the file with no one. Free.",
86210
- "operationId": "linkFile",
87944
+ "put": {
87945
+ "description": "Pins a file you can see, for you only (anyone with a role on it can). Pinning again keeps the first pin time. List your pins with `pinned=true`. Free.",
87946
+ "operationId": "pinFile",
86211
87947
  "parameters": [
86212
87948
  {
86213
87949
  "description": "The file's id.",
@@ -86222,16 +87958,6 @@
86222
87958
  }
86223
87959
  }
86224
87960
  ],
86225
- "requestBody": {
86226
- "content": {
86227
- "application/json": {
86228
- "schema": {
86229
- "$ref": "#/components/schemas/FileLinkCreate"
86230
- }
86231
- }
86232
- },
86233
- "required": true
86234
- },
86235
87961
  "responses": {
86236
87962
  "200": {
86237
87963
  "content": {
@@ -86239,10 +87965,7 @@
86239
87965
  "schema": {
86240
87966
  "properties": {
86241
87967
  "data": {
86242
- "items": {
86243
- "type": "string"
86244
- },
86245
- "type": "array"
87968
+ "$ref": "#/components/schemas/File"
86246
87969
  }
86247
87970
  },
86248
87971
  "required": [
@@ -86252,7 +87975,7 @@
86252
87975
  }
86253
87976
  }
86254
87977
  },
86255
- "description": "The file's links"
87978
+ "description": "The file"
86256
87979
  },
86257
87980
  "400": {
86258
87981
  "content": {
@@ -86335,7 +88058,7 @@
86335
88058
  "description": "Storage or the access log unavailable"
86336
88059
  }
86337
88060
  },
86338
- "summary": "Attach a file to something",
88061
+ "summary": "Pin a file",
86339
88062
  "tags": [
86340
88063
  "Files"
86341
88064
  ]
@@ -91638,7 +93361,7 @@
91638
93361
  ]
91639
93362
  },
91640
93363
  "post": {
91641
- "description": "Set up a monitor. From a ModelMatch template: send `watch: { template, inputs, options }` (see `GET /v1/monitors/templates`); it checks once right away, so updates from the last 90 days arrive with its first run, then weekly. From your own query: send `watch: { sql, keys, schedule }`, a `name` and at least one rule. Results land in a table in your organization's workspace. Free to set up; each weekly run of a template monitor costs credits.",
93364
+ "description": "Set up a monitor. From a ModelMatch template: send `watch: { template, inputs, options }` (see `GET /v1/monitors/templates`); it checks once right away, so updates from the last 90 days arrive with its first run, then weekly. From your own query: send `watch: { sql, keys, schedule }`, a `name` and at least one rule. Results land in a table in your organization's workspace. Free to set up; a monitor's run costs credits only when it finds something.",
91642
93365
  "operationId": "createMonitor",
91643
93366
  "requestBody": {
91644
93367
  "content": {
@@ -101068,7 +102791,7 @@
101068
102791
  ]
101069
102792
  },
101070
102793
  "post": {
101071
- "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, including the runs a `daily` or `weekly` schedule starts. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same. A heavy run gets capacity of its own with more memory and takes minutes rather than seconds; the job's `limits` say how long a run may take. `perState: true` (heavy jobs only; off unless set) runs the SQL once for each state and puts the results together. It is correct ONLY when every row of the result depends on one state's data — a list of homes, a join per property. It is wrong for national rankings, totals or averages: a top 10 would become a top 10 in every state. SQL ending in `LIMIT` is refused for it. A state that fails is tried once more, and the run lists how each state went (`states`).",
102794
+ "description": "Save a SQL question to run again: on a schedule (`daily`, `weekly`) or only when asked (`manual`). Each run stores its result as a table named after the job, which later questions — and later jobs — can query like any other table. Name the `keys` (the columns that identify one row) to get 'what changed since the last run', and add `alerts` to flag new rows, removed rows or a number crossing a threshold. When an alert matches on a scheduled run, the job's creator is emailed (once per hourly tick, every job of theirs in one email, also in their notifications); `notify: { email: false }` saves the job without those emails, and `updateStudioJob` changes it later. Webhooks are not available yet. The SQL is checked when the job is saved: an unknown table or column, or a key that is not in the result, is refused here rather than at the first run. Saving does not run the job. To start from an existing job, give `copyFrom` (one of your jobs) or `copyFromPublished` (the `mm_*` table of a job ModelMatch publishes) instead of `sql`: its SQL, keys, alerts and description are copied into an editable job of your own — anything the request gives overrides them — checked like any other, starting `manual`; the job keeps `copiedFrom`. A published table built by a program, or a published model (copy that with createStudioModel and `basedOnPublished`), cannot be copied as a job. Saving is free; each run that succeeds costs 10 credits, scheduled runs included; with `alerts`, only a run where one matches. `size: heavy`: more time and rows per run (the catalog's `limits.heavyJobs`), 100 credits a run, for organizations with heavy runs enabled (`403 entitlement_missing` otherwise); the SQL rules are the same. A heavy run gets capacity of its own with more memory and takes minutes rather than seconds; the job's `limits` say how long a run may take. `perState: true` (heavy jobs only; off unless set) runs the SQL once for each state and puts the results together. It is correct ONLY when every row of the result depends on one state's data — a list of homes, a join per property. It is wrong for national rankings, totals or averages: a top 10 would become a top 10 in every state. SQL ending in `LIMIT` is refused for it. A state that fails is tried once more, and the run lists how each state went (`states`).",
101072
102795
  "operationId": "createStudioJob",
101073
102796
  "requestBody": {
101074
102797
  "content": {
@@ -101534,7 +103257,7 @@
101534
103257
  },
101535
103258
  "/v1/studio/jobs/{name}/run": {
101536
103259
  "post": {
101537
- "description": "Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes successfully: `credits.charged` is 0 and `credits.pending` says what it will cost.",
103260
+ "description": "Run a saved job now. Answers `200` with the finished run (its row count, what changed and any alerts) when it ends within a few seconds; otherwise `202` with `status: running`, and the run carries on — read the job to see how it ended. A run that fails answers `422` with `code: job_failed` and the reason. One job runs at a time per organization. 10 credits for a run that succeeds (a job with `alerts`: only when one matches; 100 for a `heavy` job, which needs heavy runs enabled: `403 entitlement_missing` otherwise); a failed run is free. A run that has succeeded by the time this returns is charged now (`credits.charged`, with `credits.remaining`). One still running is charged when it finishes: `credits.charged` is 0 and `credits.pending` is the most it will cost.",
101538
103261
  "operationId": "runStudioJob",
101539
103262
  "parameters": [
101540
103263
  {