@talonic/docs 0.21.97 → 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 +675 -13
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/seo.js +675 -13
- package/openapi.json +895 -237
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -115,6 +115,10 @@ var generated_nav_default = {
|
|
|
115
115
|
id: "ref-contract-check",
|
|
116
116
|
label: "Contract Check"
|
|
117
117
|
},
|
|
118
|
+
{
|
|
119
|
+
id: "ref-collections",
|
|
120
|
+
label: "Collections"
|
|
121
|
+
},
|
|
118
122
|
{
|
|
119
123
|
id: "ref-catalog",
|
|
120
124
|
label: "Catalog"
|
|
@@ -2105,6 +2109,18 @@ var openapi_default = {
|
|
|
2105
2109
|
],
|
|
2106
2110
|
default: "extract",
|
|
2107
2111
|
description: "`extract`: text only, for a following `POST /v1/extract`. `ingest`: full processing into workspace data."
|
|
2112
|
+
},
|
|
2113
|
+
parties: {
|
|
2114
|
+
type: "array",
|
|
2115
|
+
maxItems: 500,
|
|
2116
|
+
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.",
|
|
2117
|
+
items: {
|
|
2118
|
+
$ref: "#/components/schemas/DocumentParty"
|
|
2119
|
+
}
|
|
2120
|
+
},
|
|
2121
|
+
parties_complete: {
|
|
2122
|
+
type: "boolean",
|
|
2123
|
+
description: "`parties` names every party of the document."
|
|
2108
2124
|
}
|
|
2109
2125
|
}
|
|
2110
2126
|
}
|
|
@@ -66154,6 +66170,316 @@ var openapi_default = {
|
|
|
66154
66170
|
}
|
|
66155
66171
|
}
|
|
66156
66172
|
},
|
|
66173
|
+
"/v1/documents/{id}/collections": {
|
|
66174
|
+
get: {
|
|
66175
|
+
operationId: "explainDocumentCollections",
|
|
66176
|
+
"x-audience": "public",
|
|
66177
|
+
tags: [
|
|
66178
|
+
"Collections"
|
|
66179
|
+
],
|
|
66180
|
+
summary: "Explain a document's collections",
|
|
66181
|
+
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.",
|
|
66182
|
+
security: [
|
|
66183
|
+
{
|
|
66184
|
+
BearerAuth: []
|
|
66185
|
+
}
|
|
66186
|
+
],
|
|
66187
|
+
"x-required-scopes": [
|
|
66188
|
+
"read"
|
|
66189
|
+
],
|
|
66190
|
+
parameters: [
|
|
66191
|
+
{
|
|
66192
|
+
name: "id",
|
|
66193
|
+
in: "path",
|
|
66194
|
+
required: true,
|
|
66195
|
+
schema: {
|
|
66196
|
+
type: "string",
|
|
66197
|
+
format: "uuid"
|
|
66198
|
+
}
|
|
66199
|
+
}
|
|
66200
|
+
],
|
|
66201
|
+
responses: {
|
|
66202
|
+
"200": {
|
|
66203
|
+
description: "OK",
|
|
66204
|
+
content: {
|
|
66205
|
+
"application/json": {
|
|
66206
|
+
schema: {
|
|
66207
|
+
type: "object",
|
|
66208
|
+
additionalProperties: true
|
|
66209
|
+
}
|
|
66210
|
+
}
|
|
66211
|
+
}
|
|
66212
|
+
},
|
|
66213
|
+
"400": {
|
|
66214
|
+
$ref: "#/components/responses/BadRequest"
|
|
66215
|
+
},
|
|
66216
|
+
"401": {
|
|
66217
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66218
|
+
},
|
|
66219
|
+
"403": {
|
|
66220
|
+
$ref: "#/components/responses/Forbidden"
|
|
66221
|
+
},
|
|
66222
|
+
"404": {
|
|
66223
|
+
$ref: "#/components/responses/NotFound"
|
|
66224
|
+
},
|
|
66225
|
+
"429": {
|
|
66226
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66227
|
+
}
|
|
66228
|
+
}
|
|
66229
|
+
}
|
|
66230
|
+
},
|
|
66231
|
+
"/v1/documents/{id}/traits": {
|
|
66232
|
+
patch: {
|
|
66233
|
+
operationId: "setDocumentLabels",
|
|
66234
|
+
"x-audience": "public",
|
|
66235
|
+
tags: [
|
|
66236
|
+
"Collections"
|
|
66237
|
+
],
|
|
66238
|
+
summary: "Change a document's labels by hand",
|
|
66239
|
+
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.",
|
|
66240
|
+
security: [
|
|
66241
|
+
{
|
|
66242
|
+
BearerAuth: []
|
|
66243
|
+
}
|
|
66244
|
+
],
|
|
66245
|
+
"x-required-scopes": [
|
|
66246
|
+
"documents:write"
|
|
66247
|
+
],
|
|
66248
|
+
parameters: [
|
|
66249
|
+
{
|
|
66250
|
+
name: "id",
|
|
66251
|
+
in: "path",
|
|
66252
|
+
required: true,
|
|
66253
|
+
schema: {
|
|
66254
|
+
type: "string",
|
|
66255
|
+
format: "uuid"
|
|
66256
|
+
}
|
|
66257
|
+
}
|
|
66258
|
+
],
|
|
66259
|
+
requestBody: {
|
|
66260
|
+
required: true,
|
|
66261
|
+
content: {
|
|
66262
|
+
"application/json": {
|
|
66263
|
+
schema: {
|
|
66264
|
+
type: "object",
|
|
66265
|
+
properties: {
|
|
66266
|
+
add: {
|
|
66267
|
+
type: "array",
|
|
66268
|
+
maxItems: 50,
|
|
66269
|
+
items: {
|
|
66270
|
+
type: "string",
|
|
66271
|
+
maxLength: 200
|
|
66272
|
+
}
|
|
66273
|
+
},
|
|
66274
|
+
remove: {
|
|
66275
|
+
type: "array",
|
|
66276
|
+
maxItems: 50,
|
|
66277
|
+
items: {
|
|
66278
|
+
type: "string",
|
|
66279
|
+
maxLength: 200
|
|
66280
|
+
}
|
|
66281
|
+
}
|
|
66282
|
+
}
|
|
66283
|
+
}
|
|
66284
|
+
}
|
|
66285
|
+
}
|
|
66286
|
+
},
|
|
66287
|
+
responses: {
|
|
66288
|
+
"200": {
|
|
66289
|
+
description: "OK",
|
|
66290
|
+
content: {
|
|
66291
|
+
"application/json": {
|
|
66292
|
+
schema: {
|
|
66293
|
+
type: "object",
|
|
66294
|
+
additionalProperties: true
|
|
66295
|
+
}
|
|
66296
|
+
}
|
|
66297
|
+
}
|
|
66298
|
+
},
|
|
66299
|
+
"400": {
|
|
66300
|
+
$ref: "#/components/responses/BadRequest"
|
|
66301
|
+
},
|
|
66302
|
+
"401": {
|
|
66303
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66304
|
+
},
|
|
66305
|
+
"403": {
|
|
66306
|
+
$ref: "#/components/responses/Forbidden"
|
|
66307
|
+
},
|
|
66308
|
+
"404": {
|
|
66309
|
+
$ref: "#/components/responses/NotFound"
|
|
66310
|
+
},
|
|
66311
|
+
"429": {
|
|
66312
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66313
|
+
}
|
|
66314
|
+
}
|
|
66315
|
+
}
|
|
66316
|
+
},
|
|
66317
|
+
"/v1/documents/{id}/move": {
|
|
66318
|
+
post: {
|
|
66319
|
+
operationId: "moveDocumentBetweenCollections",
|
|
66320
|
+
"x-audience": "public",
|
|
66321
|
+
tags: [
|
|
66322
|
+
"Collections"
|
|
66323
|
+
],
|
|
66324
|
+
summary: "Move a document between collections",
|
|
66325
|
+
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.",
|
|
66326
|
+
security: [
|
|
66327
|
+
{
|
|
66328
|
+
BearerAuth: []
|
|
66329
|
+
}
|
|
66330
|
+
],
|
|
66331
|
+
"x-required-scopes": [
|
|
66332
|
+
"documents:write"
|
|
66333
|
+
],
|
|
66334
|
+
parameters: [
|
|
66335
|
+
{
|
|
66336
|
+
name: "id",
|
|
66337
|
+
in: "path",
|
|
66338
|
+
required: true,
|
|
66339
|
+
schema: {
|
|
66340
|
+
type: "string",
|
|
66341
|
+
format: "uuid"
|
|
66342
|
+
}
|
|
66343
|
+
}
|
|
66344
|
+
],
|
|
66345
|
+
requestBody: {
|
|
66346
|
+
required: true,
|
|
66347
|
+
content: {
|
|
66348
|
+
"application/json": {
|
|
66349
|
+
schema: {
|
|
66350
|
+
type: "object",
|
|
66351
|
+
properties: {
|
|
66352
|
+
from: {
|
|
66353
|
+
type: "string",
|
|
66354
|
+
format: "uuid",
|
|
66355
|
+
nullable: true
|
|
66356
|
+
},
|
|
66357
|
+
to: {
|
|
66358
|
+
type: "string",
|
|
66359
|
+
format: "uuid",
|
|
66360
|
+
nullable: true
|
|
66361
|
+
}
|
|
66362
|
+
}
|
|
66363
|
+
}
|
|
66364
|
+
}
|
|
66365
|
+
}
|
|
66366
|
+
},
|
|
66367
|
+
responses: {
|
|
66368
|
+
"200": {
|
|
66369
|
+
description: "OK",
|
|
66370
|
+
content: {
|
|
66371
|
+
"application/json": {
|
|
66372
|
+
schema: {
|
|
66373
|
+
type: "object",
|
|
66374
|
+
additionalProperties: true
|
|
66375
|
+
}
|
|
66376
|
+
}
|
|
66377
|
+
}
|
|
66378
|
+
},
|
|
66379
|
+
"400": {
|
|
66380
|
+
$ref: "#/components/responses/BadRequest"
|
|
66381
|
+
},
|
|
66382
|
+
"401": {
|
|
66383
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66384
|
+
},
|
|
66385
|
+
"403": {
|
|
66386
|
+
$ref: "#/components/responses/Forbidden"
|
|
66387
|
+
},
|
|
66388
|
+
"404": {
|
|
66389
|
+
$ref: "#/components/responses/NotFound"
|
|
66390
|
+
},
|
|
66391
|
+
"409": {
|
|
66392
|
+
$ref: "#/components/responses/Conflict"
|
|
66393
|
+
},
|
|
66394
|
+
"429": {
|
|
66395
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66396
|
+
}
|
|
66397
|
+
}
|
|
66398
|
+
}
|
|
66399
|
+
},
|
|
66400
|
+
"/v1/documents/{id}/parties": {
|
|
66401
|
+
put: {
|
|
66402
|
+
operationId: "setDocumentParties",
|
|
66403
|
+
"x-audience": "public",
|
|
66404
|
+
tags: [
|
|
66405
|
+
"Collections"
|
|
66406
|
+
],
|
|
66407
|
+
summary: "Set a document's parties",
|
|
66408
|
+
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.",
|
|
66409
|
+
security: [
|
|
66410
|
+
{
|
|
66411
|
+
BearerAuth: []
|
|
66412
|
+
}
|
|
66413
|
+
],
|
|
66414
|
+
"x-required-scopes": [
|
|
66415
|
+
"documents:write"
|
|
66416
|
+
],
|
|
66417
|
+
parameters: [
|
|
66418
|
+
{
|
|
66419
|
+
name: "id",
|
|
66420
|
+
in: "path",
|
|
66421
|
+
required: true,
|
|
66422
|
+
schema: {
|
|
66423
|
+
type: "string",
|
|
66424
|
+
format: "uuid"
|
|
66425
|
+
}
|
|
66426
|
+
}
|
|
66427
|
+
],
|
|
66428
|
+
requestBody: {
|
|
66429
|
+
required: true,
|
|
66430
|
+
content: {
|
|
66431
|
+
"application/json": {
|
|
66432
|
+
schema: {
|
|
66433
|
+
type: "object",
|
|
66434
|
+
required: [
|
|
66435
|
+
"parties"
|
|
66436
|
+
],
|
|
66437
|
+
properties: {
|
|
66438
|
+
parties: {
|
|
66439
|
+
type: "array",
|
|
66440
|
+
maxItems: 500,
|
|
66441
|
+
items: {
|
|
66442
|
+
$ref: "#/components/schemas/DocumentParty"
|
|
66443
|
+
}
|
|
66444
|
+
},
|
|
66445
|
+
complete: {
|
|
66446
|
+
type: "boolean"
|
|
66447
|
+
}
|
|
66448
|
+
}
|
|
66449
|
+
}
|
|
66450
|
+
}
|
|
66451
|
+
}
|
|
66452
|
+
},
|
|
66453
|
+
responses: {
|
|
66454
|
+
"200": {
|
|
66455
|
+
description: "OK",
|
|
66456
|
+
content: {
|
|
66457
|
+
"application/json": {
|
|
66458
|
+
schema: {
|
|
66459
|
+
type: "object",
|
|
66460
|
+
additionalProperties: true
|
|
66461
|
+
}
|
|
66462
|
+
}
|
|
66463
|
+
}
|
|
66464
|
+
},
|
|
66465
|
+
"400": {
|
|
66466
|
+
$ref: "#/components/responses/BadRequest"
|
|
66467
|
+
},
|
|
66468
|
+
"401": {
|
|
66469
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66470
|
+
},
|
|
66471
|
+
"403": {
|
|
66472
|
+
$ref: "#/components/responses/Forbidden"
|
|
66473
|
+
},
|
|
66474
|
+
"404": {
|
|
66475
|
+
$ref: "#/components/responses/NotFound"
|
|
66476
|
+
},
|
|
66477
|
+
"429": {
|
|
66478
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66479
|
+
}
|
|
66480
|
+
}
|
|
66481
|
+
}
|
|
66482
|
+
},
|
|
66157
66483
|
"/v1/documents/batch-metadata/import": {
|
|
66158
66484
|
post: {
|
|
66159
66485
|
operationId: "importDocumentBatchMetadata",
|
|
@@ -66727,9 +67053,58 @@ var openapi_default = {
|
|
|
66727
67053
|
type: "object",
|
|
66728
67054
|
additionalProperties: true
|
|
66729
67055
|
}
|
|
66730
|
-
},
|
|
66731
|
-
restricted: {
|
|
66732
|
-
type: "boolean"
|
|
67056
|
+
},
|
|
67057
|
+
restricted: {
|
|
67058
|
+
type: "boolean"
|
|
67059
|
+
}
|
|
67060
|
+
}
|
|
67061
|
+
}
|
|
67062
|
+
}
|
|
67063
|
+
}
|
|
67064
|
+
},
|
|
67065
|
+
"401": {
|
|
67066
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67067
|
+
},
|
|
67068
|
+
"403": {
|
|
67069
|
+
$ref: "#/components/responses/Forbidden"
|
|
67070
|
+
},
|
|
67071
|
+
"429": {
|
|
67072
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67073
|
+
}
|
|
67074
|
+
}
|
|
67075
|
+
}
|
|
67076
|
+
},
|
|
67077
|
+
"/v1/collections/counts": {
|
|
67078
|
+
get: {
|
|
67079
|
+
operationId: "getCollectionCounts",
|
|
67080
|
+
"x-audience": "public",
|
|
67081
|
+
tags: [
|
|
67082
|
+
"Collections"
|
|
67083
|
+
],
|
|
67084
|
+
summary: "Count documents per collection",
|
|
67085
|
+
description: "Visible-document counts per collection. Requires the `read` scope (or `documents:read`). Any member of the workspace may call it.",
|
|
67086
|
+
security: [
|
|
67087
|
+
{
|
|
67088
|
+
BearerAuth: []
|
|
67089
|
+
}
|
|
67090
|
+
],
|
|
67091
|
+
"x-required-scopes": [
|
|
67092
|
+
"read"
|
|
67093
|
+
],
|
|
67094
|
+
responses: {
|
|
67095
|
+
"200": {
|
|
67096
|
+
description: "OK",
|
|
67097
|
+
content: {
|
|
67098
|
+
"application/json": {
|
|
67099
|
+
schema: {
|
|
67100
|
+
type: "object",
|
|
67101
|
+
properties: {
|
|
67102
|
+
collections: {
|
|
67103
|
+
type: "array",
|
|
67104
|
+
items: {
|
|
67105
|
+
type: "object",
|
|
67106
|
+
additionalProperties: true
|
|
67107
|
+
}
|
|
66733
67108
|
}
|
|
66734
67109
|
}
|
|
66735
67110
|
}
|
|
@@ -66748,15 +67123,15 @@ var openapi_default = {
|
|
|
66748
67123
|
}
|
|
66749
67124
|
}
|
|
66750
67125
|
},
|
|
66751
|
-
"/v1/collections/
|
|
67126
|
+
"/v1/collections/config": {
|
|
66752
67127
|
get: {
|
|
66753
|
-
operationId: "
|
|
67128
|
+
operationId: "getCollectionsConfig",
|
|
66754
67129
|
"x-audience": "public",
|
|
66755
67130
|
tags: [
|
|
66756
67131
|
"Collections"
|
|
66757
67132
|
],
|
|
66758
|
-
summary: "
|
|
66759
|
-
description: "
|
|
67133
|
+
summary: "Get the collections configuration",
|
|
67134
|
+
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.",
|
|
66760
67135
|
security: [
|
|
66761
67136
|
{
|
|
66762
67137
|
BearerAuth: []
|
|
@@ -66772,18 +67147,277 @@ var openapi_default = {
|
|
|
66772
67147
|
"application/json": {
|
|
66773
67148
|
schema: {
|
|
66774
67149
|
type: "object",
|
|
66775
|
-
|
|
66776
|
-
|
|
66777
|
-
|
|
66778
|
-
|
|
66779
|
-
|
|
66780
|
-
|
|
67150
|
+
additionalProperties: true
|
|
67151
|
+
}
|
|
67152
|
+
}
|
|
67153
|
+
}
|
|
67154
|
+
},
|
|
67155
|
+
"400": {
|
|
67156
|
+
$ref: "#/components/responses/BadRequest"
|
|
67157
|
+
},
|
|
67158
|
+
"401": {
|
|
67159
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67160
|
+
},
|
|
67161
|
+
"403": {
|
|
67162
|
+
$ref: "#/components/responses/Forbidden"
|
|
67163
|
+
},
|
|
67164
|
+
"429": {
|
|
67165
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67166
|
+
}
|
|
67167
|
+
}
|
|
67168
|
+
},
|
|
67169
|
+
put: {
|
|
67170
|
+
operationId: "applyCollectionsConfig",
|
|
67171
|
+
"x-audience": "public",
|
|
67172
|
+
tags: [
|
|
67173
|
+
"Collections"
|
|
67174
|
+
],
|
|
67175
|
+
summary: "Apply a collections configuration",
|
|
67176
|
+
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.",
|
|
67177
|
+
security: [
|
|
67178
|
+
{
|
|
67179
|
+
BearerAuth: []
|
|
67180
|
+
}
|
|
67181
|
+
],
|
|
67182
|
+
"x-required-scopes": [
|
|
67183
|
+
"documents:write"
|
|
67184
|
+
],
|
|
67185
|
+
parameters: [
|
|
67186
|
+
{
|
|
67187
|
+
name: "dry_run",
|
|
67188
|
+
in: "query",
|
|
67189
|
+
required: false,
|
|
67190
|
+
schema: {
|
|
67191
|
+
type: "boolean",
|
|
67192
|
+
default: false
|
|
67193
|
+
},
|
|
67194
|
+
description: "Check and preview the change; nothing is saved."
|
|
67195
|
+
},
|
|
67196
|
+
{
|
|
67197
|
+
name: "prune",
|
|
67198
|
+
in: "query",
|
|
67199
|
+
required: false,
|
|
67200
|
+
schema: {
|
|
67201
|
+
type: "boolean",
|
|
67202
|
+
default: false
|
|
67203
|
+
},
|
|
67204
|
+
description: "Remove keyed collections the document does not name."
|
|
67205
|
+
}
|
|
67206
|
+
],
|
|
67207
|
+
requestBody: {
|
|
67208
|
+
required: true,
|
|
67209
|
+
content: {
|
|
67210
|
+
"application/json": {
|
|
67211
|
+
schema: {
|
|
67212
|
+
type: "object",
|
|
67213
|
+
properties: {
|
|
67214
|
+
document: {
|
|
67215
|
+
type: "object",
|
|
67216
|
+
additionalProperties: true,
|
|
67217
|
+
description: "The configuration document."
|
|
67218
|
+
},
|
|
67219
|
+
yaml: {
|
|
67220
|
+
type: "string",
|
|
67221
|
+
maxLength: 1e6,
|
|
67222
|
+
description: "The configuration document as YAML or JSON text."
|
|
67223
|
+
}
|
|
67224
|
+
}
|
|
67225
|
+
}
|
|
67226
|
+
}
|
|
67227
|
+
}
|
|
67228
|
+
},
|
|
67229
|
+
responses: {
|
|
67230
|
+
"200": {
|
|
67231
|
+
description: "OK",
|
|
67232
|
+
content: {
|
|
67233
|
+
"application/json": {
|
|
67234
|
+
schema: {
|
|
67235
|
+
type: "object",
|
|
67236
|
+
additionalProperties: true
|
|
67237
|
+
}
|
|
67238
|
+
}
|
|
67239
|
+
}
|
|
67240
|
+
},
|
|
67241
|
+
"400": {
|
|
67242
|
+
$ref: "#/components/responses/BadRequest"
|
|
67243
|
+
},
|
|
67244
|
+
"401": {
|
|
67245
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67246
|
+
},
|
|
67247
|
+
"403": {
|
|
67248
|
+
$ref: "#/components/responses/Forbidden"
|
|
67249
|
+
},
|
|
67250
|
+
"409": {
|
|
67251
|
+
$ref: "#/components/responses/Conflict"
|
|
67252
|
+
},
|
|
67253
|
+
"429": {
|
|
67254
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67255
|
+
}
|
|
67256
|
+
}
|
|
67257
|
+
}
|
|
67258
|
+
},
|
|
67259
|
+
"/v1/collections/proposal": {
|
|
67260
|
+
post: {
|
|
67261
|
+
operationId: "proposeCollectionsConfig",
|
|
67262
|
+
"x-audience": "public",
|
|
67263
|
+
tags: [
|
|
67264
|
+
"Collections"
|
|
67265
|
+
],
|
|
67266
|
+
summary: "Propose a collections configuration",
|
|
67267
|
+
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.",
|
|
67268
|
+
security: [
|
|
67269
|
+
{
|
|
67270
|
+
BearerAuth: []
|
|
67271
|
+
}
|
|
67272
|
+
],
|
|
67273
|
+
"x-required-scopes": [
|
|
67274
|
+
"read"
|
|
67275
|
+
],
|
|
67276
|
+
responses: {
|
|
67277
|
+
"200": {
|
|
67278
|
+
description: "OK",
|
|
67279
|
+
content: {
|
|
67280
|
+
"application/json": {
|
|
67281
|
+
schema: {
|
|
67282
|
+
type: "object",
|
|
67283
|
+
additionalProperties: true
|
|
67284
|
+
}
|
|
67285
|
+
}
|
|
67286
|
+
}
|
|
67287
|
+
},
|
|
67288
|
+
"400": {
|
|
67289
|
+
$ref: "#/components/responses/BadRequest"
|
|
67290
|
+
},
|
|
67291
|
+
"401": {
|
|
67292
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67293
|
+
},
|
|
67294
|
+
"403": {
|
|
67295
|
+
$ref: "#/components/responses/Forbidden"
|
|
67296
|
+
},
|
|
67297
|
+
"429": {
|
|
67298
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67299
|
+
}
|
|
67300
|
+
}
|
|
67301
|
+
}
|
|
67302
|
+
},
|
|
67303
|
+
"/v1/collections/directory": {
|
|
67304
|
+
get: {
|
|
67305
|
+
operationId: "listCollectionsDirectory",
|
|
67306
|
+
"x-audience": "public",
|
|
67307
|
+
tags: [
|
|
67308
|
+
"Collections"
|
|
67309
|
+
],
|
|
67310
|
+
summary: "List the relationship directory",
|
|
67311
|
+
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.",
|
|
67312
|
+
security: [
|
|
67313
|
+
{
|
|
67314
|
+
BearerAuth: []
|
|
67315
|
+
}
|
|
67316
|
+
],
|
|
67317
|
+
"x-required-scopes": [
|
|
67318
|
+
"read"
|
|
67319
|
+
],
|
|
67320
|
+
responses: {
|
|
67321
|
+
"200": {
|
|
67322
|
+
description: "OK",
|
|
67323
|
+
content: {
|
|
67324
|
+
"application/json": {
|
|
67325
|
+
schema: {
|
|
67326
|
+
type: "object",
|
|
67327
|
+
additionalProperties: true
|
|
67328
|
+
}
|
|
67329
|
+
}
|
|
67330
|
+
}
|
|
67331
|
+
},
|
|
67332
|
+
"400": {
|
|
67333
|
+
$ref: "#/components/responses/BadRequest"
|
|
67334
|
+
},
|
|
67335
|
+
"401": {
|
|
67336
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67337
|
+
},
|
|
67338
|
+
"403": {
|
|
67339
|
+
$ref: "#/components/responses/Forbidden"
|
|
67340
|
+
},
|
|
67341
|
+
"429": {
|
|
67342
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67343
|
+
}
|
|
67344
|
+
}
|
|
67345
|
+
},
|
|
67346
|
+
put: {
|
|
67347
|
+
operationId: "saveCollectionsDirectory",
|
|
67348
|
+
"x-audience": "public",
|
|
67349
|
+
tags: [
|
|
67350
|
+
"Collections"
|
|
67351
|
+
],
|
|
67352
|
+
summary: "Correct the relationship directory",
|
|
67353
|
+
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.",
|
|
67354
|
+
security: [
|
|
67355
|
+
{
|
|
67356
|
+
BearerAuth: []
|
|
67357
|
+
}
|
|
67358
|
+
],
|
|
67359
|
+
"x-required-scopes": [
|
|
67360
|
+
"documents:write"
|
|
67361
|
+
],
|
|
67362
|
+
requestBody: {
|
|
67363
|
+
required: true,
|
|
67364
|
+
content: {
|
|
67365
|
+
"application/json": {
|
|
67366
|
+
schema: {
|
|
67367
|
+
type: "object",
|
|
67368
|
+
properties: {
|
|
67369
|
+
entries: {
|
|
67370
|
+
type: "array",
|
|
67371
|
+
maxItems: 200,
|
|
67372
|
+
items: {
|
|
67373
|
+
type: "object",
|
|
67374
|
+
required: [
|
|
67375
|
+
"match_value",
|
|
67376
|
+
"relationship"
|
|
67377
|
+
],
|
|
67378
|
+
properties: {
|
|
67379
|
+
match_value: {
|
|
67380
|
+
type: "string",
|
|
67381
|
+
description: "A typed identifier: `domain:acme.com`, `email:jane@acme.com`, `phone:\u2026`, `handle:\u2026` or `entity:\u2026`."
|
|
67382
|
+
},
|
|
67383
|
+
relationship: {
|
|
67384
|
+
type: "string",
|
|
67385
|
+
description: "A relationship kind of the workspace (its slug), or `own` / `other`."
|
|
67386
|
+
}
|
|
66781
67387
|
}
|
|
66782
67388
|
}
|
|
67389
|
+
},
|
|
67390
|
+
remove: {
|
|
67391
|
+
type: "array",
|
|
67392
|
+
maxItems: 200,
|
|
67393
|
+
items: {
|
|
67394
|
+
type: "string",
|
|
67395
|
+
format: "uuid"
|
|
67396
|
+
}
|
|
67397
|
+
},
|
|
67398
|
+
wait: {
|
|
67399
|
+
type: "boolean",
|
|
67400
|
+
description: "Wait up to 60 seconds for the documents to be relabelled."
|
|
66783
67401
|
}
|
|
66784
67402
|
}
|
|
66785
67403
|
}
|
|
66786
67404
|
}
|
|
67405
|
+
}
|
|
67406
|
+
},
|
|
67407
|
+
responses: {
|
|
67408
|
+
"200": {
|
|
67409
|
+
description: "OK",
|
|
67410
|
+
content: {
|
|
67411
|
+
"application/json": {
|
|
67412
|
+
schema: {
|
|
67413
|
+
type: "object",
|
|
67414
|
+
additionalProperties: true
|
|
67415
|
+
}
|
|
67416
|
+
}
|
|
67417
|
+
}
|
|
67418
|
+
},
|
|
67419
|
+
"400": {
|
|
67420
|
+
$ref: "#/components/responses/BadRequest"
|
|
66787
67421
|
},
|
|
66788
67422
|
"401": {
|
|
66789
67423
|
$ref: "#/components/responses/Unauthorized"
|
|
@@ -66791,6 +67425,9 @@ var openapi_default = {
|
|
|
66791
67425
|
"403": {
|
|
66792
67426
|
$ref: "#/components/responses/Forbidden"
|
|
66793
67427
|
},
|
|
67428
|
+
"404": {
|
|
67429
|
+
$ref: "#/components/responses/NotFound"
|
|
67430
|
+
},
|
|
66794
67431
|
"429": {
|
|
66795
67432
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
66796
67433
|
}
|
|
@@ -85022,6 +85659,31 @@ var openapi_default = {
|
|
|
85022
85659
|
}
|
|
85023
85660
|
},
|
|
85024
85661
|
schemas: {
|
|
85662
|
+
DocumentParty: {
|
|
85663
|
+
type: "object",
|
|
85664
|
+
required: [
|
|
85665
|
+
"id"
|
|
85666
|
+
],
|
|
85667
|
+
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.",
|
|
85668
|
+
properties: {
|
|
85669
|
+
id: {
|
|
85670
|
+
type: "string",
|
|
85671
|
+
maxLength: 320,
|
|
85672
|
+
description: "`email:jane@acme.com`, `domain:acme.com`, `phone:+4930123456`, `handle:<scope>:<id>` or `entity:<id>` (a bare address reads as `email:`).",
|
|
85673
|
+
example: "email:jane@acme.com"
|
|
85674
|
+
},
|
|
85675
|
+
role: {
|
|
85676
|
+
type: "string",
|
|
85677
|
+
enum: [
|
|
85678
|
+
"from",
|
|
85679
|
+
"to",
|
|
85680
|
+
"cc",
|
|
85681
|
+
"attendee",
|
|
85682
|
+
"author"
|
|
85683
|
+
]
|
|
85684
|
+
}
|
|
85685
|
+
}
|
|
85686
|
+
},
|
|
85025
85687
|
Account: {
|
|
85026
85688
|
type: "object",
|
|
85027
85689
|
required: [
|