@model-match/api 3.104.0 → 3.106.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/RELEASE_NOTES.md +11 -0
- package/dist/{index-BOaR-wUK.d.mts → index-D5MQxc4l.d.mts} +697 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/slim/index.d.mts +48 -6
- package/dist/slim/index.mjs +146 -6
- package/dist/{src-Bv7R5w1N.mjs → src-DlIVTyg4.mjs} +162 -4
- package/openapi.json +2282 -713
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -19719,6 +19719,10 @@
|
|
|
19719
19719
|
"nullable": true,
|
|
19720
19720
|
"type": "string"
|
|
19721
19721
|
},
|
|
19722
|
+
"actorEngagementId": {
|
|
19723
|
+
"nullable": true,
|
|
19724
|
+
"type": "string"
|
|
19725
|
+
},
|
|
19722
19726
|
"actorImage": {
|
|
19723
19727
|
"nullable": true,
|
|
19724
19728
|
"type": "string"
|
|
@@ -22569,6 +22573,10 @@
|
|
|
22569
22573
|
"nullable": true,
|
|
22570
22574
|
"type": "string"
|
|
22571
22575
|
},
|
|
22576
|
+
"actorEngagementId": {
|
|
22577
|
+
"nullable": true,
|
|
22578
|
+
"type": "string"
|
|
22579
|
+
},
|
|
22572
22580
|
"actorMode": {
|
|
22573
22581
|
"enum": [
|
|
22574
22582
|
"user",
|
|
@@ -22618,6 +22626,7 @@
|
|
|
22618
22626
|
"actorRunId",
|
|
22619
22627
|
"actorChatId",
|
|
22620
22628
|
"auditRef",
|
|
22629
|
+
"actorEngagementId",
|
|
22621
22630
|
"createdAt"
|
|
22622
22631
|
],
|
|
22623
22632
|
"type": "object"
|
|
@@ -27756,6 +27765,11 @@
|
|
|
27756
27765
|
"ownerId": {
|
|
27757
27766
|
"type": "string"
|
|
27758
27767
|
},
|
|
27768
|
+
"pinnedAt": {
|
|
27769
|
+
"description": "When you pinned the file; `null` when you have not. Pins are personal.",
|
|
27770
|
+
"nullable": true,
|
|
27771
|
+
"type": "string"
|
|
27772
|
+
},
|
|
27759
27773
|
"provenance": {
|
|
27760
27774
|
"additionalProperties": {
|
|
27761
27775
|
"type": "string"
|
|
@@ -27767,6 +27781,9 @@
|
|
|
27767
27781
|
"nullable": true,
|
|
27768
27782
|
"type": "string"
|
|
27769
27783
|
},
|
|
27784
|
+
"ref": {
|
|
27785
|
+
"$ref": "#/components/schemas/FileRef"
|
|
27786
|
+
},
|
|
27770
27787
|
"retainUntil": {
|
|
27771
27788
|
"nullable": true,
|
|
27772
27789
|
"type": "string"
|
|
@@ -27834,7 +27851,9 @@
|
|
|
27834
27851
|
"legalHold",
|
|
27835
27852
|
"createdAt",
|
|
27836
27853
|
"updatedAt",
|
|
27837
|
-
"readyAt"
|
|
27854
|
+
"readyAt",
|
|
27855
|
+
"ref",
|
|
27856
|
+
"pinnedAt"
|
|
27838
27857
|
],
|
|
27839
27858
|
"type": "object"
|
|
27840
27859
|
},
|
|
@@ -28007,7 +28026,7 @@
|
|
|
28007
28026
|
"FileError": {
|
|
28008
28027
|
"properties": {
|
|
28009
28028
|
"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`.",
|
|
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`.",
|
|
28011
28030
|
"type": "string"
|
|
28012
28031
|
},
|
|
28013
28032
|
"error": {
|
|
@@ -28062,6 +28081,23 @@
|
|
|
28062
28081
|
"minLength": 1,
|
|
28063
28082
|
"type": "string"
|
|
28064
28083
|
},
|
|
28084
|
+
"ref": {
|
|
28085
|
+
"additionalProperties": false,
|
|
28086
|
+
"description": "A link entry only (owner or editor): where it opens now. Its app and id never change.",
|
|
28087
|
+
"properties": {
|
|
28088
|
+
"url": {
|
|
28089
|
+
"description": "Where to open it (http or https).",
|
|
28090
|
+
"example": "https://ask.modelmatch.com/dashboards/dash_123",
|
|
28091
|
+
"format": "uri",
|
|
28092
|
+
"maxLength": 2000,
|
|
28093
|
+
"type": "string"
|
|
28094
|
+
}
|
|
28095
|
+
},
|
|
28096
|
+
"required": [
|
|
28097
|
+
"url"
|
|
28098
|
+
],
|
|
28099
|
+
"type": "object"
|
|
28100
|
+
},
|
|
28065
28101
|
"retainUntil": {
|
|
28066
28102
|
"description": "Keep the file until this time (the owner or an organization admin); `null` clears it. The file cannot be deleted before then.",
|
|
28067
28103
|
"format": "date-time",
|
|
@@ -28071,6 +28107,94 @@
|
|
|
28071
28107
|
},
|
|
28072
28108
|
"type": "object"
|
|
28073
28109
|
},
|
|
28110
|
+
"FileRef": {
|
|
28111
|
+
"additionalProperties": false,
|
|
28112
|
+
"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.",
|
|
28113
|
+
"nullable": true,
|
|
28114
|
+
"properties": {
|
|
28115
|
+
"app": {
|
|
28116
|
+
"description": "The app the entry points into, e.g. `ask`.",
|
|
28117
|
+
"example": "ask",
|
|
28118
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
28119
|
+
"type": "string"
|
|
28120
|
+
},
|
|
28121
|
+
"id": {
|
|
28122
|
+
"description": "Its id in that app.",
|
|
28123
|
+
"example": "dash_123",
|
|
28124
|
+
"pattern": "^[A-Za-z0-9_.:-]{1,200}$",
|
|
28125
|
+
"type": "string"
|
|
28126
|
+
},
|
|
28127
|
+
"url": {
|
|
28128
|
+
"description": "Where to open it (http or https).",
|
|
28129
|
+
"example": "https://ask.modelmatch.com/dashboards/dash_123",
|
|
28130
|
+
"format": "uri",
|
|
28131
|
+
"maxLength": 2000,
|
|
28132
|
+
"type": "string"
|
|
28133
|
+
}
|
|
28134
|
+
},
|
|
28135
|
+
"required": [
|
|
28136
|
+
"app",
|
|
28137
|
+
"id",
|
|
28138
|
+
"url"
|
|
28139
|
+
],
|
|
28140
|
+
"type": "object"
|
|
28141
|
+
},
|
|
28142
|
+
"FileReferenceCreate": {
|
|
28143
|
+
"additionalProperties": false,
|
|
28144
|
+
"properties": {
|
|
28145
|
+
"kind": {
|
|
28146
|
+
"description": "What it is: `dashboard`, `chart`, `table`…",
|
|
28147
|
+
"example": "dashboard",
|
|
28148
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
28149
|
+
"type": "string"
|
|
28150
|
+
},
|
|
28151
|
+
"links": {
|
|
28152
|
+
"items": {
|
|
28153
|
+
"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.",
|
|
28154
|
+
"example": "ask_chat:chat_123",
|
|
28155
|
+
"maxLength": 220,
|
|
28156
|
+
"minLength": 3,
|
|
28157
|
+
"type": "string"
|
|
28158
|
+
},
|
|
28159
|
+
"maxItems": 20,
|
|
28160
|
+
"type": "array"
|
|
28161
|
+
},
|
|
28162
|
+
"metadata": {
|
|
28163
|
+
"additionalProperties": {
|
|
28164
|
+
"nullable": true
|
|
28165
|
+
},
|
|
28166
|
+
"type": "object"
|
|
28167
|
+
},
|
|
28168
|
+
"name": {
|
|
28169
|
+
"description": "The title shown in the library.",
|
|
28170
|
+
"example": "Austin purchase volume",
|
|
28171
|
+
"maxLength": 255,
|
|
28172
|
+
"minLength": 1,
|
|
28173
|
+
"type": "string"
|
|
28174
|
+
},
|
|
28175
|
+
"origin": {
|
|
28176
|
+
"description": "Defaults to `app`.",
|
|
28177
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$",
|
|
28178
|
+
"type": "string"
|
|
28179
|
+
},
|
|
28180
|
+
"provenance": {
|
|
28181
|
+
"additionalProperties": {
|
|
28182
|
+
"maxLength": 200,
|
|
28183
|
+
"type": "string"
|
|
28184
|
+
},
|
|
28185
|
+
"type": "object"
|
|
28186
|
+
},
|
|
28187
|
+
"ref": {
|
|
28188
|
+
"$ref": "#/components/schemas/FileRef"
|
|
28189
|
+
}
|
|
28190
|
+
},
|
|
28191
|
+
"required": [
|
|
28192
|
+
"name",
|
|
28193
|
+
"kind",
|
|
28194
|
+
"ref"
|
|
28195
|
+
],
|
|
28196
|
+
"type": "object"
|
|
28197
|
+
},
|
|
28074
28198
|
"FileRevisionCreate": {
|
|
28075
28199
|
"additionalProperties": false,
|
|
28076
28200
|
"properties": {
|
|
@@ -47725,6 +47849,346 @@
|
|
|
47725
47849
|
],
|
|
47726
47850
|
"type": "object"
|
|
47727
47851
|
},
|
|
47852
|
+
"RecruitingActiveCall": {
|
|
47853
|
+
"nullable": true,
|
|
47854
|
+
"properties": {
|
|
47855
|
+
"engagementId": {
|
|
47856
|
+
"type": "string"
|
|
47857
|
+
},
|
|
47858
|
+
"entityId": {
|
|
47859
|
+
"type": "string"
|
|
47860
|
+
},
|
|
47861
|
+
"id": {
|
|
47862
|
+
"type": "string"
|
|
47863
|
+
},
|
|
47864
|
+
"organizationId": {
|
|
47865
|
+
"type": "string"
|
|
47866
|
+
},
|
|
47867
|
+
"recordName": {
|
|
47868
|
+
"nullable": true,
|
|
47869
|
+
"type": "string"
|
|
47870
|
+
},
|
|
47871
|
+
"toNumber": {
|
|
47872
|
+
"type": "string"
|
|
47873
|
+
},
|
|
47874
|
+
"workspace": {
|
|
47875
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
47876
|
+
}
|
|
47877
|
+
},
|
|
47878
|
+
"required": [
|
|
47879
|
+
"id",
|
|
47880
|
+
"organizationId",
|
|
47881
|
+
"entityId",
|
|
47882
|
+
"toNumber",
|
|
47883
|
+
"recordName",
|
|
47884
|
+
"workspace",
|
|
47885
|
+
"engagementId"
|
|
47886
|
+
],
|
|
47887
|
+
"type": "object"
|
|
47888
|
+
},
|
|
47889
|
+
"RecruitingActiveCallResult": {
|
|
47890
|
+
"properties": {
|
|
47891
|
+
"data": {
|
|
47892
|
+
"$ref": "#/components/schemas/RecruitingActiveCall"
|
|
47893
|
+
}
|
|
47894
|
+
},
|
|
47895
|
+
"required": [
|
|
47896
|
+
"data"
|
|
47897
|
+
],
|
|
47898
|
+
"type": "object"
|
|
47899
|
+
},
|
|
47900
|
+
"RecruitingEngagement": {
|
|
47901
|
+
"properties": {
|
|
47902
|
+
"engagementId": {
|
|
47903
|
+
"type": "string"
|
|
47904
|
+
},
|
|
47905
|
+
"engagementName": {
|
|
47906
|
+
"type": "string"
|
|
47907
|
+
},
|
|
47908
|
+
"kind": {
|
|
47909
|
+
"type": "string"
|
|
47910
|
+
},
|
|
47911
|
+
"role": {
|
|
47912
|
+
"type": "string"
|
|
47913
|
+
},
|
|
47914
|
+
"workspace": {
|
|
47915
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
47916
|
+
}
|
|
47917
|
+
},
|
|
47918
|
+
"required": [
|
|
47919
|
+
"engagementId",
|
|
47920
|
+
"engagementName",
|
|
47921
|
+
"kind",
|
|
47922
|
+
"role",
|
|
47923
|
+
"workspace"
|
|
47924
|
+
],
|
|
47925
|
+
"type": "object"
|
|
47926
|
+
},
|
|
47927
|
+
"RecruitingEngagementList": {
|
|
47928
|
+
"properties": {
|
|
47929
|
+
"data": {
|
|
47930
|
+
"items": {
|
|
47931
|
+
"$ref": "#/components/schemas/RecruitingEngagement"
|
|
47932
|
+
},
|
|
47933
|
+
"type": "array"
|
|
47934
|
+
}
|
|
47935
|
+
},
|
|
47936
|
+
"required": [
|
|
47937
|
+
"data"
|
|
47938
|
+
],
|
|
47939
|
+
"type": "object"
|
|
47940
|
+
},
|
|
47941
|
+
"RecruitingLists": {
|
|
47942
|
+
"properties": {
|
|
47943
|
+
"items": {
|
|
47944
|
+
"items": {
|
|
47945
|
+
"allOf": [
|
|
47946
|
+
{
|
|
47947
|
+
"$ref": "#/components/schemas/CrmList"
|
|
47948
|
+
},
|
|
47949
|
+
{
|
|
47950
|
+
"properties": {
|
|
47951
|
+
"engagementId": {
|
|
47952
|
+
"type": "string"
|
|
47953
|
+
},
|
|
47954
|
+
"workspace": {
|
|
47955
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
47956
|
+
}
|
|
47957
|
+
},
|
|
47958
|
+
"required": [
|
|
47959
|
+
"workspace",
|
|
47960
|
+
"engagementId"
|
|
47961
|
+
],
|
|
47962
|
+
"type": "object"
|
|
47963
|
+
}
|
|
47964
|
+
]
|
|
47965
|
+
},
|
|
47966
|
+
"type": "array"
|
|
47967
|
+
},
|
|
47968
|
+
"unavailable": {
|
|
47969
|
+
"description": "Customers whose read failed; their rows are missing. Retry later.",
|
|
47970
|
+
"items": {
|
|
47971
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
47972
|
+
},
|
|
47973
|
+
"type": "array"
|
|
47974
|
+
}
|
|
47975
|
+
},
|
|
47976
|
+
"required": [
|
|
47977
|
+
"items",
|
|
47978
|
+
"unavailable"
|
|
47979
|
+
],
|
|
47980
|
+
"type": "object"
|
|
47981
|
+
},
|
|
47982
|
+
"RecruitingListsResult": {
|
|
47983
|
+
"properties": {
|
|
47984
|
+
"data": {
|
|
47985
|
+
"$ref": "#/components/schemas/RecruitingLists"
|
|
47986
|
+
}
|
|
47987
|
+
},
|
|
47988
|
+
"required": [
|
|
47989
|
+
"data"
|
|
47990
|
+
],
|
|
47991
|
+
"type": "object"
|
|
47992
|
+
},
|
|
47993
|
+
"RecruitingPeople": {
|
|
47994
|
+
"properties": {
|
|
47995
|
+
"items": {
|
|
47996
|
+
"items": {
|
|
47997
|
+
"allOf": [
|
|
47998
|
+
{
|
|
47999
|
+
"$ref": "#/components/schemas/CrmListMember"
|
|
48000
|
+
},
|
|
48001
|
+
{
|
|
48002
|
+
"properties": {
|
|
48003
|
+
"engagementId": {
|
|
48004
|
+
"type": "string"
|
|
48005
|
+
},
|
|
48006
|
+
"workspace": {
|
|
48007
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48008
|
+
}
|
|
48009
|
+
},
|
|
48010
|
+
"required": [
|
|
48011
|
+
"workspace",
|
|
48012
|
+
"engagementId"
|
|
48013
|
+
],
|
|
48014
|
+
"type": "object"
|
|
48015
|
+
}
|
|
48016
|
+
]
|
|
48017
|
+
},
|
|
48018
|
+
"type": "array"
|
|
48019
|
+
},
|
|
48020
|
+
"unavailable": {
|
|
48021
|
+
"description": "Customers whose read failed; their rows are missing. Retry later.",
|
|
48022
|
+
"items": {
|
|
48023
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48024
|
+
},
|
|
48025
|
+
"type": "array"
|
|
48026
|
+
}
|
|
48027
|
+
},
|
|
48028
|
+
"required": [
|
|
48029
|
+
"items",
|
|
48030
|
+
"unavailable"
|
|
48031
|
+
],
|
|
48032
|
+
"type": "object"
|
|
48033
|
+
},
|
|
48034
|
+
"RecruitingPeopleResult": {
|
|
48035
|
+
"properties": {
|
|
48036
|
+
"data": {
|
|
48037
|
+
"$ref": "#/components/schemas/RecruitingPeople"
|
|
48038
|
+
}
|
|
48039
|
+
},
|
|
48040
|
+
"required": [
|
|
48041
|
+
"data"
|
|
48042
|
+
],
|
|
48043
|
+
"type": "object"
|
|
48044
|
+
},
|
|
48045
|
+
"RecruitingPeopleSearch": {
|
|
48046
|
+
"properties": {
|
|
48047
|
+
"items": {
|
|
48048
|
+
"items": {
|
|
48049
|
+
"allOf": [
|
|
48050
|
+
{
|
|
48051
|
+
"$ref": "#/components/schemas/CrmMentionRecord"
|
|
48052
|
+
},
|
|
48053
|
+
{
|
|
48054
|
+
"properties": {
|
|
48055
|
+
"engagementId": {
|
|
48056
|
+
"type": "string"
|
|
48057
|
+
},
|
|
48058
|
+
"workspace": {
|
|
48059
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48060
|
+
}
|
|
48061
|
+
},
|
|
48062
|
+
"required": [
|
|
48063
|
+
"workspace",
|
|
48064
|
+
"engagementId"
|
|
48065
|
+
],
|
|
48066
|
+
"type": "object"
|
|
48067
|
+
}
|
|
48068
|
+
]
|
|
48069
|
+
},
|
|
48070
|
+
"type": "array"
|
|
48071
|
+
},
|
|
48072
|
+
"unavailable": {
|
|
48073
|
+
"description": "Customers whose read failed; their rows are missing. Retry later.",
|
|
48074
|
+
"items": {
|
|
48075
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48076
|
+
},
|
|
48077
|
+
"type": "array"
|
|
48078
|
+
}
|
|
48079
|
+
},
|
|
48080
|
+
"required": [
|
|
48081
|
+
"items",
|
|
48082
|
+
"unavailable"
|
|
48083
|
+
],
|
|
48084
|
+
"type": "object"
|
|
48085
|
+
},
|
|
48086
|
+
"RecruitingPeopleSearchResult": {
|
|
48087
|
+
"properties": {
|
|
48088
|
+
"data": {
|
|
48089
|
+
"$ref": "#/components/schemas/RecruitingPeopleSearch"
|
|
48090
|
+
}
|
|
48091
|
+
},
|
|
48092
|
+
"required": [
|
|
48093
|
+
"data"
|
|
48094
|
+
],
|
|
48095
|
+
"type": "object"
|
|
48096
|
+
},
|
|
48097
|
+
"RecruitingQueue": {
|
|
48098
|
+
"properties": {
|
|
48099
|
+
"meetings": {
|
|
48100
|
+
"items": {
|
|
48101
|
+
"allOf": [
|
|
48102
|
+
{
|
|
48103
|
+
"$ref": "#/components/schemas/CrmWorkspaceMeeting"
|
|
48104
|
+
},
|
|
48105
|
+
{
|
|
48106
|
+
"properties": {
|
|
48107
|
+
"engagementId": {
|
|
48108
|
+
"type": "string"
|
|
48109
|
+
},
|
|
48110
|
+
"workspace": {
|
|
48111
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48112
|
+
}
|
|
48113
|
+
},
|
|
48114
|
+
"required": [
|
|
48115
|
+
"workspace",
|
|
48116
|
+
"engagementId"
|
|
48117
|
+
],
|
|
48118
|
+
"type": "object"
|
|
48119
|
+
}
|
|
48120
|
+
]
|
|
48121
|
+
},
|
|
48122
|
+
"type": "array"
|
|
48123
|
+
},
|
|
48124
|
+
"tasks": {
|
|
48125
|
+
"items": {
|
|
48126
|
+
"allOf": [
|
|
48127
|
+
{
|
|
48128
|
+
"$ref": "#/components/schemas/CrmWorkspaceTask"
|
|
48129
|
+
},
|
|
48130
|
+
{
|
|
48131
|
+
"properties": {
|
|
48132
|
+
"engagementId": {
|
|
48133
|
+
"type": "string"
|
|
48134
|
+
},
|
|
48135
|
+
"workspace": {
|
|
48136
|
+
"$ref": "#/components/schemas/RecruitingWorkspace"
|
|
48137
|
+
}
|
|
48138
|
+
},
|
|
48139
|
+
"required": [
|
|
48140
|
+
"workspace",
|
|
48141
|
+
"engagementId"
|
|
48142
|
+
],
|
|
48143
|
+
"type": "object"
|
|
48144
|
+
}
|
|
48145
|
+
]
|
|
48146
|
+
},
|
|
48147
|
+
"type": "array"
|
|
48148
|
+
}
|
|
48149
|
+
},
|
|
48150
|
+
"required": [
|
|
48151
|
+
"tasks",
|
|
48152
|
+
"meetings"
|
|
48153
|
+
],
|
|
48154
|
+
"type": "object"
|
|
48155
|
+
},
|
|
48156
|
+
"RecruitingQueueResult": {
|
|
48157
|
+
"properties": {
|
|
48158
|
+
"data": {
|
|
48159
|
+
"$ref": "#/components/schemas/RecruitingQueue"
|
|
48160
|
+
}
|
|
48161
|
+
},
|
|
48162
|
+
"required": [
|
|
48163
|
+
"data"
|
|
48164
|
+
],
|
|
48165
|
+
"type": "object"
|
|
48166
|
+
},
|
|
48167
|
+
"RecruitingWorkspace": {
|
|
48168
|
+
"properties": {
|
|
48169
|
+
"id": {
|
|
48170
|
+
"type": "string"
|
|
48171
|
+
},
|
|
48172
|
+
"logo": {
|
|
48173
|
+
"nullable": true,
|
|
48174
|
+
"type": "string"
|
|
48175
|
+
},
|
|
48176
|
+
"name": {
|
|
48177
|
+
"type": "string"
|
|
48178
|
+
},
|
|
48179
|
+
"slug": {
|
|
48180
|
+
"nullable": true,
|
|
48181
|
+
"type": "string"
|
|
48182
|
+
}
|
|
48183
|
+
},
|
|
48184
|
+
"required": [
|
|
48185
|
+
"id",
|
|
48186
|
+
"name",
|
|
48187
|
+
"slug",
|
|
48188
|
+
"logo"
|
|
48189
|
+
],
|
|
48190
|
+
"type": "object"
|
|
48191
|
+
},
|
|
47728
48192
|
"RelatedResponse": {
|
|
47729
48193
|
"properties": {
|
|
47730
48194
|
"data": {
|
|
@@ -51319,6 +51783,33 @@
|
|
|
51319
51783
|
"lastRun": {
|
|
51320
51784
|
"$ref": "#/components/schemas/StudioJobRun"
|
|
51321
51785
|
},
|
|
51786
|
+
"limits": {
|
|
51787
|
+
"description": "What one run of this job may use, as things stand now.",
|
|
51788
|
+
"properties": {
|
|
51789
|
+
"maxRows": {
|
|
51790
|
+
"description": "Most rows one run's result may hold.",
|
|
51791
|
+
"type": "number"
|
|
51792
|
+
},
|
|
51793
|
+
"runsOn": {
|
|
51794
|
+
"description": "`dedicated`: each run gets capacity of its own, with more memory (a `heavy` job, when available). `shared`: runs on the shared capacity.",
|
|
51795
|
+
"enum": [
|
|
51796
|
+
"dedicated",
|
|
51797
|
+
"shared"
|
|
51798
|
+
],
|
|
51799
|
+
"type": "string"
|
|
51800
|
+
},
|
|
51801
|
+
"timeoutSeconds": {
|
|
51802
|
+
"description": "How long one run may take before it is stopped.",
|
|
51803
|
+
"type": "number"
|
|
51804
|
+
}
|
|
51805
|
+
},
|
|
51806
|
+
"required": [
|
|
51807
|
+
"timeoutSeconds",
|
|
51808
|
+
"maxRows",
|
|
51809
|
+
"runsOn"
|
|
51810
|
+
],
|
|
51811
|
+
"type": "object"
|
|
51812
|
+
},
|
|
51322
51813
|
"name": {
|
|
51323
51814
|
"type": "string"
|
|
51324
51815
|
},
|
|
@@ -51339,6 +51830,10 @@
|
|
|
51339
51830
|
],
|
|
51340
51831
|
"type": "object"
|
|
51341
51832
|
},
|
|
51833
|
+
"perState": {
|
|
51834
|
+
"description": "Heavy only: per state, joined. Not for national totals.",
|
|
51835
|
+
"type": "boolean"
|
|
51836
|
+
},
|
|
51342
51837
|
"schedule": {
|
|
51343
51838
|
"enum": [
|
|
51344
51839
|
"manual",
|
|
@@ -51785,6 +52280,10 @@
|
|
|
51785
52280
|
],
|
|
51786
52281
|
"type": "object"
|
|
51787
52282
|
},
|
|
52283
|
+
"perState": {
|
|
52284
|
+
"description": "Heavy only: per state, joined. Not for national totals.",
|
|
52285
|
+
"type": "boolean"
|
|
52286
|
+
},
|
|
51788
52287
|
"schedule": {
|
|
51789
52288
|
"description": "`manual` — runs only when asked. `daily` — about every 24 hours. `weekly` — every 7 days. Counted from when the job is saved.",
|
|
51790
52289
|
"enum": [
|
|
@@ -52049,12 +52548,45 @@
|
|
|
52049
52548
|
"finishedAt": {
|
|
52050
52549
|
"type": "string"
|
|
52051
52550
|
},
|
|
52551
|
+
"free": {
|
|
52552
|
+
"description": "True: a monitor's run (a job with alert rules) that matched none, which is not charged.",
|
|
52553
|
+
"type": "boolean"
|
|
52554
|
+
},
|
|
52555
|
+
"limits": {
|
|
52556
|
+
"description": "The limits this run had.",
|
|
52557
|
+
"properties": {
|
|
52558
|
+
"maxRows": {
|
|
52559
|
+
"description": "Most rows one run's result may hold.",
|
|
52560
|
+
"type": "number"
|
|
52561
|
+
},
|
|
52562
|
+
"timeoutSeconds": {
|
|
52563
|
+
"description": "How long one run may take before it is stopped.",
|
|
52564
|
+
"type": "number"
|
|
52565
|
+
}
|
|
52566
|
+
},
|
|
52567
|
+
"required": [
|
|
52568
|
+
"timeoutSeconds",
|
|
52569
|
+
"maxRows"
|
|
52570
|
+
],
|
|
52571
|
+
"type": "object"
|
|
52572
|
+
},
|
|
52573
|
+
"perState": {
|
|
52574
|
+
"description": "True: the SQL ran once for each state (`perState`).",
|
|
52575
|
+
"type": "boolean"
|
|
52576
|
+
},
|
|
52052
52577
|
"rowCount": {
|
|
52053
52578
|
"type": "number"
|
|
52054
52579
|
},
|
|
52055
52580
|
"runId": {
|
|
52056
52581
|
"type": "string"
|
|
52057
52582
|
},
|
|
52583
|
+
"runsOn": {
|
|
52584
|
+
"description": "`dedicated`: ran on capacity of its own, with more memory than an ordinary run. Absent: the shared capacity.",
|
|
52585
|
+
"enum": [
|
|
52586
|
+
"dedicated"
|
|
52587
|
+
],
|
|
52588
|
+
"type": "string"
|
|
52589
|
+
},
|
|
52058
52590
|
"size": {
|
|
52059
52591
|
"description": "`heavy`: ran with a heavy job's limits and price.",
|
|
52060
52592
|
"enum": [
|
|
@@ -52065,6 +52597,56 @@
|
|
|
52065
52597
|
"startedAt": {
|
|
52066
52598
|
"type": "string"
|
|
52067
52599
|
},
|
|
52600
|
+
"states": {
|
|
52601
|
+
"description": "A per-state run: how each state went.",
|
|
52602
|
+
"items": {
|
|
52603
|
+
"properties": {
|
|
52604
|
+
"attempts": {
|
|
52605
|
+
"description": "2 when the first try failed and it was tried again.",
|
|
52606
|
+
"type": "number"
|
|
52607
|
+
},
|
|
52608
|
+
"elapsedMs": {
|
|
52609
|
+
"type": "number"
|
|
52610
|
+
},
|
|
52611
|
+
"error": {
|
|
52612
|
+
"properties": {
|
|
52613
|
+
"code": {
|
|
52614
|
+
"type": "string"
|
|
52615
|
+
},
|
|
52616
|
+
"message": {
|
|
52617
|
+
"type": "string"
|
|
52618
|
+
}
|
|
52619
|
+
},
|
|
52620
|
+
"required": [
|
|
52621
|
+
"code",
|
|
52622
|
+
"message"
|
|
52623
|
+
],
|
|
52624
|
+
"type": "object"
|
|
52625
|
+
},
|
|
52626
|
+
"rowCount": {
|
|
52627
|
+
"type": "number"
|
|
52628
|
+
},
|
|
52629
|
+
"state": {
|
|
52630
|
+
"description": "Two-letter state code; `other` for records whose state is not known.",
|
|
52631
|
+
"type": "string"
|
|
52632
|
+
},
|
|
52633
|
+
"status": {
|
|
52634
|
+
"enum": [
|
|
52635
|
+
"succeeded",
|
|
52636
|
+
"failed"
|
|
52637
|
+
],
|
|
52638
|
+
"type": "string"
|
|
52639
|
+
}
|
|
52640
|
+
},
|
|
52641
|
+
"required": [
|
|
52642
|
+
"state",
|
|
52643
|
+
"status",
|
|
52644
|
+
"attempts"
|
|
52645
|
+
],
|
|
52646
|
+
"type": "object"
|
|
52647
|
+
},
|
|
52648
|
+
"type": "array"
|
|
52649
|
+
},
|
|
52068
52650
|
"status": {
|
|
52069
52651
|
"enum": [
|
|
52070
52652
|
"running",
|
|
@@ -52168,6 +52750,10 @@
|
|
|
52168
52750
|
],
|
|
52169
52751
|
"type": "object"
|
|
52170
52752
|
},
|
|
52753
|
+
"perState": {
|
|
52754
|
+
"description": "Heavy only: per state, joined. Not for national totals.",
|
|
52755
|
+
"type": "boolean"
|
|
52756
|
+
},
|
|
52171
52757
|
"size": {
|
|
52172
52758
|
"description": "`heavy`: more time and rows per run (catalog `limits.heavyJobs`), if enabled for the organization.",
|
|
52173
52759
|
"enum": [
|
|
@@ -57649,7 +58235,7 @@
|
|
|
57649
58235
|
"info": {
|
|
57650
58236
|
"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.",
|
|
57651
58237
|
"title": "ModelMatch API",
|
|
57652
|
-
"version": "3.
|
|
58238
|
+
"version": "3.208.0"
|
|
57653
58239
|
},
|
|
57654
58240
|
"openapi": "3.1.0",
|
|
57655
58241
|
"paths": {
|
|
@@ -80459,71 +81045,1004 @@
|
|
|
80459
81045
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
80460
81046
|
}
|
|
80461
81047
|
},
|
|
80462
|
-
"summary": "Find an existing CRM record by NMLS id",
|
|
81048
|
+
"summary": "Find an existing CRM record by NMLS id",
|
|
81049
|
+
"tags": [
|
|
81050
|
+
"CRM"
|
|
81051
|
+
]
|
|
81052
|
+
}
|
|
81053
|
+
},
|
|
81054
|
+
"/v1/crm/records/connections": {
|
|
81055
|
+
"post": {
|
|
81056
|
+
"operationId": "getCrmRecordConnections",
|
|
81057
|
+
"requestBody": {
|
|
81058
|
+
"content": {
|
|
81059
|
+
"application/json": {
|
|
81060
|
+
"schema": {
|
|
81061
|
+
"properties": {
|
|
81062
|
+
"branchName": {
|
|
81063
|
+
"type": "string"
|
|
81064
|
+
},
|
|
81065
|
+
"branchNmlsId": {
|
|
81066
|
+
"type": "string"
|
|
81067
|
+
},
|
|
81068
|
+
"companyName": {
|
|
81069
|
+
"type": "string"
|
|
81070
|
+
},
|
|
81071
|
+
"companyNmlsId": {
|
|
81072
|
+
"type": "string"
|
|
81073
|
+
},
|
|
81074
|
+
"entityId": {
|
|
81075
|
+
"minLength": 1,
|
|
81076
|
+
"type": "string"
|
|
81077
|
+
},
|
|
81078
|
+
"entityType": {
|
|
81079
|
+
"$ref": "#/components/schemas/CrmEntityType"
|
|
81080
|
+
},
|
|
81081
|
+
"officeKey": {
|
|
81082
|
+
"type": "string"
|
|
81083
|
+
},
|
|
81084
|
+
"officeName": {
|
|
81085
|
+
"type": "string"
|
|
81086
|
+
},
|
|
81087
|
+
"partnerEntityIds": {
|
|
81088
|
+
"items": {
|
|
81089
|
+
"type": "string"
|
|
81090
|
+
},
|
|
81091
|
+
"type": "array"
|
|
81092
|
+
}
|
|
81093
|
+
},
|
|
81094
|
+
"required": [
|
|
81095
|
+
"entityId",
|
|
81096
|
+
"entityType"
|
|
81097
|
+
],
|
|
81098
|
+
"type": "object"
|
|
81099
|
+
}
|
|
81100
|
+
}
|
|
81101
|
+
}
|
|
81102
|
+
},
|
|
81103
|
+
"responses": {
|
|
81104
|
+
"200": {
|
|
81105
|
+
"content": {
|
|
81106
|
+
"application/json": {
|
|
81107
|
+
"schema": {
|
|
81108
|
+
"$ref": "#/components/schemas/CrmRecordConnections"
|
|
81109
|
+
}
|
|
81110
|
+
}
|
|
81111
|
+
},
|
|
81112
|
+
"description": "In-CRM partner ids + colleagues tagged with their list names."
|
|
81113
|
+
},
|
|
81114
|
+
"400": {
|
|
81115
|
+
"content": {
|
|
81116
|
+
"application/json": {
|
|
81117
|
+
"schema": {
|
|
81118
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81119
|
+
}
|
|
81120
|
+
}
|
|
81121
|
+
},
|
|
81122
|
+
"description": "Validation error"
|
|
81123
|
+
},
|
|
81124
|
+
"401": {
|
|
81125
|
+
"content": {
|
|
81126
|
+
"application/json": {
|
|
81127
|
+
"schema": {
|
|
81128
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81129
|
+
}
|
|
81130
|
+
}
|
|
81131
|
+
},
|
|
81132
|
+
"description": "Unauthorized"
|
|
81133
|
+
},
|
|
81134
|
+
"403": {
|
|
81135
|
+
"content": {
|
|
81136
|
+
"application/json": {
|
|
81137
|
+
"schema": {
|
|
81138
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81139
|
+
}
|
|
81140
|
+
}
|
|
81141
|
+
},
|
|
81142
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81143
|
+
},
|
|
81144
|
+
"404": {
|
|
81145
|
+
"content": {
|
|
81146
|
+
"application/json": {
|
|
81147
|
+
"schema": {
|
|
81148
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81149
|
+
}
|
|
81150
|
+
}
|
|
81151
|
+
},
|
|
81152
|
+
"description": "Not found"
|
|
81153
|
+
},
|
|
81154
|
+
"413": {
|
|
81155
|
+
"content": {
|
|
81156
|
+
"application/json": {
|
|
81157
|
+
"schema": {
|
|
81158
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81159
|
+
}
|
|
81160
|
+
}
|
|
81161
|
+
},
|
|
81162
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81163
|
+
},
|
|
81164
|
+
"503": {
|
|
81165
|
+
"content": {
|
|
81166
|
+
"application/json": {
|
|
81167
|
+
"schema": {
|
|
81168
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81169
|
+
}
|
|
81170
|
+
}
|
|
81171
|
+
},
|
|
81172
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81173
|
+
}
|
|
81174
|
+
},
|
|
81175
|
+
"summary": "Relationship cross-reference for a record (in-CRM partners + colleagues)",
|
|
81176
|
+
"tags": [
|
|
81177
|
+
"CRM"
|
|
81178
|
+
]
|
|
81179
|
+
}
|
|
81180
|
+
},
|
|
81181
|
+
"/v1/crm/records/create": {
|
|
81182
|
+
"post": {
|
|
81183
|
+
"operationId": "createCrmManualRecord",
|
|
81184
|
+
"requestBody": {
|
|
81185
|
+
"content": {
|
|
81186
|
+
"application/json": {
|
|
81187
|
+
"schema": {
|
|
81188
|
+
"properties": {
|
|
81189
|
+
"contacts": {
|
|
81190
|
+
"items": {
|
|
81191
|
+
"$ref": "#/components/schemas/CrmContactSeed"
|
|
81192
|
+
},
|
|
81193
|
+
"maxItems": 30,
|
|
81194
|
+
"type": "array"
|
|
81195
|
+
},
|
|
81196
|
+
"customValues": {
|
|
81197
|
+
"additionalProperties": {
|
|
81198
|
+
"$ref": "#/components/schemas/CrmCustomValue"
|
|
81199
|
+
},
|
|
81200
|
+
"type": "object"
|
|
81201
|
+
},
|
|
81202
|
+
"display": {
|
|
81203
|
+
"$ref": "#/components/schemas/CrmDisplay"
|
|
81204
|
+
},
|
|
81205
|
+
"entityType": {
|
|
81206
|
+
"$ref": "#/components/schemas/CrmEntityType"
|
|
81207
|
+
},
|
|
81208
|
+
"listId": {
|
|
81209
|
+
"type": "string"
|
|
81210
|
+
},
|
|
81211
|
+
"overrides": {
|
|
81212
|
+
"properties": {
|
|
81213
|
+
"city": {
|
|
81214
|
+
"type": "string"
|
|
81215
|
+
},
|
|
81216
|
+
"company": {
|
|
81217
|
+
"type": "string"
|
|
81218
|
+
},
|
|
81219
|
+
"companyNmlsId": {
|
|
81220
|
+
"type": "string"
|
|
81221
|
+
},
|
|
81222
|
+
"companyType": {
|
|
81223
|
+
"type": "string"
|
|
81224
|
+
},
|
|
81225
|
+
"firstName": {
|
|
81226
|
+
"type": "string"
|
|
81227
|
+
},
|
|
81228
|
+
"lastName": {
|
|
81229
|
+
"type": "string"
|
|
81230
|
+
},
|
|
81231
|
+
"location": {
|
|
81232
|
+
"type": "string"
|
|
81233
|
+
},
|
|
81234
|
+
"notes": {
|
|
81235
|
+
"type": "string"
|
|
81236
|
+
},
|
|
81237
|
+
"office": {
|
|
81238
|
+
"type": "string"
|
|
81239
|
+
},
|
|
81240
|
+
"state": {
|
|
81241
|
+
"type": "string"
|
|
81242
|
+
},
|
|
81243
|
+
"status": {
|
|
81244
|
+
"type": "string"
|
|
81245
|
+
},
|
|
81246
|
+
"title": {
|
|
81247
|
+
"type": "string"
|
|
81248
|
+
},
|
|
81249
|
+
"zip": {
|
|
81250
|
+
"type": "string"
|
|
81251
|
+
}
|
|
81252
|
+
},
|
|
81253
|
+
"type": "object"
|
|
81254
|
+
},
|
|
81255
|
+
"ownerUserId": {
|
|
81256
|
+
"type": "string"
|
|
81257
|
+
}
|
|
81258
|
+
},
|
|
81259
|
+
"required": [
|
|
81260
|
+
"entityType",
|
|
81261
|
+
"display"
|
|
81262
|
+
],
|
|
81263
|
+
"type": "object"
|
|
81264
|
+
}
|
|
81265
|
+
}
|
|
81266
|
+
}
|
|
81267
|
+
},
|
|
81268
|
+
"responses": {
|
|
81269
|
+
"201": {
|
|
81270
|
+
"content": {
|
|
81271
|
+
"application/json": {
|
|
81272
|
+
"schema": {
|
|
81273
|
+
"$ref": "#/components/schemas/CrmManualRecordResult"
|
|
81274
|
+
}
|
|
81275
|
+
}
|
|
81276
|
+
},
|
|
81277
|
+
"description": "The new record's id + whether it joined the given list."
|
|
81278
|
+
},
|
|
81279
|
+
"400": {
|
|
81280
|
+
"content": {
|
|
81281
|
+
"application/json": {
|
|
81282
|
+
"schema": {
|
|
81283
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81284
|
+
}
|
|
81285
|
+
}
|
|
81286
|
+
},
|
|
81287
|
+
"description": "Validation error"
|
|
81288
|
+
},
|
|
81289
|
+
"401": {
|
|
81290
|
+
"content": {
|
|
81291
|
+
"application/json": {
|
|
81292
|
+
"schema": {
|
|
81293
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81294
|
+
}
|
|
81295
|
+
}
|
|
81296
|
+
},
|
|
81297
|
+
"description": "Unauthorized"
|
|
81298
|
+
},
|
|
81299
|
+
"403": {
|
|
81300
|
+
"content": {
|
|
81301
|
+
"application/json": {
|
|
81302
|
+
"schema": {
|
|
81303
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81304
|
+
}
|
|
81305
|
+
}
|
|
81306
|
+
},
|
|
81307
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81308
|
+
},
|
|
81309
|
+
"404": {
|
|
81310
|
+
"content": {
|
|
81311
|
+
"application/json": {
|
|
81312
|
+
"schema": {
|
|
81313
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81314
|
+
}
|
|
81315
|
+
}
|
|
81316
|
+
},
|
|
81317
|
+
"description": "Not found"
|
|
81318
|
+
},
|
|
81319
|
+
"413": {
|
|
81320
|
+
"content": {
|
|
81321
|
+
"application/json": {
|
|
81322
|
+
"schema": {
|
|
81323
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81324
|
+
}
|
|
81325
|
+
}
|
|
81326
|
+
},
|
|
81327
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81328
|
+
},
|
|
81329
|
+
"503": {
|
|
81330
|
+
"content": {
|
|
81331
|
+
"application/json": {
|
|
81332
|
+
"schema": {
|
|
81333
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81334
|
+
}
|
|
81335
|
+
}
|
|
81336
|
+
},
|
|
81337
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81338
|
+
}
|
|
81339
|
+
},
|
|
81340
|
+
"summary": "Create a manual (unmatched) CRM record",
|
|
81341
|
+
"tags": [
|
|
81342
|
+
"CRM"
|
|
81343
|
+
]
|
|
81344
|
+
}
|
|
81345
|
+
},
|
|
81346
|
+
"/v1/crm/records/decline-mi-update": {
|
|
81347
|
+
"post": {
|
|
81348
|
+
"operationId": "declineCrmMiUpdate",
|
|
81349
|
+
"requestBody": {
|
|
81350
|
+
"content": {
|
|
81351
|
+
"application/json": {
|
|
81352
|
+
"schema": {
|
|
81353
|
+
"properties": {
|
|
81354
|
+
"entityId": {
|
|
81355
|
+
"type": "string"
|
|
81356
|
+
},
|
|
81357
|
+
"entityType": {
|
|
81358
|
+
"$ref": "#/components/schemas/CrmEntityType"
|
|
81359
|
+
},
|
|
81360
|
+
"fields": {
|
|
81361
|
+
"description": "The diverging override fields to keep, e.g. `[\"company\", \"location\"]`. Batched because the review dialog can select several rows at once. Only the fields the server still sees diverging are suppressed.",
|
|
81362
|
+
"items": {
|
|
81363
|
+
"maxLength": 64,
|
|
81364
|
+
"minLength": 1,
|
|
81365
|
+
"type": "string"
|
|
81366
|
+
},
|
|
81367
|
+
"maxItems": 16,
|
|
81368
|
+
"minItems": 1,
|
|
81369
|
+
"type": "array"
|
|
81370
|
+
}
|
|
81371
|
+
},
|
|
81372
|
+
"required": [
|
|
81373
|
+
"entityId",
|
|
81374
|
+
"entityType",
|
|
81375
|
+
"fields"
|
|
81376
|
+
],
|
|
81377
|
+
"type": "object"
|
|
81378
|
+
}
|
|
81379
|
+
}
|
|
81380
|
+
}
|
|
81381
|
+
},
|
|
81382
|
+
"responses": {
|
|
81383
|
+
"200": {
|
|
81384
|
+
"content": {
|
|
81385
|
+
"application/json": {
|
|
81386
|
+
"schema": {
|
|
81387
|
+
"$ref": "#/components/schemas/CrmDeclineMiUpdateResult"
|
|
81388
|
+
}
|
|
81389
|
+
}
|
|
81390
|
+
},
|
|
81391
|
+
"description": "The subset of the requested fields that actually diverged and are now suppressed. A field absent from this list no longer disagrees with MI, so there was nothing to decline."
|
|
81392
|
+
},
|
|
81393
|
+
"400": {
|
|
81394
|
+
"content": {
|
|
81395
|
+
"application/json": {
|
|
81396
|
+
"schema": {
|
|
81397
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81398
|
+
}
|
|
81399
|
+
}
|
|
81400
|
+
},
|
|
81401
|
+
"description": "Validation error"
|
|
81402
|
+
},
|
|
81403
|
+
"401": {
|
|
81404
|
+
"content": {
|
|
81405
|
+
"application/json": {
|
|
81406
|
+
"schema": {
|
|
81407
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81408
|
+
}
|
|
81409
|
+
}
|
|
81410
|
+
},
|
|
81411
|
+
"description": "Unauthorized"
|
|
81412
|
+
},
|
|
81413
|
+
"403": {
|
|
81414
|
+
"content": {
|
|
81415
|
+
"application/json": {
|
|
81416
|
+
"schema": {
|
|
81417
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81418
|
+
}
|
|
81419
|
+
}
|
|
81420
|
+
},
|
|
81421
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81422
|
+
},
|
|
81423
|
+
"404": {
|
|
81424
|
+
"content": {
|
|
81425
|
+
"application/json": {
|
|
81426
|
+
"schema": {
|
|
81427
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81428
|
+
}
|
|
81429
|
+
}
|
|
81430
|
+
},
|
|
81431
|
+
"description": "Not found"
|
|
81432
|
+
},
|
|
81433
|
+
"413": {
|
|
81434
|
+
"content": {
|
|
81435
|
+
"application/json": {
|
|
81436
|
+
"schema": {
|
|
81437
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81438
|
+
}
|
|
81439
|
+
}
|
|
81440
|
+
},
|
|
81441
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81442
|
+
},
|
|
81443
|
+
"503": {
|
|
81444
|
+
"content": {
|
|
81445
|
+
"application/json": {
|
|
81446
|
+
"schema": {
|
|
81447
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81448
|
+
}
|
|
81449
|
+
}
|
|
81450
|
+
},
|
|
81451
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81452
|
+
}
|
|
81453
|
+
},
|
|
81454
|
+
"summary": "Keep the pinned values — suppress divergence proposals",
|
|
81455
|
+
"tags": [
|
|
81456
|
+
"CRM"
|
|
81457
|
+
]
|
|
81458
|
+
}
|
|
81459
|
+
},
|
|
81460
|
+
"/v1/crm/records/delete": {
|
|
81461
|
+
"post": {
|
|
81462
|
+
"operationId": "deleteCrmRecords",
|
|
81463
|
+
"requestBody": {
|
|
81464
|
+
"content": {
|
|
81465
|
+
"application/json": {
|
|
81466
|
+
"schema": {
|
|
81467
|
+
"properties": {
|
|
81468
|
+
"entityIds": {
|
|
81469
|
+
"items": {
|
|
81470
|
+
"type": "string"
|
|
81471
|
+
},
|
|
81472
|
+
"minItems": 1,
|
|
81473
|
+
"type": "array"
|
|
81474
|
+
}
|
|
81475
|
+
},
|
|
81476
|
+
"required": [
|
|
81477
|
+
"entityIds"
|
|
81478
|
+
],
|
|
81479
|
+
"type": "object"
|
|
81480
|
+
}
|
|
81481
|
+
}
|
|
81482
|
+
}
|
|
81483
|
+
},
|
|
81484
|
+
"responses": {
|
|
81485
|
+
"200": {
|
|
81486
|
+
"content": {
|
|
81487
|
+
"application/json": {
|
|
81488
|
+
"schema": {
|
|
81489
|
+
"$ref": "#/components/schemas/CrmDeleteRecordsResult"
|
|
81490
|
+
}
|
|
81491
|
+
}
|
|
81492
|
+
},
|
|
81493
|
+
"description": "Ids actually removed vs. skipped (not owned / not found)."
|
|
81494
|
+
},
|
|
81495
|
+
"400": {
|
|
81496
|
+
"content": {
|
|
81497
|
+
"application/json": {
|
|
81498
|
+
"schema": {
|
|
81499
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81500
|
+
}
|
|
81501
|
+
}
|
|
81502
|
+
},
|
|
81503
|
+
"description": "Validation error"
|
|
81504
|
+
},
|
|
81505
|
+
"401": {
|
|
81506
|
+
"content": {
|
|
81507
|
+
"application/json": {
|
|
81508
|
+
"schema": {
|
|
81509
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81510
|
+
}
|
|
81511
|
+
}
|
|
81512
|
+
},
|
|
81513
|
+
"description": "Unauthorized"
|
|
81514
|
+
},
|
|
81515
|
+
"403": {
|
|
81516
|
+
"content": {
|
|
81517
|
+
"application/json": {
|
|
81518
|
+
"schema": {
|
|
81519
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81520
|
+
}
|
|
81521
|
+
}
|
|
81522
|
+
},
|
|
81523
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81524
|
+
},
|
|
81525
|
+
"404": {
|
|
81526
|
+
"content": {
|
|
81527
|
+
"application/json": {
|
|
81528
|
+
"schema": {
|
|
81529
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81530
|
+
}
|
|
81531
|
+
}
|
|
81532
|
+
},
|
|
81533
|
+
"description": "Not found"
|
|
81534
|
+
},
|
|
81535
|
+
"413": {
|
|
81536
|
+
"content": {
|
|
81537
|
+
"application/json": {
|
|
81538
|
+
"schema": {
|
|
81539
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81540
|
+
}
|
|
81541
|
+
}
|
|
81542
|
+
},
|
|
81543
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81544
|
+
},
|
|
81545
|
+
"503": {
|
|
81546
|
+
"content": {
|
|
81547
|
+
"application/json": {
|
|
81548
|
+
"schema": {
|
|
81549
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81550
|
+
}
|
|
81551
|
+
}
|
|
81552
|
+
},
|
|
81553
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81554
|
+
}
|
|
81555
|
+
},
|
|
81556
|
+
"summary": "Remove one or more records from the CRM",
|
|
81557
|
+
"tags": [
|
|
81558
|
+
"CRM"
|
|
81559
|
+
]
|
|
81560
|
+
}
|
|
81561
|
+
},
|
|
81562
|
+
"/v1/crm/records/describe-on-add": {
|
|
81563
|
+
"post": {
|
|
81564
|
+
"operationId": "describeCrmRecordsOnAdd",
|
|
81565
|
+
"requestBody": {
|
|
81566
|
+
"content": {
|
|
81567
|
+
"application/json": {
|
|
81568
|
+
"schema": {
|
|
81569
|
+
"properties": {
|
|
81570
|
+
"created": {
|
|
81571
|
+
"items": {
|
|
81572
|
+
"properties": {
|
|
81573
|
+
"entityId": {
|
|
81574
|
+
"type": "string"
|
|
81575
|
+
},
|
|
81576
|
+
"entityType": {
|
|
81577
|
+
"$ref": "#/components/schemas/CrmEntityType"
|
|
81578
|
+
}
|
|
81579
|
+
},
|
|
81580
|
+
"required": [
|
|
81581
|
+
"entityId",
|
|
81582
|
+
"entityType"
|
|
81583
|
+
],
|
|
81584
|
+
"type": "object"
|
|
81585
|
+
},
|
|
81586
|
+
"maxItems": 500,
|
|
81587
|
+
"minItems": 1,
|
|
81588
|
+
"type": "array"
|
|
81589
|
+
}
|
|
81590
|
+
},
|
|
81591
|
+
"required": [
|
|
81592
|
+
"created"
|
|
81593
|
+
],
|
|
81594
|
+
"type": "object"
|
|
81595
|
+
}
|
|
81596
|
+
}
|
|
81597
|
+
}
|
|
81598
|
+
},
|
|
81599
|
+
"responses": {
|
|
81600
|
+
"200": {
|
|
81601
|
+
"content": {
|
|
81602
|
+
"application/json": {
|
|
81603
|
+
"schema": {
|
|
81604
|
+
"$ref": "#/components/schemas/CrmDescribeOnAddResult"
|
|
81605
|
+
}
|
|
81606
|
+
}
|
|
81607
|
+
},
|
|
81608
|
+
"description": "The created entity ids that need a generate-description run (cache misses this caller claimed)."
|
|
81609
|
+
},
|
|
81610
|
+
"400": {
|
|
81611
|
+
"content": {
|
|
81612
|
+
"application/json": {
|
|
81613
|
+
"schema": {
|
|
81614
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81615
|
+
}
|
|
81616
|
+
}
|
|
81617
|
+
},
|
|
81618
|
+
"description": "Validation error"
|
|
81619
|
+
},
|
|
81620
|
+
"401": {
|
|
81621
|
+
"content": {
|
|
81622
|
+
"application/json": {
|
|
81623
|
+
"schema": {
|
|
81624
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81625
|
+
}
|
|
81626
|
+
}
|
|
81627
|
+
},
|
|
81628
|
+
"description": "Unauthorized"
|
|
81629
|
+
},
|
|
81630
|
+
"403": {
|
|
81631
|
+
"content": {
|
|
81632
|
+
"application/json": {
|
|
81633
|
+
"schema": {
|
|
81634
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81635
|
+
}
|
|
81636
|
+
}
|
|
81637
|
+
},
|
|
81638
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81639
|
+
},
|
|
81640
|
+
"404": {
|
|
81641
|
+
"content": {
|
|
81642
|
+
"application/json": {
|
|
81643
|
+
"schema": {
|
|
81644
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81645
|
+
}
|
|
81646
|
+
}
|
|
81647
|
+
},
|
|
81648
|
+
"description": "Not found"
|
|
81649
|
+
},
|
|
81650
|
+
"413": {
|
|
81651
|
+
"content": {
|
|
81652
|
+
"application/json": {
|
|
81653
|
+
"schema": {
|
|
81654
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81655
|
+
}
|
|
81656
|
+
}
|
|
81657
|
+
},
|
|
81658
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81659
|
+
},
|
|
81660
|
+
"503": {
|
|
81661
|
+
"content": {
|
|
81662
|
+
"application/json": {
|
|
81663
|
+
"schema": {
|
|
81664
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81665
|
+
}
|
|
81666
|
+
}
|
|
81667
|
+
},
|
|
81668
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81669
|
+
}
|
|
81670
|
+
},
|
|
81671
|
+
"summary": "Resolve descriptions for just-created records (cache-first)",
|
|
81672
|
+
"tags": [
|
|
81673
|
+
"CRM"
|
|
81674
|
+
]
|
|
81675
|
+
}
|
|
81676
|
+
},
|
|
81677
|
+
"/v1/crm/records/dismiss-mi-updates": {
|
|
81678
|
+
"post": {
|
|
81679
|
+
"operationId": "dismissCrmMiUpdates",
|
|
81680
|
+
"requestBody": {
|
|
81681
|
+
"content": {
|
|
81682
|
+
"application/json": {
|
|
81683
|
+
"schema": {
|
|
81684
|
+
"properties": {
|
|
81685
|
+
"entityId": {
|
|
81686
|
+
"type": "string"
|
|
81687
|
+
},
|
|
81688
|
+
"seen": {
|
|
81689
|
+
"additionalProperties": {
|
|
81690
|
+
"items": {
|
|
81691
|
+
"maxLength": 512,
|
|
81692
|
+
"type": "string"
|
|
81693
|
+
},
|
|
81694
|
+
"maxItems": 50,
|
|
81695
|
+
"type": "array"
|
|
81696
|
+
},
|
|
81697
|
+
"type": "object"
|
|
81698
|
+
}
|
|
81699
|
+
},
|
|
81700
|
+
"required": [
|
|
81701
|
+
"entityId"
|
|
81702
|
+
],
|
|
81703
|
+
"type": "object"
|
|
81704
|
+
}
|
|
81705
|
+
}
|
|
81706
|
+
}
|
|
81707
|
+
},
|
|
81708
|
+
"responses": {
|
|
81709
|
+
"200": {
|
|
81710
|
+
"content": {
|
|
81711
|
+
"application/json": {
|
|
81712
|
+
"schema": {
|
|
81713
|
+
"$ref": "#/components/schemas/CrmDismissMiUpdatesResult"
|
|
81714
|
+
}
|
|
81715
|
+
}
|
|
81716
|
+
},
|
|
81717
|
+
"description": "Confirmation the check window was restarted. The seen-ledger is untouched."
|
|
81718
|
+
},
|
|
81719
|
+
"400": {
|
|
81720
|
+
"content": {
|
|
81721
|
+
"application/json": {
|
|
81722
|
+
"schema": {
|
|
81723
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81724
|
+
}
|
|
81725
|
+
}
|
|
81726
|
+
},
|
|
81727
|
+
"description": "Validation error"
|
|
81728
|
+
},
|
|
81729
|
+
"401": {
|
|
81730
|
+
"content": {
|
|
81731
|
+
"application/json": {
|
|
81732
|
+
"schema": {
|
|
81733
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81734
|
+
}
|
|
81735
|
+
}
|
|
81736
|
+
},
|
|
81737
|
+
"description": "Unauthorized"
|
|
81738
|
+
},
|
|
81739
|
+
"403": {
|
|
81740
|
+
"content": {
|
|
81741
|
+
"application/json": {
|
|
81742
|
+
"schema": {
|
|
81743
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81744
|
+
}
|
|
81745
|
+
}
|
|
81746
|
+
},
|
|
81747
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81748
|
+
},
|
|
81749
|
+
"404": {
|
|
81750
|
+
"content": {
|
|
81751
|
+
"application/json": {
|
|
81752
|
+
"schema": {
|
|
81753
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81754
|
+
}
|
|
81755
|
+
}
|
|
81756
|
+
},
|
|
81757
|
+
"description": "Not found"
|
|
81758
|
+
},
|
|
81759
|
+
"413": {
|
|
81760
|
+
"content": {
|
|
81761
|
+
"application/json": {
|
|
81762
|
+
"schema": {
|
|
81763
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81764
|
+
}
|
|
81765
|
+
}
|
|
81766
|
+
},
|
|
81767
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81768
|
+
},
|
|
81769
|
+
"503": {
|
|
81770
|
+
"content": {
|
|
81771
|
+
"application/json": {
|
|
81772
|
+
"schema": {
|
|
81773
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81774
|
+
}
|
|
81775
|
+
}
|
|
81776
|
+
},
|
|
81777
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81778
|
+
}
|
|
81779
|
+
},
|
|
81780
|
+
"summary": "Snooze surfaced MI updates for the check window",
|
|
81781
|
+
"tags": [
|
|
81782
|
+
"CRM"
|
|
81783
|
+
]
|
|
81784
|
+
}
|
|
81785
|
+
},
|
|
81786
|
+
"/v1/crm/records/generate-description": {
|
|
81787
|
+
"post": {
|
|
81788
|
+
"operationId": "generateCrmRecordDescription",
|
|
81789
|
+
"requestBody": {
|
|
81790
|
+
"content": {
|
|
81791
|
+
"application/json": {
|
|
81792
|
+
"schema": {
|
|
81793
|
+
"properties": {
|
|
81794
|
+
"company": {
|
|
81795
|
+
"description": "Ignored.",
|
|
81796
|
+
"type": "string"
|
|
81797
|
+
},
|
|
81798
|
+
"entityId": {
|
|
81799
|
+
"type": "string"
|
|
81800
|
+
},
|
|
81801
|
+
"entityType": {
|
|
81802
|
+
"$ref": "#/components/schemas/CrmEntityType"
|
|
81803
|
+
},
|
|
81804
|
+
"location": {
|
|
81805
|
+
"description": "Ignored.",
|
|
81806
|
+
"type": "string"
|
|
81807
|
+
},
|
|
81808
|
+
"name": {
|
|
81809
|
+
"description": "Ignored. Who is researched comes from the market-data record, not the request.",
|
|
81810
|
+
"type": "string"
|
|
81811
|
+
},
|
|
81812
|
+
"title": {
|
|
81813
|
+
"description": "Ignored.",
|
|
81814
|
+
"type": "string"
|
|
81815
|
+
}
|
|
81816
|
+
},
|
|
81817
|
+
"required": [
|
|
81818
|
+
"entityId",
|
|
81819
|
+
"entityType"
|
|
81820
|
+
],
|
|
81821
|
+
"type": "object"
|
|
81822
|
+
}
|
|
81823
|
+
}
|
|
81824
|
+
}
|
|
81825
|
+
},
|
|
81826
|
+
"responses": {
|
|
81827
|
+
"200": {
|
|
81828
|
+
"content": {
|
|
81829
|
+
"application/json": {
|
|
81830
|
+
"schema": {
|
|
81831
|
+
"$ref": "#/components/schemas/CrmGenerateDescriptionResult"
|
|
81832
|
+
}
|
|
81833
|
+
}
|
|
81834
|
+
},
|
|
81835
|
+
"description": "The generated description, or null when no usable source was found."
|
|
81836
|
+
},
|
|
81837
|
+
"400": {
|
|
81838
|
+
"content": {
|
|
81839
|
+
"application/json": {
|
|
81840
|
+
"schema": {
|
|
81841
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81842
|
+
}
|
|
81843
|
+
}
|
|
81844
|
+
},
|
|
81845
|
+
"description": "Validation error"
|
|
81846
|
+
},
|
|
81847
|
+
"401": {
|
|
81848
|
+
"content": {
|
|
81849
|
+
"application/json": {
|
|
81850
|
+
"schema": {
|
|
81851
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81852
|
+
}
|
|
81853
|
+
}
|
|
81854
|
+
},
|
|
81855
|
+
"description": "Unauthorized"
|
|
81856
|
+
},
|
|
81857
|
+
"403": {
|
|
81858
|
+
"content": {
|
|
81859
|
+
"application/json": {
|
|
81860
|
+
"schema": {
|
|
81861
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81862
|
+
}
|
|
81863
|
+
}
|
|
81864
|
+
},
|
|
81865
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81866
|
+
},
|
|
81867
|
+
"404": {
|
|
81868
|
+
"content": {
|
|
81869
|
+
"application/json": {
|
|
81870
|
+
"schema": {
|
|
81871
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81872
|
+
}
|
|
81873
|
+
}
|
|
81874
|
+
},
|
|
81875
|
+
"description": "Not found"
|
|
81876
|
+
},
|
|
81877
|
+
"413": {
|
|
81878
|
+
"content": {
|
|
81879
|
+
"application/json": {
|
|
81880
|
+
"schema": {
|
|
81881
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81882
|
+
}
|
|
81883
|
+
}
|
|
81884
|
+
},
|
|
81885
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81886
|
+
},
|
|
81887
|
+
"429": {
|
|
81888
|
+
"content": {
|
|
81889
|
+
"application/json": {
|
|
81890
|
+
"schema": {
|
|
81891
|
+
"$ref": "#/components/schemas/RateLimited"
|
|
81892
|
+
}
|
|
81893
|
+
}
|
|
81894
|
+
},
|
|
81895
|
+
"description": "`rate_limited` — too many AI requests from this user in the last minute. Wait `retryAfterSeconds` (also sent as the `Retry-After` header)."
|
|
81896
|
+
},
|
|
81897
|
+
"503": {
|
|
81898
|
+
"content": {
|
|
81899
|
+
"application/json": {
|
|
81900
|
+
"schema": {
|
|
81901
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81902
|
+
}
|
|
81903
|
+
}
|
|
81904
|
+
},
|
|
81905
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81906
|
+
}
|
|
81907
|
+
},
|
|
81908
|
+
"summary": "Auto-generate a record's description from the web",
|
|
81909
|
+
"tags": [
|
|
81910
|
+
"CRM"
|
|
81911
|
+
]
|
|
81912
|
+
}
|
|
81913
|
+
},
|
|
81914
|
+
"/v1/crm/records/grant-access": {
|
|
81915
|
+
"post": {
|
|
81916
|
+
"operationId": "grantCrmRecordAccessRequest",
|
|
81917
|
+
"requestBody": {
|
|
81918
|
+
"content": {
|
|
81919
|
+
"application/json": {
|
|
81920
|
+
"schema": {
|
|
81921
|
+
"properties": {
|
|
81922
|
+
"requestId": {
|
|
81923
|
+
"minLength": 1,
|
|
81924
|
+
"type": "string"
|
|
81925
|
+
}
|
|
81926
|
+
},
|
|
81927
|
+
"required": [
|
|
81928
|
+
"requestId"
|
|
81929
|
+
],
|
|
81930
|
+
"type": "object"
|
|
81931
|
+
}
|
|
81932
|
+
}
|
|
81933
|
+
}
|
|
81934
|
+
},
|
|
81935
|
+
"responses": {
|
|
81936
|
+
"200": {
|
|
81937
|
+
"content": {
|
|
81938
|
+
"application/json": {
|
|
81939
|
+
"schema": {
|
|
81940
|
+
"$ref": "#/components/schemas/CrmGrantRecordAccessRequestResult"
|
|
81941
|
+
}
|
|
81942
|
+
}
|
|
81943
|
+
},
|
|
81944
|
+
"description": "The requester was granted access (idempotent) and the ask closed."
|
|
81945
|
+
},
|
|
81946
|
+
"400": {
|
|
81947
|
+
"content": {
|
|
81948
|
+
"application/json": {
|
|
81949
|
+
"schema": {
|
|
81950
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81951
|
+
}
|
|
81952
|
+
}
|
|
81953
|
+
},
|
|
81954
|
+
"description": "Validation error"
|
|
81955
|
+
},
|
|
81956
|
+
"401": {
|
|
81957
|
+
"content": {
|
|
81958
|
+
"application/json": {
|
|
81959
|
+
"schema": {
|
|
81960
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81961
|
+
}
|
|
81962
|
+
}
|
|
81963
|
+
},
|
|
81964
|
+
"description": "Unauthorized"
|
|
81965
|
+
},
|
|
81966
|
+
"403": {
|
|
81967
|
+
"content": {
|
|
81968
|
+
"application/json": {
|
|
81969
|
+
"schema": {
|
|
81970
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81971
|
+
}
|
|
81972
|
+
}
|
|
81973
|
+
},
|
|
81974
|
+
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81975
|
+
},
|
|
81976
|
+
"404": {
|
|
81977
|
+
"content": {
|
|
81978
|
+
"application/json": {
|
|
81979
|
+
"schema": {
|
|
81980
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81981
|
+
}
|
|
81982
|
+
}
|
|
81983
|
+
},
|
|
81984
|
+
"description": "Not found"
|
|
81985
|
+
},
|
|
81986
|
+
"413": {
|
|
81987
|
+
"content": {
|
|
81988
|
+
"application/json": {
|
|
81989
|
+
"schema": {
|
|
81990
|
+
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81991
|
+
}
|
|
81992
|
+
}
|
|
81993
|
+
},
|
|
81994
|
+
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81995
|
+
},
|
|
81996
|
+
"502": {
|
|
81997
|
+
"content": {
|
|
81998
|
+
"application/json": {
|
|
81999
|
+
"schema": {
|
|
82000
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
82001
|
+
}
|
|
82002
|
+
}
|
|
82003
|
+
},
|
|
82004
|
+
"description": "Auth service unavailable (roster needed for the gate)."
|
|
82005
|
+
},
|
|
82006
|
+
"503": {
|
|
82007
|
+
"content": {
|
|
82008
|
+
"application/json": {
|
|
82009
|
+
"schema": {
|
|
82010
|
+
"$ref": "#/components/schemas/SearchUnavailable"
|
|
82011
|
+
}
|
|
82012
|
+
}
|
|
82013
|
+
},
|
|
82014
|
+
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
82015
|
+
}
|
|
82016
|
+
},
|
|
82017
|
+
"summary": "Grant a pending record access request (owner/admin, one tap)",
|
|
80463
82018
|
"tags": [
|
|
80464
82019
|
"CRM"
|
|
80465
82020
|
]
|
|
80466
82021
|
}
|
|
80467
82022
|
},
|
|
80468
|
-
"/v1/crm/records/
|
|
80469
|
-
"
|
|
80470
|
-
"operationId": "
|
|
80471
|
-
"
|
|
80472
|
-
|
|
80473
|
-
"
|
|
80474
|
-
|
|
80475
|
-
|
|
80476
|
-
|
|
80477
|
-
|
|
80478
|
-
},
|
|
80479
|
-
"branchNmlsId": {
|
|
80480
|
-
"type": "string"
|
|
80481
|
-
},
|
|
80482
|
-
"companyName": {
|
|
80483
|
-
"type": "string"
|
|
80484
|
-
},
|
|
80485
|
-
"companyNmlsId": {
|
|
80486
|
-
"type": "string"
|
|
80487
|
-
},
|
|
80488
|
-
"entityId": {
|
|
80489
|
-
"minLength": 1,
|
|
80490
|
-
"type": "string"
|
|
80491
|
-
},
|
|
80492
|
-
"entityType": {
|
|
80493
|
-
"$ref": "#/components/schemas/CrmEntityType"
|
|
80494
|
-
},
|
|
80495
|
-
"officeKey": {
|
|
80496
|
-
"type": "string"
|
|
80497
|
-
},
|
|
80498
|
-
"officeName": {
|
|
80499
|
-
"type": "string"
|
|
80500
|
-
},
|
|
80501
|
-
"partnerEntityIds": {
|
|
80502
|
-
"items": {
|
|
80503
|
-
"type": "string"
|
|
80504
|
-
},
|
|
80505
|
-
"type": "array"
|
|
80506
|
-
}
|
|
80507
|
-
},
|
|
80508
|
-
"required": [
|
|
80509
|
-
"entityId",
|
|
80510
|
-
"entityType"
|
|
80511
|
-
],
|
|
80512
|
-
"type": "object"
|
|
80513
|
-
}
|
|
82023
|
+
"/v1/crm/records/member-ids": {
|
|
82024
|
+
"get": {
|
|
82025
|
+
"operationId": "getCrmRecordMemberIds",
|
|
82026
|
+
"parameters": [
|
|
82027
|
+
{
|
|
82028
|
+
"in": "query",
|
|
82029
|
+
"name": "objectType",
|
|
82030
|
+
"required": true,
|
|
82031
|
+
"schema": {
|
|
82032
|
+
"$ref": "#/components/schemas/CrmObjectType"
|
|
80514
82033
|
}
|
|
80515
82034
|
}
|
|
80516
|
-
|
|
82035
|
+
],
|
|
80517
82036
|
"responses": {
|
|
80518
82037
|
"200": {
|
|
80519
82038
|
"content": {
|
|
80520
82039
|
"application/json": {
|
|
80521
82040
|
"schema": {
|
|
80522
|
-
"$ref": "#/components/schemas/
|
|
82041
|
+
"$ref": "#/components/schemas/CrmMemberIdsResult"
|
|
80523
82042
|
}
|
|
80524
82043
|
}
|
|
80525
82044
|
},
|
|
80526
|
-
"description": "
|
|
82045
|
+
"description": "Every workspace record id of the object type."
|
|
80527
82046
|
},
|
|
80528
82047
|
"400": {
|
|
80529
82048
|
"content": {
|
|
@@ -80586,109 +82105,40 @@
|
|
|
80586
82105
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
80587
82106
|
}
|
|
80588
82107
|
},
|
|
80589
|
-
"summary": "
|
|
82108
|
+
"summary": "List the workspace's record entity ids of an object type (ids only)",
|
|
80590
82109
|
"tags": [
|
|
80591
82110
|
"CRM"
|
|
80592
82111
|
]
|
|
80593
82112
|
}
|
|
80594
82113
|
},
|
|
80595
|
-
"/v1/crm/records/
|
|
82114
|
+
"/v1/crm/records/mention-search": {
|
|
80596
82115
|
"post": {
|
|
80597
|
-
"operationId": "
|
|
82116
|
+
"operationId": "searchCrmMentionRecords",
|
|
80598
82117
|
"requestBody": {
|
|
80599
82118
|
"content": {
|
|
80600
82119
|
"application/json": {
|
|
80601
82120
|
"schema": {
|
|
80602
82121
|
"properties": {
|
|
80603
|
-
"
|
|
80604
|
-
"
|
|
80605
|
-
"$ref": "#/components/schemas/CrmContactSeed"
|
|
80606
|
-
},
|
|
80607
|
-
"maxItems": 30,
|
|
80608
|
-
"type": "array"
|
|
80609
|
-
},
|
|
80610
|
-
"customValues": {
|
|
80611
|
-
"additionalProperties": {
|
|
80612
|
-
"$ref": "#/components/schemas/CrmCustomValue"
|
|
80613
|
-
},
|
|
80614
|
-
"type": "object"
|
|
80615
|
-
},
|
|
80616
|
-
"display": {
|
|
80617
|
-
"$ref": "#/components/schemas/CrmDisplay"
|
|
80618
|
-
},
|
|
80619
|
-
"entityType": {
|
|
80620
|
-
"$ref": "#/components/schemas/CrmEntityType"
|
|
80621
|
-
},
|
|
80622
|
-
"listId": {
|
|
80623
|
-
"type": "string"
|
|
80624
|
-
},
|
|
80625
|
-
"overrides": {
|
|
80626
|
-
"properties": {
|
|
80627
|
-
"city": {
|
|
80628
|
-
"type": "string"
|
|
80629
|
-
},
|
|
80630
|
-
"company": {
|
|
80631
|
-
"type": "string"
|
|
80632
|
-
},
|
|
80633
|
-
"companyNmlsId": {
|
|
80634
|
-
"type": "string"
|
|
80635
|
-
},
|
|
80636
|
-
"companyType": {
|
|
80637
|
-
"type": "string"
|
|
80638
|
-
},
|
|
80639
|
-
"firstName": {
|
|
80640
|
-
"type": "string"
|
|
80641
|
-
},
|
|
80642
|
-
"lastName": {
|
|
80643
|
-
"type": "string"
|
|
80644
|
-
},
|
|
80645
|
-
"location": {
|
|
80646
|
-
"type": "string"
|
|
80647
|
-
},
|
|
80648
|
-
"notes": {
|
|
80649
|
-
"type": "string"
|
|
80650
|
-
},
|
|
80651
|
-
"office": {
|
|
80652
|
-
"type": "string"
|
|
80653
|
-
},
|
|
80654
|
-
"state": {
|
|
80655
|
-
"type": "string"
|
|
80656
|
-
},
|
|
80657
|
-
"status": {
|
|
80658
|
-
"type": "string"
|
|
80659
|
-
},
|
|
80660
|
-
"title": {
|
|
80661
|
-
"type": "string"
|
|
80662
|
-
},
|
|
80663
|
-
"zip": {
|
|
80664
|
-
"type": "string"
|
|
80665
|
-
}
|
|
80666
|
-
},
|
|
80667
|
-
"type": "object"
|
|
80668
|
-
},
|
|
80669
|
-
"ownerUserId": {
|
|
82122
|
+
"q": {
|
|
82123
|
+
"default": "",
|
|
80670
82124
|
"type": "string"
|
|
80671
82125
|
}
|
|
80672
82126
|
},
|
|
80673
|
-
"required": [
|
|
80674
|
-
"entityType",
|
|
80675
|
-
"display"
|
|
80676
|
-
],
|
|
80677
82127
|
"type": "object"
|
|
80678
82128
|
}
|
|
80679
82129
|
}
|
|
80680
82130
|
}
|
|
80681
82131
|
},
|
|
80682
82132
|
"responses": {
|
|
80683
|
-
"
|
|
82133
|
+
"200": {
|
|
80684
82134
|
"content": {
|
|
80685
82135
|
"application/json": {
|
|
80686
82136
|
"schema": {
|
|
80687
|
-
"$ref": "#/components/schemas/
|
|
82137
|
+
"$ref": "#/components/schemas/CrmMentionSearch"
|
|
80688
82138
|
}
|
|
80689
82139
|
}
|
|
80690
82140
|
},
|
|
80691
|
-
"description": "The
|
|
82141
|
+
"description": "The viewer-visible records matching the query (or recent)."
|
|
80692
82142
|
},
|
|
80693
82143
|
"400": {
|
|
80694
82144
|
"content": {
|
|
@@ -80751,42 +82201,32 @@
|
|
|
80751
82201
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
80752
82202
|
}
|
|
80753
82203
|
},
|
|
80754
|
-
"summary": "
|
|
82204
|
+
"summary": "Name-first search over visible CRM records for the mention picker",
|
|
80755
82205
|
"tags": [
|
|
80756
82206
|
"CRM"
|
|
80757
82207
|
]
|
|
80758
82208
|
}
|
|
80759
82209
|
},
|
|
80760
|
-
"/v1/crm/records/
|
|
82210
|
+
"/v1/crm/records/mi-updates": {
|
|
80761
82211
|
"post": {
|
|
80762
|
-
"operationId": "
|
|
82212
|
+
"operationId": "getCrmMiUpdates",
|
|
80763
82213
|
"requestBody": {
|
|
80764
82214
|
"content": {
|
|
80765
82215
|
"application/json": {
|
|
80766
82216
|
"schema": {
|
|
80767
82217
|
"properties": {
|
|
80768
82218
|
"entityId": {
|
|
82219
|
+
"maxLength": 128,
|
|
82220
|
+
"minLength": 1,
|
|
80769
82221
|
"type": "string"
|
|
80770
82222
|
},
|
|
80771
82223
|
"entityType": {
|
|
80772
82224
|
"$ref": "#/components/schemas/CrmEntityType"
|
|
80773
|
-
},
|
|
80774
|
-
"fields": {
|
|
80775
|
-
"description": "The diverging override fields to keep, e.g. `[\"company\", \"location\"]`. Batched because the review dialog can select several rows at once. Only the fields the server still sees diverging are suppressed.",
|
|
80776
|
-
"items": {
|
|
80777
|
-
"maxLength": 64,
|
|
80778
|
-
"minLength": 1,
|
|
80779
|
-
"type": "string"
|
|
80780
|
-
},
|
|
80781
|
-
"maxItems": 16,
|
|
80782
|
-
"minItems": 1,
|
|
80783
|
-
"type": "array"
|
|
80784
82225
|
}
|
|
80785
82226
|
},
|
|
80786
82227
|
"required": [
|
|
80787
82228
|
"entityId",
|
|
80788
|
-
"entityType"
|
|
80789
|
-
"fields"
|
|
82229
|
+
"entityType"
|
|
80790
82230
|
],
|
|
80791
82231
|
"type": "object"
|
|
80792
82232
|
}
|
|
@@ -80798,11 +82238,11 @@
|
|
|
80798
82238
|
"content": {
|
|
80799
82239
|
"application/json": {
|
|
80800
82240
|
"schema": {
|
|
80801
|
-
"$ref": "#/components/schemas/
|
|
82241
|
+
"$ref": "#/components/schemas/CrmMiUpdatesResult"
|
|
80802
82242
|
}
|
|
80803
82243
|
}
|
|
80804
82244
|
},
|
|
80805
|
-
"description": "The
|
|
82245
|
+
"description": "The available per-field updates + the check timestamp (null when skipped)."
|
|
80806
82246
|
},
|
|
80807
82247
|
"400": {
|
|
80808
82248
|
"content": {
|
|
@@ -80865,30 +82305,28 @@
|
|
|
80865
82305
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
80866
82306
|
}
|
|
80867
82307
|
},
|
|
80868
|
-
"summary": "
|
|
82308
|
+
"summary": "Compute which Market-Insights fields differ from a record snapshot",
|
|
80869
82309
|
"tags": [
|
|
80870
82310
|
"CRM"
|
|
80871
82311
|
]
|
|
80872
82312
|
}
|
|
80873
82313
|
},
|
|
80874
|
-
"/v1/crm/records/
|
|
82314
|
+
"/v1/crm/records/refresh-mirror": {
|
|
80875
82315
|
"post": {
|
|
80876
|
-
"operationId": "
|
|
82316
|
+
"operationId": "refreshCrmRecordMirror",
|
|
80877
82317
|
"requestBody": {
|
|
80878
82318
|
"content": {
|
|
80879
82319
|
"application/json": {
|
|
80880
82320
|
"schema": {
|
|
80881
82321
|
"properties": {
|
|
80882
|
-
"
|
|
80883
|
-
"
|
|
80884
|
-
|
|
80885
|
-
|
|
80886
|
-
"minItems": 1,
|
|
80887
|
-
"type": "array"
|
|
82322
|
+
"entityId": {
|
|
82323
|
+
"maxLength": 128,
|
|
82324
|
+
"minLength": 1,
|
|
82325
|
+
"type": "string"
|
|
80888
82326
|
}
|
|
80889
82327
|
},
|
|
80890
82328
|
"required": [
|
|
80891
|
-
"
|
|
82329
|
+
"entityId"
|
|
80892
82330
|
],
|
|
80893
82331
|
"type": "object"
|
|
80894
82332
|
}
|
|
@@ -80900,11 +82338,11 @@
|
|
|
80900
82338
|
"content": {
|
|
80901
82339
|
"application/json": {
|
|
80902
82340
|
"schema": {
|
|
80903
|
-
"$ref": "#/components/schemas/
|
|
82341
|
+
"$ref": "#/components/schemas/CrmRefreshMirrorResult"
|
|
80904
82342
|
}
|
|
80905
82343
|
}
|
|
80906
82344
|
},
|
|
80907
|
-
"description": "
|
|
82345
|
+
"description": "Whether the mirror moved, and the display after the attempt. Never errors on a record that cannot be refreshed."
|
|
80908
82346
|
},
|
|
80909
82347
|
"400": {
|
|
80910
82348
|
"content": {
|
|
@@ -80967,43 +82405,32 @@
|
|
|
80967
82405
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
80968
82406
|
}
|
|
80969
82407
|
},
|
|
80970
|
-
"summary": "
|
|
82408
|
+
"summary": "Freshen a record's mirrored Market-Insights row on demand",
|
|
80971
82409
|
"tags": [
|
|
80972
82410
|
"CRM"
|
|
80973
82411
|
]
|
|
80974
82412
|
}
|
|
80975
82413
|
},
|
|
80976
|
-
"/v1/crm/records/
|
|
82414
|
+
"/v1/crm/records/request-access": {
|
|
80977
82415
|
"post": {
|
|
80978
|
-
"operationId": "
|
|
82416
|
+
"operationId": "requestCrmRecordAccess",
|
|
80979
82417
|
"requestBody": {
|
|
80980
82418
|
"content": {
|
|
80981
82419
|
"application/json": {
|
|
80982
82420
|
"schema": {
|
|
80983
82421
|
"properties": {
|
|
80984
|
-
"
|
|
80985
|
-
"
|
|
80986
|
-
|
|
80987
|
-
|
|
80988
|
-
|
|
80989
|
-
|
|
80990
|
-
|
|
80991
|
-
"$ref": "#/components/schemas/CrmEntityType"
|
|
80992
|
-
}
|
|
80993
|
-
},
|
|
80994
|
-
"required": [
|
|
80995
|
-
"entityId",
|
|
80996
|
-
"entityType"
|
|
80997
|
-
],
|
|
80998
|
-
"type": "object"
|
|
80999
|
-
},
|
|
81000
|
-
"maxItems": 500,
|
|
81001
|
-
"minItems": 1,
|
|
81002
|
-
"type": "array"
|
|
82422
|
+
"entityId": {
|
|
82423
|
+
"minLength": 1,
|
|
82424
|
+
"type": "string"
|
|
82425
|
+
},
|
|
82426
|
+
"organizationId": {
|
|
82427
|
+
"minLength": 1,
|
|
82428
|
+
"type": "string"
|
|
81003
82429
|
}
|
|
81004
82430
|
},
|
|
81005
82431
|
"required": [
|
|
81006
|
-
"
|
|
82432
|
+
"organizationId",
|
|
82433
|
+
"entityId"
|
|
81007
82434
|
],
|
|
81008
82435
|
"type": "object"
|
|
81009
82436
|
}
|
|
@@ -81015,11 +82442,11 @@
|
|
|
81015
82442
|
"content": {
|
|
81016
82443
|
"application/json": {
|
|
81017
82444
|
"schema": {
|
|
81018
|
-
"$ref": "#/components/schemas/
|
|
82445
|
+
"$ref": "#/components/schemas/CrmRecordRequestAccessResult"
|
|
81019
82446
|
}
|
|
81020
82447
|
}
|
|
81021
82448
|
},
|
|
81022
|
-
"description": "The
|
|
82449
|
+
"description": "The owner was emailed, a recent request still stands, or the caller already has access."
|
|
81023
82450
|
},
|
|
81024
82451
|
"400": {
|
|
81025
82452
|
"content": {
|
|
@@ -81071,6 +82498,26 @@
|
|
|
81071
82498
|
},
|
|
81072
82499
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81073
82500
|
},
|
|
82501
|
+
"422": {
|
|
82502
|
+
"content": {
|
|
82503
|
+
"application/json": {
|
|
82504
|
+
"schema": {
|
|
82505
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
82506
|
+
}
|
|
82507
|
+
}
|
|
82508
|
+
},
|
|
82509
|
+
"description": "The record has no owner/admin to notify."
|
|
82510
|
+
},
|
|
82511
|
+
"502": {
|
|
82512
|
+
"content": {
|
|
82513
|
+
"application/json": {
|
|
82514
|
+
"schema": {
|
|
82515
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
82516
|
+
}
|
|
82517
|
+
}
|
|
82518
|
+
},
|
|
82519
|
+
"description": "Owner-roster lookup or email send failed — safe to retry."
|
|
82520
|
+
},
|
|
81074
82521
|
"503": {
|
|
81075
82522
|
"content": {
|
|
81076
82523
|
"application/json": {
|
|
@@ -81082,37 +82529,35 @@
|
|
|
81082
82529
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81083
82530
|
}
|
|
81084
82531
|
},
|
|
81085
|
-
"summary": "
|
|
82532
|
+
"summary": "Ask a record's owner to share it (membership-gated, notify-only)",
|
|
81086
82533
|
"tags": [
|
|
81087
82534
|
"CRM"
|
|
81088
82535
|
]
|
|
81089
82536
|
}
|
|
81090
82537
|
},
|
|
81091
|
-
"/v1/crm/records/
|
|
82538
|
+
"/v1/crm/records/search": {
|
|
81092
82539
|
"post": {
|
|
81093
|
-
"operationId": "
|
|
82540
|
+
"operationId": "searchCrmRecords",
|
|
81094
82541
|
"requestBody": {
|
|
81095
82542
|
"content": {
|
|
81096
82543
|
"application/json": {
|
|
81097
82544
|
"schema": {
|
|
81098
82545
|
"properties": {
|
|
81099
|
-
"
|
|
82546
|
+
"listId": {
|
|
82547
|
+
"description": "Scope to one list's members; omit for the full CRM.",
|
|
81100
82548
|
"type": "string"
|
|
81101
82549
|
},
|
|
81102
|
-
"
|
|
81103
|
-
"
|
|
81104
|
-
|
|
81105
|
-
|
|
81106
|
-
|
|
81107
|
-
|
|
81108
|
-
"maxItems": 50,
|
|
81109
|
-
"type": "array"
|
|
81110
|
-
},
|
|
81111
|
-
"type": "object"
|
|
82550
|
+
"objectType": {
|
|
82551
|
+
"$ref": "#/components/schemas/CrmObjectType"
|
|
82552
|
+
},
|
|
82553
|
+
"q": {
|
|
82554
|
+
"description": "Free-text query.",
|
|
82555
|
+
"type": "string"
|
|
81112
82556
|
}
|
|
81113
82557
|
},
|
|
81114
82558
|
"required": [
|
|
81115
|
-
"
|
|
82559
|
+
"objectType",
|
|
82560
|
+
"q"
|
|
81116
82561
|
],
|
|
81117
82562
|
"type": "object"
|
|
81118
82563
|
}
|
|
@@ -81124,11 +82569,11 @@
|
|
|
81124
82569
|
"content": {
|
|
81125
82570
|
"application/json": {
|
|
81126
82571
|
"schema": {
|
|
81127
|
-
"$ref": "#/components/schemas/
|
|
82572
|
+
"$ref": "#/components/schemas/CrmRecordSearchResult"
|
|
81128
82573
|
}
|
|
81129
82574
|
}
|
|
81130
82575
|
},
|
|
81131
|
-
"description": "
|
|
82576
|
+
"description": "The matching namespaced entity ids."
|
|
81132
82577
|
},
|
|
81133
82578
|
"400": {
|
|
81134
82579
|
"content": {
|
|
@@ -81191,62 +82636,25 @@
|
|
|
81191
82636
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81192
82637
|
}
|
|
81193
82638
|
},
|
|
81194
|
-
"summary": "
|
|
82639
|
+
"summary": "Free-text search over CRM records",
|
|
81195
82640
|
"tags": [
|
|
81196
82641
|
"CRM"
|
|
81197
82642
|
]
|
|
81198
82643
|
}
|
|
81199
82644
|
},
|
|
81200
|
-
"/v1/crm/
|
|
81201
|
-
"
|
|
81202
|
-
"operationId": "
|
|
81203
|
-
"requestBody": {
|
|
81204
|
-
"content": {
|
|
81205
|
-
"application/json": {
|
|
81206
|
-
"schema": {
|
|
81207
|
-
"properties": {
|
|
81208
|
-
"company": {
|
|
81209
|
-
"description": "Ignored.",
|
|
81210
|
-
"type": "string"
|
|
81211
|
-
},
|
|
81212
|
-
"entityId": {
|
|
81213
|
-
"type": "string"
|
|
81214
|
-
},
|
|
81215
|
-
"entityType": {
|
|
81216
|
-
"$ref": "#/components/schemas/CrmEntityType"
|
|
81217
|
-
},
|
|
81218
|
-
"location": {
|
|
81219
|
-
"description": "Ignored.",
|
|
81220
|
-
"type": "string"
|
|
81221
|
-
},
|
|
81222
|
-
"name": {
|
|
81223
|
-
"description": "Ignored. Who is researched comes from the market-data record, not the request.",
|
|
81224
|
-
"type": "string"
|
|
81225
|
-
},
|
|
81226
|
-
"title": {
|
|
81227
|
-
"description": "Ignored.",
|
|
81228
|
-
"type": "string"
|
|
81229
|
-
}
|
|
81230
|
-
},
|
|
81231
|
-
"required": [
|
|
81232
|
-
"entityId",
|
|
81233
|
-
"entityType"
|
|
81234
|
-
],
|
|
81235
|
-
"type": "object"
|
|
81236
|
-
}
|
|
81237
|
-
}
|
|
81238
|
-
}
|
|
81239
|
-
},
|
|
82645
|
+
"/v1/crm/recruiting/calls/active": {
|
|
82646
|
+
"get": {
|
|
82647
|
+
"operationId": "getRecruitingActiveCall",
|
|
81240
82648
|
"responses": {
|
|
81241
82649
|
"200": {
|
|
81242
82650
|
"content": {
|
|
81243
82651
|
"application/json": {
|
|
81244
82652
|
"schema": {
|
|
81245
|
-
"$ref": "#/components/schemas/
|
|
82653
|
+
"$ref": "#/components/schemas/RecruitingActiveCallResult"
|
|
81246
82654
|
}
|
|
81247
82655
|
}
|
|
81248
82656
|
},
|
|
81249
|
-
"description": "The
|
|
82657
|
+
"description": "The most recent live call across my engagements, or null."
|
|
81250
82658
|
},
|
|
81251
82659
|
"400": {
|
|
81252
82660
|
"content": {
|
|
@@ -81298,15 +82706,15 @@
|
|
|
81298
82706
|
},
|
|
81299
82707
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81300
82708
|
},
|
|
81301
|
-
"
|
|
82709
|
+
"502": {
|
|
81302
82710
|
"content": {
|
|
81303
82711
|
"application/json": {
|
|
81304
82712
|
"schema": {
|
|
81305
|
-
"$ref": "#/components/schemas/
|
|
82713
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
81306
82714
|
}
|
|
81307
82715
|
}
|
|
81308
82716
|
},
|
|
81309
|
-
"description": "
|
|
82717
|
+
"description": "Auth service unavailable."
|
|
81310
82718
|
},
|
|
81311
82719
|
"503": {
|
|
81312
82720
|
"content": {
|
|
@@ -81319,43 +82727,25 @@
|
|
|
81319
82727
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81320
82728
|
}
|
|
81321
82729
|
},
|
|
81322
|
-
"summary": "
|
|
82730
|
+
"summary": "My still-live call in any customer workspace (reload resume)",
|
|
81323
82731
|
"tags": [
|
|
81324
82732
|
"CRM"
|
|
81325
82733
|
]
|
|
81326
82734
|
}
|
|
81327
82735
|
},
|
|
81328
|
-
"/v1/crm/
|
|
81329
|
-
"
|
|
81330
|
-
"operationId": "
|
|
81331
|
-
"requestBody": {
|
|
81332
|
-
"content": {
|
|
81333
|
-
"application/json": {
|
|
81334
|
-
"schema": {
|
|
81335
|
-
"properties": {
|
|
81336
|
-
"requestId": {
|
|
81337
|
-
"minLength": 1,
|
|
81338
|
-
"type": "string"
|
|
81339
|
-
}
|
|
81340
|
-
},
|
|
81341
|
-
"required": [
|
|
81342
|
-
"requestId"
|
|
81343
|
-
],
|
|
81344
|
-
"type": "object"
|
|
81345
|
-
}
|
|
81346
|
-
}
|
|
81347
|
-
}
|
|
81348
|
-
},
|
|
82736
|
+
"/v1/crm/recruiting/engagements": {
|
|
82737
|
+
"get": {
|
|
82738
|
+
"operationId": "listRecruitingEngagements",
|
|
81349
82739
|
"responses": {
|
|
81350
82740
|
"200": {
|
|
81351
82741
|
"content": {
|
|
81352
82742
|
"application/json": {
|
|
81353
82743
|
"schema": {
|
|
81354
|
-
"$ref": "#/components/schemas/
|
|
82744
|
+
"$ref": "#/components/schemas/RecruitingEngagementList"
|
|
81355
82745
|
}
|
|
81356
82746
|
}
|
|
81357
82747
|
},
|
|
81358
|
-
"description": "
|
|
82748
|
+
"description": "Active engagements, oldest first. Pass a `workspace.id` as `x-mm-organization-id` (MCP: `workspaceId`) to work that customer's CRM."
|
|
81359
82749
|
},
|
|
81360
82750
|
"400": {
|
|
81361
82751
|
"content": {
|
|
@@ -81415,7 +82805,7 @@
|
|
|
81415
82805
|
}
|
|
81416
82806
|
}
|
|
81417
82807
|
},
|
|
81418
|
-
"description": "Auth service unavailable
|
|
82808
|
+
"description": "Auth service unavailable."
|
|
81419
82809
|
},
|
|
81420
82810
|
"503": {
|
|
81421
82811
|
"content": {
|
|
@@ -81428,20 +82818,20 @@
|
|
|
81428
82818
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81429
82819
|
}
|
|
81430
82820
|
},
|
|
81431
|
-
"summary": "
|
|
82821
|
+
"summary": "Customer workspaces I can work through a service engagement",
|
|
81432
82822
|
"tags": [
|
|
81433
82823
|
"CRM"
|
|
81434
82824
|
]
|
|
81435
82825
|
}
|
|
81436
82826
|
},
|
|
81437
|
-
"/v1/crm/
|
|
82827
|
+
"/v1/crm/recruiting/lists": {
|
|
81438
82828
|
"get": {
|
|
81439
|
-
"operationId": "
|
|
82829
|
+
"operationId": "listRecruitingLists",
|
|
81440
82830
|
"parameters": [
|
|
81441
82831
|
{
|
|
81442
82832
|
"in": "query",
|
|
81443
82833
|
"name": "objectType",
|
|
81444
|
-
"required":
|
|
82834
|
+
"required": false,
|
|
81445
82835
|
"schema": {
|
|
81446
82836
|
"$ref": "#/components/schemas/CrmObjectType"
|
|
81447
82837
|
}
|
|
@@ -81452,11 +82842,11 @@
|
|
|
81452
82842
|
"content": {
|
|
81453
82843
|
"application/json": {
|
|
81454
82844
|
"schema": {
|
|
81455
|
-
"$ref": "#/components/schemas/
|
|
82845
|
+
"$ref": "#/components/schemas/RecruitingListsResult"
|
|
81456
82846
|
}
|
|
81457
82847
|
}
|
|
81458
82848
|
},
|
|
81459
|
-
"description": "
|
|
82849
|
+
"description": "The lists I can see in each customer, newest first, each tagged with its customer."
|
|
81460
82850
|
},
|
|
81461
82851
|
"400": {
|
|
81462
82852
|
"content": {
|
|
@@ -81508,83 +82898,7 @@
|
|
|
81508
82898
|
},
|
|
81509
82899
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81510
82900
|
},
|
|
81511
|
-
"
|
|
81512
|
-
"content": {
|
|
81513
|
-
"application/json": {
|
|
81514
|
-
"schema": {
|
|
81515
|
-
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81516
|
-
}
|
|
81517
|
-
}
|
|
81518
|
-
},
|
|
81519
|
-
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81520
|
-
}
|
|
81521
|
-
},
|
|
81522
|
-
"summary": "List the workspace's record entity ids of an object type (ids only)",
|
|
81523
|
-
"tags": [
|
|
81524
|
-
"CRM"
|
|
81525
|
-
]
|
|
81526
|
-
}
|
|
81527
|
-
},
|
|
81528
|
-
"/v1/crm/records/mention-search": {
|
|
81529
|
-
"post": {
|
|
81530
|
-
"operationId": "searchCrmMentionRecords",
|
|
81531
|
-
"requestBody": {
|
|
81532
|
-
"content": {
|
|
81533
|
-
"application/json": {
|
|
81534
|
-
"schema": {
|
|
81535
|
-
"properties": {
|
|
81536
|
-
"q": {
|
|
81537
|
-
"default": "",
|
|
81538
|
-
"type": "string"
|
|
81539
|
-
}
|
|
81540
|
-
},
|
|
81541
|
-
"type": "object"
|
|
81542
|
-
}
|
|
81543
|
-
}
|
|
81544
|
-
}
|
|
81545
|
-
},
|
|
81546
|
-
"responses": {
|
|
81547
|
-
"200": {
|
|
81548
|
-
"content": {
|
|
81549
|
-
"application/json": {
|
|
81550
|
-
"schema": {
|
|
81551
|
-
"$ref": "#/components/schemas/CrmMentionSearch"
|
|
81552
|
-
}
|
|
81553
|
-
}
|
|
81554
|
-
},
|
|
81555
|
-
"description": "The viewer-visible records matching the query (or recent)."
|
|
81556
|
-
},
|
|
81557
|
-
"400": {
|
|
81558
|
-
"content": {
|
|
81559
|
-
"application/json": {
|
|
81560
|
-
"schema": {
|
|
81561
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
81562
|
-
}
|
|
81563
|
-
}
|
|
81564
|
-
},
|
|
81565
|
-
"description": "Validation error"
|
|
81566
|
-
},
|
|
81567
|
-
"401": {
|
|
81568
|
-
"content": {
|
|
81569
|
-
"application/json": {
|
|
81570
|
-
"schema": {
|
|
81571
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
81572
|
-
}
|
|
81573
|
-
}
|
|
81574
|
-
},
|
|
81575
|
-
"description": "Unauthorized"
|
|
81576
|
-
},
|
|
81577
|
-
"403": {
|
|
81578
|
-
"content": {
|
|
81579
|
-
"application/json": {
|
|
81580
|
-
"schema": {
|
|
81581
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
81582
|
-
}
|
|
81583
|
-
}
|
|
81584
|
-
},
|
|
81585
|
-
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
81586
|
-
},
|
|
81587
|
-
"404": {
|
|
82901
|
+
"502": {
|
|
81588
82902
|
"content": {
|
|
81589
82903
|
"application/json": {
|
|
81590
82904
|
"schema": {
|
|
@@ -81592,17 +82906,7 @@
|
|
|
81592
82906
|
}
|
|
81593
82907
|
}
|
|
81594
82908
|
},
|
|
81595
|
-
"description": "
|
|
81596
|
-
},
|
|
81597
|
-
"413": {
|
|
81598
|
-
"content": {
|
|
81599
|
-
"application/json": {
|
|
81600
|
-
"schema": {
|
|
81601
|
-
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
81602
|
-
}
|
|
81603
|
-
}
|
|
81604
|
-
},
|
|
81605
|
-
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
82909
|
+
"description": "Auth service unavailable."
|
|
81606
82910
|
},
|
|
81607
82911
|
"503": {
|
|
81608
82912
|
"content": {
|
|
@@ -81615,48 +82919,35 @@
|
|
|
81615
82919
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81616
82920
|
}
|
|
81617
82921
|
},
|
|
81618
|
-
"summary": "
|
|
82922
|
+
"summary": "My lists across every customer I work",
|
|
81619
82923
|
"tags": [
|
|
81620
82924
|
"CRM"
|
|
81621
82925
|
]
|
|
81622
82926
|
}
|
|
81623
82927
|
},
|
|
81624
|
-
"/v1/crm/
|
|
81625
|
-
"
|
|
81626
|
-
"operationId": "
|
|
81627
|
-
"
|
|
81628
|
-
|
|
81629
|
-
"
|
|
81630
|
-
|
|
81631
|
-
|
|
81632
|
-
|
|
81633
|
-
|
|
81634
|
-
"minLength": 1,
|
|
81635
|
-
"type": "string"
|
|
81636
|
-
},
|
|
81637
|
-
"entityType": {
|
|
81638
|
-
"$ref": "#/components/schemas/CrmEntityType"
|
|
81639
|
-
}
|
|
81640
|
-
},
|
|
81641
|
-
"required": [
|
|
81642
|
-
"entityId",
|
|
81643
|
-
"entityType"
|
|
81644
|
-
],
|
|
81645
|
-
"type": "object"
|
|
81646
|
-
}
|
|
82928
|
+
"/v1/crm/recruiting/people": {
|
|
82929
|
+
"get": {
|
|
82930
|
+
"operationId": "listRecruitingPeople",
|
|
82931
|
+
"parameters": [
|
|
82932
|
+
{
|
|
82933
|
+
"in": "query",
|
|
82934
|
+
"name": "objectType",
|
|
82935
|
+
"required": false,
|
|
82936
|
+
"schema": {
|
|
82937
|
+
"$ref": "#/components/schemas/CrmObjectType"
|
|
81647
82938
|
}
|
|
81648
82939
|
}
|
|
81649
|
-
|
|
82940
|
+
],
|
|
81650
82941
|
"responses": {
|
|
81651
82942
|
"200": {
|
|
81652
82943
|
"content": {
|
|
81653
82944
|
"application/json": {
|
|
81654
82945
|
"schema": {
|
|
81655
|
-
"$ref": "#/components/schemas/
|
|
82946
|
+
"$ref": "#/components/schemas/RecruitingPeopleResult"
|
|
81656
82947
|
}
|
|
81657
82948
|
}
|
|
81658
82949
|
},
|
|
81659
|
-
"description": "
|
|
82950
|
+
"description": "Records whose working owner is me, most recently active first, each tagged with its customer."
|
|
81660
82951
|
},
|
|
81661
82952
|
"400": {
|
|
81662
82953
|
"content": {
|
|
@@ -81708,6 +82999,16 @@
|
|
|
81708
82999
|
},
|
|
81709
83000
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81710
83001
|
},
|
|
83002
|
+
"502": {
|
|
83003
|
+
"content": {
|
|
83004
|
+
"application/json": {
|
|
83005
|
+
"schema": {
|
|
83006
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
83007
|
+
}
|
|
83008
|
+
}
|
|
83009
|
+
},
|
|
83010
|
+
"description": "Auth service unavailable."
|
|
83011
|
+
},
|
|
81711
83012
|
"503": {
|
|
81712
83013
|
"content": {
|
|
81713
83014
|
"application/json": {
|
|
@@ -81719,28 +83020,28 @@
|
|
|
81719
83020
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81720
83021
|
}
|
|
81721
83022
|
},
|
|
81722
|
-
"summary": "
|
|
83023
|
+
"summary": "Records I own across every customer I work",
|
|
81723
83024
|
"tags": [
|
|
81724
83025
|
"CRM"
|
|
81725
83026
|
]
|
|
81726
83027
|
}
|
|
81727
83028
|
},
|
|
81728
|
-
"/v1/crm/
|
|
83029
|
+
"/v1/crm/recruiting/people/search": {
|
|
81729
83030
|
"post": {
|
|
81730
|
-
"operationId": "
|
|
83031
|
+
"operationId": "searchRecruitingPeople",
|
|
81731
83032
|
"requestBody": {
|
|
81732
83033
|
"content": {
|
|
81733
83034
|
"application/json": {
|
|
81734
83035
|
"schema": {
|
|
81735
83036
|
"properties": {
|
|
81736
|
-
"
|
|
81737
|
-
"maxLength":
|
|
83037
|
+
"q": {
|
|
83038
|
+
"maxLength": 200,
|
|
81738
83039
|
"minLength": 1,
|
|
81739
83040
|
"type": "string"
|
|
81740
83041
|
}
|
|
81741
83042
|
},
|
|
81742
83043
|
"required": [
|
|
81743
|
-
"
|
|
83044
|
+
"q"
|
|
81744
83045
|
],
|
|
81745
83046
|
"type": "object"
|
|
81746
83047
|
}
|
|
@@ -81752,11 +83053,11 @@
|
|
|
81752
83053
|
"content": {
|
|
81753
83054
|
"application/json": {
|
|
81754
83055
|
"schema": {
|
|
81755
|
-
"$ref": "#/components/schemas/
|
|
83056
|
+
"$ref": "#/components/schemas/RecruitingPeopleSearchResult"
|
|
81756
83057
|
}
|
|
81757
83058
|
}
|
|
81758
83059
|
},
|
|
81759
|
-
"description": "
|
|
83060
|
+
"description": "Name-first matches, up to 10 per customer, interleaved so no one customer crowds out the rest."
|
|
81760
83061
|
},
|
|
81761
83062
|
"400": {
|
|
81762
83063
|
"content": {
|
|
@@ -81808,6 +83109,16 @@
|
|
|
81808
83109
|
},
|
|
81809
83110
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81810
83111
|
},
|
|
83112
|
+
"502": {
|
|
83113
|
+
"content": {
|
|
83114
|
+
"application/json": {
|
|
83115
|
+
"schema": {
|
|
83116
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
83117
|
+
}
|
|
83118
|
+
}
|
|
83119
|
+
},
|
|
83120
|
+
"description": "Auth service unavailable."
|
|
83121
|
+
},
|
|
81811
83122
|
"503": {
|
|
81812
83123
|
"content": {
|
|
81813
83124
|
"application/json": {
|
|
@@ -81819,48 +83130,25 @@
|
|
|
81819
83130
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81820
83131
|
}
|
|
81821
83132
|
},
|
|
81822
|
-
"summary": "
|
|
83133
|
+
"summary": "Search the records I can see across every customer I work",
|
|
81823
83134
|
"tags": [
|
|
81824
83135
|
"CRM"
|
|
81825
83136
|
]
|
|
81826
83137
|
}
|
|
81827
83138
|
},
|
|
81828
|
-
"/v1/crm/
|
|
81829
|
-
"
|
|
81830
|
-
"operationId": "
|
|
81831
|
-
"requestBody": {
|
|
81832
|
-
"content": {
|
|
81833
|
-
"application/json": {
|
|
81834
|
-
"schema": {
|
|
81835
|
-
"properties": {
|
|
81836
|
-
"entityId": {
|
|
81837
|
-
"minLength": 1,
|
|
81838
|
-
"type": "string"
|
|
81839
|
-
},
|
|
81840
|
-
"organizationId": {
|
|
81841
|
-
"minLength": 1,
|
|
81842
|
-
"type": "string"
|
|
81843
|
-
}
|
|
81844
|
-
},
|
|
81845
|
-
"required": [
|
|
81846
|
-
"organizationId",
|
|
81847
|
-
"entityId"
|
|
81848
|
-
],
|
|
81849
|
-
"type": "object"
|
|
81850
|
-
}
|
|
81851
|
-
}
|
|
81852
|
-
}
|
|
81853
|
-
},
|
|
83139
|
+
"/v1/crm/recruiting/queue": {
|
|
83140
|
+
"get": {
|
|
83141
|
+
"operationId": "getRecruitingQueue",
|
|
81854
83142
|
"responses": {
|
|
81855
83143
|
"200": {
|
|
81856
83144
|
"content": {
|
|
81857
83145
|
"application/json": {
|
|
81858
83146
|
"schema": {
|
|
81859
|
-
"$ref": "#/components/schemas/
|
|
83147
|
+
"$ref": "#/components/schemas/RecruitingQueueResult"
|
|
81860
83148
|
}
|
|
81861
83149
|
}
|
|
81862
83150
|
},
|
|
81863
|
-
"description": "
|
|
83151
|
+
"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."
|
|
81864
83152
|
},
|
|
81865
83153
|
"400": {
|
|
81866
83154
|
"content": {
|
|
@@ -81912,16 +83200,6 @@
|
|
|
81912
83200
|
},
|
|
81913
83201
|
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
81914
83202
|
},
|
|
81915
|
-
"422": {
|
|
81916
|
-
"content": {
|
|
81917
|
-
"application/json": {
|
|
81918
|
-
"schema": {
|
|
81919
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
81920
|
-
}
|
|
81921
|
-
}
|
|
81922
|
-
},
|
|
81923
|
-
"description": "The record has no owner/admin to notify."
|
|
81924
|
-
},
|
|
81925
83203
|
"502": {
|
|
81926
83204
|
"content": {
|
|
81927
83205
|
"application/json": {
|
|
@@ -81930,114 +83208,7 @@
|
|
|
81930
83208
|
}
|
|
81931
83209
|
}
|
|
81932
83210
|
},
|
|
81933
|
-
"description": "
|
|
81934
|
-
},
|
|
81935
|
-
"503": {
|
|
81936
|
-
"content": {
|
|
81937
|
-
"application/json": {
|
|
81938
|
-
"schema": {
|
|
81939
|
-
"$ref": "#/components/schemas/SearchUnavailable"
|
|
81940
|
-
}
|
|
81941
|
-
}
|
|
81942
|
-
},
|
|
81943
|
-
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
81944
|
-
}
|
|
81945
|
-
},
|
|
81946
|
-
"summary": "Ask a record's owner to share it (membership-gated, notify-only)",
|
|
81947
|
-
"tags": [
|
|
81948
|
-
"CRM"
|
|
81949
|
-
]
|
|
81950
|
-
}
|
|
81951
|
-
},
|
|
81952
|
-
"/v1/crm/records/search": {
|
|
81953
|
-
"post": {
|
|
81954
|
-
"operationId": "searchCrmRecords",
|
|
81955
|
-
"requestBody": {
|
|
81956
|
-
"content": {
|
|
81957
|
-
"application/json": {
|
|
81958
|
-
"schema": {
|
|
81959
|
-
"properties": {
|
|
81960
|
-
"listId": {
|
|
81961
|
-
"description": "Scope to one list's members; omit for the full CRM.",
|
|
81962
|
-
"type": "string"
|
|
81963
|
-
},
|
|
81964
|
-
"objectType": {
|
|
81965
|
-
"$ref": "#/components/schemas/CrmObjectType"
|
|
81966
|
-
},
|
|
81967
|
-
"q": {
|
|
81968
|
-
"description": "Free-text query.",
|
|
81969
|
-
"type": "string"
|
|
81970
|
-
}
|
|
81971
|
-
},
|
|
81972
|
-
"required": [
|
|
81973
|
-
"objectType",
|
|
81974
|
-
"q"
|
|
81975
|
-
],
|
|
81976
|
-
"type": "object"
|
|
81977
|
-
}
|
|
81978
|
-
}
|
|
81979
|
-
}
|
|
81980
|
-
},
|
|
81981
|
-
"responses": {
|
|
81982
|
-
"200": {
|
|
81983
|
-
"content": {
|
|
81984
|
-
"application/json": {
|
|
81985
|
-
"schema": {
|
|
81986
|
-
"$ref": "#/components/schemas/CrmRecordSearchResult"
|
|
81987
|
-
}
|
|
81988
|
-
}
|
|
81989
|
-
},
|
|
81990
|
-
"description": "The matching namespaced entity ids."
|
|
81991
|
-
},
|
|
81992
|
-
"400": {
|
|
81993
|
-
"content": {
|
|
81994
|
-
"application/json": {
|
|
81995
|
-
"schema": {
|
|
81996
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
81997
|
-
}
|
|
81998
|
-
}
|
|
81999
|
-
},
|
|
82000
|
-
"description": "Validation error"
|
|
82001
|
-
},
|
|
82002
|
-
"401": {
|
|
82003
|
-
"content": {
|
|
82004
|
-
"application/json": {
|
|
82005
|
-
"schema": {
|
|
82006
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
82007
|
-
}
|
|
82008
|
-
}
|
|
82009
|
-
},
|
|
82010
|
-
"description": "Unauthorized"
|
|
82011
|
-
},
|
|
82012
|
-
"403": {
|
|
82013
|
-
"content": {
|
|
82014
|
-
"application/json": {
|
|
82015
|
-
"schema": {
|
|
82016
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
82017
|
-
}
|
|
82018
|
-
}
|
|
82019
|
-
},
|
|
82020
|
-
"description": "Forbidden (authenticated, but missing required context — e.g. no active organization)"
|
|
82021
|
-
},
|
|
82022
|
-
"404": {
|
|
82023
|
-
"content": {
|
|
82024
|
-
"application/json": {
|
|
82025
|
-
"schema": {
|
|
82026
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
82027
|
-
}
|
|
82028
|
-
}
|
|
82029
|
-
},
|
|
82030
|
-
"description": "Not found"
|
|
82031
|
-
},
|
|
82032
|
-
"413": {
|
|
82033
|
-
"content": {
|
|
82034
|
-
"application/json": {
|
|
82035
|
-
"schema": {
|
|
82036
|
-
"$ref": "#/components/schemas/PayloadTooLarge"
|
|
82037
|
-
}
|
|
82038
|
-
}
|
|
82039
|
-
},
|
|
82040
|
-
"description": "Response payload too large — detail endpoint capped to fit Lambda response limits"
|
|
83211
|
+
"description": "Auth service unavailable."
|
|
82041
83212
|
},
|
|
82042
83213
|
"503": {
|
|
82043
83214
|
"content": {
|
|
@@ -82050,7 +83221,7 @@
|
|
|
82050
83221
|
"description": "Search timed out or the cluster is overloaded — retry after `Retry-After` seconds."
|
|
82051
83222
|
}
|
|
82052
83223
|
},
|
|
82053
|
-
"summary": "
|
|
83224
|
+
"summary": "My open tasks and scheduled meetings across every customer I work",
|
|
82054
83225
|
"tags": [
|
|
82055
83226
|
"CRM"
|
|
82056
83227
|
]
|
|
@@ -84154,6 +85325,20 @@
|
|
|
84154
85325
|
"type": "string"
|
|
84155
85326
|
}
|
|
84156
85327
|
},
|
|
85328
|
+
{
|
|
85329
|
+
"description": "Only files you pinned.",
|
|
85330
|
+
"in": "query",
|
|
85331
|
+
"name": "pinned",
|
|
85332
|
+
"required": false,
|
|
85333
|
+
"schema": {
|
|
85334
|
+
"description": "Only files you pinned.",
|
|
85335
|
+
"enum": [
|
|
85336
|
+
"true",
|
|
85337
|
+
"false"
|
|
85338
|
+
],
|
|
85339
|
+
"type": "string"
|
|
85340
|
+
}
|
|
85341
|
+
},
|
|
84157
85342
|
{
|
|
84158
85343
|
"description": "`org` lists every file in the organization (organization admins only).",
|
|
84159
85344
|
"in": "query",
|
|
@@ -84758,6 +85943,144 @@
|
|
|
84758
85943
|
]
|
|
84759
85944
|
}
|
|
84760
85945
|
},
|
|
85946
|
+
"/v1/files/references": {
|
|
85947
|
+
"post": {
|
|
85948
|
+
"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.",
|
|
85949
|
+
"operationId": "createFileReference",
|
|
85950
|
+
"requestBody": {
|
|
85951
|
+
"content": {
|
|
85952
|
+
"application/json": {
|
|
85953
|
+
"schema": {
|
|
85954
|
+
"$ref": "#/components/schemas/FileReferenceCreate"
|
|
85955
|
+
}
|
|
85956
|
+
}
|
|
85957
|
+
},
|
|
85958
|
+
"required": true
|
|
85959
|
+
},
|
|
85960
|
+
"responses": {
|
|
85961
|
+
"200": {
|
|
85962
|
+
"content": {
|
|
85963
|
+
"application/json": {
|
|
85964
|
+
"schema": {
|
|
85965
|
+
"properties": {
|
|
85966
|
+
"data": {
|
|
85967
|
+
"$ref": "#/components/schemas/File"
|
|
85968
|
+
}
|
|
85969
|
+
},
|
|
85970
|
+
"required": [
|
|
85971
|
+
"data"
|
|
85972
|
+
],
|
|
85973
|
+
"type": "object"
|
|
85974
|
+
}
|
|
85975
|
+
}
|
|
85976
|
+
},
|
|
85977
|
+
"description": "Your existing entry, updated"
|
|
85978
|
+
},
|
|
85979
|
+
"201": {
|
|
85980
|
+
"content": {
|
|
85981
|
+
"application/json": {
|
|
85982
|
+
"schema": {
|
|
85983
|
+
"properties": {
|
|
85984
|
+
"data": {
|
|
85985
|
+
"$ref": "#/components/schemas/File"
|
|
85986
|
+
}
|
|
85987
|
+
},
|
|
85988
|
+
"required": [
|
|
85989
|
+
"data"
|
|
85990
|
+
],
|
|
85991
|
+
"type": "object"
|
|
85992
|
+
}
|
|
85993
|
+
}
|
|
85994
|
+
},
|
|
85995
|
+
"description": "The new entry"
|
|
85996
|
+
},
|
|
85997
|
+
"400": {
|
|
85998
|
+
"content": {
|
|
85999
|
+
"application/json": {
|
|
86000
|
+
"schema": {
|
|
86001
|
+
"$ref": "#/components/schemas/FileError"
|
|
86002
|
+
}
|
|
86003
|
+
}
|
|
86004
|
+
},
|
|
86005
|
+
"description": "Invalid request"
|
|
86006
|
+
},
|
|
86007
|
+
"401": {
|
|
86008
|
+
"content": {
|
|
86009
|
+
"application/json": {
|
|
86010
|
+
"schema": {
|
|
86011
|
+
"$ref": "#/components/schemas/FileError"
|
|
86012
|
+
}
|
|
86013
|
+
}
|
|
86014
|
+
},
|
|
86015
|
+
"description": "Not signed in"
|
|
86016
|
+
},
|
|
86017
|
+
"403": {
|
|
86018
|
+
"content": {
|
|
86019
|
+
"application/json": {
|
|
86020
|
+
"schema": {
|
|
86021
|
+
"$ref": "#/components/schemas/FileError"
|
|
86022
|
+
}
|
|
86023
|
+
}
|
|
86024
|
+
},
|
|
86025
|
+
"description": "Not allowed"
|
|
86026
|
+
},
|
|
86027
|
+
"404": {
|
|
86028
|
+
"content": {
|
|
86029
|
+
"application/json": {
|
|
86030
|
+
"schema": {
|
|
86031
|
+
"$ref": "#/components/schemas/FileError"
|
|
86032
|
+
}
|
|
86033
|
+
}
|
|
86034
|
+
},
|
|
86035
|
+
"description": "No such file"
|
|
86036
|
+
},
|
|
86037
|
+
"409": {
|
|
86038
|
+
"content": {
|
|
86039
|
+
"application/json": {
|
|
86040
|
+
"schema": {
|
|
86041
|
+
"$ref": "#/components/schemas/FileError"
|
|
86042
|
+
}
|
|
86043
|
+
}
|
|
86044
|
+
},
|
|
86045
|
+
"description": "Conflicts with the file's state"
|
|
86046
|
+
},
|
|
86047
|
+
"422": {
|
|
86048
|
+
"content": {
|
|
86049
|
+
"application/json": {
|
|
86050
|
+
"schema": {
|
|
86051
|
+
"$ref": "#/components/schemas/FileError"
|
|
86052
|
+
}
|
|
86053
|
+
}
|
|
86054
|
+
},
|
|
86055
|
+
"description": "The upload did not match"
|
|
86056
|
+
},
|
|
86057
|
+
"502": {
|
|
86058
|
+
"content": {
|
|
86059
|
+
"application/json": {
|
|
86060
|
+
"schema": {
|
|
86061
|
+
"$ref": "#/components/schemas/FileError"
|
|
86062
|
+
}
|
|
86063
|
+
}
|
|
86064
|
+
},
|
|
86065
|
+
"description": "Could not check membership"
|
|
86066
|
+
},
|
|
86067
|
+
"503": {
|
|
86068
|
+
"content": {
|
|
86069
|
+
"application/json": {
|
|
86070
|
+
"schema": {
|
|
86071
|
+
"$ref": "#/components/schemas/FileError"
|
|
86072
|
+
}
|
|
86073
|
+
}
|
|
86074
|
+
},
|
|
86075
|
+
"description": "Storage or the access log unavailable"
|
|
86076
|
+
}
|
|
86077
|
+
},
|
|
86078
|
+
"summary": "Add a link to something in another app",
|
|
86079
|
+
"tags": [
|
|
86080
|
+
"Files"
|
|
86081
|
+
]
|
|
86082
|
+
}
|
|
86083
|
+
},
|
|
84761
86084
|
"/v1/files/search": {
|
|
84762
86085
|
"get": {
|
|
84763
86086
|
"description": "Files you can see whose name contains `q`, names that start with it first. Free.",
|
|
@@ -85188,7 +86511,7 @@
|
|
|
85188
86511
|
]
|
|
85189
86512
|
},
|
|
85190
86513
|
"patch": {
|
|
85191
|
-
"description": "The owner and editors can rename a file
|
|
86514
|
+
"description": "The owner and editors can rename a file, replace its `metadata`, or change where a link entry opens (`ref.url`). Free.",
|
|
85192
86515
|
"operationId": "updateFile",
|
|
85193
86516
|
"parameters": [
|
|
85194
86517
|
{
|
|
@@ -85466,16 +86789,312 @@
|
|
|
85466
86789
|
"description": "Storage or the access log unavailable"
|
|
85467
86790
|
}
|
|
85468
86791
|
},
|
|
85469
|
-
"summary": "A protected file's access log",
|
|
86792
|
+
"summary": "A protected file's access log",
|
|
86793
|
+
"tags": [
|
|
86794
|
+
"Files"
|
|
86795
|
+
]
|
|
86796
|
+
}
|
|
86797
|
+
},
|
|
86798
|
+
"/v1/files/{id}/agent-approvals": {
|
|
86799
|
+
"post": {
|
|
86800
|
+
"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.",
|
|
86801
|
+
"operationId": "approveFileForAgent",
|
|
86802
|
+
"parameters": [
|
|
86803
|
+
{
|
|
86804
|
+
"description": "The file's id.",
|
|
86805
|
+
"in": "path",
|
|
86806
|
+
"name": "id",
|
|
86807
|
+
"required": true,
|
|
86808
|
+
"schema": {
|
|
86809
|
+
"description": "The file's id.",
|
|
86810
|
+
"example": "file_3f2a…",
|
|
86811
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
86812
|
+
"type": "string"
|
|
86813
|
+
}
|
|
86814
|
+
}
|
|
86815
|
+
],
|
|
86816
|
+
"requestBody": {
|
|
86817
|
+
"content": {
|
|
86818
|
+
"application/json": {
|
|
86819
|
+
"schema": {
|
|
86820
|
+
"$ref": "#/components/schemas/FileAgentApprovalCreate"
|
|
86821
|
+
}
|
|
86822
|
+
}
|
|
86823
|
+
},
|
|
86824
|
+
"required": true
|
|
86825
|
+
},
|
|
86826
|
+
"responses": {
|
|
86827
|
+
"201": {
|
|
86828
|
+
"content": {
|
|
86829
|
+
"application/json": {
|
|
86830
|
+
"schema": {
|
|
86831
|
+
"properties": {
|
|
86832
|
+
"data": {
|
|
86833
|
+
"properties": {
|
|
86834
|
+
"approvedAt": {
|
|
86835
|
+
"type": "string"
|
|
86836
|
+
},
|
|
86837
|
+
"chatId": {
|
|
86838
|
+
"type": "string"
|
|
86839
|
+
},
|
|
86840
|
+
"fileId": {
|
|
86841
|
+
"type": "string"
|
|
86842
|
+
},
|
|
86843
|
+
"userId": {
|
|
86844
|
+
"type": "string"
|
|
86845
|
+
}
|
|
86846
|
+
},
|
|
86847
|
+
"required": [
|
|
86848
|
+
"fileId",
|
|
86849
|
+
"chatId",
|
|
86850
|
+
"userId",
|
|
86851
|
+
"approvedAt"
|
|
86852
|
+
],
|
|
86853
|
+
"type": "object"
|
|
86854
|
+
}
|
|
86855
|
+
},
|
|
86856
|
+
"required": [
|
|
86857
|
+
"data"
|
|
86858
|
+
],
|
|
86859
|
+
"type": "object"
|
|
86860
|
+
}
|
|
86861
|
+
}
|
|
86862
|
+
},
|
|
86863
|
+
"description": "Approved"
|
|
86864
|
+
},
|
|
86865
|
+
"400": {
|
|
86866
|
+
"content": {
|
|
86867
|
+
"application/json": {
|
|
86868
|
+
"schema": {
|
|
86869
|
+
"$ref": "#/components/schemas/FileError"
|
|
86870
|
+
}
|
|
86871
|
+
}
|
|
86872
|
+
},
|
|
86873
|
+
"description": "Invalid request"
|
|
86874
|
+
},
|
|
86875
|
+
"401": {
|
|
86876
|
+
"content": {
|
|
86877
|
+
"application/json": {
|
|
86878
|
+
"schema": {
|
|
86879
|
+
"$ref": "#/components/schemas/FileError"
|
|
86880
|
+
}
|
|
86881
|
+
}
|
|
86882
|
+
},
|
|
86883
|
+
"description": "Not signed in"
|
|
86884
|
+
},
|
|
86885
|
+
"403": {
|
|
86886
|
+
"content": {
|
|
86887
|
+
"application/json": {
|
|
86888
|
+
"schema": {
|
|
86889
|
+
"$ref": "#/components/schemas/FileError"
|
|
86890
|
+
}
|
|
86891
|
+
}
|
|
86892
|
+
},
|
|
86893
|
+
"description": "Not allowed"
|
|
86894
|
+
},
|
|
86895
|
+
"404": {
|
|
86896
|
+
"content": {
|
|
86897
|
+
"application/json": {
|
|
86898
|
+
"schema": {
|
|
86899
|
+
"$ref": "#/components/schemas/FileError"
|
|
86900
|
+
}
|
|
86901
|
+
}
|
|
86902
|
+
},
|
|
86903
|
+
"description": "No such file"
|
|
86904
|
+
},
|
|
86905
|
+
"409": {
|
|
86906
|
+
"content": {
|
|
86907
|
+
"application/json": {
|
|
86908
|
+
"schema": {
|
|
86909
|
+
"$ref": "#/components/schemas/FileError"
|
|
86910
|
+
}
|
|
86911
|
+
}
|
|
86912
|
+
},
|
|
86913
|
+
"description": "Conflicts with the file's state"
|
|
86914
|
+
},
|
|
86915
|
+
"422": {
|
|
86916
|
+
"content": {
|
|
86917
|
+
"application/json": {
|
|
86918
|
+
"schema": {
|
|
86919
|
+
"$ref": "#/components/schemas/FileError"
|
|
86920
|
+
}
|
|
86921
|
+
}
|
|
86922
|
+
},
|
|
86923
|
+
"description": "The upload did not match"
|
|
86924
|
+
},
|
|
86925
|
+
"502": {
|
|
86926
|
+
"content": {
|
|
86927
|
+
"application/json": {
|
|
86928
|
+
"schema": {
|
|
86929
|
+
"$ref": "#/components/schemas/FileError"
|
|
86930
|
+
}
|
|
86931
|
+
}
|
|
86932
|
+
},
|
|
86933
|
+
"description": "Could not check membership"
|
|
86934
|
+
},
|
|
86935
|
+
"503": {
|
|
86936
|
+
"content": {
|
|
86937
|
+
"application/json": {
|
|
86938
|
+
"schema": {
|
|
86939
|
+
"$ref": "#/components/schemas/FileError"
|
|
86940
|
+
}
|
|
86941
|
+
}
|
|
86942
|
+
},
|
|
86943
|
+
"description": "Storage or the access log unavailable"
|
|
86944
|
+
}
|
|
86945
|
+
},
|
|
86946
|
+
"summary": "Let an agent open a protected file in one conversation",
|
|
86947
|
+
"tags": [
|
|
86948
|
+
"Files"
|
|
86949
|
+
]
|
|
86950
|
+
}
|
|
86951
|
+
},
|
|
86952
|
+
"/v1/files/{id}/complete": {
|
|
86953
|
+
"post": {
|
|
86954
|
+
"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.",
|
|
86955
|
+
"operationId": "completeFile",
|
|
86956
|
+
"parameters": [
|
|
86957
|
+
{
|
|
86958
|
+
"description": "The file's id.",
|
|
86959
|
+
"in": "path",
|
|
86960
|
+
"name": "id",
|
|
86961
|
+
"required": true,
|
|
86962
|
+
"schema": {
|
|
86963
|
+
"description": "The file's id.",
|
|
86964
|
+
"example": "file_3f2a…",
|
|
86965
|
+
"pattern": "^file_[0-9a-f]{32}$",
|
|
86966
|
+
"type": "string"
|
|
86967
|
+
}
|
|
86968
|
+
}
|
|
86969
|
+
],
|
|
86970
|
+
"responses": {
|
|
86971
|
+
"200": {
|
|
86972
|
+
"content": {
|
|
86973
|
+
"application/json": {
|
|
86974
|
+
"schema": {
|
|
86975
|
+
"properties": {
|
|
86976
|
+
"data": {
|
|
86977
|
+
"$ref": "#/components/schemas/File"
|
|
86978
|
+
}
|
|
86979
|
+
},
|
|
86980
|
+
"required": [
|
|
86981
|
+
"data"
|
|
86982
|
+
],
|
|
86983
|
+
"type": "object"
|
|
86984
|
+
}
|
|
86985
|
+
}
|
|
86986
|
+
},
|
|
86987
|
+
"description": "The file is ready"
|
|
86988
|
+
},
|
|
86989
|
+
"202": {
|
|
86990
|
+
"content": {
|
|
86991
|
+
"application/json": {
|
|
86992
|
+
"schema": {
|
|
86993
|
+
"properties": {
|
|
86994
|
+
"data": {
|
|
86995
|
+
"$ref": "#/components/schemas/File"
|
|
86996
|
+
}
|
|
86997
|
+
},
|
|
86998
|
+
"required": [
|
|
86999
|
+
"data"
|
|
87000
|
+
],
|
|
87001
|
+
"type": "object"
|
|
87002
|
+
}
|
|
87003
|
+
}
|
|
87004
|
+
},
|
|
87005
|
+
"description": "The file is being scanned"
|
|
87006
|
+
},
|
|
87007
|
+
"400": {
|
|
87008
|
+
"content": {
|
|
87009
|
+
"application/json": {
|
|
87010
|
+
"schema": {
|
|
87011
|
+
"$ref": "#/components/schemas/FileError"
|
|
87012
|
+
}
|
|
87013
|
+
}
|
|
87014
|
+
},
|
|
87015
|
+
"description": "Invalid request"
|
|
87016
|
+
},
|
|
87017
|
+
"401": {
|
|
87018
|
+
"content": {
|
|
87019
|
+
"application/json": {
|
|
87020
|
+
"schema": {
|
|
87021
|
+
"$ref": "#/components/schemas/FileError"
|
|
87022
|
+
}
|
|
87023
|
+
}
|
|
87024
|
+
},
|
|
87025
|
+
"description": "Not signed in"
|
|
87026
|
+
},
|
|
87027
|
+
"403": {
|
|
87028
|
+
"content": {
|
|
87029
|
+
"application/json": {
|
|
87030
|
+
"schema": {
|
|
87031
|
+
"$ref": "#/components/schemas/FileError"
|
|
87032
|
+
}
|
|
87033
|
+
}
|
|
87034
|
+
},
|
|
87035
|
+
"description": "Not allowed"
|
|
87036
|
+
},
|
|
87037
|
+
"404": {
|
|
87038
|
+
"content": {
|
|
87039
|
+
"application/json": {
|
|
87040
|
+
"schema": {
|
|
87041
|
+
"$ref": "#/components/schemas/FileError"
|
|
87042
|
+
}
|
|
87043
|
+
}
|
|
87044
|
+
},
|
|
87045
|
+
"description": "No such file"
|
|
87046
|
+
},
|
|
87047
|
+
"409": {
|
|
87048
|
+
"content": {
|
|
87049
|
+
"application/json": {
|
|
87050
|
+
"schema": {
|
|
87051
|
+
"$ref": "#/components/schemas/FileError"
|
|
87052
|
+
}
|
|
87053
|
+
}
|
|
87054
|
+
},
|
|
87055
|
+
"description": "Conflicts with the file's state"
|
|
87056
|
+
},
|
|
87057
|
+
"422": {
|
|
87058
|
+
"content": {
|
|
87059
|
+
"application/json": {
|
|
87060
|
+
"schema": {
|
|
87061
|
+
"$ref": "#/components/schemas/FileError"
|
|
87062
|
+
}
|
|
87063
|
+
}
|
|
87064
|
+
},
|
|
87065
|
+
"description": "The upload did not match"
|
|
87066
|
+
},
|
|
87067
|
+
"502": {
|
|
87068
|
+
"content": {
|
|
87069
|
+
"application/json": {
|
|
87070
|
+
"schema": {
|
|
87071
|
+
"$ref": "#/components/schemas/FileError"
|
|
87072
|
+
}
|
|
87073
|
+
}
|
|
87074
|
+
},
|
|
87075
|
+
"description": "Could not check membership"
|
|
87076
|
+
},
|
|
87077
|
+
"503": {
|
|
87078
|
+
"content": {
|
|
87079
|
+
"application/json": {
|
|
87080
|
+
"schema": {
|
|
87081
|
+
"$ref": "#/components/schemas/FileError"
|
|
87082
|
+
}
|
|
87083
|
+
}
|
|
87084
|
+
},
|
|
87085
|
+
"description": "Storage or the access log unavailable"
|
|
87086
|
+
}
|
|
87087
|
+
},
|
|
87088
|
+
"summary": "Finish an upload",
|
|
85470
87089
|
"tags": [
|
|
85471
87090
|
"Files"
|
|
85472
87091
|
]
|
|
85473
87092
|
}
|
|
85474
87093
|
},
|
|
85475
|
-
"/v1/files/{id}/
|
|
85476
|
-
"
|
|
85477
|
-
"description": "
|
|
85478
|
-
"operationId": "
|
|
87094
|
+
"/v1/files/{id}/content": {
|
|
87095
|
+
"get": {
|
|
87096
|
+
"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.",
|
|
87097
|
+
"operationId": "getFileContent",
|
|
85479
87098
|
"parameters": [
|
|
85480
87099
|
{
|
|
85481
87100
|
"description": "The file's id.",
|
|
@@ -85488,44 +87107,59 @@
|
|
|
85488
87107
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
85489
87108
|
"type": "string"
|
|
85490
87109
|
}
|
|
85491
|
-
}
|
|
85492
|
-
|
|
85493
|
-
|
|
85494
|
-
|
|
85495
|
-
"
|
|
85496
|
-
|
|
85497
|
-
|
|
85498
|
-
|
|
87110
|
+
},
|
|
87111
|
+
{
|
|
87112
|
+
"in": "query",
|
|
87113
|
+
"name": "disposition",
|
|
87114
|
+
"required": false,
|
|
87115
|
+
"schema": {
|
|
87116
|
+
"default": "attachment",
|
|
87117
|
+
"enum": [
|
|
87118
|
+
"inline",
|
|
87119
|
+
"attachment"
|
|
87120
|
+
],
|
|
87121
|
+
"type": "string"
|
|
85499
87122
|
}
|
|
85500
87123
|
},
|
|
85501
|
-
|
|
85502
|
-
|
|
87124
|
+
{
|
|
87125
|
+
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87126
|
+
"in": "query",
|
|
87127
|
+
"name": "redirect",
|
|
87128
|
+
"required": false,
|
|
87129
|
+
"schema": {
|
|
87130
|
+
"default": "true",
|
|
87131
|
+
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
87132
|
+
"enum": [
|
|
87133
|
+
"true",
|
|
87134
|
+
"false"
|
|
87135
|
+
],
|
|
87136
|
+
"type": "string"
|
|
87137
|
+
}
|
|
87138
|
+
}
|
|
87139
|
+
],
|
|
85503
87140
|
"responses": {
|
|
85504
|
-
"
|
|
87141
|
+
"200": {
|
|
85505
87142
|
"content": {
|
|
85506
87143
|
"application/json": {
|
|
85507
87144
|
"schema": {
|
|
85508
87145
|
"properties": {
|
|
85509
87146
|
"data": {
|
|
85510
87147
|
"properties": {
|
|
85511
|
-
"
|
|
85512
|
-
"type": "string"
|
|
85513
|
-
},
|
|
85514
|
-
"chatId": {
|
|
87148
|
+
"expiresAt": {
|
|
85515
87149
|
"type": "string"
|
|
85516
87150
|
},
|
|
85517
|
-
"
|
|
85518
|
-
"
|
|
87151
|
+
"oneTime": {
|
|
87152
|
+
"description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
|
|
87153
|
+
"type": "boolean"
|
|
85519
87154
|
},
|
|
85520
|
-
"
|
|
87155
|
+
"url": {
|
|
85521
87156
|
"type": "string"
|
|
85522
87157
|
}
|
|
85523
87158
|
},
|
|
85524
87159
|
"required": [
|
|
85525
|
-
"
|
|
85526
|
-
"
|
|
85527
|
-
"
|
|
85528
|
-
"approvedAt"
|
|
87160
|
+
"url",
|
|
87161
|
+
"expiresAt",
|
|
87162
|
+
"oneTime"
|
|
85529
87163
|
],
|
|
85530
87164
|
"type": "object"
|
|
85531
87165
|
}
|
|
@@ -85537,7 +87171,18 @@
|
|
|
85537
87171
|
}
|
|
85538
87172
|
}
|
|
85539
87173
|
},
|
|
85540
|
-
"description": "
|
|
87174
|
+
"description": "The download link (with `redirect=false`)"
|
|
87175
|
+
},
|
|
87176
|
+
"302": {
|
|
87177
|
+
"description": "Redirect to the download link",
|
|
87178
|
+
"headers": {
|
|
87179
|
+
"location": {
|
|
87180
|
+
"required": true,
|
|
87181
|
+
"schema": {
|
|
87182
|
+
"type": "string"
|
|
87183
|
+
}
|
|
87184
|
+
}
|
|
87185
|
+
}
|
|
85541
87186
|
},
|
|
85542
87187
|
"400": {
|
|
85543
87188
|
"content": {
|
|
@@ -85620,16 +87265,16 @@
|
|
|
85620
87265
|
"description": "Storage or the access log unavailable"
|
|
85621
87266
|
}
|
|
85622
87267
|
},
|
|
85623
|
-
"summary": "
|
|
87268
|
+
"summary": "Open a file",
|
|
85624
87269
|
"tags": [
|
|
85625
87270
|
"Files"
|
|
85626
87271
|
]
|
|
85627
87272
|
}
|
|
85628
87273
|
},
|
|
85629
|
-
"/v1/files/{id}/
|
|
85630
|
-
"
|
|
85631
|
-
"description": "
|
|
85632
|
-
"operationId": "
|
|
87274
|
+
"/v1/files/{id}/links": {
|
|
87275
|
+
"delete": {
|
|
87276
|
+
"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.",
|
|
87277
|
+
"operationId": "unlinkFile",
|
|
85633
87278
|
"parameters": [
|
|
85634
87279
|
{
|
|
85635
87280
|
"description": "The file's id.",
|
|
@@ -85642,6 +87287,19 @@
|
|
|
85642
87287
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
85643
87288
|
"type": "string"
|
|
85644
87289
|
}
|
|
87290
|
+
},
|
|
87291
|
+
{
|
|
87292
|
+
"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.",
|
|
87293
|
+
"in": "query",
|
|
87294
|
+
"name": "target",
|
|
87295
|
+
"required": true,
|
|
87296
|
+
"schema": {
|
|
87297
|
+
"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.",
|
|
87298
|
+
"example": "ask_chat:chat_123",
|
|
87299
|
+
"maxLength": 220,
|
|
87300
|
+
"minLength": 3,
|
|
87301
|
+
"type": "string"
|
|
87302
|
+
}
|
|
85645
87303
|
}
|
|
85646
87304
|
],
|
|
85647
87305
|
"responses": {
|
|
@@ -85651,25 +87309,10 @@
|
|
|
85651
87309
|
"schema": {
|
|
85652
87310
|
"properties": {
|
|
85653
87311
|
"data": {
|
|
85654
|
-
"
|
|
85655
|
-
|
|
85656
|
-
|
|
85657
|
-
|
|
85658
|
-
"data"
|
|
85659
|
-
],
|
|
85660
|
-
"type": "object"
|
|
85661
|
-
}
|
|
85662
|
-
}
|
|
85663
|
-
},
|
|
85664
|
-
"description": "The file is ready"
|
|
85665
|
-
},
|
|
85666
|
-
"202": {
|
|
85667
|
-
"content": {
|
|
85668
|
-
"application/json": {
|
|
85669
|
-
"schema": {
|
|
85670
|
-
"properties": {
|
|
85671
|
-
"data": {
|
|
85672
|
-
"$ref": "#/components/schemas/File"
|
|
87312
|
+
"items": {
|
|
87313
|
+
"type": "string"
|
|
87314
|
+
},
|
|
87315
|
+
"type": "array"
|
|
85673
87316
|
}
|
|
85674
87317
|
},
|
|
85675
87318
|
"required": [
|
|
@@ -85679,7 +87322,7 @@
|
|
|
85679
87322
|
}
|
|
85680
87323
|
}
|
|
85681
87324
|
},
|
|
85682
|
-
"description": "The file
|
|
87325
|
+
"description": "The file's links"
|
|
85683
87326
|
},
|
|
85684
87327
|
"400": {
|
|
85685
87328
|
"content": {
|
|
@@ -85762,16 +87405,14 @@
|
|
|
85762
87405
|
"description": "Storage or the access log unavailable"
|
|
85763
87406
|
}
|
|
85764
87407
|
},
|
|
85765
|
-
"summary": "
|
|
87408
|
+
"summary": "Detach a file",
|
|
85766
87409
|
"tags": [
|
|
85767
87410
|
"Files"
|
|
85768
87411
|
]
|
|
85769
|
-
}
|
|
85770
|
-
|
|
85771
|
-
|
|
85772
|
-
|
|
85773
|
-
"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.",
|
|
85774
|
-
"operationId": "getFileContent",
|
|
87412
|
+
},
|
|
87413
|
+
"post": {
|
|
87414
|
+
"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.",
|
|
87415
|
+
"operationId": "linkFile",
|
|
85775
87416
|
"parameters": [
|
|
85776
87417
|
{
|
|
85777
87418
|
"description": "The file's id.",
|
|
@@ -85784,36 +87425,18 @@
|
|
|
85784
87425
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
85785
87426
|
"type": "string"
|
|
85786
87427
|
}
|
|
85787
|
-
},
|
|
85788
|
-
{
|
|
85789
|
-
"in": "query",
|
|
85790
|
-
"name": "disposition",
|
|
85791
|
-
"required": false,
|
|
85792
|
-
"schema": {
|
|
85793
|
-
"default": "attachment",
|
|
85794
|
-
"enum": [
|
|
85795
|
-
"inline",
|
|
85796
|
-
"attachment"
|
|
85797
|
-
],
|
|
85798
|
-
"type": "string"
|
|
85799
|
-
}
|
|
85800
|
-
},
|
|
85801
|
-
{
|
|
85802
|
-
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
85803
|
-
"in": "query",
|
|
85804
|
-
"name": "redirect",
|
|
85805
|
-
"required": false,
|
|
85806
|
-
"schema": {
|
|
85807
|
-
"default": "true",
|
|
85808
|
-
"description": "`false` answers with the link as JSON instead of redirecting.",
|
|
85809
|
-
"enum": [
|
|
85810
|
-
"true",
|
|
85811
|
-
"false"
|
|
85812
|
-
],
|
|
85813
|
-
"type": "string"
|
|
85814
|
-
}
|
|
85815
87428
|
}
|
|
85816
87429
|
],
|
|
87430
|
+
"requestBody": {
|
|
87431
|
+
"content": {
|
|
87432
|
+
"application/json": {
|
|
87433
|
+
"schema": {
|
|
87434
|
+
"$ref": "#/components/schemas/FileLinkCreate"
|
|
87435
|
+
}
|
|
87436
|
+
}
|
|
87437
|
+
},
|
|
87438
|
+
"required": true
|
|
87439
|
+
},
|
|
85817
87440
|
"responses": {
|
|
85818
87441
|
"200": {
|
|
85819
87442
|
"content": {
|
|
@@ -85821,24 +87444,10 @@
|
|
|
85821
87444
|
"schema": {
|
|
85822
87445
|
"properties": {
|
|
85823
87446
|
"data": {
|
|
85824
|
-
"
|
|
85825
|
-
"
|
|
85826
|
-
"type": "string"
|
|
85827
|
-
},
|
|
85828
|
-
"oneTime": {
|
|
85829
|
-
"description": "`true` for a protected file: the link opens once, within 5 minutes, and only for you.",
|
|
85830
|
-
"type": "boolean"
|
|
85831
|
-
},
|
|
85832
|
-
"url": {
|
|
85833
|
-
"type": "string"
|
|
85834
|
-
}
|
|
87447
|
+
"items": {
|
|
87448
|
+
"type": "string"
|
|
85835
87449
|
},
|
|
85836
|
-
"
|
|
85837
|
-
"url",
|
|
85838
|
-
"expiresAt",
|
|
85839
|
-
"oneTime"
|
|
85840
|
-
],
|
|
85841
|
-
"type": "object"
|
|
87450
|
+
"type": "array"
|
|
85842
87451
|
}
|
|
85843
87452
|
},
|
|
85844
87453
|
"required": [
|
|
@@ -85848,18 +87457,7 @@
|
|
|
85848
87457
|
}
|
|
85849
87458
|
}
|
|
85850
87459
|
},
|
|
85851
|
-
"description": "The
|
|
85852
|
-
},
|
|
85853
|
-
"302": {
|
|
85854
|
-
"description": "Redirect to the download link",
|
|
85855
|
-
"headers": {
|
|
85856
|
-
"location": {
|
|
85857
|
-
"required": true,
|
|
85858
|
-
"schema": {
|
|
85859
|
-
"type": "string"
|
|
85860
|
-
}
|
|
85861
|
-
}
|
|
85862
|
-
}
|
|
87460
|
+
"description": "The file's links"
|
|
85863
87461
|
},
|
|
85864
87462
|
"400": {
|
|
85865
87463
|
"content": {
|
|
@@ -85942,16 +87540,16 @@
|
|
|
85942
87540
|
"description": "Storage or the access log unavailable"
|
|
85943
87541
|
}
|
|
85944
87542
|
},
|
|
85945
|
-
"summary": "
|
|
87543
|
+
"summary": "Attach a file to something",
|
|
85946
87544
|
"tags": [
|
|
85947
87545
|
"Files"
|
|
85948
87546
|
]
|
|
85949
87547
|
}
|
|
85950
87548
|
},
|
|
85951
|
-
"/v1/files/{id}/
|
|
87549
|
+
"/v1/files/{id}/pin": {
|
|
85952
87550
|
"delete": {
|
|
85953
|
-
"description": "
|
|
85954
|
-
"operationId": "
|
|
87551
|
+
"description": "Removes your pin. Succeeds when the file was not pinned. Free.",
|
|
87552
|
+
"operationId": "unpinFile",
|
|
85955
87553
|
"parameters": [
|
|
85956
87554
|
{
|
|
85957
87555
|
"description": "The file's id.",
|
|
@@ -85964,19 +87562,6 @@
|
|
|
85964
87562
|
"pattern": "^file_[0-9a-f]{32}$",
|
|
85965
87563
|
"type": "string"
|
|
85966
87564
|
}
|
|
85967
|
-
},
|
|
85968
|
-
{
|
|
85969
|
-
"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.",
|
|
85970
|
-
"in": "query",
|
|
85971
|
-
"name": "target",
|
|
85972
|
-
"required": true,
|
|
85973
|
-
"schema": {
|
|
85974
|
-
"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.",
|
|
85975
|
-
"example": "ask_chat:chat_123",
|
|
85976
|
-
"maxLength": 220,
|
|
85977
|
-
"minLength": 3,
|
|
85978
|
-
"type": "string"
|
|
85979
|
-
}
|
|
85980
87565
|
}
|
|
85981
87566
|
],
|
|
85982
87567
|
"responses": {
|
|
@@ -85986,10 +87571,7 @@
|
|
|
85986
87571
|
"schema": {
|
|
85987
87572
|
"properties": {
|
|
85988
87573
|
"data": {
|
|
85989
|
-
"
|
|
85990
|
-
"type": "string"
|
|
85991
|
-
},
|
|
85992
|
-
"type": "array"
|
|
87574
|
+
"$ref": "#/components/schemas/File"
|
|
85993
87575
|
}
|
|
85994
87576
|
},
|
|
85995
87577
|
"required": [
|
|
@@ -85999,7 +87581,7 @@
|
|
|
85999
87581
|
}
|
|
86000
87582
|
}
|
|
86001
87583
|
},
|
|
86002
|
-
"description": "The file
|
|
87584
|
+
"description": "The file"
|
|
86003
87585
|
},
|
|
86004
87586
|
"400": {
|
|
86005
87587
|
"content": {
|
|
@@ -86082,14 +87664,14 @@
|
|
|
86082
87664
|
"description": "Storage or the access log unavailable"
|
|
86083
87665
|
}
|
|
86084
87666
|
},
|
|
86085
|
-
"summary": "
|
|
87667
|
+
"summary": "Unpin a file",
|
|
86086
87668
|
"tags": [
|
|
86087
87669
|
"Files"
|
|
86088
87670
|
]
|
|
86089
87671
|
},
|
|
86090
|
-
"
|
|
86091
|
-
"description": "
|
|
86092
|
-
"operationId": "
|
|
87672
|
+
"put": {
|
|
87673
|
+
"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.",
|
|
87674
|
+
"operationId": "pinFile",
|
|
86093
87675
|
"parameters": [
|
|
86094
87676
|
{
|
|
86095
87677
|
"description": "The file's id.",
|
|
@@ -86104,16 +87686,6 @@
|
|
|
86104
87686
|
}
|
|
86105
87687
|
}
|
|
86106
87688
|
],
|
|
86107
|
-
"requestBody": {
|
|
86108
|
-
"content": {
|
|
86109
|
-
"application/json": {
|
|
86110
|
-
"schema": {
|
|
86111
|
-
"$ref": "#/components/schemas/FileLinkCreate"
|
|
86112
|
-
}
|
|
86113
|
-
}
|
|
86114
|
-
},
|
|
86115
|
-
"required": true
|
|
86116
|
-
},
|
|
86117
87689
|
"responses": {
|
|
86118
87690
|
"200": {
|
|
86119
87691
|
"content": {
|
|
@@ -86121,10 +87693,7 @@
|
|
|
86121
87693
|
"schema": {
|
|
86122
87694
|
"properties": {
|
|
86123
87695
|
"data": {
|
|
86124
|
-
"
|
|
86125
|
-
"type": "string"
|
|
86126
|
-
},
|
|
86127
|
-
"type": "array"
|
|
87696
|
+
"$ref": "#/components/schemas/File"
|
|
86128
87697
|
}
|
|
86129
87698
|
},
|
|
86130
87699
|
"required": [
|
|
@@ -86134,7 +87703,7 @@
|
|
|
86134
87703
|
}
|
|
86135
87704
|
}
|
|
86136
87705
|
},
|
|
86137
|
-
"description": "The file
|
|
87706
|
+
"description": "The file"
|
|
86138
87707
|
},
|
|
86139
87708
|
"400": {
|
|
86140
87709
|
"content": {
|
|
@@ -86217,7 +87786,7 @@
|
|
|
86217
87786
|
"description": "Storage or the access log unavailable"
|
|
86218
87787
|
}
|
|
86219
87788
|
},
|
|
86220
|
-
"summary": "
|
|
87789
|
+
"summary": "Pin a file",
|
|
86221
87790
|
"tags": [
|
|
86222
87791
|
"Files"
|
|
86223
87792
|
]
|
|
@@ -91520,7 +93089,7 @@
|
|
|
91520
93089
|
]
|
|
91521
93090
|
},
|
|
91522
93091
|
"post": {
|
|
91523
|
-
"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;
|
|
93092
|
+
"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.",
|
|
91524
93093
|
"operationId": "createMonitor",
|
|
91525
93094
|
"requestBody": {
|
|
91526
93095
|
"content": {
|
|
@@ -100950,7 +102519,7 @@
|
|
|
100950
102519
|
]
|
|
100951
102520
|
},
|
|
100952
102521
|
"post": {
|
|
100953
|
-
"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,
|
|
102522
|
+
"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`).",
|
|
100954
102523
|
"operationId": "createStudioJob",
|
|
100955
102524
|
"requestBody": {
|
|
100956
102525
|
"content": {
|
|
@@ -101416,7 +102985,7 @@
|
|
|
101416
102985
|
},
|
|
101417
102986
|
"/v1/studio/jobs/{name}/run": {
|
|
101418
102987
|
"post": {
|
|
101419
|
-
"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
|
|
102988
|
+
"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.",
|
|
101420
102989
|
"operationId": "runStudioJob",
|
|
101421
102990
|
"parameters": [
|
|
101422
102991
|
{
|