@talonic/docs 0.21.90 → 0.21.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/openapi.json CHANGED
@@ -54136,117 +54136,38 @@
54136
54136
  }
54137
54137
  }
54138
54138
  },
54139
- "/v1/sources/s3/dedicated-egress": {
54139
+ "/v1/sources/egress": {
54140
54140
  "get": {
54141
- "operationId": "getS3DedicatedEgress",
54141
+ "operationId": "getSourceEgress",
54142
54142
  "x-audience": "public",
54143
54143
  "x-required-scopes": [
54144
54144
  "read"
54145
54145
  ],
54146
- "summary": "Check dedicated egress for Amazon S3",
54147
- "description": "Whether this workspace may route Amazon S3 connections through a fixed outbound address, for a system that only accepts traffic from allowlisted addresses. The same answer is served for Amazon S3, Kendox and SQL.\n\n**Scope:** `read` or `sources:read`.\n",
54146
+ "summary": "Get the workspace's dedicated egress IPs",
54147
+ "description": "Whether Talonic has given this workspace dedicated sync egress: every source then connects from fixed IP addresses that a customer firewall can allow. `ips` lists them when `enabled` is true and is empty otherwise.\n\n**Scope:** `read` or `sources:read`.\n",
54148
54148
  "tags": [
54149
54149
  "Sources"
54150
54150
  ],
54151
54151
  "responses": {
54152
54152
  "200": {
54153
- "description": "Availability.",
54154
- "content": {
54155
- "application/json": {
54156
- "schema": {
54157
- "type": "object",
54158
- "required": [
54159
- "available"
54160
- ],
54161
- "properties": {
54162
- "available": {
54163
- "type": "boolean"
54164
- }
54165
- }
54166
- }
54167
- }
54168
- }
54169
- },
54170
- "401": {
54171
- "$ref": "#/components/responses/Unauthorized"
54172
- },
54173
- "403": {
54174
- "$ref": "#/components/responses/Forbidden"
54175
- },
54176
- "429": {
54177
- "$ref": "#/components/responses/RateLimitExceeded"
54178
- }
54179
- }
54180
- }
54181
- },
54182
- "/v1/sources/kendox/dedicated-egress": {
54183
- "get": {
54184
- "operationId": "getKendoxDedicatedEgress",
54185
- "x-audience": "public",
54186
- "x-required-scopes": [
54187
- "read"
54188
- ],
54189
- "summary": "Check dedicated egress for Kendox",
54190
- "description": "Whether this workspace may route Kendox connections through a fixed outbound address, for a system that only accepts traffic from allowlisted addresses. The same answer is served for Amazon S3, Kendox and SQL.\n\n**Scope:** `read` or `sources:read`.\n",
54191
- "tags": [
54192
- "Sources"
54193
- ],
54194
- "responses": {
54195
- "200": {
54196
- "description": "Availability.",
54153
+ "description": "Egress state of the workspace.",
54197
54154
  "content": {
54198
54155
  "application/json": {
54199
54156
  "schema": {
54200
54157
  "type": "object",
54201
54158
  "required": [
54202
- "available"
54159
+ "enabled",
54160
+ "ips"
54203
54161
  ],
54204
54162
  "properties": {
54205
- "available": {
54206
- "type": "boolean"
54207
- }
54208
- }
54209
- }
54210
- }
54211
- }
54212
- },
54213
- "401": {
54214
- "$ref": "#/components/responses/Unauthorized"
54215
- },
54216
- "403": {
54217
- "$ref": "#/components/responses/Forbidden"
54218
- },
54219
- "429": {
54220
- "$ref": "#/components/responses/RateLimitExceeded"
54221
- }
54222
- }
54223
- }
54224
- },
54225
- "/v1/sources/sql/dedicated-egress": {
54226
- "get": {
54227
- "operationId": "getSqlDedicatedEgress",
54228
- "x-audience": "public",
54229
- "x-required-scopes": [
54230
- "read"
54231
- ],
54232
- "summary": "Check dedicated egress for SQL",
54233
- "description": "Whether this workspace may route SQL connections through a fixed outbound address, for a system that only accepts traffic from allowlisted addresses. The same answer is served for Amazon S3, Kendox and SQL.\n\n**Scope:** `read` or `sources:read`.\n",
54234
- "tags": [
54235
- "Sources"
54236
- ],
54237
- "responses": {
54238
- "200": {
54239
- "description": "Availability.",
54240
- "content": {
54241
- "application/json": {
54242
- "schema": {
54243
- "type": "object",
54244
- "required": [
54245
- "available"
54246
- ],
54247
- "properties": {
54248
- "available": {
54163
+ "enabled": {
54249
54164
  "type": "boolean"
54165
+ },
54166
+ "ips": {
54167
+ "type": "array",
54168
+ "items": {
54169
+ "type": "string"
54170
+ }
54250
54171
  }
54251
54172
  }
54252
54173
  }
@@ -54362,10 +54283,6 @@
54362
54283
  "type": "string",
54363
54284
  "maxLength": 255,
54364
54285
  "description": "Bucket name."
54365
- },
54366
- "dedicated_egress": {
54367
- "type": "boolean",
54368
- "description": "Route every call through the workspace's fixed outbound address (see `GET /v1/sources/s3/dedicated-egress`)."
54369
54286
  }
54370
54287
  }
54371
54288
  }
@@ -54687,10 +54604,6 @@
54687
54604
  "maxLength": 1000,
54688
54605
  "writeOnly": true,
54689
54606
  "description": "Password, for `auth_mode: password`. Write-only."
54690
- },
54691
- "dedicated_egress": {
54692
- "type": "boolean",
54693
- "description": "Route every call through the workspace's fixed outbound address."
54694
54607
  }
54695
54608
  }
54696
54609
  }
@@ -54766,10 +54679,6 @@
54766
54679
  "maxLength": 2048,
54767
54680
  "writeOnly": true,
54768
54681
  "description": "Connection string including credentials. Write-only."
54769
- },
54770
- "dedicated_egress": {
54771
- "type": "boolean",
54772
- "description": "Connect through the workspace's fixed outbound address."
54773
54682
  }
54774
54683
  }
54775
54684
  }
@@ -56018,10 +55927,6 @@
56018
55927
  "quick_extraction": {
56019
55928
  "type": "boolean",
56020
55929
  "description": "Use quick extraction for files brought in from this connection."
56021
- },
56022
- "dedicated_egress": {
56023
- "type": "boolean",
56024
- "description": "Route every call through the workspace's fixed outbound address; turning it on checks the bucket is reachable that way first."
56025
55930
  }
56026
55931
  }
56027
55932
  }
@@ -56092,10 +55997,6 @@
56092
55997
  "type": "string",
56093
55998
  "pattern": "^[a-z]{2}(-[A-Za-z]{2})?$",
56094
55999
  "description": "Language for localized Kendox names, e.g. `de`, `en`, `de-CH`."
56095
- },
56096
- "dedicated_egress": {
56097
- "type": "boolean",
56098
- "description": "Route every call through the workspace's fixed outbound address."
56099
56000
  }
56100
56001
  }
56101
56002
  }
@@ -56167,10 +56068,6 @@
56167
56068
  "minLength": 1,
56168
56069
  "maxLength": 255,
56169
56070
  "description": "New display name."
56170
- },
56171
- "dedicated_egress": {
56172
- "type": "boolean",
56173
- "description": "Connect through the workspace's fixed outbound address; turning it on checks the database is reachable that way first."
56174
56071
  }
56175
56072
  }
56176
56073
  }
@@ -57098,7 +56995,7 @@
57098
56995
  "documents:write"
57099
56996
  ],
57100
56997
  "summary": "Import files from a connection",
57101
- "description": "Brings the named files (ids from `GET /v1/sources/{id}/browse`) in as documents of the workspace, attributed to the caller's person, and processes them. Files already imported are skipped. A personal connection can be imported from only by the person who connected it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
56998
+ "description": "Brings the named files (ids from `GET /v1/sources/{id}/browse`) in as documents of the workspace, attributed to the caller's person, and processes them. Files already imported are skipped. A personal connection can be imported from only by the person who connected it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Two ways.** Without `async` the call imports before it answers (`201` with what was imported, skipped or failed): fit for a few files, since every file is fetched and read inside the request. With `async: true` the import is recorded and answered at once (`202` with the import run), then carried out in the background as the same person; read its progress and outcome from `GET /v1/sources/{id}/import-runs/{runId}`. Files that fail do not stop the others, and importing the same selection again brings in only what is not in yet. `folder_ids` (a mail, a thread, a directory: the files directly inside each are imported) exist only with `async: true`.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57102
56999
  "tags": [
57103
57000
  "Sources"
57104
57001
  ],
@@ -57113,9 +57010,6 @@
57113
57010
  "application/json": {
57114
57011
  "schema": {
57115
57012
  "type": "object",
57116
- "required": [
57117
- "file_ids"
57118
- ],
57119
57013
  "properties": {
57120
57014
  "file_ids": {
57121
57015
  "type": "array",
@@ -57124,7 +57018,20 @@
57124
57018
  "items": {
57125
57019
  "type": "string"
57126
57020
  },
57127
- "description": "File ids to import."
57021
+ "description": "File ids to import. Required unless `async` is true and `folder_ids` names something."
57022
+ },
57023
+ "folder_ids": {
57024
+ "type": "array",
57025
+ "maxItems": 500,
57026
+ "items": {
57027
+ "type": "string"
57028
+ },
57029
+ "description": "Folder ids from browse (a mail, a thread, a directory). The files directly inside each are imported; each folder counts as one item of the run. Only with `async: true`.\n"
57030
+ },
57031
+ "async": {
57032
+ "type": "boolean",
57033
+ "default": false,
57034
+ "description": "True records the import and answers `202` with the run; the files are imported in the background."
57128
57035
  },
57129
57036
  "tags": {
57130
57037
  "type": "array",
@@ -57141,7 +57048,7 @@
57141
57048
  },
57142
57049
  "responses": {
57143
57050
  "201": {
57144
- "description": "What was imported, skipped or failed.",
57051
+ "description": "Without `async`. What was imported, skipped or failed.",
57145
57052
  "content": {
57146
57053
  "application/json": {
57147
57054
  "schema": {
@@ -57150,6 +57057,16 @@
57150
57057
  }
57151
57058
  }
57152
57059
  },
57060
+ "202": {
57061
+ "description": "With `async: true`. The import run, still queued.",
57062
+ "content": {
57063
+ "application/json": {
57064
+ "schema": {
57065
+ "$ref": "#/components/schemas/SourceImportRun"
57066
+ }
57067
+ }
57068
+ }
57069
+ },
57153
57070
  "400": {
57154
57071
  "$ref": "#/components/responses/BadRequest"
57155
57072
  },
@@ -57168,61 +57085,75 @@
57168
57085
  }
57169
57086
  }
57170
57087
  },
57171
- "/v1/sources/{id}/imports": {
57088
+ "/v1/sources/{id}/import-runs": {
57172
57089
  "get": {
57173
- "operationId": "listSourceImports",
57090
+ "operationId": "listSourceImportRuns",
57174
57091
  "x-audience": "public",
57175
57092
  "x-required-scopes": [
57176
57093
  "read"
57177
57094
  ],
57178
- "summary": "List imports from a connection",
57179
- "description": "What was brought in from the connection, one entry per imported file. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
57095
+ "summary": "List import runs of a connection",
57096
+ "description": "The connection's latest import runs (imports started with `async: true`, or from the Sources page), newest first, without their failure lists. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
57180
57097
  "tags": [
57181
57098
  "Sources"
57182
57099
  ],
57183
57100
  "parameters": [
57184
57101
  {
57185
57102
  "$ref": "#/components/parameters/ResourceId"
57103
+ },
57104
+ {
57105
+ "name": "open",
57106
+ "in": "query",
57107
+ "required": false,
57108
+ "schema": {
57109
+ "type": "boolean"
57110
+ },
57111
+ "description": "True keeps only runs that are still queued or running."
57186
57112
  }
57187
57113
  ],
57188
57114
  "responses": {
57189
57115
  "200": {
57190
- "description": "The imports.",
57116
+ "description": "The runs.",
57191
57117
  "content": {
57192
57118
  "application/json": {
57193
57119
  "schema": {
57194
- "type": "array",
57195
- "items": {
57196
- "$ref": "#/components/schemas/SourceImport"
57120
+ "type": "object",
57121
+ "properties": {
57122
+ "data": {
57123
+ "type": "array",
57124
+ "items": {
57125
+ "$ref": "#/components/schemas/SourceImportRun"
57126
+ }
57127
+ }
57197
57128
  }
57198
57129
  }
57199
57130
  }
57200
57131
  }
57201
57132
  },
57133
+ "400": {
57134
+ "$ref": "#/components/responses/BadRequest"
57135
+ },
57202
57136
  "401": {
57203
57137
  "$ref": "#/components/responses/Unauthorized"
57204
57138
  },
57205
57139
  "403": {
57206
57140
  "$ref": "#/components/responses/Forbidden"
57207
57141
  },
57208
- "404": {
57209
- "$ref": "#/components/responses/NotFound"
57210
- },
57211
57142
  "429": {
57212
57143
  "$ref": "#/components/responses/RateLimitExceeded"
57213
57144
  }
57214
57145
  }
57215
57146
  }
57216
57147
  },
57217
- "/v1/sources/{id}/imports/{importId}/resync": {
57218
- "post": {
57219
- "operationId": "resyncSourceImport",
57148
+ "/v1/sources/{id}/import-runs/{runId}": {
57149
+ "get": {
57150
+ "operationId": "getSourceImportRun",
57220
57151
  "x-audience": "public",
57221
57152
  "x-required-scopes": [
57222
- "documents:write"
57153
+ "read"
57223
57154
  ],
57224
- "summary": "Read a Microsoft Teams import again",
57225
- "description": "Reads one imported Microsoft Teams conversation period again and brings in what is new; unchanged content is not processed again. A personal connection can be read again only by the person who connected it.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57155
+ "summary": "Read one import run",
57156
+ "description": "Progress and outcome of one import run: how many items were asked for, how many are in, how many failed, and for each failure which item and why. `running` is true until the run has finished. Items already in stay in when others fail. Reads of a personal connection answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
57226
57157
  "tags": [
57227
57158
  "Sources"
57228
57159
  ],
@@ -57231,38 +57162,23 @@
57231
57162
  "$ref": "#/components/parameters/ResourceId"
57232
57163
  },
57233
57164
  {
57234
- "name": "importId",
57165
+ "name": "runId",
57235
57166
  "in": "path",
57236
57167
  "required": true,
57237
57168
  "schema": {
57238
57169
  "type": "string",
57239
57170
  "format": "uuid"
57240
57171
  },
57241
- "description": "Import UUID from `GET /v1/sources/{id}/imports`."
57172
+ "description": "Import run UUID from `POST /v1/sources/{id}/import` (`async: true`) or `GET /v1/sources/{id}/import-runs`."
57242
57173
  }
57243
57174
  ],
57244
57175
  "responses": {
57245
- "201": {
57246
- "description": "Whether anything changed.",
57176
+ "200": {
57177
+ "description": "The run, with its failures named.",
57247
57178
  "content": {
57248
57179
  "application/json": {
57249
57180
  "schema": {
57250
- "type": "object",
57251
- "properties": {
57252
- "status": {
57253
- "type": "string",
57254
- "enum": [
57255
- "up_to_date",
57256
- "refreshed"
57257
- ]
57258
- },
57259
- "new_attachments": {
57260
- "type": "array",
57261
- "items": {
57262
- "type": "string"
57263
- }
57264
- }
57265
- }
57181
+ "$ref": "#/components/schemas/SourceImportRun"
57266
57182
  }
57267
57183
  }
57268
57184
  }
@@ -57285,15 +57201,15 @@
57285
57201
  }
57286
57202
  }
57287
57203
  },
57288
- "/v1/sources/{id}/make-private": {
57289
- "post": {
57290
- "operationId": "makeSourceConnectionPrivate",
57204
+ "/v1/sources/{id}/imports": {
57205
+ "get": {
57206
+ "operationId": "listSourceImports",
57291
57207
  "x-audience": "public",
57292
57208
  "x-required-scopes": [
57293
- "sources:write"
57209
+ "read"
57294
57210
  ],
57295
- "summary": "Make a connection private",
57296
- "description": "Restricts what the connection holds to the person who connected it (and the people they name). Idempotent: when a rule already restricts the connection, `created` is false. Allowed to the person who connected it, a member with the Integrations permission, or an owner.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57211
+ "summary": "List imports from a connection",
57212
+ "description": "What was brought in from the connection, one entry per imported file. Reads of a personal connection (a mailbox, notes, Slack) answer only to the person who connected it.\n\n**Scope:** `read` or `sources:read`.\n",
57297
57213
  "tags": [
57298
57214
  "Sources"
57299
57215
  ],
@@ -57304,25 +57220,142 @@
57304
57220
  ],
57305
57221
  "responses": {
57306
57222
  "200": {
57307
- "description": "Whether a restriction was added.",
57223
+ "description": "The imports.",
57224
+ "content": {
57225
+ "application/json": {
57226
+ "schema": {
57227
+ "type": "array",
57228
+ "items": {
57229
+ "$ref": "#/components/schemas/SourceImport"
57230
+ }
57231
+ }
57232
+ }
57233
+ }
57234
+ },
57235
+ "401": {
57236
+ "$ref": "#/components/responses/Unauthorized"
57237
+ },
57238
+ "403": {
57239
+ "$ref": "#/components/responses/Forbidden"
57240
+ },
57241
+ "404": {
57242
+ "$ref": "#/components/responses/NotFound"
57243
+ },
57244
+ "429": {
57245
+ "$ref": "#/components/responses/RateLimitExceeded"
57246
+ }
57247
+ }
57248
+ }
57249
+ },
57250
+ "/v1/sources/{id}/imports/{importId}/resync": {
57251
+ "post": {
57252
+ "operationId": "resyncSourceImport",
57253
+ "x-audience": "public",
57254
+ "x-required-scopes": [
57255
+ "documents:write"
57256
+ ],
57257
+ "summary": "Read a Microsoft Teams import again",
57258
+ "description": "Reads one imported Microsoft Teams conversation period again and brings in what is new; unchanged content is not processed again. A personal connection can be read again only by the person who connected it.\n\n**Scope:** `documents:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57259
+ "tags": [
57260
+ "Sources"
57261
+ ],
57262
+ "parameters": [
57263
+ {
57264
+ "$ref": "#/components/parameters/ResourceId"
57265
+ },
57266
+ {
57267
+ "name": "importId",
57268
+ "in": "path",
57269
+ "required": true,
57270
+ "schema": {
57271
+ "type": "string",
57272
+ "format": "uuid"
57273
+ },
57274
+ "description": "Import UUID from `GET /v1/sources/{id}/imports`."
57275
+ }
57276
+ ],
57277
+ "responses": {
57278
+ "201": {
57279
+ "description": "Whether anything changed.",
57308
57280
  "content": {
57309
57281
  "application/json": {
57310
57282
  "schema": {
57311
57283
  "type": "object",
57312
- "required": [
57313
- "created"
57314
- ],
57315
57284
  "properties": {
57316
- "created": {
57317
- "type": "boolean"
57318
- },
57319
- "rule": {
57320
- "type": "object",
57321
- "additionalProperties": true,
57322
- "description": "The visibility rule that was added."
57285
+ "status": {
57286
+ "type": "string",
57287
+ "enum": [
57288
+ "up_to_date",
57289
+ "refreshed"
57290
+ ]
57323
57291
  },
57324
- "message": {
57325
- "type": "string"
57292
+ "new_attachments": {
57293
+ "type": "array",
57294
+ "items": {
57295
+ "type": "string"
57296
+ }
57297
+ }
57298
+ }
57299
+ }
57300
+ }
57301
+ }
57302
+ },
57303
+ "400": {
57304
+ "$ref": "#/components/responses/BadRequest"
57305
+ },
57306
+ "401": {
57307
+ "$ref": "#/components/responses/Unauthorized"
57308
+ },
57309
+ "403": {
57310
+ "$ref": "#/components/responses/Forbidden"
57311
+ },
57312
+ "404": {
57313
+ "$ref": "#/components/responses/NotFound"
57314
+ },
57315
+ "429": {
57316
+ "$ref": "#/components/responses/RateLimitExceeded"
57317
+ }
57318
+ }
57319
+ }
57320
+ },
57321
+ "/v1/sources/{id}/make-private": {
57322
+ "post": {
57323
+ "operationId": "makeSourceConnectionPrivate",
57324
+ "x-audience": "public",
57325
+ "x-required-scopes": [
57326
+ "sources:write"
57327
+ ],
57328
+ "summary": "Make a connection private",
57329
+ "description": "Restricts what the connection holds to the person who connected it (and the people they name). Idempotent: when a rule already restricts the connection, `created` is false. Allowed to the person who connected it, a member with the Integrations permission, or an owner.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
57330
+ "tags": [
57331
+ "Sources"
57332
+ ],
57333
+ "parameters": [
57334
+ {
57335
+ "$ref": "#/components/parameters/ResourceId"
57336
+ }
57337
+ ],
57338
+ "responses": {
57339
+ "200": {
57340
+ "description": "Whether a restriction was added.",
57341
+ "content": {
57342
+ "application/json": {
57343
+ "schema": {
57344
+ "type": "object",
57345
+ "required": [
57346
+ "created"
57347
+ ],
57348
+ "properties": {
57349
+ "created": {
57350
+ "type": "boolean"
57351
+ },
57352
+ "rule": {
57353
+ "type": "object",
57354
+ "additionalProperties": true,
57355
+ "description": "The visibility rule that was added."
57356
+ },
57357
+ "message": {
57358
+ "type": "string"
57326
57359
  }
57327
57360
  }
57328
57361
  }
@@ -77550,6 +77583,97 @@
77550
77583
  }
77551
77584
  }
77552
77585
  },
77586
+ "/v1/team/members/{userId}/access-until": {
77587
+ "put": {
77588
+ "operationId": "setMemberAccessUntil",
77589
+ "x-required-scopes": [
77590
+ "team:write"
77591
+ ],
77592
+ "x-audience": "public",
77593
+ "summary": "Make a membership temporary",
77594
+ "description": "Sets when a member's membership ends, or `null` for no end. The hourly expiry then removes\nthe member with their shares and personal API keys, as a removal does. The moment must be\nin the future; nobody sets their own, and the workspace always keeps a member who holds `team`.\n\nScope: `team:write`. The person behind the credential needs the `team` permission\n(Admins by default).\n",
77595
+ "tags": [
77596
+ "Team"
77597
+ ],
77598
+ "parameters": [
77599
+ {
77600
+ "name": "userId",
77601
+ "in": "path",
77602
+ "required": true,
77603
+ "schema": {
77604
+ "type": "string",
77605
+ "format": "uuid"
77606
+ }
77607
+ }
77608
+ ],
77609
+ "requestBody": {
77610
+ "required": true,
77611
+ "content": {
77612
+ "application/json": {
77613
+ "schema": {
77614
+ "type": "object",
77615
+ "properties": {
77616
+ "access_until": {
77617
+ "oneOf": [
77618
+ {
77619
+ "type": "string",
77620
+ "format": "date-time"
77621
+ },
77622
+ {
77623
+ "type": "null"
77624
+ }
77625
+ ]
77626
+ }
77627
+ },
77628
+ "required": [
77629
+ "access_until"
77630
+ ]
77631
+ }
77632
+ }
77633
+ }
77634
+ },
77635
+ "responses": {
77636
+ "200": {
77637
+ "description": "Make a membership temporary: done.",
77638
+ "content": {
77639
+ "application/json": {
77640
+ "schema": {
77641
+ "type": "object",
77642
+ "properties": {
77643
+ "user_id": {
77644
+ "type": "string",
77645
+ "format": "uuid"
77646
+ },
77647
+ "access_until": {
77648
+ "type": [
77649
+ "string",
77650
+ "null"
77651
+ ],
77652
+ "format": "date-time"
77653
+ }
77654
+ }
77655
+ }
77656
+ }
77657
+ }
77658
+ },
77659
+ "400": {
77660
+ "$ref": "#/components/responses/BadRequest"
77661
+ },
77662
+ "401": {
77663
+ "$ref": "#/components/responses/Unauthorized"
77664
+ },
77665
+ "403": {
77666
+ "$ref": "#/components/responses/Forbidden"
77667
+ },
77668
+ "404": {
77669
+ "$ref": "#/components/responses/NotFound"
77670
+ },
77671
+ "429": {
77672
+ "$ref": "#/components/responses/RateLimitExceeded"
77673
+ }
77674
+ }
77675
+ }
77676
+ },
77553
77677
  "/v1/team/role-permissions": {
77554
77678
  "get": {
77555
77679
  "operationId": "getRolePermissions",
@@ -79525,7 +79649,7 @@
79525
79649
  "thread:read"
79526
79650
  ],
79527
79651
  "summary": "Read the thread",
79528
- "description": "The last exchange of your thread and anything waiting for your decision. `enabled: false` when the thread is not available to you; `cursor` is where to start reading events.\n",
79652
+ "description": "The newest page of your conversation and anything waiting for your decision. `enabled: false` when the thread is not available to you; `cursor` is where to start reading events, and `has_older` says earlier messages can be read with the history route.\n",
79529
79653
  "tags": [
79530
79654
  "Thread"
79531
79655
  ],
@@ -79625,6 +79749,76 @@
79625
79749
  }
79626
79750
  }
79627
79751
  },
79752
+ "/v1/thread/history": {
79753
+ "get": {
79754
+ "operationId": "listThreadHistory",
79755
+ "x-audience": "public",
79756
+ "x-required-scopes": [
79757
+ "thread:read"
79758
+ ],
79759
+ "summary": "Read earlier thread messages",
79760
+ "description": "One page of your conversation further back: messages, reactions and decision cards before a given row, oldest first. Start from the `seq` of the oldest event you hold and repeat while `has_older` is true.\n",
79761
+ "tags": [
79762
+ "Thread"
79763
+ ],
79764
+ "parameters": [
79765
+ {
79766
+ "name": "before",
79767
+ "in": "query",
79768
+ "schema": {
79769
+ "type": "integer",
79770
+ "minimum": 1
79771
+ },
79772
+ "description": "The `seq` of the oldest event you already hold. Omitted, the newest page is returned."
79773
+ },
79774
+ {
79775
+ "name": "limit",
79776
+ "in": "query",
79777
+ "schema": {
79778
+ "type": "integer",
79779
+ "minimum": 1,
79780
+ "maximum": 100,
79781
+ "default": 50
79782
+ }
79783
+ }
79784
+ ],
79785
+ "responses": {
79786
+ "200": {
79787
+ "description": "OK",
79788
+ "content": {
79789
+ "application/json": {
79790
+ "schema": {
79791
+ "type": "object",
79792
+ "properties": {
79793
+ "events": {
79794
+ "type": "array",
79795
+ "items": {
79796
+ "$ref": "#/components/schemas/ThreadEvent"
79797
+ }
79798
+ },
79799
+ "has_older": {
79800
+ "type": "boolean"
79801
+ }
79802
+ }
79803
+ }
79804
+ }
79805
+ }
79806
+ },
79807
+ "401": {
79808
+ "$ref": "#/components/responses/Unauthorized"
79809
+ },
79810
+ "403": {
79811
+ "$ref": "#/components/responses/Forbidden"
79812
+ },
79813
+ "404": {
79814
+ "$ref": "#/components/responses/NotFound"
79815
+ },
79816
+ "429": {
79817
+ "$ref": "#/components/responses/RateLimitExceeded"
79818
+ }
79819
+ }
79820
+ }
79821
+ },
79628
79822
  "/v1/thread/messages": {
79629
79823
  "post": {
79630
79824
  "operationId": "sendThreadMessage",
@@ -79800,6 +79994,56 @@
79800
79994
  }
79801
79995
  }
79802
79996
  },
79997
+ "/v1/thread/files/{documentId}": {
79998
+ "get": {
79999
+ "operationId": "getThreadFile",
80000
+ "x-audience": "public",
80001
+ "x-required-scopes": [
80002
+ "thread:read"
80003
+ ],
80004
+ "summary": "Get a picture you handed in",
80005
+ "description": "A picture you handed your thread, as an image for showing it: upright and at most 1,600 pixels on its longer side. The id is `document_id` of an entry with `kind: image` in `meta.attachments` of your own message event. Anything else answers 404: a file that is not a picture, a document of the workspace, another person's file.\n",
80006
+ "tags": [
80007
+ "Thread"
80008
+ ],
80009
+ "parameters": [
80010
+ {
80011
+ "name": "documentId",
80012
+ "in": "path",
80013
+ "required": true,
80014
+ "schema": {
80015
+ "type": "string",
80016
+ "format": "uuid"
80017
+ }
80018
+ }
80019
+ ],
80020
+ "responses": {
80021
+ "200": {
80022
+ "description": "The picture.",
80023
+ "content": {
80024
+ "image/webp": {
80025
+ "schema": {
80026
+ "type": "string",
80027
+ "format": "binary"
80028
+ }
80029
+ }
80030
+ }
80031
+ },
80032
+ "401": {
80033
+ "$ref": "#/components/responses/Unauthorized"
80034
+ },
80035
+ "403": {
80036
+ "$ref": "#/components/responses/Forbidden"
80037
+ },
80038
+ "404": {
80039
+ "$ref": "#/components/responses/NotFound"
80040
+ },
80041
+ "429": {
80042
+ "$ref": "#/components/responses/RateLimitExceeded"
80043
+ }
80044
+ }
80045
+ }
80046
+ },
79803
80047
  "/v1/thread/approvals/{id}": {
79804
80048
  "post": {
79805
80049
  "operationId": "decideThreadApproval",
@@ -83141,6 +83385,313 @@
83141
83385
  }
83142
83386
  }
83143
83387
  },
83388
+ "/v1/governance/level": {
83389
+ "get": {
83390
+ "operationId": "getGovernanceLevel",
83391
+ "x-audience": "public",
83392
+ "x-required-scopes": [
83393
+ "access:read"
83394
+ ],
83395
+ "summary": "The workspace's data governance",
83396
+ "description": "Whether data governance is on, its default (`open`: what the access rules open to the workspace stays open, holders close their sources; `private`: holders, licences and shares only), and a turn-on in progress (`enabling`). Workspace owners only.\n",
83397
+ "tags": [
83398
+ "Access & sharing"
83399
+ ],
83400
+ "responses": {
83401
+ "200": {
83402
+ "description": "The governance status.",
83403
+ "content": {
83404
+ "application/json": {
83405
+ "schema": {
83406
+ "type": "object",
83407
+ "properties": {
83408
+ "on": {
83409
+ "type": "boolean"
83410
+ },
83411
+ "default": {
83412
+ "type": "string",
83413
+ "enum": [
83414
+ "open",
83415
+ "private"
83416
+ ]
83417
+ },
83418
+ "stored_default": {
83419
+ "type": "string",
83420
+ "enum": [
83421
+ "open",
83422
+ "private"
83423
+ ],
83424
+ "nullable": true
83425
+ },
83426
+ "since": {
83427
+ "type": "string",
83428
+ "nullable": true
83429
+ },
83430
+ "enabled": {
83431
+ "type": "boolean",
83432
+ "description": "governance.enabled: this deployment runs the scope model."
83433
+ },
83434
+ "decision_point_on": {
83435
+ "type": "boolean"
83436
+ },
83437
+ "field_tiers": {
83438
+ "type": "boolean"
83439
+ },
83440
+ "enabling": {
83441
+ "type": "object",
83442
+ "nullable": true,
83443
+ "description": "A turn-on in progress: the workspace keeps its current access rules until the job has given every document its access scope; then governance switches on.",
83444
+ "properties": {
83445
+ "state": {
83446
+ "type": "string",
83447
+ "enum": [
83448
+ "preparing",
83449
+ "failed"
83450
+ ]
83451
+ },
83452
+ "default": {
83453
+ "type": "string",
83454
+ "enum": [
83455
+ "open",
83456
+ "private"
83457
+ ]
83458
+ },
83459
+ "requested_at": {
83460
+ "type": "string",
83461
+ "nullable": true
83462
+ },
83463
+ "requested_by": {
83464
+ "type": "string",
83465
+ "nullable": true
83466
+ },
83467
+ "done": {
83468
+ "type": "integer",
83469
+ "nullable": true,
83470
+ "description": "Documents given their access scope so far."
83471
+ },
83472
+ "total": {
83473
+ "type": "integer",
83474
+ "nullable": true
83475
+ },
83476
+ "error": {
83477
+ "type": "string",
83478
+ "nullable": true
83479
+ }
83480
+ }
83481
+ }
83482
+ }
83483
+ }
83484
+ }
83485
+ }
83486
+ },
83487
+ "400": {
83488
+ "$ref": "#/components/responses/BadRequest"
83489
+ },
83490
+ "401": {
83491
+ "$ref": "#/components/responses/Unauthorized"
83492
+ },
83493
+ "403": {
83494
+ "$ref": "#/components/responses/Forbidden"
83495
+ },
83496
+ "429": {
83497
+ "$ref": "#/components/responses/RateLimitExceeded"
83498
+ }
83499
+ }
83500
+ },
83501
+ "put": {
83502
+ "operationId": "setGovernanceLevel",
83503
+ "x-audience": "public",
83504
+ "x-required-scopes": [
83505
+ "access:write"
83506
+ ],
83507
+ "summary": "Turn data governance on or off",
83508
+ "description": "Turn data governance on or off and choose its default. When documents still need their access scope, turning on answers at once with `enabling.state = preparing`; a background job gives every document its access scope and then switches governance on (poll `GET /v1/governance/level`). The workspace keeps its current access rules until then. A failed preparation is reported in `enabling.error`; turning on again continues where it stopped. Turning off is immediate and ends a preparation. Workspace owners only.\n",
83509
+ "tags": [
83510
+ "Access & sharing"
83511
+ ],
83512
+ "requestBody": {
83513
+ "required": true,
83514
+ "content": {
83515
+ "application/json": {
83516
+ "schema": {
83517
+ "type": "object",
83518
+ "required": [
83519
+ "on"
83520
+ ],
83521
+ "properties": {
83522
+ "on": {
83523
+ "type": "boolean"
83524
+ },
83525
+ "default": {
83526
+ "type": "string",
83527
+ "enum": [
83528
+ "open",
83529
+ "private"
83530
+ ]
83531
+ }
83532
+ }
83533
+ }
83534
+ }
83535
+ }
83536
+ },
83537
+ "responses": {
83538
+ "200": {
83539
+ "description": "The governance status after the change (or with `enabling` while it prepares).",
83540
+ "content": {
83541
+ "application/json": {
83542
+ "schema": {
83543
+ "type": "object",
83544
+ "properties": {
83545
+ "on": {
83546
+ "type": "boolean"
83547
+ },
83548
+ "default": {
83549
+ "type": "string",
83550
+ "enum": [
83551
+ "open",
83552
+ "private"
83553
+ ]
83554
+ },
83555
+ "stored_default": {
83556
+ "type": "string",
83557
+ "enum": [
83558
+ "open",
83559
+ "private"
83560
+ ],
83561
+ "nullable": true
83562
+ },
83563
+ "since": {
83564
+ "type": "string",
83565
+ "nullable": true
83566
+ },
83567
+ "enabled": {
83568
+ "type": "boolean",
83569
+ "description": "governance.enabled: this deployment runs the scope model."
83570
+ },
83571
+ "decision_point_on": {
83572
+ "type": "boolean"
83573
+ },
83574
+ "field_tiers": {
83575
+ "type": "boolean"
83576
+ },
83577
+ "enabling": {
83578
+ "type": "object",
83579
+ "nullable": true,
83580
+ "description": "A turn-on in progress: the workspace keeps its current access rules until the job has given every document its access scope; then governance switches on.",
83581
+ "properties": {
83582
+ "state": {
83583
+ "type": "string",
83584
+ "enum": [
83585
+ "preparing",
83586
+ "failed"
83587
+ ]
83588
+ },
83589
+ "default": {
83590
+ "type": "string",
83591
+ "enum": [
83592
+ "open",
83593
+ "private"
83594
+ ]
83595
+ },
83596
+ "requested_at": {
83597
+ "type": "string",
83598
+ "nullable": true
83599
+ },
83600
+ "requested_by": {
83601
+ "type": "string",
83602
+ "nullable": true
83603
+ },
83604
+ "done": {
83605
+ "type": "integer",
83606
+ "nullable": true,
83607
+ "description": "Documents given their access scope so far."
83608
+ },
83609
+ "total": {
83610
+ "type": "integer",
83611
+ "nullable": true
83612
+ },
83613
+ "error": {
83614
+ "type": "string",
83615
+ "nullable": true
83616
+ }
83617
+ }
83618
+ }
83619
+ }
83620
+ }
83621
+ }
83622
+ }
83623
+ },
83624
+ "400": {
83625
+ "$ref": "#/components/responses/BadRequest"
83626
+ },
83627
+ "401": {
83628
+ "$ref": "#/components/responses/Unauthorized"
83629
+ },
83630
+ "403": {
83631
+ "$ref": "#/components/responses/Forbidden"
83632
+ },
83633
+ "409": {
83634
+ "$ref": "#/components/responses/Conflict"
83635
+ },
83636
+ "429": {
83637
+ "$ref": "#/components/responses/RateLimitExceeded"
83638
+ }
83639
+ }
83640
+ }
83641
+ },
83642
+ "/v1/governance/level/dry-run": {
83643
+ "get": {
83644
+ "operationId": "dryRunGovernanceLevel",
83645
+ "x-audience": "public",
83646
+ "x-required-scopes": [
83647
+ "access:read"
83648
+ ],
83649
+ "summary": "Who reads what under data governance",
83650
+ "description": "Per active member: live documents read today and under governance with the given default (`default=open|private`, `open` when omitted), with how many they would gain or lose, and the stamp report (documents still needing their access scope). Reads only. Workspace owners only.\n",
83651
+ "tags": [
83652
+ "Access & sharing"
83653
+ ],
83654
+ "parameters": [
83655
+ {
83656
+ "name": "default",
83657
+ "in": "query",
83658
+ "required": false,
83659
+ "schema": {
83660
+ "type": "string",
83661
+ "enum": [
83662
+ "open",
83663
+ "private"
83664
+ ]
83665
+ }
83666
+ }
83667
+ ],
83668
+ "responses": {
83669
+ "200": {
83670
+ "description": "The dry run.",
83671
+ "content": {
83672
+ "application/json": {
83673
+ "schema": {
83674
+ "type": "object",
83675
+ "additionalProperties": true
83676
+ }
83677
+ }
83678
+ }
83679
+ },
83680
+ "400": {
83681
+ "$ref": "#/components/responses/BadRequest"
83682
+ },
83683
+ "401": {
83684
+ "$ref": "#/components/responses/Unauthorized"
83685
+ },
83686
+ "403": {
83687
+ "$ref": "#/components/responses/Forbidden"
83688
+ },
83689
+ "429": {
83690
+ "$ref": "#/components/responses/RateLimitExceeded"
83691
+ }
83692
+ }
83693
+ }
83694
+ },
83144
83695
  "/v1/governance/shares/workspace": {
83145
83696
  "post": {
83146
83697
  "operationId": "setWorkspaceOpen",
@@ -116626,10 +117177,119 @@
116626
117177
  "type": "string"
116627
117178
  },
116628
117179
  "error": {
117180
+ "type": "string",
117181
+ "description": "The raw failure message."
117182
+ },
117183
+ "reason": {
117184
+ "type": "string",
117185
+ "description": "Why the file could not be imported, in words for a person."
117186
+ }
117187
+ }
117188
+ }
117189
+ }
117190
+ }
117191
+ },
117192
+ "SourceImportRun": {
117193
+ "type": "object",
117194
+ "description": "One import carried out in the background. Counts are in requested items (a folder is one item however many files it holds): `requested = imported + skipped + empty + failed + pending`.\n",
117195
+ "properties": {
117196
+ "id": {
117197
+ "type": "string",
117198
+ "format": "uuid"
117199
+ },
117200
+ "source_connection_id": {
117201
+ "type": "string",
117202
+ "format": "uuid"
117203
+ },
117204
+ "status": {
117205
+ "type": "string",
117206
+ "enum": [
117207
+ "queued",
117208
+ "running",
117209
+ "completed",
117210
+ "failed"
117211
+ ],
117212
+ "description": "`completed` also when some items failed (see `failed` and `failures`); `failed` when the run itself stopped (see `error`).\n"
117213
+ },
117214
+ "running": {
117215
+ "type": "boolean",
117216
+ "description": "True while the run is queued or being worked on."
117217
+ },
117218
+ "requested": {
117219
+ "type": "integer",
117220
+ "description": "Items asked for."
117221
+ },
117222
+ "imported": {
117223
+ "type": "integer",
117224
+ "description": "Items brought into the workspace by this run."
117225
+ },
117226
+ "skipped": {
117227
+ "type": "integer",
117228
+ "description": "Items that were in the workspace already; nothing was imported twice."
117229
+ },
117230
+ "empty": {
117231
+ "type": "integer",
117232
+ "description": "Folders that held nothing to import."
117233
+ },
117234
+ "failed": {
117235
+ "type": "integer"
117236
+ },
117237
+ "pending": {
117238
+ "type": "integer",
117239
+ "description": "Items not worked on yet (or never, when the run itself failed)."
117240
+ },
117241
+ "error": {
117242
+ "type": [
117243
+ "string",
117244
+ "null"
117245
+ ],
117246
+ "description": "Why the run as a whole stopped, when it did."
117247
+ },
117248
+ "created_at": {
117249
+ "type": "string",
117250
+ "format": "date-time"
117251
+ },
117252
+ "started_at": {
117253
+ "type": [
117254
+ "string",
117255
+ "null"
117256
+ ],
117257
+ "format": "date-time"
117258
+ },
117259
+ "finished_at": {
117260
+ "type": [
117261
+ "string",
117262
+ "null"
117263
+ ],
117264
+ "format": "date-time"
117265
+ },
117266
+ "failures": {
117267
+ "type": "array",
117268
+ "description": "On the single-run read. What could not be imported.",
117269
+ "items": {
117270
+ "type": "object",
117271
+ "properties": {
117272
+ "item_id": {
117273
+ "type": "string",
117274
+ "description": "The requested item (a file or folder id)."
117275
+ },
117276
+ "file_id": {
117277
+ "type": "string",
117278
+ "description": "The file inside a requested folder, when the failure is that file's."
117279
+ },
117280
+ "name": {
116629
117281
  "type": "string"
117282
+ },
117283
+ "reason": {
117284
+ "type": "string",
117285
+ "description": "Why, in words for a person."
116630
117286
  }
116631
117287
  }
116632
117288
  }
117289
+ },
117290
+ "failures_truncated": {
117291
+ "type": "boolean",
117292
+ "description": "True when more failures exist than `failures` names; `failed` is always exact."
116633
117293
  }
116634
117294
  }
116635
117295
  },
@@ -117533,6 +118193,10 @@
117533
118193
  },
117534
118194
  "cursor": {
117535
118195
  "type": "integer"
118196
+ },
118197
+ "has_older": {
118198
+ "type": "boolean",
118199
+ "description": "True when the conversation goes further back than this page."
117536
118200
  }
117537
118201
  }
117538
118202
  },