@talonic/docs 0.21.96 → 0.21.98
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/dist/content.js +1010 -166
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +1008 -166
- package/openapi.json +1004 -166
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1963,6 +1963,18 @@
|
|
|
1963
1963
|
],
|
|
1964
1964
|
"default": "extract",
|
|
1965
1965
|
"description": "`extract`: text only, for a following `POST /v1/extract`. `ingest`: full processing into workspace data."
|
|
1966
|
+
},
|
|
1967
|
+
"parties": {
|
|
1968
|
+
"type": "array",
|
|
1969
|
+
"maxItems": 500,
|
|
1970
|
+
"description": "The document's parties as your system has them, the same as `PUT /v1/documents/{id}/parties`. They decide the document's labels and so its place in the Collections tree.",
|
|
1971
|
+
"items": {
|
|
1972
|
+
"$ref": "#/components/schemas/DocumentParty"
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
"parties_complete": {
|
|
1976
|
+
"type": "boolean",
|
|
1977
|
+
"description": "`parties` names every party of the document."
|
|
1966
1978
|
}
|
|
1967
1979
|
}
|
|
1968
1980
|
}
|
|
@@ -57318,6 +57330,108 @@
|
|
|
57318
57330
|
}
|
|
57319
57331
|
}
|
|
57320
57332
|
},
|
|
57333
|
+
"/v1/sources/{id}/record-roles": {
|
|
57334
|
+
"get": {
|
|
57335
|
+
"operationId": "getSourceRecordRoles",
|
|
57336
|
+
"x-audience": "public",
|
|
57337
|
+
"x-required-scopes": [
|
|
57338
|
+
"read"
|
|
57339
|
+
],
|
|
57340
|
+
"summary": "Who reads the records of a connection",
|
|
57341
|
+
"description": "For a source whose records each belong to a person inside it (a CRM's deals, contacts and companies have an owner): whether the connection tells its readers apart, who its admins are, and the owners the source names with who each is in the workspace. An owner without a `member` is nobody in this workspace; their records, and records that name no owner (`unowned`), are read by the admins only. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `read`.\n",
|
|
57342
|
+
"tags": [
|
|
57343
|
+
"Sources"
|
|
57344
|
+
],
|
|
57345
|
+
"parameters": [
|
|
57346
|
+
{
|
|
57347
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
57348
|
+
}
|
|
57349
|
+
],
|
|
57350
|
+
"responses": {
|
|
57351
|
+
"200": {
|
|
57352
|
+
"description": "The roles of the connection.",
|
|
57353
|
+
"content": {
|
|
57354
|
+
"application/json": {
|
|
57355
|
+
"schema": {
|
|
57356
|
+
"$ref": "#/components/schemas/SourceRecordRoles"
|
|
57357
|
+
}
|
|
57358
|
+
}
|
|
57359
|
+
}
|
|
57360
|
+
},
|
|
57361
|
+
"403": {
|
|
57362
|
+
"$ref": "#/components/responses/Forbidden"
|
|
57363
|
+
},
|
|
57364
|
+
"404": {
|
|
57365
|
+
"$ref": "#/components/responses/NotFound"
|
|
57366
|
+
}
|
|
57367
|
+
}
|
|
57368
|
+
},
|
|
57369
|
+
"put": {
|
|
57370
|
+
"operationId": "setSourceRecordRoles",
|
|
57371
|
+
"x-audience": "public",
|
|
57372
|
+
"x-required-scopes": [
|
|
57373
|
+
"sources:write"
|
|
57374
|
+
],
|
|
57375
|
+
"summary": "Set who reads the records of a connection",
|
|
57376
|
+
"description": "With `enabled: true` the `admins` read every record of the source and everyone else reads only the records they own in it: a record is a person's when the source names their mail address as an owner and they are an active member with that address. With `enabled: false` everyone who reads the source reads all of its records. Switching it on needs at least one admin, each an active member, and a source that says whose its records are (`available`). What is built from the source's records follows within minutes; until then it reads as before the change. Allowed to the person who connected it or a member with the Integrations permission.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
|
|
57377
|
+
"tags": [
|
|
57378
|
+
"Sources"
|
|
57379
|
+
],
|
|
57380
|
+
"parameters": [
|
|
57381
|
+
{
|
|
57382
|
+
"$ref": "#/components/parameters/ResourceId"
|
|
57383
|
+
}
|
|
57384
|
+
],
|
|
57385
|
+
"requestBody": {
|
|
57386
|
+
"required": true,
|
|
57387
|
+
"content": {
|
|
57388
|
+
"application/json": {
|
|
57389
|
+
"schema": {
|
|
57390
|
+
"type": "object",
|
|
57391
|
+
"required": [
|
|
57392
|
+
"enabled"
|
|
57393
|
+
],
|
|
57394
|
+
"properties": {
|
|
57395
|
+
"enabled": {
|
|
57396
|
+
"type": "boolean"
|
|
57397
|
+
},
|
|
57398
|
+
"admins": {
|
|
57399
|
+
"type": "array",
|
|
57400
|
+
"maxItems": 200,
|
|
57401
|
+
"items": {
|
|
57402
|
+
"type": "string",
|
|
57403
|
+
"format": "uuid"
|
|
57404
|
+
},
|
|
57405
|
+
"description": "User ids of the admins. At least one when `enabled`."
|
|
57406
|
+
}
|
|
57407
|
+
}
|
|
57408
|
+
}
|
|
57409
|
+
}
|
|
57410
|
+
}
|
|
57411
|
+
},
|
|
57412
|
+
"responses": {
|
|
57413
|
+
"200": {
|
|
57414
|
+
"description": "The roles as they stand.",
|
|
57415
|
+
"content": {
|
|
57416
|
+
"application/json": {
|
|
57417
|
+
"schema": {
|
|
57418
|
+
"$ref": "#/components/schemas/SourceRecordRoles"
|
|
57419
|
+
}
|
|
57420
|
+
}
|
|
57421
|
+
}
|
|
57422
|
+
},
|
|
57423
|
+
"400": {
|
|
57424
|
+
"$ref": "#/components/responses/BadRequest"
|
|
57425
|
+
},
|
|
57426
|
+
"403": {
|
|
57427
|
+
"$ref": "#/components/responses/Forbidden"
|
|
57428
|
+
},
|
|
57429
|
+
"404": {
|
|
57430
|
+
"$ref": "#/components/responses/NotFound"
|
|
57431
|
+
}
|
|
57432
|
+
}
|
|
57433
|
+
}
|
|
57434
|
+
},
|
|
57321
57435
|
"/v1/sources/{id}/make-private": {
|
|
57322
57436
|
"post": {
|
|
57323
57437
|
"operationId": "makeSourceConnectionPrivate",
|
|
@@ -65896,61 +66010,42 @@
|
|
|
65896
66010
|
}
|
|
65897
66011
|
}
|
|
65898
66012
|
},
|
|
65899
|
-
"/v1/documents/
|
|
65900
|
-
"
|
|
65901
|
-
"operationId": "
|
|
66013
|
+
"/v1/documents/{id}/collections": {
|
|
66014
|
+
"get": {
|
|
66015
|
+
"operationId": "explainDocumentCollections",
|
|
65902
66016
|
"x-audience": "public",
|
|
65903
66017
|
"tags": [
|
|
65904
|
-
"
|
|
66018
|
+
"Collections"
|
|
65905
66019
|
],
|
|
65906
|
-
"summary": "
|
|
65907
|
-
"description": "
|
|
66020
|
+
"summary": "Explain a document's collections",
|
|
66021
|
+
"description": "Why the document sits where it does: each of its labels, whether it was derived or set by a person, with the evidence you may see behind it, and each collection it is in, with why (`rule`, `hand` or `held` by a limit). `pending` and `unresolved` say whether its labels are still settling. 404 when the key's person may not read the document. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
65908
66022
|
"security": [
|
|
65909
66023
|
{
|
|
65910
66024
|
"BearerAuth": []
|
|
65911
66025
|
}
|
|
65912
66026
|
],
|
|
65913
66027
|
"x-required-scopes": [
|
|
65914
|
-
"
|
|
66028
|
+
"read"
|
|
65915
66029
|
],
|
|
65916
|
-
"
|
|
65917
|
-
|
|
65918
|
-
|
|
65919
|
-
"
|
|
65920
|
-
|
|
65921
|
-
|
|
65922
|
-
|
|
65923
|
-
|
|
65924
|
-
"type": "string",
|
|
65925
|
-
"format": "binary",
|
|
65926
|
-
"description": "CSV with a header row."
|
|
65927
|
-
}
|
|
65928
|
-
},
|
|
65929
|
-
"required": [
|
|
65930
|
-
"file"
|
|
65931
|
-
]
|
|
65932
|
-
}
|
|
66030
|
+
"parameters": [
|
|
66031
|
+
{
|
|
66032
|
+
"name": "id",
|
|
66033
|
+
"in": "path",
|
|
66034
|
+
"required": true,
|
|
66035
|
+
"schema": {
|
|
66036
|
+
"type": "string",
|
|
66037
|
+
"format": "uuid"
|
|
65933
66038
|
}
|
|
65934
66039
|
}
|
|
65935
|
-
|
|
66040
|
+
],
|
|
65936
66041
|
"responses": {
|
|
65937
|
-
"
|
|
66042
|
+
"200": {
|
|
65938
66043
|
"description": "OK",
|
|
65939
66044
|
"content": {
|
|
65940
66045
|
"application/json": {
|
|
65941
66046
|
"schema": {
|
|
65942
66047
|
"type": "object",
|
|
65943
|
-
"
|
|
65944
|
-
"updated": {
|
|
65945
|
-
"type": "integer"
|
|
65946
|
-
},
|
|
65947
|
-
"not_found": {
|
|
65948
|
-
"type": "array",
|
|
65949
|
-
"items": {
|
|
65950
|
-
"type": "string"
|
|
65951
|
-
}
|
|
65952
|
-
}
|
|
65953
|
-
}
|
|
66048
|
+
"additionalProperties": true
|
|
65954
66049
|
}
|
|
65955
66050
|
}
|
|
65956
66051
|
}
|
|
@@ -65964,68 +66059,43 @@
|
|
|
65964
66059
|
"403": {
|
|
65965
66060
|
"$ref": "#/components/responses/Forbidden"
|
|
65966
66061
|
},
|
|
66062
|
+
"404": {
|
|
66063
|
+
"$ref": "#/components/responses/NotFound"
|
|
66064
|
+
},
|
|
65967
66065
|
"429": {
|
|
65968
66066
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
65969
66067
|
}
|
|
65970
66068
|
}
|
|
65971
66069
|
}
|
|
65972
66070
|
},
|
|
65973
|
-
"/v1/documents/
|
|
65974
|
-
"
|
|
65975
|
-
"operationId": "
|
|
66071
|
+
"/v1/documents/{id}/traits": {
|
|
66072
|
+
"patch": {
|
|
66073
|
+
"operationId": "setDocumentLabels",
|
|
65976
66074
|
"x-audience": "public",
|
|
65977
66075
|
"tags": [
|
|
65978
|
-
"
|
|
66076
|
+
"Collections"
|
|
65979
66077
|
],
|
|
65980
|
-
"summary": "
|
|
65981
|
-
"description": "
|
|
66078
|
+
"summary": "Change a document's labels by hand",
|
|
66079
|
+
"description": "Adds and removes labels on one document (`add`, `remove`, each at most 50 labels such as `relationship:client`). A person's labels are kept whenever the document's labels are derived again. Refused (403) when the change would move the document into or out of a limited collection the key's person may not manage. Requires the `documents:write` scope. The key's person must be allowed to edit in the workspace, as in the web app.",
|
|
65982
66080
|
"security": [
|
|
65983
66081
|
{
|
|
65984
66082
|
"BearerAuth": []
|
|
65985
66083
|
}
|
|
65986
66084
|
],
|
|
65987
66085
|
"x-required-scopes": [
|
|
65988
|
-
"
|
|
65989
|
-
],
|
|
65990
|
-
"responses": {
|
|
65991
|
-
"200": {
|
|
65992
|
-
"description": "OK",
|
|
65993
|
-
"content": {
|
|
65994
|
-
"application/json": {
|
|
65995
|
-
"schema": {
|
|
65996
|
-
"type": "object",
|
|
65997
|
-
"additionalProperties": true
|
|
65998
|
-
}
|
|
65999
|
-
}
|
|
66000
|
-
}
|
|
66001
|
-
},
|
|
66002
|
-
"401": {
|
|
66003
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
66004
|
-
},
|
|
66005
|
-
"403": {
|
|
66006
|
-
"$ref": "#/components/responses/Forbidden"
|
|
66007
|
-
},
|
|
66008
|
-
"429": {
|
|
66009
|
-
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66010
|
-
}
|
|
66011
|
-
}
|
|
66012
|
-
},
|
|
66013
|
-
"patch": {
|
|
66014
|
-
"operationId": "setDisplayNameRule",
|
|
66015
|
-
"x-audience": "public",
|
|
66016
|
-
"tags": [
|
|
66017
|
-
"Documents"
|
|
66086
|
+
"documents:write"
|
|
66018
66087
|
],
|
|
66019
|
-
"
|
|
66020
|
-
"description": "`off` derives nothing and clears stored names, `default` tidies each filename, `lua` runs your `script` (reads `record.filename`, calls `record:set('display_name', value)`). Takes effect for new documents; apply it to existing ones with the backfill. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
66021
|
-
"security": [
|
|
66088
|
+
"parameters": [
|
|
66022
66089
|
{
|
|
66023
|
-
"
|
|
66090
|
+
"name": "id",
|
|
66091
|
+
"in": "path",
|
|
66092
|
+
"required": true,
|
|
66093
|
+
"schema": {
|
|
66094
|
+
"type": "string",
|
|
66095
|
+
"format": "uuid"
|
|
66096
|
+
}
|
|
66024
66097
|
}
|
|
66025
66098
|
],
|
|
66026
|
-
"x-required-scopes": [
|
|
66027
|
-
"documents:write"
|
|
66028
|
-
],
|
|
66029
66099
|
"requestBody": {
|
|
66030
66100
|
"required": true,
|
|
66031
66101
|
"content": {
|
|
@@ -66033,22 +66103,23 @@
|
|
|
66033
66103
|
"schema": {
|
|
66034
66104
|
"type": "object",
|
|
66035
66105
|
"properties": {
|
|
66036
|
-
"
|
|
66037
|
-
"type": "
|
|
66038
|
-
"
|
|
66039
|
-
|
|
66040
|
-
"
|
|
66041
|
-
"
|
|
66042
|
-
|
|
66106
|
+
"add": {
|
|
66107
|
+
"type": "array",
|
|
66108
|
+
"maxItems": 50,
|
|
66109
|
+
"items": {
|
|
66110
|
+
"type": "string",
|
|
66111
|
+
"maxLength": 200
|
|
66112
|
+
}
|
|
66043
66113
|
},
|
|
66044
|
-
"
|
|
66045
|
-
"type": "
|
|
66046
|
-
"
|
|
66114
|
+
"remove": {
|
|
66115
|
+
"type": "array",
|
|
66116
|
+
"maxItems": 50,
|
|
66117
|
+
"items": {
|
|
66118
|
+
"type": "string",
|
|
66119
|
+
"maxLength": 200
|
|
66120
|
+
}
|
|
66047
66121
|
}
|
|
66048
|
-
}
|
|
66049
|
-
"required": [
|
|
66050
|
-
"mode"
|
|
66051
|
-
]
|
|
66122
|
+
}
|
|
66052
66123
|
}
|
|
66053
66124
|
}
|
|
66054
66125
|
}
|
|
@@ -66074,21 +66145,24 @@
|
|
|
66074
66145
|
"403": {
|
|
66075
66146
|
"$ref": "#/components/responses/Forbidden"
|
|
66076
66147
|
},
|
|
66148
|
+
"404": {
|
|
66149
|
+
"$ref": "#/components/responses/NotFound"
|
|
66150
|
+
},
|
|
66077
66151
|
"429": {
|
|
66078
66152
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66079
66153
|
}
|
|
66080
66154
|
}
|
|
66081
66155
|
}
|
|
66082
66156
|
},
|
|
66083
|
-
"/v1/documents/
|
|
66157
|
+
"/v1/documents/{id}/move": {
|
|
66084
66158
|
"post": {
|
|
66085
|
-
"operationId": "
|
|
66159
|
+
"operationId": "moveDocumentBetweenCollections",
|
|
66086
66160
|
"x-audience": "public",
|
|
66087
66161
|
"tags": [
|
|
66088
|
-
"
|
|
66162
|
+
"Collections"
|
|
66089
66163
|
],
|
|
66090
|
-
"summary": "
|
|
66091
|
-
"description": "
|
|
66164
|
+
"summary": "Move a document between collections",
|
|
66165
|
+
"description": "Takes the document out of `from`, puts it into `to`, or both. A collection that sorts by labels keeps the document out once it is moved out. Any member moves between plain collections; a limited collection needs a person its limit admits or an owner; an enforced collection or an account needs an owner (403 otherwise). 404 when the key's person may not read the document. Requires the `documents:write` scope. The key's person must be allowed to edit in the workspace, as in the web app.",
|
|
66092
66166
|
"security": [
|
|
66093
66167
|
{
|
|
66094
66168
|
"BearerAuth": []
|
|
@@ -66097,6 +66171,17 @@
|
|
|
66097
66171
|
"x-required-scopes": [
|
|
66098
66172
|
"documents:write"
|
|
66099
66173
|
],
|
|
66174
|
+
"parameters": [
|
|
66175
|
+
{
|
|
66176
|
+
"name": "id",
|
|
66177
|
+
"in": "path",
|
|
66178
|
+
"required": true,
|
|
66179
|
+
"schema": {
|
|
66180
|
+
"type": "string",
|
|
66181
|
+
"format": "uuid"
|
|
66182
|
+
}
|
|
66183
|
+
}
|
|
66184
|
+
],
|
|
66100
66185
|
"requestBody": {
|
|
66101
66186
|
"required": true,
|
|
66102
66187
|
"content": {
|
|
@@ -66104,19 +66189,358 @@
|
|
|
66104
66189
|
"schema": {
|
|
66105
66190
|
"type": "object",
|
|
66106
66191
|
"properties": {
|
|
66107
|
-
"
|
|
66192
|
+
"from": {
|
|
66108
66193
|
"type": "string",
|
|
66109
|
-
"
|
|
66194
|
+
"format": "uuid",
|
|
66195
|
+
"nullable": true
|
|
66110
66196
|
},
|
|
66111
|
-
"
|
|
66112
|
-
"type": "
|
|
66113
|
-
"
|
|
66114
|
-
"
|
|
66197
|
+
"to": {
|
|
66198
|
+
"type": "string",
|
|
66199
|
+
"format": "uuid",
|
|
66200
|
+
"nullable": true
|
|
66115
66201
|
}
|
|
66116
|
-
}
|
|
66117
|
-
|
|
66118
|
-
|
|
66119
|
-
|
|
66202
|
+
}
|
|
66203
|
+
}
|
|
66204
|
+
}
|
|
66205
|
+
}
|
|
66206
|
+
},
|
|
66207
|
+
"responses": {
|
|
66208
|
+
"200": {
|
|
66209
|
+
"description": "OK",
|
|
66210
|
+
"content": {
|
|
66211
|
+
"application/json": {
|
|
66212
|
+
"schema": {
|
|
66213
|
+
"type": "object",
|
|
66214
|
+
"additionalProperties": true
|
|
66215
|
+
}
|
|
66216
|
+
}
|
|
66217
|
+
}
|
|
66218
|
+
},
|
|
66219
|
+
"400": {
|
|
66220
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66221
|
+
},
|
|
66222
|
+
"401": {
|
|
66223
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66224
|
+
},
|
|
66225
|
+
"403": {
|
|
66226
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66227
|
+
},
|
|
66228
|
+
"404": {
|
|
66229
|
+
"$ref": "#/components/responses/NotFound"
|
|
66230
|
+
},
|
|
66231
|
+
"409": {
|
|
66232
|
+
"$ref": "#/components/responses/Conflict"
|
|
66233
|
+
},
|
|
66234
|
+
"429": {
|
|
66235
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66236
|
+
}
|
|
66237
|
+
}
|
|
66238
|
+
}
|
|
66239
|
+
},
|
|
66240
|
+
"/v1/documents/{id}/parties": {
|
|
66241
|
+
"put": {
|
|
66242
|
+
"operationId": "setDocumentParties",
|
|
66243
|
+
"x-audience": "public",
|
|
66244
|
+
"tags": [
|
|
66245
|
+
"Collections"
|
|
66246
|
+
],
|
|
66247
|
+
"summary": "Set a document's parties",
|
|
66248
|
+
"description": "Hands over the document's parties as your system has them, the way a connected mailbox does at import: typed identifiers with an optional role, and whether the list is `complete` (only a complete list whose every party is your own makes a document internal). The document's labels are derived again at once; a party nobody in the directory knows yet may leave the document `pending` for a short while, during which it stays under every limit. Requires the `documents:write` scope. The key's person must be allowed to edit in the workspace, as in the web app.",
|
|
66249
|
+
"security": [
|
|
66250
|
+
{
|
|
66251
|
+
"BearerAuth": []
|
|
66252
|
+
}
|
|
66253
|
+
],
|
|
66254
|
+
"x-required-scopes": [
|
|
66255
|
+
"documents:write"
|
|
66256
|
+
],
|
|
66257
|
+
"parameters": [
|
|
66258
|
+
{
|
|
66259
|
+
"name": "id",
|
|
66260
|
+
"in": "path",
|
|
66261
|
+
"required": true,
|
|
66262
|
+
"schema": {
|
|
66263
|
+
"type": "string",
|
|
66264
|
+
"format": "uuid"
|
|
66265
|
+
}
|
|
66266
|
+
}
|
|
66267
|
+
],
|
|
66268
|
+
"requestBody": {
|
|
66269
|
+
"required": true,
|
|
66270
|
+
"content": {
|
|
66271
|
+
"application/json": {
|
|
66272
|
+
"schema": {
|
|
66273
|
+
"type": "object",
|
|
66274
|
+
"required": [
|
|
66275
|
+
"parties"
|
|
66276
|
+
],
|
|
66277
|
+
"properties": {
|
|
66278
|
+
"parties": {
|
|
66279
|
+
"type": "array",
|
|
66280
|
+
"maxItems": 500,
|
|
66281
|
+
"items": {
|
|
66282
|
+
"$ref": "#/components/schemas/DocumentParty"
|
|
66283
|
+
}
|
|
66284
|
+
},
|
|
66285
|
+
"complete": {
|
|
66286
|
+
"type": "boolean"
|
|
66287
|
+
}
|
|
66288
|
+
}
|
|
66289
|
+
}
|
|
66290
|
+
}
|
|
66291
|
+
}
|
|
66292
|
+
},
|
|
66293
|
+
"responses": {
|
|
66294
|
+
"200": {
|
|
66295
|
+
"description": "OK",
|
|
66296
|
+
"content": {
|
|
66297
|
+
"application/json": {
|
|
66298
|
+
"schema": {
|
|
66299
|
+
"type": "object",
|
|
66300
|
+
"additionalProperties": true
|
|
66301
|
+
}
|
|
66302
|
+
}
|
|
66303
|
+
}
|
|
66304
|
+
},
|
|
66305
|
+
"400": {
|
|
66306
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66307
|
+
},
|
|
66308
|
+
"401": {
|
|
66309
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66310
|
+
},
|
|
66311
|
+
"403": {
|
|
66312
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66313
|
+
},
|
|
66314
|
+
"404": {
|
|
66315
|
+
"$ref": "#/components/responses/NotFound"
|
|
66316
|
+
},
|
|
66317
|
+
"429": {
|
|
66318
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66319
|
+
}
|
|
66320
|
+
}
|
|
66321
|
+
}
|
|
66322
|
+
},
|
|
66323
|
+
"/v1/documents/batch-metadata/import": {
|
|
66324
|
+
"post": {
|
|
66325
|
+
"operationId": "importDocumentBatchMetadata",
|
|
66326
|
+
"x-audience": "public",
|
|
66327
|
+
"tags": [
|
|
66328
|
+
"Documents"
|
|
66329
|
+
],
|
|
66330
|
+
"summary": "Import source batch ids from a CSV",
|
|
66331
|
+
"description": "Sets the source batch id on existing documents from a CSV upload (`file`, up to 20 MB). Answers how many documents were updated and which named ones were not found. 403 for a person whose document visibility a rule narrows, because the import matches against every document of the workspace. Requires the `documents:write` scope. The key's person must be an Admin of the workspace, as in the web app; in a workspace whose model configuration Talonic manages this answers 403 `insufficient_role`.",
|
|
66332
|
+
"security": [
|
|
66333
|
+
{
|
|
66334
|
+
"BearerAuth": []
|
|
66335
|
+
}
|
|
66336
|
+
],
|
|
66337
|
+
"x-required-scopes": [
|
|
66338
|
+
"documents:write"
|
|
66339
|
+
],
|
|
66340
|
+
"requestBody": {
|
|
66341
|
+
"required": true,
|
|
66342
|
+
"content": {
|
|
66343
|
+
"multipart/form-data": {
|
|
66344
|
+
"schema": {
|
|
66345
|
+
"type": "object",
|
|
66346
|
+
"properties": {
|
|
66347
|
+
"file": {
|
|
66348
|
+
"type": "string",
|
|
66349
|
+
"format": "binary",
|
|
66350
|
+
"description": "CSV with a header row."
|
|
66351
|
+
}
|
|
66352
|
+
},
|
|
66353
|
+
"required": [
|
|
66354
|
+
"file"
|
|
66355
|
+
]
|
|
66356
|
+
}
|
|
66357
|
+
}
|
|
66358
|
+
}
|
|
66359
|
+
},
|
|
66360
|
+
"responses": {
|
|
66361
|
+
"201": {
|
|
66362
|
+
"description": "OK",
|
|
66363
|
+
"content": {
|
|
66364
|
+
"application/json": {
|
|
66365
|
+
"schema": {
|
|
66366
|
+
"type": "object",
|
|
66367
|
+
"properties": {
|
|
66368
|
+
"updated": {
|
|
66369
|
+
"type": "integer"
|
|
66370
|
+
},
|
|
66371
|
+
"not_found": {
|
|
66372
|
+
"type": "array",
|
|
66373
|
+
"items": {
|
|
66374
|
+
"type": "string"
|
|
66375
|
+
}
|
|
66376
|
+
}
|
|
66377
|
+
}
|
|
66378
|
+
}
|
|
66379
|
+
}
|
|
66380
|
+
}
|
|
66381
|
+
},
|
|
66382
|
+
"400": {
|
|
66383
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66384
|
+
},
|
|
66385
|
+
"401": {
|
|
66386
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66387
|
+
},
|
|
66388
|
+
"403": {
|
|
66389
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66390
|
+
},
|
|
66391
|
+
"429": {
|
|
66392
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66393
|
+
}
|
|
66394
|
+
}
|
|
66395
|
+
}
|
|
66396
|
+
},
|
|
66397
|
+
"/v1/documents/display-name-rule": {
|
|
66398
|
+
"get": {
|
|
66399
|
+
"operationId": "getDisplayNameRule",
|
|
66400
|
+
"x-audience": "public",
|
|
66401
|
+
"tags": [
|
|
66402
|
+
"Documents"
|
|
66403
|
+
],
|
|
66404
|
+
"summary": "Get the readable-name rule",
|
|
66405
|
+
"description": "The workspace's rule for deriving a readable name from each filename, its check state, and a sample of current filename → name pairs. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it. The sample lists only documents the key's person can see.",
|
|
66406
|
+
"security": [
|
|
66407
|
+
{
|
|
66408
|
+
"BearerAuth": []
|
|
66409
|
+
}
|
|
66410
|
+
],
|
|
66411
|
+
"x-required-scopes": [
|
|
66412
|
+
"read"
|
|
66413
|
+
],
|
|
66414
|
+
"responses": {
|
|
66415
|
+
"200": {
|
|
66416
|
+
"description": "OK",
|
|
66417
|
+
"content": {
|
|
66418
|
+
"application/json": {
|
|
66419
|
+
"schema": {
|
|
66420
|
+
"type": "object",
|
|
66421
|
+
"additionalProperties": true
|
|
66422
|
+
}
|
|
66423
|
+
}
|
|
66424
|
+
}
|
|
66425
|
+
},
|
|
66426
|
+
"401": {
|
|
66427
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66428
|
+
},
|
|
66429
|
+
"403": {
|
|
66430
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66431
|
+
},
|
|
66432
|
+
"429": {
|
|
66433
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66434
|
+
}
|
|
66435
|
+
}
|
|
66436
|
+
},
|
|
66437
|
+
"patch": {
|
|
66438
|
+
"operationId": "setDisplayNameRule",
|
|
66439
|
+
"x-audience": "public",
|
|
66440
|
+
"tags": [
|
|
66441
|
+
"Documents"
|
|
66442
|
+
],
|
|
66443
|
+
"summary": "Set the readable-name rule",
|
|
66444
|
+
"description": "`off` derives nothing and clears stored names, `default` tidies each filename, `lua` runs your `script` (reads `record.filename`, calls `record:set('display_name', value)`). Takes effect for new documents; apply it to existing ones with the backfill. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
66445
|
+
"security": [
|
|
66446
|
+
{
|
|
66447
|
+
"BearerAuth": []
|
|
66448
|
+
}
|
|
66449
|
+
],
|
|
66450
|
+
"x-required-scopes": [
|
|
66451
|
+
"documents:write"
|
|
66452
|
+
],
|
|
66453
|
+
"requestBody": {
|
|
66454
|
+
"required": true,
|
|
66455
|
+
"content": {
|
|
66456
|
+
"application/json": {
|
|
66457
|
+
"schema": {
|
|
66458
|
+
"type": "object",
|
|
66459
|
+
"properties": {
|
|
66460
|
+
"mode": {
|
|
66461
|
+
"type": "string",
|
|
66462
|
+
"enum": [
|
|
66463
|
+
"off",
|
|
66464
|
+
"default",
|
|
66465
|
+
"lua"
|
|
66466
|
+
]
|
|
66467
|
+
},
|
|
66468
|
+
"script": {
|
|
66469
|
+
"type": "string",
|
|
66470
|
+
"maxLength": 20000
|
|
66471
|
+
}
|
|
66472
|
+
},
|
|
66473
|
+
"required": [
|
|
66474
|
+
"mode"
|
|
66475
|
+
]
|
|
66476
|
+
}
|
|
66477
|
+
}
|
|
66478
|
+
}
|
|
66479
|
+
},
|
|
66480
|
+
"responses": {
|
|
66481
|
+
"200": {
|
|
66482
|
+
"description": "OK",
|
|
66483
|
+
"content": {
|
|
66484
|
+
"application/json": {
|
|
66485
|
+
"schema": {
|
|
66486
|
+
"type": "object",
|
|
66487
|
+
"additionalProperties": true
|
|
66488
|
+
}
|
|
66489
|
+
}
|
|
66490
|
+
}
|
|
66491
|
+
},
|
|
66492
|
+
"400": {
|
|
66493
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66494
|
+
},
|
|
66495
|
+
"401": {
|
|
66496
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66497
|
+
},
|
|
66498
|
+
"403": {
|
|
66499
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66500
|
+
},
|
|
66501
|
+
"429": {
|
|
66502
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66503
|
+
}
|
|
66504
|
+
}
|
|
66505
|
+
}
|
|
66506
|
+
},
|
|
66507
|
+
"/v1/documents/display-name-rule/preview": {
|
|
66508
|
+
"post": {
|
|
66509
|
+
"operationId": "previewDisplayNameRule",
|
|
66510
|
+
"x-audience": "public",
|
|
66511
|
+
"tags": [
|
|
66512
|
+
"Documents"
|
|
66513
|
+
],
|
|
66514
|
+
"summary": "Try a readable-name script",
|
|
66515
|
+
"description": "Runs a candidate `lua_script` over a sample of real filenames (default 50, at most 200) without saving it. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app. The sample is drawn only from documents the key's person can see.",
|
|
66516
|
+
"security": [
|
|
66517
|
+
{
|
|
66518
|
+
"BearerAuth": []
|
|
66519
|
+
}
|
|
66520
|
+
],
|
|
66521
|
+
"x-required-scopes": [
|
|
66522
|
+
"documents:write"
|
|
66523
|
+
],
|
|
66524
|
+
"requestBody": {
|
|
66525
|
+
"required": true,
|
|
66526
|
+
"content": {
|
|
66527
|
+
"application/json": {
|
|
66528
|
+
"schema": {
|
|
66529
|
+
"type": "object",
|
|
66530
|
+
"properties": {
|
|
66531
|
+
"lua_script": {
|
|
66532
|
+
"type": "string",
|
|
66533
|
+
"maxLength": 20000
|
|
66534
|
+
},
|
|
66535
|
+
"sample_size": {
|
|
66536
|
+
"type": "integer",
|
|
66537
|
+
"minimum": 1,
|
|
66538
|
+
"maximum": 200
|
|
66539
|
+
}
|
|
66540
|
+
},
|
|
66541
|
+
"required": [
|
|
66542
|
+
"lua_script"
|
|
66543
|
+
]
|
|
66120
66544
|
}
|
|
66121
66545
|
}
|
|
66122
66546
|
}
|
|
@@ -66356,14 +66780,240 @@
|
|
|
66356
66780
|
}
|
|
66357
66781
|
}
|
|
66358
66782
|
},
|
|
66359
|
-
"post": {
|
|
66360
|
-
"operationId": "createCollection",
|
|
66783
|
+
"post": {
|
|
66784
|
+
"operationId": "createCollection",
|
|
66785
|
+
"x-audience": "public",
|
|
66786
|
+
"tags": [
|
|
66787
|
+
"Collections"
|
|
66788
|
+
],
|
|
66789
|
+
"summary": "Create a collection",
|
|
66790
|
+
"description": "`kind: account` makes it an account (one account per document). 409 when the name exists. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
66791
|
+
"security": [
|
|
66792
|
+
{
|
|
66793
|
+
"BearerAuth": []
|
|
66794
|
+
}
|
|
66795
|
+
],
|
|
66796
|
+
"x-required-scopes": [
|
|
66797
|
+
"documents:write"
|
|
66798
|
+
],
|
|
66799
|
+
"requestBody": {
|
|
66800
|
+
"required": true,
|
|
66801
|
+
"content": {
|
|
66802
|
+
"application/json": {
|
|
66803
|
+
"schema": {
|
|
66804
|
+
"type": "object",
|
|
66805
|
+
"properties": {
|
|
66806
|
+
"name": {
|
|
66807
|
+
"type": "string",
|
|
66808
|
+
"minLength": 1,
|
|
66809
|
+
"maxLength": 200
|
|
66810
|
+
},
|
|
66811
|
+
"description": {
|
|
66812
|
+
"type": "string",
|
|
66813
|
+
"maxLength": 2000
|
|
66814
|
+
},
|
|
66815
|
+
"kind": {
|
|
66816
|
+
"type": "string",
|
|
66817
|
+
"enum": [
|
|
66818
|
+
"collection",
|
|
66819
|
+
"account"
|
|
66820
|
+
]
|
|
66821
|
+
},
|
|
66822
|
+
"aliases": {
|
|
66823
|
+
"type": "array",
|
|
66824
|
+
"maxItems": 50,
|
|
66825
|
+
"items": {
|
|
66826
|
+
"type": "string",
|
|
66827
|
+
"maxLength": 200
|
|
66828
|
+
}
|
|
66829
|
+
}
|
|
66830
|
+
},
|
|
66831
|
+
"required": [
|
|
66832
|
+
"name"
|
|
66833
|
+
]
|
|
66834
|
+
}
|
|
66835
|
+
}
|
|
66836
|
+
}
|
|
66837
|
+
},
|
|
66838
|
+
"responses": {
|
|
66839
|
+
"201": {
|
|
66840
|
+
"description": "OK",
|
|
66841
|
+
"content": {
|
|
66842
|
+
"application/json": {
|
|
66843
|
+
"schema": {
|
|
66844
|
+
"type": "object",
|
|
66845
|
+
"additionalProperties": true
|
|
66846
|
+
}
|
|
66847
|
+
}
|
|
66848
|
+
}
|
|
66849
|
+
},
|
|
66850
|
+
"400": {
|
|
66851
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66852
|
+
},
|
|
66853
|
+
"401": {
|
|
66854
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66855
|
+
},
|
|
66856
|
+
"403": {
|
|
66857
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66858
|
+
},
|
|
66859
|
+
"429": {
|
|
66860
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66861
|
+
}
|
|
66862
|
+
}
|
|
66863
|
+
}
|
|
66864
|
+
},
|
|
66865
|
+
"/v1/collections/mine": {
|
|
66866
|
+
"get": {
|
|
66867
|
+
"operationId": "listMyCollections",
|
|
66868
|
+
"x-audience": "public",
|
|
66869
|
+
"tags": [
|
|
66870
|
+
"Collections"
|
|
66871
|
+
],
|
|
66872
|
+
"summary": "List the collections assigned to me",
|
|
66873
|
+
"description": "The collections assigned to the key's person, and whether that limits what they see. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
66874
|
+
"security": [
|
|
66875
|
+
{
|
|
66876
|
+
"BearerAuth": []
|
|
66877
|
+
}
|
|
66878
|
+
],
|
|
66879
|
+
"x-required-scopes": [
|
|
66880
|
+
"read"
|
|
66881
|
+
],
|
|
66882
|
+
"responses": {
|
|
66883
|
+
"200": {
|
|
66884
|
+
"description": "OK",
|
|
66885
|
+
"content": {
|
|
66886
|
+
"application/json": {
|
|
66887
|
+
"schema": {
|
|
66888
|
+
"type": "object",
|
|
66889
|
+
"properties": {
|
|
66890
|
+
"collections": {
|
|
66891
|
+
"type": "array",
|
|
66892
|
+
"items": {
|
|
66893
|
+
"type": "object",
|
|
66894
|
+
"additionalProperties": true
|
|
66895
|
+
}
|
|
66896
|
+
},
|
|
66897
|
+
"restricted": {
|
|
66898
|
+
"type": "boolean"
|
|
66899
|
+
}
|
|
66900
|
+
}
|
|
66901
|
+
}
|
|
66902
|
+
}
|
|
66903
|
+
}
|
|
66904
|
+
},
|
|
66905
|
+
"401": {
|
|
66906
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66907
|
+
},
|
|
66908
|
+
"403": {
|
|
66909
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66910
|
+
},
|
|
66911
|
+
"429": {
|
|
66912
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66913
|
+
}
|
|
66914
|
+
}
|
|
66915
|
+
}
|
|
66916
|
+
},
|
|
66917
|
+
"/v1/collections/counts": {
|
|
66918
|
+
"get": {
|
|
66919
|
+
"operationId": "getCollectionCounts",
|
|
66920
|
+
"x-audience": "public",
|
|
66921
|
+
"tags": [
|
|
66922
|
+
"Collections"
|
|
66923
|
+
],
|
|
66924
|
+
"summary": "Count documents per collection",
|
|
66925
|
+
"description": "Visible-document counts per collection. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
66926
|
+
"security": [
|
|
66927
|
+
{
|
|
66928
|
+
"BearerAuth": []
|
|
66929
|
+
}
|
|
66930
|
+
],
|
|
66931
|
+
"x-required-scopes": [
|
|
66932
|
+
"read"
|
|
66933
|
+
],
|
|
66934
|
+
"responses": {
|
|
66935
|
+
"200": {
|
|
66936
|
+
"description": "OK",
|
|
66937
|
+
"content": {
|
|
66938
|
+
"application/json": {
|
|
66939
|
+
"schema": {
|
|
66940
|
+
"type": "object",
|
|
66941
|
+
"properties": {
|
|
66942
|
+
"collections": {
|
|
66943
|
+
"type": "array",
|
|
66944
|
+
"items": {
|
|
66945
|
+
"type": "object",
|
|
66946
|
+
"additionalProperties": true
|
|
66947
|
+
}
|
|
66948
|
+
}
|
|
66949
|
+
}
|
|
66950
|
+
}
|
|
66951
|
+
}
|
|
66952
|
+
}
|
|
66953
|
+
},
|
|
66954
|
+
"401": {
|
|
66955
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
66956
|
+
},
|
|
66957
|
+
"403": {
|
|
66958
|
+
"$ref": "#/components/responses/Forbidden"
|
|
66959
|
+
},
|
|
66960
|
+
"429": {
|
|
66961
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66962
|
+
}
|
|
66963
|
+
}
|
|
66964
|
+
}
|
|
66965
|
+
},
|
|
66966
|
+
"/v1/collections/config": {
|
|
66967
|
+
"get": {
|
|
66968
|
+
"operationId": "getCollectionsConfig",
|
|
66969
|
+
"x-audience": "public",
|
|
66970
|
+
"tags": [
|
|
66971
|
+
"Collections"
|
|
66972
|
+
],
|
|
66973
|
+
"summary": "Get the collections configuration",
|
|
66974
|
+
"description": "The workspace's collections as one configuration document: each collection that has a `key` with its name, the labels it sorts by (`match`, or `any` for several label sets) and its children, plus the workspace's relationship kinds, own domains and whether relationships may be inferred. Who may read a limited collection (`only`), the directory's configured entries and the default views appear for a workspace owner only. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
66975
|
+
"security": [
|
|
66976
|
+
{
|
|
66977
|
+
"BearerAuth": []
|
|
66978
|
+
}
|
|
66979
|
+
],
|
|
66980
|
+
"x-required-scopes": [
|
|
66981
|
+
"read"
|
|
66982
|
+
],
|
|
66983
|
+
"responses": {
|
|
66984
|
+
"200": {
|
|
66985
|
+
"description": "OK",
|
|
66986
|
+
"content": {
|
|
66987
|
+
"application/json": {
|
|
66988
|
+
"schema": {
|
|
66989
|
+
"type": "object",
|
|
66990
|
+
"additionalProperties": true
|
|
66991
|
+
}
|
|
66992
|
+
}
|
|
66993
|
+
}
|
|
66994
|
+
},
|
|
66995
|
+
"400": {
|
|
66996
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66997
|
+
},
|
|
66998
|
+
"401": {
|
|
66999
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
67000
|
+
},
|
|
67001
|
+
"403": {
|
|
67002
|
+
"$ref": "#/components/responses/Forbidden"
|
|
67003
|
+
},
|
|
67004
|
+
"429": {
|
|
67005
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
67006
|
+
}
|
|
67007
|
+
}
|
|
67008
|
+
},
|
|
67009
|
+
"put": {
|
|
67010
|
+
"operationId": "applyCollectionsConfig",
|
|
66361
67011
|
"x-audience": "public",
|
|
66362
67012
|
"tags": [
|
|
66363
67013
|
"Collections"
|
|
66364
67014
|
],
|
|
66365
|
-
"summary": "
|
|
66366
|
-
"description": "
|
|
67015
|
+
"summary": "Apply a collections configuration",
|
|
67016
|
+
"description": "Applies a configuration document: every problem is reported at once (400 with `details.problems`) before anything changes, then everything is saved together. Collections are matched by their path of keys, so applying the same document twice changes nothing. With `dry_run=true` nothing is saved and the answer lists what would be created, changed and removed, how many documents each collection would hold for you, and for each limit how many documents it hides from how many people. `prune=true` removes keyed collections the document does not name, and refuses (409) one that still has a limit or documents placed by hand. A key with no person cannot change `only` (403). Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
66367
67017
|
"security": [
|
|
66368
67018
|
{
|
|
66369
67019
|
"BearerAuth": []
|
|
@@ -66372,6 +67022,28 @@
|
|
|
66372
67022
|
"x-required-scopes": [
|
|
66373
67023
|
"documents:write"
|
|
66374
67024
|
],
|
|
67025
|
+
"parameters": [
|
|
67026
|
+
{
|
|
67027
|
+
"name": "dry_run",
|
|
67028
|
+
"in": "query",
|
|
67029
|
+
"required": false,
|
|
67030
|
+
"schema": {
|
|
67031
|
+
"type": "boolean",
|
|
67032
|
+
"default": false
|
|
67033
|
+
},
|
|
67034
|
+
"description": "Check and preview the change; nothing is saved."
|
|
67035
|
+
},
|
|
67036
|
+
{
|
|
67037
|
+
"name": "prune",
|
|
67038
|
+
"in": "query",
|
|
67039
|
+
"required": false,
|
|
67040
|
+
"schema": {
|
|
67041
|
+
"type": "boolean",
|
|
67042
|
+
"default": false
|
|
67043
|
+
},
|
|
67044
|
+
"description": "Remove keyed collections the document does not name."
|
|
67045
|
+
}
|
|
67046
|
+
],
|
|
66375
67047
|
"requestBody": {
|
|
66376
67048
|
"required": true,
|
|
66377
67049
|
"content": {
|
|
@@ -66379,40 +67051,23 @@
|
|
|
66379
67051
|
"schema": {
|
|
66380
67052
|
"type": "object",
|
|
66381
67053
|
"properties": {
|
|
66382
|
-
"
|
|
66383
|
-
"type": "
|
|
66384
|
-
"
|
|
66385
|
-
"
|
|
66386
|
-
},
|
|
66387
|
-
"description": {
|
|
66388
|
-
"type": "string",
|
|
66389
|
-
"maxLength": 2000
|
|
67054
|
+
"document": {
|
|
67055
|
+
"type": "object",
|
|
67056
|
+
"additionalProperties": true,
|
|
67057
|
+
"description": "The configuration document."
|
|
66390
67058
|
},
|
|
66391
|
-
"
|
|
67059
|
+
"yaml": {
|
|
66392
67060
|
"type": "string",
|
|
66393
|
-
"
|
|
66394
|
-
|
|
66395
|
-
"account"
|
|
66396
|
-
]
|
|
66397
|
-
},
|
|
66398
|
-
"aliases": {
|
|
66399
|
-
"type": "array",
|
|
66400
|
-
"maxItems": 50,
|
|
66401
|
-
"items": {
|
|
66402
|
-
"type": "string",
|
|
66403
|
-
"maxLength": 200
|
|
66404
|
-
}
|
|
67061
|
+
"maxLength": 1000000,
|
|
67062
|
+
"description": "The configuration document as YAML or JSON text."
|
|
66405
67063
|
}
|
|
66406
|
-
}
|
|
66407
|
-
"required": [
|
|
66408
|
-
"name"
|
|
66409
|
-
]
|
|
67064
|
+
}
|
|
66410
67065
|
}
|
|
66411
67066
|
}
|
|
66412
67067
|
}
|
|
66413
67068
|
},
|
|
66414
67069
|
"responses": {
|
|
66415
|
-
"
|
|
67070
|
+
"200": {
|
|
66416
67071
|
"description": "OK",
|
|
66417
67072
|
"content": {
|
|
66418
67073
|
"application/json": {
|
|
@@ -66432,21 +67087,24 @@
|
|
|
66432
67087
|
"403": {
|
|
66433
67088
|
"$ref": "#/components/responses/Forbidden"
|
|
66434
67089
|
},
|
|
67090
|
+
"409": {
|
|
67091
|
+
"$ref": "#/components/responses/Conflict"
|
|
67092
|
+
},
|
|
66435
67093
|
"429": {
|
|
66436
67094
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66437
67095
|
}
|
|
66438
67096
|
}
|
|
66439
67097
|
}
|
|
66440
67098
|
},
|
|
66441
|
-
"/v1/collections/
|
|
66442
|
-
"
|
|
66443
|
-
"operationId": "
|
|
67099
|
+
"/v1/collections/proposal": {
|
|
67100
|
+
"post": {
|
|
67101
|
+
"operationId": "proposeCollectionsConfig",
|
|
66444
67102
|
"x-audience": "public",
|
|
66445
67103
|
"tags": [
|
|
66446
67104
|
"Collections"
|
|
66447
67105
|
],
|
|
66448
|
-
"summary": "
|
|
66449
|
-
"description": "
|
|
67106
|
+
"summary": "Propose a collections configuration",
|
|
67107
|
+
"description": "A configuration document built from the workspace's own documents, as far as the key's person may read them: one top-level collection per channel with documents, children for the labels common enough to be worth one, and, when the workspace has conversations and fewer than two relationship kinds, kinds suggested from its most frequent outside organisations (only when relationships may be inferred). Nothing is saved, and no limit is ever proposed: edit it and apply it with `PUT /v1/collections/config`. Requires the `read` scope (or `documents:read`). The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
66450
67108
|
"security": [
|
|
66451
67109
|
{
|
|
66452
67110
|
"BearerAuth": []
|
|
@@ -66462,22 +67120,14 @@
|
|
|
66462
67120
|
"application/json": {
|
|
66463
67121
|
"schema": {
|
|
66464
67122
|
"type": "object",
|
|
66465
|
-
"
|
|
66466
|
-
"collections": {
|
|
66467
|
-
"type": "array",
|
|
66468
|
-
"items": {
|
|
66469
|
-
"type": "object",
|
|
66470
|
-
"additionalProperties": true
|
|
66471
|
-
}
|
|
66472
|
-
},
|
|
66473
|
-
"restricted": {
|
|
66474
|
-
"type": "boolean"
|
|
66475
|
-
}
|
|
66476
|
-
}
|
|
67123
|
+
"additionalProperties": true
|
|
66477
67124
|
}
|
|
66478
67125
|
}
|
|
66479
67126
|
}
|
|
66480
67127
|
},
|
|
67128
|
+
"400": {
|
|
67129
|
+
"$ref": "#/components/responses/BadRequest"
|
|
67130
|
+
},
|
|
66481
67131
|
"401": {
|
|
66482
67132
|
"$ref": "#/components/responses/Unauthorized"
|
|
66483
67133
|
},
|
|
@@ -66490,15 +67140,15 @@
|
|
|
66490
67140
|
}
|
|
66491
67141
|
}
|
|
66492
67142
|
},
|
|
66493
|
-
"/v1/collections/
|
|
67143
|
+
"/v1/collections/directory": {
|
|
66494
67144
|
"get": {
|
|
66495
|
-
"operationId": "
|
|
67145
|
+
"operationId": "listCollectionsDirectory",
|
|
66496
67146
|
"x-audience": "public",
|
|
66497
67147
|
"tags": [
|
|
66498
67148
|
"Collections"
|
|
66499
67149
|
],
|
|
66500
|
-
"summary": "
|
|
66501
|
-
"description": "
|
|
67150
|
+
"summary": "List the relationship directory",
|
|
67151
|
+
"description": "Who is who: each identifier (an address, a domain, a phone number, a handle) with what that party is to the workspace and where that came from (`person`, `config`, `record` or `read`). Each entry is shown only where the key's person may see its evidence: configured and corrected entries for an owner, an entry from a record when the person may read that record, an entry from a conversation when the person may read that conversation. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
66502
67152
|
"security": [
|
|
66503
67153
|
{
|
|
66504
67154
|
"BearerAuth": []
|
|
@@ -66514,18 +67164,100 @@
|
|
|
66514
67164
|
"application/json": {
|
|
66515
67165
|
"schema": {
|
|
66516
67166
|
"type": "object",
|
|
66517
|
-
"
|
|
66518
|
-
|
|
66519
|
-
|
|
66520
|
-
|
|
66521
|
-
|
|
66522
|
-
|
|
67167
|
+
"additionalProperties": true
|
|
67168
|
+
}
|
|
67169
|
+
}
|
|
67170
|
+
}
|
|
67171
|
+
},
|
|
67172
|
+
"400": {
|
|
67173
|
+
"$ref": "#/components/responses/BadRequest"
|
|
67174
|
+
},
|
|
67175
|
+
"401": {
|
|
67176
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
67177
|
+
},
|
|
67178
|
+
"403": {
|
|
67179
|
+
"$ref": "#/components/responses/Forbidden"
|
|
67180
|
+
},
|
|
67181
|
+
"429": {
|
|
67182
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
67183
|
+
}
|
|
67184
|
+
}
|
|
67185
|
+
},
|
|
67186
|
+
"put": {
|
|
67187
|
+
"operationId": "saveCollectionsDirectory",
|
|
67188
|
+
"x-audience": "public",
|
|
67189
|
+
"tags": [
|
|
67190
|
+
"Collections"
|
|
67191
|
+
],
|
|
67192
|
+
"summary": "Correct the relationship directory",
|
|
67193
|
+
"description": "Sets entries as a person's correction (they outrank configuration, records and conversations for their identifier) and removes entries by id. The documents of every identifier touched are relabelled; `wait` waits up to 60 seconds and `pending` counts what is still to follow. Requires the `documents:write` scope. The key's person must be an Admin of the workspace (the `workspace` permission), as in the web app.",
|
|
67194
|
+
"security": [
|
|
67195
|
+
{
|
|
67196
|
+
"BearerAuth": []
|
|
67197
|
+
}
|
|
67198
|
+
],
|
|
67199
|
+
"x-required-scopes": [
|
|
67200
|
+
"documents:write"
|
|
67201
|
+
],
|
|
67202
|
+
"requestBody": {
|
|
67203
|
+
"required": true,
|
|
67204
|
+
"content": {
|
|
67205
|
+
"application/json": {
|
|
67206
|
+
"schema": {
|
|
67207
|
+
"type": "object",
|
|
67208
|
+
"properties": {
|
|
67209
|
+
"entries": {
|
|
67210
|
+
"type": "array",
|
|
67211
|
+
"maxItems": 200,
|
|
67212
|
+
"items": {
|
|
67213
|
+
"type": "object",
|
|
67214
|
+
"required": [
|
|
67215
|
+
"match_value",
|
|
67216
|
+
"relationship"
|
|
67217
|
+
],
|
|
67218
|
+
"properties": {
|
|
67219
|
+
"match_value": {
|
|
67220
|
+
"type": "string",
|
|
67221
|
+
"description": "A typed identifier: `domain:acme.com`, `email:jane@acme.com`, `phone:…`, `handle:…` or `entity:…`."
|
|
67222
|
+
},
|
|
67223
|
+
"relationship": {
|
|
67224
|
+
"type": "string",
|
|
67225
|
+
"description": "A relationship kind of the workspace (its slug), or `own` / `other`."
|
|
67226
|
+
}
|
|
66523
67227
|
}
|
|
66524
67228
|
}
|
|
67229
|
+
},
|
|
67230
|
+
"remove": {
|
|
67231
|
+
"type": "array",
|
|
67232
|
+
"maxItems": 200,
|
|
67233
|
+
"items": {
|
|
67234
|
+
"type": "string",
|
|
67235
|
+
"format": "uuid"
|
|
67236
|
+
}
|
|
67237
|
+
},
|
|
67238
|
+
"wait": {
|
|
67239
|
+
"type": "boolean",
|
|
67240
|
+
"description": "Wait up to 60 seconds for the documents to be relabelled."
|
|
66525
67241
|
}
|
|
66526
67242
|
}
|
|
66527
67243
|
}
|
|
66528
67244
|
}
|
|
67245
|
+
}
|
|
67246
|
+
},
|
|
67247
|
+
"responses": {
|
|
67248
|
+
"200": {
|
|
67249
|
+
"description": "OK",
|
|
67250
|
+
"content": {
|
|
67251
|
+
"application/json": {
|
|
67252
|
+
"schema": {
|
|
67253
|
+
"type": "object",
|
|
67254
|
+
"additionalProperties": true
|
|
67255
|
+
}
|
|
67256
|
+
}
|
|
67257
|
+
}
|
|
67258
|
+
},
|
|
67259
|
+
"400": {
|
|
67260
|
+
"$ref": "#/components/responses/BadRequest"
|
|
66529
67261
|
},
|
|
66530
67262
|
"401": {
|
|
66531
67263
|
"$ref": "#/components/responses/Unauthorized"
|
|
@@ -66533,6 +67265,9 @@
|
|
|
66533
67265
|
"403": {
|
|
66534
67266
|
"$ref": "#/components/responses/Forbidden"
|
|
66535
67267
|
},
|
|
67268
|
+
"404": {
|
|
67269
|
+
"$ref": "#/components/responses/NotFound"
|
|
67270
|
+
},
|
|
66536
67271
|
"429": {
|
|
66537
67272
|
"$ref": "#/components/responses/RateLimitExceeded"
|
|
66538
67273
|
}
|
|
@@ -84764,6 +85499,31 @@
|
|
|
84764
85499
|
}
|
|
84765
85500
|
},
|
|
84766
85501
|
"schemas": {
|
|
85502
|
+
"DocumentParty": {
|
|
85503
|
+
"type": "object",
|
|
85504
|
+
"required": [
|
|
85505
|
+
"id"
|
|
85506
|
+
],
|
|
85507
|
+
"description": "One party of a document: a typed identifier and, optionally, its role. An address also stands for its domain unless it is a public mail provider's.",
|
|
85508
|
+
"properties": {
|
|
85509
|
+
"id": {
|
|
85510
|
+
"type": "string",
|
|
85511
|
+
"maxLength": 320,
|
|
85512
|
+
"description": "`email:jane@acme.com`, `domain:acme.com`, `phone:+4930123456`, `handle:<scope>:<id>` or `entity:<id>` (a bare address reads as `email:`).",
|
|
85513
|
+
"example": "email:jane@acme.com"
|
|
85514
|
+
},
|
|
85515
|
+
"role": {
|
|
85516
|
+
"type": "string",
|
|
85517
|
+
"enum": [
|
|
85518
|
+
"from",
|
|
85519
|
+
"to",
|
|
85520
|
+
"cc",
|
|
85521
|
+
"attendee",
|
|
85522
|
+
"author"
|
|
85523
|
+
]
|
|
85524
|
+
}
|
|
85525
|
+
}
|
|
85526
|
+
},
|
|
84767
85527
|
"Account": {
|
|
84768
85528
|
"type": "object",
|
|
84769
85529
|
"required": [
|
|
@@ -118231,6 +118991,84 @@
|
|
|
118231
118991
|
}
|
|
118232
118992
|
}
|
|
118233
118993
|
},
|
|
118994
|
+
"SourceRecordRoles": {
|
|
118995
|
+
"type": "object",
|
|
118996
|
+
"required": [
|
|
118997
|
+
"available",
|
|
118998
|
+
"enabled",
|
|
118999
|
+
"admins",
|
|
119000
|
+
"owners",
|
|
119001
|
+
"unowned"
|
|
119002
|
+
],
|
|
119003
|
+
"properties": {
|
|
119004
|
+
"available": {
|
|
119005
|
+
"type": "boolean",
|
|
119006
|
+
"description": "Whether the source says whose each record is. Without that the roles cannot be switched on."
|
|
119007
|
+
},
|
|
119008
|
+
"enabled": {
|
|
119009
|
+
"type": "boolean",
|
|
119010
|
+
"description": "Whether admins read every record and everyone else their own."
|
|
119011
|
+
},
|
|
119012
|
+
"admins": {
|
|
119013
|
+
"type": "array",
|
|
119014
|
+
"items": {
|
|
119015
|
+
"$ref": "#/components/schemas/SourceRecordRolePerson"
|
|
119016
|
+
}
|
|
119017
|
+
},
|
|
119018
|
+
"owners": {
|
|
119019
|
+
"type": "array",
|
|
119020
|
+
"description": "The owners the source names, most records first (at most 200).",
|
|
119021
|
+
"items": {
|
|
119022
|
+
"type": "object",
|
|
119023
|
+
"required": [
|
|
119024
|
+
"email",
|
|
119025
|
+
"member",
|
|
119026
|
+
"records"
|
|
119027
|
+
],
|
|
119028
|
+
"properties": {
|
|
119029
|
+
"email": {
|
|
119030
|
+
"type": "string"
|
|
119031
|
+
},
|
|
119032
|
+
"member": {
|
|
119033
|
+
"nullable": true,
|
|
119034
|
+
"allOf": [
|
|
119035
|
+
{
|
|
119036
|
+
"$ref": "#/components/schemas/SourceRecordRolePerson"
|
|
119037
|
+
}
|
|
119038
|
+
]
|
|
119039
|
+
},
|
|
119040
|
+
"records": {
|
|
119041
|
+
"type": "integer"
|
|
119042
|
+
}
|
|
119043
|
+
}
|
|
119044
|
+
}
|
|
119045
|
+
},
|
|
119046
|
+
"unowned": {
|
|
119047
|
+
"type": "integer",
|
|
119048
|
+
"description": "Records that name no owner."
|
|
119049
|
+
}
|
|
119050
|
+
}
|
|
119051
|
+
},
|
|
119052
|
+
"SourceRecordRolePerson": {
|
|
119053
|
+
"type": "object",
|
|
119054
|
+
"required": [
|
|
119055
|
+
"id"
|
|
119056
|
+
],
|
|
119057
|
+
"properties": {
|
|
119058
|
+
"id": {
|
|
119059
|
+
"type": "string",
|
|
119060
|
+
"format": "uuid"
|
|
119061
|
+
},
|
|
119062
|
+
"name": {
|
|
119063
|
+
"type": "string",
|
|
119064
|
+
"nullable": true
|
|
119065
|
+
},
|
|
119066
|
+
"email": {
|
|
119067
|
+
"type": "string",
|
|
119068
|
+
"nullable": true
|
|
119069
|
+
}
|
|
119070
|
+
}
|
|
119071
|
+
},
|
|
118234
119072
|
"ThreadState": {
|
|
118235
119073
|
"type": "object",
|
|
118236
119074
|
"properties": {
|