@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/dist/seo.js CHANGED
@@ -123,6 +123,10 @@ var generated_nav_default = {
123
123
  id: "ref-suggestions",
124
124
  label: "Suggestions"
125
125
  },
126
+ {
127
+ id: "ref-team",
128
+ label: "Team"
129
+ },
126
130
  {
127
131
  id: "ref-access-and-sharing",
128
132
  label: "Access & sharing"
@@ -54288,31 +54292,38 @@ var openapi_default = {
54288
54292
  }
54289
54293
  }
54290
54294
  },
54291
- "/v1/sources/s3/dedicated-egress": {
54295
+ "/v1/sources/egress": {
54292
54296
  get: {
54293
- operationId: "getS3DedicatedEgress",
54297
+ operationId: "getSourceEgress",
54294
54298
  "x-audience": "public",
54295
54299
  "x-required-scopes": [
54296
54300
  "read"
54297
54301
  ],
54298
- summary: "Check dedicated egress for Amazon S3",
54299
- 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",
54302
+ summary: "Get the workspace's dedicated egress IPs",
54303
+ 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",
54300
54304
  tags: [
54301
54305
  "Sources"
54302
54306
  ],
54303
54307
  responses: {
54304
54308
  "200": {
54305
- description: "Availability.",
54309
+ description: "Egress state of the workspace.",
54306
54310
  content: {
54307
54311
  "application/json": {
54308
54312
  schema: {
54309
54313
  type: "object",
54310
54314
  required: [
54311
- "available"
54315
+ "enabled",
54316
+ "ips"
54312
54317
  ],
54313
54318
  properties: {
54314
- available: {
54319
+ enabled: {
54315
54320
  type: "boolean"
54321
+ },
54322
+ ips: {
54323
+ type: "array",
54324
+ items: {
54325
+ type: "string"
54326
+ }
54316
54327
  }
54317
54328
  }
54318
54329
  }
@@ -54331,15 +54342,15 @@ var openapi_default = {
54331
54342
  }
54332
54343
  }
54333
54344
  },
54334
- "/v1/sources/kendox/dedicated-egress": {
54345
+ "/v1/sources/slack/sign-in": {
54335
54346
  get: {
54336
- operationId: "getKendoxDedicatedEgress",
54347
+ operationId: "getSlackSignInAvailability",
54337
54348
  "x-audience": "public",
54338
54349
  "x-required-scopes": [
54339
54350
  "read"
54340
54351
  ],
54341
- summary: "Check dedicated egress for Kendox",
54342
- 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",
54352
+ summary: "Check Slack sign-in availability",
54353
+ description: "Whether this deployment offers connecting Slack through a browser sign-in (`POST /v1/integrations/slack/authorize`). When it does not, connect Slack with a token (`POST /v1/sources/connections/slack`).\n\n**Scope:** `read` or `sources:read`.\n",
54343
54354
  tags: [
54344
54355
  "Sources"
54345
54356
  ],
@@ -54374,37 +54385,80 @@ var openapi_default = {
54374
54385
  }
54375
54386
  }
54376
54387
  },
54377
- "/v1/sources/sql/dedicated-egress": {
54378
- get: {
54379
- operationId: "getSqlDedicatedEgress",
54388
+ "/v1/sources/connections/s3": {
54389
+ post: {
54390
+ operationId: "connectS3Source",
54380
54391
  "x-audience": "public",
54381
54392
  "x-required-scopes": [
54382
- "read"
54393
+ "sources:write"
54383
54394
  ],
54384
- summary: "Check dedicated egress for SQL",
54385
- 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",
54395
+ summary: "Connect Amazon S3",
54396
+ description: "Connects an Amazon S3 bucket (or an S3-compatible store through `endpoint_url`) with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54386
54397
  tags: [
54387
54398
  "Sources"
54388
54399
  ],
54400
+ requestBody: {
54401
+ required: true,
54402
+ content: {
54403
+ "application/json": {
54404
+ schema: {
54405
+ type: "object",
54406
+ required: [
54407
+ "name",
54408
+ "access_key_id",
54409
+ "secret_access_key"
54410
+ ],
54411
+ properties: {
54412
+ name: {
54413
+ type: "string",
54414
+ maxLength: 200,
54415
+ description: "Display name."
54416
+ },
54417
+ access_key_id: {
54418
+ type: "string",
54419
+ maxLength: 200,
54420
+ description: "Access key id."
54421
+ },
54422
+ secret_access_key: {
54423
+ type: "string",
54424
+ maxLength: 500,
54425
+ writeOnly: true,
54426
+ description: "Secret access key. Write-only."
54427
+ },
54428
+ region: {
54429
+ type: "string",
54430
+ maxLength: 50,
54431
+ description: "Bucket region."
54432
+ },
54433
+ endpoint_url: {
54434
+ type: "string",
54435
+ maxLength: 500,
54436
+ description: "Endpoint of an S3-compatible store."
54437
+ },
54438
+ bucket: {
54439
+ type: "string",
54440
+ maxLength: 255,
54441
+ description: "Bucket name."
54442
+ }
54443
+ }
54444
+ }
54445
+ }
54446
+ }
54447
+ },
54389
54448
  responses: {
54390
- "200": {
54391
- description: "Availability.",
54449
+ "201": {
54450
+ description: "The new connection (without its credentials).",
54392
54451
  content: {
54393
54452
  "application/json": {
54394
54453
  schema: {
54395
- type: "object",
54396
- required: [
54397
- "available"
54398
- ],
54399
- properties: {
54400
- available: {
54401
- type: "boolean"
54402
- }
54403
- }
54454
+ $ref: "#/components/schemas/SourceConnection"
54404
54455
  }
54405
54456
  }
54406
54457
  }
54407
54458
  },
54459
+ "400": {
54460
+ $ref: "#/components/responses/BadRequest"
54461
+ },
54408
54462
  "401": {
54409
54463
  $ref: "#/components/responses/Unauthorized"
54410
54464
  },
@@ -54417,37 +54471,74 @@ var openapi_default = {
54417
54471
  }
54418
54472
  }
54419
54473
  },
54420
- "/v1/sources/slack/sign-in": {
54421
- get: {
54422
- operationId: "getSlackSignInAvailability",
54474
+ "/v1/sources/connections/azure-blob": {
54475
+ post: {
54476
+ operationId: "connectAzureBlobSource",
54423
54477
  "x-audience": "public",
54424
54478
  "x-required-scopes": [
54425
- "read"
54479
+ "sources:write"
54426
54480
  ],
54427
- summary: "Check Slack sign-in availability",
54428
- description: "Whether this deployment offers connecting Slack through a browser sign-in (`POST /v1/integrations/slack/authorize`). When it does not, connect Slack with a token (`POST /v1/sources/connections/slack`).\n\n**Scope:** `read` or `sources:read`.\n",
54481
+ summary: "Connect Azure Blob Storage",
54482
+ description: "Connects Azure Blob Storage with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. Send either `connection_string`, or `account_name` + `sas_token` + `sas_container`; both forms or neither answers 400. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54429
54483
  tags: [
54430
54484
  "Sources"
54431
54485
  ],
54486
+ requestBody: {
54487
+ required: true,
54488
+ content: {
54489
+ "application/json": {
54490
+ schema: {
54491
+ type: "object",
54492
+ required: [
54493
+ "name"
54494
+ ],
54495
+ properties: {
54496
+ name: {
54497
+ type: "string",
54498
+ maxLength: 200,
54499
+ description: "Display name."
54500
+ },
54501
+ connection_string: {
54502
+ type: "string",
54503
+ maxLength: 4e3,
54504
+ writeOnly: true,
54505
+ description: "Storage account connection string. Write-only."
54506
+ },
54507
+ account_name: {
54508
+ type: "string",
54509
+ maxLength: 200,
54510
+ description: "Storage account name."
54511
+ },
54512
+ sas_token: {
54513
+ type: "string",
54514
+ maxLength: 4e3,
54515
+ writeOnly: true,
54516
+ description: "Shared access signature token. Write-only."
54517
+ },
54518
+ sas_container: {
54519
+ type: "string",
54520
+ maxLength: 200,
54521
+ description: "Container the SAS token grants."
54522
+ }
54523
+ }
54524
+ }
54525
+ }
54526
+ }
54527
+ },
54432
54528
  responses: {
54433
- "200": {
54434
- description: "Availability.",
54529
+ "201": {
54530
+ description: "The new connection (without its credentials).",
54435
54531
  content: {
54436
54532
  "application/json": {
54437
54533
  schema: {
54438
- type: "object",
54439
- required: [
54440
- "available"
54441
- ],
54442
- properties: {
54443
- available: {
54444
- type: "boolean"
54445
- }
54446
- }
54534
+ $ref: "#/components/schemas/SourceConnection"
54447
54535
  }
54448
54536
  }
54449
54537
  }
54450
54538
  },
54539
+ "400": {
54540
+ $ref: "#/components/responses/BadRequest"
54541
+ },
54451
54542
  "401": {
54452
54543
  $ref: "#/components/responses/Unauthorized"
54453
54544
  },
@@ -54460,15 +54551,15 @@ var openapi_default = {
54460
54551
  }
54461
54552
  }
54462
54553
  },
54463
- "/v1/sources/connections/s3": {
54554
+ "/v1/sources/connections/granola": {
54464
54555
  post: {
54465
- operationId: "connectS3Source",
54556
+ operationId: "connectGranolaSource",
54466
54557
  "x-audience": "public",
54467
54558
  "x-required-scopes": [
54468
54559
  "sources:write"
54469
54560
  ],
54470
- summary: "Connect Amazon S3",
54471
- description: "Connects an Amazon S3 bucket (or an S3-compatible store through `endpoint_url`) with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54561
+ summary: "Connect Granola",
54562
+ description: "Connects Granola meeting notes with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. This is a personal connection: only the person who connected it manages it and reads from it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54472
54563
  tags: [
54473
54564
  "Sources"
54474
54565
  ],
@@ -54480,8 +54571,7 @@ var openapi_default = {
54480
54571
  type: "object",
54481
54572
  required: [
54482
54573
  "name",
54483
- "access_key_id",
54484
- "secret_access_key"
54574
+ "api_key"
54485
54575
  ],
54486
54576
  properties: {
54487
54577
  name: {
@@ -54489,260 +54579,91 @@ var openapi_default = {
54489
54579
  maxLength: 200,
54490
54580
  description: "Display name."
54491
54581
  },
54492
- access_key_id: {
54493
- type: "string",
54494
- maxLength: 200,
54495
- description: "Access key id."
54496
- },
54497
- secret_access_key: {
54582
+ api_key: {
54498
54583
  type: "string",
54499
54584
  maxLength: 500,
54500
54585
  writeOnly: true,
54501
- description: "Secret access key. Write-only."
54586
+ description: "Granola API key. Write-only."
54502
54587
  },
54503
- region: {
54588
+ owner_email: {
54504
54589
  type: "string",
54505
- maxLength: 50,
54506
- description: "Bucket region."
54590
+ format: "email",
54591
+ description: "Keep only notes this person owns or was shared."
54507
54592
  },
54508
- endpoint_url: {
54593
+ intake: {
54594
+ type: "object",
54595
+ additionalProperties: true,
54596
+ description: "First-read choices applied the moment the connection exists, in the shape `PATCH /v1/sources/connections/{id}/intake` takes."
54597
+ }
54598
+ }
54599
+ }
54600
+ }
54601
+ }
54602
+ },
54603
+ responses: {
54604
+ "201": {
54605
+ description: "The new connection (without its credentials).",
54606
+ content: {
54607
+ "application/json": {
54608
+ schema: {
54609
+ $ref: "#/components/schemas/SourceConnection"
54610
+ }
54611
+ }
54612
+ }
54613
+ },
54614
+ "400": {
54615
+ $ref: "#/components/responses/BadRequest"
54616
+ },
54617
+ "401": {
54618
+ $ref: "#/components/responses/Unauthorized"
54619
+ },
54620
+ "403": {
54621
+ $ref: "#/components/responses/Forbidden"
54622
+ },
54623
+ "429": {
54624
+ $ref: "#/components/responses/RateLimitExceeded"
54625
+ }
54626
+ }
54627
+ }
54628
+ },
54629
+ "/v1/sources/connections/slack": {
54630
+ post: {
54631
+ operationId: "connectSlackSource",
54632
+ "x-audience": "public",
54633
+ "x-required-scopes": [
54634
+ "sources:write"
54635
+ ],
54636
+ summary: "Connect Slack with a token",
54637
+ description: "Connects Slack with a token with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. This is a personal connection: only the person who connected it manages it and reads from it. Where the deployment offers it, `POST /v1/integrations/slack/authorize` connects Slack through a browser sign-in instead. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54638
+ tags: [
54639
+ "Sources"
54640
+ ],
54641
+ requestBody: {
54642
+ required: true,
54643
+ content: {
54644
+ "application/json": {
54645
+ schema: {
54646
+ type: "object",
54647
+ required: [
54648
+ "name",
54649
+ "token"
54650
+ ],
54651
+ properties: {
54652
+ name: {
54509
54653
  type: "string",
54510
- maxLength: 500,
54511
- description: "Endpoint of an S3-compatible store."
54654
+ maxLength: 200,
54655
+ description: "Display name."
54512
54656
  },
54513
- bucket: {
54657
+ token: {
54514
54658
  type: "string",
54515
- maxLength: 255,
54516
- description: "Bucket name."
54659
+ maxLength: 500,
54660
+ writeOnly: true,
54661
+ description: "Slack token. Write-only."
54517
54662
  },
54518
- dedicated_egress: {
54519
- type: "boolean",
54520
- description: "Route every call through the workspace's fixed outbound address (see `GET /v1/sources/s3/dedicated-egress`)."
54521
- }
54522
- }
54523
- }
54524
- }
54525
- }
54526
- },
54527
- responses: {
54528
- "201": {
54529
- description: "The new connection (without its credentials).",
54530
- content: {
54531
- "application/json": {
54532
- schema: {
54533
- $ref: "#/components/schemas/SourceConnection"
54534
- }
54535
- }
54536
- }
54537
- },
54538
- "400": {
54539
- $ref: "#/components/responses/BadRequest"
54540
- },
54541
- "401": {
54542
- $ref: "#/components/responses/Unauthorized"
54543
- },
54544
- "403": {
54545
- $ref: "#/components/responses/Forbidden"
54546
- },
54547
- "429": {
54548
- $ref: "#/components/responses/RateLimitExceeded"
54549
- }
54550
- }
54551
- }
54552
- },
54553
- "/v1/sources/connections/azure-blob": {
54554
- post: {
54555
- operationId: "connectAzureBlobSource",
54556
- "x-audience": "public",
54557
- "x-required-scopes": [
54558
- "sources:write"
54559
- ],
54560
- summary: "Connect Azure Blob Storage",
54561
- description: "Connects Azure Blob Storage with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. Send either `connection_string`, or `account_name` + `sas_token` + `sas_container`; both forms or neither answers 400. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54562
- tags: [
54563
- "Sources"
54564
- ],
54565
- requestBody: {
54566
- required: true,
54567
- content: {
54568
- "application/json": {
54569
- schema: {
54570
- type: "object",
54571
- required: [
54572
- "name"
54573
- ],
54574
- properties: {
54575
- name: {
54576
- type: "string",
54577
- maxLength: 200,
54578
- description: "Display name."
54579
- },
54580
- connection_string: {
54581
- type: "string",
54582
- maxLength: 4e3,
54583
- writeOnly: true,
54584
- description: "Storage account connection string. Write-only."
54585
- },
54586
- account_name: {
54587
- type: "string",
54588
- maxLength: 200,
54589
- description: "Storage account name."
54590
- },
54591
- sas_token: {
54592
- type: "string",
54593
- maxLength: 4e3,
54594
- writeOnly: true,
54595
- description: "Shared access signature token. Write-only."
54596
- },
54597
- sas_container: {
54598
- type: "string",
54599
- maxLength: 200,
54600
- description: "Container the SAS token grants."
54601
- }
54602
- }
54603
- }
54604
- }
54605
- }
54606
- },
54607
- responses: {
54608
- "201": {
54609
- description: "The new connection (without its credentials).",
54610
- content: {
54611
- "application/json": {
54612
- schema: {
54613
- $ref: "#/components/schemas/SourceConnection"
54614
- }
54615
- }
54616
- }
54617
- },
54618
- "400": {
54619
- $ref: "#/components/responses/BadRequest"
54620
- },
54621
- "401": {
54622
- $ref: "#/components/responses/Unauthorized"
54623
- },
54624
- "403": {
54625
- $ref: "#/components/responses/Forbidden"
54626
- },
54627
- "429": {
54628
- $ref: "#/components/responses/RateLimitExceeded"
54629
- }
54630
- }
54631
- }
54632
- },
54633
- "/v1/sources/connections/granola": {
54634
- post: {
54635
- operationId: "connectGranolaSource",
54636
- "x-audience": "public",
54637
- "x-required-scopes": [
54638
- "sources:write"
54639
- ],
54640
- summary: "Connect Granola",
54641
- description: "Connects Granola meeting notes with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. This is a personal connection: only the person who connected it manages it and reads from it. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54642
- tags: [
54643
- "Sources"
54644
- ],
54645
- requestBody: {
54646
- required: true,
54647
- content: {
54648
- "application/json": {
54649
- schema: {
54650
- type: "object",
54651
- required: [
54652
- "name",
54653
- "api_key"
54654
- ],
54655
- properties: {
54656
- name: {
54657
- type: "string",
54658
- maxLength: 200,
54659
- description: "Display name."
54660
- },
54661
- api_key: {
54662
- type: "string",
54663
- maxLength: 500,
54664
- writeOnly: true,
54665
- description: "Granola API key. Write-only."
54666
- },
54667
- owner_email: {
54668
- type: "string",
54669
- format: "email",
54670
- description: "Keep only notes this person owns or was shared."
54671
- },
54672
- intake: {
54673
- type: "object",
54674
- additionalProperties: true,
54675
- description: "First-read choices applied the moment the connection exists, in the shape `PATCH /v1/sources/connections/{id}/intake` takes."
54676
- }
54677
- }
54678
- }
54679
- }
54680
- }
54681
- },
54682
- responses: {
54683
- "201": {
54684
- description: "The new connection (without its credentials).",
54685
- content: {
54686
- "application/json": {
54687
- schema: {
54688
- $ref: "#/components/schemas/SourceConnection"
54689
- }
54690
- }
54691
- }
54692
- },
54693
- "400": {
54694
- $ref: "#/components/responses/BadRequest"
54695
- },
54696
- "401": {
54697
- $ref: "#/components/responses/Unauthorized"
54698
- },
54699
- "403": {
54700
- $ref: "#/components/responses/Forbidden"
54701
- },
54702
- "429": {
54703
- $ref: "#/components/responses/RateLimitExceeded"
54704
- }
54705
- }
54706
- }
54707
- },
54708
- "/v1/sources/connections/slack": {
54709
- post: {
54710
- operationId: "connectSlackSource",
54711
- "x-audience": "public",
54712
- "x-required-scopes": [
54713
- "sources:write"
54714
- ],
54715
- summary: "Connect Slack with a token",
54716
- description: "Connects Slack with a token with credentials sent once. The credentials are checked against the system before the connection is saved; secrets in the body are write-only, stored encrypted and never returned. This is a personal connection: only the person who connected it manages it and reads from it. Where the deployment offers it, `POST /v1/integrations/slack/authorize` connects Slack through a browser sign-in instead. A key that belongs to no person (one created before keys named their creator) is refused with 403.\n\n**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.\n",
54717
- tags: [
54718
- "Sources"
54719
- ],
54720
- requestBody: {
54721
- required: true,
54722
- content: {
54723
- "application/json": {
54724
- schema: {
54725
- type: "object",
54726
- required: [
54727
- "name",
54728
- "token"
54729
- ],
54730
- properties: {
54731
- name: {
54732
- type: "string",
54733
- maxLength: 200,
54734
- description: "Display name."
54735
- },
54736
- token: {
54737
- type: "string",
54738
- maxLength: 500,
54739
- writeOnly: true,
54740
- description: "Slack token. Write-only."
54741
- },
54742
- intake: {
54743
- type: "object",
54744
- additionalProperties: true,
54745
- description: "First-read choices applied the moment the connection exists, in the shape `PATCH /v1/sources/connections/{id}/intake` takes."
54663
+ intake: {
54664
+ type: "object",
54665
+ additionalProperties: true,
54666
+ description: "First-read choices applied the moment the connection exists, in the shape `PATCH /v1/sources/connections/{id}/intake` takes."
54746
54667
  }
54747
54668
  }
54748
54669
  }
@@ -54839,10 +54760,6 @@ var openapi_default = {
54839
54760
  maxLength: 1e3,
54840
54761
  writeOnly: true,
54841
54762
  description: "Password, for `auth_mode: password`. Write-only."
54842
- },
54843
- dedicated_egress: {
54844
- type: "boolean",
54845
- description: "Route every call through the workspace's fixed outbound address."
54846
54763
  }
54847
54764
  }
54848
54765
  }
@@ -54918,10 +54835,6 @@ var openapi_default = {
54918
54835
  maxLength: 2048,
54919
54836
  writeOnly: true,
54920
54837
  description: "Connection string including credentials. Write-only."
54921
- },
54922
- dedicated_egress: {
54923
- type: "boolean",
54924
- description: "Connect through the workspace's fixed outbound address."
54925
54838
  }
54926
54839
  }
54927
54840
  }
@@ -56170,10 +56083,6 @@ var openapi_default = {
56170
56083
  quick_extraction: {
56171
56084
  type: "boolean",
56172
56085
  description: "Use quick extraction for files brought in from this connection."
56173
- },
56174
- dedicated_egress: {
56175
- type: "boolean",
56176
- description: "Route every call through the workspace's fixed outbound address; turning it on checks the bucket is reachable that way first."
56177
56086
  }
56178
56087
  }
56179
56088
  }
@@ -56244,10 +56153,6 @@ var openapi_default = {
56244
56153
  type: "string",
56245
56154
  pattern: "^[a-z]{2}(-[A-Za-z]{2})?$",
56246
56155
  description: "Language for localized Kendox names, e.g. `de`, `en`, `de-CH`."
56247
- },
56248
- dedicated_egress: {
56249
- type: "boolean",
56250
- description: "Route every call through the workspace's fixed outbound address."
56251
56156
  }
56252
56157
  }
56253
56158
  }
@@ -56319,10 +56224,6 @@ var openapi_default = {
56319
56224
  minLength: 1,
56320
56225
  maxLength: 255,
56321
56226
  description: "New display name."
56322
- },
56323
- dedicated_egress: {
56324
- type: "boolean",
56325
- description: "Connect through the workspace's fixed outbound address; turning it on checks the database is reachable that way first."
56326
56227
  }
56327
56228
  }
56328
56229
  }
@@ -57250,7 +57151,7 @@ var openapi_default = {
57250
57151
  "documents:write"
57251
57152
  ],
57252
57153
  summary: "Import files from a connection",
57253
- 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",
57154
+ 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",
57254
57155
  tags: [
57255
57156
  "Sources"
57256
57157
  ],
@@ -57265,9 +57166,6 @@ var openapi_default = {
57265
57166
  "application/json": {
57266
57167
  schema: {
57267
57168
  type: "object",
57268
- required: [
57269
- "file_ids"
57270
- ],
57271
57169
  properties: {
57272
57170
  file_ids: {
57273
57171
  type: "array",
@@ -57276,7 +57174,20 @@ var openapi_default = {
57276
57174
  items: {
57277
57175
  type: "string"
57278
57176
  },
57279
- description: "File ids to import."
57177
+ description: "File ids to import. Required unless `async` is true and `folder_ids` names something."
57178
+ },
57179
+ folder_ids: {
57180
+ type: "array",
57181
+ maxItems: 500,
57182
+ items: {
57183
+ type: "string"
57184
+ },
57185
+ 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"
57186
+ },
57187
+ async: {
57188
+ type: "boolean",
57189
+ default: false,
57190
+ description: "True records the import and answers `202` with the run; the files are imported in the background."
57280
57191
  },
57281
57192
  tags: {
57282
57193
  type: "array",
@@ -57293,7 +57204,7 @@ var openapi_default = {
57293
57204
  },
57294
57205
  responses: {
57295
57206
  "201": {
57296
- description: "What was imported, skipped or failed.",
57207
+ description: "Without `async`. What was imported, skipped or failed.",
57297
57208
  content: {
57298
57209
  "application/json": {
57299
57210
  schema: {
@@ -57302,6 +57213,16 @@ var openapi_default = {
57302
57213
  }
57303
57214
  }
57304
57215
  },
57216
+ "202": {
57217
+ description: "With `async: true`. The import run, still queued.",
57218
+ content: {
57219
+ "application/json": {
57220
+ schema: {
57221
+ $ref: "#/components/schemas/SourceImportRun"
57222
+ }
57223
+ }
57224
+ }
57225
+ },
57305
57226
  "400": {
57306
57227
  $ref: "#/components/responses/BadRequest"
57307
57228
  },
@@ -57320,61 +57241,75 @@ var openapi_default = {
57320
57241
  }
57321
57242
  }
57322
57243
  },
57323
- "/v1/sources/{id}/imports": {
57244
+ "/v1/sources/{id}/import-runs": {
57324
57245
  get: {
57325
- operationId: "listSourceImports",
57246
+ operationId: "listSourceImportRuns",
57326
57247
  "x-audience": "public",
57327
57248
  "x-required-scopes": [
57328
57249
  "read"
57329
57250
  ],
57330
- summary: "List imports from a connection",
57331
- 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",
57251
+ summary: "List import runs of a connection",
57252
+ 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",
57332
57253
  tags: [
57333
57254
  "Sources"
57334
57255
  ],
57335
57256
  parameters: [
57336
57257
  {
57337
57258
  $ref: "#/components/parameters/ResourceId"
57259
+ },
57260
+ {
57261
+ name: "open",
57262
+ in: "query",
57263
+ required: false,
57264
+ schema: {
57265
+ type: "boolean"
57266
+ },
57267
+ description: "True keeps only runs that are still queued or running."
57338
57268
  }
57339
57269
  ],
57340
57270
  responses: {
57341
57271
  "200": {
57342
- description: "The imports.",
57272
+ description: "The runs.",
57343
57273
  content: {
57344
57274
  "application/json": {
57345
57275
  schema: {
57346
- type: "array",
57347
- items: {
57348
- $ref: "#/components/schemas/SourceImport"
57276
+ type: "object",
57277
+ properties: {
57278
+ data: {
57279
+ type: "array",
57280
+ items: {
57281
+ $ref: "#/components/schemas/SourceImportRun"
57282
+ }
57283
+ }
57349
57284
  }
57350
57285
  }
57351
57286
  }
57352
57287
  }
57353
57288
  },
57289
+ "400": {
57290
+ $ref: "#/components/responses/BadRequest"
57291
+ },
57354
57292
  "401": {
57355
57293
  $ref: "#/components/responses/Unauthorized"
57356
57294
  },
57357
57295
  "403": {
57358
57296
  $ref: "#/components/responses/Forbidden"
57359
57297
  },
57360
- "404": {
57361
- $ref: "#/components/responses/NotFound"
57362
- },
57363
57298
  "429": {
57364
57299
  $ref: "#/components/responses/RateLimitExceeded"
57365
57300
  }
57366
57301
  }
57367
57302
  }
57368
57303
  },
57369
- "/v1/sources/{id}/imports/{importId}/resync": {
57370
- post: {
57371
- operationId: "resyncSourceImport",
57304
+ "/v1/sources/{id}/import-runs/{runId}": {
57305
+ get: {
57306
+ operationId: "getSourceImportRun",
57372
57307
  "x-audience": "public",
57373
57308
  "x-required-scopes": [
57374
- "documents:write"
57309
+ "read"
57375
57310
  ],
57376
- summary: "Read a Microsoft Teams import again",
57377
- 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",
57311
+ summary: "Read one import run",
57312
+ 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",
57378
57313
  tags: [
57379
57314
  "Sources"
57380
57315
  ],
@@ -57383,38 +57318,140 @@ var openapi_default = {
57383
57318
  $ref: "#/components/parameters/ResourceId"
57384
57319
  },
57385
57320
  {
57386
- name: "importId",
57321
+ name: "runId",
57387
57322
  in: "path",
57388
57323
  required: true,
57389
57324
  schema: {
57390
57325
  type: "string",
57391
57326
  format: "uuid"
57392
57327
  },
57393
- description: "Import UUID from `GET /v1/sources/{id}/imports`."
57328
+ description: "Import run UUID from `POST /v1/sources/{id}/import` (`async: true`) or `GET /v1/sources/{id}/import-runs`."
57394
57329
  }
57395
57330
  ],
57396
57331
  responses: {
57397
- "201": {
57398
- description: "Whether anything changed.",
57332
+ "200": {
57333
+ description: "The run, with its failures named.",
57399
57334
  content: {
57400
57335
  "application/json": {
57401
57336
  schema: {
57402
- type: "object",
57403
- properties: {
57404
- status: {
57405
- type: "string",
57406
- enum: [
57407
- "up_to_date",
57408
- "refreshed"
57409
- ]
57410
- },
57411
- new_attachments: {
57412
- type: "array",
57413
- items: {
57414
- type: "string"
57415
- }
57416
- }
57417
- }
57337
+ $ref: "#/components/schemas/SourceImportRun"
57338
+ }
57339
+ }
57340
+ }
57341
+ },
57342
+ "400": {
57343
+ $ref: "#/components/responses/BadRequest"
57344
+ },
57345
+ "401": {
57346
+ $ref: "#/components/responses/Unauthorized"
57347
+ },
57348
+ "403": {
57349
+ $ref: "#/components/responses/Forbidden"
57350
+ },
57351
+ "404": {
57352
+ $ref: "#/components/responses/NotFound"
57353
+ },
57354
+ "429": {
57355
+ $ref: "#/components/responses/RateLimitExceeded"
57356
+ }
57357
+ }
57358
+ }
57359
+ },
57360
+ "/v1/sources/{id}/imports": {
57361
+ get: {
57362
+ operationId: "listSourceImports",
57363
+ "x-audience": "public",
57364
+ "x-required-scopes": [
57365
+ "read"
57366
+ ],
57367
+ summary: "List imports from a connection",
57368
+ 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",
57369
+ tags: [
57370
+ "Sources"
57371
+ ],
57372
+ parameters: [
57373
+ {
57374
+ $ref: "#/components/parameters/ResourceId"
57375
+ }
57376
+ ],
57377
+ responses: {
57378
+ "200": {
57379
+ description: "The imports.",
57380
+ content: {
57381
+ "application/json": {
57382
+ schema: {
57383
+ type: "array",
57384
+ items: {
57385
+ $ref: "#/components/schemas/SourceImport"
57386
+ }
57387
+ }
57388
+ }
57389
+ }
57390
+ },
57391
+ "401": {
57392
+ $ref: "#/components/responses/Unauthorized"
57393
+ },
57394
+ "403": {
57395
+ $ref: "#/components/responses/Forbidden"
57396
+ },
57397
+ "404": {
57398
+ $ref: "#/components/responses/NotFound"
57399
+ },
57400
+ "429": {
57401
+ $ref: "#/components/responses/RateLimitExceeded"
57402
+ }
57403
+ }
57404
+ }
57405
+ },
57406
+ "/v1/sources/{id}/imports/{importId}/resync": {
57407
+ post: {
57408
+ operationId: "resyncSourceImport",
57409
+ "x-audience": "public",
57410
+ "x-required-scopes": [
57411
+ "documents:write"
57412
+ ],
57413
+ summary: "Read a Microsoft Teams import again",
57414
+ 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",
57415
+ tags: [
57416
+ "Sources"
57417
+ ],
57418
+ parameters: [
57419
+ {
57420
+ $ref: "#/components/parameters/ResourceId"
57421
+ },
57422
+ {
57423
+ name: "importId",
57424
+ in: "path",
57425
+ required: true,
57426
+ schema: {
57427
+ type: "string",
57428
+ format: "uuid"
57429
+ },
57430
+ description: "Import UUID from `GET /v1/sources/{id}/imports`."
57431
+ }
57432
+ ],
57433
+ responses: {
57434
+ "201": {
57435
+ description: "Whether anything changed.",
57436
+ content: {
57437
+ "application/json": {
57438
+ schema: {
57439
+ type: "object",
57440
+ properties: {
57441
+ status: {
57442
+ type: "string",
57443
+ enum: [
57444
+ "up_to_date",
57445
+ "refreshed"
57446
+ ]
57447
+ },
57448
+ new_attachments: {
57449
+ type: "array",
57450
+ items: {
57451
+ type: "string"
57452
+ }
57453
+ }
57454
+ }
57418
57455
  }
57419
57456
  }
57420
57457
  }
@@ -77702,6 +77739,97 @@ var openapi_default = {
77702
77739
  }
77703
77740
  }
77704
77741
  },
77742
+ "/v1/team/members/{userId}/access-until": {
77743
+ put: {
77744
+ operationId: "setMemberAccessUntil",
77745
+ "x-required-scopes": [
77746
+ "team:write"
77747
+ ],
77748
+ "x-audience": "public",
77749
+ summary: "Make a membership temporary",
77750
+ 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",
77751
+ tags: [
77752
+ "Team"
77753
+ ],
77754
+ parameters: [
77755
+ {
77756
+ name: "userId",
77757
+ in: "path",
77758
+ required: true,
77759
+ schema: {
77760
+ type: "string",
77761
+ format: "uuid"
77762
+ }
77763
+ }
77764
+ ],
77765
+ requestBody: {
77766
+ required: true,
77767
+ content: {
77768
+ "application/json": {
77769
+ schema: {
77770
+ type: "object",
77771
+ properties: {
77772
+ access_until: {
77773
+ oneOf: [
77774
+ {
77775
+ type: "string",
77776
+ format: "date-time"
77777
+ },
77778
+ {
77779
+ type: "null"
77780
+ }
77781
+ ]
77782
+ }
77783
+ },
77784
+ required: [
77785
+ "access_until"
77786
+ ]
77787
+ }
77788
+ }
77789
+ }
77790
+ },
77791
+ responses: {
77792
+ "200": {
77793
+ description: "Make a membership temporary: done.",
77794
+ content: {
77795
+ "application/json": {
77796
+ schema: {
77797
+ type: "object",
77798
+ properties: {
77799
+ user_id: {
77800
+ type: "string",
77801
+ format: "uuid"
77802
+ },
77803
+ access_until: {
77804
+ type: [
77805
+ "string",
77806
+ "null"
77807
+ ],
77808
+ format: "date-time"
77809
+ }
77810
+ }
77811
+ }
77812
+ }
77813
+ }
77814
+ },
77815
+ "400": {
77816
+ $ref: "#/components/responses/BadRequest"
77817
+ },
77818
+ "401": {
77819
+ $ref: "#/components/responses/Unauthorized"
77820
+ },
77821
+ "403": {
77822
+ $ref: "#/components/responses/Forbidden"
77823
+ },
77824
+ "404": {
77825
+ $ref: "#/components/responses/NotFound"
77826
+ },
77827
+ "429": {
77828
+ $ref: "#/components/responses/RateLimitExceeded"
77829
+ }
77830
+ }
77831
+ }
77832
+ },
77705
77833
  "/v1/team/role-permissions": {
77706
77834
  get: {
77707
77835
  operationId: "getRolePermissions",
@@ -79677,7 +79805,7 @@ var openapi_default = {
79677
79805
  "thread:read"
79678
79806
  ],
79679
79807
  summary: "Read the thread",
79680
- 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",
79808
+ 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",
79681
79809
  tags: [
79682
79810
  "Thread"
79683
79811
  ],
@@ -79777,6 +79905,76 @@ var openapi_default = {
79777
79905
  }
79778
79906
  }
79779
79907
  },
79908
+ "/v1/thread/history": {
79909
+ get: {
79910
+ operationId: "listThreadHistory",
79911
+ "x-audience": "public",
79912
+ "x-required-scopes": [
79913
+ "thread:read"
79914
+ ],
79915
+ summary: "Read earlier thread messages",
79916
+ 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",
79917
+ tags: [
79918
+ "Thread"
79919
+ ],
79920
+ parameters: [
79921
+ {
79922
+ name: "before",
79923
+ in: "query",
79924
+ schema: {
79925
+ type: "integer",
79926
+ minimum: 1
79927
+ },
79928
+ description: "The `seq` of the oldest event you already hold. Omitted, the newest page is returned."
79929
+ },
79930
+ {
79931
+ name: "limit",
79932
+ in: "query",
79933
+ schema: {
79934
+ type: "integer",
79935
+ minimum: 1,
79936
+ maximum: 100,
79937
+ default: 50
79938
+ }
79939
+ }
79940
+ ],
79941
+ responses: {
79942
+ "200": {
79943
+ description: "OK",
79944
+ content: {
79945
+ "application/json": {
79946
+ schema: {
79947
+ type: "object",
79948
+ properties: {
79949
+ events: {
79950
+ type: "array",
79951
+ items: {
79952
+ $ref: "#/components/schemas/ThreadEvent"
79953
+ }
79954
+ },
79955
+ has_older: {
79956
+ type: "boolean"
79957
+ }
79958
+ }
79959
+ }
79960
+ }
79961
+ }
79962
+ },
79963
+ "401": {
79964
+ $ref: "#/components/responses/Unauthorized"
79965
+ },
79966
+ "403": {
79967
+ $ref: "#/components/responses/Forbidden"
79968
+ },
79969
+ "404": {
79970
+ $ref: "#/components/responses/NotFound"
79971
+ },
79972
+ "429": {
79973
+ $ref: "#/components/responses/RateLimitExceeded"
79974
+ }
79975
+ }
79976
+ }
79977
+ },
79780
79978
  "/v1/thread/messages": {
79781
79979
  post: {
79782
79980
  operationId: "sendThreadMessage",
@@ -79952,6 +80150,56 @@ var openapi_default = {
79952
80150
  }
79953
80151
  }
79954
80152
  },
80153
+ "/v1/thread/files/{documentId}": {
80154
+ get: {
80155
+ operationId: "getThreadFile",
80156
+ "x-audience": "public",
80157
+ "x-required-scopes": [
80158
+ "thread:read"
80159
+ ],
80160
+ summary: "Get a picture you handed in",
80161
+ 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",
80162
+ tags: [
80163
+ "Thread"
80164
+ ],
80165
+ parameters: [
80166
+ {
80167
+ name: "documentId",
80168
+ in: "path",
80169
+ required: true,
80170
+ schema: {
80171
+ type: "string",
80172
+ format: "uuid"
80173
+ }
80174
+ }
80175
+ ],
80176
+ responses: {
80177
+ "200": {
80178
+ description: "The picture.",
80179
+ content: {
80180
+ "image/webp": {
80181
+ schema: {
80182
+ type: "string",
80183
+ format: "binary"
80184
+ }
80185
+ }
80186
+ }
80187
+ },
80188
+ "401": {
80189
+ $ref: "#/components/responses/Unauthorized"
80190
+ },
80191
+ "403": {
80192
+ $ref: "#/components/responses/Forbidden"
80193
+ },
80194
+ "404": {
80195
+ $ref: "#/components/responses/NotFound"
80196
+ },
80197
+ "429": {
80198
+ $ref: "#/components/responses/RateLimitExceeded"
80199
+ }
80200
+ }
80201
+ }
80202
+ },
79955
80203
  "/v1/thread/approvals/{id}": {
79956
80204
  post: {
79957
80205
  operationId: "decideThreadApproval",
@@ -83293,6 +83541,313 @@ var openapi_default = {
83293
83541
  }
83294
83542
  }
83295
83543
  },
83544
+ "/v1/governance/level": {
83545
+ get: {
83546
+ operationId: "getGovernanceLevel",
83547
+ "x-audience": "public",
83548
+ "x-required-scopes": [
83549
+ "access:read"
83550
+ ],
83551
+ summary: "The workspace's data governance",
83552
+ 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",
83553
+ tags: [
83554
+ "Access & sharing"
83555
+ ],
83556
+ responses: {
83557
+ "200": {
83558
+ description: "The governance status.",
83559
+ content: {
83560
+ "application/json": {
83561
+ schema: {
83562
+ type: "object",
83563
+ properties: {
83564
+ on: {
83565
+ type: "boolean"
83566
+ },
83567
+ default: {
83568
+ type: "string",
83569
+ enum: [
83570
+ "open",
83571
+ "private"
83572
+ ]
83573
+ },
83574
+ stored_default: {
83575
+ type: "string",
83576
+ enum: [
83577
+ "open",
83578
+ "private"
83579
+ ],
83580
+ nullable: true
83581
+ },
83582
+ since: {
83583
+ type: "string",
83584
+ nullable: true
83585
+ },
83586
+ enabled: {
83587
+ type: "boolean",
83588
+ description: "governance.enabled: this deployment runs the scope model."
83589
+ },
83590
+ decision_point_on: {
83591
+ type: "boolean"
83592
+ },
83593
+ field_tiers: {
83594
+ type: "boolean"
83595
+ },
83596
+ enabling: {
83597
+ type: "object",
83598
+ nullable: true,
83599
+ 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.",
83600
+ properties: {
83601
+ state: {
83602
+ type: "string",
83603
+ enum: [
83604
+ "preparing",
83605
+ "failed"
83606
+ ]
83607
+ },
83608
+ default: {
83609
+ type: "string",
83610
+ enum: [
83611
+ "open",
83612
+ "private"
83613
+ ]
83614
+ },
83615
+ requested_at: {
83616
+ type: "string",
83617
+ nullable: true
83618
+ },
83619
+ requested_by: {
83620
+ type: "string",
83621
+ nullable: true
83622
+ },
83623
+ done: {
83624
+ type: "integer",
83625
+ nullable: true,
83626
+ description: "Documents given their access scope so far."
83627
+ },
83628
+ total: {
83629
+ type: "integer",
83630
+ nullable: true
83631
+ },
83632
+ error: {
83633
+ type: "string",
83634
+ nullable: true
83635
+ }
83636
+ }
83637
+ }
83638
+ }
83639
+ }
83640
+ }
83641
+ }
83642
+ },
83643
+ "400": {
83644
+ $ref: "#/components/responses/BadRequest"
83645
+ },
83646
+ "401": {
83647
+ $ref: "#/components/responses/Unauthorized"
83648
+ },
83649
+ "403": {
83650
+ $ref: "#/components/responses/Forbidden"
83651
+ },
83652
+ "429": {
83653
+ $ref: "#/components/responses/RateLimitExceeded"
83654
+ }
83655
+ }
83656
+ },
83657
+ put: {
83658
+ operationId: "setGovernanceLevel",
83659
+ "x-audience": "public",
83660
+ "x-required-scopes": [
83661
+ "access:write"
83662
+ ],
83663
+ summary: "Turn data governance on or off",
83664
+ 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",
83665
+ tags: [
83666
+ "Access & sharing"
83667
+ ],
83668
+ requestBody: {
83669
+ required: true,
83670
+ content: {
83671
+ "application/json": {
83672
+ schema: {
83673
+ type: "object",
83674
+ required: [
83675
+ "on"
83676
+ ],
83677
+ properties: {
83678
+ on: {
83679
+ type: "boolean"
83680
+ },
83681
+ default: {
83682
+ type: "string",
83683
+ enum: [
83684
+ "open",
83685
+ "private"
83686
+ ]
83687
+ }
83688
+ }
83689
+ }
83690
+ }
83691
+ }
83692
+ },
83693
+ responses: {
83694
+ "200": {
83695
+ description: "The governance status after the change (or with `enabling` while it prepares).",
83696
+ content: {
83697
+ "application/json": {
83698
+ schema: {
83699
+ type: "object",
83700
+ properties: {
83701
+ on: {
83702
+ type: "boolean"
83703
+ },
83704
+ default: {
83705
+ type: "string",
83706
+ enum: [
83707
+ "open",
83708
+ "private"
83709
+ ]
83710
+ },
83711
+ stored_default: {
83712
+ type: "string",
83713
+ enum: [
83714
+ "open",
83715
+ "private"
83716
+ ],
83717
+ nullable: true
83718
+ },
83719
+ since: {
83720
+ type: "string",
83721
+ nullable: true
83722
+ },
83723
+ enabled: {
83724
+ type: "boolean",
83725
+ description: "governance.enabled: this deployment runs the scope model."
83726
+ },
83727
+ decision_point_on: {
83728
+ type: "boolean"
83729
+ },
83730
+ field_tiers: {
83731
+ type: "boolean"
83732
+ },
83733
+ enabling: {
83734
+ type: "object",
83735
+ nullable: true,
83736
+ 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.",
83737
+ properties: {
83738
+ state: {
83739
+ type: "string",
83740
+ enum: [
83741
+ "preparing",
83742
+ "failed"
83743
+ ]
83744
+ },
83745
+ default: {
83746
+ type: "string",
83747
+ enum: [
83748
+ "open",
83749
+ "private"
83750
+ ]
83751
+ },
83752
+ requested_at: {
83753
+ type: "string",
83754
+ nullable: true
83755
+ },
83756
+ requested_by: {
83757
+ type: "string",
83758
+ nullable: true
83759
+ },
83760
+ done: {
83761
+ type: "integer",
83762
+ nullable: true,
83763
+ description: "Documents given their access scope so far."
83764
+ },
83765
+ total: {
83766
+ type: "integer",
83767
+ nullable: true
83768
+ },
83769
+ error: {
83770
+ type: "string",
83771
+ nullable: true
83772
+ }
83773
+ }
83774
+ }
83775
+ }
83776
+ }
83777
+ }
83778
+ }
83779
+ },
83780
+ "400": {
83781
+ $ref: "#/components/responses/BadRequest"
83782
+ },
83783
+ "401": {
83784
+ $ref: "#/components/responses/Unauthorized"
83785
+ },
83786
+ "403": {
83787
+ $ref: "#/components/responses/Forbidden"
83788
+ },
83789
+ "409": {
83790
+ $ref: "#/components/responses/Conflict"
83791
+ },
83792
+ "429": {
83793
+ $ref: "#/components/responses/RateLimitExceeded"
83794
+ }
83795
+ }
83796
+ }
83797
+ },
83798
+ "/v1/governance/level/dry-run": {
83799
+ get: {
83800
+ operationId: "dryRunGovernanceLevel",
83801
+ "x-audience": "public",
83802
+ "x-required-scopes": [
83803
+ "access:read"
83804
+ ],
83805
+ summary: "Who reads what under data governance",
83806
+ 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",
83807
+ tags: [
83808
+ "Access & sharing"
83809
+ ],
83810
+ parameters: [
83811
+ {
83812
+ name: "default",
83813
+ in: "query",
83814
+ required: false,
83815
+ schema: {
83816
+ type: "string",
83817
+ enum: [
83818
+ "open",
83819
+ "private"
83820
+ ]
83821
+ }
83822
+ }
83823
+ ],
83824
+ responses: {
83825
+ "200": {
83826
+ description: "The dry run.",
83827
+ content: {
83828
+ "application/json": {
83829
+ schema: {
83830
+ type: "object",
83831
+ additionalProperties: true
83832
+ }
83833
+ }
83834
+ }
83835
+ },
83836
+ "400": {
83837
+ $ref: "#/components/responses/BadRequest"
83838
+ },
83839
+ "401": {
83840
+ $ref: "#/components/responses/Unauthorized"
83841
+ },
83842
+ "403": {
83843
+ $ref: "#/components/responses/Forbidden"
83844
+ },
83845
+ "429": {
83846
+ $ref: "#/components/responses/RateLimitExceeded"
83847
+ }
83848
+ }
83849
+ }
83850
+ },
83296
83851
  "/v1/governance/shares/workspace": {
83297
83852
  post: {
83298
83853
  operationId: "setWorkspaceOpen",
@@ -116778,10 +117333,119 @@ var openapi_default = {
116778
117333
  type: "string"
116779
117334
  },
116780
117335
  error: {
117336
+ type: "string",
117337
+ description: "The raw failure message."
117338
+ },
117339
+ reason: {
117340
+ type: "string",
117341
+ description: "Why the file could not be imported, in words for a person."
117342
+ }
117343
+ }
117344
+ }
117345
+ }
117346
+ }
117347
+ },
117348
+ SourceImportRun: {
117349
+ type: "object",
117350
+ 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",
117351
+ properties: {
117352
+ id: {
117353
+ type: "string",
117354
+ format: "uuid"
117355
+ },
117356
+ source_connection_id: {
117357
+ type: "string",
117358
+ format: "uuid"
117359
+ },
117360
+ status: {
117361
+ type: "string",
117362
+ enum: [
117363
+ "queued",
117364
+ "running",
117365
+ "completed",
117366
+ "failed"
117367
+ ],
117368
+ description: "`completed` also when some items failed (see `failed` and `failures`); `failed` when the run itself stopped (see `error`).\n"
117369
+ },
117370
+ running: {
117371
+ type: "boolean",
117372
+ description: "True while the run is queued or being worked on."
117373
+ },
117374
+ requested: {
117375
+ type: "integer",
117376
+ description: "Items asked for."
117377
+ },
117378
+ imported: {
117379
+ type: "integer",
117380
+ description: "Items brought into the workspace by this run."
117381
+ },
117382
+ skipped: {
117383
+ type: "integer",
117384
+ description: "Items that were in the workspace already; nothing was imported twice."
117385
+ },
117386
+ empty: {
117387
+ type: "integer",
117388
+ description: "Folders that held nothing to import."
117389
+ },
117390
+ failed: {
117391
+ type: "integer"
117392
+ },
117393
+ pending: {
117394
+ type: "integer",
117395
+ description: "Items not worked on yet (or never, when the run itself failed)."
117396
+ },
117397
+ error: {
117398
+ type: [
117399
+ "string",
117400
+ "null"
117401
+ ],
117402
+ description: "Why the run as a whole stopped, when it did."
117403
+ },
117404
+ created_at: {
117405
+ type: "string",
117406
+ format: "date-time"
117407
+ },
117408
+ started_at: {
117409
+ type: [
117410
+ "string",
117411
+ "null"
117412
+ ],
117413
+ format: "date-time"
117414
+ },
117415
+ finished_at: {
117416
+ type: [
117417
+ "string",
117418
+ "null"
117419
+ ],
117420
+ format: "date-time"
117421
+ },
117422
+ failures: {
117423
+ type: "array",
117424
+ description: "On the single-run read. What could not be imported.",
117425
+ items: {
117426
+ type: "object",
117427
+ properties: {
117428
+ item_id: {
117429
+ type: "string",
117430
+ description: "The requested item (a file or folder id)."
117431
+ },
117432
+ file_id: {
117433
+ type: "string",
117434
+ description: "The file inside a requested folder, when the failure is that file's."
117435
+ },
117436
+ name: {
116781
117437
  type: "string"
117438
+ },
117439
+ reason: {
117440
+ type: "string",
117441
+ description: "Why, in words for a person."
116782
117442
  }
116783
117443
  }
116784
117444
  }
117445
+ },
117446
+ failures_truncated: {
117447
+ type: "boolean",
117448
+ description: "True when more failures exist than `failures` names; `failed` is always exact."
116785
117449
  }
116786
117450
  }
116787
117451
  },
@@ -117685,6 +118349,10 @@ var openapi_default = {
117685
118349
  },
117686
118350
  cursor: {
117687
118351
  type: "integer"
118352
+ },
118353
+ has_older: {
118354
+ type: "boolean",
118355
+ description: "True when the conversation goes further back than this page."
117688
118356
  }
117689
118357
  }
117690
118358
  },