@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/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
|
}
|
|
@@ -57474,6 +57490,108 @@ var openapi_default = {
|
|
|
57474
57490
|
}
|
|
57475
57491
|
}
|
|
57476
57492
|
},
|
|
57493
|
+
"/v1/sources/{id}/record-roles": {
|
|
57494
|
+
get: {
|
|
57495
|
+
operationId: "getSourceRecordRoles",
|
|
57496
|
+
"x-audience": "public",
|
|
57497
|
+
"x-required-scopes": [
|
|
57498
|
+
"read"
|
|
57499
|
+
],
|
|
57500
|
+
summary: "Who reads the records of a connection",
|
|
57501
|
+
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",
|
|
57502
|
+
tags: [
|
|
57503
|
+
"Sources"
|
|
57504
|
+
],
|
|
57505
|
+
parameters: [
|
|
57506
|
+
{
|
|
57507
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57508
|
+
}
|
|
57509
|
+
],
|
|
57510
|
+
responses: {
|
|
57511
|
+
"200": {
|
|
57512
|
+
description: "The roles of the connection.",
|
|
57513
|
+
content: {
|
|
57514
|
+
"application/json": {
|
|
57515
|
+
schema: {
|
|
57516
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57517
|
+
}
|
|
57518
|
+
}
|
|
57519
|
+
}
|
|
57520
|
+
},
|
|
57521
|
+
"403": {
|
|
57522
|
+
$ref: "#/components/responses/Forbidden"
|
|
57523
|
+
},
|
|
57524
|
+
"404": {
|
|
57525
|
+
$ref: "#/components/responses/NotFound"
|
|
57526
|
+
}
|
|
57527
|
+
}
|
|
57528
|
+
},
|
|
57529
|
+
put: {
|
|
57530
|
+
operationId: "setSourceRecordRoles",
|
|
57531
|
+
"x-audience": "public",
|
|
57532
|
+
"x-required-scopes": [
|
|
57533
|
+
"sources:write"
|
|
57534
|
+
],
|
|
57535
|
+
summary: "Set who reads the records of a connection",
|
|
57536
|
+
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",
|
|
57537
|
+
tags: [
|
|
57538
|
+
"Sources"
|
|
57539
|
+
],
|
|
57540
|
+
parameters: [
|
|
57541
|
+
{
|
|
57542
|
+
$ref: "#/components/parameters/ResourceId"
|
|
57543
|
+
}
|
|
57544
|
+
],
|
|
57545
|
+
requestBody: {
|
|
57546
|
+
required: true,
|
|
57547
|
+
content: {
|
|
57548
|
+
"application/json": {
|
|
57549
|
+
schema: {
|
|
57550
|
+
type: "object",
|
|
57551
|
+
required: [
|
|
57552
|
+
"enabled"
|
|
57553
|
+
],
|
|
57554
|
+
properties: {
|
|
57555
|
+
enabled: {
|
|
57556
|
+
type: "boolean"
|
|
57557
|
+
},
|
|
57558
|
+
admins: {
|
|
57559
|
+
type: "array",
|
|
57560
|
+
maxItems: 200,
|
|
57561
|
+
items: {
|
|
57562
|
+
type: "string",
|
|
57563
|
+
format: "uuid"
|
|
57564
|
+
},
|
|
57565
|
+
description: "User ids of the admins. At least one when `enabled`."
|
|
57566
|
+
}
|
|
57567
|
+
}
|
|
57568
|
+
}
|
|
57569
|
+
}
|
|
57570
|
+
}
|
|
57571
|
+
},
|
|
57572
|
+
responses: {
|
|
57573
|
+
"200": {
|
|
57574
|
+
description: "The roles as they stand.",
|
|
57575
|
+
content: {
|
|
57576
|
+
"application/json": {
|
|
57577
|
+
schema: {
|
|
57578
|
+
$ref: "#/components/schemas/SourceRecordRoles"
|
|
57579
|
+
}
|
|
57580
|
+
}
|
|
57581
|
+
}
|
|
57582
|
+
},
|
|
57583
|
+
"400": {
|
|
57584
|
+
$ref: "#/components/responses/BadRequest"
|
|
57585
|
+
},
|
|
57586
|
+
"403": {
|
|
57587
|
+
$ref: "#/components/responses/Forbidden"
|
|
57588
|
+
},
|
|
57589
|
+
"404": {
|
|
57590
|
+
$ref: "#/components/responses/NotFound"
|
|
57591
|
+
}
|
|
57592
|
+
}
|
|
57593
|
+
}
|
|
57594
|
+
},
|
|
57477
57595
|
"/v1/sources/{id}/make-private": {
|
|
57478
57596
|
post: {
|
|
57479
57597
|
operationId: "makeSourceConnectionPrivate",
|
|
@@ -66052,61 +66170,42 @@ var openapi_default = {
|
|
|
66052
66170
|
}
|
|
66053
66171
|
}
|
|
66054
66172
|
},
|
|
66055
|
-
"/v1/documents/
|
|
66056
|
-
|
|
66057
|
-
operationId: "
|
|
66173
|
+
"/v1/documents/{id}/collections": {
|
|
66174
|
+
get: {
|
|
66175
|
+
operationId: "explainDocumentCollections",
|
|
66058
66176
|
"x-audience": "public",
|
|
66059
66177
|
tags: [
|
|
66060
|
-
"
|
|
66178
|
+
"Collections"
|
|
66061
66179
|
],
|
|
66062
|
-
summary: "
|
|
66063
|
-
description: "
|
|
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.",
|
|
66064
66182
|
security: [
|
|
66065
66183
|
{
|
|
66066
66184
|
BearerAuth: []
|
|
66067
66185
|
}
|
|
66068
66186
|
],
|
|
66069
66187
|
"x-required-scopes": [
|
|
66070
|
-
"
|
|
66188
|
+
"read"
|
|
66071
66189
|
],
|
|
66072
|
-
|
|
66073
|
-
|
|
66074
|
-
|
|
66075
|
-
"
|
|
66076
|
-
|
|
66077
|
-
|
|
66078
|
-
|
|
66079
|
-
|
|
66080
|
-
type: "string",
|
|
66081
|
-
format: "binary",
|
|
66082
|
-
description: "CSV with a header row."
|
|
66083
|
-
}
|
|
66084
|
-
},
|
|
66085
|
-
required: [
|
|
66086
|
-
"file"
|
|
66087
|
-
]
|
|
66088
|
-
}
|
|
66190
|
+
parameters: [
|
|
66191
|
+
{
|
|
66192
|
+
name: "id",
|
|
66193
|
+
in: "path",
|
|
66194
|
+
required: true,
|
|
66195
|
+
schema: {
|
|
66196
|
+
type: "string",
|
|
66197
|
+
format: "uuid"
|
|
66089
66198
|
}
|
|
66090
66199
|
}
|
|
66091
|
-
|
|
66200
|
+
],
|
|
66092
66201
|
responses: {
|
|
66093
|
-
"
|
|
66202
|
+
"200": {
|
|
66094
66203
|
description: "OK",
|
|
66095
66204
|
content: {
|
|
66096
66205
|
"application/json": {
|
|
66097
66206
|
schema: {
|
|
66098
66207
|
type: "object",
|
|
66099
|
-
|
|
66100
|
-
updated: {
|
|
66101
|
-
type: "integer"
|
|
66102
|
-
},
|
|
66103
|
-
not_found: {
|
|
66104
|
-
type: "array",
|
|
66105
|
-
items: {
|
|
66106
|
-
type: "string"
|
|
66107
|
-
}
|
|
66108
|
-
}
|
|
66109
|
-
}
|
|
66208
|
+
additionalProperties: true
|
|
66110
66209
|
}
|
|
66111
66210
|
}
|
|
66112
66211
|
}
|
|
@@ -66120,68 +66219,43 @@ var openapi_default = {
|
|
|
66120
66219
|
"403": {
|
|
66121
66220
|
$ref: "#/components/responses/Forbidden"
|
|
66122
66221
|
},
|
|
66222
|
+
"404": {
|
|
66223
|
+
$ref: "#/components/responses/NotFound"
|
|
66224
|
+
},
|
|
66123
66225
|
"429": {
|
|
66124
66226
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
66125
66227
|
}
|
|
66126
66228
|
}
|
|
66127
66229
|
}
|
|
66128
66230
|
},
|
|
66129
|
-
"/v1/documents/
|
|
66130
|
-
|
|
66131
|
-
operationId: "
|
|
66231
|
+
"/v1/documents/{id}/traits": {
|
|
66232
|
+
patch: {
|
|
66233
|
+
operationId: "setDocumentLabels",
|
|
66132
66234
|
"x-audience": "public",
|
|
66133
66235
|
tags: [
|
|
66134
|
-
"
|
|
66236
|
+
"Collections"
|
|
66135
66237
|
],
|
|
66136
|
-
summary: "
|
|
66137
|
-
description: "
|
|
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.",
|
|
66138
66240
|
security: [
|
|
66139
66241
|
{
|
|
66140
66242
|
BearerAuth: []
|
|
66141
66243
|
}
|
|
66142
66244
|
],
|
|
66143
66245
|
"x-required-scopes": [
|
|
66144
|
-
"
|
|
66145
|
-
],
|
|
66146
|
-
responses: {
|
|
66147
|
-
"200": {
|
|
66148
|
-
description: "OK",
|
|
66149
|
-
content: {
|
|
66150
|
-
"application/json": {
|
|
66151
|
-
schema: {
|
|
66152
|
-
type: "object",
|
|
66153
|
-
additionalProperties: true
|
|
66154
|
-
}
|
|
66155
|
-
}
|
|
66156
|
-
}
|
|
66157
|
-
},
|
|
66158
|
-
"401": {
|
|
66159
|
-
$ref: "#/components/responses/Unauthorized"
|
|
66160
|
-
},
|
|
66161
|
-
"403": {
|
|
66162
|
-
$ref: "#/components/responses/Forbidden"
|
|
66163
|
-
},
|
|
66164
|
-
"429": {
|
|
66165
|
-
$ref: "#/components/responses/RateLimitExceeded"
|
|
66166
|
-
}
|
|
66167
|
-
}
|
|
66168
|
-
},
|
|
66169
|
-
patch: {
|
|
66170
|
-
operationId: "setDisplayNameRule",
|
|
66171
|
-
"x-audience": "public",
|
|
66172
|
-
tags: [
|
|
66173
|
-
"Documents"
|
|
66246
|
+
"documents:write"
|
|
66174
66247
|
],
|
|
66175
|
-
|
|
66176
|
-
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.",
|
|
66177
|
-
security: [
|
|
66248
|
+
parameters: [
|
|
66178
66249
|
{
|
|
66179
|
-
|
|
66250
|
+
name: "id",
|
|
66251
|
+
in: "path",
|
|
66252
|
+
required: true,
|
|
66253
|
+
schema: {
|
|
66254
|
+
type: "string",
|
|
66255
|
+
format: "uuid"
|
|
66256
|
+
}
|
|
66180
66257
|
}
|
|
66181
66258
|
],
|
|
66182
|
-
"x-required-scopes": [
|
|
66183
|
-
"documents:write"
|
|
66184
|
-
],
|
|
66185
66259
|
requestBody: {
|
|
66186
66260
|
required: true,
|
|
66187
66261
|
content: {
|
|
@@ -66189,22 +66263,23 @@ var openapi_default = {
|
|
|
66189
66263
|
schema: {
|
|
66190
66264
|
type: "object",
|
|
66191
66265
|
properties: {
|
|
66192
|
-
|
|
66193
|
-
type: "
|
|
66194
|
-
|
|
66195
|
-
|
|
66196
|
-
"
|
|
66197
|
-
|
|
66198
|
-
|
|
66266
|
+
add: {
|
|
66267
|
+
type: "array",
|
|
66268
|
+
maxItems: 50,
|
|
66269
|
+
items: {
|
|
66270
|
+
type: "string",
|
|
66271
|
+
maxLength: 200
|
|
66272
|
+
}
|
|
66199
66273
|
},
|
|
66200
|
-
|
|
66201
|
-
type: "
|
|
66202
|
-
|
|
66274
|
+
remove: {
|
|
66275
|
+
type: "array",
|
|
66276
|
+
maxItems: 50,
|
|
66277
|
+
items: {
|
|
66278
|
+
type: "string",
|
|
66279
|
+
maxLength: 200
|
|
66280
|
+
}
|
|
66203
66281
|
}
|
|
66204
|
-
}
|
|
66205
|
-
required: [
|
|
66206
|
-
"mode"
|
|
66207
|
-
]
|
|
66282
|
+
}
|
|
66208
66283
|
}
|
|
66209
66284
|
}
|
|
66210
66285
|
}
|
|
@@ -66230,21 +66305,24 @@ var openapi_default = {
|
|
|
66230
66305
|
"403": {
|
|
66231
66306
|
$ref: "#/components/responses/Forbidden"
|
|
66232
66307
|
},
|
|
66308
|
+
"404": {
|
|
66309
|
+
$ref: "#/components/responses/NotFound"
|
|
66310
|
+
},
|
|
66233
66311
|
"429": {
|
|
66234
66312
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
66235
66313
|
}
|
|
66236
66314
|
}
|
|
66237
66315
|
}
|
|
66238
66316
|
},
|
|
66239
|
-
"/v1/documents/
|
|
66317
|
+
"/v1/documents/{id}/move": {
|
|
66240
66318
|
post: {
|
|
66241
|
-
operationId: "
|
|
66319
|
+
operationId: "moveDocumentBetweenCollections",
|
|
66242
66320
|
"x-audience": "public",
|
|
66243
66321
|
tags: [
|
|
66244
|
-
"
|
|
66322
|
+
"Collections"
|
|
66245
66323
|
],
|
|
66246
|
-
summary: "
|
|
66247
|
-
description: "
|
|
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.",
|
|
66248
66326
|
security: [
|
|
66249
66327
|
{
|
|
66250
66328
|
BearerAuth: []
|
|
@@ -66253,6 +66331,17 @@ var openapi_default = {
|
|
|
66253
66331
|
"x-required-scopes": [
|
|
66254
66332
|
"documents:write"
|
|
66255
66333
|
],
|
|
66334
|
+
parameters: [
|
|
66335
|
+
{
|
|
66336
|
+
name: "id",
|
|
66337
|
+
in: "path",
|
|
66338
|
+
required: true,
|
|
66339
|
+
schema: {
|
|
66340
|
+
type: "string",
|
|
66341
|
+
format: "uuid"
|
|
66342
|
+
}
|
|
66343
|
+
}
|
|
66344
|
+
],
|
|
66256
66345
|
requestBody: {
|
|
66257
66346
|
required: true,
|
|
66258
66347
|
content: {
|
|
@@ -66260,19 +66349,358 @@ var openapi_default = {
|
|
|
66260
66349
|
schema: {
|
|
66261
66350
|
type: "object",
|
|
66262
66351
|
properties: {
|
|
66263
|
-
|
|
66352
|
+
from: {
|
|
66264
66353
|
type: "string",
|
|
66265
|
-
|
|
66354
|
+
format: "uuid",
|
|
66355
|
+
nullable: true
|
|
66266
66356
|
},
|
|
66267
|
-
|
|
66268
|
-
type: "
|
|
66269
|
-
|
|
66270
|
-
|
|
66357
|
+
to: {
|
|
66358
|
+
type: "string",
|
|
66359
|
+
format: "uuid",
|
|
66360
|
+
nullable: true
|
|
66271
66361
|
}
|
|
66272
|
-
}
|
|
66273
|
-
|
|
66274
|
-
|
|
66275
|
-
|
|
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
|
+
},
|
|
66483
|
+
"/v1/documents/batch-metadata/import": {
|
|
66484
|
+
post: {
|
|
66485
|
+
operationId: "importDocumentBatchMetadata",
|
|
66486
|
+
"x-audience": "public",
|
|
66487
|
+
tags: [
|
|
66488
|
+
"Documents"
|
|
66489
|
+
],
|
|
66490
|
+
summary: "Import source batch ids from a CSV",
|
|
66491
|
+
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`.",
|
|
66492
|
+
security: [
|
|
66493
|
+
{
|
|
66494
|
+
BearerAuth: []
|
|
66495
|
+
}
|
|
66496
|
+
],
|
|
66497
|
+
"x-required-scopes": [
|
|
66498
|
+
"documents:write"
|
|
66499
|
+
],
|
|
66500
|
+
requestBody: {
|
|
66501
|
+
required: true,
|
|
66502
|
+
content: {
|
|
66503
|
+
"multipart/form-data": {
|
|
66504
|
+
schema: {
|
|
66505
|
+
type: "object",
|
|
66506
|
+
properties: {
|
|
66507
|
+
file: {
|
|
66508
|
+
type: "string",
|
|
66509
|
+
format: "binary",
|
|
66510
|
+
description: "CSV with a header row."
|
|
66511
|
+
}
|
|
66512
|
+
},
|
|
66513
|
+
required: [
|
|
66514
|
+
"file"
|
|
66515
|
+
]
|
|
66516
|
+
}
|
|
66517
|
+
}
|
|
66518
|
+
}
|
|
66519
|
+
},
|
|
66520
|
+
responses: {
|
|
66521
|
+
"201": {
|
|
66522
|
+
description: "OK",
|
|
66523
|
+
content: {
|
|
66524
|
+
"application/json": {
|
|
66525
|
+
schema: {
|
|
66526
|
+
type: "object",
|
|
66527
|
+
properties: {
|
|
66528
|
+
updated: {
|
|
66529
|
+
type: "integer"
|
|
66530
|
+
},
|
|
66531
|
+
not_found: {
|
|
66532
|
+
type: "array",
|
|
66533
|
+
items: {
|
|
66534
|
+
type: "string"
|
|
66535
|
+
}
|
|
66536
|
+
}
|
|
66537
|
+
}
|
|
66538
|
+
}
|
|
66539
|
+
}
|
|
66540
|
+
}
|
|
66541
|
+
},
|
|
66542
|
+
"400": {
|
|
66543
|
+
$ref: "#/components/responses/BadRequest"
|
|
66544
|
+
},
|
|
66545
|
+
"401": {
|
|
66546
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66547
|
+
},
|
|
66548
|
+
"403": {
|
|
66549
|
+
$ref: "#/components/responses/Forbidden"
|
|
66550
|
+
},
|
|
66551
|
+
"429": {
|
|
66552
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66553
|
+
}
|
|
66554
|
+
}
|
|
66555
|
+
}
|
|
66556
|
+
},
|
|
66557
|
+
"/v1/documents/display-name-rule": {
|
|
66558
|
+
get: {
|
|
66559
|
+
operationId: "getDisplayNameRule",
|
|
66560
|
+
"x-audience": "public",
|
|
66561
|
+
tags: [
|
|
66562
|
+
"Documents"
|
|
66563
|
+
],
|
|
66564
|
+
summary: "Get the readable-name rule",
|
|
66565
|
+
description: "The workspace's rule for deriving a readable name from each filename, its check state, and a sample of current filename \u2192 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.",
|
|
66566
|
+
security: [
|
|
66567
|
+
{
|
|
66568
|
+
BearerAuth: []
|
|
66569
|
+
}
|
|
66570
|
+
],
|
|
66571
|
+
"x-required-scopes": [
|
|
66572
|
+
"read"
|
|
66573
|
+
],
|
|
66574
|
+
responses: {
|
|
66575
|
+
"200": {
|
|
66576
|
+
description: "OK",
|
|
66577
|
+
content: {
|
|
66578
|
+
"application/json": {
|
|
66579
|
+
schema: {
|
|
66580
|
+
type: "object",
|
|
66581
|
+
additionalProperties: true
|
|
66582
|
+
}
|
|
66583
|
+
}
|
|
66584
|
+
}
|
|
66585
|
+
},
|
|
66586
|
+
"401": {
|
|
66587
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66588
|
+
},
|
|
66589
|
+
"403": {
|
|
66590
|
+
$ref: "#/components/responses/Forbidden"
|
|
66591
|
+
},
|
|
66592
|
+
"429": {
|
|
66593
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66594
|
+
}
|
|
66595
|
+
}
|
|
66596
|
+
},
|
|
66597
|
+
patch: {
|
|
66598
|
+
operationId: "setDisplayNameRule",
|
|
66599
|
+
"x-audience": "public",
|
|
66600
|
+
tags: [
|
|
66601
|
+
"Documents"
|
|
66602
|
+
],
|
|
66603
|
+
summary: "Set the readable-name rule",
|
|
66604
|
+
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.",
|
|
66605
|
+
security: [
|
|
66606
|
+
{
|
|
66607
|
+
BearerAuth: []
|
|
66608
|
+
}
|
|
66609
|
+
],
|
|
66610
|
+
"x-required-scopes": [
|
|
66611
|
+
"documents:write"
|
|
66612
|
+
],
|
|
66613
|
+
requestBody: {
|
|
66614
|
+
required: true,
|
|
66615
|
+
content: {
|
|
66616
|
+
"application/json": {
|
|
66617
|
+
schema: {
|
|
66618
|
+
type: "object",
|
|
66619
|
+
properties: {
|
|
66620
|
+
mode: {
|
|
66621
|
+
type: "string",
|
|
66622
|
+
enum: [
|
|
66623
|
+
"off",
|
|
66624
|
+
"default",
|
|
66625
|
+
"lua"
|
|
66626
|
+
]
|
|
66627
|
+
},
|
|
66628
|
+
script: {
|
|
66629
|
+
type: "string",
|
|
66630
|
+
maxLength: 2e4
|
|
66631
|
+
}
|
|
66632
|
+
},
|
|
66633
|
+
required: [
|
|
66634
|
+
"mode"
|
|
66635
|
+
]
|
|
66636
|
+
}
|
|
66637
|
+
}
|
|
66638
|
+
}
|
|
66639
|
+
},
|
|
66640
|
+
responses: {
|
|
66641
|
+
"200": {
|
|
66642
|
+
description: "OK",
|
|
66643
|
+
content: {
|
|
66644
|
+
"application/json": {
|
|
66645
|
+
schema: {
|
|
66646
|
+
type: "object",
|
|
66647
|
+
additionalProperties: true
|
|
66648
|
+
}
|
|
66649
|
+
}
|
|
66650
|
+
}
|
|
66651
|
+
},
|
|
66652
|
+
"400": {
|
|
66653
|
+
$ref: "#/components/responses/BadRequest"
|
|
66654
|
+
},
|
|
66655
|
+
"401": {
|
|
66656
|
+
$ref: "#/components/responses/Unauthorized"
|
|
66657
|
+
},
|
|
66658
|
+
"403": {
|
|
66659
|
+
$ref: "#/components/responses/Forbidden"
|
|
66660
|
+
},
|
|
66661
|
+
"429": {
|
|
66662
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
66663
|
+
}
|
|
66664
|
+
}
|
|
66665
|
+
}
|
|
66666
|
+
},
|
|
66667
|
+
"/v1/documents/display-name-rule/preview": {
|
|
66668
|
+
post: {
|
|
66669
|
+
operationId: "previewDisplayNameRule",
|
|
66670
|
+
"x-audience": "public",
|
|
66671
|
+
tags: [
|
|
66672
|
+
"Documents"
|
|
66673
|
+
],
|
|
66674
|
+
summary: "Try a readable-name script",
|
|
66675
|
+
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.",
|
|
66676
|
+
security: [
|
|
66677
|
+
{
|
|
66678
|
+
BearerAuth: []
|
|
66679
|
+
}
|
|
66680
|
+
],
|
|
66681
|
+
"x-required-scopes": [
|
|
66682
|
+
"documents:write"
|
|
66683
|
+
],
|
|
66684
|
+
requestBody: {
|
|
66685
|
+
required: true,
|
|
66686
|
+
content: {
|
|
66687
|
+
"application/json": {
|
|
66688
|
+
schema: {
|
|
66689
|
+
type: "object",
|
|
66690
|
+
properties: {
|
|
66691
|
+
lua_script: {
|
|
66692
|
+
type: "string",
|
|
66693
|
+
maxLength: 2e4
|
|
66694
|
+
},
|
|
66695
|
+
sample_size: {
|
|
66696
|
+
type: "integer",
|
|
66697
|
+
minimum: 1,
|
|
66698
|
+
maximum: 200
|
|
66699
|
+
}
|
|
66700
|
+
},
|
|
66701
|
+
required: [
|
|
66702
|
+
"lua_script"
|
|
66703
|
+
]
|
|
66276
66704
|
}
|
|
66277
66705
|
}
|
|
66278
66706
|
}
|
|
@@ -66512,14 +66940,240 @@ var openapi_default = {
|
|
|
66512
66940
|
}
|
|
66513
66941
|
}
|
|
66514
66942
|
},
|
|
66515
|
-
post: {
|
|
66516
|
-
operationId: "createCollection",
|
|
66943
|
+
post: {
|
|
66944
|
+
operationId: "createCollection",
|
|
66945
|
+
"x-audience": "public",
|
|
66946
|
+
tags: [
|
|
66947
|
+
"Collections"
|
|
66948
|
+
],
|
|
66949
|
+
summary: "Create a collection",
|
|
66950
|
+
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.",
|
|
66951
|
+
security: [
|
|
66952
|
+
{
|
|
66953
|
+
BearerAuth: []
|
|
66954
|
+
}
|
|
66955
|
+
],
|
|
66956
|
+
"x-required-scopes": [
|
|
66957
|
+
"documents:write"
|
|
66958
|
+
],
|
|
66959
|
+
requestBody: {
|
|
66960
|
+
required: true,
|
|
66961
|
+
content: {
|
|
66962
|
+
"application/json": {
|
|
66963
|
+
schema: {
|
|
66964
|
+
type: "object",
|
|
66965
|
+
properties: {
|
|
66966
|
+
name: {
|
|
66967
|
+
type: "string",
|
|
66968
|
+
minLength: 1,
|
|
66969
|
+
maxLength: 200
|
|
66970
|
+
},
|
|
66971
|
+
description: {
|
|
66972
|
+
type: "string",
|
|
66973
|
+
maxLength: 2e3
|
|
66974
|
+
},
|
|
66975
|
+
kind: {
|
|
66976
|
+
type: "string",
|
|
66977
|
+
enum: [
|
|
66978
|
+
"collection",
|
|
66979
|
+
"account"
|
|
66980
|
+
]
|
|
66981
|
+
},
|
|
66982
|
+
aliases: {
|
|
66983
|
+
type: "array",
|
|
66984
|
+
maxItems: 50,
|
|
66985
|
+
items: {
|
|
66986
|
+
type: "string",
|
|
66987
|
+
maxLength: 200
|
|
66988
|
+
}
|
|
66989
|
+
}
|
|
66990
|
+
},
|
|
66991
|
+
required: [
|
|
66992
|
+
"name"
|
|
66993
|
+
]
|
|
66994
|
+
}
|
|
66995
|
+
}
|
|
66996
|
+
}
|
|
66997
|
+
},
|
|
66998
|
+
responses: {
|
|
66999
|
+
"201": {
|
|
67000
|
+
description: "OK",
|
|
67001
|
+
content: {
|
|
67002
|
+
"application/json": {
|
|
67003
|
+
schema: {
|
|
67004
|
+
type: "object",
|
|
67005
|
+
additionalProperties: true
|
|
67006
|
+
}
|
|
67007
|
+
}
|
|
67008
|
+
}
|
|
67009
|
+
},
|
|
67010
|
+
"400": {
|
|
67011
|
+
$ref: "#/components/responses/BadRequest"
|
|
67012
|
+
},
|
|
67013
|
+
"401": {
|
|
67014
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67015
|
+
},
|
|
67016
|
+
"403": {
|
|
67017
|
+
$ref: "#/components/responses/Forbidden"
|
|
67018
|
+
},
|
|
67019
|
+
"429": {
|
|
67020
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67021
|
+
}
|
|
67022
|
+
}
|
|
67023
|
+
}
|
|
67024
|
+
},
|
|
67025
|
+
"/v1/collections/mine": {
|
|
67026
|
+
get: {
|
|
67027
|
+
operationId: "listMyCollections",
|
|
67028
|
+
"x-audience": "public",
|
|
67029
|
+
tags: [
|
|
67030
|
+
"Collections"
|
|
67031
|
+
],
|
|
67032
|
+
summary: "List the collections assigned to me",
|
|
67033
|
+
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.",
|
|
67034
|
+
security: [
|
|
67035
|
+
{
|
|
67036
|
+
BearerAuth: []
|
|
67037
|
+
}
|
|
67038
|
+
],
|
|
67039
|
+
"x-required-scopes": [
|
|
67040
|
+
"read"
|
|
67041
|
+
],
|
|
67042
|
+
responses: {
|
|
67043
|
+
"200": {
|
|
67044
|
+
description: "OK",
|
|
67045
|
+
content: {
|
|
67046
|
+
"application/json": {
|
|
67047
|
+
schema: {
|
|
67048
|
+
type: "object",
|
|
67049
|
+
properties: {
|
|
67050
|
+
collections: {
|
|
67051
|
+
type: "array",
|
|
67052
|
+
items: {
|
|
67053
|
+
type: "object",
|
|
67054
|
+
additionalProperties: true
|
|
67055
|
+
}
|
|
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
|
+
}
|
|
67108
|
+
}
|
|
67109
|
+
}
|
|
67110
|
+
}
|
|
67111
|
+
}
|
|
67112
|
+
}
|
|
67113
|
+
},
|
|
67114
|
+
"401": {
|
|
67115
|
+
$ref: "#/components/responses/Unauthorized"
|
|
67116
|
+
},
|
|
67117
|
+
"403": {
|
|
67118
|
+
$ref: "#/components/responses/Forbidden"
|
|
67119
|
+
},
|
|
67120
|
+
"429": {
|
|
67121
|
+
$ref: "#/components/responses/RateLimitExceeded"
|
|
67122
|
+
}
|
|
67123
|
+
}
|
|
67124
|
+
}
|
|
67125
|
+
},
|
|
67126
|
+
"/v1/collections/config": {
|
|
67127
|
+
get: {
|
|
67128
|
+
operationId: "getCollectionsConfig",
|
|
67129
|
+
"x-audience": "public",
|
|
67130
|
+
tags: [
|
|
67131
|
+
"Collections"
|
|
67132
|
+
],
|
|
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.",
|
|
67135
|
+
security: [
|
|
67136
|
+
{
|
|
67137
|
+
BearerAuth: []
|
|
67138
|
+
}
|
|
67139
|
+
],
|
|
67140
|
+
"x-required-scopes": [
|
|
67141
|
+
"read"
|
|
67142
|
+
],
|
|
67143
|
+
responses: {
|
|
67144
|
+
"200": {
|
|
67145
|
+
description: "OK",
|
|
67146
|
+
content: {
|
|
67147
|
+
"application/json": {
|
|
67148
|
+
schema: {
|
|
67149
|
+
type: "object",
|
|
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",
|
|
66517
67171
|
"x-audience": "public",
|
|
66518
67172
|
tags: [
|
|
66519
67173
|
"Collections"
|
|
66520
67174
|
],
|
|
66521
|
-
summary: "
|
|
66522
|
-
description: "
|
|
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.",
|
|
66523
67177
|
security: [
|
|
66524
67178
|
{
|
|
66525
67179
|
BearerAuth: []
|
|
@@ -66528,6 +67182,28 @@ var openapi_default = {
|
|
|
66528
67182
|
"x-required-scopes": [
|
|
66529
67183
|
"documents:write"
|
|
66530
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
|
+
],
|
|
66531
67207
|
requestBody: {
|
|
66532
67208
|
required: true,
|
|
66533
67209
|
content: {
|
|
@@ -66535,40 +67211,23 @@ var openapi_default = {
|
|
|
66535
67211
|
schema: {
|
|
66536
67212
|
type: "object",
|
|
66537
67213
|
properties: {
|
|
66538
|
-
|
|
66539
|
-
type: "
|
|
66540
|
-
|
|
66541
|
-
|
|
66542
|
-
},
|
|
66543
|
-
description: {
|
|
66544
|
-
type: "string",
|
|
66545
|
-
maxLength: 2e3
|
|
67214
|
+
document: {
|
|
67215
|
+
type: "object",
|
|
67216
|
+
additionalProperties: true,
|
|
67217
|
+
description: "The configuration document."
|
|
66546
67218
|
},
|
|
66547
|
-
|
|
67219
|
+
yaml: {
|
|
66548
67220
|
type: "string",
|
|
66549
|
-
|
|
66550
|
-
|
|
66551
|
-
"account"
|
|
66552
|
-
]
|
|
66553
|
-
},
|
|
66554
|
-
aliases: {
|
|
66555
|
-
type: "array",
|
|
66556
|
-
maxItems: 50,
|
|
66557
|
-
items: {
|
|
66558
|
-
type: "string",
|
|
66559
|
-
maxLength: 200
|
|
66560
|
-
}
|
|
67221
|
+
maxLength: 1e6,
|
|
67222
|
+
description: "The configuration document as YAML or JSON text."
|
|
66561
67223
|
}
|
|
66562
|
-
}
|
|
66563
|
-
required: [
|
|
66564
|
-
"name"
|
|
66565
|
-
]
|
|
67224
|
+
}
|
|
66566
67225
|
}
|
|
66567
67226
|
}
|
|
66568
67227
|
}
|
|
66569
67228
|
},
|
|
66570
67229
|
responses: {
|
|
66571
|
-
"
|
|
67230
|
+
"200": {
|
|
66572
67231
|
description: "OK",
|
|
66573
67232
|
content: {
|
|
66574
67233
|
"application/json": {
|
|
@@ -66588,21 +67247,24 @@ var openapi_default = {
|
|
|
66588
67247
|
"403": {
|
|
66589
67248
|
$ref: "#/components/responses/Forbidden"
|
|
66590
67249
|
},
|
|
67250
|
+
"409": {
|
|
67251
|
+
$ref: "#/components/responses/Conflict"
|
|
67252
|
+
},
|
|
66591
67253
|
"429": {
|
|
66592
67254
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
66593
67255
|
}
|
|
66594
67256
|
}
|
|
66595
67257
|
}
|
|
66596
67258
|
},
|
|
66597
|
-
"/v1/collections/
|
|
66598
|
-
|
|
66599
|
-
operationId: "
|
|
67259
|
+
"/v1/collections/proposal": {
|
|
67260
|
+
post: {
|
|
67261
|
+
operationId: "proposeCollectionsConfig",
|
|
66600
67262
|
"x-audience": "public",
|
|
66601
67263
|
tags: [
|
|
66602
67264
|
"Collections"
|
|
66603
67265
|
],
|
|
66604
|
-
summary: "
|
|
66605
|
-
description: "
|
|
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.",
|
|
66606
67268
|
security: [
|
|
66607
67269
|
{
|
|
66608
67270
|
BearerAuth: []
|
|
@@ -66618,22 +67280,14 @@ var openapi_default = {
|
|
|
66618
67280
|
"application/json": {
|
|
66619
67281
|
schema: {
|
|
66620
67282
|
type: "object",
|
|
66621
|
-
|
|
66622
|
-
collections: {
|
|
66623
|
-
type: "array",
|
|
66624
|
-
items: {
|
|
66625
|
-
type: "object",
|
|
66626
|
-
additionalProperties: true
|
|
66627
|
-
}
|
|
66628
|
-
},
|
|
66629
|
-
restricted: {
|
|
66630
|
-
type: "boolean"
|
|
66631
|
-
}
|
|
66632
|
-
}
|
|
67283
|
+
additionalProperties: true
|
|
66633
67284
|
}
|
|
66634
67285
|
}
|
|
66635
67286
|
}
|
|
66636
67287
|
},
|
|
67288
|
+
"400": {
|
|
67289
|
+
$ref: "#/components/responses/BadRequest"
|
|
67290
|
+
},
|
|
66637
67291
|
"401": {
|
|
66638
67292
|
$ref: "#/components/responses/Unauthorized"
|
|
66639
67293
|
},
|
|
@@ -66646,15 +67300,15 @@ var openapi_default = {
|
|
|
66646
67300
|
}
|
|
66647
67301
|
}
|
|
66648
67302
|
},
|
|
66649
|
-
"/v1/collections/
|
|
67303
|
+
"/v1/collections/directory": {
|
|
66650
67304
|
get: {
|
|
66651
|
-
operationId: "
|
|
67305
|
+
operationId: "listCollectionsDirectory",
|
|
66652
67306
|
"x-audience": "public",
|
|
66653
67307
|
tags: [
|
|
66654
67308
|
"Collections"
|
|
66655
67309
|
],
|
|
66656
|
-
summary: "
|
|
66657
|
-
description: "
|
|
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.",
|
|
66658
67312
|
security: [
|
|
66659
67313
|
{
|
|
66660
67314
|
BearerAuth: []
|
|
@@ -66670,18 +67324,100 @@ var openapi_default = {
|
|
|
66670
67324
|
"application/json": {
|
|
66671
67325
|
schema: {
|
|
66672
67326
|
type: "object",
|
|
66673
|
-
|
|
66674
|
-
|
|
66675
|
-
|
|
66676
|
-
|
|
66677
|
-
|
|
66678
|
-
|
|
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
|
+
}
|
|
66679
67387
|
}
|
|
66680
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."
|
|
66681
67401
|
}
|
|
66682
67402
|
}
|
|
66683
67403
|
}
|
|
66684
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"
|
|
66685
67421
|
},
|
|
66686
67422
|
"401": {
|
|
66687
67423
|
$ref: "#/components/responses/Unauthorized"
|
|
@@ -66689,6 +67425,9 @@ var openapi_default = {
|
|
|
66689
67425
|
"403": {
|
|
66690
67426
|
$ref: "#/components/responses/Forbidden"
|
|
66691
67427
|
},
|
|
67428
|
+
"404": {
|
|
67429
|
+
$ref: "#/components/responses/NotFound"
|
|
67430
|
+
},
|
|
66692
67431
|
"429": {
|
|
66693
67432
|
$ref: "#/components/responses/RateLimitExceeded"
|
|
66694
67433
|
}
|
|
@@ -84920,6 +85659,31 @@ var openapi_default = {
|
|
|
84920
85659
|
}
|
|
84921
85660
|
},
|
|
84922
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
|
+
},
|
|
84923
85687
|
Account: {
|
|
84924
85688
|
type: "object",
|
|
84925
85689
|
required: [
|
|
@@ -118387,6 +119151,84 @@ var openapi_default = {
|
|
|
118387
119151
|
}
|
|
118388
119152
|
}
|
|
118389
119153
|
},
|
|
119154
|
+
SourceRecordRoles: {
|
|
119155
|
+
type: "object",
|
|
119156
|
+
required: [
|
|
119157
|
+
"available",
|
|
119158
|
+
"enabled",
|
|
119159
|
+
"admins",
|
|
119160
|
+
"owners",
|
|
119161
|
+
"unowned"
|
|
119162
|
+
],
|
|
119163
|
+
properties: {
|
|
119164
|
+
available: {
|
|
119165
|
+
type: "boolean",
|
|
119166
|
+
description: "Whether the source says whose each record is. Without that the roles cannot be switched on."
|
|
119167
|
+
},
|
|
119168
|
+
enabled: {
|
|
119169
|
+
type: "boolean",
|
|
119170
|
+
description: "Whether admins read every record and everyone else their own."
|
|
119171
|
+
},
|
|
119172
|
+
admins: {
|
|
119173
|
+
type: "array",
|
|
119174
|
+
items: {
|
|
119175
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
119176
|
+
}
|
|
119177
|
+
},
|
|
119178
|
+
owners: {
|
|
119179
|
+
type: "array",
|
|
119180
|
+
description: "The owners the source names, most records first (at most 200).",
|
|
119181
|
+
items: {
|
|
119182
|
+
type: "object",
|
|
119183
|
+
required: [
|
|
119184
|
+
"email",
|
|
119185
|
+
"member",
|
|
119186
|
+
"records"
|
|
119187
|
+
],
|
|
119188
|
+
properties: {
|
|
119189
|
+
email: {
|
|
119190
|
+
type: "string"
|
|
119191
|
+
},
|
|
119192
|
+
member: {
|
|
119193
|
+
nullable: true,
|
|
119194
|
+
allOf: [
|
|
119195
|
+
{
|
|
119196
|
+
$ref: "#/components/schemas/SourceRecordRolePerson"
|
|
119197
|
+
}
|
|
119198
|
+
]
|
|
119199
|
+
},
|
|
119200
|
+
records: {
|
|
119201
|
+
type: "integer"
|
|
119202
|
+
}
|
|
119203
|
+
}
|
|
119204
|
+
}
|
|
119205
|
+
},
|
|
119206
|
+
unowned: {
|
|
119207
|
+
type: "integer",
|
|
119208
|
+
description: "Records that name no owner."
|
|
119209
|
+
}
|
|
119210
|
+
}
|
|
119211
|
+
},
|
|
119212
|
+
SourceRecordRolePerson: {
|
|
119213
|
+
type: "object",
|
|
119214
|
+
required: [
|
|
119215
|
+
"id"
|
|
119216
|
+
],
|
|
119217
|
+
properties: {
|
|
119218
|
+
id: {
|
|
119219
|
+
type: "string",
|
|
119220
|
+
format: "uuid"
|
|
119221
|
+
},
|
|
119222
|
+
name: {
|
|
119223
|
+
type: "string",
|
|
119224
|
+
nullable: true
|
|
119225
|
+
},
|
|
119226
|
+
email: {
|
|
119227
|
+
type: "string",
|
|
119228
|
+
nullable: true
|
|
119229
|
+
}
|
|
119230
|
+
}
|
|
119231
|
+
},
|
|
118390
119232
|
ThreadState: {
|
|
118391
119233
|
type: "object",
|
|
118392
119234
|
properties: {
|